@stencil/core 4.24.0-dev.1737522113.a7d3873 → 4.25.0-dev.1737608504.66340b2
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 +5 -6
- 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/client/index.js +33 -29
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +26 -25
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +22 -23
- 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/autoprefixer.js +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +1 -1
- package/testing/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Platform v4.
|
|
2
|
+
Stencil Hydrate Platform v4.25.0-dev.1737608504.66340b2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -2155,23 +2155,23 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2155
2155
|
if (BUILD14.lazyLoad && BUILD14.hostListener) {
|
|
2156
2156
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2157
2157
|
if (hostRef.$queuedListeners$) {
|
|
2158
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
2158
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2159
2159
|
hostRef.$queuedListeners$ = void 0;
|
|
2160
2160
|
}
|
|
2161
2161
|
}
|
|
2162
2162
|
emitLifecycleEvent(elm, "componentWillLoad");
|
|
2163
2163
|
if (BUILD14.cmpWillLoad) {
|
|
2164
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
2164
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2165
2165
|
}
|
|
2166
2166
|
} else {
|
|
2167
2167
|
emitLifecycleEvent(elm, "componentWillUpdate");
|
|
2168
2168
|
if (BUILD14.cmpWillUpdate) {
|
|
2169
|
-
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
2169
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
2170
2170
|
}
|
|
2171
2171
|
}
|
|
2172
2172
|
emitLifecycleEvent(elm, "componentWillRender");
|
|
2173
2173
|
if (BUILD14.cmpWillRender) {
|
|
2174
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
2174
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2175
2175
|
}
|
|
2176
2176
|
endSchedule();
|
|
2177
2177
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -2284,7 +2284,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2284
2284
|
if (BUILD14.isDev) {
|
|
2285
2285
|
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
2286
2286
|
}
|
|
2287
|
-
safeCall(instance, "componentDidRender");
|
|
2287
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
2288
2288
|
if (BUILD14.isDev) {
|
|
2289
2289
|
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
2290
2290
|
}
|
|
@@ -2299,7 +2299,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2299
2299
|
if (BUILD14.isDev) {
|
|
2300
2300
|
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
2301
2301
|
}
|
|
2302
|
-
safeCall(instance, "componentDidLoad");
|
|
2302
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
2303
2303
|
if (BUILD14.isDev) {
|
|
2304
2304
|
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
2305
2305
|
}
|
|
@@ -2317,7 +2317,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2317
2317
|
if (BUILD14.isDev) {
|
|
2318
2318
|
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
2319
2319
|
}
|
|
2320
|
-
safeCall(instance, "componentDidUpdate");
|
|
2320
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
2321
2321
|
if (BUILD14.isDev) {
|
|
2322
2322
|
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
2323
2323
|
}
|
|
@@ -2362,12 +2362,12 @@ var appDidLoad = (who) => {
|
|
|
2362
2362
|
performance.measure(`[Stencil] ${NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
var safeCall = (instance, method, arg) => {
|
|
2365
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
2366
2366
|
if (instance && instance[method]) {
|
|
2367
2367
|
try {
|
|
2368
2368
|
return instance[method](arg);
|
|
2369
2369
|
} catch (e) {
|
|
2370
|
-
consoleError(e);
|
|
2370
|
+
consoleError(e, elm);
|
|
2371
2371
|
}
|
|
2372
2372
|
}
|
|
2373
2373
|
return void 0;
|
|
@@ -2659,8 +2659,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2659
2659
|
let Cstr;
|
|
2660
2660
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
2661
2661
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
2662
|
-
|
|
2663
|
-
if ((BUILD17.lazyLoad || BUILD17.hydrateClientSide) && bundleId) {
|
|
2662
|
+
if (BUILD17.lazyLoad || BUILD17.hydrateClientSide) {
|
|
2664
2663
|
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
2665
2664
|
if (CstrImport && "then" in CstrImport) {
|
|
2666
2665
|
const endLoad = uniqueTime(
|
|
@@ -2689,7 +2688,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2689
2688
|
try {
|
|
2690
2689
|
new Cstr(hostRef);
|
|
2691
2690
|
} catch (e) {
|
|
2692
|
-
consoleError(e);
|
|
2691
|
+
consoleError(e, elm);
|
|
2693
2692
|
}
|
|
2694
2693
|
if (BUILD17.member) {
|
|
2695
2694
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -2698,7 +2697,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2698
2697
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
2699
2698
|
}
|
|
2700
2699
|
endNewInstance();
|
|
2701
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
2700
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2702
2701
|
} else {
|
|
2703
2702
|
Cstr = elm.constructor;
|
|
2704
2703
|
const cmpTag = elm.localName;
|
|
@@ -2737,9 +2736,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
2737
2736
|
schedule();
|
|
2738
2737
|
}
|
|
2739
2738
|
};
|
|
2740
|
-
var fireConnectedCallback = (instance) => {
|
|
2739
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
2741
2740
|
if (BUILD17.lazyLoad && BUILD17.connectedCallback) {
|
|
2742
|
-
safeCall(instance, "connectedCallback");
|
|
2741
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
2743
2742
|
}
|
|
2744
2743
|
};
|
|
2745
2744
|
|
|
@@ -2800,9 +2799,9 @@ var connectedCallback = (elm) => {
|
|
|
2800
2799
|
} else {
|
|
2801
2800
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
|
|
2802
2801
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2803
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
2802
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
2804
2803
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2805
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
2804
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
2806
2805
|
}
|
|
2807
2806
|
}
|
|
2808
2807
|
endConnected();
|
|
@@ -2818,12 +2817,12 @@ var setContentReference = (elm) => {
|
|
|
2818
2817
|
|
|
2819
2818
|
// src/runtime/disconnected-callback.ts
|
|
2820
2819
|
import { BUILD as BUILD19 } from "@stencil/core/internal/app-data";
|
|
2821
|
-
var disconnectInstance = (instance) => {
|
|
2820
|
+
var disconnectInstance = (instance, elm) => {
|
|
2822
2821
|
if (BUILD19.lazyLoad && BUILD19.disconnectedCallback) {
|
|
2823
|
-
safeCall(instance, "disconnectedCallback");
|
|
2822
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
2824
2823
|
}
|
|
2825
2824
|
if (BUILD19.cmpDidUnload) {
|
|
2826
|
-
safeCall(instance, "componentDidUnload");
|
|
2825
|
+
safeCall(instance, "componentDidUnload", void 0, elm || instance);
|
|
2827
2826
|
}
|
|
2828
2827
|
};
|
|
2829
2828
|
var disconnectedCallback = async (elm) => {
|
|
@@ -2838,9 +2837,9 @@ var disconnectedCallback = async (elm) => {
|
|
|
2838
2837
|
if (!BUILD19.lazyLoad) {
|
|
2839
2838
|
disconnectInstance(elm);
|
|
2840
2839
|
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
2841
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
2840
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
2842
2841
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
2843
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
2842
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
2844
2843
|
}
|
|
2845
2844
|
}
|
|
2846
2845
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -3203,7 +3202,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
3203
3202
|
hostRef.$hostElement$[methodName](ev);
|
|
3204
3203
|
}
|
|
3205
3204
|
} catch (e) {
|
|
3206
|
-
consoleError(e);
|
|
3205
|
+
consoleError(e, hostRef.$hostElement$);
|
|
3207
3206
|
}
|
|
3208
3207
|
};
|
|
3209
3208
|
var getHostListenerTarget = (elm, flags) => {
|
|
@@ -3466,7 +3465,9 @@ function proxyHostElement(elm, cstr) {
|
|
|
3466
3465
|
return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
|
|
3467
3466
|
var _a3;
|
|
3468
3467
|
return (_a3 = ref == null ? void 0 : ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
|
|
3469
|
-
}).catch(
|
|
3468
|
+
}).catch((e) => {
|
|
3469
|
+
consoleError(e, this);
|
|
3470
|
+
});
|
|
3470
3471
|
}
|
|
3471
3472
|
});
|
|
3472
3473
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0-dev.1737608504.66340b2",
|
|
4
4
|
"description": "Stencil internal hydrate 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Hydrate Runner v4.
|
|
2
|
+
Stencil Hydrate Runner v4.25.0-dev.1737608504.66340b2 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0-dev.1737608504.66340b2",
|
|
4
4
|
"description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -2502,23 +2502,23 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
2502
2502
|
if (import_app_data13.BUILD.lazyLoad && import_app_data13.BUILD.hostListener) {
|
|
2503
2503
|
hostRef.$flags$ |= 256 /* isListenReady */;
|
|
2504
2504
|
if (hostRef.$queuedListeners$) {
|
|
2505
|
-
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
|
|
2505
|
+
hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
|
|
2506
2506
|
hostRef.$queuedListeners$ = void 0;
|
|
2507
2507
|
}
|
|
2508
2508
|
}
|
|
2509
2509
|
emitLifecycleEvent(elm, "componentWillLoad");
|
|
2510
2510
|
if (import_app_data13.BUILD.cmpWillLoad) {
|
|
2511
|
-
maybePromise = safeCall(instance, "componentWillLoad");
|
|
2511
|
+
maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
|
|
2512
2512
|
}
|
|
2513
2513
|
} else {
|
|
2514
2514
|
emitLifecycleEvent(elm, "componentWillUpdate");
|
|
2515
2515
|
if (import_app_data13.BUILD.cmpWillUpdate) {
|
|
2516
|
-
maybePromise = safeCall(instance, "componentWillUpdate");
|
|
2516
|
+
maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
|
|
2517
2517
|
}
|
|
2518
2518
|
}
|
|
2519
2519
|
emitLifecycleEvent(elm, "componentWillRender");
|
|
2520
2520
|
if (import_app_data13.BUILD.cmpWillRender) {
|
|
2521
|
-
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
|
|
2521
|
+
maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
|
|
2522
2522
|
}
|
|
2523
2523
|
endSchedule();
|
|
2524
2524
|
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
@@ -2631,7 +2631,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2631
2631
|
if (import_app_data13.BUILD.isDev) {
|
|
2632
2632
|
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
2633
2633
|
}
|
|
2634
|
-
safeCall(instance, "componentDidRender");
|
|
2634
|
+
safeCall(instance, "componentDidRender", void 0, elm);
|
|
2635
2635
|
if (import_app_data13.BUILD.isDev) {
|
|
2636
2636
|
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
2637
2637
|
}
|
|
@@ -2646,7 +2646,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2646
2646
|
if (import_app_data13.BUILD.isDev) {
|
|
2647
2647
|
hostRef.$flags$ |= 2048 /* devOnDidLoad */;
|
|
2648
2648
|
}
|
|
2649
|
-
safeCall(instance, "componentDidLoad");
|
|
2649
|
+
safeCall(instance, "componentDidLoad", void 0, elm);
|
|
2650
2650
|
if (import_app_data13.BUILD.isDev) {
|
|
2651
2651
|
hostRef.$flags$ &= ~2048 /* devOnDidLoad */;
|
|
2652
2652
|
}
|
|
@@ -2664,7 +2664,7 @@ var postUpdateComponent = (hostRef) => {
|
|
|
2664
2664
|
if (import_app_data13.BUILD.isDev) {
|
|
2665
2665
|
hostRef.$flags$ |= 1024 /* devOnRender */;
|
|
2666
2666
|
}
|
|
2667
|
-
safeCall(instance, "componentDidUpdate");
|
|
2667
|
+
safeCall(instance, "componentDidUpdate", void 0, elm);
|
|
2668
2668
|
if (import_app_data13.BUILD.isDev) {
|
|
2669
2669
|
hostRef.$flags$ &= ~1024 /* devOnRender */;
|
|
2670
2670
|
}
|
|
@@ -2709,12 +2709,12 @@ var appDidLoad = (who) => {
|
|
|
2709
2709
|
performance.measure(`[Stencil] ${import_app_data13.NAMESPACE} initial load (by ${who})`, "st:app:start");
|
|
2710
2710
|
}
|
|
2711
2711
|
};
|
|
2712
|
-
var safeCall = (instance, method, arg) => {
|
|
2712
|
+
var safeCall = (instance, method, arg, elm) => {
|
|
2713
2713
|
if (instance && instance[method]) {
|
|
2714
2714
|
try {
|
|
2715
2715
|
return instance[method](arg);
|
|
2716
2716
|
} catch (e) {
|
|
2717
|
-
consoleError(e);
|
|
2717
|
+
consoleError(e, elm);
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
2720
|
return void 0;
|
|
@@ -3006,8 +3006,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3006
3006
|
let Cstr;
|
|
3007
3007
|
if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
|
|
3008
3008
|
hostRef.$flags$ |= 32 /* hasInitializedComponent */;
|
|
3009
|
-
|
|
3010
|
-
if ((import_app_data16.BUILD.lazyLoad || import_app_data16.BUILD.hydrateClientSide) && bundleId) {
|
|
3009
|
+
if (import_app_data16.BUILD.lazyLoad || import_app_data16.BUILD.hydrateClientSide) {
|
|
3011
3010
|
const CstrImport = loadModule(cmpMeta, hostRef, hmrVersionId);
|
|
3012
3011
|
if (CstrImport && "then" in CstrImport) {
|
|
3013
3012
|
const endLoad = uniqueTime(
|
|
@@ -3036,7 +3035,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3036
3035
|
try {
|
|
3037
3036
|
new Cstr(hostRef);
|
|
3038
3037
|
} catch (e) {
|
|
3039
|
-
consoleError(e);
|
|
3038
|
+
consoleError(e, elm);
|
|
3040
3039
|
}
|
|
3041
3040
|
if (import_app_data16.BUILD.member) {
|
|
3042
3041
|
hostRef.$flags$ &= ~8 /* isConstructingInstance */;
|
|
@@ -3045,7 +3044,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3045
3044
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
3046
3045
|
}
|
|
3047
3046
|
endNewInstance();
|
|
3048
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
3047
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3049
3048
|
} else {
|
|
3050
3049
|
Cstr = elm.constructor;
|
|
3051
3050
|
const cmpTag = elm.localName;
|
|
@@ -3084,9 +3083,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
3084
3083
|
schedule();
|
|
3085
3084
|
}
|
|
3086
3085
|
};
|
|
3087
|
-
var fireConnectedCallback = (instance) => {
|
|
3086
|
+
var fireConnectedCallback = (instance, elm) => {
|
|
3088
3087
|
if (import_app_data16.BUILD.lazyLoad && import_app_data16.BUILD.connectedCallback) {
|
|
3089
|
-
safeCall(instance, "connectedCallback");
|
|
3088
|
+
safeCall(instance, "connectedCallback", void 0, elm);
|
|
3090
3089
|
}
|
|
3091
3090
|
};
|
|
3092
3091
|
|
|
@@ -3147,9 +3146,9 @@ var connectedCallback = (elm) => {
|
|
|
3147
3146
|
} else {
|
|
3148
3147
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$, false);
|
|
3149
3148
|
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3150
|
-
fireConnectedCallback(hostRef.$lazyInstance
|
|
3149
|
+
fireConnectedCallback(hostRef.$lazyInstance$, elm);
|
|
3151
3150
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3152
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance
|
|
3151
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
|
|
3153
3152
|
}
|
|
3154
3153
|
}
|
|
3155
3154
|
endConnected();
|
|
@@ -3165,12 +3164,12 @@ var setContentReference = (elm) => {
|
|
|
3165
3164
|
|
|
3166
3165
|
// src/runtime/disconnected-callback.ts
|
|
3167
3166
|
var import_app_data18 = require("@stencil/core/internal/app-data");
|
|
3168
|
-
var disconnectInstance = (instance) => {
|
|
3167
|
+
var disconnectInstance = (instance, elm) => {
|
|
3169
3168
|
if (import_app_data18.BUILD.lazyLoad && import_app_data18.BUILD.disconnectedCallback) {
|
|
3170
|
-
safeCall(instance, "disconnectedCallback");
|
|
3169
|
+
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
|
3171
3170
|
}
|
|
3172
3171
|
if (import_app_data18.BUILD.cmpDidUnload) {
|
|
3173
|
-
safeCall(instance, "componentDidUnload");
|
|
3172
|
+
safeCall(instance, "componentDidUnload", void 0, elm || instance);
|
|
3174
3173
|
}
|
|
3175
3174
|
};
|
|
3176
3175
|
var disconnectedCallback = async (elm) => {
|
|
@@ -3185,9 +3184,9 @@ var disconnectedCallback = async (elm) => {
|
|
|
3185
3184
|
if (!import_app_data18.BUILD.lazyLoad) {
|
|
3186
3185
|
disconnectInstance(elm);
|
|
3187
3186
|
} else if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
3188
|
-
disconnectInstance(hostRef.$lazyInstance
|
|
3187
|
+
disconnectInstance(hostRef.$lazyInstance$, elm);
|
|
3189
3188
|
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
3190
|
-
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance
|
|
3189
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
|
|
3191
3190
|
}
|
|
3192
3191
|
}
|
|
3193
3192
|
if (rootAppliedStyles.has(elm)) {
|
|
@@ -3550,7 +3549,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
|
|
|
3550
3549
|
hostRef.$hostElement$[methodName](ev);
|
|
3551
3550
|
}
|
|
3552
3551
|
} catch (e) {
|
|
3553
|
-
consoleError(e);
|
|
3552
|
+
consoleError(e, hostRef.$hostElement$);
|
|
3554
3553
|
}
|
|
3555
3554
|
};
|
|
3556
3555
|
var getHostListenerTarget = (elm, flags) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/testing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0-dev.1737608504.66340b2",
|
|
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
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
package/screenshot/package.json
CHANGED