storybook-addon-vis 0.0.3 → 0.0.4

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.
package/dist/index.js CHANGED
@@ -1,5 +1,2 @@
1
- function t(e){return {snapshot:e}}function r(e){return {snapshot:e}}
2
-
3
- export { r as defineSnapshotParam, t as defineSnapshotProjectParam };
4
- //# sourceMappingURL=index.js.map
1
+ function t(e){return {snapshot:e}}function r(e){return {snapshot:e}}export{r as defineSnapshotParam,t as defineSnapshotProjectParam};//# sourceMappingURL=index.js.map
5
2
  //# sourceMappingURL=index.js.map
package/dist/manager.js CHANGED
@@ -1,5 +1,2 @@
1
- var e={};
2
-
3
- export { e as default };
4
- //# sourceMappingURL=manager.js.map
1
+ var e={};export{e as default};//# sourceMappingURL=manager.js.map
5
2
  //# sourceMappingURL=manager.js.map
package/dist/preset.cjs CHANGED
@@ -1,7 +1,2 @@
1
- 'use strict';
2
-
3
- var e={};
4
-
5
- module.exports = e;
6
- //# sourceMappingURL=preset.cjs.map
1
+ 'use strict';var e={};module.exports=e;//# sourceMappingURL=preset.cjs.map
7
2
  //# sourceMappingURL=preset.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/preset.ts"],"names":["preset_default"],"mappings":";;AAAA,IAAOA,EAAQ","file":"preset.cjs","sourcesContent":["export default {}\n"]}
1
+ {"version":3,"sources":["../src/preset.ts"],"names":["preset_default"],"mappings":"aAAA,IAAOA,EAAQ","file":"preset.cjs","sourcesContent":["export default {}\n"]}
package/dist/preview.js CHANGED
@@ -1,5 +1,2 @@
1
- var e={};
2
-
3
- export { e as default };
4
- //# sourceMappingURL=preview.js.map
1
+ var e={};export{e as default};//# sourceMappingURL=preview.js.map
5
2
  //# sourceMappingURL=preview.js.map
@@ -1,8 +1,2 @@
1
- import { stat, copyFile } from 'node:fs/promises';
2
- import { join, dirname } from 'pathe';
3
-
4
- var i=async({testPath:o,provider:r},t)=>{if(r.name==="playwright")return stat(join(dirname(o),t)).then(e=>e.isDirectory()).catch(()=>!1);throw new Error(`provider ${r.name} is not supported`)};var s=async({testPath:o,provider:r},t,e)=>{if(r.name==="playwright")return copyFile(join(dirname(o),t),join(dirname(o),e));throw new Error(`provider ${r.name} is not supported`)};function x(){return {name:"vitest:storybook-vis",config(){return {test:{browser:{name:void 0,commands:{existDir:i,copyFile:s}}}}}}}
5
-
6
- export { x as storybookVis };
7
- //# sourceMappingURL=vitest-plugin.js.map
1
+ import {stat,copyFile}from'node:fs/promises';import {join,dirname}from'pathe';var i=async({testPath:o,provider:r},t)=>{if(r.name==="playwright")return stat(join(dirname(o),t)).then(e=>e.isDirectory()).catch(()=>!1);throw new Error(`provider ${r.name} is not supported`)};var s=async({testPath:o,provider:r},t,e)=>{if(r.name==="playwright")return copyFile(join(dirname(o),t),join(dirname(o),e));throw new Error(`provider ${r.name} is not supported`)};function x(){return {name:"vitest:storybook-vis",config(){return {test:{browser:{name:void 0,commands:{existDir:i,copyFile:s}}}}}}}export{x as storybookVis};//# sourceMappingURL=vitest-plugin.js.map
8
2
  //# sourceMappingURL=vitest-plugin.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vitest-plugin/commands/exist_dir.ts","../src/vitest-plugin/commands/copy_file.ts","../src/vitest-plugin.ts"],"names":["existDir","testPath","provider","path","stat","join","dirname","s","copyFile","src","dest","copyFileFs","storybookVis"],"mappings":";;;AAIO,IAAMA,CAA2C,CAAA,MAAO,CAAE,QAAA,CAAAC,CAAU,CAAA,QAAA,CAAAC,CAAS,CAAA,CAAGC,CAAS,GAAA,CAC/F,GAAID,CAAAA,CAAS,IAAS,GAAA,YAAA,CACrB,OAAOE,IAAAA,CAAKC,IAAKC,CAAAA,OAAAA,CAAQL,CAAQ,CAAGE,CAAAA,CAAI,CAAC,CAAA,CACvC,IAAMI,CAAAA,CAAAA,EAAMA,CAAE,CAAA,WAAA,EAAa,CAAA,CAC3B,KAAM,CAAA,IAAM,CAAK,CAAA,CAAA,CAGpB,MAAM,IAAI,MAAM,CAAYL,SAAAA,EAAAA,CAAAA,CAAS,IAAI,CAAA,iBAAA,CAAmB,CAC7D,CAAA,CCRO,IAAMM,CAAwD,CAAA,MAAO,CAAE,QAAA,CAAAP,CAAU,CAAA,QAAA,CAAAC,CAAS,CAAA,CAAGO,CAAKC,CAAAA,CAAAA,GAAS,CACjH,GAAIR,CAAS,CAAA,IAAA,GAAS,YACrB,CAAA,OAAOS,QAAWN,CAAAA,IAAAA,CAAKC,OAAQL,CAAAA,CAAQ,CAAGQ,CAAAA,CAAG,CAAGJ,CAAAA,IAAAA,CAAKC,OAAQL,CAAAA,CAAQ,CAAGS,CAAAA,CAAI,CAAC,CAAA,CAG9E,MAAM,IAAI,MAAM,CAAYR,SAAAA,EAAAA,CAAAA,CAAS,IAAI,CAAA,iBAAA,CAAmB,CAC7D,CAAA,CCLO,SAASU,CAAAA,EAAuB,CACtC,OAAO,CACN,IAAA,CAAM,sBACN,CAAA,MAAA,EAAS,CACR,OAAO,CACN,IAAM,CAAA,CACL,OAAS,CAAA,CACR,IAAM,CAAA,KAAA,CAAA,CACN,QAAU,CAAA,CACT,QAAAZ,CAAAA,CAAAA,CACA,QAAAQ,CAAAA,CACD,CACD,CACD,CACD,CACD,CACD,CACD","file":"vitest-plugin.js","sourcesContent":["import { stat } from 'node:fs/promises'\nimport { dirname, join } from 'pathe'\nimport type { BrowserCommand } from 'vitest/node'\n\nexport const existDir: BrowserCommand<[path: string]> = async ({ testPath, provider }, path) => {\n\tif (provider.name === 'playwright') {\n\t\treturn stat(join(dirname(testPath), path))\n\t\t\t.then((s) => s.isDirectory())\n\t\t\t.catch(() => false)\n\t}\n\n\tthrow new Error(`provider ${provider.name} is not supported`)\n}\n","import { copyFile as copyFileFs } from 'node:fs/promises'\nimport { dirname, join } from 'pathe'\nimport type { BrowserCommand } from 'vitest/node'\n\nexport const copyFile: BrowserCommand<[src: string, dest: string]> = async ({ testPath, provider }, src, dest) => {\n\tif (provider.name === 'playwright') {\n\t\treturn copyFileFs(join(dirname(testPath), src), join(dirname(testPath), dest))\n\t}\n\n\tthrow new Error(`provider ${provider.name} is not supported`)\n}\n","import type { Plugin } from 'vitest/config'\nimport { existDir } from './vitest-plugin/commands/exist_dir.js'\nimport './vitest-plugin/types.js'\nimport { copyFile } from './vitest-plugin/commands/copy_file.js'\n\nexport function storybookVis(): Plugin {\n\treturn {\n\t\tname: 'vitest:storybook-vis',\n\t\tconfig() {\n\t\t\treturn {\n\t\t\t\ttest: {\n\t\t\t\t\tbrowser: {\n\t\t\t\t\t\tname: undefined,\n\t\t\t\t\t\tcommands: {\n\t\t\t\t\t\t\texistDir,\n\t\t\t\t\t\t\tcopyFile,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t}\n}\n"]}
1
+ {"version":3,"sources":["../src/vitest-plugin/commands/exist_dir.ts","../src/vitest-plugin/commands/copy_file.ts","../src/vitest-plugin.ts"],"names":["existDir","testPath","provider","path","stat","join","dirname","s","copyFile","src","dest","copyFileFs","storybookVis"],"mappings":"8EAIO,IAAMA,CAA2C,CAAA,MAAO,CAAE,QAAA,CAAAC,CAAU,CAAA,QAAA,CAAAC,CAAS,CAAA,CAAGC,CAAS,GAAA,CAC/F,GAAID,CAAAA,CAAS,IAAS,GAAA,YAAA,CACrB,OAAOE,IAAAA,CAAKC,IAAKC,CAAAA,OAAAA,CAAQL,CAAQ,CAAGE,CAAAA,CAAI,CAAC,CAAA,CACvC,IAAMI,CAAAA,CAAAA,EAAMA,CAAE,CAAA,WAAA,EAAa,CAAA,CAC3B,KAAM,CAAA,IAAM,CAAK,CAAA,CAAA,CAGpB,MAAM,IAAI,MAAM,CAAYL,SAAAA,EAAAA,CAAAA,CAAS,IAAI,CAAA,iBAAA,CAAmB,CAC7D,CAAA,CCRO,IAAMM,CAAwD,CAAA,MAAO,CAAE,QAAA,CAAAP,CAAU,CAAA,QAAA,CAAAC,CAAS,CAAA,CAAGO,CAAKC,CAAAA,CAAAA,GAAS,CACjH,GAAIR,CAAS,CAAA,IAAA,GAAS,YACrB,CAAA,OAAOS,QAAWN,CAAAA,IAAAA,CAAKC,OAAQL,CAAAA,CAAQ,CAAGQ,CAAAA,CAAG,CAAGJ,CAAAA,IAAAA,CAAKC,OAAQL,CAAAA,CAAQ,CAAGS,CAAAA,CAAI,CAAC,CAAA,CAG9E,MAAM,IAAI,MAAM,CAAYR,SAAAA,EAAAA,CAAAA,CAAS,IAAI,CAAA,iBAAA,CAAmB,CAC7D,CAAA,CCLO,SAASU,CAAAA,EAAuB,CACtC,OAAO,CACN,IAAA,CAAM,sBACN,CAAA,MAAA,EAAS,CACR,OAAO,CACN,IAAM,CAAA,CACL,OAAS,CAAA,CACR,IAAM,CAAA,KAAA,CAAA,CACN,QAAU,CAAA,CACT,QAAAZ,CAAAA,CAAAA,CACA,QAAAQ,CAAAA,CACD,CACD,CACD,CACD,CACD,CACD,CACD","file":"vitest-plugin.js","sourcesContent":["import { stat } from 'node:fs/promises'\nimport { dirname, join } from 'pathe'\nimport type { BrowserCommand } from 'vitest/node'\n\nexport const existDir: BrowserCommand<[path: string]> = async ({ testPath, provider }, path) => {\n\tif (provider.name === 'playwright') {\n\t\treturn stat(join(dirname(testPath), path))\n\t\t\t.then((s) => s.isDirectory())\n\t\t\t.catch(() => false)\n\t}\n\n\tthrow new Error(`provider ${provider.name} is not supported`)\n}\n","import { copyFile as copyFileFs } from 'node:fs/promises'\nimport { dirname, join } from 'pathe'\nimport type { BrowserCommand } from 'vitest/node'\n\nexport const copyFile: BrowserCommand<[src: string, dest: string]> = async ({ testPath, provider }, src, dest) => {\n\tif (provider.name === 'playwright') {\n\t\treturn copyFileFs(join(dirname(testPath), src), join(dirname(testPath), dest))\n\t}\n\n\tthrow new Error(`provider ${provider.name} is not supported`)\n}\n","import type { Plugin } from 'vitest/config'\nimport { existDir } from './vitest-plugin/commands/exist_dir.js'\nimport './vitest-plugin/types.js'\nimport { copyFile } from './vitest-plugin/commands/copy_file.js'\n\nexport function storybookVis(): Plugin {\n\treturn {\n\t\tname: 'vitest:storybook-vis',\n\t\tconfig() {\n\t\t\treturn {\n\t\t\t\ttest: {\n\t\t\t\t\tbrowser: {\n\t\t\t\t\t\tname: undefined,\n\t\t\t\t\t\tcommands: {\n\t\t\t\t\t\t\texistDir,\n\t\t\t\t\t\t\tcopyFile,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t}\n}\n"]}