@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 +81 -79
- package/package.json +1 -1
- package/style.css +1 -1
- package/umd/index.umd.js +2 -2
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.
|
|
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()
|
|
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
|
|
239651
|
-
`${
|
|
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 (
|
|
239655
|
-
return { success:
|
|
239656
|
+
if (_)
|
|
239657
|
+
return { success: i, data: _ };
|
|
239656
239658
|
throw new Error("Failed to assign user to comment");
|
|
239657
|
-
} catch (
|
|
239658
|
-
return gr(
|
|
239659
|
+
} catch (_) {
|
|
239660
|
+
return gr(_, "unresolveCommentAPI"), vs;
|
|
239659
239661
|
}
|
|
239660
239662
|
},
|
|
239661
|
-
getCommentAssignableUser: async (b, w, _
|
|
239663
|
+
getCommentAssignableUser: async (g, b, w, _) => {
|
|
239662
239664
|
try {
|
|
239663
|
-
const
|
|
239664
|
-
`${t}/workspace/${
|
|
239665
|
-
{ params: { page:
|
|
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 (
|
|
239668
|
-
return { success:
|
|
239669
|
+
if (C)
|
|
239670
|
+
return { success: i, data: C };
|
|
239669
239671
|
throw new Error("Failed to get assignable user");
|
|
239670
|
-
} catch (
|
|
239671
|
-
return gr(
|
|
239672
|
+
} catch (C) {
|
|
239673
|
+
return gr(C, "unresolveCommentAPI"), vs;
|
|
239672
239674
|
}
|
|
239673
239675
|
},
|
|
239674
|
-
resolveCommentApi: async (
|
|
239676
|
+
resolveCommentApi: async (g, b) => {
|
|
239675
239677
|
try {
|
|
239676
|
-
const
|
|
239677
|
-
`${
|
|
239678
|
+
const w = await pi.post(
|
|
239679
|
+
`${t}/workspace/${n}/items/${r}/comments/${b}/resolve`
|
|
239678
239680
|
);
|
|
239679
|
-
if (
|
|
239680
|
-
return { success:
|
|
239681
|
+
if (w)
|
|
239682
|
+
return { success: i, data: w };
|
|
239681
239683
|
throw new Error("Failed to resolve comment");
|
|
239682
|
-
} catch (
|
|
239683
|
-
return gr(
|
|
239684
|
+
} catch (w) {
|
|
239685
|
+
return gr(w, "resolveCommentAPI"), vs;
|
|
239684
239686
|
}
|
|
239685
239687
|
},
|
|
239686
|
-
deleteCommentApi: async (
|
|
239688
|
+
deleteCommentApi: async (g, b) => {
|
|
239687
239689
|
try {
|
|
239688
|
-
const
|
|
239689
|
-
`${t}/workspace/${
|
|
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(
|
|
239696
|
+
} catch (w) {
|
|
239697
|
+
return gr(w, "deleteComment"), vs;
|
|
239696
239698
|
}
|
|
239697
239699
|
},
|
|
239698
|
-
unResolveCommentApi: async (
|
|
239700
|
+
unResolveCommentApi: async (g, b) => {
|
|
239699
239701
|
try {
|
|
239700
|
-
const
|
|
239701
|
-
`${
|
|
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(
|
|
239708
|
+
} catch (w) {
|
|
239709
|
+
return gr(w, "unresolveCommentAPI"), vs;
|
|
239708
239710
|
}
|
|
239709
239711
|
},
|
|
239710
|
-
reactToCommentApi: async (
|
|
239712
|
+
reactToCommentApi: async (g) => {
|
|
239711
239713
|
try {
|
|
239712
|
-
const
|
|
239714
|
+
const b = await pi.post(`${t}/workspace/${n}/emojis`, {
|
|
239713
239715
|
model_type: "item_comment",
|
|
239714
|
-
item_id:
|
|
239715
|
-
model_id:
|
|
239716
|
-
emoji:
|
|
239716
|
+
item_id: r,
|
|
239717
|
+
model_id: g.comment_id,
|
|
239718
|
+
emoji: g.reaction
|
|
239717
239719
|
});
|
|
239718
|
-
if (
|
|
239719
|
-
return { success: !0, data:
|
|
239720
|
-
} catch (
|
|
239721
|
-
throw gr(
|
|
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 (
|
|
239727
|
+
updateReactCommentApi: async (g) => {
|
|
239726
239728
|
try {
|
|
239727
|
-
const
|
|
239728
|
-
`${
|
|
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:
|
|
239732
|
-
emoji:
|
|
239733
|
-
item_id:
|
|
239733
|
+
model_id: g.comment_id,
|
|
239734
|
+
emoji: g.reaction,
|
|
239735
|
+
item_id: r
|
|
239734
239736
|
}
|
|
239735
239737
|
);
|
|
239736
|
-
if (
|
|
239737
|
-
return { success: !0, data:
|
|
239738
|
+
if (b)
|
|
239739
|
+
return { success: !0, data: b };
|
|
239738
239740
|
throw new Error("Failed to update reaction");
|
|
239739
|
-
} catch (
|
|
239740
|
-
return gr(
|
|
239741
|
+
} catch (b) {
|
|
239742
|
+
return gr(b, "sendReactionCommentAPI"), vs;
|
|
239741
239743
|
}
|
|
239742
239744
|
},
|
|
239743
|
-
deleteReactCommentApi: async (
|
|
239745
|
+
deleteReactCommentApi: async (g) => {
|
|
239744
239746
|
try {
|
|
239745
|
-
const
|
|
239746
|
-
if (
|
|
239747
|
-
return { success: !0, data:
|
|
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 (
|
|
239750
|
-
return gr(
|
|
239751
|
+
} catch (b) {
|
|
239752
|
+
return gr(b, "sendReactionCommentAPI"), vs;
|
|
239751
239753
|
}
|
|
239752
239754
|
},
|
|
239753
|
-
updateCommentAPI: async (
|
|
239755
|
+
updateCommentAPI: async (g, b) => {
|
|
239754
239756
|
try {
|
|
239755
|
-
const
|
|
239756
|
-
`${
|
|
239757
|
+
const w = await pi.put(
|
|
239758
|
+
`${t}/workspace/${n}/items/${r}/comments/${g}`,
|
|
239757
239759
|
{
|
|
239758
|
-
...
|
|
239760
|
+
...b
|
|
239759
239761
|
}
|
|
239760
239762
|
);
|
|
239761
|
-
if (
|
|
239762
|
-
return { success: !0, 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(
|
|
239766
|
+
} catch (w) {
|
|
239767
|
+
return gr(w, "uploadFileAPI"), vs;
|
|
239766
239768
|
}
|
|
239767
239769
|
},
|
|
239768
|
-
getCommentDetailAPI: async (
|
|
239770
|
+
getCommentDetailAPI: async (g) => {
|
|
239769
239771
|
try {
|
|
239770
|
-
const
|
|
239771
|
-
`${t}/workspace/${
|
|
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 (
|
|
239782
|
-
return { data:
|
|
239783
|
-
} catch (
|
|
239784
|
-
return gr(
|
|
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
|
}
|