@twick/studio 0.14.6 → 0.14.8
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 +73 -6
- package/dist/components/container/element-panel-container.d.ts +26 -1
- package/dist/components/container/subtitles-panel-container.d.ts +1 -0
- package/dist/components/panel/audio-panel.d.ts +1 -1
- package/dist/components/panel/image-panel.d.ts +1 -1
- package/dist/components/panel/subtitles-panel.d.ts +37 -18
- package/dist/components/panel/video-panel.d.ts +1 -1
- package/dist/components/shared/index.d.ts +1 -0
- package/dist/components/shared/url-input.d.ts +6 -0
- package/dist/helpers/constant.d.ts +52 -0
- package/dist/hooks/use-studio-manager.d.ts +1 -1
- package/dist/hooks/use-subtitles-panel.d.ts +13 -0
- package/dist/index.js +413 -248
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +415 -250
- package/dist/index.mjs.map +1 -1
- package/dist/studio.css +17 -3
- package/dist/types/media-panel.d.ts +11 -6
- package/package.json +5 -3
package/dist/studio.css
CHANGED
|
@@ -113,6 +113,7 @@ html {
|
|
|
113
113
|
.panel-section {
|
|
114
114
|
display: flex;
|
|
115
115
|
flex-direction: column;
|
|
116
|
+
gap: 8;
|
|
116
117
|
margin-bottom: 0.75rem;
|
|
117
118
|
}
|
|
118
119
|
|
|
@@ -1081,6 +1082,11 @@ html {
|
|
|
1081
1082
|
cursor: pointer;
|
|
1082
1083
|
}
|
|
1083
1084
|
|
|
1085
|
+
.text-error {
|
|
1086
|
+
color: var(--color-error);
|
|
1087
|
+
font-size: 0.875rem;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1084
1090
|
/* Video player customizations */
|
|
1085
1091
|
|
|
1086
1092
|
video::-webkit-media-controls,
|
|
@@ -1551,6 +1557,17 @@ video::-webkit-media-controls-panel {
|
|
|
1551
1557
|
min-width: 100%;
|
|
1552
1558
|
height: 2rem;
|
|
1553
1559
|
width: 100%;
|
|
1560
|
+
}.twick-seek-track-container-no-scrollbar {
|
|
1561
|
+
display: flex;
|
|
1562
|
+
position: relative;
|
|
1563
|
+
min-width: 100%;
|
|
1564
|
+
height: 2rem;
|
|
1565
|
+
width: 100%;
|
|
1566
|
+
/* Hide scrollbar for all browsers */
|
|
1567
|
+
scrollbar-width: none; /* Firefox */
|
|
1568
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
1569
|
+
}.twick-seek-track-container-no-scrollbar::-webkit-scrollbar {
|
|
1570
|
+
display: none; /* Chrome, Safari, Opera */
|
|
1554
1571
|
}.twick-seek-track-empty-space {
|
|
1555
1572
|
position: sticky;
|
|
1556
1573
|
left: 0;
|
|
@@ -1577,15 +1594,12 @@ video::-webkit-media-controls-panel {
|
|
|
1577
1594
|
left: 0;
|
|
1578
1595
|
z-index: 30;
|
|
1579
1596
|
cursor: ew-resize;
|
|
1580
|
-
width: 100%;
|
|
1581
|
-
height: 100%;
|
|
1582
1597
|
}.twick-seek-track-pin {
|
|
1583
1598
|
position: absolute;
|
|
1584
1599
|
top: 0;
|
|
1585
1600
|
left: 0;
|
|
1586
1601
|
z-index: 30;
|
|
1587
1602
|
width: 1.5px;
|
|
1588
|
-
height: 100%;
|
|
1589
1603
|
background-color: #FFFFFF;
|
|
1590
1604
|
}.twick-seek-track-handle {
|
|
1591
1605
|
position: absolute;
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { MediaItem } from '@twick/video-editor';
|
|
2
2
|
|
|
3
3
|
export type MediaType = "video" | "audio" | "image";
|
|
4
|
-
export interface
|
|
4
|
+
export interface MediaPanelBasePropsCommon {
|
|
5
5
|
items: MediaItem[];
|
|
6
|
-
searchQuery: string;
|
|
7
6
|
isLoading: boolean;
|
|
8
7
|
acceptFileTypes: string[];
|
|
9
|
-
onSearchChange: (query: string) => void;
|
|
10
8
|
onItemSelect: (item: MediaItem, forceAdd?: boolean) => void;
|
|
11
9
|
onFileUpload: (fileData: {
|
|
12
10
|
file: File;
|
|
13
11
|
blobUrl: string;
|
|
14
12
|
}) => void;
|
|
15
13
|
}
|
|
16
|
-
export interface
|
|
14
|
+
export interface SearchablePanelProps {
|
|
15
|
+
searchQuery: string;
|
|
16
|
+
onSearchChange: (query: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface VideoPanelProps extends MediaPanelBasePropsCommon {
|
|
19
|
+
onUrlAdd: (url: string) => void;
|
|
17
20
|
}
|
|
18
|
-
export interface AudioPanelProps extends
|
|
21
|
+
export interface AudioPanelProps extends MediaPanelBasePropsCommon, SearchablePanelProps {
|
|
22
|
+
onUrlAdd: (url: string) => void;
|
|
19
23
|
}
|
|
20
|
-
export interface ImagePanelProps extends
|
|
24
|
+
export interface ImagePanelProps extends MediaPanelBasePropsCommon, SearchablePanelProps {
|
|
25
|
+
onUrlAdd: (url: string) => void;
|
|
21
26
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twick/studio",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "vite build",
|
|
16
|
+
"build": "tsc --noEmit && vite build",
|
|
17
17
|
"dev": "vite build --watch",
|
|
18
18
|
"lint": "eslint src/",
|
|
19
19
|
"clean": "rimraf .turbo node_modules dist",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@twick/media-utils": "^0.14.0",
|
|
27
27
|
"@twick/timeline": "^0.14.0",
|
|
28
|
+
"@twick/live-player": "^0.14.0",
|
|
28
29
|
"@twick/video-editor": "^0.14.0"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
@@ -37,12 +38,13 @@
|
|
|
37
38
|
"@types/react": "^18.2.55",
|
|
38
39
|
"@types/react-dom": "^18.2.19",
|
|
39
40
|
"@twick/timeline": "^0.14.0",
|
|
41
|
+
"@twick/live-player": "^0.14.0",
|
|
40
42
|
"@twick/video-editor": "^0.14.0",
|
|
41
43
|
"rimraf": "^5.0.5",
|
|
42
44
|
"typedoc": "^0.25.8",
|
|
43
45
|
"typedoc-plugin-markdown": "^3.17.1",
|
|
44
46
|
"typescript": "^5.4.2",
|
|
45
|
-
"vite": "^5.4.
|
|
47
|
+
"vite": "^5.4.21",
|
|
46
48
|
"vite-plugin-dts": "^3.7.3"
|
|
47
49
|
}
|
|
48
50
|
}
|