@arbocollab/arbo-web-scene 0.26.9-alpha.7 → 0.26.9-alpha.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/es/index.es.js CHANGED
@@ -11928,7 +11928,7 @@ const uYt = (e, t) => {
11928
11928
  (s = (o = e == null ? void 0 : e.config) == null ? void 0 : o.globalProperties) == null || s.setStoreValue("scene", "setCurrentSceneTabId", a);
11929
11929
  }
11930
11930
  return e.config.globalProperties.setStoreValue = r, e.config.globalProperties.handleSetTab = i, { handleSetTab: i };
11931
- }, cYt = "0.26.9-alpha.7", dYt = {
11931
+ }, cYt = "0.26.9-alpha.9", dYt = {
11932
11932
  "@arbocollab/arbo-chart-component": "1.0.1",
11933
11933
  "@arbocollab/arbo-comment-utils": "1.0.1",
11934
11934
  "@arbocollab/arbo-common-utils": "npm:@arbocollab/arbo-common-utils@1.0.14",
@@ -239643,132 +239643,134 @@ function Vni(e, t, n, r, i, a) {
239643
239643
  ]);
239644
239644
  }
239645
239645
  const IPt = /* @__PURE__ */ gi(Mni, [["render", Vni], ["__scopeId", "data-v-35460822"], ["__file", "/home/mor-ubuntu/arbo/arbo-web-scene/src/components/comments/CommentSkeleton.vue"]]), Uni = () => {
239646
- const { getEnvVariable: e } = Vy(), t = e("API_BASE_URL"), n = e("API_REVIEW_URL"), r = Ec(), i = Vm(), a = !0;
239646
+ const { getEnvVariable: e } = Vy();
239647
+ e("API_BASE_URL");
239648
+ const t = e("API_REVIEW_URL"), n = Ec(), r = Vm(), i = !0;
239647
239649
  return {
239648
- assignUserApi: async (b, w, _) => {
239650
+ assignUserApi: async (g, b, w) => {
239649
239651
  try {
239650
- const C = await pi.post(
239651
- `${n}/workspace/${r}/items/${i}/comments/${w}/assign`,
239652
- { assigned_id: _ }
239652
+ const _ = await pi.post(
239653
+ `${t}/workspace/${n}/items/${r}/comments/${b}/assign`,
239654
+ { assigned_id: w }
239653
239655
  );
239654
- if (C)
239655
- return { success: a, data: C };
239656
+ if (_)
239657
+ return { success: i, data: _ };
239656
239658
  throw new Error("Failed to assign user to comment");
239657
- } catch (C) {
239658
- return gr(C, "unresolveCommentAPI"), vs;
239659
+ } catch (_) {
239660
+ return gr(_, "unresolveCommentAPI"), vs;
239659
239661
  }
239660
239662
  },
239661
- getCommentAssignableUser: async (b, w, _, C) => {
239663
+ getCommentAssignableUser: async (g, b, w, _) => {
239662
239664
  try {
239663
- const v = await pi.get(
239664
- `${t}/workspace/${r}/review/2/items/${i}/comments/${w}/assignable-users`,
239665
- { params: { page: _, display_name_like: C } }
239665
+ const C = await pi.get(
239666
+ `${t}/workspace/${n}/review/2/items/${r}/comments/${b}/assignable-users`,
239667
+ { params: { page: w, display_name_like: _ } }
239666
239668
  );
239667
- if (v)
239668
- return { success: a, data: v };
239669
+ if (C)
239670
+ return { success: i, data: C };
239669
239671
  throw new Error("Failed to get assignable user");
239670
- } catch (v) {
239671
- return gr(v, "unresolveCommentAPI"), vs;
239672
+ } catch (C) {
239673
+ return gr(C, "unresolveCommentAPI"), vs;
239672
239674
  }
239673
239675
  },
239674
- resolveCommentApi: async (b, w) => {
239676
+ resolveCommentApi: async (g, b) => {
239675
239677
  try {
239676
- const _ = await pi.post(
239677
- `${n}/workspace/${r}/items/${i}/comments/${w}/resolve`
239678
+ const w = await pi.post(
239679
+ `${t}/workspace/${n}/items/${r}/comments/${b}/resolve`
239678
239680
  );
239679
- if (_)
239680
- return { success: a, data: _ };
239681
+ if (w)
239682
+ return { success: i, data: w };
239681
239683
  throw new Error("Failed to resolve comment");
239682
- } catch (_) {
239683
- return gr(_, "resolveCommentAPI"), vs;
239684
+ } catch (w) {
239685
+ return gr(w, "resolveCommentAPI"), vs;
239684
239686
  }
239685
239687
  },
239686
- deleteCommentApi: async (b, w) => {
239688
+ deleteCommentApi: async (g, b) => {
239687
239689
  try {
239688
- const _ = await pi.delete(
239689
- `${t}/workspace/${r}/review/2/items/${i}/comments/${w}`
239690
+ const w = await pi.delete(
239691
+ `${t}/workspace/${n}/review/2/items/${r}/comments/${b}`
239690
239692
  );
239691
- if (_)
239692
- return { success: !0, data: _ };
239693
+ if (w)
239694
+ return { success: !0, data: w };
239693
239695
  throw new Error("Failed to delete comment");
239694
- } catch (_) {
239695
- return gr(_, "deleteComment"), vs;
239696
+ } catch (w) {
239697
+ return gr(w, "deleteComment"), vs;
239696
239698
  }
239697
239699
  },
239698
- unResolveCommentApi: async (b, w) => {
239700
+ unResolveCommentApi: async (g, b) => {
239699
239701
  try {
239700
- const _ = await pi.post(
239701
- `${n}/workspace/${r}/items/${i}/comments/${w}/unresolve`
239702
+ const w = await pi.post(
239703
+ `${t}/workspace/${n}/items/${r}/comments/${b}/unresolve`
239702
239704
  );
239703
- if (_)
239704
- return { success: !0, data: _ };
239705
+ if (w)
239706
+ return { success: !0, data: w };
239705
239707
  throw new Error("Failed to unresolve comment");
239706
- } catch (_) {
239707
- return gr(_, "unresolveCommentAPI"), vs;
239708
+ } catch (w) {
239709
+ return gr(w, "unresolveCommentAPI"), vs;
239708
239710
  }
239709
239711
  },
239710
- reactToCommentApi: async (b) => {
239712
+ reactToCommentApi: async (g) => {
239711
239713
  try {
239712
- const w = await pi.post(`${n}/workspace/${r}/emojis`, {
239714
+ const b = await pi.post(`${t}/workspace/${n}/emojis`, {
239713
239715
  model_type: "item_comment",
239714
- item_id: i,
239715
- model_id: b.comment_id,
239716
- emoji: b.reaction
239716
+ item_id: r,
239717
+ model_id: g.comment_id,
239718
+ emoji: g.reaction
239717
239719
  });
239718
- if (w)
239719
- return { success: !0, data: w };
239720
- } catch (w) {
239721
- throw gr(w, "sendReactionCommentAPI"), w;
239720
+ if (b)
239721
+ return { success: !0, data: b };
239722
+ } catch (b) {
239723
+ throw gr(b, "sendReactionCommentAPI"), b;
239722
239724
  }
239723
239725
  return vs;
239724
239726
  },
239725
- updateReactCommentApi: async (b) => {
239727
+ updateReactCommentApi: async (g) => {
239726
239728
  try {
239727
- const w = await pi.put(
239728
- `${n}/workspace/${r}/emojis/${b.reaction_id}`,
239729
+ const b = await pi.put(
239730
+ `${t}/workspace/${n}/emojis/${g.reaction_id}`,
239729
239731
  {
239730
239732
  model_type: "item_comment",
239731
- model_id: b.comment_id,
239732
- emoji: b.reaction,
239733
- item_id: i
239733
+ model_id: g.comment_id,
239734
+ emoji: g.reaction,
239735
+ item_id: r
239734
239736
  }
239735
239737
  );
239736
- if (w)
239737
- return { success: !0, data: w };
239738
+ if (b)
239739
+ return { success: !0, data: b };
239738
239740
  throw new Error("Failed to update reaction");
239739
- } catch (w) {
239740
- return gr(w, "sendReactionCommentAPI"), vs;
239741
+ } catch (b) {
239742
+ return gr(b, "sendReactionCommentAPI"), vs;
239741
239743
  }
239742
239744
  },
239743
- deleteReactCommentApi: async (b) => {
239745
+ deleteReactCommentApi: async (g) => {
239744
239746
  try {
239745
- const w = await pi.delete(`${n}/workspace/${r}/emojis/${b}`);
239746
- if (w)
239747
- return { success: !0, data: w };
239747
+ const b = await pi.delete(`${t}/workspace/${n}/emojis/${g}`);
239748
+ if (b)
239749
+ return { success: !0, data: b };
239748
239750
  throw new Error("Failed to delete reaction");
239749
- } catch (w) {
239750
- return gr(w, "sendReactionCommentAPI"), vs;
239751
+ } catch (b) {
239752
+ return gr(b, "sendReactionCommentAPI"), vs;
239751
239753
  }
239752
239754
  },
239753
- updateCommentAPI: async (b, w) => {
239755
+ updateCommentAPI: async (g, b) => {
239754
239756
  try {
239755
- const _ = await pi.put(
239756
- `${n}/workspace/${r}/items/${i}/comments/${b}`,
239757
+ const w = await pi.put(
239758
+ `${t}/workspace/${n}/items/${r}/comments/${g}`,
239757
239759
  {
239758
- ...w
239760
+ ...b
239759
239761
  }
239760
239762
  );
239761
- if (_)
239762
- return { success: !0, data: _.data };
239763
+ if (w)
239764
+ return { success: !0, data: w.data };
239763
239765
  throw new Error("Failed to update comment");
239764
- } catch (_) {
239765
- return gr(_, "uploadFileAPI"), vs;
239766
+ } catch (w) {
239767
+ return gr(w, "uploadFileAPI"), vs;
239766
239768
  }
239767
239769
  },
239768
- getCommentDetailAPI: async (b) => {
239770
+ getCommentDetailAPI: async (g) => {
239769
239771
  try {
239770
- const w = await pi.get(
239771
- `${t}/workspace/${r}/review/2/items/${i}/comments/${b}`,
239772
+ const b = await pi.get(
239773
+ `${t}/workspace/${n}/review/2/items/${r}/comments/${g}`,
239772
239774
  {
239773
239775
  params: {
239774
239776
  include: E8,
@@ -239778,10 +239780,10 @@ const IPt = /* @__PURE__ */ gi(Mni, [["render", Vni], ["__scopeId", "data-v-3546
239778
239780
  }
239779
239781
  }
239780
239782
  );
239781
- if (w)
239782
- return { data: w, success: !0 };
239783
- } catch (w) {
239784
- return gr(w, "getDetailCommentAPI"), vs;
239783
+ if (b)
239784
+ return { data: b, success: !0 };
239785
+ } catch (b) {
239786
+ return gr(b, "getDetailCommentAPI"), vs;
239785
239787
  }
239786
239788
  return vs;
239787
239789
  }
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.9-alpha.7",
4
+ "version": "0.26.9-alpha.9",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "scripts": {