From e6be9eb1790043d282895b5f73e9e2c87ee18954 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 14 Nov 2022 14:04:07 +0100 Subject: [PATCH 1/5] mock renderer in storyshots and add removed api back --- .../src/frameworks/angular/loader.ts | 34 +++++++++++++----- .../src/frameworks/html/loader.ts | 34 +++++++++++++----- .../src/frameworks/preact/loader.ts | 34 +++++++++++++----- .../src/frameworks/rax/loader.ts | 34 +++++++++++++----- .../src/frameworks/react-native/loader.ts | 10 ++---- .../src/frameworks/react/loader.ts | 34 +++++++++++++----- .../src/frameworks/riot/loader.ts | 34 +++++++++++++----- .../src/frameworks/svelte/loader.ts | 35 ++++++++++++++----- .../src/frameworks/vue/loader.ts | 35 ++++++++++++++----- .../src/frameworks/vue3/loader.ts | 34 +++++++++++++----- .../src/frameworks/web-components/loader.ts | 34 +++++++++++++----- 11 files changed, 262 insertions(+), 90 deletions(-) diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts index 401b25764122..40a7def7ffa7 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/angular/loader.ts @@ -33,17 +33,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { setupAngularJestPreset(); - const storybook = jest.requireActual('@storybook/angular'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); + + jest.mock('@storybook/angular', () => { + const renderAPI = jest.requireActual('@storybook/angular'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/angular'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -52,7 +70,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for angular'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/html/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/html/loader.ts index 6cc2b9d3e943..55a8dfdd6b12 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/html/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/html/loader.ts @@ -10,17 +10,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'html'; - const storybook = jest.requireActual('@storybook/html'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; + + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/html', () => { + const renderAPI = jest.requireActual('@storybook/html'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/html'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -29,7 +47,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for HTML'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/preact/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/preact/loader.ts index c45f7c9b8efc..986dcf5f911f 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/preact/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/preact/loader.ts @@ -16,17 +16,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'preact'; - const storybook = jest.requireActual('@storybook/preact'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); + + jest.mock('@storybook/preact', () => { + const renderAPI = jest.requireActual('@storybook/preact'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/preact'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -35,7 +53,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for preact'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/rax/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/rax/loader.ts index 86284861d29b..2d14593fd096 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/rax/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/rax/loader.ts @@ -11,17 +11,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'rax'; - const storybook = jest.requireActual('@storybook/rax'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; + + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/rax', () => { + const renderAPI = jest.requireActual('@storybook/rax'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/rax'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -30,7 +48,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for rax'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/react-native/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/react-native/loader.ts index a31758cdc2b9..7c0e51d23f0f 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/react-native/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/react-native/loader.ts @@ -25,20 +25,14 @@ function configure(options: StoryshotsOptions, storybook: any) { function load(options: StoryshotsOptions) { const storybook = jest.requireActual('@storybook/react-native'); - const clientAPI = jest.requireActual('@storybook/client-api'); - const api = { - ...clientAPI, - ...storybook, - }; - - configure(options, api); + configure(options, storybook); return { renderTree: require('../react/renderTree').default, renderShallowTree: require('../react/renderShallowTree').default, framework: 'react-native' as const, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/react/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/react/loader.ts index 1ba371b1d622..bc6f9153f10f 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/react/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/react/loader.ts @@ -8,24 +8,42 @@ function test(options: StoryshotsOptions): boolean { } function load(options: StoryshotsOptions) { - const storybook = jest.requireActual('@storybook/react'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); + + jest.mock('@storybook/react', () => { + const renderAPI = jest.requireActual('@storybook/react'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/react'); configure({ ...options, - storybook: api, + storybook, }); return { framework: 'react' as const, renderTree: jest.requireActual('./renderTree').default, renderShallowTree: jest.requireActual('./renderShallowTree').default, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/riot/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/riot/loader.ts index 1e352031dfba..bd131ba1f80f 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/riot/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/riot/loader.ts @@ -16,17 +16,35 @@ function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'riot'; mockRiotToIncludeCompiler(); - const storybook = jest.requireActual('@storybook/riot'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); + + jest.mock('@storybook/riot', () => { + const renderAPI = jest.requireActual('@storybook/riot'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/riot'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -35,7 +53,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for riot'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/svelte/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/svelte/loader.ts index 8f874c7468bd..d7a45bc58466 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/svelte/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/svelte/loader.ts @@ -13,26 +13,43 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'svelte'; - const storybook = jest.requireActual('@storybook/svelte'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; + + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/svelte', () => { + const renderAPI = jest.requireActual('@storybook/svelte'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/svelte'); configure({ ...options, - storybook: api, + storybook, }); - return { framework: 'svelte' as const, renderTree: jest.requireActual('./renderTree').default, renderShallowTree: () => { throw new Error('Shallow renderer is not supported for svelte'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/vue/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/vue/loader.ts index 3748e7713633..bb97cd1560b5 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/vue/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/vue/loader.ts @@ -16,26 +16,43 @@ function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'vue'; mockVueToIncludeCompiler(); - const storybook = jest.requireActual('@storybook/vue'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); + + jest.mock('@storybook/vue', () => { + const renderAPI = jest.requireActual('@storybook/vue'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/vue'); configure({ ...options, - storybook: api, + storybook, }); - return { framework: 'vue' as const, renderTree: jest.requireActual('./renderTree').default, renderShallowTree: () => { throw new Error('Shallow renderer is not supported for vue'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/vue3/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/vue3/loader.ts index 980b26e14c98..01de29fa01cc 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/vue3/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/vue3/loader.ts @@ -11,17 +11,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'vue3'; - const storybook = jest.requireActual('@storybook/vue'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; + + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/vue3', () => { + const renderAPI = jest.requireActual('@storybook/vue3'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/vue3'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -30,7 +48,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for Vue 3'); }, - storybook: api, + storybook, }; } diff --git a/code/addons/storyshots/storyshots-core/src/frameworks/web-components/loader.ts b/code/addons/storyshots/storyshots-core/src/frameworks/web-components/loader.ts index 35f8020718f3..b17cd8f4474f 100644 --- a/code/addons/storyshots/storyshots-core/src/frameworks/web-components/loader.ts +++ b/code/addons/storyshots/storyshots-core/src/frameworks/web-components/loader.ts @@ -10,17 +10,35 @@ function test(options: StoryshotsOptions): boolean { function load(options: StoryshotsOptions) { global.STORYBOOK_ENV = 'web-components'; - const storybook = jest.requireActual('@storybook/html'); - const clientAPI = jest.requireActual('@storybook/client-api'); + let mockStartedAPI: any; + + jest.mock('@storybook/core-client', () => { + const coreClientAPI = jest.requireActual('@storybook/core-client'); + + return { + ...coreClientAPI, + start: (...args: any[]) => { + mockStartedAPI = coreClientAPI.start(...args); + return mockStartedAPI; + }, + }; + }); - const api = { - ...clientAPI, - ...storybook, - }; + jest.mock('@storybook/html', () => { + const renderAPI = jest.requireActual('@storybook/html'); + + renderAPI.addDecorator = mockStartedAPI.clientApi.addDecorator; + renderAPI.addParameters = mockStartedAPI.clientApi.addParameters; + + return renderAPI; + }); + + // eslint-disable-next-line global-require + const storybook = require('@storybook/html'); configure({ ...options, - storybook: api, + storybook, }); return { @@ -29,7 +47,7 @@ function load(options: StoryshotsOptions) { renderShallowTree: () => { throw new Error('Shallow renderer is not supported for web-components'); }, - storybook: api, + storybook, }; } From dbb98764fa040373695cd9e3d6dd9610f2f2b9b9 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 14 Nov 2022 14:05:51 +0100 Subject: [PATCH 2/5] some typings improvements --- code/.eslintignore | 1 - code/frameworks/angular/package.json | 1 + .../angular/src/client/public-api.ts | 2 +- .../ember/src/client/preview/index.ts | 3 +- code/renderers/html/src/public-api.ts | 2 +- code/renderers/preact/src/public-api.ts | 2 +- .../react/src/__test__/Button.stories.tsx | 2 +- .../react/src/__test__/Button.test.tsx | 2 +- .../react/src/__test__/internals.test.tsx | 2 +- code/renderers/react/src/public-api.tsx | 2 +- code/renderers/react/src/testing-api.ts | 2 +- code/renderers/server/src/public-api.ts | 2 +- code/renderers/svelte/src/public-api.ts | 3 +- code/renderers/vue/src/public-api.ts | 2 +- code/renderers/vue3/src/public-api.ts | 2 +- .../web-components/src/public-api.ts | 2 +- code/workspace.json | 19 +- code/yarn.lock | 1302 +++++++++-------- scripts/.eslintrc.js | 21 + scripts/prepare/bundle.ts | 8 +- scripts/tsconfig.json | 30 +- 21 files changed, 773 insertions(+), 639 deletions(-) diff --git a/code/.eslintignore b/code/.eslintignore index 6f8539b9b7b6..3a410b6472bc 100644 --- a/code/.eslintignore +++ b/code/.eslintignore @@ -1,5 +1,4 @@ dist -lib/**/dll build coverage node_modules diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index b08032ba511b..e1f774250cb7 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -51,6 +51,7 @@ "@types/react": "^16.14.23", "@types/react-dom": "^16.9.14", "@types/semver": "^7.3.4", + "@types/webpack-env": "^1.18.0", "core-js": "^3.8.2", "find-up": "^5.0.0", "global": "^4.4.0", diff --git a/code/frameworks/angular/src/client/public-api.ts b/code/frameworks/angular/src/client/public-api.ts index 031b5cafccd8..596a5fd1b4a3 100644 --- a/code/frameworks/angular/src/client/public-api.ts +++ b/code/frameworks/angular/src/client/public-api.ts @@ -16,7 +16,7 @@ interface ClientApi extends Addon_ClientStoryApi load: (...args: any[]) => void; } -const api = start(renderToCanvas, { decorateStory, render }); +const api = start(renderToCanvas, { decorateStory, render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/frameworks/ember/src/client/preview/index.ts b/code/frameworks/ember/src/client/preview/index.ts index 13a01a7a0351..96a58ede904b 100644 --- a/code/frameworks/ember/src/client/preview/index.ts +++ b/code/frameworks/ember/src/client/preview/index.ts @@ -1,9 +1,10 @@ import { start } from '@storybook/core-client'; import './globals'; +import type { EmberRenderer } from './types'; import { renderToCanvas } from './render'; -const { configure: coreConfigure, clientApi, forceReRender } = start(renderToCanvas); +const { configure: coreConfigure, clientApi, forceReRender } = start(renderToCanvas); export const { raw } = clientApi; diff --git a/code/renderers/html/src/public-api.ts b/code/renderers/html/src/public-api.ts index 04669852f092..bc813beb0933 100644 --- a/code/renderers/html/src/public-api.ts +++ b/code/renderers/html/src/public-api.ts @@ -13,7 +13,7 @@ interface ClientApi extends Addon_ClientStoryApi { raw: () => any; // todo add type } -const api = start(renderToCanvas, { render }); +const api = start(renderToCanvas, { render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/preact/src/public-api.ts b/code/renderers/preact/src/public-api.ts index 198e254f7547..81298c962771 100644 --- a/code/renderers/preact/src/public-api.ts +++ b/code/renderers/preact/src/public-api.ts @@ -13,7 +13,7 @@ export interface ClientApi extends Addon_ClientStoryApi(renderToCanvas); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/react/src/__test__/Button.stories.tsx b/code/renderers/react/src/__test__/Button.stories.tsx index 373b31aad412..2daa84d9b10f 100644 --- a/code/renderers/react/src/__test__/Button.stories.tsx +++ b/code/renderers/react/src/__test__/Button.stories.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import type { StoryFn as CSF2Story, StoryObj as CSF3Story, Meta } from '@storybook/react'; import { within, userEvent } from '@storybook/testing-library'; +import type { StoryFn as CSF2Story, StoryObj as CSF3Story, Meta } from '..'; import type { ButtonProps } from './Button'; import { Button } from './Button'; diff --git a/code/renderers/react/src/__test__/Button.test.tsx b/code/renderers/react/src/__test__/Button.test.tsx index b685cb204757..0675ee50baf3 100644 --- a/code/renderers/react/src/__test__/Button.test.tsx +++ b/code/renderers/react/src/__test__/Button.test.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { render, screen } from '@testing-library/react'; -import { setProjectAnnotations, composeStories, composeStory } from '@storybook/react'; +import { setProjectAnnotations, composeStories, composeStory } from '..'; import * as stories from './Button.stories'; diff --git a/code/renderers/react/src/__test__/internals.test.tsx b/code/renderers/react/src/__test__/internals.test.tsx index bb4d956a944e..dd4eb1b86ed0 100644 --- a/code/renderers/react/src/__test__/internals.test.tsx +++ b/code/renderers/react/src/__test__/internals.test.tsx @@ -4,7 +4,7 @@ import React from 'react'; import { addons } from '@storybook/addons'; import { render, screen } from '@testing-library/react'; -import { composeStories, composeStory } from '@storybook/react'; +import { composeStories, composeStory } from '..'; import * as stories from './Button.stories'; diff --git a/code/renderers/react/src/public-api.tsx b/code/renderers/react/src/public-api.tsx index 3c066ba0bfb5..ca854cbe54d3 100644 --- a/code/renderers/react/src/public-api.tsx +++ b/code/renderers/react/src/public-api.tsx @@ -17,7 +17,7 @@ interface ClientApi extends Addon_ClientStoryApi { } const FRAMEWORK = 'react'; -const api = start(renderToCanvas, { render }); +const api = start(renderToCanvas, { render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/react/src/testing-api.ts b/code/renderers/react/src/testing-api.ts index 0904edc0fa02..885cb450be2a 100644 --- a/code/renderers/react/src/testing-api.ts +++ b/code/renderers/react/src/testing-api.ts @@ -34,7 +34,7 @@ import type { ReactRenderer } from './types'; export function setProjectAnnotations( projectAnnotations: ProjectAnnotations | ProjectAnnotations[] ) { - originalSetProjectAnnotations(projectAnnotations); + originalSetProjectAnnotations(projectAnnotations); } /** Preserved for users migrating from `@storybook/testing-react`. diff --git a/code/renderers/server/src/public-api.ts b/code/renderers/server/src/public-api.ts index 773131ab6520..c55854ffc5ac 100644 --- a/code/renderers/server/src/public-api.ts +++ b/code/renderers/server/src/public-api.ts @@ -12,7 +12,7 @@ interface ClientApi extends Addon_ClientStoryApi raw: () => any; // todo add type } -const api = start(renderToCanvas, { render }); +const api = start(renderToCanvas, { render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/svelte/src/public-api.ts b/code/renderers/svelte/src/public-api.ts index 959a2f331611..2a6a63a82454 100644 --- a/code/renderers/svelte/src/public-api.ts +++ b/code/renderers/svelte/src/public-api.ts @@ -1,13 +1,14 @@ import { start } from '@storybook/core-client'; import { decorateStory } from './decorators'; +import type { SvelteRenderer } from './types'; import { render, renderToCanvas } from './render'; const { configure: coreConfigure, clientApi, forceReRender, -} = start(renderToCanvas, { +} = start(renderToCanvas, { decorateStory, render, }); diff --git a/code/renderers/vue/src/public-api.ts b/code/renderers/vue/src/public-api.ts index 7245b11f9ed5..553e42b76c38 100644 --- a/code/renderers/vue/src/public-api.ts +++ b/code/renderers/vue/src/public-api.ts @@ -15,7 +15,7 @@ interface ClientApi extends Addon_ClientStoryApi { load: (...args: any[]) => void; } -const api = start(renderToCanvas, { decorateStory, render }); +const api = start(renderToCanvas, { decorateStory, render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/vue3/src/public-api.ts b/code/renderers/vue3/src/public-api.ts index 42ea114e4086..f7a0220a0d04 100644 --- a/code/renderers/vue3/src/public-api.ts +++ b/code/renderers/vue3/src/public-api.ts @@ -17,7 +17,7 @@ interface ClientApi extends Addon_ClientStoryApi { app: App; } -const api = start(renderToCanvas, { decorateStory, render }); +const api = start(renderToCanvas, { decorateStory, render }); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/renderers/web-components/src/public-api.ts b/code/renderers/web-components/src/public-api.ts index b88e56223dcd..3d5590fbf731 100644 --- a/code/renderers/web-components/src/public-api.ts +++ b/code/renderers/web-components/src/public-api.ts @@ -13,7 +13,7 @@ interface ClientApi extends Addon_ClientStoryApi any; // todo add type } -const api = start(renderToCanvas); +const api = start(renderToCanvas); export const storiesOf: ClientApi['storiesOf'] = (kind, m) => { return (api.clientApi.storiesOf(kind, m) as ReturnType).addParameters({ diff --git a/code/workspace.json b/code/workspace.json index a5a0e8b7e18f..8b7bb4af3eef 100644 --- a/code/workspace.json +++ b/code/workspace.json @@ -231,10 +231,15 @@ "root": "lib/instrumenter", "type": "library" }, + "@storybook/manager": { + "implicitDependencies": [], + "root": "ui/manager", + "type": "library" + }, "@storybook/nextjs": { + "implicitDependencies": [], "root": "frameworks/nextjs", - "type": "library", - "implicitDependencies": [] + "type": "library" }, "@storybook/node-logger": { "implicitDependencies": [], @@ -296,6 +301,11 @@ "root": "presets/web-components-webpack", "type": "library" }, + "@storybook/preview": { + "implicitDependencies": [], + "root": "lib/preview", + "type": "library" + }, "@storybook/preview-web": { "implicitDependencies": [], "root": "lib/preview-web", @@ -371,11 +381,6 @@ "root": "lib/types", "type": "library" }, - "@storybook/manager": { - "implicitDependencies": [], - "root": "ui/manager", - "type": "library" - }, "@storybook/vue": { "implicitDependencies": [], "root": "renderers/vue", diff --git a/code/yarn.lock b/code/yarn.lock index 9a3b8e20e9e0..fc2744276033 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -332,13 +332,13 @@ __metadata: linkType: hard "@axe-core/puppeteer@npm:^4.2.0": - version: 4.4.5 - resolution: "@axe-core/puppeteer@npm:4.4.5" + version: 4.5.0 + resolution: "@axe-core/puppeteer@npm:4.5.0" dependencies: - axe-core: ^4.4.3 + axe-core: ^4.5.0 peerDependencies: - puppeteer: ">=1.10.0 <= 16" - checksum: 4e2d856ed5ae203f819dd23983714fd4cd91b9243c78bc261ea75a2a78ad148b1b022ea7adfe2549a621ea42c7752eb1949ae598be60e11e0e66d87044bf3d48 + puppeteer: ">=1.10.0 <= 18" + checksum: a93db97b4c096b19e6a2132a255a5699d101b68c77cd4e6395cb039c6432f3a51d59cfef95fd8ac6320906b462293b6a893180dead72362f6f097e0795af204d languageName: node linkType: hard @@ -378,10 +378,10 @@ __metadata: languageName: node linkType: hard -"@babel/compat-data@npm:^7.16.8, @babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.19.3, @babel/compat-data@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/compat-data@npm:7.19.4" - checksum: f6c3cec531e9c8ab2b0a7db64775f6f00e88ce1f727114cffb900c989ed3bcc42edee86cbe9c1d9f42ca2dbc490bcec91840cbe258dc7e0db82a4ea396ca1779 +"@babel/compat-data@npm:^7.16.8, @babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.20.0, @babel/compat-data@npm:^7.20.1": + version: 7.20.1 + resolution: "@babel/compat-data@npm:7.20.1" + checksum: d27b97d47be1b8928153525e1ffa1faa9068c2eae65bf4c0fbce1595841f6f52f7492a625c911688d32a91cb31f082ee1f72f3b9e43a970361215b38e2c28fc5 languageName: node linkType: hard @@ -431,26 +431,26 @@ __metadata: languageName: node linkType: hard -"@babel/core@npm:^7.1.0, @babel/core@npm:^7.11.5, @babel/core@npm:^7.11.6, @babel/core@npm:^7.12.0, @babel/core@npm:^7.12.10, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.17.2, @babel/core@npm:^7.17.5, @babel/core@npm:^7.18.13, @babel/core@npm:^7.3.4, @babel/core@npm:^7.7.2, @babel/core@npm:^7.7.5, @babel/core@npm:^7.8.0": - version: 7.19.6 - resolution: "@babel/core@npm:7.19.6" +"@babel/core@npm:^7.1.0, @babel/core@npm:^7.11.5, @babel/core@npm:^7.11.6, @babel/core@npm:^7.12.0, @babel/core@npm:^7.12.10, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16, @babel/core@npm:^7.17.2, @babel/core@npm:^7.17.5, @babel/core@npm:^7.19.6, @babel/core@npm:^7.3.4, @babel/core@npm:^7.7.2, @babel/core@npm:^7.7.5, @babel/core@npm:^7.8.0": + version: 7.20.2 + resolution: "@babel/core@npm:7.20.2" dependencies: "@ampproject/remapping": ^2.1.0 "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.19.6 - "@babel/helper-compilation-targets": ^7.19.3 - "@babel/helper-module-transforms": ^7.19.6 - "@babel/helpers": ^7.19.4 - "@babel/parser": ^7.19.6 + "@babel/generator": ^7.20.2 + "@babel/helper-compilation-targets": ^7.20.0 + "@babel/helper-module-transforms": ^7.20.2 + "@babel/helpers": ^7.20.1 + "@babel/parser": ^7.20.2 "@babel/template": ^7.18.10 - "@babel/traverse": ^7.19.6 - "@babel/types": ^7.19.4 + "@babel/traverse": ^7.20.1 + "@babel/types": ^7.20.2 convert-source-map: ^1.7.0 debug: ^4.1.0 gensync: ^1.0.0-beta.2 json5: ^2.2.1 semver: ^6.3.0 - checksum: 58a095dac601444128ca17ffa08bd08cb3ea31305f49389ff882a2df450937f6929108810e94742306f5ccb13cd113244a9012a2f50bdbd7539873d6fd767521 + checksum: 7c2a040db56f9807a7b11f19a056a842864512b5f3e5ca00491dae8501b9a19a57ae8c268373bc425bc734d47d6d01db711cc6e662bfb24794baa15e73f6fd20 languageName: node linkType: hard @@ -465,14 +465,14 @@ __metadata: languageName: node linkType: hard -"@babel/generator@npm:^7.12.11, @babel/generator@npm:^7.16.8, @babel/generator@npm:^7.19.6, @babel/generator@npm:^7.4.0, @babel/generator@npm:^7.7.2, @babel/generator@npm:^7.8.7": - version: 7.19.6 - resolution: "@babel/generator@npm:7.19.6" +"@babel/generator@npm:^7.12.11, @babel/generator@npm:^7.16.8, @babel/generator@npm:^7.20.1, @babel/generator@npm:^7.20.2, @babel/generator@npm:^7.4.0, @babel/generator@npm:^7.7.2, @babel/generator@npm:^7.8.7": + version: 7.20.3 + resolution: "@babel/generator@npm:7.20.3" dependencies: - "@babel/types": ^7.19.4 + "@babel/types": ^7.20.2 "@jridgewell/gen-mapping": ^0.3.2 jsesc: ^2.5.1 - checksum: 7c28a778310b718af5889a225bb004b51c86c0ddba5397cc3b90782fb6acf386bee29d4c23faa5d0e7fa8132a652213c1e08dbf01751f5aaada6e6f01a43258e + checksum: 7287321925d8a451d8f852d5d83f70ac413089a4a91798dbf0037a139750dd1e52ca760c8530f2608a71b82df75a575f9d028ff40f268b5964983184ed226694 languageName: node linkType: hard @@ -504,34 +504,34 @@ __metadata: languageName: node linkType: hard -"@babel/helper-compilation-targets@npm:^7.12.0, @babel/helper-compilation-targets@npm:^7.16.7, @babel/helper-compilation-targets@npm:^7.17.7, @babel/helper-compilation-targets@npm:^7.18.9, @babel/helper-compilation-targets@npm:^7.19.0, @babel/helper-compilation-targets@npm:^7.19.3": - version: 7.19.3 - resolution: "@babel/helper-compilation-targets@npm:7.19.3" +"@babel/helper-compilation-targets@npm:^7.12.0, @babel/helper-compilation-targets@npm:^7.16.7, @babel/helper-compilation-targets@npm:^7.17.7, @babel/helper-compilation-targets@npm:^7.18.9, @babel/helper-compilation-targets@npm:^7.20.0": + version: 7.20.0 + resolution: "@babel/helper-compilation-targets@npm:7.20.0" dependencies: - "@babel/compat-data": ^7.19.3 + "@babel/compat-data": ^7.20.0 "@babel/helper-validator-option": ^7.18.6 browserslist: ^4.21.3 semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0 - checksum: 05f5ea8c9310f6064d508e06c5523e3e7dee988056be7505fbdecdc9564027946d3163405b49c8f3dd27c819280c34fb99ab810e181de572c77e79c9ae303201 + checksum: d4250dec03d1eef1e2c3f1bed1ebf4e0b6899762111023d07c1c6cb1ce7f8456344bf488355f0780e92fc6ce0e25f977ae50b8b638291d55d0154f13b99c7530 languageName: node linkType: hard -"@babel/helper-create-class-features-plugin@npm:^7.18.6, @babel/helper-create-class-features-plugin@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/helper-create-class-features-plugin@npm:7.19.0" +"@babel/helper-create-class-features-plugin@npm:^7.18.6, @babel/helper-create-class-features-plugin@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/helper-create-class-features-plugin@npm:7.20.2" dependencies: "@babel/helper-annotate-as-pure": ^7.18.6 "@babel/helper-environment-visitor": ^7.18.9 "@babel/helper-function-name": ^7.19.0 "@babel/helper-member-expression-to-functions": ^7.18.9 "@babel/helper-optimise-call-expression": ^7.18.6 - "@babel/helper-replace-supers": ^7.18.9 + "@babel/helper-replace-supers": ^7.19.1 "@babel/helper-split-export-declaration": ^7.18.6 peerDependencies: "@babel/core": ^7.0.0 - checksum: f61b98942d40d904e697c14fb24f30975c639f7d40e011a80b22fb22f5e423abe857ad7bba56318592a268420426d82c94a9193e8f761a8cd0717080549ca7ac + checksum: 93ae5401481b59b9fbed64c77b1c83d6e83f361fe2963fd521cf6863b8ff70b7173499de8662900c33d7487c0913ee866d5a0d87d4c19a873f479df99605e686 languageName: node linkType: hard @@ -616,19 +616,19 @@ __metadata: languageName: node linkType: hard -"@babel/helper-module-transforms@npm:^7.16.7, @babel/helper-module-transforms@npm:^7.18.6, @babel/helper-module-transforms@npm:^7.19.6": - version: 7.19.6 - resolution: "@babel/helper-module-transforms@npm:7.19.6" +"@babel/helper-module-transforms@npm:^7.16.7, @babel/helper-module-transforms@npm:^7.18.6, @babel/helper-module-transforms@npm:^7.19.6, @babel/helper-module-transforms@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/helper-module-transforms@npm:7.20.2" dependencies: "@babel/helper-environment-visitor": ^7.18.9 "@babel/helper-module-imports": ^7.18.6 - "@babel/helper-simple-access": ^7.19.4 + "@babel/helper-simple-access": ^7.20.2 "@babel/helper-split-export-declaration": ^7.18.6 "@babel/helper-validator-identifier": ^7.19.1 "@babel/template": ^7.18.10 - "@babel/traverse": ^7.19.6 - "@babel/types": ^7.19.4 - checksum: c6d5fd5cb299591b005144ee2e142d6bba06f8c2a87c9b19e2e9a5189f39a59e313266a6ca0213cdd185e4757c47accc2f3e346b5004da0a69da87e214bd7f09 + "@babel/traverse": ^7.20.1 + "@babel/types": ^7.20.2 + checksum: 9c5e9853a5b83cb7f4ec5ac15ae0e57a9ea47be47c57bb7ef56b6b3d55eb30547bfa9acb90f6a2b25f94764765c10de196908eba745a27b2bcf4fefcbb314ee7 languageName: node linkType: hard @@ -641,10 +641,10 @@ __metadata: languageName: node linkType: hard -"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.10.4, @babel/helper-plugin-utils@npm:^7.12.13, @babel/helper-plugin-utils@npm:^7.14.5, @babel/helper-plugin-utils@npm:^7.16.7, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.18.9, @babel/helper-plugin-utils@npm:^7.19.0, @babel/helper-plugin-utils@npm:^7.8.0, @babel/helper-plugin-utils@npm:^7.8.3": - version: 7.19.0 - resolution: "@babel/helper-plugin-utils@npm:7.19.0" - checksum: 9ae9c09cf7e3b6023be2bb66f3ca3b5fa8c2b21b58bd09819d494fcd7ab2a1844056c8dfd609ffb474e3c857a1bc979fa7a60931b0c71d69a3e939ba724498ac +"@babel/helper-plugin-utils@npm:^7.0.0, @babel/helper-plugin-utils@npm:^7.10.4, @babel/helper-plugin-utils@npm:^7.12.13, @babel/helper-plugin-utils@npm:^7.14.5, @babel/helper-plugin-utils@npm:^7.16.7, @babel/helper-plugin-utils@npm:^7.18.6, @babel/helper-plugin-utils@npm:^7.18.9, @babel/helper-plugin-utils@npm:^7.19.0, @babel/helper-plugin-utils@npm:^7.20.2, @babel/helper-plugin-utils@npm:^7.8.0, @babel/helper-plugin-utils@npm:^7.8.3": + version: 7.20.2 + resolution: "@babel/helper-plugin-utils@npm:7.20.2" + checksum: bf4de040e57b7ddff36ea599e963c391eb246d5a95207bb9ef3e33073c451bcc0821e3a9cc08dfede862a6dcc110d7e6e7d9a483482f852be358c5b60add499c languageName: node linkType: hard @@ -662,7 +662,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-replace-supers@npm:^7.18.6, @babel/helper-replace-supers@npm:^7.18.9, @babel/helper-replace-supers@npm:^7.19.1": +"@babel/helper-replace-supers@npm:^7.18.6, @babel/helper-replace-supers@npm:^7.19.1": version: 7.19.1 resolution: "@babel/helper-replace-supers@npm:7.19.1" dependencies: @@ -675,21 +675,21 @@ __metadata: languageName: node linkType: hard -"@babel/helper-simple-access@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/helper-simple-access@npm:7.19.4" +"@babel/helper-simple-access@npm:^7.19.4, @babel/helper-simple-access@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/helper-simple-access@npm:7.20.2" dependencies: - "@babel/types": ^7.19.4 - checksum: 23e36b7a5063200e8ec722746ac41baad70d4c192f3fff5a435e02f599cde5f2b20bb23ff15833fe8763ffebd7677be900f7f9286b848363a97adc9aab642016 + "@babel/types": ^7.20.2 + checksum: 79cea28155536c74b37839748caea534bc413fac8c512e6101e9eecfe83f670db77bc782bdb41114caecbb1e2a73007ff6015d6a5ce58cae5363b8c5bd2dcee9 languageName: node linkType: hard "@babel/helper-skip-transparent-expression-wrappers@npm:^7.18.9": - version: 7.18.9 - resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.18.9" + version: 7.20.0 + resolution: "@babel/helper-skip-transparent-expression-wrappers@npm:7.20.0" dependencies: - "@babel/types": ^7.18.9 - checksum: 243996398085f93ccde0174beffae3fd1c0d2a762df61713b32f1bd01b16e6eaccb47f38437706b2239e2b26673412e500e380c4b1f2413f801df4c7a6805e78 + "@babel/types": ^7.20.0 + checksum: 8529fb760ffbc3efc22ec5a079039fae65f40a90e9986642a85c1727aabdf6a79929546412f6210593970d2f97041f73bdd316e481d61110d6edcac1f97670a9 languageName: node linkType: hard @@ -735,14 +735,14 @@ __metadata: languageName: node linkType: hard -"@babel/helpers@npm:^7.16.7, @babel/helpers@npm:^7.19.4, @babel/helpers@npm:^7.8.4": - version: 7.19.4 - resolution: "@babel/helpers@npm:7.19.4" +"@babel/helpers@npm:^7.16.7, @babel/helpers@npm:^7.20.1, @babel/helpers@npm:^7.8.4": + version: 7.20.1 + resolution: "@babel/helpers@npm:7.20.1" dependencies: "@babel/template": ^7.18.10 - "@babel/traverse": ^7.19.4 - "@babel/types": ^7.19.4 - checksum: e13cca08375f5fe816f01173f6cffc685c3b0605bf7fd94ac76495209f57d69e352fa93bf0ff87f63d705d53b5d5e75abd0b5c2e653776c744911140e5ae7c7e + "@babel/traverse": ^7.20.1 + "@babel/types": ^7.20.0 + checksum: be1096271946b265ea1b9391d3fa1a8690230858081f6ba35ef3c0030ec0113aa9c350a764c65b1d162584c73a853c1ed2dac294e9dd113885097b172078f0b6 languageName: node linkType: hard @@ -757,12 +757,12 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.11.5, @babel/parser@npm:^7.12.11, @babel/parser@npm:^7.13.12, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.16.12, @babel/parser@npm:^7.16.4, @babel/parser@npm:^7.16.7, @babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.19.6, @babel/parser@npm:^7.4.3, @babel/parser@npm:^7.4.5, @babel/parser@npm:^7.6.0, @babel/parser@npm:^7.7.0, @babel/parser@npm:^7.8.6, @babel/parser@npm:^7.8.7, @babel/parser@npm:^7.9.6": - version: 7.19.6 - resolution: "@babel/parser@npm:7.19.6" +"@babel/parser@npm:^7.1.0, @babel/parser@npm:^7.11.5, @babel/parser@npm:^7.12.11, @babel/parser@npm:^7.13.12, @babel/parser@npm:^7.13.16, @babel/parser@npm:^7.14.7, @babel/parser@npm:^7.16.12, @babel/parser@npm:^7.16.4, @babel/parser@npm:^7.16.7, @babel/parser@npm:^7.18.10, @babel/parser@npm:^7.18.4, @babel/parser@npm:^7.20.1, @babel/parser@npm:^7.20.2, @babel/parser@npm:^7.4.3, @babel/parser@npm:^7.4.5, @babel/parser@npm:^7.6.0, @babel/parser@npm:^7.7.0, @babel/parser@npm:^7.8.6, @babel/parser@npm:^7.8.7, @babel/parser@npm:^7.9.6": + version: 7.20.3 + resolution: "@babel/parser@npm:7.20.3" bin: parser: ./bin/babel-parser.js - checksum: 1cebcfd242bf424adea11c364f54c4339796291b3b124f20f08dca800ece217588db09f23202f520c671e3ff9a9f97ca645c4f98df0127149d0c60331c7d3e39 + checksum: 6bd67dd32683cd3a8d4c5ed19085fc47582361eb28cf1dbd03f655350827002e3d8abc8be7c9e3a79d17668bf855899a4bd7f261b7fafcc82870bd9de18f9016 languageName: node linkType: hard @@ -803,9 +803,9 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-async-generator-functions@npm:^7.16.8, @babel/plugin-proposal-async-generator-functions@npm:^7.19.1": - version: 7.19.1 - resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.19.1" +"@babel/plugin-proposal-async-generator-functions@npm:^7.16.8, @babel/plugin-proposal-async-generator-functions@npm:^7.20.1": + version: 7.20.1 + resolution: "@babel/plugin-proposal-async-generator-functions@npm:7.20.1" dependencies: "@babel/helper-environment-visitor": ^7.18.9 "@babel/helper-plugin-utils": ^7.19.0 @@ -813,7 +813,7 @@ __metadata: "@babel/plugin-syntax-async-generators": ^7.8.4 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: e2b93724dedf2571957d3e46d0710553f2a01794f9abab1c2f896132a70a5d4a3aafd3687b4a848ccddcfa911d40f0b17e4a89351e5de50d31d0d88519da941c + checksum: b99ba70c51143921bc84f37b59cf1cbb6b264301e49048fcc4964a15865e865c3ddb48d4ac7a3d2a48c186eb8964ff975370a99082b23484b046d3206f988590 languageName: node linkType: hard @@ -843,17 +843,17 @@ __metadata: linkType: hard "@babel/plugin-proposal-decorators@npm:^7.13.5, @babel/plugin-proposal-decorators@npm:^7.17.2": - version: 7.19.6 - resolution: "@babel/plugin-proposal-decorators@npm:7.19.6" + version: 7.20.2 + resolution: "@babel/plugin-proposal-decorators@npm:7.20.2" dependencies: - "@babel/helper-create-class-features-plugin": ^7.19.0 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-create-class-features-plugin": ^7.20.2 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/helper-replace-supers": ^7.19.1 "@babel/helper-split-export-declaration": ^7.18.6 "@babel/plugin-syntax-decorators": ^7.19.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 41390c8d0fe87072915eac1687bab638be8430b88494b2f40d1cf2ee2a64c08777b1f18949bb8e8dc76d341e79f0d26eca3ad8bd5c751ce02f9a9955bafb1a82 + checksum: 814699de0c0ca8eda6161b70ad0e454107bbb366d4c3fa9e20e15a824cd08429c6bbe7d6ea474e3ceaedd4594e23f0a5d06c481c81f2dca33b35f7ad273c081a languageName: node linkType: hard @@ -941,18 +941,18 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-proposal-object-rest-spread@npm:^7.16.7, @babel/plugin-proposal-object-rest-spread@npm:^7.17.3, @babel/plugin-proposal-object-rest-spread@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/plugin-proposal-object-rest-spread@npm:7.19.4" +"@babel/plugin-proposal-object-rest-spread@npm:^7.16.7, @babel/plugin-proposal-object-rest-spread@npm:^7.17.3, @babel/plugin-proposal-object-rest-spread@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/plugin-proposal-object-rest-spread@npm:7.20.2" dependencies: - "@babel/compat-data": ^7.19.4 - "@babel/helper-compilation-targets": ^7.19.3 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/compat-data": ^7.20.1 + "@babel/helper-compilation-targets": ^7.20.0 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/plugin-syntax-object-rest-spread": ^7.8.3 - "@babel/plugin-transform-parameters": ^7.18.8 + "@babel/plugin-transform-parameters": ^7.20.1 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 0c51c3ef25890ee69bec275db6d4a79b475b809dcb473cd64d5afed96f60be51d928a59356beb69e40b1328c34715e400b48322c6af823ba3792bbe52d7cc7d9 + checksum: 2d803fd45b42312580cab2197ce9bbd4d12b60c9560bfacb2398178baf3d5c9d29538959a40463021b831c32eeb2a4fa109f1069361f6de80a17a4344ba80b7a languageName: node linkType: hard @@ -1118,14 +1118,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-import-assertions@npm:^7.18.6": - version: 7.18.6 - resolution: "@babel/plugin-syntax-import-assertions@npm:7.18.6" +"@babel/plugin-syntax-import-assertions@npm:^7.20.0": + version: 7.20.0 + resolution: "@babel/plugin-syntax-import-assertions@npm:7.20.0" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-plugin-utils": ^7.19.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: b2673462593bac392d09679b3f6273784d2c5b8424d5c9c37cc9318e66d190b585789f0ec8aea76a4eeb945210f3193757461e34f4ffec3a0011d338512f384d + checksum: 0ac0176984ad799b39264070007737c514ea95e4b3c3c515ecddef958629abcd3c8e8810fd60fb63de5a8f3f7022dd2c7af7580b819a9207acc372c8b8ec878e languageName: node linkType: hard @@ -1250,14 +1250,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-typescript@npm:^7.18.6, @babel/plugin-syntax-typescript@npm:^7.7.2": - version: 7.18.6 - resolution: "@babel/plugin-syntax-typescript@npm:7.18.6" +"@babel/plugin-syntax-typescript@npm:^7.20.0, @babel/plugin-syntax-typescript@npm:^7.7.2": + version: 7.20.0 + resolution: "@babel/plugin-syntax-typescript@npm:7.20.0" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-plugin-utils": ^7.19.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: b0acbed3a038c47142e5301d11b40aeedc05b55738d00204964f38608ee46135a7fa36439eeeaeba1ae3608a529a1660d61eb7d1d70978130ca940bd7ca645a3 + checksum: c57bb9b717b3b7324cc0c094d411bac23f6d78ed5e4e06fb89e3e8de37437e649c53440d8c29ecb3875f398ad1a9e8acc96e3af6b3802e83f7eab855de319e80 languageName: node linkType: hard @@ -1309,33 +1309,33 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-block-scoping@npm:^7.16.7, @babel/plugin-transform-block-scoping@npm:^7.19.4, @babel/plugin-transform-block-scoping@npm:^7.8.3": - version: 7.19.4 - resolution: "@babel/plugin-transform-block-scoping@npm:7.19.4" +"@babel/plugin-transform-block-scoping@npm:^7.16.7, @babel/plugin-transform-block-scoping@npm:^7.20.2, @babel/plugin-transform-block-scoping@npm:^7.8.3": + version: 7.20.2 + resolution: "@babel/plugin-transform-block-scoping@npm:7.20.2" dependencies: - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 442e93711e3951d4f14e9ef1bc15220273a3d99cb5c1f1c785dac9e32f69eab9d9f3849c82fab8f9590116b0151ae5d2026029276448552e2201733aa394135d + checksum: e1cf333d384c642c9f44c57fe14f384e11e91627e7df37256821891686e0464f1c3b7de93312ec46155a8f1313019f31aed6ce878d22259764f8835509ecb60a languageName: node linkType: hard -"@babel/plugin-transform-classes@npm:^7.16.7, @babel/plugin-transform-classes@npm:^7.19.0": - version: 7.19.0 - resolution: "@babel/plugin-transform-classes@npm:7.19.0" +"@babel/plugin-transform-classes@npm:^7.16.7, @babel/plugin-transform-classes@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/plugin-transform-classes@npm:7.20.2" dependencies: "@babel/helper-annotate-as-pure": ^7.18.6 - "@babel/helper-compilation-targets": ^7.19.0 + "@babel/helper-compilation-targets": ^7.20.0 "@babel/helper-environment-visitor": ^7.18.9 "@babel/helper-function-name": ^7.19.0 "@babel/helper-optimise-call-expression": ^7.18.6 - "@babel/helper-plugin-utils": ^7.19.0 - "@babel/helper-replace-supers": ^7.18.9 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/helper-replace-supers": ^7.19.1 "@babel/helper-split-export-declaration": ^7.18.6 globals: ^11.1.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 843db7da466b6e40f9da96827051d970ed7800c1acccb24b702ddc8b05e87cfbbbf53bd4b0f3ffd5b8365db03ea97a5cd6e9efc3ec176a7697a1a4601d7071e8 + checksum: b9956a774a1d10d20e157abe4e1834156c46152ec3b5231b2f4a0e7fe4e2b934465d5e39872d424b4baa55944f95646ca6f2b23070ac3a824223fea918981d11 languageName: node linkType: hard @@ -1350,14 +1350,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-destructuring@npm:^7.16.7, @babel/plugin-transform-destructuring@npm:^7.17.3, @babel/plugin-transform-destructuring@npm:^7.19.4": - version: 7.19.4 - resolution: "@babel/plugin-transform-destructuring@npm:7.19.4" +"@babel/plugin-transform-destructuring@npm:^7.16.7, @babel/plugin-transform-destructuring@npm:^7.17.3, @babel/plugin-transform-destructuring@npm:^7.20.2": + version: 7.20.2 + resolution: "@babel/plugin-transform-destructuring@npm:7.20.2" dependencies: - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 09f6e41b10e5c798bd9c2b09b7243b5c06088c220494aff699e604306797188698bb9f00f50963bb89707af11f979b888ff7ff0eb498a5200d64b759fc0ece34 + checksum: 1989312c031636103d1fc83a6edf9e24f8445a5395a72b8dc9741f98c31dacbf13db7831b651975d9d7ee57381abce299fae8b4bde599f8efa00dd8b7eb8e298 languageName: node linkType: hard @@ -1454,7 +1454,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-amd@npm:^7.13.0, @babel/plugin-transform-modules-amd@npm:^7.16.7, @babel/plugin-transform-modules-amd@npm:^7.18.6": +"@babel/plugin-transform-modules-amd@npm:^7.13.0, @babel/plugin-transform-modules-amd@npm:^7.16.7, @babel/plugin-transform-modules-amd@npm:^7.19.6": version: 7.19.6 resolution: "@babel/plugin-transform-modules-amd@npm:7.19.6" dependencies: @@ -1466,7 +1466,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-commonjs@npm:^7.13.8, @babel/plugin-transform-modules-commonjs@npm:^7.16.8, @babel/plugin-transform-modules-commonjs@npm:^7.18.6, @babel/plugin-transform-modules-commonjs@npm:^7.2.0": +"@babel/plugin-transform-modules-commonjs@npm:^7.13.8, @babel/plugin-transform-modules-commonjs@npm:^7.16.8, @babel/plugin-transform-modules-commonjs@npm:^7.19.6, @babel/plugin-transform-modules-commonjs@npm:^7.2.0": version: 7.19.6 resolution: "@babel/plugin-transform-modules-commonjs@npm:7.19.6" dependencies: @@ -1479,7 +1479,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-modules-systemjs@npm:^7.16.7, @babel/plugin-transform-modules-systemjs@npm:^7.19.0": +"@babel/plugin-transform-modules-systemjs@npm:^7.16.7, @babel/plugin-transform-modules-systemjs@npm:^7.19.6": version: 7.19.6 resolution: "@babel/plugin-transform-modules-systemjs@npm:7.19.6" dependencies: @@ -1551,14 +1551,14 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-parameters@npm:^7.16.7, @babel/plugin-transform-parameters@npm:^7.18.8": - version: 7.18.8 - resolution: "@babel/plugin-transform-parameters@npm:7.18.8" +"@babel/plugin-transform-parameters@npm:^7.16.7, @babel/plugin-transform-parameters@npm:^7.20.1": + version: 7.20.3 + resolution: "@babel/plugin-transform-parameters@npm:7.20.3" dependencies: - "@babel/helper-plugin-utils": ^7.18.6 + "@babel/helper-plugin-utils": ^7.20.2 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: ca12c2cdb67012fc7d886941bf194225054cb11a117dd2b6a065ca5433f38368e8cf1e23f0fb81ccfc026991e95c7444a4cb594f4fd27b9e292304c0f96724ca + checksum: 34cd3b5c9019cad22e3ec1f7ec16cdab4858fb45073a7ddac8f269e5151c4ce8edece04ef76376767572024b506c1a30024b840371d014df61cd869a889ad16c languageName: node linkType: hard @@ -1606,7 +1606,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx-source@npm:^7.18.6": +"@babel/plugin-transform-react-jsx-source@npm:^7.19.6": version: 7.19.6 resolution: "@babel/plugin-transform-react-jsx-source@npm:7.19.6" dependencies: @@ -1617,7 +1617,7 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-transform-react-jsx@npm:^7.12.12, @babel/plugin-transform-react-jsx@npm:^7.18.10, @babel/plugin-transform-react-jsx@npm:^7.18.6": +"@babel/plugin-transform-react-jsx@npm:^7.12.12, @babel/plugin-transform-react-jsx@npm:^7.18.6, @babel/plugin-transform-react-jsx@npm:^7.19.0": version: 7.19.0 resolution: "@babel/plugin-transform-react-jsx@npm:7.19.0" dependencies: @@ -1756,15 +1756,15 @@ __metadata: linkType: hard "@babel/plugin-transform-typescript@npm:^7.13.0, @babel/plugin-transform-typescript@npm:^7.18.6": - version: 7.19.3 - resolution: "@babel/plugin-transform-typescript@npm:7.19.3" + version: 7.20.2 + resolution: "@babel/plugin-transform-typescript@npm:7.20.2" dependencies: - "@babel/helper-create-class-features-plugin": ^7.19.0 - "@babel/helper-plugin-utils": ^7.19.0 - "@babel/plugin-syntax-typescript": ^7.18.6 + "@babel/helper-create-class-features-plugin": ^7.20.2 + "@babel/helper-plugin-utils": ^7.20.2 + "@babel/plugin-syntax-typescript": ^7.20.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: 4933ff4ab278c3777c2cb382df96784ba2de4ef305a785a4bd7c600df0befd73826b34fb330c96706c0a720788721c35cb139c635f6963aa8778ab9bda6856f4 + checksum: 0b4a42b5953c658f31d0a9ebdead733a9d4850b0ae767d4f7bca6e55c8ffcc27afd0cfe88347fe85bea45a3292a5d362f55f1fa369fc48eb9aa66f49991bcb68 languageName: node linkType: hard @@ -1886,16 +1886,16 @@ __metadata: linkType: hard "@babel/preset-env@npm:^7.12.11, @babel/preset-env@npm:^7.16.11, @babel/preset-env@npm:^7.16.5": - version: 7.19.4 - resolution: "@babel/preset-env@npm:7.19.4" + version: 7.20.2 + resolution: "@babel/preset-env@npm:7.20.2" dependencies: - "@babel/compat-data": ^7.19.4 - "@babel/helper-compilation-targets": ^7.19.3 - "@babel/helper-plugin-utils": ^7.19.0 + "@babel/compat-data": ^7.20.1 + "@babel/helper-compilation-targets": ^7.20.0 + "@babel/helper-plugin-utils": ^7.20.2 "@babel/helper-validator-option": ^7.18.6 "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": ^7.18.6 "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": ^7.18.9 - "@babel/plugin-proposal-async-generator-functions": ^7.19.1 + "@babel/plugin-proposal-async-generator-functions": ^7.20.1 "@babel/plugin-proposal-class-properties": ^7.18.6 "@babel/plugin-proposal-class-static-block": ^7.18.6 "@babel/plugin-proposal-dynamic-import": ^7.18.6 @@ -1904,7 +1904,7 @@ __metadata: "@babel/plugin-proposal-logical-assignment-operators": ^7.18.9 "@babel/plugin-proposal-nullish-coalescing-operator": ^7.18.6 "@babel/plugin-proposal-numeric-separator": ^7.18.6 - "@babel/plugin-proposal-object-rest-spread": ^7.19.4 + "@babel/plugin-proposal-object-rest-spread": ^7.20.2 "@babel/plugin-proposal-optional-catch-binding": ^7.18.6 "@babel/plugin-proposal-optional-chaining": ^7.18.9 "@babel/plugin-proposal-private-methods": ^7.18.6 @@ -1915,7 +1915,7 @@ __metadata: "@babel/plugin-syntax-class-static-block": ^7.14.5 "@babel/plugin-syntax-dynamic-import": ^7.8.3 "@babel/plugin-syntax-export-namespace-from": ^7.8.3 - "@babel/plugin-syntax-import-assertions": ^7.18.6 + "@babel/plugin-syntax-import-assertions": ^7.20.0 "@babel/plugin-syntax-json-strings": ^7.8.3 "@babel/plugin-syntax-logical-assignment-operators": ^7.10.4 "@babel/plugin-syntax-nullish-coalescing-operator": ^7.8.3 @@ -1928,10 +1928,10 @@ __metadata: "@babel/plugin-transform-arrow-functions": ^7.18.6 "@babel/plugin-transform-async-to-generator": ^7.18.6 "@babel/plugin-transform-block-scoped-functions": ^7.18.6 - "@babel/plugin-transform-block-scoping": ^7.19.4 - "@babel/plugin-transform-classes": ^7.19.0 + "@babel/plugin-transform-block-scoping": ^7.20.2 + "@babel/plugin-transform-classes": ^7.20.2 "@babel/plugin-transform-computed-properties": ^7.18.9 - "@babel/plugin-transform-destructuring": ^7.19.4 + "@babel/plugin-transform-destructuring": ^7.20.2 "@babel/plugin-transform-dotall-regex": ^7.18.6 "@babel/plugin-transform-duplicate-keys": ^7.18.9 "@babel/plugin-transform-exponentiation-operator": ^7.18.6 @@ -1939,14 +1939,14 @@ __metadata: "@babel/plugin-transform-function-name": ^7.18.9 "@babel/plugin-transform-literals": ^7.18.9 "@babel/plugin-transform-member-expression-literals": ^7.18.6 - "@babel/plugin-transform-modules-amd": ^7.18.6 - "@babel/plugin-transform-modules-commonjs": ^7.18.6 - "@babel/plugin-transform-modules-systemjs": ^7.19.0 + "@babel/plugin-transform-modules-amd": ^7.19.6 + "@babel/plugin-transform-modules-commonjs": ^7.19.6 + "@babel/plugin-transform-modules-systemjs": ^7.19.6 "@babel/plugin-transform-modules-umd": ^7.18.6 "@babel/plugin-transform-named-capturing-groups-regex": ^7.19.1 "@babel/plugin-transform-new-target": ^7.18.6 "@babel/plugin-transform-object-super": ^7.18.6 - "@babel/plugin-transform-parameters": ^7.18.8 + "@babel/plugin-transform-parameters": ^7.20.1 "@babel/plugin-transform-property-literals": ^7.18.6 "@babel/plugin-transform-regenerator": ^7.18.6 "@babel/plugin-transform-reserved-words": ^7.18.6 @@ -1958,7 +1958,7 @@ __metadata: "@babel/plugin-transform-unicode-escapes": ^7.18.10 "@babel/plugin-transform-unicode-regex": ^7.18.6 "@babel/preset-modules": ^0.1.5 - "@babel/types": ^7.19.4 + "@babel/types": ^7.20.2 babel-plugin-polyfill-corejs2: ^0.3.3 babel-plugin-polyfill-corejs3: ^0.6.0 babel-plugin-polyfill-regenerator: ^0.4.1 @@ -1966,7 +1966,7 @@ __metadata: semver: ^6.3.0 peerDependencies: "@babel/core": ^7.0.0-0 - checksum: a0c1e9e575c497d71ccf84242276356abb6c4fede7c52733785e988131458433dd2329bd96921465c23b30d2cad19977c23617b657d986dac3d6fed544b45a29 + checksum: 8e4c86d9acf2557eaca4c55ffe69bb76f30d675f2576e5e1b872ef671acec7c80df3759d77cd33ff934d5a49f26950c4d9e63718c4c3295455bc2df88788d7ad languageName: node linkType: hard @@ -2043,12 +2043,12 @@ __metadata: linkType: hard "@babel/runtime-corejs3@npm:^7.10.2": - version: 7.19.6 - resolution: "@babel/runtime-corejs3@npm:7.19.6" + version: 7.20.1 + resolution: "@babel/runtime-corejs3@npm:7.20.1" dependencies: core-js-pure: ^3.25.1 - regenerator-runtime: ^0.13.4 - checksum: df8d369446b24bc2f6d7428963f9976b83cba0449e8906b057c1a0e5c49177cd68f6e1cbcfa9efd2f1dc70c1dd9e71bfa2458e27e3d4569ea6478c8d77643803 + regenerator-runtime: ^0.13.10 + checksum: 95859391570f788875e4c2d10e56998cff165c81b3366508f7c224cf9358b7cd52cf5c62eebcfb9e1c32f8bb6d6bf2e7658620c4c56d6ab0612aa152e2f0469a languageName: node linkType: hard @@ -2080,11 +2080,11 @@ __metadata: linkType: hard "@babel/runtime@npm:^7.10.2, @babel/runtime@npm:^7.11.2, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.14.8, @babel/runtime@npm:^7.17.2, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.18.9, @babel/runtime@npm:^7.3.1, @babel/runtime@npm:^7.5.0, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.4, @babel/runtime@npm:^7.9.2": - version: 7.19.4 - resolution: "@babel/runtime@npm:7.19.4" + version: 7.20.1 + resolution: "@babel/runtime@npm:7.20.1" dependencies: - regenerator-runtime: ^0.13.4 - checksum: 3ad7f298262cf1f060a3bf2be9f65afa3c034c9c7a2e7c9d3ec41ab58c944c86756d0e0fdfc08d178f983f48d6b5613c15253d83216fbe02b6141c13d28f12e5 + regenerator-runtime: ^0.13.10 + checksum: ec10f4c4cb23d6473b5451ecc44f8993629d56f02dbaa597f40920b3ade49d9ff0f82e752cf768afb48cf9c9e73febab9da393e239a318b2fc8a11136622eea4 languageName: node linkType: hard @@ -2130,32 +2130,32 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.1.6, @babel/traverse@npm:^7.12.11, @babel/traverse@npm:^7.16.10, @babel/traverse@npm:^7.19.0, @babel/traverse@npm:^7.19.1, @babel/traverse@npm:^7.19.4, @babel/traverse@npm:^7.19.6, @babel/traverse@npm:^7.4.3, @babel/traverse@npm:^7.4.5, @babel/traverse@npm:^7.7.0, @babel/traverse@npm:^7.7.2, @babel/traverse@npm:^7.8.6": - version: 7.19.6 - resolution: "@babel/traverse@npm:7.19.6" +"@babel/traverse@npm:^7.1.0, @babel/traverse@npm:^7.1.6, @babel/traverse@npm:^7.12.11, @babel/traverse@npm:^7.16.10, @babel/traverse@npm:^7.19.0, @babel/traverse@npm:^7.19.1, @babel/traverse@npm:^7.20.1, @babel/traverse@npm:^7.4.3, @babel/traverse@npm:^7.4.5, @babel/traverse@npm:^7.7.0, @babel/traverse@npm:^7.7.2, @babel/traverse@npm:^7.8.6": + version: 7.20.1 + resolution: "@babel/traverse@npm:7.20.1" dependencies: "@babel/code-frame": ^7.18.6 - "@babel/generator": ^7.19.6 + "@babel/generator": ^7.20.1 "@babel/helper-environment-visitor": ^7.18.9 "@babel/helper-function-name": ^7.19.0 "@babel/helper-hoist-variables": ^7.18.6 "@babel/helper-split-export-declaration": ^7.18.6 - "@babel/parser": ^7.19.6 - "@babel/types": ^7.19.4 + "@babel/parser": ^7.20.1 + "@babel/types": ^7.20.0 debug: ^4.1.0 globals: ^11.1.0 - checksum: 19fa31560fec222b7683003f75e724f77410319e6548c72fee268e17be7e481963f43b8fceb6cdd0557338e547646448f681369da07fc79d7e966485ed910fb8 + checksum: 6b2611f26bcc52bcdf515ed4932c316b20511f4595ca26a1db71b18273d7e2aaf435156708f968914bbf34a2dfac7c3e6618fffc9169eed5537dcdb85143da5a languageName: node linkType: hard -"@babel/types@npm:^7.0.0, @babel/types@npm:^7.11.5, @babel/types@npm:^7.12.11, @babel/types@npm:^7.16.7, @babel/types@npm:^7.16.8, @babel/types@npm:^7.18.10, @babel/types@npm:^7.18.6, @babel/types@npm:^7.18.8, @babel/types@npm:^7.18.9, @babel/types@npm:^7.19.0, @babel/types@npm:^7.19.4, @babel/types@npm:^7.2.0, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.0, @babel/types@npm:^7.4.4, @babel/types@npm:^7.6.1, @babel/types@npm:^7.7.0, @babel/types@npm:^7.7.2, @babel/types@npm:^7.8.3, @babel/types@npm:^7.8.6, @babel/types@npm:^7.8.7, @babel/types@npm:^7.9.6": - version: 7.19.4 - resolution: "@babel/types@npm:7.19.4" +"@babel/types@npm:^7.0.0, @babel/types@npm:^7.11.5, @babel/types@npm:^7.12.11, @babel/types@npm:^7.16.7, @babel/types@npm:^7.16.8, @babel/types@npm:^7.18.10, @babel/types@npm:^7.18.6, @babel/types@npm:^7.18.8, @babel/types@npm:^7.18.9, @babel/types@npm:^7.19.0, @babel/types@npm:^7.2.0, @babel/types@npm:^7.20.0, @babel/types@npm:^7.20.2, @babel/types@npm:^7.3.0, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.0, @babel/types@npm:^7.4.4, @babel/types@npm:^7.6.1, @babel/types@npm:^7.7.0, @babel/types@npm:^7.7.2, @babel/types@npm:^7.8.3, @babel/types@npm:^7.8.6, @babel/types@npm:^7.8.7, @babel/types@npm:^7.9.6": + version: 7.20.2 + resolution: "@babel/types@npm:7.20.2" dependencies: "@babel/helper-string-parser": ^7.19.4 "@babel/helper-validator-identifier": ^7.19.1 to-fast-properties: ^2.0.0 - checksum: 62d0d24fc87e36666874725b05bb0895a8834f09713ec76bf28eb2b615aa80287fd3f29801a923b9ff8a90d7f8ffd4b40bc7bc4840e4a530e165cdab3e6bfb78 + checksum: 62bb4665a9fcb149a8791f42c0509c23f6bd5da01c8319d4f49a16b5b49e2bfb97c5f7a99cf7935f94994da059feabaf90c29e3f380684f5328fc33fafb09984 languageName: node linkType: hard @@ -2428,48 +2428,48 @@ __metadata: languageName: node linkType: hard -"@emotion/babel-plugin@npm:^11.10.0, @emotion/babel-plugin@npm:^11.10.2": - version: 11.10.2 - resolution: "@emotion/babel-plugin@npm:11.10.2" +"@emotion/babel-plugin@npm:^11.10.2, @emotion/babel-plugin@npm:^11.10.5": + version: 11.10.5 + resolution: "@emotion/babel-plugin@npm:11.10.5" dependencies: "@babel/helper-module-imports": ^7.16.7 "@babel/plugin-syntax-jsx": ^7.17.12 "@babel/runtime": ^7.18.3 "@emotion/hash": ^0.9.0 "@emotion/memoize": ^0.8.0 - "@emotion/serialize": ^1.1.0 + "@emotion/serialize": ^1.1.1 babel-plugin-macros: ^3.1.0 convert-source-map: ^1.5.0 escape-string-regexp: ^4.0.0 find-root: ^1.1.0 source-map: ^0.5.7 - stylis: 4.0.13 + stylis: 4.1.3 peerDependencies: "@babel/core": ^7.0.0 - checksum: 571876a4b1445c07c1a54721ab5ae72dbe4194586bceacf2b1891dce5e86755bff7e84c00af9fd047d8b96bf6a407ad8d6fcc2c788174857f84ec3c316c5c35c + checksum: b877d089c07ad7e571f7d1b8393c21b8ab54dc24b4b7533827c00549a4fe5345af55869f57c139f7dec09615b93ca66195aa31023bbc5af89cf3ec85e80a2281 languageName: node linkType: hard -"@emotion/cache@npm:^11.10.0, @emotion/cache@npm:^11.10.3": - version: 11.10.3 - resolution: "@emotion/cache@npm:11.10.3" +"@emotion/cache@npm:^11.10.3, @emotion/cache@npm:^11.10.5": + version: 11.10.5 + resolution: "@emotion/cache@npm:11.10.5" dependencies: "@emotion/memoize": ^0.8.0 - "@emotion/sheet": ^1.2.0 + "@emotion/sheet": ^1.2.1 "@emotion/utils": ^1.2.0 "@emotion/weak-memoize": ^0.3.0 - stylis: 4.0.13 - checksum: 5dde04418566adbd0c83042acb1b85f354dc40bad83e33f951694a36d00559ceea2dfcf533b9d9381f1bb5df8dbb436a94725b6558762da7c83f3171f1c0dbbe + stylis: 4.1.3 + checksum: eeb6891ab04cf17ace0e175742550b97c30df777d6c5b145e91c4c9fbd783c29b4dabe12a8c786b78f37176313a8295c9b90c69d875e6caab5f7e4677a18be91 languageName: node linkType: hard -"@emotion/css-prettifier@npm:^1.1.0": - version: 1.1.0 - resolution: "@emotion/css-prettifier@npm:1.1.0" +"@emotion/css-prettifier@npm:^1.1.1": + version: 1.1.1 + resolution: "@emotion/css-prettifier@npm:1.1.1" dependencies: "@emotion/memoize": ^0.8.0 - stylis: 4.0.13 - checksum: 0ca881d7096678de456ed74ca2a28ed7f7a473829f7b91f8d9480d1404afb14f36adfbe8a5f789ef7cfabd08ac3dd9aa56d6285babd6b6ed031f2e92dc23fe1b + stylis: 4.1.3 + checksum: b921139e04d443ea3c8170cb90ae3c758e9effacdba99c5edab5d69400bcf464da283d20a92b4a1e8c74bb3e5feb8ebaee2e74ff5c84d5eab9989b000e5c7c42 languageName: node linkType: hard @@ -2490,23 +2490,23 @@ __metadata: linkType: hard "@emotion/jest@npm:^11.10.0, @emotion/jest@npm:^11.8.0": - version: 11.10.0 - resolution: "@emotion/jest@npm:11.10.0" + version: 11.10.5 + resolution: "@emotion/jest@npm:11.10.5" dependencies: "@babel/runtime": ^7.18.3 - "@emotion/css-prettifier": ^1.1.0 + "@emotion/css-prettifier": ^1.1.1 chalk: ^4.1.0 specificity: ^0.4.1 - stylis: 4.0.13 + stylis: 4.1.3 peerDependencies: - "@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 + "@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0 enzyme-to-json: ^3.2.1 peerDependenciesMeta: "@types/jest": optional: true enzyme-to-json: optional: true - checksum: d1d566e3958fb17d1bc3fe37b398546bdfc92666a34c0281a27108d7630219af0c90ec05633ec7fc55794a5f714d517d1ee9489435620b40ec9982136ad6e16a + checksum: 4629a2eac0bf1aa5a590c0fecedfa908325f3c7f66f13811058162e1fe94e2fc5282dbe321f9cb1593a3220e193e88e054ab138276c3f425b4a202ce1d135f17 languageName: node linkType: hard @@ -2518,13 +2518,13 @@ __metadata: linkType: hard "@emotion/react@npm:^11.10.4": - version: 11.10.4 - resolution: "@emotion/react@npm:11.10.4" + version: 11.10.5 + resolution: "@emotion/react@npm:11.10.5" dependencies: "@babel/runtime": ^7.18.3 - "@emotion/babel-plugin": ^11.10.0 - "@emotion/cache": ^11.10.0 - "@emotion/serialize": ^1.1.0 + "@emotion/babel-plugin": ^11.10.5 + "@emotion/cache": ^11.10.5 + "@emotion/serialize": ^1.1.1 "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@emotion/utils": ^1.2.0 "@emotion/weak-memoize": ^0.3.0 @@ -2537,38 +2537,38 @@ __metadata: optional: true "@types/react": optional: true - checksum: da447676d10050b14534f9e903d8a058d4cdfa82f58caf4da5c150a55b2019a8b45187989085faa4b075db92f7df7abe188eb76fe5377a57516631ccf299367b + checksum: 911fdc54a44304e70e8f2721ba2c323695171856d5337c761ff5f952f2e651d54b1b5b68319573a0d9a5a847d13f622c2d951317176ea701607d349f8a9cd0f5 languageName: node linkType: hard -"@emotion/serialize@npm:^1.1.0": - version: 1.1.0 - resolution: "@emotion/serialize@npm:1.1.0" +"@emotion/serialize@npm:^1.1.1": + version: 1.1.1 + resolution: "@emotion/serialize@npm:1.1.1" dependencies: "@emotion/hash": ^0.9.0 "@emotion/memoize": ^0.8.0 "@emotion/unitless": ^0.8.0 "@emotion/utils": ^1.2.0 csstype: ^3.0.2 - checksum: a122fc4c34425bc76d0c72b14c8e0617ccc72709fbbed695c506ca493dc478df15eba0c1ec45807e7dd248430b2e0dbf8ba8fe9035832087138e0f8e51ac4100 + checksum: ea353abbf530ede8b74fe4df30eb626f245f710ce0bfcb9d34e72630a1dede688fddf02b1143f33a1a4ef5b66b70715a3c1cd6a12ec43f5b585ed60d4f3e8712 languageName: node linkType: hard -"@emotion/sheet@npm:^1.2.0": - version: 1.2.0 - resolution: "@emotion/sheet@npm:1.2.0" - checksum: 8d759a5211e09ef260604fd97737641b00c4bc476974202f298dfc0ad3b1c42838b512ad55547296d0082a50ce9be68251a276d7d0cf97c93a53d287a087a1e5 +"@emotion/sheet@npm:^1.2.1": + version: 1.2.1 + resolution: "@emotion/sheet@npm:1.2.1" + checksum: 88268c00005d310df3ebb249b839ad0b234943da5a0cc614b232b9bd4ae600292dca9b0f61c45cde3a592c77459e880d77a2aa73af20ec3c0d579afccc3f71af languageName: node linkType: hard "@emotion/styled@npm:^11.10.4": - version: 11.10.4 - resolution: "@emotion/styled@npm:11.10.4" + version: 11.10.5 + resolution: "@emotion/styled@npm:11.10.5" dependencies: "@babel/runtime": ^7.18.3 - "@emotion/babel-plugin": ^11.10.0 + "@emotion/babel-plugin": ^11.10.5 "@emotion/is-prop-valid": ^1.2.0 - "@emotion/serialize": ^1.1.0 + "@emotion/serialize": ^1.1.1 "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@emotion/utils": ^1.2.0 peerDependencies: @@ -2580,7 +2580,7 @@ __metadata: optional: true "@types/react": optional: true - checksum: 8067243991d31025967e993410298ca4c558e05e3b99e319d2734b022478001ac5b0fae7a010ba7fd5a74b762d264a17e5bddffbe09841c19857ab9b077077f3 + checksum: 63f974c508df651115ff28b2230feddfc27e0cfcb1a4b0dbdf03c57dfdb06edfc6858b298c0c475326d5a3b25982271625d75d107b4c85c2c0166c12fc0091b8 languageName: node linkType: hard @@ -2817,13 +2817,13 @@ __metadata: linkType: hard "@humanwhocodes/config-array@npm:^0.11.6": - version: 0.11.6 - resolution: "@humanwhocodes/config-array@npm:0.11.6" + version: 0.11.7 + resolution: "@humanwhocodes/config-array@npm:0.11.7" dependencies: "@humanwhocodes/object-schema": ^1.2.1 debug: ^4.1.1 - minimatch: ^3.0.4 - checksum: 28bc0630d11c77c45aeff7cbab79159c9cce88ff1f3bc0e4cb9ff4fb271b6d3bfebcbc1ec56ae7f2b28cb31f0903ba98960b6730e66b232cc5d8f374b7d3239d + minimatch: ^3.0.5 + checksum: 88b24aa7ff7ba7f4313de530b7c162cb4bcd75451a7765eb2810b2841c61989f184a1f7ef76f3160df8a8735615fda64075e9da83273190731e5a26e03c6920c languageName: node linkType: hard @@ -4484,9 +4484,9 @@ __metadata: linkType: hard "@lit/reactive-element@npm:^1.3.0, @lit/reactive-element@npm:^1.4.0": - version: 1.4.1 - resolution: "@lit/reactive-element@npm:1.4.1" - checksum: 7bc477c1e383618d2b859e0e1f26064497c85a027c561aef7b1a658fb0a28a24771284d9f5a54cc0d34b1114c729e585d3d21e2a0c3a1a2f4f644aea9c4ad852 + version: 1.4.2 + resolution: "@lit/reactive-element@npm:1.4.2" + checksum: 97e73098a9e6d13b65d7df7b8de1bdea752f128dc260923c38ef8e02a849068c4cacca48bac1abf6ef2db56b75b373ae6d1757fb36ba6a6d743bb3014e28005d languageName: node linkType: hard @@ -4537,100 +4537,100 @@ __metadata: languageName: node linkType: hard -"@next/env@npm:12.3.1": - version: 12.3.1 - resolution: "@next/env@npm:12.3.1" - checksum: 22c6478903a60b32544b3fe5e1cf2463f4bedc51c42eccc9b806cac9c8045dee5d83c63a117d58ff209806c273b5349f23ff9e7beabcdbdacf66739f13cf41a2 +"@next/env@npm:12.3.2": + version: 12.3.2 + resolution: "@next/env@npm:12.3.2" + checksum: 99ba0ccbfadc5a5e64ee363e16f08da3313220cc5b571d6fe16cdc67cc366ee48c0cfc5486600120a02dc0d90c9ae1ce504a136830337125e335ad7b46711d95 languageName: node linkType: hard -"@next/swc-android-arm-eabi@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-android-arm-eabi@npm:12.3.1" +"@next/swc-android-arm-eabi@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-android-arm-eabi@npm:12.3.2" conditions: os=android & cpu=arm languageName: node linkType: hard -"@next/swc-android-arm64@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-android-arm64@npm:12.3.1" +"@next/swc-android-arm64@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-android-arm64@npm:12.3.2" conditions: os=android & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-arm64@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-darwin-arm64@npm:12.3.1" +"@next/swc-darwin-arm64@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-darwin-arm64@npm:12.3.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@next/swc-darwin-x64@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-darwin-x64@npm:12.3.1" +"@next/swc-darwin-x64@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-darwin-x64@npm:12.3.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@next/swc-freebsd-x64@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-freebsd-x64@npm:12.3.1" +"@next/swc-freebsd-x64@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-freebsd-x64@npm:12.3.2" conditions: os=freebsd & cpu=x64 languageName: node linkType: hard -"@next/swc-linux-arm-gnueabihf@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-linux-arm-gnueabihf@npm:12.3.1" +"@next/swc-linux-arm-gnueabihf@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-linux-arm-gnueabihf@npm:12.3.2" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@next/swc-linux-arm64-gnu@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-linux-arm64-gnu@npm:12.3.1" +"@next/swc-linux-arm64-gnu@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-linux-arm64-gnu@npm:12.3.2" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-arm64-musl@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-linux-arm64-musl@npm:12.3.1" +"@next/swc-linux-arm64-musl@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-linux-arm64-musl@npm:12.3.2" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@next/swc-linux-x64-gnu@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-linux-x64-gnu@npm:12.3.1" +"@next/swc-linux-x64-gnu@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-linux-x64-gnu@npm:12.3.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@next/swc-linux-x64-musl@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-linux-x64-musl@npm:12.3.1" +"@next/swc-linux-x64-musl@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-linux-x64-musl@npm:12.3.2" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@next/swc-win32-arm64-msvc@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-win32-arm64-msvc@npm:12.3.1" +"@next/swc-win32-arm64-msvc@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-win32-arm64-msvc@npm:12.3.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@next/swc-win32-ia32-msvc@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-win32-ia32-msvc@npm:12.3.1" +"@next/swc-win32-ia32-msvc@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-win32-ia32-msvc@npm:12.3.2" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@next/swc-win32-x64-msvc@npm:12.3.1": - version: 12.3.1 - resolution: "@next/swc-win32-x64-msvc@npm:12.3.1" +"@next/swc-win32-x64-msvc@npm:12.3.2": + version: 12.3.2 + resolution: "@next/swc-win32-x64-msvc@npm:12.3.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5356,11 +5356,11 @@ __metadata: linkType: hard "@sinonjs/commons@npm:^1.7.0": - version: 1.8.3 - resolution: "@sinonjs/commons@npm:1.8.3" + version: 1.8.5 + resolution: "@sinonjs/commons@npm:1.8.5" dependencies: type-detect: 4.0.8 - checksum: e4d2471feb19f735654f798fcdf389b90fab5913da609f566b04c4cdd9131a97e897d565251d35389aeebcca70a22ab4ed2291c7f7927706ead12e4f94841bf1 + checksum: ac25e2e1b232353fd3bb65d7a15db7651e4fa7c63327cc9164a51ea93cacd61730ea4c80335e4474b39b527ac3acbb0d533d12f9052d94b7cb59e690cdf5466d languageName: node linkType: hard @@ -5851,8 +5851,8 @@ __metadata: linkType: soft "@storybook/addon-svelte-csf@npm:^2.0.0": - version: 2.0.8 - resolution: "@storybook/addon-svelte-csf@npm:2.0.8" + version: 2.0.10 + resolution: "@storybook/addon-svelte-csf@npm:2.0.10" dependencies: ts-dedent: ^2.0.0 peerDependencies: @@ -5862,7 +5862,7 @@ __metadata: peerDependenciesMeta: svelte-loader: optional: true - checksum: c4ded876963fdaa9c436a8d926dc843839d08b45febf37c8b28b73bd96eb16f808121a510bafc048c8ce194eea5f5505d12125e28317fdb0c2d3f722167878a1 + checksum: fc128896f0d7416fd671d7e392a11ced20f150dbddbac39a2e9f9948145409fdba1380d800a40ffc663a664829e01cffa71d2ec1ec4845c18f804117025a9d85 languageName: node linkType: hard @@ -5987,6 +5987,7 @@ __metadata: "@types/rimraf": ^3.0.2 "@types/semver": ^7.3.4 "@types/tmp": ^0.2.3 + "@types/webpack-env": ^1.18.0 core-js: ^3.8.2 cross-spawn: ^7.0.3 find-up: ^5.0.0 @@ -6168,6 +6169,7 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.49 "@storybook/mdx2-csf": next "@storybook/node-logger": 7.0.0-alpha.49 + "@storybook/preview": 7.0.0-alpha.49 "@storybook/preview-web": 7.0.0-alpha.49 "@storybook/source-loader": 7.0.0-alpha.49 "@storybook/types": 7.0.0-alpha.49 @@ -6176,6 +6178,8 @@ __metadata: "@vitejs/plugin-react": ^2.0.0 browser-assert: ^1.2.1 es-module-lexer: ^0.9.3 + express: ^4.17.1 + fs-extra: ^9.0.1 glob: ^7.2.0 glob-promise: ^4.2.0 magic-string: ^0.26.1 @@ -6202,6 +6206,7 @@ __metadata: "@storybook/core-events": 7.0.0-alpha.49 "@storybook/core-webpack": 7.0.0-alpha.49 "@storybook/node-logger": 7.0.0-alpha.49 + "@storybook/preview": 7.0.0-alpha.49 "@storybook/preview-web": 7.0.0-alpha.49 "@storybook/router": 7.0.0-alpha.49 "@storybook/store": 7.0.0-alpha.49 @@ -6218,7 +6223,9 @@ __metadata: browser-assert: ^1.2.1 case-sensitive-paths-webpack-plugin: ^2.4.0 css-loader: ^6.7.1 + express: ^4.17.1 fork-ts-checker-webpack-plugin: ^7.2.8 + fs-extra: ^9.0.1 global: ^4.4.0 html-webpack-plugin: ^5.5.0 path-browserify: ^1.0.1 @@ -6638,7 +6645,7 @@ __metadata: languageName: node linkType: hard -"@storybook/csf@npm:0.0.2-next.5": +"@storybook/csf@npm:0.0.2-next.5, @storybook/csf@npm:next": version: 0.0.2-next.5 resolution: "@storybook/csf@npm:0.0.2-next.5" dependencies: @@ -7228,6 +7235,41 @@ __metadata: languageName: unknown linkType: soft +"@storybook/preview@7.0.0-alpha.49, @storybook/preview@workspace:lib/preview": + version: 0.0.0-use.local + resolution: "@storybook/preview@workspace:lib/preview" + dependencies: + "@storybook/api": 7.0.0-alpha.49 + "@storybook/channel-postmessage": 7.0.0-alpha.49 + "@storybook/channel-websocket": 7.0.0-alpha.49 + "@storybook/channels": 7.0.0-alpha.49 + "@storybook/client-logger": 7.0.0-alpha.49 + "@storybook/core-client": 7.0.0-alpha.49 + "@storybook/core-common": 7.0.0-alpha.49 + "@storybook/core-events": 7.0.0-alpha.49 + "@storybook/csf": next + "@storybook/preview-web": 7.0.0-alpha.49 + "@storybook/router": 7.0.0-alpha.49 + "@storybook/theming": 7.0.0-alpha.49 + "@storybook/types": 7.0.0-alpha.49 + "@types/qs": ^6.9.5 + "@types/webpack-env": ^1.16.4 + ansi-to-html: ^0.6.11 + dequal: ^2.0.2 + global: ^4.4.0 + lodash: ^4.17.21 + memoizerific: ^1.11.3 + qs: ^6.10.0 + react: 16.14.0 + slash: ^3.0.0 + synchronous-promise: ^2.0.15 + ts-dedent: ^2.0.0 + ts-jest: ^28.0.8 + typescript: ~4.6.3 + util-deprecate: ^1.0.2 + languageName: unknown + linkType: soft + "@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0": version: 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 resolution: "@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0" @@ -8280,15 +8322,15 @@ __metadata: linkType: hard "@types/babel__core@npm:^7.0.0, @types/babel__core@npm:^7.1.14, @types/babel__core@npm:^7.1.7": - version: 7.1.19 - resolution: "@types/babel__core@npm:7.1.19" + version: 7.1.20 + resolution: "@types/babel__core@npm:7.1.20" dependencies: "@babel/parser": ^7.1.0 "@babel/types": ^7.0.0 "@types/babel__generator": "*" "@types/babel__template": "*" "@types/babel__traverse": "*" - checksum: d07442fee0a1331405c80efc06dd74fe815fc9ac1351de54c4eaf06fea9e516992a6f6a139361d78df5828b0a94977f33c977d9391b09949b959fd20d80f48d8 + checksum: f88025726047188c9ee96790294d5bb56bf452f6b65f80389788e8b11c16aab77fd709e2d1c07117ddee4e8a267615a88434b0570318301554daf304e20d7ad3 languageName: node linkType: hard @@ -8482,12 +8524,12 @@ __metadata: linkType: hard "@types/eslint@npm:*": - version: 8.4.8 - resolution: "@types/eslint@npm:8.4.8" + version: 8.4.10 + resolution: "@types/eslint@npm:8.4.10" dependencies: "@types/estree": "*" "@types/json-schema": "*" - checksum: 42b6857b9673c6e881805c130ab6730e5440a3e8bc932fc71b8a8e42ac23c64e34e74484ec3551e07e47d0eeb99cebc9e94160e36ac3c3c087e8fbaf1c2e5b56 + checksum: ff245f08f2a687a78314f7f5054af833ea17fc392587196d11c9811efe396f3bdf4aaba20c4be763607315ebb81c68da64f58726d14ab1d2ca4a98aaa758e1c9 languageName: node linkType: hard @@ -8688,12 +8730,12 @@ __metadata: linkType: hard "@types/jest@npm:*, @types/jest@npm:>=26.0.0": - version: 29.2.0 - resolution: "@types/jest@npm:29.2.0" + version: 29.2.2 + resolution: "@types/jest@npm:29.2.2" dependencies: expect: ^29.0.0 pretty-format: ^29.0.0 - checksum: b992f309b18b919aa25a74e7d5f9ec3d4712d5a5251ec7cb4b393ac586ca675e046cbbdff6612defc1177052150dab371777a18f208b236676d2994375315049 + checksum: c13bf199d38e41d8f6b28add5c4a8dedfb711080cdf83f58dd6476c365e25456771d4c2484ca05c5d5507cadf3617a1aedfce125fe73f43f229f23ac21f0dfa5 languageName: node linkType: hard @@ -8750,9 +8792,9 @@ __metadata: linkType: hard "@types/lodash@npm:^4.14.167": - version: 4.14.186 - resolution: "@types/lodash@npm:4.14.186" - checksum: 6e0c73ead3eb5073e37c9b8141004369776fba31a3876d2b647d590b78256e414b770753f767a548a70ad23408ac5cc83b174adfd5dba2bb88b833f2763c632b + version: 4.14.188 + resolution: "@types/lodash@npm:4.14.188" + checksum: 4debfc61d27544ac71296d5b1128bb86ae78fd38d2f9378ab5e8de6a99eb4403f8d0efc0ac4c055930c4f6014433bc2ce39a2e9245d036aa75e596ff786b16ff languageName: node linkType: hard @@ -8841,16 +8883,16 @@ __metadata: linkType: hard "@types/node@npm:*, @types/node@npm:>= 8, @types/node@npm:^18.7.20": - version: 18.11.5 - resolution: "@types/node@npm:18.11.5" - checksum: 1c279db0eaebc3ba45a2802bbd7043f6ef84bda199adc26ff1321cb5cc3e6870278b4dc4c2a2736055f68193c2359063117be6e28ef0c169d3e7c8d2d8b3e753 + version: 18.11.9 + resolution: "@types/node@npm:18.11.9" + checksum: aeaa925406f841c41679b32def9391a9892171e977105e025050e9f66e2830b4c50d0d974a1af0077ead3337a1f3bdf49ee7e7f402ebf2e034a3f97d9d240dba languageName: node linkType: hard "@types/node@npm:^14.14.20 || ^16.0.0, @types/node@npm:^16.0.0": - version: 16.18.0 - resolution: "@types/node@npm:16.18.0" - checksum: cab5add5b756c572461302b685910c1bd8ba98af516f82ea7061b5f4afa0fb3b90ee2c4d82ac722afb0058522835d5d0fa364e8f2f4aa69a363212ec0f401676 + version: 16.18.3 + resolution: "@types/node@npm:16.18.3" + checksum: 058ddd61a3d39f517bc9c30b82b9d6257d903e84c42ba66aae63bd13203b6deb2acf7f7e14caefd5d7cebadbe8c90604c04f9851cd41cd6a1bc2fc4dcec85f01 languageName: node linkType: hard @@ -9000,11 +9042,11 @@ __metadata: linkType: hard "@types/react-dom@npm:^16.9.14": - version: 16.9.16 - resolution: "@types/react-dom@npm:16.9.16" + version: 16.9.17 + resolution: "@types/react-dom@npm:16.9.17" dependencies: "@types/react": ^16 - checksum: 1d3feea5f32d70644a94e6b3d15371585bd5f3defe3981a936f299d5a0ebd6ef0208057201c990e7feaab3c2092bb9e889ae74ee316e3a48e15069e72a8e1575 + checksum: c9c36d071f5e7480a74948ceed0cf2080194f9e0922de69a3c877629b1e7cb5f87e47afaea7d095a2dccfcf273746416f7780dd68830ea89dba68499758db10b languageName: node linkType: hard @@ -9018,13 +9060,13 @@ __metadata: linkType: hard "@types/react@npm:*, @types/react@npm:>=16, @types/react@npm:^16, @types/react@npm:^16.14.23": - version: 16.14.33 - resolution: "@types/react@npm:16.14.33" + version: 16.14.34 + resolution: "@types/react@npm:16.14.34" dependencies: "@types/prop-types": "*" "@types/scheduler": "*" csstype: ^3.0.2 - checksum: c77955b60c61ab2797649ba0d92a51f50b513e12246891502eda3d9ac34fb9a1f314403b5101d1d3a14e3e5f6d2b0f3e5745b4892a093102dfbafe8ce35d8fbd + checksum: 0cc204f87badeabd4641beb415e82b574152596e65304f5e63cd41948b23036f3e7ae658a86aa5357c2ab4f0f4f9402dfd5077c3df0c5294130a45d92add9bac languageName: node linkType: hard @@ -9072,9 +9114,9 @@ __metadata: linkType: hard "@types/semver@npm:^7.3.12, @types/semver@npm:^7.3.4": - version: 7.3.12 - resolution: "@types/semver@npm:7.3.12" - checksum: bd76432b8f58f6d853d0aa938377d7da623b21ae477797940cc84445203669b7acea042c66336976db3c26a7c27e8afc71707fec01ec1d83d5e4d191ea008182 + version: 7.3.13 + resolution: "@types/semver@npm:7.3.13" + checksum: 73295bb1fee46f8c76c7a759feeae5a3022f5bedfdc17d16982092e4b33af17560234fb94861560c20992a702a1e1b9a173bb623a96f95f80892105f5e7d25e3 languageName: node linkType: hard @@ -9255,7 +9297,7 @@ __metadata: languageName: node linkType: hard -"@types/webpack-env@npm:^1.16.0, @types/webpack-env@npm:^1.16.4, @types/webpack-env@npm:^1.17.0": +"@types/webpack-env@npm:^1.16.0, @types/webpack-env@npm:^1.16.4, @types/webpack-env@npm:^1.17.0, @types/webpack-env@npm:^1.18.0": version: 1.18.0 resolution: "@types/webpack-env@npm:1.18.0" checksum: ac2e91b025ea31b98b0271ccb40da789c5b54693c1efb18265a54c03b303b750501f080a44e99d7ce0a5422d68d535e600e851df4b8f2240444eca7ac3159719 @@ -9376,14 +9418,15 @@ __metadata: linkType: hard "@typescript-eslint/eslint-plugin@npm:^5.40.1": - version: 5.41.0 - resolution: "@typescript-eslint/eslint-plugin@npm:5.41.0" + version: 5.42.1 + resolution: "@typescript-eslint/eslint-plugin@npm:5.42.1" dependencies: - "@typescript-eslint/scope-manager": 5.41.0 - "@typescript-eslint/type-utils": 5.41.0 - "@typescript-eslint/utils": 5.41.0 + "@typescript-eslint/scope-manager": 5.42.1 + "@typescript-eslint/type-utils": 5.42.1 + "@typescript-eslint/utils": 5.42.1 debug: ^4.3.4 ignore: ^5.2.0 + natural-compare-lite: ^1.4.0 regexpp: ^3.2.0 semver: ^7.3.7 tsutils: ^3.21.0 @@ -9393,54 +9436,54 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 3954e4885a75c201e8f180d5710d43e26d61d156eed3007c00f0d5e37b96a94a361bbee1929982b982dbc98b3c8eae013b3bd85d307b3fd5a408afab4397c601 + checksum: 906bde546130628726efeceeace6e1984bb304b7b539753add88034fd31b299c3ddf80a842637de92b6ee7ec9b2193dc07f9cf694cc59ee851173082a27e5b57 languageName: node linkType: hard "@typescript-eslint/experimental-utils@npm:^5.40.1": - version: 5.41.0 - resolution: "@typescript-eslint/experimental-utils@npm:5.41.0" + version: 5.42.1 + resolution: "@typescript-eslint/experimental-utils@npm:5.42.1" dependencies: - "@typescript-eslint/utils": 5.41.0 + "@typescript-eslint/utils": 5.42.1 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 63cdd0b5918042f46a1bb9d6ec7e98bf9edb3d3bf964921bec9c0f7f99b4a8bdd2c5e440c2eadeb6e4a69db09611dfbfc4cd27e58b6b076a8611393f0be24acd + checksum: 290c4e423e79adeaff39b988517f54b959549048320a86c14fed5ea9a31397447935923f7038960163c555d5ab5619f5baeb0f929849747be12c4526e9f97cf9 languageName: node linkType: hard "@typescript-eslint/parser@npm:^5.40.1": - version: 5.41.0 - resolution: "@typescript-eslint/parser@npm:5.41.0" + version: 5.42.1 + resolution: "@typescript-eslint/parser@npm:5.42.1" dependencies: - "@typescript-eslint/scope-manager": 5.41.0 - "@typescript-eslint/types": 5.41.0 - "@typescript-eslint/typescript-estree": 5.41.0 + "@typescript-eslint/scope-manager": 5.42.1 + "@typescript-eslint/types": 5.42.1 + "@typescript-eslint/typescript-estree": 5.42.1 debug: ^4.3.4 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 peerDependenciesMeta: typescript: optional: true - checksum: d07df9fe001cc79df1e57460312dcbede03f4d524b99350fb9ef5af896b132bb747d96865a28dbae3566393c212e779315e67aa582072a59bb23d3675ab9ad2b + checksum: 812e3389f4c44e916aaf82210b2e816654efacd1e4112a8430735f138078feaca633b256fca1d33e6043d97ef29c0281ff1654e778d1f4aee4467785529020d7 languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/scope-manager@npm:5.41.0" +"@typescript-eslint/scope-manager@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/scope-manager@npm:5.42.1" dependencies: - "@typescript-eslint/types": 5.41.0 - "@typescript-eslint/visitor-keys": 5.41.0 - checksum: 76c1fb1d0838d333d0dd2caa52e18b471ff7b711899cd541fa0a011289fc79115e8617da4279273103a4e1b4d2cc7f8d0ddb1c396642a41acdd5b7fa6379aa55 + "@typescript-eslint/types": 5.42.1 + "@typescript-eslint/visitor-keys": 5.42.1 + checksum: fb0a0b89c7ff51b91767027326181064dfa78477c2c255d87ce14640540ce5fd048efdafdbf2ea544d72a9b41ec4f0e69794dc8e29ecf2a30922b99474cd3c1c languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/type-utils@npm:5.41.0" +"@typescript-eslint/type-utils@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/type-utils@npm:5.42.1" dependencies: - "@typescript-eslint/typescript-estree": 5.41.0 - "@typescript-eslint/utils": 5.41.0 + "@typescript-eslint/typescript-estree": 5.42.1 + "@typescript-eslint/utils": 5.42.1 debug: ^4.3.4 tsutils: ^3.21.0 peerDependencies: @@ -9448,23 +9491,23 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 2bf0e893b210a0f6a021bdaa9c16a3d98d65b38e4e4af4e7b056b1a9a6535dee7c73f3aff80f008d98152488bc1e468b05ef48bb93f14385eb1e9d9329693736 + checksum: c1302b5351051e0b81593fd07d3f5bb7773ee0ee8ba58540eab5e16cba745ccb577d2907c1c1be3f40dc2c1281af91516c339214d8d2075b0c73a6c542174c86 languageName: node linkType: hard -"@typescript-eslint/types@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/types@npm:5.41.0" - checksum: 015a7a550f451ad9a78937254429f55bc2e0d1c2e7de263180fdbf55735a20dd39b4beac42a24e8568a5aaf3b5db4704f69518f15a1b7e973135f0939c272019 +"@typescript-eslint/types@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/types@npm:5.42.1" + checksum: 1c35cf44fe9b7790e4270c97f19284439df37faa206aee6e2a10b61a03efdb4c68309856d3f526df69b74e4ae0ce43e9c8303fb74f5b0263751f5862253a6140 languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/typescript-estree@npm:5.41.0" +"@typescript-eslint/typescript-estree@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/typescript-estree@npm:5.42.1" dependencies: - "@typescript-eslint/types": 5.41.0 - "@typescript-eslint/visitor-keys": 5.41.0 + "@typescript-eslint/types": 5.42.1 + "@typescript-eslint/visitor-keys": 5.42.1 debug: ^4.3.4 globby: ^11.1.0 is-glob: ^4.0.3 @@ -9473,35 +9516,35 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 3a1c1f3b7026dcdaac920adeb3565fb2102aa8c69cb653a51e24cdd7ca0c2cdfcd2cc1f1c461ac9f88533f570fdf9094df5d0eaf4093245b4572568feabf1192 + checksum: 537c7a7c3e95f465eca00fcecf7023956996dfff55e27b64004717122aa70bff806c2e68efd2862c89abab88c876bf7bbdd49df91c37dce203cbdd466613fc94 languageName: node linkType: hard -"@typescript-eslint/utils@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/utils@npm:5.41.0" +"@typescript-eslint/utils@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/utils@npm:5.42.1" dependencies: "@types/json-schema": ^7.0.9 "@types/semver": ^7.3.12 - "@typescript-eslint/scope-manager": 5.41.0 - "@typescript-eslint/types": 5.41.0 - "@typescript-eslint/typescript-estree": 5.41.0 + "@typescript-eslint/scope-manager": 5.42.1 + "@typescript-eslint/types": 5.42.1 + "@typescript-eslint/typescript-estree": 5.42.1 eslint-scope: ^5.1.1 eslint-utils: ^3.0.0 semver: ^7.3.7 peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 9248526d537374c5ab0bf471d112ff5f8cb6403c65632865dd55585757d02361ffacda47849032415921b9237552cfb96f18e5c431c430dfaa2085f36fe3613d + checksum: a6bb90010c77b3e4a518001dbd3b25a34f51c489ac809be94af7227fd7427b5f9888a4d6a3a62cbc435fe2aa250898b6b1b9da9cbf7afa427788b7bdd1304203 languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:5.41.0": - version: 5.41.0 - resolution: "@typescript-eslint/visitor-keys@npm:5.41.0" +"@typescript-eslint/visitor-keys@npm:5.42.1": + version: 5.42.1 + resolution: "@typescript-eslint/visitor-keys@npm:5.42.1" dependencies: - "@typescript-eslint/types": 5.41.0 + "@typescript-eslint/types": 5.42.1 eslint-visitor-keys: ^3.3.0 - checksum: 5dfce8e4980dabbbaf3b85eb68913251c153c2602d7e32ea52ccd3c8d702b1c298f0b8339d1b61016f01d539556eb4bc386e33c339f64da19bb1ee42ce11fe65 + checksum: 7b162c56848cf94e2897ff8b9227e7bf80d2b88a3c1fd904a10701502731cfa4cc73347b58a26e99d5777a1e957f27261b7385c5e79a4ad25de4ebec3872977e languageName: node linkType: hard @@ -9565,29 +9608,29 @@ __metadata: linkType: hard "@vitejs/plugin-react@npm:^2.0.0, @vitejs/plugin-react@npm:^2.1.0": - version: 2.1.0 - resolution: "@vitejs/plugin-react@npm:2.1.0" + version: 2.2.0 + resolution: "@vitejs/plugin-react@npm:2.2.0" dependencies: - "@babel/core": ^7.18.13 - "@babel/plugin-transform-react-jsx": ^7.18.10 + "@babel/core": ^7.19.6 + "@babel/plugin-transform-react-jsx": ^7.19.0 "@babel/plugin-transform-react-jsx-development": ^7.18.6 "@babel/plugin-transform-react-jsx-self": ^7.18.6 - "@babel/plugin-transform-react-jsx-source": ^7.18.6 - magic-string: ^0.26.2 + "@babel/plugin-transform-react-jsx-source": ^7.19.6 + magic-string: ^0.26.7 react-refresh: ^0.14.0 peerDependencies: vite: ^3.0.0 - checksum: e63e973e4de450e55215d5de705a388c1d72f08bacae44810225386fbed2ec49f8257603e9f86c2d6aa443e4b36d9f10a4d39b5aa2f566ed682d01836ddf65c8 + checksum: 85fe5c740fbe8aa5dd4c3516a02a937dff0e2b0858cfa7cf8a69b998b7d05e08c296a087fde66f9171367f5c9d10d6e4bc026df1fa1e2ec528f49e7eaabeeae1 languageName: node linkType: hard "@vitejs/plugin-vue@npm:^3.0.0": - version: 3.1.2 - resolution: "@vitejs/plugin-vue@npm:3.1.2" + version: 3.2.0 + resolution: "@vitejs/plugin-vue@npm:3.2.0" peerDependencies: vite: ^3.0.0 vue: ^3.2.25 - checksum: 53867c9367f1133305e858541a9094a44c5e60d82d0c68d5eb41194dcac01ecd273252786046b3e523d40112374ac7f47558f7b292394a4529355d64b82c04cf + checksum: a2583817306e7a8ae8d3224a97f3a0b302e474a7f2b1174d3b79a9b92bc4c846825a797162fdc70b36be96d637533c25f3f8cf6e66e3787f3105ec60304695cd languageName: node linkType: hard @@ -10737,11 +10780,11 @@ __metadata: linkType: hard "aria-query@npm:^5.0.0": - version: 5.1.1 - resolution: "aria-query@npm:5.1.1" + version: 5.1.3 + resolution: "aria-query@npm:5.1.3" dependencies: deep-equal: ^2.0.5 - checksum: 8be9b1e6e4e4c296082d13620555914749195a55ad1f10f0013f8cdaa2e1ce3adfb8ecca9e5b06b865e79ce505d8ab264e3edec158ade5ca154fe7d21a66fc6b + checksum: edcbc8044c4663d6f88f785e983e6784f98cb62b4ba1e9dd8d61b725d0203e4cfca38d676aee984c31f354103461102a3d583aa4fbe4fd0a89b679744f4e5faf languageName: node linkType: hard @@ -10816,15 +10859,15 @@ __metadata: linkType: hard "array-includes@npm:^3.1.4, array-includes@npm:^3.1.5": - version: 3.1.5 - resolution: "array-includes@npm:3.1.5" + version: 3.1.6 + resolution: "array-includes@npm:3.1.6" dependencies: call-bind: ^1.0.2 define-properties: ^1.1.4 - es-abstract: ^1.19.5 - get-intrinsic: ^1.1.1 + es-abstract: ^1.20.4 + get-intrinsic: ^1.1.3 is-string: ^1.0.7 - checksum: a328af3cc590e077863d6a9fa673eda0ddac8e64d05da6696a18ab376f8bc633fc29c98b858a860ab93e4a98be8aef5e62ac00142275acd4090e7b077d2e1909 + checksum: d0caeaa57bea7d14b8480daee30cf8611899321006b15a6cd872b831bd7aaed7649f8764e060d01c5d33b8d9e998e5de5c87f4901874e1c1f467f429b7db2929 languageName: node linkType: hard @@ -10866,64 +10909,64 @@ __metadata: linkType: hard "array.prototype.filter@npm:^1.0.0": - version: 1.0.1 - resolution: "array.prototype.filter@npm:1.0.1" + version: 1.0.2 + resolution: "array.prototype.filter@npm:1.0.2" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.0 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 es-array-method-boxes-properly: ^1.0.0 is-string: ^1.0.7 - checksum: e1254222151c4535e69e42e9852295c09337e239a6f62276f7a0b15e099bbdf25447bcfa465873124b1a6a6553c118311193f8be2ba2b9d1988e54cdbf003aff + checksum: f49da13cb9110c7caede682e22b32208aaaea3b5d9760e5b417e3d62d72b5a092f0c26ad648879900cd9694371fc75e47f80a08b6a1eb5e3cc15976e8f4bc0c7 languageName: node linkType: hard "array.prototype.find@npm:^2.1.1": - version: 2.2.0 - resolution: "array.prototype.find@npm:2.2.0" + version: 2.2.1 + resolution: "array.prototype.find@npm:2.2.1" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.4 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 es-shim-unscopables: ^1.0.0 - checksum: 5b757cca258e3613ec1b3f19653dd00fa70d604e01303666056aad50f9359de4b8666d2b23626a5e9ca8633616f7da8eb80b68048aebebd1a6f6b8f6545380cc + checksum: 09211690d57a114a0d7de39dbd812f7844322aaed74aaa353ff2b7ee9f5a416581ca72a4c0c1cdf520cf5bad62aa33f8ca7d972afa83204ebedcb72582f08a49 languageName: node linkType: hard "array.prototype.flat@npm:^1.2.3, array.prototype.flat@npm:^1.2.5": - version: 1.3.0 - resolution: "array.prototype.flat@npm:1.3.0" + version: 1.3.1 + resolution: "array.prototype.flat@npm:1.3.1" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.2 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 es-shim-unscopables: ^1.0.0 - checksum: 59010c65c428c68eafa5ffe3d7fc304c7e3a4ebcbb229e87ee2f51507f6eb439371e80297e25e7f59f84741db4712fe006c4c570f7a54a3018b9b563afd72601 + checksum: 8eda91d6925cc84b73ebf5a3d406ff28745d93a22ef6a0afb967755107081a937cf6c4555d3c18354870b2c5366c0ff51b3f597c11079e689869810a418b1b4f languageName: node linkType: hard "array.prototype.flatmap@npm:^1.3.0": - version: 1.3.0 - resolution: "array.prototype.flatmap@npm:1.3.0" + version: 1.3.1 + resolution: "array.prototype.flatmap@npm:1.3.1" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.2 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 es-shim-unscopables: ^1.0.0 - checksum: f837de45bd1f22eb0aaf5fd79324e18a1461d6cf93edc4d48ef4695587cb5bf051c1e3de87477fbd7bb70fe6c71c8d11f10ea3c8c797553709ad1d11e649d120 + checksum: 2bd58a0e79d5d90cb4f5ef0e287edf8b28e87c65428f54025ac6b7b4c204224b92811c266f296c53a2dbc93872117c0fcea2e51d3c9e8cecfd5024d4a4a57db4 languageName: node linkType: hard -"array.prototype.reduce@npm:^1.0.4": - version: 1.0.4 - resolution: "array.prototype.reduce@npm:1.0.4" +"array.prototype.reduce@npm:^1.0.5": + version: 1.0.5 + resolution: "array.prototype.reduce@npm:1.0.5" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.2 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 es-array-method-boxes-properly: ^1.0.0 is-string: ^1.0.7 - checksum: 1a71487c9f1e75447b7abd97f1abadb39f6f6aecbb2073c35231574e9be6faee2588e828aca2ae302b5646f069b30cb5d80b4e3144c18f8f6bcc78fcadfee7e7 + checksum: 0c6c589d22d6cda4a32458c6fd57a41f420a4fa6cd184a3f6fe7b507f457bc4a073aff6accd595bcd6ac29cad856e7ac306549f127acdb098f401eea13c54901 languageName: node linkType: hard @@ -11139,11 +11182,11 @@ __metadata: linkType: hard "autoprefixer@npm:^10.4.2": - version: 10.4.12 - resolution: "autoprefixer@npm:10.4.12" + version: 10.4.13 + resolution: "autoprefixer@npm:10.4.13" dependencies: browserslist: ^4.21.4 - caniuse-lite: ^1.0.30001407 + caniuse-lite: ^1.0.30001426 fraction.js: ^4.2.0 normalize-range: ^0.1.2 picocolors: ^1.0.0 @@ -11152,7 +11195,7 @@ __metadata: postcss: ^8.1.0 bin: autoprefixer: bin/autoprefixer - checksum: 29e2ce3658afe9940450764266a896718b983429dfd8ef58fe55e0d3b103c0ff83712a343fcf5a7d3831616d15970ba17d729ac17d7433c5a7ec8a9c1af2fc15 + checksum: 55ef1feb555516f68c740b3a0050d89b663c4a806a52ff23b184869ddf511b561fa56d66b2adb533bfef3798aee87b31132474582968d84fa59da133f837a230 languageName: node linkType: hard @@ -11177,10 +11220,10 @@ __metadata: languageName: node linkType: hard -"axe-core@npm:^4.2.0, axe-core@npm:^4.4.3": - version: 4.5.0 - resolution: "axe-core@npm:4.5.0" - checksum: 7ca80c6815174eaf4355d88f0622e2f2d2982312a2cf152ec0775aef5c6059da042e50e11a018ee7faa5b06bdcae9e75a3a55164ca6f4249122841a3255f3b4e +"axe-core@npm:^4.2.0, axe-core@npm:^4.4.3, axe-core@npm:^4.5.0": + version: 4.5.1 + resolution: "axe-core@npm:4.5.1" + checksum: 9b8ecb90329d73d34faea3a6bf3132b9070cc7a8d3fb12e1bf02ded29e4c938276d3435e83d59d844ea62b7069caebf18ec78a6b99754d7f9bbec7eea379bec0 languageName: node linkType: hard @@ -11278,7 +11321,7 @@ __metadata: languageName: node linkType: hard -"babel-loader@npm:8.2.5, babel-loader@npm:^7.0.0 || ^8.0.0, babel-loader@npm:^8.2.5": +"babel-loader@npm:8.2.5": version: 8.2.5 resolution: "babel-loader@npm:8.2.5" dependencies: @@ -11293,6 +11336,21 @@ __metadata: languageName: node linkType: hard +"babel-loader@npm:^7.0.0 || ^8.0.0, babel-loader@npm:^8.2.5": + version: 8.3.0 + resolution: "babel-loader@npm:8.3.0" + dependencies: + find-cache-dir: ^3.3.1 + loader-utils: ^2.0.0 + make-dir: ^3.1.0 + schema-utils: ^2.6.5 + peerDependencies: + "@babel/core": ^7.0.0 + webpack: ">=2" + checksum: 7b83bae35a12fbc5cdf250e2d36a288305fe5b6d20ab044ab7c09bbf456c8895b80af7a4f1e8b64b5c07a4fd48d4b5144dab40b4bc72a4fed532dc000362f38f + languageName: node + linkType: hard + "babel-plugin-add-react-displayname@npm:^0.0.5": version: 0.0.5 resolution: "babel-plugin-add-react-displayname@npm:0.0.5" @@ -12255,14 +12313,14 @@ __metadata: languageName: node linkType: hard -"bundle-require@npm:^3.1.0": - version: 3.1.0 - resolution: "bundle-require@npm:3.1.0" +"bundle-require@npm:^3.1.2": + version: 3.1.2 + resolution: "bundle-require@npm:3.1.2" dependencies: load-tsconfig: ^0.2.0 peerDependencies: esbuild: ">=0.13" - checksum: 6bd8f68caeb191dfa7348d9da75f9599989babf335c67c8dc1a5372c773967c76010bdd8971cae19c6bc807e82a540314cb89abfbe6fa1d9c27e14e093b6d0ec + checksum: 73f77df391a46f2cefc3bfc4777cd0169a47db1e69a64a16cb6a37208a03992ef68f02921e18ae4fba3387e076f37bcac8388077cba316ce9fd96105aec43f89 languageName: node linkType: hard @@ -12487,9 +12545,9 @@ __metadata: linkType: hard "call-me-maybe@npm:^1.0.1": - version: 1.0.1 - resolution: "call-me-maybe@npm:1.0.1" - checksum: 551991433adc2d257d24a5dea5049addc75b182cc7f64860d41bb5ec2c2f1f72efcd6f34be475e70bbb62fde9f9ba380c1a52c922daf2b4111f25fee2509550f + version: 1.0.2 + resolution: "call-me-maybe@npm:1.0.2" + checksum: 8eff5dbb61141ebb236ed71b4e9549e488bcb5451c48c11e5667d5c75b0532303788a1101e6978cafa2d0c8c1a727805599c2741e3e0982855c9f1d78cd06c9f languageName: node linkType: hard @@ -12613,10 +12671,10 @@ __metadata: languageName: node linkType: hard -"caniuse-lite@npm:^1.0.30001299, caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001407": - version: 1.0.30001425 - resolution: "caniuse-lite@npm:1.0.30001425" - checksum: ae6c3ef46ef62fa18ca31ab049d00ce63ed84bf3c4aa8e2a723b3907eb15341b6456538cab6a52f228bd90b201deba62c105767989b35294dd8ff9188ac0a1fc +"caniuse-lite@npm:^1.0.30001299, caniuse-lite@npm:^1.0.30001400, caniuse-lite@npm:^1.0.30001406, caniuse-lite@npm:^1.0.30001426": + version: 1.0.30001431 + resolution: "caniuse-lite@npm:1.0.30001431" + checksum: 720e53b7e4afbb91cc7683d64037da23b98a3199b4d34cecbba3e702646910873c21df8e3aa7cea1c37095a99ca9aff24deff610dbccd61c0436907234d77e90 languageName: node linkType: hard @@ -14364,12 +14422,12 @@ __metadata: linkType: hard "decamelize-keys@npm:^1.0.0, decamelize-keys@npm:^1.1.0": - version: 1.1.0 - resolution: "decamelize-keys@npm:1.1.0" + version: 1.1.1 + resolution: "decamelize-keys@npm:1.1.1" dependencies: decamelize: ^1.1.0 map-obj: ^1.0.0 - checksum: 95d4e3692cf7cf6568042658b780f16475a2145910a3d4e996a8d1686c2328c061365643b67b19fee5ea4a03448afc65c9fbb844400c0ecd7dadad175a72e6ef + checksum: 4ca385933127437658338c65fb9aead5f21b28d3dd3ccd7956eb29aab0953b5d3c047fbc207111672220c71ecf7a4d34f36c92851b7bbde6fca1a02c541bdd7d languageName: node linkType: hard @@ -14443,25 +14501,25 @@ __metadata: linkType: hard "deep-equal@npm:^2.0.5": - version: 2.0.5 - resolution: "deep-equal@npm:2.0.5" + version: 2.1.0 + resolution: "deep-equal@npm:2.1.0" dependencies: - call-bind: ^1.0.0 - es-get-iterator: ^1.1.1 - get-intrinsic: ^1.0.1 - is-arguments: ^1.0.4 - is-date-object: ^1.0.2 - is-regex: ^1.1.1 + call-bind: ^1.0.2 + es-get-iterator: ^1.1.2 + get-intrinsic: ^1.1.3 + is-arguments: ^1.1.1 + is-date-object: ^1.0.5 + is-regex: ^1.1.4 isarray: ^2.0.5 - object-is: ^1.1.4 + object-is: ^1.1.5 object-keys: ^1.1.1 - object.assign: ^4.1.2 - regexp.prototype.flags: ^1.3.0 - side-channel: ^1.0.3 - which-boxed-primitive: ^1.0.1 + object.assign: ^4.1.4 + regexp.prototype.flags: ^1.4.3 + side-channel: ^1.0.4 + which-boxed-primitive: ^1.0.2 which-collection: ^1.0.1 - which-typed-array: ^1.1.2 - checksum: e36a16ef53a4d3010f6bb9a3f7945cb0c15910590fa04444cfa965d6e1cd77b75418e2e7e45083f22bd769c18b606fc6e24b6a05232405bb51d9b897ee7c55f5 + which-typed-array: ^1.1.8 + checksum: dbe6bdf8bcddc0e5f91d79601bc563bf615bcae4fc385068ad8ce8f911c347b7097fd57137b0a9b465fdb0ca2a08af705d5be3e10342366cef671dc3a5b41b6e languageName: node linkType: hard @@ -15403,8 +15461,8 @@ __metadata: linkType: hard "ember-source@npm:~3.28.1": - version: 3.28.9 - resolution: "ember-source@npm:3.28.9" + version: 3.28.10 + resolution: "ember-source@npm:3.28.10" dependencies: "@babel/helper-module-imports": ^7.8.3 "@babel/plugin-transform-block-scoping": ^7.8.3 @@ -15432,7 +15490,7 @@ __metadata: resolve: ^1.17.0 semver: ^7.3.4 silent-error: ^1.1.1 - checksum: d6a26354a147a5a33dcf9cefe883cdb6ec7979aa1599b4cbaa86c765dd7a32be607ea7fb6e681545ba49b719509937b25c9de27345f5e7871f15f74b1c47ddd7 + checksum: 5dc9fa1d16084fc6b2c3b4210a26246ba8d8d6ae21e381b4d2d3810ed397e06bc699f2d5c7d86abfe5426e9ba808b350e5a244c1e2c81d8beabe63b81b2b2f92 languageName: node linkType: hard @@ -15613,15 +15671,15 @@ __metadata: linkType: hard "enzyme-adapter-react-16@npm:^1.15.5": - version: 1.15.6 - resolution: "enzyme-adapter-react-16@npm:1.15.6" + version: 1.15.7 + resolution: "enzyme-adapter-react-16@npm:1.15.7" dependencies: - enzyme-adapter-utils: ^1.14.0 - enzyme-shallow-equal: ^1.0.4 + enzyme-adapter-utils: ^1.14.1 + enzyme-shallow-equal: ^1.0.5 has: ^1.0.3 - object.assign: ^4.1.2 - object.values: ^1.1.2 - prop-types: ^15.7.2 + object.assign: ^4.1.4 + object.values: ^1.1.5 + prop-types: ^15.8.1 react-is: ^16.13.1 react-test-renderer: ^16.0.0-0 semver: ^5.7.0 @@ -15629,24 +15687,24 @@ __metadata: enzyme: ^3.0.0 react: ^16.0.0-0 react-dom: ^16.0.0-0 - checksum: 28f940fe6c1d314117890d20fff336c0836ba75f3c68b88abda800269ef4dfd04ba6846459981f55695fb94d46d7d4224f90396c0fda4c27e38b16a3748b4ad4 + checksum: 7cb69fcdc4bf2390ffe440cfa906c698b90d533032180b5b6ddf5ace1edac0e09a687b7f36706e1bba3b02a91585d8d5bd0317c237b5f5eab00bdb5512f330ee languageName: node linkType: hard -"enzyme-adapter-utils@npm:^1.14.0": - version: 1.14.0 - resolution: "enzyme-adapter-utils@npm:1.14.0" +"enzyme-adapter-utils@npm:^1.14.1": + version: 1.14.1 + resolution: "enzyme-adapter-utils@npm:1.14.1" dependencies: airbnb-prop-types: ^2.16.0 - function.prototype.name: ^1.1.3 + function.prototype.name: ^1.1.5 has: ^1.0.3 - object.assign: ^4.1.2 - object.fromentries: ^2.0.3 - prop-types: ^15.7.2 + object.assign: ^4.1.4 + object.fromentries: ^2.0.5 + prop-types: ^15.8.1 semver: ^5.7.1 peerDependencies: react: 0.13.x || 0.14.x || ^15.0.0-0 || ^16.0.0-0 - checksum: 9d02d69115ecf5864ce25b4bc1a55358ebb039e8330c867bad93cae5195713e6e5bc474777f23cb5c76800265d879000612d9f791c9f33a5b214f726798f1b4f + checksum: f07423c9181ed22fda4d761ec54aca6d9fb65d8b95da48c1471d39892f8af3d3fa54c971ed73a16acbc9a483ccda3a58f97a590bf95b4d5f77f99ae37c1ac8bb languageName: node linkType: hard @@ -15662,13 +15720,13 @@ __metadata: languageName: node linkType: hard -"enzyme-shallow-equal@npm:^1.0.1, enzyme-shallow-equal@npm:^1.0.4": - version: 1.0.4 - resolution: "enzyme-shallow-equal@npm:1.0.4" +"enzyme-shallow-equal@npm:^1.0.1, enzyme-shallow-equal@npm:^1.0.5": + version: 1.0.5 + resolution: "enzyme-shallow-equal@npm:1.0.5" dependencies: has: ^1.0.3 - object-is: ^1.1.2 - checksum: c94ad4eb012610719e0cd2e0780225c20880052cf61b7120af43a84ea1414b170a19ed9853fdfc4f5910e7f4159445d168179d2fe7e93fe10da0bdeeb93a2348 + object-is: ^1.1.5 + checksum: 30ace0c5be2d454fb001a50dd30791c18e1f86b3b7238456b464921017f6add73ea6b2a2527f1e96958d8bfe84d0afcba30b0c9e4087ebda2feb42b7800419c4 languageName: node linkType: hard @@ -15758,7 +15816,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.19.0, es-abstract@npm:^1.19.1, es-abstract@npm:^1.19.2, es-abstract@npm:^1.19.4, es-abstract@npm:^1.19.5, es-abstract@npm:^1.20.0, es-abstract@npm:^1.20.1": +"es-abstract@npm:^1.19.0, es-abstract@npm:^1.20.4": version: 1.20.4 resolution: "es-abstract@npm:1.20.4" dependencies: @@ -15797,7 +15855,7 @@ __metadata: languageName: node linkType: hard -"es-get-iterator@npm:^1.1.1": +"es-get-iterator@npm:^1.1.2": version: 1.1.2 resolution: "es-get-iterator@npm:1.1.2" dependencies: @@ -16084,11 +16142,11 @@ __metadata: linkType: hard "esbuild-wasm@npm:>=0.13.8": - version: 0.15.12 - resolution: "esbuild-wasm@npm:0.15.12" + version: 0.15.13 + resolution: "esbuild-wasm@npm:0.15.13" bin: esbuild: bin/esbuild - checksum: 112e1a35e05bcaa932b26182ffa574162ce745cc9dd6f8e6a471ea48e2841d49e18026bc32577eb1cbdf2f6ac639042a49a16c6aefc3e67cb88375c3b6e57a51 + checksum: 9bedcb95a11003467f1bd2192348c2fa796e247adc3eb36207f1d416a9d466f905ff675aeee97c554606a384e96d32a898f92124319816d45a3f4fd0a838a42d languageName: node linkType: hard @@ -16587,8 +16645,8 @@ __metadata: linkType: hard "eslint-plugin-storybook@npm:^0.6.6": - version: 0.6.6 - resolution: "eslint-plugin-storybook@npm:0.6.6" + version: 0.6.7 + resolution: "eslint-plugin-storybook@npm:0.6.7" dependencies: "@storybook/csf": ^0.0.1 "@typescript-eslint/experimental-utils": ^5.3.0 @@ -16596,7 +16654,7 @@ __metadata: ts-dedent: ^2.2.0 peerDependencies: eslint: ">=6" - checksum: aad2d3bda6b1a676b685029cb8ee1140bd5aeb40d29394b320175e6ebd47ce025d96990ae6bef905cf631dde181216bb9283a1ef9a483028fd8aa72d4d2b98ec + checksum: 55b7ac0acfb088824db475863ba2f488865cbd7fc5d23acb30e2d7fc8bc044e15b79e1ec307abc8d97c5f207f87012f74fae7b85dc0e623575b40bea137b1e21 languageName: node linkType: hard @@ -16653,8 +16711,8 @@ __metadata: linkType: hard "eslint@npm:^8.26.0": - version: 8.26.0 - resolution: "eslint@npm:8.26.0" + version: 8.27.0 + resolution: "eslint@npm:8.27.0" dependencies: "@eslint/eslintrc": ^1.3.3 "@humanwhocodes/config-array": ^0.11.6 @@ -16697,7 +16755,7 @@ __metadata: text-table: ^0.2.0 bin: eslint: bin/eslint.js - checksum: da97a44bac58770d44dc6a2daa57cbb67ac888c060dde5a87c7785ea34a2cea61568d5238d375a14bfd548ffff7cd61691ab5a81c4625c7c97412b2d45b63843 + checksum: 8fc3ecac3c620ca8758b63428981dee35758a312e607dfec0fd3815b9847b49e466ed7d0e2cadeb35e2a46d7f430581cc38e1e26bfd77728dde4e34bd9bd8686 languageName: node linkType: hard @@ -16720,13 +16778,13 @@ __metadata: linkType: hard "espree@npm:^9.4.0": - version: 9.4.0 - resolution: "espree@npm:9.4.0" + version: 9.4.1 + resolution: "espree@npm:9.4.1" dependencies: acorn: ^8.8.0 acorn-jsx: ^5.3.2 eslint-visitor-keys: ^3.3.0 - checksum: 95f1f9ac49fa112bfc2d2e82fd9e85192367090a9ee03b1e43594e85e29a3458b603b4cf7cd5ccfb156da2b94d07e7f5428474c830faa6f19db47a0b86dd3656 + checksum: f7c8f891f3b247c76ed16259522c772bb35e6a9cb5f5b2e0f111ffc60624e7533c89a0aa1f830d8f8baa2b7676313bb9ce7f64ae00ccffc223ebbf880ab691ee languageName: node linkType: hard @@ -17126,15 +17184,15 @@ __metadata: linkType: hard "expect@npm:^29.0.0": - version: 29.2.2 - resolution: "expect@npm:29.2.2" + version: 29.3.0 + resolution: "expect@npm:29.3.0" dependencies: "@jest/expect-utils": ^29.2.2 jest-get-type: ^29.2.0 jest-matcher-utils: ^29.2.2 jest-message-util: ^29.2.1 jest-util: ^29.2.1 - checksum: 4e9a08548b4bf9240ab68c5a9de22fe4460abfd6a65fbf9eac724266406cae6851bc51044a6edea46e666924b709c984eb221125394dee9b99e17138c62d1216 + checksum: b18ecfffc9b49afa1702d8ab54cccc63a5a1e2e410afc92c9a104978e397065df00af87a59d0c136e462362f3e6174e963b4a2ff1e7e1efc8217923305c449fc languageName: node linkType: hard @@ -17799,9 +17857,9 @@ __metadata: linkType: hard "flow-parser@npm:0.*": - version: 0.190.1 - resolution: "flow-parser@npm:0.190.1" - checksum: d6a142b2c58b82715dd00b5258717c4754cdd7aa849dbefe522947757c198a0c1ade5a0ef82aa2c06ccf4d1fe4bb9cf67330a4d61d1f50ffe2932b4be6d51ecd + version: 0.192.0 + resolution: "flow-parser@npm:0.192.0" + checksum: 99cd6096b119f8afb02abab7ac82cb6da1500fd7e5c16c66b212c266903087330c8a9da8d8d4ef321e3a56762510014e54ec0924ae84e082b77a3a39e8f9b10c languageName: node linkType: hard @@ -18251,7 +18309,7 @@ __metadata: languageName: node linkType: hard -"function.prototype.name@npm:^1.1.2, function.prototype.name@npm:^1.1.3, function.prototype.name@npm:^1.1.5": +"function.prototype.name@npm:^1.1.2, function.prototype.name@npm:^1.1.5": version: 1.1.5 resolution: "function.prototype.name@npm:1.1.5" dependencies: @@ -18363,7 +18421,7 @@ __metadata: languageName: node linkType: hard -"get-intrinsic@npm:^1.0.1, get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.0, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3": +"get-intrinsic@npm:^1.0.2, get-intrinsic@npm:^1.1.0, get-intrinsic@npm:^1.1.1, get-intrinsic@npm:^1.1.3": version: 1.1.3 resolution: "get-intrinsic@npm:1.1.3" dependencies: @@ -18904,6 +18962,15 @@ __metadata: languageName: node linkType: hard +"gopd@npm:^1.0.1": + version: 1.0.1 + resolution: "gopd@npm:1.0.1" + dependencies: + get-intrinsic: ^1.1.3 + checksum: 505c05487f7944c552cee72087bf1567debb470d4355b1335f2c262d218ebbff805cd3715448fe29b4b380bae6912561d0467233e4165830efd28da241418c63 + languageName: node + linkType: hard + "got@npm:^12.1.0": version: 12.5.2 resolution: "got@npm:12.5.2" @@ -20328,7 +20395,7 @@ __metadata: languageName: node linkType: hard -"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.0": +"is-arguments@npm:^1.0.4, is-arguments@npm:^1.1.0, is-arguments@npm:^1.1.1": version: 1.1.1 resolution: "is-arguments@npm:1.1.1" dependencies: @@ -20443,7 +20510,7 @@ __metadata: languageName: node linkType: hard -"is-date-object@npm:^1.0.1, is-date-object@npm:^1.0.2": +"is-date-object@npm:^1.0.1, is-date-object@npm:^1.0.5": version: 1.0.5 resolution: "is-date-object@npm:1.0.5" dependencies: @@ -20794,7 +20861,7 @@ __metadata: languageName: node linkType: hard -"is-regex@npm:^1.0.3, is-regex@npm:^1.0.4, is-regex@npm:^1.0.5, is-regex@npm:^1.1.0, is-regex@npm:^1.1.1, is-regex@npm:^1.1.2, is-regex@npm:^1.1.4": +"is-regex@npm:^1.0.3, is-regex@npm:^1.0.4, is-regex@npm:^1.0.5, is-regex@npm:^1.1.0, is-regex@npm:^1.1.2, is-regex@npm:^1.1.4": version: 1.1.4 resolution: "is-regex@npm:1.1.4" dependencies: @@ -20884,16 +20951,16 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.3, is-typed-array@npm:^1.1.9": - version: 1.1.9 - resolution: "is-typed-array@npm:1.1.9" +"is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.3": + version: 1.1.10 + resolution: "is-typed-array@npm:1.1.10" dependencies: available-typed-arrays: ^1.0.5 call-bind: ^1.0.2 - es-abstract: ^1.20.0 for-each: ^0.3.3 + gopd: ^1.0.1 has-tostringtag: ^1.0.0 - checksum: 613b7dd6d121c331bb7456f6b678ebd74aee9d77f61c3df09da2cd7841c060d4f8cff14ae8ab54977180d5da2f2da300394810bc92a05a985b3438f55cf629b2 + checksum: b71268a2e5f493f2b95af4cbfe7a65254a822f07d57f20c18f084347cd45f11810915fe37d7a6831fe4b81def24621a042fd1169ec558c50f830b591bc8c1f66 languageName: node linkType: hard @@ -22866,15 +22933,15 @@ __metadata: linkType: hard "joi@npm:^17.3.0": - version: 17.6.4 - resolution: "joi@npm:17.6.4" + version: 17.7.0 + resolution: "joi@npm:17.7.0" dependencies: "@hapi/hoek": ^9.0.0 "@hapi/topo": ^5.0.0 "@sideway/address": ^4.1.3 "@sideway/formula": ^3.0.0 "@sideway/pinpoint": ^2.0.0 - checksum: 187f7e807653c5802db52fc64dd25183ba55db86f97b02507abbc5dc5a4c466ee96c74c0b79b3592fe99fdf9a29b02cf55a95d8292e88a422d5ef059ff6d2673 + checksum: 7cf12839eeb200d935d969f2a2836df86e2e0e33bd0c1883487157990258b537d10e3b7d7b6048cdd1a046f1a276c562cd11482ecfd08f413c3a770b9a73709a languageName: node linkType: hard @@ -23432,11 +23499,11 @@ __metadata: linkType: hard "keyv@npm:^4.5.0": - version: 4.5.0 - resolution: "keyv@npm:4.5.0" + version: 4.5.2 + resolution: "keyv@npm:4.5.2" dependencies: json-buffer: 3.0.1 - checksum: 78d6f885352dffa2b85dc9c1c4bbc4d68d8971edea4ca29b0c10d6a447e04b9ac0b2030325ca00377510a7e3b47ecc088dacdc346d96dc00c9fe9c42dba7252f + checksum: b633bf53a5afa5591f383d326746226e110e59f13c7e1e8d3e3c9580d2c2345c5eefc21cce168cd5be7fa34b9163e391927146fbd2b7ee7aa2f3aa02b7f0a7de languageName: node linkType: hard @@ -23972,13 +24039,13 @@ __metadata: linkType: hard "loader-utils@npm:^1.0.2, loader-utils@npm:^1.1.0, loader-utils@npm:^1.2.3": - version: 1.4.0 - resolution: "loader-utils@npm:1.4.0" + version: 1.4.1 + resolution: "loader-utils@npm:1.4.1" dependencies: big.js: ^5.2.2 emojis-list: ^3.0.0 json5: ^1.0.1 - checksum: b3f383612c23c0adf535d61709fb3eaf864afa54dae45608e3831156b89b4b05a0a4ddc6db7d742071babe872750ba3f4f9ce89326d94f6e096dbed978fa424e + checksum: 38096fc9fba3160eb7b7408eb88658a854a992fed2106fe3972d144035688dc4fcb3767cf353f85513ac0e654efbf1001735bd5a8d8bb5429fdb5a6b0712ce92 languageName: node linkType: hard @@ -24455,9 +24522,9 @@ __metadata: linkType: hard "lru-cache@npm:^7.7.1": - version: 7.14.0 - resolution: "lru-cache@npm:7.14.0" - checksum: 88f1a8c2fd3bafc69121104740dcebc71e4ace97fb03f0ccf3b7d52df7dc10eedb78951af74f08437cf5fdb8c50d5956a0bcc944a073540f027efd8357f87cd1 + version: 7.14.1 + resolution: "lru-cache@npm:7.14.1" + checksum: d54e01ae3bedbd7bb0562fe48e61e509c86102bcc2c8babba1ba5498a6859a796adc697fa917459a455969a45c7d8645b29d938c0142b97fa3b5fb9c234d2390 languageName: node linkType: hard @@ -24527,7 +24594,7 @@ __metadata: languageName: node linkType: hard -"magic-string@npm:^0.26.0, magic-string@npm:^0.26.1, magic-string@npm:^0.26.2, magic-string@npm:^0.26.7": +"magic-string@npm:^0.26.0, magic-string@npm:^0.26.1, magic-string@npm:^0.26.7": version: 0.26.7 resolution: "magic-string@npm:0.26.7" dependencies: @@ -24756,11 +24823,11 @@ __metadata: linkType: hard "marked@npm:^4.0.12": - version: 4.1.1 - resolution: "marked@npm:4.1.1" + version: 4.2.2 + resolution: "marked@npm:4.2.2" bin: marked: bin/marked.js - checksum: 3c614fd0d11534e9b08ce5411a1e280379334392bdae4df30d5805d275c1bb29c1e3c8cc4febc898be7bb3735b83e36bb403e144fce8cd0f895dc796c33453f5 + checksum: 18aa3837d76e59f74de771ef0cc2a98fc7cc0e39b41aeccf9925fe650a8c92605b565c49a5eab90b397270acef7db71661bb4dcdd83ef06367d4cc2777be996e languageName: node linkType: hard @@ -24998,11 +25065,11 @@ __metadata: linkType: hard "memfs@npm:^3.2.2, memfs@npm:^3.4.1, memfs@npm:^3.4.3": - version: 3.4.7 - resolution: "memfs@npm:3.4.7" + version: 3.4.10 + resolution: "memfs@npm:3.4.10" dependencies: fs-monkey: ^1.0.3 - checksum: 56d85a1e6f808218096c17160eb7db694559a6307b76134e48a4927b7f3a3963941f2d86bac34f681cb16fc9d5010f0b7b42523c9b647451887be285a2348ea3 + checksum: 7bf17f35dbf787019266cb55b9488f82fd8f33cae32272df0a86979c99ee028f03b98a165c219abbc3c47f47d1b09ce8d4d0fbd73237fee70e62aec9c933f7bc languageName: node linkType: hard @@ -25621,7 +25688,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:2 || 3, minimatch@npm:^3.0.0, minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:2 || 3, minimatch@npm:^3.0.0, minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -26116,6 +26183,13 @@ __metadata: languageName: node linkType: hard +"natural-compare-lite@npm:^1.4.0": + version: 1.4.0 + resolution: "natural-compare-lite@npm:1.4.0" + checksum: f6cef26f5044515754802c0fc475d81426f3b90fe88c20fabe08771ce1f736ce46e0397c10acb569a4dd0acb84c7f1ee70676122f95d5bfdd747af3a6c6bbaa8 + languageName: node + linkType: hard + "natural-compare@npm:^1.4.0": version: 1.4.0 resolution: "natural-compare@npm:1.4.0" @@ -26184,23 +26258,23 @@ __metadata: linkType: hard "next@npm:^12.2.4": - version: 12.3.1 - resolution: "next@npm:12.3.1" - dependencies: - "@next/env": 12.3.1 - "@next/swc-android-arm-eabi": 12.3.1 - "@next/swc-android-arm64": 12.3.1 - "@next/swc-darwin-arm64": 12.3.1 - "@next/swc-darwin-x64": 12.3.1 - "@next/swc-freebsd-x64": 12.3.1 - "@next/swc-linux-arm-gnueabihf": 12.3.1 - "@next/swc-linux-arm64-gnu": 12.3.1 - "@next/swc-linux-arm64-musl": 12.3.1 - "@next/swc-linux-x64-gnu": 12.3.1 - "@next/swc-linux-x64-musl": 12.3.1 - "@next/swc-win32-arm64-msvc": 12.3.1 - "@next/swc-win32-ia32-msvc": 12.3.1 - "@next/swc-win32-x64-msvc": 12.3.1 + version: 12.3.2 + resolution: "next@npm:12.3.2" + dependencies: + "@next/env": 12.3.2 + "@next/swc-android-arm-eabi": 12.3.2 + "@next/swc-android-arm64": 12.3.2 + "@next/swc-darwin-arm64": 12.3.2 + "@next/swc-darwin-x64": 12.3.2 + "@next/swc-freebsd-x64": 12.3.2 + "@next/swc-linux-arm-gnueabihf": 12.3.2 + "@next/swc-linux-arm64-gnu": 12.3.2 + "@next/swc-linux-arm64-musl": 12.3.2 + "@next/swc-linux-x64-gnu": 12.3.2 + "@next/swc-linux-x64-musl": 12.3.2 + "@next/swc-win32-arm64-msvc": 12.3.2 + "@next/swc-win32-ia32-msvc": 12.3.2 + "@next/swc-win32-x64-msvc": 12.3.2 "@swc/helpers": 0.4.11 caniuse-lite: ^1.0.30001406 postcss: 8.4.14 @@ -26248,7 +26322,7 @@ __metadata: optional: true bin: next: dist/bin/next - checksum: a59628271f9d7eb94d49692f8d3d1201066c5d80ceed41699e1346a70760aef8c29763229820389cbb7accdb2b95076ab6762e1952e05f0d21b16db28897e56f + checksum: fb55616937867599e257766669eee37119ebb30df3d16a533ea7b7213e80bf403157852d0e189fe027b3dc4dd40fc3eec7866c2b3823214901f3ebbf60a4dd72 languageName: node linkType: hard @@ -26874,7 +26948,7 @@ __metadata: languageName: node linkType: hard -"object-is@npm:^1.0.1, object-is@npm:^1.0.2, object-is@npm:^1.1.2, object-is@npm:^1.1.4": +"object-is@npm:^1.0.1, object-is@npm:^1.0.2, object-is@npm:^1.1.2, object-is@npm:^1.1.5": version: 1.1.5 resolution: "object-is@npm:1.1.5" dependencies: @@ -26913,46 +26987,46 @@ __metadata: linkType: hard "object.entries@npm:^1.1.1, object.entries@npm:^1.1.2, object.entries@npm:^1.1.5": - version: 1.1.5 - resolution: "object.entries@npm:1.1.5" + version: 1.1.6 + resolution: "object.entries@npm:1.1.6" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.1 - checksum: 308c07970818b0fb2b0ed92120b8fad76fb69a63c853592eac48c8437bb2385bc43f00b80d263aa2920b352c66c944018df7221099fc8e2d3bfb778566ca4ebb + define-properties: ^1.1.4 + es-abstract: ^1.20.4 + checksum: 8782c71db3a068ccbae9e0541e6b4ac2c25dc67c63f97b7e6ad3c88271d7820197e7398e37747f96542ed47c27f0b81148cdf14c42df15dc22f64818ae7bb5bf languageName: node linkType: hard -"object.fromentries@npm:^2.0.3, object.fromentries@npm:^2.0.5": - version: 2.0.5 - resolution: "object.fromentries@npm:2.0.5" +"object.fromentries@npm:^2.0.5": + version: 2.0.6 + resolution: "object.fromentries@npm:2.0.6" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.1 - checksum: a1bedcdec0e1f15fc1f9dccecf7df18ae4678fc95deb42099b649a3660511f2d1dead3b09b8f7dcf15205b0f7ce69d74e3cc3368511abf85b021d86226aa77d4 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 + checksum: db6759ea68131cbdb70b1152f9984b49db03e81de4f6de079b39929bebd8b45501e5333ca2351991e07ee56f4651606c023396644e8f25c0806fa39a26c4c6e6 languageName: node linkType: hard "object.getownpropertydescriptors@npm:^2.0.3, object.getownpropertydescriptors@npm:^2.1.1": - version: 2.1.4 - resolution: "object.getownpropertydescriptors@npm:2.1.4" + version: 2.1.5 + resolution: "object.getownpropertydescriptors@npm:2.1.5" dependencies: - array.prototype.reduce: ^1.0.4 + array.prototype.reduce: ^1.0.5 call-bind: ^1.0.2 define-properties: ^1.1.4 - es-abstract: ^1.20.1 - checksum: 5c8bfddd2c8e68e4f70d56db3f4ccf18d3cc0f90ffc59c362668ce680ac32101ed1a2d700916371850fcd06277db9014e92b1f829b6a611b36549e842360d1ea + es-abstract: ^1.20.4 + checksum: 2a27afa5628bc200ddb511c5d030be867e049246388c100fcd81371c4d538c186014cf17f415f3e1430231ba75bbb021dff287727221c88156ab483cae02ab0a languageName: node linkType: hard "object.hasown@npm:^1.1.1": - version: 1.1.1 - resolution: "object.hasown@npm:1.1.1" + version: 1.1.2 + resolution: "object.hasown@npm:1.1.2" dependencies: define-properties: ^1.1.4 - es-abstract: ^1.19.5 - checksum: 79f40bf3da7c689122dc38c56114fa0280cde3e6a255f95736933240d495a2556f7ca7413c08d691bfc22e743b0d3ea82620890f21155b94c18551f3909cba8d + es-abstract: ^1.20.4 + checksum: 419fc1c74a2aea7ebb4d49b79d5b1599a010b26c18eae35bd061ccdd013ccb749c499d8dd6ee21a91e6d7264ccc592573d0f13562970f76e25fc844d8c1b02ce languageName: node linkType: hard @@ -26965,14 +27039,14 @@ __metadata: languageName: node linkType: hard -"object.values@npm:^1.1.1, object.values@npm:^1.1.2, object.values@npm:^1.1.5": - version: 1.1.5 - resolution: "object.values@npm:1.1.5" +"object.values@npm:^1.1.1, object.values@npm:^1.1.5": + version: 1.1.6 + resolution: "object.values@npm:1.1.6" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.1 - checksum: 9c6afa9a25ce36c27c8baef2321eaa719fc2b042ef17aa462b1fa1502ed7ce7acf18b269be2e7b0d91f228839f10a28fa30ebc8cb7e47dbf6a2e4e67cad466c1 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 + checksum: 3381204390f10c9f653a4875a50d221c67b5c16cb80a6ac06c706fc82a7cad8400857d4c7a0731193b0abb56b84fe803eabcf7addcf32de76397bbf207e68c66 languageName: node linkType: hard @@ -28619,7 +28693,7 @@ __metadata: languageName: node linkType: hard -"postcss@npm:^8.1.10, postcss@npm:^8.2.14, postcss@npm:^8.2.15, postcss@npm:^8.3.7, postcss@npm:^8.4.14, postcss@npm:^8.4.16, postcss@npm:^8.4.7": +"postcss@npm:^8.1.10, postcss@npm:^8.2.14, postcss@npm:^8.2.15, postcss@npm:^8.3.7, postcss@npm:^8.4.14, postcss@npm:^8.4.18, postcss@npm:^8.4.7": version: 8.4.18 resolution: "postcss@npm:8.4.18" dependencies: @@ -30130,7 +30204,7 @@ __metadata: languageName: node linkType: hard -"regenerator-runtime@npm:^0.13.2, regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.7": +"regenerator-runtime@npm:^0.13.10, regenerator-runtime@npm:^0.13.2, regenerator-runtime@npm:^0.13.4, regenerator-runtime@npm:^0.13.7": version: 0.13.10 resolution: "regenerator-runtime@npm:0.13.10" checksum: 2990a7a998ff6bf5caf5597c5671751f447560c5060ae5628469620a7ce640131bf0744c506d63c2166783121535da4ed782c3383371f945fb9a37481598a761 @@ -30163,7 +30237,7 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.2.0, regexp.prototype.flags@npm:^1.3.0, regexp.prototype.flags@npm:^1.4.1, regexp.prototype.flags@npm:^1.4.3": +"regexp.prototype.flags@npm:^1.2.0, regexp.prototype.flags@npm:^1.4.3": version: 1.4.3 resolution: "regexp.prototype.flags@npm:1.4.3" dependencies: @@ -31205,7 +31279,7 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^2.74.1": +"rollup@npm:^2.79.1": version: 2.79.1 resolution: "rollup@npm:2.79.1" dependencies: @@ -31219,9 +31293,9 @@ __metadata: languageName: node linkType: hard -"rollup@npm:~2.78.0": - version: 2.78.1 - resolution: "rollup@npm:2.78.1" +"rollup@npm:^3.2.5": + version: 3.2.5 + resolution: "rollup@npm:3.2.5" dependencies: fsevents: ~2.3.2 dependenciesMeta: @@ -31229,7 +31303,7 @@ __metadata: optional: true bin: rollup: dist/bin/rollup - checksum: ae24b886adee31455ec030736b113f84628a4f74106ea47ebf666fa5c7eac23f49b7d15acb5b5ee47671f3e184fb1c8b05946e5c76eb889a1dafaf5c75c9b70a + checksum: f9332142d6f9298cc634a472ba913205edec518f165c6f1d31934585df5d4d6582c20d3ab88ca98a4325ee9a150597c3a548e3ed904180485cd60e0f813dd66f languageName: node linkType: hard @@ -31891,7 +31965,7 @@ __metadata: languageName: node linkType: hard -"side-channel@npm:^1.0.3, side-channel@npm:^1.0.4": +"side-channel@npm:^1.0.4": version: 1.0.4 resolution: "side-channel@npm:1.0.4" dependencies: @@ -32751,51 +32825,51 @@ __metadata: linkType: hard "string.prototype.matchall@npm:^4.0.7": - version: 4.0.7 - resolution: "string.prototype.matchall@npm:4.0.7" + version: 4.0.8 + resolution: "string.prototype.matchall@npm:4.0.8" dependencies: call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.1 - get-intrinsic: ^1.1.1 + define-properties: ^1.1.4 + es-abstract: ^1.20.4 + get-intrinsic: ^1.1.3 has-symbols: ^1.0.3 internal-slot: ^1.0.3 - regexp.prototype.flags: ^1.4.1 + regexp.prototype.flags: ^1.4.3 side-channel: ^1.0.4 - checksum: 85bfc0c18b73b90b4a10771bd1afa4c6e42fc78885196dee680b45d023afc81cec6a9944f2f0e25d81f8e5643d5412df5a4649ea624ab375598c6dba0864c9a2 + checksum: 644523d05c1ee93bab7474e999a5734ee5f6ad2d7ad24ed6ea8706c270dc92b352bde0f2a5420bfbeed54e28cb6a770c3800e1988a5267a70fd5e677c7750abc languageName: node linkType: hard "string.prototype.trim@npm:^1.2.1": - version: 1.2.6 - resolution: "string.prototype.trim@npm:1.2.6" + version: 1.2.7 + resolution: "string.prototype.trim@npm:1.2.7" dependencies: call-bind: ^1.0.2 define-properties: ^1.1.4 - es-abstract: ^1.19.5 - checksum: 8376a85aafc3afefd525c76fdc1d9866de0ed8b51b6800a473987435d55d176bea7ffb221ae28f03b5c89b27e5515fca65b0437e2dee9b61da82ed9b81fc193f + es-abstract: ^1.20.4 + checksum: 31698f6d718794e422db6fcfa6685dcd9243097273b3b2a8b7948b5d45a183cd336378893ff0d4a7b2531b604c32bb5c45193dd6da3d2f5504df5cd222372c09 languageName: node linkType: hard "string.prototype.trimend@npm:^1.0.5": - version: 1.0.5 - resolution: "string.prototype.trimend@npm:1.0.5" + version: 1.0.6 + resolution: "string.prototype.trimend@npm:1.0.6" dependencies: call-bind: ^1.0.2 define-properties: ^1.1.4 - es-abstract: ^1.19.5 - checksum: efcb7d4e943366efde2786be9abf7a79ac9e427bb184aeb4c532ce81d7cb94e1a4d323b256f706dafe6ed5a4ee3d6025a65ec4337d47d07014802be5bcdd4864 + es-abstract: ^1.20.4 + checksum: 51b663e3195a74b58620a250b3fc4efb58951000f6e7d572a9f671c038f2f37f24a2b8c6994500a882aeab2f1c383fac1e8c023c01eb0c8b4e52d2f13b6c4513 languageName: node linkType: hard "string.prototype.trimstart@npm:^1.0.5": - version: 1.0.5 - resolution: "string.prototype.trimstart@npm:1.0.5" + version: 1.0.6 + resolution: "string.prototype.trimstart@npm:1.0.6" dependencies: call-bind: ^1.0.2 define-properties: ^1.1.4 - es-abstract: ^1.19.5 - checksum: c42d2f7732a98d9402aabcfb6ac05e4e36bbc429f5aa98bd199b5e55162b19b87db941ed68382c68ec6527a200a3d01cb3d4c16f668296c383e63693d8493772 + es-abstract: ^1.20.4 + checksum: 13b9970d4e234002dfc8069c655c1fe19e83e10ced208b54858c41bb0f7544e581ac0ce746e92b279563664ad63910039f7253f36942113fec413b2b4e7c1fcd languageName: node linkType: hard @@ -33031,10 +33105,10 @@ __metadata: languageName: node linkType: hard -"stylis@npm:4.0.13": - version: 4.0.13 - resolution: "stylis@npm:4.0.13" - checksum: bd567c440b4f1acf8962b1b3aa7985c4e04d7badfe1e0f1c7ee2a60912de2718973850c524001a3d52f5fc9a0e3dcd204b8bd7e2d47d4934462e9f749fd9c7bc +"stylis@npm:4.1.3": + version: 4.1.3 + resolution: "stylis@npm:4.1.3" + checksum: 3e4670f26f79bcfba628dcc2756d9d415edfcbf4ec51e40f3b628fd15286222257317cad57390752964eba85cca6163a7621ce90038d68dd630a674479e52334 languageName: node linkType: hard @@ -33372,7 +33446,7 @@ __metadata: languageName: node linkType: hard -"tar@npm:6.1.11, tar@npm:^6.0.2, tar@npm:^6.1.0, tar@npm:^6.1.11, tar@npm:^6.1.2": +"tar@npm:6.1.11": version: 6.1.11 resolution: "tar@npm:6.1.11" dependencies: @@ -33401,6 +33475,20 @@ __metadata: languageName: node linkType: hard +"tar@npm:^6.0.2, tar@npm:^6.1.0, tar@npm:^6.1.11, tar@npm:^6.1.2": + version: 6.1.12 + resolution: "tar@npm:6.1.12" + dependencies: + chownr: ^2.0.0 + fs-minipass: ^2.0.0 + minipass: ^3.0.0 + minizlib: ^2.1.1 + mkdirp: ^1.0.3 + yallist: ^4.0.0 + checksum: 183a858baba2eabfb1589ea9030601865190a074597bf0926de2460b6fe8adee9278509ac1c8460c05af7a0c8794db62c4e8cc395589470103946c55bf68e6cc + languageName: node + linkType: hard + "teeny-request@npm:7.0.1": version: 7.0.1 resolution: "teeny-request@npm:7.0.1" @@ -34199,9 +34287,9 @@ __metadata: linkType: hard "tslib@npm:^2.0.0, tslib@npm:^2.0.1, tslib@npm:^2.0.3, tslib@npm:^2.1.0, tslib@npm:^2.3.0, tslib@npm:^2.4.0": - version: 2.4.0 - resolution: "tslib@npm:2.4.0" - checksum: eb19bda3ae545b03caea6a244b34593468e23d53b26bf8649fbc20fce43e9b21a71127fd6d2b9662c0fe48ee6ff668ead48fd00d3b88b2b716b1c12edae25b5d + version: 2.4.1 + resolution: "tslib@npm:2.4.1" + checksum: 9ac0e4fd1033861f0b4f0d848dc3009ebcc3aa4757a06e8602a2d8a7aed252810e3540e54e70709f06c0f95311faa8584f769bcbede48aff785eb7e4d399b9ec languageName: node linkType: hard @@ -34213,10 +34301,10 @@ __metadata: linkType: hard "tsup@npm:^6.2.2": - version: 6.3.0 - resolution: "tsup@npm:6.3.0" + version: 6.4.0 + resolution: "tsup@npm:6.4.0" dependencies: - bundle-require: ^3.1.0 + bundle-require: ^3.1.2 cac: ^6.7.12 chokidar: ^3.5.1 debug: ^4.3.1 @@ -34226,7 +34314,7 @@ __metadata: joycon: ^3.0.1 postcss-load-config: ^3.0.1 resolve-from: ^5.0.0 - rollup: ^2.74.1 + rollup: ^3.2.5 source-map: 0.8.0-beta.0 sucrase: ^3.20.3 tree-kill: ^1.2.2 @@ -34244,7 +34332,7 @@ __metadata: bin: tsup: dist/cli-default.js tsup-node: dist/cli-node.js - checksum: fc60bc67ab93d0e59ebb028d980d853cc22328ba05ec0a09b3e6a0ea21bb2078a68e8c6978a2a1f9bd03090a8cbe77400c8c750bfdb639b47bab1bfea7232a2a + checksum: fd745b8669ad56eb96fe76afd482afab01020ee8c9f6f12b7796627862d98e9c0ed1b19cfdac3a5127afc1421ef5495f80f688f76dfb136f2b136ba23b9fe8a3 languageName: node linkType: hard @@ -35451,34 +35539,40 @@ __metadata: linkType: hard "vite@npm:^3.1.0, vite@npm:^3.1.3, vite@npm:^3.1.7": - version: 3.1.8 - resolution: "vite@npm:3.1.8" + version: 3.2.3 + resolution: "vite@npm:3.2.3" dependencies: esbuild: ^0.15.9 fsevents: ~2.3.2 - postcss: ^8.4.16 + postcss: ^8.4.18 resolve: ^1.22.1 - rollup: ~2.78.0 + rollup: ^2.79.1 peerDependencies: + "@types/node": ">= 14" less: "*" sass: "*" stylus: "*" + sugarss: "*" terser: ^5.4.0 dependenciesMeta: fsevents: optional: true peerDependenciesMeta: + "@types/node": + optional: true less: optional: true sass: optional: true stylus: optional: true + sugarss: + optional: true terser: optional: true bin: vite: bin/vite.js - checksum: 75f3959c386b8126e0ed27fdb4723bf63689e9c12f5ea84f537be7c6df460978d53f3237293eecf7b9e8b07ee72eb82c44dca3c0c94063736b6d4bc8c0eeb96c + checksum: 90c7cd812322301bba7869aba505394286dd27a8664b5e02935733a8a3bfcd8041deaa7c4316139b87ac3fca45cbbffc7287185110fc006783cc1c53bac5109e languageName: node linkType: hard @@ -36084,9 +36178,9 @@ __metadata: linkType: hard "webpack-virtual-modules@npm:^0.4.3, webpack-virtual-modules@npm:^0.4.5": - version: 0.4.5 - resolution: "webpack-virtual-modules@npm:0.4.5" - checksum: 2a7c2dbb2e5e32b06b4ab3778609ce70d1ba4bbc05d3231a3da5219dc03131d555dda4a7d4694d100a344f87e458378ea7ba241ba2a8b81b1866e53c99af5aee + version: 0.4.6 + resolution: "webpack-virtual-modules@npm:0.4.6" + checksum: d3ecd680289e04f6fac70f09a682385b176303cfdc69ad08f11fce6fa031f9c054b3e728cb54967da48f051cd2ebe3f0d0d02bf78d3dfc8a3a9be91ea7544bbb languageName: node linkType: hard @@ -36240,7 +36334,7 @@ __metadata: languageName: node linkType: hard -"which-boxed-primitive@npm:^1.0.1, which-boxed-primitive@npm:^1.0.2": +"which-boxed-primitive@npm:^1.0.2": version: 1.0.2 resolution: "which-boxed-primitive@npm:1.0.2" dependencies: @@ -36279,17 +36373,17 @@ __metadata: languageName: node linkType: hard -"which-typed-array@npm:^1.1.2": - version: 1.1.8 - resolution: "which-typed-array@npm:1.1.8" +"which-typed-array@npm:^1.1.2, which-typed-array@npm:^1.1.8": + version: 1.1.9 + resolution: "which-typed-array@npm:1.1.9" dependencies: available-typed-arrays: ^1.0.5 call-bind: ^1.0.2 - es-abstract: ^1.20.0 for-each: ^0.3.3 + gopd: ^1.0.1 has-tostringtag: ^1.0.0 - is-typed-array: ^1.1.9 - checksum: bdab0d7d077015a8e9710d93951614f2a7962ed62f5240d2852c61eb578a888c4a9da5ef93ba9d0191812e05db1817168e1ab746036d39e863d555f9b68008f1 + is-typed-array: ^1.1.10 + checksum: 7edb12cfd04bfe2e2d3ec3e6046417c59e6a8c72209e4fe41fe1a1a40a3b196626c2ca63dac2a0fa2491d5c37c065dfabd2fcf7c0c15f1d19f5640fef88f6368 languageName: node linkType: hard @@ -36573,8 +36667,8 @@ __metadata: linkType: hard "ws@npm:^8.1.0, ws@npm:^8.2.3": - version: 8.10.0 - resolution: "ws@npm:8.10.0" + version: 8.11.0 + resolution: "ws@npm:8.11.0" peerDependencies: bufferutil: ^4.0.1 utf-8-validate: ^5.0.2 @@ -36583,7 +36677,7 @@ __metadata: optional: true utf-8-validate: optional: true - checksum: db88d92897c7547ca5b24c91eca8e401788bac96c5a7935d647766481ec27fbc020947149ff820156cb1a574477e7f042962e0561cf58257e4e8be8e095534a3 + checksum: b672b312f357afba8568b9dbb9e08b9e8a20845659b35fa6b340dc848efe371379f5e22bb1dc89c4b2940d5e2dc52dd1de85dde41776875fce115a448f94754f languageName: node linkType: hard @@ -36731,7 +36825,7 @@ __metadata: languageName: node linkType: hard -"yargs-parser@npm:>=21.0.1, yargs-parser@npm:^21.0.0, yargs-parser@npm:^21.0.1": +"yargs-parser@npm:>=21.0.1, yargs-parser@npm:^21.0.1, yargs-parser@npm:^21.1.1": version: 21.1.1 resolution: "yargs-parser@npm:21.1.1" checksum: f84b5e48169479d2f402239c59f084cfd1c3acc197a05c59b98bab067452e6b3ea46d4dd8ba2985ba7b3d32a343d77df0debd6b343e5dae3da2aab2cdf5886b2 @@ -36840,8 +36934,8 @@ __metadata: linkType: hard "yargs@npm:^17.2.1, yargs@npm:^17.4.0": - version: 17.6.0 - resolution: "yargs@npm:17.6.0" + version: 17.6.2 + resolution: "yargs@npm:17.6.2" dependencies: cliui: ^8.0.1 escalade: ^3.1.1 @@ -36849,8 +36943,8 @@ __metadata: require-directory: ^2.1.1 string-width: ^4.2.3 y18n: ^5.0.5 - yargs-parser: ^21.0.0 - checksum: 9f3d40f482d37df26f66f9b8d3010645ebf9485dd1c4bab6b55c87ac4e4924836bca93f52afb1a0483e178f540e5ab6fbea60d9fc56ecba10d386ecbdc9857e6 + yargs-parser: ^21.1.1 + checksum: dd5c89aa8186d2a18625b26b68beb635df648617089135e9661107a92561056427bbd41dbfa228db5a7d968ea1043d96c036c2eb978acf7b61a0ae48bf3be206 languageName: node linkType: hard diff --git a/scripts/.eslintrc.js b/scripts/.eslintrc.js index 0ac9b62a302a..2b441a615634 100644 --- a/scripts/.eslintrc.js +++ b/scripts/.eslintrc.js @@ -28,5 +28,26 @@ module.exports = { 'import/extensions': ['error', 'always'], }, }, + { + files: [ + '*.js', + '*.jsx', + '*.json', + '*.html', + '**/.storybook/*.ts', + '**/.storybook/*.tsx', + 'setup-jest.ts', + ], + parserOptions: { + project: null, + }, + rules: { + // '@typescript-eslint/no-var-requires': 'off', + '@typescript-eslint/dot-notation': 'off', + '@typescript-eslint/no-implied-eval': 'off', + '@typescript-eslint/no-throw-literal': 'off', + '@typescript-eslint/return-await': 'off', + }, + }, ], }; diff --git a/scripts/prepare/bundle.ts b/scripts/prepare/bundle.ts index b8d8a5c6f833..9da70c78d036 100755 --- a/scripts/prepare/bundle.ts +++ b/scripts/prepare/bundle.ts @@ -15,7 +15,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { name, dependencies, peerDependencies, - bundler: { entries, platform, pre, post }, + bundler: { entries = [], untypedEntries = [], platform, pre, post }, } = await fs.readJson(join(cwd, 'package.json')); const tsnodePath = join(__dirname, '..', 'node_modules', '.bin', 'ts-node'); @@ -62,7 +62,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { // BROWSER EMS build({ silent: true, - entry: entries.map((e: string) => slash(join(cwd, e))), + entry: [...entries, ...untypedEntries].map((e: string) => slash(join(cwd, e))), watch, ...(tsConfigExists ? { tsconfig: tsConfigPath } : {}), outDir: join(process.cwd(), 'dist'), @@ -88,6 +88,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { esbuildOptions: (c) => { /* eslint-disable no-param-reassign */ c.conditions = ['module']; + c.logLevel = 'error'; c.platform = platform || 'browser'; c.legalComments = 'none'; c.minifyWhitespace = optimized; @@ -100,7 +101,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { // NODE CJS build({ silent: true, - entry: entries.map((e: string) => slash(join(cwd, e))), + entry: [...entries, ...untypedEntries].map((e: string) => slash(join(cwd, e))), watch, outDir: join(process.cwd(), 'dist'), ...(tsConfigExists ? { tsconfig: tsConfigPath } : {}), @@ -112,6 +113,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => { esbuildOptions: (c) => { /* eslint-disable no-param-reassign */ + c.logLevel = 'error'; c.platform = 'node'; c.legalComments = 'none'; c.minifyWhitespace = optimized; diff --git a/scripts/tsconfig.json b/scripts/tsconfig.json index 22f702b3c681..4c508e21aac4 100644 --- a/scripts/tsconfig.json +++ b/scripts/tsconfig.json @@ -13,8 +13,14 @@ "esModuleInterop": true, "isolatedModules": true, "strictBindCallApply": true, - "lib": ["dom", "esnext"], - "types": ["node", "jest"], + "lib": [ + "dom", + "esnext" + ], + "types": [ + "node", + "jest" + ], "strict": false, "strictNullChecks": false, "forceConsistentCasingInFileNames": true, @@ -24,24 +30,28 @@ "noFallthroughCasesInSwitch": true, "resolveJsonModule": true, "paths": { - "verdaccio": ["./typings.d.ts"] + "verdaccio": [ + "./typings.d.ts" + ] } }, "exclude": [ "dist", "**/dist", "node_modules", - "**/node_modules", - "**/*.spec.ts", - "**/__tests__", - "**/setup-jest.ts" + "**/node_modules" + ], + "include": [ + "./**/*", + "./.eslintrc.js" ], - "include": ["./**/*", "./.eslintrc.js"], "ts-node": { "transpileOnly": true, "files": true, "compilerOptions": { - "types": ["node"] + "types": [ + "node" + ] } } -} +} \ No newline at end of file From 8eb96195a5758108e457766e3f5c591c17424594 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 14 Nov 2022 14:18:39 +0100 Subject: [PATCH 3/5] do not ts ignore test --- code/addons/actions/tsconfig.json | 10 +--------- code/addons/backgrounds/tsconfig.json | 10 +--------- code/addons/controls/tsconfig.json | 10 +--------- code/addons/docs/tsconfig.json | 9 +-------- code/addons/essentials/tsconfig.json | 10 +--------- code/addons/highlight/tsconfig.json | 10 +--------- code/addons/interactions/tsconfig.json | 10 +--------- code/addons/jest/tsconfig.json | 10 +--------- code/addons/links/tsconfig.json | 10 +--------- code/addons/measure/tsconfig.json | 10 +--------- code/addons/outline/tsconfig.json | 10 +--------- .../storyshots/storyshots-puppeteer/tsconfig.json | 3 +-- code/addons/storysource/tsconfig.json | 10 +--------- code/addons/toolbars/tsconfig.json | 10 +--------- code/addons/viewport/tsconfig.json | 10 +--------- code/frameworks/ember/tsconfig.json | 3 +-- code/frameworks/html-webpack5/tsconfig.json | 3 +-- code/frameworks/nextjs/tsconfig.json | 3 +-- code/frameworks/preact-webpack5/tsconfig.json | 3 +-- code/frameworks/react-vite/tsconfig.json | 3 +-- code/frameworks/react-webpack5/tsconfig.json | 3 +-- code/frameworks/server-webpack5/tsconfig.json | 3 +-- code/frameworks/svelte-vite/tsconfig.json | 3 +-- code/frameworks/svelte-webpack5/tsconfig.json | 3 +-- code/frameworks/vue-vite/tsconfig.json | 3 +-- code/frameworks/vue-webpack5/tsconfig.json | 3 +-- code/frameworks/vue3-vite/tsconfig.json | 3 +-- code/frameworks/vue3-webpack5/tsconfig.json | 3 +-- code/frameworks/web-components-vite/tsconfig.json | 3 +-- code/frameworks/web-components-webpack5/tsconfig.json | 3 +-- code/lib/addons/tsconfig.json | 10 +--------- code/lib/api/tsconfig.json | 10 +--------- code/lib/builder-manager/tsconfig.json | 3 +-- code/lib/builder-vite/tsconfig.json | 3 +-- code/lib/builder-webpack5/tsconfig.json | 3 +-- code/lib/channel-postmessage/tsconfig.json | 10 +--------- code/lib/channel-websocket/tsconfig.json | 10 +--------- code/lib/channels/tsconfig.json | 10 +--------- code/lib/cli/tsconfig.json | 3 +-- code/lib/client-api/tsconfig.json | 10 +--------- code/lib/client-logger/tsconfig.json | 10 +--------- code/lib/codemod/tsconfig.json | 10 +--------- code/lib/core-client/tsconfig.json | 3 +-- code/lib/core-common/tsconfig.json | 3 +-- code/lib/core-events/tsconfig.json | 10 +--------- code/lib/core-server/tsconfig.json | 4 +--- code/lib/core-webpack/tsconfig.json | 3 +-- code/lib/csf-plugin/tsconfig.json | 10 +--------- code/lib/csf-tools/tsconfig.json | 10 +--------- code/lib/docs-tools/tsconfig.json | 10 +--------- code/lib/instrumenter/tsconfig.json | 10 +--------- code/lib/node-logger/tsconfig.json | 10 +--------- code/lib/postinstall/tsconfig.json | 3 +-- code/lib/preview-web/tsconfig.json | 10 +--------- code/lib/router/tsconfig.json | 10 +--------- code/lib/source-loader/tsconfig.json | 10 +--------- code/lib/store/tsconfig.json | 10 +--------- code/lib/telemetry/tsconfig.json | 10 +--------- code/lib/theming/tsconfig.json | 10 +--------- code/presets/html-webpack/tsconfig.json | 3 +-- code/presets/preact-webpack/tsconfig.json | 3 +-- code/presets/react-webpack/tsconfig.json | 3 +-- code/presets/server-webpack/tsconfig.json | 3 +-- code/presets/svelte-webpack/tsconfig.json | 3 +-- code/presets/vue-webpack/tsconfig.json | 3 +-- code/presets/vue3-webpack/tsconfig.json | 3 +-- code/presets/web-components-webpack/tsconfig.json | 3 +-- code/renderers/html/tsconfig.json | 3 +-- code/renderers/preact/tsconfig.json | 3 +-- code/renderers/react/tsconfig.json | 3 +-- code/renderers/server/tsconfig.json | 3 +-- code/renderers/svelte/tsconfig.json | 3 +-- code/renderers/vue/tsconfig.json | 3 +-- code/renderers/vue3/tsconfig.json | 3 +-- code/renderers/web-components/tsconfig.json | 3 +-- code/tsconfig.json | 1 + code/ui/blocks/tsconfig.json | 10 +--------- code/ui/components/tsconfig.json | 10 +--------- code/ui/manager/tsconfig.json | 10 +--------- 79 files changed, 79 insertions(+), 415 deletions(-) diff --git a/code/addons/actions/tsconfig.json b/code/addons/actions/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/addons/actions/tsconfig.json +++ b/code/addons/actions/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/backgrounds/tsconfig.json b/code/addons/backgrounds/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/addons/backgrounds/tsconfig.json +++ b/code/addons/backgrounds/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/controls/tsconfig.json b/code/addons/controls/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/addons/controls/tsconfig.json +++ b/code/addons/controls/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/docs/tsconfig.json b/code/addons/docs/tsconfig.json index b1bd17fc8aed..cf1e09965901 100644 --- a/code/addons/docs/tsconfig.json +++ b/code/addons/docs/tsconfig.json @@ -3,12 +3,5 @@ "compilerOptions": { "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/essentials/tsconfig.json b/code/addons/essentials/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/addons/essentials/tsconfig.json +++ b/code/addons/essentials/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/highlight/tsconfig.json b/code/addons/highlight/tsconfig.json index 6b79f028c19c..c94fb6fc9dd5 100644 --- a/code/addons/highlight/tsconfig.json +++ b/code/addons/highlight/tsconfig.json @@ -4,13 +4,5 @@ "rootDir": "./src", "types": ["webpack-env"] }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/interactions/tsconfig.json b/code/addons/interactions/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/addons/interactions/tsconfig.json +++ b/code/addons/interactions/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/jest/tsconfig.json b/code/addons/jest/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/addons/jest/tsconfig.json +++ b/code/addons/jest/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/links/tsconfig.json b/code/addons/links/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/addons/links/tsconfig.json +++ b/code/addons/links/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/measure/tsconfig.json b/code/addons/measure/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/addons/measure/tsconfig.json +++ b/code/addons/measure/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/outline/tsconfig.json b/code/addons/outline/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/addons/outline/tsconfig.json +++ b/code/addons/outline/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/storyshots/storyshots-puppeteer/tsconfig.json b/code/addons/storyshots/storyshots-puppeteer/tsconfig.json index 8198a4b0a167..d16da0e1d60f 100644 --- a/code/addons/storyshots/storyshots-puppeteer/tsconfig.json +++ b/code/addons/storyshots/storyshots-puppeteer/tsconfig.json @@ -5,6 +5,5 @@ "types": ["node"], "declaration": true }, - "include": ["src/**/*"], - "exclude": [] + "include": ["src/**/*"] } diff --git a/code/addons/storysource/tsconfig.json b/code/addons/storysource/tsconfig.json index 13c4f6e9ee64..cf1e09965901 100644 --- a/code/addons/storysource/tsconfig.json +++ b/code/addons/storysource/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/toolbars/tsconfig.json b/code/addons/toolbars/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/addons/toolbars/tsconfig.json +++ b/code/addons/toolbars/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/addons/viewport/tsconfig.json b/code/addons/viewport/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/addons/viewport/tsconfig.json +++ b/code/addons/viewport/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/frameworks/ember/tsconfig.json b/code/frameworks/ember/tsconfig.json index 5627221de68f..2cf6db4b14d3 100644 --- a/code/frameworks/ember/tsconfig.json +++ b/code/frameworks/ember/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*", "package.json"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*", "package.json"] } diff --git a/code/frameworks/html-webpack5/tsconfig.json b/code/frameworks/html-webpack5/tsconfig.json index d9463d503988..a4429176e35f 100644 --- a/code/frameworks/html-webpack5/tsconfig.json +++ b/code/frameworks/html-webpack5/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/nextjs/tsconfig.json b/code/frameworks/nextjs/tsconfig.json index 4461940be450..26be65113f88 100644 --- a/code/frameworks/nextjs/tsconfig.json +++ b/code/frameworks/nextjs/tsconfig.json @@ -5,6 +5,5 @@ "resolveJsonModule": true, "skipLibCheck": true }, - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/frameworks/preact-webpack5/tsconfig.json b/code/frameworks/preact-webpack5/tsconfig.json index 88fbabf6e314..77832da6336d 100644 --- a/code/frameworks/preact-webpack5/tsconfig.json +++ b/code/frameworks/preact-webpack5/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/react-vite/tsconfig.json b/code/frameworks/react-vite/tsconfig.json index 534e4ddd108a..13e04352a3c7 100644 --- a/code/frameworks/react-vite/tsconfig.json +++ b/code/frameworks/react-vite/tsconfig.json @@ -5,6 +5,5 @@ "types": ["node"], "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/frameworks/react-webpack5/tsconfig.json b/code/frameworks/react-webpack5/tsconfig.json index 5505b0889f9e..77832da6336d 100644 --- a/code/frameworks/react-webpack5/tsconfig.json +++ b/code/frameworks/react-webpack5/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/frameworks/server-webpack5/tsconfig.json b/code/frameworks/server-webpack5/tsconfig.json index 640955dd9694..a4429176e35f 100644 --- a/code/frameworks/server-webpack5/tsconfig.json +++ b/code/frameworks/server-webpack5/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/svelte-vite/tsconfig.json b/code/frameworks/svelte-vite/tsconfig.json index 534e4ddd108a..13e04352a3c7 100644 --- a/code/frameworks/svelte-vite/tsconfig.json +++ b/code/frameworks/svelte-vite/tsconfig.json @@ -5,6 +5,5 @@ "types": ["node"], "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/frameworks/svelte-webpack5/tsconfig.json b/code/frameworks/svelte-webpack5/tsconfig.json index 88fbabf6e314..77832da6336d 100644 --- a/code/frameworks/svelte-webpack5/tsconfig.json +++ b/code/frameworks/svelte-webpack5/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/vue-vite/tsconfig.json b/code/frameworks/vue-vite/tsconfig.json index 1f9bdf2596c3..1405a8fbb5a6 100644 --- a/code/frameworks/vue-vite/tsconfig.json +++ b/code/frameworks/vue-vite/tsconfig.json @@ -5,6 +5,5 @@ "skipLibCheck": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/vue-webpack5/tsconfig.json b/code/frameworks/vue-webpack5/tsconfig.json index 1f9bdf2596c3..1405a8fbb5a6 100644 --- a/code/frameworks/vue-webpack5/tsconfig.json +++ b/code/frameworks/vue-webpack5/tsconfig.json @@ -5,6 +5,5 @@ "skipLibCheck": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/vue3-vite/tsconfig.json b/code/frameworks/vue3-vite/tsconfig.json index d710036f4bec..3ce879217eb5 100644 --- a/code/frameworks/vue3-vite/tsconfig.json +++ b/code/frameworks/vue3-vite/tsconfig.json @@ -6,6 +6,5 @@ "skipLibCheck": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/frameworks/vue3-webpack5/tsconfig.json b/code/frameworks/vue3-webpack5/tsconfig.json index a9b035c99817..863d7c2de0d2 100644 --- a/code/frameworks/vue3-webpack5/tsconfig.json +++ b/code/frameworks/vue3-webpack5/tsconfig.json @@ -4,6 +4,5 @@ "resolveJsonModule": true, "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/frameworks/web-components-vite/tsconfig.json b/code/frameworks/web-components-vite/tsconfig.json index 534e4ddd108a..13e04352a3c7 100644 --- a/code/frameworks/web-components-vite/tsconfig.json +++ b/code/frameworks/web-components-vite/tsconfig.json @@ -5,6 +5,5 @@ "types": ["node"], "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/frameworks/web-components-webpack5/tsconfig.json b/code/frameworks/web-components-webpack5/tsconfig.json index d9463d503988..a4429176e35f 100644 --- a/code/frameworks/web-components-webpack5/tsconfig.json +++ b/code/frameworks/web-components-webpack5/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/lib/addons/tsconfig.json b/code/lib/addons/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/addons/tsconfig.json +++ b/code/lib/addons/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/api/tsconfig.json b/code/lib/api/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/lib/api/tsconfig.json +++ b/code/lib/api/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/builder-manager/tsconfig.json b/code/lib/builder-manager/tsconfig.json index 314889c338e2..b89e79d6ea26 100644 --- a/code/lib/builder-manager/tsconfig.json +++ b/code/lib/builder-manager/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "skipLibCheck": true }, - "include": ["src/**/*", "typings.d.ts"], - "exclude": ["src/**.test.ts"] + "include": ["src/**/*", "typings.d.ts"] } diff --git a/code/lib/builder-vite/tsconfig.json b/code/lib/builder-vite/tsconfig.json index 76d943e5d483..d3576aa8f726 100644 --- a/code/lib/builder-vite/tsconfig.json +++ b/code/lib/builder-vite/tsconfig.json @@ -5,6 +5,5 @@ "resolveJsonModule": true, "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/lib/builder-webpack5/tsconfig.json b/code/lib/builder-webpack5/tsconfig.json index de98a048bdd5..5b3f3a56a68d 100644 --- a/code/lib/builder-webpack5/tsconfig.json +++ b/code/lib/builder-webpack5/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "skipLibCheck": true }, - "include": ["src/**/*", "typings.d.ts", "templates/virtualModuleEntry.template.js"], - "exclude": ["src/**.test.ts"] + "include": ["src/**/*"] } diff --git a/code/lib/channel-postmessage/tsconfig.json b/code/lib/channel-postmessage/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/channel-postmessage/tsconfig.json +++ b/code/lib/channel-postmessage/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/channel-websocket/tsconfig.json b/code/lib/channel-websocket/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/channel-websocket/tsconfig.json +++ b/code/lib/channel-websocket/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/channels/tsconfig.json b/code/lib/channels/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/channels/tsconfig.json +++ b/code/lib/channels/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/cli/tsconfig.json b/code/lib/cli/tsconfig.json index 0521e258ae2f..b0f65014db55 100644 --- a/code/lib/cli/tsconfig.json +++ b/code/lib/cli/tsconfig.json @@ -7,6 +7,5 @@ "strictNullChecks": false, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["templates/**/**", "**/*.test.*", "src/frameworks/**/*"] + "include": ["src/**/*"] } diff --git a/code/lib/client-api/tsconfig.json b/code/lib/client-api/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/client-api/tsconfig.json +++ b/code/lib/client-api/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/client-logger/tsconfig.json b/code/lib/client-logger/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/client-logger/tsconfig.json +++ b/code/lib/client-logger/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/codemod/tsconfig.json b/code/lib/codemod/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/lib/codemod/tsconfig.json +++ b/code/lib/codemod/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/core-client/tsconfig.json b/code/lib/core-client/tsconfig.json index 053f1bdbcc37..49e844294dce 100644 --- a/code/lib/core-client/tsconfig.json +++ b/code/lib/core-client/tsconfig.json @@ -1,5 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "typings.d.ts"], - "exclude": [] + "include": ["src/**/*", "typings.d.ts"] } diff --git a/code/lib/core-common/tsconfig.json b/code/lib/core-common/tsconfig.json index 41ca5ea687e5..a4429176e35f 100644 --- a/code/lib/core-common/tsconfig.json +++ b/code/lib/core-common/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**.test.ts"] + "include": ["src/**/*"] } diff --git a/code/lib/core-events/tsconfig.json b/code/lib/core-events/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/core-events/tsconfig.json +++ b/code/lib/core-events/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/core-server/tsconfig.json b/code/lib/core-server/tsconfig.json index 63768daf6d49..52d43eaaa9b9 100644 --- a/code/lib/core-server/tsconfig.json +++ b/code/lib/core-server/tsconfig.json @@ -1,6 +1,4 @@ { "extends": "../../tsconfig.json", - "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": ["src/**/**.test.ts", "src/**/**.disabled-test.ts"] + "include": ["src/**/*"] } diff --git a/code/lib/core-webpack/tsconfig.json b/code/lib/core-webpack/tsconfig.json index 41ca5ea687e5..a4429176e35f 100644 --- a/code/lib/core-webpack/tsconfig.json +++ b/code/lib/core-webpack/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**.test.ts"] + "include": ["src/**/*"] } diff --git a/code/lib/csf-plugin/tsconfig.json b/code/lib/csf-plugin/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/csf-plugin/tsconfig.json +++ b/code/lib/csf-plugin/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/csf-tools/tsconfig.json b/code/lib/csf-tools/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/lib/csf-tools/tsconfig.json +++ b/code/lib/csf-tools/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/docs-tools/tsconfig.json b/code/lib/docs-tools/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/lib/docs-tools/tsconfig.json +++ b/code/lib/docs-tools/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/instrumenter/tsconfig.json b/code/lib/instrumenter/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/instrumenter/tsconfig.json +++ b/code/lib/instrumenter/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/node-logger/tsconfig.json b/code/lib/node-logger/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/node-logger/tsconfig.json +++ b/code/lib/node-logger/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/postinstall/tsconfig.json b/code/lib/postinstall/tsconfig.json index bda0ed7ef097..52d43eaaa9b9 100644 --- a/code/lib/postinstall/tsconfig.json +++ b/code/lib/postinstall/tsconfig.json @@ -1,5 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": ["src/**.test.ts"] + "include": ["src/**/*"] } diff --git a/code/lib/preview-web/tsconfig.json b/code/lib/preview-web/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/preview-web/tsconfig.json +++ b/code/lib/preview-web/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/router/tsconfig.json b/code/lib/router/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/router/tsconfig.json +++ b/code/lib/router/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/source-loader/tsconfig.json b/code/lib/source-loader/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/source-loader/tsconfig.json +++ b/code/lib/source-loader/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/store/tsconfig.json b/code/lib/store/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/store/tsconfig.json +++ b/code/lib/store/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/telemetry/tsconfig.json b/code/lib/telemetry/tsconfig.json index 25de4fbd3e60..a4429176e35f 100644 --- a/code/lib/telemetry/tsconfig.json +++ b/code/lib/telemetry/tsconfig.json @@ -3,13 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/lib/theming/tsconfig.json b/code/lib/theming/tsconfig.json index d23f9a406fc2..52d43eaaa9b9 100644 --- a/code/lib/theming/tsconfig.json +++ b/code/lib/theming/tsconfig.json @@ -1,12 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/presets/html-webpack/tsconfig.json b/code/presets/html-webpack/tsconfig.json index d9463d503988..a4429176e35f 100644 --- a/code/presets/html-webpack/tsconfig.json +++ b/code/presets/html-webpack/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/presets/preact-webpack/tsconfig.json b/code/presets/preact-webpack/tsconfig.json index 88fbabf6e314..77832da6336d 100644 --- a/code/presets/preact-webpack/tsconfig.json +++ b/code/presets/preact-webpack/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/presets/react-webpack/tsconfig.json b/code/presets/react-webpack/tsconfig.json index 5505b0889f9e..77832da6336d 100644 --- a/code/presets/react-webpack/tsconfig.json +++ b/code/presets/react-webpack/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*"] } diff --git a/code/presets/server-webpack/tsconfig.json b/code/presets/server-webpack/tsconfig.json index 640955dd9694..a4429176e35f 100644 --- a/code/presets/server-webpack/tsconfig.json +++ b/code/presets/server-webpack/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/presets/svelte-webpack/tsconfig.json b/code/presets/svelte-webpack/tsconfig.json index 88fbabf6e314..77832da6336d 100644 --- a/code/presets/svelte-webpack/tsconfig.json +++ b/code/presets/svelte-webpack/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/presets/vue-webpack/tsconfig.json b/code/presets/vue-webpack/tsconfig.json index 368141ad6910..2f6c9028ccae 100644 --- a/code/presets/vue-webpack/tsconfig.json +++ b/code/presets/vue-webpack/tsconfig.json @@ -4,6 +4,5 @@ "skipLibCheck": true, "resolveJsonModule": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/presets/vue3-webpack/tsconfig.json b/code/presets/vue3-webpack/tsconfig.json index a9b035c99817..863d7c2de0d2 100644 --- a/code/presets/vue3-webpack/tsconfig.json +++ b/code/presets/vue3-webpack/tsconfig.json @@ -4,6 +4,5 @@ "resolveJsonModule": true, "skipLibCheck": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*"] } diff --git a/code/presets/web-components-webpack/tsconfig.json b/code/presets/web-components-webpack/tsconfig.json index d9463d503988..a4429176e35f 100644 --- a/code/presets/web-components-webpack/tsconfig.json +++ b/code/presets/web-components-webpack/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*"] } diff --git a/code/renderers/html/tsconfig.json b/code/renderers/html/tsconfig.json index f3e444ef0f7a..daa7b13b26b2 100644 --- a/code/renderers/html/tsconfig.json +++ b/code/renderers/html/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { "strict": true }, - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/renderers/preact/tsconfig.json b/code/renderers/preact/tsconfig.json index 52a6b92704df..bd6414b1a14d 100644 --- a/code/renderers/preact/tsconfig.json +++ b/code/renderers/preact/tsconfig.json @@ -4,6 +4,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/**/*.test.*"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/renderers/react/tsconfig.json b/code/renderers/react/tsconfig.json index 48c7724b6914..357b84b3ab23 100644 --- a/code/renderers/react/tsconfig.json +++ b/code/renderers/react/tsconfig.json @@ -6,6 +6,5 @@ "resolveJsonModule": true, "allowJs": true }, - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/docs/**/*.test.*", "src/**/__testfixtures__/**"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/renderers/server/tsconfig.json b/code/renderers/server/tsconfig.json index 43706ac831fe..f53628f70386 100644 --- a/code/renderers/server/tsconfig.json +++ b/code/renderers/server/tsconfig.json @@ -1,5 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/__tests__/**/*"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/renderers/svelte/tsconfig.json b/code/renderers/svelte/tsconfig.json index f660105084e7..95355eedfc5a 100644 --- a/code/renderers/svelte/tsconfig.json +++ b/code/renderers/svelte/tsconfig.json @@ -6,6 +6,5 @@ "strict": true, "resolveJsonModule": true }, - "include": ["src/**/*", "src/**/*.svelte", "template/**/*", "template/**/*.svelte"], - "exclude": [] + "include": ["src/**/*", "src/**/*.svelte", "template/**/*", "template/**/*.svelte"] } diff --git a/code/renderers/vue/tsconfig.json b/code/renderers/vue/tsconfig.json index 0c2ba872c20e..4fbfb70f6d7b 100644 --- a/code/renderers/vue/tsconfig.json +++ b/code/renderers/vue/tsconfig.json @@ -9,6 +9,5 @@ "vueCompilerOptions": { "target": 2 }, - "include": ["src/**/*", "src/**/*.vue", "template/**/*", "template/**/*.vue"], - "exclude": [] + "include": ["src/**/*", "src/**/*.vue", "template/**/*", "template/**/*.vue"] } diff --git a/code/renderers/vue3/tsconfig.json b/code/renderers/vue3/tsconfig.json index 50385a87bc0c..a73aa28cbf3f 100644 --- a/code/renderers/vue3/tsconfig.json +++ b/code/renderers/vue3/tsconfig.json @@ -6,6 +6,5 @@ "skipLibCheck": true, "allowJs": true }, - "include": ["src/**/*", "src/**/*.vue", "template/**/*", "template/**/*.vue"], - "exclude": [] + "include": ["src/**/*", "src/**/*.vue", "template/**/*", "template/**/*.vue"] } diff --git a/code/renderers/web-components/tsconfig.json b/code/renderers/web-components/tsconfig.json index e94885a0058c..f53628f70386 100644 --- a/code/renderers/web-components/tsconfig.json +++ b/code/renderers/web-components/tsconfig.json @@ -1,5 +1,4 @@ { "extends": "../../tsconfig.json", - "include": ["src/**/*", "template/**/*"], - "exclude": ["src/**/*.test.*", "src/__tests__/**/*"] + "include": ["src/**/*", "template/**/*"] } diff --git a/code/tsconfig.json b/code/tsconfig.json index 1e99fa09f78e..ccb37b6f7d75 100644 --- a/code/tsconfig.json +++ b/code/tsconfig.json @@ -1,6 +1,7 @@ { "compileOnSave": false, "compilerOptions": { + "noEmit": true, "baseUrl": ".", "incremental": false, "noImplicitAny": true, diff --git a/code/ui/blocks/tsconfig.json b/code/ui/blocks/tsconfig.json index 3fe5e6e0dffa..3e9449fbcf66 100644 --- a/code/ui/blocks/tsconfig.json +++ b/code/ui/blocks/tsconfig.json @@ -4,13 +4,5 @@ "rootDir": "./src", "types": ["jest"] }, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/ui/components/tsconfig.json b/code/ui/components/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/ui/components/tsconfig.json +++ b/code/ui/components/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } diff --git a/code/ui/manager/tsconfig.json b/code/ui/manager/tsconfig.json index f8b60c90fdef..73a65ef2ef6e 100644 --- a/code/ui/manager/tsconfig.json +++ b/code/ui/manager/tsconfig.json @@ -1,13 +1,5 @@ { "extends": "../../tsconfig.json", "compilerOptions": {}, - "include": ["src/**/*"], - "exclude": [ - "src/**/*.test.*", - "src/**/tests/**/*", - "src/**/__tests__/**/*", - "src/**/*.stories.*", - "src/**/*.mockdata.*", - "src/**/__testfixtures__/**" - ] + "include": ["src/**/*"] } From e10b02f39278c3238f7a8062fc6a8b6ffbc41139 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 14 Nov 2022 14:33:38 +0100 Subject: [PATCH 4/5] small fixes --- .../src/core-presets.disabled-test.ts | 23 +++++++--- code/lib/core-server/tsconfig.json | 3 ++ code/tsconfig.json | 1 - code/yarn.lock | 43 +------------------ 4 files changed, 20 insertions(+), 50 deletions(-) diff --git a/code/lib/core-server/src/core-presets.disabled-test.ts b/code/lib/core-server/src/core-presets.disabled-test.ts index 4c8f22320f2a..715489c333a9 100644 --- a/code/lib/core-server/src/core-presets.disabled-test.ts +++ b/code/lib/core-server/src/core-presets.disabled-test.ts @@ -19,6 +19,7 @@ import { buildStaticStandalone } from './build-static'; import { outputStats } from './utils/output-stats'; +// @ts-expect-error (not strict) const { SNAPSHOT_OS } = global; const mkdtemp = promisify(mkdtempCb); const { packageJson } = readUpSync({ cwd: __dirname }); @@ -33,6 +34,7 @@ jest.mock('webpack', () => { const actual = jest.requireActual('webpack'); Object.keys(actual).forEach((key) => { + // @ts-expect-error (not strict) value[key] = actual[key]; }); return value; @@ -87,7 +89,9 @@ jest.mock('@storybook/store', () => { }); jest.mock('http', () => ({ + // @ts-expect-error (not strict) ...jest.requireActual('http'), + // @ts-expect-error (not strict) createServer: () => ({ listen: (_options, cb) => cb(), on: jest.fn() }), })); jest.mock('ws'); @@ -129,7 +133,7 @@ const baseOptions = { const ROOT = getProjectRoot(); const CWD = process.cwd(); const NODE_MODULES = /.*node_modules/g; -const cleanRoots = (obj): any => { +const cleanRoots = (obj: any): any => { if (!obj) return obj; if (typeof obj === 'string') return obj.replace(CWD, 'CWD').replace(ROOT, 'ROOT').replace(NODE_MODULES, 'NODE_MODULES'); @@ -148,15 +152,18 @@ const cleanRoots = (obj): any => { return obj; }; -const getConfig = (fn: any, name): Configuration | null => { - const call = fn.mock.calls.find((c) => c[0].name === name); +const getConfig = (fn: any, name: string): Configuration | null => { + const call = fn.mock.calls.find((c: any) => c[0].name === name); if (!call) { return null; } return call[0]; }; -const prepareSnap = (get: any, name): Pick => { +const prepareSnap = ( + get: any, + name: string +): Pick => { const config = getConfig(get(), name); if (!config) { return null; @@ -173,7 +180,8 @@ const snap = (name: string) => `__snapshots__/${name}`; // FIXME: we no longer have test cases // eslint-disable-next-line jest/no-disabled-tests describe.skip('FIXME', () => { - describe.each([[]])('%s', (example) => { + // @ts-expect-error (not strict) + describe.each([[]])('%s', (example: string) => { describe.each([ ['manager', managerExecutor], ['preview', previewExecutor], @@ -209,8 +217,8 @@ describe.skip('FIXME', () => { }); }); -const progressPlugin = (config) => - config.plugins.find((p) => p.constructor.name === 'ProgressPlugin'); +const progressPlugin = (config: any) => + config.plugins.find((p: any) => p.constructor.name === 'ProgressPlugin'); describe('dev cli flags', () => { beforeEach(async () => { @@ -271,6 +279,7 @@ describe('dev cli flags', () => { it('production mode', async () => { expect.assertions(1); + // @ts-expect-error (not strict) await expect(buildStaticStandalone(optionsWithInvalidStaticDir)).rejects.toThrow( "Won't copy root directory. Check your staticDirs!" ); diff --git a/code/lib/core-server/tsconfig.json b/code/lib/core-server/tsconfig.json index 52d43eaaa9b9..cf1e09965901 100644 --- a/code/lib/core-server/tsconfig.json +++ b/code/lib/core-server/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../../tsconfig.json", + "compilerOptions": { + "skipLibCheck": true + }, "include": ["src/**/*"] } diff --git a/code/tsconfig.json b/code/tsconfig.json index ccb37b6f7d75..1e99fa09f78e 100644 --- a/code/tsconfig.json +++ b/code/tsconfig.json @@ -1,7 +1,6 @@ { "compileOnSave": false, "compilerOptions": { - "noEmit": true, "baseUrl": ".", "incremental": false, "noImplicitAny": true, diff --git a/code/yarn.lock b/code/yarn.lock index fc2744276033..6b69b3f85d30 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6169,7 +6169,6 @@ __metadata: "@storybook/core-common": 7.0.0-alpha.49 "@storybook/mdx2-csf": next "@storybook/node-logger": 7.0.0-alpha.49 - "@storybook/preview": 7.0.0-alpha.49 "@storybook/preview-web": 7.0.0-alpha.49 "@storybook/source-loader": 7.0.0-alpha.49 "@storybook/types": 7.0.0-alpha.49 @@ -6178,8 +6177,6 @@ __metadata: "@vitejs/plugin-react": ^2.0.0 browser-assert: ^1.2.1 es-module-lexer: ^0.9.3 - express: ^4.17.1 - fs-extra: ^9.0.1 glob: ^7.2.0 glob-promise: ^4.2.0 magic-string: ^0.26.1 @@ -6206,7 +6203,6 @@ __metadata: "@storybook/core-events": 7.0.0-alpha.49 "@storybook/core-webpack": 7.0.0-alpha.49 "@storybook/node-logger": 7.0.0-alpha.49 - "@storybook/preview": 7.0.0-alpha.49 "@storybook/preview-web": 7.0.0-alpha.49 "@storybook/router": 7.0.0-alpha.49 "@storybook/store": 7.0.0-alpha.49 @@ -6223,9 +6219,7 @@ __metadata: browser-assert: ^1.2.1 case-sensitive-paths-webpack-plugin: ^2.4.0 css-loader: ^6.7.1 - express: ^4.17.1 fork-ts-checker-webpack-plugin: ^7.2.8 - fs-extra: ^9.0.1 global: ^4.4.0 html-webpack-plugin: ^5.5.0 path-browserify: ^1.0.1 @@ -6645,7 +6639,7 @@ __metadata: languageName: node linkType: hard -"@storybook/csf@npm:0.0.2-next.5, @storybook/csf@npm:next": +"@storybook/csf@npm:0.0.2-next.5": version: 0.0.2-next.5 resolution: "@storybook/csf@npm:0.0.2-next.5" dependencies: @@ -7235,41 +7229,6 @@ __metadata: languageName: unknown linkType: soft -"@storybook/preview@7.0.0-alpha.49, @storybook/preview@workspace:lib/preview": - version: 0.0.0-use.local - resolution: "@storybook/preview@workspace:lib/preview" - dependencies: - "@storybook/api": 7.0.0-alpha.49 - "@storybook/channel-postmessage": 7.0.0-alpha.49 - "@storybook/channel-websocket": 7.0.0-alpha.49 - "@storybook/channels": 7.0.0-alpha.49 - "@storybook/client-logger": 7.0.0-alpha.49 - "@storybook/core-client": 7.0.0-alpha.49 - "@storybook/core-common": 7.0.0-alpha.49 - "@storybook/core-events": 7.0.0-alpha.49 - "@storybook/csf": next - "@storybook/preview-web": 7.0.0-alpha.49 - "@storybook/router": 7.0.0-alpha.49 - "@storybook/theming": 7.0.0-alpha.49 - "@storybook/types": 7.0.0-alpha.49 - "@types/qs": ^6.9.5 - "@types/webpack-env": ^1.16.4 - ansi-to-html: ^0.6.11 - dequal: ^2.0.2 - global: ^4.4.0 - lodash: ^4.17.21 - memoizerific: ^1.11.3 - qs: ^6.10.0 - react: 16.14.0 - slash: ^3.0.0 - synchronous-promise: ^2.0.15 - ts-dedent: ^2.0.0 - ts-jest: ^28.0.8 - typescript: ~4.6.3 - util-deprecate: ^1.0.2 - languageName: unknown - linkType: soft - "@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0": version: 1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0 resolution: "@storybook/react-docgen-typescript-plugin@npm:1.0.2-canary.6.9d540b91e815f8fc2f8829189deb00553559ff63.0" From 3fd2261293a62628191f2f5949dd109e9fea72f9 Mon Sep 17 00:00:00 2001 From: Norbert de Langen Date: Mon, 14 Nov 2022 17:06:53 +0100 Subject: [PATCH 5/5] all sorts of ts fixes or ignores after enabling ts to function on tests and stories --- .../links/src/react/components/link.test.tsx | 1 - code/addons/links/src/utils.test.ts | 3 +- .../src/api/integrityTestTemplate.ts | 1 - code/frameworks/nextjs/package.json | 1 - .../nextjs/src/next-image-loader-stub.ts | 1 + code/lib/api/src/modules/globals.ts | 2 +- code/lib/api/tsconfig.json | 4 +- code/lib/builder-webpack5/package.json | 1 - .../src/preview/iframe-webpack.config.ts | 1 + .../fixes/remove-global-client-apis.test.ts | 2 +- code/lib/cli/src/helpers.test.ts | 2 +- .../src/js-package-manager/PNPMProxy.test.ts | 1 + .../transforms/__tests__/csf-2-to-3.test.ts | 5 +- code/lib/codemod/tsconfig.json | 4 +- code/lib/core-common/src/presets.test.ts | 2 + .../docgen/extractDocgenProps.test.ts | 1 - .../src/argTypes/enhanceArgTypes.test.ts | 4 +- .../lib/instrumenter/src/instrumenter.test.ts | 2 +- code/lib/postinstall/src/codemods.test.ts | 1 + .../src/PreviewWeb.integration.test.ts | 4 +- code/lib/preview-web/src/PreviewWeb.test.ts | 45 ++++- code/lib/preview-web/src/UrlStore.test.ts | 1 + code/lib/preview-web/tsconfig.json | 3 +- code/lib/store/src/StoryIndexStore.test.ts | 4 +- code/lib/store/src/StoryStore.test.ts | 8 +- code/lib/store/src/autoTitle.test.ts | 2 +- code/lib/store/src/csf/composeConfigs.test.ts | 3 + .../store/src/csf/testing-utils/index.test.ts | 1 + code/lib/store/src/decorators.test.ts | 15 ++ code/lib/store/src/hooks.test.ts | 29 +-- code/lib/store/tsconfig.json | 3 +- .../telemetry/src/get-monorepo-type.test.ts | 2 +- code/lib/telemetry/src/sanitize.test.ts | 2 +- .../src/framework-preset-react-docs.test.ts | 29 ++- .../src/framework-preset-react.test.ts | 16 +- .../react/src/docs/extractArgTypes.test.ts | 1 + .../propTypes/generateFuncSignature.test.ts | 25 +++ .../src/docs/propTypes/handleProp.test.tsx | 171 ++++++++++-------- .../src/docs/typeScript/handleProp.test.tsx | 149 ++++++++------- .../src/docs/custom-elements.test.ts | 7 - .../template/cli/ts/Button.stories.ts | 2 +- .../template/cli/ts/Header.stories.ts | 2 +- .../template/cli/ts/Page.stories.ts | 2 +- code/renderers/web-components/tsconfig.json | 3 + code/tsconfig.json | 1 - .../blocks/src/blocks/enhanceSource.test.ts | 11 ++ .../components/ArgsTable/ArgRow.stories.tsx | 2 +- .../ArgsTable/ArgsTable.stories.tsx | 5 +- .../ArgsTable/SectionRow.stories.tsx | 7 +- .../src/components/DocsPage.stories.tsx | 5 +- .../blocks/src/components/Preview.stories.tsx | 15 +- .../components/src/Loader/Loader.stories.tsx | 2 +- code/ui/components/src/Zoom/Zoom.stories.tsx | 13 +- code/ui/components/src/form/form.stories.tsx | 10 +- code/ui/components/src/icon/icon.stories.tsx | 3 +- .../components/src/spaced/Spaced.stories.tsx | 7 +- .../syntaxhighlighter.stories.tsx | 5 +- .../syntaxhighlighter/syntaxhighlighter.tsx | 11 -- code/ui/components/src/tabs/tabs.stories.tsx | 24 +-- .../src/tooltip/ListItem.stories.tsx | 2 +- .../src/tooltip/Tooltip.stories.tsx | 11 +- .../src/tooltip/TooltipNote.stories.tsx | 2 +- .../src/tooltip/WithTooltip.stories.tsx | 2 +- .../src/typography/link/link.stories.tsx | 3 +- code/ui/manager/src/app.stories.tsx | 2 +- .../src/components/layout/app.mockdata.tsx | 2 +- .../components/preview/preview.mockdata.tsx | 1 + .../components/preview/preview.stories.tsx | 3 +- .../components/sidebar/Explorer.stories.tsx | 5 + .../src/components/sidebar/Menu.stories.tsx | 3 + .../src/components/sidebar/Refs.stories.tsx | 7 + .../sidebar/SearchResults.stories.tsx | 1 + .../components/sidebar/Sidebar.stories.tsx | 7 +- .../src/components/sidebar/Tree.stories.tsx | 7 + .../components/sidebar/TreeNode.stories.tsx | 6 +- code/yarn.lock | 21 --- scripts/tasks/install.ts | 7 +- 77 files changed, 467 insertions(+), 314 deletions(-) diff --git a/code/addons/links/src/react/components/link.test.tsx b/code/addons/links/src/react/components/link.test.tsx index 664670baa264..9b1d5e09552a 100644 --- a/code/addons/links/src/react/components/link.test.tsx +++ b/code/addons/links/src/react/components/link.test.tsx @@ -14,7 +14,6 @@ jest.mock('global', () => ({ search: 'search', }, }, - // @ts-expect-error (Converted from ts-ignore) window: global, __STORYBOOK_STORY_STORE__: { fromId: jest.fn(() => ({})), diff --git a/code/addons/links/src/utils.test.ts b/code/addons/links/src/utils.test.ts index 443886653810..291b613c7edb 100644 --- a/code/addons/links/src/utils.test.ts +++ b/code/addons/links/src/utils.test.ts @@ -5,9 +5,7 @@ import { linkTo, hrefTo } from './utils'; jest.mock('@storybook/addons'); jest.mock('global', () => ({ - // @ts-expect-error (Converted from ts-ignore) document: global.document, - // @ts-expect-error (Converted from ts-ignore) window: global, })); @@ -41,6 +39,7 @@ describe('preview', () => { it('should select the story (only) provided', () => { // simulate a currently selected, but not found as ID + // @ts-expect-error (not strict) const handler = linkTo(undefined, 'name'); handler(); diff --git a/code/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts b/code/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts index b4fb63b582ff..d52260268104 100644 --- a/code/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts +++ b/code/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts @@ -52,7 +52,6 @@ function integrityTest(integrityOptions: any, stories2snapsConverter: any) { const snapshotExtension = stories2snapsConverter.getSnapshotExtension(); const storyshots = glob.sync(`**/*${snapshotExtension}`, integrityOptions); - // @ts-expect-error (Converted from ts-ignore) expect(storyshots).notToBeAbandoned(stories2snapsConverter); }); }); diff --git a/code/frameworks/nextjs/package.json b/code/frameworks/nextjs/package.json index fbdb99d6f95d..7e756383bfbe 100644 --- a/code/frameworks/nextjs/package.json +++ b/code/frameworks/nextjs/package.json @@ -82,7 +82,6 @@ }, "devDependencies": { "@storybook/addon-actions": "7.0.0-alpha.49", - "@types/loader-utils": "^2.0.3", "next": "^12.2.4", "typescript": "~4.6.3", "webpack": "^5.65.0" diff --git a/code/frameworks/nextjs/src/next-image-loader-stub.ts b/code/frameworks/nextjs/src/next-image-loader-stub.ts index bf913e5e85cc..6ebc675d85bf 100644 --- a/code/frameworks/nextjs/src/next-image-loader-stub.ts +++ b/code/frameworks/nextjs/src/next-image-loader-stub.ts @@ -1,3 +1,4 @@ +// @ts-expect-error (loader-utils has no webpack5 compatible types) import { interpolateName } from 'loader-utils'; import imageSizeOf from 'image-size'; import type { RawLoaderDefinition } from 'webpack'; diff --git a/code/lib/api/src/modules/globals.ts b/code/lib/api/src/modules/globals.ts index ab7207b6a676..c7b99ce186ca 100644 --- a/code/lib/api/src/modules/globals.ts +++ b/code/lib/api/src/modules/globals.ts @@ -19,7 +19,7 @@ export interface SubAPI { updateGlobals: (newGlobals: Globals) => void; } -export const init: ModuleFn = ({ store, fullAPI }) => { +export const init: ModuleFn = ({ store, fullAPI }) => { const api: SubAPI = { getGlobals() { return store.getState().globals; diff --git a/code/lib/api/tsconfig.json b/code/lib/api/tsconfig.json index 73a65ef2ef6e..cf1e09965901 100644 --- a/code/lib/api/tsconfig.json +++ b/code/lib/api/tsconfig.json @@ -1,5 +1,7 @@ { "extends": "../../tsconfig.json", - "compilerOptions": {}, + "compilerOptions": { + "skipLibCheck": true + }, "include": ["src/**/*"] } diff --git a/code/lib/builder-webpack5/package.json b/code/lib/builder-webpack5/package.json index 7087f01ba471..c2b9af6cf930 100644 --- a/code/lib/builder-webpack5/package.json +++ b/code/lib/builder-webpack5/package.json @@ -93,7 +93,6 @@ "webpack-virtual-modules": "^0.4.3" }, "devDependencies": { - "@types/case-sensitive-paths-webpack-plugin": "^2.1.6", "@types/terser-webpack-plugin": "^5.2.0", "@types/webpack-dev-middleware": "^5.3.0", "@types/webpack-hot-middleware": "^2.25.6", diff --git a/code/lib/builder-webpack5/src/preview/iframe-webpack.config.ts b/code/lib/builder-webpack5/src/preview/iframe-webpack.config.ts index a16e9ba8c91e..78dedb2d0df9 100644 --- a/code/lib/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/code/lib/builder-webpack5/src/preview/iframe-webpack.config.ts @@ -2,6 +2,7 @@ import path from 'path'; import { DefinePlugin, HotModuleReplacementPlugin, ProgressPlugin, ProvidePlugin } from 'webpack'; import type { Configuration } from 'webpack'; import HtmlWebpackPlugin from 'html-webpack-plugin'; +// @ts-expect-error (I removed this on purpose, because it's incorrect) import CaseSensitivePathsPlugin from 'case-sensitive-paths-webpack-plugin'; import TerserWebpackPlugin from 'terser-webpack-plugin'; import VirtualModulePlugin from 'webpack-virtual-modules'; diff --git a/code/lib/cli/src/automigrate/fixes/remove-global-client-apis.test.ts b/code/lib/cli/src/automigrate/fixes/remove-global-client-apis.test.ts index 0dd4419f3639..0ae9971db053 100644 --- a/code/lib/cli/src/automigrate/fixes/remove-global-client-apis.test.ts +++ b/code/lib/cli/src/automigrate/fixes/remove-global-client-apis.test.ts @@ -8,7 +8,7 @@ import { RemovedAPIs, removedGlobalClientAPIs as migration } from './remove-glob // eslint-disable-next-line global-require, jest/no-mocks-import jest.mock('fs-extra', () => require('../../../../../__mocks__/fs-extra')); -const check = async ({ packageJson = {}, contents }) => { +const check = async ({ packageJson = {}, contents }: any) => { if (contents) { // eslint-disable-next-line global-require require('fs-extra').__setMockFiles({ diff --git a/code/lib/cli/src/helpers.test.ts b/code/lib/cli/src/helpers.test.ts index dbc6760c0809..c53cbf3a9d97 100644 --- a/code/lib/cli/src/helpers.test.ts +++ b/code/lib/cli/src/helpers.test.ts @@ -9,7 +9,7 @@ jest.mock('fs', () => ({ existsSync: jest.fn(), })); jest.mock('./dirs', () => ({ - getRendererDir: (renderer) => `@storybook/${renderer}`, + getRendererDir: (renderer: string) => `@storybook/${renderer}`, getCliDir: () => '@storybook/cli', })); diff --git a/code/lib/cli/src/js-package-manager/PNPMProxy.test.ts b/code/lib/cli/src/js-package-manager/PNPMProxy.test.ts index 17ebaffad8b2..66e50ab6d9fd 100644 --- a/code/lib/cli/src/js-package-manager/PNPMProxy.test.ts +++ b/code/lib/cli/src/js-package-manager/PNPMProxy.test.ts @@ -181,6 +181,7 @@ describe('NPM Proxy', () => { const writePackageSpy = jest.spyOn(pnpmProxy, 'writePackageJson').mockImplementation(jest.fn); jest.spyOn(pnpmProxy, 'retrievePackageJson').mockImplementation( + // @ts-expect-error (not strict) jest.fn(() => ({ overrides: { bar: 'x.x.x', diff --git a/code/lib/codemod/src/transforms/__tests__/csf-2-to-3.test.ts b/code/lib/codemod/src/transforms/__tests__/csf-2-to-3.test.ts index 277ca3d9ac6e..0905da1ea0a2 100644 --- a/code/lib/codemod/src/transforms/__tests__/csf-2-to-3.test.ts +++ b/code/lib/codemod/src/transforms/__tests__/csf-2-to-3.test.ts @@ -1,11 +1,10 @@ -import { describe } from '@jest/globals'; +import { describe, it, expect } from '@jest/globals'; import { dedent } from 'ts-dedent'; import _transform from '../csf-2-to-3'; -// @ts-expect-error (Converted from ts-ignore) expect.addSnapshotSerializer({ print: (val: any) => val, - test: (val) => true, + test: () => true, }); const jsTransform = (source: string) => _transform({ source }, null, {}).trim(); diff --git a/code/lib/codemod/tsconfig.json b/code/lib/codemod/tsconfig.json index 73a65ef2ef6e..cf1e09965901 100644 --- a/code/lib/codemod/tsconfig.json +++ b/code/lib/codemod/tsconfig.json @@ -1,5 +1,7 @@ { "extends": "../../tsconfig.json", - "compilerOptions": {}, + "compilerOptions": { + "skipLibCheck": true + }, "include": ["src/**/*"] } diff --git a/code/lib/core-common/src/presets.test.ts b/code/lib/core-common/src/presets.test.ts index 76749c0ee2d6..f9829c286db6 100644 --- a/code/lib/core-common/src/presets.test.ts +++ b/code/lib/core-common/src/presets.test.ts @@ -1,3 +1,5 @@ +import './presets'; + function wrapPreset(basePresets: any): { babel: Function; webpack: Function } { return { babel: async (config: any, args: any) => basePresets.apply('babel', config, args), diff --git a/code/lib/docs-tools/src/argTypes/docgen/extractDocgenProps.test.ts b/code/lib/docs-tools/src/argTypes/docgen/extractDocgenProps.test.ts index f6f35ec345b2..8e60d01b5ff6 100644 --- a/code/lib/docs-tools/src/argTypes/docgen/extractDocgenProps.test.ts +++ b/code/lib/docs-tools/src/argTypes/docgen/extractDocgenProps.test.ts @@ -40,7 +40,6 @@ function createFuncType(typeSystemDef: TypeSystemDef, others: Record): Component { const component = () => {}; - // @ts-expect-error (Converted from ts-ignore) component.__docgenInfo = { [DOCGEN_SECTION]: { [PROP_NAME]: { diff --git a/code/lib/docs-tools/src/argTypes/enhanceArgTypes.test.ts b/code/lib/docs-tools/src/argTypes/enhanceArgTypes.test.ts index 5c0e0cb5ca66..7fdedf3db758 100644 --- a/code/lib/docs-tools/src/argTypes/enhanceArgTypes.test.ts +++ b/code/lib/docs-tools/src/argTypes/enhanceArgTypes.test.ts @@ -1,5 +1,4 @@ -import type { ArgTypes } from '@storybook/api'; -import type { StrictInputType } from '@storybook/types'; +import type { ArgTypes, StrictInputType } from '@storybook/types'; import { enhanceArgTypes } from './enhanceArgTypes'; expect.addSnapshotSerializer({ @@ -37,6 +36,7 @@ const enhance = ({ args: { input: arg }, globals: {}, }; + // @ts-expect-error (not strict) return enhanceArgTypes(context); }; diff --git a/code/lib/instrumenter/src/instrumenter.test.ts b/code/lib/instrumenter/src/instrumenter.test.ts index 647dbedb1486..367915be5499 100644 --- a/code/lib/instrumenter/src/instrumenter.test.ts +++ b/code/lib/instrumenter/src/instrumenter.test.ts @@ -554,7 +554,7 @@ describe('Instrumenter', () => { }); it.skip('starts debugging at the first non-nested interceptable call', () => { - const fn = (...args) => args; + const fn = (...args: any[]) => args; const { fn1, fn2, fn3 } = instrument({ fn1: fn, fn2: fn, fn3: fn }, { intercept: true }); fn3(fn1(), fn2()); // setup the dependencies addons.getChannel().emit(EVENTS.START, { storyId }); diff --git a/code/lib/postinstall/src/codemods.test.ts b/code/lib/postinstall/src/codemods.test.ts index 77684e253143..cc7489df0b0e 100644 --- a/code/lib/postinstall/src/codemods.test.ts +++ b/code/lib/postinstall/src/codemods.test.ts @@ -1,6 +1,7 @@ import path from 'path'; import fs from 'fs'; import 'jest-specific-snapshot'; +// @ts-expect-error (broken types) import { applyTransform } from 'jscodeshift/dist/testUtils'; jest.mock('@storybook/node-logger'); diff --git a/code/lib/preview-web/src/PreviewWeb.integration.test.ts b/code/lib/preview-web/src/PreviewWeb.integration.test.ts index e387d1fec987..1347bc4ddf92 100644 --- a/code/lib/preview-web/src/PreviewWeb.integration.test.ts +++ b/code/lib/preview-web/src/PreviewWeb.integration.test.ts @@ -29,7 +29,6 @@ jest.mock('./WebView'); const { window, document } = global; jest.mock('global', () => ({ - // @ts-expect-error (Converted from ts-ignore) ...jest.requireActual('global'), history: { replaceState: jest.fn() }, document: { @@ -77,6 +76,7 @@ describe('PreviewWeb', () => { ({ storyFn }: Store_RenderContext) => storyFn() ); document.location.search = '?id=component-one--a'; + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRender(); @@ -100,6 +100,7 @@ describe('PreviewWeb', () => { React.createElement('div', {}, 'INSIDE') ); + // @ts-expect-error (not strict) await preview.initialize({ importFn, getProjectAnnotations }); await waitForRender(); @@ -130,6 +131,7 @@ describe('PreviewWeb', () => { document.location.search = '?id=component-one--a'; const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await preview.initialize({ importFn, getProjectAnnotations }); await waitForRender(); diff --git a/code/lib/preview-web/src/PreviewWeb.test.ts b/code/lib/preview-web/src/PreviewWeb.test.ts index 5b3cbc670646..22fd6cf1cb63 100644 --- a/code/lib/preview-web/src/PreviewWeb.test.ts +++ b/code/lib/preview-web/src/PreviewWeb.test.ts @@ -29,8 +29,7 @@ import { } from '@storybook/core-events'; import { logger } from '@storybook/client-logger'; import { addons, mockChannel as createMockChannel } from '@storybook/addons'; -import type { Renderer } from '@storybook/types'; -import type { ModuleImportFn, WebProjectAnnotations } from '@storybook/store'; +import type { Renderer, Store_ModuleImportFn, ProjectAnnotations } from '@storybook/types'; import { mocked } from 'ts-jest/utils'; import { PreviewWeb } from './PreviewWeb'; @@ -57,7 +56,7 @@ const { history, document } = global; const mockStoryIndex = jest.fn(() => storyIndex); -let mockFetchResult; +let mockFetchResult: any; jest.mock('global', () => ({ ...(mockJest.requireActual('global') as any), history: { replaceState: mockJest.fn() }, @@ -106,11 +105,12 @@ async function waitForSetCurrentStory() { } async function createAndRenderPreview({ + // @ts-expect-error (not strict) importFn: inputImportFn = importFn, getProjectAnnotations: inputGetProjectAnnotations = getProjectAnnotations, }: { - importFn?: ModuleImportFn; - getProjectAnnotations?: () => WebProjectAnnotations; + importFn?: Store_ModuleImportFn; + getProjectAnnotations?: () => ProjectAnnotations; } = {}) { const preview = new PreviewWeb(); await preview.initialize({ @@ -151,6 +151,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); await expect( preview.initialize({ + // @ts-expect-error (not strict) importFn, getProjectAnnotations: () => { throw err; @@ -167,6 +168,7 @@ describe('PreviewWeb', () => { mockFetchResult = { status: 500, text: async () => err.toString() }; const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await expect(preview.initialize({ importFn, getProjectAnnotations })).rejects.toThrow( 'sort error' ); @@ -237,6 +239,7 @@ describe('PreviewWeb', () => { it('allows async getProjectAnnotations', async () => { const preview = new PreviewWeb(); await preview.initialize({ + // @ts-expect-error (not strict) importFn, getProjectAnnotations: async () => { return getProjectAnnotations(); @@ -519,6 +522,7 @@ describe('PreviewWeb', () => { renderToCanvas: undefined, }); const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await expect(preview.initialize({ importFn, getProjectAnnotations })).rejects.toThrow(); expect(preview.view.showErrorDisplay).toHaveBeenCalled(); @@ -632,6 +636,7 @@ describe('PreviewWeb', () => { }); const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await preview.initialize({ importFn, getProjectAnnotations }); await waitForRender(); @@ -687,7 +692,7 @@ describe('PreviewWeb', () => { const context = docsRenderer.render.mock.calls[0][0]; - expect(context.componentStories().map((s) => s.id)).toEqual([ + expect(context.componentStories().map((s: any) => s.id)).toEqual([ 'component-one--a', 'component-one--b', 'component-one--e', @@ -897,6 +902,7 @@ describe('PreviewWeb', () => { document.location.search = '?id=component-one--a'; componentOneExports.default.loaders[0].mockImplementationOnce(async () => gate); + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('loading'); @@ -958,6 +964,7 @@ describe('PreviewWeb', () => { document.location.search = '?id=component-one--a'; projectAnnotations.renderToCanvas.mockImplementation(async () => gate); + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('rendering'); @@ -1037,6 +1044,7 @@ describe('PreviewWeb', () => { }); document.location.search = '?id=component-one--a'; + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('playing'); @@ -1104,6 +1112,7 @@ describe('PreviewWeb', () => { mockChannel.emit.mockClear(); const story = await preview.storyStore.loadStory({ storyId: 'component-one--a' }); + // @ts-expect-error (not strict) preview.renderStoryToElement(story, 'story-element' as any); await waitForRender(); @@ -1421,6 +1430,7 @@ describe('PreviewWeb', () => { document.location.search = '?id=component-one--a'; projectAnnotations.renderToCanvas.mockImplementation(async () => gate); + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('rendering'); @@ -1517,6 +1527,7 @@ describe('PreviewWeb', () => { it('still renders the selected story, once ready', async () => { document.location.search = ''; // We intentionally are *not* awaiting here + // @ts-expect-error (not strict) new PreviewWeb().initialize({ importFn, getProjectAnnotations }); emitter.emit(SET_CURRENT_STORY, { @@ -1623,6 +1634,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); // We can't wait for the initialize function, as it waits for `renderSelection()` // which prepares, but it does emit `CURRENT_STORY_WAS_SET` right before that + // @ts-expect-error (not strict) preview.initialize({ importFn, getProjectAnnotations }); await waitForEvents([CURRENT_STORY_WAS_SET]); @@ -1668,6 +1680,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); // We can't wait for the initialize function, as it waits for `renderSelection()` // which prepares, but it does emit `CURRENT_STORY_WAS_SET` right before that + // @ts-expect-error (not strict) preview.initialize({ importFn, getProjectAnnotations }); await waitForEvents([CURRENT_STORY_WAS_SET]); @@ -1712,6 +1725,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); // We can't wait for the initialize function, as it waits for `renderSelection()` // which prepares, but it does emit `CURRENT_STORY_WAS_SET` right before that + // @ts-expect-error (not strict) preview.initialize({ importFn, getProjectAnnotations }); await waitForEvents([CURRENT_STORY_WAS_SET]); @@ -2020,6 +2034,7 @@ describe('PreviewWeb', () => { componentOneExports.default.loaders[0].mockImplementationOnce(async () => gate); document.location.search = '?id=component-one--a'; + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('loading'); @@ -2053,6 +2068,7 @@ describe('PreviewWeb', () => { document.location.search = '?id=component-one--a'; projectAnnotations.renderToCanvas.mockImplementation(async () => gate); + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('rendering'); @@ -2087,6 +2103,7 @@ describe('PreviewWeb', () => { componentOneExports.a.play.mockImplementationOnce(async () => gate); document.location.search = '?id=component-one--a'; + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('playing'); @@ -2140,6 +2157,7 @@ describe('PreviewWeb', () => { componentOneExports.a.play.mockImplementationOnce(async () => gate); document.location.search = '?id=component-one--a'; + // @ts-expect-error (not strict) await new PreviewWeb().initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('playing'); @@ -2542,6 +2560,7 @@ describe('PreviewWeb', () => { mockFetchResult = { status: 500, text: async () => err.toString() }; const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await expect(preview.initialize({ importFn, getProjectAnnotations })).rejects.toThrow( 'sort error' ); @@ -2562,6 +2581,7 @@ describe('PreviewWeb', () => { mockFetchResult = { status: 500, text: async () => err.toString() }; const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await expect(preview.initialize({ importFn, getProjectAnnotations })).rejects.toThrow( 'sort error' ); @@ -3065,6 +3085,7 @@ describe('PreviewWeb', () => { await waitForEvents([STORY_MISSING]); mockChannel.emit.mockClear(); + // @ts-expect-error (not strict) preview.onStoriesChanged({ importFn, storyIndex }); await waitForRender(); expect(mockChannel.emit).toHaveBeenCalledWith(STORY_RENDERED, 'component-one--a'); @@ -3075,6 +3096,7 @@ describe('PreviewWeb', () => { const newStandaloneDocsExports = { default: jest.fn() }; const newImportFn = jest.fn(async (path) => { + // @ts-expect-error (not strict) return path === './src/Introduction.mdx' ? newStandaloneDocsExports : importFn(path); }); @@ -3084,6 +3106,7 @@ describe('PreviewWeb', () => { mockChannel.emit.mockClear(); docsRenderer.render.mockClear(); + // @ts-expect-error (not strict) preview.onStoriesChanged({ importFn: newImportFn }); await waitForRender(); @@ -3103,6 +3126,7 @@ describe('PreviewWeb', () => { const preview = await createAndRenderPreview(); mockChannel.emit.mockClear(); + // @ts-expect-error (not strict) preview.onStoriesChanged({ importFn: newImportFn }); await waitForRender(); @@ -3120,6 +3144,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); await expect( preview.initialize({ + // @ts-expect-error (not strict) importFn, getProjectAnnotations: () => { throw err; @@ -3140,6 +3165,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); await expect( preview.initialize({ + // @ts-expect-error (not strict) importFn, getProjectAnnotations: () => { throw err; @@ -3182,6 +3208,7 @@ describe('PreviewWeb', () => { expect(mockChannel.emit).toHaveBeenCalledWith(CONFIG_ERROR, err); }); + // @ts-expect-error (not strict) const newGlobalDecorator = jest.fn((s) => s()); const newGetProjectAnnotations = () => { return { @@ -3311,6 +3338,7 @@ describe('PreviewWeb', () => { const [gate, openGate] = createGate(); componentOneExports.a.play.mockImplementationOnce(async () => gate); const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await preview.initialize({ importFn, getProjectAnnotations }); await waitForRenderPhase('playing'); @@ -3333,6 +3361,7 @@ describe('PreviewWeb', () => { mockChannel.emit.mockClear(); const [gate, openGate] = createGate(); componentOneExports.b.play.mockImplementationOnce(async () => gate); + // @ts-expect-error (not strict) preview.renderStoryToElement( await preview.storyStore.loadStory({ storyId: 'component-one--b' }), {} as any @@ -3365,6 +3394,7 @@ describe('PreviewWeb', () => { const preview = new PreviewWeb(); await expect( preview.initialize({ + // @ts-expect-error (not strict) importFn, getProjectAnnotations: () => { throw err; @@ -3380,6 +3410,7 @@ describe('PreviewWeb', () => { mockFetchResult = { status: 500, text: async () => err.toString() }; const preview = new PreviewWeb(); + // @ts-expect-error (not strict) await expect(preview.initialize({ importFn, getProjectAnnotations })).rejects.toThrow( 'sort error' ); @@ -3390,11 +3421,13 @@ describe('PreviewWeb', () => { it('waits for stories to be cached', async () => { const [gate, openGate] = createGate(); + // @ts-expect-error (not strict) const gatedImportFn = async (path) => { await gate; return importFn(path); }; + // @ts-expect-error (not strict) const preview = await createAndRenderPreview({ importFn: gatedImportFn }); let extracted = false; diff --git a/code/lib/preview-web/src/UrlStore.test.ts b/code/lib/preview-web/src/UrlStore.test.ts index 132e368ede91..c3a3af6f78d4 100644 --- a/code/lib/preview-web/src/UrlStore.test.ts +++ b/code/lib/preview-web/src/UrlStore.test.ts @@ -21,6 +21,7 @@ describe('UrlStore', () => { }); it('should error on invalid ids', () => { [null, '', '/whatever/story/story--id'].forEach((path) => { + // @ts-expect-error (invalid data) expect(() => pathToId(path)).toThrow(/Invalid/); }); }); diff --git a/code/lib/preview-web/tsconfig.json b/code/lib/preview-web/tsconfig.json index a4429176e35f..5b3f3a56a68d 100644 --- a/code/lib/preview-web/tsconfig.json +++ b/code/lib/preview-web/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "strict": true + "strict": true, + "skipLibCheck": true }, "include": ["src/**/*"] } diff --git a/code/lib/store/src/StoryIndexStore.test.ts b/code/lib/store/src/StoryIndexStore.test.ts index c49e5988a789..079253590daa 100644 --- a/code/lib/store/src/StoryIndexStore.test.ts +++ b/code/lib/store/src/StoryIndexStore.test.ts @@ -32,11 +32,11 @@ const storyIndex: Store_StoryIndex = { }, }; -const makeStoryIndex = (titlesAndNames) => { +const makeStoryIndex = (titlesAndNames: any) => { return { v: 4, entries: Object.fromEntries( - titlesAndNames.map(([title, name]) => { + titlesAndNames.map(([title, name]: [any, any]) => { const id = `${title}--${name}`.replace('/', '-'); return [ id, diff --git a/code/lib/store/src/StoryStore.test.ts b/code/lib/store/src/StoryStore.test.ts index e5bcd67272ce..f7eda61f3241 100644 --- a/code/lib/store/src/StoryStore.test.ts +++ b/code/lib/store/src/StoryStore.test.ts @@ -1,11 +1,10 @@ -import type { Renderer, ProjectAnnotations } from '@storybook/types'; +import type { Renderer, ProjectAnnotations, Store_StoryIndex } from '@storybook/types'; import global from 'global'; import { expect } from '@jest/globals'; import { prepareStory } from './csf/prepareStory'; import { processCSFFile } from './csf/processCSFFile'; import { StoryStore } from './StoryStore'; -import type { StoryIndex } from './types'; import type { HooksContext } from './hooks'; // Spy on prepareStory/processCSFFile @@ -43,7 +42,7 @@ const projectAnnotations: ProjectAnnotations = { render: jest.fn(), }; -const storyIndex: StoryIndex = { +const storyIndex: Store_StoryIndex = { v: 4, entries: { 'component-one--a': { @@ -631,11 +630,12 @@ describe('StoryStore', () => { }); it('does not include (modern) docs entries ever', async () => { - const docsOnlyStoryIndex: StoryIndex = { + const docsOnlyStoryIndex: Store_StoryIndex = { v: 4, entries: { ...storyIndex.entries, 'introduction--docs': { + standalone: true, type: 'docs', id: 'introduction--docs', title: 'Introduction', diff --git a/code/lib/store/src/autoTitle.test.ts b/code/lib/store/src/autoTitle.test.ts index 256b91d2d402..e4c1fe23dbb2 100644 --- a/code/lib/store/src/autoTitle.test.ts +++ b/code/lib/store/src/autoTitle.test.ts @@ -5,7 +5,7 @@ import { userOrAutoTitleFromSpecifier as userOrAuto } from './autoTitle'; expect.addSnapshotSerializer({ print: (val: any) => val, - test: (val) => true, + test: (val: any) => true, }); // Make these two the same so `normalizeStoriesEntry` doesn't change anything diff --git a/code/lib/store/src/csf/composeConfigs.test.ts b/code/lib/store/src/csf/composeConfigs.test.ts index 5760d7e5c854..1b62b69f1e0e 100644 --- a/code/lib/store/src/csf/composeConfigs.test.ts +++ b/code/lib/store/src/csf/composeConfigs.test.ts @@ -162,8 +162,11 @@ describe('composeConfigs', () => { const fn = jest.fn(); const { runStep } = composeConfigs([ + // @ts-expect-error (not defined) { runStep: (label, play, context) => fn(`${label}1`, play(context)) }, + // @ts-expect-error (not defined) { runStep: (label, play, context) => fn(`${label}2`, play(context)) }, + // @ts-expect-error (not defined) { runStep: (label, play, context) => fn(`${label}3`, play(context)) }, ]); diff --git a/code/lib/store/src/csf/testing-utils/index.test.ts b/code/lib/store/src/csf/testing-utils/index.test.ts index 1f2d7c25c6cf..f7e02d95a559 100644 --- a/code/lib/store/src/csf/testing-utils/index.test.ts +++ b/code/lib/store/src/csf/testing-utils/index.test.ts @@ -31,6 +31,7 @@ describe('composeStory', () => { test('should throw an error if Story is undefined', () => { expect(() => { + // @ts-expect-error (invalid input) composeStory(undefined, meta); }).toThrow(); }); diff --git a/code/lib/store/src/decorators.test.ts b/code/lib/store/src/decorators.test.ts index b6ced0754f5e..0fe27396fda8 100644 --- a/code/lib/store/src/decorators.test.ts +++ b/code/lib/store/src/decorators.test.ts @@ -18,8 +18,11 @@ describe('client-api.decorators', () => { it('calls decorators in out to in order', () => { const order: number[] = []; const decorators = [ + // @ts-expect-error (not defined) (s) => order.push(1) && s(), + // @ts-expect-error (not defined) (s) => order.push(2) && s(), + // @ts-expect-error (not defined) (s) => order.push(3) && s(), ]; const decorated = defaultDecorateStory(() => order.push(4), decorators); @@ -32,8 +35,11 @@ describe('client-api.decorators', () => { it('passes context through to sub decorators', () => { const contexts: StoryContext[] = []; const decorators = [ + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ args: { k: 1 } }), + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ args: { k: 2 } }), + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ args: { k: 3 } }), ]; const decorated = defaultDecorateStory((c) => contexts.push(c), decorators); @@ -46,7 +52,9 @@ describe('client-api.decorators', () => { it('passes context through to sub decorators additively', () => { const contexts: StoryContext[] = []; const decorators = [ + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ args: { a: 1 } }), + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ globals: { g: 2 } }), ]; const decorated = defaultDecorateStory((c) => contexts.push(c), decorators); @@ -61,9 +69,12 @@ describe('client-api.decorators', () => { }); it('does not recreate decorated story functions each time', () => { + // @ts-expect-error (not defined) const decoratedStories = []; const decorators = [ + // @ts-expect-error (not defined) (s, c) => { + // @ts-expect-error (not defined) decoratedStories.push = s; return s(); }, @@ -72,6 +83,7 @@ describe('client-api.decorators', () => { decorated(makeContext()); decorated(makeContext()); + // @ts-expect-error (not defined) expect(decoratedStories[0]).toBe(decoratedStories[1]); }); @@ -85,6 +97,7 @@ describe('client-api.decorators', () => { resolve = r; }); const decorators = [ + // @ts-expect-error (not defined) async (s, c) => { // The fence here simulates async-ness in react rendering an element (`` doesn't run `S()` straight away) await fence; @@ -97,6 +110,7 @@ describe('client-api.decorators', () => { decoratedOne(makeContext({ value: 1 })); decoratedTwo(makeContext({ value: 2 })); + // @ts-expect-error (not defined) resolve(); await fence; @@ -107,6 +121,7 @@ describe('client-api.decorators', () => { it('DOES NOT merge core metadata or pass through core metadata keys in context', () => { const contexts: StoryContext[] = []; const decorators = [ + // @ts-expect-error (not defined) (s, c) => contexts.push(c) && s({ parameters: { c: 'd' }, id: 'notId', kind: 'notKind', name: 'notName' }), diff --git a/code/lib/store/src/hooks.test.ts b/code/lib/store/src/hooks.test.ts index c124c9f63fc5..b42e1f20555b 100644 --- a/code/lib/store/src/hooks.test.ts +++ b/code/lib/store/src/hooks.test.ts @@ -31,16 +31,17 @@ jest.mock('@storybook/client-logger', () => ({ })); const SOME_EVENT = 'someEvent'; -let mockChannel; -let hooks; -let onSomeEvent; -let removeSomeEventListener; + +let mockChannel: any; +let hooks: any; +let onSomeEvent: any; +let removeSomeEventListener: any; beforeEach(() => { onSomeEvent = jest.fn(); removeSomeEventListener = jest.fn(); mockChannel = { emit: jest.fn(), - on(event, callback) { + on(event: any, callback: any) { switch (event) { case STORY_RENDERED: callback(); @@ -51,7 +52,7 @@ beforeEach(() => { default: } }, - removeListener(event, callback) { + removeListener(event: any, callback: any) { if (event === SOME_EVENT) { removeSomeEventListener(event, callback); } @@ -63,7 +64,7 @@ beforeEach(() => { const decorateStory = applyHooks(defaultDecorateStory); -const run = (storyFn, decorators: DecoratorFunction[] = [], context = {}) => +const run = (storyFn: any, decorators: DecoratorFunction[] = [], context = {}) => decorateStory(storyFn, decorators)({ ...context, hooks } as StoryContext); describe('Preview hooks', () => { @@ -116,7 +117,7 @@ describe('Preview hooks', () => { }); it("doesn't retrigger the effect from decorator if story has changed", () => { const effect = jest.fn(); - const decorator = (storyFn) => { + const decorator = (storyFn: any) => { useEffect(effect, []); return storyFn(); }; @@ -126,7 +127,7 @@ describe('Preview hooks', () => { }); it("doesn't retrigger the effect from decorator if story has changed and story call comes before useEffect", () => { const effect = jest.fn(); - const decorator = (storyFn) => { + const decorator = (storyFn: any) => { const story = storyFn(); useEffect(effect, []); return story; @@ -140,7 +141,7 @@ describe('Preview hooks', () => { const story = () => { useEffect(effect, []); }; - const decorator = (storyFn) => { + const decorator = (storyFn: any) => { storyFn(); return storyFn(); }; @@ -348,7 +349,7 @@ describe('Preview hooks', () => { }); describe('useRef', () => { it('attaches initial value', () => { - let ref; + let ref: any; const storyFn = () => { ref = useRef('foo'); }; @@ -431,7 +432,7 @@ describe('Preview hooks', () => { }); it('performs asynchronous state updates', () => { let state; - let setState; + let setState: any; const storyFn = jest.fn(() => { [state, setState] = useState('foo'); }); @@ -484,8 +485,8 @@ describe('Preview hooks', () => { expect(state).toBe(3); }); it('performs asynchronous state updates', () => { - let state; - let dispatch; + let state: any; + let dispatch: any; const storyFn = jest.fn(() => { [state, dispatch] = useReducer((prevState, action) => { switch (action) { diff --git a/code/lib/store/tsconfig.json b/code/lib/store/tsconfig.json index a4429176e35f..5b3f3a56a68d 100644 --- a/code/lib/store/tsconfig.json +++ b/code/lib/store/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "../../tsconfig.json", "compilerOptions": { - "strict": true + "strict": true, + "skipLibCheck": true }, "include": ["src/**/*"] } diff --git a/code/lib/telemetry/src/get-monorepo-type.test.ts b/code/lib/telemetry/src/get-monorepo-type.test.ts index 0ddd8862bb0b..634a8ad5729d 100644 --- a/code/lib/telemetry/src/get-monorepo-type.test.ts +++ b/code/lib/telemetry/src/get-monorepo-type.test.ts @@ -14,7 +14,7 @@ jest.mock('@storybook/core-common', () => { }; }); -const checkMonorepoType = ({ monorepoConfigFile, isYarnWorkspace = false }) => { +const checkMonorepoType = ({ monorepoConfigFile, isYarnWorkspace = false }: any) => { const mockFiles = { [path.join('root', 'package.json')]: isYarnWorkspace ? '{ "workspaces": [] }' : '{}', }; diff --git a/code/lib/telemetry/src/sanitize.test.ts b/code/lib/telemetry/src/sanitize.test.ts index 521ee2338f60..2f8f5b2267f7 100644 --- a/code/lib/telemetry/src/sanitize.test.ts +++ b/code/lib/telemetry/src/sanitize.test.ts @@ -4,7 +4,7 @@ describe(`Errors Helpers`, () => { describe(`sanitizeError`, () => { it(`Sanitizes current path from error stacktraces`, () => { const errorMessage = `this is a test`; - let e; + let e: any; try { throw new Error(errorMessage); } catch (error) { diff --git a/code/presets/react-webpack/src/framework-preset-react-docs.test.ts b/code/presets/react-webpack/src/framework-preset-react-docs.test.ts index 553dd6098728..991f084746ba 100644 --- a/code/presets/react-webpack/src/framework-preset-react-docs.test.ts +++ b/code/presets/react-webpack/src/framework-preset-react-docs.test.ts @@ -1,5 +1,5 @@ import ReactDocgenTypescriptPlugin from '@storybook/react-docgen-typescript-plugin'; -import type { TypescriptConfig } from '@storybook/core-webpack'; +import type { TypescriptOptions } from '@storybook/core-webpack'; import * as preset from './framework-preset-react-docs'; describe('framework-preset-react-docgen', () => { @@ -14,14 +14,13 @@ describe('framework-preset-react-docgen', () => { plugins: ['foo-plugin'], }; - const config = await preset.babel(babelConfig, { + const config = await preset.babel?.(babelConfig, { presets: { - // @ts-expect-error (Converted from ts-ignore) apply: async () => ({ check: false, reactDocgen: 'react-docgen', - } as TypescriptConfig), + } as Partial), }, presetsList: presetsListWithDocs, } as any); @@ -46,14 +45,14 @@ describe('framework-preset-react-docgen', () => { plugins: [], }; - const config = await preset.webpackFinal(webpackConfig, { + const config = await preset.webpackFinal?.(webpackConfig, { presets: { - // @ts-expect-error (Converted from ts-ignore) + // @ts-expect-error (not strict) apply: async () => ({ check: false, reactDocgen: 'react-docgen-typescript', - } as TypescriptConfig), + } as Partial), }, presetsList: presetsListWithDocs, }); @@ -76,25 +75,25 @@ describe('framework-preset-react-docgen', () => { plugins: [], }; - const outputBabelconfig = await preset.babel(babelConfig, { + const outputBabelconfig = await preset.babel?.(babelConfig, { presets: { // @ts-expect-error (Converted from ts-ignore) apply: async () => ({ check: false, reactDocgen: false, - } as TypescriptConfig), + } as Partial), }, presetsList: presetsListWithDocs, }); - const outputWebpackconfig = await preset.webpackFinal(webpackConfig, { + const outputWebpackconfig = await preset.webpackFinal?.(webpackConfig, { presets: { // @ts-expect-error (Converted from ts-ignore) apply: async () => ({ check: false, reactDocgen: false, - } as TypescriptConfig), + } as Partial), }, presetsList: presetsListWithDocs, }); @@ -122,25 +121,25 @@ describe('framework-preset-react-docgen', () => { plugins: [], }; - const outputBabelconfig = await preset.babel(babelConfig, { + const outputBabelconfig = await preset.babel?.(babelConfig, { presets: { // @ts-expect-error (Converted from ts-ignore) apply: async () => ({ check: false, reactDocgen: 'react-docgen-typescript', - } as TypescriptConfig), + } as Partial), }, presetsList: [], }); - const outputWebpackconfig = await preset.webpackFinal(webpackConfig, { + const outputWebpackconfig = await preset.webpackFinal?.(webpackConfig, { presets: { // @ts-expect-error (Converted from ts-ignore) apply: async () => ({ check: false, reactDocgen: 'react-docgen-typescript', - } as TypescriptConfig), + } as Partial), }, presetsList: [], }); diff --git a/code/presets/react-webpack/src/framework-preset-react.test.ts b/code/presets/react-webpack/src/framework-preset-react.test.ts index adf443a51c06..e28b72c90819 100644 --- a/code/presets/react-webpack/src/framework-preset-react.test.ts +++ b/code/presets/react-webpack/src/framework-preset-react.test.ts @@ -49,13 +49,13 @@ describe('framework-preset-react', () => { describe('babel', () => { it('should return a config with fast refresh plugin when fast refresh is enabled', async () => { - const config = await preset.babel(babelConfigMock, storybookOptions as Options); + const config = await preset.babel?.(babelConfigMock, storybookOptions as Options); - expect(config.plugins).toEqual([[reactRefreshPath, {}, 'storybook-react-refresh']]); + expect(config?.plugins).toEqual([[reactRefreshPath, {}, 'storybook-react-refresh']]); }); it('should return unchanged config without fast refresh plugin when fast refresh is disabled', async () => { - const config = await preset.babel( + const config = await preset.babel?.( babelConfigMock, storybookOptionsDisabledRefresh as Options ); @@ -64,7 +64,7 @@ describe('framework-preset-react', () => { }); it('should return unchanged config without fast refresh plugin when mode is not development', async () => { - const config = await preset.babel(babelConfigMock, { + const config = await preset.babel?.(babelConfigMock, { ...storybookOptions, configType: 'PRODUCTION', } as Options); @@ -75,13 +75,13 @@ describe('framework-preset-react', () => { describe('webpackFinal', () => { it('should return a config with fast refresh plugin when fast refresh is enabled', async () => { - const config = await preset.webpackFinal(webpackConfigMock, storybookOptions as Options); + const config = await preset.webpackFinal?.(webpackConfigMock, storybookOptions as Options); - expect(config.plugins).toEqual([new ReactRefreshWebpackPlugin()]); + expect(config?.plugins).toEqual([new ReactRefreshWebpackPlugin()]); }); it('should return unchanged config without fast refresh plugin when fast refresh is disabled', async () => { - const config = await preset.webpackFinal( + const config = await preset.webpackFinal?.( webpackConfigMock, storybookOptionsDisabledRefresh as Options ); @@ -90,7 +90,7 @@ describe('framework-preset-react', () => { }); it('should return unchanged config without fast refresh plugin when mode is not development', async () => { - const config = await preset.webpackFinal(webpackConfigMock, { + const config = await preset.webpackFinal?.(webpackConfigMock, { ...storybookOptions, configType: 'PRODUCTION', } as Options); diff --git a/code/renderers/react/src/docs/extractArgTypes.test.ts b/code/renderers/react/src/docs/extractArgTypes.test.ts index 1c1c1ab06a98..3a27bda64639 100644 --- a/code/renderers/react/src/docs/extractArgTypes.test.ts +++ b/code/renderers/react/src/docs/extractArgTypes.test.ts @@ -1,6 +1,7 @@ import 'jest-specific-snapshot'; import path from 'path'; import fs from 'fs'; +// @ts-expect-error (seems broken/missing) import requireFromString from 'require-from-string'; import { transformFileSync, transformSync } from '@babel/core'; diff --git a/code/renderers/react/src/docs/propTypes/generateFuncSignature.test.ts b/code/renderers/react/src/docs/propTypes/generateFuncSignature.test.ts index c62464b01e1b..7dfb528480ea 100644 --- a/code/renderers/react/src/docs/propTypes/generateFuncSignature.test.ts +++ b/code/renderers/react/src/docs/propTypes/generateFuncSignature.test.ts @@ -3,12 +3,14 @@ import { generateFuncSignature, generateShortFuncSignature } from './generateFun describe('generateFuncSignature', () => { it('should return an empty string when there is no @params and @returns tags', () => { + // @ts-expect-error (invalid input) const result = generateFuncSignature(null, null); expect(result).toBe(''); }); it('should return a signature with a single arg when there is a @param tag with a name', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param event').extractedTags; const result = generateFuncSignature(params, returns); @@ -16,6 +18,7 @@ describe('generateFuncSignature', () => { }); it('should return a signature with a single arg when there is a @param tag with a name and a type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {SyntheticEvent} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -23,6 +26,7 @@ describe('generateFuncSignature', () => { }); it('should return a signature with a single arg when there is a @param tag with a name, a type and a desc', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc( '@param {SyntheticEvent} event - React event' ).extractedTags; @@ -32,6 +36,7 @@ describe('generateFuncSignature', () => { }); it('should support @param of record type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {{a: number}} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -39,6 +44,7 @@ describe('generateFuncSignature', () => { }); it('should support @param of union type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {(number|boolean)} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -46,6 +52,7 @@ describe('generateFuncSignature', () => { }); it('should support @param of array type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {number[]} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -53,6 +60,7 @@ describe('generateFuncSignature', () => { }); it('should support @param with a nullable type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {?number} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -60,6 +68,7 @@ describe('generateFuncSignature', () => { }); it('should support @param with a non nullable type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {!number} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -67,6 +76,7 @@ describe('generateFuncSignature', () => { }); it('should support optional @param with []', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {number} [event]').extractedTags; const result = generateFuncSignature(params, returns); @@ -74,6 +84,7 @@ describe('generateFuncSignature', () => { }); it('should support optional @param with =', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {number=} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -81,6 +92,7 @@ describe('generateFuncSignature', () => { }); it('should support @param of type any', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param {*} event').extractedTags; const result = generateFuncSignature(params, returns); @@ -88,6 +100,7 @@ describe('generateFuncSignature', () => { }); it('should support multiple @param tags', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc( '@param {SyntheticEvent} event\n@param {string} customData' ).extractedTags; @@ -97,6 +110,7 @@ describe('generateFuncSignature', () => { }); it('should return a signature with a return type when there is a @returns with a type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {string}').extractedTags; const result = generateFuncSignature(params, returns); @@ -104,6 +118,7 @@ describe('generateFuncSignature', () => { }); it('should support @returns of record type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {{a: number, b: string}}').extractedTags; const result = generateFuncSignature(params, returns); @@ -111,6 +126,7 @@ describe('generateFuncSignature', () => { }); it('should support @returns of array type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {integer[]}').extractedTags; const result = generateFuncSignature(params, returns); @@ -118,6 +134,7 @@ describe('generateFuncSignature', () => { }); it('should support @returns of union type', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {(number|boolean)}').extractedTags; const result = generateFuncSignature(params, returns); @@ -125,6 +142,7 @@ describe('generateFuncSignature', () => { }); it('should support @returns type any', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {*}').extractedTags; const result = generateFuncSignature(params, returns); @@ -132,6 +150,7 @@ describe('generateFuncSignature', () => { }); it('should support @returns of type void', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {void}').extractedTags; const result = generateFuncSignature(params, returns); @@ -139,6 +158,7 @@ describe('generateFuncSignature', () => { }); it('should return a full signature when there is a single @param tag and a @returns', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc( '@param {SyntheticEvent} event - React event.\n@returns {string}' ).extractedTags; @@ -148,6 +168,7 @@ describe('generateFuncSignature', () => { }); it('should return a full signature when there is a multiple @param tags and a @returns', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc( '@param {SyntheticEvent} event - React event.\n@param {string} data\n@returns {string}' ).extractedTags; @@ -159,12 +180,14 @@ describe('generateFuncSignature', () => { describe('generateShortFuncSignature', () => { it('should return an empty string when there is no @params and @returns tags', () => { + // @ts-expect-error (invalid input) const result = generateShortFuncSignature(null, null); expect(result).toBe(''); }); it('should return ( ... ) when there is @params', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param event').extractedTags; const result = generateShortFuncSignature(params, returns); @@ -172,6 +195,7 @@ describe('generateShortFuncSignature', () => { }); it('should return ( ... ) => returnsType when there is @params and a @returns', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@param event\n@returns {string}').extractedTags; const result = generateShortFuncSignature(params, returns); @@ -179,6 +203,7 @@ describe('generateShortFuncSignature', () => { }); it('should return () => returnsType when there is only a @returns', () => { + // @ts-expect-error (unsafe) const { params, returns } = parseJsDoc('@returns {string}').extractedTags; const result = generateShortFuncSignature(params, returns); diff --git a/code/renderers/react/src/docs/propTypes/handleProp.test.tsx b/code/renderers/react/src/docs/propTypes/handleProp.test.tsx index 031e7384aa27..3a71713e250f 100644 --- a/code/renderers/react/src/docs/propTypes/handleProp.test.tsx +++ b/code/renderers/react/src/docs/propTypes/handleProp.test.tsx @@ -123,7 +123,7 @@ describe('enhancePropTypesProp', () => { value4: string }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have a deep object as summary', () => { @@ -155,7 +155,7 @@ describe('enhancePropTypesProp', () => { return
Inlined FunctionalComponent!
; }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not use identifier of a HTML element', () => { @@ -173,7 +173,7 @@ describe('enhancePropTypesProp', () => { const expectedDetail = '
Hello world from Montreal, Quebec, Canada!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support element without identifier', () => { @@ -192,7 +192,7 @@ describe('enhancePropTypesProp', () => { return
Inlined FunctionalComponent!
; }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); describe('when it is not a known type', () => { @@ -332,7 +332,7 @@ describe('enhancePropTypesProp', () => { another4: string }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have a deep shape as summary', () => { @@ -414,7 +414,7 @@ describe('enhancePropTypesProp', () => { ho: string }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support short object in enum summary', () => { @@ -491,7 +491,7 @@ describe('enhancePropTypesProp', () => { } }`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); describe('func', () => { @@ -620,7 +620,7 @@ describe('enhancePropTypesProp', () => { anotherAnother: string })`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep object in summary', () => { @@ -700,7 +700,7 @@ describe('enhancePropTypesProp', () => { anotherAnother: string })`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have a deep shape in summary', () => { @@ -828,7 +828,7 @@ describe('enhancePropTypesProp', () => { another4: string }]`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep object in summary', () => { @@ -918,7 +918,7 @@ describe('enhancePropTypesProp', () => { another4: string }]`; - expect(type.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(type.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep shape in summary', () => { @@ -973,8 +973,8 @@ describe('enhancePropTypesProp', () => { const expectedSummary = "{ foo: 'foo', bar: 'bar' }"; - expect(defaultValue.summary.replace(/\s/g, '')).toBe(expectedSummary.replace(/\s/g, '')); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary.replace(/\s/g, '')).toBe(expectedSummary.replace(/\s/g, '')); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long object', () => { @@ -984,7 +984,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); const expectedDetail = `{ foo: 'foo', @@ -992,7 +992,7 @@ describe('enhancePropTypesProp', () => { another: 'another' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep object in summary', () => { @@ -1002,7 +1002,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); }); it('should support short function', () => { @@ -1010,8 +1010,8 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('() => {}'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('() => {}'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long function', () => { @@ -1023,7 +1023,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('func'); + expect(defaultValue?.summary).toBe('func'); const expectedDetail = `(foo, bar) => { const concat = foo + bar; @@ -1031,7 +1031,7 @@ describe('enhancePropTypesProp', () => { return append }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should use the name of function when available and indicate that args are present', () => { @@ -1041,13 +1041,13 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('concat( ... )'); + expect(defaultValue?.summary).toBe('concat( ... )'); const expectedDetail = `function concat(a, b) { return a + b }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should use the name of function when available', () => { @@ -1057,13 +1057,13 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('hello()'); + expect(defaultValue?.summary).toBe('hello()'); const expectedDetail = `function hello() { return 'hello' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support short element', () => { @@ -1071,8 +1071,8 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('
Hey!
'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('
Hey!
'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long element', () => { @@ -1084,8 +1084,8 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBe( + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBe( '
Hey! Hey! Hey!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' ); }); @@ -1095,8 +1095,8 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBe(''); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBe(''); }); it("should use the name of the React component when it's available", () => { @@ -1108,13 +1108,13 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe(''); + expect(defaultValue?.summary).toBe(''); const expectedDetail = `function InlinedFunctionalComponent() { return
Inlined FunctionalComponent!
; }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not use the name of an HTML element', () => { @@ -1122,7 +1122,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).not.toBe('
'); + expect(defaultValue?.summary).not.toBe('
'); }); it('should support short array', () => { @@ -1130,8 +1130,8 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('[1]'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('[1]'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long array', () => { @@ -1143,7 +1143,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); const expectedDetail = `[{ thing: { @@ -1154,7 +1154,7 @@ describe('enhancePropTypesProp', () => { } }]`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep array in summary', () => { @@ -1162,7 +1162,7 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); }); describe('fromRawDefaultProp', () => { @@ -1172,48 +1172,53 @@ describe('enhancePropTypesProp', () => { { type: 'symbol', defaultProp: Symbol('hey!') }, ].forEach((x) => { it(`should support ${x.type}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, x.defaultProp); - expect(defaultValue.summary).toBe(x.defaultProp.toString()); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(x.defaultProp.toString()); + expect(defaultValue?.detail).toBeUndefined(); }); }); it('should support strings', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, 'foo'); - expect(defaultValue.summary).toBe('"foo"'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('"foo"'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of primitives', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [1, 2, 3]); - expect(defaultValue.summary).toBe('[1, 2, 3]'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('[1, 2, 3]'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of short object', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [{ foo: 'bar' }]); - expect(defaultValue.summary).toBe("[{ 'foo': 'bar' }]"); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe("[{ 'foo': 'bar' }]"); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of long object', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [{ foo: 'bar', bar: 'foo', hey: 'ho' }]); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); const expectedDetail = `[{ 'foo': 'bar', @@ -1221,24 +1226,26 @@ describe('enhancePropTypesProp', () => { 'hey': 'ho' }]`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support short object', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, { foo: 'bar' }); - expect(defaultValue.summary).toBe("{ 'foo': 'bar' }"); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe("{ 'foo': 'bar' }"); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long object', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, { foo: 'bar', bar: 'foo', hey: 'ho' }); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); const expectedDetail = `{ 'foo': 'bar', @@ -1246,41 +1253,45 @@ describe('enhancePropTypesProp', () => { 'hey': 'ho' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support anonymous function', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, () => 'hey!'); - expect(defaultValue.summary).toBe('func'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('func'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support named function', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, function hello() { return 'world!'; }); - expect(defaultValue.summary).toBe('hello()'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('hello()'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support named function with params', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, function add(a: number, b: number) { return a + b; }); - expect(defaultValue.summary).toBe('add( ... )'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('add( ... )'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support React element', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const defaultProp = ; @@ -1289,11 +1300,12 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component, defaultProp); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support React element with props', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); // @ts-expect-error (Converted from ts-ignore) @@ -1303,20 +1315,22 @@ describe('enhancePropTypesProp', () => { const { defaultValue } = extractPropDef(component, defaultProp); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBe(''); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBe(''); }); it('should support short HTML element', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component,
HTML element
); - expect(defaultValue.summary).toBe('
HTML element
'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('
HTML element
'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long HTML element', () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null); const { defaultValue } = extractPropDef( @@ -1324,17 +1338,18 @@ describe('enhancePropTypesProp', () => {
HTML element!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
); - expect(defaultValue.summary).toBe('element'); + expect(defaultValue?.summary).toBe('element'); const expectedDetail = `
HTML element!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); ['element', 'elementType'].forEach((x) => { it(`should support inlined React class component for ${x}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef( @@ -1346,44 +1361,48 @@ describe('enhancePropTypesProp', () => { } ); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined anonymous React functional component for ${x}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, () => { return
Inlined FunctionalComponent!
; }); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined anonymous React functional component with props for ${x}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, ({ foo }: { foo: string }) => { return
{foo}
; }); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined named React functional component for ${x}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, function InlinedFunctionalComponent() { return
Inlined FunctionalComponent!
; }); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined named React functional component with props for ${x}`, () => { + // @ts-expect-error (invalid input) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef( @@ -1393,8 +1412,8 @@ describe('enhancePropTypesProp', () => { } ); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); }); }); diff --git a/code/renderers/react/src/docs/typeScript/handleProp.test.tsx b/code/renderers/react/src/docs/typeScript/handleProp.test.tsx index 3ff0c2627c2e..37527fd501df 100644 --- a/code/renderers/react/src/docs/typeScript/handleProp.test.tsx +++ b/code/renderers/react/src/docs/typeScript/handleProp.test.tsx @@ -85,8 +85,8 @@ describe('enhanceTypeScriptProp', () => { const expectedSummary = "{ foo: 'foo', bar: 'bar' }"; - expect(defaultValue.summary.replace(/\s/g, '')).toBe(expectedSummary.replace(/\s/g, '')); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary.replace(/\s/g, '')).toBe(expectedSummary.replace(/\s/g, '')); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long object', () => { @@ -96,7 +96,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); const expectedDetail = `{ foo: 'foo', @@ -104,7 +104,7 @@ describe('enhanceTypeScriptProp', () => { another: 'another' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep object in summary', () => { @@ -114,7 +114,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); }); it('should support short function', () => { @@ -122,8 +122,8 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('() => {}'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('() => {}'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long function', () => { @@ -135,7 +135,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('func'); + expect(defaultValue?.summary).toBe('func'); const expectedDetail = `(foo, bar) => { const concat = foo + bar; @@ -143,7 +143,7 @@ describe('enhanceTypeScriptProp', () => { return append }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should use the name of function when available and indicate that args are present', () => { @@ -153,13 +153,13 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('concat( ... )'); + expect(defaultValue?.summary).toBe('concat( ... )'); const expectedDetail = `function concat(a, b) { return a + b }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should use the name of function when available', () => { @@ -169,13 +169,13 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('hello()'); + expect(defaultValue?.summary).toBe('hello()'); const expectedDetail = `function hello() { return 'hello' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support short element', () => { @@ -183,8 +183,8 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('
Hey!
'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('
Hey!
'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long element', () => { @@ -196,8 +196,8 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBe( + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBe( '
Hey! Hey! Hey!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' ); }); @@ -207,8 +207,8 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBe(''); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBe(''); }); it("should use the name of the React component when it's available", () => { @@ -220,13 +220,13 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe(''); + expect(defaultValue?.summary).toBe(''); const expectedDetail = `function InlinedFunctionalComponent() { return
Inlined FunctionalComponent!
; }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not use the name of an HTML element', () => { @@ -234,7 +234,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).not.toBe('
'); + expect(defaultValue?.summary).not.toBe('
'); }); it('should support short array', () => { @@ -242,8 +242,8 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('[1]'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('[1]'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long array', () => { @@ -255,7 +255,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); const expectedDetail = `[{ thing: { @@ -266,7 +266,7 @@ describe('enhanceTypeScriptProp', () => { } }]`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should not have deep array in summary', () => { @@ -274,7 +274,7 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); }); describe('fromRawDefaultProp', () => { @@ -284,48 +284,53 @@ describe('enhanceTypeScriptProp', () => { { type: 'symbol', defaultProp: Symbol('hey!') }, ].forEach((x) => { it(`should support ${x.type}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, x.defaultProp); - expect(defaultValue.summary).toBe(x.defaultProp.toString()); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(x.defaultProp.toString()); + expect(defaultValue?.detail).toBeUndefined(); }); }); it('should support strings', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, 'foo'); - expect(defaultValue.summary).toBe('"foo"'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('"foo"'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of primitives', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [1, 2, 3]); - expect(defaultValue.summary).toBe('[1, 2, 3]'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('[1, 2, 3]'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of short object', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [{ foo: 'bar' }]); - expect(defaultValue.summary).toBe("[{ 'foo': 'bar' }]"); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe("[{ 'foo': 'bar' }]"); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support array of long object', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, [{ foo: 'bar', bar: 'foo', hey: 'ho' }]); - expect(defaultValue.summary).toBe('array'); + expect(defaultValue?.summary).toBe('array'); const expectedDetail = `[{ 'foo': 'bar', @@ -333,24 +338,26 @@ describe('enhanceTypeScriptProp', () => { 'hey': 'ho' }]`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support short object', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, { foo: 'bar' }); - expect(defaultValue.summary).toBe("{ 'foo': 'bar' }"); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe("{ 'foo': 'bar' }"); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long object', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, { foo: 'bar', bar: 'foo', hey: 'ho' }); - expect(defaultValue.summary).toBe('object'); + expect(defaultValue?.summary).toBe('object'); const expectedDetail = `{ 'foo': 'bar', @@ -358,41 +365,45 @@ describe('enhanceTypeScriptProp', () => { 'hey': 'ho' }`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); it('should support anonymous function', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, () => 'hey!'); - expect(defaultValue.summary).toBe('func'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('func'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support named function', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, function hello() { return 'world!'; }); - expect(defaultValue.summary).toBe('hello()'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('hello()'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support named function with params', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component, function add(a: number, b: number) { return a + b; }); - expect(defaultValue.summary).toBe('add( ... )'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('add( ... )'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support React element', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const defaultProp = ; @@ -401,11 +412,12 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component, defaultProp); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support React element with props', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); // @ts-expect-error (Converted from ts-ignore) @@ -415,20 +427,22 @@ describe('enhanceTypeScriptProp', () => { const { defaultValue } = extractPropDef(component, defaultProp); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBe(''); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBe(''); }); it('should support short HTML element', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef(component,
HTML element
); - expect(defaultValue.summary).toBe('
HTML element
'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('
HTML element
'); + expect(defaultValue?.detail).toBeUndefined(); }); it('should support long HTML element', () => { + // @ts-expect-error (not strict) const component = createTestComponent(null); const { defaultValue } = extractPropDef( @@ -436,17 +450,18 @@ describe('enhanceTypeScriptProp', () => {
HTML element!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
); - expect(defaultValue.summary).toBe('element'); + expect(defaultValue?.summary).toBe('element'); const expectedDetail = `
HTML element!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
`; - expect(defaultValue.detail.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); + expect(defaultValue?.detail?.replace(/\s/g, '')).toBe(expectedDetail.replace(/\s/g, '')); }); ['element', 'elementType'].forEach((x) => { it(`should support inlined React class component for ${x}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef( @@ -458,44 +473,48 @@ describe('enhanceTypeScriptProp', () => { } ); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined anonymous React functional component for ${x}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, () => { return
Inlined FunctionalComponent!
; }); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined anonymous React functional component with props for ${x}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, ({ foo }: { foo: string }) => { return
{foo}
; }); - expect(defaultValue.summary).toBe('element'); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe('element'); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined named React functional component for ${x}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef(component, function InlinedFunctionalComponent() { return
Inlined FunctionalComponent!
; }); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); it(`should support inlined named React functional component with props for ${x}`, () => { + // @ts-expect-error (not strict) const component = createTestComponent(null, x); const { defaultValue } = extractPropDef( @@ -505,8 +524,8 @@ describe('enhanceTypeScriptProp', () => { } ); - expect(defaultValue.summary).toBe(''); - expect(defaultValue.detail).toBeUndefined(); + expect(defaultValue?.summary).toBe(''); + expect(defaultValue?.detail).toBeUndefined(); }); }); }); diff --git a/code/renderers/web-components/src/docs/custom-elements.test.ts b/code/renderers/web-components/src/docs/custom-elements.test.ts index 89bcc338473a..e8ba140e7a54 100644 --- a/code/renderers/web-components/src/docs/custom-elements.test.ts +++ b/code/renderers/web-components/src/docs/custom-elements.test.ts @@ -1,16 +1,9 @@ /* eslint-disable no-underscore-dangle */ -// @ts-expect-error (Converted from ts-ignore) import global from 'global'; import { extractArgTypes } from './custom-elements'; import customElementsManifest from './__testfixtures__/custom-elements.json'; -declare global { - interface Window { - __STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__: any; - } -} - const { window } = global; describe('extractArgTypes', () => { diff --git a/code/renderers/web-components/template/cli/ts/Button.stories.ts b/code/renderers/web-components/template/cli/ts/Button.stories.ts index a2fcc8ecd55a..bfbd0fb58e7d 100644 --- a/code/renderers/web-components/template/cli/ts/Button.stories.ts +++ b/code/renderers/web-components/template/cli/ts/Button.stories.ts @@ -7,7 +7,7 @@ const meta: Meta = { title: 'Example/Button', // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/web-components/writing-docs/docs-page tags: ['docsPage'], - render: (args) => Button(args), + render: (args: ButtonProps) => Button(args), // More on argTypes: https://storybook.js.org/docs/web-components/api/argtypes argTypes: { backgroundColor: { control: 'color' }, diff --git a/code/renderers/web-components/template/cli/ts/Header.stories.ts b/code/renderers/web-components/template/cli/ts/Header.stories.ts index ed128a4f8009..b803e1f01b10 100644 --- a/code/renderers/web-components/template/cli/ts/Header.stories.ts +++ b/code/renderers/web-components/template/cli/ts/Header.stories.ts @@ -6,7 +6,7 @@ const meta: Meta = { title: 'Example/Header', // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/web-components/writing-docs/docs-page tags: ['docsPage'], - render: (args) => Header(args), + render: (args: HeaderProps) => Header(args), }; export default meta; diff --git a/code/renderers/web-components/template/cli/ts/Page.stories.ts b/code/renderers/web-components/template/cli/ts/Page.stories.ts index 94229aac5dfc..43ecfdccf450 100644 --- a/code/renderers/web-components/template/cli/ts/Page.stories.ts +++ b/code/renderers/web-components/template/cli/ts/Page.stories.ts @@ -6,7 +6,7 @@ import * as HeaderStories from './Header.stories'; const meta: Meta = { title: 'Example/Page', - render: (args) => Page(args), + render: (args: PageProps) => Page(args), }; export default meta; diff --git a/code/renderers/web-components/tsconfig.json b/code/renderers/web-components/tsconfig.json index f53628f70386..789b1b8985c3 100644 --- a/code/renderers/web-components/tsconfig.json +++ b/code/renderers/web-components/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../../tsconfig.json", + "compilerOptions": { + "resolveJsonModule": true + }, "include": ["src/**/*", "template/**/*"] } diff --git a/code/tsconfig.json b/code/tsconfig.json index 1e99fa09f78e..645fbb05c512 100644 --- a/code/tsconfig.json +++ b/code/tsconfig.json @@ -14,7 +14,6 @@ "esModuleInterop": true, "isolatedModules": true, "strictBindCallApply": true, - "types": ["jest"], "lib": ["dom", "esnext"] }, "exclude": ["dist", "**/dist", "node_modules", "**/node_modules", "**/setup-jest.ts"], diff --git a/code/ui/blocks/src/blocks/enhanceSource.test.ts b/code/ui/blocks/src/blocks/enhanceSource.test.ts index 4ec16f0fe29e..d5adb5ea1047 100644 --- a/code/ui/blocks/src/blocks/enhanceSource.test.ts +++ b/code/ui/blocks/src/blocks/enhanceSource.test.ts @@ -1,6 +1,7 @@ import type { StoryContext } from '@storybook/types'; import { enhanceSource } from './enhanceSource'; +// @ts-expect-error (not correct) const emptyContext: StoryContext = { id: 'foo--bar', kind: 'foo', @@ -15,11 +16,13 @@ describe('addon-docs enhanceSource', () => { describe('no source loaded', () => { const baseContext = emptyContext; it('no transformSource', () => { + // @ts-expect-error (not correct) expect(enhanceSource(baseContext)).toBeNull(); }); it('transformSource', () => { const transformSource = (src?: string) => (src ? `formatted: ${src}` : 'no src'); const parameters = { ...baseContext.parameters, docs: { transformSource } }; + // @ts-expect-error (not correct) expect(enhanceSource({ ...baseContext, parameters })).toBeNull(); }); }); @@ -30,6 +33,7 @@ describe('addon-docs enhanceSource', () => { parameters: { storySource: { source } }, }; it('no transformSource', () => { + // @ts-expect-error (not correct) expect(enhanceSource(baseContext)).toEqual({ docs: { source: { code: 'storySource.source' } }, }); @@ -37,6 +41,7 @@ describe('addon-docs enhanceSource', () => { it('transformSource', () => { const transformSource = (src?: string) => (src ? `formatted: ${src}` : 'no src'); const parameters = { ...baseContext.parameters, docs: { transformSource } }; + // @ts-expect-error (not correct) expect(enhanceSource({ ...baseContext, parameters }).docs.source).toEqual({ code: 'formatted: storySource.source', }); @@ -45,6 +50,7 @@ describe('addon-docs enhanceSource', () => { const transformSource = jest.fn(); const parameters = { ...baseContext.parameters, docs: { transformSource } }; const context = { ...baseContext, parameters }; + // @ts-expect-error (not correct) enhanceSource(context); expect(transformSource).toHaveBeenCalledWith(source, context); }); @@ -62,11 +68,13 @@ describe('addon-docs enhanceSource', () => { }, }; it('no transformSource', () => { + // @ts-expect-error (not correct) expect(enhanceSource(baseContext)).toEqual({ docs: { source: { code: 'Source' } } }); }); it('transformSource', () => { const transformSource = (src?: string) => (src ? `formatted: ${src}` : 'no src'); const parameters = { ...baseContext.parameters, docs: { transformSource } }; + // @ts-expect-error (not correct) expect(enhanceSource({ ...baseContext, parameters }).docs.source).toEqual({ code: 'formatted: Source', }); @@ -75,6 +83,7 @@ describe('addon-docs enhanceSource', () => { const transformSource = jest.fn(); const parameters = { ...baseContext.parameters, docs: { transformSource } }; const context = { ...baseContext, parameters }; + // @ts-expect-error (not correct) enhanceSource(context); expect(transformSource).toHaveBeenCalledWith('Source', context); }); @@ -88,12 +97,14 @@ describe('addon-docs enhanceSource', () => { }, }; it('no transformSource', () => { + // @ts-expect-error (not correct) expect(enhanceSource(baseContext)).toBeNull(); }); it('transformSource', () => { const transformSource = (src?: string) => (src ? `formatted: ${src}` : 'no src'); const { source } = baseContext.parameters.docs; const parameters = { ...baseContext.parameters, docs: { source, transformSource } }; + // @ts-expect-error (not correct) expect(enhanceSource({ ...baseContext, parameters })).toBeNull(); }); }); diff --git a/code/ui/blocks/src/components/ArgsTable/ArgRow.stories.tsx b/code/ui/blocks/src/components/ArgsTable/ArgRow.stories.tsx index d26399daeec1..301c32e21052 100644 --- a/code/ui/blocks/src/components/ArgsTable/ArgRow.stories.tsx +++ b/code/ui/blocks/src/components/ArgsTable/ArgRow.stories.tsx @@ -7,7 +7,7 @@ export default { component: ArgRow, title: 'Components/ArgsTable/ArgRow', decorators: [ - (getStory) => ( + (getStory: any) => ( {getStory()} diff --git a/code/ui/blocks/src/components/ArgsTable/ArgsTable.stories.tsx b/code/ui/blocks/src/components/ArgsTable/ArgsTable.stories.tsx index 31358c3c1a11..6220c2a895cb 100644 --- a/code/ui/blocks/src/components/ArgsTable/ArgsTable.stories.tsx +++ b/code/ui/blocks/src/components/ArgsTable/ArgsTable.stories.tsx @@ -55,16 +55,17 @@ const AddonPanelLayout = styled.div(({ theme }) => ({ export const InAddonPanel = { args: { ...Normal.args, inAddonPanel: true }, - decorators: [(storyFn) => {storyFn()}], + decorators: [(storyFn: any) => {storyFn()}], }; export const InAddonPanelWithWarning = { - render: (args) => ( + render: (args: any) => ( <> ), + // @ts-expect-error (not strict) args: { ...InAddonPanel.args, updateArgs: null }, decorators: InAddonPanel.decorators, }; diff --git a/code/ui/blocks/src/components/ArgsTable/SectionRow.stories.tsx b/code/ui/blocks/src/components/ArgsTable/SectionRow.stories.tsx index 77b4f9860732..0b386d3c881b 100644 --- a/code/ui/blocks/src/components/ArgsTable/SectionRow.stories.tsx +++ b/code/ui/blocks/src/components/ArgsTable/SectionRow.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { ResetWrapper } from '@storybook/components'; import { SectionRow } from './SectionRow'; @@ -6,7 +7,7 @@ import { TableWrapper } from './ArgsTable'; export default { component: SectionRow, decorators: [ - (getStory) => ( + (getStory: any) => ( {getStory()} @@ -36,8 +37,8 @@ export const Collapsed = { export const Nested = { render: () => ( - - + )}> + )}> Some content diff --git a/code/ui/blocks/src/components/DocsPage.stories.tsx b/code/ui/blocks/src/components/DocsPage.stories.tsx index 1e03a93c861b..e8453029f20b 100644 --- a/code/ui/blocks/src/components/DocsPage.stories.tsx +++ b/code/ui/blocks/src/components/DocsPage.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { Global, css } from '@storybook/theming'; import { Source, ArgsTable, Description } from '.'; @@ -13,7 +14,7 @@ export default { // The goal of this decorator is to mimic some CSS reset. // Like Tailwind CSS or Bulma do, for example. decorators: [ - (storyFn) => ( + (storyFn: any) => ( <> ( - + )} /> ); diff --git a/code/ui/blocks/src/components/Preview.stories.tsx b/code/ui/blocks/src/components/Preview.stories.tsx index ea46dc350ae3..baa4bb70f50c 100644 --- a/code/ui/blocks/src/components/Preview.stories.tsx +++ b/code/ui/blocks/src/components/Preview.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { styled } from '@storybook/theming'; import global from 'global'; @@ -87,11 +88,11 @@ const buttonFn = () => ; export const WithToolbar = () => ( - + ); -const Horizontal = styled((props) => )({ +const Horizontal = styled((props: ComponentProps) => )({ display: 'grid', gridTemplateColumns: '100px calc(100vw + 100px) 100px', }); @@ -108,14 +109,15 @@ export const Wide = () => ( export const WithToolbarMulti = () => ( - - + + ); export const WithFullscreenSingle = () => ( ( export const WithFullscreenMulti = () => ( ( }} /> ( export const WithCenteredSingle = () => ( ( export const WithCenteredMulti = () => ( ( }} /> ( +const withBackground = (storyFn: any) => (
); -const TemplateElement = (args) => ; +const TemplateElement = (args: any) => ; export const ElementActualSize = TemplateElement.bind({}); +// @ts-expect-error (to be converted to CSF3) ElementActualSize.args = { scale: 1, children: EXAMPLE_ELEMENT, @@ -35,6 +36,7 @@ ElementActualSize.args = { export const ElementZoomedIn = TemplateElement.bind({}); +// @ts-expect-error (to be converted to CSF3) ElementZoomedIn.args = { scale: 0.7, children: EXAMPLE_ELEMENT, @@ -42,6 +44,7 @@ ElementZoomedIn.args = { export const ElementZoomedOut = TemplateElement.bind({}); +// @ts-expect-error (to be converted to CSF3) ElementZoomedOut.args = { scale: 3, children: EXAMPLE_ELEMENT, @@ -54,7 +57,7 @@ const style: CSSProperties = { position: 'relative', }; -const TemplateIFrame = (args) => { +const TemplateIFrame = (args: any) => { const iFrameRef = React.useRef(null); const [scale, setScale] = useState(1); const [loaded, hasLoaded] = useState(false); @@ -80,6 +83,7 @@ const TemplateIFrame = (args) => { }; export const IFrameActualSize = TemplateIFrame.bind({}); +// @ts-expect-error (to be converted to CSF3) IFrameActualSize.args = { scale: 1, active: true, @@ -87,28 +91,33 @@ IFrameActualSize.args = { // The iFrame stories are disabled because useGlobals works in practice // but, for some reason breaks in the stories for Zoom.iFrame +// @ts-expect-error (to be converted to CSF3) IFrameActualSize.parameters = { chromatic: { disableSnapshot: true }, }; export const IFrameZoomedIn = TemplateIFrame.bind({}); +// @ts-expect-error (to be converted to CSF3) IFrameZoomedIn.args = { scale: 0.7, active: true, }; +// @ts-expect-error (to be converted to CSF3) IFrameZoomedIn.parameters = { chromatic: { disableSnapshot: true }, }; export const IFrameZoomedOut = TemplateIFrame.bind({}); +// @ts-expect-error (to be converted to CSF3) IFrameZoomedOut.args = { scale: 3, active: true, }; +// @ts-expect-error (to be converted to CSF3) IFrameZoomedOut.parameters = { chromatic: { disableSnapshot: true }, }; diff --git a/code/ui/components/src/form/form.stories.tsx b/code/ui/components/src/form/form.stories.tsx index de690d17176a..993000e6085b 100644 --- a/code/ui/components/src/form/form.stories.tsx +++ b/code/ui/components/src/form/form.stories.tsx @@ -43,7 +43,7 @@ const sharedArgTypes = { }; export const Field = { - render: (args) => ( + render: (args: any) => ( @@ -63,7 +63,7 @@ export const Field = { }; export const Select = { - render: (args) => ( + render: (args: any) => ( @@ -85,7 +85,7 @@ export const Select = { }; export const Button = { - render: (args) => ( + render: (args: any) => ( Form Button @@ -94,7 +94,7 @@ export const Button = { }; export const Textarea = { - render: (args) => ( + render: (args: any) => ( @@ -110,7 +110,7 @@ export const Textarea = { }; export const Input = { - render: (args) => ( + render: (args: any) => ( diff --git a/code/ui/components/src/icon/icon.stories.tsx b/code/ui/components/src/icon/icon.stories.tsx index 8bf3fd4fb834..d2ea3a028c67 100644 --- a/code/ui/components/src/icon/icon.stories.tsx +++ b/code/ui/components/src/icon/icon.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { styled, css } from '@storybook/theming'; @@ -58,7 +59,7 @@ export default { component: Icons, }; -export const Basic = (args) => ; +export const Basic = (args: ComponentProps) => ; Basic.args = { icon: 'watch' }; export const Labels = () => ( diff --git a/code/ui/components/src/spaced/Spaced.stories.tsx b/code/ui/components/src/spaced/Spaced.stories.tsx index 6acde870ab34..26d4c3afafe7 100644 --- a/code/ui/components/src/spaced/Spaced.stories.tsx +++ b/code/ui/components/src/spaced/Spaced.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { styled } from '@storybook/theming'; @@ -17,7 +18,7 @@ export default { component: Spaced, }; -export const Default = (args) => ( +export const Default = (args: ComponentProps) => (
@@ -30,7 +31,7 @@ export const Default = (args) => ( ); export const Column = { - render: (args) => ( + render: (args: ComponentProps) => (
@@ -43,7 +44,7 @@ export const Column = { ), }; export const Row = { - render: (args) => ( + render: (args: ComponentProps) => (
diff --git a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx index a1e19cd73479..22609a6f5543 100644 --- a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx +++ b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.stories.tsx @@ -1,4 +1,5 @@ -import * as React from 'react'; +import type { ComponentProps } from 'react'; +import React from 'react'; import { ThemeProvider, themes, ensure } from '@storybook/theming'; import { SyntaxHighlighter } from './lazy-syntaxhighlighter'; @@ -149,7 +150,7 @@ export const UnsupportedDark = { } }`, }, - render: (args) => ( + render: (args: ComponentProps) => ( diff --git a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx index 7cab27104b33..4d29727d340b 100644 --- a/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx +++ b/code/ui/components/src/syntaxhighlighter/syntaxhighlighter.tsx @@ -5,30 +5,19 @@ import { styled } from '@storybook/theming'; import global from 'global'; import memoize from 'memoizerific'; -// @ts-expect-error (Converted from ts-ignore) import jsx from 'react-syntax-highlighter/dist/esm/languages/prism/jsx'; -// @ts-expect-error (Converted from ts-ignore) import bash from 'react-syntax-highlighter/dist/esm/languages/prism/bash'; -// @ts-expect-error (Converted from ts-ignore) import css from 'react-syntax-highlighter/dist/esm/languages/prism/css'; // @ts-expect-error (Converted from ts-ignore) import jsExtras from 'react-syntax-highlighter/dist/esm/languages/prism/js-extras'; -// @ts-expect-error (Converted from ts-ignore) import json from 'react-syntax-highlighter/dist/esm/languages/prism/json'; -// @ts-expect-error (Converted from ts-ignore) import graphql from 'react-syntax-highlighter/dist/esm/languages/prism/graphql'; -// @ts-expect-error (Converted from ts-ignore) import html from 'react-syntax-highlighter/dist/esm/languages/prism/markup'; -// @ts-expect-error (Converted from ts-ignore) import md from 'react-syntax-highlighter/dist/esm/languages/prism/markdown'; -// @ts-expect-error (Converted from ts-ignore) import yml from 'react-syntax-highlighter/dist/esm/languages/prism/yaml'; -// @ts-expect-error (Converted from ts-ignore) import tsx from 'react-syntax-highlighter/dist/esm/languages/prism/tsx'; -// @ts-expect-error (Converted from ts-ignore) import typescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript'; -// @ts-expect-error (Converted from ts-ignore) import ReactSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light'; // @ts-expect-error (Converted from ts-ignore) import { createElement } from 'react-syntax-highlighter/dist/esm/index'; diff --git a/code/ui/components/src/tabs/tabs.stories.tsx b/code/ui/components/src/tabs/tabs.stories.tsx index a977c46eecb1..9aaa4fb3c457 100644 --- a/code/ui/components/src/tabs/tabs.stories.tsx +++ b/code/ui/components/src/tabs/tabs.stories.tsx @@ -1,4 +1,4 @@ -import type { Key } from 'react'; +import type { ComponentProps, Key } from 'react'; import React, { Fragment } from 'react'; import { action } from '@storybook/addon-actions'; import { logger } from '@storybook/client-logger'; @@ -35,7 +35,7 @@ function fibonacci(num: number, memo?: FibonacciMap): number { interface Panels { [key: string]: { title: string; - color: string; + color?: string; render: ({ active, key }: { active: boolean; key: Key }) => JSX.Element; }; } @@ -136,7 +136,7 @@ export default { } as Meta; export const StatefulStatic = { - render: (args) => ( + render: (args: ComponentProps) => (
{({ active, selected }: { active: boolean; selected: string }) => @@ -151,7 +151,7 @@ export const StatefulStatic = { }; export const StatefulStaticWithSetButtonTextColors = { - render: (args) => ( + render: (args: ComponentProps) => (
@@ -167,7 +167,7 @@ export const StatefulStaticWithSetButtonTextColors = { ), }; export const StatefulStaticWithSetBackgroundColor = { - render: (args) => ( + render: (args: ComponentProps) => (
@@ -184,7 +184,7 @@ export const StatefulStaticWithSetBackgroundColor = { }; export const StatefulDynamic = { - render: (args) => ( + render: (args: ComponentProps) => ( {Object.entries(panels).map(([k, v]) => (
@@ -195,10 +195,10 @@ export const StatefulDynamic = { ), }; export const StatefulNoInitial = { - render: (args) => {content}, + render: (args: ComponentProps) => {content}, }; export const StatelessBordered = { - render: (args) => ( + render: (args: ComponentProps) => ( ( + render: (args: ComponentProps) => ( ( + render: (args: ComponentProps) => ( ( + render: (args: ComponentProps) => ( ( + render: (args: ComponentProps) => ( ( + render: () => (
diff --git a/code/ui/components/src/tooltip/Tooltip.stories.tsx b/code/ui/components/src/tooltip/Tooltip.stories.tsx index 1c677ed615f4..fc9e8802bae7 100644 --- a/code/ui/components/src/tooltip/Tooltip.stories.tsx +++ b/code/ui/components/src/tooltip/Tooltip.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { styled } from '@storybook/theming'; import { Tooltip } from './Tooltip'; @@ -25,7 +26,7 @@ export default { export const BasicDefault = { // args: mockPopperProps, - render: (args) => ( + render: (args: ComponentProps) => ( Text @@ -37,7 +38,7 @@ export const BasicDefaultBottom = { // ...mockPopperProps, placement: 'bottom', }, - render: (args) => ( + render: (args: ComponentProps) => ( Text @@ -49,7 +50,7 @@ export const BasicDefaultLeft = { // ...mockPopperProps, placement: 'left', }, - render: (args) => ( + render: (args: ComponentProps) => ( Text @@ -61,7 +62,7 @@ export const BasicDefaultRight = { // ...mockPopperProps, placement: 'right', }, - render: (args) => ( + render: (args: ComponentProps) => ( Text @@ -73,7 +74,7 @@ export const WithoutChrome = { // ...mockPopperProps, hasChrome: false, }, - render: (args) => ( + render: (args: ComponentProps) => ( Text diff --git a/code/ui/components/src/tooltip/TooltipNote.stories.tsx b/code/ui/components/src/tooltip/TooltipNote.stories.tsx index b0b0808803fe..f21030c62b75 100644 --- a/code/ui/components/src/tooltip/TooltipNote.stories.tsx +++ b/code/ui/components/src/tooltip/TooltipNote.stories.tsx @@ -5,7 +5,7 @@ import { TooltipNote } from './TooltipNote'; export default { component: TooltipNote, decorators: [ - (storyFn) => ( + (storyFn: any) => (
= ({ onHide }) => ( export default { component: WithTooltip, decorators: [ - (storyFn) => ( + (storyFn: any) => ( diff --git a/code/ui/components/src/typography/link/link.stories.tsx b/code/ui/components/src/typography/link/link.stories.tsx index e696d44c876b..7df61e61995f 100644 --- a/code/ui/components/src/typography/link/link.stories.tsx +++ b/code/ui/components/src/typography/link/link.stories.tsx @@ -1,3 +1,4 @@ +import type { ComponentProps } from 'react'; import React from 'react'; import { action } from '@storybook/addon-actions'; import { Link } from './link'; @@ -44,7 +45,7 @@ export const NoCancelWHref = { }; export const StyledLinks = { - render: (args) => ( + render: (args: ComponentProps) => (
Default diff --git a/code/ui/manager/src/app.stories.tsx b/code/ui/manager/src/app.stories.tsx index 19c1390964ba..bd2e737eb26a 100644 --- a/code/ui/manager/src/app.stories.tsx +++ b/code/ui/manager/src/app.stories.tsx @@ -13,7 +13,7 @@ export default { layout: 'fullscreen', }, decorators: [ - (StoryFn) => ( + (StoryFn: any) => ( diff --git a/code/ui/manager/src/components/layout/app.mockdata.tsx b/code/ui/manager/src/components/layout/app.mockdata.tsx index 3631e29f4cea..8cb1a9605516 100644 --- a/code/ui/manager/src/components/layout/app.mockdata.tsx +++ b/code/ui/manager/src/components/layout/app.mockdata.tsx @@ -58,7 +58,7 @@ export const panels: Addon_Collection = { }; const realSidebarProps: SidebarProps = { - stories: mockDataset.withRoot, + stories: mockDataset.withRoot as SidebarProps['stories'], menu: [], refs: {}, storiesConfigured: true, diff --git a/code/ui/manager/src/components/preview/preview.mockdata.tsx b/code/ui/manager/src/components/preview/preview.mockdata.tsx index f4f172766c69..5e2d69dcdf9a 100644 --- a/code/ui/manager/src/components/preview/preview.mockdata.tsx +++ b/code/ui/manager/src/components/preview/preview.mockdata.tsx @@ -25,6 +25,7 @@ export const previewProps: PreviewProps = { } as any as API, entry: { type: 'story', + tags: [], id: 'story--id', parent: 'root', depth: 1, diff --git a/code/ui/manager/src/components/preview/preview.stories.tsx b/code/ui/manager/src/components/preview/preview.stories.tsx index 877209165e0c..dba22a1fd4ca 100644 --- a/code/ui/manager/src/components/preview/preview.stories.tsx +++ b/code/ui/manager/src/components/preview/preview.stories.tsx @@ -15,7 +15,7 @@ import { previewProps } from './preview.mockdata'; const provider = new PrettyFakeProvider(); const staticNavigator = { - createHref(to) { + createHref(to: any) { return typeof to === 'string' ? to : createPath(to); }, @@ -41,6 +41,7 @@ export default { pathname: locationProp.pathname || '/', search: locationProp.search || '', hash: locationProp.hash || '', + // @ts-expect-error (invalid input) state: null, key: 'default', }; diff --git a/code/ui/manager/src/components/sidebar/Explorer.stories.tsx b/code/ui/manager/src/components/sidebar/Explorer.stories.tsx index c1c69a3b2bde..0e10b70d134a 100644 --- a/code/ui/manager/src/components/sidebar/Explorer.stories.tsx +++ b/code/ui/manager/src/components/sidebar/Explorer.stories.tsx @@ -26,6 +26,7 @@ const simple: Record = { id: 'storybook_internal', url: 'iframe.html', ready: true, + // @ts-expect-error (invalid input) stories: mockDataset.withRoot, }, }; @@ -38,6 +39,7 @@ const withRefs: Record = { url: 'https://example.com', ready: true, type: 'auto-inject', + // @ts-expect-error (invalid input) stories: mockDataset.noRoot, }, injected: { @@ -46,6 +48,7 @@ const withRefs: Record = { url: 'https://example.com', ready: false, type: 'auto-inject', + // @ts-expect-error (invalid input) stories: mockDataset.noRoot, }, unknown: { @@ -54,6 +57,7 @@ const withRefs: Record = { url: 'https://example.com', ready: true, type: 'unknown', + // @ts-expect-error (invalid input) stories: mockDataset.noRoot, }, lazy: { @@ -62,6 +66,7 @@ const withRefs: Record = { url: 'https://example.com', ready: false, type: 'lazy', + // @ts-expect-error (invalid input) stories: mockDataset.withRoot, }, }; diff --git a/code/ui/manager/src/components/sidebar/Menu.stories.tsx b/code/ui/manager/src/components/sidebar/Menu.stories.tsx index 8db327961407..b4e06a9b3902 100644 --- a/code/ui/manager/src/components/sidebar/Menu.stories.tsx +++ b/code/ui/manager/src/components/sidebar/Menu.stories.tsx @@ -63,6 +63,7 @@ export const Expanded = () => { ); }; +// @ts-expect-error (needs to be converted to CSF3) Expanded.play = async ({ canvasElement }) => { const canvas = within(canvasElement); const menuButton = await canvas.findByRole('button'); @@ -74,6 +75,7 @@ Expanded.play = async ({ canvasElement }) => { export const ExpandedWithoutReleaseNotes = () => { const menu = useMenu( { + // @ts-expect-error (invalid) getShortcutKeys: () => ({}), getAddonsShortcuts: () => ({}), versionUpdateAvailable: () => false, @@ -92,6 +94,7 @@ export const ExpandedWithoutReleaseNotes = () => { ); }; +// @ts-expect-error (needs to be converted to CSF3) ExpandedWithoutReleaseNotes.play = async (context) => { const canvas = within(context.canvasElement); await Expanded.play(context); diff --git a/code/ui/manager/src/components/sidebar/Refs.stories.tsx b/code/ui/manager/src/components/sidebar/Refs.stories.tsx index 3784dad74c99..1727b323c465 100644 --- a/code/ui/manager/src/components/sidebar/Refs.stories.tsx +++ b/code/ui/manager/src/components/sidebar/Refs.stories.tsx @@ -43,6 +43,7 @@ const refs: Record = { url: 'https://example.com', ready: false, type: 'lazy', + // @ts-expect-error (invalid input) stories, }, empty: { @@ -59,6 +60,7 @@ const refs: Record = { url: 'https://example.com', type: 'unknown', ready: false, + // @ts-expect-error (invalid input) stories, }, startInjected_loading: { @@ -67,6 +69,7 @@ const refs: Record = { url: 'https://example.com', type: 'auto-inject', ready: false, + // @ts-expect-error (invalid input) stories, }, startInjected_ready: { @@ -75,6 +78,7 @@ const refs: Record = { url: 'https://example.com', type: 'auto-inject', ready: true, + // @ts-expect-error (invalid input) stories, }, versions: { @@ -82,6 +86,7 @@ const refs: Record = { title: 'It has versions', url: 'https://example.com', type: 'lazy', + // @ts-expect-error (invalid input) stories, versions: { '1.0.0': 'https://example.com/v1', '2.0.0': 'https://example.com' }, }, @@ -90,6 +95,7 @@ const refs: Record = { title: 'It has versions', url: 'https://example.com', type: 'lazy', + // @ts-expect-error (invalid input) stories, versions: { '1.0.0': 'https://example.com/v1', '2.0.0': 'https://example.com/v2' }, }, @@ -113,6 +119,7 @@ const refs: Record = { id: 'long', title: 'This storybook has a very very long name for some reason', url: 'https://example.com', + // @ts-expect-error (invalid input) stories, type: 'lazy', versions: { diff --git a/code/ui/manager/src/components/sidebar/SearchResults.stories.tsx b/code/ui/manager/src/components/sidebar/SearchResults.stories.tsx index 7f80fdcd365b..ff5dba200ba8 100644 --- a/code/ui/manager/src/components/sidebar/SearchResults.stories.tsx +++ b/code/ui/manager/src/components/sidebar/SearchResults.stories.tsx @@ -34,6 +34,7 @@ const combinedDataset = (refs: Record): CombinedDataset => return { hash, entries: Object.entries(hash) }; }; +// @ts-expect-error (invalid input) const dataset = combinedDataset({ internal: mockDataset.withRoot, composed: mockDataset.noRoot }); const internal = Object.values(dataset.hash.internal.stories).map((item) => diff --git a/code/ui/manager/src/components/sidebar/Sidebar.stories.tsx b/code/ui/manager/src/components/sidebar/Sidebar.stories.tsx index bdb774aca6ce..9f863bfd7d2d 100644 --- a/code/ui/manager/src/components/sidebar/Sidebar.stories.tsx +++ b/code/ui/manager/src/components/sidebar/Sidebar.stories.tsx @@ -32,6 +32,7 @@ const refs: Record = { url: 'https://example.com', ready: false, type: 'lazy', + // @ts-expect-error (needs to be converted to CSF3) stories, }, }; @@ -40,7 +41,7 @@ export const Simple = () => ( ( ( { const [selectedId, setSelectedId] = React.useState(storyId); return ( { }, {} as StoriesHash); const singleStoryComponent: StoriesHash = { + // @ts-expect-error (invalid input) single: { type: 'component', name: 'Single', @@ -67,6 +69,7 @@ const singleStoryComponent: StoriesHash = { children: ['single--single'], renderLabel: () => 🔥 Single, }, + // @ts-expect-error (invalid input) 'single--single': { type: 'story', id: 'single--single', @@ -86,6 +89,7 @@ export const SingleStoryComponents = () => { const [selectedId, setSelectedId] = React.useState('tooltip-tooltipbuildlist--default'); return ( { }; const docsOnlySinglesStoryComponent: StoriesHash = { + // @ts-expect-error (invalid input) single: { type: 'component', name: 'Single', @@ -107,6 +112,7 @@ const docsOnlySinglesStoryComponent: StoriesHash = { depth: 0, children: ['single--docs'], }, + // @ts-expect-error (invalid input) 'single--docs': { type: 'docs', id: 'single--docs', @@ -121,6 +127,7 @@ export const DocsOnlySingleStoryComponents = () => { const [selectedId, setSelectedId] = React.useState('tooltip-tooltipbuildlist--default'); return ( ( Component Group Story - Document + Document ); @@ -33,7 +33,9 @@ export const Expandable = () => ( export const Nested = () => ( <> - Zero + + Zero + Zero diff --git a/code/yarn.lock b/code/yarn.lock index 6b69b3f85d30..bf1a81e7a531 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6207,7 +6207,6 @@ __metadata: "@storybook/router": 7.0.0-alpha.49 "@storybook/store": 7.0.0-alpha.49 "@storybook/theming": 7.0.0-alpha.49 - "@types/case-sensitive-paths-webpack-plugin": ^2.1.6 "@types/node": ^16.0.0 "@types/semver": ^7.3.4 "@types/terser-webpack-plugin": ^5.2.0 @@ -6927,7 +6926,6 @@ __metadata: "@storybook/node-logger": 7.0.0-alpha.49 "@storybook/preset-react-webpack": 7.0.0-alpha.49 "@storybook/react": 7.0.0-alpha.49 - "@types/loader-utils": ^2.0.3 "@types/node": ^14.14.20 || ^16.0.0 find-up: ^5.0.0 fs-extra: ^9.0.1 @@ -8340,15 +8338,6 @@ __metadata: languageName: node linkType: hard -"@types/case-sensitive-paths-webpack-plugin@npm:^2.1.6": - version: 2.1.6 - resolution: "@types/case-sensitive-paths-webpack-plugin@npm:2.1.6" - dependencies: - "@types/webpack": ^4 - checksum: 9f379718393f04937be69e742f9b67e346ecca5badb37a02eb1b740a4f37e1c52033b3a9fef04b82e31b9f58ae72ae02cf1027a57ecd969ff5e1b4e6796375d6 - languageName: node - linkType: hard - "@types/cheerio@npm:*, @types/cheerio@npm:^0.22.22": version: 0.22.31 resolution: "@types/cheerio@npm:0.22.31" @@ -8740,16 +8729,6 @@ __metadata: languageName: node linkType: hard -"@types/loader-utils@npm:^2.0.3": - version: 2.0.3 - resolution: "@types/loader-utils@npm:2.0.3" - dependencies: - "@types/node": "*" - "@types/webpack": ^4 - checksum: e4998224ca40a05a395469894215e3d700c4cc71415efb296269bca6b1fa3b00ee07e79206f1113e30f844e55a8829f1293526cb0379d96821a8840b7ef7a80f - languageName: node - linkType: hard - "@types/lodash@npm:^4.14.167": version: 4.14.188 resolution: "@types/lodash@npm:4.14.188" diff --git a/scripts/tasks/install.ts b/scripts/tasks/install.ts index f57d593c0bdf..e98be69d65ff 100644 --- a/scripts/tasks/install.ts +++ b/scripts/tasks/install.ts @@ -1,4 +1,4 @@ -import { pathExists } from 'fs-extra'; +import { pathExists, remove } from 'fs-extra'; import { join } from 'path'; import type { Task } from '../task'; import { exec } from '../utils/exec'; @@ -9,6 +9,9 @@ export const install: Task = { return pathExists(join(codeDir, 'node_modules')); }, async run({ codeDir }, { dryRun, debug }) { - return exec(`yarn install`, { cwd: codeDir }, { dryRun, debug }); + await exec(`yarn install`, { cwd: codeDir }, { dryRun, debug }); + + // these are webpack4 types, we we should never use + await remove(join(codeDir, 'node_modules', '@types', 'webpack')); }, };