@segnavia/react 0.11.0 → 0.13.0
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/elements.d.ts +18 -17
- package/package.json +2 -2
package/dist/elements.d.ts
CHANGED
|
@@ -8,29 +8,30 @@ export interface RuntimeElementDescriptor {
|
|
|
8
8
|
properties: readonly string[];
|
|
9
9
|
events: Readonly<Partial<Record<string, string>>>;
|
|
10
10
|
}
|
|
11
|
-
export interface ElementDescriptor<E extends HTMLElement, P extends object
|
|
11
|
+
export interface ElementDescriptor<E extends HTMLElement, P extends object, Tag extends `segnavia-${string}` = `segnavia-${string}`> extends RuntimeElementDescriptor {
|
|
12
|
+
tag: Tag;
|
|
12
13
|
properties: readonly Extract<keyof P, string>[];
|
|
13
14
|
events: Readonly<Partial<Record<Extract<keyof P, `on${string}`>, string>>>;
|
|
14
15
|
readonly element?: E;
|
|
15
16
|
readonly props?: P;
|
|
16
17
|
}
|
|
17
18
|
export declare const ELEMENTS: {
|
|
18
|
-
readonly player: ElementDescriptor<SegnaviaPlayer, PlayerProps>;
|
|
19
|
-
readonly stage: ElementDescriptor<SegnaviaStage, StageProps>;
|
|
20
|
-
readonly thumbnail: ElementDescriptor<SegnaviaThumbnail, ThumbnailProps>;
|
|
21
|
-
readonly play: ElementDescriptor<SegnaviaPlay, PlayProps>;
|
|
22
|
-
readonly step: ElementDescriptor<SegnaviaStep, StepProps>;
|
|
23
|
-
readonly track: ElementDescriptor<SegnaviaTrack, TrackProps>;
|
|
24
|
-
readonly counter: ElementDescriptor<SegnaviaCounter, CounterProps>;
|
|
25
|
-
readonly time: ElementDescriptor<SegnaviaTime, TimeProps>;
|
|
26
|
-
readonly mute: ElementDescriptor<SegnaviaMute, MuteProps>;
|
|
27
|
-
readonly captions: ElementDescriptor<SegnaviaCaptions, CaptionsProps>;
|
|
28
|
-
readonly caption: ElementDescriptor<SegnaviaCaption, CaptionProps>;
|
|
29
|
-
readonly notes: ElementDescriptor<SegnaviaNotes, NotesProps>;
|
|
30
|
-
readonly fullscreen: ElementDescriptor<SegnaviaFullscreen, FullscreenProps>;
|
|
31
|
-
readonly rail: ElementDescriptor<SegnaviaRail, RailProps>;
|
|
19
|
+
readonly player: ElementDescriptor<SegnaviaPlayer, PlayerProps, "segnavia-player">;
|
|
20
|
+
readonly stage: ElementDescriptor<SegnaviaStage, StageProps, "segnavia-stage">;
|
|
21
|
+
readonly thumbnail: ElementDescriptor<SegnaviaThumbnail, ThumbnailProps, "segnavia-thumbnail">;
|
|
22
|
+
readonly play: ElementDescriptor<SegnaviaPlay, PlayProps, "segnavia-play">;
|
|
23
|
+
readonly step: ElementDescriptor<SegnaviaStep, StepProps, "segnavia-step">;
|
|
24
|
+
readonly track: ElementDescriptor<SegnaviaTrack, TrackProps, "segnavia-track">;
|
|
25
|
+
readonly counter: ElementDescriptor<SegnaviaCounter, CounterProps, "segnavia-counter">;
|
|
26
|
+
readonly time: ElementDescriptor<SegnaviaTime, TimeProps, "segnavia-time">;
|
|
27
|
+
readonly mute: ElementDescriptor<SegnaviaMute, MuteProps, "segnavia-mute">;
|
|
28
|
+
readonly captions: ElementDescriptor<SegnaviaCaptions, CaptionsProps, "segnavia-captions">;
|
|
29
|
+
readonly caption: ElementDescriptor<SegnaviaCaption, CaptionProps, "segnavia-caption">;
|
|
30
|
+
readonly notes: ElementDescriptor<SegnaviaNotes, NotesProps, "segnavia-notes">;
|
|
31
|
+
readonly fullscreen: ElementDescriptor<SegnaviaFullscreen, FullscreenProps, "segnavia-fullscreen">;
|
|
32
|
+
readonly rail: ElementDescriptor<SegnaviaRail, RailProps, "segnavia-rail">;
|
|
32
33
|
};
|
|
33
34
|
export type AnyElementDescriptor = RuntimeElementDescriptor;
|
|
34
|
-
export type ElementFor<D> = D extends ElementDescriptor<infer E, infer _P> ? E : never;
|
|
35
|
-
export type PropsFor<D> = D extends ElementDescriptor<infer _E, infer P> ? P : never;
|
|
35
|
+
export type ElementFor<D> = D extends ElementDescriptor<infer E, infer _P, infer _Tag> ? E : never;
|
|
36
|
+
export type PropsFor<D> = D extends ElementDescriptor<infer _E, infer P, infer _Tag> ? P : never;
|
|
36
37
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segnavia/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@segnavia/frame": "0.
|
|
29
|
+
"@segnavia/frame": "0.13.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^18.0.0 || ^19.0.0",
|