@layers-app/editor-video 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/context/VideoContext.d.ts +24 -0
  2. package/dist/context/VideoContext.d.ts.map +1 -0
  3. package/dist/context/index.d.ts +2 -0
  4. package/dist/context/index.d.ts.map +1 -0
  5. package/dist/factory.d.ts +3 -0
  6. package/dist/factory.d.ts.map +1 -0
  7. package/dist/index.css +1364 -0
  8. package/dist/index.d.ts +9 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +30655 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/node/VideoDecorator.d.ts +20 -0
  13. package/dist/node/VideoDecorator.d.ts.map +1 -0
  14. package/dist/node/VideoNode.d.ts +55 -0
  15. package/dist/node/VideoNode.d.ts.map +1 -0
  16. package/dist/node/index.d.ts +5 -0
  17. package/dist/node/index.d.ts.map +1 -0
  18. package/dist/node/utils.d.ts +17 -0
  19. package/dist/node/utils.d.ts.map +1 -0
  20. package/dist/plugin/VideoPlugin.d.ts +2 -0
  21. package/dist/plugin/VideoPlugin.d.ts.map +1 -0
  22. package/dist/plugin/behaviour.d.ts +18 -0
  23. package/dist/plugin/behaviour.d.ts.map +1 -0
  24. package/dist/plugin/index.d.ts +3 -0
  25. package/dist/plugin/index.d.ts.map +1 -0
  26. package/dist/types/index.d.ts +223 -0
  27. package/dist/types/index.d.ts.map +1 -0
  28. package/dist/ui/VideoBlock.d.ts +20 -0
  29. package/dist/ui/VideoBlock.d.ts.map +1 -0
  30. package/dist/ui/VideoToolbar.d.ts +7 -0
  31. package/dist/ui/VideoToolbar.d.ts.map +1 -0
  32. package/dist/ui/VideoUploadComponent.d.ts +30 -0
  33. package/dist/ui/VideoUploadComponent.d.ts.map +1 -0
  34. package/dist/ui/components/ActionButtons.d.ts +11 -0
  35. package/dist/ui/components/ActionButtons.d.ts.map +1 -0
  36. package/dist/ui/components/Dropzone/index.d.ts +10 -0
  37. package/dist/ui/components/Dropzone/index.d.ts.map +1 -0
  38. package/dist/ui/components/Dropzone/types.d.ts +8 -0
  39. package/dist/ui/components/Dropzone/types.d.ts.map +1 -0
  40. package/dist/ui/components/Dropzone/utils.d.ts +2 -0
  41. package/dist/ui/components/Dropzone/utils.d.ts.map +1 -0
  42. package/dist/ui/components/ProgressBar.d.ts +9 -0
  43. package/dist/ui/components/ProgressBar.d.ts.map +1 -0
  44. package/dist/ui/components/StarsAnimation.d.ts +6 -0
  45. package/dist/ui/components/StarsAnimation.d.ts.map +1 -0
  46. package/dist/ui/components/StoryboardPreview.d.ts +9 -0
  47. package/dist/ui/components/StoryboardPreview.d.ts.map +1 -0
  48. package/dist/ui/components/SwitchingAnimation.d.ts +6 -0
  49. package/dist/ui/components/SwitchingAnimation.d.ts.map +1 -0
  50. package/dist/ui/components/VideoAnalysisAnimation.d.ts +6 -0
  51. package/dist/ui/components/VideoAnalysisAnimation.d.ts.map +1 -0
  52. package/dist/ui/components/VideoCustomControls.d.ts +32 -0
  53. package/dist/ui/components/VideoCustomControls.d.ts.map +1 -0
  54. package/dist/ui/components/VideoIcons.d.ts +18 -0
  55. package/dist/ui/components/VideoIcons.d.ts.map +1 -0
  56. package/dist/ui/components/VideoMenu.d.ts +21 -0
  57. package/dist/ui/components/VideoMenu.d.ts.map +1 -0
  58. package/dist/ui/components/VideoQualityMenu/index.d.ts +10 -0
  59. package/dist/ui/components/VideoQualityMenu/index.d.ts.map +1 -0
  60. package/dist/ui/components/VideoSettingsMenu/index.d.ts +12 -0
  61. package/dist/ui/components/VideoSettingsMenu/index.d.ts.map +1 -0
  62. package/dist/ui/components/VideoSettingsModal/ChaptersSection.d.ts +28 -0
  63. package/dist/ui/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
  64. package/dist/ui/components/VideoSettingsModal/CoverSection.d.ts +20 -0
  65. package/dist/ui/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
  66. package/dist/ui/components/VideoSettingsModal/FooterActions.d.ts +9 -0
  67. package/dist/ui/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
  68. package/dist/ui/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +15 -0
  69. package/dist/ui/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
  70. package/dist/ui/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
  71. package/dist/ui/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
  72. package/dist/ui/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
  73. package/dist/ui/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
  74. package/dist/ui/components/VideoSettingsModal/index.d.ts +19 -0
  75. package/dist/ui/components/VideoSettingsModal/index.d.ts.map +1 -0
  76. package/dist/ui/components/VideoSpeedMenu/index.d.ts +11 -0
  77. package/dist/ui/components/VideoSpeedMenu/index.d.ts.map +1 -0
  78. package/dist/ui/components/VideoSubtitlesMenu/index.d.ts +10 -0
  79. package/dist/ui/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
  80. package/dist/ui/hooks/useCancelUpload.d.ts +5 -0
  81. package/dist/ui/hooks/useCancelUpload.d.ts.map +1 -0
  82. package/dist/ui/hooks/useStoryboard.d.ts +21 -0
  83. package/dist/ui/hooks/useStoryboard.d.ts.map +1 -0
  84. package/dist/ui/hooks/useVideoStatus.d.ts +31 -0
  85. package/dist/ui/hooks/useVideoStatus.d.ts.map +1 -0
  86. package/dist/ui/hooks/useVideoTranscoding.d.ts +20 -0
  87. package/dist/ui/hooks/useVideoTranscoding.d.ts.map +1 -0
  88. package/dist/ui/hooks/useVideoUpload.d.ts +21 -0
  89. package/dist/ui/hooks/useVideoUpload.d.ts.map +1 -0
  90. package/dist/ui/index.d.ts +4 -0
  91. package/dist/ui/index.d.ts.map +1 -0
  92. package/dist/ui/states/AnalysisState.d.ts +11 -0
  93. package/dist/ui/states/AnalysisState.d.ts.map +1 -0
  94. package/dist/ui/states/ConversionState.d.ts +11 -0
  95. package/dist/ui/states/ConversionState.d.ts.map +1 -0
  96. package/dist/ui/states/DefaultState.d.ts +7 -0
  97. package/dist/ui/states/DefaultState.d.ts.map +1 -0
  98. package/dist/ui/states/ErrorStates.d.ts +10 -0
  99. package/dist/ui/states/ErrorStates.d.ts.map +1 -0
  100. package/dist/ui/states/LinkState.d.ts +10 -0
  101. package/dist/ui/states/LinkState.d.ts.map +1 -0
  102. package/dist/ui/states/UploadState.d.ts +11 -0
  103. package/dist/ui/states/UploadState.d.ts.map +1 -0
  104. package/dist/ui/states/VideoPlayerState.d.ts +22 -0
  105. package/dist/ui/states/VideoPlayerState.d.ts.map +1 -0
  106. package/dist/ui/styles.d.ts +1 -0
  107. package/dist/ui/styles.d.ts.map +1 -0
  108. package/dist/ui/types.d.ts +2 -0
  109. package/dist/ui/types.d.ts.map +1 -0
  110. package/dist/ui/utils/api.d.ts +9 -0
  111. package/dist/ui/utils/api.d.ts.map +1 -0
  112. package/dist/ui/utils/chapters.d.ts +8 -0
  113. package/dist/ui/utils/chapters.d.ts.map +1 -0
  114. package/dist/ui/utils/storyboard.d.ts +5 -0
  115. package/dist/ui/utils/storyboard.d.ts.map +1 -0
  116. package/dist/ui/utils/videoChaptersApi.d.ts +20 -0
  117. package/dist/ui/utils/videoChaptersApi.d.ts.map +1 -0
  118. package/dist/ui/utils/videoPlayerUtils.d.ts +10 -0
  119. package/dist/ui/utils/videoPlayerUtils.d.ts.map +1 -0
  120. package/dist/ui/utils/videoSettings.d.ts +67 -0
  121. package/dist/ui/utils/videoSettings.d.ts.map +1 -0
  122. package/dist/ui/utils/videoSubtitlesApi.d.ts +31 -0
  123. package/dist/ui/utils/videoSubtitlesApi.d.ts.map +1 -0
  124. package/package.json +53 -0
@@ -0,0 +1,18 @@
1
+ type VideoIconProps = {
2
+ size?: number;
3
+ color?: string;
4
+ };
5
+ export declare function PlayIcon({ size, color, }: VideoIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare const PauseIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const VolumeIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const VolumeMuteIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const SettingsIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SettingsPlayerIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const ChevronRightIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const FullscreenIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const PictureInPictureIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ArrowLeftIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const CheckIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const TickIcon: ({ size, color, }: VideoIconProps) => import("react/jsx-runtime").JSX.Element;
17
+ export {};
18
+ //# sourceMappingURL=VideoIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoIcons.d.ts","sourceRoot":"","sources":["../../../src/ui/components/VideoIcons.tsx"],"names":[],"mappings":"AAgBA,KAAK,cAAc,GAAG;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAaF,wBAAgB,QAAQ,CAAC,EACvB,IAAS,EACT,KAAsB,GACvB,EAAE,cAAc,2CAiBhB;AACD,eAAO,MAAM,SAAS,qBA1BjB,cAAc,4CA0B4B,CAAC;AAChD,eAAO,MAAM,UAAU,qBA3BlB,cAAc,4CA2BkC,CAAC;AACtD,eAAO,MAAM,cAAc,qBA5BtB,cAAc,4CA4BqC,CAAC;AACzD,eAAO,MAAM,YAAY,qBA7BpB,cAAc,4CA6BwC,CAAC;AAC5D,eAAO,MAAM,kBAAkB,qBA9B1B,cAAc,4CA8BwC,CAAC;AAC5D,eAAO,MAAM,gBAAgB,qBA/BxB,cAAc,4CA+BwC,CAAC;AAC5D,eAAO,MAAM,cAAc,qBAhCtB,cAAc,4CAgCsC,CAAC;AAC1D,eAAO,MAAM,oBAAoB,qBAjC5B,cAAc,4CAiCkD,CAAC;AACtE,eAAO,MAAM,aAAa,qBAlCrB,cAAc,4CAkCoC,CAAC;AACxD,eAAO,MAAM,SAAS,qBAnCjB,cAAc,4CAmCsC,CAAC;AAC1D,eAAO,MAAM,QAAQ,qBApChB,cAAc,4CAoC4B,CAAC"}
@@ -0,0 +1,21 @@
1
+ type VideoMenuHeader = {
2
+ label: React.ReactNode;
3
+ onClick: () => void;
4
+ disabled?: boolean;
5
+ leftSection?: React.ReactNode;
6
+ };
7
+ type VideoMenuItem = {
8
+ key: string;
9
+ onClick: () => void;
10
+ disabled?: boolean;
11
+ leftLabel: React.ReactNode;
12
+ centerLabel?: React.ReactNode;
13
+ rightSection?: React.ReactNode;
14
+ };
15
+ type VideoMenuProps = {
16
+ header?: VideoMenuHeader;
17
+ items: VideoMenuItem[];
18
+ };
19
+ export declare function VideoMenu({ header, items }: VideoMenuProps): import("react/jsx-runtime").JSX.Element;
20
+ export {};
21
+ //# sourceMappingURL=VideoMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoMenu.d.ts","sourceRoot":"","sources":["../../../src/ui/components/VideoMenu.tsx"],"names":[],"mappings":"AAEA,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,cAAc,2CAgE1D"}
@@ -0,0 +1,10 @@
1
+ import { PlayerSettingsSnapshot } from '../../utils/videoSettings';
2
+ type VideoQualityMenuProps = {
3
+ disabled?: boolean;
4
+ settings: PlayerSettingsSnapshot;
5
+ onBack: () => void;
6
+ onSelect: (qualityId: number | null) => void;
7
+ };
8
+ export declare function VideoQualityMenu({ disabled, settings, onBack, onSelect, }: VideoQualityMenuProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoQualityMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,GACT,EAAE,qBAAqB,2CAsCvB"}
@@ -0,0 +1,12 @@
1
+ import { PlayerSettingsSnapshot } from '../../utils/videoSettings';
2
+ type VideoSettingsMenuProps = {
3
+ isOpen?: boolean;
4
+ disabled?: boolean;
5
+ settings: PlayerSettingsSnapshot;
6
+ onSpeedClick: () => void;
7
+ onQualityClick: () => void;
8
+ onSubtitlesClick: () => void;
9
+ };
10
+ export declare function VideoSettingsMenu({ disabled, settings, onSpeedClick, onQualityClick, onSubtitlesClick, }: VideoSettingsMenuProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,KAAK,sBAAsB,GAAG;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,gBAAgB,GACjB,EAAE,sBAAsB,2CAmCxB"}
@@ -0,0 +1,28 @@
1
+ import { VideoStatus } from '../../types';
2
+ import { ChapterInput } from '../../utils/chapters';
3
+ type ChaptersSectionProps = {
4
+ videoId?: string | null;
5
+ initialChapters?: VideoStatus['chapters'];
6
+ nativeVideo?: HTMLVideoElement | null;
7
+ baseUrl?: string;
8
+ authToken?: string;
9
+ title: string;
10
+ disableChaptersLabel: string;
11
+ toggleLabel: string;
12
+ autoChaptersEnabled: boolean;
13
+ onAutoChaptersChange: (value: boolean) => void;
14
+ chaptersDisabled: boolean;
15
+ onChaptersDisabledChange: (value: boolean) => void;
16
+ onSave?: (saveHandler: () => Promise<ChapterInput[] | null>) => void;
17
+ timePlaceholder: string;
18
+ endTimePlaceholder: string;
19
+ titlePlaceholder: string;
20
+ addChapterLabel: string;
21
+ deleteChapterLabel: string;
22
+ emptyLabel: string;
23
+ errorLabel: string;
24
+ invalidRangeLabel: string;
25
+ };
26
+ export declare function ChaptersSection({ videoId, initialChapters, nativeVideo, baseUrl, authToken, title, disableChaptersLabel, toggleLabel, autoChaptersEnabled, onAutoChaptersChange, chaptersDisabled, onChaptersDisabledChange, onSave, timePlaceholder, endTimePlaceholder, titlePlaceholder, addChapterLabel, deleteChapterLabel, emptyLabel, errorLabel, invalidRangeLabel, }: ChaptersSectionProps): import("react/jsx-runtime").JSX.Element;
27
+ export {};
28
+ //# sourceMappingURL=ChaptersSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChaptersSection.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/ChaptersSection.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAU9B,KAAK,oBAAoB,GAAG;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,wBAAwB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,MAAM,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,CAAC;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAkQF,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,eAAe,EACf,WAAW,EACX,OAAO,EACP,SAAS,EACT,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,MAAM,EACN,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,UAAU,EACV,UAAU,EACV,iBAAiB,GAClB,EAAE,oBAAoB,2CA4XtB"}
@@ -0,0 +1,20 @@
1
+ import { FileWithPath } from '@mantine/dropzone';
2
+ import { VideoStatus } from '../../types';
3
+ type CoverSectionProps = {
4
+ opened: boolean;
5
+ videoId?: string | null;
6
+ title: string;
7
+ uploadLabel: string;
8
+ cropLabel: string;
9
+ emptyCoverLabel: string;
10
+ loadErrorLabel?: string;
11
+ retryLabel?: string;
12
+ onCoverUpload?: (file: FileWithPath) => void | Promise<VideoStatus | undefined>;
13
+ onCropCover?: () => void;
14
+ onPosterChange?: (posterUrl: string | null) => void;
15
+ onSelectedPosterChange?: (url: string | null) => void;
16
+ selectedPosterUrl?: string | null;
17
+ };
18
+ export declare function CoverSection({ opened, videoId, title, uploadLabel, cropLabel, emptyCoverLabel, loadErrorLabel, retryLabel, onCoverUpload, onCropCover, onPosterChange: _onPosterChange, onSelectedPosterChange, selectedPosterUrl, }: CoverSectionProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=CoverSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoverSection.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/CoverSection.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAY,YAAY,EAAmB,MAAM,mBAAmB,CAAC;AAG5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CACd,IAAI,EAAE,YAAY,KACf,IAAI,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,sBAAsB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACtD,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,KAAK,EACL,WAAW,EACX,SAAS,EACT,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,cAAc,EAAE,eAAe,EAC/B,sBAAsB,EACtB,iBAAiB,GAClB,EAAE,iBAAiB,2CAiUnB"}
@@ -0,0 +1,9 @@
1
+ type FooterActionsProps = {
2
+ cancelLabel: string;
3
+ saveLabel: string;
4
+ onCancel: () => void;
5
+ onSave: () => void;
6
+ };
7
+ export declare function FooterActions({ cancelLabel, saveLabel, onCancel, onSave, }: FooterActionsProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=FooterActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterActions.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/FooterActions.tsx"],"names":[],"mappings":"AAEA,KAAK,kBAAkB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,SAAS,EACT,QAAQ,EACR,MAAM,GACP,EAAE,kBAAkB,2CAsBpB"}
@@ -0,0 +1,15 @@
1
+ import { VideoStatus } from '../../types';
2
+ import { SubtitleTrack } from '../../utils/videoSubtitlesApi';
3
+ type ManualSubtitlesPanelProps = {
4
+ videoId?: string | null;
5
+ mode: 'shaka' | 'native';
6
+ shakaPlayer?: any | null;
7
+ nativeVideo?: HTMLVideoElement | null;
8
+ baseUrl?: string;
9
+ authToken?: string;
10
+ statusSubtitles?: VideoStatus['subtitles'];
11
+ onTracksChange?: (tracks: SubtitleTrack[]) => void;
12
+ };
13
+ export declare function ManualSubtitlesPanel({ videoId, mode, shakaPlayer, nativeVideo, baseUrl, authToken, statusSubtitles, onTracksChange, }: ManualSubtitlesPanelProps): import("react/jsx-runtime").JSX.Element;
14
+ export {};
15
+ //# sourceMappingURL=ManualSubtitlesPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManualSubtitlesPanel.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/ManualSubtitlesPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,KAAK,aAAa,EAMnB,MAAM,+BAA+B,CAAC;AAEvC,KAAK,yBAAyB,GAAG;IAC/B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;IACzB,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;CACpD,CAAC;AA4CF,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,IAAI,EACJ,WAAW,EACX,WAAW,EACX,OAAO,EACP,SAAS,EACT,eAAe,EACf,cAAc,GACf,EAAE,yBAAyB,2CAkT3B"}
@@ -0,0 +1,16 @@
1
+ export type SubtitleTrack = {
2
+ id: string;
3
+ language: string | null;
4
+ fileName: string | null;
5
+ status: 'empty' | 'uploading' | 'ready';
6
+ };
7
+ type SubtitleTrackRowProps = {
8
+ track: SubtitleTrack;
9
+ onUpdate: (updates: Partial<SubtitleTrack>) => void;
10
+ onUpload: (file: File, language: string) => Promise<void>;
11
+ selectLanguagePlaceholder: string;
12
+ uploadLabel: string;
13
+ };
14
+ export declare function SubtitleTrackRow({ track, onUpdate, onUpload, selectLanguagePlaceholder, uploadLabel, }: SubtitleTrackRowProps): import("react/jsx-runtime").JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=SubtitleTrackRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubtitleTrackRow.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/SubtitleTrackRow.tsx"],"names":[],"mappings":"AAqCA,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,OAAO,GAAG,WAAW,GAAG,OAAO,CAAC;CACzC,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IACpD,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1D,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,WAAW,GACZ,EAAE,qBAAqB,2CAgEvB"}
@@ -0,0 +1,14 @@
1
+ type SubtitlesSectionProps = {
2
+ title: string;
3
+ toggleLabel: string;
4
+ manualLabel: string;
5
+ addTrackLabel: string;
6
+ selectLanguagePlaceholder: string;
7
+ uploadLabel: string;
8
+ value: boolean;
9
+ onChange: (value: boolean) => void;
10
+ videoId?: string | null;
11
+ };
12
+ export declare function SubtitlesSection({ title, toggleLabel, manualLabel, addTrackLabel, selectLanguagePlaceholder, uploadLabel, value, onChange, videoId, }: SubtitlesSectionProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=SubtitlesSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubtitlesSection.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/SubtitlesSection.tsx"],"names":[],"mappings":"AAQA,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB,EAAE,MAAM,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,yBAAyB,EACzB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,qBAAqB,2CA6EvB"}
@@ -0,0 +1,19 @@
1
+ import { ChapterInput } from '../../utils/chapters';
2
+ import { SubtitleTrack } from '../../utils/videoSubtitlesApi';
3
+ type VideoSettingsModalProps = {
4
+ opened: boolean;
5
+ onClose: () => void;
6
+ videoId?: string | null;
7
+ onPosterChange?: (posterUrl: string | null) => void;
8
+ onChaptersSaved?: (chapters: ChapterInput[]) => void;
9
+ onChaptersDisabledChange?: (disabled: boolean) => void;
10
+ onSubtitlesSaved?: (tracks: SubtitleTrack[]) => void;
11
+ posterUrl?: string | null;
12
+ chaptersDisabled?: boolean;
13
+ shakaPlayer?: any | null;
14
+ nativeVideo?: HTMLVideoElement | null;
15
+ playerMode?: 'shaka' | 'native';
16
+ };
17
+ export declare function VideoSettingsModal({ opened, onClose, videoId, onPosterChange, onChaptersSaved, onChaptersDisabledChange, onSubtitlesSaved, posterUrl, chaptersDisabled, shakaPlayer, nativeVideo, playerMode, }: VideoSettingsModalProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
19
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSettingsModal/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAMnE,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IACrD,wBAAwB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,IAAI,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,OAAO,EACP,OAAO,EACP,cAAc,EACd,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,SAAS,EACT,gBAAwB,EACxB,WAAW,EACX,WAAW,EACX,UAAqB,GACtB,EAAE,uBAAuB,2CAiKzB"}
@@ -0,0 +1,11 @@
1
+ import { PlayerSettingsSnapshot } from '../../utils/videoSettings';
2
+ type VideoSpeedMenuProps = {
3
+ disabled?: boolean;
4
+ settings: PlayerSettingsSnapshot;
5
+ currentSpeed?: number | null;
6
+ onBack: () => void;
7
+ onSelect: (speed: number) => void;
8
+ };
9
+ export declare function VideoSpeedMenu({ disabled, settings, currentSpeed, onBack, onSelect, }: VideoSpeedMenuProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSpeedMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,QAAQ,GACT,EAAE,mBAAmB,2CA2BrB"}
@@ -0,0 +1,10 @@
1
+ import { PlayerSettingsSnapshot } from '../../utils/videoSettings';
2
+ type VideoSubtitlesMenuProps = {
3
+ disabled?: boolean;
4
+ settings: PlayerSettingsSnapshot;
5
+ onBack: () => void;
6
+ onSelect: (subtitleId: number | null) => void;
7
+ };
8
+ export declare function VideoSubtitlesMenu({ disabled, settings, onBack, onSelect, }: VideoSubtitlesMenuProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/components/VideoSubtitlesMenu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AAIxE,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,sBAAsB,CAAC;IACjC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,GACT,EAAE,uBAAuB,2CAwBzB"}
@@ -0,0 +1,5 @@
1
+ export declare function useCancelUpload(): {
2
+ start: () => AbortSignal;
3
+ cancel: () => void;
4
+ };
5
+ //# sourceMappingURL=useCancelUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCancelUpload.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useCancelUpload.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe;iBAGC,WAAW;;EAe1C"}
@@ -0,0 +1,21 @@
1
+ import { StoryboardCue, StoryboardFrame, VideoStatus } from '../types';
2
+ type StoryboardInfo = NonNullable<VideoStatus['storyboard']>;
3
+ interface UseStoryboardProps {
4
+ storyboard?: StoryboardInfo | null;
5
+ baseUrl?: string;
6
+ authHeaders?: Record<string, string>;
7
+ enabled?: boolean;
8
+ }
9
+ type SheetDimensions = {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ export declare function useStoryboard({ storyboard, baseUrl, authHeaders, enabled, }: UseStoryboardProps): {
14
+ ready: boolean;
15
+ cues: StoryboardCue[];
16
+ durationSec: number;
17
+ getFrameAtRatio: (ratio: number) => StoryboardFrame | null;
18
+ ensureSheetDimensions: (url: string) => Promise<SheetDimensions | null | undefined>;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=useStoryboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStoryboard.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useStoryboard.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAEf,WAAW,EACZ,MAAM,UAAU,CAAC;AAOlB,KAAK,cAAc,GAAG,WAAW,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;AAE7D,UAAU,kBAAkB;IAC1B,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,KAAK,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzD,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,OAAO,EACP,WAAW,EACX,OAAc,GACf,EAAE,kBAAkB;;;;6BAoGT,MAAM,KAAG,eAAe,GAAG,IAAI;iCA3B3B,MAAM;EA8DrB"}
@@ -0,0 +1,31 @@
1
+ import { VideoStatus } from '../types';
2
+ interface UseVideoStatusProps {
3
+ videoId: string | null;
4
+ baseUrl?: string;
5
+ authHeaders?: Record<string, string>;
6
+ enabled?: boolean;
7
+ }
8
+ export declare function useVideoStatus({ videoId, baseUrl, authHeaders, enabled, }: UseVideoStatusProps): {
9
+ status: VideoStatus | null;
10
+ playback: {
11
+ primaryUrl?: string;
12
+ rawUrl?: string;
13
+ fallbackUrl?: string;
14
+ downloadUrl?: string;
15
+ mime?: string;
16
+ supportsRange?: boolean;
17
+ playable?: boolean;
18
+ optimizedReady?: boolean;
19
+ rawPlayable?: boolean;
20
+ proxyReady?: boolean;
21
+ proxyLowReady?: boolean;
22
+ } | null;
23
+ videoUrl: string | null;
24
+ primaryUrl: string | null;
25
+ optimizedReady: boolean;
26
+ nativeVideoUrl: string | null;
27
+ rawPlayable: boolean;
28
+ isStatusAvailable: boolean;
29
+ };
30
+ export {};
31
+ //# sourceMappingURL=useVideoStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVideoStatus.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useVideoStatus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,UAAU,mBAAmB;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAwDD,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,OAAO,EACP,WAAW,EACX,OAAc,GACf,EAAE,mBAAmB;;;;;;;;;;;;;;;;;;;;;EA2FrB"}
@@ -0,0 +1,20 @@
1
+ import { VideoStatus, TranscodingProgress } from '../types';
2
+ interface UseVideoTranscodingProps {
3
+ videoId: string | null;
4
+ status: VideoStatus | null;
5
+ onAnalysisComplete?: () => void;
6
+ onConversionComplete?: () => void;
7
+ onError?: () => void;
8
+ }
9
+ export declare function useVideoTranscoding({ videoId, status, onAnalysisComplete, onConversionComplete, onError, }: UseVideoTranscodingProps): {
10
+ transcodingProgress: TranscodingProgress;
11
+ isTranscoding: boolean;
12
+ isPaused: boolean;
13
+ startAnalysis: () => void;
14
+ startConversion: () => void;
15
+ handlePause: () => void;
16
+ handleResume: () => void;
17
+ handleCancel: () => void;
18
+ };
19
+ export {};
20
+ //# sourceMappingURL=useVideoTranscoding.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVideoTranscoding.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useVideoTranscoding.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,UAAU,wBAAwB;IAChC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAsBD,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,MAAM,EACN,kBAAkB,EAClB,oBAAoB,EACpB,OAAO,GACR,EAAE,wBAAwB;;;;;;;;;EAgL1B"}
@@ -0,0 +1,21 @@
1
+ import { FileWithPath } from '@mantine/dropzone';
2
+ import { ErrorType, UploadProgress } from '../types';
3
+ interface UseVideoUploadProps {
4
+ onError: (error: ErrorType, videoIdFromUpload?: string | null, apiError?: unknown) => void;
5
+ parentId?: string;
6
+ parentType?: string;
7
+ baseUrl?: string;
8
+ authHeaders?: Record<string, string>;
9
+ }
10
+ export declare function useVideoUpload({ onError, parentId, parentType, baseUrl, authHeaders, }: UseVideoUploadProps): {
11
+ uploadProgress: UploadProgress;
12
+ isUploading: boolean;
13
+ isPaused: boolean;
14
+ handleUpload: (file: FileWithPath) => Promise<void>;
15
+ handlePause: () => void;
16
+ handleResume: () => Promise<void>;
17
+ handleCancel: () => void;
18
+ uploadVideoId: string | null;
19
+ };
20
+ export {};
21
+ //# sourceMappingURL=useVideoUpload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useVideoUpload.d.ts","sourceRoot":"","sources":["../../../src/ui/hooks/useVideoUpload.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAIrD,UAAU,mBAAmB;IAC3B,OAAO,EAAE,CACP,KAAK,EAAE,SAAS,EAChB,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,EACjC,QAAQ,CAAC,EAAE,OAAO,KACf,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAgID,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,QAAQ,EACR,UAAmB,EACnB,OAAO,EACP,WAAW,GACZ,EAAE,mBAAmB;;;;yBA4QL,YAAY;;;;;EAiR5B"}
@@ -0,0 +1,4 @@
1
+ export { VideoBlock } from './VideoBlock';
2
+ export { VideoToolbar } from './VideoToolbar';
3
+ export { VideoUploadComponent } from './VideoUploadComponent';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { TranscodingProgress } from '../types';
2
+ interface AnalysisStateProps {
3
+ progress: TranscodingProgress;
4
+ onPause?: () => void;
5
+ onResume?: () => void;
6
+ onCancel?: () => void;
7
+ isPaused?: boolean;
8
+ }
9
+ export declare function AnalysisState({ progress, onPause, onResume, onCancel, isPaused, }: AnalysisStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=AnalysisState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnalysisState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/AnalysisState.tsx"],"names":[],"mappings":"AAQA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAgB,GACjB,EAAE,kBAAkB,2CA6EpB"}
@@ -0,0 +1,11 @@
1
+ import { TranscodingProgress } from '../types';
2
+ interface ConversionStateProps {
3
+ progress: TranscodingProgress;
4
+ onPause?: () => void;
5
+ onResume?: () => void;
6
+ onCancel?: () => void;
7
+ isPaused?: boolean;
8
+ }
9
+ export declare function ConversionState({ progress, onPause, onResume, onCancel, isPaused, }: ConversionStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=ConversionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConversionState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/ConversionState.tsx"],"names":[],"mappings":"AAQA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,UAAU,oBAAoB;IAC5B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAgB,GACjB,EAAE,oBAAoB,2CA6EtB"}
@@ -0,0 +1,7 @@
1
+ interface DefaultStateProps {
2
+ onFileSelect: (file: File) => void;
3
+ maxFileSize: number;
4
+ }
5
+ export declare function DefaultState({ onFileSelect, maxFileSize }: DefaultStateProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=DefaultState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DefaultState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/DefaultState.tsx"],"names":[],"mappings":"AAEA,UAAU,iBAAiB;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,YAAY,CAAC,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,iBAAiB,2CAY5E"}
@@ -0,0 +1,10 @@
1
+ import { ErrorType } from '../types';
2
+ interface ErrorStatesProps {
3
+ errorType: ErrorType;
4
+ onRetry: () => void;
5
+ onCancel?: () => void;
6
+ maxFileSize: number;
7
+ }
8
+ export declare function ErrorStates({ errorType, onRetry, onCancel, maxFileSize, }: ErrorStatesProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=ErrorStates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorStates.d.ts","sourceRoot":"","sources":["../../../src/ui/states/ErrorStates.tsx"],"names":[],"mappings":"AAOA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,UAAU,gBAAgB;IACxB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,OAAO,EACP,QAAQ,EACR,WAAW,GACZ,EAAE,gBAAgB,2CAsHlB"}
@@ -0,0 +1,10 @@
1
+ interface LinkStateProps {
2
+ value: string;
3
+ disabled?: boolean;
4
+ error?: string | null;
5
+ onChange: (value: string) => void;
6
+ onSubmit: () => void;
7
+ }
8
+ export declare function LinkState({ value, disabled, error, onChange, onSubmit, }: LinkStateProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=LinkState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/LinkState.tsx"],"names":[],"mappings":"AAKA,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAgB,EAChB,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE,cAAc,2CA6DhB"}
@@ -0,0 +1,11 @@
1
+ import { UploadProgress } from '../types';
2
+ interface UploadStateProps {
3
+ progress: UploadProgress;
4
+ onPause?: () => void;
5
+ onResume?: () => void;
6
+ onCancel?: () => void;
7
+ isPaused?: boolean;
8
+ }
9
+ export declare function UploadState({ progress, onPause, onResume, onCancel, isPaused, }: UploadStateProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=UploadState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UploadState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/UploadState.tsx"],"names":[],"mappings":"AAKA,OAAO,WAAW,CAAC;AACnB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,UAAU,gBAAgB;IACxB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAgB,GACjB,EAAE,gBAAgB,2CA4ClB"}
@@ -0,0 +1,22 @@
1
+ import { VideoStatus } from '../types';
2
+ interface VideoPlayerStateProps {
3
+ videoId?: string | null;
4
+ baseUrl?: string;
5
+ videoUrl: string | null;
6
+ primaryUrl: string | null;
7
+ optimizedReady: boolean;
8
+ nativeVideoUrl: string | null;
9
+ storyboard?: VideoStatus['storyboard'] | null;
10
+ chapters?: VideoStatus['chapters'];
11
+ subtitles?: VideoStatus['subtitles'];
12
+ posterUrl?: string | null;
13
+ onPlayerInfo?: (info: {
14
+ shakaPlayer: any | null;
15
+ nativeVideo: HTMLVideoElement | null;
16
+ mode: 'shaka' | 'native';
17
+ containerEl: HTMLDivElement | null;
18
+ }) => void;
19
+ }
20
+ export declare function VideoPlayerState({ videoId, baseUrl, videoUrl, primaryUrl, optimizedReady, nativeVideoUrl, storyboard, chapters, subtitles, posterUrl, onPlayerInfo, }: VideoPlayerStateProps): import("react/jsx-runtime").JSX.Element;
21
+ export {};
22
+ //# sourceMappingURL=VideoPlayerState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayerState.d.ts","sourceRoot":"","sources":["../../../src/ui/states/VideoPlayerState.tsx"],"names":[],"mappings":"AAQA,OAAO,WAAW,CAAC;AACnB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAc5C,UAAU,qBAAqB;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,WAAW,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QACpB,WAAW,EAAE,GAAG,GAAG,IAAI,CAAC;QACxB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;QACrC,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAC;QACzB,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;KACpC,KAAK,IAAI,CAAC;CACZ;AAyBD,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,cAAc,EACd,cAAc,EACd,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,GACb,EAAE,qBAAqB,2CAo4BvB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/ui/styles.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from '../types';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/ui/types.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { InitResponse, UploadChunkResponse, VideoStatus } from '../types';
2
+ export declare function initVideo(file: File, parentId: string, parentType?: string, baseUrl?: string, authHeaders?: Record<string, string>): Promise<InitResponse>;
3
+ export declare function uploadChunk(videoId: string, file: File, offset: number, end: number, total: number, baseUrl?: string, authHeaders?: Record<string, string>, signal?: AbortSignal): Promise<UploadChunkResponse>;
4
+ export declare function fetchStatus(videoId: string, baseUrl?: string, authHeaders?: Record<string, string>): Promise<VideoStatus>;
5
+ export declare function setCoverPreview(videoId: string, previewId: string, baseUrl?: string, authHeaders?: Record<string, string>): Promise<VideoStatus>;
6
+ export declare function uploadCoverImage(videoId: string, file: File, baseUrl?: string, authHeaders?: Record<string, string>): Promise<VideoStatus>;
7
+ export declare function uploadSubtitleTrack(videoId: string, file: File, language: string, baseUrl?: string, authHeaders?: Record<string, string>): Promise<VideoStatus>;
8
+ export declare function retryVideoProcessing(videoId: string, baseUrl?: string, authHeaders?: Record<string, string>): Promise<void>;
9
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA+B/E,wBAAsB,SAAS,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,UAAU,GAAE,MAAe,EAC3B,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,YAAY,CAAC,CAiFvB;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,mBAAmB,CAAC,CA+E9B;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CAyDtB;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CA4BtB;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CA0BtB;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,WAAW,CAAC,CA2BtB;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC,CAqDf"}
@@ -0,0 +1,8 @@
1
+ export type ChapterInput = {
2
+ startSec: number;
3
+ title: string;
4
+ };
5
+ export declare function secondsToTimestamp(sec: number): string;
6
+ export declare function parseTimestampToSec(ts: string): number | null;
7
+ export declare function parseChaptersText(text: string): ChapterInput[];
8
+ //# sourceMappingURL=chapters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/chapters.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAStD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAkB7D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,EAAE,CAkB9D"}
@@ -0,0 +1,5 @@
1
+ import { StoryboardCue } from '../types';
2
+ export declare function parseStoryboardVtt(vttText: string, vttUrl: string, baseUrl?: string): StoryboardCue[];
3
+ export declare function resolveStoryboardUrl(url: string, baseUrl?: string): string;
4
+ export declare function clampRatio(value: number): number;
5
+ //# sourceMappingURL=storyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storyboard.d.ts","sourceRoot":"","sources":["../../../src/ui/utils/storyboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA6B9C,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,MAAM,GACf,aAAa,EAAE,CAgCjB;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEhD"}