storybook-addon-vis 0.0.2

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/manager.js ADDED
@@ -0,0 +1 @@
1
+ import './dist/manager'
package/package.json ADDED
@@ -0,0 +1,137 @@
1
+ {
2
+ "name": "storybook-addon-vis",
3
+ "version": "0.0.2",
4
+ "description": "Storybook Vitest Image Snapshot addon",
5
+ "keywords": [
6
+ "image-snapshot",
7
+ "storybook-addons",
8
+ "vitest",
9
+ "visual-test"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/repobuddy/storybook-image-snapshot"
14
+ },
15
+ "license": "MIT",
16
+ "author": {
17
+ "name": "Homa Wong",
18
+ "email": "homawong@gmail.com",
19
+ "url": "https://github.com/unional"
20
+ },
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "import": "./dist/index.js",
26
+ "require": "./dist/index.cjs"
27
+ },
28
+ "./preview": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/preview.js",
31
+ "require": "./dist/preview.cjs"
32
+ },
33
+ "./preset": "./dist/preset.cjs",
34
+ "./manager": "./dist/manager.js",
35
+ "./vitest-setup": "./dist/vitest-setup.js",
36
+ "./vitest-plugin": "./dist/vitest-plugin.js",
37
+ "./package.json": "./package.json"
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "README.md",
42
+ "*.js",
43
+ "*.d.ts"
44
+ ],
45
+ "scripts": {
46
+ "build": "tsup",
47
+ "build-storybook": "storybook build",
48
+ "build:watch": "npm run build -- --watch",
49
+ "check": "biome check",
50
+ "check:fix": "biome check --write",
51
+ "prerelease": "zx scripts/prepublish-checks.js",
52
+ "release": "npm run build && auto shipit",
53
+ "start": "run-p build:watch \"storybook --quiet\"",
54
+ "storybook": "storybook dev -p 6006",
55
+ "test": "vitest"
56
+ },
57
+ "dependencies": {
58
+ "@storybook/icons": "^1.2.10",
59
+ "@types/pixelmatch": "^5.2.6",
60
+ "pathe": "^1.1.2",
61
+ "pixelmatch": "^6.0.0",
62
+ "type-plus": "^8.0.0-beta.6"
63
+ },
64
+ "devDependencies": {
65
+ "@biomejs/biome": "^1.9.4",
66
+ "@changesets/cli": "^2.27.9",
67
+ "@commitlint/cli": "^19.5.0",
68
+ "@commitlint/config-conventional": "^19.5.0",
69
+ "@repobuddy/biome": "^1.7.1",
70
+ "@storybook/addon-essentials": "^8.3.6",
71
+ "@storybook/addon-interactions": "^8.3.6",
72
+ "@storybook/addon-links": "^8.3.6",
73
+ "@storybook/blocks": "^8.3.6",
74
+ "@storybook/experimental-addon-test": "^8.3.6",
75
+ "@storybook/react": "^8.3.6",
76
+ "@storybook/react-vite": "^8.3.6",
77
+ "@storybook/test": "^8.3.6",
78
+ "@types/node": "^18.15.0",
79
+ "@types/react": "^18.2.65",
80
+ "@types/react-dom": "^18.2.21",
81
+ "@vitejs/plugin-react": "^4.2.1",
82
+ "auto": "^11.1.1",
83
+ "boxen": "^7.1.1",
84
+ "dedent": "^1.5.1",
85
+ "husky": "^9.1.6",
86
+ "npm-run-all2": "^7.0.0",
87
+ "playwright": "^1.48.1",
88
+ "prettier": "^3.3.3",
89
+ "prompts": "^2.4.2",
90
+ "react": "^18.2.0",
91
+ "react-dom": "^18.2.0",
92
+ "storybook": "^8.3.6",
93
+ "tsup": "^8.2.4",
94
+ "typescript": "^5.5.4",
95
+ "vite": "^5.3.5",
96
+ "vitest": "^2.1.3",
97
+ "zx": "^7.2.3"
98
+ },
99
+ "peerDependencies": {
100
+ "storybook": "^8.3.0"
101
+ },
102
+ "publishConfig": {
103
+ "access": "public"
104
+ },
105
+ "bundler": {
106
+ "exportEntries": [
107
+ "src/index.ts"
108
+ ],
109
+ "managerEntries": [
110
+ "src/manager.tsx"
111
+ ],
112
+ "previewEntries": [
113
+ "src/preview.ts"
114
+ ],
115
+ "nodeEntries": [
116
+ "src/preset.ts"
117
+ ]
118
+ },
119
+ "overrides": {
120
+ "@types/estree": "^1.0.0"
121
+ },
122
+ "storybook": {
123
+ "displayName": "Image Snapshot integration",
124
+ "supportedFrameworks": [
125
+ "react",
126
+ "vue",
127
+ "angular",
128
+ "web-components",
129
+ "ember",
130
+ "html",
131
+ "svelte",
132
+ "preact",
133
+ "react-native"
134
+ ],
135
+ "icon": "https://user-images.githubusercontent.com/321738/63501763-88dbf600-c4cc-11e9-96cd-94adadc2fd72.png"
136
+ }
137
+ }
package/preset.js ADDED
@@ -0,0 +1,4 @@
1
+ // this file is slightly misleading. It needs to be CJS, and thus in this "type": "module" package it should be named preset.cjs
2
+ // but Storybook won't pick that filename up so we have to name it preset.js instead
3
+
4
+ module.exports = require('./dist/preset.cjs')
package/preview.js ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/preview'