@arbocollab/arbo-web-scene 0.26.5-alpha.45 → 0.26.5-alpha.47

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/es/index.es.js CHANGED
@@ -51370,11 +51370,11 @@ const bgn = {
51370
51370
  (s = (a = e == null ? void 0 : e.config) == null ? void 0 : a.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", o);
51371
51371
  }
51372
51372
  return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = i, { handleSetTab: i };
51373
- }, Egn = "0.26.5-alpha.45", xgn = {
51373
+ }, Egn = "0.26.5-alpha.47", xgn = {
51374
51374
  "@arbocollab/arbo-chart-component": "1.0.1",
51375
51375
  "@arbocollab/arbo-comment-utils": "1.0.1",
51376
51376
  "@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@0.0.12-alpha.0",
51377
- "@arbocollab/arbo-media-player-component": "0.0.8",
51377
+ "@arbocollab/arbo-media-player-component": "0.0.9",
51378
51378
  "@arbocollab/arbo-table-component": "1.0.1",
51379
51379
  "@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components-beta@0.0.376-alpha.109",
51380
51380
  "@arbocollab/arbo-calendar-component": "0.0.38",
@@ -205026,31 +205026,31 @@ const rFr = /* @__PURE__ */ pi(qLr, [["render", nFr], ["__scopeId", "data-v-b99b
205026
205026
  emits: ["addFile"],
205027
205027
  setup(e, { expose: t, emit: n }) {
205028
205028
  t();
205029
- const r = {
205030
- SIZE: "File exceeds 5MB.",
205031
- TYPE: "File format not supported.",
205032
- DIFF: "Mixed file formats are not supported."
205033
- }, i = e, o = n, a = (h, f) => {
205034
- if (i.canDrop && h) {
205035
- const g = Tft({
205036
- files: h,
205037
- allowedTypes: i.fileType,
205038
- sizeLimit: i.sizeLimit,
205039
- allowMixedFileType: i.allowMixedFileType,
205040
- isRenditionFile: i.isRenditionFile
205029
+ const r = e, i = n, o = (d, h) => {
205030
+ if (r.canDrop && d) {
205031
+ const f = Tft({
205032
+ files: d,
205033
+ allowedTypes: r.fileType,
205034
+ sizeLimit: r.sizeLimit,
205035
+ allowMixedFileType: r.allowMixedFileType,
205036
+ isRenditionFile: r.isRenditionFile
205041
205037
  });
205042
- let m = [];
205043
- Object.keys(g.errors).forEach((b) => {
205044
- m.push(...g.errors[b]);
205045
- }), m.length > 0 && (m = Array.from(new Set(m)), m.forEach((b) => {
205046
- Eo().showMessage(i.errorMessage[b], "error");
205047
- })), o("addFile", g.resultFiles, f);
205048
- }
205049
- }, s = G(() => i.canDrop ? i.fileType : []), l = K(), { isOverDropZone: u } = F1n(l, {
205050
- onDrop: a,
205051
- dataTypes: s.value
205052
- }), c = G(() => u.value == !0 || i.showDropZone == !0), d = { errorMessageComment: r, props: i, emits: o, onDropFile: a, computedDataTypes: s, dropZoneRef: l, isOverDropZoneComment: u, isShowDropZone: c };
205053
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
205038
+ let g = [];
205039
+ Object.keys(f.errors).forEach((m) => {
205040
+ g.push(...f.errors[m]);
205041
+ }), g.length > 0 && (g = Array.from(new Set(g)), g.forEach((m) => {
205042
+ Eo().showMessage(r.errorMessage[m], "error");
205043
+ })), i("addFile", f.resultFiles, h);
205044
+ }
205045
+ }, a = G(() => r.canDrop ? r.fileType : []), s = K(), { isOverDropZone: l } = F1n(s, {
205046
+ onDrop: o,
205047
+ dataTypes: a.value
205048
+ }), u = G(() => l.value == !0 || r.showDropZone == !0);
205049
+ yn(() => {
205050
+ console.log("DropArea props", { props: r, computedDataTypes: a });
205051
+ });
205052
+ const c = { props: r, emits: i, onDropFile: o, computedDataTypes: a, dropZoneRef: s, isOverDropZoneComment: l, isShowDropZone: u };
205053
+ return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
205054
205054
  }
205055
205055
  }), oFr = { class: "icon" }, aFr = { class: "text" };
205056
205056
  function sFr(e, t, n, r, i, o) {
@@ -205062,11 +205062,11 @@ function sFr(e, t, n, r, i, o) {
205062
205062
  class: $e(["drop-area", { "over-drop": r.isShowDropZone }])
205063
205063
  },
205064
205064
  [
205065
- n.canDrop ? (j(), se(
205065
+ r.isShowDropZone ? (j(), se(
205066
205066
  "div",
205067
205067
  {
205068
205068
  key: 0,
205069
- class: $e(["bg-drop", { over: r.isOverDropZoneComment }])
205069
+ class: $e(["bg-drop", { over: r.isShowDropZone }])
205070
205070
  },
205071
205071
  [
205072
205072
  De("div", oFr, [
@@ -324074,9 +324074,9 @@ var rCi = {
324074
324074
  E(A.value.src, A.value.name);
324075
324075
  }, h = K(), f = K(!1), g = function() {
324076
324076
  var F = h.value;
324077
- F && (f.value ? document.exitFullscreen().then(function() {
324078
- f.value = !1;
324079
- }) : (f.value = !0, F.requestFullscreen()));
324077
+ console.log("Toggling fullscreen for player:", document.fullscreenElement), F && (document.fullscreenElement ? document.exitFullscreen().catch(function() {
324078
+ }) : F.requestFullscreen().catch(function() {
324079
+ }));
324080
324080
  }, m = function() {
324081
324081
  u();
324082
324082
  }, b = function() {
@@ -324199,6 +324199,11 @@ var rCi = {
324199
324199
  index: s.value,
324200
324200
  state: tO({}, A.value)
324201
324201
  });
324202
+ }), yn(function() {
324203
+ document.addEventListener("fullscreenchange", function() {
324204
+ var B = !!document.fullscreenElement;
324205
+ f.value = B;
324206
+ });
324202
324207
  }), function(B, F) {
324203
324208
  var z = us("arbo-tooltip");
324204
324209
  return j(), se(
@@ -326862,7 +326867,6 @@ const rxi = /* @__PURE__ */ pi(exi, [["render", nxi], ["__scopeId", "data-v-6fa8
326862
326867
  let we = [];
326863
326868
  return we = Q == null ? void 0 : Q.map((tt) => {
326864
326869
  var qe, Ne;
326865
- console.log("file", tt);
326866
326870
  const St = {
326867
326871
  type: (tt == null ? void 0 : tt.accept_type) || "",
326868
326872
  src: tt == null ? void 0 : tt.path,
@@ -327418,37 +327422,37 @@ const Exi = {
327418
327422
  rendition: pxi,
327419
327423
  log: N9r,
327420
327424
  home: E5r
327421
- }, h = Cm(), { dashboardActionQueue: f } = Ur(h), g = hy(), m = dR(), { connectState: b, isConnect: w } = Ur(m), { commentRenditionId: _, isCommentHeaderReady: C } = Ur(g), y = async (B) => {
327422
- o.value = B, b.value.logs = w.value, b.value.rendition = w.value, b.value.metric = w.value;
327423
- }, x = (B) => {
327424
- o.value = B;
327425
- }, E = (B, F) => {
327426
- l.value.addFiles(B, F);
327427
- }, T = (B, F) => {
327428
- var z;
327429
- s.value = !1, (z = u.value) != null && z.addFiles && u.value.addFiles(B, F);
327430
- }, O = () => {
327431
- s.value = !1;
327425
+ }, h = Cm(), { dashboardActionQueue: f } = Ur(h), g = hy(), m = dR(), { connectState: b, isConnect: w } = Ur(m), { commentRenditionId: _, isCommentHeaderReady: C } = Ur(g), y = async (F) => {
327426
+ o.value = F, b.value.logs = w.value, b.value.rendition = w.value, b.value.metric = w.value;
327427
+ }, x = (F) => {
327428
+ o.value = F;
327429
+ }, E = (F, z) => {
327430
+ l.value.addFiles(F, z);
327431
+ }, T = G(() => !!(o.value === "rendition" && c.value.createRendition)), O = (F, z) => {
327432
+ var q;
327433
+ s.value = !1, (q = u.value) != null && q.addFiles && u.value.addFiles(F, z);
327432
327434
  }, A = () => {
327433
- s.value = !0;
327435
+ s.value = !1;
327434
327436
  }, D = () => {
327437
+ s.value = !0;
327438
+ }, R = () => {
327435
327439
  s.value = !1, x("rendition");
327436
327440
  };
327437
- gt(o, (B, F) => {
327438
- B == "info" && F != "info" && i();
327439
- }), gt(o, (B) => {
327440
- if (B)
327441
+ gt(o, (F, z) => {
327442
+ F == "info" && z != "info" && i();
327443
+ }), gt(o, (F) => {
327444
+ if (F)
327441
327445
  try {
327442
- const F = new URLSearchParams(window.location.search), z = Object.fromEntries(F.entries()), q = new URL(window.location.href);
327443
- B && B !== F$ ? q.searchParams.set("tab", B) : q.searchParams.delete("tab"), a.value && B !== "rendition" && (z.renditionId || z.renditionPage) ? (q.searchParams.delete("renditionId"), q.searchParams.delete("renditionPage")) : _.value = "", window.history.replaceState({}, "", q.toString());
327444
- } catch (F) {
327445
- console.error("Error updating URL parameters:", F);
327446
+ const z = new URLSearchParams(window.location.search), q = Object.fromEntries(z.entries()), ee = new URL(window.location.href);
327447
+ F && F !== F$ ? ee.searchParams.set("tab", F) : ee.searchParams.delete("tab"), a.value && F !== "rendition" && (q.renditionId || q.renditionPage) ? (ee.searchParams.delete("renditionId"), ee.searchParams.delete("renditionPage")) : _.value = "", window.history.replaceState({}, "", ee.toString());
327448
+ } catch (z) {
327449
+ console.error("Error updating URL parameters:", z);
327446
327450
  }
327447
327451
  }), gt(
327448
327452
  f,
327449
- (B) => {
327450
- if (B) {
327451
- switch (B) {
327453
+ (F) => {
327454
+ if (F) {
327455
+ switch (F) {
327452
327456
  case n.ADD_RENDITION:
327453
327457
  s.value = !0;
327454
327458
  break;
@@ -327459,14 +327463,14 @@ const Exi = {
327459
327463
  x("log");
327460
327464
  break;
327461
327465
  default:
327462
- console.warn("Unknown dashboard action:", B);
327466
+ console.warn("Unknown dashboard action:", F);
327463
327467
  }
327464
327468
  f.value = void 0;
327465
327469
  }
327466
327470
  },
327467
327471
  { deep: !0 }
327468
327472
  );
327469
- const R = {
327473
+ const N = {
327470
327474
  HOME: { id: "home", tooltipName: "Home", icon: "House", disable: !1 },
327471
327475
  RENDITION: { id: "rendition", tooltipName: "Renditions", icon: "Clapperboard" },
327472
327476
  METRIC: { id: "metric", tooltipName: "Metrics", icon: "SquareRootVariable" },
@@ -327475,22 +327479,22 @@ const Exi = {
327475
327479
  };
327476
327480
  Os(() => {
327477
327481
  try {
327478
- const B = new URLSearchParams(window.location.search), F = Object.fromEntries(B.entries());
327479
- if (o.value || (o.value = F$), F.tab && F.tab !== F$)
327480
- if (Object.values(R).map((q) => q.id).includes(F.tab)) {
327481
- const q = F.tab;
327482
- x(q);
327482
+ const F = new URLSearchParams(window.location.search), z = Object.fromEntries(F.entries());
327483
+ if (o.value || (o.value = F$), z.tab && z.tab !== F$)
327484
+ if (Object.values(N).map((ee) => ee.id).includes(z.tab)) {
327485
+ const ee = z.tab;
327486
+ x(ee);
327483
327487
  } else
327484
- console.warn("Invalid tab parameter in URL:", F.tab), o.value = F$;
327485
- } catch (B) {
327486
- console.error("Error initializing tab from URL:", B), o.value = F$;
327488
+ console.warn("Invalid tab parameter in URL:", z.tab), o.value = F$;
327489
+ } catch (F) {
327490
+ console.error("Error initializing tab from URL:", F), o.value = F$;
327487
327491
  } finally {
327488
327492
  a.value = !0;
327489
327493
  }
327490
327494
  });
327491
- const N = e, $ = {
327492
- tabs: Object.values(R).map((B) => ({
327493
- ...B,
327495
+ const $ = e, P = {
327496
+ tabs: Object.values(N).map((F) => ({
327497
+ ...F,
327494
327498
  name: ""
327495
327499
  // Required by ArboTabs but unused in this case
327496
327500
  })),
@@ -327502,10 +327506,10 @@ const Exi = {
327502
327506
  keyDisable: "disable",
327503
327507
  position: "left",
327504
327508
  value: ""
327505
- }, P = { DASHBOARD_ACTIONS: n, DEFAULT_TAB: F$, sceneStore: r, getSceneData: i, currentSceneTabId: o, isMounted: a, isOpenNewRendition: s, commentRef: l, mainRef: u, permission: c, components: d, dashboardStore: h, dashboardActionQueue: f, commentStore: g, connectionStore: m, connectState: b, isConnect: w, commentRenditionId: _, isCommentHeaderReady: C, handleChangeTab: y, clickOnTab: x, handleAddFileComment: E, handleAddFileMain: T, handleCloseModal: O, handleCreateNewRendition: A, handleUploadFileRendition: D, TAB_CONFIG: R, props: N, tabProps: $, DropArea: lFr, Comments: Ojr, AddNewRenditionModal: jjr, get FILE_FORMAT() {
327509
+ }, B = { DASHBOARD_ACTIONS: n, DEFAULT_TAB: F$, sceneStore: r, getSceneData: i, currentSceneTabId: o, isMounted: a, isOpenNewRendition: s, commentRef: l, mainRef: u, permission: c, components: d, dashboardStore: h, dashboardActionQueue: f, commentStore: g, connectionStore: m, connectState: b, isConnect: w, commentRenditionId: _, isCommentHeaderReady: C, handleChangeTab: y, clickOnTab: x, handleAddFileComment: E, canDropRenditionFile: T, handleAddFileMain: O, handleCloseModal: A, handleCreateNewRendition: D, handleUploadFileRendition: R, TAB_CONFIG: N, props: $, tabProps: P, DropArea: lFr, Comments: Ojr, AddNewRenditionModal: jjr, get FILE_FORMAT() {
327506
327510
  return Ire;
327507
327511
  }, BodySkeleton: xxi };
327508
- return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
327512
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
327509
327513
  }
327510
327514
  }), kxi = {
327511
327515
  key: 0,
@@ -327565,10 +327569,11 @@ function Axi(e, t, n, r, i, o) {
327565
327569
  n.loading ? void 0 : {
327566
327570
  name: "content",
327567
327571
  fn: Ge(() => [
327568
- Me(r.DropArea, {
327572
+ (j(), ot(r.DropArea, {
327569
327573
  "file-type": ["image/jpeg", "image/png", "video/mp4", "video/quicktime", "image/jpg"],
327570
- "can-drop": !!(r.currentSceneTabId === "rendition" && r.permission.createRendition),
327574
+ "can-drop": r.canDropRenditionFile,
327571
327575
  "size-limit": 5e7,
327576
+ key: r.currentSceneTabId,
327572
327577
  "allow-mixed-file-type": !1,
327573
327578
  "is-rendition-file": !0,
327574
327579
  "error-message": {
@@ -327616,7 +327621,7 @@ function Axi(e, t, n, r, i, o) {
327616
327621
  ]),
327617
327622
  _: 1
327618
327623
  /* STABLE */
327619
- }, 8, ["can-drop"])
327624
+ }, 8, ["can-drop"]))
327620
327625
  ]),
327621
327626
  key: "1"
327622
327627
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbocollab/arbo-web-scene",
3
3
  "description": "Arbo Web Scene",
4
- "version": "0.26.5-alpha.45",
4
+ "version": "0.26.5-alpha.47",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {