@epa-wg/custom-element-dist 0.0.27 → 0.0.29
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/.storybook/main.ts +2 -2
- package/README.md +4 -4
- package/coverage/coverage-final.json +21 -22
- package/coverage/index.html +19 -34
- package/coverage/src/custom-element/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
- package/coverage/src/custom-element/custom-element.js.html +491 -368
- package/coverage/src/custom-element/http-request.js.html +12 -12
- package/coverage/src/custom-element/index.html +19 -19
- package/coverage/src/custom-element/local-storage.js.html +52 -52
- package/coverage/src/custom-element/location-element.js.html +4 -4
- package/coverage/src/custom-element/module-url.js.html +1 -1
- package/coverage/src/index.html +1 -1
- package/coverage/src/mocks/handlers.ts.html +1 -1
- package/coverage/src/mocks/index.html +1 -1
- package/coverage/src/stories/attributes.test.stories.ts.html +11 -2
- package/coverage/src/stories/css.test.stories.ts.html +8 -2
- package/coverage/src/stories/dom-merge.test.stories.ts.html +3 -3
- package/coverage/src/stories/external-template.test.stories.ts.html +8 -2
- package/coverage/src/stories/form.test.stories.ts.html +8 -2
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +1 -1
- package/coverage/src/stories/local-storage.test.stories.ts.html +24 -18
- package/coverage/src/stories/location-element.test.stories.ts.html +8 -2
- package/coverage/src/stories/module-url.test.stories.ts.html +8 -2
- package/coverage/src/stories/set-url.test.stories.ts.html +8 -2
- package/coverage/src/stories/slice-events.test.stories.ts.html +8 -2
- package/coverage/src/stories/slots.test.stories.ts.html +8 -2
- package/coverage/src/stories/testStoryBook.ts.html +12 -12
- package/coverage/src/stories/version-select.test.stories.ts.html +8 -2
- package/coverage/src/sum.ts.html +1 -1
- package/dist/custom-element-BOIPgtxz.js +565 -0
- package/dist/custom-element-CUsSENWc.cjs +97 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +22 -21
- package/dist/demo/a.svg +26 -26
- package/dist/demo/demo.css +0 -3
- package/dist/demo/s.xml +18 -3
- package/dist/demo/s.xslt +37 -54
- package/dist/demo/ss.html +24 -57
- package/package.json +13 -13
- package/public/demo/a.svg +26 -26
- package/public/demo/demo.css +0 -3
- package/public/demo/s.xml +18 -3
- package/public/demo/s.xslt +37 -54
- package/public/demo/ss.html +24 -57
- package/src/custom-element/custom-element.js +61 -20
- package/src/custom-element/demo/a.svg +26 -26
- package/src/custom-element/demo/demo.css +0 -3
- package/src/custom-element/demo/s.xml +18 -3
- package/src/custom-element/demo/s.xslt +37 -54
- package/src/custom-element/demo/ss.html +24 -57
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/dce-social-preview.png +0 -0
- package/src/material/angular.css +987 -0
- package/src/material/components/autocomplete.html +241 -0
- package/src/material/components/dropdown.html +115 -0
- package/src/material/components/icon-link.html +161 -0
- package/src/material/components/menu.html +235 -0
- package/src/material/components.html +121 -0
- package/src/material/demo.css +31 -0
- package/src/material/index.html +111 -0
- package/src/material/material.css +357 -0
- package/src/material/theme/README.md +18 -0
- package/src/material/theme/semantic.css +112 -0
- package/src/mocks/versions.mock.ts +8 -8
- package/src/stories/attributes.test.stories.ts +3 -0
- package/src/stories/css.test.stories.ts +2 -0
- package/src/stories/dom-merge.test.stories.ts +2 -2
- package/src/stories/external-template.test.stories.ts +2 -0
- package/src/stories/form.test.stories.ts +2 -0
- package/src/stories/local-storage.test.stories.ts +2 -0
- package/src/stories/location-element.test.stories.ts +2 -0
- package/src/stories/module-url.test.stories.ts +2 -0
- package/src/stories/set-url.test.stories.ts +2 -0
- package/src/stories/slice-events.test.stories.ts +2 -0
- package/src/stories/slots.test.stories.ts +2 -0
- package/src/stories/version-select.test.stories.ts +2 -0
- package/storybook-static/assets/Color-ERTF36HU-CQkSD2nd.js +1 -0
- package/storybook-static/assets/Configure-DOhzHFEs.js +165 -0
- package/storybook-static/assets/DocsRenderer-CFRXHY34-BSJkbsd6.js +2 -0
- package/storybook-static/assets/{attributes.test.stories-Bt5V18qO.js → attributes.test.stories-BJBuuXgZ.js} +4 -4
- package/storybook-static/assets/{css.test.stories-CGYy2daE.js → css.test.stories-pgbBc17d.js} +1 -1
- package/storybook-static/assets/custom-element-BDGsYgbP.js +97 -0
- package/storybook-static/assets/{dom-merge.test.stories-XlsZ0UvX.js → dom-merge.test.stories-CXcYP_-J.js} +5 -5
- package/storybook-static/assets/entry-preview-C313OLrj.js +26 -0
- package/storybook-static/assets/{entry-preview-docs-BMKNVQXA.js → entry-preview-docs-B7ORr9w5.js} +2 -2
- package/storybook-static/assets/{external-template.test.stories-Bt_Pflu8.js → external-template.test.stories-CpJ68Ghy.js} +13 -13
- package/storybook-static/assets/{form.test.stories-B0NoI8wm.js → form.test.stories-D35lyqd8.js} +2 -2
- package/storybook-static/assets/{handlers-B5969HUu.js → handlers-CW9pDZnt.js} +6 -6
- package/storybook-static/assets/{http-request.stories-B2skuTFV.js → http-request.stories-CBbknCOO.js} +6 -6
- package/storybook-static/assets/iframe-DOi4N7qI.js +2 -0
- package/storybook-static/assets/{index-C7lvoJNv.js → index-B3QjF0Ed.js} +1 -1
- package/storybook-static/assets/index-BSz1w4Gl.js +234 -0
- package/storybook-static/assets/index-BdcJ-iJ7.js +8 -0
- package/storybook-static/assets/index-CaL3Qp7t.js +634 -0
- package/storybook-static/assets/index-DgFM0Ce3.js +1 -0
- package/storybook-static/assets/index-YxUFxnQR.js +1 -0
- package/storybook-static/assets/{local-storage.test.stories-DfY6feqG.js → local-storage.test.stories-BY-PWhuk.js} +5 -5
- package/storybook-static/assets/{location-element.test.stories-944AotIJ.js → location-element.test.stories-3auBYEaU.js} +3 -3
- package/storybook-static/assets/{module-url.test.stories-DSKcwApl.js → module-url.test.stories-B7L9cL60.js} +6 -6
- package/storybook-static/assets/{preview-0Jj89qip.js → preview-BRPR-UXC.js} +1 -1
- package/storybook-static/assets/{preview-DB9FwMii.js → preview-BWzBA1C2.js} +1 -1
- package/storybook-static/assets/preview-BhhEZcNS.js +1 -0
- package/storybook-static/assets/{preview-CadgX-4y.js → preview-C992A1Y-.js} +2 -2
- package/storybook-static/assets/preview-CcS4DQh8.js +1 -0
- package/storybook-static/assets/{preview-AJR7rVPD.js → preview-CfWMRsRq.js} +1 -1
- package/storybook-static/assets/{preview-FpHGYA1q.js → preview-DHPc-V4N.js} +1 -1
- package/storybook-static/assets/preview-DYzi3Z2p.js +1 -0
- package/storybook-static/assets/{preview-4Up_z4Em.js → preview-caVMbCIR.js} +2 -2
- package/storybook-static/assets/preview-ncvtW_hb.js +34 -0
- package/storybook-static/assets/{set-url.test.stories-DjLHKkEh.js → set-url.test.stories-CuSuDLIx.js} +3 -3
- package/storybook-static/assets/{slice-events.test.stories-8I_BrHd6.js → slice-events.test.stories-BkRKsKem.js} +4 -4
- package/storybook-static/assets/{slots.test.stories-CvZz4jyP.js → slots.test.stories-BJCUWFkE.js} +8 -8
- package/storybook-static/assets/{version-select.test.stories-DSxmJylI.js → version-select.test.stories-B3ybJn_Z.js} +2 -2
- package/storybook-static/demo/a.svg +26 -26
- package/storybook-static/demo/demo.css +0 -3
- package/storybook-static/demo/s.xml +18 -3
- package/storybook-static/demo/s.xslt +37 -54
- package/storybook-static/demo/ss.html +24 -57
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +3 -7
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +9 -9
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +76 -94
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +1 -1
- package/storybook-static/sb-addons/interactions-9/manager-bundle.js +211 -0
- package/storybook-static/sb-addons/interactions-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +11 -0
- package/storybook-static/sb-manager/globals-runtime.js +27803 -26928
- package/storybook-static/sb-manager/runtime.js +10341 -10136
- package/storybook-static/sb-preview/runtime.js +3841 -3828
- package/.idea/custom-element-dist.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/coverage/src/custom-element/demo/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/index.html +0 -116
- package/coverage/src/custom-element/demo/z.js/coverage.svg +0 -10
- package/coverage/src/custom-element/demo/z.js.html +0 -112
- package/dist/custom-element-BMMsP1Dy.js +0 -533
- package/dist/custom-element-CPSk7s0j.cjs +0 -87
- package/dist/demo/s1.xslt +0 -60
- package/dist/demo/z.html +0 -33
- package/dist/demo/z.js +0 -9
- package/dist/demo/z.xml +0 -60
- package/dist/demo/z1.html +0 -34
- package/public/demo/s1.xslt +0 -60
- package/public/demo/z.html +0 -33
- package/public/demo/z.js +0 -9
- package/public/demo/z.xml +0 -60
- package/public/demo/z1.html +0 -34
- package/src/custom-element/demo/s1.xslt +0 -60
- package/src/custom-element/demo/z.html +0 -33
- package/src/custom-element/demo/z.js +0 -9
- package/src/custom-element/demo/z.xml +0 -60
- package/src/custom-element/demo/z1.html +0 -34
- package/storybook-static/assets/Color-KGDBMAHA-CJo5gHY3.js +0 -1
- package/storybook-static/assets/Configure-DdXbGKhY.js +0 -173
- package/storybook-static/assets/DocsRenderer-PKQXORMH-DLnpL5hE.js +0 -2
- package/storybook-static/assets/custom-element-D8hcDZHh.js +0 -265
- package/storybook-static/assets/entry-preview-BKQ8UCxI.js +0 -8
- package/storybook-static/assets/iframe-Dfrt81rk.js +0 -2
- package/storybook-static/assets/index-Ay195x2L.js +0 -605
- package/storybook-static/assets/index-C3ChPTMh.js +0 -1
- package/storybook-static/assets/index-C8k3Z-3Y.js +0 -28
- package/storybook-static/assets/index-DGdNYaqV.js +0 -8
- package/storybook-static/assets/index-Gpdhz4ab.js +0 -1
- package/storybook-static/assets/lit-element-DzhCn-8W.js +0 -19
- package/storybook-static/assets/preview-BJPLiuSt.js +0 -1
- package/storybook-static/assets/preview-BMWqy4Bi.js +0 -1
- package/storybook-static/assets/preview-BnWGZYux.js +0 -1
- package/storybook-static/assets/preview-Djh1_Tal.js +0 -20
- package/storybook-static/demo/s1.xslt +0 -60
- package/storybook-static/demo/z.html +0 -33
- package/storybook-static/demo/z.js +0 -9
- package/storybook-static/demo/z.xml +0 -60
- package/storybook-static/demo/z1.html +0 -34
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +0 -336
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -77
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -234
- /package/{storybook-static/sb-addons/interactions-10/manager-bundle.js.LEGAL.txt → src/material/guide/getting-started/index.html} +0 -0
package/storybook-static/assets/{entry-preview-docs-BMKNVQXA.js → entry-preview-docs-B7ORr9w5.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
See the readme of addon-docs for web components for more details.`)}function c(){return i.__STORYBOOK_CUSTOM_ELEMENTS__||i.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:
|
|
1
|
+
import{Q as p}from"./entry-preview-C313OLrj.js";import{D as u,c as E,y}from"./index-BdcJ-iJ7.js";import{i as g}from"./tiny-invariant-BxWVcicq.js";import"./index-DrFu-skq.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__;__STORYBOOK_MODULE_PREVIEW_API__;var{window:v}=i;v.STORYBOOK_ENV="web-components";function d(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function l(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
|
|
2
|
+
See the readme of addon-docs for web components for more details.`)}function c(){return i.__STORYBOOK_CUSTOM_ELEMENTS__||i.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:w,EventSource:S}=i;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new S("__webpack_hmr").addEventListener("message",function(e){try{let{action:r}=JSON.parse(e.data);r==="built"&&w.location.reload()}catch{}}));const{logger:m}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{useEffect:D,addons:b}=__STORYBOOK_MODULE_PREVIEW_API__;function _(e,r){let t;switch(r){case"attributes":case"properties":t={name:e.type?.text||e.type};break;case"slots":t={name:"string"};break;default:t={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:t,table:{category:r,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function h(e){let r=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(t,n,a)=>a?a.toUpperCase():"").replace(/^([A-Z])/,t=>t.toLowerCase());return r=`on${r.charAt(0).toUpperCase()+r.substr(1)}`,[{name:r,action:{name:e.name},table:{disable:!0}},_(e,"events")]}function o(e,r){return e&&e.filter(t=>t&&t.name).reduce((t,n)=>{if(n.kind==="method")return t;switch(r){case"events":h(n).forEach(a=>{g(a.name,`${a} should have a name property.`),t[a.name]=a});break;default:t[n.name]=_(n,r);break}return t},{})}var C=(e,r)=>{if(!d(e)||!l(r))return null;let t=r.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return t||m.warn(`Component not found in custom-elements.json: ${e}`),t},M=(e,r)=>{if(!d(e)||!l(r))return null;let t;return r?.modules?.forEach(n=>{n?.declarations?.forEach(a=>{a.tagName===e&&(t=a)})}),t||m.warn(`Component not found in custom-elements.json: ${e}`),t},f=(e,r)=>r?.version==="experimental"?C(e,r):M(e,r),A=(e,r)=>{let t=f(e,r);return t&&{...o(t.members??[],"properties"),...o(t.properties??[],"properties"),...o(t.attributes??[],"attributes"),...o(t.events??[],"events"),...o(t.slots??[],"slots"),...o(t.cssProperties??[],"css custom properties"),...o(t.cssParts??[],"css shadow parts")}},T=e=>{let r=c();return A(e,r)},L=e=>{let r=f(e,c());return r&&r.description},R=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function I(e){let r=e?.parameters.docs?.source,t=e?.parameters.__isArgsStory;return r?.type===u.DYNAMIC?!1:!t||r?.code||r?.type===u.CODE}function U(e,r){let t=e(),n=r?.parameters.docs?.source?.excludeDecorators?r.originalStoryFn(r.args,r):t,a;if(D(()=>{let{id:s,unmappedArgs:O}=r;a&&b.getChannel().emit(y,{id:s,source:a,args:O})}),!I(r)){let s=window.document.createElement("div");n instanceof DocumentFragment?p(n.cloneNode(!0),s):p(n,s),a=s.innerHTML.replace(R,"")}return t}var V=[U],K={docs:{extractArgTypes:T,extractComponentDescription:L,story:{inline:!0},source:{type:u.DYNAMIC,language:"html"}}},$=[E];export{$ as argTypesEnhancers,V as decorators,K as parameters};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l,e as a}from"./
|
|
1
|
+
import{w as l,e as a}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";function f(t){return new Promise(e=>setTimeout(e,t))}function h(t){const{title:e,body:n}=t;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${e}</legend>
|
|
4
4
|
${n}
|
|
@@ -91,7 +91,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
91
91
|
canvasElement
|
|
92
92
|
}) => {
|
|
93
93
|
const canvas = within(canvasElement);
|
|
94
|
-
await canvas.findByText(
|
|
94
|
+
await canvas.findByText(TemplateInPage.args!.title as string);
|
|
95
95
|
const val = prop => canvas.getByTestId(prop).textContent.trim();
|
|
96
96
|
expect(val('slot-override')).toEqual('👋 World!');
|
|
97
97
|
expect(val('slot-default')).toEqual('Hello World!');
|
|
@@ -111,7 +111,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
111
111
|
canvasElement
|
|
112
112
|
}) => {
|
|
113
113
|
const canvas = within(canvasElement);
|
|
114
|
-
await canvas.findByText(
|
|
114
|
+
await canvas.findByText(NoTag.args!.title as string);
|
|
115
115
|
expect(canvasElement.querySelectorAll('custom-element')[0].textContent.trim()).toEqual('🏗️ construction');
|
|
116
116
|
expect(canvasElement.querySelectorAll('custom-element')[1].textContent.trim()).toEqual('🏗️ construction');
|
|
117
117
|
}
|
|
@@ -135,7 +135,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
135
135
|
canvasElement
|
|
136
136
|
}) => {
|
|
137
137
|
const canvas = within(canvasElement);
|
|
138
|
-
await canvas.findByText(
|
|
138
|
+
await canvas.findByText(ExternalSvg.args!.title as string);
|
|
139
139
|
await expect(canvas.getByText('inline DCE loading from SVG ...')).toBeInTheDocument();
|
|
140
140
|
|
|
141
141
|
// needs separate test
|
|
@@ -163,7 +163,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
163
163
|
canvasElement
|
|
164
164
|
}) => {
|
|
165
165
|
const canvas = within(canvasElement);
|
|
166
|
-
await canvas.findByText(
|
|
166
|
+
await canvas.findByText(ExternalXsltFile.args!.title as string);
|
|
167
167
|
expect(canvasElement.querySelector('dce-external-4').innerHTML).to.include('Hi');
|
|
168
168
|
expect(canvasElement.querySelector('[data-smile="👼"]').innerHTML).to.include('loading from XSLT ...');
|
|
169
169
|
await expect(await canvas.findByTestId('data-fruit')).toHaveTextContent('🍌');
|
|
@@ -183,7 +183,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
183
183
|
canvasElement
|
|
184
184
|
}) => {
|
|
185
185
|
const canvas = within(canvasElement);
|
|
186
|
-
await canvas.findByText(
|
|
186
|
+
await canvas.findByText(ExternalHtmlFile.args!.title as string);
|
|
187
187
|
await canvas.findByText('👋');
|
|
188
188
|
const t5 = canvasElement.querySelector('dce-external-5').innerHTML;
|
|
189
189
|
expect(t5).to.include('👋');
|
|
@@ -204,7 +204,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
204
204
|
canvasElement
|
|
205
205
|
}) => {
|
|
206
206
|
const canvas = within(canvasElement);
|
|
207
|
-
await canvas.findByText(
|
|
207
|
+
await canvas.findByText(ExternalHtmlFileInline.args!.title as string);
|
|
208
208
|
await canvas.findByText('👋');
|
|
209
209
|
const t5 = canvasElement.innerHTML;
|
|
210
210
|
expect(t5).to.include('👋');
|
|
@@ -225,7 +225,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
225
225
|
canvasElement
|
|
226
226
|
}) => {
|
|
227
227
|
const canvas = within(canvasElement);
|
|
228
|
-
await canvas.findByText(
|
|
228
|
+
await canvas.findByText(HtmlWithinHtmlFile.args!.title as string);
|
|
229
229
|
expect(await canvas.findByText('👋')).toBeInTheDocument();
|
|
230
230
|
}
|
|
231
231
|
}`,...d.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
@@ -241,7 +241,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
241
241
|
canvasElement
|
|
242
242
|
}) => {
|
|
243
243
|
const canvas = within(canvasElement);
|
|
244
|
-
await canvas.findByText(
|
|
244
|
+
await canvas.findByText(SvgWithinHtmlFile.args!.title as string);
|
|
245
245
|
expect(await canvas.findByTestId('svg-test')).toBeInTheDocument();
|
|
246
246
|
}
|
|
247
247
|
}`,...p.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
@@ -257,7 +257,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
257
257
|
canvasElement
|
|
258
258
|
}) => {
|
|
259
259
|
const canvas = within(canvasElement);
|
|
260
|
-
await canvas.findByText(
|
|
260
|
+
await canvas.findByText(MathMLWithinHtmlFile.args!.title as string);
|
|
261
261
|
const ml = await canvas.findByTestId('ml-test');
|
|
262
262
|
expect(ml.firstElementChild.localName).toEqual('mrow');
|
|
263
263
|
}
|
|
@@ -274,7 +274,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
274
274
|
canvasElement
|
|
275
275
|
}) => {
|
|
276
276
|
const canvas = within(canvasElement);
|
|
277
|
-
await canvas.findByText(
|
|
277
|
+
await canvas.findByText(ByIdWithinXsltFile.args!.title as string);
|
|
278
278
|
const ml = await canvas.findByTestId('src');
|
|
279
279
|
expect(ml.textContent).to.include('/html-template.xhtml#embedded-xsl');
|
|
280
280
|
}
|
|
@@ -291,7 +291,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
291
291
|
canvasElement
|
|
292
292
|
}) => {
|
|
293
293
|
const canvas = within(canvasElement);
|
|
294
|
-
await canvas.findByText(
|
|
294
|
+
await canvas.findByText(MissingIdWithinXsltFile.args!.title as string);
|
|
295
295
|
await sleep(100);
|
|
296
296
|
const ml = await canvas.findByTestId('no-id');
|
|
297
297
|
expect(ml.textContent).to.include('element with id=none is missing in template');
|
|
@@ -309,7 +309,7 @@ import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.
|
|
|
309
309
|
canvasElement
|
|
310
310
|
}) => {
|
|
311
311
|
const canvas = within(canvasElement);
|
|
312
|
-
await canvas.findByText(
|
|
312
|
+
await canvas.findByText(EmbeddingInAnotherFile.args!.title as string);
|
|
313
313
|
await sleep(1);
|
|
314
314
|
expect(await canvas.findByText('embed-1.html')).toBeInTheDocument();
|
|
315
315
|
expect(await canvas.findByText('🖖')).toBeInTheDocument();
|
package/storybook-static/assets/{form.test.stories-B0NoI8wm.js → form.test.stories-D35lyqd8.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i,e as n,u as e}from"./
|
|
1
|
+
import{w as i,e as n,u as e}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";function l(a){const{title:t,body:s}=a;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${t}</legend>
|
|
4
4
|
${s}
|
|
@@ -111,7 +111,7 @@ import{w as i,e as n,u as e}from"./custom-element-D8hcDZHh.js";import"./index-C8
|
|
|
111
111
|
play: async ({
|
|
112
112
|
canvasElement
|
|
113
113
|
}) => {
|
|
114
|
-
const titleText =
|
|
114
|
+
const titleText = SystemMessage.args!.title as string;
|
|
115
115
|
const canvas = within(canvasElement);
|
|
116
116
|
await expect(canvas.queryByTestId('validation-msg')).toBeNull();
|
|
117
117
|
const input = await canvas.findByTestId('input-1');
|
|
@@ -231,7 +231,7 @@ tough-cookie/lib/cookie.js:
|
|
|
231
231
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
232
232
|
*)
|
|
233
233
|
*/const{Cookie:Bo,CookieJar:No,Store:Uo,MemoryCookieStore:Mo,domainMatch:Wo,pathMatch:$o}=Ro;class Ho extends Uo{storage;storageKey;constructor(){super(),Oe(typeof localStorage<"u","Failed to create a WebStorageCookieStore: `localStorage` is not available in this environment. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.synchronous=!0,this.storage=localStorage,this.storageKey="__msw-cookie-store__"}findCookie(e,o,i,s){try{const c=this.getStore(),l=this.filterCookiesFromList(c,{domain:e,path:o,key:i});s(null,l[0]||null)}catch(c){c instanceof Error&&s(c,null)}}findCookies(e,o,i,s){if(!e){s(null,[]);return}try{const c=this.getStore(),l=this.filterCookiesFromList(c,{domain:e,path:o});s(null,l)}catch(c){c instanceof Error&&s(c,[])}}putCookie(e,o){try{if(e.maxAge===0)return;const i=this.getStore();i.push(e),this.updateStore(i)}catch(i){i instanceof Error&&o(i)}}updateCookie(e,o,i){if(o.maxAge===0){this.removeCookie(o.domain||"",o.path||"",o.key,i);return}this.putCookie(o,i)}removeCookie(e,o,i,s){try{const c=this.getStore(),l=this.deleteCookiesFromList(c,{domain:e,path:o,key:i});this.updateStore(l),s(null)}catch(c){c instanceof Error&&s(c)}}removeCookies(e,o,i){try{const s=this.getStore(),c=this.deleteCookiesFromList(s,{domain:e,path:o});this.updateStore(c),i(null)}catch(s){s instanceof Error&&i(s)}}getAllCookies(e){try{e(null,this.getStore())}catch(o){o instanceof Error&&e(o,[])}}getStore(){try{const e=this.storage.getItem(this.storageKey);if(e==null)return[];const o=JSON.parse(e),i=[];for(const s of o){const c=Bo.fromJSON(s);c!=null&&i.push(c)}return i}catch{return[]}}updateStore(e){this.storage.setItem(this.storageKey,JSON.stringify(e.map(o=>o.toJSON())))}filterCookiesFromList(e,o){const i=[];for(const s of e)o.domain&&!Wo(o.domain,s.domain||"")||o.path&&!$o(o.path,s.path||"")||o.key&&s.key!==o.key||i.push(s);return i}deleteCookiesFromList(e,o){const i=this.filterCookiesFromList(e,o);return e.filter(s=>!i.includes(s))}}const Go=Ye()?new Mo:new Ho,Jo=new No(Go);function Le(){return _e.parse(document.cookie)}function Yo(a){if(typeof document>"u"||typeof location>"u")return{};switch(a.credentials){case"same-origin":{const e=new URL(a.url);return location.origin===e.origin?Le():{}}case"include":return Le();default:return{}}}function Vo(a){const e=a.headers.get("cookie"),o=e?_e.parse(e):{},i=Yo(a);for(const l in i)a.headers.append("cookie",_e.serialize(l,i[l]));const s=Jo.getCookiesSync(a.url),c=Object.fromEntries(s.map(l=>[l.key,l.value]));for(const l of s)a.headers.append("cookie",l.toString());return{...i,...c,...o}}var pe=(a=>(a.HEAD="HEAD",a.GET="GET",a.POST="POST",a.PUT="PUT",a.PATCH="PATCH",a.OPTIONS="OPTIONS",a.DELETE="DELETE",a))(pe||{});class Qo extends ze{constructor(e,o,i,s){super({info:{header:`${e} ${o}`,path:o,method:e},resolver:i,options:s}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:o}=this.info;if(o instanceof RegExp||Ve(o)===o)return;to(o).forEach((c,l)=>{}),Fe.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${o}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`)}async parse(e){const o=new URL(e.request.url),i=mo(o,this.info.path,e.resolutionContext?.baseUrl),s=Vo(e.request);return{match:i,cookies:s}}predicate(e){const o=this.matchMethod(e.request.method),i=e.parsedResult.match.matches;return o&&i}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):Ea(this.info.method,e)}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const o=co(e.request.url),i=await Aa(e.request),s=await Ba(e.response),c=Ca(s.status);console.groupCollapsed(Fe.formatMessage(`${Sa()} ${e.request.method} ${o} (%c${s.status} ${s.statusText}%c)`),`color:${c}`,"color:inherit"),console.log("Request",i),console.log("Handler:",this),console.log("Response",s),console.groupEnd()}}function le(a){return(e,o,i={})=>new Qo(a,e,o,i)}const je={all:le(/.+/),head:le(pe.HEAD),get:le(pe.GET),post:le(pe.POST),put:le(pe.PUT),delete:le(pe.DELETE),patch:le(pe.PATCH),options:le(pe.OPTIONS)};var Zo=Object.create,ra=Object.defineProperty,Ko=Object.getOwnPropertyDescriptor,ua=Object.getOwnPropertyNames,Xo=Object.getPrototypeOf,ei=Object.prototype.hasOwnProperty,ai=(a,e)=>function(){return e||(0,a[ua(a)[0]])((e={exports:{}}).exports,e),e.exports},oi=(a,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ua(e))!ei.call(a,s)&&s!==o&&ra(a,s,{get:()=>e[s],enumerable:!(i=Ko(e,s))||i.enumerable});return a},ii=(a,e,o)=>(o=a!=null?Zo(Xo(a)):{},oi(!a||!a.__esModule?ra(o,"default",{value:a,enumerable:!0}):o,a)),ti=ai({"node_modules/set-cookie-parser/lib/set-cookie.js"(a,e){var o={decodeValues:!0,map:!1,silent:!1};function i(m){return typeof m=="string"&&!!m.trim()}function s(m,k){var f=m.split(";").filter(i),d=f.shift(),j=c(d),b=j.name,z=j.value;k=k?Object.assign({},o,k):o;try{z=k.decodeValues?decodeURIComponent(z):z}catch(S){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+z+"'. Set options.decodeValues to false to disable this feature.",S)}var E={name:b,value:z};return f.forEach(function(S){var A=S.split("="),O=A.shift().trimLeft().toLowerCase(),N=A.join("=");O==="expires"?E.expires=new Date(N):O==="max-age"?E.maxAge=parseInt(N,10):O==="secure"?E.secure=!0:O==="httponly"?E.httpOnly=!0:O==="samesite"?E.sameSite=N:E[O]=N}),E}function c(m){var k="",f="",d=m.split("=");return d.length>1?(k=d.shift(),f=d.join("=")):f=m,{name:k,value:f}}function l(m,k){if(k=k?Object.assign({},o,k):o,!m)return k.map?{}:[];if(m.headers)if(typeof m.headers.getSetCookie=="function")m=m.headers.getSetCookie();else if(m.headers["set-cookie"])m=m.headers["set-cookie"];else{var f=m.headers[Object.keys(m.headers).find(function(j){return j.toLowerCase()==="set-cookie"})];!f&&m.headers.cookie&&!k.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),m=f}if(Array.isArray(m)||(m=[m]),k=k?Object.assign({},o,k):o,k.map){var d={};return m.filter(i).reduce(function(j,b){var z=s(b,k);return j[z.name]=z,j},d)}else return m.filter(i).map(function(j){return s(j,k)})}function r(m){if(Array.isArray(m))return m;if(typeof m!="string")return[];var k=[],f=0,d,j,b,z,E;function S(){for(;f<m.length&&/\s/.test(m.charAt(f));)f+=1;return f<m.length}function A(){return j=m.charAt(f),j!=="="&&j!==";"&&j!==","}for(;f<m.length;){for(d=f,E=!1;S();)if(j=m.charAt(f),j===","){for(b=f,f+=1,S(),z=f;f<m.length&&A();)f+=1;f<m.length&&m.charAt(f)==="="?(E=!0,f=z,k.push(m.substring(d,b)),d=f):f=b+1}else f+=1;(!E||f>=m.length)&&k.push(m.substring(d,m.length))}return k}e.exports=l,e.exports.parse=l,e.exports.parseString=s,e.exports.splitCookiesString=r}}),si=ii(ti()),ni=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function fe(a){if(ni.test(a)||a.trim()==="")throw new TypeError("Invalid character in header field name");return a.trim().toLowerCase()}var Te=[`
|
|
234
|
-
`,"\r"," "," "],ri=new RegExp(`(^[${Te.join("")}]|$[${Te.join("")}])`,"g");function Ce(a){return a.replace(ri,"")}function be(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!ui(o))return!1}return!0}function ui(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function Pe(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var ge=Symbol("normalizedHeaders"),Se=Symbol("rawHeaderNames"),qe=", ",Re,Be,Ne,mi=class ma{constructor(e){this[Re]={},this[Be]=new Map,this[Ne]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ma||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join(qe):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join(qe):i)})}[(Re=ge,Be=Se,Ne=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[ge]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!be(e))throw new TypeError(`Invalid header name "${e}"`);return this[ge].hasOwnProperty(fe(e))}get(e){if(!be(e))throw TypeError(`Invalid header name "${e}"`);return this[ge][fe(e)]??null}set(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);this[ge][i]=Ce(s),this[Se].set(i,e)}append(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);let c=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,c)}delete(e){if(!be(e)||!this.has(e))return;const o=fe(e);delete this[ge][o],this[Se].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,si.splitCookiesString)(e)}};const{message:ci}=He,li=Symbol("kSetCookie");function he(a={}){const e=a?.status||200,o=a?.statusText||ci[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function pi(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,li,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=mi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=he(o);super(e,i),pi(this,i)}static text(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=he(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=he(o);return e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,he(o))}}async function hi(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}ba();const Ae={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},di={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.27"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
|
|
234
|
+
`,"\r"," "," "],ri=new RegExp(`(^[${Te.join("")}]|$[${Te.join("")}])`,"g");function Ce(a){return a.replace(ri,"")}function be(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!ui(o))return!1}return!0}function ui(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function Pe(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var ge=Symbol("normalizedHeaders"),Se=Symbol("rawHeaderNames"),qe=", ",Re,Be,Ne,mi=class ma{constructor(e){this[Re]={},this[Be]=new Map,this[Ne]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ma||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join(qe):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join(qe):i)})}[(Re=ge,Be=Se,Ne=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[ge]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!be(e))throw new TypeError(`Invalid header name "${e}"`);return this[ge].hasOwnProperty(fe(e))}get(e){if(!be(e))throw TypeError(`Invalid header name "${e}"`);return this[ge][fe(e)]??null}set(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);this[ge][i]=Ce(s),this[Se].set(i,e)}append(e,o){if(!be(e)||!Pe(o))return;const i=fe(e),s=Ce(o);let c=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,c)}delete(e){if(!be(e)||!this.has(e))return;const o=fe(e);delete this[ge][o],this[Se].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,si.splitCookiesString)(e)}};const{message:ci}=He,li=Symbol("kSetCookie");function he(a={}){const e=a?.status||200,o=a?.statusText||ci[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function pi(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,li,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=mi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=he(o);super(e,i),pi(this,i)}static text(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=he(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=he(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=he(o);return e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,he(o))}}async function hi(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}ba();const Ae={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},di={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.29"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
|
|
235
235
|
Version 2.0, January 2004
|
|
236
236
|
http://www.apache.org/licenses/
|
|
237
237
|
|
|
@@ -432,7 +432,7 @@ tough-cookie/lib/cookie.js:
|
|
|
432
432
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
433
433
|
See the License for the specific language governing permissions and
|
|
434
434
|
limitations under the License.
|
|
435
|
-
`,dependencies:{"@epa-wg/custom-element":"0.0.23"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.23_1719458714023_0.8754234815431452",host:"s3://npm-registry-packages"}},"0.0.24":{name:"@epa-wg/custom-element-dist",version:"0.0.24",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.24",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"645c47e1a5ee0a68ff68480f0d7216118f25baa0",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.24.tgz",fileCount:288,integrity:"sha512-AB9SEmKFLm9xa9C1TW8i+EnVF1/4FuJMArOSLlDcOapqQlGzuezAi+P+GYr5JEyRNV7z2vpfSqCNw27pP+F9gw==",signatures:[{sig:"MEUCIQDDj/lGs/Jk7sID8gIbOU06BXxk9A2KlnHPkAblbWVZjQIgHHanSMQmi3OZlW7E2opqTBykCsjCL6Vre+elfaa81Bg=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9345698},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"de84506c8f2b0100071b3ef9a02eae83f965e72d",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.24"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.24_1721617812280_0.9341875013148964",host:"s3://npm-registry-packages"}},"0.0.
|
|
435
|
+
`,dependencies:{"@epa-wg/custom-element":"0.0.23"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.23_1719458714023_0.8754234815431452",host:"s3://npm-registry-packages"}},"0.0.24":{name:"@epa-wg/custom-element-dist",version:"0.0.24",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.24",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"645c47e1a5ee0a68ff68480f0d7216118f25baa0",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.24.tgz",fileCount:288,integrity:"sha512-AB9SEmKFLm9xa9C1TW8i+EnVF1/4FuJMArOSLlDcOapqQlGzuezAi+P+GYr5JEyRNV7z2vpfSqCNw27pP+F9gw==",signatures:[{sig:"MEUCIQDDj/lGs/Jk7sID8gIbOU06BXxk9A2KlnHPkAblbWVZjQIgHHanSMQmi3OZlW7E2opqTBykCsjCL6Vre+elfaa81Bg=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9345698},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"de84506c8f2b0100071b3ef9a02eae83f965e72d",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.24"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.24_1721617812280_0.9341875013148964",host:"s3://npm-registry-packages"}},"0.0.29":{name:"@epa-wg/custom-element-dist",version:"0.0.29",type:"module",scripts:{dev:"vite",build:"tsc && vite build",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh",preview:"vite preview",storybook:"storybook dev -p 6006","build-storybook":"storybook build",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0","test:storybook":"test-storybook",sb:"yarn storybook",t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts"},dependencies:{"@epa-wg/custom-element":"0.0.29"},devDependencies:{"@chromatic-com/storybook":"^1.3.3","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/addon-links":"^8.0.10","@storybook/addon-mdx-gfm":"8.0.10","@storybook/blocks":"^8.0.10","@storybook/test":"^8.0.10","@storybook/test-runner":"^0.17.0","@storybook/web-components":"^8.0.10","@storybook/web-components-vite":"^8.0.10","@vitest/browser":"^1.6.0","@vitest/coverage-istanbul":"^1.6.0","coverage-svg":"^0.0.3",lit:"^3.1.3",msw:"^2.2.14","msw-storybook-addon":"^2.0.0",playwright:"^1.43.1",storybook:"^8.0.10",typescript:"^5.2.2",vite:"^5.3.1",vitest:"^1.6.0",webdriverio:"^8.36.1"},msw:{workerDirectory:["public"]},keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{name:"Sasha Firsov",email:"suns@simulationworks.com",url:"https://blog.firsov.net/"},exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json"},repository:{type:"git",url:"git+https://github.com/EPA-WG/custom-element-dist.git"},license:"Apache-2.0",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},homepage:"https://github.com/EPA-WG/custom-element#readme",funding:{type:"patreon",url:"https://www.patreon.com/sashafirsov"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],_id:"@epa-wg/custom-element-dist@0.0.29",gitHead:"a6a84bdc2cc433acf3d3afa827556c79ecacffb8",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",_nodeVersion:"20.8.1",_npmVersion:"10.1.0",dist:{integrity:"sha512-ISVPKkirFGvTTNFanf9WxOTeEBJrAyjuebqQSJiH97QHgG7pxQQAWUC4heBRbJ9kUo5FUmBDph2d9Rep/POCDw==",shasum:"1a68a8bc37315cbcab0f66247aa54c82d7bc159d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.29.tgz",fileCount:299,unpackedSize:9437753,signatures:[{keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",sig:"MEYCIQCqwIDEcc+kYWDg9a1eTK20CqiJSAuRgzstYRFCCxxMYgIhAJJAQHlah0kgCTZQbUXX0sl0/a7n1yLzLngKFm8MShfH"}]},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},directories:{},maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],_npmOperationalInternal:{host:"s3://npm-registry-packages",tmp:"tmp/custom-element-dist_0.0.26_1722929379048_0.7994188371789248"},_hasShrinkwrap:!1}},time:{created:"2024-05-13T05:27:10.377Z",modified:"2024-08-06T07:29:39.484Z","0.0.1":"2024-05-13T05:27:10.717Z","0.0.21":"2024-05-13T06:01:14.597Z","0.0.22":"2024-06-25T03:55:52.525Z","0.0.23":"2024-06-27T03:25:14.314Z","0.0.24":"2024-07-22T03:10:12.564Z","0.0.29":"2024-08-06T07:29:39.264Z"},bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},author:{name:"Sasha Firsov",email:"suns@simulationworks.com",url:"https://blog.firsov.net/"},license:"Apache-2.0",homepage:"https://github.com/EPA-WG/custom-element#readme",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],repository:{type:"git",url:"git+https://github.com/EPA-WG/custom-element-dist.git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],readme:`# custom-element-dist
|
|
436
436
|
Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage
|
|
437
437
|
|
|
438
438
|
\`custom-element\` [![git][github-image] GitHub][git-url]
|
|
@@ -460,8 +460,8 @@ CDN version of StoryBook.
|
|
|
460
460
|
[github-image]: https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg
|
|
461
461
|
[npm-image]: https://img.shields.io/npm/v/@epa-wg/custom-element-dist.svg
|
|
462
462
|
[npm-url]: https://npmjs.org/package/@epa-wg/custom-element-dist
|
|
463
|
-
[coverage-image]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.
|
|
464
|
-
[coverage-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.
|
|
465
|
-
[sb-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.
|
|
466
|
-
[bundle-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.
|
|
463
|
+
[coverage-image]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.29/coverage/src/custom-element/coverage.svg
|
|
464
|
+
[coverage-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.29/coverage/src/custom-element/index.html
|
|
465
|
+
[sb-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.29/storybook-static/index.html
|
|
466
|
+
[bundle-url]: https://unpkg.com/@epa-wg/custom-element-dist@0.0.29/dist/custom-element-bundle.js
|
|
467
467
|
`,readmeFilename:"README.md"},gi=[je.get("/pokemon",({request:a})=>{const o=new URL(a.url).searchParams.get("limit"),i=structuredClone(Ae);return o&&(i.results=i.results.slice(0,Number(o))),oe.json(i)}),je.get("/noreturn",async()=>(await hi(500),oe.json(Ae))),je.get("/reflect",({request:a})=>{const e={};return[...a.headers.entries()].map(([o,i])=>e[o]="reflected-"+i),e["x-added"]="abc",oe.json(Ae,{headers:e})}),je.get("/404",()=>new oe(null,{status:404,statusText:"not found"}))];window.location.pathname.startsWith("@epa-wg/custom-element-dist")||gi.push(je.get("https://registry.npmjs.org/@epa-wg/custom-element-dist",async()=>oe.json(di)));export{ya as E,ki as I,ze as R,Jo as c,Fe as d,gi as h,Oe as i,li as k,co as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as m,e as t}from"./custom-element-
|
|
1
|
+
import{w as m,e as t}from"./index-BSz1w4Gl.js";import"./custom-element-BDGsYgbP.js";import"./http-request-DNq59pnj.js";import{h as p}from"./handlers-CW9pDZnt.js";const v={title:"",slice:"page",url:"/pokemon?limit=6"};function r(a){return new Promise(e=>setTimeout(e,a))}function f({title:a,slice:e,url:n}){return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${a}</legend>
|
|
4
4
|
<custom-element>
|
|
@@ -109,7 +109,7 @@ from <code>${a}</code>
|
|
|
109
109
|
canvasElement
|
|
110
110
|
}) => {
|
|
111
111
|
const canvas = within(canvasElement);
|
|
112
|
-
await canvas.findByText(
|
|
112
|
+
await canvas.findByText(Demo.args!.title as string);
|
|
113
113
|
expect(await canvas.findByText('bulbasaur')).toBeInTheDocument();
|
|
114
114
|
expect(await canvas.findByText('Pokemon Count: 4')).toBeInTheDocument(canvasElement);
|
|
115
115
|
},
|
|
@@ -125,7 +125,7 @@ from <code>${a}</code>
|
|
|
125
125
|
canvasElement
|
|
126
126
|
}) => {
|
|
127
127
|
const canvas = within(canvasElement);
|
|
128
|
-
await canvas.findByText(
|
|
128
|
+
await canvas.findByText(UrlChange.args!.title as string);
|
|
129
129
|
const byText = txt => canvas.getByText(txt);
|
|
130
130
|
const requestElement = canvasElement.querySelector('http-request'),
|
|
131
131
|
urlAttr = () => requestElement.getAttribute('url');
|
|
@@ -161,7 +161,7 @@ from <code>${a}</code>
|
|
|
161
161
|
}) => {
|
|
162
162
|
const canvas = within(canvasElement),
|
|
163
163
|
$t = async testId => (await canvas.findByTestId(testId)).textContent;
|
|
164
|
-
await canvas.findByText(
|
|
164
|
+
await canvas.findByText(Http404.args!.title as string);
|
|
165
165
|
await sleep(200);
|
|
166
166
|
expect(await $t('attr-status')).to.include('404');
|
|
167
167
|
},
|
|
@@ -177,7 +177,7 @@ from <code>${a}</code>
|
|
|
177
177
|
canvasElement
|
|
178
178
|
}) => {
|
|
179
179
|
const canvas = within(canvasElement);
|
|
180
|
-
await canvas.findByText(
|
|
180
|
+
await canvas.findByText(LifecycleInitialized.args!.title as string);
|
|
181
181
|
expect(await canvas.findByText('request')).toBeInTheDocument(); // after DCE initiated
|
|
182
182
|
expect(canvas.queryByText('response')).toBe(null); // response is not available
|
|
183
183
|
// wait while response appears ~ 0.5 seconds
|
|
@@ -198,7 +198,7 @@ from <code>${a}</code>
|
|
|
198
198
|
canvasElement
|
|
199
199
|
}) => {
|
|
200
200
|
const canvas = within(canvasElement);
|
|
201
|
-
await canvas.findByText(
|
|
201
|
+
await canvas.findByText(RequestResponseHeaders.args!.title as string);
|
|
202
202
|
await sleep(200);
|
|
203
203
|
|
|
204
204
|
// see response made by /reflect handler
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Configure-DOhzHFEs.js","./index-CaL3Qp7t.js","./index-BdcJ-iJ7.js","./index-D-8MO0q_.js","./index-DrFu-skq.js","./index-B3QjF0Ed.js","./attributes.test.stories-BJBuuXgZ.js","./index-BSz1w4Gl.js","./custom-element-BDGsYgbP.js","./css.test.stories-pgbBc17d.js","./dom-merge.test.stories-CXcYP_-J.js","./external-template.test.stories-CpJ68Ghy.js","./form.test.stories-D35lyqd8.js","./http-request.stories-CBbknCOO.js","./http-request-DNq59pnj.js","./handlers-CW9pDZnt.js","./local-storage.test.stories-BY-PWhuk.js","./location-element-hKpcXCdn.js","./location-element.test.stories-3auBYEaU.js","./module-url.test.stories-B7L9cL60.js","./set-url.test.stories-CuSuDLIx.js","./slice-events.test.stories-BkRKsKem.js","./slots.test.stories-BJCUWFkE.js","./version-select.test.stories-B3ybJn_Z.js","./entry-preview-C313OLrj.js","./entry-preview-docs-B7ORr9w5.js","./tiny-invariant-BxWVcicq.js","./preview-BhhEZcNS.js","./preview-ncvtW_hb.js","./preview-CcS4DQh8.js","./preview-BWzBA1C2.js","./preview-BRPR-UXC.js","./preview-CfWMRsRq.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import"../sb-preview/runtime.js";(function(){const _=document.createElement("link").relList;if(_&&_.supports&&_.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))m(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&m(o)}).observe(document,{childList:!0,subtree:!0});function a(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function m(r){if(r.ep)return;r.ep=!0;const s=a(r);fetch(r.href,s)}})();const R="modulepreload",T=function(e,_){return new URL(e,_).href},d={},t=function(_,a,m){let r=Promise.resolve();if(a&&a.length>0){const o=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),O=i?.nonce||i?.getAttribute("nonce");r=Promise.allSettled(a.map(n=>{if(n=T(n,m),n in d)return;d[n]=!0;const u=n.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(!!m)for(let l=o.length-1;l>=0;l--){const E=o[l];if(E.href===n&&(!u||E.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${f}`))return;const c=document.createElement("link");if(c.rel=u?"stylesheet":R,u||(c.as="script"),c.crossOrigin="",c.href=n,O&&c.setAttribute("nonce",O),document.head.appendChild(c),u)return new Promise((l,E)=>{c.addEventListener("load",l),c.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${n}`)))})}))}function s(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return r.then(o=>{for(const i of o||[])i.status==="rejected"&&s(i.reason);return _().catch(s)})},{createBrowserChannel:L}=__STORYBOOK_MODULE_CHANNELS__,{addons:P}=__STORYBOOK_MODULE_PREVIEW_API__,p=L({page:"preview"});P.setChannel(p);window.__STORYBOOK_ADDONS_CHANNEL__=p;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=p);const y={"./src/stories/Configure.mdx":async()=>t(()=>import("./Configure-DOhzHFEs.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),"./src/stories/attributes.test.stories.ts":async()=>t(()=>import("./attributes.test.stories-BJBuuXgZ.js"),__vite__mapDeps([6,7,8]),import.meta.url),"./src/stories/css.test.stories.ts":async()=>t(()=>import("./css.test.stories-pgbBc17d.js"),__vite__mapDeps([9,7,8]),import.meta.url),"./src/stories/dom-merge.test.stories.ts":async()=>t(()=>import("./dom-merge.test.stories-CXcYP_-J.js"),__vite__mapDeps([10,7,8]),import.meta.url),"./src/stories/external-template.test.stories.ts":async()=>t(()=>import("./external-template.test.stories-CpJ68Ghy.js"),__vite__mapDeps([11,7,8]),import.meta.url),"./src/stories/form.test.stories.ts":async()=>t(()=>import("./form.test.stories-D35lyqd8.js"),__vite__mapDeps([12,7,8]),import.meta.url),"./src/stories/http-request.stories.ts":async()=>t(()=>import("./http-request.stories-CBbknCOO.js"),__vite__mapDeps([13,7,8,14,15]),import.meta.url),"./src/stories/local-storage.test.stories.ts":async()=>t(()=>import("./local-storage.test.stories-BY-PWhuk.js"),__vite__mapDeps([16,7,8,14,17]),import.meta.url),"./src/stories/location-element.test.stories.ts":async()=>t(()=>import("./location-element.test.stories-3auBYEaU.js"),__vite__mapDeps([18,7,8,17]),import.meta.url),"./src/stories/module-url.test.stories.ts":async()=>t(()=>import("./module-url.test.stories-B7L9cL60.js"),__vite__mapDeps([19,7,8]),import.meta.url),"./src/stories/set-url.test.stories.ts":async()=>t(()=>import("./set-url.test.stories-CuSuDLIx.js"),__vite__mapDeps([20,7,8,17]),import.meta.url),"./src/stories/slice-events.test.stories.ts":async()=>t(()=>import("./slice-events.test.stories-BkRKsKem.js"),__vite__mapDeps([21,7,8]),import.meta.url),"./src/stories/slots.test.stories.ts":async()=>t(()=>import("./slots.test.stories-BJCUWFkE.js"),__vite__mapDeps([22,7,8]),import.meta.url),"./src/stories/version-select.test.stories.ts":async()=>t(()=>import("./version-select.test.stories-B3ybJn_Z.js"),__vite__mapDeps([23,7,8,14,17]),import.meta.url)};async function I(e){return y[e]()}const{composeConfigs:V,PreviewWeb:D,ClientApi:g}=__STORYBOOK_MODULE_PREVIEW_API__,v=async(e=[])=>{const _=await Promise.all([e.at(0)??t(()=>import("./entry-preview-C313OLrj.js").then(a=>a.e),__vite__mapDeps([24,4]),import.meta.url),e.at(1)??t(()=>import("./entry-preview-docs-B7ORr9w5.js"),__vite__mapDeps([25,24,4,2,26]),import.meta.url),e.at(2)??t(()=>import("./preview-BhhEZcNS.js"),__vite__mapDeps([27,3]),import.meta.url),e.at(3)??t(()=>import("./preview-C992A1Y-.js"),[],import.meta.url),e.at(4)??t(()=>import("./preview-DHPc-V4N.js"),[],import.meta.url),e.at(5)??t(()=>import("./preview-ncvtW_hb.js"),__vite__mapDeps([28,4]),import.meta.url),e.at(6)??t(()=>import("./preview-DYzi3Z2p.js"),[],import.meta.url),e.at(7)??t(()=>import("./preview-CcS4DQh8.js"),__vite__mapDeps([29,26]),import.meta.url),e.at(8)??t(()=>import("./preview-BWzBA1C2.js"),__vite__mapDeps([30,4]),import.meta.url),e.at(9)??t(()=>import("./preview-caVMbCIR.js"),[],import.meta.url),e.at(10)??t(()=>import("./preview-BRPR-UXC.js"),__vite__mapDeps([31,7]),import.meta.url),e.at(11)??t(()=>import("./preview-CfWMRsRq.js"),__vite__mapDeps([32,15]),import.meta.url)]);return V(_)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new D(I,v);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{t as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ae as e}from"./index-
|
|
1
|
+
import{ae as e}from"./index-CaL3Qp7t.js";const o={},c=e.createContext(o);function u(n){const t=e.useContext(c);return e.useMemo(function(){return typeof n=="function"?n(t):{...t,...n}},[t,n])}function s(n){let t;return n.disableParentContext?t=typeof n.components=="function"?n.components(o):n.components||o:t=u(n.components),e.createElement(c.Provider,{value:t},n.children)}export{s as M,u};
|