ode-explorer 2.0.0 → 2.1.0

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.
Files changed (106) hide show
  1. package/dist/EcritureA-Romain-Orne.woff2 +0 -0
  2. package/dist/KGJuneBug.ttf +0 -0
  3. package/dist/OpenDyslexic.woff +0 -0
  4. package/dist/christmas.png +0 -0
  5. package/dist/circus.jpg +0 -0
  6. package/dist/desert.jpg +0 -0
  7. package/dist/hills.svg +360 -0
  8. package/dist/illu-blog.svg +1 -0
  9. package/dist/illu-collaborativewall.svg +1 -0
  10. package/dist/illu-empty-search-blog.svg +25 -0
  11. package/dist/illu-empty-search-blog2.svg +25 -0
  12. package/dist/illu-empty-search-collaborativewall.svg +25 -0
  13. package/dist/illu-empty-search-collaborativewall2.svg +25 -0
  14. package/dist/illu-empty-search-formulaire.svg +27 -0
  15. package/dist/illu-empty-search-formulaire2.svg +27 -0
  16. package/dist/illu-empty-search-forum.svg +25 -0
  17. package/dist/illu-empty-search-forum2.svg +25 -0
  18. package/dist/illu-empty-search-homeworks.svg +25 -0
  19. package/dist/illu-empty-search-homeworks2.svg +25 -0
  20. package/dist/illu-empty-search-wiki.svg +26 -0
  21. package/dist/illu-empty-search-wiki2.svg +26 -0
  22. package/dist/illu-empty-search.svg +62 -0
  23. package/dist/illu-empty-search2.svg +62 -0
  24. package/dist/illu-error.svg +60 -0
  25. package/dist/illu-exercizer.svg +1 -0
  26. package/dist/illu-mindmap.svg +1 -0
  27. package/dist/illu-no-content-in-folder.svg +31 -0
  28. package/dist/illu-pad.svg +1 -0
  29. package/dist/illu-scrapbook.svg +1 -0
  30. package/dist/illu-search.svg +1 -0
  31. package/dist/illu-timeline.svg +1 -0
  32. package/dist/illu-timelinegenerator.svg +1 -0
  33. package/dist/illu-trash-delete.svg +22 -0
  34. package/dist/illu-trash.svg +1 -0
  35. package/dist/illu-wiki.svg +15 -0
  36. package/dist/image-library.svg +188 -0
  37. package/dist/image-library2.svg +188 -0
  38. package/dist/image-placeholder.png +0 -0
  39. package/dist/index.html +1 -1
  40. package/dist/index.js +226 -221
  41. package/dist/ocean.jpg +0 -0
  42. package/dist/panda.jpg +0 -0
  43. package/dist/screen-loading.gif +0 -0
  44. package/dist/sparkly.jpg +0 -0
  45. package/dist/style.css +1 -0
  46. package/lib/ActionBarContainer.js +14 -14
  47. package/lib/AppAction.js +16 -16
  48. package/lib/DeleteModal.js +1 -1
  49. package/lib/DisableModal.js +1 -1
  50. package/lib/DraggableCard.js +33 -15
  51. package/lib/EmptyScreenApp.js +42 -33
  52. package/lib/EmptyScreenError.js +10 -9
  53. package/lib/EmptyScreenNoContentInFolder.js +9 -8
  54. package/lib/EmptyScreenSearch.js +7 -6
  55. package/lib/EmptyScreenTrash.js +7 -6
  56. package/lib/ExportModal.js +1 -1
  57. package/lib/FolderModal.js +12 -12
  58. package/lib/FoldersList.js +60 -55
  59. package/lib/Library.js +37 -23
  60. package/lib/MoveModal.js +6 -6
  61. package/lib/OnboardingModal.js +2 -2
  62. package/lib/PublishModal.js +2 -2
  63. package/lib/ResourceModal.js +2 -2
  64. package/lib/ResourcesList.js +123 -98
  65. package/lib/TrashModal.js +1 -1
  66. package/lib/components/OnboardingModal.d.ts +1 -1
  67. package/lib/config/explorer.d.ts +1 -1
  68. package/lib/dynamic-import-helper.js +16 -0
  69. package/lib/features/AccessControl/AccessControl.d.ts +1 -1
  70. package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
  71. package/lib/features/ActionBar/Move/useMoveModal.d.ts +1 -1
  72. package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
  73. package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
  74. package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
  75. package/lib/features/ActionBar/useActionBar.d.ts +2 -2
  76. package/lib/features/List/DraggableCard.d.ts +1 -1
  77. package/lib/features/List/FolderCard.d.ts +2 -2
  78. package/lib/features/List/FoldersList.d.ts +1 -1
  79. package/lib/features/List/ResourceCard.d.ts +2 -2
  80. package/lib/features/List/ResourcesList.d.ts +1 -1
  81. package/lib/illu-blog.js +4 -0
  82. package/lib/illu-collaborativeeditor.js +4 -0
  83. package/lib/illu-collaborativewall.js +4 -0
  84. package/lib/illu-error.js +4 -0
  85. package/lib/illu-exercizer.js +4 -0
  86. package/lib/illu-mindmap.js +4 -0
  87. package/lib/illu-no-content-in-folder.js +4 -0
  88. package/lib/illu-pad.js +4 -0
  89. package/lib/illu-scrapbook.js +4 -0
  90. package/lib/illu-search.js +4 -0
  91. package/lib/illu-timeline.js +4 -0
  92. package/lib/illu-timelinegenerator.js +4 -0
  93. package/lib/illu-trash.js +4 -0
  94. package/lib/illu-wiki.js +4 -0
  95. package/lib/image-library.js +4 -0
  96. package/lib/image-library2.js +4 -0
  97. package/lib/index2.js +586 -557
  98. package/lib/services/api/index.d.ts +14 -14
  99. package/lib/services/queries/actions.d.ts +4 -7
  100. package/lib/services/queries/index.d.ts +9 -9
  101. package/lib/services/resource/service.d.ts +1 -1
  102. package/lib/store/index.d.ts +2 -2
  103. package/lib/utils/getChildrenIds.d.ts +1 -1
  104. package/lib/utils/isResourceShared.d.ts +1 -1
  105. package/package.json +6 -7
  106. package/dist/version.txt +0 -1
@@ -1,10 +1,10 @@
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
- import { useUser as he, Button as W, useOdeClient as fe, ActionBar as Re, LoadingScreen as me, isActionAvailable as Se, BlogPublic as Ee, ShareModal as Oe, ShareBlog as Ce } from "@edifice-ui/react";
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
5
  import { useTransition as be, animated as ye } from "@react-spring/web";
5
6
  import { useTranslation as ee } from "react-i18next";
6
- import { odeServices as D, ACTION as c } from "edifice-ts-client";
7
- import { f as J, u as Ie, c as ge, h as ve, i as se, j as Ae, 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";
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";
8
8
  function Ne({
9
9
  roles: r,
10
10
  rights: s,
@@ -12,7 +12,7 @@ function Ne({
12
12
  }) {
13
13
  const [p, o] = L(!1), {
14
14
  user: E
15
- } = he(), i = J();
15
+ } = fe(), i = J();
16
16
  Z(() => {
17
17
  f();
18
18
  }, [r, s]);
@@ -62,7 +62,7 @@ function Ne({
62
62
  };
63
63
  }
64
64
  function oe() {
65
- const [r, s] = L(!1), [t, p] = L("void"), [o, E] = L(), i = Ie((e) => e.config), m = ge(), h = ve(), f = se(), l = Ae(), n = Me(), R = J(), y = Pe(), I = we(), M = Fe(), _ = xe(), N = Te(), {
65
+ const [r, s] = L(!1), [t, p] = L("void"), [o, E] = L(), i = Ie((e) => e.config), m = ge(), h = Ae(), f = se(), l = ve(), n = Me(), R = J(), y = Pe(), I = we(), M = Fe(), _ = xe(), N = Te(), {
66
66
  openResource: P,
67
67
  printSelectedResource: k,
68
68
  openFolder: H,
@@ -160,7 +160,7 @@ function oe() {
160
160
  }
161
161
  const u = (e) => () => {
162
162
  t === e && (g(), w(), F());
163
- }, S = u("move"), V = u("move"), T = u("delete"), $ = u("delete"), v = u("publish"), A = u("publish"), d = u("edit_folder"), q = u("edit_folder"), G = u("edit_resource"), re = u("edit_resource"), ne = u("share"), ce = u("share"), ae = u("export"), ie = u("export");
163
+ }, S = u("move"), V = u("move"), T = u("delete"), $ = u("delete"), A = u("publish"), v = u("publish"), d = u("edit_folder"), q = u("edit_folder"), G = u("edit_resource"), re = u("edit_resource"), ne = u("share"), ce = u("share"), ae = u("export"), ie = u("export");
164
164
  async function le() {
165
165
  if (f && f.length > 0) {
166
166
  const e = f[0];
@@ -196,8 +196,8 @@ function oe() {
196
196
  onDeleteCancel: $,
197
197
  onDeleteSuccess: T,
198
198
  isPublishModalOpen: t === "publish",
199
- onPublishCancel: A,
200
- onPublishSuccess: v,
199
+ onPublishCancel: v,
200
+ onPublishSuccess: A,
201
201
  isEditFolderOpen: t === "edit_folder",
202
202
  onEditFolderCancel: q,
203
203
  onEditFolderSuccess: d,
@@ -241,7 +241,7 @@ const He = /* @__PURE__ */ b(async () => await import("./PublishModal.js")), Ue
241
241
  function Ze() {
242
242
  const {
243
243
  appCode: r
244
- } = fe(), {
244
+ } = Re(), {
245
245
  t: s
246
246
  } = ee(), {
247
247
  actions: t,
@@ -286,18 +286,18 @@ function Ze() {
286
286
  }
287
287
  });
288
288
  return /* @__PURE__ */ Q(X, { children: [
289
- $((v, A) => A && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
290
- ...v,
289
+ $((A, v) => v && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
290
+ ...A,
291
291
  zIndex: 4
292
- }, children: /* @__PURE__ */ a(Re, { 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: () => {
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(me, {}), children: [
295
+ /* @__PURE__ */ Q(pe, { fallback: /* @__PURE__ */ a(Se, {}), 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: (v, A, d, q, G) => r === "blog" && Se("createPublic", t) && /* @__PURE__ */ a(Ee, { appCode: r, isUpdating: A, resource: v, watch: d, setValue: q, register: G }) }),
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
301
  M && S && /* @__PURE__ */ a(Oe, { isOpen: M, shareResource: V, shareOptions: {
302
302
  resourceCreatorId: S.creatorId,
303
303
  resourceId: S.assetId,
package/lib/AppAction.js CHANGED
@@ -1,25 +1,25 @@
1
- import { jsxs as h, Fragment as S, jsx as e } from "react/jsx-runtime";
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
- import { Plus as O } from "@edifice-ui/icons";
4
- import { useToggle as P, useOdeClient as R, Button as y, LoadingScreen as I, isActionAvailable as k, BlogPublic as F } from "@edifice-ui/react";
5
- import { useTranslation as T } from "react-i18next";
6
- import { u as j, a as v, b as B, c as w, d as z, e as L, g as M } from "./index2.js";
7
- const N = /* @__PURE__ */ x(async () => await import("./ResourceModal.js"));
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";
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
+ import { useTranslation as L } from "react-i18next";
7
+ const M = /* @__PURE__ */ x(async () => await import("./ResourceModal.js"));
8
8
  function Q() {
9
- const [c, s] = P(), a = j((t) => t.config), {
10
- appCode: o
9
+ const [c, s] = P(), a = v((o) => o.config), {
10
+ appCode: t
11
11
  } = R(), {
12
12
  t: l
13
- } = T(o), {
13
+ } = L(t), {
14
14
  clearSelectedItems: i,
15
15
  clearSelectedIds: u
16
- } = v(), {
16
+ } = F(), {
17
17
  data: r
18
- } = B(a == null ? void 0 : a.actions), d = r == null ? void 0 : r.find((t) => t.id === "create"), n = w(), m = z(), p = L();
19
- return d ? /* @__PURE__ */ h(S, { children: [
20
- /* @__PURE__ */ e(y, { type: "button", color: "primary", variant: "filled", leftIcon: /* @__PURE__ */ e(O, {}), className: "ms-auto", onClick: () => {
21
- if (o == "scrapbook") {
22
- M({
18
+ } = T(a == null ? void 0 : a.actions), d = r == null ? void 0 : r.find((o) => o.id === "create"), n = j(), m = B(), p = w();
19
+ return d ? /* @__PURE__ */ b(h, { children: [
20
+ /* @__PURE__ */ e(y, { type: "button", color: "primary", variant: "filled", leftIcon: /* @__PURE__ */ e(z, {}), className: "ms-auto", onClick: () => {
21
+ if (t == "scrapbook") {
22
+ E({
23
23
  searchParams: p,
24
24
  folderId: n.id
25
25
  });
@@ -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(I, {}), children: c && /* @__PURE__ */ e(N, { mode: "create", currentFolder: n, createResource: m, isOpen: c, onSuccess: s, onCancel: s, children: (t, f, C, g, b) => o === "blog" && k("createPublic", r) && /* @__PURE__ */ e(F, { appCode: o, isUpdating: f, resource: t, watch: C, setValue: g, register: b }) }) })
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 }) }) })
31
31
  ] }) : null;
32
32
  }
33
33
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
- import { Modal as a, Button as d } from "@edifice-ui/react";
2
+ import { Modal as a, Button as d } from "@edifice.io/react";
3
3
  import { createPortal as c } from "react-dom";
4
4
  import { useTranslation as h } from "react-i18next";
5
5
  import { w as m, x as p, f as u } from "./index2.js";
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { Modal as r, Button as i } from "@edifice-ui/react";
2
+ import { Modal as r, Button as i } from "@edifice.io/react";
3
3
  import { createPortal as d } from "react-dom";
4
4
  import { useTranslation as n } from "react-i18next";
5
5
  function h({
@@ -1,25 +1,43 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { Files as s } from "@edifice-ui/icons";
3
- import { AppIcon as l } from "@edifice-ui/react";
4
- function n({
5
- app: e,
6
- type: i
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { AppIcon as d } from "@edifice.io/react";
3
+ const n = ({
4
+ title: l,
5
+ titleId: a,
6
+ ...r
7
+ }) => /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": a, ...r, children: [
8
+ l ? /* @__PURE__ */ e("title", { id: a, children: l }) : null,
9
+ /* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77s.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32", clipRule: "evenodd" })
10
+ ] }), h = ({
11
+ title: l,
12
+ titleId: a,
13
+ ...r
14
+ }) => /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": a, ...r, children: [
15
+ l ? /* @__PURE__ */ e("title", { id: a, children: l }) : null,
16
+ /* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.707 8.293a1 1 0 0 1 0 1.414L3.414 12l2.293 2.293a1 1 0 1 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.414l3-3a1 1 0 0 1 1.414 0M11.293 1.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.414L12 3.414 9.707 5.707a1 1 0 0 1-1.414-1.414zM8.293 18.293a1 1 0 0 1 1.414 0L12 20.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414M18.293 8.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L20.586 12l-2.293-2.293a1 1 0 0 1 0-1.414", clipRule: "evenodd" }),
17
+ /* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M1 12a1 1 0 0 1 1-1h20a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1", clipRule: "evenodd" }),
18
+ /* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 1a1 1 0 0 1 1 1v20a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1", clipRule: "evenodd" })
19
+ ] });
20
+ function o({
21
+ app: l,
22
+ type: a
7
23
  }) {
8
- return i === "folder" ? /* @__PURE__ */ r(s, { width: "24", height: "24", className: `color-app-${e == null ? void 0 : e.displayName}` }) : i === "resource" ? /* @__PURE__ */ r(l, { app: e, iconFit: "ratio", size: "24", variant: "rounded" }) : null;
24
+ return a === "folder" ? /* @__PURE__ */ e(n, { width: "24", height: "24", className: `color-app-${l == null ? void 0 : l.displayName}` }) : a === "resource" ? /* @__PURE__ */ e(d, { app: l, iconFit: "ratio", size: "24", variant: "rounded" }) : null;
9
25
  }
10
- const g = ({
11
- app: e,
12
- type: i,
13
- name: t
14
- }) => /* @__PURE__ */ a("div", { className: "d-inline-flex align-items-center card is-selected gap-8", style: {
26
+ const u = ({
27
+ app: l,
28
+ type: a,
29
+ name: r
30
+ }) => /* @__PURE__ */ i("div", { className: "d-inline-flex align-items-center card is-selected gap-8", style: {
15
31
  flexDirection: "row",
16
32
  width: "252px",
17
33
  height: "32px",
18
34
  boxShadow: "0 0.2rem 0.6em rgba(0, 0, 0, 0.15)"
19
35
  }, children: [
20
- /* @__PURE__ */ r("div", { className: "ms-8", children: /* @__PURE__ */ r(n, { app: e, type: i }) }),
21
- /* @__PURE__ */ r("div", { className: "text-truncate", children: t })
36
+ /* @__PURE__ */ e("div", { className: "ms-8", children: /* @__PURE__ */ e(o, { app: l, type: a }) }),
37
+ /* @__PURE__ */ e("div", { className: "text-truncate", children: r })
22
38
  ] });
23
39
  export {
24
- g as D
40
+ u as D,
41
+ h as S,
42
+ n as a
25
43
  };
@@ -1,40 +1,49 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { usePaths as u, useOdeClient as d, useOdeTheme as m, EmptyScreen as x } from "@edifice-ui/react";
3
- import { useTranslation as S } from "react-i18next";
1
+ import { _ as c } from "./dynamic-import-helper.js";
2
+ import { jsx as u } from "react/jsx-runtime";
3
+ import { useEdificeClient as g, useEdificeTheme as f, EmptyScreen as b } from "@edifice.io/react";
4
+ import { useTranslation as y } from "react-i18next";
5
+ import { useState as v, useEffect as x } from "react";
6
+ import "@edifice.io/client";
4
7
  import "@tanstack/react-query";
5
- import "edifice-ts-client";
6
8
  import "i18next";
7
- import { u as y, b as f } from "./index2.js";
8
- function P() {
9
- const [o] = u(), {
10
- appCode: r
11
- } = d(), {
9
+ import { u as _, b as S } from "./index2.js";
10
+ function F() {
11
+ const {
12
+ appCode: t
13
+ } = g(), {
12
14
  theme: e
13
- } = m(), {
14
- t: s
15
- } = S(), l = y((i) => i.config), {
16
- data: n
17
- } = f(l == null ? void 0 : l.actions), t = n == null ? void 0 : n.find((i) => i.id === "create"), p = () => t != null && t.available && (e != null && e.is1d) ? s("explorer.emptyScreen.txt1d.create", {
18
- ns: r
19
- }) : t != null && t.available && !(e != null && e.is1d) ? s("explorer.emptyScreen.txt2d.create", {
20
- ns: r
21
- }) : !(t != null && t.available) && (e != null && e.is1d) ? s("explorer.emptyScreen.txt1d.consultation", {
22
- ns: r
23
- }) : s("explorer.emptyScreen.txt2d.consultation", {
24
- ns: r
25
- }), c = () => t != null && t.available && (e != null && e.is1d) ? s("explorer.emptyScreen.title1d.create", {
26
- ns: r
27
- }) : t != null && t.available && !(e != null && e.is1d) ? s("explorer.emptyScreen.title2d.create", {
28
- ns: r
29
- }) : !(t != null && t.available) && (e != null && e.is1d) ? s("explorer.emptyScreen.title1d.consultation", {
30
- ns: r
31
- }) : s("explorer.emptyScreen.title2d.consultation", {
32
- ns: r
15
+ } = f(), {
16
+ t: o
17
+ } = y(), [m, p] = v("");
18
+ x(() => {
19
+ (async () => {
20
+ const a = await c(/* @__PURE__ */ Object.assign({ "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-blog.svg": () => import("./illu-blog.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativeeditor.svg": () => import("./illu-collaborativeeditor.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativewall.svg": () => import("./illu-collaborativewall.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-error.svg": () => import("./illu-error.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-exercizer.svg": () => import("./illu-exercizer.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-mindmap.svg": () => import("./illu-mindmap.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-no-content-in-folder.svg": () => import("./illu-no-content-in-folder.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-pad.svg": () => import("./illu-pad.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-scrapbook.svg": () => import("./illu-scrapbook.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-search.svg": () => import("./illu-search.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timeline.svg": () => import("./illu-timeline.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timelinegenerator.svg": () => import("./illu-timelinegenerator.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-trash.svg": () => import("./illu-trash.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-wiki.svg": () => import("./illu-wiki.js") }), `../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-${t}.svg`, 10);
21
+ p(a.default);
22
+ })();
23
+ }, [t]);
24
+ const r = _((s) => s.config), {
25
+ data: l
26
+ } = S(r == null ? void 0 : r.actions), i = l == null ? void 0 : l.find((s) => s.id === "create"), n = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.create", {
27
+ ns: t
28
+ }) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.txt2d.create", {
29
+ ns: t
30
+ }) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.consultation", {
31
+ ns: t
32
+ }) : o("explorer.emptyScreen.txt2d.consultation", {
33
+ ns: t
34
+ }), d = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.create", {
35
+ ns: t
36
+ }) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.title2d.create", {
37
+ ns: t
38
+ }) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.consultation", {
39
+ ns: t
40
+ }) : o("explorer.emptyScreen.title2d.consultation", {
41
+ ns: t
33
42
  });
34
- return /* @__PURE__ */ a(x, { imageSrc: `${o}/emptyscreen/illu-${r}.svg`, imageAlt: s("explorer.emptyScreen.app.alt", {
35
- ns: r
36
- }), title: c(), text: p() });
43
+ return /* @__PURE__ */ u(b, { imageSrc: m, imageAlt: o("explorer.emptyScreen.app.alt", {
44
+ ns: t
45
+ }), title: d(), text: n() });
37
46
  }
38
47
  export {
39
- P as default
48
+ F as default
40
49
  };
@@ -1,12 +1,13 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { usePaths as o, EmptyScreen as m } from "@edifice-ui/react";
3
- import { useTranslation as n } from "react-i18next";
4
- function c() {
5
- const [r] = o(), {
6
- t: e
7
- } = n();
8
- return /* @__PURE__ */ t(m, { imageSrc: `${r}/emptyscreen/illu-error.svg`, imageAlt: e("explorer.emptyScreen.error.alt"), text: "explorer.emptyScreen.error.text" });
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { EmptyScreen as t } from "@edifice.io/react";
3
+ import o from "./illu-error.js";
4
+ import { useTranslation as m } from "react-i18next";
5
+ function a() {
6
+ const {
7
+ t: r
8
+ } = m();
9
+ return /* @__PURE__ */ e(t, { imageSrc: o, imageAlt: r("explorer.emptyScreen.error.alt"), text: "explorer.emptyScreen.error.text" });
9
10
  }
10
11
  export {
11
- c as default
12
+ a as default
12
13
  };
@@ -1,18 +1,19 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { usePaths as o, useOdeClient as m, EmptyScreen as l } from "@edifice-ui/react";
3
- import { useTranslation as p } from "react-i18next";
4
- function i() {
5
- const [n] = o(), {
2
+ import { useEdificeClient as o, EmptyScreen as n } from "@edifice.io/react";
3
+ import m from "./illu-no-content-in-folder.js";
4
+ import { useTranslation as l } from "react-i18next";
5
+ function s() {
6
+ const {
6
7
  appCode: e
7
- } = m(), {
8
+ } = o(), {
8
9
  t
9
- } = p();
10
- return /* @__PURE__ */ r(l, { imageSrc: `${n}/emptyscreen/illu-no-content-in-folder.svg`, imageAlt: t("explorer.emptyScreen.folder.empty.alt", {
10
+ } = l();
11
+ return /* @__PURE__ */ r(n, { imageSrc: m, imageAlt: t("explorer.emptyScreen.folder.empty.alt", {
11
12
  ns: e
12
13
  }), text: t("explorer.emptyScreen.label", {
13
14
  ns: e
14
15
  }) });
15
16
  }
16
17
  export {
17
- i as default
18
+ s as default
18
19
  };
@@ -1,15 +1,16 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useOdeClient as n, usePaths as a, EmptyScreen as o } from "@edifice-ui/react";
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { useEdificeClient as o, EmptyScreen as m } from "@edifice.io/react";
3
+ import n from "./illu-search.js";
3
4
  import { useTranslation as c } from "react-i18next";
4
5
  function l() {
5
6
  const {
6
7
  appCode: e
7
- } = n(), [r] = a(), {
8
- t
8
+ } = o(), {
9
+ t: r
9
10
  } = c();
10
- return /* @__PURE__ */ s(o, { imageSrc: `${r}/emptyscreen/illu-search.svg`, imageAlt: t("explorer.emptyScreen.search.alt", {
11
+ return /* @__PURE__ */ t(m, { imageSrc: n, imageAlt: r("explorer.emptyScreen.search.alt", {
11
12
  ns: e
12
- }), text: t("explorer.emptyScreen.search.text", {
13
+ }), text: r("explorer.emptyScreen.search.text", {
13
14
  ns: e
14
15
  }) });
15
16
  }
@@ -1,13 +1,14 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useOdeClient as a, usePaths as m, EmptyScreen as n } from "@edifice-ui/react";
3
- import { useTranslation as o } from "react-i18next";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useEdificeClient as o, EmptyScreen as m } from "@edifice.io/react";
3
+ import p from "./illu-trash.js";
4
+ import { useTranslation as i } from "react-i18next";
4
5
  function c() {
5
6
  const {
6
7
  appCode: t
7
- } = a(), [r] = m(), {
8
+ } = o(), {
8
9
  t: e
9
- } = o();
10
- return /* @__PURE__ */ s(n, { imageSrc: `${r}/emptyscreen/illu-trash.svg`, imageAlt: e("explorer.emptyScreen.trash.alt"), title: e("explorer.emptyScreen.trash.title"), text: e("explorer.emptyScreen.trash.empty", {
10
+ } = i();
11
+ return /* @__PURE__ */ r(m, { imageSrc: p, imageAlt: e("explorer.emptyScreen.trash.alt"), title: e("explorer.emptyScreen.trash.title"), text: e("explorer.emptyScreen.trash.empty", {
11
12
  ns: t
12
13
  }) });
13
14
  }
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { useToast as d, Modal as n, Alert as p, Button as a } from "@edifice-ui/react";
2
+ import { useToast as d, Modal as n, Alert as p, Button as a } from "@edifice.io/react";
3
3
  import { createPortal as x } from "react-dom";
4
4
  import { useTranslation as c } from "react-i18next";
5
5
  import { i as h, e as u, A as m } from "./index2.js";
@@ -1,9 +1,9 @@
1
1
  import { jsxs as x, jsx as a } from "react/jsx-runtime";
2
2
  import { useId as j, useEffect as q } from "react";
3
- import { Modal as m, FormControl as B, Label as w, Input as R, Button as C } from "@edifice-ui/react";
3
+ import { Modal as m, FormControl as B, Label as w, Input as R, Button as C } from "@edifice.io/react";
4
4
  import { createPortal as T } from "react-dom";
5
5
  import { useTranslation as U } from "react-i18next";
6
- import { FOLDER as V } from "edifice-ts-client";
6
+ import { FOLDER as V } from "@edifice.io/client";
7
7
  import { useForm as _ } from "react-hook-form";
8
8
  import { j as k, c as z, t as A, v as H } from "./index2.js";
9
9
  function P({
@@ -12,10 +12,10 @@ function P({
12
12
  onClose: s
13
13
  }) {
14
14
  var b;
15
- const l = k(), r = z(), c = A(), f = H(), u = t ? (b = l[0]) == null ? void 0 : b.name : void 0, {
15
+ const n = k(), r = z(), c = A(), f = H(), u = t ? (b = n[0]) == null ? void 0 : b.name : void 0, {
16
16
  reset: o,
17
17
  register: p,
18
- handleSubmit: n,
18
+ handleSubmit: l,
19
19
  setFocus: h,
20
20
  formState: {
21
21
  errors: F,
@@ -34,7 +34,7 @@ function P({
34
34
  var g;
35
35
  try {
36
36
  if (t) {
37
- const d = (g = l[0]) == null ? void 0 : g.parentId, E = l[0].id;
37
+ const d = (g = n[0]) == null ? void 0 : g.parentId, E = n[0].id;
38
38
  await f.mutate({
39
39
  folderId: E,
40
40
  parentId: d,
@@ -62,7 +62,7 @@ function P({
62
62
  isValid: v,
63
63
  register: p,
64
64
  setFocus: h,
65
- handleSubmit: n,
65
+ handleSubmit: l,
66
66
  onCancel: D,
67
67
  onSubmit: L
68
68
  };
@@ -71,7 +71,7 @@ function Z({
71
71
  isOpen: t,
72
72
  edit: e,
73
73
  onSuccess: s,
74
- onCancel: l
74
+ onCancel: n
75
75
  }) {
76
76
  const {
77
77
  t: r
@@ -81,19 +81,19 @@ function Z({
81
81
  isSubmitting: u,
82
82
  formId: o,
83
83
  onSubmit: p,
84
- onCancel: n,
84
+ onCancel: l,
85
85
  handleSubmit: h,
86
86
  register: F,
87
87
  setFocus: i
88
88
  } = P({
89
89
  edit: e,
90
90
  onSuccess: s,
91
- onClose: l
91
+ onClose: n
92
92
  });
93
93
  return q(() => {
94
94
  t && i("name");
95
- }, [t, i]), t ? /* @__PURE__ */ T(/* @__PURE__ */ x(m, { isOpen: t, onModalClose: n, id: "modal_" + o, children: [
96
- /* @__PURE__ */ a(m.Header, { onModalClose: n, children: r(e ? "explorer.rename.folder" : "explorer.create.folder") }),
95
+ }, [t, i]), t ? /* @__PURE__ */ T(/* @__PURE__ */ x(m, { isOpen: t, onModalClose: l, id: "modal_" + o, children: [
96
+ /* @__PURE__ */ a(m.Header, { onModalClose: l, children: r(e ? "explorer.rename.folder" : "explorer.create.folder") }),
97
97
  /* @__PURE__ */ a(m.Body, { children: /* @__PURE__ */ a("form", { id: o, onSubmit: h(p), children: /* @__PURE__ */ x(B, { id: "nameFolder", isRequired: !0, children: [
98
98
  /* @__PURE__ */ a(w, { children: r("explorer.create.folder.name") }),
99
99
  /* @__PURE__ */ a(R, { type: "text", ...F("name", {
@@ -106,7 +106,7 @@ function Z({
106
106
  }), placeholder: r("explorer.create.folder.name"), size: "md", "aria-required": !0, maxLength: 60 })
107
107
  ] }) }) }),
108
108
  /* @__PURE__ */ x(m.Footer, { children: [
109
- /* @__PURE__ */ a(C, { color: "tertiary", onClick: n, type: "button", variant: "ghost", children: r("explorer.cancel") }),
109
+ /* @__PURE__ */ a(C, { color: "tertiary", onClick: l, type: "button", variant: "ghost", children: r("explorer.cancel") }),
110
110
  /* @__PURE__ */ a(C, { form: o, type: "submit", color: "primary", variant: "filled", disabled: !c || !f || u, children: r(e ? "explorer.rename" : "explorer.create") })
111
111
  ] })
112
112
  ] }), document.getElementById("portal")) : null;