@twick/studio 0.15.7 → 0.15.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/dist/index.js +27 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -33
- package/dist/index.mjs.map +1 -1
- package/dist/studio.css +24 -3
- package/package.json +12 -12
package/dist/index.mjs
CHANGED
|
@@ -689,7 +689,6 @@ const _MediaManagerSingleton = class _MediaManagerSingleton {
|
|
|
689
689
|
resolvePromise();
|
|
690
690
|
} catch (error) {
|
|
691
691
|
_MediaManagerSingleton.initializationPromise = null;
|
|
692
|
-
console.error("Error initializing default media:", error);
|
|
693
692
|
rejectPromise(error);
|
|
694
693
|
}
|
|
695
694
|
})();
|
|
@@ -777,7 +776,6 @@ const _MediaManagerSingleton = class _MediaManagerSingleton {
|
|
|
777
776
|
);
|
|
778
777
|
if (finalVideosToAdd.length > 0) {
|
|
779
778
|
await manager.addItems(finalVideosToAdd);
|
|
780
|
-
console.log(`Added ${finalVideosToAdd.length} default video(s) to media library`);
|
|
781
779
|
}
|
|
782
780
|
}
|
|
783
781
|
const existingImages = await manager.search({
|
|
@@ -799,7 +797,6 @@ const _MediaManagerSingleton = class _MediaManagerSingleton {
|
|
|
799
797
|
);
|
|
800
798
|
if (finalImagesToAdd.length > 0) {
|
|
801
799
|
await manager.addItems(finalImagesToAdd);
|
|
802
|
-
console.log(`Added ${finalImagesToAdd.length} default image(s) to media library`);
|
|
803
800
|
}
|
|
804
801
|
}
|
|
805
802
|
const existingAudios = await manager.search({
|
|
@@ -821,7 +818,6 @@ const _MediaManagerSingleton = class _MediaManagerSingleton {
|
|
|
821
818
|
);
|
|
822
819
|
if (finalAudiosToAdd.length > 0) {
|
|
823
820
|
await manager.addItems(finalAudiosToAdd);
|
|
824
|
-
console.log(`Added ${finalAudiosToAdd.length} default audio file(s) to media library`);
|
|
825
821
|
}
|
|
826
822
|
}
|
|
827
823
|
} catch (error) {
|
|
@@ -1249,7 +1245,7 @@ function ImagePanel({
|
|
|
1249
1245
|
e.stopPropagation();
|
|
1250
1246
|
onItemSelect(item, true);
|
|
1251
1247
|
},
|
|
1252
|
-
className: "media-action-btn",
|
|
1248
|
+
className: "media-action-btn media-action-btn-primary",
|
|
1253
1249
|
children: /* @__PURE__ */ jsx(Plus, { className: "icon-sm" })
|
|
1254
1250
|
}
|
|
1255
1251
|
) })
|
|
@@ -1385,34 +1381,32 @@ function VideoPanel({
|
|
|
1385
1381
|
}
|
|
1386
1382
|
}
|
|
1387
1383
|
),
|
|
1388
|
-
/* @__PURE__ */
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
{
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
)
|
|
1415
|
-
] })
|
|
1384
|
+
/* @__PURE__ */ jsx("div", { className: "media-actions", children: /* @__PURE__ */ jsx(
|
|
1385
|
+
"button",
|
|
1386
|
+
{
|
|
1387
|
+
onClick: (e) => {
|
|
1388
|
+
e.stopPropagation();
|
|
1389
|
+
onItemSelect(item, true);
|
|
1390
|
+
},
|
|
1391
|
+
className: "media-action-btn media-action-btn-primary",
|
|
1392
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "icon-sm" })
|
|
1393
|
+
}
|
|
1394
|
+
) }),
|
|
1395
|
+
/* @__PURE__ */ jsx("div", { className: "media-actions media-actions-corner", children: /* @__PURE__ */ jsx(
|
|
1396
|
+
"button",
|
|
1397
|
+
{
|
|
1398
|
+
onClick: (e) => {
|
|
1399
|
+
var _a, _b;
|
|
1400
|
+
e.stopPropagation();
|
|
1401
|
+
const videoEl = (_b = (_a = e.currentTarget.parentElement) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.querySelector("video");
|
|
1402
|
+
if (videoEl) {
|
|
1403
|
+
togglePlayPause(item, videoEl);
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
className: "media-action-btn",
|
|
1407
|
+
children: playingVideo === item.id ? /* @__PURE__ */ jsx(Pause, { className: "icon-sm" }) : /* @__PURE__ */ jsx(Play, { className: "icon-sm" })
|
|
1408
|
+
}
|
|
1409
|
+
) })
|
|
1416
1410
|
]
|
|
1417
1411
|
},
|
|
1418
1412
|
item.id
|