@arbocollab/arbo-web-scene 0.26.5-alpha.46 → 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,7 +51370,7 @@ 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.46", 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",
@@ -205027,7 +205027,7 @@ const rFr = /* @__PURE__ */ pi(qLr, [["render", nFr], ["__scopeId", "data-v-b99b
205027
205027
  setup(e, { expose: t, emit: n }) {
205028
205028
  t();
205029
205029
  const r = e, i = n, o = (d, h) => {
205030
- if (console.log("onDropFile", d, h), !!r.canDrop && d) {
205030
+ if (r.canDrop && d) {
205031
205031
  const f = Tft({
205032
205032
  files: d,
205033
205033
  allowedTypes: r.fileType,
@@ -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, [
@@ -326867,7 +326867,6 @@ const rxi = /* @__PURE__ */ pi(exi, [["render", nxi], ["__scopeId", "data-v-6fa8
326867
326867
  let we = [];
326868
326868
  return we = Q == null ? void 0 : Q.map((tt) => {
326869
326869
  var qe, Ne;
326870
- console.log("file", tt);
326871
326870
  const St = {
326872
326871
  type: (tt == null ? void 0 : tt.accept_type) || "",
326873
326872
  src: tt == null ? void 0 : tt.path,
@@ -327423,37 +327422,37 @@ const Exi = {
327423
327422
  rendition: pxi,
327424
327423
  log: N9r,
327425
327424
  home: E5r
327426
- }, h = Cm(), { dashboardActionQueue: f } = Ur(h), g = hy(), m = dR(), { connectState: b, isConnect: w } = Ur(m), { commentRenditionId: _, isCommentHeaderReady: C } = Ur(g), y = async (B) => {
327427
- o.value = B, b.value.logs = w.value, b.value.rendition = w.value, b.value.metric = w.value;
327428
- }, x = (B) => {
327429
- o.value = B;
327430
- }, E = (B, F) => {
327431
- l.value.addFiles(B, F);
327432
- }, T = (B, F) => {
327433
- var z;
327434
- s.value = !1, (z = u.value) != null && z.addFiles && u.value.addFiles(B, F);
327435
- }, O = () => {
327436
- 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);
327437
327434
  }, A = () => {
327438
- s.value = !0;
327435
+ s.value = !1;
327439
327436
  }, D = () => {
327437
+ s.value = !0;
327438
+ }, R = () => {
327440
327439
  s.value = !1, x("rendition");
327441
327440
  };
327442
- gt(o, (B, F) => {
327443
- B == "info" && F != "info" && i();
327444
- }), gt(o, (B) => {
327445
- if (B)
327441
+ gt(o, (F, z) => {
327442
+ F == "info" && z != "info" && i();
327443
+ }), gt(o, (F) => {
327444
+ if (F)
327446
327445
  try {
327447
- const F = new URLSearchParams(window.location.search), z = Object.fromEntries(F.entries()), q = new URL(window.location.href);
327448
- 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());
327449
- } catch (F) {
327450
- 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);
327451
327450
  }
327452
327451
  }), gt(
327453
327452
  f,
327454
- (B) => {
327455
- if (B) {
327456
- switch (B) {
327453
+ (F) => {
327454
+ if (F) {
327455
+ switch (F) {
327457
327456
  case n.ADD_RENDITION:
327458
327457
  s.value = !0;
327459
327458
  break;
@@ -327464,14 +327463,14 @@ const Exi = {
327464
327463
  x("log");
327465
327464
  break;
327466
327465
  default:
327467
- console.warn("Unknown dashboard action:", B);
327466
+ console.warn("Unknown dashboard action:", F);
327468
327467
  }
327469
327468
  f.value = void 0;
327470
327469
  }
327471
327470
  },
327472
327471
  { deep: !0 }
327473
327472
  );
327474
- const R = {
327473
+ const N = {
327475
327474
  HOME: { id: "home", tooltipName: "Home", icon: "House", disable: !1 },
327476
327475
  RENDITION: { id: "rendition", tooltipName: "Renditions", icon: "Clapperboard" },
327477
327476
  METRIC: { id: "metric", tooltipName: "Metrics", icon: "SquareRootVariable" },
@@ -327480,22 +327479,22 @@ const Exi = {
327480
327479
  };
327481
327480
  Os(() => {
327482
327481
  try {
327483
- const B = new URLSearchParams(window.location.search), F = Object.fromEntries(B.entries());
327484
- if (o.value || (o.value = F$), F.tab && F.tab !== F$)
327485
- if (Object.values(R).map((q) => q.id).includes(F.tab)) {
327486
- const q = F.tab;
327487
- 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);
327488
327487
  } else
327489
- console.warn("Invalid tab parameter in URL:", F.tab), o.value = F$;
327490
- } catch (B) {
327491
- 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$;
327492
327491
  } finally {
327493
327492
  a.value = !0;
327494
327493
  }
327495
327494
  });
327496
- const N = e, $ = {
327497
- tabs: Object.values(R).map((B) => ({
327498
- ...B,
327495
+ const $ = e, P = {
327496
+ tabs: Object.values(N).map((F) => ({
327497
+ ...F,
327499
327498
  name: ""
327500
327499
  // Required by ArboTabs but unused in this case
327501
327500
  })),
@@ -327507,10 +327506,10 @@ const Exi = {
327507
327506
  keyDisable: "disable",
327508
327507
  position: "left",
327509
327508
  value: ""
327510
- }, 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() {
327511
327510
  return Ire;
327512
327511
  }, BodySkeleton: xxi };
327513
- return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
327512
+ return Object.defineProperty(B, "__isScriptSetup", { enumerable: !1, value: !0 }), B;
327514
327513
  }
327515
327514
  }), kxi = {
327516
327515
  key: 0,
@@ -327570,10 +327569,11 @@ function Axi(e, t, n, r, i, o) {
327570
327569
  n.loading ? void 0 : {
327571
327570
  name: "content",
327572
327571
  fn: Ge(() => [
327573
- Me(r.DropArea, {
327572
+ (j(), ot(r.DropArea, {
327574
327573
  "file-type": ["image/jpeg", "image/png", "video/mp4", "video/quicktime", "image/jpg"],
327575
- "can-drop": !!(r.currentSceneTabId === "rendition" && r.permission.createRendition),
327574
+ "can-drop": r.canDropRenditionFile,
327576
327575
  "size-limit": 5e7,
327576
+ key: r.currentSceneTabId,
327577
327577
  "allow-mixed-file-type": !1,
327578
327578
  "is-rendition-file": !0,
327579
327579
  "error-message": {
@@ -327621,7 +327621,7 @@ function Axi(e, t, n, r, i, o) {
327621
327621
  ]),
327622
327622
  _: 1
327623
327623
  /* STABLE */
327624
- }, 8, ["can-drop"])
327624
+ }, 8, ["can-drop"]))
327625
327625
  ]),
327626
327626
  key: "1"
327627
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.46",
4
+ "version": "0.26.5-alpha.47",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {