@storybook/cli 0.0.0-pr-29643-sha-91c07f18 → 0.0.0-pr-29643-sha-82899600

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -119,15 +119,15 @@ ${import_picocolors5.default.cyan("npx storybook doctor")}`;logger2.info(),found
119
119
 
120
120
  ${import_picocolors6.default.gray("beforeAll(annotations.beforeAll);")}
121
121
 
122
- For more information, please refer to the component tests documentation:
123
- ${import_picocolors6.default.cyan("https://storybook.js.org/docs/writing-tests/component-testing")}
122
+ For more information, please refer to the addon test documentation:
123
+ ${import_picocolors6.default.cyan("https://storybook.js.org/docs/writing-tests/addon-test")}
124
124
  `;let fileExtension=import_path.default.extname(setupFile);return import_ts_dedent4.dedent`
125
125
  We have detected that you have addon-a11y and experimental-addon-test installed.
126
126
 
127
127
  ${import_picocolors6.default.cyan("@storybook/addon-a11y")} integrates now with ${import_picocolors6.default.cyan("@storybook/experimental-addon-test")} to provide automatic accessibility checks for your stories, powered by axe and Vitest.
128
128
 
129
129
  We need to update your .storybook/vitest.setup${fileExtension} file for smooth integration.
130
- `},async run({result}){let{setupFile,transformedSetupCode}=result;!setupFile||!transformedSetupCode||(0,import_fs.writeFileSync)(setupFile,transformedSetupCode,"utf8")}};function transformSetupFile(setupFile){let source=(0,import_fs.readFileSync)(setupFile,"utf8"),j=jscodeshift.withParser("ts"),root=j(source),importDeclaration=j.importDeclaration([j.importNamespaceSpecifier(j.identifier("a11yAddonAnnotations"))],j.literal("@storybook/addon-a11y/preview"));return root.find(j.CallExpression,{callee:{type:"Identifier",name:"setProjectAnnotations"}}).find(j.ArrayExpression).forEach(p=>{p.value.elements.push(j.identifier("a11yAddonAnnotations"))}),root.get().node.program.body.unshift(importDeclaration),root.toSource()}var import_picocolors7=__toESM(require_picocolors(),1),import_ts_dedent5=require("ts-dedent");var addonPostCSS={id:"addon-postcss",versionRange:["*","*"],promptType:"notification",async check({mainConfig}){return!getAddonNames(mainConfig).find(addon=>addon.includes("@storybook/addon-postcss"))?null:{hasAddonPostcss:!0}},prompt(){return import_ts_dedent5.dedent`
130
+ `},async run({result}){let{setupFile,transformedSetupCode}=result;!setupFile||!transformedSetupCode||(0,import_fs.writeFileSync)(setupFile,transformedSetupCode,"utf8")}};function transformSetupFile(setupFile){let source=(0,import_fs.readFileSync)(setupFile,"utf8"),j=jscodeshift.withParser("ts"),root=j(source),importDeclaration=j.importDeclaration([j.importNamespaceSpecifier(j.identifier("a11yAddonAnnotations"))],j.literal("@storybook/addon-a11y/preview")),setProjectAnnotationsCall=root.find(j.CallExpression,{callee:{type:"Identifier",name:"setProjectAnnotations"}});if(setProjectAnnotationsCall.length===0)throw new Error("Could not find setProjectAnnotations call in vitest.setup file");return setProjectAnnotationsCall.find(j.ArrayExpression).forEach(p=>{p.value.elements.push(j.identifier("a11yAddonAnnotations"))}),root.get().node.program.body.unshift(importDeclaration),root.toSource()}var import_picocolors7=__toESM(require_picocolors(),1),import_ts_dedent5=require("ts-dedent");var addonPostCSS={id:"addon-postcss",versionRange:["*","*"],promptType:"notification",async check({mainConfig}){return!getAddonNames(mainConfig).find(addon=>addon.includes("@storybook/addon-postcss"))?null:{hasAddonPostcss:!0}},prompt(){return import_ts_dedent5.dedent`
131
131
  ${import_picocolors7.default.bold("Attention")}: We've detected that you're using the following package which is incompatible with Storybook 8 and beyond:
132
132
 
133
133
  - ${import_picocolors7.default.cyan("@storybook/addon-postcss")}
package/dist/bin/index.js CHANGED
@@ -104,15 +104,15 @@ ${import_picocolors5.default.cyan("npx storybook doctor")}`;logger2.info(),found
104
104
 
105
105
  ${import_picocolors6.default.gray("beforeAll(annotations.beforeAll);")}
106
106
 
107
- For more information, please refer to the component tests documentation:
108
- ${import_picocolors6.default.cyan("https://storybook.js.org/docs/writing-tests/component-testing")}
107
+ For more information, please refer to the addon test documentation:
108
+ ${import_picocolors6.default.cyan("https://storybook.js.org/docs/writing-tests/addon-test")}
109
109
  `;let fileExtension=path.extname(setupFile);return dedent`
110
110
  We have detected that you have addon-a11y and experimental-addon-test installed.
111
111
 
112
112
  ${import_picocolors6.default.cyan("@storybook/addon-a11y")} integrates now with ${import_picocolors6.default.cyan("@storybook/experimental-addon-test")} to provide automatic accessibility checks for your stories, powered by axe and Vitest.
113
113
 
114
114
  We need to update your .storybook/vitest.setup${fileExtension} file for smooth integration.
115
- `},async run({result}){let{setupFile,transformedSetupCode}=result;!setupFile||!transformedSetupCode||writeFileSync(setupFile,transformedSetupCode,"utf8");}};function transformSetupFile(setupFile){let source=readFileSync(setupFile,"utf8"),j=jscodeshift.withParser("ts"),root=j(source),importDeclaration=j.importDeclaration([j.importNamespaceSpecifier(j.identifier("a11yAddonAnnotations"))],j.literal("@storybook/addon-a11y/preview"));return root.find(j.CallExpression,{callee:{type:"Identifier",name:"setProjectAnnotations"}}).find(j.ArrayExpression).forEach(p=>{p.value.elements.push(j.identifier("a11yAddonAnnotations"));}),root.get().node.program.body.unshift(importDeclaration),root.toSource()}var import_picocolors7=__toESM(require_picocolors(),1);var addonPostCSS={id:"addon-postcss",versionRange:["*","*"],promptType:"notification",async check({mainConfig}){return !getAddonNames(mainConfig).find(addon=>addon.includes("@storybook/addon-postcss"))?null:{hasAddonPostcss:!0}},prompt(){return dedent`
115
+ `},async run({result}){let{setupFile,transformedSetupCode}=result;!setupFile||!transformedSetupCode||writeFileSync(setupFile,transformedSetupCode,"utf8");}};function transformSetupFile(setupFile){let source=readFileSync(setupFile,"utf8"),j=jscodeshift.withParser("ts"),root=j(source),importDeclaration=j.importDeclaration([j.importNamespaceSpecifier(j.identifier("a11yAddonAnnotations"))],j.literal("@storybook/addon-a11y/preview")),setProjectAnnotationsCall=root.find(j.CallExpression,{callee:{type:"Identifier",name:"setProjectAnnotations"}});if(setProjectAnnotationsCall.length===0)throw new Error("Could not find setProjectAnnotations call in vitest.setup file");return setProjectAnnotationsCall.find(j.ArrayExpression).forEach(p=>{p.value.elements.push(j.identifier("a11yAddonAnnotations"));}),root.get().node.program.body.unshift(importDeclaration),root.toSource()}var import_picocolors7=__toESM(require_picocolors(),1);var addonPostCSS={id:"addon-postcss",versionRange:["*","*"],promptType:"notification",async check({mainConfig}){return !getAddonNames(mainConfig).find(addon=>addon.includes("@storybook/addon-postcss"))?null:{hasAddonPostcss:!0}},prompt(){return dedent`
116
116
  ${import_picocolors7.default.bold("Attention")}: We've detected that you're using the following package which is incompatible with Storybook 8 and beyond:
117
117
 
118
118
  - ${import_picocolors7.default.cyan("@storybook/addon-postcss")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/cli",
3
- "version": "0.0.0-pr-29643-sha-91c07f18",
3
+ "version": "0.0.0-pr-29643-sha-82899600",
4
4
  "description": "Storybook CLI",
5
5
  "keywords": [
6
6
  "storybook"
@@ -42,10 +42,10 @@
42
42
  "dependencies": {
43
43
  "@babel/core": "^7.24.4",
44
44
  "@babel/types": "^7.24.0",
45
- "@storybook/codemod": "0.0.0-pr-29643-sha-91c07f18",
45
+ "@storybook/codemod": "0.0.0-pr-29643-sha-82899600",
46
46
  "@types/semver": "^7.3.4",
47
47
  "commander": "^12.1.0",
48
- "create-storybook": "0.0.0-pr-29643-sha-91c07f18",
48
+ "create-storybook": "0.0.0-pr-29643-sha-82899600",
49
49
  "cross-spawn": "^7.0.3",
50
50
  "envinfo": "^7.7.3",
51
51
  "fd-package-json": "^1.2.0",
@@ -57,7 +57,7 @@
57
57
  "leven": "^3.1.0",
58
58
  "prompts": "^2.4.0",
59
59
  "semver": "^7.3.7",
60
- "storybook": "0.0.0-pr-29643-sha-91c07f18",
60
+ "storybook": "0.0.0-pr-29643-sha-82899600",
61
61
  "tiny-invariant": "^1.3.1",
62
62
  "ts-dedent": "^2.0.0"
63
63
  },