@stencil/core 4.23.2 → 4.24.0
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 +2 -5
- package/cli/index.js +2 -5
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +2427 -836
- 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 +10 -10
- package/internal/app-data/package.json +1 -1
- package/internal/client/index.js +1769 -1674
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +1781 -1671
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +21 -21
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +70 -2
- package/internal/stencil-public-compiler.d.ts +9 -11
- package/internal/testing/index.js +1759 -1662
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +3 -3
- package/mock-doc/index.js +3 -3
- package/mock-doc/package.json +1 -1
- package/package.json +3 -3
- package/screenshot/index.js +1 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/autoprefixer.js +2 -2
- package/sys/node/glob.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 +28 -19
- package/testing/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.24.0",
|
|
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.24.0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -10969,7 +10969,7 @@ var MockNode2 = class {
|
|
|
10969
10969
|
}
|
|
10970
10970
|
remove() {
|
|
10971
10971
|
if (this.parentNode != null) {
|
|
10972
|
-
this.parentNode.removeChild(this);
|
|
10972
|
+
this.__parentNode ? this.__parentNode.removeChild(this) : this.parentNode.removeChild(this);
|
|
10973
10973
|
}
|
|
10974
10974
|
}
|
|
10975
10975
|
replaceChild(newChild, oldChild) {
|
|
@@ -13729,7 +13729,7 @@ function resetWindowDefaults(win2) {
|
|
|
13729
13729
|
win2.__clearTimeout = nativeClearTimeout;
|
|
13730
13730
|
win2.__setInterval = nativeSetInterval;
|
|
13731
13731
|
win2.__setTimeout = nativeSetTimeout;
|
|
13732
|
-
win2.__maxTimeout =
|
|
13732
|
+
win2.__maxTimeout = 6e4;
|
|
13733
13733
|
win2.__allowInterval = true;
|
|
13734
13734
|
win2.URL = nativeURL;
|
|
13735
13735
|
}
|
|
@@ -14256,31 +14256,20 @@ var unwrapErr = (result) => {
|
|
|
14256
14256
|
import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
14257
14257
|
|
|
14258
14258
|
// src/runtime/client-hydrate.ts
|
|
14259
|
-
import { BUILD as
|
|
14259
|
+
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
14260
14260
|
|
|
14261
14261
|
// src/runtime/dom-extras.ts
|
|
14262
|
-
import { BUILD as
|
|
14262
|
+
import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
|
|
14263
14263
|
|
|
14264
14264
|
// src/runtime/slot-polyfill-utils.ts
|
|
14265
14265
|
import { BUILD as BUILD7 } from "@stencil/core/internal/app-data";
|
|
14266
14266
|
|
|
14267
|
-
// src/runtime/
|
|
14268
|
-
import { BUILD as
|
|
14267
|
+
// src/runtime/profile.ts
|
|
14268
|
+
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
14269
14269
|
|
|
14270
14270
|
// src/runtime/vdom/h.ts
|
|
14271
|
-
import { BUILD as BUILD8 } from "@stencil/core/internal/app-data";
|
|
14272
|
-
|
|
14273
|
-
// src/runtime/vdom/update-element.ts
|
|
14274
14271
|
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
14275
14272
|
|
|
14276
|
-
// src/runtime/vdom/set-accessor.ts
|
|
14277
|
-
import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
14278
|
-
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
14279
|
-
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
14280
|
-
|
|
14281
|
-
// src/runtime/profile.ts
|
|
14282
|
-
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14283
|
-
|
|
14284
14273
|
// src/runtime/initialize-component.ts
|
|
14285
14274
|
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
14286
14275
|
|
|
@@ -14294,20 +14283,31 @@ import { BUILD as BUILD21 } from "@stencil/core/internal/app-data";
|
|
|
14294
14283
|
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
|
14295
14284
|
|
|
14296
14285
|
// src/runtime/parse-property-value.ts
|
|
14297
|
-
import { BUILD as
|
|
14286
|
+
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
14298
14287
|
|
|
14299
14288
|
// src/runtime/update-component.ts
|
|
14300
14289
|
import { BUILD as BUILD19, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
14301
14290
|
|
|
14302
14291
|
// src/runtime/event-emitter.ts
|
|
14303
|
-
import { BUILD as
|
|
14292
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14304
14293
|
|
|
14305
14294
|
// src/runtime/element.ts
|
|
14306
|
-
import { BUILD as
|
|
14295
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14307
14296
|
|
|
14308
14297
|
// src/runtime/styles.ts
|
|
14298
|
+
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14299
|
+
|
|
14300
|
+
// src/runtime/vdom/vdom-render.ts
|
|
14309
14301
|
import { BUILD as BUILD18 } from "@stencil/core/internal/app-data";
|
|
14310
14302
|
|
|
14303
|
+
// src/runtime/vdom/update-element.ts
|
|
14304
|
+
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14305
|
+
|
|
14306
|
+
// src/runtime/vdom/set-accessor.ts
|
|
14307
|
+
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
14308
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
14309
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
14310
|
+
|
|
14311
14311
|
// src/runtime/disconnected-callback.ts
|
|
14312
14312
|
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
14313
14313
|
|
package/internal/package.json
CHANGED
|
@@ -1215,7 +1215,7 @@ export interface RenderNode extends HostElement {
|
|
|
1215
1215
|
*/
|
|
1216
1216
|
['s-sr']?: boolean;
|
|
1217
1217
|
/**
|
|
1218
|
-
* Slot name
|
|
1218
|
+
* Slot name of either the slot itself or the slotted node
|
|
1219
1219
|
*/
|
|
1220
1220
|
['s-sn']?: string;
|
|
1221
1221
|
/**
|
|
@@ -1248,7 +1248,7 @@ export interface RenderNode extends HostElement {
|
|
|
1248
1248
|
* This is a reference for a original location node
|
|
1249
1249
|
* back to the node that's been moved around.
|
|
1250
1250
|
*/
|
|
1251
|
-
['s-nr']?: RenderNode;
|
|
1251
|
+
['s-nr']?: PatchedSlotNode | RenderNode;
|
|
1252
1252
|
/**
|
|
1253
1253
|
* Original Order:
|
|
1254
1254
|
* During SSR; a number representing the order of a slotted node
|
|
@@ -1319,6 +1319,12 @@ export interface RenderNode extends HostElement {
|
|
|
1319
1319
|
* gives access to the original `appendChild` method
|
|
1320
1320
|
*/
|
|
1321
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 `insertBefore` method
|
|
1326
|
+
*/
|
|
1327
|
+
__insertBefore?: <T extends Node>(node: T, child: Node | null) => T;
|
|
1322
1328
|
/**
|
|
1323
1329
|
* On a `scoped: true` component
|
|
1324
1330
|
* with `experimentalSlotFixes` flag enabled,
|
|
@@ -1326,6 +1332,68 @@ export interface RenderNode extends HostElement {
|
|
|
1326
1332
|
*/
|
|
1327
1333
|
__removeChild?: <T extends Node>(child: T) => T;
|
|
1328
1334
|
}
|
|
1335
|
+
export interface PatchedSlotNode extends Node {
|
|
1336
|
+
/**
|
|
1337
|
+
* Slot name
|
|
1338
|
+
*/
|
|
1339
|
+
['s-sn']?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Original Location Reference:
|
|
1342
|
+
* A reference pointing to the comment
|
|
1343
|
+
* which represents the original location
|
|
1344
|
+
* before it was moved to its slot.
|
|
1345
|
+
*/
|
|
1346
|
+
['s-ol']?: RenderNode;
|
|
1347
|
+
/**
|
|
1348
|
+
* Slot host tag name:
|
|
1349
|
+
* This is the tag name of the element where this node
|
|
1350
|
+
* has been moved to during slot relocation.
|
|
1351
|
+
*
|
|
1352
|
+
* This allows us to check if the node has been moved and prevent
|
|
1353
|
+
* us from thinking a node _should_ be moved when it may already be in
|
|
1354
|
+
* its final destination.
|
|
1355
|
+
*
|
|
1356
|
+
* This value is set to `undefined` whenever the node is put back into its original location.
|
|
1357
|
+
*/
|
|
1358
|
+
['s-sh']?: string;
|
|
1359
|
+
/**
|
|
1360
|
+
* Is a `slot` node when `shadow: false` (or `scoped: true`).
|
|
1361
|
+
*
|
|
1362
|
+
* This is a node (either empty text-node or `<slot-fb>` element)
|
|
1363
|
+
* that represents where a `<slot>` is located in the original JSX.
|
|
1364
|
+
*/
|
|
1365
|
+
['s-sr']?: boolean;
|
|
1366
|
+
/**
|
|
1367
|
+
* On a `scoped: true` component
|
|
1368
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1369
|
+
* returns the actual `parentNode` of the component
|
|
1370
|
+
*/
|
|
1371
|
+
__parentNode?: RenderNode;
|
|
1372
|
+
/**
|
|
1373
|
+
* On a `scoped: true` component
|
|
1374
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1375
|
+
* returns the actual `nextSibling` of the component
|
|
1376
|
+
*/
|
|
1377
|
+
__nextSibling?: RenderNode;
|
|
1378
|
+
/**
|
|
1379
|
+
* On a `scoped: true` component
|
|
1380
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1381
|
+
* returns the actual `previousSibling` of the component
|
|
1382
|
+
*/
|
|
1383
|
+
__previousSibling?: RenderNode;
|
|
1384
|
+
/**
|
|
1385
|
+
* On a `scoped: true` component
|
|
1386
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1387
|
+
* returns the actual `nextElementSibling` of the component
|
|
1388
|
+
*/
|
|
1389
|
+
__nextElementSibling?: RenderNode;
|
|
1390
|
+
/**
|
|
1391
|
+
* On a `scoped: true` component
|
|
1392
|
+
* with `experimentalSlotFixes` flag enabled,
|
|
1393
|
+
* returns the actual `nextElementSibling` of the component
|
|
1394
|
+
*/
|
|
1395
|
+
__previousElementSibling?: RenderNode;
|
|
1396
|
+
}
|
|
1329
1397
|
export type LazyBundlesRuntimeData = LazyBundleRuntimeData[];
|
|
1330
1398
|
export type LazyBundleRuntimeData = [
|
|
1331
1399
|
/** bundleIds */
|
|
@@ -1834,18 +1834,16 @@ export interface TestingConfig extends JestConfig {
|
|
|
1834
1834
|
*/
|
|
1835
1835
|
browserWSEndpoint?: string;
|
|
1836
1836
|
/**
|
|
1837
|
-
*
|
|
1838
|
-
*
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
*
|
|
1843
|
-
*
|
|
1844
|
-
*
|
|
1845
|
-
*
|
|
1846
|
-
* Defaults to true.
|
|
1837
|
+
* The browser channel to use for e2e tests (stable, beta, dev or canary).
|
|
1838
|
+
* @default 'chrome'
|
|
1839
|
+
*/
|
|
1840
|
+
browserChannel?: 'chrome' | 'chrome-beta' | 'chrome-dev' | 'chrome-canary';
|
|
1841
|
+
/**
|
|
1842
|
+
* Whether to run browser e2e tests in headless mode using Chrome Headless Shell
|
|
1843
|
+
* @ref https://developer.chrome.com/blog/chrome-headless-shell
|
|
1844
|
+
* @default shell
|
|
1847
1845
|
*/
|
|
1848
|
-
browserHeadless?: boolean | '
|
|
1846
|
+
browserHeadless?: boolean | 'shell';
|
|
1849
1847
|
/**
|
|
1850
1848
|
* Slows down e2e browser operations by the specified amount of milliseconds.
|
|
1851
1849
|
* Useful so that you can see what is going on.
|