ode-explorer 1.5.3-develop-rc.202412091521 → 1.5.3-develop-rc.202412111526
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/dist/index.html +1 -1
- package/dist/index.js +2 -2
- package/lib/config/explorer.d.ts +1 -1
- package/lib/features/AccessControl/AccessControl.d.ts +1 -1
- package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
- package/lib/features/ActionBar/useActionBar.d.ts +2 -2
- package/lib/features/List/DraggableCard.d.ts +1 -1
- package/lib/features/List/FolderCard.d.ts +1 -1
- package/lib/features/List/FoldersList.d.ts +1 -1
- package/lib/features/List/ResourceCard.d.ts +1 -1
- package/lib/features/List/ResourcesList.d.ts +1 -1
- package/lib/index.js +46 -46
- package/lib/services/api/index.d.ts +14 -14
- package/lib/services/queries/actions.d.ts +1 -1
- package/lib/services/queries/index.d.ts +9 -9
- package/lib/services/resource/service.d.ts +1 -1
- package/lib/store/index.d.ts +1 -1
- package/lib/utils/isResourceShared.d.ts +1 -1
- package/package.json +2 -2
- package/dist/version.txt +0 -1
package/lib/config/explorer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { IAction, RightRole } from '@edifice.io/
|
|
2
|
+
import { IAction, RightRole } from '@edifice.io/client';
|
|
3
3
|
import { IObjectWithRights } from './useAccessControl';
|
|
4
4
|
interface AccessControlProps {
|
|
5
5
|
roleExpected: RightRole | RightRole[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IAction } from '@edifice.io/
|
|
1
|
+
import { IAction } from '@edifice.io/client';
|
|
2
2
|
export default function useActionBar(): {
|
|
3
3
|
onRestore: () => Promise<void>;
|
|
4
4
|
actions: IAction[] | undefined;
|
|
5
|
-
selectedElement: (import('@edifice.io/
|
|
5
|
+
selectedElement: (import('@edifice.io/client').IResource | import('@edifice.io/client').IFolder)[];
|
|
6
6
|
currentFolderId: string | undefined;
|
|
7
7
|
overrideLabel: (action: IAction) => string;
|
|
8
8
|
handleClick: (action: IAction) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IResource, IWebApp } from '@edifice.io/client';
|
|
1
2
|
import { CardProps } from '@edifice.io/react';
|
|
2
|
-
import { IResource, IWebApp } from '@edifice.io/ts-client';
|
|
3
3
|
type OmitChildren = Omit<CardProps, 'children'>;
|
|
4
4
|
export interface ResourceCardProps extends OmitChildren {
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISearchResults } from '@edifice.io/
|
|
1
|
+
import { ISearchResults } from '@edifice.io/client';
|
|
2
2
|
import { InfiniteData } from '@tanstack/react-query';
|
|
3
3
|
declare const ResourcesList: ({ data, fetchNextPage, }: {
|
|
4
4
|
data: InfiniteData<ISearchResults> | undefined;
|
package/lib/index.js
CHANGED
|
@@ -3,8 +3,8 @@ import * as ke from "react";
|
|
|
3
3
|
import kt, { forwardRef as A1, useState as Se, useRef as Bt, useEffect as ze, useLayoutEffect as Pd, createContext as fi, useContext as pi, useCallback as Pt, useImperativeHandle as z4, useId as Lr, useMemo as F0, Suspense as Br, useReducer as _d, createElement as Lf, Fragment as Wx, lazy as c2 } from "react";
|
|
4
4
|
import { useDroppable as Xx, useSensor as NC, PointerSensor as CP, KeyboardSensor as wP, useSensors as bP, DndContext as xP, useDraggable as Jx } from "@dnd-kit/core";
|
|
5
5
|
import { snapCenterToCursor as EP } from "@dnd-kit/modifiers";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { odeServices as ot, FOLDER as b0, SORT_ORDER as MP, ResourceService as $x, SnipletsService as Nf, ERROR_CODE as SP, DocumentHelper as eE, LAYER_NAME as TP, isActionAvailable as Zu, ACTION as n0 } from "@edifice.io/client";
|
|
7
|
+
import { findNodeById as h7, wrapTreeNode as IP, findParentNode as DP, useToast as Xi, moveNode as BP, deleteNode as RP, useUser as Vv, useEdificeClient as l0, addNode as PP, updateNode as _P, getAncestors as om, LoadingScreen as Ir, FormControl as tE, Input as rE, SearchButton as OP, Dropdown as e4, useToggle as iE, useScrollToTop as nE, TreeView as aE, Button as U0, IconButton as LP, useXitiTrackPageLoad as NP, AppHeader as zP, Breadcrumb as HP, Grid as zf, useEdificeTheme as sE, EmptyScreen as I7, AppIcon as lE, useBreakpoint as oE, Card as _a, Image as cE, Avatar as FP, Tooltip as zC, useDate as kP, Modal as I1, Label as UP, useLibraryUrl as GP, ActionBar as jP, Alert as QP } from "@edifice.io/react";
|
|
8
8
|
import { useMutation as Xn, useQuery as ZP, queryOptions as YP, useQueryClient as G0, useInfiniteQuery as VP } from "@tanstack/react-query";
|
|
9
9
|
import { useTranslation as Xe } from "react-i18next";
|
|
10
10
|
import { t as z0 } from "i18next";
|
|
@@ -154,7 +154,7 @@ const fE = async (r) => {
|
|
|
154
154
|
public: void 0
|
|
155
155
|
},
|
|
156
156
|
orders: {
|
|
157
|
-
updatedAt:
|
|
157
|
+
updatedAt: MP.DESC
|
|
158
158
|
},
|
|
159
159
|
application: "",
|
|
160
160
|
types: [],
|
|
@@ -357,7 +357,7 @@ const fE = async (r) => {
|
|
|
357
357
|
}
|
|
358
358
|
})
|
|
359
359
|
});
|
|
360
|
-
e().actions.setTreeData(
|
|
360
|
+
e().actions.setTreeData(IP(e().treeData, l == null ? void 0 : l.folders, a || b0.DEFAULT));
|
|
361
361
|
},
|
|
362
362
|
selectTreeItem: (t, i) => {
|
|
363
363
|
const {
|
|
@@ -391,7 +391,7 @@ const fE = async (r) => {
|
|
|
391
391
|
folder: mE,
|
|
392
392
|
folderId: b0.DEFAULT
|
|
393
393
|
}), !t) return;
|
|
394
|
-
const l =
|
|
394
|
+
const l = DP(i, t);
|
|
395
395
|
a({
|
|
396
396
|
folder: l,
|
|
397
397
|
folderId: (l == null ? void 0 : l.id) || b0.DEFAULT
|
|
@@ -454,7 +454,7 @@ const d_ = (r) => r.treeData, h_ = (r) => r.actions, _l = () => J1(d_), $1 = ()
|
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
}, y_ = 175, C_ = 10, AE = "blog", yE = "blog";
|
|
457
|
-
class CE extends
|
|
457
|
+
class CE extends $x {
|
|
458
458
|
getEditUrl() {
|
|
459
459
|
throw new Error("Method not implemented.");
|
|
460
460
|
}
|
|
@@ -505,7 +505,7 @@ class CE extends oE {
|
|
|
505
505
|
return `/blog/print/${e}`;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
$x.register({
|
|
509
509
|
application: AE,
|
|
510
510
|
resourceType: yE
|
|
511
511
|
}, (r) => new CE(r));
|
|
@@ -7832,7 +7832,7 @@ const Yd = /* @__PURE__ */ A1(({
|
|
|
7832
7832
|
[`bg-light-${P}`]: P && !v,
|
|
7833
7833
|
[`color-app-${P}`]: P
|
|
7834
7834
|
}, n), N = HF[`Icon${P.split("-").map((z) => z.charAt(0).toUpperCase() + z.slice(1)).join("")}`];
|
|
7835
|
-
if (
|
|
7835
|
+
if (I) {
|
|
7836
7836
|
const z = ft("h-full", n);
|
|
7837
7837
|
return /* @__PURE__ */ C(r3, { src: M, alt: T, objectFit: "contain", width: e, height: e, className: z, style: {
|
|
7838
7838
|
minWidth: e + "px"
|
|
@@ -10299,7 +10299,7 @@ const TU = ({
|
|
|
10299
10299
|
}, zU = (r) => {
|
|
10300
10300
|
const [e, t] = Se([]);
|
|
10301
10301
|
ze(() => {
|
|
10302
|
-
(async () => (await
|
|
10302
|
+
(async () => (await Nf.initialize(ot, r), await Nf.registerBehaviours(r), t(Nf.resourceProducingApps)))();
|
|
10303
10303
|
}, []);
|
|
10304
10304
|
const i = Pt(async (n) => {
|
|
10305
10305
|
const [a] = n.types;
|
|
@@ -11981,7 +11981,7 @@ const zM = (r, e = "media-library") => {
|
|
|
11981
11981
|
if (x.type.includes("video"))
|
|
11982
11982
|
M = await g(x, w);
|
|
11983
11983
|
else
|
|
11984
|
-
throw new Error(
|
|
11984
|
+
throw new Error(SP.NOT_SUPPORTED);
|
|
11985
11985
|
return u(x, "success"), M;
|
|
11986
11986
|
} catch (M) {
|
|
11987
11987
|
return console.error(M), u(x, "error"), null;
|
|
@@ -53932,7 +53932,7 @@ function Eu(r, e, t, i) {
|
|
|
53932
53932
|
}))) : await ot.workspace().listDocuments(t, y), w = [], M = [];
|
|
53933
53933
|
x.filter((T) => {
|
|
53934
53934
|
if (!i || T.eType === "folder") return !0;
|
|
53935
|
-
const R =
|
|
53935
|
+
const R = eE.getRole(T);
|
|
53936
53936
|
return typeof i == "string" ? i === R : Array.isArray(i) ? i.findIndex((I) => I === R) >= 0 : !1;
|
|
53937
53937
|
}).forEach((T) => {
|
|
53938
53938
|
T.eType === "folder" ? w.push(T) : M.push(T);
|
|
@@ -54362,7 +54362,7 @@ const vee = ({
|
|
|
54362
54362
|
className: a
|
|
54363
54363
|
}) => {
|
|
54364
54364
|
var l;
|
|
54365
|
-
const c = Bt(null), u =
|
|
54365
|
+
const c = Bt(null), u = eE.getRole(r);
|
|
54366
54366
|
function d(x) {
|
|
54367
54367
|
const w = {
|
|
54368
54368
|
csv: {
|
|
@@ -54621,7 +54621,7 @@ const vee = ({
|
|
|
54621
54621
|
t: i
|
|
54622
54622
|
} = Xe();
|
|
54623
54623
|
return ze(() => {
|
|
54624
|
-
const n = ot.notify().events().subscribe(
|
|
54624
|
+
const n = ot.notify().events().subscribe(TP.TRANSPORT, (a) => {
|
|
54625
54625
|
var l, c;
|
|
54626
54626
|
e.current = i(((c = (l = a == null ? void 0 : a.data) == null ? void 0 : l.payload) == null ? void 0 : c.error) || a.data.response.statusText), t.error(/* @__PURE__ */ kt.createElement("div", {
|
|
54627
54627
|
children: [e.current]
|
|
@@ -56548,7 +56548,7 @@ const ute = ({
|
|
|
56548
56548
|
resources: N.resources.filter((k) => c ? !a.includes(k.assetId) : !u.includes(k.id))
|
|
56549
56549
|
};
|
|
56550
56550
|
})
|
|
56551
|
-
}, _ =
|
|
56551
|
+
}, _ = RP(i, {
|
|
56552
56552
|
folders: n
|
|
56553
56553
|
});
|
|
56554
56554
|
return v(_), g({
|
|
@@ -56738,7 +56738,7 @@ const ute = ({
|
|
|
56738
56738
|
return e.setQueryData(w, (I) => {
|
|
56739
56739
|
var P;
|
|
56740
56740
|
if (I) {
|
|
56741
|
-
const _ =
|
|
56741
|
+
const _ = BP(i, {
|
|
56742
56742
|
destinationId: T,
|
|
56743
56743
|
folders: n
|
|
56744
56744
|
}), N = {
|
|
@@ -56815,7 +56815,7 @@ const ute = ({
|
|
|
56815
56815
|
...w,
|
|
56816
56816
|
folders: [...w.folders, v]
|
|
56817
56817
|
}))
|
|
56818
|
-
}, x =
|
|
56818
|
+
}, x = PP(i, {
|
|
56819
56819
|
parentId: d.parentId,
|
|
56820
56820
|
newFolder: v
|
|
56821
56821
|
});
|
|
@@ -56867,7 +56867,7 @@ const ute = ({
|
|
|
56867
56867
|
rights: T.rights
|
|
56868
56868
|
} : T)
|
|
56869
56869
|
}))
|
|
56870
|
-
}, w =
|
|
56870
|
+
}, w = _P(i, {
|
|
56871
56871
|
folderId: v.folderId,
|
|
56872
56872
|
newFolder: p
|
|
56873
56873
|
});
|
|
@@ -57301,11 +57301,11 @@ const xte = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => Yt
|
|
|
57301
57301
|
handleSearchSubmit: d
|
|
57302
57302
|
} = DI(), p = t.length > 0 ? t.length : void 0;
|
|
57303
57303
|
return /* @__PURE__ */ U("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: a, children: [
|
|
57304
|
-
/* @__PURE__ */ U(
|
|
57305
|
-
/* @__PURE__ */ C(
|
|
57304
|
+
/* @__PURE__ */ U(tE, { id: "search", className: "input-group", children: [
|
|
57305
|
+
/* @__PURE__ */ C(rE, { type: "search", placeholder: e("explorer.label.search", {
|
|
57306
57306
|
ns: r
|
|
57307
57307
|
}), size: "lg", noValidationIcon: !0, value: l, onChange: c, onKeyDown: u }),
|
|
57308
|
-
/* @__PURE__ */ C(
|
|
57308
|
+
/* @__PURE__ */ C(OP, { type: "submit", "aria-label": e("explorer.label.search", {
|
|
57309
57309
|
ns: r
|
|
57310
57310
|
}), onClick: d })
|
|
57311
57311
|
] }),
|
|
@@ -57330,7 +57330,7 @@ const xte = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => Yt
|
|
|
57330
57330
|
/* @__PURE__ */ C("span", { children: i("explorer.tree.trash") })
|
|
57331
57331
|
] }) }) }) }) }) }) });
|
|
57332
57332
|
}, Nte = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => NI)), zte = () => {
|
|
57333
|
-
const [r, e] =
|
|
57333
|
+
const [r, e] = iE(), t = G0(), i = _l(), n = Ka(), a = Kv(), l = gE(), c = nE(), u = n ? b0.BIN : a, {
|
|
57334
57334
|
appCode: d
|
|
57335
57335
|
} = l0(), {
|
|
57336
57336
|
t: p
|
|
@@ -57360,7 +57360,7 @@ const xte = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => Yt
|
|
|
57360
57360
|
x(), w(), e();
|
|
57361
57361
|
};
|
|
57362
57362
|
return /* @__PURE__ */ U(f1, { children: [
|
|
57363
|
-
/* @__PURE__ */ C(
|
|
57363
|
+
/* @__PURE__ */ C(aE, { data: v, selectedNodeId: u, draggedNode: l != null && l.isTreeview ? l : void 0, onTreeItemClick: T, onTreeItemUnfold: R }),
|
|
57364
57364
|
/* @__PURE__ */ C(Lte, { id: b0.BIN, selected: n, onSelect: g }),
|
|
57365
57365
|
/* @__PURE__ */ C("div", { className: "d-grid my-16", children: /* @__PURE__ */ C(U0, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ C(Xd, {}), onClick: I, children: p("explorer.folder.new") }) }),
|
|
57366
57366
|
/* @__PURE__ */ C(Br, { fallback: /* @__PURE__ */ C(Ir, {}), children: r && /* @__PURE__ */ C(Nte, { edit: !1, isOpen: r, onSuccess: e, onCancel: e }) })
|
|
@@ -57379,7 +57379,7 @@ function Hte() {
|
|
|
57379
57379
|
ns: r
|
|
57380
57380
|
}), p = (l == null ? void 0 : l.name) || d;
|
|
57381
57381
|
return /* @__PURE__ */ C("div", { className: "py-16", children: n && n !== "bin" && n !== "default" && !a ? /* @__PURE__ */ U("div", { className: "d-flex align-items-center gap-8", children: [
|
|
57382
|
-
/* @__PURE__ */ C(
|
|
57382
|
+
/* @__PURE__ */ C(LP, { icon: /* @__PURE__ */ C(Rte, {}), variant: "ghost", color: "tertiary", "aria-label": t("back"), className: "ms-n16", onClick: e }),
|
|
57383
57383
|
/* @__PURE__ */ C("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ C("strong", { children: p }) })
|
|
57384
57384
|
] }) : /* @__PURE__ */ C("h2", { className: "body py-8 fw-bold", children: i.length !== 0 ? u : a ? c : d }) });
|
|
57385
57385
|
}
|
|
@@ -57413,16 +57413,16 @@ const Fte = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => h1
|
|
|
57413
57413
|
handleDragStart: g,
|
|
57414
57414
|
sensors: y
|
|
57415
57415
|
} = bte();
|
|
57416
|
-
|
|
57416
|
+
NP();
|
|
57417
57417
|
const x = Zu("publish", a), w = Zu("create", a);
|
|
57418
57418
|
return r && /* @__PURE__ */ U(f1, { children: [
|
|
57419
|
-
/* @__PURE__ */ C(
|
|
57420
|
-
/* @__PURE__ */ C(
|
|
57421
|
-
/* @__PURE__ */ C(
|
|
57419
|
+
/* @__PURE__ */ C(zP, { render: () => w ? /* @__PURE__ */ C(Br, { fallback: /* @__PURE__ */ C(Ir, {}), children: /* @__PURE__ */ C(Fte, {}) }) : null, children: /* @__PURE__ */ C(HP, { app: n }) }),
|
|
57420
|
+
/* @__PURE__ */ C(zf, { className: "flex-grow-1", children: /* @__PURE__ */ U(xP, { sensors: y, modifiers: [EP], onDragStart: g, onDragEnd: p, onDragOver: v, children: [
|
|
57421
|
+
/* @__PURE__ */ C(zf.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ U(Br, { fallback: /* @__PURE__ */ C(Ir, {}), children: [
|
|
57422
57422
|
/* @__PURE__ */ C(zte, {}),
|
|
57423
57423
|
x && /* @__PURE__ */ C(kte, {})
|
|
57424
57424
|
] }) }),
|
|
57425
|
-
/* @__PURE__ */ U(
|
|
57425
|
+
/* @__PURE__ */ U(zf.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
57426
57426
|
/* @__PURE__ */ C(Ote, {}),
|
|
57427
57427
|
/* @__PURE__ */ C(Hte, {}),
|
|
57428
57428
|
/* @__PURE__ */ C(Bte, {})
|
|
@@ -57470,7 +57470,7 @@ function Zte() {
|
|
|
57470
57470
|
appCode: r
|
|
57471
57471
|
} = l0(), {
|
|
57472
57472
|
theme: e
|
|
57473
|
-
} =
|
|
57473
|
+
} = sE(), {
|
|
57474
57474
|
t
|
|
57475
57475
|
} = Xe(), [i, n] = Se("");
|
|
57476
57476
|
ze(() => {
|
|
@@ -57572,7 +57572,7 @@ function i1e({
|
|
|
57572
57572
|
app: r,
|
|
57573
57573
|
type: e
|
|
57574
57574
|
}) {
|
|
57575
|
-
return e === "folder" ? /* @__PURE__ */ C(II, { width: "24", height: "24", className: `color-app-${r == null ? void 0 : r.displayName}` }) : e === "resource" ? /* @__PURE__ */ C(
|
|
57575
|
+
return e === "folder" ? /* @__PURE__ */ C(II, { width: "24", height: "24", className: `color-app-${r == null ? void 0 : r.displayName}` }) : e === "resource" ? /* @__PURE__ */ C(lE, { app: r, iconFit: "ratio", size: "24", variant: "rounded" }) : null;
|
|
57576
57576
|
}
|
|
57577
57577
|
const _I = ({
|
|
57578
57578
|
app: r,
|
|
@@ -57597,7 +57597,7 @@ const _I = ({
|
|
|
57597
57597
|
}) => {
|
|
57598
57598
|
const [c, u] = Se(!1), d = Lr(), {
|
|
57599
57599
|
lg: p
|
|
57600
|
-
} =
|
|
57600
|
+
} = oE(), {
|
|
57601
57601
|
setNodeRef: v
|
|
57602
57602
|
} = Xx({
|
|
57603
57603
|
id: d,
|
|
@@ -57640,7 +57640,7 @@ const n1e = ({
|
|
|
57640
57640
|
data: r
|
|
57641
57641
|
}) => {
|
|
57642
57642
|
var y, x;
|
|
57643
|
-
const e = G0(), t = Ld(), i = H4(), n = Hd(), a =
|
|
57643
|
+
const e = G0(), t = Ld(), i = H4(), n = Hd(), a = nE(), {
|
|
57644
57644
|
currentApp: l
|
|
57645
57645
|
} = l0(), {
|
|
57646
57646
|
setSelectedFolders: c,
|
|
@@ -57691,7 +57691,7 @@ const n1e = ({
|
|
|
57691
57691
|
}) => {
|
|
57692
57692
|
const [c, u] = Se(!1), d = Ka(), {
|
|
57693
57693
|
lg: p
|
|
57694
|
-
} =
|
|
57694
|
+
} = oE(), v = `/userbook/avatar/${e == null ? void 0 : e.creatorId}`;
|
|
57695
57695
|
function g(N) {
|
|
57696
57696
|
const {
|
|
57697
57697
|
rights: z,
|
|
@@ -57725,7 +57725,7 @@ const n1e = ({
|
|
|
57725
57725
|
..._
|
|
57726
57726
|
}, children: c ? /* @__PURE__ */ C(_I, { app: r, type: "resource", name: e == null ? void 0 : e.name }) : /* @__PURE__ */ C(_a, { app: r, isSelected: !c && i, isSelectable: !c && n, onClick: a, onSelect: l, children: (N) => /* @__PURE__ */ U(f1, { children: [
|
|
57727
57727
|
/* @__PURE__ */ U(_a.Body, { children: [
|
|
57728
|
-
/* @__PURE__ */ C("div", { className: "card-image medium", children: e != null && e.thumbnail ? /* @__PURE__ */ C(
|
|
57728
|
+
/* @__PURE__ */ C("div", { className: "card-image medium", children: e != null && e.thumbnail ? /* @__PURE__ */ C(cE, { alt: "", src: `${e == null ? void 0 : e.thumbnail}?thumbnail=80x80`, objectFit: "cover", className: "h-full w-100" }) : /* @__PURE__ */ C(lE, { app: r, iconFit: "ratio", size: "80", variant: "rounded" }) }),
|
|
57729
57729
|
/* @__PURE__ */ U("div", { className: "text-truncate", children: [
|
|
57730
57730
|
/* @__PURE__ */ C(_a.Title, { children: e == null ? void 0 : e.name }),
|
|
57731
57731
|
/* @__PURE__ */ C(_a.Text, { children: /* @__PURE__ */ C("em", { children: t }) })
|
|
@@ -57733,7 +57733,7 @@ const n1e = ({
|
|
|
57733
57733
|
] }),
|
|
57734
57734
|
/* @__PURE__ */ U(_a.Footer, { children: [
|
|
57735
57735
|
/* @__PURE__ */ U("div", { className: "d-inline-flex align-items-center gap-8 text-truncate", children: [
|
|
57736
|
-
v ? /* @__PURE__ */ C(
|
|
57736
|
+
v ? /* @__PURE__ */ C(FP, { alt: (e == null ? void 0 : e.creatorName) || "", size: "xs", src: v, variant: "circle", width: "24", height: "24" }) : /* @__PURE__ */ C(_M, {}),
|
|
57737
57737
|
/* @__PURE__ */ C(_a.Text, { children: e == null ? void 0 : e.creatorName })
|
|
57738
57738
|
] }),
|
|
57739
57739
|
/* @__PURE__ */ U("div", { className: "d-inline-flex align-items-center gap-8", children: [
|
|
@@ -57758,7 +57758,7 @@ const s1e = ({
|
|
|
57758
57758
|
t: i
|
|
57759
57759
|
} = Xe(), {
|
|
57760
57760
|
fromNow: n
|
|
57761
|
-
} =
|
|
57761
|
+
} = kP(), a = z2(), l = F4(), c = D7(), {
|
|
57762
57762
|
setSelectedResources: u,
|
|
57763
57763
|
setResourceIds: d,
|
|
57764
57764
|
openResource: p,
|
|
@@ -57890,9 +57890,9 @@ function c1e({
|
|
|
57890
57890
|
r && y("name");
|
|
57891
57891
|
}, [r, y]), r ? /* @__PURE__ */ Jn(/* @__PURE__ */ U(I1, { isOpen: r, onModalClose: p, id: "modal_" + u, children: [
|
|
57892
57892
|
/* @__PURE__ */ C(I1.Header, { onModalClose: p, children: n(e ? "explorer.rename.folder" : "explorer.create.folder") }),
|
|
57893
|
-
/* @__PURE__ */ C(I1.Body, { children: /* @__PURE__ */ C("form", { id: u, onSubmit: v(d), children: /* @__PURE__ */ U(
|
|
57894
|
-
/* @__PURE__ */ C(
|
|
57895
|
-
/* @__PURE__ */ C(
|
|
57893
|
+
/* @__PURE__ */ C(I1.Body, { children: /* @__PURE__ */ C("form", { id: u, onSubmit: v(d), children: /* @__PURE__ */ U(tE, { id: "nameFolder", isRequired: !0, children: [
|
|
57894
|
+
/* @__PURE__ */ C(UP, { children: n("explorer.create.folder.name") }),
|
|
57895
|
+
/* @__PURE__ */ C(rE, { type: "text", ...g("name", {
|
|
57896
57896
|
required: !0,
|
|
57897
57897
|
maxLength: 60,
|
|
57898
57898
|
pattern: {
|
|
@@ -57912,7 +57912,7 @@ const NI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
57912
57912
|
default: c1e
|
|
57913
57913
|
}, Symbol.toStringTag, { value: "Module" })), u1e = /* @__PURE__ */ c2(async () => await Promise.resolve().then(() => HI));
|
|
57914
57914
|
function d1e() {
|
|
57915
|
-
const [r, e] =
|
|
57915
|
+
const [r, e] = iE(), t = J1((y) => y.config), {
|
|
57916
57916
|
appCode: i
|
|
57917
57917
|
} = l0(), {
|
|
57918
57918
|
t: n
|
|
@@ -57940,9 +57940,9 @@ const h1e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
57940
57940
|
__proto__: null,
|
|
57941
57941
|
default: d1e
|
|
57942
57942
|
}, Symbol.toStringTag, { value: "Module" })), f1e = () => {
|
|
57943
|
-
const r =
|
|
57943
|
+
const r = GP(), {
|
|
57944
57944
|
theme: e
|
|
57945
|
-
} =
|
|
57945
|
+
} = sE(), [t, i] = Se("");
|
|
57946
57946
|
return ze(() => {
|
|
57947
57947
|
(async () => {
|
|
57948
57948
|
const l = await BI(/* @__PURE__ */ Object.assign({ "../../../../node_modules/@edifice.io/bootstrap/dist/images/neo/image-library.svg": () => Promise.resolve().then(() => J1e), "../../../../node_modules/@edifice.io/bootstrap/dist/images/one/image-library.svg": () => Promise.resolve().then(() => e2e) }), `../../../../node_modules/@edifice.io/bootstrap/dist/images/${e == null ? void 0 : e.bootstrapVersion}/image-library.svg`, 11);
|
|
@@ -57964,7 +57964,7 @@ const h1e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
57964
57964
|
t: i
|
|
57965
57965
|
} = Xe();
|
|
57966
57966
|
return r && /* @__PURE__ */ U("div", { className: "p-16", children: [
|
|
57967
|
-
/* @__PURE__ */ C(
|
|
57967
|
+
/* @__PURE__ */ C(cE, { width: "270", height: "140", loading: "lazy", className: "rounded", src: e, alt: i("explorer.libray.img.alt") }),
|
|
57968
57968
|
/* @__PURE__ */ C("p", { className: "m-8", children: i("explorer.libray.title") }),
|
|
57969
57969
|
/* @__PURE__ */ U("button", { type: "button", onClick: t, rel: "noreferrer", className: "btn btn-ghost-primary d-inline-flex align-items-center gap-4 p-8", children: [
|
|
57970
57970
|
/* @__PURE__ */ C("span", { children: i("explorer.libray.btn") }),
|
|
@@ -58259,7 +58259,7 @@ function E1e() {
|
|
|
58259
58259
|
ee((K, J) => J && /* @__PURE__ */ C(Sl.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
|
|
58260
58260
|
...K,
|
|
58261
58261
|
zIndex: 4
|
|
58262
|
-
}, children: /* @__PURE__ */ C(
|
|
58262
|
+
}, children: /* @__PURE__ */ C(jP, { children: t == null ? void 0 : t.filter((Q) => Q.available && Q.target === "actionbar").map((Q) => j(Q) && /* @__PURE__ */ C(g1e, { resourceRights: i, roleExpected: Q.right, action: Q, children: /* @__PURE__ */ C(U0, { id: Q.id, type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
58263
58263
|
V(Q);
|
|
58264
58264
|
}, children: e(d(Q)) }, Q.id) }, Q.id)) }) })),
|
|
58265
58265
|
/* @__PURE__ */ U(Br, { fallback: /* @__PURE__ */ C(Ir, {}), children: [
|
|
@@ -58472,7 +58472,7 @@ function s2e({
|
|
|
58472
58472
|
return /* @__PURE__ */ Jn(/* @__PURE__ */ U(I1, { isOpen: r, onModalClose: t, id: "moveModal", children: [
|
|
58473
58473
|
/* @__PURE__ */ C(I1.Header, { onModalClose: t, children: n("explorer.move.title") }),
|
|
58474
58474
|
/* @__PURE__ */ C(I1.Subtitle, { children: n("explorer.move.subtitle") }),
|
|
58475
|
-
/* @__PURE__ */ C(I1.Body, { children: /* @__PURE__ */ C(
|
|
58475
|
+
/* @__PURE__ */ C(I1.Body, { children: /* @__PURE__ */ C(aE, { data: p, onTreeItemClick: l, onTreeItemUnfold: c }) }),
|
|
58476
58476
|
/* @__PURE__ */ U(I1.Footer, { children: [
|
|
58477
58477
|
/* @__PURE__ */ C(U0, { color: "tertiary", onClick: t, type: "button", variant: "ghost", children: n("explorer.cancel") }),
|
|
58478
58478
|
/* @__PURE__ */ C(U0, { color: "primary", onClick: u, type: "button", variant: "filled", disabled: d, children: n("explorer.move") })
|
|
@@ -58513,7 +58513,7 @@ function c2e({
|
|
|
58513
58513
|
/* @__PURE__ */ C("li", { children: n("explorer.export.body.info.2") }),
|
|
58514
58514
|
/* @__PURE__ */ C("li", { children: n("explorer.export.body.info.3") })
|
|
58515
58515
|
] }),
|
|
58516
|
-
/* @__PURE__ */ C(
|
|
58516
|
+
/* @__PURE__ */ C(QP, { type: "warning", children: n("explorer.export.body.warning") })
|
|
58517
58517
|
] }),
|
|
58518
58518
|
/* @__PURE__ */ U(I1.Footer, { children: [
|
|
58519
58519
|
/* @__PURE__ */ C(U0, { color: "tertiary", onClick: t, type: "button", variant: "ghost", children: n("explorer.cancel") }),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateParameters, GetContextParameters, IActionParameters, ID, IFolder, ISearchParameters, PublishParameters, ShareRight, UpdateParameters } from '@edifice.io/
|
|
1
|
+
import { CreateParameters, GetContextParameters, IActionParameters, ID, IFolder, ISearchParameters, PublishParameters, ShareRight, UpdateParameters } from '@edifice.io/client';
|
|
2
2
|
/**
|
|
3
3
|
* searchContext API
|
|
4
4
|
* @param searchParams
|
|
@@ -6,8 +6,8 @@ import { CreateParameters, GetContextParameters, IActionParameters, ID, IFolder,
|
|
|
6
6
|
*/
|
|
7
7
|
export declare const searchContext: (searchParams: GetContextParameters) => Promise<{
|
|
8
8
|
folders: IFolder[];
|
|
9
|
-
pagination: import('@edifice.io/
|
|
10
|
-
resources: import('@edifice.io/
|
|
9
|
+
pagination: import('@edifice.io/client').IPagination;
|
|
10
|
+
resources: import('@edifice.io/client').IResource[];
|
|
11
11
|
searchConfig?: {
|
|
12
12
|
minLength: number;
|
|
13
13
|
};
|
|
@@ -21,7 +21,7 @@ export declare const createFolder: ({ searchParams, name, parentId, }: {
|
|
|
21
21
|
searchParams: ISearchParameters & IActionParameters;
|
|
22
22
|
name: string;
|
|
23
23
|
parentId: ID;
|
|
24
|
-
}) => Promise<import('@edifice.io/
|
|
24
|
+
}) => Promise<import('@edifice.io/client').CreateFolderResult>;
|
|
25
25
|
/**
|
|
26
26
|
* updateFolder API
|
|
27
27
|
* @param searchParams, folderId, parentId, name
|
|
@@ -32,7 +32,7 @@ export declare const updateFolder: ({ folderId, searchParams, parentId, name, }:
|
|
|
32
32
|
searchParams: ISearchParameters & IActionParameters;
|
|
33
33
|
parentId: ID;
|
|
34
34
|
name: string;
|
|
35
|
-
}) => Promise<import('@edifice.io/
|
|
35
|
+
}) => Promise<import('@edifice.io/client').CreateFolderResult>;
|
|
36
36
|
/**
|
|
37
37
|
* trashAll API
|
|
38
38
|
* @param searchParams, resourceIds, folderIds
|
|
@@ -43,7 +43,7 @@ export declare const trashAll: ({ searchParams, resourceIds, useAssetIds, folder
|
|
|
43
43
|
resourceIds: ID[];
|
|
44
44
|
useAssetIds: boolean;
|
|
45
45
|
folderIds: ID[];
|
|
46
|
-
}) => Promise<import('@edifice.io/
|
|
46
|
+
}) => Promise<import('@edifice.io/client').IActionResult>;
|
|
47
47
|
/**
|
|
48
48
|
* deleteAll API
|
|
49
49
|
* @param searchParams, resourceIds, folderIds
|
|
@@ -54,7 +54,7 @@ export declare const deleteAll: ({ searchParams, resourceIds, useAssetIds, folde
|
|
|
54
54
|
resourceIds: ID[];
|
|
55
55
|
useAssetIds: boolean;
|
|
56
56
|
folderIds: ID[];
|
|
57
|
-
}) => Promise<import('@edifice.io/
|
|
57
|
+
}) => Promise<import('@edifice.io/client').IActionResult>;
|
|
58
58
|
/**
|
|
59
59
|
* restoreAll API
|
|
60
60
|
* @param searchParams, resourceIds, folderIds
|
|
@@ -65,14 +65,14 @@ export declare const restoreAll: ({ searchParams, resourceIds, folderIds, useAss
|
|
|
65
65
|
resourceIds: ID[];
|
|
66
66
|
useAssetIds: boolean;
|
|
67
67
|
folderIds: ID[];
|
|
68
|
-
}) => Promise<import('@edifice.io/
|
|
68
|
+
}) => Promise<import('@edifice.io/client').IActionResult>;
|
|
69
69
|
/**
|
|
70
70
|
* copyResource API.
|
|
71
71
|
* @param searchParams searchParams to retrieve the application name.
|
|
72
72
|
* @param resourceId the resource id to copy.
|
|
73
73
|
* @returns copied ressource id and message.
|
|
74
74
|
*/
|
|
75
|
-
export declare const copyResource: (searchParams: ISearchParameters & IActionParameters, resourceId: ID) => Promise<import('@edifice.io/
|
|
75
|
+
export declare const copyResource: (searchParams: ISearchParameters & IActionParameters, resourceId: ID) => Promise<import('@edifice.io/client').CopyResult>;
|
|
76
76
|
/**
|
|
77
77
|
* moveToFolder API
|
|
78
78
|
* @param searchParams, resourceIds, folderIds, folderId
|
|
@@ -84,7 +84,7 @@ export declare const moveToFolder: ({ searchParams, resourceIds, folderId, folde
|
|
|
84
84
|
resourceIds: ID[];
|
|
85
85
|
useAssetIds: boolean;
|
|
86
86
|
folderIds: ID[];
|
|
87
|
-
}) => Promise<import('@edifice.io/
|
|
87
|
+
}) => Promise<import('@edifice.io/client').IActionResult>;
|
|
88
88
|
/**
|
|
89
89
|
* shareResource API
|
|
90
90
|
* @param searchParams, entId, shares
|
|
@@ -94,7 +94,7 @@ export declare const shareResource: ({ application, resourceId, rights, }: {
|
|
|
94
94
|
application: string;
|
|
95
95
|
resourceId: ID;
|
|
96
96
|
rights: ShareRight[];
|
|
97
|
-
}) => Promise<import('@edifice.io/
|
|
97
|
+
}) => Promise<import('@edifice.io/client').PutShareResponse>;
|
|
98
98
|
/**
|
|
99
99
|
* updateResource API
|
|
100
100
|
* @param searchParams, params
|
|
@@ -103,7 +103,7 @@ export declare const shareResource: ({ application, resourceId, rights, }: {
|
|
|
103
103
|
export declare const updateResource: ({ application, params, }: {
|
|
104
104
|
application: string;
|
|
105
105
|
params: UpdateParameters;
|
|
106
|
-
}) => Promise<import('@edifice.io/
|
|
106
|
+
}) => Promise<import('@edifice.io/client').UpdateResult>;
|
|
107
107
|
/**
|
|
108
108
|
* sessionHasWorkflowRights API
|
|
109
109
|
* @param actionRights
|
|
@@ -117,7 +117,7 @@ export declare const goToResource: ({ searchParams, assetId, }: {
|
|
|
117
117
|
export declare const createResource: ({ searchParams, params, }: {
|
|
118
118
|
searchParams: ISearchParameters & IActionParameters;
|
|
119
119
|
params: CreateParameters;
|
|
120
|
-
}) => Promise<import('@edifice.io/
|
|
120
|
+
}) => Promise<import('@edifice.io/client').CreateResult>;
|
|
121
121
|
export declare const printResource: ({ searchParams, assetId, }: {
|
|
122
122
|
searchParams: ISearchParameters & IActionParameters;
|
|
123
123
|
assetId: ID;
|
|
@@ -137,7 +137,7 @@ export declare const goToExport: ({ searchParams, assetId, }: {
|
|
|
137
137
|
export declare const publishResource: ({ searchParams, params, }: {
|
|
138
138
|
searchParams: ISearchParameters & IActionParameters;
|
|
139
139
|
params: PublishParameters;
|
|
140
|
-
}) => Promise<import('@edifice.io/
|
|
140
|
+
}) => Promise<import('@edifice.io/client').PublishResult>;
|
|
141
141
|
/**
|
|
142
142
|
* getPreference API
|
|
143
143
|
* @returns check onboarding trash param
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateParameters, PutShareResponse, UpdateParameters, UpdateResult, IResource, ISearchResults, ShareRight } from '@edifice.io/
|
|
1
|
+
import { CreateParameters, PutShareResponse, UpdateParameters, UpdateResult, IResource, ISearchResults, ShareRight } from '@edifice.io/client';
|
|
2
2
|
import { UseMutationOptions, UseMutationResult, InfiniteData } from '@tanstack/react-query';
|
|
3
3
|
export * from './actions';
|
|
4
4
|
/**
|
|
@@ -11,28 +11,28 @@ export declare const useSearchContext: () => import('@tanstack/react-query').Use
|
|
|
11
11
|
* useTrash query
|
|
12
12
|
* Optimistic UI when resource or folder is trashed
|
|
13
13
|
*/
|
|
14
|
-
export declare const useTrash: () => UseMutationResult<import('@edifice.io/
|
|
14
|
+
export declare const useTrash: () => UseMutationResult<import('@edifice.io/client').IActionResult, Error, void, unknown>;
|
|
15
15
|
/**
|
|
16
16
|
* useRestore query
|
|
17
17
|
* Optimistic UI when resource is restored
|
|
18
18
|
*/
|
|
19
|
-
export declare const useRestore: () => UseMutationResult<import('@edifice.io/
|
|
19
|
+
export declare const useRestore: () => UseMutationResult<import('@edifice.io/client').IActionResult, Error, void, unknown>;
|
|
20
20
|
/**
|
|
21
21
|
* useDelete query
|
|
22
22
|
* Optimistic UI when resource is deleted
|
|
23
23
|
*/
|
|
24
|
-
export declare const useDelete: () => UseMutationResult<import('@edifice.io/
|
|
24
|
+
export declare const useDelete: () => UseMutationResult<import('@edifice.io/client').IActionResult, Error, void, unknown>;
|
|
25
25
|
/**
|
|
26
26
|
* useCopyResource query.
|
|
27
27
|
* Optimistic UI when resource is copied.
|
|
28
28
|
*/
|
|
29
|
-
export declare const useCopyResource: () => UseMutationResult<import('@edifice.io/
|
|
30
|
-
export declare const useMoveItem: () => UseMutationResult<import('@edifice.io/
|
|
31
|
-
export declare const useCreateFolder: () => UseMutationResult<import('@edifice.io/
|
|
29
|
+
export declare const useCopyResource: () => UseMutationResult<import('@edifice.io/client').CopyResult, Error, IResource, unknown>;
|
|
30
|
+
export declare const useMoveItem: () => UseMutationResult<import('@edifice.io/client').IActionResult, Error, string, unknown>;
|
|
31
|
+
export declare const useCreateFolder: () => UseMutationResult<import('@edifice.io/client').CreateFolderResult, Error, {
|
|
32
32
|
name: string;
|
|
33
33
|
parentId: string;
|
|
34
34
|
}, unknown>;
|
|
35
|
-
export declare const useUpdatefolder: () => UseMutationResult<import('@edifice.io/
|
|
35
|
+
export declare const useUpdatefolder: () => UseMutationResult<import('@edifice.io/client').CreateFolderResult, Error, {
|
|
36
36
|
folderId: string;
|
|
37
37
|
name: string;
|
|
38
38
|
parentId: string;
|
|
@@ -43,4 +43,4 @@ export declare const useShareResource: (application: string) => UseMutationResul
|
|
|
43
43
|
}>;
|
|
44
44
|
export declare const useUpdateResource: (application: string) => UseMutationResult<UpdateResult, Error, UpdateParameters>;
|
|
45
45
|
export declare const useCustomMutation: <TData = unknown, TError = unknown, TVariables = void, TContext = unknown>(options: UseMutationOptions<TData, TError, TVariables, TContext>) => UseMutationResult<TData, TError, TVariables, TContext>;
|
|
46
|
-
export declare const useCreateResource: () => UseMutationResult<import('@edifice.io/
|
|
46
|
+
export declare const useCreateResource: () => UseMutationResult<import('@edifice.io/client').CreateResult, Error, CreateParameters, unknown>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BlogUpdate, CreateParameters, CreateResult, ResourceService, ResourceType, UpdateResult } from '@edifice.io/
|
|
1
|
+
import { BlogUpdate, CreateParameters, CreateResult, ResourceService, ResourceType, UpdateResult } from '@edifice.io/client';
|
|
2
2
|
export declare class BlogResourceService extends ResourceService {
|
|
3
3
|
getEditUrl(): string;
|
|
4
4
|
create(parameters: CreateParameters): Promise<CreateResult>;
|
package/lib/store/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IActionParameters, ID, IFolder, IResource, ISearchParameters } from '@edifice.io/client';
|
|
1
2
|
import { TreeData } from '@edifice.io/react';
|
|
2
|
-
import { IActionParameters, ID, IFolder, IResource, ISearchParameters } from '@edifice.io/ts-client';
|
|
3
3
|
import { QueryClient } from '@tanstack/react-query';
|
|
4
4
|
import { useStore } from 'zustand';
|
|
5
5
|
import { AppParams } from '../config';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IResource } from '@edifice.io/
|
|
1
|
+
import { IResource } from '@edifice.io/client';
|
|
2
2
|
export declare function isResourceShared(resource: IResource): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.5.3-develop-rc.
|
|
3
|
+
"version": "1.5.3-develop-rc.202412111526",
|
|
4
4
|
"description": "Edifice Explorer",
|
|
5
5
|
"homepage": "https://github.com/edificeio/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
41
41
|
"@edifice.io/react": "develop-rc",
|
|
42
42
|
"@edifice.io/bootstrap": "develop-rc",
|
|
43
|
-
"@edifice.io/
|
|
43
|
+
"@edifice.io/client": "develop-rc",
|
|
44
44
|
"@react-spring/web": "^9.7.3",
|
|
45
45
|
"@tanstack/react-query": "^5.59.13",
|
|
46
46
|
"clsx": "^2.1.1",
|
package/dist/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ode-explorer= 09/12/2024 15:21:56
|