storybook-addon-vis 0.18.8 → 0.19.0

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.
@@ -17,7 +17,6 @@ declare function storybookVis<M extends ComparisonMethod>(options?: Omit<VisOpti
17
17
  hasImageSnapshot: vitest_node.BrowserCommand<[taskId: string, snapshotId: string | undefined, isAutoSnapshot: boolean]>;
18
18
  matchImageSnapshot: vitest_node.BrowserCommand<[taskId: string, subject: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
19
19
  prepareImageSnapshotComparison: vitest_node.BrowserCommand<[taskId: string, snapshotId: string, isAutoSnapshot: boolean, options?: vitest_plugin_vis_commands.MatchImageSnapshotOptions | undefined]>;
20
- writeImageSnapshot: vitest_node.BrowserCommand<[relativeFilePath: string, imageBase64: string]>;
21
20
  };
22
21
  };
23
22
  setupFiles: string[];
@@ -1,5 +1,6 @@
1
1
  import * as vitest_plugin_vis_setup from 'vitest-plugin-vis/setup';
2
2
  import { SnapshotMeta } from 'vitest-plugin-vis';
3
+ export { SnapshotMeta, setAutoSnapshotOptions } from 'vitest-plugin-vis';
3
4
 
4
5
  declare const vis: vitest_plugin_vis_setup.VisClientConfigurator<SnapshotMeta<any> & {
5
6
  tags: string[];
@@ -1,5 +1,6 @@
1
1
  import { commands } from './chunk-KMYH24SZ.js';
2
2
  import { createVis } from 'vitest-plugin-vis/setup';
3
+ export { setAutoSnapshotOptions } from 'vitest-plugin-vis';
3
4
 
4
5
  var vis = createVis(commands);
5
6
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/vitest-setup.ts"],"names":[],"mappings":";;;AAKa,IAAA,GAAA,GAAM,UAAkD,QAAQ","file":"vitest-setup.js","sourcesContent":["import type { SnapshotMeta } from 'vitest-plugin-vis'\n// `storybook-addon-vis/vitest-setup` provides code needed in `vitest.setup.ts`.\nimport { createVis } from 'vitest-plugin-vis/setup'\nimport { commands } from './client/vitest_proxy.ts'\n\nexport const vis = createVis<SnapshotMeta<any> & { tags: string[] }>(commands)\n"]}
1
+ {"version":3,"sources":["../src/vitest-setup.ts"],"names":[],"mappings":";;;;AAKa,IAAA,GAAA,GAAM,UAAkD,QAAQ","file":"vitest-setup.js","sourcesContent":["// `storybook-addon-vis/vitest-setup` provides code needed in `vitest.setup.ts`.\nimport type { SnapshotMeta } from 'vitest-plugin-vis'\nimport { createVis } from 'vitest-plugin-vis/setup'\nimport { commands } from './client/vitest_proxy.ts'\n\nexport const vis = createVis<SnapshotMeta<any> & { tags: string[] }>(commands)\nexport { setAutoSnapshotOptions, type SnapshotMeta } from 'vitest-plugin-vis'\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-vis",
3
- "version": "0.18.8",
3
+ "version": "0.19.0",
4
4
  "description": "Storybook Vitest visual testing addon",
5
5
  "keywords": [
6
6
  "image-snapshot",
@@ -58,7 +58,7 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "type-plus": "8.0.0-beta.7",
61
- "vitest-plugin-vis": "2.3.3"
61
+ "vitest-plugin-vis": "2.4.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@storybook/addon-essentials": "^8.6.3",
@@ -132,6 +132,7 @@
132
132
  "build": "tsup",
133
133
  "build:sb": "storybook build",
134
134
  "clean": "rimraf coverage dist esm *.tsbuildinfo vitest.*.timestamp*",
135
+ "clean:vis:local": "rimraf __vis__/local",
135
136
  "cov": "vitest run --coverage",
136
137
  "coverage": "vitest run --coverage",
137
138
  "dev": "run-p build:watch w",
@@ -1,6 +1,7 @@
1
- import type { SnapshotMeta } from 'vitest-plugin-vis'
2
1
  // `storybook-addon-vis/vitest-setup` provides code needed in `vitest.setup.ts`.
2
+ import type { SnapshotMeta } from 'vitest-plugin-vis'
3
3
  import { createVis } from 'vitest-plugin-vis/setup'
4
4
  import { commands } from './client/vitest_proxy.ts'
5
5
 
6
6
  export const vis = createVis<SnapshotMeta<any> & { tags: string[] }>(commands)
7
+ export { setAutoSnapshotOptions, type SnapshotMeta } from 'vitest-plugin-vis'