@stencil/core 4.40.1 → 4.41.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.
Files changed (45) hide show
  1. package/cli/config-flags.d.ts +2 -2
  2. package/cli/index.cjs +9 -4
  3. package/cli/index.js +9 -4
  4. package/cli/package.json +1 -1
  5. package/compiler/package.json +1 -1
  6. package/compiler/stencil.js +268 -136
  7. package/dev-server/client/index.js +12 -12
  8. package/dev-server/client/package.json +1 -1
  9. package/dev-server/connector.html +3 -3
  10. package/dev-server/index.js +2 -2
  11. package/dev-server/package.json +1 -1
  12. package/dev-server/server-process.js +18 -11
  13. package/internal/app-data/package.json +1 -1
  14. package/internal/app-globals/package.json +1 -1
  15. package/internal/client/index.js +105 -25
  16. package/internal/client/package.json +1 -1
  17. package/internal/client/patch-browser.js +1 -1
  18. package/internal/hydrate/index.js +64 -25
  19. package/internal/hydrate/package.json +1 -1
  20. package/internal/hydrate/runner.js +196 -135
  21. package/internal/package.json +1 -1
  22. package/internal/stencil-core/jsx-dev-runtime.cjs +7 -0
  23. package/internal/stencil-core/jsx-dev-runtime.d.ts +23 -0
  24. package/internal/stencil-core/jsx-dev-runtime.js +2 -0
  25. package/internal/stencil-core/jsx-runtime.cjs +8 -0
  26. package/internal/stencil-core/jsx-runtime.d.ts +22 -0
  27. package/internal/stencil-core/jsx-runtime.js +2 -0
  28. package/internal/stencil-private.d.ts +20 -0
  29. package/internal/stencil-public-compiler.d.ts +6 -0
  30. package/internal/stencil-public-docs.d.ts +11 -0
  31. package/internal/stencil-public-runtime.d.ts +29 -0
  32. package/internal/testing/index.js +753 -638
  33. package/internal/testing/package.json +1 -1
  34. package/mock-doc/index.cjs +192 -135
  35. package/mock-doc/index.js +193 -135
  36. package/mock-doc/package.json +1 -1
  37. package/package.json +11 -1
  38. package/screenshot/index.js +29 -8
  39. package/screenshot/package.json +1 -1
  40. package/screenshot/pixel-match.js +1 -1
  41. package/sys/node/index.js +29 -29
  42. package/sys/node/package.json +1 -1
  43. package/sys/node/worker.js +1 -1
  44. package/testing/index.js +98 -70
  45. package/testing/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Runner v4.40.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.41.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __create = Object.create;
5
5
  var __defProp = Object.defineProperty;
@@ -345,6 +345,8 @@ var isString = (v) => typeof v === "string";
345
345
 
346
346
  // src/utils/local-value.ts
347
347
  var LocalValue = class _LocalValue {
348
+ type;
349
+ value;
348
350
  constructor(type, value) {
349
351
  if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
350
352
  this.type = type;
@@ -2277,8 +2279,8 @@ var createAttributeProxy = (caseInsensitive) => new Proxy(new MockAttributeMap(c
2277
2279
  var MockAttributeMap = class {
2278
2280
  constructor(caseInsensitive = false) {
2279
2281
  this.caseInsensitive = caseInsensitive;
2280
- this.__items = [];
2281
2282
  }
2283
+ __items = [];
2282
2284
  get length() {
2283
2285
  return this.__items.length;
2284
2286
  }
@@ -2367,6 +2369,9 @@ function sortAttributes(a, b) {
2367
2369
  return 0;
2368
2370
  }
2369
2371
  var MockAttr = class {
2372
+ _name;
2373
+ _value;
2374
+ _namespaceURI;
2370
2375
  constructor(attrName, attrValue, namespaceURI = null) {
2371
2376
  this._name = attrName;
2372
2377
  this._value = String(attrValue);
@@ -2406,9 +2411,7 @@ var MockAttr = class {
2406
2411
 
2407
2412
  // src/mock-doc/css-style-declaration.ts
2408
2413
  var MockCSSStyleDeclaration = class {
2409
- constructor() {
2410
- this._styles = /* @__PURE__ */ new Map();
2411
- }
2414
+ _styles = /* @__PURE__ */ new Map();
2412
2415
  setProperty(prop, value) {
2413
2416
  prop = jsCaseToCssCase(prop);
2414
2417
  if (value == null || value === "") {
@@ -2494,6 +2497,8 @@ var MockCustomElementRegistry = class {
2494
2497
  constructor(win2) {
2495
2498
  this.win = win2;
2496
2499
  }
2500
+ __registry;
2501
+ __whenDefined;
2497
2502
  define(tagName, cstr, options) {
2498
2503
  if (tagName.toLowerCase() !== tagName) {
2499
2504
  throw new Error(
@@ -2728,15 +2733,17 @@ function dashToPascalCase2(str) {
2728
2733
 
2729
2734
  // src/mock-doc/event.ts
2730
2735
  var MockEvent = class {
2736
+ bubbles = false;
2737
+ cancelBubble = false;
2738
+ cancelable = false;
2739
+ composed = false;
2740
+ currentTarget = null;
2741
+ defaultPrevented = false;
2742
+ srcElement = null;
2743
+ target = null;
2744
+ timeStamp;
2745
+ type;
2731
2746
  constructor(type, eventInitDict) {
2732
- this.bubbles = false;
2733
- this.cancelBubble = false;
2734
- this.cancelable = false;
2735
- this.composed = false;
2736
- this.currentTarget = null;
2737
- this.defaultPrevented = false;
2738
- this.srcElement = null;
2739
- this.target = null;
2740
2747
  if (typeof type !== "string") {
2741
2748
  throw new Error(`Event type required`);
2742
2749
  }
@@ -2778,69 +2785,71 @@ var MockEvent = class {
2778
2785
  }
2779
2786
  };
2780
2787
  var MockCustomEvent = class extends MockEvent {
2788
+ detail = null;
2781
2789
  constructor(type, customEventInitDic) {
2782
2790
  super(type);
2783
- this.detail = null;
2784
2791
  if (customEventInitDic != null) {
2785
2792
  Object.assign(this, customEventInitDic);
2786
2793
  }
2787
2794
  }
2788
2795
  };
2789
2796
  var MockKeyboardEvent = class extends MockEvent {
2797
+ code = "";
2798
+ key = "";
2799
+ altKey = false;
2800
+ ctrlKey = false;
2801
+ metaKey = false;
2802
+ shiftKey = false;
2803
+ location = 0;
2804
+ repeat = false;
2790
2805
  constructor(type, keyboardEventInitDic) {
2791
2806
  super(type);
2792
- this.code = "";
2793
- this.key = "";
2794
- this.altKey = false;
2795
- this.ctrlKey = false;
2796
- this.metaKey = false;
2797
- this.shiftKey = false;
2798
- this.location = 0;
2799
- this.repeat = false;
2800
2807
  if (keyboardEventInitDic != null) {
2801
2808
  Object.assign(this, keyboardEventInitDic);
2802
2809
  }
2803
2810
  }
2804
2811
  };
2805
2812
  var MockMouseEvent = class extends MockEvent {
2813
+ screenX = 0;
2814
+ screenY = 0;
2815
+ clientX = 0;
2816
+ clientY = 0;
2817
+ ctrlKey = false;
2818
+ shiftKey = false;
2819
+ altKey = false;
2820
+ metaKey = false;
2821
+ button = 0;
2822
+ buttons = 0;
2823
+ relatedTarget = null;
2806
2824
  constructor(type, mouseEventInitDic) {
2807
2825
  super(type);
2808
- this.screenX = 0;
2809
- this.screenY = 0;
2810
- this.clientX = 0;
2811
- this.clientY = 0;
2812
- this.ctrlKey = false;
2813
- this.shiftKey = false;
2814
- this.altKey = false;
2815
- this.metaKey = false;
2816
- this.button = 0;
2817
- this.buttons = 0;
2818
- this.relatedTarget = null;
2819
2826
  if (mouseEventInitDic != null) {
2820
2827
  Object.assign(this, mouseEventInitDic);
2821
2828
  }
2822
2829
  }
2823
2830
  };
2824
2831
  var MockUIEvent = class extends MockEvent {
2832
+ detail = null;
2833
+ view = null;
2825
2834
  constructor(type, uiEventInitDic) {
2826
2835
  super(type);
2827
- this.detail = null;
2828
- this.view = null;
2829
2836
  if (uiEventInitDic != null) {
2830
2837
  Object.assign(this, uiEventInitDic);
2831
2838
  }
2832
2839
  }
2833
2840
  };
2834
2841
  var MockFocusEvent = class extends MockUIEvent {
2842
+ relatedTarget = null;
2835
2843
  constructor(type, focusEventInitDic) {
2836
2844
  super(type);
2837
- this.relatedTarget = null;
2838
2845
  if (focusEventInitDic != null) {
2839
2846
  Object.assign(this, focusEventInitDic);
2840
2847
  }
2841
2848
  }
2842
2849
  };
2843
2850
  var MockEventListener = class {
2851
+ type;
2852
+ handler;
2844
2853
  constructor(type, handler) {
2845
2854
  this.type = type;
2846
2855
  this.handler = handler;
@@ -13003,6 +13012,12 @@ function getItems(elm, attr) {
13003
13012
 
13004
13013
  // src/mock-doc/node.ts
13005
13014
  var MockNode2 = class {
13015
+ _nodeValue;
13016
+ nodeName;
13017
+ nodeType;
13018
+ ownerDocument;
13019
+ parentNode;
13020
+ childNodes;
13006
13021
  constructor(ownerDocument, nodeType, nodeName, nodeValue) {
13007
13022
  this.ownerDocument = ownerDocument;
13008
13023
  this.nodeType = nodeType;
@@ -13163,14 +13178,17 @@ var MockNode2 = class {
13163
13178
  return dispatchEvent(this, ev);
13164
13179
  }
13165
13180
  };
13166
- MockNode2.ELEMENT_NODE = 1;
13167
- MockNode2.TEXT_NODE = 3;
13168
- MockNode2.PROCESSING_INSTRUCTION_NODE = 7;
13169
- MockNode2.COMMENT_NODE = 8;
13170
- MockNode2.DOCUMENT_NODE = 9;
13171
- MockNode2.DOCUMENT_TYPE_NODE = 10;
13172
- MockNode2.DOCUMENT_FRAGMENT_NODE = 11;
13181
+ __publicField(MockNode2, "ELEMENT_NODE", 1);
13182
+ __publicField(MockNode2, "TEXT_NODE", 3);
13183
+ __publicField(MockNode2, "PROCESSING_INSTRUCTION_NODE", 7);
13184
+ __publicField(MockNode2, "COMMENT_NODE", 8);
13185
+ __publicField(MockNode2, "DOCUMENT_NODE", 9);
13186
+ __publicField(MockNode2, "DOCUMENT_TYPE_NODE", 10);
13187
+ __publicField(MockNode2, "DOCUMENT_FRAGMENT_NODE", 11);
13173
13188
  var MockNodeList = class {
13189
+ childNodes;
13190
+ length;
13191
+ ownerDocument;
13174
13192
  constructor(ownerDocument, childNodes, length) {
13175
13193
  this.ownerDocument = ownerDocument;
13176
13194
  this.childNodes = childNodes;
@@ -13178,6 +13196,10 @@ var MockNodeList = class {
13178
13196
  }
13179
13197
  };
13180
13198
  var MockElement = class extends MockNode2 {
13199
+ __namespaceURI;
13200
+ __attributeMap;
13201
+ __shadowRoot;
13202
+ __style;
13181
13203
  attachInternals() {
13182
13204
  return new Proxy({}, {
13183
13205
  get: function(_target, prop, _receiver) {
@@ -13878,9 +13900,9 @@ function insertBefore2(parentNode, newNode, referenceNode) {
13878
13900
  return newNode;
13879
13901
  }
13880
13902
  var MockHTMLElement = class extends MockElement {
13903
+ __namespaceURI = "http://www.w3.org/1999/xhtml";
13881
13904
  constructor(ownerDocument, nodeName) {
13882
13905
  super(ownerDocument, typeof nodeName === "string" ? nodeName.toUpperCase() : null);
13883
- this.__namespaceURI = "http://www.w3.org/1999/xhtml";
13884
13906
  }
13885
13907
  get tagName() {
13886
13908
  var _a2;
@@ -14046,15 +14068,16 @@ var MockDocumentTypeNode = class extends MockHTMLElement {
14046
14068
  var MockCSSRule = class {
14047
14069
  constructor(parentStyleSheet) {
14048
14070
  this.parentStyleSheet = parentStyleSheet;
14049
- this.cssText = "";
14050
- this.type = 0;
14051
14071
  }
14072
+ cssText = "";
14073
+ type = 0;
14052
14074
  };
14053
14075
  var MockCSSStyleSheet = class {
14076
+ ownerNode;
14077
+ type = "text/css";
14078
+ parentStyleSheet = null;
14079
+ cssRules = [];
14054
14080
  constructor(ownerNode) {
14055
- this.type = "text/css";
14056
- this.parentStyleSheet = null;
14057
- this.cssRules = [];
14058
14081
  this.ownerNode = ownerNode;
14059
14082
  }
14060
14083
  get rules() {
@@ -14340,6 +14363,7 @@ patchPropAttributes(MockLinkElement.prototype, {
14340
14363
  type: String
14341
14364
  });
14342
14365
  var MockMetaElement = class extends MockHTMLElement {
14366
+ content;
14343
14367
  constructor(ownerDocument) {
14344
14368
  super(ownerDocument, "meta");
14345
14369
  }
@@ -14364,35 +14388,33 @@ patchPropAttributes(MockScriptElement.prototype, {
14364
14388
  type: String
14365
14389
  });
14366
14390
  var MockDOMMatrix = class _MockDOMMatrix {
14367
- constructor() {
14368
- this.a = 1;
14369
- this.b = 0;
14370
- this.c = 0;
14371
- this.d = 1;
14372
- this.e = 0;
14373
- this.f = 0;
14374
- this.m11 = 1;
14375
- this.m12 = 0;
14376
- this.m13 = 0;
14377
- this.m14 = 0;
14378
- this.m21 = 0;
14379
- this.m22 = 1;
14380
- this.m23 = 0;
14381
- this.m24 = 0;
14382
- this.m31 = 0;
14383
- this.m32 = 0;
14384
- this.m33 = 1;
14385
- this.m34 = 0;
14386
- this.m41 = 0;
14387
- this.m42 = 0;
14388
- this.m43 = 0;
14389
- this.m44 = 1;
14390
- this.is2D = true;
14391
- this.isIdentity = true;
14392
- }
14393
14391
  static fromMatrix() {
14394
14392
  return new _MockDOMMatrix();
14395
14393
  }
14394
+ a = 1;
14395
+ b = 0;
14396
+ c = 0;
14397
+ d = 1;
14398
+ e = 0;
14399
+ f = 0;
14400
+ m11 = 1;
14401
+ m12 = 0;
14402
+ m13 = 0;
14403
+ m14 = 0;
14404
+ m21 = 0;
14405
+ m22 = 1;
14406
+ m23 = 0;
14407
+ m24 = 0;
14408
+ m31 = 0;
14409
+ m32 = 0;
14410
+ m33 = 1;
14411
+ m34 = 0;
14412
+ m41 = 0;
14413
+ m42 = 0;
14414
+ m43 = 0;
14415
+ m44 = 1;
14416
+ is2D = true;
14417
+ isIdentity = true;
14396
14418
  inverse() {
14397
14419
  return new _MockDOMMatrix();
14398
14420
  }
@@ -14438,12 +14460,10 @@ var MockDOMMatrix = class _MockDOMMatrix {
14438
14460
  }
14439
14461
  };
14440
14462
  var MockDOMPoint = class {
14441
- constructor() {
14442
- this.w = 1;
14443
- this.x = 0;
14444
- this.y = 0;
14445
- this.z = 0;
14446
- }
14463
+ w = 1;
14464
+ x = 0;
14465
+ y = 0;
14466
+ z = 0;
14447
14467
  toJSON() {
14448
14468
  }
14449
14469
  matrixTransform() {
@@ -14451,14 +14471,13 @@ var MockDOMPoint = class {
14451
14471
  }
14452
14472
  };
14453
14473
  var MockSVGRect = class {
14454
- constructor() {
14455
- this.height = 10;
14456
- this.width = 10;
14457
- this.x = 0;
14458
- this.y = 0;
14459
- }
14474
+ height = 10;
14475
+ width = 10;
14476
+ x = 0;
14477
+ y = 0;
14460
14478
  };
14461
14479
  var MockStyleElement = class extends MockHTMLElement {
14480
+ sheet;
14462
14481
  constructor(ownerDocument) {
14463
14482
  super(ownerDocument, "style");
14464
14483
  this.sheet = new MockCSSStyleSheet(this);
@@ -14483,10 +14502,7 @@ var MockStyleElement = class extends MockHTMLElement {
14483
14502
  }
14484
14503
  };
14485
14504
  var MockSVGElement = class extends MockElement {
14486
- constructor() {
14487
- super(...arguments);
14488
- this.__namespaceURI = "http://www.w3.org/2000/svg";
14489
- }
14505
+ __namespaceURI = "http://www.w3.org/2000/svg";
14490
14506
  // SVGElement properties and methods
14491
14507
  get ownerSVGElement() {
14492
14508
  return null;
@@ -14543,6 +14559,7 @@ var MockBaseElement = class extends MockHTMLElement {
14543
14559
  }
14544
14560
  };
14545
14561
  var MockTemplateElement = class _MockTemplateElement extends MockHTMLElement {
14562
+ content;
14546
14563
  constructor(ownerDocument) {
14547
14564
  super(ownerDocument, "template");
14548
14565
  this.content = new MockDocumentFragment(ownerDocument);
@@ -14649,6 +14666,8 @@ patchPropAttributes(MockSlotElement.prototype, {
14649
14666
  name: String
14650
14667
  });
14651
14668
  var CanvasRenderingContext = class {
14669
+ context;
14670
+ contextAttributes;
14652
14671
  constructor(context, contextAttributes) {
14653
14672
  this.context = context;
14654
14673
  this.contextAttributes = contextAttributes;
@@ -14837,8 +14856,8 @@ function createConsole() {
14837
14856
 
14838
14857
  // src/mock-doc/headers.ts
14839
14858
  var MockHeaders = class {
14859
+ _values = [];
14840
14860
  constructor(init) {
14841
- this._values = [];
14842
14861
  if (typeof init === "object") {
14843
14862
  if (typeof init[Symbol.iterator] === "function") {
14844
14863
  const kvs = [];
@@ -14976,18 +14995,19 @@ var MockDOMParser = class {
14976
14995
 
14977
14996
  // src/mock-doc/request-response.ts
14978
14997
  var MockRequest = class _MockRequest {
14998
+ _method = "GET";
14999
+ _url = "/";
15000
+ bodyUsed = false;
15001
+ cache = "default";
15002
+ credentials = "same-origin";
15003
+ headers;
15004
+ integrity = "";
15005
+ keepalive = false;
15006
+ mode = "cors";
15007
+ redirect = "follow";
15008
+ referrer = "about:client";
15009
+ referrerPolicy = "";
14979
15010
  constructor(input, init = {}) {
14980
- this._method = "GET";
14981
- this._url = "/";
14982
- this.bodyUsed = false;
14983
- this.cache = "default";
14984
- this.credentials = "same-origin";
14985
- this.integrity = "";
14986
- this.keepalive = false;
14987
- this.mode = "cors";
14988
- this.redirect = "follow";
14989
- this.referrer = "about:client";
14990
- this.referrerPolicy = "";
14991
15011
  if (typeof input === "string") {
14992
15012
  this.url = input;
14993
15013
  } else if (input) {
@@ -15027,12 +15047,14 @@ var MockRequest = class _MockRequest {
15027
15047
  }
15028
15048
  };
15029
15049
  var MockResponse = class _MockResponse {
15050
+ _body;
15051
+ headers;
15052
+ ok = true;
15053
+ status = 200;
15054
+ statusText = "";
15055
+ type = "default";
15056
+ url = "";
15030
15057
  constructor(body, init = {}) {
15031
- this.ok = true;
15032
- this.status = 200;
15033
- this.statusText = "";
15034
- this.type = "default";
15035
- this.url = "";
15036
15058
  this._body = body;
15037
15059
  if (init) {
15038
15060
  Object.assign(this, init);
@@ -15173,9 +15195,7 @@ var GLOBAL_CONSTRUCTORS = [
15173
15195
 
15174
15196
  // src/mock-doc/history.ts
15175
15197
  var MockHistory = class {
15176
- constructor() {
15177
- this.items = [];
15178
- }
15198
+ items = [];
15179
15199
  get length() {
15180
15200
  return this.items.length;
15181
15201
  }
@@ -15210,20 +15230,18 @@ var MockIntersectionObserver = class {
15210
15230
 
15211
15231
  // src/mock-doc/location.ts
15212
15232
  var MockLocation = class {
15213
- constructor() {
15214
- this.ancestorOrigins = null;
15215
- this.protocol = "";
15216
- this.host = "";
15217
- this.hostname = "";
15218
- this.port = "";
15219
- this.pathname = "";
15220
- this.search = "";
15221
- this.hash = "";
15222
- this.username = "";
15223
- this.password = "";
15224
- this.origin = "";
15225
- this._href = "";
15226
- }
15233
+ ancestorOrigins = null;
15234
+ protocol = "";
15235
+ host = "";
15236
+ hostname = "";
15237
+ port = "";
15238
+ pathname = "";
15239
+ search = "";
15240
+ hash = "";
15241
+ username = "";
15242
+ password = "";
15243
+ origin = "";
15244
+ _href = "";
15227
15245
  get href() {
15228
15246
  return this._href;
15229
15247
  }
@@ -15254,17 +15272,17 @@ var MockLocation = class {
15254
15272
 
15255
15273
  // src/mock-doc/navigator.ts
15256
15274
  var MockNavigator = class {
15257
- constructor() {
15258
- this.appCodeName = "MockNavigator";
15259
- this.appName = "MockNavigator";
15260
- this.appVersion = "MockNavigator";
15261
- this.platform = "MockNavigator";
15262
- this.userAgent = "MockNavigator";
15263
- }
15275
+ appCodeName = "MockNavigator";
15276
+ appName = "MockNavigator";
15277
+ appVersion = "MockNavigator";
15278
+ platform = "MockNavigator";
15279
+ userAgent = "MockNavigator";
15264
15280
  };
15265
15281
 
15266
15282
  // src/mock-doc/performance.ts
15267
15283
  var MockPerformance = class {
15284
+ timeOrigin;
15285
+ eventCounts;
15268
15286
  constructor() {
15269
15287
  this.timeOrigin = Date.now();
15270
15288
  this.eventCounts = /* @__PURE__ */ new Map();
@@ -15392,9 +15410,7 @@ var MockShadowRoot = class extends MockDocumentFragment {
15392
15410
 
15393
15411
  // src/mock-doc/storage.ts
15394
15412
  var MockStorage = class {
15395
- constructor() {
15396
- this.items = /* @__PURE__ */ new Map();
15397
- }
15413
+ items = /* @__PURE__ */ new Map();
15398
15414
  key(_value) {
15399
15415
  }
15400
15416
  getItem(key) {
@@ -15426,6 +15442,44 @@ var nativeSetTimeout = globalThis.setTimeout;
15426
15442
  var nativeURL = globalThis.URL;
15427
15443
  var nativeWindow = globalThis.window;
15428
15444
  var MockWindow = class {
15445
+ __timeouts;
15446
+ __history;
15447
+ __elementCstr;
15448
+ __htmlElementCstr;
15449
+ __charDataCstr;
15450
+ __docTypeCstr;
15451
+ __docCstr;
15452
+ __docFragCstr;
15453
+ __domTokenListCstr;
15454
+ __nodeCstr;
15455
+ __nodeListCstr;
15456
+ __localStorage;
15457
+ __sessionStorage;
15458
+ __location;
15459
+ __navigator;
15460
+ __clearInterval;
15461
+ __clearTimeout;
15462
+ __setInterval;
15463
+ __setTimeout;
15464
+ __maxTimeout;
15465
+ __allowInterval;
15466
+ URL;
15467
+ console;
15468
+ customElements;
15469
+ document;
15470
+ performance;
15471
+ devicePixelRatio;
15472
+ innerHeight;
15473
+ innerWidth;
15474
+ pageXOffset;
15475
+ pageYOffset;
15476
+ screen;
15477
+ screenLeft;
15478
+ screenTop;
15479
+ screenX;
15480
+ screenY;
15481
+ scrollX;
15482
+ scrollY;
15429
15483
  constructor(html = null) {
15430
15484
  if (html !== false) {
15431
15485
  this.document = new MockDocument(html, this);
@@ -16115,6 +16169,9 @@ function resetWindowDimensions(win2) {
16115
16169
 
16116
16170
  // src/mock-doc/document.ts
16117
16171
  var MockDocument = class _MockDocument extends MockHTMLElement {
16172
+ defaultView;
16173
+ cookie;
16174
+ referrer;
16118
16175
  constructor(html = null, win2 = null) {
16119
16176
  super(null, null);
16120
16177
  this.nodeName = "#document" /* DOCUMENT_NODE */;
@@ -16832,6 +16889,10 @@ var parseCss = (css, filePath) => {
16832
16889
  });
16833
16890
  };
16834
16891
  class ParsePosition {
16892
+ start;
16893
+ end;
16894
+ source;
16895
+ content;
16835
16896
  constructor(start) {
16836
16897
  this.start = start;
16837
16898
  this.end = { line: lineno, column };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.40.1",
3
+ "version": "4.41.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",
@@ -0,0 +1,7 @@
1
+ // Export automatic JSX development runtime (CommonJS)
2
+ // Note: This requires the client platform to be built
3
+ const client = require('../client/index.js');
4
+ module.exports = {
5
+ jsxDEV: client.jsxDEV,
6
+ Fragment: client.Fragment,
7
+ };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Automatic JSX Development Runtime type definitions for Stencil
3
+ *
4
+ * This module provides TypeScript type definitions for the automatic JSX development runtime.
5
+ * When using "jsx": "react-jsxdev" in tsconfig.json with "jsxImportSource": "@stencil/core",
6
+ * TypeScript will automatically import from this module in development mode.
7
+ */
8
+
9
+ import type { VNode } from '../stencil-public-runtime';
10
+
11
+ export { Fragment } from '../stencil-public-runtime';
12
+
13
+ /**
14
+ * JSX development runtime function for creating elements with debug info.
15
+ */
16
+ export function jsxDEV(
17
+ type: any,
18
+ props: any,
19
+ key?: string | number,
20
+ isStaticChildren?: boolean,
21
+ source?: any,
22
+ self?: any,
23
+ ): VNode;
@@ -0,0 +1,2 @@
1
+ // Re-export from the client platform (same pattern as index.js)
2
+ export { jsxDEV, Fragment } from '../client/index.js';
@@ -0,0 +1,8 @@
1
+ // Export automatic JSX runtime (CommonJS)
2
+ // Note: This requires the client platform to be built
3
+ const client = require('../client/index.js');
4
+ module.exports = {
5
+ jsx: client.jsx,
6
+ jsxs: client.jsxs,
7
+ Fragment: client.Fragment,
8
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Automatic JSX Runtime type definitions for Stencil
3
+ *
4
+ * This module provides TypeScript type definitions for the automatic JSX runtime.
5
+ * When using "jsx": "react-jsx" or "jsx": "react-jsxdev" in tsconfig.json with
6
+ * "jsxImportSource": "@stencil/core", TypeScript will automatically import from
7
+ * these modules instead of requiring manual `h` imports.
8
+ */
9
+
10
+ import type { VNode } from '../stencil-public-runtime';
11
+
12
+ export { Fragment } from '../stencil-public-runtime';
13
+
14
+ /**
15
+ * JSX runtime function for creating elements in production mode.
16
+ */
17
+ export function jsx(type: any, props: any, key?: string): VNode;
18
+
19
+ /**
20
+ * JSX runtime function for creating elements with static children.
21
+ */
22
+ export function jsxs(type: any, props: any, key?: string): VNode;
@@ -0,0 +1,2 @@
1
+ // Re-export from the client platform (same pattern as index.js)
2
+ export { jsx, jsxs, Fragment } from '../client/index.js';