@arcgis/lumina 4.33.0-next.122 → 4.33.0-next.124

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.
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * An event emitter object
3
3
  */
4
- export type EventEmitter<T = undefined> = {
5
- emit(payload: T extends undefined ? void : T): CustomEvent<T>;
4
+ export type EventEmitter<T = void> = {
5
+ emit(payload: T): CustomEvent<T>;
6
6
  };
7
7
  /**
8
8
  * While these defaults don't match DOM defaults (all false), they match
@@ -32,7 +32,7 @@ export type EventOptions = {
32
32
  */
33
33
  composed?: boolean;
34
34
  };
35
- export declare const createEventFactory: <T = undefined>(eventName?: string, options?: EventOptions, component?: import('./LitElement').LitElement) => EventEmitter<T>;
35
+ export declare const createEventFactory: <T = void>(eventName?: string, options?: EventOptions, component?: import('./LitElement').LitElement) => EventEmitter<T>;
36
36
  /**
37
37
  * Creates an event emitter.
38
38
  * Events emitted by your component will be included in the documentation.
@@ -47,4 +47,4 @@ export declare const createEventFactory: <T = undefined>(eventName?: string, opt
47
47
  * ```
48
48
  *
49
49
  */
50
- export declare const createEvent: <T = undefined>(options?: EventOptions) => EventEmitter<T>;
50
+ export declare const createEvent: <T = void>(options?: EventOptions) => EventEmitter<T>;
@@ -1,4 +1,4 @@
1
- import { n as noShadowRoot, P as ProxyComponent } from "./utils-CwiifsrO.js";
1
+ import { n as noShadowRoot, P as ProxyComponent } from "./utils-BdB9g3GU.js";
2
2
  import { camelToKebab } from "@arcgis/components-utils";
3
3
  function handleHmrUpdate(newModules) {
4
4
  newModules.forEach((newModule) => {
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import { r as retrieveComponent, G as GenericController, k as keyTrackResolve, s
3
3
  import { d } from "./Controller-CZ8Djohh.js";
4
4
  import { state } from "@lit/reactive-element/decorators/state.js";
5
5
  import { property as property$1 } from "@lit/reactive-element/decorators/property.js";
6
- import { n as noShadowRoot, a as attachToAncestor } from "./utils-CwiifsrO.js";
7
- import { m } from "./utils-CwiifsrO.js";
6
+ import { n as noShadowRoot, a as attachToAncestor } from "./utils-BdB9g3GU.js";
7
+ import { m } from "./utils-BdB9g3GU.js";
8
8
  import { isEsriInternalEnv, safeCall, devToolsAwareTimeout, Deferred, camelToKebab, safeAsyncCall } from "@arcgis/components-utils";
9
9
  import { nothing as nothing$1, LitElement as LitElement$1, isServer, noChange as noChange$1 } from "lit";
10
10
  import { PropertyFlags } from "./config.js";
@@ -530,13 +530,6 @@ class LitElement extends LitElement$1 {
530
530
  controller.controllerRemoved?.();
531
531
  }
532
532
  }
533
- if (process.env.NODE_ENV !== "production" && isEsriInternalEnv()) {
534
- const globalWithLit = globalThis;
535
- globalWithLit.litIssuedWarnings ??= /* @__PURE__ */ new Set();
536
- globalWithLit.litIssuedWarnings.add(
537
- "Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-create-property for more information."
538
- );
539
- }
540
533
  function makeRuntime(options) {
541
534
  let assetPath;
542
535
  const setAssetPath = (path) => {
@@ -80,6 +80,17 @@ function attachToAncestor(child) {
80
80
  }
81
81
  return false;
82
82
  }
83
+ if (process.env.NODE_ENV !== "production") {
84
+ const litGlobalThis = globalThis;
85
+ litGlobalThis.litIssuedWarnings ??= /* @__PURE__ */ new Set();
86
+ litGlobalThis.litIssuedWarnings.add("dev-mode");
87
+ litGlobalThis.litIssuedWarnings.add(
88
+ "Overriding ReactiveElement.createProperty() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-create-property for more information."
89
+ );
90
+ litGlobalThis.litIssuedWarnings.add(
91
+ "Overriding ReactiveElement.getPropertyDescriptor() is deprecated. The override will not be called with standard decorators See https://lit.dev/msg/no-override-get-property-descriptor for more information."
92
+ );
93
+ }
83
94
  const makeDefineCustomElements = (runtime, structure) => function defineCustomElements(windowOrOptions, options) {
84
95
  if (!globalThis.customElements) {
85
96
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.33.0-next.122",
3
+ "version": "4.33.0-next.124",
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/components-utils": "4.33.0-next.122",
25
+ "@arcgis/components-utils": "4.33.0-next.124",
26
26
  "@lit-labs/ssr": "^3.2.2",
27
27
  "@lit-labs/ssr-client": "^1.1.7",
28
28
  "@lit/context": "^1.1.5",