@maveio/components 0.0.173 → 0.0.174

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.
Files changed (193) hide show
  1. package/dist/chunk-3FKZJPP6.cjs +2 -0
  2. package/dist/chunk-HDVI5ING.js +2583 -0
  3. package/dist/chunk-KCEF7VQS.cjs +2583 -0
  4. package/dist/chunk-SWNRHAZK.js +2 -0
  5. package/dist/config.cjs +1 -1
  6. package/dist/config.d.cts +9 -3
  7. package/dist/config.d.ts +9 -3
  8. package/dist/config.js +1 -1
  9. package/dist/de-4HGSV4NX.cjs +1 -0
  10. package/dist/de-AM53RBF2.js +1 -0
  11. package/dist/{themes/default.cjs → default-LFHA4VXP.cjs} +1 -1
  12. package/dist/{themes/default.js → default-OIQBJJAX.js} +1 -1
  13. package/dist/{themes/dolphin.cjs → dolphin-B2Z26DWX.cjs} +1 -1
  14. package/dist/{themes/dolphin.js → dolphin-JJOJS5EI.js} +1 -1
  15. package/dist/en-H7UBETC6.js +1 -0
  16. package/dist/en-M6OWHDJ2.cjs +1 -0
  17. package/dist/fr-2IL2CZKO.js +1 -0
  18. package/dist/fr-OXQSVAX4.cjs +1 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.cts +470 -16
  21. package/dist/index.d.ts +470 -16
  22. package/dist/index.js +1 -1
  23. package/dist/nl-CPFN66G7.js +1 -0
  24. package/dist/nl-YHUQM5IK.cjs +1 -0
  25. package/dist/react.cjs +1 -1
  26. package/dist/react.d.cts +2 -11
  27. package/dist/react.d.ts +2 -11
  28. package/dist/react.js +1 -1
  29. package/dist/{themes/synthwave.cjs → synthwave-JAIVYLQN.cjs} +1 -1
  30. package/dist/{themes/synthwave.js → synthwave-X45G4Z3J.js} +1 -1
  31. package/dist/vue.cjs +1 -1
  32. package/dist/vue.d.cts +1 -0
  33. package/dist/vue.d.ts +1 -0
  34. package/dist/vue.js +1 -1
  35. package/package.json +7 -2
  36. package/dist/chunk-2E5GLLOS.cjs +0 -19
  37. package/dist/chunk-2FUCHY2J.cjs +0 -35
  38. package/dist/chunk-2JCNQPEK.js +0 -1
  39. package/dist/chunk-3BAQWQNY.cjs +0 -25
  40. package/dist/chunk-3UQNIS3L.js +0 -194
  41. package/dist/chunk-474VILDO.cjs +0 -194
  42. package/dist/chunk-5NKBIUPL.cjs +0 -1
  43. package/dist/chunk-5PIHL662.js +0 -19
  44. package/dist/chunk-5ZZKAVXJ.js +0 -38
  45. package/dist/chunk-6DDQAAOQ.cjs +0 -211
  46. package/dist/chunk-6XQ6KWYP.js +0 -154
  47. package/dist/chunk-AOBEOJ2U.cjs +0 -10
  48. package/dist/chunk-B6P2GJBQ.js +0 -9
  49. package/dist/chunk-BCTXH32I.cjs +0 -1
  50. package/dist/chunk-BTCK3T4L.cjs +0 -24
  51. package/dist/chunk-CNPQ5Q2M.js +0 -1
  52. package/dist/chunk-CVXHA76S.js +0 -3
  53. package/dist/chunk-DL4BV5IH.cjs +0 -24
  54. package/dist/chunk-DXS4BF7U.js +0 -33
  55. package/dist/chunk-EVKPEPYP.cjs +0 -2
  56. package/dist/chunk-FAONFKQ2.cjs +0 -9
  57. package/dist/chunk-GNSSFU2Y.cjs +0 -7
  58. package/dist/chunk-HMVS6DJE.js +0 -186
  59. package/dist/chunk-IBQULJZC.cjs +0 -3
  60. package/dist/chunk-J7OISSKU.cjs +0 -1
  61. package/dist/chunk-K5Z7QHTN.cjs +0 -1
  62. package/dist/chunk-KNLOZXCA.cjs +0 -33
  63. package/dist/chunk-KO3CETGD.js +0 -25
  64. package/dist/chunk-KZGLJUFY.cjs +0 -38
  65. package/dist/chunk-LVGLIRQU.cjs +0 -186
  66. package/dist/chunk-MK4VIJT3.js +0 -1
  67. package/dist/chunk-MMHEOMF5.js +0 -9
  68. package/dist/chunk-NDPOBFNC.js +0 -20
  69. package/dist/chunk-NPP5B5PV.cjs +0 -16
  70. package/dist/chunk-NRAQPBUM.js +0 -7
  71. package/dist/chunk-OX42Y2HR.js +0 -1
  72. package/dist/chunk-P6SBZPDR.js +0 -1
  73. package/dist/chunk-PTN427IG.js +0 -24
  74. package/dist/chunk-QFF6OUH6.js +0 -9
  75. package/dist/chunk-QOM4AP6R.cjs +0 -9
  76. package/dist/chunk-QQDH35OW.cjs +0 -9
  77. package/dist/chunk-R3SDTEHC.js +0 -9
  78. package/dist/chunk-R6AMJOJL.cjs +0 -154
  79. package/dist/chunk-RHTBV6KZ.js +0 -24
  80. package/dist/chunk-RKL7JR7S.js +0 -211
  81. package/dist/chunk-RQN3DXJB.cjs +0 -1
  82. package/dist/chunk-RRCW5BBR.cjs +0 -9
  83. package/dist/chunk-S4RV2LTD.cjs +0 -1639
  84. package/dist/chunk-SDKTBB4N.cjs +0 -1
  85. package/dist/chunk-SWRFZ3FV.js +0 -1
  86. package/dist/chunk-TH3DUBVR.js +0 -35
  87. package/dist/chunk-TJ5F2FGY.cjs +0 -20
  88. package/dist/chunk-TKJYRGEU.cjs +0 -1
  89. package/dist/chunk-WE5NUDRY.js +0 -0
  90. package/dist/chunk-WOXKZOJ3.js +0 -10
  91. package/dist/chunk-X7OGQ4KH.cjs +0 -1
  92. package/dist/chunk-YJOQHWVN.js +0 -1639
  93. package/dist/chunk-YPCQNE3R.js +0 -16
  94. package/dist/chunk-ZQXFK7PD.js +0 -1
  95. package/dist/chunk-ZTDQPDC6.js +0 -2
  96. package/dist/components/audio-track-menu.cjs +0 -1
  97. package/dist/components/audio-track-menu.d.cts +0 -27
  98. package/dist/components/audio-track-menu.d.ts +0 -27
  99. package/dist/components/audio-track-menu.js +0 -1
  100. package/dist/components/captions-menu-button.cjs +0 -1
  101. package/dist/components/captions-menu-button.d.cts +0 -10
  102. package/dist/components/captions-menu-button.d.ts +0 -10
  103. package/dist/components/captions-menu-button.js +0 -1
  104. package/dist/components/clip.cjs +0 -1
  105. package/dist/components/clip.d.cts +0 -55
  106. package/dist/components/clip.d.ts +0 -55
  107. package/dist/components/clip.js +0 -1
  108. package/dist/components/files.cjs +0 -1
  109. package/dist/components/files.d.cts +0 -22
  110. package/dist/components/files.d.ts +0 -22
  111. package/dist/components/files.js +0 -1
  112. package/dist/components/img.cjs +0 -1
  113. package/dist/components/img.d.cts +0 -16
  114. package/dist/components/img.d.ts +0 -16
  115. package/dist/components/img.js +0 -1
  116. package/dist/components/list.cjs +0 -1
  117. package/dist/components/list.d.cts +0 -29
  118. package/dist/components/list.d.ts +0 -29
  119. package/dist/components/list.js +0 -1
  120. package/dist/components/player.cjs +0 -1
  121. package/dist/components/player.d.cts +0 -104
  122. package/dist/components/player.d.ts +0 -104
  123. package/dist/components/player.js +0 -1
  124. package/dist/components/pop.cjs +0 -1
  125. package/dist/components/pop.d.cts +0 -37
  126. package/dist/components/pop.d.ts +0 -37
  127. package/dist/components/pop.js +0 -1
  128. package/dist/components/text.cjs +0 -1
  129. package/dist/components/text.d.cts +0 -55
  130. package/dist/components/text.d.ts +0 -55
  131. package/dist/components/text.js +0 -1
  132. package/dist/components/upload.cjs +0 -1
  133. package/dist/components/upload.d.cts +0 -94
  134. package/dist/components/upload.d.ts +0 -94
  135. package/dist/components/upload.js +0 -1
  136. package/dist/embed/api.cjs +0 -1
  137. package/dist/embed/api.d.cts +0 -112
  138. package/dist/embed/api.d.ts +0 -112
  139. package/dist/embed/api.js +0 -1
  140. package/dist/embed/caption.cjs +0 -1
  141. package/dist/embed/caption.d.cts +0 -24
  142. package/dist/embed/caption.d.ts +0 -24
  143. package/dist/embed/caption.js +0 -1
  144. package/dist/embed/controller.cjs +0 -1
  145. package/dist/embed/controller.d.cts +0 -34
  146. package/dist/embed/controller.d.ts +0 -34
  147. package/dist/embed/controller.js +0 -1
  148. package/dist/embed/socket.cjs +0 -1
  149. package/dist/embed/socket.d.cts +0 -14
  150. package/dist/embed/socket.d.ts +0 -14
  151. package/dist/embed/socket.js +0 -1
  152. package/dist/generated/locales/de.cjs +0 -1
  153. package/dist/generated/locales/de.d.cts +0 -17
  154. package/dist/generated/locales/de.d.ts +0 -17
  155. package/dist/generated/locales/de.js +0 -1
  156. package/dist/generated/locales/en.cjs +0 -1
  157. package/dist/generated/locales/en.d.cts +0 -17
  158. package/dist/generated/locales/en.d.ts +0 -17
  159. package/dist/generated/locales/en.js +0 -1
  160. package/dist/generated/locales/fr.cjs +0 -1
  161. package/dist/generated/locales/fr.d.cts +0 -17
  162. package/dist/generated/locales/fr.d.ts +0 -17
  163. package/dist/generated/locales/fr.js +0 -1
  164. package/dist/generated/locales/nl.cjs +0 -1
  165. package/dist/generated/locales/nl.d.cts +0 -17
  166. package/dist/generated/locales/nl.d.ts +0 -17
  167. package/dist/generated/locales/nl.js +0 -1
  168. package/dist/themes/default.d.cts +0 -3
  169. package/dist/themes/default.d.ts +0 -3
  170. package/dist/themes/dolphin.d.cts +0 -3
  171. package/dist/themes/dolphin.d.ts +0 -3
  172. package/dist/themes/loader.cjs +0 -1
  173. package/dist/themes/loader.d.cts +0 -11
  174. package/dist/themes/loader.d.ts +0 -11
  175. package/dist/themes/loader.js +0 -1
  176. package/dist/themes/synthwave.d.cts +0 -3
  177. package/dist/themes/synthwave.d.ts +0 -3
  178. package/dist/utils/localization.cjs +0 -1
  179. package/dist/utils/localization.d.cts +0 -24
  180. package/dist/utils/localization.d.ts +0 -24
  181. package/dist/utils/localization.js +0 -1
  182. package/dist/utils/mave_element.cjs +0 -1
  183. package/dist/utils/mave_element.d.cts +0 -19
  184. package/dist/utils/mave_element.d.ts +0 -19
  185. package/dist/utils/mave_element.js +0 -1
  186. package/dist/utils/origin.cjs +0 -1
  187. package/dist/utils/origin.d.cts +0 -3
  188. package/dist/utils/origin.d.ts +0 -3
  189. package/dist/utils/origin.js +0 -1
  190. package/dist/utils/video_events.cjs +0 -1
  191. package/dist/utils/video_events.d.cts +0 -3
  192. package/dist/utils/video_events.d.ts +0 -3
  193. package/dist/utils/video_events.js +0 -1
@@ -1,37 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit_html_directive_js from 'lit-html/directive.js';
3
- import * as lit_html_directives_style_map_js from 'lit-html/directives/style-map.js';
4
- import * as lit from 'lit';
5
- import { LitElement } from 'lit';
6
- import { Player } from './player.cjs';
7
- import 'lit-html/directive';
8
- import '../embed/api.cjs';
9
- import '../utils/mave_element.cjs';
10
-
11
- declare class Pop extends LitElement {
12
- _dialog: HTMLDialogElement;
13
- _content: HTMLElement;
14
- _frame: HTMLElement;
15
- _backdrop: HTMLElement;
16
- private _player?;
17
- static styles: lit.CSSResult;
18
- private _backdropColor;
19
- get backdrop(): string;
20
- set backdrop(value: string);
21
- private _backdropFilter;
22
- get backdropFilter(): string;
23
- set backdropFilter(value: string);
24
- get styles(): lit_html_directive_js.DirectiveResult<typeof lit_html_directives_style_map_js.StyleMapDirective>;
25
- open(player: Player): Promise<unknown>;
26
- possibleClose(e: MouseEvent): void;
27
- close(): void;
28
- render(): lit_html.TemplateResult<1>;
29
- }
30
- declare global {
31
- interface HTMLElementTagNameMap {
32
- 'mave-pop': Pop;
33
- }
34
- }
35
- declare const checkPop: (element: HTMLElement | ShadowRoot | Document) => void;
36
-
37
- export { Pop, checkPop };
@@ -1,37 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit_html_directive_js from 'lit-html/directive.js';
3
- import * as lit_html_directives_style_map_js from 'lit-html/directives/style-map.js';
4
- import * as lit from 'lit';
5
- import { LitElement } from 'lit';
6
- import { Player } from './player.js';
7
- import 'lit-html/directive';
8
- import '../embed/api.js';
9
- import '../utils/mave_element.js';
10
-
11
- declare class Pop extends LitElement {
12
- _dialog: HTMLDialogElement;
13
- _content: HTMLElement;
14
- _frame: HTMLElement;
15
- _backdrop: HTMLElement;
16
- private _player?;
17
- static styles: lit.CSSResult;
18
- private _backdropColor;
19
- get backdrop(): string;
20
- set backdrop(value: string);
21
- private _backdropFilter;
22
- get backdropFilter(): string;
23
- set backdropFilter(value: string);
24
- get styles(): lit_html_directive_js.DirectiveResult<typeof lit_html_directives_style_map_js.StyleMapDirective>;
25
- open(player: Player): Promise<unknown>;
26
- possibleClose(e: MouseEvent): void;
27
- close(): void;
28
- render(): lit_html.TemplateResult<1>;
29
- }
30
- declare global {
31
- interface HTMLElementTagNameMap {
32
- 'mave-pop': Pop;
33
- }
34
- }
35
- declare const checkPop: (element: HTMLElement | ShadowRoot | Document) => void;
36
-
37
- export { Pop, checkPop };
@@ -1 +0,0 @@
1
- export{a as Pop,b as checkPop}from'../chunk-6XQ6KWYP.js';import'../chunk-YJOQHWVN.js';import'../chunk-ZQXFK7PD.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-HMVS6DJE.js';import'../chunk-KO3CETGD.js';import'../chunk-3UQNIS3L.js';import'../chunk-RHTBV6KZ.js';import'../chunk-MK4VIJT3.js';import'../chunk-MMHEOMF5.js';import'../chunk-SWRFZ3FV.js';import'../chunk-OX42Y2HR.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-2JCNQPEK.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
@@ -1 +0,0 @@
1
- 'use strict';var chunk2FUCHY2J_cjs=require('../chunk-2FUCHY2J.cjs');require('../chunk-QQDH35OW.cjs'),require('../chunk-K5Z7QHTN.cjs'),require('../chunk-FAONFKQ2.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Text",{enumerable:true,get:function(){return chunk2FUCHY2J_cjs.a}});
@@ -1,55 +0,0 @@
1
- import * as lit from 'lit';
2
- import { LitElement } from 'lit';
3
-
4
- declare class Text extends LitElement {
5
- #private;
6
- private _embedId;
7
- get embed(): string;
8
- set embed(value: string);
9
- highlight: string;
10
- private _clickable;
11
- get clickable(): boolean;
12
- set clickable(value: boolean);
13
- private _autoscroll;
14
- get autoscroll(): boolean;
15
- set autoscroll(value: boolean);
16
- private captionController;
17
- private player;
18
- private loop;
19
- private _wordIndex;
20
- get wordIndex(): number;
21
- set wordIndex(value: number);
22
- private _segmentIndex;
23
- get segmentIndex(): number;
24
- set segmentIndex(value: number);
25
- private _lastScrollTime;
26
- private currentTime;
27
- private captions;
28
- static styles: lit.CSSResult;
29
- connectedCallback(): void;
30
- reset(): void;
31
- updateTime(): void;
32
- loopUpdateTime(): void;
33
- inRange({ start, end }: {
34
- start: number;
35
- end: number;
36
- }, part?: string, segmentIndex?: number, wordIndex?: number): string | true | undefined;
37
- segmentStyle(): {
38
- cursor?: undefined;
39
- } | {
40
- cursor: string;
41
- };
42
- wordStyle(inRange: boolean): {
43
- 'background-color'?: undefined;
44
- } | {
45
- 'background-color': string;
46
- };
47
- render(): unknown;
48
- }
49
- declare global {
50
- interface HTMLElementTagNameMap {
51
- 'mave-text': Text;
52
- }
53
- }
54
-
55
- export { Text };
@@ -1,55 +0,0 @@
1
- import * as lit from 'lit';
2
- import { LitElement } from 'lit';
3
-
4
- declare class Text extends LitElement {
5
- #private;
6
- private _embedId;
7
- get embed(): string;
8
- set embed(value: string);
9
- highlight: string;
10
- private _clickable;
11
- get clickable(): boolean;
12
- set clickable(value: boolean);
13
- private _autoscroll;
14
- get autoscroll(): boolean;
15
- set autoscroll(value: boolean);
16
- private captionController;
17
- private player;
18
- private loop;
19
- private _wordIndex;
20
- get wordIndex(): number;
21
- set wordIndex(value: number);
22
- private _segmentIndex;
23
- get segmentIndex(): number;
24
- set segmentIndex(value: number);
25
- private _lastScrollTime;
26
- private currentTime;
27
- private captions;
28
- static styles: lit.CSSResult;
29
- connectedCallback(): void;
30
- reset(): void;
31
- updateTime(): void;
32
- loopUpdateTime(): void;
33
- inRange({ start, end }: {
34
- start: number;
35
- end: number;
36
- }, part?: string, segmentIndex?: number, wordIndex?: number): string | true | undefined;
37
- segmentStyle(): {
38
- cursor?: undefined;
39
- } | {
40
- cursor: string;
41
- };
42
- wordStyle(inRange: boolean): {
43
- 'background-color'?: undefined;
44
- } | {
45
- 'background-color': string;
46
- };
47
- render(): unknown;
48
- }
49
- declare global {
50
- interface HTMLElementTagNameMap {
51
- 'mave-text': Text;
52
- }
53
- }
54
-
55
- export { Text };
@@ -1 +0,0 @@
1
- export{a as Text}from'../chunk-TH3DUBVR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-CNPQ5Q2M.js';import'../chunk-R3SDTEHC.js';import'../chunk-MMHEOMF5.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
@@ -1 +0,0 @@
1
- 'use strict';var chunk6DDQAAOQ_cjs=require('../chunk-6DDQAAOQ.cjs');require('../chunk-IBQULJZC.cjs'),require('../chunk-5NKBIUPL.cjs'),require('../chunk-KNLOZXCA.cjs'),require('../chunk-J7OISSKU.cjs'),require('../chunk-QQDH35OW.cjs'),require('../chunk-RRCW5BBR.cjs'),require('../chunk-DL4BV5IH.cjs'),require('../chunk-2E5GLLOS.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"Upload",{enumerable:true,get:function(){return chunk6DDQAAOQ_cjs.a}});
@@ -1,94 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { LitElement, PropertyValues } from 'lit';
4
-
5
- interface ErrorMessage {
6
- message: string;
7
- }
8
- interface UploadErrorDetail {
9
- file?: File;
10
- reason: string;
11
- message?: string;
12
- allowedExtensions?: {
13
- video: string[];
14
- audio: string[];
15
- };
16
- }
17
- type UploadState = 'initial' | 'uploading' | 'processing' | 'done' | 'error';
18
- declare class Upload extends LitElement {
19
- token: string;
20
- locale: string;
21
- color: string;
22
- font: string;
23
- radius: string;
24
- disableCompletion: boolean;
25
- _progress: number;
26
- _upload_id: string;
27
- _completed: boolean;
28
- _dragging: boolean;
29
- _error: UploadErrorDetail | null;
30
- private _hasErrorSlot;
31
- private embedChannel;
32
- private fileInput?;
33
- private playableEmitted;
34
- private currentEmbed?;
35
- private slotObserver?;
36
- private static readonly SUPPORTED_VIDEO_EXTENSIONS;
37
- private static readonly SUPPORTED_AUDIO_EXTENSIONS;
38
- private languageController;
39
- private lastState;
40
- private lastProgress;
41
- static styles: lit.CSSResult;
42
- connectedCallback(): void;
43
- requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
44
- reset(): void;
45
- disconnectedCallback(): void;
46
- handleDrop(event: DragEvent): void;
47
- handleForm(event: InputEvent): void;
48
- upload(file: File): void;
49
- completed(data: {
50
- embed: string;
51
- }): void;
52
- rendition(data: any): void;
53
- error(error: ErrorMessage): void;
54
- private isPlayableRendition;
55
- private updateHasErrorSlot;
56
- render(): lit_html.TemplateResult<1>;
57
- styleOpacity(): {
58
- pointerEvents: string;
59
- opacity: string;
60
- } | {
61
- pointerEvents?: undefined;
62
- opacity?: undefined;
63
- };
64
- styleFont(): {
65
- fontFamily: string;
66
- };
67
- get currentState(): UploadState;
68
- openFileDialog(): void;
69
- findActionTarget(event: Event): HTMLElement | null;
70
- handleActionClick(event: Event): void;
71
- handleActionKeyDown(event: KeyboardEvent): void;
72
- blockSubmit(event: Event): void;
73
- collectFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
74
- hasSupportedFiles(dataTransfer: DataTransfer): boolean;
75
- handleDragEnter(event: DragEvent): void;
76
- handleDragOver(event: DragEvent): void;
77
- handleDragLeave(event: DragEvent): void;
78
- isSupportedFile(file: File): boolean;
79
- static getFileExtension(file: File): string | undefined;
80
- handleUnsupportedFile(file: File): void;
81
- protected updated(changedProperties: PropertyValues<Upload>): void;
82
- renderInitial(): lit_html.TemplateResult<1>;
83
- renderError(): lit_html.TemplateResult<1>;
84
- renderUploading(): lit_html.TemplateResult<1>;
85
- renderProcessing(): lit_html.TemplateResult<1>;
86
- renderDone(): lit_html.TemplateResult<1>;
87
- }
88
- declare global {
89
- interface HTMLElementTagNameMap {
90
- 'mave-upload': Upload;
91
- }
92
- }
93
-
94
- export { Upload };
@@ -1,94 +0,0 @@
1
- import * as lit_html from 'lit-html';
2
- import * as lit from 'lit';
3
- import { LitElement, PropertyValues } from 'lit';
4
-
5
- interface ErrorMessage {
6
- message: string;
7
- }
8
- interface UploadErrorDetail {
9
- file?: File;
10
- reason: string;
11
- message?: string;
12
- allowedExtensions?: {
13
- video: string[];
14
- audio: string[];
15
- };
16
- }
17
- type UploadState = 'initial' | 'uploading' | 'processing' | 'done' | 'error';
18
- declare class Upload extends LitElement {
19
- token: string;
20
- locale: string;
21
- color: string;
22
- font: string;
23
- radius: string;
24
- disableCompletion: boolean;
25
- _progress: number;
26
- _upload_id: string;
27
- _completed: boolean;
28
- _dragging: boolean;
29
- _error: UploadErrorDetail | null;
30
- private _hasErrorSlot;
31
- private embedChannel;
32
- private fileInput?;
33
- private playableEmitted;
34
- private currentEmbed?;
35
- private slotObserver?;
36
- private static readonly SUPPORTED_VIDEO_EXTENSIONS;
37
- private static readonly SUPPORTED_AUDIO_EXTENSIONS;
38
- private languageController;
39
- private lastState;
40
- private lastProgress;
41
- static styles: lit.CSSResult;
42
- connectedCallback(): void;
43
- requestUpdate(name?: PropertyKey, oldValue?: unknown): void;
44
- reset(): void;
45
- disconnectedCallback(): void;
46
- handleDrop(event: DragEvent): void;
47
- handleForm(event: InputEvent): void;
48
- upload(file: File): void;
49
- completed(data: {
50
- embed: string;
51
- }): void;
52
- rendition(data: any): void;
53
- error(error: ErrorMessage): void;
54
- private isPlayableRendition;
55
- private updateHasErrorSlot;
56
- render(): lit_html.TemplateResult<1>;
57
- styleOpacity(): {
58
- pointerEvents: string;
59
- opacity: string;
60
- } | {
61
- pointerEvents?: undefined;
62
- opacity?: undefined;
63
- };
64
- styleFont(): {
65
- fontFamily: string;
66
- };
67
- get currentState(): UploadState;
68
- openFileDialog(): void;
69
- findActionTarget(event: Event): HTMLElement | null;
70
- handleActionClick(event: Event): void;
71
- handleActionKeyDown(event: KeyboardEvent): void;
72
- blockSubmit(event: Event): void;
73
- collectFilesFromDataTransfer(dataTransfer: DataTransfer): File[];
74
- hasSupportedFiles(dataTransfer: DataTransfer): boolean;
75
- handleDragEnter(event: DragEvent): void;
76
- handleDragOver(event: DragEvent): void;
77
- handleDragLeave(event: DragEvent): void;
78
- isSupportedFile(file: File): boolean;
79
- static getFileExtension(file: File): string | undefined;
80
- handleUnsupportedFile(file: File): void;
81
- protected updated(changedProperties: PropertyValues<Upload>): void;
82
- renderInitial(): lit_html.TemplateResult<1>;
83
- renderError(): lit_html.TemplateResult<1>;
84
- renderUploading(): lit_html.TemplateResult<1>;
85
- renderProcessing(): lit_html.TemplateResult<1>;
86
- renderDone(): lit_html.TemplateResult<1>;
87
- }
88
- declare global {
89
- interface HTMLElementTagNameMap {
90
- 'mave-upload': Upload;
91
- }
92
- }
93
-
94
- export { Upload };
@@ -1 +0,0 @@
1
- export{a as Upload}from'../chunk-RKL7JR7S.js';import'../chunk-CVXHA76S.js';import'../chunk-WE5NUDRY.js';import'../chunk-DXS4BF7U.js';import'../chunk-P6SBZPDR.js';import'../chunk-B6P2GJBQ.js';import'../chunk-MMHEOMF5.js';import'../chunk-PTN427IG.js';import'../chunk-5PIHL662.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
@@ -1 +0,0 @@
1
- 'use strict';var chunkX7OGQ4KH_cjs=require('../chunk-X7OGQ4KH.cjs');require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"baseUrl",{enumerable:true,get:function(){return chunkX7OGQ4KH_cjs.a}});
@@ -1,112 +0,0 @@
1
- type Rendition = {
2
- size: 'sd' | 'hd' | 'fhd' | 'qhd' | 'uhd';
3
- codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3' | 'aac';
4
- container: 'webp' | 'webm' | 'jpg' | 'mp4' | 'avif' | 'hls' | 'mp3';
5
- type?: 'audio' | 'video' | 'poster' | 'thumbnail' | 'placeholder' | 'storyboard' | 'segments' | 'clip_keyframes' | 'clip' | 'custom_thumbnail';
6
- file_size?: number;
7
- };
8
- type Poster = {
9
- container: 'avif' | 'webp' | 'jpg';
10
- type: 'thumbnail' | 'poster' | 'custom_thumbnail';
11
- date?: number;
12
- };
13
- type RenditionsByCodec = {
14
- [codec in Rendition['codec']]?: Rendition[];
15
- };
16
- type Embed = {
17
- id: string;
18
- name: string;
19
- space_id: string;
20
- created_at: number;
21
- poster: {
22
- renditions: [Poster];
23
- image_src: string;
24
- initial_frame_src: string;
25
- video_src: string;
26
- };
27
- settings: {
28
- aspect_ratio: string;
29
- opacity: number | null;
30
- autoplay: 'always' | 'on_show';
31
- height: string;
32
- loop: boolean;
33
- width: string;
34
- color: string;
35
- controls: 'big' | 'full' | 'none';
36
- poster: string | null;
37
- };
38
- video: {
39
- id: string;
40
- version: number;
41
- audio: boolean;
42
- aspect_ratio: string;
43
- filetype: string;
44
- original: string;
45
- size: number;
46
- duration: number;
47
- language: string;
48
- status?: 'waiting' | 'playable' | 'uploading' | 'preparing' | 'ready' | 'errored';
49
- ready?: boolean;
50
- sources: {
51
- mp4: {
52
- '480p': string;
53
- '720p': string;
54
- };
55
- };
56
- renditions: [Rendition];
57
- src: string;
58
- };
59
- subtitles: Subtitle[];
60
- audio_tracks?: AudioTrack[];
61
- metrics_key: string;
62
- };
63
- type Subtitle = {
64
- language: string;
65
- path: string;
66
- label: string;
67
- };
68
- type AudioTrack = {
69
- filename: string;
70
- path: string;
71
- label: string;
72
- language?: string | null;
73
- default: boolean;
74
- codec?: 'mp3' | 'aac' | 'wav' | 'flac' | 'ogg';
75
- file_size?: number;
76
- };
77
- type Collection = {
78
- id: string;
79
- name: string;
80
- embeds: Embed[];
81
- videos: Video[];
82
- collections: Collection[];
83
- video_count?: number;
84
- };
85
- type Video = {
86
- id: string;
87
- name: string;
88
- duration: number;
89
- size: number;
90
- poster_image: string;
91
- last_uploaded: string;
92
- language: string;
93
- created: number;
94
- };
95
- type Word = {
96
- start: number;
97
- end: number;
98
- word: string;
99
- };
100
- type Segment = {
101
- text: string;
102
- start: number;
103
- end: number;
104
- words: Word[];
105
- };
106
- type Caption = {
107
- text: string;
108
- segments: Segment[];
109
- };
110
- declare const baseUrl: string;
111
-
112
- export { type AudioTrack, type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
@@ -1,112 +0,0 @@
1
- type Rendition = {
2
- size: 'sd' | 'hd' | 'fhd' | 'qhd' | 'uhd';
3
- codec: 'h264' | 'hevc' | 'av1' | 'webp' | 'webm' | 'jpg' | 'mp3' | 'aac';
4
- container: 'webp' | 'webm' | 'jpg' | 'mp4' | 'avif' | 'hls' | 'mp3';
5
- type?: 'audio' | 'video' | 'poster' | 'thumbnail' | 'placeholder' | 'storyboard' | 'segments' | 'clip_keyframes' | 'clip' | 'custom_thumbnail';
6
- file_size?: number;
7
- };
8
- type Poster = {
9
- container: 'avif' | 'webp' | 'jpg';
10
- type: 'thumbnail' | 'poster' | 'custom_thumbnail';
11
- date?: number;
12
- };
13
- type RenditionsByCodec = {
14
- [codec in Rendition['codec']]?: Rendition[];
15
- };
16
- type Embed = {
17
- id: string;
18
- name: string;
19
- space_id: string;
20
- created_at: number;
21
- poster: {
22
- renditions: [Poster];
23
- image_src: string;
24
- initial_frame_src: string;
25
- video_src: string;
26
- };
27
- settings: {
28
- aspect_ratio: string;
29
- opacity: number | null;
30
- autoplay: 'always' | 'on_show';
31
- height: string;
32
- loop: boolean;
33
- width: string;
34
- color: string;
35
- controls: 'big' | 'full' | 'none';
36
- poster: string | null;
37
- };
38
- video: {
39
- id: string;
40
- version: number;
41
- audio: boolean;
42
- aspect_ratio: string;
43
- filetype: string;
44
- original: string;
45
- size: number;
46
- duration: number;
47
- language: string;
48
- status?: 'waiting' | 'playable' | 'uploading' | 'preparing' | 'ready' | 'errored';
49
- ready?: boolean;
50
- sources: {
51
- mp4: {
52
- '480p': string;
53
- '720p': string;
54
- };
55
- };
56
- renditions: [Rendition];
57
- src: string;
58
- };
59
- subtitles: Subtitle[];
60
- audio_tracks?: AudioTrack[];
61
- metrics_key: string;
62
- };
63
- type Subtitle = {
64
- language: string;
65
- path: string;
66
- label: string;
67
- };
68
- type AudioTrack = {
69
- filename: string;
70
- path: string;
71
- label: string;
72
- language?: string | null;
73
- default: boolean;
74
- codec?: 'mp3' | 'aac' | 'wav' | 'flac' | 'ogg';
75
- file_size?: number;
76
- };
77
- type Collection = {
78
- id: string;
79
- name: string;
80
- embeds: Embed[];
81
- videos: Video[];
82
- collections: Collection[];
83
- video_count?: number;
84
- };
85
- type Video = {
86
- id: string;
87
- name: string;
88
- duration: number;
89
- size: number;
90
- poster_image: string;
91
- last_uploaded: string;
92
- language: string;
93
- created: number;
94
- };
95
- type Word = {
96
- start: number;
97
- end: number;
98
- word: string;
99
- };
100
- type Segment = {
101
- text: string;
102
- start: number;
103
- end: number;
104
- words: Word[];
105
- };
106
- type Caption = {
107
- text: string;
108
- segments: Segment[];
109
- };
110
- declare const baseUrl: string;
111
-
112
- export { type AudioTrack, type Caption, type Collection, type Embed, type Poster, type Rendition, type RenditionsByCodec, type Segment, type Subtitle, type Video, type Word, baseUrl };
package/dist/embed/api.js DELETED
@@ -1 +0,0 @@
1
- export{a as baseUrl}from'../chunk-2JCNQPEK.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
@@ -1 +0,0 @@
1
- 'use strict';var chunkK5Z7QHTN_cjs=require('../chunk-K5Z7QHTN.cjs');require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"CaptionController",{enumerable:true,get:function(){return chunkK5Z7QHTN_cjs.a}});
@@ -1,24 +0,0 @@
1
- import { StatusRenderer } from '@lit/task';
2
- import { ReactiveControllerHost } from 'lit';
3
-
4
- declare class CaptionController {
5
- host: ReactiveControllerHost;
6
- private task;
7
- private _embed;
8
- private _token;
9
- private _version;
10
- constructor(host: ReactiveControllerHost, embed: string);
11
- set embed(value: string);
12
- get embed(): string;
13
- set token(value: string);
14
- get token(): string;
15
- get spaceId(): string;
16
- get embedId(): string;
17
- get version(): string;
18
- set version(value: number);
19
- get cdnRoot(): string;
20
- embedFile(file: string, params?: URLSearchParams): string;
21
- render(renderFunctions: StatusRenderer<unknown>): unknown;
22
- }
23
-
24
- export { CaptionController };
@@ -1,24 +0,0 @@
1
- import { StatusRenderer } from '@lit/task';
2
- import { ReactiveControllerHost } from 'lit';
3
-
4
- declare class CaptionController {
5
- host: ReactiveControllerHost;
6
- private task;
7
- private _embed;
8
- private _token;
9
- private _version;
10
- constructor(host: ReactiveControllerHost, embed: string);
11
- set embed(value: string);
12
- get embed(): string;
13
- set token(value: string);
14
- get token(): string;
15
- get spaceId(): string;
16
- get embedId(): string;
17
- get version(): string;
18
- set version(value: number);
19
- get cdnRoot(): string;
20
- embedFile(file: string, params?: URLSearchParams): string;
21
- render(renderFunctions: StatusRenderer<unknown>): unknown;
22
- }
23
-
24
- export { CaptionController };
@@ -1 +0,0 @@
1
- export{a as CaptionController}from'../chunk-CNPQ5Q2M.js';import'../chunk-QFF6OUH6.js';import'../chunk-YPCQNE3R.js';import'../chunk-ZTDQPDC6.js';import'../chunk-KA24PL7V.js';
@@ -1 +0,0 @@
1
- 'use strict';var chunkRQN3DXJB_cjs=require('../chunk-RQN3DXJB.cjs');require('../chunk-X7OGQ4KH.cjs'),require('../chunk-QOM4AP6R.cjs'),require('../chunk-NPP5B5PV.cjs'),require('../chunk-EVKPEPYP.cjs'),require('../chunk-JHSFSCC2.cjs');Object.defineProperty(exports,"EmbedController",{enumerable:true,get:function(){return chunkRQN3DXJB_cjs.b}});Object.defineProperty(exports,"EmbedType",{enumerable:true,get:function(){return chunkRQN3DXJB_cjs.a}});