@cappa/plugin-storybook 0.0.23 → 0.0.25
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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +16 -0
- package/dist/index.js +18 -3
- package/dist/index.mjs +18 -3
- package/package.json +2 -2
- package/src/cappa/util.ts +18 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @cappa/plugin-storybook@0.0.
|
|
3
|
+
> @cappa/plugin-storybook@0.0.24 build /home/tim/code/work/cappa/packages/plugins/plugin-storybook
|
|
4
4
|
> tsup
|
|
5
5
|
|
|
6
6
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
[34mESM[39m Build start
|
|
26
26
|
[34mCLI[39m Cleaning output folder
|
|
27
27
|
[34mESM[39m Build start
|
|
28
|
-
[32mESM[39m [1mdist/browser.mjs [22m[32m138.00 B[39m
|
|
29
|
-
[32mESM[39m ⚡️ Build success in 7ms
|
|
30
28
|
[32mESM[39m [1mdist/preview.mjs [22m[32m1.34 KB[39m
|
|
31
29
|
[32mESM[39m ⚡️ Build success in 7ms
|
|
32
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m7.
|
|
30
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m7.61 KB[39m
|
|
33
31
|
[32mESM[39m ⚡️ Build success in 9ms
|
|
34
|
-
[
|
|
32
|
+
[32mESM[39m [1mdist/browser.mjs [22m[32m138.00 B[39m
|
|
33
|
+
[32mESM[39m ⚡️ Build success in 6ms
|
|
34
|
+
[32mCJS[39m [1mdist/index.js [22m[32m8.96 KB[39m
|
|
35
35
|
[32mCJS[39m ⚡️ Build success in 10ms
|
|
36
36
|
DTS Build start
|
|
37
|
-
DTS ⚡️ Build success in
|
|
37
|
+
DTS ⚡️ Build success in 826ms
|
|
38
38
|
DTS dist/index.d.ts 593.00 B
|
|
39
39
|
DTS dist/index.d.mts 593.00 B
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @cappa/plugin-storybook
|
|
2
2
|
|
|
3
|
+
## 0.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e949088: Improve ui freezing styles
|
|
8
|
+
- Updated dependencies [e949088]
|
|
9
|
+
- @cappa/core@0.0.25
|
|
10
|
+
|
|
11
|
+
## 0.0.24
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 4e109c5: Fix browsers path discovery
|
|
16
|
+
- Updated dependencies [4e109c5]
|
|
17
|
+
- @cappa/core@0.0.24
|
|
18
|
+
|
|
3
19
|
## 0.0.23
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -39,10 +39,25 @@ module.exports = __toCommonJS(index_exports);
|
|
|
39
39
|
var freezeUI = async (page) => {
|
|
40
40
|
await page.addStyleTag({
|
|
41
41
|
content: `
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
*, *::before, *::after {
|
|
43
|
+
-moz-animation: none !important;
|
|
44
|
+
-moz-transition: none !important;
|
|
45
|
+
transition: none !important;
|
|
46
|
+
animation: none !important;
|
|
47
|
+
}
|
|
48
|
+
*, input, textarea { caret-color: transparent !important }
|
|
49
|
+
*:focus { outline: none !important }
|
|
50
|
+
*:focus-visible { outline: none !important }
|
|
51
|
+
*:focus-within { outline: none !important }
|
|
52
|
+
* { text-rendering: optimizeLegibility !important }
|
|
53
|
+
::-webkit-scrollbar { display: none !important }
|
|
45
54
|
html { scroll-behavior: auto !important }
|
|
55
|
+
svg, svg * {
|
|
56
|
+
shape-rendering: crispEdges !important;
|
|
57
|
+
text-rendering: geometricPrecision !important;
|
|
58
|
+
vector-effect: non-scaling-stroke !important;
|
|
59
|
+
}
|
|
60
|
+
img { image-rendering: crisp-edges !important }
|
|
46
61
|
`
|
|
47
62
|
});
|
|
48
63
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -9,10 +9,25 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
9
9
|
var freezeUI = async (page) => {
|
|
10
10
|
await page.addStyleTag({
|
|
11
11
|
content: `
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
*, *::before, *::after {
|
|
13
|
+
-moz-animation: none !important;
|
|
14
|
+
-moz-transition: none !important;
|
|
15
|
+
transition: none !important;
|
|
16
|
+
animation: none !important;
|
|
17
|
+
}
|
|
18
|
+
*, input, textarea { caret-color: transparent !important }
|
|
19
|
+
*:focus { outline: none !important }
|
|
20
|
+
*:focus-visible { outline: none !important }
|
|
21
|
+
*:focus-within { outline: none !important }
|
|
22
|
+
* { text-rendering: optimizeLegibility !important }
|
|
23
|
+
::-webkit-scrollbar { display: none !important }
|
|
15
24
|
html { scroll-behavior: auto !important }
|
|
25
|
+
svg, svg * {
|
|
26
|
+
shape-rendering: crispEdges !important;
|
|
27
|
+
text-rendering: geometricPrecision !important;
|
|
28
|
+
vector-effect: non-scaling-stroke !important;
|
|
29
|
+
}
|
|
30
|
+
img { image-rendering: crisp-edges !important }
|
|
16
31
|
`
|
|
17
32
|
});
|
|
18
33
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cappa/plugin-storybook",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Storybook plugin for Cappa - takes screenshots of Storybook stories",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@swc/core": "^1.13.5",
|
|
32
32
|
"chalk": "^5.6.2",
|
|
33
33
|
"storybook": "^9.1.5",
|
|
34
|
-
"@cappa/core": "0.0.
|
|
34
|
+
"@cappa/core": "0.0.25"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@vitest/coverage-v8": "3.2.4",
|
package/src/cappa/util.ts
CHANGED
|
@@ -8,10 +8,25 @@ import type { StorybookStory } from "./plugin";
|
|
|
8
8
|
export const freezeUI = async (page: Page) => {
|
|
9
9
|
await page.addStyleTag({
|
|
10
10
|
content: `
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
*, *::before, *::after {
|
|
12
|
+
-moz-animation: none !important;
|
|
13
|
+
-moz-transition: none !important;
|
|
14
|
+
transition: none !important;
|
|
15
|
+
animation: none !important;
|
|
16
|
+
}
|
|
17
|
+
*, input, textarea { caret-color: transparent !important }
|
|
18
|
+
*:focus { outline: none !important }
|
|
19
|
+
*:focus-visible { outline: none !important }
|
|
20
|
+
*:focus-within { outline: none !important }
|
|
21
|
+
* { text-rendering: optimizeLegibility !important }
|
|
22
|
+
::-webkit-scrollbar { display: none !important }
|
|
14
23
|
html { scroll-behavior: auto !important }
|
|
24
|
+
svg, svg * {
|
|
25
|
+
shape-rendering: crispEdges !important;
|
|
26
|
+
text-rendering: geometricPrecision !important;
|
|
27
|
+
vector-effect: non-scaling-stroke !important;
|
|
28
|
+
}
|
|
29
|
+
img { image-rendering: crisp-edges !important }
|
|
15
30
|
`,
|
|
16
31
|
});
|
|
17
32
|
};
|