@stencil/core 4.42.0-dev.1770269227.50ad901 → 4.42.0-dev.1770355537.e4eeb37

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Platform v4.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Platform v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -2419,7 +2419,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
2419
2419
  }
2420
2420
  }
2421
2421
  } else if (BUILD12.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
2422
- const attrName = memberName.slice(5);
2422
+ const propName = memberName.slice(5);
2423
+ let attrName;
2424
+ if (BUILD12.member) {
2425
+ const hostRef = getHostRef(elm);
2426
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
2427
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
2428
+ if (memberMeta && memberMeta[1]) {
2429
+ attrName = memberMeta[1];
2430
+ }
2431
+ }
2432
+ }
2433
+ if (!attrName) {
2434
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
2435
+ }
2423
2436
  if (newValue == null || newValue === false) {
2424
2437
  if (newValue !== false || elm.getAttribute(attrName) === "") {
2425
2438
  elm.removeAttribute(attrName);
@@ -3536,13 +3549,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
3536
3549
  });
3537
3550
  }
3538
3551
  }
3539
- if (BUILD16.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
3552
+ if (BUILD16.updatable && flags & 2 /* hasRendered */) {
3540
3553
  if (instance.componentShouldUpdate) {
3541
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
3554
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
3555
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
3542
3556
  return;
3543
3557
  }
3544
3558
  }
3545
- scheduleUpdate(hostRef, false);
3559
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
3560
+ scheduleUpdate(hostRef, false);
3561
+ }
3546
3562
  }
3547
3563
  }
3548
3564
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/hydrate",
3
- "version": "4.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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",
@@ -47,6 +47,7 @@ export {
47
47
  Prop,
48
48
  readTask,
49
49
  render,
50
+ resolveVar,
50
51
  setAssetPath,
51
52
  setErrorHandler,
52
53
  setMode,
@@ -1160,6 +1160,12 @@ export interface Module {
1160
1160
  isLegacy: boolean;
1161
1161
  jsFilePath: string;
1162
1162
  localImports: string[];
1163
+ /**
1164
+ * Source file paths of functional components that are used in JSX/h() calls.
1165
+ * This is used to ensure htmlTagNames are properly propagated from functional
1166
+ * component dependencies even when they're accessed indirectly (e.g., via barrel files).
1167
+ */
1168
+ functionalComponentDeps: string[];
1163
1169
  originalImports: string[];
1164
1170
  originalCollectionComponentPath: string;
1165
1171
  potentialCmpRefs: string[];
@@ -1438,8 +1438,6 @@ export declare namespace JSXBase {
1438
1438
  results?: number;
1439
1439
  security?: string;
1440
1440
  unselectable?: boolean;
1441
- [key: `attr:${string}`]: string;
1442
- [key: `prop:${string}`]: any;
1443
1441
  }
1444
1442
  interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
1445
1443
  class?: string | {
@@ -1701,8 +1699,6 @@ export declare namespace JSXBase {
1701
1699
  yChannelSelector?: string;
1702
1700
  z?: number | string;
1703
1701
  zoomAndPan?: string;
1704
- [key: `attr:${string}`]: string;
1705
- [key: `prop:${string}`]: any;
1706
1702
  }
1707
1703
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
1708
1704
  interface ToggleEvent extends Event {
@@ -4193,7 +4193,20 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
4193
4193
  }
4194
4194
  }
4195
4195
  } else if (import_app_data11.BUILD.vdomPropOrAttr && memberName[0] === "a" && memberName.startsWith("attr:")) {
4196
- const attrName = memberName.slice(5);
4196
+ const propName = memberName.slice(5);
4197
+ let attrName;
4198
+ if (import_app_data11.BUILD.member) {
4199
+ const hostRef = getHostRef(elm);
4200
+ if (hostRef && hostRef.$cmpMeta$ && hostRef.$cmpMeta$.$members$) {
4201
+ const memberMeta = hostRef.$cmpMeta$.$members$[propName];
4202
+ if (memberMeta && memberMeta[1]) {
4203
+ attrName = memberMeta[1];
4204
+ }
4205
+ }
4206
+ }
4207
+ if (!attrName) {
4208
+ attrName = propName.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
4209
+ }
4197
4210
  if (newValue == null || newValue === false) {
4198
4211
  if (newValue !== false || elm.getAttribute(attrName) === "") {
4199
4212
  elm.removeAttribute(attrName);
@@ -5310,13 +5323,16 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
5310
5323
  });
5311
5324
  }
5312
5325
  }
5313
- if (import_app_data15.BUILD.updatable && (flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
5326
+ if (import_app_data15.BUILD.updatable && flags & 2 /* hasRendered */) {
5314
5327
  if (instance.componentShouldUpdate) {
5315
- if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
5328
+ const shouldUpdate = instance.componentShouldUpdate(newVal, oldVal, propName);
5329
+ if (shouldUpdate === false && !(flags & 16 /* isQueuedForUpdate */)) {
5316
5330
  return;
5317
5331
  }
5318
5332
  }
5319
- scheduleUpdate(hostRef, false);
5333
+ if (!(flags & 16 /* isQueuedForUpdate */)) {
5334
+ scheduleUpdate(hostRef, false);
5335
+ }
5320
5336
  }
5321
5337
  }
5322
5338
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/testing",
3
- "version": "4.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.42.0-dev.1770355537.e4eeb37 | 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.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.42.0-dev.1770269227.50ad901",
3
+ "version": "4.42.0-dev.1770355537.e4eeb37",
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.42.0-dev.1770269227.50ad901 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.42.0-dev.1770355537.e4eeb37 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;