@stencil/core 4.26.0 → 4.27.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/hydrate",
3
- "version": "4.26.0",
3
+ "version": "4.27.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.26.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.27.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __export = (target, all) => {
@@ -1447,6 +1447,7 @@ var EntityDecoder = class {
1447
1447
  case EntityDecoderState.NamedEntity: {
1448
1448
  return this.result !== 0 && (this.decodeMode !== DecodingMode.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
1449
1449
  }
1450
+ // Otherwise, emit a numeric entity if we have one.
1450
1451
  case EntityDecoderState.NumericDecimal: {
1451
1452
  return this.emitNumericEntity(0, 2);
1452
1453
  }
@@ -8494,6 +8495,7 @@ function endTagInSelectInTable(p, token) {
8494
8495
  }
8495
8496
  function startTagInTemplate(p, token) {
8496
8497
  switch (token.tagID) {
8498
+ // First, handle tags that can start without a mode change
8497
8499
  case TAG_ID.BASE:
8498
8500
  case TAG_ID.BASEFONT:
8499
8501
  case TAG_ID.BGSOUND:
@@ -8507,6 +8509,7 @@ function startTagInTemplate(p, token) {
8507
8509
  startTagInHead(p, token);
8508
8510
  break;
8509
8511
  }
8512
+ // Re-process the token in the appropriate mode
8510
8513
  case TAG_ID.CAPTION:
8511
8514
  case TAG_ID.COLGROUP:
8512
8515
  case TAG_ID.TBODY:
@@ -14190,9 +14193,6 @@ import { BUILD as BUILD3 } from "@stencil/core/internal/app-data";
14190
14193
  // src/utils/es2022-rewire-class-members.ts
14191
14194
  import { BUILD as BUILD2 } from "@stencil/core/internal/app-data";
14192
14195
 
14193
- // src/client/client-host-ref.ts
14194
- var hostRefs = BUILD3.hotModuleReplacement ? window.__STENCIL_HOSTREFS__ || (window.__STENCIL_HOSTREFS__ = /* @__PURE__ */ new WeakMap()) : /* @__PURE__ */ new WeakMap();
14195
-
14196
14196
  // src/client/client-load-module.ts
14197
14197
  import { BUILD as BUILD5 } from "@stencil/core/internal/app-data";
14198
14198
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.26.0",
3
+ "version": "4.27.0",
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",
@@ -100,16 +100,6 @@ export interface BuildFeatures {
100
100
  propString: boolean;
101
101
  modernPropertyDecls: boolean;
102
102
  lifecycle: boolean;
103
- cmpDidLoad: boolean;
104
- cmpShouldUpdate: boolean;
105
- cmpWillLoad: boolean;
106
- cmpDidUpdate: boolean;
107
- cmpWillUpdate: boolean;
108
- cmpWillRender: boolean;
109
- cmpDidRender: boolean;
110
- cmpDidUnload: boolean;
111
- connectedCallback: boolean;
112
- disconnectedCallback: boolean;
113
103
  asyncLoading: boolean;
114
104
  observeAttribute: boolean;
115
105
  reflect: boolean;
@@ -447,7 +437,6 @@ export interface ComponentCompilerFeatures {
447
437
  hasComponentDidUpdateFn: boolean;
448
438
  hasComponentWillRenderFn: boolean;
449
439
  hasComponentDidRenderFn: boolean;
450
- hasComponentDidUnloadFn: boolean;
451
440
  hasConnectedCallbackFn: boolean;
452
441
  hasDisconnectedCallbackFn: boolean;
453
442
  hasElement: boolean;
@@ -941,6 +930,7 @@ export interface HostElement extends HTMLElement {
941
930
  disconnectedCallback?: () => void;
942
931
  host?: Element;
943
932
  forceUpdate?: () => void;
933
+ __stencil__getHostRef?: () => HostRef;
944
934
  /**
945
935
  * Unique stencil id for this element
946
936
  */
@@ -1245,7 +1235,7 @@ export interface RenderNode extends HostElement {
1245
1235
  ['s-ol']?: RenderNode;
1246
1236
  /**
1247
1237
  * Node reference:
1248
- * This is a reference for a original location node
1238
+ * This is a reference from an original location node
1249
1239
  * back to the node that's been moved around.
1250
1240
  */
1251
1241
  ['s-nr']?: PatchedSlotNode | RenderNode;
@@ -1496,7 +1486,9 @@ export type ComponentRuntimeReflectingAttr = [string, string | undefined];
1496
1486
  * keys in a `WeakMap` which maps {@link HostElement} instances to their
1497
1487
  * associated {@link HostRef} instance.
1498
1488
  */
1499
- export type RuntimeRef = HostElement | {};
1489
+ export type RuntimeRef = HostElement | {
1490
+ __stencil__getHostRef?: () => HostRef;
1491
+ };
1500
1492
  /**
1501
1493
  * Interface used to track an Element, it's virtual Node (`VNode`), and other data
1502
1494
  */
@@ -2267,6 +2259,7 @@ export interface TypesModule {
2267
2259
  export type TypeInfo = {
2268
2260
  name: string;
2269
2261
  type: string;
2262
+ attributeName?: string;
2270
2263
  optional: boolean;
2271
2264
  required: boolean;
2272
2265
  internal: boolean;