@epa-wg/custom-element-dist 0.0.26 → 0.0.27
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/.idea/custom-element-dist.iml +1 -5
- package/.storybook/preview.ts +1 -1
- package/README.md +4 -4
- package/bin/vitest/vitest-browser-importmaps.mjs +20 -20
- package/coverage/coverage-final.json +9 -9
- package/coverage/index.html +25 -25
- 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 +467 -308
- package/coverage/src/custom-element/demo/index.html +1 -1
- package/coverage/src/custom-element/demo/z.js.html +1 -1
- package/coverage/src/custom-element/http-request.js.html +12 -12
- package/coverage/src/custom-element/index.html +20 -20
- package/coverage/src/custom-element/local-storage.js.html +56 -41
- package/coverage/src/custom-element/location-element.js.html +4 -4
- package/coverage/src/custom-element/module-url.js/coverage.svg +1 -1
- package/coverage/src/custom-element/module-url.js.html +16 -10
- 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 +9 -12
- package/coverage/src/stories/coverage.svg +1 -1
- package/coverage/src/stories/css.test.stories.ts.html +1 -1
- package/coverage/src/stories/dom-merge.test.stories.ts.html +15 -9
- package/coverage/src/stories/external-template.test.stories.ts.html +8 -11
- package/coverage/src/stories/form.test.stories.ts.html +1 -1
- package/coverage/src/stories/http-request.stories.ts.html +1 -1
- package/coverage/src/stories/index.html +26 -26
- package/coverage/src/stories/local-storage.test.stories.ts/coverage.svg +1 -1
- package/coverage/src/stories/local-storage.test.stories.ts.html +87 -63
- package/coverage/src/stories/location-element.test.stories.ts.html +1 -1
- package/coverage/src/stories/module-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/set-url.test.stories.ts.html +1 -1
- package/coverage/src/stories/slice-events.test.stories.ts.html +1 -1
- package/coverage/src/stories/slots.test.stories.ts.html +1 -1
- package/coverage/src/stories/testStoryBook.ts.html +1 -1
- package/coverage/src/stories/version-select.test.stories.ts.html +1 -1
- package/coverage/src/sum.ts.html +1 -1
- package/dist/{custom-element-b7c_7Kz4.js → custom-element-BMMsP1Dy.js} +204 -156
- package/dist/custom-element-CPSk7s0j.cjs +87 -0
- package/dist/custom-element-bundle.cjs +1 -1
- package/dist/custom-element-bundle.js +28 -25
- package/dist/demo/a.svg +27 -0
- package/dist/demo/demo.css +6 -7
- package/dist/demo/external-template.html +3 -3
- package/dist/demo/npm-versions-demo.html +21 -8
- package/dist/demo/npm-versions.html +54 -25
- package/dist/demo/s.xml +3 -28
- package/dist/demo/s.xslt +51 -92
- package/dist/demo/z.html +32 -61
- package/dist/demo/z1.html +34 -0
- package/dist/local-storage-78EivJ_B.cjs +1 -0
- package/dist/local-storage-DzmNKzgN.js +66 -0
- package/dist/mockServiceWorker.js +1 -1
- package/package.json +27 -25
- package/public/demo/a.svg +27 -0
- package/public/demo/demo.css +6 -7
- package/public/demo/external-template.html +3 -3
- package/public/demo/npm-versions-demo.html +21 -8
- package/public/demo/npm-versions.html +54 -25
- package/public/demo/s.xml +3 -28
- package/public/demo/s.xslt +51 -92
- package/public/demo/z.html +32 -61
- package/public/demo/z1.html +34 -0
- package/public/mockServiceWorker.js +1 -1
- package/src/custom-element/custom-element.js +67 -14
- package/src/custom-element/demo/a.svg +27 -0
- package/src/custom-element/demo/demo.css +6 -7
- package/src/custom-element/demo/external-template.html +3 -3
- package/src/custom-element/demo/npm-versions-demo.html +21 -8
- package/src/custom-element/demo/npm-versions.html +54 -25
- package/src/custom-element/demo/s.xml +3 -28
- package/src/custom-element/demo/s.xslt +51 -92
- package/src/custom-element/demo/z.html +32 -61
- package/src/custom-element/demo/z1.html +34 -0
- package/src/custom-element/ide/web-types-dce.json +1 -1
- package/src/custom-element/ide/web-types-xsl.json +1 -1
- package/src/custom-element/index.html +19 -2
- package/src/custom-element/local-storage.js +19 -14
- package/src/custom-element/module-url.js +3 -2
- package/src/mocks/versions.mock.ts +8 -8
- package/src/stories/__screenshots__/http-request.test.ts/http-request-url-change-1.png +0 -0
- package/src/stories/attributes.test.stories.ts +3 -4
- package/src/stories/dom-merge.test.stories.ts +9 -7
- package/src/stories/external-template.test.stories.ts +2 -3
- package/src/stories/local-storage.test.stories.ts +61 -53
- package/src/sum.test.ts +5 -5
- package/src/sum.ts +3 -3
- package/storybook-static/assets/{Color-KGDBMAHA-CH-YyWYq.js → Color-KGDBMAHA-CJo5gHY3.js} +1 -1
- package/storybook-static/assets/{Configure-DFL_bm2M.js → Configure-DdXbGKhY.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-PKQXORMH-Bz-_1hmS.js → DocsRenderer-PKQXORMH-DLnpL5hE.js} +2 -2
- package/storybook-static/assets/{attributes.test.stories-DIQXccHc.js → attributes.test.stories-Bt5V18qO.js} +10 -11
- package/storybook-static/assets/{css.test.stories-BV2hi4CY.js → css.test.stories-CGYy2daE.js} +1 -1
- package/storybook-static/assets/{custom-element-wn23PUwN.js → custom-element-D8hcDZHh.js} +116 -82
- package/storybook-static/assets/{dom-merge.test.stories-Dws0C2-g.js → dom-merge.test.stories-XlsZ0UvX.js} +22 -20
- package/storybook-static/assets/{external-template.test.stories-BHO48b0j.js → external-template.test.stories-Bt_Pflu8.js} +7 -8
- package/storybook-static/assets/{form.test.stories-dv9mwp24.js → form.test.stories-B0NoI8wm.js} +1 -1
- package/storybook-static/assets/{handlers-CaCq2ZPF.js → handlers-B5969HUu.js} +13 -13
- package/storybook-static/assets/{http-request.stories-B2ke7LtS.js → http-request.stories-B2skuTFV.js} +1 -1
- package/storybook-static/assets/iframe-Dfrt81rk.js +2 -0
- package/storybook-static/assets/{index-BnXBQqj9.js → index-Ay195x2L.js} +4 -4
- package/storybook-static/assets/{index-sm7QlJZE.js → index-C3ChPTMh.js} +1 -1
- package/storybook-static/assets/{index-Dz4OaB2k.js → index-C7lvoJNv.js} +1 -1
- package/storybook-static/assets/{index-Cpxqn5iQ.js → index-Gpdhz4ab.js} +1 -1
- package/storybook-static/assets/local-storage.test.stories-DfY6feqG.js +420 -0
- package/storybook-static/assets/{location-element.test.stories-BiFvBop7.js → location-element.test.stories-944AotIJ.js} +1 -1
- package/storybook-static/assets/{module-url.test.stories-BXoM34tX.js → module-url.test.stories-DSKcwApl.js} +1 -1
- package/storybook-static/assets/preview-AJR7rVPD.js +52 -0
- package/storybook-static/assets/{preview-Cg7hXPRq.js → preview-CadgX-4y.js} +2 -2
- package/storybook-static/assets/{set-url.test.stories-Cg5Z0r7x.js → set-url.test.stories-DjLHKkEh.js} +1 -1
- package/storybook-static/assets/{slice-events.test.stories-D_ttGp3g.js → slice-events.test.stories-8I_BrHd6.js} +1 -1
- package/storybook-static/assets/{slots.test.stories-DBNXOm0T.js → slots.test.stories-CvZz4jyP.js} +1 -1
- package/storybook-static/assets/{version-select.test.stories-CgV3UCim.js → version-select.test.stories-DSxmJylI.js} +1 -1
- package/storybook-static/demo/a.svg +27 -0
- package/storybook-static/demo/demo.css +6 -7
- package/storybook-static/demo/external-template.html +3 -3
- package/storybook-static/demo/npm-versions-demo.html +21 -8
- package/storybook-static/demo/npm-versions.html +54 -25
- package/storybook-static/demo/s.xml +3 -28
- package/storybook-static/demo/s.xslt +51 -92
- package/storybook-static/demo/z.html +32 -61
- package/storybook-static/demo/z1.html +34 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/mockServiceWorker.js +1 -1
- package/storybook-static/project.json +1 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +39 -36
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +38 -1
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/compiler.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.vscode/settings.json +0 -24
- package/dist/custom-element-CckoVsvO.cjs +0 -53
- package/dist/local-storage-Boafngui.cjs +0 -1
- package/dist/local-storage-BqDEu2kF.js +0 -59
- package/storybook-static/assets/iframe-D4Sos1HO.js +0 -2
- package/storybook-static/assets/local-storage.test.stories-BpogLNq-.js +0 -419
- package/storybook-static/assets/preview-oHxXRSIu.js +0 -48
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{w as d,e as a,u as
|
|
1
|
+
import{w as d,e as a,u as c,f as u}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.js";function p(n){return new Promise(e=>setTimeout(e,n))}function m(n){const{title:e,body:t}=n;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${e}</legend>
|
|
4
4
|
${t}
|
|
5
5
|
</fieldset>
|
|
6
|
-
`}const h={title:"dom-merge",render:
|
|
6
|
+
`}const h={title:"dom-merge",render:m},s={args:{title:"Chars count in textarea",body:`
|
|
7
7
|
<p>Counter update happens on change event(focus change). The update should not interfere with the input</p>
|
|
8
8
|
<custom-element>
|
|
9
9
|
<form>
|
|
@@ -16,7 +16,7 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
16
16
|
<br/><input placeholder="after textarea input, click here " data-testid="refocus-id" />
|
|
17
17
|
</form>
|
|
18
18
|
</custom-element>
|
|
19
|
-
`},play:async({canvasElement:n})=>{const e=
|
|
19
|
+
`},play:async({canvasElement:n})=>{const e=s.args.title,t=d(n);await t.findByText(e),await p(100),a(await t.findByTestId("textarea-id")).toBeInTheDocument();const i=t.getByTestId("textarea-id");i.value="",i.focus(),await c.keyboard(e),a(i.value).toEqual(e),a(i.value.length).toEqual(e.length),t.getByTestId("refocus-id").focus(),await p(10),a(t.getByTestId("counter-id").textContent).toEqual(""+e?.length,"counter of symbols")}},o={args:{title:"Word count in HTML input field",body:`
|
|
20
20
|
<p>Counter update happens on keyup event. The update should not interfere with the input</p>
|
|
21
21
|
<custom-element>
|
|
22
22
|
<form>
|
|
@@ -46,20 +46,20 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
46
46
|
<p><b>txt</b> slice:</p> <blockquote> {//slice/txt} </blockquote>
|
|
47
47
|
</form>
|
|
48
48
|
</custom-element>
|
|
49
|
-
`},play:async({canvasElement:n})=>{const e=
|
|
49
|
+
`},play:async({canvasElement:n})=>{const e=o.args.title,t=d(n);await t.findByText(e);const i=await t.findByTestId("input-id");i.value="",i.focus(),a(i).toBeInTheDocument(),await c.keyboard(e),await p(10),a(i.value).toEqual(e),a(t.getByTestId("chars-id").textContent.trim()).toEqual(""+e.length,"counter of symbols"),a(e.split(" ").length).toEqual(6,"counter of words in text sample"),a(t.getByTestId("words-id").textContent.trim()).toEqual("6","counter of words in render")}},r={args:{title:"Order preserving on 2nd transform",body:`
|
|
50
50
|
<p>IF condition content should be displayed in place where it is defined (not shifted down on the parent children)</p>
|
|
51
51
|
<custom-element>
|
|
52
52
|
<form slice="f1">
|
|
53
|
-
<label>
|
|
54
|
-
<input type="checkbox" name="c1"
|
|
53
|
+
<label data-testid="cb1">
|
|
54
|
+
<input type="checkbox" name="c1" />
|
|
55
55
|
click to display #1 bellow
|
|
56
56
|
</label>
|
|
57
57
|
<br data-testid="beforeC1"/>
|
|
58
58
|
<if test="//c1">
|
|
59
59
|
<p data-testid="isC1">#1</p>
|
|
60
60
|
</if>
|
|
61
|
-
<label>
|
|
62
|
-
<input type="checkbox" name="c2"
|
|
61
|
+
<label data-testid="cb2">
|
|
62
|
+
<input type="checkbox" name="c2" />
|
|
63
63
|
click to display #2 bellow
|
|
64
64
|
</label>
|
|
65
65
|
<br data-testid="beforeC2"/>
|
|
@@ -68,7 +68,7 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
68
68
|
</if>
|
|
69
69
|
</form>
|
|
70
70
|
</custom-element>
|
|
71
|
-
`},play:async({canvasElement:n})=>{const e=r.args.title,t=d(n);await t.findByText(e),await
|
|
71
|
+
`},play:async({canvasElement:n})=>{const e=r.args.title,t=d(n);await t.findByText(e),await u.click(await t.findByTestId("cb1")),await a(await t.findByText("#1")).toBeInTheDocument(),await u.click(t.getByTestId("cb2")),await a(await t.findByText("#2")).toBeInTheDocument(),await a(t.getByTestId("beforeC1").nextElementSibling).toEqual(t.getByTestId("isC1"))}},l={args:{title:"read system validity message",body:`
|
|
72
72
|
<p>validationMessage propagated into slice as 'validation-message' attribute</p>
|
|
73
73
|
<ol>
|
|
74
74
|
<li> type in input field</li>
|
|
@@ -89,7 +89,7 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
89
89
|
</form>
|
|
90
90
|
</template>
|
|
91
91
|
</custom-element>
|
|
92
|
-
`},play:async({canvasElement:n})=>{const e=
|
|
92
|
+
`},play:async({canvasElement:n})=>{const e=l.args.title,t=d(n);await t.findByText(e),await c.type(t.getByTestId("inp1"),"Hi"),await c.clear(t.getByTestId("inp1")),await c.click(t.getByTestId("btn1")),await a(await t.findByTestId("var1")).toBeInTheDocument(),await a(t.getByTestId("var1").textContent).toEqual(t.getByTestId("inp1").validationMessage),await a(t.getByTestId("var1").textContent.length>1).toEqual(!0)}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
93
93
|
args: {
|
|
94
94
|
title: 'Chars count in textarea',
|
|
95
95
|
body: \`
|
|
@@ -125,7 +125,7 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
125
125
|
await sleep(10);
|
|
126
126
|
expect(canvas.getByTestId('counter-id').textContent).toEqual('' + titleText?.length, 'counter of symbols');
|
|
127
127
|
}
|
|
128
|
-
}`,...
|
|
128
|
+
}`,...s.parameters?.docs?.source}}};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
|
|
129
129
|
args: {
|
|
130
130
|
title: 'Word count in HTML input field',
|
|
131
131
|
body: \`
|
|
@@ -177,23 +177,23 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
177
177
|
expect(titleText.split(' ').length).toEqual(6, 'counter of words in text sample');
|
|
178
178
|
expect(canvas.getByTestId('words-id').textContent.trim()).toEqual('6', 'counter of words in render');
|
|
179
179
|
}
|
|
180
|
-
}`,...
|
|
180
|
+
}`,...o.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
181
181
|
args: {
|
|
182
182
|
title: 'Order preserving on 2nd transform',
|
|
183
183
|
body: \`
|
|
184
184
|
<p>IF condition content should be displayed in place where it is defined (not shifted down on the parent children)</p>
|
|
185
185
|
<custom-element>
|
|
186
186
|
<form slice="f1">
|
|
187
|
-
<label>
|
|
188
|
-
<input type="checkbox" name="c1"
|
|
187
|
+
<label data-testid="cb1">
|
|
188
|
+
<input type="checkbox" name="c1" />
|
|
189
189
|
click to display #1 bellow
|
|
190
190
|
</label>
|
|
191
191
|
<br data-testid="beforeC1"/>
|
|
192
192
|
<if test="//c1">
|
|
193
193
|
<p data-testid="isC1">#1</p>
|
|
194
194
|
</if>
|
|
195
|
-
<label>
|
|
196
|
-
<input type="checkbox" name="c2"
|
|
195
|
+
<label data-testid="cb2">
|
|
196
|
+
<input type="checkbox" name="c2" />
|
|
197
197
|
click to display #2 bellow
|
|
198
198
|
</label>
|
|
199
199
|
<br data-testid="beforeC2"/>
|
|
@@ -210,13 +210,15 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
210
210
|
const titleText = (OrderPreservingOn2ndTransform.args!.title as string);
|
|
211
211
|
const canvas = within(canvasElement);
|
|
212
212
|
await canvas.findByText(titleText);
|
|
213
|
-
|
|
213
|
+
|
|
214
|
+
// userEvent breaks under FF in vitest, fireEvent works
|
|
215
|
+
await fireEvent.click(await canvas.findByTestId('cb1'));
|
|
214
216
|
await expect(await canvas.findByText('#1')).toBeInTheDocument();
|
|
215
|
-
await
|
|
217
|
+
await fireEvent.click(canvas.getByTestId('cb2'));
|
|
216
218
|
await expect(await canvas.findByText('#2')).toBeInTheDocument();
|
|
217
219
|
await expect(canvas.getByTestId("beforeC1").nextElementSibling).toEqual(canvas.getByTestId("isC1"));
|
|
218
220
|
}
|
|
219
|
-
}`,...r.parameters?.docs?.source}}};
|
|
221
|
+
}`,...r.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
220
222
|
args: {
|
|
221
223
|
title: 'read system validity message',
|
|
222
224
|
body: \`
|
|
@@ -255,4 +257,4 @@ import{w as d,e as a,u as s}from"./custom-element-wn23PUwN.js";import"./index-C8
|
|
|
255
257
|
await expect(canvas.getByTestId("var1").textContent).toEqual(canvas.getByTestId("inp1").validationMessage);
|
|
256
258
|
await expect(canvas.getByTestId("var1").textContent.length > 1).toEqual(true);
|
|
257
259
|
}
|
|
258
|
-
}`,...
|
|
260
|
+
}`,...l.parameters?.docs?.source}}};const y=["CharsCountInTextarea","WordCountOnType","OrderPreservingOn2ndTransform","ReadSystemValidityMessage"];export{s as CharsCountInTextarea,r as OrderPreservingOn2ndTransform,l as ReadSystemValidityMessage,o as WordCountOnType,y as __namedExportsOrder,h as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l,e as a}from"./custom-element-
|
|
1
|
+
import{w as l,e as a}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.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}
|
|
@@ -13,7 +13,7 @@ import{w as l,e as a}from"./custom-element-wn23PUwN.js";import"./index-C8k3Z-3Y.
|
|
|
13
13
|
|
|
14
14
|
<dce-internal data-testid="slot-override">👋</dce-internal>
|
|
15
15
|
<dce-internal data-testid="slot-default"></dce-internal>
|
|
16
|
-
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(s.args.title);const n=
|
|
16
|
+
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(s.args.title);const n=T=>e.getByTestId(T).textContent.trim();a(n("slot-override")).toEqual("👋 World!"),a(n("slot-default")).toEqual("Hello World!")}},i={args:{title:"no tag, template in same DOM",body:`
|
|
17
17
|
<template id="template2">
|
|
18
18
|
🏗️ construction
|
|
19
19
|
</template>
|
|
@@ -39,7 +39,7 @@ import{w as l,e as a}from"./custom-element-wn23PUwN.js";import"./index-C8k3Z-3Y.
|
|
|
39
39
|
<custom-element src="/tree.xsl" data-smile="👼" data-basket="🍒">
|
|
40
40
|
<i>inline DCE loading from XSLT ...</i>
|
|
41
41
|
</custom-element>
|
|
42
|
-
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(o.args.title),a(t.querySelector("dce-external-4").innerHTML).to.include("Hi"),a(t.querySelector('[data-smile="👼"]').innerHTML).to.include("loading from XSLT ..."),await
|
|
42
|
+
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(o.args.title),a(t.querySelector("dce-external-4").innerHTML).to.include("Hi"),a(t.querySelector('[data-smile="👼"]').innerHTML).to.include("loading from XSLT ..."),await a(await e.findByTestId("data-fruit")).toHaveTextContent("🍌"),await a(await e.findByTestId("data-smile")).toHaveTextContent("👼")}},c={args:{title:"external HTML template",body:`
|
|
43
43
|
<custom-element tag="dce-external-5" src="/html-template.html">
|
|
44
44
|
<template><i>loading from HTML file ...</i></template>
|
|
45
45
|
</custom-element>
|
|
@@ -68,11 +68,11 @@ import{w as l,e as a}from"./custom-element-wn23PUwN.js";import"./index-C8k3Z-3Y.
|
|
|
68
68
|
<custom-element src="/html-template.html#none">
|
|
69
69
|
<template><i data-testid="no-id">element with id=none is missing in template</i></template>
|
|
70
70
|
</custom-element>
|
|
71
|
-
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(x.args.title),await
|
|
71
|
+
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(x.args.title),await f(100);const n=await e.findByTestId("no-id");a(n.textContent).to.include("element with id=none is missing in template")}},y={args:{title:"external file with embedding of another external DCE",body:`
|
|
72
72
|
<custom-element src="/embed-1.html">
|
|
73
73
|
loading from embed-1.html ...
|
|
74
74
|
</custom-element>
|
|
75
|
-
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(y.args.title),await
|
|
75
|
+
`},play:async({canvasElement:t})=>{const e=l(t);await e.findByText(y.args.title),await f(1),a(await e.findByText("embed-1.html")).toBeInTheDocument(),a(await e.findByText("🖖")).toBeInTheDocument()}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
|
|
76
76
|
args: {
|
|
77
77
|
title: 'Template in page DOM',
|
|
78
78
|
body: \`
|
|
@@ -166,9 +166,8 @@ import{w as l,e as a}from"./custom-element-wn23PUwN.js";import"./index-C8k3Z-3Y.
|
|
|
166
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
|
-
await
|
|
170
|
-
expect(canvas.
|
|
171
|
-
expect(canvas.getByTestId('data-smile').innerHTML).to.include('👼');
|
|
169
|
+
await expect(await canvas.findByTestId('data-fruit')).toHaveTextContent('🍌');
|
|
170
|
+
await expect(await canvas.findByTestId('data-smile')).toHaveTextContent('👼');
|
|
172
171
|
}
|
|
173
172
|
}`,...o.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
174
173
|
args: {
|
package/storybook-static/assets/{form.test.stories-dv9mwp24.js → form.test.stories-B0NoI8wm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i,e as n,u as e}from"./custom-element-
|
|
1
|
+
import{w as i,e as n,u as e}from"./custom-element-D8hcDZHh.js";import"./index-C8k3Z-3Y.js";function l(a){const{title:t,body:s}=a;return`
|
|
2
2
|
<fieldset>
|
|
3
3
|
<legend>${t}</legend>
|
|
4
4
|
${s}
|