@stencil/core 4.42.0-dev.1770182530.756b7aa → 4.42.0-dev.1770355537.e4eeb37
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/cli/index.cjs +1 -1
- package/cli/index.js +1 -1
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +58 -19
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +200 -165
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +201 -166
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-core/index.d.ts +1 -0
- package/internal/stencil-private.d.ts +6 -0
- package/internal/stencil-public-runtime.d.ts +0 -4
- package/internal/testing/index.js +200 -165
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +28 -28
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +2 -1
- package/testing/package.json +1 -1
|
@@ -4193,7 +4193,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
4193
4193
|
}
|
|
4194
4194
|
}
|
|
4195
4195
|
} else if (import_app_data11.BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
|
|
4196
|
-
const
|
|
4196
|
+
const propName = memberName.slice(5);
|
|
4197
|
+
let attrName;
|
|
4198
|
+
if (import_app_data11.BUILD.member) {
|
|
4199
|
+
const hostRef = getHostRef(elm);
|
|
4200
|
+
if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
|
|
4201
|
+
const memberMeta = hostRef.$cmpMeta$.$members$[propName];
|
|
4202
|
+
if (memberMeta && memberMeta[1]) {
|
|
4203
|
+
attrName = memberMeta[1];
|
|
4204
|
+
}
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
if (!attrName) {
|
|
4208
|
+
attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
4209
|
+
}
|
|
4197
4210
|
if (newValue == null || newValue === false) {
|
|
4198
4211
|
if (newValue !== false || elm.getAttribute(attrName) === "") {
|
|
4199
4212
|
elm.removeAttribute(attrName);
|
|
@@ -5049,7 +5062,7 @@ var updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
5049
5062
|
if (childrenPromises.length === 0) {
|
|
5050
5063
|
postUpdate();
|
|
5051
5064
|
} else {
|
|
5052
|
-
Promise.all(childrenPromises).then(postUpdate);
|
|
5065
|
+
Promise.all(childrenPromises).then(postUpdate).catch(postUpdate);
|
|
5053
5066
|
hostRef.$flags$ |= 4 /* isWaitingForChildren */;
|
|
5054
5067
|
childrenPromises.length = 0;
|
|
5055
5068
|
}
|
|
@@ -5310,13 +5323,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
5310
5323
|
});
|
|
5311
5324
|
}
|
|
5312
5325
|
}
|
|
5313
|
-
if (import_app_data15.BUILD.updatable &&
|
|
5326
|
+
if (import_app_data15.BUILD.updatable && flags & 2 /* hasRendered */) {
|
|
5314
5327
|
if (instance.componentShouldUpdate) {
|
|
5315
|
-
|
|
5328
|
+
const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
|
|
5329
|
+
if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
|
|
5316
5330
|
return;
|
|
5317
5331
|
}
|
|
5318
5332
|
}
|
|
5319
|
-
|
|
5333
|
+
if (!(flags & 16 /* isQueuedForUpdate */)) {
|
|
5334
|
+
scheduleUpdate(hostRef, false);
|
|
5335
|
+
}
|
|
5320
5336
|
}
|
|
5321
5337
|
}
|
|
5322
5338
|
};
|
|
@@ -5564,94 +5580,105 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
|
|
|
5564
5580
|
// src/runtime/initialize-component.ts
|
|
5565
5581
|
var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
5566
5582
|
let Cstr;
|
|
5567
|
-
|
|
5568
|
-
hostRef.$flags$
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5583
|
+
try {
|
|
5584
|
+
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
5585
|
+
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
5586
|
+
const bundleId = cmpMeta.$lazyBundleId$;
|
|
5587
|
+
if (import_app_data17.BUILD.lazyLoad && bundleId) {
|
|
5588
|
+
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
5589
|
+
if (CstrImport && "then" in CstrImport) {
|
|
5590
|
+
const endLoad = uniqueTime(
|
|
5591
|
+
`st:load:${cmpMeta.$tagName$}:${hostRef.$modeName$}`,
|
|
5592
|
+
`[Stencil] Load module for <${cmpMeta.$tagName$}>`
|
|
5593
|
+
);
|
|
5594
|
+
Cstr = await CstrImport;
|
|
5595
|
+
endLoad();
|
|
5596
|
+
} else {
|
|
5597
|
+
Cstr = CstrImport;
|
|
5598
|
+
}
|
|
5599
|
+
if (!Cstr) {
|
|
5600
|
+
throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
|
|
5601
|
+
}
|
|
5602
|
+
if (import_app_data17.BUILD.member && !Cstr.isProxied) {
|
|
5603
|
+
if (import_app_data17.BUILD.propChangeCallback) {
|
|
5604
|
+
cmpMeta.$watchers$ = Cstr.watchers;
|
|
5605
|
+
cmpMeta.$serializers$ = Cstr.serializers;
|
|
5606
|
+
cmpMeta.$deserializers$ = Cstr.deserializers;
|
|
5607
|
+
}
|
|
5608
|
+
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
5609
|
+
Cstr.isProxied = true;
|
|
5610
|
+
}
|
|
5611
|
+
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
5612
|
+
if (import_app_data17.BUILD.member) {
|
|
5613
|
+
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
5614
|
+
}
|
|
5615
|
+
try {
|
|
5616
|
+
new Cstr(hostRef);
|
|
5617
|
+
} catch (e) {
|
|
5618
|
+
consoleError(e, elm);
|
|
5619
|
+
}
|
|
5620
|
+
if (import_app_data17.BUILD.member) {
|
|
5621
|
+
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
5622
|
+
}
|
|
5586
5623
|
if (import_app_data17.BUILD.propChangeCallback) {
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5624
|
+
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
5625
|
+
}
|
|
5626
|
+
endNewInstance();
|
|
5627
|
+
const needsDeferredCallback = import_app_data17.BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
5628
|
+
if (!needsDeferredCallback) {
|
|
5629
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
5630
|
+
} else {
|
|
5631
|
+
hostRef.$deferredConnectedCallback$ = true;
|
|
5590
5632
|
}
|
|
5591
|
-
proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
|
|
5592
|
-
Cstr.isProxied = true;
|
|
5593
|
-
}
|
|
5594
|
-
const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
|
|
5595
|
-
if (import_app_data17.BUILD.member) {
|
|
5596
|
-
hostRef.$flags$ |= 8 /* isConstructingInstance */;
|
|
5597
|
-
}
|
|
5598
|
-
try {
|
|
5599
|
-
new Cstr(hostRef);
|
|
5600
|
-
} catch (e) {
|
|
5601
|
-
consoleError(e, elm);
|
|
5602
|
-
}
|
|
5603
|
-
if (import_app_data17.BUILD.member) {
|
|
5604
|
-
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
5605
|
-
}
|
|
5606
|
-
if (import_app_data17.BUILD.propChangeCallback) {
|
|
5607
|
-
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
5608
|
-
}
|
|
5609
|
-
endNewInstance();
|
|
5610
|
-
const needsDeferredCallback = import_app_data17.BUILD.slotRelocation && cmpMeta.$flags$ & 4 /* hasSlotRelocation */;
|
|
5611
|
-
if (!needsDeferredCallback) {
|
|
5612
|
-
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
5613
5633
|
} else {
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
} else if (needsScopedSSR()) {
|
|
5641
|
-
style = expandPartSelectors(style);
|
|
5634
|
+
Cstr = elm.constructor;
|
|
5635
|
+
const cmpTag = elm.localName;
|
|
5636
|
+
customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
|
|
5637
|
+
}
|
|
5638
|
+
if (import_app_data17.BUILD.style && Cstr && Cstr.style) {
|
|
5639
|
+
let style;
|
|
5640
|
+
if (typeof Cstr.style === "string") {
|
|
5641
|
+
style = Cstr.style;
|
|
5642
|
+
} else if (import_app_data17.BUILD.mode && typeof Cstr.style !== "string") {
|
|
5643
|
+
hostRef.$modeName$ = computeMode(elm);
|
|
5644
|
+
if (hostRef.$modeName$) {
|
|
5645
|
+
style = Cstr.style[hostRef.$modeName$];
|
|
5646
|
+
}
|
|
5647
|
+
if (import_app_data17.BUILD.hydrateServerSide && hostRef.$modeName$) {
|
|
5648
|
+
elm.setAttribute("s-mode", hostRef.$modeName$);
|
|
5649
|
+
}
|
|
5650
|
+
}
|
|
5651
|
+
const scopeId2 = getScopeId(cmpMeta, hostRef.$modeName$);
|
|
5652
|
+
if (!styles.has(scopeId2) || import_app_data17.BUILD.hotModuleReplacement && hmrVersionId) {
|
|
5653
|
+
const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
|
|
5654
|
+
if (import_app_data17.BUILD.hydrateServerSide && import_app_data17.BUILD.shadowDom) {
|
|
5655
|
+
if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
|
|
5656
|
+
style = scopeCss(style, scopeId2, true);
|
|
5657
|
+
} else if (needsScopedSSR()) {
|
|
5658
|
+
style = expandPartSelectors(style);
|
|
5659
|
+
}
|
|
5642
5660
|
}
|
|
5661
|
+
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
5662
|
+
endRegisterStyles();
|
|
5643
5663
|
}
|
|
5644
|
-
registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
|
|
5645
|
-
endRegisterStyles();
|
|
5646
5664
|
}
|
|
5647
5665
|
}
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5666
|
+
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
5667
|
+
const schedule = () => scheduleUpdate(hostRef, true);
|
|
5668
|
+
if (import_app_data17.BUILD.asyncLoading && ancestorComponent && ancestorComponent["s-rc"]) {
|
|
5669
|
+
ancestorComponent["s-rc"].push(schedule);
|
|
5670
|
+
} else {
|
|
5671
|
+
schedule();
|
|
5672
|
+
}
|
|
5673
|
+
} catch (e) {
|
|
5674
|
+
consoleError(e, elm);
|
|
5675
|
+
if (import_app_data17.BUILD.asyncLoading && hostRef.$onRenderResolve$) {
|
|
5676
|
+
hostRef.$onRenderResolve$();
|
|
5677
|
+
hostRef.$onRenderResolve$ = void 0;
|
|
5678
|
+
}
|
|
5679
|
+
if (import_app_data17.BUILD.asyncLoading && hostRef.$onReadyResolve$) {
|
|
5680
|
+
hostRef.$onReadyResolve$(elm);
|
|
5681
|
+
}
|
|
5655
5682
|
}
|
|
5656
5683
|
};
|
|
5657
5684
|
var fireConnectedCallback = (instance, elm) => {
|
|
@@ -5783,91 +5810,99 @@ var proxyCustomElement = (Cstr, compactMeta) => {
|
|
|
5783
5810
|
$flags$: compactMeta[0],
|
|
5784
5811
|
$tagName$: compactMeta[1]
|
|
5785
5812
|
};
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
if (import_app_data20.BUILD.hostListener) {
|
|
5790
|
-
cmpMeta.$listeners$ = compactMeta[3];
|
|
5791
|
-
}
|
|
5792
|
-
if (import_app_data20.BUILD.propChangeCallback) {
|
|
5793
|
-
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
5794
|
-
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
5795
|
-
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
5796
|
-
}
|
|
5797
|
-
if (import_app_data20.BUILD.reflect) {
|
|
5798
|
-
cmpMeta.$attrsToReflect$ = [];
|
|
5799
|
-
}
|
|
5800
|
-
if (import_app_data20.BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
5801
|
-
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
5802
|
-
}
|
|
5803
|
-
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
5804
|
-
if (import_app_data20.BUILD.experimentalSlotFixes) {
|
|
5805
|
-
patchPseudoShadowDom(Cstr.prototype);
|
|
5806
|
-
} else {
|
|
5807
|
-
if (import_app_data20.BUILD.slotChildNodesFix) {
|
|
5808
|
-
patchChildSlotNodes(Cstr.prototype);
|
|
5809
|
-
}
|
|
5810
|
-
if (import_app_data20.BUILD.cloneNodeFix) {
|
|
5811
|
-
patchCloneNode(Cstr.prototype);
|
|
5812
|
-
}
|
|
5813
|
-
if (import_app_data20.BUILD.appendChildSlotFix) {
|
|
5814
|
-
patchSlotAppendChild(Cstr.prototype);
|
|
5815
|
-
}
|
|
5816
|
-
if (import_app_data20.BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
5817
|
-
patchTextContent(Cstr.prototype);
|
|
5818
|
-
}
|
|
5813
|
+
try {
|
|
5814
|
+
if (import_app_data20.BUILD.member) {
|
|
5815
|
+
cmpMeta.$members$ = compactMeta[2];
|
|
5819
5816
|
}
|
|
5820
|
-
|
|
5821
|
-
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5817
|
+
if (import_app_data20.BUILD.hostListener) {
|
|
5818
|
+
cmpMeta.$listeners$ = compactMeta[3];
|
|
5819
|
+
}
|
|
5820
|
+
if (import_app_data20.BUILD.propChangeCallback) {
|
|
5821
|
+
cmpMeta.$watchers$ = Cstr.$watchers$;
|
|
5822
|
+
cmpMeta.$deserializers$ = Cstr.$deserializers$;
|
|
5823
|
+
cmpMeta.$serializers$ = Cstr.$serializers$;
|
|
5824
|
+
}
|
|
5825
|
+
if (import_app_data20.BUILD.reflect) {
|
|
5826
|
+
cmpMeta.$attrsToReflect$ = [];
|
|
5827
|
+
}
|
|
5828
|
+
if (import_app_data20.BUILD.shadowDom && !supportsShadow && cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
|
|
5829
|
+
cmpMeta.$flags$ |= 8 /* needsShadowDomShim */;
|
|
5830
|
+
}
|
|
5831
|
+
if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && cmpMeta.$flags$ & 256 /* hasSlot */) {
|
|
5832
|
+
if (import_app_data20.BUILD.experimentalSlotFixes) {
|
|
5833
|
+
patchPseudoShadowDom(Cstr.prototype);
|
|
5834
|
+
} else {
|
|
5835
|
+
if (import_app_data20.BUILD.slotChildNodesFix) {
|
|
5836
|
+
patchChildSlotNodes(Cstr.prototype);
|
|
5837
|
+
}
|
|
5838
|
+
if (import_app_data20.BUILD.cloneNodeFix) {
|
|
5839
|
+
patchCloneNode(Cstr.prototype);
|
|
5840
|
+
}
|
|
5841
|
+
if (import_app_data20.BUILD.appendChildSlotFix) {
|
|
5842
|
+
patchSlotAppendChild(Cstr.prototype);
|
|
5843
|
+
}
|
|
5844
|
+
if (import_app_data20.BUILD.scopedSlotTextContentFix && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
|
|
5845
|
+
patchTextContent(Cstr.prototype);
|
|
5838
5846
|
}
|
|
5839
|
-
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
5840
|
-
this.__hasHostListenerAttached = true;
|
|
5841
|
-
}
|
|
5842
|
-
connectedCallback(this);
|
|
5843
|
-
if (originalConnectedCallback) {
|
|
5844
|
-
originalConnectedCallback.call(this);
|
|
5845
|
-
}
|
|
5846
|
-
},
|
|
5847
|
-
disconnectedCallback() {
|
|
5848
|
-
disconnectedCallback(this);
|
|
5849
|
-
if (originalDisconnectedCallback) {
|
|
5850
|
-
originalDisconnectedCallback.call(this);
|
|
5851
5847
|
}
|
|
5852
|
-
}
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5848
|
+
} else if (import_app_data20.BUILD.cloneNodeFix) {
|
|
5849
|
+
patchCloneNode(Cstr.prototype);
|
|
5850
|
+
}
|
|
5851
|
+
if (import_app_data20.BUILD.hydrateClientSide && import_app_data20.BUILD.shadowDom) {
|
|
5852
|
+
hydrateScopedToShadow();
|
|
5853
|
+
}
|
|
5854
|
+
const originalConnectedCallback = Cstr.prototype.connectedCallback;
|
|
5855
|
+
const originalDisconnectedCallback = Cstr.prototype.disconnectedCallback;
|
|
5856
|
+
Object.assign(Cstr.prototype, {
|
|
5857
|
+
__hasHostListenerAttached: false,
|
|
5858
|
+
__registerHost() {
|
|
5859
|
+
registerHost(this, cmpMeta);
|
|
5860
|
+
},
|
|
5861
|
+
connectedCallback() {
|
|
5862
|
+
if (!this.__hasHostListenerAttached) {
|
|
5863
|
+
const hostRef = getHostRef(this);
|
|
5864
|
+
if (!hostRef) {
|
|
5865
|
+
return;
|
|
5862
5866
|
}
|
|
5867
|
+
addHostEventListeners(this, hostRef, cmpMeta.$listeners$, false);
|
|
5868
|
+
this.__hasHostListenerAttached = true;
|
|
5869
|
+
}
|
|
5870
|
+
connectedCallback(this);
|
|
5871
|
+
if (originalConnectedCallback) {
|
|
5872
|
+
originalConnectedCallback.call(this);
|
|
5873
|
+
}
|
|
5874
|
+
},
|
|
5875
|
+
disconnectedCallback() {
|
|
5876
|
+
disconnectedCallback(this);
|
|
5877
|
+
if (originalDisconnectedCallback) {
|
|
5878
|
+
originalDisconnectedCallback.call(this);
|
|
5879
|
+
}
|
|
5880
|
+
},
|
|
5881
|
+
__attachShadow() {
|
|
5882
|
+
if (supportsShadow) {
|
|
5883
|
+
if (!this.shadowRoot) {
|
|
5884
|
+
createShadowRoot.call(this, cmpMeta);
|
|
5885
|
+
} else {
|
|
5886
|
+
if (this.shadowRoot.mode !== "open") {
|
|
5887
|
+
throw new Error(
|
|
5888
|
+
`Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`
|
|
5889
|
+
);
|
|
5890
|
+
}
|
|
5891
|
+
}
|
|
5892
|
+
} else {
|
|
5893
|
+
this.shadowRoot = this;
|
|
5863
5894
|
}
|
|
5864
|
-
} else {
|
|
5865
|
-
this.shadowRoot = this;
|
|
5866
5895
|
}
|
|
5867
|
-
}
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5896
|
+
});
|
|
5897
|
+
Object.defineProperty(Cstr, "is", {
|
|
5898
|
+
value: cmpMeta.$tagName$,
|
|
5899
|
+
configurable: true
|
|
5900
|
+
});
|
|
5901
|
+
return proxyComponent(Cstr, cmpMeta, 1 /* isElementConstructor */ | 2 /* proxyState */);
|
|
5902
|
+
} catch (e) {
|
|
5903
|
+
consoleError(e);
|
|
5904
|
+
return Cstr;
|
|
5905
|
+
}
|
|
5871
5906
|
};
|
|
5872
5907
|
var forceModeUpdate = (elm) => {
|
|
5873
5908
|
if (import_app_data20.BUILD.style && import_app_data20.BUILD.mode && !import_app_data20.BUILD.lazyLoad) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.42.0-dev.
|
|
3
|
+
"version": "4.42.0-dev.1770355537.e4eeb37",
|
|
4
4
|
"description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"private": true
|
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Mock Doc v4.42.0-dev.
|
|
2
|
+
Stencil Mock Doc v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED