@arcgis/lumina 4.32.0-next.52 → 4.32.0-next.55
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/jsx/jsx.d.ts +6 -3
- package/package.json +3 -3
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -260,7 +260,7 @@ export interface ImportStencilElements {
|
|
|
260
260
|
* - https://github.com/microsoft/TypeScript/issues/50715
|
|
261
261
|
*/
|
|
262
262
|
export type ToEvents<Component> = GlobalEventTypes<MaybeEl<Component>> & {
|
|
263
|
-
[Key in keyof Component as ListenerToPayloadType<Component[Key]> extends
|
|
263
|
+
[Key in keyof Component as ListenerToPayloadType<Component[Key]> extends BaseEvent ? Key : never]-?: ListenerToPayloadType<Component[Key]> & {
|
|
264
264
|
currentTarget: MaybeEl<Component>;
|
|
265
265
|
target: MaybeEl<Component>;
|
|
266
266
|
};
|
|
@@ -288,7 +288,10 @@ export interface TargetedEvent<Target = EventTarget | null, Payload = void> exte
|
|
|
288
288
|
*/
|
|
289
289
|
readonly target: Target;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
interface BaseEvent extends Omit<Event, "currentTarget" | "target"> {
|
|
292
|
+
/** @deprecated */
|
|
293
|
+
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: any): void;
|
|
294
|
+
}
|
|
292
295
|
export type EventHandler<E> = {
|
|
293
296
|
bivarianceHack(event: E): void;
|
|
294
297
|
}["bivarianceHack"];
|
|
@@ -301,7 +304,7 @@ type GlobalEventTypes<Target = HTMLElement> = {
|
|
|
301
304
|
};
|
|
302
305
|
type ListenerToPayloadType<Listener> = unknown extends Listener ? void : Listener extends {
|
|
303
306
|
emit: (...rest: never[]) => infer PayloadType;
|
|
304
|
-
} ? PayloadType : Listener extends
|
|
307
|
+
} ? PayloadType : Listener extends BaseEvent ? Listener : void;
|
|
305
308
|
/**
|
|
306
309
|
* Defined Lumina custom elements. This interface is used only for internal
|
|
307
310
|
* type-checking only.
|
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.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@arcgis/components-controllers": "4.32.0-next.
|
|
24
|
-
"@arcgis/components-utils": "4.32.0-next.
|
|
23
|
+
"@arcgis/components-controllers": "4.32.0-next.55",
|
|
24
|
+
"@arcgis/components-utils": "4.32.0-next.55",
|
|
25
25
|
"@lit-labs/ssr": "^3.2.2",
|
|
26
26
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
27
27
|
"@lit/context": "^1.1.3",
|