From e5e9b87bed108c73c8225f3de038e2c3d3b2ca31 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 19 Oct 2022 22:20:57 +0200 Subject: [PATCH 1/3] delete svelte example --- code/examples/svelte-kitchen-sink/.gitignore | 16 --- .../svelte-kitchen-sink/.storybook/main.ts | 56 --------- .../svelte-kitchen-sink/.storybook/preview.js | 5 - code/examples/svelte-kitchen-sink/README.md | 5 - .../svelte-kitchen-sink/jest.config.js | 14 --- .../examples/svelte-kitchen-sink/package.json | 40 ------- .../svelte-kitchen-sink/public/favicon.ico | Bin 88878 -> 0 bytes .../src/components/Button.svelte | 44 ------- .../src/components/Button.test.js | 32 ------ .../src/components/Context.svelte | 10 -- .../src/components/Counter.svelte | 20 ---- .../examples/svelte-kitchen-sink/src/logo.png | Bin 8350 -> 0 bytes .../src/stories/BorderDecorator.svelte | 15 --- .../addon-actions.stories.storyshot | 21 ---- .../addon-backgrounds.stories.storyshot | 44 ------- .../addon-docs.stories.storyshot | 87 -------------- .../addon-links.stories.storyshot | 27 ----- .../__snapshots__/argstable.stories.storyshot | 24 ---- .../__snapshots__/button.stories.storyshot | 107 ------------------ .../decorators.stories.storyshot | 27 ----- .../__snapshots__/welcome.stories.storyshot | 102 ----------------- .../src/stories/argstable.stories.js | 20 ---- .../src/stories/button.stories.js | 33 ------ .../src/stories/decorators.stories.js | 23 ---- .../src/stories/error.stories.js | 14 --- .../src/stories/views/ActionKnobView.svelte | 9 -- .../src/stories/views/ActionLinkView.svelte | 20 ---- .../src/stories/views/ArgsTableView.svelte | 70 ------------ .../src/stories/views/ButtonView.svelte | 35 ------ .../src/stories/views/ErrorView.svelte | 4 - .../src/stories/views/WelcomeView.svelte | 81 ------------- .../src/stories/welcome.stories.js | 9 -- .../svelte-kitchen-sink/svelte.config.js | 5 - .../svelte-kitchen-sink/svelteshots.test.js | 9 -- .../svelte-kitchen-sink/tsconfig.json | 12 -- 35 files changed, 1040 deletions(-) delete mode 100644 code/examples/svelte-kitchen-sink/.gitignore delete mode 100644 code/examples/svelte-kitchen-sink/.storybook/main.ts delete mode 100644 code/examples/svelte-kitchen-sink/.storybook/preview.js delete mode 100644 code/examples/svelte-kitchen-sink/README.md delete mode 100644 code/examples/svelte-kitchen-sink/jest.config.js delete mode 100644 code/examples/svelte-kitchen-sink/package.json delete mode 100644 code/examples/svelte-kitchen-sink/public/favicon.ico delete mode 100644 code/examples/svelte-kitchen-sink/src/components/Button.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/components/Button.test.js delete mode 100644 code/examples/svelte-kitchen-sink/src/components/Context.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/components/Counter.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/logo.png delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/BorderDecorator.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-actions.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-backgrounds.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-docs.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-links.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/argstable.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/button.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/decorators.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/argstable.stories.js delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/button.stories.js delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/decorators.stories.js delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/error.stories.js delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/ActionKnobView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/ActionLinkView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/ArgsTableView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/ButtonView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/ErrorView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/views/WelcomeView.svelte delete mode 100644 code/examples/svelte-kitchen-sink/src/stories/welcome.stories.js delete mode 100644 code/examples/svelte-kitchen-sink/svelte.config.js delete mode 100644 code/examples/svelte-kitchen-sink/svelteshots.test.js delete mode 100644 code/examples/svelte-kitchen-sink/tsconfig.json diff --git a/code/examples/svelte-kitchen-sink/.gitignore b/code/examples/svelte-kitchen-sink/.gitignore deleted file mode 100644 index f25c23c591ba..000000000000 --- a/code/examples/svelte-kitchen-sink/.gitignore +++ /dev/null @@ -1,16 +0,0 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -node_modules - -# testing -coverage - -# production -build - -# misc -.DS_Store -.env -npm-debug.log -yarn-error.log diff --git a/code/examples/svelte-kitchen-sink/.storybook/main.ts b/code/examples/svelte-kitchen-sink/.storybook/main.ts deleted file mode 100644 index 3353a715d45d..000000000000 --- a/code/examples/svelte-kitchen-sink/.storybook/main.ts +++ /dev/null @@ -1,56 +0,0 @@ -const path = require('path'); -const sveltePreprocess = require('svelte-preprocess'); - -const mainConfig: import('@storybook/svelte-webpack5').StorybookConfig = { - stories: ['../src/stories/**/*.stories.@(ts|tsx|js|jsx||mdx|svelte)'], - logLevel: 'debug', - addons: [ - '@storybook/addon-storysource', - '@storybook/addon-actions', - { - name: '@storybook/addon-docs', - options: { - configureJSX: true, - }, - }, - '@storybook/addon-controls', - '@storybook/addon-interactions', - '@storybook/addon-links', - '@storybook/addon-backgrounds', - '@storybook/addon-viewport', - '@storybook/addon-a11y', - '@storybook/addon-highlight', - ], - webpackFinal: async (config) => { - const rules = config.module?.rules || []; - rules.push({ - test: [/\.stories\.js$/, /index\.js$/], - use: [require.resolve('@storybook/source-loader')], - include: [path.resolve(__dirname, '../src')], - enforce: 'pre', - }); - - // eslint-disable-next-line no-param-reassign - config.module = config.module || {}; - // eslint-disable-next-line no-param-reassign - config.module.rules = rules; - - return config; - }, - core: { - channelOptions: { allowFunction: false, maxDepth: 10 }, - disableTelemetry: true, - }, - staticDirs: ['../public'], - features: { - breakingChangesV7: true, - }, - framework: { - name: '@storybook/svelte-webpack5', - options: { - preprocess: sveltePreprocess(), - }, - }, -}; - -module.exports = mainConfig; diff --git a/code/examples/svelte-kitchen-sink/.storybook/preview.js b/code/examples/svelte-kitchen-sink/.storybook/preview.js deleted file mode 100644 index f203c8b3223c..000000000000 --- a/code/examples/svelte-kitchen-sink/.storybook/preview.js +++ /dev/null @@ -1,5 +0,0 @@ -export const parameters = { - docs: { - iframeHeight: 300, - }, -}; diff --git a/code/examples/svelte-kitchen-sink/README.md b/code/examples/svelte-kitchen-sink/README.md deleted file mode 100644 index 22b59e456717..000000000000 --- a/code/examples/svelte-kitchen-sink/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Storybook Svelte Demo - -This example directory represents the application you wish to integrate storybook into. - -Run `yarn install` to sync Storybook module with the source code and run `yarn storybook` to start the Storybook. diff --git a/code/examples/svelte-kitchen-sink/jest.config.js b/code/examples/svelte-kitchen-sink/jest.config.js deleted file mode 100644 index f1954f5b6023..000000000000 --- a/code/examples/svelte-kitchen-sink/jest.config.js +++ /dev/null @@ -1,14 +0,0 @@ -const config = require('../../jest.config'); - -module.exports = { - ...config, - roots: [__dirname], - transform: { - ...config.transform, - '.*\\.(svelte)$': ['svelte-jester', { preprocess: require.resolve('./svelte.config.js') }], - }, - moduleNameMapper: { - '!!raw-loader!.*': '/__mocks__/fileMock.js', - }, - moduleFileExtensions: [...config.moduleFileExtensions, 'svelte'], -}; diff --git a/code/examples/svelte-kitchen-sink/package.json b/code/examples/svelte-kitchen-sink/package.json deleted file mode 100644 index 995c0fcf3184..000000000000 --- a/code/examples/svelte-kitchen-sink/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "svelte-example", - "version": "7.0.0-alpha.39", - "private": true, - "scripts": { - "build-storybook": "storybook build", - "storybook": "storybook dev -p 9009 --no-manager-cache" - }, - "dependencies": { - "global": "^4.4.0" - }, - "devDependencies": { - "@storybook/addon-a11y": "7.0.0-alpha.39", - "@storybook/addon-actions": "7.0.0-alpha.39", - "@storybook/addon-backgrounds": "7.0.0-alpha.39", - "@storybook/addon-controls": "7.0.0-alpha.39", - "@storybook/addon-docs": "7.0.0-alpha.39", - "@storybook/addon-highlight": "7.0.0-alpha.39", - "@storybook/addon-interactions": "7.0.0-alpha.39", - "@storybook/addon-links": "7.0.0-alpha.39", - "@storybook/addon-storyshots": "7.0.0-alpha.39", - "@storybook/addon-storysource": "7.0.0-alpha.39", - "@storybook/addon-viewport": "7.0.0-alpha.39", - "@storybook/addons": "7.0.0-alpha.39", - "@storybook/jest": "^0.0.10", - "@storybook/source-loader": "7.0.0-alpha.39", - "@storybook/svelte": "7.0.0-alpha.39", - "@storybook/svelte-webpack5": "7.0.0-alpha.39", - "@storybook/testing-library": "0.0.14-next.0", - "raw-loader": "^4.0.2", - "storybook": "7.0.0-alpha.39", - "svelte-jester": "^2.3.2", - "svelte-preprocess": "^4.10.6" - }, - "storybook": { - "chromatic": { - "projectToken": "8ob73wgl995" - } - } -} diff --git a/code/examples/svelte-kitchen-sink/public/favicon.ico b/code/examples/svelte-kitchen-sink/public/favicon.ico deleted file mode 100644 index 9e9c880c25b3345c015fe3ac8437f021f65fcbd6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 88878 zcmeI5X^a)c7RQ@M^76jD_ZdaUC4#8I6&1G;ja$@cP@^9-Lqxx5qDJBpjgB!<<8I;- zx41+THUU}RFf0>IjWhB;jx)${oZ8yX>;6L=XN&t;ef`PnfAwdGr8t1GSuul#M$ph@c7bH^$AKwp!VEQ-khD+&-Lg$|!aF?TxCX<%lY!Y~OxJ)z$qJTMx*8`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T z5AL#V&kp7u_Fxvb5TC_&^nO!bv%`Zp`?ZXD@$0gKb#PoVW=#v&i*J`*?BPNj+b`H> z8+-6)-Zm+cZtCD>##9ug1_w1 z3;tnTlFzco3mN~}!z{^hCin~frE);#|NL;KRP6b_#QXDuzpVfBgQbaIAo0KI#@{sl zFV9rW2XEr+|4AG;`y3!gFHXS@$X-ykc@X!k2Rir{aCzsG^B+X2Df9Dg{#T#&?>z)IN?!9O1UaDa6oddy-G{Nv*f z2dJ#2iRol%P7wT)!{6fpulR@T``FF}`G23~!QamX>;imXtYII>C9t8=7k@wHefhZ{ zIu;!Z2ZRH{0pWmfKsX>A5Do|jgag6>;ec>JI3OGl4hRQ?1Hu8}fN(%KP~{wGs&e_O zd4CS<>jeL*wSjeRK9%F*zg##_bsSg@_9yYLaq({v4pa>Xz`Dl6-^T&511Iwgb37Kn zxC{0H9^el&2&y@T`p{{gb=jLrZ6 diff --git a/code/examples/svelte-kitchen-sink/src/components/Button.svelte b/code/examples/svelte-kitchen-sink/src/components/Button.svelte deleted file mode 100644 index 37b084117fb2..000000000000 --- a/code/examples/svelte-kitchen-sink/src/components/Button.svelte +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/code/examples/svelte-kitchen-sink/src/components/Button.test.js b/code/examples/svelte-kitchen-sink/src/components/Button.test.js deleted file mode 100644 index 2ef12f35e2c1..000000000000 --- a/code/examples/svelte-kitchen-sink/src/components/Button.test.js +++ /dev/null @@ -1,32 +0,0 @@ -import global from 'global'; -import Button from './Button.svelte'; - -const { document } = global; - -let target; -let component; - -describe('Button Component', () => { - beforeEach(() => { - target = document.createElement('div'); - - component = new Button({ target }); - }); - - it('should render `text` property', () => { - return new Promise((done) => { - const text = 'Hello world'; - const expected = `Round corners ${text}`; - - component.$on('afterUpdate', () => { - const componentText = target.firstChild.textContent.trim(); - - expect(componentText).toEqual(expected); - - done(); - }); - - component.$set({ text }); - }); - }); -}); diff --git a/code/examples/svelte-kitchen-sink/src/components/Context.svelte b/code/examples/svelte-kitchen-sink/src/components/Context.svelte deleted file mode 100644 index c0937755dd1b..000000000000 --- a/code/examples/svelte-kitchen-sink/src/components/Context.svelte +++ /dev/null @@ -1,10 +0,0 @@ - - - -
- Value read from context: {value} -
diff --git a/code/examples/svelte-kitchen-sink/src/components/Counter.svelte b/code/examples/svelte-kitchen-sink/src/components/Counter.svelte deleted file mode 100644 index a4a8f89c31e2..000000000000 --- a/code/examples/svelte-kitchen-sink/src/components/Counter.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -
-

Svelte - Counter

-

You clicked {count} times

- - - - -
diff --git a/code/examples/svelte-kitchen-sink/src/logo.png b/code/examples/svelte-kitchen-sink/src/logo.png deleted file mode 100644 index 92b1560c6de132943c5a02339d3088fae8c78656..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8350 zcmbt&1z1$i*Z6Dgk5CmzIl$Nfg6#*#;X;5hpK@jOi1f@YFL^>r!1f)?) z-iv;}*6;m2|L1-F=kCsY<}>Hay>sTy+%t1Fel`cdRh3kf00;yCAm9a@EkGZsC@7d| z>1Zmcs9pMA0gZREa`r&u0{~|iPj?+nq0HDLr(9mG$V1ka0j)94Xg$W8FE-p46f{=&^L5M&QlhKe9lTeW&5EKj) zRJ648^z_8!jLeL5%rtcLbmxsgKvPT%Oad${0y+`|3Elr$&RPKk79<`L4}&lQPy_^q zfSk31F9bN5ps@29^{-&UFwoGkpy#zzKPvyNInQBe5GXpv*(87m0}bIYI5>jD7f7R7r9I``R?#nlXVg61E?{+kM3eKZXDTlsegt8g6SpjNDAIEj<9 zoh`@?*j!%)%-SJ$;OHl^<4t#3pMpFY}h5B}xRvsB3$&e`-_u98TFu zQ73ZQ)qMyEeIOg@=rut~uSa$LPc`7`a^~lKp5QM@u<(_#%ZEF4uEAVi{?egz3#eFy z3~nPC>e#DkO|JjP%?Qh~`bxff`e|YHrLkb@8k71{{Mm#6#cHF2bu9hIs&>fAu_v_7 z>DNs#*<$K#c&1orUHke;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#Hp;~CJ`vMnUnPGD^bPvPBh>KCD^VqcTAozCD#3(e zEQCr_ieb3;H2oCh{rCx+T6>~b17yXjhc?3myA^Nox?Z^}*AZ7Mb$HV@ZFrxnXVq`P zdp_`fAoc4{$RM&0hX)!Iqs0p7M`KMCz8aQtG8_T=VSIYnjW553*n3FvkczEHMfhRj z*w^68$nUx8sR?2~#8386V~=}^1~lWvU9M$Zi%|H?skdra>bhY?a0s#2jfa+SP?XdN|tt9 zYKz%}cf2xu&1Xw8=Bs3jg=KuGWG(Sq(vY2Q3hwKeA0FQhF#i<+KzJD?DRuJ5Y>!BE zZghQ6J<;Y^r^q(Y#yhOk(5}ik1B|Z7vQdZbL)O}@>Z`N}ABM6v^L5iTV-HU+uuYfW zeH1Co`654t!(D|m;(@ekd04BHRMyQQoqT$8;;{LoC$WKp0Z#*?l( - export let color = 'red'; - - -
- -
- - diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-actions.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-actions.stories.storyshot deleted file mode 100644 index 9628f3d76163..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-actions.stories.storyshot +++ /dev/null @@ -1,21 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addon/Actions Action on component method 1`] = ` -
- -
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-backgrounds.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-backgrounds.stories.storyshot deleted file mode 100644 index 7d5e0bac2e1e..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-backgrounds.stories.storyshot +++ /dev/null @@ -1,44 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addon/Backgrounds story 1 1`] = ` -
-

- Button view -

- - - -

- A little text to show this is a view. -

- -

- If we need to test components in a Svelte environment, for instance to test slot behaviour, -

- -

- then wrapping the component up in a view -

- -

- made just for the story is the simplest way to achieve this. -

-
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-docs.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-docs.stories.storyshot deleted file mode 100644 index 1245061655ac..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-docs.stories.storyshot +++ /dev/null @@ -1,87 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addon/Docs rounded 1`] = ` -
-

- Button view -

- - - -

- A little text to show this is a view. -

- -

- If we need to test components in a Svelte environment, for instance to test slot behaviour, -

- -

- then wrapping the component up in a view -

- -

- made just for the story is the simplest way to achieve this. -

-
-`; - -exports[`Storyshots Addon/Docs square 1`] = ` -
-

- Button view -

- - - -

- A little text to show this is a view. -

- -

- If we need to test components in a Svelte environment, for instance to test slot behaviour, -

- -

- then wrapping the component up in a view -

- -

- made just for the story is the simplest way to achieve this. -

-
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-links.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-links.stories.storyshot deleted file mode 100644 index 677c69de4bfa..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/addon-links.stories.storyshot +++ /dev/null @@ -1,27 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Addon/Links Go to welcome view 1`] = ` -
-
-

- Link Action -

- - -
-
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/argstable.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/argstable.stories.storyshot deleted file mode 100644 index d135617e8100..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/argstable.stories.storyshot +++ /dev/null @@ -1,24 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Args Table Args Table 1`] = ` -
-
-    {
-  "string": "string",
-  "number": 0,
-  "unionstr": "a",
-  "unionnumeric": 1,
-  "union": null,
-  "required": ""
-}
-  
- -
- -
- - -
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/button.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/button.stories.storyshot deleted file mode 100644 index 9cecda9f29c6..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/button.stories.storyshot +++ /dev/null @@ -1,107 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Button Rounded 1`] = ` -
-

- Button view -

- - - -

- A little text to show this is a view. -

- -

- If we need to test components in a Svelte environment, for instance to test slot behaviour, -

- -

- then wrapping the component up in a view -

- -

- made just for the story is the simplest way to achieve this. -

-
-`; - -exports[`Storyshots Button Square 1`] = ` -
-

- Button view -

- - - -

- A little text to show this is a view. -

- -

- If we need to test components in a Svelte environment, for instance to test slot behaviour, -

- -

- then wrapping the component up in a view -

- -

- made just for the story is the simplest way to achieve this. -

-
-`; - -exports[`Storyshots Button With Default Render 1`] = ` -
- -
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/decorators.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/decorators.stories.storyshot deleted file mode 100644 index 4ff491be39b0..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/decorators.stories.storyshot +++ /dev/null @@ -1,27 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Decorators Decorators 1`] = ` -
-
-
-
- Value read from context: setted from decorator -
- -
- - - -
- - -
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot b/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot deleted file mode 100644 index 8df9d140f482..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/__snapshots__/welcome.stories.storyshot +++ /dev/null @@ -1,102 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Storyshots Welcome Welcome 1`] = ` -
-
-

- Welcome to Storybook for Svelte -

- -

- This is a UI component dev environment for your svelte app. -

- -

- We've added some basic stories inside the - - src/stories - - directory. - - - A story is like a visual test case - - - and represents a single state of one or more UI components. - You can have as many stories as you want. -

- -

- Svelte -

- -

- Just like that, you can add your own components as stories. - You can also edit those components and see changes right away. - -
- - (Try editing the - - Button - - component - located at - - src/stories/views/Welcome.svelte - - .) -

- -

- Usually we create stories with smaller UI components in the app. -
- - Have a look at the - - - Writing Stories - - - section in our documentation. -

- -

- - NOTE: - - -
- - Have a look at the - - - .storybook/webpack.config.js - - - to add webpack - loaders and plugins you are using in this project. -

-
-
-`; diff --git a/code/examples/svelte-kitchen-sink/src/stories/argstable.stories.js b/code/examples/svelte-kitchen-sink/src/stories/argstable.stories.js deleted file mode 100644 index c804e96cc101..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/argstable.stories.js +++ /dev/null @@ -1,20 +0,0 @@ -import ArgsTableView from './views/ArgsTableView.svelte'; -// eslint-disable-next-line -import srcArgsTableView from '!!raw-loader!./views/ArgsTableView.svelte'; - -export default { - title: 'Args Table', - component: ArgsTableView, -}; - -export const ArgsTable = (args) => ({ - Component: ArgsTableView, - props: args, -}); -ArgsTable.parameters = { - docs: { - source: { - code: srcArgsTableView, - }, - }, -}; diff --git a/code/examples/svelte-kitchen-sink/src/stories/button.stories.js b/code/examples/svelte-kitchen-sink/src/stories/button.stories.js deleted file mode 100644 index 58bf8020c196..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/button.stories.js +++ /dev/null @@ -1,33 +0,0 @@ -import ButtonView from './views/ButtonView.svelte'; -import Button from '../components/Button.svelte'; - -export default { - title: 'Button', - component: Button, -}; - -const Template = (args) => ({ - Component: ButtonView, - props: { - ...args, - }, -}); - -export const Rounded = Template.bind({}); -Rounded.args = { - rounded: true, - text: 'Rounded', -}; - -export const Square = Template.bind({}); -Square.args = { - rounded: false, - text: 'Square', -}; - -export const WithDefaultRender = { - args: { - rounded: false, - text: 'Magic!', - }, -}; diff --git a/code/examples/svelte-kitchen-sink/src/stories/decorators.stories.js b/code/examples/svelte-kitchen-sink/src/stories/decorators.stories.js deleted file mode 100644 index 221549146dcb..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/decorators.stories.js +++ /dev/null @@ -1,23 +0,0 @@ -import { setContext } from 'svelte'; -import Context from '../components/Context.svelte'; -import BorderDecorator from './BorderDecorator.svelte'; - -export default { - title: 'Decorators', - component: Context, - decorators: [ - () => BorderDecorator, - () => ({ Component: BorderDecorator, props: { color: 'blue' } }), - ], -}; - -export const Decorators = () => ({ - on: { - click: () => {}, - }, -}); -Decorators.decorators = [ - () => { - setContext('storybook/test', 'settled from decorator'); - }, -]; diff --git a/code/examples/svelte-kitchen-sink/src/stories/error.stories.js b/code/examples/svelte-kitchen-sink/src/stories/error.stories.js deleted file mode 100644 index 21be1c4add54..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/error.stories.js +++ /dev/null @@ -1,14 +0,0 @@ -import ErrorView from './views/ErrorView.svelte'; - -export default { - title: 'Error', - component: ErrorView, - parameters: { - chromatic: { disable: true }, - storyshots: { disable: true }, - }, -}; - -export const Error = () => ({ - Component: ErrorView, -}); diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/ActionKnobView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/ActionKnobView.svelte deleted file mode 100644 index fb37b663ce16..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/ActionKnobView.svelte +++ /dev/null @@ -1,9 +0,0 @@ -
-

I am interactive

-
- - diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/ActionLinkView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/ActionLinkView.svelte deleted file mode 100644 index 84752d893d56..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/ActionLinkView.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -
-

Link Action

- - -
- - diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/ArgsTableView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/ArgsTableView.svelte deleted file mode 100644 index 2739ab2f0a86..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/ArgsTableView.svelte +++ /dev/null @@ -1,70 +0,0 @@ - - - -
{JSON.stringify(preview, null, '  ')}
- - - -
- - -
/** Close description */ dispatch('close')}/> - - - - - - diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/ButtonView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/ButtonView.svelte deleted file mode 100644 index e0e809cec8bd..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/ButtonView.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -

Button view

- -

A little text to show this is a view.

-

If we need to test components in a Svelte environment, for instance to test slot behaviour,

-

then wrapping the component up in a view

-

made just for the story is the simplest way to achieve this.

diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/ErrorView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/ErrorView.svelte deleted file mode 100644 index 50847c1e169f..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/ErrorView.svelte +++ /dev/null @@ -1,4 +0,0 @@ - \ No newline at end of file diff --git a/code/examples/svelte-kitchen-sink/src/stories/views/WelcomeView.svelte b/code/examples/svelte-kitchen-sink/src/stories/views/WelcomeView.svelte deleted file mode 100644 index f3bfc9442b3d..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/views/WelcomeView.svelte +++ /dev/null @@ -1,81 +0,0 @@ -
-

Welcome to Storybook for Svelte

-

- This is a UI component dev environment for your svelte app. -

-

- We've added some basic stories inside the src/stories directory. - A story is like a visual test case - and represents a single state of one or more UI components. - You can have as many stories as you want. -

- -

Svelte

- -

- Just like that, you can add your own components as stories. - You can also edit those components and see changes right away. -
- (Try editing the Button component - located at src/stories/views/Welcome.svelte.) -

-

- Usually we create stories with smaller UI components in the app.
- Have a look at the - Writing Stories - section in our documentation. -

-

- NOTE: -
- Have a look at the - .storybook/webpack.config.js - to add webpack - loaders and plugins you are using in this project. -

-
- - diff --git a/code/examples/svelte-kitchen-sink/src/stories/welcome.stories.js b/code/examples/svelte-kitchen-sink/src/stories/welcome.stories.js deleted file mode 100644 index 865dbdc60663..000000000000 --- a/code/examples/svelte-kitchen-sink/src/stories/welcome.stories.js +++ /dev/null @@ -1,9 +0,0 @@ -import WelcomeView from './views/WelcomeView.svelte'; - -export default { - title: 'Welcome', -}; - -export const Welcome = () => ({ - Component: WelcomeView, -}); diff --git a/code/examples/svelte-kitchen-sink/svelte.config.js b/code/examples/svelte-kitchen-sink/svelte.config.js deleted file mode 100644 index 2dd36643e8b8..000000000000 --- a/code/examples/svelte-kitchen-sink/svelte.config.js +++ /dev/null @@ -1,5 +0,0 @@ -const sveltePreprocess = require('svelte-preprocess'); - -module.exports = { - preprocess: sveltePreprocess(), -}; diff --git a/code/examples/svelte-kitchen-sink/svelteshots.test.js b/code/examples/svelte-kitchen-sink/svelteshots.test.js deleted file mode 100644 index fd14ec12becb..000000000000 --- a/code/examples/svelte-kitchen-sink/svelteshots.test.js +++ /dev/null @@ -1,9 +0,0 @@ -import path from 'path'; -import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots'; - -initStoryshots({ - framework: 'svelte', - configPath: path.join(__dirname, '.storybook'), - integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') }, - test: multiSnapshotWithOptions(), -}); diff --git a/code/examples/svelte-kitchen-sink/tsconfig.json b/code/examples/svelte-kitchen-sink/tsconfig.json deleted file mode 100644 index 0795a3e7f236..000000000000 --- a/code/examples/svelte-kitchen-sink/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "target": "ES2020", - "module": "ES2020", - "esModuleInterop": true, - "skipLibCheck": true, - "strict": true, - "moduleResolution": "Node" - }, - "include": ["src/*"] -} From 2f717c7447acca8d014a381325e44c914493b7aa Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 19 Oct 2022 22:30:19 +0200 Subject: [PATCH 2/3] remove svelte example references --- code/workspace.json | 5 -- code/yarn.lock | 159 ++------------------------------------------ 2 files changed, 5 insertions(+), 159 deletions(-) diff --git a/code/workspace.json b/code/workspace.json index d6697a33e062..18d273efb0c3 100644 --- a/code/workspace.json +++ b/code/workspace.json @@ -436,11 +436,6 @@ "type": "library", "implicitDependencies": [] }, - "svelte-example": { - "root": "examples/svelte-kitchen-sink", - "type": "library", - "implicitDependencies": [] - }, "vue-3-cli-example": { "root": "examples/vue-3-cli", "type": "library", diff --git a/code/yarn.lock b/code/yarn.lock index b919f513e2a8..f308216aabf4 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6558,7 +6558,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-interactions@7.0.0-alpha.39, @storybook/addon-interactions@workspace:*, @storybook/addon-interactions@workspace:addons/interactions": +"@storybook/addon-interactions@workspace:*, @storybook/addon-interactions@workspace:addons/interactions": version: 0.0.0-use.local resolution: "@storybook/addon-interactions@workspace:addons/interactions" dependencies: @@ -8696,7 +8696,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/svelte-webpack5@7.0.0-alpha.39, @storybook/svelte-webpack5@workspace:*, @storybook/svelte-webpack5@workspace:frameworks/svelte-webpack5": +"@storybook/svelte-webpack5@workspace:*, @storybook/svelte-webpack5@workspace:frameworks/svelte-webpack5": version: 0.0.0-use.local resolution: "@storybook/svelte-webpack5@workspace:frameworks/svelte-webpack5" dependencies: @@ -9981,13 +9981,6 @@ __metadata: languageName: node linkType: hard -"@types/pug@npm:^2.0.4": - version: 2.0.6 - resolution: "@types/pug@npm:2.0.6" - checksum: 8e7a3b6c1158d3a87b643c91f6cf2552ae781bc2a8f8b17a61e7b1ddd9ce480fd3483459a9b6e0f205ebe158ed67c11fd9a3206262057a14f655138c2322b0c9 - languageName: node - linkType: hard - "@types/puppeteer-core@npm:^2.1.0": version: 2.1.0 resolution: "@types/puppeteer-core@npm:2.1.0" @@ -10095,15 +10088,6 @@ __metadata: languageName: node linkType: hard -"@types/sass@npm:^1.16.0": - version: 1.43.1 - resolution: "@types/sass@npm:1.43.1" - dependencies: - "@types/node": "*" - checksum: cb55602b2f7a356d784e8ad1f432246daf4cb1fe75ef27ede997d41bdee0b08814435966471909762043d5169e009fab4a3b14db98e782103081b2da64497304 - languageName: node - linkType: hard - "@types/scheduler@npm:*": version: 0.16.2 resolution: "@types/scheduler@npm:0.16.2" @@ -13886,7 +13870,7 @@ __metadata: languageName: node linkType: hard -"buffer-crc32@npm:^0.2.5, buffer-crc32@npm:~0.2.3": +"buffer-crc32@npm:~0.2.3": version: 0.2.13 resolution: "buffer-crc32@npm:0.2.13" checksum: cb0a8ddf5cf4f766466db63279e47761eb825693eeba6a5a95ee4ec8cb8f81ede70aa7f9d8aeec083e781d47154290eb5d4d26b3f7a465ec57fb9e7d59c47150 @@ -18309,13 +18293,6 @@ __metadata: languageName: node linkType: hard -"es6-promise@npm:^3.1.2": - version: 3.3.1 - resolution: "es6-promise@npm:3.3.1" - checksum: b4fc87cb8509c001f62f860f97b05d1fd3f87220c8b832578e6a483c719ca272b73a77f2231cb26395fa865e1cab2fd4298ab67786b69e97b8d757b938f4fc1f - languageName: node - linkType: hard - "es6-promise@npm:^4.0.3": version: 4.2.8 resolution: "es6-promise@npm:4.2.8" @@ -33527,18 +33504,6 @@ __metadata: languageName: node linkType: hard -"raw-loader@npm:^4.0.2": - version: 4.0.2 - resolution: "raw-loader@npm:4.0.2" - dependencies: - loader-utils: ^2.0.0 - schema-utils: ^3.0.0 - peerDependencies: - webpack: ^4.0.0 || ^5.0.0 - checksum: 981ebe65e1cee7230300d21ba6dcd8bd23ea81ef4ad2b167c0f62d93deba347f27921d330be848634baab3831cf9f38900af6082d6416c2e937fe612fa6a74ff - languageName: node - linkType: hard - "rc@npm:1.2.8, rc@npm:^1.2.8": version: 1.2.8 resolution: "rc@npm:1.2.8" @@ -35412,7 +35377,7 @@ __metadata: languageName: node linkType: hard -"rimraf@npm:^2.2.8, rimraf@npm:^2.3.4, rimraf@npm:^2.4.1, rimraf@npm:^2.4.3, rimraf@npm:^2.5.2, rimraf@npm:^2.5.3, rimraf@npm:^2.5.4, rimraf@npm:^2.6.1, rimraf@npm:^2.6.2, rimraf@npm:^2.6.3": +"rimraf@npm:^2.2.8, rimraf@npm:^2.3.4, rimraf@npm:^2.4.1, rimraf@npm:^2.4.3, rimraf@npm:^2.5.3, rimraf@npm:^2.5.4, rimraf@npm:^2.6.1, rimraf@npm:^2.6.2, rimraf@npm:^2.6.3": version: 2.7.1 resolution: "rimraf@npm:2.7.1" dependencies: @@ -35636,18 +35601,6 @@ __metadata: languageName: node linkType: hard -"sander@npm:^0.5.0": - version: 0.5.1 - resolution: "sander@npm:0.5.1" - dependencies: - es6-promise: ^3.1.2 - graceful-fs: ^4.1.3 - mkdirp: ^0.5.1 - rimraf: ^2.5.2 - checksum: ce1e423fe5b4e57926df7cc6bd24b70271adfbe7b8ff995784f98101878e037327ac31c7a4e317ac3e1579f410e41a477fef40c2376f0dfa4499c8864a26f499 - languageName: node - linkType: hard - "sane@npm:^4.0.0, sane@npm:^4.0.3, sane@npm:^4.1.0": version: 4.1.0 resolution: "sane@npm:4.1.0" @@ -36465,20 +36418,6 @@ __metadata: languageName: node linkType: hard -"sorcery@npm:^0.10.0": - version: 0.10.0 - resolution: "sorcery@npm:0.10.0" - dependencies: - buffer-crc32: ^0.2.5 - minimist: ^1.2.0 - sander: ^0.5.0 - sourcemap-codec: ^1.3.0 - bin: - sorcery: bin/index.js - checksum: 4b939487c4c157d27b9477c0948def0d10aab3891dc33f2d140a1710a10ef50fa7cf4e22e2c4564226942ec719ce0eb83c8b9096708533c888de34a673ee5934 - languageName: node - linkType: hard - "sort-keys-length@npm:^1.0.0": version: 1.0.1 resolution: "sort-keys-length@npm:1.0.1" @@ -36675,7 +36614,7 @@ __metadata: languageName: node linkType: hard -"sourcemap-codec@npm:^1.3.0, sourcemap-codec@npm:^1.4.1, sourcemap-codec@npm:^1.4.4, sourcemap-codec@npm:^1.4.8": +"sourcemap-codec@npm:^1.4.1, sourcemap-codec@npm:^1.4.4, sourcemap-codec@npm:^1.4.8": version: 1.4.8 resolution: "sourcemap-codec@npm:1.4.8" checksum: f099279fdaae070ff156df7414bbe39aad69cdd615454947ed3e19136bfdfcb4544952685ee73f56e17038f4578091e12b17b283ed8ac013882916594d95b9e6 @@ -37693,35 +37632,6 @@ __metadata: languageName: node linkType: hard -"svelte-example@workspace:examples/svelte-kitchen-sink": - version: 0.0.0-use.local - resolution: "svelte-example@workspace:examples/svelte-kitchen-sink" - dependencies: - "@storybook/addon-a11y": 7.0.0-alpha.39 - "@storybook/addon-actions": 7.0.0-alpha.39 - "@storybook/addon-backgrounds": 7.0.0-alpha.39 - "@storybook/addon-controls": 7.0.0-alpha.39 - "@storybook/addon-docs": 7.0.0-alpha.39 - "@storybook/addon-highlight": 7.0.0-alpha.39 - "@storybook/addon-interactions": 7.0.0-alpha.39 - "@storybook/addon-links": 7.0.0-alpha.39 - "@storybook/addon-storyshots": 7.0.0-alpha.39 - "@storybook/addon-storysource": 7.0.0-alpha.39 - "@storybook/addon-viewport": 7.0.0-alpha.39 - "@storybook/addons": 7.0.0-alpha.39 - "@storybook/jest": ^0.0.10 - "@storybook/source-loader": 7.0.0-alpha.39 - "@storybook/svelte": 7.0.0-alpha.39 - "@storybook/svelte-webpack5": 7.0.0-alpha.39 - "@storybook/testing-library": 0.0.14-next.0 - global: ^4.4.0 - raw-loader: ^4.0.2 - storybook: 7.0.0-alpha.39 - svelte-jester: ^2.3.2 - svelte-preprocess: ^4.10.6 - languageName: unknown - linkType: soft - "svelte-hmr@npm:^0.14.2": version: 0.14.12 resolution: "svelte-hmr@npm:0.14.12" @@ -37740,16 +37650,6 @@ __metadata: languageName: node linkType: hard -"svelte-jester@npm:^2.3.2": - version: 2.3.2 - resolution: "svelte-jester@npm:2.3.2" - peerDependencies: - jest: ">= 27" - svelte: ">= 3" - checksum: 6f1a240b0dc94e1f252f6c9872474fec49e7d50ed1477e676d885a57bc0a90a31d7bae018d847b9d83a1f0060e4a53a5c8da323bcb2e0479daba62a9c0525472 - languageName: node - linkType: hard - "svelte-loader@npm:^3.1.2": version: 3.1.3 resolution: "svelte-loader@npm:3.1.3" @@ -37763,55 +37663,6 @@ __metadata: languageName: node linkType: hard -"svelte-preprocess@npm:^4.10.6": - version: 4.10.7 - resolution: "svelte-preprocess@npm:4.10.7" - dependencies: - "@types/pug": ^2.0.4 - "@types/sass": ^1.16.0 - detect-indent: ^6.0.0 - magic-string: ^0.25.7 - sorcery: ^0.10.0 - strip-indent: ^3.0.0 - peerDependencies: - "@babel/core": ^7.10.2 - coffeescript: ^2.5.1 - less: ^3.11.3 || ^4.0.0 - postcss: ^7 || ^8 - postcss-load-config: ^2.1.0 || ^3.0.0 || ^4.0.0 - pug: ^3.0.0 - sass: ^1.26.8 - stylus: ^0.55.0 - sugarss: ^2.0.0 - svelte: ^3.23.0 - typescript: ^3.9.5 || ^4.0.0 - peerDependenciesMeta: - "@babel/core": - optional: true - coffeescript: - optional: true - less: - optional: true - node-sass: - optional: true - postcss: - optional: true - postcss-load-config: - optional: true - pug: - optional: true - sass: - optional: true - stylus: - optional: true - sugarss: - optional: true - typescript: - optional: true - checksum: aa90206063270bc3a33b0228315c1cae1609897c785a05cfaacd361bf1b55b9e1ff2f3a52cd22a21a587b9fe0305d2e6bee1ce17940c8d09fe4c5beb2eaef68b - languageName: node - linkType: hard - "svelte@npm:^3.0.0, svelte@npm:^3.31.2, svelte@npm:^3.48.0": version: 3.51.0 resolution: "svelte@npm:3.51.0" From 3ce46efe1a02439342a6f2982beade3621c20e1d Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Thu, 20 Oct 2022 15:48:24 +1100 Subject: [PATCH 3/3] Reduce parallelism in examples --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 69bb7c36b3e3..ab9e06bcc4dd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -142,7 +142,7 @@ jobs: executor: class: medium+ name: sb_node_16_browsers - parallelism: 4 + parallelism: 3 steps: - git-shallow-clone/checkout_advanced: clone_options: '--depth 1 --verbose'