@arcgis/lumina 4.34.0-next.105 → 4.34.0-next.107
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/dist/LitElement.d.ts +19 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/dist/LitElement.d.ts
CHANGED
|
@@ -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 {};
|
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
|
@@ -518,6 +518,9 @@ class LitElement extends LitElement$1 {
|
|
|
518
518
|
controller.controllerRemoved?.();
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
|
+
function disableReactiveUtilsIntegration(componentClass) {
|
|
522
|
+
componentClass.prototype["update"] = LitElement$1.prototype["update"];
|
|
523
|
+
}
|
|
521
524
|
const makeRuntime = (options) => {
|
|
522
525
|
let assetPath;
|
|
523
526
|
const setAssetPath = (path) => {
|
|
@@ -678,6 +681,7 @@ export {
|
|
|
678
681
|
deferredLoaders,
|
|
679
682
|
d as devOnly$getLitElementTagNameAndRuntime,
|
|
680
683
|
directive,
|
|
684
|
+
disableReactiveUtilsIntegration,
|
|
681
685
|
getReactWrapperOptions,
|
|
682
686
|
live,
|
|
683
687
|
m as makeDefineCustomElements,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.107",
|
|
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.
|
|
25
|
+
"@arcgis/toolkit": "4.34.0-next.107",
|
|
26
26
|
"csstype": "^3.1.3",
|
|
27
27
|
"tslib": "^2.8.1"
|
|
28
28
|
},
|