@stencil/core 4.35.1 → 4.35.3-dev.1751519082.58bc2b5
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 +7 -7
- 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 +216 -180
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +216 -180
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +43 -13
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +1 -0
- package/internal/stencil-public-runtime.d.ts +12 -5
- package/internal/testing/index.js +213 -179
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +35 -5
- package/mock-doc/index.d.ts +16 -0
- package/mock-doc/index.js +35 -5
- 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 +14 -14
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +5 -5
- package/testing/package.json +1 -1
- package/testing/puppeteer/puppeteer-browser.d.ts +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal/hydrate",
|
|
3
|
-
"version": "4.35.
|
|
3
|
+
"version": "4.35.3-dev.1751519082.58bc2b5",
|
|
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.35.
|
|
2
|
+
Stencil Hydrate Runner v4.35.3-dev.1751519082.58bc2b5 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __export = (target, all) => {
|
|
@@ -10950,10 +10950,18 @@ var MockElement = class extends MockNode2 {
|
|
|
10950
10950
|
return shadowRoot;
|
|
10951
10951
|
}
|
|
10952
10952
|
blur() {
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
);
|
|
10953
|
+
if (isCurrentlyDispatching(this, "blur")) {
|
|
10954
|
+
return;
|
|
10955
|
+
}
|
|
10956
|
+
markAsDispatching(this, "blur");
|
|
10957
|
+
try {
|
|
10958
|
+
dispatchEvent(
|
|
10959
|
+
this,
|
|
10960
|
+
new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
|
|
10961
|
+
);
|
|
10962
|
+
} finally {
|
|
10963
|
+
unmarkAsDispatching(this, "blur");
|
|
10964
|
+
}
|
|
10957
10965
|
}
|
|
10958
10966
|
get localName() {
|
|
10959
10967
|
if (!this.nodeName) {
|
|
@@ -11695,6 +11703,28 @@ function setTextContent(elm, text) {
|
|
|
11695
11703
|
const textNode = new MockTextNode(elm.ownerDocument, text);
|
|
11696
11704
|
elm.appendChild(textNode);
|
|
11697
11705
|
}
|
|
11706
|
+
var currentlyDispatching = /* @__PURE__ */ new WeakMap();
|
|
11707
|
+
function isCurrentlyDispatching(target, eventType) {
|
|
11708
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
11709
|
+
return dispatchingEvents != null && dispatchingEvents.has(eventType);
|
|
11710
|
+
}
|
|
11711
|
+
function markAsDispatching(target, eventType) {
|
|
11712
|
+
let dispatchingEvents = currentlyDispatching.get(target);
|
|
11713
|
+
if (dispatchingEvents == null) {
|
|
11714
|
+
dispatchingEvents = /* @__PURE__ */ new Set();
|
|
11715
|
+
currentlyDispatching.set(target, dispatchingEvents);
|
|
11716
|
+
}
|
|
11717
|
+
dispatchingEvents.add(eventType);
|
|
11718
|
+
}
|
|
11719
|
+
function unmarkAsDispatching(target, eventType) {
|
|
11720
|
+
const dispatchingEvents = currentlyDispatching.get(target);
|
|
11721
|
+
if (dispatchingEvents != null) {
|
|
11722
|
+
dispatchingEvents.delete(eventType);
|
|
11723
|
+
if (dispatchingEvents.size === 0) {
|
|
11724
|
+
currentlyDispatching.delete(target);
|
|
11725
|
+
}
|
|
11726
|
+
}
|
|
11727
|
+
}
|
|
11698
11728
|
|
|
11699
11729
|
// src/mock-doc/comment-node.ts
|
|
11700
11730
|
var MockComment = class _MockComment extends MockNode2 {
|
|
@@ -14643,7 +14673,7 @@ var isJsFile = lowerPathParam((p) => p.endsWith(".js") || p.endsWith(".mjs") ||
|
|
|
14643
14673
|
import { BUILD as BUILD25 } from "@stencil/core/internal/app-data";
|
|
14644
14674
|
|
|
14645
14675
|
// src/runtime/client-hydrate.ts
|
|
14646
|
-
import { BUILD as
|
|
14676
|
+
import { BUILD as BUILD14 } from "@stencil/core/internal/app-data";
|
|
14647
14677
|
|
|
14648
14678
|
// src/runtime/dom-extras.ts
|
|
14649
14679
|
import { BUILD as BUILD10 } from "@stencil/core/internal/app-data";
|
|
@@ -14654,9 +14684,12 @@ import { BUILD as BUILD9 } from "@stencil/core/internal/app-data";
|
|
|
14654
14684
|
// src/runtime/profile.ts
|
|
14655
14685
|
import { BUILD as BUILD11 } from "@stencil/core/internal/app-data";
|
|
14656
14686
|
|
|
14657
|
-
// src/runtime/
|
|
14687
|
+
// src/runtime/styles.ts
|
|
14658
14688
|
import { BUILD as BUILD12 } from "@stencil/core/internal/app-data";
|
|
14659
14689
|
|
|
14690
|
+
// src/runtime/vdom/h.ts
|
|
14691
|
+
import { BUILD as BUILD13 } from "@stencil/core/internal/app-data";
|
|
14692
|
+
|
|
14660
14693
|
// src/runtime/initialize-component.ts
|
|
14661
14694
|
import { BUILD as BUILD24 } from "@stencil/core/internal/app-data";
|
|
14662
14695
|
|
|
@@ -14703,19 +14736,16 @@ import { BUILD as BUILD23 } from "@stencil/core/internal/app-data";
|
|
|
14703
14736
|
import { BUILD as BUILD22 } from "@stencil/core/internal/app-data";
|
|
14704
14737
|
|
|
14705
14738
|
// src/runtime/parse-property-value.ts
|
|
14706
|
-
import { BUILD as
|
|
14739
|
+
import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
|
|
14707
14740
|
|
|
14708
14741
|
// src/runtime/update-component.ts
|
|
14709
14742
|
import { BUILD as BUILD21, NAMESPACE } from "@stencil/core/internal/app-data";
|
|
14710
14743
|
|
|
14711
14744
|
// src/runtime/event-emitter.ts
|
|
14712
|
-
import { BUILD as
|
|
14745
|
+
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14713
14746
|
|
|
14714
14747
|
// src/runtime/element.ts
|
|
14715
|
-
import { BUILD as
|
|
14716
|
-
|
|
14717
|
-
// src/runtime/styles.ts
|
|
14718
|
-
import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
|
|
14748
|
+
import { BUILD as BUILD16 } from "@stencil/core/internal/app-data";
|
|
14719
14749
|
|
|
14720
14750
|
// src/runtime/vdom/vdom-render.ts
|
|
14721
14751
|
import { BUILD as BUILD20 } from "@stencil/core/internal/app-data";
|
package/internal/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil/core/internal",
|
|
3
|
-
"version": "4.35.
|
|
3
|
+
"version": "4.35.3-dev.1751519082.58bc2b5",
|
|
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",
|
|
@@ -1869,6 +1869,7 @@ export interface TestingConfig extends JestConfig {
|
|
|
1869
1869
|
browserArgs?: string[];
|
|
1870
1870
|
/**
|
|
1871
1871
|
* Path to a Chromium or Chrome executable to run instead of the bundled Chromium.
|
|
1872
|
+
* @default env.PUPPETEER_EXECUTABLE_PATH || env.CHROME_PATH || puppeteer.computeExecutablePath()
|
|
1872
1873
|
*/
|
|
1873
1874
|
browserExecutablePath?: string;
|
|
1874
1875
|
/**
|
|
@@ -846,7 +846,7 @@ export declare namespace JSXBase {
|
|
|
846
846
|
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
847
847
|
open?: boolean;
|
|
848
848
|
name?: string;
|
|
849
|
-
onToggle?: (event:
|
|
849
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
850
850
|
}
|
|
851
851
|
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
852
852
|
cite?: string;
|
|
@@ -1552,6 +1552,13 @@ export declare namespace JSXBase {
|
|
|
1552
1552
|
z?: number | string;
|
|
1553
1553
|
zoomAndPan?: string;
|
|
1554
1554
|
}
|
|
1555
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1556
|
+
interface ToggleEvent extends Event {
|
|
1557
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1558
|
+
readonly newState: string;
|
|
1559
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1560
|
+
readonly oldState: string;
|
|
1561
|
+
}
|
|
1555
1562
|
interface DOMAttributes<T> extends JSXAttributes<T> {
|
|
1556
1563
|
slot?: string;
|
|
1557
1564
|
part?: string;
|
|
@@ -1568,6 +1575,10 @@ export declare namespace JSXBase {
|
|
|
1568
1575
|
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1569
1576
|
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1570
1577
|
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1578
|
+
onBeforeToggle?: (event: ToggleEvent) => void;
|
|
1579
|
+
onBeforeToggleCapture?: (event: ToggleEvent) => void;
|
|
1580
|
+
onToggle?: (event: ToggleEvent) => void;
|
|
1581
|
+
onToggleCapture?: (event: ToggleEvent) => void;
|
|
1571
1582
|
onFocus?: (event: FocusEvent) => void;
|
|
1572
1583
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1573
1584
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1586,10 +1597,6 @@ export declare namespace JSXBase {
|
|
|
1586
1597
|
onSubmitCapture?: (event: Event) => void;
|
|
1587
1598
|
onInvalid?: (event: Event) => void;
|
|
1588
1599
|
onInvalidCapture?: (event: Event) => void;
|
|
1589
|
-
onBeforeToggle?: (event: Event) => void;
|
|
1590
|
-
onBeforeToggleCapture?: (event: Event) => void;
|
|
1591
|
-
onToggle?: (event: Event) => void;
|
|
1592
|
-
onToggleCapture?: (event: Event) => void;
|
|
1593
1600
|
onLoad?: (event: Event) => void;
|
|
1594
1601
|
onLoadCapture?: (event: Event) => void;
|
|
1595
1602
|
onError?: (event: Event) => void;
|