@layers-app/editor-video 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/VideoContext.d.ts +4 -2
- package/dist/context/VideoContext.d.ts.map +1 -1
- package/dist/factory.d.ts.map +1 -1
- package/dist/index.css +363 -181
- package/dist/index.js +1082 -713
- package/dist/index.js.map +1 -1
- package/dist/node/VideoNode.d.ts.map +1 -1
- package/dist/node/utils.d.ts.map +1 -1
- package/dist/plugin/VideoPlugin.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui/VideoBlock.d.ts.map +1 -1
- package/dist/ui/VideoUploadComponent.d.ts +2 -1
- package/dist/ui/VideoUploadComponent.d.ts.map +1 -1
- package/dist/ui/components/ActionButtons.d.ts.map +1 -1
- package/dist/ui/components/ProgressBar.d.ts +3 -1
- package/dist/ui/components/ProgressBar.d.ts.map +1 -1
- package/dist/ui/components/VideoCustomControls.d.ts +2 -1
- package/dist/ui/components/VideoCustomControls.d.ts.map +1 -1
- package/dist/ui/components/VideoIcons.d.ts +8 -1
- package/dist/ui/components/VideoIcons.d.ts.map +1 -1
- package/dist/ui/components/VideoMenu.d.ts +5 -1
- package/dist/ui/components/VideoMenu.d.ts.map +1 -1
- package/dist/ui/components/VideoQualityMenu/index.d.ts.map +1 -1
- package/dist/ui/components/VideoSettingsMenu/index.d.ts.map +1 -1
- package/dist/ui/components/VideoSettingsModal/ChaptersSection.d.ts +4 -5
- package/dist/ui/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -1
- package/dist/ui/components/VideoSettingsModal/CoverSection.d.ts +2 -1
- package/dist/ui/components/VideoSettingsModal/CoverSection.d.ts.map +1 -1
- package/dist/ui/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -1
- package/dist/ui/components/VideoSettingsModal/index.d.ts +4 -1
- package/dist/ui/components/VideoSettingsModal/index.d.ts.map +1 -1
- package/dist/ui/components/VideoSpeedMenu/index.d.ts.map +1 -1
- package/dist/ui/components/VideoSubtitlesMenu/index.d.ts.map +1 -1
- package/dist/ui/hooks/useVideoTranscoding.d.ts.map +1 -1
- package/dist/ui/hooks/useVideoUpload.d.ts.map +1 -1
- package/dist/ui/states/ErrorStates.d.ts.map +1 -1
- package/dist/ui/states/LinkState.d.ts.map +1 -1
- package/dist/ui/states/UploadState.d.ts.map +1 -1
- package/dist/ui/states/VideoPlayerState.d.ts +3 -1
- package/dist/ui/states/VideoPlayerState.d.ts.map +1 -1
- package/dist/ui/utils/videoSettings.d.ts +2 -0
- package/dist/ui/utils/videoSettings.d.ts.map +1 -1
- package/dist/ui/utils/videoSubtitlesApi.d.ts +1 -0
- package/dist/ui/utils/videoSubtitlesApi.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import { VideoApiErrorSource, VideoPluginCallbacks, VideoPluginConfig, VideoPluginDependencies } from '../types';
|
|
3
3
|
interface VideoContextValue {
|
|
4
4
|
config: VideoPluginConfig;
|
|
@@ -9,14 +9,16 @@ interface VideoContextValue {
|
|
|
9
9
|
isUploading: boolean;
|
|
10
10
|
uploadingCount: number;
|
|
11
11
|
reportError: (error: unknown, source: VideoApiErrorSource, videoId?: string) => void;
|
|
12
|
+
onTrack?: (event: string, params?: Record<string, unknown>) => void;
|
|
12
13
|
}
|
|
13
14
|
interface VideoPluginProviderProps {
|
|
14
15
|
config: VideoPluginConfig;
|
|
15
16
|
dependencies: VideoPluginDependencies;
|
|
16
17
|
callbacks?: VideoPluginCallbacks;
|
|
17
18
|
children: ReactNode;
|
|
19
|
+
imperativeHandleRef?: RefObject<Record<string, unknown>>;
|
|
18
20
|
}
|
|
19
|
-
export declare function VideoPluginProvider({ config, dependencies, callbacks, children, }: VideoPluginProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function VideoPluginProvider({ config, dependencies, callbacks, children, imperativeHandleRef: editorImperativeHandleRef, }: VideoPluginProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export declare function useVideoPluginContext(): VideoContextValue;
|
|
21
23
|
export declare function useVideoPluginDependencies(): VideoPluginDependencies;
|
|
22
24
|
export declare function useVideoPluginConfig(): VideoPluginConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoContext.d.ts","sourceRoot":"","sources":["../../src/context/VideoContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAOV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"VideoContext.d.ts","sourceRoot":"","sources":["../../src/context/VideoContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,SAAS,EAOV,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAGV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,UAAU,iBAAiB;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,uBAAuB,CAAC;IACtC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,CACX,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,mBAAmB,EAC3B,OAAO,CAAC,EAAE,MAAM,KACb,IAAI,CAAC;IACV,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACrE;AAID,UAAU,wBAAwB;IAChC,MAAM,EAAE,iBAAiB,CAAC;IAC1B,YAAY,EAAE,uBAAuB,CAAC;IACtC,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;IACpB,mBAAmB,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC1D;AAED,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,mBAAmB,EAAE,yBAAyB,GAC/C,EAAE,wBAAwB,2CAsH1B;AAED,wBAAgB,qBAAqB,IAAI,iBAAiB,CAQzD;AAED,wBAAgB,0BAA0B,IAAI,uBAAuB,CAEpE;AAED,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}
|
package/dist/factory.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../src/factory.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAEhE,wBAAgB,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,YAAY,CA6CrE"}
|