@arcgis/lumina 4.32.0-next.98 → 4.32.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.
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Licensing
2
2
 
3
- COPYRIGHT © 2024 Esri
3
+ COPYRIGHT © 2025 Esri
4
4
 
5
5
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
6
6
 
package/README.md CHANGED
@@ -8,7 +8,7 @@ It is not intended to be used directly, but rather used as a dependency by other
8
8
 
9
9
  ## License
10
10
 
11
- COPYRIGHT © 2024 Esri
11
+ COPYRIGHT © 2025 Esri
12
12
 
13
13
  All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
14
14
 
@@ -80,7 +80,7 @@ export declare class LitElement extends OriginalLitElement implements ComponentL
80
80
  */
81
81
  el: ToElement<this>;
82
82
  /**
83
- * Controller Manager orchestrates all components used by this component,
83
+ * Controller Manager orchestrates all controllers used by this component,
84
84
  * connecting their lifecycle hooks and providing context information.
85
85
  */
86
86
  manager: import("@arcgis/components-controllers").ControllerManager<never>;
@@ -320,25 +320,7 @@ var ProxyComponent = class extends HtmlElement {
320
320
  while (parentClass && !Object.hasOwn(parentClass, "lumina")) {
321
321
  parentClass = Object.getPrototypeOf(parentClass);
322
322
  }
323
- const litElementPrototype = parentClass.prototype;
324
- const elementPrototype = Element.prototype;
325
- const alreadyPatched = Object.hasOwn(litElementPrototype, "isConnected");
326
- if (!alreadyPatched) {
327
- litElementPrototype.setAttribute = function(qualifiedName, value) {
328
- elementPrototype.setAttribute.call(this.el, qualifiedName, value);
329
- };
330
- litElementPrototype.removeAttribute = function(qualifiedName) {
331
- elementPrototype.removeAttribute.call(this.el, qualifiedName);
332
- };
333
- defineProperty(litElementPrototype, "isConnected", {
334
- get() {
335
- return Reflect.get(elementPrototype, "isConnected", this.el);
336
- }
337
- });
338
- }
339
- if (process.env.NODE_ENV !== "production" && isEsriInternalEnv()) {
340
- devOnlyDetectIncorrectLazyUsages(parentClass);
341
- }
323
+ patchLitElement(parentClass);
342
324
  const isFirstInitialization = !ProxyClass._LitConstructor;
343
325
  if (isFirstInitialization) {
344
326
  ProxyClass._LitConstructor = LitConstructor;
@@ -406,6 +388,27 @@ var ProxyComponent = class extends HtmlElement {
406
388
  function syncLitElement([key, value]) {
407
389
  this[key] = value;
408
390
  }
391
+ function patchLitElement(parentClass) {
392
+ const litElementPrototype = parentClass.prototype;
393
+ const elementPrototype = Element.prototype;
394
+ const alreadyPatched = Object.hasOwn(litElementPrototype, "isConnected");
395
+ if (!alreadyPatched) {
396
+ litElementPrototype.setAttribute = function(qualifiedName, value) {
397
+ elementPrototype.setAttribute.call(this.el, qualifiedName, value);
398
+ };
399
+ litElementPrototype.removeAttribute = function(qualifiedName) {
400
+ elementPrototype.removeAttribute.call(this.el, qualifiedName);
401
+ };
402
+ defineProperty(litElementPrototype, "isConnected", {
403
+ get() {
404
+ return Reflect.get(elementPrototype, "isConnected", this.el);
405
+ }
406
+ });
407
+ }
408
+ if (process.env.NODE_ENV !== "production" && isEsriInternalEnv()) {
409
+ devOnlyDetectIncorrectLazyUsages(parentClass);
410
+ }
411
+ }
409
412
 
410
413
  // src/utils.ts
411
414
  var noShadowRoot = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ProxyComponent,
3
3
  noShadowRoot
4
- } from "./chunk-6HCCSL5F.js";
4
+ } from "./chunk-NO7HOBNA.js";
5
5
  import "./chunk-PGHUBTOM.js";
6
6
 
7
7
  // src/hmrSupport.ts
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  attachToAncestor,
3
3
  makeDefineCustomElements,
4
4
  noShadowRoot
5
- } from "./chunk-6HCCSL5F.js";
5
+ } from "./chunk-NO7HOBNA.js";
6
6
  import "./chunk-PGHUBTOM.js";
7
7
 
8
8
  // src/context.ts
@@ -101,7 +101,7 @@ var LitElement = class _LitElement extends OriginalLitElement {
101
101
  */
102
102
  this.el = this.constructor.lazy ?? this;
103
103
  /**
104
- * Controller Manager orchestrates all components used by this component,
104
+ * Controller Manager orchestrates all controllers used by this component,
105
105
  * connecting their lifecycle hooks and providing context information.
106
106
  */
107
107
  this.manager = useControllerManager(this);
@@ -231,6 +231,9 @@ var LitElement = class _LitElement extends OriginalLitElement {
231
231
  }
232
232
  if (this.isConnected) {
233
233
  const domRoot = renderRoot.getRootNode();
234
+ if (process.env.NODE_ENV === "test") {
235
+ domRoot.adoptedStyleSheets ??= [];
236
+ }
234
237
  domRoot.adoptedStyleSheets = [
235
238
  ...domRoot.adoptedStyleSheets,
236
239
  ...Class.elementStyles.map((stylesheet) => "styleSheet" in stylesheet ? stylesheet.styleSheet : stylesheet)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.32.0-next.98",
3
+ "version": "4.32.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  ],
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@arcgis/components-controllers": "4.32.0-next.98",
24
- "@arcgis/components-utils": "4.32.0-next.98",
23
+ "@arcgis/components-controllers": "4.32.0",
24
+ "@arcgis/components-utils": "4.32.0",
25
25
  "@lit-labs/ssr": "^3.2.2",
26
26
  "@lit-labs/ssr-client": "^1.1.7",
27
27
  "@lit/context": "^1.1.3",