44 Commits

Author SHA1 Message Date
Michael Shilman
1a6082a4ad v3.3.0-alpha.3 2017-11-07 12:56:56 +09:00
hypnos
68bfb04784 Fix new lint errors 2017-11-03 03:59:01 +03:00
hypnos
37e4d2384f Fix CLI tests 2017-11-02 03:06:20 +03:00
hypnos
3af05719ad Integrate changes from #2199 into app/angular 2017-11-01 05:11:35 +03:00
hypnos
26bbc69282 Merge remote-tracking branch 'origin/master' into release/3.3
# Conflicts:
#	yarn.lock
2017-10-17 03:27:19 +03:00
Carlos Vega
b95b58c68b Updating react version to 16
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-10-16 16:20:09 -06:00
Carlos Vega
64b7d3daff Bumping @storybook/* versions
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-10-14 10:34:50 -06:00
hypnos
8fd1a24bcf Turn smoke tests back on for angular-cli fixture 2017-09-15 23:33:13 +03:00
Carlos Vega
0ae971f78e Actually, button component is used several times, adding onClick palceholder 2017-09-14 09:09:25 -06:00
Carlos Vega
3d8eb0fcc4 Updating to latest Angular 5 beta 2017-09-14 08:50:03 -06:00
Carlos Vega
c52330b783 Unused onClick handler in button example
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-09-14 08:49:42 -06:00
Carlos Vega
8137d67dfa Debouncing render calls
- Angular's bootstrapping process is async and sometimes storybook triggers two re renders. In these cases, we reach an inconsistent state in which we can't properly dispose the old view and listeners get duplicated. With this debounce function we make sure we're accounting for those times.
2017-09-13 18:35:08 -06:00
Norbert de Langen
4ec19da59c FIX smoke tests for angular 2017-09-13 09:35:51 +02:00
Norbert de Langen
72f75e3d92 FIX build-storybook for angular 2017-09-13 08:02:56 +02:00
Carlos Vega
3616ac3d4a Fixing bug in which HRM reload would cause a duplicate component hence duplicate handlers 2017-09-12 16:38:17 -06:00
Norbert de Langen
82f4ce080a Merge branch '269-angular-support' of github.com:storybooks/storybook into 269-angular-support 2017-09-12 23:36:58 +02:00
Norbert de Langen
aa1e6b1ca9 CHANGE webpack setup to be aligned with other apps 2017-09-12 23:36:21 +02:00
Carlos Vega
31d24dc252 Allowing custom elements inside an angular component 2017-09-12 15:20:37 -06:00
Norbert de Langen
6695d953a6 CLEANUP && FIX unit test 2017-09-12 23:02:52 +02:00
Norbert de Langen
8727989141 CLEANUP angular client/index.js 2017-09-12 22:25:39 +02:00
Norbert de Langen
ac843190c8 CLEANUP angular default addons.js 2017-09-12 22:23:51 +02:00
Norbert de Langen
fea758774f UPDATE angular readme 2017-09-12 22:22:44 +02:00
Carlos Vega
e596022ff1 Adding changes removed by last commit
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-09-12 13:13:03 -06:00
Carlos Vega
cad98bbd69 Merge branch '269-angular-support' of github.com:storybooks/storybook into 269-angular-support 2017-09-12 13:00:16 -06:00
Norbert de Langen
a86701828e SYNC versions && FIX 2017-09-12 20:41:36 +02:00
Norbert de Langen
4874d446aa ADD storybook bins for angular 2017-09-09 14:19:27 +02:00
Norbert de Langen
ab30934249 trying to fix after yarn workspaces change 2017-09-09 13:30:49 +02:00
Carlos Vega
8b011927ee Updating package.json versions to match other apps
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-09-06 10:34:54 -06:00
Carlos Vega
45fa5c14fd Knobs addon and Angular app refactor
- Knobs addon now works (it had a bug in which the knobs would get cleaned *after* the new story was loaded.
- No longer using decarator/classes for dynamic component creation, this will allow us to "inherit" from the components we get from the user.

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-09-06 10:25:56 -06:00
Carlos Vega
1f1688158e Cleaning up angular app on each story load
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-31 09:06:50 -06:00
Carlos Vega
f9114ad5be Experimenting with knobs addon.
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-30 14:15:33 -06:00
Norbert de Langen
e56ad158fd FIX 2017-08-24 20:18:53 +02:00
Carlos Vega
c05e5303ca Updating angular version to latest beta and fixing errors regarding @types/node dependencies
Downgraded the version of `@types/node` used for the knobs addon. There's a well known issue with TS + lerna repositories (hoisted deps and symlinks). This fixes the issue for the time being.

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
fe1abbc8c6 Adding else clausle for stories not sent by the knobs add-on
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
ede5c0e110 Laying the foundation to fix the knobs add-on for angular
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
aec73db8c1 Removing unneded deps and updating deps versions
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
0633526cda Adding clearer examples for Notes and Actions add-ons
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
a8e8ed4600 Enabling support for components with separate templates/css
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Norbert de Langen
edbba98f0e Update README.md 2017-08-18 18:18:58 +02:00
Carlos Vega
ca3520073b Testing add-ons
- Links
- Actions
- Notes

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:58 +02:00
Carlos Vega
7ba1e4dff6 Clarifying strategy used to render dynamic components in angular
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:37 +02:00
Norbert de Langen
3f0cbc9b1a SYNC dependencies 2017-08-18 18:18:37 +02:00
Carlos Vega
efc2c2f562 Updating README
Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:18:37 +02:00
Carlos Vega
99435cfcf5 Angular (2+) support (#269)
This is the first attempt at adding support for Angular based, mostly, on the vue changes.

What works:
- Added angular sample code to the `examples` folder
- Rendering stories and creating stories out of existing angular components
- For the time being, this only supports one-page angular components

What's missing:
- Addons support
- Support for components that have a separate template

Signed-off-by: Carlos Vega <clmvega@gmail.com>
2017-08-18 18:16:45 +02:00