@stencil/core 5.0.0-alpha.2 → 5.0.0-alpha.4
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/dist/{client-DucyoZT4.mjs → client-Dti6fFpE.mjs} +108 -69
- package/dist/compiler/index.d.mts +3 -3
- package/dist/compiler/index.mjs +2 -2
- package/dist/compiler/utils/index.d.mts +2 -2
- package/dist/compiler/utils/index.mjs +3 -3
- package/dist/{compiler-DyK1_szo.mjs → compiler-BYRrEeD-.mjs} +2065 -2106
- package/dist/declarations/stencil-public-compiler.d.ts +4085 -2
- package/dist/declarations/stencil-public-compiler.js +0 -1
- package/dist/declarations/stencil-public-docs.d.ts +494 -1
- package/dist/declarations/stencil-public-runtime.d.ts +1943 -2
- package/dist/{index-fIuYTL9f.d.mts → index-9LTuoSiw.d.mts} +18 -2
- package/dist/{index-D-LlB2nw.d.mts → index-BwTaN1Nq.d.mts} +199 -809
- package/dist/{index-BONzXKJt.d.ts → index-CyrGY82h.d.ts} +5 -7
- package/dist/{index-CHjZtib0.d.ts → index-hS-KBdAP.d.ts} +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +2 -2
- package/dist/{jsx-runtime-DBzBJLKk.d.ts → jsx-runtime-DlDkTqps.d.ts} +1 -1
- package/dist/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime.js +1 -1
- package/dist/{node-BWBQAh8C.mjs → node-BF2jSfWg.mjs} +3 -14
- package/dist/regular-expression-D5pGVpCu.mjs +415 -0
- package/dist/runtime/app-data/index.d.ts +1 -1
- package/dist/runtime/app-data/index.js +1 -2
- package/dist/runtime/client/index.d.ts +18 -4
- package/dist/runtime/client/index.js +130 -214
- package/dist/runtime/index.d.ts +20 -4
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/server/index.d.mts +18 -7
- package/dist/runtime/server/index.mjs +128 -215
- package/dist/runtime/server/runner.d.mts +1 -17
- package/dist/runtime/server/runner.mjs +12 -394
- package/dist/{runtime-CqlPYKjW.js → runtime-COEYYPyw.js} +130 -214
- package/dist/sys/node/index.d.mts +1 -1
- package/dist/sys/node/index.mjs +1 -1
- package/dist/sys/node/worker.mjs +2 -2
- package/dist/testing/index.d.mts +3 -3
- package/dist/testing/index.mjs +20 -18
- package/dist/{validation-BR7tMYEv.mjs → validation-Byxie0Uk.mjs} +28 -24
- package/package.json +9 -13
- package/dist/serialize-o-Sj1lvg.mjs +0 -792
- package/dist/stencil-public-compiler-C_X1iolo.d.ts +0 -4455
- package/dist/stencil-public-runtime-DlV8o7-z.d.ts +0 -1845
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CMP_FLAGS, G as LISTENER_FLAGS, K as MEMBER_FLAGS, S as queryNonceMetaTagContent, U as HOST_FLAGS, V as EVENT_FLAGS, W as HTML_NS, Y as SVG_NS, Z as WATCH_FLAGS, c as isDef, q as NODE_TYPES, s as isComplexType, t as escapeRegExpSpecialCharacters } from "./regular-expression-D5pGVpCu.mjs";
|
|
2
2
|
//#region src/app-data/index.ts
|
|
3
3
|
/**
|
|
4
4
|
* A collection of default build flags for a Stencil project.
|
|
@@ -31,7 +31,6 @@ const BUILD = {
|
|
|
31
31
|
hostListenerTargetWindow: true,
|
|
32
32
|
hostListenerTargetDocument: true,
|
|
33
33
|
hostListenerTargetBody: true,
|
|
34
|
-
hostListenerTargetParent: false,
|
|
35
34
|
hostListenerTarget: true,
|
|
36
35
|
member: true,
|
|
37
36
|
method: true,
|
|
@@ -42,6 +41,7 @@ const BUILD = {
|
|
|
42
41
|
reflect: true,
|
|
43
42
|
scoped: true,
|
|
44
43
|
shadowDom: true,
|
|
44
|
+
shadowModeClosed: false,
|
|
45
45
|
slot: true,
|
|
46
46
|
cssAnnotations: true,
|
|
47
47
|
state: true,
|
|
@@ -90,7 +90,6 @@ const BUILD = {
|
|
|
90
90
|
initializeNextTick: false,
|
|
91
91
|
asyncLoading: true,
|
|
92
92
|
asyncQueue: false,
|
|
93
|
-
transformTagName: false,
|
|
94
93
|
attachStyles: true,
|
|
95
94
|
experimentalSlotFixes: false
|
|
96
95
|
};
|
|
@@ -329,7 +328,7 @@ const cmpModules = /* @__PURE__ */ new Map();
|
|
|
329
328
|
* where here in the source code it must be like this, so that an undesirable
|
|
330
329
|
* transformation that Esbuild would otherwise carry out doesn't occur, but we
|
|
331
330
|
* actually need to then manually edit the bundled Esbuild code later on to fix
|
|
332
|
-
* that. We do this with plugins in the Esbuild and
|
|
331
|
+
* that. We do this with plugins in the Esbuild and Rolldown bundles which
|
|
333
332
|
* include this file.
|
|
334
333
|
*/
|
|
335
334
|
const MODULE_IMPORT_PREFIX = "./";
|
|
@@ -539,12 +538,14 @@ function createStyleSheetIfNeededAndSupported(styles) {
|
|
|
539
538
|
//#region src/utils/shadow-root.ts
|
|
540
539
|
let globalStyleSheet;
|
|
541
540
|
function createShadowRoot(cmpMeta) {
|
|
542
|
-
const
|
|
541
|
+
const isClosed = BUILD.shadowModeClosed && !!(cmpMeta.$flags$ & CMP_FLAGS.shadowModeClosed);
|
|
542
|
+
const opts = { mode: isClosed ? "closed" : "open" };
|
|
543
543
|
if (BUILD.shadowDelegatesFocus) opts.delegatesFocus = !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDelegatesFocus);
|
|
544
544
|
if (BUILD.shadowSlotAssignmentManual) {
|
|
545
545
|
if (!!(cmpMeta.$flags$ & CMP_FLAGS.shadowSlotAssignmentManual)) opts.slotAssignment = "manual";
|
|
546
546
|
}
|
|
547
547
|
const shadowRoot = this.attachShadow(opts);
|
|
548
|
+
if (BUILD.shadowModeClosed && isClosed) this.__shadowRoot = shadowRoot;
|
|
548
549
|
if (globalStyleSheet === void 0) globalStyleSheet = createStyleSheetIfNeededAndSupported("") ?? null;
|
|
549
550
|
if (globalStyleSheet) if (supportsMutableAdoptedStyleSheets) shadowRoot.adoptedStyleSheets.push(globalStyleSheet);
|
|
550
551
|
else shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
|
|
@@ -1190,6 +1191,24 @@ function internalCall(node, method) {
|
|
|
1190
1191
|
}
|
|
1191
1192
|
}
|
|
1192
1193
|
//#endregion
|
|
1194
|
+
//#region src/runtime/element.ts
|
|
1195
|
+
const getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref)?.$hostElement$ : ref;
|
|
1196
|
+
/**
|
|
1197
|
+
* Get the shadow root for a Stencil component's host element.
|
|
1198
|
+
* This works for both open and closed shadow DOM modes.
|
|
1199
|
+
*
|
|
1200
|
+
* For closed shadow DOM, `element.shadowRoot` returns `null` by design,
|
|
1201
|
+
* but Stencil stores the reference internally so components can still
|
|
1202
|
+
* access their own shadow root.
|
|
1203
|
+
*
|
|
1204
|
+
* @param element The host element (from @Element() decorator)
|
|
1205
|
+
* @returns The shadow root, or null if no shadow root exists
|
|
1206
|
+
*/
|
|
1207
|
+
const getShadowRoot = (element) => {
|
|
1208
|
+
if (BUILD.shadowModeClosed && element.__shadowRoot) return element.__shadowRoot;
|
|
1209
|
+
return element.shadowRoot;
|
|
1210
|
+
};
|
|
1211
|
+
//#endregion
|
|
1193
1212
|
//#region src/runtime/profile.ts
|
|
1194
1213
|
let i = 0;
|
|
1195
1214
|
const createTime = (fnName, tagName = "") => {
|
|
@@ -1353,7 +1372,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1353
1372
|
if (!BUILD.attachStyles || !win.document) return scopeId;
|
|
1354
1373
|
let style = styles.get(scopeId);
|
|
1355
1374
|
if (cmpMeta.$flags$ & CMP_FLAGS.hasSlotRelocation) style = getStyleWithSlotCss(style);
|
|
1356
|
-
|
|
1375
|
+
const isClosedShadowSSR = BUILD.hydrateServerSide && BUILD.shadowModeClosed && cmpMeta.$flags$ & CMP_FLAGS.shadowNeedsScopedCss && cmpMeta.$flags$ & CMP_FLAGS.shadowModeClosed;
|
|
1376
|
+
if (styleContainerNode.nodeType !== NODE_TYPE.DocumentFragment && !isClosedShadowSSR) styleContainerNode = win.document;
|
|
1357
1377
|
if (style) {
|
|
1358
1378
|
if (typeof style === "string") {
|
|
1359
1379
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -1403,7 +1423,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
1403
1423
|
/**
|
|
1404
1424
|
* attach styles at the beginning of a shadow root node if we render shadow components
|
|
1405
1425
|
*/
|
|
1406
|
-
if (cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) styleContainerNode.
|
|
1426
|
+
if (cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) if (isClosedShadowSSR) styleContainerNode.prepend(styleElm);
|
|
1427
|
+
else styleContainerNode.insertBefore(styleElm, null);
|
|
1407
1428
|
if (appliedStyles) appliedStyles.add(scopeId);
|
|
1408
1429
|
}
|
|
1409
1430
|
} else if (BUILD.constructableCSS) {
|
|
@@ -1438,7 +1459,12 @@ const attachStyles = (hostRef) => {
|
|
|
1438
1459
|
const elm = hostRef.$hostElement$;
|
|
1439
1460
|
const flags = cmpMeta.$flags$;
|
|
1440
1461
|
const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
|
|
1441
|
-
|
|
1462
|
+
let styleContainerNode;
|
|
1463
|
+
const shadowRoot = BUILD.shadowDom && supportsShadow ? getShadowRoot(elm) : null;
|
|
1464
|
+
if (shadowRoot) styleContainerNode = shadowRoot;
|
|
1465
|
+
else if (BUILD.hydrateServerSide && BUILD.shadowModeClosed && flags & CMP_FLAGS.shadowNeedsScopedCss && flags & CMP_FLAGS.shadowModeClosed) styleContainerNode = elm;
|
|
1466
|
+
else styleContainerNode = elm.getRootNode();
|
|
1467
|
+
const scopeId = addStyle(styleContainerNode, cmpMeta, hostRef.$modeName$);
|
|
1442
1468
|
if ((BUILD.shadowDom || BUILD.scoped) && BUILD.cssAnnotations && flags & CMP_FLAGS.needsScopedEncapsulation) {
|
|
1443
1469
|
elm["s-sc"] = scopeId;
|
|
1444
1470
|
elm.classList.add(scopeId + "-h");
|
|
@@ -1656,7 +1682,7 @@ const validateInputProperties = (inputElm) => {
|
|
|
1656
1682
|
*/
|
|
1657
1683
|
const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
1658
1684
|
const endHydrate = createTime("hydrateClient", tagName);
|
|
1659
|
-
const shadowRoot = hostElm
|
|
1685
|
+
const shadowRoot = getShadowRoot(hostElm);
|
|
1660
1686
|
const childRenderNodes = [];
|
|
1661
1687
|
const slotNodes = [];
|
|
1662
1688
|
const slottedNodes = [];
|
|
@@ -1737,7 +1763,7 @@ const initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1737
1763
|
}
|
|
1738
1764
|
addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"] || currentPos);
|
|
1739
1765
|
if (slottedItem.node.parentElement?.shadowRoot && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) slottedItem.node.removeAttribute("slot");
|
|
1740
|
-
if (BUILD.experimentalSlotFixes) patchSlottedNode(slottedItem.node);
|
|
1766
|
+
if (BUILD.experimentalSlotFixes || BUILD.patchAll && hostRef.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll) patchSlottedNode(slottedItem.node);
|
|
1741
1767
|
}
|
|
1742
1768
|
currentPos = (slottedItem.node["s-oo"] || currentPos) + 1;
|
|
1743
1769
|
}
|
|
@@ -2048,9 +2074,12 @@ const _polyfillHost = "-shadowcsshost";
|
|
|
2048
2074
|
const _polyfillSlotted = "-shadowcssslotted";
|
|
2049
2075
|
const _polyfillHostContext = "-shadowcsscontext";
|
|
2050
2076
|
const _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2077
|
+
let _cssColonHostRe;
|
|
2078
|
+
let _cssColonHostContextRe;
|
|
2079
|
+
let _cssColonSlottedRe;
|
|
2080
|
+
const getCssColonHostRe = () => _cssColonHostRe ??= new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
2081
|
+
const getCssColonHostContextRe = () => _cssColonHostContextRe ??= new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
2082
|
+
const getCssColonSlottedRe = () => _cssColonSlottedRe ??= new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
2054
2083
|
const _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
2055
2084
|
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
2056
2085
|
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
@@ -2210,7 +2239,7 @@ const colonHostPartReplacer = (host, part, suffix) => {
|
|
|
2210
2239
|
return host + part.replace(_polyfillHost, "") + suffix;
|
|
2211
2240
|
};
|
|
2212
2241
|
const convertColonHost = (cssText) => {
|
|
2213
|
-
return convertColonRule(cssText,
|
|
2242
|
+
return convertColonRule(cssText, getCssColonHostRe(), colonHostPartReplacer);
|
|
2214
2243
|
};
|
|
2215
2244
|
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
2216
2245
|
if (part.indexOf(_polyfillHost) > -1) return colonHostPartReplacer(host, part, suffix);
|
|
@@ -2219,7 +2248,7 @@ const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
|
2219
2248
|
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
2220
2249
|
const slotClass = "." + slotScopeId + " > ";
|
|
2221
2250
|
const selectors = [];
|
|
2222
|
-
cssText = cssText.replace(
|
|
2251
|
+
cssText = cssText.replace(getCssColonSlottedRe(), (...m) => {
|
|
2223
2252
|
if (m[2]) {
|
|
2224
2253
|
const compound = m[2].trim();
|
|
2225
2254
|
const suffix = m[3];
|
|
@@ -2248,7 +2277,7 @@ const convertColonSlotted = (cssText, slotScopeId) => {
|
|
|
2248
2277
|
};
|
|
2249
2278
|
};
|
|
2250
2279
|
const convertColonHostContext = (cssText) => {
|
|
2251
|
-
return convertColonRule(cssText,
|
|
2280
|
+
return convertColonRule(cssText, getCssColonHostContextRe(), colonHostContextPartReplacer);
|
|
2252
2281
|
};
|
|
2253
2282
|
const convertShadowDOMSelectors = (cssText) => {
|
|
2254
2283
|
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, " "), cssText);
|
|
@@ -2463,14 +2492,6 @@ const getMode = (ref) => getHostRef(ref)?.$modeName$;
|
|
|
2463
2492
|
* @returns the parsed/coerced value
|
|
2464
2493
|
*/
|
|
2465
2494
|
const parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
2466
|
-
/**
|
|
2467
|
-
* Allow hydrate parameters that contain a complex non-serialized values.
|
|
2468
|
-
* This is SSR-specific and should only run during hydration.
|
|
2469
|
-
*/
|
|
2470
|
-
if ((BUILD.hydrateClientSide || BUILD.hydrateServerSide) && typeof propValue === "string" && propValue.startsWith("serialized:")) {
|
|
2471
|
-
propValue = deserializeProperty(propValue);
|
|
2472
|
-
return propValue;
|
|
2473
|
-
}
|
|
2474
2495
|
if (propValue != null && !isComplexType(propValue)) {
|
|
2475
2496
|
/**
|
|
2476
2497
|
* ensure this value is of the correct prop type
|
|
@@ -2499,9 +2520,6 @@ const parsePropertyValue = (propValue, propType, isFormAssociated) => {
|
|
|
2499
2520
|
return propValue;
|
|
2500
2521
|
};
|
|
2501
2522
|
//#endregion
|
|
2502
|
-
//#region src/runtime/element.ts
|
|
2503
|
-
const getElement = (ref) => BUILD.lazyLoad ? getHostRef(ref)?.$hostElement$ : ref;
|
|
2504
|
-
//#endregion
|
|
2505
2523
|
//#region src/runtime/event-emitter.ts
|
|
2506
2524
|
const createEvent = (ref, name, flags) => {
|
|
2507
2525
|
const elm = getElement(ref);
|
|
@@ -2854,7 +2872,10 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
2854
2872
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
2855
2873
|
let containerElm = BUILD.slotRelocation && parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
2856
2874
|
let childNode;
|
|
2857
|
-
if (BUILD.shadowDom && containerElm.
|
|
2875
|
+
if (BUILD.shadowDom && containerElm.tagName === hostTagName) {
|
|
2876
|
+
const shadow = getShadowRoot(containerElm);
|
|
2877
|
+
if (shadow) containerElm = shadow;
|
|
2878
|
+
}
|
|
2858
2879
|
if (parentVNode.$tag$ === "template") containerElm = containerElm.content;
|
|
2859
2880
|
for (; startIdx <= endIdx; ++startIdx) if (vnodes[startIdx]) {
|
|
2860
2881
|
childNode = createElm(null, parentVNode, startIdx);
|
|
@@ -3204,7 +3225,8 @@ const insertBefore = (parent, newNode, reference, isInitialLoad) => {
|
|
|
3204
3225
|
if (BUILD.slotRelocation) {
|
|
3205
3226
|
if (BUILD.scoped && typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
|
|
3206
3227
|
else if (typeof newNode["s-sn"] === "string") {
|
|
3207
|
-
|
|
3228
|
+
const hostElm = newNode["s-hn"] && parent.closest?.(newNode["s-hn"]);
|
|
3229
|
+
if ((BUILD.experimentalSlotFixes || BUILD.patchAll && !!(hostElm && getHostRef(hostElm)?.$cmpMeta$.$flags$ & CMP_FLAGS.patchAll)) && parent.getRootNode().nodeType !== NODE_TYPES.DOCUMENT_FRAGMENT_NODE) patchParentNode(newNode);
|
|
3208
3230
|
parent.insertBefore(newNode, reference);
|
|
3209
3231
|
const { slotNode } = findSlotFromSlottedNode(newNode);
|
|
3210
3232
|
if (slotNode && !isInitialLoad) dispatchSlotChangeEvent(slotNode);
|
|
@@ -3293,7 +3315,7 @@ render() {
|
|
|
3293
3315
|
rootVnode.$tag$ = null;
|
|
3294
3316
|
rootVnode.$flags$ |= VNODE_FLAGS.isHost;
|
|
3295
3317
|
hostRef.$vnode$ = rootVnode;
|
|
3296
|
-
rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? hostElm
|
|
3318
|
+
rootVnode.$elm$ = oldVNode.$elm$ = BUILD.shadowDom ? getShadowRoot(hostElm) || hostElm : hostElm;
|
|
3297
3319
|
if (BUILD.scoped || BUILD.shadowDom) scopeId = hostElm["s-sc"];
|
|
3298
3320
|
useNativeShadowDom = supportsShadow && !!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && !(cmpMeta.$flags$ & CMP_FLAGS.shadowNeedsScopedCss);
|
|
3299
3321
|
if (BUILD.slotRelocation) {
|
|
@@ -3448,13 +3470,13 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
3448
3470
|
}
|
|
3449
3471
|
if (hostRef.$fetchedCbList$.length) hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
|
|
3450
3472
|
}
|
|
3451
|
-
emitLifecycleEvent(elm, "componentWillLoad");
|
|
3473
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentWillLoad");
|
|
3452
3474
|
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
3453
3475
|
} else {
|
|
3454
|
-
emitLifecycleEvent(elm, "componentWillUpdate");
|
|
3476
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentWillUpdate");
|
|
3455
3477
|
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
3456
3478
|
}
|
|
3457
|
-
emitLifecycleEvent(elm, "componentWillRender");
|
|
3479
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentWillRender");
|
|
3458
3480
|
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
3459
3481
|
endSchedule();
|
|
3460
3482
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -3589,14 +3611,14 @@ const postUpdateComponent = (hostRef) => {
|
|
|
3589
3611
|
if (BUILD.isDev) hostRef.$flags$ |= HOST_FLAGS.devOnRender;
|
|
3590
3612
|
safeCall(instance, "componentDidRender", void 0, elm);
|
|
3591
3613
|
if (BUILD.isDev) hostRef.$flags$ &= ~HOST_FLAGS.devOnRender;
|
|
3592
|
-
emitLifecycleEvent(elm, "componentDidRender");
|
|
3614
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentDidRender");
|
|
3593
3615
|
if (!(hostRef.$flags$ & HOST_FLAGS.hasLoadedComponent)) {
|
|
3594
3616
|
hostRef.$flags$ |= HOST_FLAGS.hasLoadedComponent;
|
|
3595
3617
|
if (BUILD.asyncLoading && BUILD.cssAnnotations) addHydratedFlag(elm);
|
|
3596
3618
|
if (BUILD.isDev) hostRef.$flags$ |= HOST_FLAGS.devOnDidLoad;
|
|
3597
3619
|
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
3598
3620
|
if (BUILD.isDev) hostRef.$flags$ &= ~HOST_FLAGS.devOnDidLoad;
|
|
3599
|
-
emitLifecycleEvent(elm, "componentDidLoad");
|
|
3621
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentDidLoad");
|
|
3600
3622
|
if (BUILD.propChangeCallback) hostRef.$flags$ |= HOST_FLAGS.isWatchReady;
|
|
3601
3623
|
endPostUpdate();
|
|
3602
3624
|
if (BUILD.asyncLoading) {
|
|
@@ -3607,7 +3629,7 @@ const postUpdateComponent = (hostRef) => {
|
|
|
3607
3629
|
if (BUILD.isDev) hostRef.$flags$ |= HOST_FLAGS.devOnRender;
|
|
3608
3630
|
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
3609
3631
|
if (BUILD.isDev) hostRef.$flags$ &= ~HOST_FLAGS.devOnRender;
|
|
3610
|
-
emitLifecycleEvent(elm, "componentDidUpdate");
|
|
3632
|
+
if (BUILD.lifecycleDOMEvents) emitLifecycleEvent(elm, "componentDidUpdate");
|
|
3611
3633
|
endPostUpdate();
|
|
3612
3634
|
}
|
|
3613
3635
|
if (BUILD.method && BUILD.lazyLoad) hostRef.$onInstanceResolve$(elm);
|
|
@@ -3899,9 +3921,11 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
3899
3921
|
return;
|
|
3900
3922
|
}
|
|
3901
3923
|
const propFlags = members.find(([m]) => m === propName);
|
|
3902
|
-
|
|
3924
|
+
const isBooleanTarget = propFlags && propFlags[1][0] & MEMBER_FLAGS.Boolean;
|
|
3925
|
+
const isSpuriousBooleanRemoval = isBooleanTarget && newValue === null && this[propName] === void 0;
|
|
3926
|
+
if (isBooleanTarget) newValue = !(newValue === null || newValue === "false");
|
|
3903
3927
|
const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
|
|
3904
|
-
if (newValue != this[propName] && (!propDesc.get || !!propDesc.set)) this[propName] = newValue;
|
|
3928
|
+
if (!isSpuriousBooleanRemoval && newValue != this[propName] && (!propDesc.get || !!propDesc.set)) this[propName] = newValue;
|
|
3905
3929
|
});
|
|
3906
3930
|
};
|
|
3907
3931
|
Cstr.observedAttributes = Array.from(new Set([...Object.keys(cmpMeta.$watchers$ ?? {}), ...members.filter(([_, m]) => m[0] & MEMBER_FLAGS.HasAttribute).map(([propName, m]) => {
|
|
@@ -4030,7 +4054,6 @@ const connectedCallback = (elm) => {
|
|
|
4030
4054
|
if (!hostRef) return;
|
|
4031
4055
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
4032
4056
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
4033
|
-
if (BUILD.hostListenerTargetParent) addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, true);
|
|
4034
4057
|
if (!(hostRef.$flags$ & HOST_FLAGS.hasConnected)) {
|
|
4035
4058
|
hostRef.$flags$ |= HOST_FLAGS.hasConnected;
|
|
4036
4059
|
let hostId;
|
|
@@ -4038,7 +4061,8 @@ const connectedCallback = (elm) => {
|
|
|
4038
4061
|
hostId = elm.getAttribute(HYDRATE_ID);
|
|
4039
4062
|
if (hostId) {
|
|
4040
4063
|
if (BUILD.shadowDom && supportsShadow && cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) {
|
|
4041
|
-
const
|
|
4064
|
+
const shadowRoot = getShadowRoot(elm);
|
|
4065
|
+
const scopeId = BUILD.mode ? addStyle(shadowRoot, cmpMeta, elm.getAttribute("s-mode")) : addStyle(shadowRoot, cmpMeta);
|
|
4042
4066
|
elm.classList.remove(scopeId + "-h", scopeId + "-s");
|
|
4043
4067
|
} else if (BUILD.scoped && cmpMeta.$flags$ & CMP_FLAGS.scopedCssEncapsulation) elm["s-sc"] = getScopeId(cmpMeta, BUILD.mode ? elm.getAttribute("s-mode") : void 0);
|
|
4044
4068
|
initializeClientHydrate(elm, cmpMeta.$tagName$, hostId, hostRef);
|
|
@@ -4077,7 +4101,7 @@ const connectedCallback = (elm) => {
|
|
|
4077
4101
|
if (BUILD.initializeNextTick) nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
|
|
4078
4102
|
else initializeComponent(elm, hostRef, cmpMeta);
|
|
4079
4103
|
} else {
|
|
4080
|
-
addHostEventListeners(elm, hostRef, cmpMeta.$listeners
|
|
4104
|
+
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
4081
4105
|
if (hostRef?.$lazyInstance$) fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
4082
4106
|
else if (hostRef?.$onReadyPromise$) hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
4083
4107
|
}
|
|
@@ -4179,7 +4203,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4179
4203
|
cmpMeta.$deserializers$ = compactMeta[6] ?? {};
|
|
4180
4204
|
}
|
|
4181
4205
|
if (BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) cmpMeta.$flags$ |= CMP_FLAGS.needsShadowDomShim;
|
|
4182
|
-
const tagName =
|
|
4206
|
+
const tagName = transformTag(cmpMeta.$tagName$);
|
|
4183
4207
|
const HostElement = class extends HTMLElement {
|
|
4184
4208
|
["s-p"];
|
|
4185
4209
|
["s-rc"];
|
|
@@ -4206,7 +4230,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4206
4230
|
*/
|
|
4207
4231
|
if (!this.hasRegisteredEventListeners) {
|
|
4208
4232
|
this.hasRegisteredEventListeners = true;
|
|
4209
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners
|
|
4233
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
|
|
4210
4234
|
}
|
|
4211
4235
|
if (appLoadFallback) {
|
|
4212
4236
|
clearTimeout(appLoadFallback);
|
|
@@ -4238,14 +4262,18 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4238
4262
|
return getHostRef(this)?.$onReadyPromise$;
|
|
4239
4263
|
}
|
|
4240
4264
|
};
|
|
4241
|
-
if (!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && cmpMeta.$flags$ & CMP_FLAGS.hasSlot) if (BUILD.experimentalSlotFixes) patchPseudoShadowDom(HostElement.prototype);
|
|
4265
|
+
if (!(cmpMeta.$flags$ & CMP_FLAGS.shadowDomEncapsulation) && cmpMeta.$flags$ & CMP_FLAGS.hasSlot) if (BUILD.experimentalSlotFixes || BUILD.patchAll && cmpMeta.$flags$ & CMP_FLAGS.patchAll) patchPseudoShadowDom(HostElement.prototype);
|
|
4242
4266
|
else {
|
|
4243
|
-
if (BUILD.slotChildNodesFix) patchChildSlotNodes(HostElement.prototype);
|
|
4244
|
-
if (BUILD.cloneNodeFix) patchCloneNode(HostElement.prototype);
|
|
4245
|
-
if (BUILD.appendChildSlotFix
|
|
4267
|
+
if (BUILD.slotChildNodesFix || BUILD.patchChildren && cmpMeta.$flags$ & CMP_FLAGS.patchChildren) patchChildSlotNodes(HostElement.prototype);
|
|
4268
|
+
if (BUILD.cloneNodeFix || BUILD.patchClone && cmpMeta.$flags$ & CMP_FLAGS.patchClone) patchCloneNode(HostElement.prototype);
|
|
4269
|
+
if (BUILD.appendChildSlotFix || BUILD.patchInsert && cmpMeta.$flags$ & CMP_FLAGS.patchInsert) {
|
|
4270
|
+
patchSlotAppendChild(HostElement.prototype);
|
|
4271
|
+
patchInsertBefore(HostElement.prototype);
|
|
4272
|
+
patchSlotRemoveChild(HostElement.prototype);
|
|
4273
|
+
}
|
|
4246
4274
|
if (BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & CMP_FLAGS.scopedCssEncapsulation) patchTextContent(HostElement.prototype);
|
|
4247
4275
|
}
|
|
4248
|
-
else if (BUILD.cloneNodeFix) patchCloneNode(HostElement.prototype);
|
|
4276
|
+
else if (BUILD.cloneNodeFix || BUILD.patchClone && cmpMeta.$flags$ & CMP_FLAGS.patchClone) patchCloneNode(HostElement.prototype);
|
|
4249
4277
|
if (BUILD.formAssociated && cmpMeta.$flags$ & CMP_FLAGS.formAssociated) HostElement.formAssociated = true;
|
|
4250
4278
|
if (BUILD.hotModuleReplacement) HostElement.prototype["s-hmr"] = function(hmrVersionId) {
|
|
4251
4279
|
hmrStart(this, cmpMeta, hmrVersionId);
|
|
@@ -4277,18 +4305,14 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
4277
4305
|
const Fragment = (_, children) => children;
|
|
4278
4306
|
//#endregion
|
|
4279
4307
|
//#region src/runtime/host-listener.ts
|
|
4280
|
-
const addHostEventListeners = (elm, hostRef, listeners
|
|
4281
|
-
if (BUILD.hostListener && listeners && win.document) {
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
plt.ael(target, name, handler, opts);
|
|
4289
|
-
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
4290
|
-
});
|
|
4291
|
-
}
|
|
4308
|
+
const addHostEventListeners = (elm, hostRef, listeners) => {
|
|
4309
|
+
if (BUILD.hostListener && listeners && win.document) listeners.map(([flags, name, method]) => {
|
|
4310
|
+
const target = BUILD.hostListenerTarget ? getHostListenerTarget(win.document, elm, flags) : elm;
|
|
4311
|
+
const handler = hostListenerProxy(hostRef, method);
|
|
4312
|
+
const opts = hostListenerOpts(flags);
|
|
4313
|
+
plt.ael(target, name, handler, opts);
|
|
4314
|
+
(hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
|
|
4315
|
+
});
|
|
4292
4316
|
};
|
|
4293
4317
|
const hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
4294
4318
|
try {
|
|
@@ -4303,7 +4327,6 @@ const getHostListenerTarget = (doc, elm, flags) => {
|
|
|
4303
4327
|
if (BUILD.hostListenerTargetDocument && flags & LISTENER_FLAGS.TargetDocument) return doc;
|
|
4304
4328
|
if (BUILD.hostListenerTargetWindow && flags & LISTENER_FLAGS.TargetWindow) return win;
|
|
4305
4329
|
if (BUILD.hostListenerTargetBody && flags & LISTENER_FLAGS.TargetBody) return doc.body;
|
|
4306
|
-
if (BUILD.hostListenerTargetParent && flags & LISTENER_FLAGS.TargetParent && elm.parentElement) return elm.parentElement;
|
|
4307
4330
|
return elm;
|
|
4308
4331
|
};
|
|
4309
4332
|
const hostListenerOpts = (flags) => supportsListenerOptions ? {
|
|
@@ -4319,8 +4342,19 @@ function Mixin(...mixins) {
|
|
|
4319
4342
|
//#endregion
|
|
4320
4343
|
//#region src/runtime/render.ts
|
|
4321
4344
|
/**
|
|
4345
|
+
* A WeakMap to persist HostRef objects across multiple render() calls to the
|
|
4346
|
+
* same container. This enables VNode diffing on re-renders — without it, each
|
|
4347
|
+
* call creates a fresh HostRef with no previous VNode, causing renderVdom to
|
|
4348
|
+
* replace the entire DOM subtree instead of patching only what changed.
|
|
4349
|
+
*/
|
|
4350
|
+
const hostRefCache = /* @__PURE__ */ new WeakMap();
|
|
4351
|
+
/**
|
|
4322
4352
|
* Method to render a virtual DOM tree to a container element.
|
|
4323
4353
|
*
|
|
4354
|
+
* Supports efficient re-renders: calling `render()` again on the same container
|
|
4355
|
+
* will diff the new VNode tree against the previous one and only update what changed,
|
|
4356
|
+
* preserving existing DOM elements and their state.
|
|
4357
|
+
*
|
|
4324
4358
|
* @example
|
|
4325
4359
|
* ```tsx
|
|
4326
4360
|
* import { render } from '@stencil/core';
|
|
@@ -4337,14 +4371,19 @@ function Mixin(...mixins) {
|
|
|
4337
4371
|
* @param container - The container element to render the virtual DOM tree to
|
|
4338
4372
|
*/
|
|
4339
4373
|
function render(vnode, container) {
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4374
|
+
let ref = hostRefCache.get(container);
|
|
4375
|
+
if (!ref) {
|
|
4376
|
+
ref = {
|
|
4343
4377
|
$flags$: 0,
|
|
4344
|
-
$
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4378
|
+
$cmpMeta$: {
|
|
4379
|
+
$flags$: 0,
|
|
4380
|
+
$tagName$: container.tagName
|
|
4381
|
+
},
|
|
4382
|
+
$hostElement$: container
|
|
4383
|
+
};
|
|
4384
|
+
hostRefCache.set(container, ref);
|
|
4385
|
+
}
|
|
4386
|
+
renderVdom(ref, vnode);
|
|
4348
4387
|
}
|
|
4349
4388
|
//#endregion
|
|
4350
4389
|
//#region src/runtime/tag-transform.ts
|
|
@@ -4521,4 +4560,4 @@ const insertChildVNodeAnnotations = (doc, vnodeChild, cmpData, hostId, depth, in
|
|
|
4521
4560
|
}
|
|
4522
4561
|
};
|
|
4523
4562
|
//#endregion
|
|
4524
|
-
export {
|
|
4563
|
+
export { Element$1 as A, BUILD as B, setPlatformHelpers as C, AttachInternals as D, reWireGetterSetter as E, PropSerialize as F, State as I, Watch as L, Listen as M, Method as N, AttrDeserialize as O, Prop as P, resolveVar as R, writeTask as S, setErrorHandler as T, Env as V, getElement as _, Mixin as a, setAssetPath as b, forceUpdate as c, createEvent as d, getMode as f, h as g, Host as h, render as i, Event as j, Component as k, getRenderingRef as l, scopeCss as m, setTagTransformer as n, Fragment as o, setMode as p, transformTag as r, bootstrapLazy as s, insertVdomAnnotations as t, renderVdom as u, getShadowRoot as v, HYDRATED_CSS as w, readTask as x, getAssetPath as y, Build as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ComponentCompilerVirtualProperty, $i as
|
|
1
|
+
import { $ as ComponentCompilerVirtualProperty, $i as TranspileOnlyResults, $n as CompilerDependency, $r as Logger, $t as PluginCtx, A as CompilerStyleDoc, Aa as JsonDocsValue, Ai as PlatformPath, An as TypesModule, Ar as ConfigExtras, At as HydrateImgElement, B as ComponentCompilerMeta, Bi as RolldownConfig, Bn as BuildLog, Br as EligiblePrimaryPackageOutputTarget, Bt as Module, C as CompilerBuildStatBundle, Ca as JsonDocsPart, Ci as OutputTargetDocsReadme, Cn as StyleMap, Cr as CompilerSystemRemoveFileResults, Ct as EventInitDict, D as CompilerJsDoc, Da as JsonDocsTag, Di as OutputTargetWww, Dn as TypeInfo, Dr as CompilerWatcher, Dt as HydrateAnchorElement, E as CompilerCtx, Ea as JsonDocsStyle, Ei as OutputTargetStats, En as TranspileModuleResults, Er as CompilerSystemWriteFileResults, Et as HostRef, F as ComponentCompilerData, Fi as ResolveModuleIdOptions, Fn as WorkerContextMethod, Fr as CustomElementsExportBehaviorOptions, Ft as ImportData, G as ComponentCompilerPropertyType, Gi as ServiceWorkerConfig, Gn as BuildResultsComponentGraph, Gr as HydrateDocumentOptions, Gt as NewSpecPageOptions, H as ComponentCompilerMethodComplexType, Hi as RolldownInterface, Hn as BuildOnEventRemove, Hr as HistoryApiFallback, Ht as ModuleMap, I as ComponentCompilerEvent, Ii as ResolveModuleIdResults, In as WorkerMsgHandler, Ir as DevServer, It as JSDocTagInfo, J as ComponentCompilerStaticEvent, Ji as StencilConfig, Jn as CompileScriptMinifyOptions, Jr as LOG_LEVELS, Jt as PackageJsonData, K as ComponentCompilerReferencedType, Ki as SitemapXmpOpts, Kn as CacheStorage, Kr as HydrateFactoryOptions, Kt as NodeMap, L as ComponentCompilerEventComplexType, Li as ResolveModuleOptions, Ln as AutoprefixerOptions, Lr as DevServerConfig, Lt as JsDoc, M as CompilerWorkerTask, Ma as FsWriteResults, Mi as PrerenderHydrateOptions, Mn as VNodeProdData, Mr as CopyTask, Mt as HydrateScriptElement, N as ComponentCompilerChangeHandler, Ni as PrerenderResults, Nn as ValidateTypesResults, Nr as Credentials, Nt as HydrateStaticData, O as CompilerJsDocTagInfo, Oa as JsonDocsTypeLibrary, Oi as PageReloadStrategy, On as TypesImportData, Or as Config, Ot as HydrateComponent, P as ComponentCompilerCustomState, Pi as PrerenderStartOptions, Pn as Workbox, Pr as CustomElementsExportBehavior, Pt as HydrateStyleElement, Q as ComponentCompilerTypeReferences, Qi as TransformOptions, Qn as CompilerBuildStart, Qr as LogLevel, Qt as Plugin, R as ComponentCompilerFeatures, Ri as RobotsTxtOpts, Rn as BuildEmitEvents, Rr as DevServerEditor, Rt as LazyBundleRuntimeData, S as CompilerAssetDir, Sa as JsonDocsMethodReturn, Si as OutputTargetDocsJson, Sn as StyleCompiler, Sr as CompilerSystemRemoveDirectoryResults, St as EntryModule, T as CompilerBuildStats, Ta as JsonDocsSlot, Ti as OutputTargetHydrate, Tn as TransformCssToEsmOutput, Tr as CompilerSystemRenamedPath, Tt as HostElement, U as ComponentCompilerProperty, Ui as RolldownOutputOptions, Un as BuildOnEvents, Ur as HmrStyleUpdate, Ut as MsgFromWorker, V as ComponentCompilerMethod, Vi as RolldownInputOptions, Vn as BuildNoChangeResults, Vr as FsWatchResults, Vt as ModuleFormat, W as ComponentCompilerPropertyComplexType, Wi as SerializeDocumentOptions, Wn as BuildOutput, Wr as HotModuleReplacement, Wt as MsgToWorker, X as ComponentCompilerStaticProperty, Xi as StencilDocsConfig, Xn as Compiler, Xr as LoadConfigInit, Xt as PatchedSlotNode, Y as ComponentCompilerStaticMethod, Yi as StencilDevServerConfig, Yn as CompileTarget, Yr as LazyRequire, Yt as ParsedImport, Z as ComponentCompilerTypeReference, Zi as SystemDetails, Zn as CompilerBuildResults, Zr as LoadConfigResults, Zt as PlatformRuntime, _ as CollectionCompilerVersion, _a as JsonDocsCustomState, _i as OutputTargetDistLazy, _n as SerializedEvent, _r as CompilerSystem, _t as CssImportData, a as BuildCtx, aa as WorkerMainController, ai as OptimizeJsInput, an as PrintLine, ar as CompilerEventDirDelete, at as ComponentConstructorProperties, b as CollectionDependencyManifest, ba as JsonDocsListener, bi as OutputTargetDocsCustom, bn as SpecPage, br as CompilerSystemRealpathResults, bt as DocData, c as BuildStyleUpdate, ci as OutputTargetBase, cn as RolldownAssetResult, cr as CompilerEventFileUpdate, ct as ComponentNativeConstructor, d as BundleModuleOutput, di as OutputTargetCopy, dn as RolldownResultModule, dr as CompilerFileWatcher, dt as ComponentRuntimeMember, ea as TranspileOptions, ei as LoggerLineUpdater, en as PluginTransformResults, er as CompilerEventBuildFinish, et as ComponentConstructor, f as Cache, fi as OutputTargetCustom, fn as RolldownResults, fr as CompilerFileWatcherCallback, ft as ComponentRuntimeMembers, g as CollectionCompilerMeta, ga as JsonDocsComponent, gi as OutputTargetDistGlobalStyles, gn as SerializeImportData, gr as CompilerRequestResponse, gt as ComponentTestingConstructor, h as CollectionCompiler, ha as JsonDocs, hi as OutputTargetDistCustomElements, hn as RuntimeRef, hr as CompilerRequest, ht as ComponentRuntimeReflectingAttr, i as BuildConditionals, ia as WatcherCloseResults, ii as OptimizeCssOutput, in as PrerenderUrlResults, ir as CompilerEventDirAdd, it as ComponentConstructorListener, j as CompilerWorkerContext, ja as StyleDoc, ji as PrerenderConfig, jn as UpdatedLazyBuildCtx, jr as CopyResults, jt as HydrateResults, k as CompilerModeStyles, ka as JsonDocsUsage, ki as ParsedPath, kn as TypesMemberNameData, kr as ConfigBundle, kt as HydrateElement, l as BuildTask, li as OutputTargetBaseNext, ln as RolldownChunkResult, lr as CompilerEventFsChange, lt as ComponentPatches, m as CollectionBundleManifest, ma as JsonDocMethodParameter, mi as OutputTargetDistCollection, mn as RootAppliedStyleMap, mr as CompilerFsStats, mt as ComponentRuntimeMetaCompact, n as AssetsMeta, na as UnvalidatedConfig, ni as NodeResolveConfig, nn as PrerenderManager, nr as CompilerEventBuildNoChange, nt as ComponentConstructorEncapsulation, o as BuildFeatures, oa as WorkerOptions, oi as OptimizeJsOutput, on as PropsType, or as CompilerEventFileAdd, ot as ComponentConstructorProperty, p as ChildType, pi as OutputTargetDist, pn as RolldownSourceMap, pr as CompilerFileWatcherEvent, pt as ComponentRuntimeMeta, q as ComponentCompilerState, qi as SitemapXmpResults, qn as CliInitOptions, qr as HydratedFlag, qt as OptimizeJsResult, r as BuildComponent, ra as ValidatedConfig, ri as OptimizeCssInput, rn as PrerenderUrlRequest, rr as CompilerEventBuildStart, rt as ComponentConstructorEvent, s as BuildSourceGraph, si as OutputTarget, sn as RenderNode, sr as CompilerEventFileDelete, st as ComponentConstructorPropertyType, t as AnyHTMLElement, ta as TranspileResults, ti as LoggerTimeSpan, tn as PluginTransformationDescriptor, tr as CompilerEventBuildLog, tt as ComponentConstructorChangeHandlers, u as BundleModule, ui as OutputTargetBuild, un as RolldownResult, ur as CompilerEventName, ut as ComponentRuntimeHostListener, v as CollectionComponentEntryPath, va as JsonDocsDependencyGraph, vi as OutputTargetDistLazyLoader, vn as SourceMap, vr as CompilerSystemCreateDirectoryOptions, vt as CssToEsmImportData, w as CompilerBuildStatCollection, wa as JsonDocsProp, wi as OutputTargetDocsVscode, wn as TransformCssToEsmInput, wr as CompilerSystemRenameResults, wt as ExternalStyleCompiler, x as CollectionManifest, xa as JsonDocsMethod, xi as OutputTargetDocsCustomElementsManifest, xn as StencilDocument, xr as CompilerSystemRemoveDirectoryOptions, xt as Encapsulation, y as CollectionDependencyData, ya as JsonDocsEvent, yi as OutputTargetDistTypes, yn as SourceTarget, yr as CompilerSystemCreateDirectoryResults, yt as CssTransformCacheEntry, z as ComponentCompilerListener, zi as RobotsTxtResults, zn as BuildEvents, zr as Diagnostic, zt as LazyBundlesRuntimeData } from "../index-BwTaN1Nq.mjs";
|
|
2
2
|
import ts from "typescript";
|
|
3
3
|
|
|
4
4
|
//#region src/version.d.ts
|
|
@@ -12,7 +12,7 @@ declare const vermoji: string;
|
|
|
12
12
|
declare const versions: {
|
|
13
13
|
readonly stencil: string;
|
|
14
14
|
readonly typescript: string;
|
|
15
|
-
readonly
|
|
15
|
+
readonly rolldown: string;
|
|
16
16
|
readonly terser: string;
|
|
17
17
|
};
|
|
18
18
|
//#endregion
|
|
@@ -189,4 +189,4 @@ type ConfigValidationResults = {
|
|
|
189
189
|
*/
|
|
190
190
|
declare const validateConfig: (userConfig: UnvalidatedConfig, bootstrapConfig: LoadConfigInit) => ConfigValidationResults;
|
|
191
191
|
//#endregion
|
|
192
|
-
export { AnyHTMLElement, AssetsMeta, AutoprefixerOptions, BuildComponent, BuildConditionals, BuildCtx, BuildEmitEvents, BuildEvents, BuildFeatures, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, BuildSourceGraph, BuildStyleUpdate, BuildTask, BundleModule, BundleModuleOutput,
|
|
192
|
+
export { AnyHTMLElement, AssetsMeta, AutoprefixerOptions, BuildComponent, BuildConditionals, BuildCtx, BuildEmitEvents, BuildEvents, BuildFeatures, BuildLog, BuildNoChangeResults, BuildOnEventRemove, BuildOnEvents, BuildOutput, BuildResultsComponentGraph, BuildSourceGraph, BuildStyleUpdate, BuildTask, BundleModule, BundleModuleOutput, Cache, CacheStorage, ChildType, CliInitOptions, CollectionBundleManifest, CollectionCompiler, CollectionCompilerMeta, CollectionCompilerVersion, CollectionComponentEntryPath, CollectionDependencyData, CollectionDependencyManifest, CollectionManifest, CompileScriptMinifyOptions, CompileTarget, Compiler, CompilerAssetDir, CompilerBuildResults, CompilerBuildStart, CompilerBuildStatBundle, CompilerBuildStatCollection, CompilerBuildStats, CompilerCtx, CompilerDependency, CompilerEventBuildFinish, CompilerEventBuildLog, CompilerEventBuildNoChange, CompilerEventBuildStart, CompilerEventDirAdd, CompilerEventDirDelete, CompilerEventFileAdd, CompilerEventFileDelete, CompilerEventFileUpdate, CompilerEventFsChange, CompilerEventName, CompilerFileWatcher, CompilerFileWatcherCallback, CompilerFileWatcherEvent, CompilerFsStats, CompilerJsDoc, CompilerJsDocTagInfo, CompilerModeStyles, CompilerRequest, CompilerRequestResponse, CompilerStyleDoc, CompilerSystem, CompilerSystemCreateDirectoryOptions, CompilerSystemCreateDirectoryResults, CompilerSystemRealpathResults, CompilerSystemRemoveDirectoryOptions, CompilerSystemRemoveDirectoryResults, CompilerSystemRemoveFileResults, CompilerSystemRenameResults, CompilerSystemRenamedPath, CompilerSystemWriteFileResults, CompilerWatcher, CompilerWorkerContext, CompilerWorkerTask, ComponentCompilerChangeHandler, ComponentCompilerCustomState, ComponentCompilerData, ComponentCompilerEvent, ComponentCompilerEventComplexType, ComponentCompilerFeatures, ComponentCompilerListener, ComponentCompilerMeta, ComponentCompilerMethod, ComponentCompilerMethodComplexType, ComponentCompilerProperty, ComponentCompilerPropertyComplexType, ComponentCompilerPropertyType, ComponentCompilerReferencedType, ComponentCompilerState, ComponentCompilerStaticEvent, ComponentCompilerStaticMethod, ComponentCompilerStaticProperty, ComponentCompilerTypeReference, ComponentCompilerTypeReferences, ComponentCompilerVirtualProperty, ComponentConstructor, ComponentConstructorChangeHandlers, ComponentConstructorEncapsulation, ComponentConstructorEvent, ComponentConstructorListener, ComponentConstructorProperties, ComponentConstructorProperty, ComponentConstructorPropertyType, ComponentNativeConstructor, ComponentPatches, ComponentRuntimeHostListener, ComponentRuntimeMember, ComponentRuntimeMembers, ComponentRuntimeMeta, ComponentRuntimeMetaCompact, ComponentRuntimeReflectingAttr, ComponentTestingConstructor, Config, ConfigBundle, ConfigExtras, CopyResults, CopyTask, Credentials, CssImportData, CssToEsmImportData, CssTransformCacheEntry, CustomElementsExportBehavior, CustomElementsExportBehaviorOptions, DevServer, DevServerConfig, DevServerEditor, Diagnostic, DocData, EligiblePrimaryPackageOutputTarget, Encapsulation, EntryModule, EventInitDict, ExternalStyleCompiler, FsWatchResults, type FsWriteResults, HistoryApiFallback, HmrStyleUpdate, HostElement, HostRef, HotModuleReplacement, HydrateAnchorElement, HydrateComponent, HydrateDocumentOptions, HydrateElement, HydrateFactoryOptions, HydrateImgElement, HydrateResults, HydrateScriptElement, HydrateStaticData, HydrateStyleElement, HydratedFlag, ImportData, JSDocTagInfo, JsDoc, JsonDocMethodParameter, JsonDocs, JsonDocsComponent, JsonDocsCustomState, JsonDocsDependencyGraph, JsonDocsEvent, JsonDocsListener, JsonDocsMethod, JsonDocsMethodReturn, JsonDocsPart, JsonDocsProp, JsonDocsSlot, JsonDocsStyle, JsonDocsTag, JsonDocsTypeLibrary, JsonDocsUsage, JsonDocsValue, LOG_LEVELS, LazyBundleRuntimeData, LazyBundlesRuntimeData, LazyRequire, LoadConfigInit, LoadConfigResults, LogLevel, Logger, LoggerLineUpdater, LoggerTimeSpan, Module, ModuleFormat, ModuleMap, MsgFromWorker, MsgToWorker, NewSpecPageOptions, NodeMap, NodeResolveConfig, OptimizeCssInput, OptimizeCssOutput, OptimizeJsInput, OptimizeJsOutput, OptimizeJsResult, OutputTarget, OutputTargetBase, OutputTargetBaseNext, OutputTargetBuild, OutputTargetCopy, OutputTargetCustom, OutputTargetDist, OutputTargetDistCollection, OutputTargetDistCustomElements, OutputTargetDistGlobalStyles, OutputTargetDistLazy, OutputTargetDistLazyLoader, OutputTargetDistTypes, OutputTargetDocsCustom, OutputTargetDocsCustomElementsManifest, OutputTargetDocsJson, OutputTargetDocsReadme, OutputTargetDocsVscode, OutputTargetHydrate, OutputTargetStats, OutputTargetWww, PackageJsonData, PageReloadStrategy, ParsedImport, ParsedPath, PatchedSlotNode, PlatformPath, PlatformRuntime, Plugin, PluginCtx, PluginTransformResults, PluginTransformationDescriptor, PrerenderConfig, PrerenderHydrateOptions, PrerenderManager, PrerenderResults, PrerenderStartOptions, PrerenderUrlRequest, PrerenderUrlResults, PrintLine, PropsType, RenderNode, ResolveModuleIdOptions, ResolveModuleIdResults, ResolveModuleOptions, RobotsTxtOpts, RobotsTxtResults, RolldownAssetResult, RolldownChunkResult, RolldownConfig, RolldownInputOptions, RolldownInterface, RolldownOutputOptions, RolldownResult, RolldownResultModule, RolldownResults, RolldownSourceMap, RootAppliedStyleMap, RuntimeRef, SerializeDocumentOptions, SerializeImportData, SerializedEvent, ServiceWorkerConfig, SitemapXmpOpts, SitemapXmpResults, SourceMap, SourceTarget, SpecPage, StencilConfig, StencilDevServerConfig, StencilDocsConfig, StencilDocument, StyleCompiler, StyleDoc, StyleMap, SystemDetails, TransformCssToEsmInput, TransformCssToEsmOutput, TransformOptions, TranspileModuleResults, TranspileOnlyResults, TranspileOptions, TranspileResults, TypeInfo, TypesImportData, TypesMemberNameData, TypesModule, UnvalidatedConfig, UpdatedLazyBuildCtx, VNodeProdData, ValidateTypesResults, ValidatedConfig, WatcherCloseResults, Workbox, WorkerContextMethod, WorkerMainController, WorkerMsgHandler, WorkerOptions, buildId, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, loadConfig, nodeRequire, optimizeCss, optimizeJs, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
package/dist/compiler/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as validateConfig, i as createSystem, l as createWorkerMessageHandler, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-
|
|
2
|
-
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-
|
|
1
|
+
import { a as createPrerenderer, b as version, c as createWorkerContext, d as nodeRequire, f as optimizeCss, g as validateConfig, i as createSystem, l as createWorkerMessageHandler, n as transpile, o as loadConfig, r as transpileSync, s as createCompiler, t as ts, u as optimizeJs, v as buildId, x as versions, y as vermoji } from "../compiler-BYRrEeD-.mjs";
|
|
2
|
+
import { a as LOG_LEVELS, i as CustomElementsExportBehaviorOptions } from "../node-BF2jSfWg.mjs";
|
|
3
3
|
export { CustomElementsExportBehaviorOptions, LOG_LEVELS, buildId, createCompiler, createPrerenderer, createSystem, createWorkerContext, createWorkerMessageHandler, loadConfig, nodeRequire, optimizeCss, optimizeJs, transpile, transpileSync, ts, validateConfig, vermoji, version, versions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $a as
|
|
2
|
-
export { CMP_FLAGS, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST, DIST_COLLECTION, DIST_CUSTOM_ELEMENTS, DIST_GLOBAL_STYLES, DIST_HYDRATE_SCRIPT, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, FilterComponentsResult, GENERATED_DTS, HOST_FLAGS, HTML_NS, LISTENER_FLAGS,
|
|
1
|
+
import { $a as result_d_exports, $o as isGlob, $s as XLINK_NS, Ao as isOutputTargetHydrate, As as DIST_CUSTOM_ELEMENTS, Ba as isDtsFile, Bo as catchError, Bs as DOCS_VSCODE, Co as isOutputTargetDistTypes, Cs as CMP_FLAGS, Do as isOutputTargetDocsJson, Ds as DEFAULT_STYLE_MODE, Eo as isOutputTargetDocsCustomElementsManifest, Es as CUSTOM, Fa as addDocBlock, Fo as shouldExcludeComponent, Fs as DIST_TYPES, Ga as parsePackageJson, Go as normalizeDiagnostics, Gs as LISTENER_FLAGS, Ha as isJsxFile, Ho as hasWarning, Hs as GENERATED_DTS, Ia as createJsVarName, Io as TASK_CANCELED_MSG, Is as DOCS_CUSTOM, Ja as isRemoteUrl, Jo as loadTypeScriptDiagnostic, Js as STATS, Ka as readOnlyArrayHasStringMember, Ko as splitLineBreaks, Ks as MEMBER_FLAGS, La as generatePreamble, Lo as buildError, Ls as DOCS_CUSTOM_ELEMENTS_MANIFEST, Mo as isOutputTargetWww, Ms as DIST_HYDRATE_SCRIPT, Na as validateComponentTag, No as isValidConfigOutputTarget, Ns as DIST_LAZY, Oo as isOutputTargetDocsReadme, Os as DIST, Pa as ParsePackageJsonResult, Po as relativeImport, Ps as DIST_LAZY_LOADER, Qa as rolldownToStencilSourceMap, Qo as isRootPath, Qs as WWW, Ra as getTextDocs, Ro as buildJsonFileError, Rs as DOCS_JSON, So as isOutputTargetDistLazyLoader, Ss as stringifyRuntimeData, To as isOutputTargetDocsCustom, Ts as COPY, Ua as isTsFile, Uo as shouldIgnoreError, Us as HOST_FLAGS, Va as isJsFile, Vo as hasError, Vs as EVENT_FLAGS, Wa as isTsxFile, Wo as escapeHtml, Ws as HTML_NS, Xa as getSourceMappingUrlForEndOfFile, Xo as createOnWarnFn, Xs as VALID_CONFIG_OUTPUT_TARGETS, Ya as getInlineSourceMappingUrlLinker, Yo as loadTypeScriptDiagnostics, Ys as SVG_NS, Za as getSourceMappingUrlLinker, Zo as loadRolldownDiagnostics, Zs as WATCH_FLAGS, _o as isOutputTargetDist, _s as toDashCase, ao as normalizeFsPathQuery, as as isComplexType, bo as isOutputTargetDistGlobalStyles, bs as formatComponentRuntimeMeta, co as resolve, cs as isIterable, do as getComponentsDtsSrcFilePath, ds as isString, ec as byteSize, eo as escapeRegExpSpecialCharacters, es as dashToPascalCase, fo as getComponentsDtsTypesFilePath, fs as mergeIntoWith, go as isOutputTargetCustom, gs as toCamelCase, ho as isOutputTargetCopy, hs as sortBy, io as normalizeFsPath, is as isBoolean, jo as isOutputTargetStats, js as DIST_GLOBAL_STYLES, ko as isOutputTargetDocsVscode, ks as DIST_COLLECTION, lo as FilterComponentsResult, ls as isNumber, mo as isEligiblePrimaryPackageOutputTarget, ms as pluck, no as join, ns as flatOne, oo as normalizePath, os as isDef, po as getComponentsFromModules, ps as noop, qa as readPackageJson, qo as augmentDiagnosticWithNode, qs as NODE_TYPES, ro as normalize, rs as fromEntries, so as relative, ss as isFunction, to as queryNonceMetaTagContent, ts as escapeWithPattern, uo as filterExcludedComponents, us as isObject, vo as isOutputTargetDistCollection, vs as toTitleCase, wo as isOutputTargetDocs, ws as COLLECTION_MANIFEST_FILE_NAME, xo as isOutputTargetDistLazy, xs as formatLazyBundleRuntimeMeta, yo as isOutputTargetDistCustomElements, ys as unique, za as hasDependency, zo as buildWarn, zs as DOCS_README } from "../../index-BwTaN1Nq.mjs";
|
|
2
|
+
export { CMP_FLAGS, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST, DIST_COLLECTION, DIST_CUSTOM_ELEMENTS, DIST_GLOBAL_STYLES, DIST_HYDRATE_SCRIPT, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, FilterComponentsResult, GENERATED_DTS, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, MEMBER_FLAGS, NODE_TYPES, ParsePackageJsonResult, STATS, SVG_NS, TASK_CANCELED_MSG, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isEligiblePrimaryPackageOutputTarget, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDist, isOutputTargetDistCollection, isOutputTargetDistCustomElements, isOutputTargetDistGlobalStyles, isOutputTargetDistLazy, isOutputTargetDistLazyLoader, isOutputTargetDistTypes, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetHydrate, isOutputTargetStats, isOutputTargetWww, isRemoteUrl, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_d_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as join, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, C as result_exports, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, St as formatLazyBundleRuntimeMeta, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Y as shouldExcludeComponent, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve, bt as isGlob, c as isJsFile, ct as escapeHtml, d as isTsxFile, dt as TASK_CANCELED_MSG, et as normalize, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative, j as isOutputTargetDist, k as isOutputTargetCopy, l as isJsxFile, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as
|
|
3
|
-
export { CMP_FLAGS, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST, DIST_COLLECTION, DIST_CUSTOM_ELEMENTS, DIST_GLOBAL_STYLES, DIST_HYDRATE_SCRIPT, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, HOST_FLAGS, HTML_NS, LISTENER_FLAGS,
|
|
1
|
+
import { $ as XLINK_NS, A as DIST_CUSTOM_ELEMENTS, B as DOCS_VSCODE, C as CMP_FLAGS, D as DEFAULT_STYLE_MODE, E as CUSTOM, F as DIST_TYPES, G as LISTENER_FLAGS, H as GENERATED_DTS, I as DOCS_CUSTOM, J as STATS, K as MEMBER_FLAGS, L as DOCS_CUSTOM_ELEMENTS_MANIFEST, M as DIST_HYDRATE_SCRIPT, N as DIST_LAZY, O as DIST, P as DIST_LAZY_LOADER, Q as WWW, R as DOCS_JSON, S as queryNonceMetaTagContent, T as COPY, U as HOST_FLAGS, V as EVENT_FLAGS, W as HTML_NS, X as VALID_CONFIG_OUTPUT_TARGETS, Y as SVG_NS, Z as WATCH_FLAGS, _ as sortBy, a as fromEntries, b as toTitleCase, c as isDef, d as isNumber, f as isObject, g as pluck, h as noop, i as flatOne, j as DIST_GLOBAL_STYLES, k as DIST_COLLECTION, l as isFunction, m as mergeIntoWith, n as dashToPascalCase, o as isBoolean, p as isString, q as NODE_TYPES, r as escapeWithPattern, s as isComplexType, t as escapeRegExpSpecialCharacters, u as isIterable, v as toCamelCase, w as COLLECTION_MANIFEST_FILE_NAME, x as unique, y as toDashCase, z as DOCS_README } from "../../regular-expression-D5pGVpCu.mjs";
|
|
2
|
+
import { $ as join, A as isOutputTargetCustom, B as isOutputTargetDocsCustomElementsManifest, C as result_exports, Ct as stringifyRuntimeData, D as getComponentsFromModules, E as getComponentsDtsTypesFilePath, F as isOutputTargetDistLazy, G as isOutputTargetStats, H as isOutputTargetDocsReadme, I as isOutputTargetDistLazyLoader, J as relativeImport, K as isOutputTargetWww, L as isOutputTargetDistTypes, M as isOutputTargetDistCollection, N as isOutputTargetDistCustomElements, O as isEligiblePrimaryPackageOutputTarget, P as isOutputTargetDistGlobalStyles, Q as loadTypeScriptDiagnostics, R as isOutputTargetDocs, St as formatLazyBundleRuntimeMeta, T as getComponentsDtsSrcFilePath, U as isOutputTargetDocsVscode, V as isOutputTargetDocsJson, W as isOutputTargetHydrate, X as augmentDiagnosticWithNode, Y as shouldExcludeComponent, Z as loadTypeScriptDiagnostic, _ as getSourceMappingUrlForEndOfFile, _t as hasWarning, a as getTextDocs, at as resolve, bt as isGlob, c as isJsFile, ct as escapeHtml, d as isTsxFile, dt as TASK_CANCELED_MSG, et as normalize, f as parsePackageJson, ft as buildError, g as getInlineSourceMappingUrlLinker, gt as hasError, h as isRemoteUrl, ht as catchError, i as generatePreamble, it as relative, j as isOutputTargetDist, k as isOutputTargetCopy, l as isJsxFile, lt as normalizeDiagnostics, m as readPackageJson, mt as buildWarn, n as addDocBlock, nt as normalizeFsPathQuery, o as hasDependency, ot as createOnWarnFn, p as readOnlyArrayHasStringMember, pt as buildJsonFileError, q as isValidConfigOutputTarget, r as createJsVarName, rt as normalizePath, s as isDtsFile, st as loadRolldownDiagnostics, t as validateComponentTag, tt as normalizeFsPath, u as isTsFile, ut as splitLineBreaks, v as getSourceMappingUrlLinker, vt as shouldIgnoreError, w as filterExcludedComponents, wt as byteSize, xt as formatComponentRuntimeMeta, y as rolldownToStencilSourceMap, yt as isRootPath, z as isOutputTargetDocsCustom } from "../../validation-Byxie0Uk.mjs";
|
|
3
|
+
export { CMP_FLAGS, COLLECTION_MANIFEST_FILE_NAME, COPY, CUSTOM, DEFAULT_STYLE_MODE, DIST, DIST_COLLECTION, DIST_CUSTOM_ELEMENTS, DIST_GLOBAL_STYLES, DIST_HYDRATE_SCRIPT, DIST_LAZY, DIST_LAZY_LOADER, DIST_TYPES, DOCS_CUSTOM, DOCS_CUSTOM_ELEMENTS_MANIFEST, DOCS_JSON, DOCS_README, DOCS_VSCODE, EVENT_FLAGS, GENERATED_DTS, HOST_FLAGS, HTML_NS, LISTENER_FLAGS, MEMBER_FLAGS, NODE_TYPES, STATS, SVG_NS, TASK_CANCELED_MSG, VALID_CONFIG_OUTPUT_TARGETS, WATCH_FLAGS, WWW, XLINK_NS, addDocBlock, augmentDiagnosticWithNode, buildError, buildJsonFileError, buildWarn, byteSize, catchError, createJsVarName, createOnWarnFn, dashToPascalCase, escapeHtml, escapeRegExpSpecialCharacters, escapeWithPattern, filterExcludedComponents, flatOne, formatComponentRuntimeMeta, formatLazyBundleRuntimeMeta, fromEntries, generatePreamble, getComponentsDtsSrcFilePath, getComponentsDtsTypesFilePath, getComponentsFromModules, getInlineSourceMappingUrlLinker, getSourceMappingUrlForEndOfFile, getSourceMappingUrlLinker, getTextDocs, hasDependency, hasError, hasWarning, isBoolean, isComplexType, isDef, isDtsFile, isEligiblePrimaryPackageOutputTarget, isFunction, isGlob, isIterable, isJsFile, isJsxFile, isNumber, isObject, isOutputTargetCopy, isOutputTargetCustom, isOutputTargetDist, isOutputTargetDistCollection, isOutputTargetDistCustomElements, isOutputTargetDistGlobalStyles, isOutputTargetDistLazy, isOutputTargetDistLazyLoader, isOutputTargetDistTypes, isOutputTargetDocs, isOutputTargetDocsCustom, isOutputTargetDocsCustomElementsManifest, isOutputTargetDocsJson, isOutputTargetDocsReadme, isOutputTargetDocsVscode, isOutputTargetHydrate, isOutputTargetStats, isOutputTargetWww, isRemoteUrl, isRootPath, isString, isTsFile, isTsxFile, isValidConfigOutputTarget, join, loadRolldownDiagnostics, loadTypeScriptDiagnostic, loadTypeScriptDiagnostics, mergeIntoWith, noop, normalize, normalizeDiagnostics, normalizeFsPath, normalizeFsPathQuery, normalizePath, parsePackageJson, pluck, queryNonceMetaTagContent, readOnlyArrayHasStringMember, readPackageJson, relative, relativeImport, resolve, result_exports as result, rolldownToStencilSourceMap, shouldExcludeComponent, shouldIgnoreError, sortBy, splitLineBreaks, stringifyRuntimeData, toCamelCase, toDashCase, toTitleCase, unique, validateComponentTag };
|