Ian VanSchooten
e957ea220a
Avoid forcing CJS import from core/client
2022-04-04 10:36:30 -04:00
Norbert de Langen
89830ad763
change imports of types & interfaces to be clearly defined as type
2022-03-08 14:15:22 +01:00
Norbert de Langen
5d9a1c811f
remove dev script
...
change the watch mode of yarn build to use the prepare script
add a --watch flag to prepare script
remove the babel --copy-file flag where possible
remove noise from prepare
improve error reporting from prepare
cleanup
2022-01-26 14:12:34 +01:00
Yann Braga
dbbf7c2816
Svelte: add render function to project annotations
2022-01-18 21:27:12 +01:00
Michael Shilman
e88814bbe1
Svelte: Add CSF3 framework render function
2022-01-19 00:33:38 +08:00
Michael Shilman
8888ebc014
Fix prettier 2.3 formatting across the codebase
2022-01-14 23:26:56 +08:00
Tom Coleman
d9483a05a8
Export decorateStory
from frameworks that have it.
...
And no longer emit warnings for exported `decorateStory` or `renderToDOM`
2021-10-30 14:57:20 +11:00
Tom Coleman
06c58d9d6e
Add presets for all frameworks
2021-09-11 16:04:56 +10:00
Tom Coleman
08301a37b0
Fix a bunch of types
2021-09-08 00:01:14 +10:00
Tom Coleman
5982475373
Deepscan cleanups
2021-09-07 17:21:06 +10:00
Tom Coleman
1567164519
Remove a lot of TODOs, clean up
2021-09-06 08:26:48 +10:00
Tom Coleman
6a7ddf38ed
Fix vue+svelte shots
2021-09-02 23:04:11 +10:00
Tom Coleman
23ee4028a3
Update a bunch of types to get things to 'strap
2021-09-01 14:17:05 +10:00
Tom Coleman
3ee15379a1
Update decorators to use a common sanitization
2021-08-31 16:45:44 +10:00
Tom Coleman
d05a6c1442
Close to bootstrapping again
2021-08-27 14:41:07 +10:00
Tom Coleman
2f48a40e4d
Updated all render function to get build working
2021-08-20 07:23:41 +10:00
Ian VanSchooten
f3a44f0c96
Do not try to named import from global
2021-05-25 15:59:46 -04:00
Eirik Sletteberg
841a55bd68
Don't shadow the window global variable
...
This snippet:
```
import { window } from 'global';
```
will let you mock window variables in Jest tests.
However, it breaks hot module reloading in Vite,
because Vite injects code snippets in top of every
file:
```
window.STUFF = 'Vite injected some HMR code here';
import { window } from 'global';
// this fails: Uncaught ReferenceError: Cannot access 'window' before initialization
```
The simple solution is to rename `window` when importing it:
```
import { window as globalWindow } from 'global';
globalWindow.alert('hello world');
```
The code works like before, but Vite will be able to
inject its code snippet without interfering with the
rest of the code.
2021-04-04 18:36:16 +02:00
Norbert de Langen
3308d6441f
Merge branch 'next' into tech/core-builder
...
# Conflicts:
# addons/a11y/package.json
# addons/actions/package.json
# addons/backgrounds/package.json
# addons/controls/package.json
# addons/cssresources/package.json
# addons/design-assets/package.json
# addons/docs/package.json
# addons/essentials/package.json
# addons/events/package.json
# addons/google-analytics/package.json
# addons/graphql/package.json
# addons/jest/package.json
# addons/knobs/package.json
# addons/links/package.json
# addons/queryparams/package.json
# addons/storyshots/storyshots-core/package.json
# addons/storyshots/storyshots-puppeteer/package.json
# addons/storysource/package.json
# addons/toolbars/package.json
# addons/viewport/package.json
# app/angular/package.json
# app/aurelia/package.json
# app/ember/package.json
# app/html/package.json
# app/marionette/package.json
# app/marko/package.json
# app/mithril/package.json
# app/preact/package.json
# app/rax/package.json
# app/react/package.json
# app/riot/package.json
# app/server/package.json
# app/svelte/package.json
# app/vue/package.json
# app/vue3/package.json
# app/web-components/package.json
# dev-kits/addon-decorator/package.json
# dev-kits/addon-parameter/package.json
# dev-kits/addon-preview-wrapper/package.json
# dev-kits/addon-roundtrip/package.json
# examples/cra-kitchen-sink/package.json
# examples/cra-react15/package.json
# examples/cra-ts-essentials/package.json
# examples/cra-ts-kitchen-sink/package.json
# examples/mithril-kitchen-sink/package.json
# examples/react-ts/package.json
# examples/vue-3-cli/package.json
# lib/addons/package.json
# lib/api/package.json
# lib/channel-postmessage/package.json
# lib/channel-websocket/package.json
# lib/channels/package.json
# lib/cli-sb/package.json
# lib/cli-storybook/package.json
# lib/cli/package.json
# lib/cli/src/versions.json
# lib/client-api/package.json
# lib/client-logger/package.json
# lib/codemod/package.json
# lib/components/package.json
# lib/core-events/package.json
# lib/core/package.json
# lib/node-logger/package.json
# lib/postinstall/package.json
# lib/router/package.json
# lib/source-loader/package.json
# lib/theming/package.json
# lib/ui/package.json
2021-02-11 20:24:48 +01:00
j3rem1e
038a20520c
Simplify Svelte decorators
2021-02-10 21:13:23 +01:00
Norbert de Langen
70f9e6494d
types for the storybookOptions across the board
2021-02-06 00:11:12 +01:00
Michael Shilman
1a84472515
Prefer exporting types when possible
2021-02-04 18:08:04 +08:00
Tom Coleman
acf156b278
Move framework to be the first argument to loadCsf
...
(So it is easier to have a trailing arg)
2020-07-06 17:08:33 +10:00
Norbert de Langen
341fc2d90d
FIX linting
2020-03-27 20:04:50 +01:00
Tom Coleman
811684a993
Remove selectedKind/selectedStory API
2020-03-02 11:09:24 +11:00
Tony CABAYE
447e2354e8
Fix Svelte 3 slots for decorators.
2020-02-03 17:10:02 +01:00
Alejandro
d1ea47b9ac
fix lock file
2019-11-12 08:13:51 -05:00
Alejandro
243a732673
fix types and addon version
2019-11-12 08:13:51 -05:00
Alejandro
e7663a5054
Migrate @storybook/svelte to Typescript
2019-11-12 08:13:51 -05:00
Norbert de Langen
27210146d6
CHANGE common-tags stripIndents to dedent, which is a lot smarter about removing indentation from code samples
...
Removes the need for formatter in syntaxhighlighter
2019-09-27 15:02:31 +02:00
Michael Shilman
0ac48981fe
Core: Rename load => configure
2019-07-26 23:10:07 +08:00
Michael Shilman
711c8397f0
Module story format & framework param
2019-06-17 19:04:51 +08:00
Norbert de Langen
e9401d205d
FIX wrapper not always being defined
2019-05-06 19:32:15 +02:00
Norbert de Langen
aa153bc423
FIX tests & make stuff render in storybook
2019-05-06 19:27:57 +02:00
Cameron Stitt
fc64a6e46d
Add svelte v3 support
2019-05-01 15:21:10 +10:00
Norbert de Langen
adfdac73ea
FIX broken examples because of change of story to storyFn
2019-02-19 20:44:36 +01:00
Norbert de Langen
0293514326
MIGRATE storyshots to use new API with build-in context && update snapshots
2018-12-19 00:03:19 +01:00
Gavin King
cabb323d3a
Merge branch 'svelte-support' into further-svelte-support-help
2018-07-24 16:53:01 +02:00
Gavin King
dd1e609f78
Componnents must be destroyed when mounting a new story to clean up any lingering internal event handlers
2018-07-24 16:50:11 +02:00
Khaled Ahmed
fb333e285d
Merge branch 'svelte-support' into further-svelte-support-help
2018-07-24 14:57:28 +01:00
Gavin King
82f8119508
Need to clean up previous manually added events on rerender
2018-07-24 15:49:04 +02:00
Gavin King
c636cb5abe
This seems unnecessary
2018-07-24 15:48:03 +02:00
ekhaled
bed1a50433
cleanup wrapper when available
2018-07-23 19:22:24 +01:00
ekhaled
157a580893
fix actions not working with centered
2018-07-23 19:18:21 +01:00
Gavin King
bad4b3137b
We are not just returning a component
2018-06-19 23:46:55 +02:00
Gavin King
3844c54278
Wrapping up the mount in a named function
2018-06-18 02:38:54 +02:00
Gavin King
09ca251383
Overwriting internal methods is an antipattern
2018-06-18 00:49:32 +02:00
Gavin King
1035614ced
Unnecessary code
2018-06-17 22:11:45 +02:00
Gavin King
f64ec6853f
Added support for actions addon
2018-06-17 07:30:58 +02:00
Gavin King
306b580080
Centered addon working with Svelte
2018-06-17 07:30:58 +02:00