@stencil/core 4.36.3-dev.1757653330.0456db1 → 4.37.0-dev.1757912532.d7ee800

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.
@@ -21,10 +21,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  Build: () => Build,
24
- Env: () => import_app_data23.Env,
24
+ Env: () => import_app_data24.Env,
25
25
  Fragment: () => Fragment,
26
26
  HYDRATED_STYLE_ID: () => HYDRATED_STYLE_ID,
27
27
  Host: () => Host,
28
+ Mixin: () => Mixin,
28
29
  addHostEventListeners: () => addHostEventListeners,
29
30
  bootstrapLazy: () => bootstrapLazy,
30
31
  connectedCallback: () => connectedCallback,
@@ -375,7 +376,7 @@ var isMemberInElement = (elm, memberName) => {
375
376
  };
376
377
 
377
378
  // src/testing/platform/index.ts
378
- var import_app_data23 = require("@stencil/core/internal/app-data");
379
+ var import_app_data24 = require("@stencil/core/internal/app-data");
379
380
 
380
381
  // src/runtime/asset-path.ts
381
382
  var getAssetPath = (path) => {
@@ -3826,7 +3827,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
3826
3827
  } else {
3827
3828
  Cstr = elm.constructor;
3828
3829
  const cmpTag = elm.localName;
3829
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
3830
+ const setWatchIsReady = () => hostRef.$flags$ |= 128 /* isWatchReady */;
3831
+ if (!!customElements.get(cmpTag)) {
3832
+ setWatchIsReady();
3833
+ } else {
3834
+ customElements.whenDefined(cmpTag).then(setWatchIsReady);
3835
+ }
3830
3836
  }
3831
3837
  if (import_app_data17.BUILD.style && Cstr && Cstr.style) {
3832
3838
  let style;
@@ -4359,6 +4365,15 @@ var hostListenerOpts = (flags) => supportsListenerOptions ? {
4359
4365
  capture: (flags & 2 /* Capture */) !== 0
4360
4366
  } : (flags & 2 /* Capture */) !== 0;
4361
4367
 
4368
+ // src/runtime/mixin.ts
4369
+ var import_app_data23 = require("@stencil/core/internal/app-data");
4370
+ var baseClass = import_app_data23.BUILD.lazyLoad ? class {
4371
+ } : globalThis.HTMLElement || class {
4372
+ };
4373
+ function Mixin(...mixins) {
4374
+ return mixins.reduceRight((acc, mixin) => mixin(acc), baseClass);
4375
+ }
4376
+
4362
4377
  // src/runtime/nonce.ts
4363
4378
  var setNonce = (nonce) => plt.$nonce$ = nonce;
4364
4379
 
@@ -4537,6 +4552,7 @@ var scopedSSR = false;
4537
4552
  Fragment,
4538
4553
  HYDRATED_STYLE_ID,
4539
4554
  Host,
4555
+ Mixin,
4540
4556
  addHostEventListeners,
4541
4557
  bootstrapLazy,
4542
4558
  connectedCallback,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/testing",
3
- "version": "4.36.3-dev.1757653330.0456db1",
3
+ "version": "4.37.0-dev.1757912532.d7ee800",
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.36.3-dev.1757653330.0456db1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.37.0-dev.1757912532.d7ee800 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.36.3-dev.1757653330.0456db1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.37.0-dev.1757912532.d7ee800 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.36.3-dev.1757653330.0456db1",
3
+ "version": "4.37.0-dev.1757912532.d7ee800",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.36.3-dev.1757653330.0456db1",
3
+ "version": "4.37.0-dev.1757912532.d7ee800",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.36.3-dev.1757653330.0456db1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.37.0-dev.1757912532.d7ee800 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -733,6 +733,11 @@ var _colonHostContextRe = createSupportsRuleRe(":host-context");
733
733
  var CAPTURE_EVENT_SUFFIX = "Capture";
734
734
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
735
735
 
736
+ // src/runtime/mixin.ts
737
+ var baseClass = BUILD.lazyLoad ? class {
738
+ } : globalThis.HTMLElement || class {
739
+ };
740
+
736
741
  // src/utils/util.ts
737
742
  var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
738
743
  var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.36.3-dev.1757653330.0456db1",
3
+ "version": "4.37.0-dev.1757912532.d7ee800",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.36.3-dev.1757653330.0456db1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.37.0-dev.1757912532.d7ee800 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;