@arcgis/lumina-compiler 4.33.0-next.4 → 4.33.0-next.41

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.
@@ -48,6 +48,7 @@ export type JsxContext = {
48
48
  * not be converted to `keyed()` directives.
49
49
  */
50
50
  readonly liftedKeys: Set<ts.JsxAttributeName>;
51
+ readonly isInLightDomComponent: boolean;
51
52
  hasNonLuminaJsxImport: boolean;
52
53
  };
53
54
  /**
@@ -12,10 +12,76 @@ export declare const defaultNamespace = "cdn";
12
12
  * are assumed to be defined in the environment separately)
13
13
  */
14
14
  export declare function buildCdn(context: CompilerContext): Plugin | undefined;
15
- declare function transformAsyncCoreImports(code: string): string;
16
- declare function transformSyncCoreImports(code: string): string;
15
+ type Chunk = {
16
+ code: string;
17
+ isAsync: boolean | undefined;
18
+ };
19
+ /**
20
+ * Transform each core-importing chunk to use $arcgis.t for loading core in
21
+ * order to be both ESM and AMD CDN compatible.
22
+ *
23
+ * Previous solution
24
+ * (https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/2995) relied on
25
+ * top-level await. However, due to a Safari bug
26
+ * (see https://devtopia.esri.com/WebGIS/arcgis-web-components/issues/3933
27
+ * and https://bugs.webkit.org/show_bug.cgi?id=242740), we are no longer using
28
+ * top-level await.
29
+ *
30
+ * Instead, we insert a top-level await polyfill - a promise called $$ is
31
+ * exported by core-containing modules - such promise needs to be awaited by the
32
+ * consuming modules before the imported variables are available.
33
+ *
34
+ * List of other solutions considered:
35
+ * https://devtopia.esri.com/WebGIS/arcgis-web-components/discussions/3999
36
+ *
37
+ * @example
38
+ * ```js
39
+ * /// BEFORE
40
+ * import { b } from "./U7MU7PMX.js";
41
+ * import { when as M } from "@arcgis/core/core/reactiveUtils.js";
42
+ * var s = class extends v {
43
+ * // ...
44
+ * };
45
+ * export { s as ArcgisNavigationToggle };
46
+ *
47
+ * /// AFTER
48
+ * // $$ is a promise we need to await before imports from that module are available
49
+ * import { $$ as _0, b } from "./U7MU7PMX.js";
50
+ * var _1,
51
+ * $$ = $arcgis.t(
52
+ * ([{ when: M }]) => {
53
+ * // The "meat" of the file is kept unchanged by the transform
54
+ * // (we only touch the imports, and the very last export line)
55
+ * s = class extends v {
56
+ * // ...
57
+ * };
58
+ * // Assign exported variables to global scope variables
59
+ * _1 = s;
60
+ * },
61
+ * "core/reactiveUtils",
62
+ * _0,
63
+ * );
64
+ * // _1 will only be assigned once $$ resolves
65
+ * export { $$, _1 as ArcgisNavigationToggle };
66
+ * ```
67
+ */
68
+ declare function transformChunk(chunk: Chunk, chunks: Map<string, Chunk>): void;
69
+ /**
70
+ * @example Dynamic core import
71
+ * ```diff
72
+ * - import("core/Handles");
73
+ * + $arcgis.t(_=>_[0],"core/Handles")
74
+ * ```
75
+ *
76
+ * @example Dynamic import of a chunk with top-level await
77
+ * ```diff
78
+ * - import("./chunk.js");
79
+ * + import("./chunk.js").then(m=>m.$$.then(_=>m))
80
+ * ```
81
+ */
82
+ declare function transformDynamicCoreImports(code: string, chunks: Map<string, Chunk>): string;
17
83
  export declare const exportsForTests: {
18
- transformAsyncCoreImports: typeof transformAsyncCoreImports;
19
- transformSyncCoreImports: typeof transformSyncCoreImports;
84
+ transformDynamicCoreImports: typeof transformDynamicCoreImports;
85
+ transformChunk: typeof transformChunk;
20
86
  };
21
87
  export {};
@@ -164,19 +164,13 @@ export type SsrOptions = {
164
164
  };
165
165
  /**
166
166
  * Options for creating React 18 wrapper.
167
+ *
168
+ * Documentation: https://qawebgis.esri.com/components/lumina/build#build-wrappers
167
169
  */
168
170
  export type React18WrapperOptions = {
169
171
  readonly type: "react18";
170
172
  /**
171
173
  * The file path to the React 18 wrapper proxies file.
172
- *
173
- * Workflow:
174
- * 1. Copy this starter package into your project:
175
- * https://devtopia.esri.com/WebGIS/arcgis-web-components/tree/main/packages/starter-packages/lumina-components-react
176
- * 2. Adjust the starter as necessary (package.json, README.md, LICENSE, etc.)
177
- * 3. Set this option to the path to the src/components.ts file in the wrapper
178
- * package
179
- *
180
174
  * @example
181
175
  * "../lumina-components-react/src/components.ts"
182
176
  */
@@ -282,13 +276,13 @@ export type GenerateDocumentationOptions = {
282
276
  * This URL will be visible in VS Code and IntelliJ when hovering over a
283
277
  * component tag in an .html file
284
278
  */
285
- readonly getComponentDocsUrl?: (tag: string, name: string) => string;
279
+ readonly getComponentDocsUrl?: (tag: string, name: string) => string | undefined;
286
280
  /**
287
281
  * Provide a URL to a page that documents the component.
288
282
  * This URL will be visible in VS Code and IntelliJ when hovering over a
289
283
  * component tag in an .html file
290
284
  */
291
- readonly getComponentDemoUrl?: (tag: string, name: string) => string;
285
+ readonly getComponentDemoUrl?: (tag: string, name: string) => string | undefined;
292
286
  /**
293
287
  * Additional options for web component documentation for VS Code. This
294
288
  * documentation provides intellisense when editing .html and .css files.
@@ -1,4 +1,4 @@
1
- import"../chunk-JFKSI6I7.js";import{render as Q}from"lit-html";import{html as X,unsafeStatic as R}from"lit-html/static.js";import{camelToKebab as Le}from"@arcgis/components-utils";import{onTestFinished as xe}from"vitest";async function De(e,{parent:t=document.body,afterConnect:n,dynamicComponents:o,cleanupAfterTest:s=!0}={}){let r=document.createElement("div");r.style.display="contents",t.append(r),s&&xe(()=>Oe(r)),Z(e);let a=o?.some(Z),i;if(typeof e=="string")i=X`<${R(e)}></${R(e)}>`;else if(typeof e=="function")i="tagName"in e?X`<${R(e.tagName)}></${R(e.tagName)}>`:e();else{if(a)throw new Error('When rendering a dynamically created custom element using Lit\'s html`` function, you must ensure that the custom element class name is unique in the test file, or the class should explicitly have the `static override tagName = "some-tag-name";` property with a unique tag name within the test file');i=e}let l=[];function d(h){l.push(h.error),h.preventDefault(),h.stopPropagation()}if(window.addEventListener("error",d),Q(i,r),window.removeEventListener("error",d),l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Multiple errors occurred while creating the custom element");let c=ee(r),p=V,k=n?.(c);k?.then!==void 0&&await k;let _=c;typeof _?.componentOnReady=="function"&&await _.componentOnReady();let g=_?._litElement??p??c;return{el:c,component:g,async reRender(){return typeof e=="function"&&!("tagName"in e)&&Q(e(),t),g.requestUpdate(),await g.updateComplete}}}var V,ke=globalThis;ke.devOnly$luminaComponentRefCallback=e=>{V=e};function Oe(e){for(;e.firstChild;)e.removeChild(e.firstChild);e instanceof HTMLElement&&e.remove()}function Z(e){if(!Te(e)||e.runtime!==void 0)return!1;let t=!1,n=e.tagName;if(!n){t=!1;let o=Le((e.name.length>1?e.name.replaceAll(Ne,""):"")||"Test"),s=o==="test"?"te-st":o.includes("-")?o:`${o}-`;n=s;for(let r=2,a=customElements.get(n);a!==e&&a!==void 0;r+=1)t=!0,n=`${s}-${r}`,a=customElements.get(n)}return globalThis.devOnly$luminaRuntime?.customElement(n,e),Object.defineProperty(e.prototype,"tagName",{value:n.toUpperCase()}),t}var Te=e=>typeof e=="function"&&"lumina"in e,Ne=/\d+$/gu;function ee(e){for(let t of e.children)if("lumina"in t.constructor)return t;for(let t of e.children){let n=ee(t);if(n!=null)return n}return e.firstElementChild??V?.el}import Ue from"vitest-fail-on-console";import{expect as Pe}from"vitest";import Re from"js-beautify";function te(){Pe.addSnapshotSerializer({test(e){return typeof e=="object"&&e!==null&&"innerHTML"in e&&"onslotchange"in e},serialize(e){let t=e.innerHTML.replaceAll(Se,"");return Re.html(t,{indent_size:2,indent_char:" ",preserve_newlines:!1,wrap_line_length:70,indent_inner_html:!1,indent_empty_lines:!1})}})}var Se=/<!--\??(?:lit\$\d+\$)?-->/gu;function $e(){if(ne[oe])return;ne[oe]=!0;let e={...console};Ue({silenceMessage(t,n){return e[n](t),!1}}),te()}var oe=Symbol.for("lumina:didSetupTest"),ne=globalThis;import{isEsriInternalEnv as Me,isNotUndefined as je}from"@arcgis/components-utils";function re(e,t){if(t){let n=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(n,([o,s])=>s.noAccessor?void 0:[o,[(s.readOnly?2048:0)|(s.state?32:16)]]).filter(je))}else{let n=e.constructor,o=n.__registerControllers?.(e)??void 0;if(n.__registerControllers=void 0,typeof o!="object")throw new Error(process.env.NODE_ENV!=="production"&&Me()?"Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config.":"Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([s,[r]])=>(r&63)!==0))}}function se(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var W=(e,t)=>e.manager.internals.members?.[t]?.[0];import{isEsriInternalEnv as de}from"@arcgis/components-utils";import{isEsriInternalEnv as U}from"@arcgis/components-utils";import{Deferred as He,isEsriInternalEnv as P,safeAsyncCall as ie,safeCall as u}from"@arcgis/components-utils";import{safeCall as qe}from"@arcgis/components-utils";import{isEsriInternalEnv as Je,safeCall as Be}from"@arcgis/components-utils";import{safeCall as Ke}from"@arcgis/components-utils";import{isEsriInternalEnv as ze}from"@arcgis/components-utils";import{isEsriInternalEnv as St}from"@arcgis/components-utils";var $=Symbol.for("controller"),F="@arcgis/components-controllers",pe=e=>typeof e=="object"&&e!==null&&($ in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e),he=process.env.NODE_ENV!=="production"&&de()?(e,t)=>{let n=e.component.manager,o="_controllers"in n?n._controllers:void 0;if(o===void 0)return;let s=Array.from(o).indexOf(e);if(s===-1)return;let r=Symbol.for(`${F}: devOnlyControllerData`),a=e.component.el;a[r]??(a[r]={}),a[r][s]=t}:void 0,xt=process.env.NODE_ENV!=="production"&&de()?e=>{let t=e.component.manager,n="_controllers"in t?t._controllers:void 0;if(n===void 0)return;let o=Array.from(n).indexOf(e),s=Symbol.for(`${F}: devOnlyControllerData`);return e.component.el[s]?.[o]}:void 0,L;function E(e){L!==e&&(L=e,queueMicrotask(()=>{L===e&&(L=void 0)}))}function M(e){if(process.env.NODE_ENV!=="production"&&L===void 0)throw new Error([`Unable to find out which component ${e||"this"} controller `,`belongs to. Possible causes:
1
+ import"../chunk-JFKSI6I7.js";import{render as Q}from"lit-html";import{html as X,unsafeStatic as R}from"lit-html/static.js";import{camelToKebab as Le}from"@arcgis/components-utils";import{onTestFinished as xe}from"vitest";async function De(e,{parent:t=document.body,afterConnect:n,dynamicComponents:o,cleanupAfterTest:s=!0}={}){let r=document.createElement("div");r.style.display="contents",t.append(r),s&&xe(()=>Oe(r)),Z(e);let a=o?.some(Z),i;if(typeof e=="string")i=X`<${R(e)}></${R(e)}>`;else if(typeof e=="function")i="tagName"in e?X`<${R(e.tagName)}></${R(e.tagName)}>`:e();else{if(a)throw new Error('When rendering a dynamically created custom element using Lit\'s html`` function, you must ensure that the custom element class name is unique in the test file, or the class should explicitly have the `static override tagName = "some-tag-name";` property with a unique tag name within the test file');i=e}let l=[];function d(h){l.push(h.error),h.preventDefault(),h.stopPropagation()}if(window.addEventListener("error",d),Q(i,r),window.removeEventListener("error",d),l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Multiple errors occurred while creating the custom element");let c=ee(r),p=V,k=n?.(c);k?.then!==void 0&&await k;let _=c;typeof _?.componentOnReady=="function"&&await _.componentOnReady();let g=_?._litElement??p??c;return{el:c,component:g,async reRender(){return typeof e=="function"&&!("tagName"in e)&&Q(e(),t),g.requestUpdate(),await g.updateComplete}}}var V,ke=globalThis;ke.devOnly$luminaComponentRefCallback=e=>{V=e};function Oe(e){for(;e.firstChild;)e.removeChild(e.firstChild);e instanceof HTMLElement&&e.remove()}function Z(e){if(!Te(e)||e.runtime!==void 0)return!1;let t=!1,n=e.tagName;if(!n){t=!1;let o=Le((e.name.length>1?e.name.replaceAll(Ne,""):"")||"Test"),s=o==="test"?"te-st":o.includes("-")?o:`${o}-`;n=s;for(let r=2,a=customElements.get(n);a!==e&&a!==void 0;r+=1)t=!0,n=`${s}-${r}`,a=customElements.get(n)}return globalThis.devOnly$luminaRuntime?.customElement(n,e),Object.defineProperty(e.prototype,"tagName",{value:n.toUpperCase()}),t}var Te=e=>typeof e=="function"&&"lumina"in e,Ne=/\d+$/gu;function ee(e){for(let t of e.children)if("lumina"in t.constructor)return t;for(let t of e.children){let n=ee(t);if(n!=null)return n}return e.firstElementChild??V?.el}import Ue from"vitest-fail-on-console";import{expect as Pe}from"vitest";import Re from"js-beautify";function te(){Pe.addSnapshotSerializer({test(e){return typeof e=="object"&&e!==null&&"innerHTML"in e&&"onslotchange"in e},serialize(e){let t=e.innerHTML.replaceAll(Se,"");return Re.html(t,{indent_size:2,indent_char:" ",preserve_newlines:!1,wrap_line_length:70,indent_inner_html:!1,indent_empty_lines:!1})}})}var Se=/<!--\??(?:lit\$\d+\$)?-->/gu;function $e(){if(ne[oe])return;ne[oe]=!0;let e={...console};Ue({silenceMessage(t,n){return e[n](t),!1}}),te()}var oe=Symbol.for("lumina:didSetupTest"),ne=globalThis;import{isEsriInternalEnv as Me,isNotUndefined as je}from"@arcgis/components-utils";function re(e,t){if(t){let n=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(n,([o,s])=>s.noAccessor?void 0:[o,[(s.readOnly?2048:0)|(s.state?32:16)]]).filter(je))}else{let n=e.constructor,o=n.__registerControllers?.(e)??void 0;if(n.__registerControllers=void 0,typeof o!="object")throw new Error(process.env.NODE_ENV!=="production"&&Me()?"Failed to retrieve internal component meta. Make sure you have the useComponentsControllers() Rollup Plugin for Stencil Controllers configured in your Stencil config.":"Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(o).filter(([s,[r]])=>(r&63)!==0))}}function se(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:(t&4)!==0?e==="false"?!1:e===""||!!e:(t&2)!==0?Number.parseFloat(e):(t&1)!==0?String(e):e}var W=(e,t)=>e.manager.internals.members?.[t]?.[0];import{isEsriInternalEnv as de}from"@arcgis/components-utils";import{isEsriInternalEnv as U}from"@arcgis/components-utils";import{Deferred as He,isEsriInternalEnv as P,safeAsyncCall as ie,safeCall as u}from"@arcgis/components-utils";import{safeCall as qe}from"@arcgis/components-utils";import{isEsriInternalEnv as Je,safeCall as Be}from"@arcgis/components-utils";import{safeCall as Ke}from"@arcgis/components-utils";import{isEsriInternalEnv as ze}from"@arcgis/components-utils";import{isEsriInternalEnv as St}from"@arcgis/components-utils";var $=Symbol.for("controller"),F="@arcgis/components-controllers",pe=e=>typeof e=="object"&&e!==null&&($ in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e),he=process.env.NODE_ENV!=="production"&&de()?(e,t)=>{let n=e.component.manager,o="_controllers"in n?n._controllers:void 0;if(o===void 0)return;let s=Array.from(o).indexOf(e);if(s===-1)return;let r=Symbol.for(`${F}: devOnlyControllerData`),a=e.component.el;a[r]??(a[r]={}),a[r][s]=t}:void 0,xt=process.env.NODE_ENV!=="production"&&de()?e=>{let t=e.component.manager,n="_controllers"in t?t._controllers:void 0;if(n===void 0)return;let o=Array.from(n).indexOf(e),s=Symbol.for(`${F}: devOnlyControllerData`);return e.component.el[s]?.[o]}:void 0,L;function E(e){L!==e&&(L=e,queueMicrotask(()=>{L===e&&(L=void 0)}))}function M(e){if(process.env.NODE_ENV!=="production"&&L===void 0)throw new Error([`Unable to find out which component ${e||"this"} controller `,`belongs to. Possible causes:
2
2
  `,"- You might also have multiple versions of ",`@arcgis/components-controllers package installed
3
3
  `,...U()?["- You tried to create controller outside the component. If so, ","please wrap your controller definition in an arrow function (like","`const myController = ()=>makeController(...);`) and call that","function inside the component (`my = myController();`), or ","define your controller using makeGenericController/GenericController ",`instead.
4
4
  `,"- You tried to create a controller inside an async function. ","This is allowed without calling controller.use(). Make sure you ","use it like `await controller.use(useController())`."]:[]].join(""));return L}var v=[];function j(e){if(e===void 0){v=[];return}let t=v.indexOf(e);v=t===-1?[...v,e]:v.slice(0,t+1),queueMicrotask(()=>{v=[]})}function I(){return v}var x;function Ie(e){x!==e&&(x=e,queueMicrotask(()=>{x===e&&(x=void 0)}))}function Ae(){let e=x;return x=void 0,e}var Ve=async(e,t)=>{let n=q(e);if(n===void 0){if(process.env.NODE_ENV!=="production"&&U()&&typeof t=="function")throw new Error("Unable to resolve a controller from the provided value, so can't watch it's exports. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead");return e}if(await n.ready,typeof t=="function"){if(process.env.NODE_ENV!=="production"&&U()&&n.watchExports===void 0)throw new Error("The controller must implement watchExports method to support watching exports");let o=n.watchExports(s=>t(s,o))}return n.exports},We=async e=>{let t=q(e);if(process.env.NODE_ENV!=="production"&&U()&&t===void 0)throw new Error("Unable to resolve a controller from the provided value. The value you passed is not a controller and not a controller exports. If your controller exports a literal value, try making your controller export an object instead");return await t.ready,t},q=e=>{let n=M().manager.internals.resolveExports(e);if(n!==void 0)return n;if(pe(e))return e;let o=Ae();if(o!==void 0)return o},T={setter:!1,getter:!1,readOnly:!1},N=new WeakMap,ue;ue=$;var J=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new He,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[ue]=!0,this.ready=this._ready.promise,this._exports=le(this),this._exportWatchers=new Set;let t=Fe(e??M(new.target.name));process.env.NODE_ENV!=="production"?(Object.defineProperty(this,"component",{writable:!1,enumerable:!1,configurable:!0,value:t}),"hostDestroy"in this&&this.component.manager.ensureHasDestroy?.()):this.component=t,this.component.addController(this),this.component.manager===void 0||(j(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(u),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?le(e):e,this._exportWatchers.forEach(u)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return E(this.component),Ve}get useRef(){return E(this.component),We}get useRefSync(){return E(this.component),q}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){process.env.NODE_ENV!=="production"&&P()&&this.component.manager.ensureHasDestroy?.(),this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&u(e.hostConnected,e),this._callbacks.hostConnected.forEach(u),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&u(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(u),this._lifecycleCleanups.forEach(u),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await ie(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(ie)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&u(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(u),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&u(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(ae,e)}triggerUpdated(e){let t=this;t.hostUpdated&&u(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(ae,e)}triggerDestroy(){let e=this;e.hostDestroy&&u(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(u)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){E(this.component);let t=u(e);(Array.isArray(t)?t:[t]).forEach(o=>{typeof o=="function"?this._lifecycleCleanups.push(o):typeof o=="object"&&typeof o.remove=="function"&&this._lifecycleCleanups.push(o.remove)})}};function ae(e){u(e,void 0,this)}var me=J;function le(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(n,o,s){if(!(Ge.has(o)&&o in n&&n[o]===t)){if(o in n||o in Promise.prototype||typeof o=="symbol")return typeof n=="function"?n[o]:Reflect.get(n,o,s);if(process.env.NODE_ENV!=="production"&&P()){if(process.env.NODE_ENV==="test"&&(o.startsWith("$$")||o.startsWith("@@")||o==="nodeType"||o==="tagName"||o==="toJSON"||o==="hasAttribute"))return;console.error(`Trying to access "${o.toString()}" on the controller before it's loaded. ${ce}`)}}},set:(n,o,s,r)=>(process.env.NODE_ENV!=="production"&&P()&&console.error(`Trying to set "${o.toString()}" on the controller before it's loaded. ${ce}`),Reflect.set(n,o,s,r))});return t}var Ge=new Set(["exports","_exports"]),ce=process.env.NODE_ENV!=="production"&&P()?["This might be the case if you are trying to access an async controller in ","connectedCallback(). Or, if you are using it inside of ","componentWillLoad()/another controller without controller.use. Example correct ",`usage:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina-compiler",
3
- "version": "4.33.0-next.4",
3
+ "version": "4.33.0-next.41",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "license": "SEE LICENSE IN LICENSE.md",
20
20
  "dependencies": {
21
- "@arcgis/api-extractor": "4.33.0-next.4",
22
- "@arcgis/components-build-utils": "4.33.0-next.4",
23
- "@arcgis/components-utils": "4.33.0-next.4",
21
+ "@arcgis/api-extractor": "4.33.0-next.41",
22
+ "@arcgis/components-build-utils": "4.33.0-next.41",
23
+ "@arcgis/components-utils": "4.33.0-next.41",
24
24
  "chalk": "^5.3.0",
25
25
  "esbuild": "^0.24.0",
26
26
  "js-beautify": "^1.15.1",
@@ -36,6 +36,6 @@
36
36
  "vitest-fail-on-console": "^0.7.1"
37
37
  },
38
38
  "peerDependencies": {
39
- "@arcgis/lumina": "~4.33.0-next.4"
39
+ "@arcgis/lumina": "~4.33.0-next.41"
40
40
  }
41
41
  }