@qwik-custom-elements/adapter-stencil 1.0.0 → 1.0.3
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/README.md +2 -3
- package/dist/bundle-graph.json +1 -1
- package/dist/client/client-setup.d.ts +1 -1
- package/dist/client/index.qwik.mjs +178 -0
- package/dist/client/stencil-csr.d.ts +2 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.qwik.mjs +225 -185
- package/dist/q-manifest.json +24 -336
- package/dist/qwikloader-BOWbeQFD.js +101 -0
- package/dist/ssr/index.qwik.mjs +346 -0
- package/dist/ssr/stencil-ssr.d.ts +40 -7
- package/dist/ssr/stencil-ssr.d.ts.map +1 -1
- package/dist/ssr/styles-core.d.ts +2 -2
- package/package.json +51 -14
- package/dist/client/client-setup.test.d.ts +0 -2
- package/dist/client/client-setup.test.d.ts.map +0 -1
- package/dist/client/index.cjs +0 -1
- package/dist/client/index.js +0 -6
- package/dist/client/stencil-csr-props.test.d.ts +0 -2
- package/dist/client/stencil-csr-props.test.d.ts.map +0 -1
- package/dist/client-setup-C_qW_ZSR.cjs +0 -1
- package/dist/client-setup-D-ffVtNL.js +0 -53
- package/dist/client-setup.ts_createStencilClientSetup_runSetup_6wDTmOSdSbc-CPKK-h2J.js +0 -11
- package/dist/client-setup.ts_createStencilClientSetup_runSetup_6wDTmOSdSbc-Dz0z3zer.cjs +0 -1
- package/dist/core.min-Qm7Mxv6F.js +0 -1846
- package/dist/core.min-vJ4M2jcU.cjs +0 -2
- package/dist/index.qwik.cjs +0 -8
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/preloader-Bietv0BS.js +0 -118
- package/dist/preloader-Cqc--uBU.cjs +0 -1
- package/dist/qwikloader-C01zMTOC.js +0 -102
- package/dist/qwikloader-vFGnpgvG.cjs +0 -2
- package/dist/ssr/element-props-utils.test.d.ts +0 -2
- package/dist/ssr/element-props-utils.test.d.ts.map +0 -1
- package/dist/ssr/index.cjs +0 -1
- package/dist/ssr/index.js +0 -29
- package/dist/ssr/styles-core.test.d.ts +0 -2
- package/dist/ssr/styles-core.test.d.ts.map +0 -1
- package/dist/stencil-csr-B1U9s3VQ.js +0 -24
- package/dist/stencil-csr-D6zt1Am9.cjs +0 -1
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_pD3ekIZcUT0-ChAZ0hL3.js +0 -37
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_pD3ekIZcUT0-cGN__hqm.cjs +0 -1
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_useVisibleTask_1_dqWPXf9eNnk-BYiBxXW-.js +0 -34
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_useVisibleTask_1_dqWPXf9eNnk-sFN0uMI_.cjs +0 -1
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_useVisibleTask_y00qkhhKua8-BSsN2V78.cjs +0 -1
- package/dist/stencil-csr.tsx_createStencilCSRComponent_component_useVisibleTask_y00qkhhKua8-CF00O7hf.js +0 -19
- package/dist/stencil-ssr-BHjT94rd.js +0 -118
- package/dist/stencil-ssr-UlYtcG0-.cjs +0 -1
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-46y8eTjO.cjs +0 -1
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-BfqXBofh.js +0 -42
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useOnDocument_bvALMlewx7Q-DA73DRke.cjs +0 -1
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useOnDocument_bvALMlewx7Q-DdcskN1z.js +0 -10
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_1_aXg7AuatGTc-61dSP-JG.cjs +0 -1
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_1_aXg7AuatGTc-Byrz3fUp.js +0 -34
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_IH8I3eLdwI0-BtIygb8E.js +0 -12
- package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_IH8I3eLdwI0-DNQBT8Vc.cjs +0 -1
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { d, L as S } from "./core.min-Qm7Mxv6F.js";
|
|
2
|
-
const c = "__stencil_ssr_style_store__";
|
|
3
|
-
function m(e, t = "", n) {
|
|
4
|
-
return e && e.length > 0 ? e : n ? `sc-${n}` : `inline-${t.length}-${t.slice(0, 32)}`;
|
|
5
|
-
}
|
|
6
|
-
function u() {
|
|
7
|
-
return {
|
|
8
|
-
stylesByKey: /* @__PURE__ */ new Map()
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
function h(e) {
|
|
12
|
-
const t = e.sharedMap.get(c);
|
|
13
|
-
if (t) return t;
|
|
14
|
-
const n = u();
|
|
15
|
-
return e.sharedMap.set(c, n), n;
|
|
16
|
-
}
|
|
17
|
-
function p(e, t, n) {
|
|
18
|
-
if (!(!e.styles || e.styles.length === 0))
|
|
19
|
-
for (const r of e.styles) {
|
|
20
|
-
const s = r.content ?? "", o = r.id;
|
|
21
|
-
if (!s) continue;
|
|
22
|
-
const i = m(o, s, n);
|
|
23
|
-
t.stylesByKey.set(i, s);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function M(e, t) {
|
|
27
|
-
const n = t?.keyPrefix ?? "stencil-ssr", r = t?.nonce;
|
|
28
|
-
return [
|
|
29
|
-
...e.stylesByKey.entries()
|
|
30
|
-
].map(([s, o]) => ({
|
|
31
|
-
key: `${n}-${s}`,
|
|
32
|
-
style: o,
|
|
33
|
-
props: r ? {
|
|
34
|
-
nonce: r
|
|
35
|
-
} : void 0
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
const a = "__stencil_ssr_inline_emitted__", l = /* @__PURE__ */ new WeakMap();
|
|
39
|
-
let _ = 0;
|
|
40
|
-
function g(e) {
|
|
41
|
-
if (!e || typeof e != "object" && typeof e != "function") return -1;
|
|
42
|
-
const t = e, n = l.get(t);
|
|
43
|
-
if (n) return n;
|
|
44
|
-
const r = ++_;
|
|
45
|
-
return l.set(t, r), r;
|
|
46
|
-
}
|
|
47
|
-
function E() {
|
|
48
|
-
const e = globalThis.qcAsyncRequestStore?.getStore?.();
|
|
49
|
-
if (!e?.sharedMap || !(e.sharedMap instanceof Map)) return /* @__PURE__ */ new Set();
|
|
50
|
-
const t = e.sharedMap.get(a);
|
|
51
|
-
if (t) return t;
|
|
52
|
-
const n = /* @__PURE__ */ new Set();
|
|
53
|
-
return e.sharedMap.set(a, n), n;
|
|
54
|
-
}
|
|
55
|
-
function K(e, t) {
|
|
56
|
-
const n = E(), r = u();
|
|
57
|
-
p(e, r, t);
|
|
58
|
-
let s = "";
|
|
59
|
-
for (const [o, i] of r.stylesByKey) n.has(o) || (n.add(o), s += `<style sty-id="${o}">${i}</style>`);
|
|
60
|
-
return s;
|
|
61
|
-
}
|
|
62
|
-
const f = "<!--SLOT-->";
|
|
63
|
-
function y(e) {
|
|
64
|
-
return `<!--SLOT:${e}-->`;
|
|
65
|
-
}
|
|
66
|
-
function I(e, t) {
|
|
67
|
-
return e?.querySelector(t);
|
|
68
|
-
}
|
|
69
|
-
function T(e) {
|
|
70
|
-
return document.querySelector(`[data-stencil-wrapper-id="${e}"]`) ?? void 0;
|
|
71
|
-
}
|
|
72
|
-
function $(e) {
|
|
73
|
-
return Object.entries(e ?? {}).filter(([t, n]) => t.trim().length > 0 && !!n);
|
|
74
|
-
}
|
|
75
|
-
function L(e) {
|
|
76
|
-
return $(e).map(([t, n]) => `${t}:${g(n)}`).sort().join("|");
|
|
77
|
-
}
|
|
78
|
-
function O(e, t) {
|
|
79
|
-
const n = t.map((r) => `<div slot="${r}" style="display:contents">${y(r)}</div>`).join("");
|
|
80
|
-
return `<${e}>${f}${n}</${e}>`;
|
|
81
|
-
}
|
|
82
|
-
function v(e, t) {
|
|
83
|
-
const n = [
|
|
84
|
-
{
|
|
85
|
-
marker: f,
|
|
86
|
-
name: void 0
|
|
87
|
-
},
|
|
88
|
-
...t.map((s) => ({
|
|
89
|
-
marker: y(s),
|
|
90
|
-
name: s
|
|
91
|
-
}))
|
|
92
|
-
], r = /* @__PURE__ */ new Map();
|
|
93
|
-
for (const s of n) {
|
|
94
|
-
const o = e.indexOf(s.marker);
|
|
95
|
-
o !== -1 && r.set(s.marker, o);
|
|
96
|
-
}
|
|
97
|
-
return n.filter((s) => r.has(s.marker)).sort((s, o) => r.get(s.marker) - r.get(o.marker));
|
|
98
|
-
}
|
|
99
|
-
function b(e, t) {
|
|
100
|
-
return /* @__PURE__ */ d(/* @__PURE__ */ S(() => import("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-BfqXBofh.js"), "s_IlVdOHKZfN0", [
|
|
101
|
-
t,
|
|
102
|
-
e
|
|
103
|
-
]));
|
|
104
|
-
}
|
|
105
|
-
export {
|
|
106
|
-
T as a,
|
|
107
|
-
I as b,
|
|
108
|
-
$ as c,
|
|
109
|
-
K as d,
|
|
110
|
-
O as e,
|
|
111
|
-
v as f,
|
|
112
|
-
L as g,
|
|
113
|
-
p as h,
|
|
114
|
-
b as i,
|
|
115
|
-
u as j,
|
|
116
|
-
h as k,
|
|
117
|
-
M as t
|
|
118
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./core.min-vJ4M2jcU.cjs"),a="__stencil_ssr_style_store__";function p(e,t="",n){return e&&e.length>0?e:n?`sc-${n}`:`inline-${t.length}-${t.slice(0,32)}`}function c(){return{stylesByKey:new Map}}function E(e){const t=e.sharedMap.get(a);if(t)return t;const n=c();return e.sharedMap.set(a,n),n}function y(e,t,n){if(!(!e.styles||e.styles.length===0))for(const r of e.styles){const s=r.content??"",o=r.id;if(!s)continue;const i=p(o,s,n);t.stylesByKey.set(i,s)}}function g(e,t){const n=t?.keyPrefix??"stencil-ssr",r=t?.nonce;return[...e.stylesByKey.entries()].map(([s,o])=>({key:`${n}-${s}`,style:o,props:r?{nonce:r}:void 0}))}const u="__stencil_ssr_inline_emitted__",S=new WeakMap;let _=0;function $(e){if(!e||typeof e!="object"&&typeof e!="function")return-1;const t=e,n=S.get(t);if(n)return n;const r=++_;return S.set(t,r),r}function h(){const e=globalThis.qcAsyncRequestStore?.getStore?.();if(!e?.sharedMap||!(e.sharedMap instanceof Map))return new Set;const t=e.sharedMap.get(u);if(t)return t;const n=new Set;return e.sharedMap.set(u,n),n}function k(e,t){const n=h(),r=c();y(e,r,t);let s="";for(const[o,i]of r.stylesByKey)n.has(o)||(n.add(o),s+=`<style sty-id="${o}">${i}</style>`);return s}const d="<!--SLOT-->";function f(e){return`<!--SLOT:${e}-->`}function I(e,t){return e?.querySelector(t)}function K(e){return document.querySelector(`[data-stencil-wrapper-id="${e}"]`)??void 0}function m(e){return Object.entries(e??{}).filter(([t,n])=>t.trim().length>0&&!!n)}function M(e){return m(e).map(([t,n])=>`${t}:${$(n)}`).sort().join("|")}function v(e,t){const n=t.map(r=>`<div slot="${r}" style="display:contents">${f(r)}</div>`).join("");return`<${e}>${d}${n}</${e}>`}function O(e,t){const n=[{marker:d,name:void 0},...t.map(s=>({marker:f(s),name:s}))],r=new Map;for(const s of n){const o=e.indexOf(s.marker);o!==-1&&r.set(s.marker,o)}return n.filter(s=>r.has(s.marker)).sort((s,o)=>r.get(s.marker)-r.get(o.marker))}function T(e,t){return l.bc(l.Ls(()=>Promise.resolve().then(()=>require("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-46y8eTjO.cjs")),"s_IlVdOHKZfN0",[t,e]))}exports.buildInlineStylesHtml=k;exports.buildInputHtml=v;exports.collectSlotEntries=O;exports.collectStencilSsrStyles=y;exports.createStencilSSRBridgeComponent=T;exports.createStencilSsrStyleStore=c;exports.getEventEntries=m;exports.getEventsDependencyKey=M;exports.getOrCreateStencilSsrStyleStore=E;exports.getStencilElement=I;exports.getWrapperElement=K;exports.toDocumentHeadStyles=g;
|
package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-46y8eTjO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core.min-vJ4M2jcU.cjs"),c=s=>{const[a,d]=e.ve();e._r();const o=e.bt(s,["tagName","props","events","slots"]),t=e.Le(void 0),r=e.Le(!1),n=e.Mc(),l=s.slots??[];return e.Re("qinit",e.Ls(()=>Promise.resolve().then(()=>require("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useOnDocument_bvALMlewx7Q-DA73DRke.cjs")),"s_bvALMlewx7Q",[r])),e.He(e.Ls(()=>Promise.resolve().then(()=>require("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_IH8I3eLdwI0-DNQBT8Vc.cjs")),"s_IH8I3eLdwI0",[s,n,t])),e.He(e.Ls(()=>Promise.resolve().then(()=>require("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_1_aXg7AuatGTc-61dSP-JG.cjs")),"s_aXg7AuatGTc",[r,s,n,t])),e.zn("div",{ref:t,"data-stencil-wrapper-id":n,...o,style:{display:"contents"},children:[e.An(e.si,null,3,"Nj_8"),l.map(i=>e.An(e.si,{name:i},3,i))]},{"data-stencil-wrapper-id":e.ct,style:e.ct},0,"Nj_9")};exports.s_IlVdOHKZfN0=c;
|
package/dist/stencil-ssr.tsx_createStencilSSRBridgeComponent_component_IlVdOHKZfN0-BfqXBofh.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { v as _, _ as f, b as w, a as i, M as v, R as I, H as o, z as L, A as c, L as a, c as l, s as d } from "./core.min-Qm7Mxv6F.js";
|
|
2
|
-
const A = (s) => {
|
|
3
|
-
const [R, u] = _();
|
|
4
|
-
f();
|
|
5
|
-
const p = w(s, [
|
|
6
|
-
"tagName",
|
|
7
|
-
"props",
|
|
8
|
-
"events",
|
|
9
|
-
"slots"
|
|
10
|
-
]), t = i(void 0), n = i(!1), e = v(), m = s.slots ?? [];
|
|
11
|
-
return I("qinit", /* @__PURE__ */ a(() => import("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useOnDocument_bvALMlewx7Q-DdcskN1z.js"), "s_bvALMlewx7Q", [
|
|
12
|
-
n
|
|
13
|
-
])), o(/* @__PURE__ */ a(() => import("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_IH8I3eLdwI0-BtIygb8E.js"), "s_IH8I3eLdwI0", [
|
|
14
|
-
s,
|
|
15
|
-
e,
|
|
16
|
-
t
|
|
17
|
-
])), o(/* @__PURE__ */ a(() => import("./stencil-ssr.tsx_createStencilSSRBridgeComponent_component_useTask_1_aXg7AuatGTc-Byrz3fUp.js"), "s_aXg7AuatGTc", [
|
|
18
|
-
n,
|
|
19
|
-
s,
|
|
20
|
-
e,
|
|
21
|
-
t
|
|
22
|
-
])), /* @__PURE__ */ L("div", {
|
|
23
|
-
ref: t,
|
|
24
|
-
"data-stencil-wrapper-id": e,
|
|
25
|
-
...p,
|
|
26
|
-
style: {
|
|
27
|
-
display: "contents"
|
|
28
|
-
},
|
|
29
|
-
children: [
|
|
30
|
-
/* @__PURE__ */ c(d, null, 3, "Nj_8"),
|
|
31
|
-
m.map((r) => /* @__PURE__ */ c(d, {
|
|
32
|
-
name: r
|
|
33
|
-
}, 3, r))
|
|
34
|
-
]
|
|
35
|
-
}, {
|
|
36
|
-
"data-stencil-wrapper-id": l,
|
|
37
|
-
style: l
|
|
38
|
-
}, 0, "Nj_9");
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
A as s_IlVdOHKZfN0
|
|
42
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./core.min-vJ4M2jcU.cjs"),o=()=>{const[t]=e.ve();t.value=!0};exports._hW=e.xe;exports.s_bvALMlewx7Q=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./core.min-vJ4M2jcU.cjs"),r=require("./stencil-ssr-UlYtcG0-.cjs"),w=({cleanup:p,track:o})=>{const[f,s,d,g]=u.ve(),E=o(()=>f.value),m=o(()=>r.getEventsDependencyKey(s.events));if(!E)return;const y=r.getWrapperElement(d)??g.value,e=r.getStencilElement(y,s.tagName),c=r.getEventEntries(s.events);if(!e||c.length===0||m.length===0)return;let i=!1;const l=[];p(()=>{i=!0;for(const{eventName:t,listener:n}of l)e.removeEventListener(t,n)});for(const[t,n]of c){const a=h=>{const q=n,v=e.closest("[q\\:container]");v&&q.$setContainer$?.(v);const S=n(h,e);Promise.resolve(S).catch(_=>{console.error(_)})};if(i)return;e.addEventListener(t,a),l.push({eventName:t,listener:a})}};exports._hW=u.xe;exports.s_aXg7AuatGTc=w;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { v as x } from "./core.min-Qm7Mxv6F.js";
|
|
2
|
-
import { x as b } from "./core.min-Qm7Mxv6F.js";
|
|
3
|
-
import { g as N, a as q, b as D, c as K } from "./stencil-ssr-BHjT94rd.js";
|
|
4
|
-
const W = ({ cleanup: p, track: s }) => {
|
|
5
|
-
const [v, r, f, m] = x(), u = s(() => v.value), E = s(() => N(r.events));
|
|
6
|
-
if (!u) return;
|
|
7
|
-
const d = q(f) ?? m.value, e = D(d, r.tagName), o = K(r.events);
|
|
8
|
-
if (!e || o.length === 0 || E.length === 0) return;
|
|
9
|
-
let a = !1;
|
|
10
|
-
const c = [];
|
|
11
|
-
p(() => {
|
|
12
|
-
a = !0;
|
|
13
|
-
for (const { eventName: t, listener: n } of c) e.removeEventListener(t, n);
|
|
14
|
-
});
|
|
15
|
-
for (const [t, n] of o) {
|
|
16
|
-
const i = (g) => {
|
|
17
|
-
const y = n, l = e.closest("[q\\:container]");
|
|
18
|
-
l && y.$setContainer$?.(l);
|
|
19
|
-
const h = n(g, e);
|
|
20
|
-
Promise.resolve(h).catch((w) => {
|
|
21
|
-
console.error(w);
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
if (a) return;
|
|
25
|
-
e.addEventListener(t, i), c.push({
|
|
26
|
-
eventName: t,
|
|
27
|
-
listener: i
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
b as _hW,
|
|
33
|
-
W as s_aXg7AuatGTc
|
|
34
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { v as m } from "./core.min-Qm7Mxv6F.js";
|
|
2
|
-
import { x as g } from "./core.min-Qm7Mxv6F.js";
|
|
3
|
-
import { a as n, b as c } from "./stencil-ssr-BHjT94rd.js";
|
|
4
|
-
import { updateStencilElementProps as l } from "./ssr/index.js";
|
|
5
|
-
const w = ({ track: r }) => {
|
|
6
|
-
const [e, t, p] = m(), o = r(() => e.props), s = n(t) ?? p.value, a = c(s, e.tagName);
|
|
7
|
-
l(a, o);
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
g as _hW,
|
|
11
|
-
w as s_IH8I3eLdwI0
|
|
12
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./core.min-vJ4M2jcU.cjs"),r=require("./stencil-ssr-UlYtcG0-.cjs"),l=require("./ssr/index.cjs"),a=({track:s})=>{const[e,n,o]=t.ve(),c=s(()=>e.props),p=r.getWrapperElement(n)??o.value,i=r.getStencilElement(p,e.tagName);l.updateStencilElementProps(i,c)};exports._hW=t.xe;exports.s_IH8I3eLdwI0=a;
|