@arcgis/lumina 4.32.0-next.5 → 4.32.0-next.51
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 +11 -0
- package/dist/PublicLitElement.d.ts +1 -0
- package/dist/{chunk-CH52Q2MB.js → chunk-PGHUBTOM.js} +0 -6
- package/dist/chunk-X3ERWBSX.js +427 -0
- package/dist/config.d.ts +0 -8
- package/dist/config.js +1 -7
- package/dist/context.d.ts +26 -0
- package/dist/createEvent.d.ts +7 -2
- package/dist/hmrSupport.d.ts +5 -0
- package/dist/hmrSupport.js +127 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +96 -530
- package/dist/jsx/directives.d.ts +4 -0
- package/dist/jsx/jsx.d.ts +65 -14
- package/dist/lazyLoad.d.ts +16 -2
- package/dist/runtime.d.ts +7 -3
- package/dist/stencilSsrCompatibility/index.d.ts +0 -1
- package/dist/typings/index.d.ts +4 -4
- package/dist/typings/jsxGlobals.d.ts +17 -19
- package/dist/wrappersUtils.d.ts +31 -7
- package/dist/wrappersUtils.test.d.ts +1 -0
- package/package.json +7 -24
package/dist/jsx/directives.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ import type { DirectiveClass } from "lit-html/directive.js";
|
|
|
26
26
|
* Instead, if the prop value is a object definition, variable reference,
|
|
27
27
|
* ternary expression or etc, the `safeClassMap` will be called, which will
|
|
28
28
|
* determine at runtime if directive should be called
|
|
29
|
+
*
|
|
30
|
+
* @private
|
|
29
31
|
*/
|
|
30
32
|
export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => DirectiveResult<typeof ClassMapDirective> | Nil | string;
|
|
31
33
|
/**
|
|
@@ -49,6 +51,8 @@ export declare const safeClassMap: (parameters: ClassInfo | Nil | string) => Dir
|
|
|
49
51
|
* Instead, if the prop value is a object definition, variable reference,
|
|
50
52
|
* ternary expression or etc, the `safeStyleMap` will be called, which will
|
|
51
53
|
* determine at runtime if directive should be called
|
|
54
|
+
*
|
|
55
|
+
* @private
|
|
52
56
|
*/
|
|
53
57
|
export declare const safeStyleMap: (parameters: CssProperties | Nil | string) => DirectiveResult<typeof StyleMapDirective> | Nil | string;
|
|
54
58
|
/**
|
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* /// <reference types="@arcgis/lumina/typings" />
|
|
7
7
|
* ```
|
|
8
8
|
*/
|
|
9
|
-
/// <reference path="../typings/jsxGlobals.d.ts" />
|
|
10
9
|
import type { Properties as CssProperties } from "csstype";
|
|
11
10
|
import type { TemplateResult } from "lit-html";
|
|
12
11
|
import type { DirectiveResult } from "lit-html/directive.js";
|
|
@@ -28,13 +27,13 @@ export declare const Fragment: (props: {
|
|
|
28
27
|
children?: JsxNode;
|
|
29
28
|
}) => TemplateResult;
|
|
30
29
|
/**
|
|
31
|
-
* @
|
|
30
|
+
* @private
|
|
32
31
|
* The references to this function are removed at build time. You do not need
|
|
33
32
|
* to import it directly
|
|
34
33
|
*/
|
|
35
34
|
export declare function jsx(type: string, props: unknown, key?: unknown): JsxNode;
|
|
36
35
|
/**
|
|
37
|
-
* @
|
|
36
|
+
* @private
|
|
38
37
|
* The references to this function are removed at build time. You do not need
|
|
39
38
|
* to import it directly
|
|
40
39
|
*/
|
|
@@ -201,6 +200,26 @@ export type ToElement<Component> = Omit<Component, LuminaJsx.ExcludedProperties>
|
|
|
201
200
|
export type ToJsx<Component extends {
|
|
202
201
|
el: unknown;
|
|
203
202
|
}> = LuminaJsx.HTMLAttributes<Component["el"]> & LuminaJsx.RemapEvents<Component> & Partial<Omit<Component, LuminaJsx.ExcludedProperties | keyof HTMLElement | keyof LuminaJsx.RemapEvents<Component>>>;
|
|
203
|
+
/**
|
|
204
|
+
* This interface will be automatically extended in src/lumina.ts files to add
|
|
205
|
+
* typings for Stencil elements usages in Lumina. You do not need to manually
|
|
206
|
+
* extend this interface.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* ```ts
|
|
210
|
+
* import type { JSX as CalciteJSX } from "@esri/calcite-components/dist/types/components";
|
|
211
|
+
* import type { JSX as CommonComponentsJsx } from "@arcgis/common-components/dist/types/components";
|
|
212
|
+
*
|
|
213
|
+
* declare module "@arcgis/lumina" {
|
|
214
|
+
* interface ImportStencilElements
|
|
215
|
+
* extends CalciteJSX.IntrinsicElements,
|
|
216
|
+
* CommonComponentsJsx.IntrinsicElements {
|
|
217
|
+
* }
|
|
218
|
+
* }
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
export interface ImportStencilElements {
|
|
222
|
+
}
|
|
204
223
|
/**
|
|
205
224
|
* Get the type of all events for a given component. Includes native DOM events
|
|
206
225
|
* and custom events.
|
|
@@ -208,15 +227,21 @@ export type ToJsx<Component extends {
|
|
|
208
227
|
* @example
|
|
209
228
|
* ```tsx
|
|
210
229
|
* render() {
|
|
211
|
-
* return <arcgis-
|
|
230
|
+
* return <arcgis-map onArcgisViewClick={this._handleViewClick} />
|
|
212
231
|
* }
|
|
213
|
-
*
|
|
232
|
+
* _handleViewClick(event: ToEvents<HTMLArcgisMapElement>["arcgisViewClick"]) {
|
|
214
233
|
* // event.detail
|
|
215
234
|
* // event.currentTarget
|
|
216
235
|
* }
|
|
217
236
|
* ```
|
|
218
237
|
*
|
|
219
238
|
* @remarks
|
|
239
|
+
* This helper is intended to be used on components defined within the same
|
|
240
|
+
* package. For external components, you can use
|
|
241
|
+
* `HTMLArcgisMapElement["arcgisViewClick"]` directly, without need for
|
|
242
|
+
* `ToEvents<>`.
|
|
243
|
+
*
|
|
244
|
+
* @remarks
|
|
220
245
|
* Alternative implementation of this type that is simpler, and potentially
|
|
221
246
|
* more performant, but looses "go to definition" information.
|
|
222
247
|
*
|
|
@@ -237,11 +262,36 @@ export type ToJsx<Component extends {
|
|
|
237
262
|
export type ToEvents<Component> = GlobalEventTypes<MaybeEl<Component>> & {
|
|
238
263
|
[Key in keyof Component as ListenerToPayloadType<Component[Key]> extends CustomEvent ? Key : never]-?: ListenerToPayloadType<Component[Key]> & {
|
|
239
264
|
currentTarget: MaybeEl<Component>;
|
|
265
|
+
target: MaybeEl<Component>;
|
|
240
266
|
};
|
|
241
267
|
};
|
|
242
268
|
type MaybeEl<Component> = Component extends {
|
|
243
269
|
el: unknown;
|
|
244
270
|
} ? Component["el"] : Component;
|
|
271
|
+
export interface TargetedEvent<Target = EventTarget | null, Payload = void> extends BaseEvent {
|
|
272
|
+
/**
|
|
273
|
+
* Returns any custom data event was created with.
|
|
274
|
+
*
|
|
275
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
|
|
276
|
+
*/
|
|
277
|
+
readonly detail: Payload;
|
|
278
|
+
/**
|
|
279
|
+
* Returns the object whose event listener's callback is currently being invoked.
|
|
280
|
+
*
|
|
281
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
|
|
282
|
+
*/
|
|
283
|
+
readonly currentTarget: Target;
|
|
284
|
+
/**
|
|
285
|
+
* Returns the object to which event is dispatched (its target).
|
|
286
|
+
*
|
|
287
|
+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
|
|
288
|
+
*/
|
|
289
|
+
readonly target: Target;
|
|
290
|
+
}
|
|
291
|
+
type BaseEvent = Omit<Event, "currentTarget" | "target">;
|
|
292
|
+
export type EventHandler<E> = {
|
|
293
|
+
bivarianceHack(event: E): void;
|
|
294
|
+
}["bivarianceHack"];
|
|
245
295
|
/**
|
|
246
296
|
* From "GlobalEventHandlersCamelCase" extract event names and their payloads.
|
|
247
297
|
* Not using "HTMLElementEventMap" because that map has all events in lowercase.
|
|
@@ -252,6 +302,12 @@ type GlobalEventTypes<Target = HTMLElement> = {
|
|
|
252
302
|
type ListenerToPayloadType<Listener> = unknown extends Listener ? void : Listener extends {
|
|
253
303
|
emit: (...rest: never[]) => infer PayloadType;
|
|
254
304
|
} ? PayloadType : Listener extends CustomEvent ? Listener : void;
|
|
305
|
+
/**
|
|
306
|
+
* Defined Lumina custom elements. This interface is used only for internal
|
|
307
|
+
* type-checking only.
|
|
308
|
+
*/
|
|
309
|
+
export interface DeclareElements {
|
|
310
|
+
}
|
|
255
311
|
/**
|
|
256
312
|
* These typings are based on dom-expressions typings:
|
|
257
313
|
* https://github.com/ryansolid/dom-expressions/blob/main/packages/dom-expressions/src/jsx.d.ts
|
|
@@ -307,7 +363,7 @@ export declare namespace LuminaJsx {
|
|
|
307
363
|
*/
|
|
308
364
|
key?: unknown;
|
|
309
365
|
}
|
|
310
|
-
interface IntrinsicElements extends HTMLElementTags, SVGElementTags, ReMappedComponents<
|
|
366
|
+
interface IntrinsicElements extends HTMLElementTags, SVGElementTags, ReMappedComponents<DeclareElements>, Omit<ReMapStencilComponents<ImportStencilElements>, keyof HTMLElementTags | keyof SVGElementTags> {
|
|
311
367
|
}
|
|
312
368
|
/**
|
|
313
369
|
* By not requiring to have some sort of typings generation watcher to run
|
|
@@ -349,6 +405,7 @@ export declare namespace LuminaJsx {
|
|
|
349
405
|
emit: (...rest: never[]) => infer PayloadType;
|
|
350
406
|
} ? (event: PayloadType & {
|
|
351
407
|
currentTarget: Component["el"];
|
|
408
|
+
target: Component["el"];
|
|
352
409
|
}) => void : never;
|
|
353
410
|
};
|
|
354
411
|
/**
|
|
@@ -381,9 +438,6 @@ export declare namespace LuminaJsx {
|
|
|
381
438
|
currentTarget: T;
|
|
382
439
|
target: T extends HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ? T : DOMElement;
|
|
383
440
|
}) => void;
|
|
384
|
-
type RefCallback<T> = {
|
|
385
|
-
bivarianceHack(instance: T | undefined): void;
|
|
386
|
-
}["bivarianceHack"];
|
|
387
441
|
interface CustomAttributes<T = HTMLElement> {
|
|
388
442
|
/**
|
|
389
443
|
* The `key` is a special attribute that can be set on any element.
|
|
@@ -395,7 +449,7 @@ export declare namespace LuminaJsx {
|
|
|
395
449
|
* Unlike in React or Stencil, any JavaScript value is acceptable as a key
|
|
396
450
|
*/
|
|
397
451
|
key?: unknown;
|
|
398
|
-
ref?:
|
|
452
|
+
ref?: EventHandler<T | undefined> | Ref<T>;
|
|
399
453
|
directives?: readonly DirectiveResult[];
|
|
400
454
|
}
|
|
401
455
|
interface DOMAttributes<T = HTMLElement> extends CustomAttributes<T>, GlobalEventHandlersCamelCase<T> {
|
|
@@ -843,6 +897,7 @@ export declare namespace LuminaJsx {
|
|
|
843
897
|
}
|
|
844
898
|
interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, DOMAttributes<T>, RdfaAttributes {
|
|
845
899
|
accessKey?: string;
|
|
900
|
+
autofocus?: boolean;
|
|
846
901
|
dir?: HTMLDir;
|
|
847
902
|
draggable?: boolean;
|
|
848
903
|
hidden?: boolean | "hidden" | "until-found";
|
|
@@ -922,7 +977,6 @@ export declare namespace LuminaJsx {
|
|
|
922
977
|
cite?: string;
|
|
923
978
|
}
|
|
924
979
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
925
|
-
autofocus?: boolean;
|
|
926
980
|
disabled?: boolean;
|
|
927
981
|
form?: string;
|
|
928
982
|
name?: string;
|
|
@@ -1031,7 +1085,6 @@ export declare namespace LuminaJsx {
|
|
|
1031
1085
|
autocomplete?: AutoFill;
|
|
1032
1086
|
accept?: string;
|
|
1033
1087
|
alt?: string;
|
|
1034
|
-
autofocus?: boolean;
|
|
1035
1088
|
capture?: boolean | string;
|
|
1036
1089
|
checked?: boolean;
|
|
1037
1090
|
disabled?: boolean;
|
|
@@ -1313,7 +1366,6 @@ export declare namespace LuminaJsx {
|
|
|
1313
1366
|
referrerPolicy?: HTMLReferrerPolicy;
|
|
1314
1367
|
}
|
|
1315
1368
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1316
|
-
autofocus?: boolean;
|
|
1317
1369
|
disabled?: boolean;
|
|
1318
1370
|
form?: string;
|
|
1319
1371
|
multiple?: boolean;
|
|
@@ -1350,7 +1402,6 @@ export declare namespace LuminaJsx {
|
|
|
1350
1402
|
}
|
|
1351
1403
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1352
1404
|
children?: "Error: Use value property instead. See https://lit.dev/docs/templates/expressions/#invalid-locations";
|
|
1353
|
-
autofocus?: boolean;
|
|
1354
1405
|
cols?: number | string;
|
|
1355
1406
|
dirname?: string;
|
|
1356
1407
|
disabled?: boolean;
|
package/dist/lazyLoad.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export interface DefineCustomElements {
|
|
|
15
15
|
export type LazyLoadOptions = {
|
|
16
16
|
readonly resourcesUrl?: string;
|
|
17
17
|
};
|
|
18
|
+
interface CommonInterface extends HTMLElement {
|
|
19
|
+
componentOnReady: () => Promise<this>;
|
|
20
|
+
}
|
|
18
21
|
export declare const makeDefineCustomElements: (runtime: Runtime, structure: Readonly<Record<string, CompactMeta>>) => DefineCustomElements;
|
|
19
22
|
/**
|
|
20
23
|
* Use compact meta to reduce bundle size (otherwise, it would be ~65kb for
|
|
@@ -105,7 +108,9 @@ export declare abstract class ProxyComponent extends HtmlElement {
|
|
|
105
108
|
/**
|
|
106
109
|
* Direct offspring that should be awaited before loaded() is emitted
|
|
107
110
|
*/
|
|
108
|
-
_offspring: (
|
|
111
|
+
_offspring: (CommonInterface & {
|
|
112
|
+
manager?: LitElement["manager"];
|
|
113
|
+
})[];
|
|
109
114
|
/**
|
|
110
115
|
* Promise that resolves once parent's load() completed. False if there is no
|
|
111
116
|
* parent
|
|
@@ -147,10 +152,19 @@ export declare abstract class ProxyComponent extends HtmlElement {
|
|
|
147
152
|
/**
|
|
148
153
|
* Create a promise that resolves once component is fully loaded
|
|
149
154
|
*/
|
|
150
|
-
componentOnReady(): Promise<
|
|
155
|
+
componentOnReady(): Promise<this>;
|
|
151
156
|
/** @internal */
|
|
152
157
|
_initializeComponent(module: Record<string, typeof LitElement>): void;
|
|
158
|
+
/**
|
|
159
|
+
* Implemented on the proxy for compatibility with Lit Context.
|
|
160
|
+
*/
|
|
161
|
+
addController(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Implemented on the proxy for compatibility with Lit Context.
|
|
164
|
+
*/
|
|
165
|
+
requestUpdate(): void;
|
|
153
166
|
}
|
|
167
|
+
/** @private */
|
|
154
168
|
export type GlobalThisWithPuppeteerEnv = typeof globalThis & {
|
|
155
169
|
devOnly$createdElements?: WeakRef<ProxyComponent>[];
|
|
156
170
|
};
|
package/dist/runtime.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { LitElement } from "./LitElement";
|
|
|
8
8
|
export type Runtime = RuntimeOptions & {
|
|
9
9
|
/**
|
|
10
10
|
* Get the base path to where the package assets can be found.
|
|
11
|
-
* By default, the package asset path is set to
|
|
11
|
+
* By default, the package asset path is set to `https://js.arcgis.com/<simplified-package-name>/<released-verion>/`.
|
|
12
12
|
* We are hosting our assets on a CDN (Content Delivery Network) to ensure fast and reliable access.
|
|
13
13
|
* It is CORS-enabled, so you can load the assets from any domain.
|
|
14
14
|
* Use "setAssetPath(path)" if the path needs to be customized.
|
|
@@ -18,8 +18,8 @@ export type Runtime = RuntimeOptions & {
|
|
|
18
18
|
* Used to manually set the base path where package assets (like localization
|
|
19
19
|
* and icons) can be found.
|
|
20
20
|
*
|
|
21
|
-
* By default, the package asset path is set to
|
|
22
|
-
* For example,
|
|
21
|
+
* By default, the package asset path is set to `https://js.arcgis.com/<simplified-package-name>/<released-verion>/`.
|
|
22
|
+
* For example, `https://js.arcgis.com/map-components/4.30/`.
|
|
23
23
|
* We are hosting our assets on a CDN (Content Delivery Network) to ensure fast and reliable access.
|
|
24
24
|
* It is CORS-enabled, so you can load the assets from any domain.
|
|
25
25
|
* This is the recommended way to load the assets and avoid bundling them with your application.
|
|
@@ -92,6 +92,8 @@ export declare function makeRuntime(options?: RuntimeOptions): Runtime;
|
|
|
92
92
|
/**
|
|
93
93
|
* Exposing the reference to the runtime globally when in tests or development.
|
|
94
94
|
* This is primarily for usage by dynamically created components in tests
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
95
97
|
*/
|
|
96
98
|
export type DevOnlyGlobalRuntime = typeof globalThis & {
|
|
97
99
|
devOnly$luminaRuntime?: Runtime;
|
|
@@ -99,6 +101,8 @@ export type DevOnlyGlobalRuntime = typeof globalThis & {
|
|
|
99
101
|
/**
|
|
100
102
|
* Called from the component constructor when in development or test mode.
|
|
101
103
|
* Used primarily by mount to get a reference to the rendered component.
|
|
104
|
+
*
|
|
105
|
+
* @private
|
|
102
106
|
*/
|
|
103
107
|
export type DevOnlyGlobalComponentRefCallback = typeof globalThis & {
|
|
104
108
|
devOnly$luminaComponentRefCallback?: (component: LitElement) => void;
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference path="jsxGlobals.d.ts" />
|
|
2
|
-
/// <reference path="loadLitCss.d.ts" />
|
|
3
|
-
/// <reference path="viteEnv.d.ts" />
|
|
4
|
-
/// <reference path="importMeta.d.ts" />
|
|
1
|
+
/// <reference path="jsxGlobals.d.ts" preserve="true" />
|
|
2
|
+
/// <reference path="loadLitCss.d.ts" preserve="true" />
|
|
3
|
+
/// <reference path="viteEnv.d.ts" preserve="true" />
|
|
4
|
+
/// <reference path="importMeta.d.ts" preserve="true" />
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file is used for internal type checking only. It should not be
|
|
3
|
+
* referenced in public types of your package to not pollute the global types
|
|
4
|
+
* namespace
|
|
5
|
+
*/
|
|
2
6
|
declare global {
|
|
3
7
|
/**
|
|
4
8
|
* This interface will be extended in each source file that defines a LitElement.
|
|
@@ -19,23 +23,17 @@ declare global {
|
|
|
19
23
|
};
|
|
20
24
|
interface HTMLElementTagNameMap extends ReMappedDeclareElements {
|
|
21
25
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* CommonComponentsJsx.IntrinsicElements {
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export interface ImportStencilElements {
|
|
26
|
+
}
|
|
27
|
+
export interface DeclareElements extends globalThis.DeclareElements {
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* In the component files, we declare "DeclareElements" interface on the
|
|
31
|
+
* `declare global` namespace as it's shorter than writing
|
|
32
|
+
* `declare module "@arcgis/lumina"`. However, we want to avoid polluting
|
|
33
|
+
* global typings with this interface - thus we use namespace merging to
|
|
34
|
+
* extend the namespaced DeclareElements based on the global DeclareElements.
|
|
35
|
+
*/
|
|
36
|
+
declare module "../jsx/jsx" {
|
|
37
|
+
interface DeclareElements extends globalThis.DeclareElements {
|
|
40
38
|
}
|
|
41
39
|
}
|
package/dist/wrappersUtils.d.ts
CHANGED
|
@@ -1,9 +1,33 @@
|
|
|
1
|
+
export interface Options<I extends HTMLElement, E extends EventNames> {
|
|
2
|
+
react: any;
|
|
3
|
+
tagName: string;
|
|
4
|
+
elementClass: Constructor<I>;
|
|
5
|
+
events?: E;
|
|
6
|
+
displayName?: string;
|
|
7
|
+
}
|
|
8
|
+
export type EventNames = Record<string, string>;
|
|
9
|
+
type Constructor<T> = new () => T;
|
|
1
10
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `createPrototypeProxy()` is called, this small proxy delays retrieving the custom
|
|
7
|
-
* element prototype until it is actually needed, and caches the result for future calls.
|
|
11
|
+
* Wrap `createComponent` from `@lit/react` to improve lazy loading
|
|
12
|
+
* compatibility.
|
|
13
|
+
*
|
|
14
|
+
* @private
|
|
8
15
|
*/
|
|
9
|
-
export declare
|
|
16
|
+
export declare const makeReactWrapperFactory: (react: unknown, createComponent: (options: Options<HTMLElement, EventNames>) => unknown) => (options: Pick<Options<HTMLElement, EventNames>, "events" | "tagName">) => unknown;
|
|
17
|
+
/**
|
|
18
|
+
* Helper for `createComponent` to declare options in a type-safe and concise
|
|
19
|
+
* manner.
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* Only tagName and events need to be provided to the wrapped version of the
|
|
23
|
+
* `createComponent` function. However, since we inherit the typings from
|
|
24
|
+
* the original `createComponent`, TypeScript would still force us to provide
|
|
25
|
+
* `react` and `elementClass` properties - instead, this helper convinces
|
|
26
|
+
* TypeScript that we are providing `react` and `elementClass` properties.
|
|
27
|
+
*
|
|
28
|
+
* @private
|
|
29
|
+
*/
|
|
30
|
+
export declare const getReactWrapperOptions: <Element extends HTMLElement, Events extends EventNames>(tagNameAndElement: Element, events: Events) => Options<Element & {
|
|
31
|
+
class?: string;
|
|
32
|
+
}, Events>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/lumina",
|
|
3
|
-
"version": "4.32.0-next.
|
|
3
|
+
"version": "4.32.0-next.51",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/index.js",
|
|
10
10
|
"./config": "./dist/config.js",
|
|
11
|
+
"./hmrSupport": "./dist/hmrSupport.js",
|
|
11
12
|
"./stencilSsrCompatibility": "./dist/stencilSsrCompatibility/index.js",
|
|
12
13
|
"./typings": {
|
|
13
14
|
"types": "./dist/typings/index.d.ts"
|
|
@@ -17,33 +18,15 @@
|
|
|
17
18
|
"files": [
|
|
18
19
|
"dist/"
|
|
19
20
|
],
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"registry": "https://registry.npmjs.org/",
|
|
22
|
-
"access": "public"
|
|
23
|
-
},
|
|
24
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"build": "tsup",
|
|
27
|
-
"build:dev": "tsup --sourcemap",
|
|
28
|
-
"watch": "yarn build:dev --watch",
|
|
29
|
-
"clean": "rimraf ./dist ./build ./turbo ./node_modules"
|
|
30
|
-
},
|
|
31
22
|
"dependencies": {
|
|
32
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
33
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
23
|
+
"@arcgis/components-controllers": "4.32.0-next.51",
|
|
24
|
+
"@arcgis/components-utils": "4.32.0-next.51",
|
|
34
25
|
"@lit-labs/ssr": "^3.2.2",
|
|
35
26
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
27
|
+
"@lit/context": "^1.1.3",
|
|
36
28
|
"csstype": "^3.1.3",
|
|
37
29
|
"lit": "^3.2.0",
|
|
38
30
|
"tslib": "^2.7.0"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
"@arcgis/typescript-config": "4.32.0-next.5",
|
|
42
|
-
"@types/node": "^20.2.5",
|
|
43
|
-
"eslint": "^8.55.0",
|
|
44
|
-
"rimraf": "^5.0.0",
|
|
45
|
-
"tsup": "^8.3.0",
|
|
46
|
-
"typescript": "~5.4.0"
|
|
47
|
-
},
|
|
48
|
-
"gitHead": "e4e69443c65b6667007b81e8a05805bec146db56"
|
|
49
|
-
}
|
|
31
|
+
}
|
|
32
|
+
}
|