@spectrum-web-components/story-decorator 0.31.1-react.3 → 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.
- package/custom-elements.json +20 -14
- package/decorator.dev.js +2 -1
- package/decorator.dev.js.map +2 -2
- package/decorator.js +3 -3
- package/decorator.js.map +2 -2
- package/package.json +10 -10
package/custom-elements.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "javascript-module",
|
|
7
|
-
"path": "sp-story-decorator.
|
|
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.
|
|
22
|
+
"path": "src/StoryDecorator.js",
|
|
23
23
|
"declarations": [
|
|
24
24
|
{
|
|
25
25
|
"kind": "variable",
|
|
@@ -226,7 +226,8 @@
|
|
|
226
226
|
"type": {
|
|
227
227
|
"text": "TemplateResult"
|
|
228
228
|
},
|
|
229
|
-
"privacy": "private"
|
|
229
|
+
"privacy": "private",
|
|
230
|
+
"readonly": true
|
|
230
231
|
},
|
|
231
232
|
{
|
|
232
233
|
"kind": "field",
|
|
@@ -234,7 +235,8 @@
|
|
|
234
235
|
"type": {
|
|
235
236
|
"text": "TemplateResult"
|
|
236
237
|
},
|
|
237
|
-
"privacy": "private"
|
|
238
|
+
"privacy": "private",
|
|
239
|
+
"readonly": true
|
|
238
240
|
},
|
|
239
241
|
{
|
|
240
242
|
"kind": "field",
|
|
@@ -242,7 +244,8 @@
|
|
|
242
244
|
"type": {
|
|
243
245
|
"text": "TemplateResult"
|
|
244
246
|
},
|
|
245
|
-
"privacy": "private"
|
|
247
|
+
"privacy": "private",
|
|
248
|
+
"readonly": true
|
|
246
249
|
},
|
|
247
250
|
{
|
|
248
251
|
"kind": "field",
|
|
@@ -250,7 +253,8 @@
|
|
|
250
253
|
"type": {
|
|
251
254
|
"text": "TemplateResult"
|
|
252
255
|
},
|
|
253
|
-
"privacy": "private"
|
|
256
|
+
"privacy": "private",
|
|
257
|
+
"readonly": true
|
|
254
258
|
},
|
|
255
259
|
{
|
|
256
260
|
"kind": "field",
|
|
@@ -258,7 +262,8 @@
|
|
|
258
262
|
"type": {
|
|
259
263
|
"text": "TemplateResult"
|
|
260
264
|
},
|
|
261
|
-
"privacy": "private"
|
|
265
|
+
"privacy": "private",
|
|
266
|
+
"readonly": true
|
|
262
267
|
},
|
|
263
268
|
{
|
|
264
269
|
"kind": "field",
|
|
@@ -266,7 +271,8 @@
|
|
|
266
271
|
"type": {
|
|
267
272
|
"text": "TemplateResult"
|
|
268
273
|
},
|
|
269
|
-
"privacy": "private"
|
|
274
|
+
"privacy": "private",
|
|
275
|
+
"readonly": true
|
|
270
276
|
}
|
|
271
277
|
],
|
|
272
278
|
"attributes": [
|
|
@@ -325,7 +331,7 @@
|
|
|
325
331
|
"name": "dir",
|
|
326
332
|
"declaration": {
|
|
327
333
|
"name": "dir",
|
|
328
|
-
"module": "src/StoryDecorator.
|
|
334
|
+
"module": "src/StoryDecorator.js"
|
|
329
335
|
}
|
|
330
336
|
},
|
|
331
337
|
{
|
|
@@ -333,7 +339,7 @@
|
|
|
333
339
|
"name": "theme",
|
|
334
340
|
"declaration": {
|
|
335
341
|
"name": "theme",
|
|
336
|
-
"module": "src/StoryDecorator.
|
|
342
|
+
"module": "src/StoryDecorator.js"
|
|
337
343
|
}
|
|
338
344
|
},
|
|
339
345
|
{
|
|
@@ -341,7 +347,7 @@
|
|
|
341
347
|
"name": "color",
|
|
342
348
|
"declaration": {
|
|
343
349
|
"name": "color",
|
|
344
|
-
"module": "src/StoryDecorator.
|
|
350
|
+
"module": "src/StoryDecorator.js"
|
|
345
351
|
}
|
|
346
352
|
},
|
|
347
353
|
{
|
|
@@ -349,7 +355,7 @@
|
|
|
349
355
|
"name": "scale",
|
|
350
356
|
"declaration": {
|
|
351
357
|
"name": "scale",
|
|
352
|
-
"module": "src/StoryDecorator.
|
|
358
|
+
"module": "src/StoryDecorator.js"
|
|
353
359
|
}
|
|
354
360
|
},
|
|
355
361
|
{
|
|
@@ -357,7 +363,7 @@
|
|
|
357
363
|
"name": "reduceMotion",
|
|
358
364
|
"declaration": {
|
|
359
365
|
"name": "reduceMotion",
|
|
360
|
-
"module": "src/StoryDecorator.
|
|
366
|
+
"module": "src/StoryDecorator.js"
|
|
361
367
|
}
|
|
362
368
|
},
|
|
363
369
|
{
|
|
@@ -365,7 +371,7 @@
|
|
|
365
371
|
"name": "StoryDecorator",
|
|
366
372
|
"declaration": {
|
|
367
373
|
"name": "StoryDecorator",
|
|
368
|
-
"module": "src/StoryDecorator.
|
|
374
|
+
"module": "src/StoryDecorator.js"
|
|
369
375
|
}
|
|
370
376
|
}
|
|
371
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
|
`;
|
package/decorator.dev.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.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:
|
|
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
|
|
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.
|
|
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.
|
|
69
|
-
"@spectrum-web-components/field-label": "^0.
|
|
70
|
-
"@spectrum-web-components/menu": "^0.
|
|
71
|
-
"@spectrum-web-components/overlay": "^0.
|
|
72
|
-
"@spectrum-web-components/picker": "^0.
|
|
73
|
-
"@spectrum-web-components/reactive-controllers": "^0.
|
|
74
|
-
"@spectrum-web-components/switch": "^0.
|
|
75
|
-
"@spectrum-web-components/theme": "^0.
|
|
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": "
|
|
84
|
+
"gitHead": "c5f67662ac54d0e37debaf7cbd7c2df60e8b294e"
|
|
85
85
|
}
|