@arcgis/lumina 4.34.0-next.98 → 5.0.0-next.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 © 2025 Esri
3
+ COPYRIGHT © 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,18 +8,6 @@ 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 © 2025 Esri
11
+ COPYRIGHT © Esri
12
12
 
13
- All rights reserved under the copyright laws of the United States and applicable international laws, treaties, and conventions.
14
-
15
- This material is licensed for use under the [Esri Master License Agreement (MLA)](https://www.esri.com/content/dam/esrisites/en-us/media/legal/ma-full/ma-full.pdf), and is bound by the terms of that agreement.
16
- You may redistribute and use this code without modification, provided you adhere to the terms of the MLA and include this copyright notice.
17
-
18
- For additional information, contact:
19
- Environmental Systems Research Institute, Inc.
20
- Attn: Contracts and Legal Services Department
21
- 380 New York Street
22
- Redlands, California, USA 92373
23
- USA
24
-
25
- email: legal@esri.com
13
+ This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package.
@@ -252,4 +252,23 @@ type Listener<ThisType, EventType> = ((this: ThisType, event: EventType) => unkn
252
252
  export type GlobalThisWithOwnTagNames = typeof globalThis & {
253
253
  devOnly$ownTagNames?: Set<string>;
254
254
  };
255
+ /**
256
+ * Lumina tracks accesses to JSAPI Accessor properties during render() and
257
+ * automatically re-renders the component when any tracked property changes.
258
+ *
259
+ * If your render() has imperative rendering logic or relies on specific render()
260
+ * call timing, you can temporarily disable this reactiveUtils integration to
261
+ * give you time to complete the migration and refactor the code.
262
+ *
263
+ * @deprecated Use this as a **temporary** workaround only.
264
+ * @example
265
+ * ```ts
266
+ * import { disableReactiveUtilsIntegration } from "@arcgis/lumina";
267
+ * class MyComponent extends LitElement {
268
+ * // ...
269
+ * }
270
+ * disableReactiveUtilsIntegration(MyComponent);
271
+ * ```
272
+ */
273
+ export declare function disableReactiveUtilsIntegration(componentClass: typeof LitElement): void;
255
274
  export {};
@@ -1,5 +1,5 @@
1
1
  import { LuminaPropertyDeclaration } from './controllers/types';
2
- export { state } from '@lit/reactive-element/decorators/state.js';
2
+ export { state } from 'lit/decorators/state.js';
3
3
  /**
4
4
  * A class field or accessor decorator which creates a reactive property that
5
5
  * reflects a corresponding attribute value. When a decorated property is set
@@ -1,4 +1,4 @@
1
- import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-B6Te7FRR.js";
1
+ import { n as noShadowRoot, P as ProxyComponent } from "./lazyLoad-BlK67lvm.js";
2
2
  import { camelToKebab } from "@arcgis/toolkit/string";
3
3
  function handleHmrUpdate(newModules) {
4
4
  newModules.forEach((newModule) => {
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { createEvent } from './createEvent';
3
3
  export { state, property, method } from './decorators';
4
4
  export type { DefineCustomElements, LazyLoadOptions, GlobalThisWithPuppeteerEnv } from './lazyLoad';
5
5
  export { makeDefineCustomElements } from './lazyLoad';
6
- export { LitElement } from './LitElement';
6
+ export { LitElement, disableReactiveUtilsIntegration } from './LitElement';
7
7
  export type { PublicLitElement } from './PublicLitElement';
8
8
  export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback } from './makeRuntime';
9
9
  export { makeRuntime } from './makeRuntime';
package/dist/index.js CHANGED
@@ -1,21 +1,20 @@
1
1
  import { G as GenericController, p as propertyTrackResolve } from "./Controller-ftAEcdmI.js";
2
2
  import { c } from "./Controller-ftAEcdmI.js";
3
- import { state } from "@lit/reactive-element/decorators/state.js";
4
- import { property as property$1 } from "@lit/reactive-element/decorators/property.js";
5
- import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-B6Te7FRR.js";
6
- import { d, m } from "./lazyLoad-B6Te7FRR.js";
3
+ import { state } from "lit/decorators/state.js";
4
+ import { property as property$1 } from "lit/decorators/property.js";
5
+ import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-BlK67lvm.js";
6
+ import { d, m } from "./lazyLoad-BlK67lvm.js";
7
7
  import { isEsriInternalEnv, safeCall, safeAsyncCall } from "@arcgis/toolkit/error";
8
8
  import { camelToKebab } from "@arcgis/toolkit/string";
9
9
  import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
10
- import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1 } from "lit";
10
+ import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1, render } from "lit";
11
11
  import { s as setAmbientComponent, c as controllerSymbol, a as shouldBypassReadOnly } from "./ControllerInternals-CWQrfEA8.js";
12
12
  import { propertyFlagAttribute, propertyFlagNoAccessor, propertyFlagReadOnly, propertyFlagState, propertyFlagBoolean, propertyFlagNumber, propertyFlagReflect } from "./config.js";
13
- import { classMap } from "lit-html/directives/class-map.js";
13
+ import { classMap } from "lit/directives/class-map.js";
14
14
  import { styleMap } from "lit/directives/style-map.js";
15
- import { directive as directive$1, Directive } from "lit-html/directive.js";
16
- import { live as live$1 } from "lit-html/directives/live.js";
15
+ import { directive as directive$1, Directive } from "lit/directive.js";
16
+ import { live as live$1 } from "lit/directives/live.js";
17
17
  import { ref } from "lit/directives/ref.js";
18
- import { nothing as nothing$2, noChange as noChange$2, render } from "lit-html";
19
18
  const property = property$1;
20
19
  const method = void 0;
21
20
  class ControllerManager extends GenericController {
@@ -518,6 +517,9 @@ class LitElement extends LitElement$1 {
518
517
  controller.controllerRemoved?.();
519
518
  }
520
519
  }
520
+ function disableReactiveUtilsIntegration(componentClass) {
521
+ componentClass.prototype["update"] = LitElement$1.prototype["update"];
522
+ }
521
523
  const makeRuntime = (options) => {
522
524
  let assetPath;
523
525
  const setAssetPath = (path) => {
@@ -606,8 +608,8 @@ class StabilizedRef extends Directive {
606
608
  const stabilizedRef = directive$1(StabilizedRef);
607
609
  const directive = directive$1;
608
610
  const live = live$1;
609
- const nothing = nothing$2;
610
- const noChange = noChange$2;
611
+ const nothing = nothing$1;
612
+ const noChange = noChange$1;
611
613
  function setAttribute(element, attributeName, value) {
612
614
  if (value == null) {
613
615
  element.removeAttribute(attributeName);
@@ -678,6 +680,7 @@ export {
678
680
  deferredLoaders,
679
681
  d as devOnly$getLitElementTagNameAndRuntime,
680
682
  directive,
683
+ disableReactiveUtilsIntegration,
681
684
  getReactWrapperOptions,
682
685
  live,
683
686
  m as makeDefineCustomElements,
@@ -1,5 +1,5 @@
1
- import { DirectiveResult } from 'lit-html/directive.js';
2
- import { Ref } from 'lit-html/directives/ref.js';
1
+ import { DirectiveResult } from 'lit/directive.js';
2
+ import { Ref } from 'lit/directives/ref.js';
3
3
  export type EventHandlerUnion<T, E extends Event> = (e: E & {
4
4
  currentTarget: T;
5
5
  target: Element;
@@ -1,10 +1,8 @@
1
1
  import { nil } from '@arcgis/toolkit/type';
2
2
  import { Properties as CssProperties } from 'csstype';
3
- import { ClassInfo } from 'lit-html/directives/class-map.js';
4
- import { DirectiveResult } from 'lit/directive.js';
5
- import { ClassMapDirective } from 'lit/directives/class-map.js';
3
+ import { ClassInfo, ClassMapDirective } from 'lit/directives/class-map.js';
4
+ import { DirectiveResult, DirectiveClass, ElementPart, PartInfo, Directive } from 'lit/directive.js';
6
5
  import { StyleMapDirective } from 'lit/directives/style-map.js';
7
- import { DirectiveClass, ElementPart, PartInfo, Directive } from 'lit-html/directive.js';
8
6
  import { noChange } from 'lit';
9
7
  import { CustomAttributes } from './baseTypes';
10
8
  import { RefDirective } from 'lit/directives/ref.js';
@@ -1,5 +1,5 @@
1
- import { TemplateResult } from 'lit-html';
2
- import { DirectiveResult } from 'lit-html/directive.js';
1
+ import { TemplateResult } from 'lit';
2
+ import { DirectiveResult } from 'lit/directive.js';
3
3
  import { HTMLElementTags, HTMLAttributes, GlobalEventHandlersCamelCase, SvgElementTags, DOMAttributes, AriaAttributes } from './generatedTypes';
4
4
  import { CustomAttributes } from './baseTypes';
5
5
  /**
@@ -18,10 +18,7 @@ function devOnlyDetectIncorrectLazyUsages(LitClass) {
18
18
  // Called by Lit - we proxy it to this.el in ProxyComponent
19
19
  "isConnected",
20
20
  // Called by Lit, but only in dev mode for warnings, so we don't have to proxy.
21
- "localName",
22
- // Called by Lit Context - we proxy it to this.el in ProxyComponent.
23
- // Interestingly, they never call removeEventListener.
24
- "addEventListener"
21
+ "localName"
25
22
  ]);
26
23
  const customErrorMessages = {
27
24
  addEventListener: "use this.listen() or this.el.addEventListener()"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.34.0-next.98",
3
+ "version": "5.0.0-next.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  ],
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "dependencies": {
25
- "@arcgis/toolkit": "4.34.0-next.98",
25
+ "@arcgis/toolkit": "~5.0.0-next.0",
26
26
  "csstype": "^3.1.3",
27
27
  "tslib": "^2.8.1"
28
28
  },