Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
239735b
Merge pull request #51 from mgmarlow/master
lurock Sep 28, 2017
28064a7
add logo and remove periods from the label text
brianmtreese Sep 28, 2017
a64911d
add loading screens to demo apps
brianmtreese Sep 28, 2017
2a6b351
Merge pull request #52 from SoCreate/feature/update-menu-dropdown-ui
lurock Sep 29, 2017
e2424b4
add changelog notes for 2.0.0
lurock Sep 29, 2017
6c60913
2.0.0
lurock Sep 29, 2017
45d7bba
fix version information in change log
lurock Sep 29, 2017
8186bf6
fix version anchor tag in change log
lurock Sep 29, 2017
3c7d374
fix issue with peer dependencies not set to the right versions
lurock Sep 29, 2017
223c1c6
add changelog notes for 2.0.1
lurock Sep 29, 2017
df51f79
2.0.1
lurock Sep 29, 2017
cd16815
add peer dependency support for 5.0.0-beta.0 and higher versions
lurock Sep 29, 2017
f3f7c71
add changelog notes for 2.0.1
lurock Sep 29, 2017
29a0884
2.0.2
lurock Sep 29, 2017
046bad0
remove link transitions
brianmtreese Sep 29, 2017
c96047f
prevent list item headers from inheriting font family
brianmtreese Sep 29, 2017
f7a3cc9
set command bar to show hide with css to maintain scroll position
brianmtreese Sep 29, 2017
37e9433
change the initial none message to be centered without affecting sand…
brianmtreese Sep 29, 2017
345245f
Merge pull request #53 from SoCreate/feature/fix-command-bar-headers-…
lurock Sep 29, 2017
85260b7
add change log notes for 2.0.3
lurock Sep 29, 2017
383dc48
2.0.3
lurock Sep 29, 2017
dff2962
fix issues with embed mode
brianmtreese Sep 29, 2017
f5973ce
Merge pull request #54 from SoCreate/feature/fix-embed-mode
lurock Sep 29, 2017
ca444cf
add change log notes for 2.0.4
lurock Sep 30, 2017
9774d7b
2.0.4
lurock Sep 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 157 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,160 @@
<a name="2.0.4"></a>
# 2.0.4 (2017-09-29)

### Fixes
* **embedding:** Fix issues with embed mode
([dff2962](https://github.com/SoCreate/angular-playground/commit/dff2962))

<a name="2.0.3"></a>
# 2.0.3 (2017-09-29)

### Fixes
* **style:** Change the initial none message to be centered without affecting sandboxed component displays
([37e9433](https://github.com/SoCreate/angular-playground/commit/37e9433))
* **style:** Set command bar to show hide with css to maintain scroll position
([f7a3cc9](https://github.com/SoCreate/angular-playground/commit/f7a3cc9))
* **style:** Prevent list item headers from inheriting font family
([c96047f](https://github.com/SoCreate/angular-playground/commit/c96047f))
* **style:** Remove link transitions
([046bad0](https://github.com/SoCreate/angular-playground/commit/046bad0))

<a name="2.0.2"></a>
# 2.0.2 (2017-09-28)

### Fixes
* **package peer dependencies:** Fix issue with peer dependencies for 5.0.0-beta.0 and higher
([cd16815](https://github.com/SoCreate/angular-playground/commit/cd16815))

<a name="2.0.1"></a>
# 2.0.1 (2017-09-28)

### Fixes
* **package peer dependencies:** Fix issue with peer dependencies not set to the right versions
([3c7d374](https://github.com/SoCreate/angular-playground/commit/3c7d374))

<a name="2.0.0"></a>
# 2.0.0 (2017-09-28)

### Requirements
* Requires Angular 4.2 or higher
* Requires Typescript version 2.4 or higher
* If using Angular CLI version 1.2 or higher is required
* Requires changing compilerOptions -> module property in "tsconfig.json" or "tsconfig.app.json" to use "esnext"

### Features
* **command bar:** New improved look to the command bar for navigating between
scenarios and components that have been sandboxed
* **perfomance:** Change the tool to now build an index of sandboxes and only
load a sandbox and its dependencies lazily when switching to that scenario
with the command bar
* **labels:** Added a new way to differentiate sandboxes by giving them a specific
label that is shown in the command bar for categorizing and can be used in search

### Fixes
* **command bar:** Fix edge browser keydown events
([8c54c41](https://github.com/SoCreate/angular-playground/commit/8c54c41))
* **examples:** Fix examples showing how to embed sandboxes
([8ac215c](https://github.com/SoCreate/angular-playground/commit/8ac215c))
* **performance:** Change code to lazy load sandbox bundle when scenario is selected
([4bc33ff](https://github.com/SoCreate/angular-playground/commit/4bc33ff))
* **performance:** Update build to create functions that lazy load sandboxes
([503c67b](https://github.com/SoCreate/angular-playground/commit/503c67b))
* **command bar:** Change code to work with menu items index that was built from all
sandboxes to seperate the loading of components from listing what is available to
be loaded so that a sandboxes/related components are not loaded in one large bundle
but instead each sandbox is independently bundled
([503c67b](https://github.com/SoCreate/angular-playground/commit/503c67b))
* **performance:** Add new factory methods to get menu items/Remove combining of sandbox
([eb40a11](https://github.com/SoCreate/angular-playground/commit/eb40a11))
* **performance:** Update build to create functions that lazy load sandboxes
([b4d241b](https://github.com/SoCreate/angular-playground/commit/b4d241b))
* **command bar:** Update api to only deal with sandbox type information
([2a188de](https://github.com/SoCreate/angular-playground/commit/2a188de))
* **typescript:** Update tsconfig to support using import function for lazy loading
([7e1ca6f](https://github.com/SoCreate/angular-playground/commit/7e1ca6f))
* **package upgrades:** Update webpack example to newer version of angular
([3fc808a](https://github.com/SoCreate/angular-playground/commit/3fc808a))
* **style:** Change menu style
([49256d8](https://github.com/SoCreate/angular-playground/commit/49256d8))
* **package upgrades:** Upgrade sample and dev cli projects to latest package versions
([f3e970f](https://github.com/SoCreate/angular-playground/commit/f3e970f))

### Breaking Changes
* **component scenario combining removed:** Each sandbox will now uniquely show up as
its own section in the command bar even if it is sandboxing the same component
* **embed url:** Embed url has now changed to uniquely reference the sandbox file
based on the path within the application

Before:
```html
<a href="http://localhost:4201/?scenario=feature1.PersonBioComponent/a%20special%20case">View in Playground</a>
<iframe src="http://localhost:4201/?scenario=feature1.PersonBioComponent/a%20special%20case&embed=1" frameborder="0" width="100%"></iframe>
```

After:
```html
<a href="http://localhost:4201/?scenario=.%2Fapp%2Ffeature1%2Fperson-bio.component.other.sandbox/a%20special%20case">View in Playground</a>
<iframe src="http://localhost:4201/?scenario=.%2Fapp%2Ffeature1%2Fperson-bio.component.other.sandbox/a%20special%20case&embed=1" frameborder="0" width="100%"></iframe>
```

* **api:** Rename prependText property to label
([05b6bba](https://github.com/SoCreate/angular-playground/commit/05b6bba))

Before:
```typescript
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {prependText:'feature1.'})
.add('a special case', {template:`<h1>Special Bio</h1><ex-person-bio></ex-person-bio>`});
```

After:
```typescript
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {label:'feature1'})
.add('a special case', {template:`<h1>Special Bio</h1><ex-person-bio></ex-person-bio>`});
```

* **typescript configuration:** In order to lazy load sandboxes for components the
new version requires that the compilerOptions -> module option in the tsconfig file
be set to "esnext"

Before:
```json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "es2015",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
```

After:
```json
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"baseUrl": "./",
"module": "esnext",
"types": []
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
```


<a name="1.7.1"></a>
# 1.7.1 (2017-08-21)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {label:'feature1.'})
export default sandboxOf(PersonBioComponent, {label:'feature1'})
.add('a special case', {template:`<h1>Special Bio</h1><ex-person-bio></ex-person-bio>`});
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {sandboxOf} from 'angular-playground';
import {PersonBioComponent} from './person-bio.component';
export default sandboxOf(PersonBioComponent, {label:'feature1.'})
export default sandboxOf(PersonBioComponent, {label:'feature1'})
.add('default', {template:`<ex-person-bio></ex-person-bio>`});
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PersonDetailsComponent } from './person-details.component';
import { PersonBioComponent } from './person-bio.component';

export default sandboxOf(PersonDetailsComponent, {
label:'feature1.',
label:'feature1',
declarations: [PersonBioComponent]
})
.add('person with name and twitter', {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PersonBioComponent } from './person-bio.component';
import { sandboxOf } from 'angular-playground';

export default sandboxOf(PersonBioComponent, {label:'shared.'})
export default sandboxOf(PersonBioComponent, {label:'shared'})
.add('no message', {
template:`<global-person-bio></global-person-bio>`
})
Expand Down
50 changes: 49 additions & 1 deletion examples/example-app-angular-cli/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,54 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<ng-app>Loading...</ng-app>
<ng-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
ng-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</ng-app>
</body>
</html>
50 changes: 49 additions & 1 deletion examples/example-app-embed-mode/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<my-app>Loading...</my-app>
<my-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
my-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</my-app>
</body>
</html>
50 changes: 49 additions & 1 deletion examples/example-app-webpack/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,54 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<my-app>Loading...</my-app>
<my-app>
<style>
html {
background: #fff;
font-family: Arial, Helvetica, sans-serif;
}
my-app {
display: flex;
flex-direction: column;
height: 100vh;
justify-content: center;
}
h1 {
color: #666;
font-size: 2.827em;
font-weight: normal;
padding: 1em 1em 3em;
text-align: center;
}
.loader,
.loader:after {
border-radius: 50%;
width: 10em;
height: 10em;
}
.loader {
display: block;
margin: 3.75rem auto;
font-size: 0.625rem;
position: relative;
border: 1.1em solid rgba(0, 0, 0, 0.05);
border-left: 1.1em solid #ccc;
transform: translateZ(0);
animation: loader 1.1s infinite linear;
}
@keyframes loader {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<h1>
<span class="loader"></span>
Loading...
</h1>
</my-app>
</body>
</html>
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-playground",
"version": "1.7.1",
"version": "2.0.4",
"description": "A drop in app module for working on Angular components in isolation (aka Scenario Driven Development).",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
Expand Down Expand Up @@ -35,14 +35,14 @@
},
"homepage": "http://www.angularplayground.it",
"peerDependencies": {
"@angular/common": ">=2.4.1 || >=4.0.0-rc.1",
"@angular/compiler": ">=2.4.1 || >=4.0.0-rc.1",
"@angular/core": ">=2.4.1 || >=4.0.0-rc.1",
"@angular/forms": ">=2.4.1 || >=4.0.0-rc.1",
"@angular/platform-browser": ">=2.4.1 || >=4.0.0-rc.1",
"@angular/platform-browser-dynamic": ">=2.4.1 || >=4.0.0-rc.1",
"rxjs": ">=5.0.1",
"zone.js": ">=0.7.2"
"@angular/common": ">=4.2.0 || >=5.0.0-beta.0",
"@angular/compiler": ">=4.2.0 || >=5.0.0-beta.0",
"@angular/core": ">=4.2.0 || >=5.0.0-beta.0",
"@angular/forms": ">=4.2.0 || >=5.0.0-beta.0",
"@angular/platform-browser": ">=4.2.0 || >=5.0.0-beta.0",
"@angular/platform-browser-dynamic": ">=4.2.0 || >=5.0.0-beta.0",
"rxjs": ">=5.4.2",
"zone.js": ">=0.8.14"
},
"dependencies": {
"node-watch": "^0.4.1"
Expand Down
Loading