@twick/studio 0.15.7 → 0.15.9

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