diff --git a/addons/a11y/src/index.ts b/addons/a11y/src/index.ts index 6bb2d2d21dc..1563fe0c340 100644 --- a/addons/a11y/src/index.ts +++ b/addons/a11y/src/index.ts @@ -1,6 +1,6 @@ import type { AnyFramework, DecoratorFunction } from '@storybook/csf'; import deprecate from 'util-deprecate'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; export { PARAM_KEY } from './constants'; export * from './params'; diff --git a/addons/actions/src/preview/decorateAction.ts b/addons/actions/src/preview/decorateAction.ts index b84f49bdb20..67306c1c5c1 100644 --- a/addons/actions/src/preview/decorateAction.ts +++ b/addons/actions/src/preview/decorateAction.ts @@ -1,5 +1,5 @@ import deprecate from 'util-deprecate'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { DecoratorFunction } from '../models'; diff --git a/addons/actions/src/preview/withActions.ts b/addons/actions/src/preview/withActions.ts index 6bf5cb14e24..c6e2c265a91 100644 --- a/addons/actions/src/preview/withActions.ts +++ b/addons/actions/src/preview/withActions.ts @@ -2,7 +2,7 @@ import global from 'global'; import { useEffect, makeDecorator } from '@storybook/addons'; import deprecate from 'util-deprecate'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { actions } from './actions'; diff --git a/addons/backgrounds/src/decorators/withGrid.ts b/addons/backgrounds/src/decorators/withGrid.ts index 35ba05383ff..7634c221d4e 100644 --- a/addons/backgrounds/src/decorators/withGrid.ts +++ b/addons/backgrounds/src/decorators/withGrid.ts @@ -1,4 +1,4 @@ -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import deprecate from 'util-deprecate'; import { useMemo, useEffect } from '@storybook/addons'; import type { AnyFramework, PartialStoryFn as StoryFunction, StoryContext } from '@storybook/csf'; diff --git a/addons/backgrounds/src/helpers/index.ts b/addons/backgrounds/src/helpers/index.ts index 9b35c8acea8..464cb0d7c02 100644 --- a/addons/backgrounds/src/helpers/index.ts +++ b/addons/backgrounds/src/helpers/index.ts @@ -1,5 +1,5 @@ import global from 'global'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { logger } from '@storybook/client-logger'; diff --git a/addons/docs/blocks.js b/addons/docs/blocks.js index e29483b319c..f329c6d615a 100644 --- a/addons/docs/blocks.js +++ b/addons/docs/blocks.js @@ -1,5 +1,5 @@ import deprecate from 'util-deprecate'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; const warnBlocksImport = deprecate( () => {}, diff --git a/addons/links/src/index.ts b/addons/links/src/index.ts index a41227513de..e9c50d0217c 100644 --- a/addons/links/src/index.ts +++ b/addons/links/src/index.ts @@ -1,4 +1,4 @@ -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; let hasWarned = false; diff --git a/addons/outline/src/outlineCSS.ts b/addons/outline/src/outlineCSS.ts index 94bbeee7357..502ecd884b8 100644 --- a/addons/outline/src/outlineCSS.ts +++ b/addons/outline/src/outlineCSS.ts @@ -1,4 +1,4 @@ -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; /* From pesticide v1.3.0 . @mrmrs . MIT diff --git a/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts b/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts index 85425bae4d7..527a946847c 100644 --- a/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts +++ b/addons/storyshots/storyshots-core/src/Stories2SnapsConverter.ts @@ -1,5 +1,5 @@ import path from 'path'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; const defaultOptions: Stories2SnapsConverterOptions = { snapshotsDirName: '__snapshots__', diff --git a/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts b/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts index 3a8c0d1c10b..d2b13d5e958 100644 --- a/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts +++ b/addons/storyshots/storyshots-core/src/api/integrityTestTemplate.ts @@ -2,7 +2,7 @@ import fs from 'fs'; import glob from 'glob'; import global from 'global'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; const { describe, it } = global; diff --git a/docs/snippets/common/component-story-mdx-dedent.mdx.mdx b/docs/snippets/common/component-story-mdx-dedent.mdx.mdx index d66d3d240e5..9a1df24185b 100644 --- a/docs/snippets/common/component-story-mdx-dedent.mdx.mdx +++ b/docs/snippets/common/component-story-mdx-dedent.mdx.mdx @@ -3,7 +3,7 @@ import { Source } from '@storybook/addon-docs'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; ## With code snippet diff --git a/docs/snippets/common/component-story-mdx-description.mdx.mdx b/docs/snippets/common/component-story-mdx-description.mdx.mdx index 4df1230a41f..94495306e2d 100644 --- a/docs/snippets/common/component-story-mdx-description.mdx.mdx +++ b/docs/snippets/common/component-story-mdx-description.mdx.mdx @@ -3,7 +3,7 @@ import { Description } from '@storybook/addon-docs'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { Button } from './Button'; diff --git a/frameworks/angular/src/builders/utils/build-standalone-errors-handler.ts b/frameworks/angular/src/builders/utils/build-standalone-errors-handler.ts index 126ad4836c2..639927540d9 100644 --- a/frameworks/angular/src/builders/utils/build-standalone-errors-handler.ts +++ b/frameworks/angular/src/builders/utils/build-standalone-errors-handler.ts @@ -1,5 +1,5 @@ import { logger, instance as npmLog } from '@storybook/node-logger'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; export const buildStandaloneErrorHandler = (error: any): any => { // Duplicate code for Standalone error handling diff --git a/frameworks/angular/src/client/angular-beta/StorybookModule.ts b/frameworks/angular/src/client/angular-beta/StorybookModule.ts index cebbb992938..ab98bc7fb37 100644 --- a/frameworks/angular/src/client/angular-beta/StorybookModule.ts +++ b/frameworks/angular/src/client/angular-beta/StorybookModule.ts @@ -1,6 +1,6 @@ import { NgModule, Type } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { Subject } from 'rxjs'; import deprecate from 'util-deprecate'; diff --git a/frameworks/angular/src/server/framework-preset-angular-cli.ts b/frameworks/angular/src/server/framework-preset-angular-cli.ts index 73ec00afd42..584b8607482 100644 --- a/frameworks/angular/src/server/framework-preset-angular-cli.ts +++ b/frameworks/angular/src/server/framework-preset-angular-cli.ts @@ -4,7 +4,7 @@ import { logger } from '@storybook/node-logger'; import { targetFromTargetString, BuilderContext, Target } from '@angular-devkit/architect'; import { sync as findUpSync } from 'find-up'; import semver from '@storybook/semver'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { logging, JsonObject } from '@angular-devkit/core'; import { moduleIsAvailable } from './utils/module-is-available'; diff --git a/frameworks/ember/src/client/preview/render.ts b/frameworks/ember/src/client/preview/render.ts index 77dda1b3d5f..6f0318f4259 100644 --- a/frameworks/ember/src/client/preview/render.ts +++ b/frameworks/ember/src/client/preview/render.ts @@ -1,5 +1,5 @@ import global from 'global'; -import dedent from 'ts-dedent'; +import { dedent } from 'ts-dedent'; import { RenderContext } from '@storybook/store'; import { OptionsArgs, EmberFramework } from './types'; diff --git a/frameworks/svelte-webpack5/templates/PreviewRender.svelte b/frameworks/svelte-webpack5/templates/PreviewRender.svelte index 40c027d6c80..84fe3707a42 100644 --- a/frameworks/svelte-webpack5/templates/PreviewRender.svelte +++ b/frameworks/svelte-webpack5/templates/PreviewRender.svelte @@ -1,6 +1,6 @@