@arcgis/lumina 5.0.0-next.65 → 5.0.0-next.68

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,10 +1,10 @@
1
1
  import { CSSResultGroup, CSSResultOrNative, PropertyValues, ReactiveController, LitElement as OriginalLitElement } from 'lit';
2
- import { Runtime } from './makeRuntime';
3
- import { ProxyComponent } from './lazyLoad';
4
- import { ToElement } from './jsx/types';
5
- import { BaseController, LuminaPropertyDeclaration } from './controllers/types';
6
- import { ControllerManager } from './controllers/ControllerManager';
7
- import { Controller } from './controllers/Controller';
2
+ import { Runtime } from './makeRuntime.ts';
3
+ import { ProxyComponent } from './lazyLoad.ts';
4
+ import { ToElement } from './jsx/types.ts';
5
+ import { BaseController, LuminaPropertyDeclaration } from './controllers/types.ts';
6
+ import { ControllerManager } from './controllers/ControllerManager.ts';
7
+ import { Controller } from './controllers/Controller.ts';
8
8
  type ComponentLifecycle = {
9
9
  connectedCallback?: () => void;
10
10
  disconnectedCallback?: () => void;
@@ -1,8 +1,8 @@
1
1
  import { Deferred } from '@arcgis/toolkit/promise';
2
- import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types';
3
- import { use, useRef, useRefSync } from './ControllerInternals';
2
+ import { BaseController, ControllerLifecycleMethods, controllerSymbol } from './types.ts';
3
+ import { use, useRef, useRefSync } from './ControllerInternals.ts';
4
4
  import { PropertyValues } from 'lit';
5
- import { LitElement } from '../LitElement';
5
+ import { LitElement } from '../LitElement.ts';
6
6
  /**
7
7
  * Base class for Controllers defined using a class rather than a function.
8
8
  * Defining controller using makeController() function is more succinct for smaller
@@ -1,6 +1,6 @@
1
- import { Controller } from './Controller';
2
- import { BaseController } from './types';
3
- import { LitElement } from '../LitElement';
1
+ import { Controller } from './Controller.ts';
2
+ import { BaseController } from './types.ts';
3
+ import { LitElement } from '../LitElement.ts';
4
4
  export declare const setAmbientComponent: (component: LitElement) => void;
5
5
  export declare const retrieveComponent: (name?: string) => LitElement;
6
6
  export declare const setParentController: (controller: BaseController | undefined) => void;
@@ -1,7 +1,7 @@
1
- import { BaseController } from './types';
2
- import { GenericController } from './Controller';
1
+ import { BaseController } from './types.ts';
2
+ import { GenericController } from './Controller.ts';
3
3
  import { PropertyValues } from 'lit';
4
- import { LitElement } from '../LitElement';
4
+ import { LitElement } from '../LitElement.ts';
5
5
  /**
6
6
  * A manager for all other controllers. It finds all controllers on the
7
7
  * component, loads them, and forwards lifecycle events to them.
@@ -1,4 +1,4 @@
1
- export { reEmitEvent } from './reEmitEvent';
2
- export { makeAccessorController, AccessorController, reCreateAccessor, makeBinderProxy, getAccessorControllerBoundProperties, } from './useAccessor';
3
- export { createStore, createLegacyStore } from './store';
4
- export type { ObservableMap } from './store';
1
+ export { reEmitEvent } from './reEmitEvent.ts';
2
+ export { makeAccessorController, AccessorController, reCreateAccessor, makeBinderProxy, getAccessorControllerBoundProperties, } from './useAccessor.ts';
3
+ export { createStore, createLegacyStore } from './store.ts';
4
+ export type { ObservableMap } from './store.ts';
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '../../createEvent';
1
+ import { EventEmitter } from '../../createEvent.ts';
2
2
  /**
3
3
  * Re-emit an event from the accessor instance on the component
4
4
  *
@@ -1,5 +1,5 @@
1
- import { GenericController } from '../Controller';
2
- import { LitElement } from '../../LitElement';
1
+ import { GenericController } from '../Controller.ts';
2
+ import { LitElement } from '../../LitElement.ts';
3
3
  type Requires<Props, Accessor extends __esri.Accessor, OmitProps extends string = never> = LitElement & Omit<Pick<Accessor, keyof Accessor & keyof Props>, AlwaysOmit | OmitProps> & {
4
4
  autoDestroyDisabled: boolean;
5
5
  destroy: () => Promise<void>;
@@ -1,5 +1,5 @@
1
- import { LitElement } from '../LitElement';
2
- import { GenericControllerType, Controller } from './Controller';
1
+ import { LitElement } from '../LitElement.ts';
2
+ import { GenericControllerType, Controller } from './Controller.ts';
3
3
  /**
4
4
  * Controller is a function that takes a component instance and then can
5
5
  * export some values to the component, or hook into component's lifecycle
@@ -1,23 +1,23 @@
1
- import { EventEmitter as _EventEmitter } from '../createEvent';
2
- export type { GenericControllerType } from './Controller';
3
- export { Controller, GenericController } from './Controller';
4
- export type { ControllerManager } from './ControllerManager';
5
- export { retrieveComponent, bypassSetter, bypassReadOnly } from './ControllerInternals';
6
- export { trackPropertyKey, propertyTrackResolve } from './trackPropertyKey';
7
- export { trackPropKey } from './trackPropKey';
8
- export { trackKey } from './trackKey';
9
- export { makeController, makeGenericController } from './functional';
10
- export { useWatchAttributes } from './useWatchAttributes';
11
- export { load } from './load';
12
- export { proxyExports } from './proxyExports';
13
- export { toFunction } from './toFunction';
14
- export * from './types';
15
- export { useMedia } from './useMedia';
16
- export { useDirection } from './useDirection';
17
- export type { UseT9n, T9nMeta } from './useT9n';
18
- export { makeT9nController } from './useT9n';
19
- export { usePropertyChange } from './usePropertyChange';
20
- export { isController, getControllersCount } from './utils';
1
+ import { EventEmitter as _EventEmitter } from '../createEvent.ts';
2
+ export type { GenericControllerType } from './Controller.ts';
3
+ export { Controller, GenericController } from './Controller.ts';
4
+ export type { ControllerManager } from './ControllerManager.ts';
5
+ export { retrieveComponent, bypassSetter, bypassReadOnly } from './ControllerInternals.ts';
6
+ export { trackPropertyKey, propertyTrackResolve } from './trackPropertyKey.ts';
7
+ export { trackPropKey } from './trackPropKey.ts';
8
+ export { trackKey } from './trackKey.ts';
9
+ export { makeController, makeGenericController } from './functional.ts';
10
+ export { useWatchAttributes } from './useWatchAttributes.ts';
11
+ export { load } from './load.ts';
12
+ export { proxyExports } from './proxyExports.ts';
13
+ export { toFunction } from './toFunction.ts';
14
+ export * from './types.ts';
15
+ export { useMedia } from './useMedia.ts';
16
+ export { useDirection } from './useDirection.ts';
17
+ export type { UseT9n, T9nMeta } from './useT9n.ts';
18
+ export { makeT9nController } from './useT9n.ts';
19
+ export { usePropertyChange } from './usePropertyChange.ts';
20
+ export { isController, getControllersCount } from './utils.ts';
21
21
  /**
22
22
  * @deprecated import from "@arcgis/lumina" instead
23
23
  */
@@ -1,5 +1,5 @@
1
- import { Controller } from './Controller';
2
- import { ControllerLifecycleMethods } from './types';
1
+ import { Controller } from './Controller.ts';
2
+ import { ControllerLifecycleMethods } from './types.ts';
3
3
  /**
4
4
  * If you wish to directly expose the "exports" property of your controller,
5
5
  * rather than the entire controller class, wrap your class definition in
@@ -1,5 +1,5 @@
1
- import { LitElement } from '../LitElement';
2
- import { BaseController, TrackKeyResolution } from './types';
1
+ import { LitElement } from '../LitElement.ts';
2
+ import { BaseController, TrackKeyResolution } from './types.ts';
3
3
  /**
4
4
  * A combination of trackPropertyKey() and trackPropKey(). For usage when
5
5
  * you want to track a property, but don't know if it will be defined with the
@@ -1,4 +1,4 @@
1
- import { LitElement } from '../LitElement';
1
+ import { LitElement } from '../LitElement.ts';
2
2
  /**
3
3
  * Like trackPropertyKey(), but for props that have \@state() or \@property()
4
4
  * decorator
@@ -1,5 +1,5 @@
1
- import { LitElement } from '../LitElement';
2
- import { BaseController } from './types';
1
+ import { LitElement } from '../LitElement.ts';
2
+ import { BaseController } from './types.ts';
3
3
  /**
4
4
  * A magical solution to finding out what property name a given controller
5
5
  * on a given object was assigned to.
@@ -1,6 +1,6 @@
1
1
  import { IHandle } from '@arcgis/toolkit/type';
2
2
  import { ReactiveControllerHost, ReactiveController, PropertyDeclaration, PropertyValues } from 'lit';
3
- import { LitElement } from '../LitElement';
3
+ import { LitElement } from '../LitElement.ts';
4
4
  export type TrackKeyResolution = {
5
5
  readonly key: string;
6
6
  readonly host: BaseController | LitElement;
@@ -1,5 +1,5 @@
1
- import { EventEmitter } from '../createEvent';
2
- import { LitElement } from '../LitElement';
1
+ import { EventEmitter } from '../createEvent.ts';
2
+ import { LitElement } from '../LitElement.ts';
3
3
  type PropertyChangeController<Component extends LitElement> = <ToWatch extends keyof Component>(...toWatch: ToWatch[]) => EventEmitter<{
4
4
  name: ToWatch & string;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { Controller } from './Controller';
1
+ import { Controller } from './Controller.ts';
2
2
  /**
3
3
  * Watch when given attributes change on the component element.
4
4
  *
@@ -1,5 +1,5 @@
1
- import { LitElement } from '../LitElement';
2
- import { ControllerLifecycleMethods } from './types';
1
+ import { LitElement } from '../LitElement.ts';
2
+ import { ControllerLifecycleMethods } from './types.ts';
3
3
  export declare const isController: (value: unknown) => value is ControllerLifecycleMethods;
4
4
  /**
5
5
  * Checks if the argument is a promise by checking if it has a `then` method.
@@ -32,7 +32,7 @@ export type EventOptions = {
32
32
  */
33
33
  composed?: boolean;
34
34
  };
35
- export declare const createEventFactory: <T = void>(eventName?: string, options?: EventOptions, component?: import('./LitElement').LitElement) => EventEmitter<T>;
35
+ export declare const createEventFactory: <T = void>(eventName?: string, options?: EventOptions, component?: import('./LitElement.ts').LitElement) => EventEmitter<T>;
36
36
  /**
37
37
  * Creates an event emitter.
38
38
  * Events emitted by your component will be included in the documentation.
@@ -1,4 +1,4 @@
1
- import { LuminaPropertyDeclaration } from './controllers/types';
1
+ import { LuminaPropertyDeclaration } from './controllers/types.ts';
2
2
  export { state } from 'lit/decorators/state.js';
3
3
  /**
4
4
  * A class field or accessor decorator which creates a reactive property that
@@ -1,4 +1,4 @@
1
- import { LitElement } from './LitElement';
1
+ import { LitElement } from './LitElement.ts';
2
2
  /**
3
3
  * When in lazy-build, the actual Lit element is never attached to the DOM.
4
4
  * Instead, a proxy element is present and should be used for all DOM actions.
package/dist/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- export type { EventEmitter, EventOptions } from './createEvent';
2
- export { createEvent } from './createEvent';
3
- export { state, property, method } from './decorators';
4
- export type { DefineCustomElements, LazyLoadOptions, GlobalThisWithPuppeteerEnv } from './lazyLoad';
5
- export { makeDefineCustomElements } from './lazyLoad';
6
- export { LitElement, disableReactiveUtilsIntegration } from './LitElement';
7
- export type { PublicLitElement } from './PublicLitElement';
8
- export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback } from './makeRuntime';
9
- export { makeRuntime } from './makeRuntime';
10
- export type { EventHandler } from './jsx/baseTypes';
11
- export * from './jsx/types';
12
- export { safeClassMap, safeStyleMap, deferLoad, deferredLoaders, stabilizedRef, directive, live, } from './jsx/directives';
13
- export { nothing, noChange, setAttribute, stringOrBoolean } from './jsx/utils';
14
- export { noShadowRoot, devOnly$getLitElementTagNameAndRuntime } from './utils';
15
- export { makeReactWrapperFactory, getReactWrapperOptions } from './wrappersUtils';
16
- export { renderElement } from './render';
1
+ export type { EventEmitter, EventOptions } from './createEvent.ts';
2
+ export { createEvent } from './createEvent.ts';
3
+ export { state, property, method } from './decorators.ts';
4
+ export type { DefineCustomElements, LazyLoadOptions, GlobalThisWithPuppeteerEnv } from './lazyLoad.ts';
5
+ export { makeDefineCustomElements } from './lazyLoad.ts';
6
+ export { LitElement, disableReactiveUtilsIntegration } from './LitElement.ts';
7
+ export type { PublicLitElement } from './PublicLitElement.ts';
8
+ export type { Runtime, RuntimeOptions, DevOnlyGlobalRuntime, DevOnlyGlobalComponentRefCallback, } from './makeRuntime.ts';
9
+ export { makeRuntime } from './makeRuntime.ts';
10
+ export type { EventHandler } from './jsx/baseTypes.ts';
11
+ export * from './jsx/types.ts';
12
+ export { safeClassMap, safeStyleMap, deferLoad, deferredLoaders, stabilizedRef, directive, live, } from './jsx/directives.ts';
13
+ export { nothing, noChange, setAttribute, stringOrBoolean } from './jsx/utils.ts';
14
+ export { noShadowRoot, devOnly$getLitElementTagNameAndRuntime } from './utils.ts';
15
+ export { makeReactWrapperFactory, getReactWrapperOptions } from './wrappersUtils.ts';
16
+ export { renderElement } from './render.ts';
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { state } from "lit/decorators/state.js";
4
4
  import { property as property$1 } from "lit/decorators/property.js";
5
5
  import { e as emptyFunction, n as noShadowRoot, a as attachToAncestor } from "./lazyLoad-BlK67lvm.js";
6
6
  import { d, m } from "./lazyLoad-BlK67lvm.js";
7
- import { isEsriInternalEnv, safeCall, safeAsyncCall } from "@arcgis/toolkit/error";
7
+ import { safeCall, isEsriInternalEnv, safeAsyncCall } from "@arcgis/toolkit/error";
8
8
  import { camelToKebab } from "@arcgis/toolkit/string";
9
9
  import { devToolsAwareTimeout, Deferred } from "@arcgis/toolkit/promise";
10
10
  import { nothing as nothing$1, LitElement as LitElement$1, isServer, notEqual, noChange as noChange$1, render } from "lit";
@@ -4,7 +4,7 @@ import { ClassInfo, ClassMapDirective } from 'lit/directives/class-map.js';
4
4
  import { DirectiveResult, DirectiveClass, ElementPart, PartInfo, Directive } from 'lit/directive.js';
5
5
  import { StyleMapDirective } from 'lit/directives/style-map.js';
6
6
  import { noChange } from 'lit';
7
- import { CustomAttributes } from './baseTypes';
7
+ import { CustomAttributes } from './baseTypes.ts';
8
8
  import { RefDirective } from 'lit/directives/ref.js';
9
9
  /**
10
10
  * You likely won't have to import this directly. It will be added during
@@ -1,8 +1,8 @@
1
1
  import { DirectiveResult } from 'lit/directive.js';
2
2
  import { ClassInfo, ClassMapDirective } from 'lit/directives/class-map.js';
3
3
  import { StyleMapDirective } from 'lit/directives/style-map.js';
4
- import { ChangeEventHandlerUnion, CustomAttributes, EventHandlerUnion, FocusEventHandlerUnion, InputEventHandlerUnion } from './baseTypes';
5
- import { JsxNode } from './types';
4
+ import { ChangeEventHandlerUnion, CustomAttributes, EventHandlerUnion, FocusEventHandlerUnion, InputEventHandlerUnion } from './baseTypes.ts';
5
+ import { JsxNode } from './types.ts';
6
6
  import { Properties as CssProperties } from 'csstype';
7
7
  /**
8
8
  * Some attributes accepts numbers as a number or as a string, while also
@@ -1,7 +1,7 @@
1
1
  import { TemplateResult } from 'lit';
2
2
  import { DirectiveResult } from 'lit/directive.js';
3
- import { HTMLElementTags, HTMLAttributes, GlobalEventHandlersCamelCase, SvgElementTags, DOMAttributes, AriaAttributes } from './generatedTypes';
4
- import { CustomAttributes } from './baseTypes';
3
+ import { HTMLElementTags, HTMLAttributes, GlobalEventHandlersCamelCase, SvgElementTags, DOMAttributes, AriaAttributes } from './generatedTypes.ts';
4
+ import { CustomAttributes } from './baseTypes.ts';
5
5
  /**
6
6
  * The "h" namespace is used to import JSX types for elements and attributes.
7
7
  * It is imported in order to avoid conflicting global JSX issues.
@@ -1,7 +1,7 @@
1
1
  import { Deferred } from '@arcgis/toolkit/promise';
2
- import { LitElement } from './LitElement';
3
- import { Runtime } from './makeRuntime';
4
- import { ControllerManager } from './controllers/ControllerManager';
2
+ import { LitElement } from './LitElement.ts';
3
+ import { Runtime } from './makeRuntime.ts';
4
+ import { ControllerManager } from './controllers/ControllerManager.ts';
5
5
  /**
6
6
  * Defines lazy-loading proxy components for all web components in this package.
7
7
  *
@@ -1,4 +1,4 @@
1
- import { ProxyComponent } from './lazyLoad';
1
+ import { ProxyComponent } from './lazyLoad.ts';
2
2
  /**
3
3
  * If there is a parent component, tell it to await it's loaded() until we
4
4
  * completed load().
@@ -1,6 +1,6 @@
1
1
  import { CSSResult } from 'lit';
2
- import { LitElement } from './LitElement';
3
- import { AccessorObservableLike, ReactiveTrackingTarget } from './controllers/types';
2
+ import { LitElement } from './LitElement.ts';
3
+ import { AccessorObservableLike, ReactiveTrackingTarget } from './controllers/types.ts';
4
4
  /**
5
5
  * `@arcgis/lumina` package may be bundled once but used by multiple packages with
6
6
  * different configuration options. For that reason, the configuration options
package/dist/render.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JsxNode } from './jsx/types';
1
+ import { JsxNode } from './jsx/types.ts';
2
2
  /**
3
3
  * Retrieve an HTML element to be manually appended to an existing component.
4
4
  *
package/dist/runtime.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export declare const runtime: import('./makeRuntime').Runtime;
1
+ export declare const runtime: import('./makeRuntime.ts').Runtime;
2
2
  /**
3
3
  * "customElement" needs to be exported - it will be used by the build system.
4
4
  * You should not call it directly.
5
5
  */
6
- export declare const customElement: (tagName: string, component: typeof import('./LitElement').LitElement) => void;
6
+ export declare const customElement: (tagName: string, component: typeof import('./LitElement.ts').LitElement) => void;
@@ -33,7 +33,7 @@ export interface DeclareElements extends globalThis.DeclareElements {
33
33
  * global typings with this interface - thus we use namespace merging to
34
34
  * extend the namespaced DeclareElements based on the global DeclareElements.
35
35
  */
36
- declare module "../jsx/types" {
36
+ declare module "../jsx/types.ts" {
37
37
  interface DeclareElements extends globalThis.DeclareElements {
38
38
  }
39
39
  }
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { LitElement } from './LitElement';
2
- import { Runtime } from './makeRuntime';
1
+ import { LitElement } from './LitElement.ts';
2
+ import { Runtime } from './makeRuntime.ts';
3
3
  /**
4
4
  * Add this static property to your component to disable shadow root.
5
5
  *
@@ -12,16 +12,21 @@ import { Runtime } from './makeRuntime';
12
12
  * ```ts
13
13
  * static override shadowRootOptions = noShadowRoot;
14
14
  * ```
15
- */
16
- export declare const noShadowRoot: ShadowRootInit;
17
- /**
18
- * The above property is an empty object at runtime for bundle size reasons.
15
+ *
16
+ * @privateRemarks
17
+ * This property is an empty object at runtime for bundle size reasons.
19
18
  * While empty object is not a valid shadowRootOption, it is never passed to
20
19
  * attachShadow() since we use this exact empty object as a magic value to opt
21
20
  * out of shadow root.
22
21
  */
22
+ export declare const noShadowRoot: ShadowRootInit;
23
23
  export declare function emptyFunction(): undefined;
24
- /** @private */
24
+ /**
25
+ * Exposed as a dev-only util for use by Lumina's mount() test helper. We need
26
+ * to expose a wrapper util because private properties are mangled and so cannot
27
+ * be reliably accessed outside the package.
28
+ * @private
29
+ */
25
30
  export declare const devOnly$getLitElementTagNameAndRuntime: ((componentClass: typeof LitElement) => {
26
31
  tagName: string;
27
32
  runtime: Runtime;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "5.0.0-next.65",
3
+ "version": "5.0.0-next.68",
4
+ "sideEffects": false,
4
5
  "type": "module",
5
6
  "main": "dist/index.cjs",
6
7
  "module": "dist/index.js",
@@ -22,7 +23,7 @@
22
23
  ],
23
24
  "license": "SEE LICENSE IN LICENSE.md",
24
25
  "dependencies": {
25
- "@arcgis/toolkit": "~5.0.0-next.65",
26
+ "@arcgis/toolkit": "~5.0.0-next.68",
26
27
  "csstype": "^3.1.3",
27
28
  "tslib": "^2.8.1"
28
29
  },