@twick/studio 0.14.5
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/README.md +122 -0
- package/dist/components/container/audio-panel-container.d.ts +3 -0
- package/dist/components/container/circle-panel-container.d.ts +3 -0
- package/dist/components/container/element-panel-container.d.ts +12 -0
- package/dist/components/container/icon-panel-container.d.ts +3 -0
- package/dist/components/container/image-panel-container.d.ts +3 -0
- package/dist/components/container/properties-panel-container.d.ts +9 -0
- package/dist/components/container/rect-panel-container.d.ts +3 -0
- package/dist/components/container/text-panel-container.d.ts +9 -0
- package/dist/components/container/video-panel-container.d.ts +3 -0
- package/dist/components/header.d.ts +10 -0
- package/dist/components/panel/audio-panel.d.ts +3 -0
- package/dist/components/panel/circle-panel.d.ts +4 -0
- package/dist/components/panel/icon-panel.d.ts +4 -0
- package/dist/components/panel/image-panel.d.ts +3 -0
- package/dist/components/panel/rect-panel.d.ts +4 -0
- package/dist/components/panel/subtitles-panel.d.ts +27 -0
- package/dist/components/panel/text-panel.d.ts +4 -0
- package/dist/components/panel/video-panel.d.ts +3 -0
- package/dist/components/properties/animation.d.ts +3 -0
- package/dist/components/properties/element-props.d.ts +3 -0
- package/dist/components/properties/playback-props.d.ts +3 -0
- package/dist/components/properties/subtitlte-prop.d.ts +35 -0
- package/dist/components/properties/text-effects.d.ts +3 -0
- package/dist/components/props-toolbar.d.ts +7 -0
- package/dist/components/shared/accordion-item.d.ts +9 -0
- package/dist/components/shared/color-input.d.ts +5 -0
- package/dist/components/shared/file-input.d.ts +7 -0
- package/dist/components/shared/index.d.ts +3 -0
- package/dist/components/shared/media-manager.d.ts +3 -0
- package/dist/components/shared/prop-container.d.ts +7 -0
- package/dist/components/shared/search-input.d.ts +5 -0
- package/dist/components/toolbar.d.ts +23 -0
- package/dist/components/twick-studio.d.ts +5 -0
- package/dist/context/media-context.d.ts +15 -0
- package/dist/context/video-panel-context.d.ts +15 -0
- package/dist/hooks/use-audio-preview.d.ts +11 -0
- package/dist/hooks/use-circle-panel.d.ts +29 -0
- package/dist/hooks/use-icon-panel.d.ts +24 -0
- package/dist/hooks/use-media-panel.d.ts +23 -0
- package/dist/hooks/use-rect-panel.d.ts +29 -0
- package/dist/hooks/use-studio-manager.d.ts +11 -0
- package/dist/hooks/use-studio-operation.d.ts +8 -0
- package/dist/hooks/use-text-panel.d.ts +50 -0
- package/dist/hooks/use-video-preview.d.ts +11 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +3254 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +3254 -0
- package/dist/index.mjs.map +1 -0
- package/dist/studio.css +284 -0
- package/dist/styles/input-styles.d.ts +39 -0
- package/dist/twick.svg +3 -0
- package/dist/types/index.d.ts +134 -0
- package/dist/types/media-panel.d.ts +21 -0
- package/package.json +50 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MediaItem } from '@twick/video-editor';
|
|
2
|
+
|
|
3
|
+
export interface VideoPreviewState {
|
|
4
|
+
playingVideo: string | null;
|
|
5
|
+
videoElement: HTMLVideoElement | null;
|
|
6
|
+
}
|
|
7
|
+
export interface VideoPreviewActions {
|
|
8
|
+
togglePlayPause: (item: MediaItem, videoElement: HTMLVideoElement) => void;
|
|
9
|
+
stopPlayback: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const useVideoPreview: () => VideoPreviewState & VideoPreviewActions;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TwickStudio } from './components/twick-studio';
|
|
2
|
+
import { Toolbar } from './components/toolbar';
|
|
3
|
+
import { useStudioManager } from './hooks/use-studio-manager';
|
|
4
|
+
import { default as StudioHeader } from './components/header';
|
|
5
|
+
import { AudioPanel } from './components/panel/audio-panel';
|
|
6
|
+
import { VideoPanel } from './components/panel/video-panel';
|
|
7
|
+
import { ImagePanel } from './components/panel/image-panel';
|
|
8
|
+
import { TextPanel } from './components/panel/text-panel';
|
|
9
|
+
import { CirclePanel } from './components/panel/circle-panel';
|
|
10
|
+
import { RectPanel } from './components/panel/rect-panel';
|
|
11
|
+
import { IconPanel } from './components/panel/icon-panel';
|
|
12
|
+
import { SubtitlesPanel } from './components/panel/subtitles-panel';
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
/** Main studio component */
|
|
16
|
+
TwickStudio,
|
|
17
|
+
/** Tool selection toolbar */
|
|
18
|
+
Toolbar,
|
|
19
|
+
/** Studio header with controls */
|
|
20
|
+
StudioHeader, };
|
|
21
|
+
export {
|
|
22
|
+
/** Audio management panel */
|
|
23
|
+
AudioPanel,
|
|
24
|
+
/** Video management panel */
|
|
25
|
+
VideoPanel,
|
|
26
|
+
/** Image management panel */
|
|
27
|
+
ImagePanel,
|
|
28
|
+
/** Text editing panel */
|
|
29
|
+
TextPanel,
|
|
30
|
+
/** Subtitles management panel */
|
|
31
|
+
SubtitlesPanel,
|
|
32
|
+
/** Circle shape panel */
|
|
33
|
+
CirclePanel,
|
|
34
|
+
/** Rectangle shape panel */
|
|
35
|
+
RectPanel,
|
|
36
|
+
/** Icon management panel */
|
|
37
|
+
IconPanel, };
|
|
38
|
+
export {
|
|
39
|
+
/** Studio state management hook */
|
|
40
|
+
useStudioManager, };
|
|
41
|
+
export default TwickStudio;
|