@mieweb/ui 0.11.0-dev.35 → 0.11.0-dev.37
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/MIGRATION.md +45 -11
- package/agent/skills/mieweb-ui-catalog/SKILL.md +5 -3
- package/agent/skills/mieweb-ui-catalog/selection-guidance.md +6 -3
- package/dist/{EncounterMdyEditor-73PTTIRY.cjs → EncounterMdyEditor-46WMYRFI.cjs} +6 -6
- package/dist/{EncounterMdyEditor-73PTTIRY.cjs.map → EncounterMdyEditor-46WMYRFI.cjs.map} +1 -1
- package/dist/{EncounterMdyEditor-3SQY4MK2.js → EncounterMdyEditor-L7RBLE7B.js} +3 -3
- package/dist/{EncounterMdyEditor-3SQY4MK2.js.map → EncounterMdyEditor-L7RBLE7B.js.map} +1 -1
- package/dist/{chunk-4SUEBKTY.js → chunk-2OTPQPJS.js} +52 -44
- package/dist/chunk-2OTPQPJS.js.map +1 -0
- package/dist/{chunk-MZR634HI.cjs → chunk-3M2BBOXF.cjs} +9 -9
- package/dist/{chunk-MZR634HI.cjs.map → chunk-3M2BBOXF.cjs.map} +1 -1
- package/dist/{chunk-TUYWCUKH.js → chunk-4LKAZW2W.js} +7 -3
- package/dist/chunk-4LKAZW2W.js.map +1 -0
- package/dist/{chunk-JEXEFWEM.js → chunk-5WA6IYZD.js} +68 -2
- package/dist/chunk-5WA6IYZD.js.map +1 -0
- package/dist/{chunk-DXNVQQYN.cjs → chunk-6L7CTEX2.cjs} +51 -44
- package/dist/chunk-6L7CTEX2.cjs.map +1 -0
- package/dist/{chunk-DT3X3RBM.js → chunk-7U7SONM5.js} +3 -3
- package/dist/{chunk-DT3X3RBM.js.map → chunk-7U7SONM5.js.map} +1 -1
- package/dist/{chunk-4M2KE4O5.cjs → chunk-AHYDJN4H.cjs} +506 -125
- package/dist/chunk-AHYDJN4H.cjs.map +1 -0
- package/dist/{chunk-EX7Q5545.js → chunk-AKC677ZF.js} +5 -5
- package/dist/{chunk-EX7Q5545.js.map → chunk-AKC677ZF.js.map} +1 -1
- package/dist/{chunk-C4GEPUE7.js → chunk-CKECOCYJ.js} +2 -2
- package/dist/{chunk-C4GEPUE7.js.map → chunk-CKECOCYJ.js.map} +1 -1
- package/dist/{chunk-V5VPECJI.js → chunk-CRR7AE5D.js} +11 -7
- package/dist/chunk-CRR7AE5D.js.map +1 -0
- package/dist/chunk-D3FNZMOB.cjs +4 -0
- package/dist/{chunk-GLXTVCHN.cjs.map → chunk-D3FNZMOB.cjs.map} +1 -1
- package/dist/{chunk-ZK2R6UGF.cjs → chunk-DCV34MEF.cjs} +4 -4
- package/dist/{chunk-ZK2R6UGF.cjs.map → chunk-DCV34MEF.cjs.map} +1 -1
- package/dist/{chunk-XEHD2HA5.cjs → chunk-FRPELUI5.cjs} +3 -3
- package/dist/{chunk-XEHD2HA5.cjs.map → chunk-FRPELUI5.cjs.map} +1 -1
- package/dist/chunk-G4VQEQGW.js +3 -0
- package/dist/{chunk-RISZWWEQ.js.map → chunk-G4VQEQGW.js.map} +1 -1
- package/dist/{chunk-3O3Q3DX7.cjs → chunk-GG3IK5TL.cjs} +26 -26
- package/dist/{chunk-3O3Q3DX7.cjs.map → chunk-GG3IK5TL.cjs.map} +1 -1
- package/dist/{chunk-DGHS5IVD.js → chunk-GJSLKD4Q.js} +3 -3
- package/dist/{chunk-DGHS5IVD.js.map → chunk-GJSLKD4Q.js.map} +1 -1
- package/dist/{chunk-VMEVLBI3.js → chunk-GKMMDKYY.js} +3 -3
- package/dist/{chunk-VMEVLBI3.js.map → chunk-GKMMDKYY.js.map} +1 -1
- package/dist/{chunk-46RYJYN2.cjs → chunk-GU6TPVXF.cjs} +6 -6
- package/dist/{chunk-46RYJYN2.cjs.map → chunk-GU6TPVXF.cjs.map} +1 -1
- package/dist/{chunk-QHCAWDMG.cjs → chunk-HDZQLTBP.cjs} +7 -3
- package/dist/chunk-HDZQLTBP.cjs.map +1 -0
- package/dist/chunk-IALTKN3Y.js +1017 -0
- package/dist/chunk-IALTKN3Y.js.map +1 -0
- package/dist/{chunk-33Y3KQWL.js → chunk-IGRHPZOJ.js} +3 -3
- package/dist/{chunk-33Y3KQWL.js.map → chunk-IGRHPZOJ.js.map} +1 -1
- package/dist/chunk-JCIQIR5V.js +546 -0
- package/dist/chunk-JCIQIR5V.js.map +1 -0
- package/dist/{chunk-RTADGBBN.js → chunk-JUY2JLFL.js} +502 -121
- package/dist/chunk-JUY2JLFL.js.map +1 -0
- package/dist/{chunk-2S76TRBJ.cjs → chunk-JUYBJLPI.cjs} +4 -4
- package/dist/{chunk-2S76TRBJ.cjs.map → chunk-JUYBJLPI.cjs.map} +1 -1
- package/dist/{chunk-UDUYZDTA.js → chunk-JWMMWNTT.js} +3 -3
- package/dist/{chunk-UDUYZDTA.js.map → chunk-JWMMWNTT.js.map} +1 -1
- package/dist/{chunk-PLBWZW4F.js → chunk-KAQNYX7B.js} +3 -3
- package/dist/{chunk-PLBWZW4F.js.map → chunk-KAQNYX7B.js.map} +1 -1
- package/dist/{chunk-SPGP252Q.js → chunk-KB2PLV5Q.js} +4 -4
- package/dist/{chunk-SPGP252Q.js.map → chunk-KB2PLV5Q.js.map} +1 -1
- package/dist/{chunk-NCPDUJKJ.cjs → chunk-KQXD6BFO.cjs} +4 -4
- package/dist/{chunk-NCPDUJKJ.cjs.map → chunk-KQXD6BFO.cjs.map} +1 -1
- package/dist/{chunk-4VSK3EE5.cjs → chunk-L77XJPKC.cjs} +3 -3
- package/dist/{chunk-4VSK3EE5.cjs.map → chunk-L77XJPKC.cjs.map} +1 -1
- package/dist/{chunk-PGJLW2NO.cjs → chunk-LLIG4X6M.cjs} +7 -7
- package/dist/{chunk-PGJLW2NO.cjs.map → chunk-LLIG4X6M.cjs.map} +1 -1
- package/dist/{chunk-YGSPIDE4.js → chunk-LQ22CY7X.js} +5 -5
- package/dist/{chunk-YGSPIDE4.js.map → chunk-LQ22CY7X.js.map} +1 -1
- package/dist/{chunk-AKMTPCLC.cjs → chunk-LTCHD3K5.cjs} +2 -2
- package/dist/{chunk-AKMTPCLC.cjs.map → chunk-LTCHD3K5.cjs.map} +1 -1
- package/dist/{chunk-NW6D6AFL.js → chunk-LWLHCUDP.js} +10 -10
- package/dist/{chunk-NW6D6AFL.js.map → chunk-LWLHCUDP.js.map} +1 -1
- package/dist/{chunk-YR45POH2.js → chunk-MAEANAAJ.js} +3 -3
- package/dist/{chunk-YR45POH2.js.map → chunk-MAEANAAJ.js.map} +1 -1
- package/dist/{chunk-X5HLVACK.js → chunk-MLCIINXT.js} +4 -4
- package/dist/{chunk-X5HLVACK.js.map → chunk-MLCIINXT.js.map} +1 -1
- package/dist/{chunk-PHUTJKHL.cjs → chunk-MXIIPFTA.cjs} +3 -3
- package/dist/{chunk-PHUTJKHL.cjs.map → chunk-MXIIPFTA.cjs.map} +1 -1
- package/dist/{chunk-QO4A6U73.cjs → chunk-NCG7NJAW.cjs} +93 -30
- package/dist/chunk-NCG7NJAW.cjs.map +1 -0
- package/dist/{chunk-25MPUVTM.js → chunk-NIE3WBJH.js} +94 -31
- package/dist/chunk-NIE3WBJH.js.map +1 -0
- package/dist/{chunk-4GSFVD5V.js → chunk-NUHHWELE.js} +3 -3
- package/dist/{chunk-4GSFVD5V.js.map → chunk-NUHHWELE.js.map} +1 -1
- package/dist/{chunk-GDKOYVX3.cjs → chunk-NZUQL42A.cjs} +11 -7
- package/dist/chunk-NZUQL42A.cjs.map +1 -0
- package/dist/{chunk-YSIFPHLX.js → chunk-OJQMC426.js} +2 -2
- package/dist/{chunk-YSIFPHLX.js.map → chunk-OJQMC426.js.map} +1 -1
- package/dist/{chunk-SVC7NPQ6.cjs → chunk-PDLVSJMZ.cjs} +6 -6
- package/dist/{chunk-SVC7NPQ6.cjs.map → chunk-PDLVSJMZ.cjs.map} +1 -1
- package/dist/chunk-QAEAC7HO.cjs +4 -0
- package/dist/chunk-QAEAC7HO.cjs.map +1 -0
- package/dist/{chunk-KD7YD6US.cjs → chunk-QOQQVNP3.cjs} +2 -2
- package/dist/{chunk-KD7YD6US.cjs.map → chunk-QOQQVNP3.cjs.map} +1 -1
- package/dist/{chunk-6O6EYKOG.cjs → chunk-R4QWCP2T.cjs} +65 -65
- package/dist/{chunk-6O6EYKOG.cjs.map → chunk-R4QWCP2T.cjs.map} +1 -1
- package/dist/chunk-RCTIPBLU.cjs +1039 -0
- package/dist/chunk-RCTIPBLU.cjs.map +1 -0
- package/dist/{chunk-FSWHZY3T.cjs → chunk-RD2I67C4.cjs} +3 -3
- package/dist/{chunk-FSWHZY3T.cjs.map → chunk-RD2I67C4.cjs.map} +1 -1
- package/dist/chunk-SCGXD334.js +3 -0
- package/dist/chunk-SCGXD334.js.map +1 -0
- package/dist/{chunk-2OXNJJHJ.cjs → chunk-TERHGQ73.cjs} +3 -3
- package/dist/{chunk-2OXNJJHJ.cjs.map → chunk-TERHGQ73.cjs.map} +1 -1
- package/dist/chunk-TZKBW4GA.cjs +578 -0
- package/dist/chunk-TZKBW4GA.cjs.map +1 -0
- package/dist/{chunk-DO7EED3B.cjs → chunk-WZ7WTIVU.cjs} +3 -3
- package/dist/{chunk-DO7EED3B.cjs.map → chunk-WZ7WTIVU.cjs.map} +1 -1
- package/dist/{chunk-6UYMO3PF.cjs → chunk-XX6PNPF2.cjs} +68 -2
- package/dist/chunk-XX6PNPF2.cjs.map +1 -0
- package/dist/{chunk-566FIEPE.js → chunk-YFZNSP7F.js} +3 -3
- package/dist/{chunk-566FIEPE.js.map → chunk-YFZNSP7F.js.map} +1 -1
- package/dist/{chunk-I6Y2KLTZ.js → chunk-ZP4H5HA4.js} +3 -3
- package/dist/{chunk-I6Y2KLTZ.js.map → chunk-ZP4H5HA4.js.map} +1 -1
- package/dist/components/ActionPlan/index.cjs +1 -1
- package/dist/components/ActionPlan/index.js +1 -1
- package/dist/components/AlertDialog/index.cjs +7 -7
- package/dist/components/AlertDialog/index.js +3 -3
- package/dist/components/AudioPlayer/index.cjs +7 -6
- package/dist/components/AudioPlayer/index.js +2 -1
- package/dist/components/CustomizableDashboard/index.cjs +1 -1
- package/dist/components/CustomizableDashboard/index.js +1 -1
- package/dist/components/DateInput/index.cjs +3 -3
- package/dist/components/DateInput/index.js +2 -2
- package/dist/components/EmailEditor/index.cjs +16 -13
- package/dist/components/EmailEditor/index.js +7 -4
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +5 -5
- package/dist/components/KeyboardShortcutsOverlay/index.js +3 -3
- package/dist/components/Markdown/index.cjs +10 -10
- package/dist/components/Markdown/index.js +2 -2
- package/dist/components/MediaEditor/index.cjs +13 -12
- package/dist/components/MediaEditor/index.js +8 -7
- package/dist/components/MediaFeed/index.cjs +10 -7
- package/dist/components/MediaFeed/index.d.cts +33 -0
- package/dist/components/MediaFeed/index.d.ts +33 -0
- package/dist/components/MediaFeed/index.js +9 -6
- package/dist/components/MediaPlayer/index.cjs +13 -6
- package/dist/components/MediaPlayer/index.d.cts +103 -5
- package/dist/components/MediaPlayer/index.d.ts +103 -5
- package/dist/components/MediaPlayer/index.js +6 -3
- package/dist/components/Modal/index.cjs +10 -10
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/RadialExplorer/index.cjs +3 -3
- package/dist/components/RadialExplorer/index.js +2 -2
- package/dist/components/RecordHeader/index.cjs +4 -4
- package/dist/components/RecordHeader/index.js +2 -2
- package/dist/components/RecordLayout/index.cjs +1 -1
- package/dist/components/RecordLayout/index.js +1 -1
- package/dist/components/Sheet/index.cjs +1 -1
- package/dist/components/Sheet/index.js +1 -1
- package/dist/components/Slider/index.cjs +5 -5
- package/dist/components/Slider/index.d.cts +6 -0
- package/dist/components/Slider/index.d.ts +6 -0
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/SliderCalculator/index.cjs +4 -4
- package/dist/components/SliderCalculator/index.js +2 -2
- package/dist/components/SuperChat/index.cjs +20 -18
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +2 -2
- package/dist/components/SuperChat/index.d.ts +2 -2
- package/dist/components/SuperChat/index.js +12 -10
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +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/SuperChat/plugins/index.js +1 -1
- package/dist/components/TagEditor/index.cjs +4 -4
- package/dist/components/TagEditor/index.js +2 -2
- package/dist/components/Textarea/index.cjs +7 -4
- package/dist/components/Textarea/index.js +4 -1
- package/dist/esheet.cjs +122 -123
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.js +25 -26
- package/dist/esheet.js.map +1 -1
- package/dist/hooks/index.cjs +17 -17
- package/dist/hooks/index.js +4 -4
- package/dist/index.cjs +518 -482
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +204 -98
- package/dist/index.d.ts +204 -98
- package/dist/index.js +91 -52
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +32 -62
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.css +145 -8
- package/dist/kerebron.d.cts +299 -1
- package/dist/kerebron.d.ts +299 -1
- package/dist/kerebron.js +22 -63
- package/dist/kerebron.js.map +1 -1
- package/dist/{model-EFXX5JZN.cjs → model-5PB6KNYH.cjs} +20 -20
- package/dist/{model-EFXX5JZN.cjs.map → model-5PB6KNYH.cjs.map} +1 -1
- package/dist/{model-TAARSYDY.js → model-OGWTZEXR.js} +6 -6
- package/dist/{model-TAARSYDY.js.map → model-OGWTZEXR.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/templates.cjs +31 -31
- package/dist/templates.js +2 -2
- package/dist/{types-DSWbrVkM.d.ts → types-BfVolads.d.cts} +33 -0
- package/dist/{types-DSWbrVkM.d.cts → types-BfVolads.d.ts} +33 -0
- package/dist/utils/index.cjs +5 -5
- package/dist/utils/index.d.cts +12 -12
- package/dist/utils/index.d.ts +12 -12
- package/dist/utils/index.js +1 -1
- package/package.json +3 -13
- package/dist/chunk-25MPUVTM.js.map +0 -1
- package/dist/chunk-4M2KE4O5.cjs.map +0 -1
- package/dist/chunk-4SUEBKTY.js.map +0 -1
- package/dist/chunk-6UYMO3PF.cjs.map +0 -1
- package/dist/chunk-DXNVQQYN.cjs.map +0 -1
- package/dist/chunk-ECKIFQSD.cjs +0 -183
- package/dist/chunk-ECKIFQSD.cjs.map +0 -1
- package/dist/chunk-GDKOYVX3.cjs.map +0 -1
- package/dist/chunk-GLXTVCHN.cjs +0 -4
- package/dist/chunk-JEXEFWEM.js.map +0 -1
- package/dist/chunk-QHCAWDMG.cjs.map +0 -1
- package/dist/chunk-QO4A6U73.cjs.map +0 -1
- package/dist/chunk-R5P7NAJQ.js +0 -159
- package/dist/chunk-R5P7NAJQ.js.map +0 -1
- package/dist/chunk-RISZWWEQ.js +0 -3
- package/dist/chunk-RTADGBBN.js.map +0 -1
- package/dist/chunk-TUYWCUKH.js.map +0 -1
- package/dist/chunk-V5VPECJI.js.map +0 -1
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-
|
|
1
|
+
export { EMAIL_BLOCK_TYPES, EmailEditor, createDefaultDesignSettings, createEmailBlock, createEmailHtmlSanitizer, createEmptyEmailContentTree, defaultEmailEditorLabels, generateEmailBlockId, renderEmailMjml } from '../../chunk-AKC677ZF.js';
|
|
2
2
|
import '../../chunk-XBAAHOCP.js';
|
|
3
3
|
import '../../chunk-ME7EVT6F.js';
|
|
4
4
|
import '../../chunk-AQ564XO7.js';
|
|
5
5
|
import '../../chunk-CVNPNZMX.js';
|
|
6
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-2OTPQPJS.js';
|
|
7
|
+
import '../../chunk-VCI2Y7ST.js';
|
|
8
|
+
import '../../chunk-HNXLLDPN.js';
|
|
9
|
+
import '../../chunk-IALTKN3Y.js';
|
|
10
|
+
import '../../chunk-NIE3WBJH.js';
|
|
7
11
|
import '../../chunk-EWPNM6OO.js';
|
|
8
12
|
import '../../chunk-5YOT4DVH.js';
|
|
9
13
|
import '../../chunk-OQWZYKJM.js';
|
|
10
|
-
import '../../chunk-VCI2Y7ST.js';
|
|
11
14
|
import '../../chunk-AMYFRY7K.js';
|
|
12
15
|
import '../../chunk-OYUIEJPN.js';
|
|
13
16
|
import '../../chunk-6NZXWKUE.js';
|
|
14
17
|
import '../../chunk-3IMM2PM4.js';
|
|
15
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-RUGHNFQG.js';
|
|
16
19
|
import '../../chunk-HTZ27DGZ.js';
|
|
17
20
|
import '../../chunk-T4ME7QCT.js';
|
|
18
21
|
import '../../chunk-62ZOA6PX.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunk3M2BBOXF_cjs = require('../../chunk-3M2BBOXF.cjs');
|
|
4
|
+
require('../../chunk-FRPELUI5.cjs');
|
|
5
5
|
require('../../chunk-NNEFAUHV.cjs');
|
|
6
|
-
require('../../chunk-FHY3K6PL.cjs');
|
|
7
6
|
require('../../chunk-SCV7C55E.cjs');
|
|
7
|
+
require('../../chunk-FHY3K6PL.cjs');
|
|
8
8
|
require('../../chunk-IEY3ZJIT.cjs');
|
|
9
9
|
require('../../chunk-S5RVSXDV.cjs');
|
|
10
10
|
require('../../chunk-EUAMEVVI.cjs');
|
|
@@ -13,11 +13,11 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "Kbd", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunk3M2BBOXF_cjs.Kbd; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "KeyboardShortcutsOverlay", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk3M2BBOXF_cjs.KeyboardShortcutsOverlay; }
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=index.cjs.map
|
|
23
23
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Kbd, KeyboardShortcutsOverlay } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Kbd, KeyboardShortcutsOverlay } from '../../chunk-NUHHWELE.js';
|
|
2
|
+
import '../../chunk-GKMMDKYY.js';
|
|
3
3
|
import '../../chunk-4SMSH4OY.js';
|
|
4
|
-
import '../../chunk-T4ME7QCT.js';
|
|
5
4
|
import '../../chunk-VSQF22GL.js';
|
|
5
|
+
import '../../chunk-T4ME7QCT.js';
|
|
6
6
|
import '../../chunk-F4N67NAF.js';
|
|
7
7
|
import '../../chunk-TQONQSJO.js';
|
|
8
8
|
import '../../chunk-PX6F3LHL.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQOQQVNP3_cjs = require('../../chunk-QOQQVNP3.cjs');
|
|
4
|
+
var chunkN7AIZWQS_cjs = require('../../chunk-N7AIZWQS.cjs');
|
|
4
5
|
var chunkVVKUYQER_cjs = require('../../chunk-VVKUYQER.cjs');
|
|
5
6
|
var chunkVIVS44IG_cjs = require('../../chunk-VIVS44IG.cjs');
|
|
6
7
|
var chunkG42V64UW_cjs = require('../../chunk-G42V64UW.cjs');
|
|
7
|
-
var chunkN7AIZWQS_cjs = require('../../chunk-N7AIZWQS.cjs');
|
|
8
8
|
var chunkFNSFMM4F_cjs = require('../../chunk-FNSFMM4F.cjs');
|
|
9
9
|
require('../../chunk-EACNRR3C.cjs');
|
|
10
10
|
require('../../chunk-FSARTLUE.cjs');
|
|
@@ -16,19 +16,23 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "CodeBlock", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkQOQQVNP3_cjs.CodeBlock; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "MarkdownRenderer", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkQOQQVNP3_cjs.MarkdownRenderer; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "highlightCode", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkQOQQVNP3_cjs.highlightCode; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "useMarkdown", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkQOQQVNP3_cjs.useMarkdown; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "MermaidBlock", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkN7AIZWQS_cjs.MermaidBlock; }
|
|
32
36
|
});
|
|
33
37
|
Object.defineProperty(exports, "SurveyBlock", {
|
|
34
38
|
enumerable: true,
|
|
@@ -42,10 +46,6 @@ Object.defineProperty(exports, "HtmlPreviewBlock", {
|
|
|
42
46
|
enumerable: true,
|
|
43
47
|
get: function () { return chunkG42V64UW_cjs.HtmlPreviewBlock; }
|
|
44
48
|
});
|
|
45
|
-
Object.defineProperty(exports, "MermaidBlock", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return chunkN7AIZWQS_cjs.MermaidBlock; }
|
|
48
|
-
});
|
|
49
49
|
Object.defineProperty(exports, "FenceBlock", {
|
|
50
50
|
enumerable: true,
|
|
51
51
|
get: function () { return chunkFNSFMM4F_cjs.FenceBlock; }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { CodeBlock, MarkdownRenderer, highlightCode, useMarkdown } from '../../chunk-
|
|
1
|
+
export { CodeBlock, MarkdownRenderer, highlightCode, useMarkdown } from '../../chunk-OJQMC426.js';
|
|
2
|
+
export { MermaidBlock } from '../../chunk-YCPWQWQQ.js';
|
|
2
3
|
export { SurveyBlock } from '../../chunk-OYLZ5PF2.js';
|
|
3
4
|
export { CsvBlock } from '../../chunk-NA3NRLX2.js';
|
|
4
5
|
export { HtmlPreviewBlock } from '../../chunk-QATEO4KC.js';
|
|
5
|
-
export { MermaidBlock } from '../../chunk-YCPWQWQQ.js';
|
|
6
6
|
export { FenceBlock } from '../../chunk-Q5APDRMO.js';
|
|
7
7
|
import '../../chunk-N5JDL4VE.js';
|
|
8
8
|
import '../../chunk-WX2XB6FP.js';
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
var chunkGG3IK5TL_cjs = require('../../chunk-GG3IK5TL.cjs');
|
|
4
|
+
require('../../chunk-TZKBW4GA.cjs');
|
|
5
|
+
require('../../chunk-NZUQL42A.cjs');
|
|
6
|
+
require('../../chunk-LTCHD3K5.cjs');
|
|
6
7
|
require('../../chunk-GM376OD6.cjs');
|
|
7
8
|
require('../../chunk-4UDEMJE4.cjs');
|
|
8
|
-
require('../../chunk-
|
|
9
|
+
require('../../chunk-HDZQLTBP.cjs');
|
|
9
10
|
require('../../chunk-UPWIJC6I.cjs');
|
|
10
11
|
require('../../chunk-7AECNMYV.cjs');
|
|
11
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-FRPELUI5.cjs');
|
|
13
|
+
require('../../chunk-NNEFAUHV.cjs');
|
|
14
|
+
require('../../chunk-SCV7C55E.cjs');
|
|
12
15
|
require('../../chunk-I44YNYI6.cjs');
|
|
13
16
|
require('../../chunk-Z5S5JEJD.cjs');
|
|
14
|
-
require('../../chunk-NNEFAUHV.cjs');
|
|
15
17
|
require('../../chunk-FHY3K6PL.cjs');
|
|
16
18
|
require('../../chunk-FSGEDDF2.cjs');
|
|
17
19
|
require('../../chunk-AOHJILLU.cjs');
|
|
18
|
-
require('../../chunk-SCV7C55E.cjs');
|
|
19
20
|
require('../../chunk-Z3WMDVMR.cjs');
|
|
20
21
|
require('../../chunk-EACNRR3C.cjs');
|
|
21
22
|
require('../../chunk-FSARTLUE.cjs');
|
|
@@ -28,23 +29,23 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
28
29
|
|
|
29
30
|
Object.defineProperty(exports, "FillerWordsModal", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkGG3IK5TL_cjs.FillerWordsModal; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "MediaEditor", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkGG3IK5TL_cjs.MediaEditor; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "SilenceSettingsModal", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkGG3IK5TL_cjs.SilenceSettingsModal; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "SpeedMarkerMenu", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkGG3IK5TL_cjs.SpeedMarkerMenu; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "WordEditorModal", {
|
|
46
47
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkGG3IK5TL_cjs.WordEditorModal; }
|
|
48
49
|
});
|
|
49
50
|
//# sourceMappingURL=index.cjs.map
|
|
50
51
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { FillerWordsModal, MediaEditor, SilenceSettingsModal, SpeedMarkerMenu, WordEditorModal } from '../../chunk-LQ22CY7X.js';
|
|
2
|
+
import '../../chunk-JCIQIR5V.js';
|
|
3
|
+
import '../../chunk-CRR7AE5D.js';
|
|
4
|
+
import '../../chunk-CKECOCYJ.js';
|
|
4
5
|
import '../../chunk-GAI6SRJ3.js';
|
|
5
6
|
import '../../chunk-6LIC3DKE.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-4LKAZW2W.js';
|
|
7
8
|
import '../../chunk-VCI2Y7ST.js';
|
|
8
9
|
import '../../chunk-753Z3NXL.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-GKMMDKYY.js';
|
|
11
|
+
import '../../chunk-4SMSH4OY.js';
|
|
12
|
+
import '../../chunk-VSQF22GL.js';
|
|
10
13
|
import '../../chunk-6NZXWKUE.js';
|
|
11
14
|
import '../../chunk-3IMM2PM4.js';
|
|
12
|
-
import '../../chunk-4SMSH4OY.js';
|
|
13
15
|
import '../../chunk-T4ME7QCT.js';
|
|
14
16
|
import '../../chunk-62ZOA6PX.js';
|
|
15
17
|
import '../../chunk-WSNMQQ4P.js';
|
|
16
|
-
import '../../chunk-VSQF22GL.js';
|
|
17
18
|
import '../../chunk-YVKBXNPK.js';
|
|
18
19
|
import '../../chunk-N5JDL4VE.js';
|
|
19
20
|
import '../../chunk-WX2XB6FP.js';
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
3
|
+
var chunkAHYDJN4H_cjs = require('../../chunk-AHYDJN4H.cjs');
|
|
4
|
+
require('../../chunk-D3FNZMOB.cjs');
|
|
5
|
+
require('../../chunk-TZKBW4GA.cjs');
|
|
6
|
+
require('../../chunk-NZUQL42A.cjs');
|
|
7
|
+
require('../../chunk-LTCHD3K5.cjs');
|
|
8
|
+
require('../../chunk-HDZQLTBP.cjs');
|
|
7
9
|
require('../../chunk-P22YCUVM.cjs');
|
|
8
10
|
require('../../chunk-Q3YVLO52.cjs');
|
|
9
11
|
require('../../chunk-GKDHMNUA.cjs');
|
|
10
|
-
require('../../chunk-
|
|
12
|
+
require('../../chunk-FRPELUI5.cjs');
|
|
11
13
|
require('../../chunk-NNEFAUHV.cjs');
|
|
12
|
-
require('../../chunk-FHY3K6PL.cjs');
|
|
13
14
|
require('../../chunk-SCV7C55E.cjs');
|
|
15
|
+
require('../../chunk-FHY3K6PL.cjs');
|
|
14
16
|
require('../../chunk-YW2AKBLS.cjs');
|
|
17
|
+
require('../../chunk-Z3WMDVMR.cjs');
|
|
15
18
|
require('../../chunk-EACNRR3C.cjs');
|
|
16
19
|
require('../../chunk-FSARTLUE.cjs');
|
|
17
20
|
require('../../chunk-HGJHWI7W.cjs');
|
|
@@ -23,7 +26,7 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
23
26
|
|
|
24
27
|
Object.defineProperty(exports, "MediaFeed", {
|
|
25
28
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkAHYDJN4H_cjs.MediaFeed; }
|
|
27
30
|
});
|
|
28
31
|
//# sourceMappingURL=index.cjs.map
|
|
29
32
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -40,6 +40,24 @@ interface MediaFeedLabels {
|
|
|
40
40
|
next: string;
|
|
41
41
|
play: string;
|
|
42
42
|
pause: string;
|
|
43
|
+
/** The player's own controls in the `overlay` layout. */
|
|
44
|
+
mute: string;
|
|
45
|
+
unmute: string;
|
|
46
|
+
seek: string;
|
|
47
|
+
playerFullscreen: string;
|
|
48
|
+
exitPlayerFullscreen: string;
|
|
49
|
+
pictureInPicture: string;
|
|
50
|
+
exitPictureInPicture: string;
|
|
51
|
+
/** The player's elapsed and total time, already formatted. */
|
|
52
|
+
time: (current: string, duration: string) => string;
|
|
53
|
+
/** The player's speed button: its text for a rate, and its name. */
|
|
54
|
+
playerRate: (rate: number) => string;
|
|
55
|
+
playerSpeed: (rate: string) => string;
|
|
56
|
+
showCaptions: string;
|
|
57
|
+
hideCaptions: string;
|
|
58
|
+
/** The overlay's toggle for a title or caption that doesn't fit. */
|
|
59
|
+
showMore: string;
|
|
60
|
+
showLess: string;
|
|
43
61
|
blockedAutoplay: string;
|
|
44
62
|
mediaError: string;
|
|
45
63
|
openSource: string;
|
|
@@ -73,6 +91,21 @@ interface MediaFeedProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
73
91
|
getAuthor?: (item: T) => MediaFeedAuthor;
|
|
74
92
|
/** Host-owned actions, such as reactions or opening a conversation. */
|
|
75
93
|
renderActions?: (item: T) => React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* `stacked` (default): each item is a card, its details under the media.
|
|
96
|
+
* `overlay`: the media fills each item edge to edge on a dark stage, with
|
|
97
|
+
* the details at its foot as short-video apps place them (author, title and
|
|
98
|
+
* caption at the start, actions in a column at the end), Previous/Next on
|
|
99
|
+
* the end edge, and the player's touch-first overlay controls. Suits a phone
|
|
100
|
+
* or a full-height pane, upright or sideways.
|
|
101
|
+
*/
|
|
102
|
+
layout?: 'stacked' | 'overlay';
|
|
103
|
+
/**
|
|
104
|
+
* Offer the full-screen viewer, an expand button on each item. Defaults to
|
|
105
|
+
* `true` for `stacked` and `false` for `overlay`, where the feed already
|
|
106
|
+
* fills its space and the player has its own full screen.
|
|
107
|
+
*/
|
|
108
|
+
allowFullscreen?: boolean;
|
|
76
109
|
/** Replace the built-in player, respecting its active playback boundary. */
|
|
77
110
|
renderMedia?: (media: MediaFeedMedia, context: MediaFeedRenderContext<T>) => React.ReactNode;
|
|
78
111
|
/** Controlled selection. Changes scroll the selected record into view. */
|
|
@@ -40,6 +40,24 @@ interface MediaFeedLabels {
|
|
|
40
40
|
next: string;
|
|
41
41
|
play: string;
|
|
42
42
|
pause: string;
|
|
43
|
+
/** The player's own controls in the `overlay` layout. */
|
|
44
|
+
mute: string;
|
|
45
|
+
unmute: string;
|
|
46
|
+
seek: string;
|
|
47
|
+
playerFullscreen: string;
|
|
48
|
+
exitPlayerFullscreen: string;
|
|
49
|
+
pictureInPicture: string;
|
|
50
|
+
exitPictureInPicture: string;
|
|
51
|
+
/** The player's elapsed and total time, already formatted. */
|
|
52
|
+
time: (current: string, duration: string) => string;
|
|
53
|
+
/** The player's speed button: its text for a rate, and its name. */
|
|
54
|
+
playerRate: (rate: number) => string;
|
|
55
|
+
playerSpeed: (rate: string) => string;
|
|
56
|
+
showCaptions: string;
|
|
57
|
+
hideCaptions: string;
|
|
58
|
+
/** The overlay's toggle for a title or caption that doesn't fit. */
|
|
59
|
+
showMore: string;
|
|
60
|
+
showLess: string;
|
|
43
61
|
blockedAutoplay: string;
|
|
44
62
|
mediaError: string;
|
|
45
63
|
openSource: string;
|
|
@@ -73,6 +91,21 @@ interface MediaFeedProps<T> extends Omit<React.HTMLAttributes<HTMLDivElement>, '
|
|
|
73
91
|
getAuthor?: (item: T) => MediaFeedAuthor;
|
|
74
92
|
/** Host-owned actions, such as reactions or opening a conversation. */
|
|
75
93
|
renderActions?: (item: T) => React.ReactNode;
|
|
94
|
+
/**
|
|
95
|
+
* `stacked` (default): each item is a card, its details under the media.
|
|
96
|
+
* `overlay`: the media fills each item edge to edge on a dark stage, with
|
|
97
|
+
* the details at its foot as short-video apps place them (author, title and
|
|
98
|
+
* caption at the start, actions in a column at the end), Previous/Next on
|
|
99
|
+
* the end edge, and the player's touch-first overlay controls. Suits a phone
|
|
100
|
+
* or a full-height pane, upright or sideways.
|
|
101
|
+
*/
|
|
102
|
+
layout?: 'stacked' | 'overlay';
|
|
103
|
+
/**
|
|
104
|
+
* Offer the full-screen viewer, an expand button on each item. Defaults to
|
|
105
|
+
* `true` for `stacked` and `false` for `overlay`, where the feed already
|
|
106
|
+
* fills its space and the player has its own full screen.
|
|
107
|
+
*/
|
|
108
|
+
allowFullscreen?: boolean;
|
|
76
109
|
/** Replace the built-in player, respecting its active playback boundary. */
|
|
77
110
|
renderMedia?: (media: MediaFeedMedia, context: MediaFeedRenderContext<T>) => React.ReactNode;
|
|
78
111
|
/** Controlled selection. Changes scroll the selected record into view. */
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
export { MediaFeed } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
1
|
+
export { MediaFeed } from '../../chunk-JUY2JLFL.js';
|
|
2
|
+
import '../../chunk-SCGXD334.js';
|
|
3
|
+
import '../../chunk-JCIQIR5V.js';
|
|
4
|
+
import '../../chunk-CRR7AE5D.js';
|
|
5
|
+
import '../../chunk-CKECOCYJ.js';
|
|
6
|
+
import '../../chunk-4LKAZW2W.js';
|
|
5
7
|
import '../../chunk-H2Y7HZV5.js';
|
|
6
8
|
import '../../chunk-DVDT7TX7.js';
|
|
7
9
|
import '../../chunk-TI3TQQ7F.js';
|
|
8
|
-
import '../../chunk-
|
|
10
|
+
import '../../chunk-GKMMDKYY.js';
|
|
9
11
|
import '../../chunk-4SMSH4OY.js';
|
|
10
|
-
import '../../chunk-T4ME7QCT.js';
|
|
11
12
|
import '../../chunk-VSQF22GL.js';
|
|
13
|
+
import '../../chunk-T4ME7QCT.js';
|
|
12
14
|
import '../../chunk-XDU65GLW.js';
|
|
15
|
+
import '../../chunk-YVKBXNPK.js';
|
|
13
16
|
import '../../chunk-N5JDL4VE.js';
|
|
14
17
|
import '../../chunk-WX2XB6FP.js';
|
|
15
18
|
import '../../chunk-VP3XNLUL.js';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../chunk-
|
|
4
|
-
var
|
|
5
|
-
require('../../chunk-
|
|
3
|
+
require('../../chunk-D3FNZMOB.cjs');
|
|
4
|
+
var chunkTZKBW4GA_cjs = require('../../chunk-TZKBW4GA.cjs');
|
|
5
|
+
require('../../chunk-NZUQL42A.cjs');
|
|
6
|
+
require('../../chunk-LTCHD3K5.cjs');
|
|
7
|
+
require('../../chunk-HDZQLTBP.cjs');
|
|
8
|
+
require('../../chunk-Z3WMDVMR.cjs');
|
|
6
9
|
require('../../chunk-EACNRR3C.cjs');
|
|
7
10
|
require('../../chunk-FSARTLUE.cjs');
|
|
8
11
|
require('../../chunk-HGJHWI7W.cjs');
|
|
@@ -11,17 +14,21 @@ require('../../chunk-EUAMEVVI.cjs');
|
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
|
|
17
|
+
Object.defineProperty(exports, "MediaControls", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return chunkTZKBW4GA_cjs.MediaControls; }
|
|
20
|
+
});
|
|
14
21
|
Object.defineProperty(exports, "MediaPlayer", {
|
|
15
22
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkTZKBW4GA_cjs.MediaPlayer; }
|
|
17
24
|
});
|
|
18
25
|
Object.defineProperty(exports, "inferMediaKind", {
|
|
19
26
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTZKBW4GA_cjs.inferMediaKind; }
|
|
21
28
|
});
|
|
22
29
|
Object.defineProperty(exports, "mediaPlayerVariants", {
|
|
23
30
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkTZKBW4GA_cjs.mediaPlayerVariants; }
|
|
25
32
|
});
|
|
26
33
|
//# sourceMappingURL=index.cjs.map
|
|
27
34
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -2,6 +2,95 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
|
+
type MediaTransportState = 'idle' | 'loading' | 'playing' | 'paused' | 'error';
|
|
6
|
+
interface UseMediaTransportReturn {
|
|
7
|
+
/**
|
|
8
|
+
* Callback ref for the `<audio>`/`<video>` element to control. Pass this to
|
|
9
|
+
* the element's `ref` (or call it imperatively). Transport listeners attach
|
|
10
|
+
* when an element mounts and detach when it unmounts.
|
|
11
|
+
*/
|
|
12
|
+
setMediaElement: (element: HTMLMediaElement | null) => void;
|
|
13
|
+
/** The currently attached media element, or `null`. */
|
|
14
|
+
mediaElement: HTMLMediaElement | null;
|
|
15
|
+
/** Derived transport state. */
|
|
16
|
+
state: MediaTransportState;
|
|
17
|
+
/** Current playback position in milliseconds. */
|
|
18
|
+
currentTimeMs: number;
|
|
19
|
+
/** Media duration in milliseconds (`0` until known / non-finite). */
|
|
20
|
+
durationMs: number;
|
|
21
|
+
/** Current playback rate. */
|
|
22
|
+
playbackRate: number;
|
|
23
|
+
/** `true` while `state === 'playing'`. */
|
|
24
|
+
isPlaying: boolean;
|
|
25
|
+
/** `true` while `state === 'loading'`. */
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
/** Start playback. */
|
|
28
|
+
play: () => void;
|
|
29
|
+
/** Pause playback. */
|
|
30
|
+
pause: () => void;
|
|
31
|
+
/** Toggle between play and pause. */
|
|
32
|
+
togglePlay: () => void;
|
|
33
|
+
/** Seek to a position in milliseconds. */
|
|
34
|
+
seekToMs: (timeMs: number) => void;
|
|
35
|
+
/** Set the playback rate multiplier. */
|
|
36
|
+
setPlaybackRate: (rate: number) => void;
|
|
37
|
+
/** Read the current position in milliseconds. */
|
|
38
|
+
getCurrentTimeMs: () => number;
|
|
39
|
+
/** Read the duration in milliseconds (`0` when unknown). */
|
|
40
|
+
getDurationMs: () => number;
|
|
41
|
+
/** Whether playback is currently paused (reads the element directly). */
|
|
42
|
+
isPaused: () => boolean;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** Every string the controls show or announce, for the host to localize. */
|
|
46
|
+
interface MediaControlsLabels {
|
|
47
|
+
play: string;
|
|
48
|
+
pause: string;
|
|
49
|
+
mute: string;
|
|
50
|
+
unmute: string;
|
|
51
|
+
seek: string;
|
|
52
|
+
fullscreen: string;
|
|
53
|
+
exitFullscreen: string;
|
|
54
|
+
pictureInPicture: string;
|
|
55
|
+
exitPictureInPicture: string;
|
|
56
|
+
/** The elapsed and total time, already formatted (`1:05`, `4:30`). */
|
|
57
|
+
time: (current: string, duration: string) => string;
|
|
58
|
+
/** The speed button's text for a rate (`1.5×`). */
|
|
59
|
+
rate: (rate: number) => string;
|
|
60
|
+
/** The speed button's accessible name, given its text. */
|
|
61
|
+
speed: (rate: string) => string;
|
|
62
|
+
showCaptions: string;
|
|
63
|
+
hideCaptions: string;
|
|
64
|
+
}
|
|
65
|
+
interface MediaControlsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
66
|
+
/** The transport attached to the `<video>` these controls drive. */
|
|
67
|
+
transport: UseMediaTransportReturn;
|
|
68
|
+
/**
|
|
69
|
+
* The box that goes full screen with the controls (the video and these
|
|
70
|
+
* controls' shared parent). Where the browser can't take an element full
|
|
71
|
+
* screen (an iPhone), the video opens in the system's own player instead.
|
|
72
|
+
*/
|
|
73
|
+
fullscreenTarget?: React.RefObject<HTMLElement | null>;
|
|
74
|
+
/** Localized text for every control; English by default. */
|
|
75
|
+
labels?: Partial<MediaControlsLabels>;
|
|
76
|
+
/** The speeds the speed button cycles through (default `[1, 1.5, 2]`). */
|
|
77
|
+
playbackRates?: readonly number[];
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Touch-first controls laid over a `<video>`, in place of the browser's own.
|
|
81
|
+
* A tap on the picture plays or pauses it, a round ▶ shows while it's paused,
|
|
82
|
+
* and a bar along the bottom has play/pause, the time, a seek bar, playback
|
|
83
|
+
* speed, captions on/off when the video has a caption track, mute, and
|
|
84
|
+
* picture in picture and full screen where the browser supports them.
|
|
85
|
+
*
|
|
86
|
+
* `MediaPlayer` renders it for `controlsStyle="overlay"`. To use it directly,
|
|
87
|
+
* render it in a positioned box with the video, attach
|
|
88
|
+
* `transport.setMediaElement` to the video's `ref` and give the video
|
|
89
|
+
* `playsInline` (without it, an iPhone plays it in the system player, away
|
|
90
|
+
* from these controls).
|
|
91
|
+
*/
|
|
92
|
+
declare const MediaControls: React.ForwardRefExoticComponent<MediaControlsProps & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
|
|
5
94
|
type MediaPlayerState = 'idle' | 'loading' | 'playing' | 'paused' | 'error';
|
|
6
95
|
type MediaKind = 'video' | 'audio';
|
|
7
96
|
/** Ref handle for controlling {@link MediaPlayer} programmatically. */
|
|
@@ -32,9 +121,16 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
|
|
|
32
121
|
src: string;
|
|
33
122
|
/** Force the media kind; when omitted it is inferred from the src extension. */
|
|
34
123
|
kind?: MediaKind;
|
|
35
|
-
/** Whether to show
|
|
124
|
+
/** Whether to show controls (default `true`). */
|
|
36
125
|
controls?: boolean;
|
|
37
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* Which controls a video gets (default `'native'`, the browser's own).
|
|
128
|
+
* `'overlay'` lays touch-first controls over it ({@link MediaControls}),
|
|
129
|
+
* the same in every browser and in a mobile app's web view. Audio always uses
|
|
130
|
+
* the browser's.
|
|
131
|
+
*/
|
|
132
|
+
controlsStyle?: 'native' | 'overlay';
|
|
133
|
+
/** Begin muted; the controls can still unmute it. */
|
|
38
134
|
muted?: boolean;
|
|
39
135
|
/** Repeat playback when the media ends. */
|
|
40
136
|
loop?: boolean;
|
|
@@ -45,11 +141,13 @@ interface MediaPlayerProps extends VariantProps<typeof mediaPlayerVariants> {
|
|
|
45
141
|
/** Caption/subtitle `<track>` elements. The `src` attribute is always set
|
|
46
142
|
* on the media element, so alternative `<source>` children are ignored. */
|
|
47
143
|
children?: React.ReactNode;
|
|
48
|
-
/**
|
|
144
|
+
/** The speeds the overlay controls' speed button cycles through (default `[1, 1.5, 2]`). */
|
|
145
|
+
playbackRates?: readonly number[];
|
|
146
|
+
/** Localized load-error and retry text, and the overlay controls' labels. */
|
|
49
147
|
labels?: {
|
|
50
148
|
error?: string;
|
|
51
149
|
retry?: string;
|
|
52
|
-
}
|
|
150
|
+
} & Partial<MediaControlsLabels>;
|
|
53
151
|
/** Callback when playback state changes. */
|
|
54
152
|
onStateChange?: (state: MediaPlayerState) => void;
|
|
55
153
|
/** Callback when playback ends. */
|
|
@@ -86,4 +184,4 @@ declare function inferMediaKind(src: string): MediaKind;
|
|
|
86
184
|
*/
|
|
87
185
|
declare const MediaPlayer: React.ForwardRefExoticComponent<MediaPlayerProps & React.RefAttributes<MediaPlayerRef>>;
|
|
88
186
|
|
|
89
|
-
export { type MediaKind, MediaPlayer, type MediaPlayerProps, type MediaPlayerRef, type MediaPlayerState, inferMediaKind, mediaPlayerVariants };
|
|
187
|
+
export { MediaControls, type MediaControlsLabels, type MediaControlsProps, type MediaKind, MediaPlayer, type MediaPlayerProps, type MediaPlayerRef, type MediaPlayerState, inferMediaKind, mediaPlayerVariants };
|