@spectrum-web-components/story-decorator 0.31.1-react.21 → 0.32.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.
@@ -4,7 +4,7 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "sp-story-decorator.ts",
7
+ "path": "sp-story-decorator.js",
8
8
  "declarations": [],
9
9
  "exports": [
10
10
  {
@@ -19,7 +19,7 @@
19
19
  },
20
20
  {
21
21
  "kind": "javascript-module",
22
- "path": "src/StoryDecorator.ts",
22
+ "path": "src/StoryDecorator.js",
23
23
  "declarations": [
24
24
  {
25
25
  "kind": "variable",
@@ -331,7 +331,7 @@
331
331
  "name": "dir",
332
332
  "declaration": {
333
333
  "name": "dir",
334
- "module": "src/StoryDecorator.ts"
334
+ "module": "src/StoryDecorator.js"
335
335
  }
336
336
  },
337
337
  {
@@ -339,7 +339,7 @@
339
339
  "name": "theme",
340
340
  "declaration": {
341
341
  "name": "theme",
342
- "module": "src/StoryDecorator.ts"
342
+ "module": "src/StoryDecorator.js"
343
343
  }
344
344
  },
345
345
  {
@@ -347,7 +347,7 @@
347
347
  "name": "color",
348
348
  "declaration": {
349
349
  "name": "color",
350
- "module": "src/StoryDecorator.ts"
350
+ "module": "src/StoryDecorator.js"
351
351
  }
352
352
  },
353
353
  {
@@ -355,7 +355,7 @@
355
355
  "name": "scale",
356
356
  "declaration": {
357
357
  "name": "scale",
358
- "module": "src/StoryDecorator.ts"
358
+ "module": "src/StoryDecorator.js"
359
359
  }
360
360
  },
361
361
  {
@@ -363,7 +363,7 @@
363
363
  "name": "reduceMotion",
364
364
  "declaration": {
365
365
  "name": "reduceMotion",
366
- "module": "src/StoryDecorator.ts"
366
+ "module": "src/StoryDecorator.js"
367
367
  }
368
368
  },
369
369
  {
@@ -371,7 +371,7 @@
371
371
  "name": "StoryDecorator",
372
372
  "declaration": {
373
373
  "name": "StoryDecorator",
374
- "module": "src/StoryDecorator.ts"
374
+ "module": "src/StoryDecorator.js"
375
375
  }
376
376
  }
377
377
  ]
package/decorator.dev.js CHANGED
@@ -18,6 +18,7 @@ export const themeStyles = html`
18
18
  export const swcThemeDecoratorWithConfig = ({ bundled } = { bundled: true }) => (story) => {
19
19
  if (!bundled) {
20
20
  requestAnimationFrame(() => {
21
+ document.documentElement.setAttribute("lang", "en");
21
22
  const decorator = document.querySelector(
22
23
  "sp-story-decorator"
23
24
  );
@@ -26,7 +27,7 @@ export const swcThemeDecoratorWithConfig = ({ bundled } = { bundled: true }) =>
26
27
  }
27
28
  return html`
28
29
  ${themeStyles}
29
- <sp-story-decorator>
30
+ <sp-story-decorator role="main">
30
31
  ${bundled ? story() : html``}
31
32
  </sp-story-decorator>
32
33
  `;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["decorator.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, render, TemplateResult } from '@spectrum-web-components/base';\nimport './sp-story-decorator.dev.js'\n\nexport const themeStyles = html`\n <style>\n #root {\n padding: 0;\n }\n .docs-story sp-story-decorator::part(container) {\n min-height: auto;\n position: relative;\n }\n .docs-story sp-story-decorator::part(controls) {\n position: absolute;\n }\n </style>\n`;\n\nexport const swcThemeDecoratorWithConfig =\n ({ bundled } = { bundled: true }) =>\n (story: () => TemplateResult) => {\n if (!bundled) {\n requestAnimationFrame(() => {\n const decorator = document.querySelector(\n 'sp-story-decorator'\n ) as HTMLElement;\n render(story(), decorator);\n });\n }\n return html`\n ${themeStyles}\n <sp-story-decorator>\n ${bundled ? story() : html``}\n </sp-story-decorator>\n `;\n };\n\nexport const swcThemeDecorator = swcThemeDecoratorWithConfig();\n"],
5
- "mappings": ";AAYA,SAAS,MAAM,cAA8B;AAC7C,OAAO;AAEA,aAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAepB,aAAM,8BACT,CAAC,EAAE,QAAQ,IAAI,EAAE,SAAS,KAAK,MAC/B,CAAC,UAAgC;AAC7B,MAAI,CAAC,SAAS;AACV,0BAAsB,MAAM;AACxB,YAAM,YAAY,SAAS;AAAA,QACvB;AAAA,MACJ;AACA,aAAO,MAAM,GAAG,SAAS;AAAA,IAC7B,CAAC;AAAA,EACL;AACA,SAAO;AAAA,cACD;AAAA;AAAA,kBAEI,UAAU,MAAM,IAAI;AAAA;AAAA;AAGlC;AAEG,aAAM,oBAAoB,4BAA4B;",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, render, TemplateResult } from '@spectrum-web-components/base';\nimport './sp-story-decorator.dev.js'\n\nexport const themeStyles = html`\n <style>\n #root {\n padding: 0;\n }\n .docs-story sp-story-decorator::part(container) {\n min-height: auto;\n position: relative;\n }\n .docs-story sp-story-decorator::part(controls) {\n position: absolute;\n }\n </style>\n`;\n\nexport const swcThemeDecoratorWithConfig =\n ({ bundled } = { bundled: true }) =>\n (story: () => TemplateResult) => {\n if (!bundled) {\n requestAnimationFrame(() => {\n document.documentElement.setAttribute('lang', 'en');\n const decorator = document.querySelector(\n 'sp-story-decorator'\n ) as HTMLElement;\n render(story(), decorator);\n });\n }\n return html`\n ${themeStyles}\n <sp-story-decorator role=\"main\">\n ${bundled ? story() : html``}\n </sp-story-decorator>\n `;\n };\n\nexport const swcThemeDecorator = swcThemeDecoratorWithConfig();\n"],
5
+ "mappings": ";AAYA,SAAS,MAAM,cAA8B;AAC7C,OAAO;AAEA,aAAM,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAepB,aAAM,8BACT,CAAC,EAAE,QAAQ,IAAI,EAAE,SAAS,KAAK,MAC/B,CAAC,UAAgC;AAC7B,MAAI,CAAC,SAAS;AACV,0BAAsB,MAAM;AACxB,eAAS,gBAAgB,aAAa,QAAQ,IAAI;AAClD,YAAM,YAAY,SAAS;AAAA,QACvB;AAAA,MACJ;AACA,aAAO,MAAM,GAAG,SAAS;AAAA,IAC7B,CAAC;AAAA,EACL;AACA,SAAO;AAAA,cACD;AAAA;AAAA,kBAEI,UAAU,MAAM,IAAI;AAAA;AAAA;AAGlC;AAEG,aAAM,oBAAoB,4BAA4B;",
6
6
  "names": []
7
7
  }
package/decorator.js CHANGED
@@ -11,10 +11,10 @@
11
11
  position: absolute;
12
12
  }
13
13
  </style>
14
- `,swcThemeDecoratorWithConfig=({bundled:o}={bundled:!0})=>e=>(o||requestAnimationFrame(()=>{const r=document.querySelector("sp-story-decorator");s(e(),r)}),t`
14
+ `,swcThemeDecoratorWithConfig=({bundled:e}={bundled:!0})=>o=>(e||requestAnimationFrame(()=>{document.documentElement.setAttribute("lang","en");const r=document.querySelector("sp-story-decorator");s(o(),r)}),t`
15
15
  ${themeStyles}
16
- <sp-story-decorator>
17
- ${o?e():t``}
16
+ <sp-story-decorator role="main">
17
+ ${e?o():t``}
18
18
  </sp-story-decorator>
19
19
  `),swcThemeDecorator=swcThemeDecoratorWithConfig();
20
20
  //# sourceMappingURL=decorator.js.map
package/decorator.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["decorator.ts"],
4
- "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, render, TemplateResult } from '@spectrum-web-components/base';\nimport './sp-story-decorator.js';\n\nexport const themeStyles = html`\n <style>\n #root {\n padding: 0;\n }\n .docs-story sp-story-decorator::part(container) {\n min-height: auto;\n position: relative;\n }\n .docs-story sp-story-decorator::part(controls) {\n position: absolute;\n }\n </style>\n`;\n\nexport const swcThemeDecoratorWithConfig =\n ({ bundled } = { bundled: true }) =>\n (story: () => TemplateResult) => {\n if (!bundled) {\n requestAnimationFrame(() => {\n const decorator = document.querySelector(\n 'sp-story-decorator'\n ) as HTMLElement;\n render(story(), decorator);\n });\n }\n return html`\n ${themeStyles}\n <sp-story-decorator>\n ${bundled ? story() : html``}\n </sp-story-decorator>\n `;\n };\n\nexport const swcThemeDecorator = swcThemeDecoratorWithConfig();\n"],
5
- "mappings": "aAYA,OAAS,QAAAA,EAAM,UAAAC,MAA8B,gCAC7C,MAAO,0BAEA,aAAM,YAAcD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAed,4BACT,CAAC,CAAE,QAAAE,CAAQ,EAAI,CAAE,QAAS,EAAK,IAC9BC,IACQD,GACD,sBAAsB,IAAM,CACxB,MAAME,EAAY,SAAS,cACvB,oBACJ,EACAH,EAAOE,EAAM,EAAGC,CAAS,CAC7B,CAAC,EAEEJ;AAAA,cACD;AAAA;AAAA,kBAEIE,EAAUC,EAAM,EAAIH;AAAA;AAAA,WAKzB,kBAAoB,4BAA4B",
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { html, render, TemplateResult } from '@spectrum-web-components/base';\nimport './sp-story-decorator.js';\n\nexport const themeStyles = html`\n <style>\n #root {\n padding: 0;\n }\n .docs-story sp-story-decorator::part(container) {\n min-height: auto;\n position: relative;\n }\n .docs-story sp-story-decorator::part(controls) {\n position: absolute;\n }\n </style>\n`;\n\nexport const swcThemeDecoratorWithConfig =\n ({ bundled } = { bundled: true }) =>\n (story: () => TemplateResult) => {\n if (!bundled) {\n requestAnimationFrame(() => {\n document.documentElement.setAttribute('lang', 'en');\n const decorator = document.querySelector(\n 'sp-story-decorator'\n ) as HTMLElement;\n render(story(), decorator);\n });\n }\n return html`\n ${themeStyles}\n <sp-story-decorator role=\"main\">\n ${bundled ? story() : html``}\n </sp-story-decorator>\n `;\n };\n\nexport const swcThemeDecorator = swcThemeDecoratorWithConfig();\n"],
5
+ "mappings": "aAYA,OAAS,QAAAA,EAAM,UAAAC,MAA8B,gCAC7C,MAAO,0BAEA,aAAM,YAAcD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAed,4BACT,CAAC,CAAE,QAAAE,CAAQ,EAAI,CAAE,QAAS,EAAK,IAC9BC,IACQD,GACD,sBAAsB,IAAM,CACxB,SAAS,gBAAgB,aAAa,OAAQ,IAAI,EAClD,MAAME,EAAY,SAAS,cACvB,oBACJ,EACAH,EAAOE,EAAM,EAAGC,CAAS,CAC7B,CAAC,EAEEJ;AAAA,cACD;AAAA;AAAA,kBAEIE,EAAUC,EAAM,EAAIH;AAAA;AAAA,WAKzB,kBAAoB,4BAA4B",
6
6
  "names": ["html", "render", "bundled", "story", "decorator"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/story-decorator",
3
- "version": "0.31.1-react.21+44f0b1df9",
3
+ "version": "0.32.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -65,14 +65,14 @@
65
65
  "lit-html"
66
66
  ],
67
67
  "dependencies": {
68
- "@spectrum-web-components/base": "^0.31.1-react.21+44f0b1df9",
69
- "@spectrum-web-components/field-label": "^0.31.1-react.21+44f0b1df9",
70
- "@spectrum-web-components/menu": "^0.31.1-react.21+44f0b1df9",
71
- "@spectrum-web-components/overlay": "^0.31.1-react.21+44f0b1df9",
72
- "@spectrum-web-components/picker": "^0.31.1-react.21+44f0b1df9",
73
- "@spectrum-web-components/reactive-controllers": "^0.31.1-react.21+44f0b1df9",
74
- "@spectrum-web-components/switch": "^0.31.1-react.21+44f0b1df9",
75
- "@spectrum-web-components/theme": "^0.31.1-react.21+44f0b1df9"
68
+ "@spectrum-web-components/base": "^0.32.0",
69
+ "@spectrum-web-components/field-label": "^0.32.0",
70
+ "@spectrum-web-components/menu": "^0.32.0",
71
+ "@spectrum-web-components/overlay": "^0.32.0",
72
+ "@spectrum-web-components/picker": "^0.32.0",
73
+ "@spectrum-web-components/reactive-controllers": "^0.32.0",
74
+ "@spectrum-web-components/switch": "^0.32.0",
75
+ "@spectrum-web-components/theme": "^0.32.0"
76
76
  },
77
77
  "types": "./src/index.d.ts",
78
78
  "customElements": "custom-elements.json",
@@ -81,5 +81,5 @@
81
81
  "./**/*.dev.js",
82
82
  "./sp-*.ts"
83
83
  ],
84
- "gitHead": "44f0b1df9e1ea77d9e931629a63918ceee2744c2"
84
+ "gitHead": "c5f67662ac54d0e37debaf7cbd7c2df60e8b294e"
85
85
  }