ode-explorer 2.1.0-develop.202501271724 → 2.1.1-develop-wl.202502041729

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.
@@ -1,7 +1,7 @@
1
1
  import { jsx as a, Fragment as X, jsxs as Q } from "react/jsx-runtime";
2
2
  import { useState as L, useEffect as Z, Suspense as pe, lazy as b } from "react";
3
3
  import { odeServices as D, ACTION as c, isActionAvailable as he } from "@edifice.io/client";
4
- import { useUser as fe, Button as W, useEdificeClient as Re, ActionBar as me, LoadingScreen as Se, BlogPublic as Ee, ShareModal as Oe, ShareBlog as Ce } from "@edifice.io/react";
4
+ import { useUser as fe, Button as W, useEdificeClient as Re, ActionBar as me, BlogPublic as Se, ShareModal as Ee, ShareBlog as Oe, LoadingScreen as Ce } from "@edifice.io/react";
5
5
  import { useTransition as be, animated as ye } from "@react-spring/web";
6
6
  import { useTranslation as ee } from "react-i18next";
7
7
  import { f as J, u as Ie, c as ge, h as Ae, i as se, j as ve, k as Me, l as Pe, m as we, e as Fe, n as xe, o as Te, a as te, b as Be, p as De, q as Le, r as _e } from "./index2.js";
@@ -292,17 +292,17 @@ function Ze() {
292
292
  }, children: /* @__PURE__ */ a(me, { children: t == null ? void 0 : t.filter((d) => d.available && d.target === "actionbar").map((d) => x(d) && /* @__PURE__ */ a(ke, { resourceRights: p, roleExpected: d.right, action: d, children: /* @__PURE__ */ a(W, { id: d.id, type: "button", color: "primary", variant: "filled", onClick: () => {
293
293
  g(d);
294
294
  }, children: s(f(d)) }, d.id) }, d.id)) }) })),
295
- /* @__PURE__ */ Q(pe, { fallback: /* @__PURE__ */ a(Se, {}), children: [
295
+ /* @__PURE__ */ Q(pe, { fallback: /* @__PURE__ */ a(Ce, {}), children: [
296
296
  o && /* @__PURE__ */ a(je, { isOpen: o, onCancel: w, onSuccess: F }),
297
297
  E && /* @__PURE__ */ a(Ye, { isOpen: E, onCancel: U, onSuccess: Y }),
298
298
  i && S && /* @__PURE__ */ a(He, { isOpen: i, resourceId: S.assetId, onCancel: j, onSuccess: z }),
299
299
  h && /* @__PURE__ */ a(ze, { edit: !0, isOpen: h, onCancel: l, onSuccess: n }),
300
- R && S && /* @__PURE__ */ a(Ue, { mode: "update", isOpen: R, resourceId: S.assetId, updateResource: T, onCancel: y, onSuccess: I, children: (A, v, d, q, G) => r === "blog" && he("createPublic", t) && /* @__PURE__ */ a(Ee, { appCode: r, isUpdating: v, resource: A, watch: d, setValue: q, register: G }) }),
301
- M && S && /* @__PURE__ */ a(Oe, { isOpen: M, shareResource: V, shareOptions: {
300
+ R && S && /* @__PURE__ */ a(Ue, { mode: "update", isOpen: R, resourceId: S.assetId, updateResource: T, onCancel: y, onSuccess: I, children: (A, v, d, q, G) => r === "blog" && he("createPublic", t) && /* @__PURE__ */ a(Se, { appCode: r, isUpdating: v, resource: A, watch: d, setValue: q, register: G }) }),
301
+ M && S && /* @__PURE__ */ a(Ee, { isOpen: M, shareResource: V, shareOptions: {
302
302
  resourceCreatorId: S.creatorId,
303
303
  resourceId: S.assetId,
304
304
  resourceRights: S.rights
305
- }, onCancel: _, onSuccess: N, children: r === "blog" ? /* @__PURE__ */ a(Ce, { resourceId: S.assetId, updateResource: T }) : null }),
305
+ }, onCancel: _, onSuccess: N, children: r === "blog" ? /* @__PURE__ */ a(Oe, { resourceId: S.assetId, updateResource: T }) : null }),
306
306
  P && S && /* @__PURE__ */ a(Ve, { isOpen: P, onCancel: k, onSuccess: H })
307
307
  ] })
308
308
  ] });
package/lib/AppAction.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, Fragment as h, jsx as e } from "react/jsx-runtime";
2
2
  import { Suspense as A, lazy as x } from "react";
3
3
  import { isActionAvailable as I } from "@edifice.io/client";
4
- import { useToggle as P, useEdificeClient as R, Button as y, LoadingScreen as O, BlogPublic as k } from "@edifice.io/react";
4
+ import { useToggle as P, useEdificeClient as R, Button as y, BlogPublic as O, LoadingScreen as k } from "@edifice.io/react";
5
5
  import { u as v, a as F, b as T, c as j, d as B, e as w, S as z, g as E } from "./index2.js";
6
6
  import { useTranslation as L } from "react-i18next";
7
7
  const M = /* @__PURE__ */ x(async () => await import("./ResourceModal.js"));
@@ -27,7 +27,7 @@ function Q() {
27
27
  }
28
28
  i(), u(), s();
29
29
  }, children: l("explorer.create.title") }),
30
- /* @__PURE__ */ e(A, { fallback: /* @__PURE__ */ e(O, {}), children: c && /* @__PURE__ */ e(M, { mode: "create", currentFolder: n, createResource: m, isOpen: c, onSuccess: s, onCancel: s, children: (o, f, C, g, S) => t === "blog" && I("createPublic", r) && /* @__PURE__ */ e(k, { appCode: t, isUpdating: f, resource: o, watch: C, setValue: g, register: S }) }) })
30
+ /* @__PURE__ */ e(A, { fallback: /* @__PURE__ */ e(k, {}), children: c && /* @__PURE__ */ e(M, { mode: "create", currentFolder: n, createResource: m, isOpen: c, onSuccess: s, onCancel: s, children: (o, f, C, g, S) => t === "blog" && I("createPublic", r) && /* @__PURE__ */ e(O, { appCode: t, isUpdating: f, resource: o, watch: C, setValue: g, register: S }) }) })
31
31
  ] }) : null;
32
32
  }
33
33
  export {
package/lib/index2.js CHANGED
@@ -3,7 +3,7 @@ import { useEffect as B, Suspense as Q, lazy as k, useState as le, useRef as we,
3
3
  import { useSensor as ne, PointerSensor as xe, KeyboardSensor as Se, useSensors as be, DndContext as Te } from "@dnd-kit/core";
4
4
  import { snapCenterToCursor as Fe } from "@dnd-kit/modifiers";
5
5
  import { odeServices as A, FOLDER as L, SORT_ORDER as Re, ResourceService as de, isActionAvailable as oe } from "@edifice.io/client";
6
- import { findNodeById as G, wrapTreeNode as Ee, findParentNode as Le, useToast as U, moveNode as Ne, deleteNode as Ae, useUser as ue, useShareMutation as Me, useUpdateMutation as ke, useEdificeClient as Z, addNode as Pe, updateNode as ve, getAncestors as ae, LoadingScreen as H, FormControl as He, Input as Qe, SearchButton as Ue, Dropdown as K, useToggle as Ze, useScrollToTop as Oe, TreeView as qe, Button as Be, IconButton as Ve, useXitiTrackPageLoad as _e, AppHeader as Ke, Breadcrumb as $e, Grid as te } from "@edifice.io/react";
6
+ import { findParentNode as Ee, findNodeById as G, wrapTreeNode as Le, useToast as U, moveNode as Ne, useUser as ue, useEdificeClient as Z, useShareMutation as Ae, useUpdateMutation as Me, addNode as ke, updateNode as Pe, deleteNode as ve, getAncestors as ae, LoadingScreen as H, FormControl as He, Input as Qe, SearchButton as Ue, Dropdown as K, useToggle as Ze, useScrollToTop as Oe, TreeView as qe, Button as Be, IconButton as Ve, useXitiTrackPageLoad as _e, AppHeader as Ke, Breadcrumb as $e, Grid as te } from "@edifice.io/react";
7
7
  import { t as N } from "i18next";
8
8
  import { createStore as ze, useStore as je } from "zustand";
9
9
  import { useQuery as We, queryOptions as Ge, useQueryClient as v, useMutation as O, useInfiniteQuery as Je } from "@tanstack/react-query";
@@ -350,7 +350,7 @@ const he = async (e) => {
350
350
  }
351
351
  })
352
352
  });
353
- t().actions.setTreeData(Ee(t().treeData, o == null ? void 0 : o.folders, c || L.DEFAULT));
353
+ t().actions.setTreeData(Le(t().treeData, o == null ? void 0 : o.folders, c || L.DEFAULT));
354
354
  },
355
355
  selectTreeItem: (s, r) => {
356
356
  const {
@@ -384,7 +384,7 @@ const he = async (e) => {
384
384
  folder: pe,
385
385
  folderId: L.DEFAULT
386
386
  }), !s) return;
387
- const o = Le(r, s);
387
+ const o = Ee(r, s);
388
388
  c({
389
389
  folder: o,
390
390
  folderId: (o == null ? void 0 : o.id) || L.DEFAULT
@@ -614,7 +614,7 @@ const xt = (e, t) => {
614
614
  resources: y.resources.filter((w) => u ? !c.includes(w.assetId) : !f.includes(w.id))
615
615
  };
616
616
  })
617
- }, D = Ae(r, {
617
+ }, D = ve(r, {
618
618
  folders: n
619
619
  });
620
620
  return h(D), d({
@@ -881,7 +881,7 @@ const xt = (e, t) => {
881
881
  ...I,
882
882
  folders: [...I.folders, h]
883
883
  }))
884
- }, m = Pe(r, {
884
+ }, m = ke(r, {
885
885
  parentId: i.parentId,
886
886
  newFolder: h
887
887
  });
@@ -933,7 +933,7 @@ const xt = (e, t) => {
933
933
  rights: x.rights
934
934
  } : x)
935
935
  }))
936
- }, I = ve(r, {
936
+ }, I = Pe(r, {
937
937
  folderId: h.folderId,
938
938
  newFolder: l
939
939
  });
@@ -957,7 +957,7 @@ const xt = (e, t) => {
957
957
  filters: c,
958
958
  trashed: o
959
959
  }];
960
- return Me({
960
+ return Ae({
961
961
  application: e,
962
962
  options: {
963
963
  onSuccess: async (f, i) => {
@@ -998,7 +998,7 @@ const xt = (e, t) => {
998
998
  filters: r,
999
999
  trashed: n
1000
1000
  }];
1001
- return ke({
1001
+ return Me({
1002
1002
  application: e,
1003
1003
  options: {
1004
1004
  onSuccess: async (o, u) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "2.1.0-develop.202501271724",
3
+ "version": "2.1.1-develop-wl.202502041729",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@dnd-kit/core": "^6.1.0",
40
40
  "@dnd-kit/modifiers": "^7.0.0",
41
- "@edifice.io/react": "develop",
42
- "@edifice.io/bootstrap": "develop",
43
- "@edifice.io/client": "develop",
41
+ "@edifice.io/react": "develop-wl",
42
+ "@edifice.io/bootstrap": "develop-wl",
43
+ "@edifice.io/client": "develop-wl",
44
44
  "@react-spring/web": "^9.7.3",
45
45
  "@tanstack/react-query": "5.62.7",
46
46
  "clsx": "^2.1.1",