@stencil/core 4.23.0 → 4.23.1
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 +125 -133
- 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 +611 -460
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +575 -457
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +31 -23
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +60 -4
- package/internal/testing/index.js +573 -455
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +7 -2
- package/mock-doc/index.js +7 -2
- 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 +1 -1
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.1",
|
|
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.23.
|
|
2
|
+
Stencil Hydrate Runner v4.23.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -10462,7 +10462,10 @@ function* streamToHtml(node, opts, output) {
|
|
|
10462
10462
|
const tag = tagName === shadowRootTag ? "template" : tagName;
|
|
10463
10463
|
yield "<" + tag;
|
|
10464
10464
|
output.currentLineWidth += tag.length + 1;
|
|
10465
|
-
if (tag === "template" && (!node.getAttribute || !node.getAttribute("shadowrootmode"))
|
|
10465
|
+
if (tag === "template" && (!node.getAttribute || !node.getAttribute("shadowrootmode")) && /**
|
|
10466
|
+
* If the node is a shadow root, we want to add the `shadowrootmode` attribute
|
|
10467
|
+
*/
|
|
10468
|
+
("host" in node || node.nodeName.toLocaleLowerCase() === shadowRootTag)) {
|
|
10466
10469
|
const mode = ` shadowrootmode="open"`;
|
|
10467
10470
|
yield mode;
|
|
10468
10471
|
output.currentLineWidth += mode.length;
|
|
@@ -11928,6 +11931,8 @@ function createElement(ownerDocument, tagName) {
|
|
|
11928
11931
|
return new MockTitleElement(ownerDocument);
|
|
11929
11932
|
case "ul":
|
|
11930
11933
|
return new MockUListElement(ownerDocument);
|
|
11934
|
+
case "slot-fb":
|
|
11935
|
+
return new MockHTMLElement(ownerDocument, tagName);
|
|
11931
11936
|
}
|
|
11932
11937
|
if (ownerDocument != null && tagName.includes("-")) {
|
|
11933
11938
|
const win2 = ownerDocument.defaultView;
|
|
@@ -14152,10 +14157,10 @@ var supportsConstructableStylesheets = BUILD5.constructableCSS ? /* @__PURE__ */
|
|
|
14152
14157
|
})() : false;
|
|
14153
14158
|
|
|
14154
14159
|
// src/client/index.ts
|
|
14155
|
-
import { BUILD as
|
|
14160
|
+
import { BUILD as BUILD28, Env, NAMESPACE as NAMESPACE2 } from "@stencil/core/internal/app-data";
|
|
14156
14161
|
|
|
14157
14162
|
// src/runtime/bootstrap-custom-element.ts
|
|
14158
|
-
import { BUILD as
|
|
14163
|
+
import { BUILD as BUILD25 } from "@stencil/core/internal/app-data";
|
|
14159
14164
|
|
|
14160
14165
|
// src/utils/helpers.ts
|
|
14161
14166
|
var isString = (v) => typeof v === "string";
|
|
@@ -14248,66 +14253,69 @@ var unwrapErr = (result) => {
|
|
|
14248
14253
|
};
|
|
14249
14254
|
|
|
14250
14255
|
// src/runtime/connected-callback.ts
|
|
14251
|
-
import { BUILD as
|
|
14256
|
+
import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
14252
14257
|
|
|
14253
14258
|
// src/runtime/client-hydrate.ts
|
|
14254
|
-
import { BUILD as
|
|
14259
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14255
14260
|
|
|
14256
14261
|
// src/runtime/dom-extras.ts
|
|
14257
|
-
import { BUILD as
|
|
14262
|
+
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
14263
|
+
|
|
14264
|
+
// src/runtime/slot-polyfill-utils.ts
|
|
14265
|
+
import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
|
|
14258
14266
|
|
|
14259
14267
|
// src/runtime/vdom/vdom-render.ts
|
|
14260
|
-
import { BUILD as
|
|
14268
|
+
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
14261
14269
|
|
|
14262
14270
|
// src/runtime/vdom/h.ts
|
|
14263
|
-
import { BUILD as
|
|
14271
|
+
import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
|
|
14264
14272
|
|
|
14265
14273
|
// src/runtime/vdom/update-element.ts
|
|
14266
|
-
import { BUILD as
|
|
14274
|
+
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
14267
14275
|
|
|
14268
14276
|
// src/runtime/vdom/set-accessor.ts
|
|
14269
|
-
import { BUILD as
|
|
14277
|
+
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
14270
14278
|
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
14271
14279
|
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
14272
14280
|
|
|
14273
14281
|
// src/runtime/profile.ts
|
|
14274
|
-
import { BUILD as
|
|
14282
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14275
14283
|
|
|
14276
14284
|
// src/runtime/initialize-component.ts
|
|
14277
|
-
import { BUILD as
|
|
14285
|
+
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
14278
14286
|
|
|
14279
14287
|
// src/runtime/mode.ts
|
|
14280
14288
|
var setMode = (handler) => modeResolutionChain.push(handler);
|
|
14281
14289
|
|
|
14282
14290
|
// src/runtime/proxy-component.ts
|
|
14283
|
-
import { BUILD as
|
|
14291
|
+
import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
|
|
14284
14292
|
|
|
14285
14293
|
// src/runtime/set-value.ts
|
|
14286
|
-
import { BUILD as
|
|
14294
|
+
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
14287
14295
|
|
|
14288
14296
|
// src/runtime/parse-property-value.ts
|
|
14289
|
-
import { BUILD as
|
|
14297
|
+
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14290
14298
|
|
|
14291
14299
|
// src/runtime/update-component.ts
|
|
14292
|
-
import { BUILD as
|
|
14300
|
+
import { BUILD as BUILD19, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
14293
14301
|
|
|
14294
14302
|
// src/runtime/event-emitter.ts
|
|
14295
|
-
import { BUILD as
|
|
14303
|
+
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14296
14304
|
|
|
14297
14305
|
// src/runtime/element.ts
|
|
14298
|
-
import { BUILD as
|
|
14306
|
+
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
14299
14307
|
|
|
14300
14308
|
// src/runtime/styles.ts
|
|
14301
|
-
import { BUILD as
|
|
14309
|
+
import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
|
|
14302
14310
|
|
|
14303
14311
|
// src/runtime/disconnected-callback.ts
|
|
14304
|
-
import { BUILD as
|
|
14312
|
+
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
14305
14313
|
|
|
14306
14314
|
// src/runtime/bootstrap-lazy.ts
|
|
14307
|
-
import { BUILD as
|
|
14315
|
+
import { BUILD as BUILD26 } from "@stencil/core/internal/app-data";
|
|
14308
14316
|
|
|
14309
14317
|
// src/runtime/host-listener.ts
|
|
14310
|
-
import { BUILD as
|
|
14318
|
+
import { BUILD as BUILD27 } from "@stencil/core/internal/app-data";
|
|
14311
14319
|
|
|
14312
14320
|
// src/compiler/html/canonical-link.ts
|
|
14313
14321
|
var updateCanonicalLink = (doc2, href) => {
|
package/internal/package.json
CHANGED
|
@@ -98,6 +98,7 @@ export interface BuildFeatures {
|
|
|
98
98
|
propBoolean: boolean;
|
|
99
99
|
propNumber: boolean;
|
|
100
100
|
propString: boolean;
|
|
101
|
+
modernPropertyDecls: boolean;
|
|
101
102
|
lifecycle: boolean;
|
|
102
103
|
cmpDidLoad: boolean;
|
|
103
104
|
cmpShouldUpdate: boolean;
|
|
@@ -464,6 +465,7 @@ export interface ComponentCompilerFeatures {
|
|
|
464
465
|
hasMember: boolean;
|
|
465
466
|
hasMethod: boolean;
|
|
466
467
|
hasMode: boolean;
|
|
468
|
+
hasModernPropertyDecls: boolean;
|
|
467
469
|
hasProp: boolean;
|
|
468
470
|
hasPropBoolean: boolean;
|
|
469
471
|
hasPropNumber: boolean;
|
|
@@ -583,6 +585,7 @@ export interface ComponentCompilerStaticProperty {
|
|
|
583
585
|
defaultValue?: string;
|
|
584
586
|
getter: boolean;
|
|
585
587
|
setter: boolean;
|
|
588
|
+
ogPropName?: string;
|
|
586
589
|
}
|
|
587
590
|
/**
|
|
588
591
|
* Intermediate Representation (IR) of a property on a Stencil component
|
|
@@ -986,6 +989,10 @@ export interface HostElement extends HTMLElement {
|
|
|
986
989
|
* do the work of actually updating the component in-place.
|
|
987
990
|
*/
|
|
988
991
|
['s-hmr']?: (versionId: string) => void;
|
|
992
|
+
/**
|
|
993
|
+
* A list of nested nested hydration promises that
|
|
994
|
+
* must be resolved for the top, ancestor component to be fully hydrated
|
|
995
|
+
*/
|
|
989
996
|
['s-p']?: Promise<void>[];
|
|
990
997
|
componentOnReady?: () => Promise<this>;
|
|
991
998
|
}
|
|
@@ -1201,9 +1208,10 @@ export interface RenderNode extends HostElement {
|
|
|
1201
1208
|
*/
|
|
1202
1209
|
['s-cn']?: boolean;
|
|
1203
1210
|
/**
|
|
1204
|
-
* Is a slot
|
|
1205
|
-
*
|
|
1206
|
-
*
|
|
1211
|
+
* Is a `slot` node when `shadow: false` (or `scoped: true`).
|
|
1212
|
+
*
|
|
1213
|
+
* This is a node (either empty text-node or `<slot-fb>` element)
|
|
1214
|
+
* that represents where a `<slot>` is located in the original JSX.
|
|
1207
1215
|
*/
|
|
1208
1216
|
['s-sr']?: boolean;
|
|
1209
1217
|
/**
|
|
@@ -1266,9 +1274,57 @@ export interface RenderNode extends HostElement {
|
|
|
1266
1274
|
/**
|
|
1267
1275
|
* On a `scoped: true` component
|
|
1268
1276
|
* with `experimentalSlotFixes` flag enabled,
|
|
1269
|
-
* returns the internal `childNodes` of the
|
|
1277
|
+
* returns the internal `childNodes` of the component
|
|
1270
1278
|
*/
|
|
1271
1279
|
readonly __childNodes?: NodeListOf<ChildNode>;
|
|
1280
|
+
/**
|
|
1281
|
+
* On a `scoped: true` component
|
|
1282
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1283
|
+
* returns the internal `children` of the component
|
|
1284
|
+
*/
|
|
1285
|
+
readonly __children?: HTMLCollectionOf<Element>;
|
|
1286
|
+
/**
|
|
1287
|
+
* On a `scoped: true` component
|
|
1288
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1289
|
+
* returns the internal `firstChild` of the component
|
|
1290
|
+
*/
|
|
1291
|
+
readonly __firstChild?: ChildNode;
|
|
1292
|
+
/**
|
|
1293
|
+
* On a `scoped: true` component
|
|
1294
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1295
|
+
* returns the internal `lastChild` of the component
|
|
1296
|
+
*/
|
|
1297
|
+
readonly __lastChild?: ChildNode;
|
|
1298
|
+
/**
|
|
1299
|
+
* On a `scoped: true` component
|
|
1300
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1301
|
+
* returns the internal `textContent` of the component
|
|
1302
|
+
*/
|
|
1303
|
+
__textContent?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* On a `scoped: true` component
|
|
1306
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1307
|
+
* gives access to the original `append` method
|
|
1308
|
+
*/
|
|
1309
|
+
__append?: (...nodes: (Node | string)[]) => void;
|
|
1310
|
+
/**
|
|
1311
|
+
* On a `scoped: true` component
|
|
1312
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1313
|
+
* gives access to the original `prepend` method
|
|
1314
|
+
*/
|
|
1315
|
+
__prepend?: (...nodes: (Node | string)[]) => void;
|
|
1316
|
+
/**
|
|
1317
|
+
* On a `scoped: true` component
|
|
1318
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1319
|
+
* gives access to the original `appendChild` method
|
|
1320
|
+
*/
|
|
1321
|
+
__appendChild?: <T extends Node>(newChild: T) => T;
|
|
1322
|
+
/**
|
|
1323
|
+
* On a `scoped: true` component
|
|
1324
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1325
|
+
* gives access to the original `removeChild` method
|
|
1326
|
+
*/
|
|
1327
|
+
__removeChild?: <T extends Node>(child: T) => T;
|
|
1272
1328
|
}
|
|
1273
1329
|
export type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
|
|
1274
1330
|
export type LazyBundleRuntimeData = [
|