@mieweb/ui 0.10.0-dev.29 → 0.10.0-dev.30
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/brands/index.cjs +7 -7
- package/dist/brands/index.js +2 -2
- package/dist/{chunk-JYZW2PZS.cjs → chunk-254QK722.cjs} +7 -7
- package/dist/chunk-254QK722.cjs.map +1 -0
- package/dist/{chunk-FBLVPM2K.js → chunk-2JICT4A2.js} +26 -10
- package/dist/chunk-2JICT4A2.js.map +1 -0
- package/dist/{chunk-S45EERW3.cjs → chunk-35Y4ILCU.cjs} +4 -4
- package/dist/{chunk-S45EERW3.cjs.map → chunk-35Y4ILCU.cjs.map} +1 -1
- package/dist/{chunk-2BARVD4C.js → chunk-3RXZWHCU.js} +3 -3
- package/dist/{chunk-2BARVD4C.js.map → chunk-3RXZWHCU.js.map} +1 -1
- package/dist/{chunk-MWVW4APN.cjs → chunk-7UTBDFFL.cjs} +4 -4
- package/dist/{chunk-MWVW4APN.cjs.map → chunk-7UTBDFFL.cjs.map} +1 -1
- package/dist/{chunk-FJ7YPVKV.js → chunk-7X6R3JIA.js} +3 -3
- package/dist/{chunk-FJ7YPVKV.js.map → chunk-7X6R3JIA.js.map} +1 -1
- package/dist/{chunk-SYRLCTDV.js → chunk-7ZV67VZE.js} +3 -3
- package/dist/{chunk-SYRLCTDV.js.map → chunk-7ZV67VZE.js.map} +1 -1
- package/dist/chunk-BNH4SXJB.js +874 -0
- package/dist/chunk-BNH4SXJB.js.map +1 -0
- package/dist/{chunk-N2CJJHHB.cjs → chunk-BUT6MF5K.cjs} +27 -11
- package/dist/chunk-BUT6MF5K.cjs.map +1 -0
- package/dist/{chunk-6VFDHJSO.cjs → chunk-COM7RNZU.cjs} +2 -2
- package/dist/{chunk-6VFDHJSO.cjs.map → chunk-COM7RNZU.cjs.map} +1 -1
- package/dist/{chunk-SQHMGT4W.js → chunk-GW4RFJZ5.js} +7 -7
- package/dist/chunk-GW4RFJZ5.js.map +1 -0
- package/dist/{chunk-JID7AZTO.cjs → chunk-H3ROMJYI.cjs} +4 -4
- package/dist/{chunk-JID7AZTO.cjs.map → chunk-H3ROMJYI.cjs.map} +1 -1
- package/dist/{chunk-DZFGTWYF.js → chunk-JBIGSP2T.js} +3 -3
- package/dist/{chunk-DZFGTWYF.js.map → chunk-JBIGSP2T.js.map} +1 -1
- package/dist/{chunk-33DEVA3P.js → chunk-JHG3ELS2.js} +2 -2
- package/dist/{chunk-33DEVA3P.js.map → chunk-JHG3ELS2.js.map} +1 -1
- package/dist/{chunk-WWJIW2IH.cjs → chunk-JSXIB6EJ.cjs} +4 -4
- package/dist/{chunk-WWJIW2IH.cjs.map → chunk-JSXIB6EJ.cjs.map} +1 -1
- package/dist/{chunk-H5YXAMVH.js → chunk-MLAWXPRY.js} +44 -2
- package/dist/chunk-MLAWXPRY.js.map +1 -0
- package/dist/{chunk-AAYXCZMV.cjs → chunk-NKV76R65.cjs} +4 -4
- package/dist/{chunk-AAYXCZMV.cjs.map → chunk-NKV76R65.cjs.map} +1 -1
- package/dist/{chunk-PYJDVWXM.js → chunk-NUB5HRKS.js} +3 -3
- package/dist/{chunk-PYJDVWXM.js.map → chunk-NUB5HRKS.js.map} +1 -1
- package/dist/{chunk-LL6IWKI3.js → chunk-OW3SQJ7P.js} +3 -3
- package/dist/{chunk-LL6IWKI3.js.map → chunk-OW3SQJ7P.js.map} +1 -1
- package/dist/{chunk-OUZDYJ33.cjs → chunk-QURJVPRH.cjs} +44 -2
- package/dist/chunk-QURJVPRH.cjs.map +1 -0
- package/dist/{chunk-TZJQB4P2.js → chunk-RM2HPQIC.js} +72 -14
- package/dist/chunk-RM2HPQIC.js.map +1 -0
- package/dist/{chunk-P4VGVJVI.js → chunk-SD7ONW6S.js} +3 -3
- package/dist/{chunk-P4VGVJVI.js.map → chunk-SD7ONW6S.js.map} +1 -1
- package/dist/chunk-WXFGHDTV.cjs +896 -0
- package/dist/chunk-WXFGHDTV.cjs.map +1 -0
- package/dist/chunk-XDU65GLW.js +21 -0
- package/dist/chunk-XDU65GLW.js.map +1 -0
- package/dist/{chunk-MYHV2ND3.cjs → chunk-XRVMYT5G.cjs} +72 -13
- package/dist/chunk-XRVMYT5G.cjs.map +1 -0
- package/dist/{chunk-I4LXSHKO.cjs → chunk-YRHBSSQ3.cjs} +4 -4
- package/dist/{chunk-I4LXSHKO.cjs.map → chunk-YRHBSSQ3.cjs.map} +1 -1
- package/dist/chunk-YW2AKBLS.cjs +23 -0
- package/dist/chunk-YW2AKBLS.cjs.map +1 -0
- package/dist/{chunk-B2X732V3.cjs → chunk-ZTMYKAVU.cjs} +4 -4
- package/dist/{chunk-B2X732V3.cjs.map → chunk-ZTMYKAVU.cjs.map} +1 -1
- package/dist/components/Collapsible/index.cjs +5 -5
- package/dist/components/Collapsible/index.js +2 -2
- package/dist/components/MediaEditor/index.cjs +8 -8
- package/dist/components/MediaEditor/index.js +3 -3
- package/dist/components/MediaFeed/index.cjs +26 -0
- package/dist/components/MediaFeed/index.cjs.map +1 -0
- package/dist/components/MediaFeed/index.d.cts +104 -0
- package/dist/components/MediaFeed/index.d.ts +104 -0
- package/dist/components/MediaFeed/index.js +17 -0
- package/dist/components/MediaFeed/index.js.map +1 -0
- package/dist/components/MediaPlayer/index.cjs +5 -5
- package/dist/components/MediaPlayer/index.d.cts +18 -0
- package/dist/components/MediaPlayer/index.d.ts +18 -0
- package/dist/components/MediaPlayer/index.js +2 -2
- package/dist/components/RadialExplorer/index.cjs +3 -3
- package/dist/components/RadialExplorer/index.js +2 -2
- package/dist/components/SliderCalculator/index.cjs +4 -4
- package/dist/components/SliderCalculator/index.js +2 -2
- package/dist/components/SuperChat/index.cjs +654 -292
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +35 -6
- package/dist/components/SuperChat/index.d.ts +35 -6
- package/dist/components/SuperChat/index.js +648 -286
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.d.cts +2 -2
- package/dist/components/SuperChat/plugins/index.d.ts +2 -2
- package/dist/components/ThemeProvider/index.cjs +9 -9
- package/dist/components/ThemeProvider/index.js +3 -3
- package/dist/components/Tooltip/index.cjs +3 -3
- package/dist/components/Tooltip/index.js +2 -2
- package/dist/esheet.cjs +6 -6
- package/dist/esheet.js +3 -3
- package/dist/globe.cjs +2 -2
- package/dist/globe.js +1 -1
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +164 -214
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +120 -1
- package/dist/index.d.ts +120 -1
- package/dist/index.js +25 -82
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/{types-DOxdTwmq.d.cts → types-Cx1FHLq2.d.cts} +130 -1
- package/dist/{types-DOxdTwmq.d.ts → types-Cx1FHLq2.d.ts} +130 -1
- package/package.json +1 -1
- package/dist/chunk-6HFFWEM3.cjs +0 -22
- package/dist/chunk-6HFFWEM3.cjs.map +0 -1
- package/dist/chunk-FBLVPM2K.js.map +0 -1
- package/dist/chunk-H5YXAMVH.js.map +0 -1
- package/dist/chunk-HB7C7NB5.js +0 -20
- package/dist/chunk-HB7C7NB5.js.map +0 -1
- package/dist/chunk-JYZW2PZS.cjs.map +0 -1
- package/dist/chunk-MYHV2ND3.cjs.map +0 -1
- package/dist/chunk-N2CJJHHB.cjs.map +0 -1
- package/dist/chunk-OUZDYJ33.cjs.map +0 -1
- package/dist/chunk-SQHMGT4W.js.map +0 -1
- package/dist/chunk-TZJQB4P2.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunk35Y4ILCU_cjs = require('../../chunk-35Y4ILCU.cjs');
|
|
4
|
+
require('../../chunk-YW2AKBLS.cjs');
|
|
5
5
|
require('../../chunk-IEY3ZJIT.cjs');
|
|
6
6
|
require('../../chunk-S5RVSXDV.cjs');
|
|
7
7
|
require('../../chunk-EUAMEVVI.cjs');
|
|
@@ -10,15 +10,15 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "Collapsible", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk35Y4ILCU_cjs.Collapsible; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "CollapsibleContent", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk35Y4ILCU_cjs.CollapsibleContent; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "CollapsibleTrigger", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk35Y4ILCU_cjs.CollapsibleTrigger; }
|
|
22
22
|
});
|
|
23
23
|
//# sourceMappingURL=index.cjs.map
|
|
24
24
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../chunk-7ZV67VZE.js';
|
|
2
|
+
import '../../chunk-XDU65GLW.js';
|
|
3
3
|
import '../../chunk-F4N67NAF.js';
|
|
4
4
|
import '../../chunk-TQONQSJO.js';
|
|
5
5
|
import '../../chunk-PX6F3LHL.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNKV76R65_cjs = require('../../chunk-NKV76R65.cjs');
|
|
4
4
|
require('../../chunk-MYAU2ZUC.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-BUT6MF5K.cjs');
|
|
6
6
|
require('../../chunk-7AECNMYV.cjs');
|
|
7
7
|
require('../../chunk-NPKPCYAT.cjs');
|
|
8
8
|
require('../../chunk-NUFUV43P.cjs');
|
|
9
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-254QK722.cjs');
|
|
10
10
|
require('../../chunk-UPWIJC6I.cjs');
|
|
11
11
|
require('../../chunk-T4L7Q5FA.cjs');
|
|
12
12
|
require('../../chunk-I44YNYI6.cjs');
|
|
@@ -26,23 +26,23 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "FillerWordsModal", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkNKV76R65_cjs.FillerWordsModal; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "MediaEditor", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkNKV76R65_cjs.MediaEditor; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "SilenceSettingsModal", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkNKV76R65_cjs.SilenceSettingsModal; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "SpeedMarkerMenu", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkNKV76R65_cjs.SpeedMarkerMenu; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "WordEditorModal", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkNKV76R65_cjs.WordEditorModal; }
|
|
46
46
|
});
|
|
47
47
|
//# sourceMappingURL=index.cjs.map
|
|
48
48
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-
|
|
1
|
+
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-SD7ONW6S.js';
|
|
2
2
|
import '../../chunk-2BPIVWAK.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-2JICT4A2.js';
|
|
4
4
|
import '../../chunk-753Z3NXL.js';
|
|
5
5
|
import '../../chunk-UUI7WXI5.js';
|
|
6
6
|
import '../../chunk-6CGM5H4J.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-GW4RFJZ5.js';
|
|
8
8
|
import '../../chunk-VCI2Y7ST.js';
|
|
9
9
|
import '../../chunk-ENMXHZNE.js';
|
|
10
10
|
import '../../chunk-6NZXWKUE.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWXFGHDTV_cjs = require('../../chunk-WXFGHDTV.cjs');
|
|
4
|
+
require('../../chunk-GLXTVCHN.cjs');
|
|
5
|
+
require('../../chunk-BUT6MF5K.cjs');
|
|
6
|
+
require('../../chunk-JEIW7BSV.cjs');
|
|
7
|
+
require('../../chunk-254QK722.cjs');
|
|
8
|
+
require('../../chunk-T4L7Q5FA.cjs');
|
|
9
|
+
require('../../chunk-NNEFAUHV.cjs');
|
|
10
|
+
require('../../chunk-FHY3K6PL.cjs');
|
|
11
|
+
require('../../chunk-SCV7C55E.cjs');
|
|
12
|
+
require('../../chunk-YW2AKBLS.cjs');
|
|
13
|
+
require('../../chunk-X6A27RGO.cjs');
|
|
14
|
+
require('../../chunk-DXEPYK3I.cjs');
|
|
15
|
+
require('../../chunk-IEY3ZJIT.cjs');
|
|
16
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
17
|
+
require('../../chunk-EUAMEVVI.cjs');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
Object.defineProperty(exports, "MediaFeed", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return chunkWXFGHDTV_cjs.MediaFeed; }
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=index.cjs.map
|
|
26
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** A caller-owned media resource. Provider embeds can also use `renderMedia`. */
|
|
4
|
+
interface MediaFeedMedia {
|
|
5
|
+
kind: 'image' | 'video' | 'audio' | 'youtube';
|
|
6
|
+
src: string;
|
|
7
|
+
poster?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
10
|
+
interface MediaFeedAuthor {
|
|
11
|
+
name: string;
|
|
12
|
+
avatar?: string;
|
|
13
|
+
}
|
|
14
|
+
/** An explicit Play gesture, separate from item selection and automatic playback. */
|
|
15
|
+
interface MediaFeedPlaybackRequest {
|
|
16
|
+
itemId: string;
|
|
17
|
+
/** Use a fresh token for each gesture, including repeated Play on the same item. */
|
|
18
|
+
requestId: string | number;
|
|
19
|
+
}
|
|
20
|
+
/** Custom players must stop playback whenever `active` is false. */
|
|
21
|
+
interface MediaFeedRenderContext<T> {
|
|
22
|
+
item: T;
|
|
23
|
+
active: boolean;
|
|
24
|
+
autoPlay: boolean;
|
|
25
|
+
muted: boolean;
|
|
26
|
+
loop: boolean;
|
|
27
|
+
/** A pending manual Play token for this active item. Handle each token once. */
|
|
28
|
+
playbackRequestId?: string | number;
|
|
29
|
+
}
|
|
30
|
+
/** Every string authored by the feed can be localized by its host. */
|
|
31
|
+
interface MediaFeedLabels {
|
|
32
|
+
feed: string;
|
|
33
|
+
loading: string;
|
|
34
|
+
empty: string;
|
|
35
|
+
error: string;
|
|
36
|
+
retry: string;
|
|
37
|
+
fullscreen: string;
|
|
38
|
+
close: string;
|
|
39
|
+
previous: string;
|
|
40
|
+
next: string;
|
|
41
|
+
play: string;
|
|
42
|
+
pause: string;
|
|
43
|
+
blockedAutoplay: string;
|
|
44
|
+
mediaError: string;
|
|
45
|
+
openSource: string;
|
|
46
|
+
youtubeNotice: string;
|
|
47
|
+
item: (position: number, total: number) => string;
|
|
48
|
+
position: (position: number, total: number) => string;
|
|
49
|
+
}
|
|
50
|
+
/** Keys match the feed's `data-slot` attributes. */
|
|
51
|
+
interface MediaFeedClassNames {
|
|
52
|
+
root?: string;
|
|
53
|
+
viewport?: string;
|
|
54
|
+
item?: string;
|
|
55
|
+
media?: string;
|
|
56
|
+
details?: string;
|
|
57
|
+
author?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
caption?: string;
|
|
60
|
+
actions?: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
controls?: string;
|
|
63
|
+
fullscreen?: string;
|
|
64
|
+
}
|
|
65
|
+
interface MediaFeedProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'onError'> {
|
|
66
|
+
/** Records in presentation order. The feed never fetches or mutates them. */
|
|
67
|
+
items: readonly T[];
|
|
68
|
+
/** A stable, unique ID for each record. */
|
|
69
|
+
getId: (item: T) => string;
|
|
70
|
+
getMedia: (item: T) => MediaFeedMedia;
|
|
71
|
+
getTitle?: (item: T) => string;
|
|
72
|
+
getCaption?: (item: T) => React.ReactNode;
|
|
73
|
+
getAuthor?: (item: T) => MediaFeedAuthor;
|
|
74
|
+
/** Host-owned actions, such as reactions or opening a conversation. */
|
|
75
|
+
renderActions?: (item: T) => React.ReactNode;
|
|
76
|
+
/** Replace the built-in player, respecting its active playback boundary. */
|
|
77
|
+
renderMedia?: (media: MediaFeedMedia, context: MediaFeedRenderContext<T>) => React.ReactNode;
|
|
78
|
+
/** Controlled selection. Changes scroll the selected record into view. */
|
|
79
|
+
activeItemId?: string;
|
|
80
|
+
/** Initial selection for an uncontrolled feed. */
|
|
81
|
+
defaultActiveItemId?: string;
|
|
82
|
+
/** Fires for user navigation and visibility changes, with the original item. */
|
|
83
|
+
onActiveItemChange?: (item: T) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Attempt explicit playback once the requested item is selected and visible.
|
|
86
|
+
* This bypasses reduced-motion/autoplay suppression for that gesture only;
|
|
87
|
+
* it does not change selection. Browsers can still require another gesture.
|
|
88
|
+
*/
|
|
89
|
+
playbackRequest?: MediaFeedPlaybackRequest;
|
|
90
|
+
loading?: boolean;
|
|
91
|
+
error?: string | null;
|
|
92
|
+
onRetry?: () => void | Promise<void>;
|
|
93
|
+
/** Attempt visible playback unless reduced motion is preferred; a gesture may be required. */
|
|
94
|
+
autoPlay?: boolean;
|
|
95
|
+
/** Native playback begins muted by default. Native controls can unmute it. */
|
|
96
|
+
muted?: boolean;
|
|
97
|
+
loop?: boolean;
|
|
98
|
+
labels?: Partial<MediaFeedLabels>;
|
|
99
|
+
classNames?: MediaFeedClassNames;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare const MediaFeed: <T>(props: MediaFeedProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
103
|
+
|
|
104
|
+
export { MediaFeed, type MediaFeedAuthor, type MediaFeedClassNames, type MediaFeedLabels, type MediaFeedMedia, type MediaFeedPlaybackRequest, type MediaFeedProps, type MediaFeedRenderContext };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** A caller-owned media resource. Provider embeds can also use `renderMedia`. */
|
|
4
|
+
interface MediaFeedMedia {
|
|
5
|
+
kind: 'image' | 'video' | 'audio' | 'youtube';
|
|
6
|
+
src: string;
|
|
7
|
+
poster?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
}
|
|
10
|
+
interface MediaFeedAuthor {
|
|
11
|
+
name: string;
|
|
12
|
+
avatar?: string;
|
|
13
|
+
}
|
|
14
|
+
/** An explicit Play gesture, separate from item selection and automatic playback. */
|
|
15
|
+
interface MediaFeedPlaybackRequest {
|
|
16
|
+
itemId: string;
|
|
17
|
+
/** Use a fresh token for each gesture, including repeated Play on the same item. */
|
|
18
|
+
requestId: string | number;
|
|
19
|
+
}
|
|
20
|
+
/** Custom players must stop playback whenever `active` is false. */
|
|
21
|
+
interface MediaFeedRenderContext<T> {
|
|
22
|
+
item: T;
|
|
23
|
+
active: boolean;
|
|
24
|
+
autoPlay: boolean;
|
|
25
|
+
muted: boolean;
|
|
26
|
+
loop: boolean;
|
|
27
|
+
/** A pending manual Play token for this active item. Handle each token once. */
|
|
28
|
+
playbackRequestId?: string | number;
|
|
29
|
+
}
|
|
30
|
+
/** Every string authored by the feed can be localized by its host. */
|
|
31
|
+
interface MediaFeedLabels {
|
|
32
|
+
feed: string;
|
|
33
|
+
loading: string;
|
|
34
|
+
empty: string;
|
|
35
|
+
error: string;
|
|
36
|
+
retry: string;
|
|
37
|
+
fullscreen: string;
|
|
38
|
+
close: string;
|
|
39
|
+
previous: string;
|
|
40
|
+
next: string;
|
|
41
|
+
play: string;
|
|
42
|
+
pause: string;
|
|
43
|
+
blockedAutoplay: string;
|
|
44
|
+
mediaError: string;
|
|
45
|
+
openSource: string;
|
|
46
|
+
youtubeNotice: string;
|
|
47
|
+
item: (position: number, total: number) => string;
|
|
48
|
+
position: (position: number, total: number) => string;
|
|
49
|
+
}
|
|
50
|
+
/** Keys match the feed's `data-slot` attributes. */
|
|
51
|
+
interface MediaFeedClassNames {
|
|
52
|
+
root?: string;
|
|
53
|
+
viewport?: string;
|
|
54
|
+
item?: string;
|
|
55
|
+
media?: string;
|
|
56
|
+
details?: string;
|
|
57
|
+
author?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
caption?: string;
|
|
60
|
+
actions?: string;
|
|
61
|
+
status?: string;
|
|
62
|
+
controls?: string;
|
|
63
|
+
fullscreen?: string;
|
|
64
|
+
}
|
|
65
|
+
interface MediaFeedProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'onError'> {
|
|
66
|
+
/** Records in presentation order. The feed never fetches or mutates them. */
|
|
67
|
+
items: readonly T[];
|
|
68
|
+
/** A stable, unique ID for each record. */
|
|
69
|
+
getId: (item: T) => string;
|
|
70
|
+
getMedia: (item: T) => MediaFeedMedia;
|
|
71
|
+
getTitle?: (item: T) => string;
|
|
72
|
+
getCaption?: (item: T) => React.ReactNode;
|
|
73
|
+
getAuthor?: (item: T) => MediaFeedAuthor;
|
|
74
|
+
/** Host-owned actions, such as reactions or opening a conversation. */
|
|
75
|
+
renderActions?: (item: T) => React.ReactNode;
|
|
76
|
+
/** Replace the built-in player, respecting its active playback boundary. */
|
|
77
|
+
renderMedia?: (media: MediaFeedMedia, context: MediaFeedRenderContext<T>) => React.ReactNode;
|
|
78
|
+
/** Controlled selection. Changes scroll the selected record into view. */
|
|
79
|
+
activeItemId?: string;
|
|
80
|
+
/** Initial selection for an uncontrolled feed. */
|
|
81
|
+
defaultActiveItemId?: string;
|
|
82
|
+
/** Fires for user navigation and visibility changes, with the original item. */
|
|
83
|
+
onActiveItemChange?: (item: T) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Attempt explicit playback once the requested item is selected and visible.
|
|
86
|
+
* This bypasses reduced-motion/autoplay suppression for that gesture only;
|
|
87
|
+
* it does not change selection. Browsers can still require another gesture.
|
|
88
|
+
*/
|
|
89
|
+
playbackRequest?: MediaFeedPlaybackRequest;
|
|
90
|
+
loading?: boolean;
|
|
91
|
+
error?: string | null;
|
|
92
|
+
onRetry?: () => void | Promise<void>;
|
|
93
|
+
/** Attempt visible playback unless reduced motion is preferred; a gesture may be required. */
|
|
94
|
+
autoPlay?: boolean;
|
|
95
|
+
/** Native playback begins muted by default. Native controls can unmute it. */
|
|
96
|
+
muted?: boolean;
|
|
97
|
+
loop?: boolean;
|
|
98
|
+
labels?: Partial<MediaFeedLabels>;
|
|
99
|
+
classNames?: MediaFeedClassNames;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare const MediaFeed: <T>(props: MediaFeedProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement;
|
|
103
|
+
|
|
104
|
+
export { MediaFeed, type MediaFeedAuthor, type MediaFeedClassNames, type MediaFeedLabels, type MediaFeedMedia, type MediaFeedPlaybackRequest, type MediaFeedProps, type MediaFeedRenderContext };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { MediaFeed } from '../../chunk-BNH4SXJB.js';
|
|
2
|
+
import '../../chunk-RISZWWEQ.js';
|
|
3
|
+
import '../../chunk-2JICT4A2.js';
|
|
4
|
+
import '../../chunk-HZ4MBUC3.js';
|
|
5
|
+
import '../../chunk-GW4RFJZ5.js';
|
|
6
|
+
import '../../chunk-ENMXHZNE.js';
|
|
7
|
+
import '../../chunk-4SMSH4OY.js';
|
|
8
|
+
import '../../chunk-T4ME7QCT.js';
|
|
9
|
+
import '../../chunk-VSQF22GL.js';
|
|
10
|
+
import '../../chunk-XDU65GLW.js';
|
|
11
|
+
import '../../chunk-7YO7DNUV.js';
|
|
12
|
+
import '../../chunk-GVM6DTR5.js';
|
|
13
|
+
import '../../chunk-F4N67NAF.js';
|
|
14
|
+
import '../../chunk-TQONQSJO.js';
|
|
15
|
+
import '../../chunk-PX6F3LHL.js';
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../../chunk-GLXTVCHN.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
4
|
+
var chunkBUT6MF5K_cjs = require('../../chunk-BUT6MF5K.cjs');
|
|
5
|
+
require('../../chunk-254QK722.cjs');
|
|
6
6
|
require('../../chunk-X6A27RGO.cjs');
|
|
7
7
|
require('../../chunk-DXEPYK3I.cjs');
|
|
8
8
|
require('../../chunk-S5RVSXDV.cjs');
|
|
@@ -12,15 +12,15 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "MediaPlayer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkBUT6MF5K_cjs.MediaPlayer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "inferMediaKind", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkBUT6MF5K_cjs.inferMediaKind; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "mediaPlayerVariants", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkBUT6MF5K_cjs.mediaPlayerVariants; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=index.cjs.map
|
|
26
26
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -34,12 +34,30 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
|
|
|
34
34
|
kind?: MediaKind;
|
|
35
35
|
/** Whether to show native controls (default `true`). */
|
|
36
36
|
controls?: boolean;
|
|
37
|
+
/** Begin muted; native controls can still change the volume. */
|
|
38
|
+
muted?: boolean;
|
|
39
|
+
/** Repeat playback when the media ends. */
|
|
40
|
+
loop?: boolean;
|
|
41
|
+
/** Video thumbnail displayed before playback. */
|
|
42
|
+
poster?: string;
|
|
43
|
+
/** Browser preload hint (default browser behavior when omitted). */
|
|
44
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
45
|
+
/** Caption/subtitle `<track>` elements. The `src` attribute is always set
|
|
46
|
+
* on the media element, so alternative `<source>` children are ignored. */
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
/** Localized load-error and retry text. */
|
|
49
|
+
labels?: {
|
|
50
|
+
error?: string;
|
|
51
|
+
retry?: string;
|
|
52
|
+
};
|
|
37
53
|
/** Callback when playback state changes. */
|
|
38
54
|
onStateChange?: (state: MediaPlayerState) => void;
|
|
39
55
|
/** Callback when playback ends. */
|
|
40
56
|
onEnded?: () => void;
|
|
41
57
|
/** Callback when an error occurs. */
|
|
42
58
|
onError?: (error: Error) => void;
|
|
59
|
+
/** Callback after the user requests a fresh media load on the error surface. */
|
|
60
|
+
onRetry?: () => void;
|
|
43
61
|
/** Callback on time updates (milliseconds). */
|
|
44
62
|
onTimeUpdate?: (currentTimeMs: number, durationMs: number) => void;
|
|
45
63
|
/** Additional class name. */
|
|
@@ -34,12 +34,30 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
|
|
|
34
34
|
kind?: MediaKind;
|
|
35
35
|
/** Whether to show native controls (default `true`). */
|
|
36
36
|
controls?: boolean;
|
|
37
|
+
/** Begin muted; native controls can still change the volume. */
|
|
38
|
+
muted?: boolean;
|
|
39
|
+
/** Repeat playback when the media ends. */
|
|
40
|
+
loop?: boolean;
|
|
41
|
+
/** Video thumbnail displayed before playback. */
|
|
42
|
+
poster?: string;
|
|
43
|
+
/** Browser preload hint (default browser behavior when omitted). */
|
|
44
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
45
|
+
/** Caption/subtitle `<track>` elements. The `src` attribute is always set
|
|
46
|
+
* on the media element, so alternative `<source>` children are ignored. */
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
/** Localized load-error and retry text. */
|
|
49
|
+
labels?: {
|
|
50
|
+
error?: string;
|
|
51
|
+
retry?: string;
|
|
52
|
+
};
|
|
37
53
|
/** Callback when playback state changes. */
|
|
38
54
|
onStateChange?: (state: MediaPlayerState) => void;
|
|
39
55
|
/** Callback when playback ends. */
|
|
40
56
|
onEnded?: () => void;
|
|
41
57
|
/** Callback when an error occurs. */
|
|
42
58
|
onError?: (error: Error) => void;
|
|
59
|
+
/** Callback after the user requests a fresh media load on the error surface. */
|
|
60
|
+
onRetry?: () => void;
|
|
43
61
|
/** Callback on time updates (milliseconds). */
|
|
44
62
|
onTimeUpdate?: (currentTimeMs: number, durationMs: number) => void;
|
|
45
63
|
/** Additional class name. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../chunk-RISZWWEQ.js';
|
|
2
|
-
export { MediaPlayer, inferMediaKind, mediaPlayerVariants } from '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
2
|
+
export { MediaPlayer, inferMediaKind, mediaPlayerVariants } from '../../chunk-2JICT4A2.js';
|
|
3
|
+
import '../../chunk-GW4RFJZ5.js';
|
|
4
4
|
import '../../chunk-7YO7DNUV.js';
|
|
5
5
|
import '../../chunk-GVM6DTR5.js';
|
|
6
6
|
import '../../chunk-TQONQSJO.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkYRHBSSQ3_cjs = require('../../chunk-YRHBSSQ3.cjs');
|
|
4
4
|
require('../../chunk-VBWRH4UW.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-YW2AKBLS.cjs');
|
|
6
6
|
require('../../chunk-X6A27RGO.cjs');
|
|
7
7
|
require('../../chunk-YVL3XATO.cjs');
|
|
8
8
|
require('../../chunk-DXEPYK3I.cjs');
|
|
@@ -13,7 +13,7 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "RadialExplorer", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkYRHBSSQ3_cjs.RadialExplorer; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=index.cjs.map
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { RadialExplorer } from '../../chunk-
|
|
1
|
+
export { RadialExplorer } from '../../chunk-3RXZWHCU.js';
|
|
2
2
|
import '../../chunk-IQ4KQJAO.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-XDU65GLW.js';
|
|
4
4
|
import '../../chunk-7YO7DNUV.js';
|
|
5
5
|
import '../../chunk-BMSG4NBH.js';
|
|
6
6
|
import '../../chunk-GVM6DTR5.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7UTBDFFL_cjs = require('../../chunk-7UTBDFFL.cjs');
|
|
4
4
|
require('../../chunk-MYAU2ZUC.cjs');
|
|
5
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-YW2AKBLS.cjs');
|
|
6
6
|
require('../../chunk-S5RVSXDV.cjs');
|
|
7
7
|
require('../../chunk-EUAMEVVI.cjs');
|
|
8
8
|
|
|
@@ -10,11 +10,11 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AnimatedNumber", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7UTBDFFL_cjs.AnimatedNumber; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "SliderCalculator", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7UTBDFFL_cjs.SliderCalculator; }
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=index.cjs.map
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { AnimatedNumber, SliderCalculator } from '../../chunk-
|
|
1
|
+
export { AnimatedNumber, SliderCalculator } from '../../chunk-NUB5HRKS.js';
|
|
2
2
|
import '../../chunk-2BPIVWAK.js';
|
|
3
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-XDU65GLW.js';
|
|
4
4
|
import '../../chunk-TQONQSJO.js';
|
|
5
5
|
import '../../chunk-PX6F3LHL.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|