@stencil/core 4.35.1 → 4.35.2

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.
Files changed (38) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +7 -7
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +2 -2
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +2 -2
  12. package/internal/app-data/package.json +1 -1
  13. package/internal/app-globals/package.json +1 -1
  14. package/internal/client/index.js +216 -180
  15. package/internal/client/package.json +1 -1
  16. package/internal/client/patch-browser.js +1 -1
  17. package/internal/hydrate/index.js +216 -180
  18. package/internal/hydrate/package.json +1 -1
  19. package/internal/hydrate/runner.js +43 -13
  20. package/internal/package.json +1 -1
  21. package/internal/stencil-public-compiler.d.ts +1 -0
  22. package/internal/stencil-public-runtime.d.ts +5 -5
  23. package/internal/testing/index.js +213 -179
  24. package/internal/testing/package.json +1 -1
  25. package/mock-doc/index.cjs +35 -5
  26. package/mock-doc/index.d.ts +16 -0
  27. package/mock-doc/index.js +35 -5
  28. package/mock-doc/package.json +1 -1
  29. package/package.json +1 -1
  30. package/screenshot/index.js +1 -1
  31. package/screenshot/package.json +1 -1
  32. package/screenshot/pixel-match.js +1 -1
  33. package/sys/node/index.js +26 -26
  34. package/sys/node/package.json +1 -1
  35. package/sys/node/worker.js +1 -1
  36. package/testing/index.js +5 -5
  37. package/testing/package.json +1 -1
  38. 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.1",
3
+ "version": "4.35.2",
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.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.35.2 | 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
- dispatchEvent(
10954
- this,
10955
- new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
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 BUILD13 } from "@stencil/core/internal/app-data";
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/vdom/h.ts
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 BUILD14 } from "@stencil/core/internal/app-data";
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 BUILD16 } from "@stencil/core/internal/app-data";
14745
+ import { BUILD as BUILD17 } from "@stencil/core/internal/app-data";
14713
14746
 
14714
14747
  // src/runtime/element.ts
14715
- import { BUILD as BUILD15 } from "@stencil/core/internal/app-data";
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";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.35.1",
3
+ "version": "4.35.2",
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: Event) => void;
849
+ onToggle?: (event: ToggleEvent) => void;
850
850
  }
851
851
  interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
852
852
  cite?: string;
@@ -1568,6 +1568,10 @@ export declare namespace JSXBase {
1568
1568
  onCompositionstartCapture?: (event: CompositionEvent) => void;
1569
1569
  onCompositionupdate?: (event: CompositionEvent) => void;
1570
1570
  onCompositionupdateCapture?: (event: CompositionEvent) => void;
1571
+ onBeforeToggle?: (event: ToggleEvent) => void;
1572
+ onBeforeToggleCapture?: (event: ToggleEvent) => void;
1573
+ onToggle?: (event: ToggleEvent) => void;
1574
+ onToggleCapture?: (event: ToggleEvent) => void;
1571
1575
  onFocus?: (event: FocusEvent) => void;
1572
1576
  onFocusCapture?: (event: FocusEvent) => void;
1573
1577
  onFocusin?: (event: FocusEvent) => void;
@@ -1586,10 +1590,6 @@ export declare namespace JSXBase {
1586
1590
  onSubmitCapture?: (event: Event) => void;
1587
1591
  onInvalid?: (event: Event) => void;
1588
1592
  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
1593
  onLoad?: (event: Event) => void;
1594
1594
  onLoadCapture?: (event: Event) => void;
1595
1595
  onError?: (event: Event) => void;