@storybook/addon-highlight 7.0.0-alpha.48 → 7.0.0-alpha.49

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.
@@ -0,0 +1 @@
1
+ var o="storybook/highlight",t="storybookHighlight",H=`${o}/add`,I=`${o}/reset`;export{t as a,H as b,I as c};
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{b as e,c as o}from"./chunk-TYHA7QJZ.mjs";module&&module.hot&&module.hot.decline&&module.hot.decline();var l={};export{e as HIGHLIGHT,o as RESET_HIGHLIGHT,l as default};
1
+ import{b as e,c as o}from"./chunk-3L7URCJV.mjs";module&&module.hot&&module.hot.decline&&module.hot.decline();var d={};export{e as HIGHLIGHT,o as RESET_HIGHLIGHT,d as default};
File without changes
File without changes
@@ -1,7 +1,7 @@
1
- import{a as n,b as h,c as s}from"./chunk-TYHA7QJZ.mjs";import c from"global";import{addons as g}from"@storybook/addons";import{STORY_CHANGED as a}from"@storybook/core-events";var{document:l}=c,p=(e="#FF4785",t="dashed")=>`
1
+ import{a as n,b as h,c as s}from"./chunk-3L7URCJV.mjs";import c from"global";import{addons as g}from"@storybook/addons";import{STORY_CHANGED as a}from"@storybook/core-events";var{document:l}=c,p=(e="#FF4785",t="dashed")=>`
2
2
  outline: 2px ${t} ${e};
3
3
  outline-offset: 2px;
4
4
  box-shadow: 0 0 0 6px rgba(255,255,255,0.6);
5
- `,S=e=>({outline:`2px dashed ${e}`,outlineOffset:2,boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"});module&&module.hot&&module.hot.decline&&module.hot.decline();var i=g.getChannel(),u=e=>{let t=n;d();let r=Array.from(new Set(e.elements)),o=l.createElement("style");o.setAttribute("id",t),o.innerHTML=r.map(m=>`${m}{
5
+ `,x=e=>({outline:`2px dashed ${e}`,outlineOffset:2,boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"});module&&module.hot&&module.hot.decline&&module.hot.decline();var i=g.getChannel(),u=e=>{let t=n;d();let r=Array.from(new Set(e.elements)),o=l.createElement("style");o.setAttribute("id",t),o.innerHTML=r.map(m=>`${m}{
6
6
  ${p(e.color,e.style)}
7
- }`).join(" "),l.head.appendChild(o)},d=()=>{let e=n,t=l.getElementById(e);t&&t.parentNode.removeChild(t)};i.on(a,d);i.on(s,d);i.on(h,u);export{S as highlightObject,p as highlightStyle};
7
+ }`).join(" "),l.head.appendChild(o)},d=()=>{let e=n,t=l.getElementById(e);t&&t.parentNode.removeChild(t)};i.on(a,d);i.on(s,d);i.on(h,u);export{x as highlightObject,p as highlightStyle};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-highlight",
3
- "version": "7.0.0-alpha.48",
3
+ "version": "7.0.0-alpha.49",
4
4
  "description": "Highlight DOM nodes within your stories",
5
5
  "keywords": [
6
6
  "storybook-addons",
@@ -30,15 +30,25 @@
30
30
  "types": "./dist/index.d.ts"
31
31
  },
32
32
  "./preview": {
33
- "require": "./dist/highlight.js",
34
- "import": "./dist/highlight.mjs",
35
- "types": "./dist/highlight.d.ts"
33
+ "require": "./dist/preview.js",
34
+ "import": "./dist/preview.mjs",
35
+ "types": "./dist/preview.d.ts"
36
36
  },
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "main": "dist/index.js",
40
40
  "module": "dist/index.mjs",
41
41
  "types": "dist/index.d.ts",
42
+ "typesVersions": {
43
+ "*": {
44
+ "*": [
45
+ "dist/index.d.ts"
46
+ ],
47
+ "preview": [
48
+ "dist/preview.d.ts"
49
+ ]
50
+ }
51
+ },
42
52
  "files": [
43
53
  "dist/**/*",
44
54
  "README.md",
@@ -50,8 +60,8 @@
50
60
  "prep": "../../../scripts/prepare/bundle.ts"
51
61
  },
52
62
  "dependencies": {
53
- "@storybook/addons": "7.0.0-alpha.48",
54
- "@storybook/core-events": "7.0.0-alpha.48",
63
+ "@storybook/addons": "7.0.0-alpha.49",
64
+ "@storybook/core-events": "7.0.0-alpha.49",
55
65
  "global": "^4.4.0"
56
66
  },
57
67
  "devDependencies": {
@@ -64,10 +74,10 @@
64
74
  "bundler": {
65
75
  "entries": [
66
76
  "./src/index.ts",
67
- "./src/highlight.ts"
77
+ "./src/preview.ts"
68
78
  ]
69
79
  },
70
- "gitHead": "b58a29b785462f8a8b711b6bb2d7223fd6dc17fd",
80
+ "gitHead": "d7eb433300cac55d3c7256c8181eb6fd7a47b4c8",
71
81
  "sbmodern": "dist/modern/index.js",
72
82
  "storybook": {
73
83
  "displayName": "Highlight",
package/preview.js CHANGED
@@ -1 +1 @@
1
- export * from './dist/highlight';
1
+ export * from './dist/preview';
@@ -1 +0,0 @@
1
- var o="storybook/highlight",H="storybookHighlight",I=`${o}/add`,r=`${o}/reset`;export{H as a,I as b,r as c};