@cappa/plugin-storybook 0.0.24 → 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.
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- > @cappa/plugin-storybook@0.0.23 build /home/tim/code/work/cappa/packages/plugins/plugin-storybook
3
+ > @cappa/plugin-storybook@0.0.24 build /home/tim/code/work/cappa/packages/plugins/plugin-storybook
4
4
  > tsup
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -25,15 +25,15 @@
25
25
  ESM Build start
26
26
  CLI Cleaning output folder
27
27
  ESM Build start
28
- ESM dist/browser.mjs 138.00 B
29
- ESM ⚡️ Build success in 10ms
30
28
  ESM dist/preview.mjs 1.34 KB
31
- ESM ⚡️ Build success in 11ms
32
- CJS dist/index.js 8.43 KB
33
- CJS ⚡️ Build success in 15ms
34
- ESM dist/index.mjs 7.07 KB
35
- ESM ⚡️ Build success in 15ms
29
+ ESM ⚡️ Build success in 7ms
30
+ ESM dist/index.mjs 7.61 KB
31
+ ESM ⚡️ Build success in 9ms
32
+ ESM dist/browser.mjs 138.00 B
33
+ ESM ⚡️ Build success in 6ms
34
+ CJS dist/index.js 8.96 KB
35
+ CJS ⚡️ Build success in 10ms
36
36
  DTS Build start
37
- DTS ⚡️ Build success in 936ms
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,13 @@
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
+
3
11
  ## 0.0.24
4
12
 
5
13
  ### 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
- * { transition: none !important; animation: none !important }
43
- * { caret-color: transparent !important }
44
- ::-webkit-scrollbar { display: none }
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
- * { transition: none !important; animation: none !important }
13
- * { caret-color: transparent !important }
14
- ::-webkit-scrollbar { display: none }
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.24",
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.24"
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
- * { transition: none !important; animation: none !important }
12
- * { caret-color: transparent !important }
13
- ::-webkit-scrollbar { display: none }
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
  };