@epam/ai-dial-chat-hooks 1.2.0-dev.21 → 1.2.0-dev.213
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/api-error/api-error.js +5 -4
- package/attachment/useAttachmentValidation/useAttachmentValidation.js +26 -19
- package/attachments.d.ts +10 -4
- package/catalog/catalog-derivations.js +1 -1
- package/catalog/deployment-id.js +8 -2
- package/catalog/map-deployment-limits-to-input.js +81 -9
- package/catalog/map-deployment-to-catalog-item.js +34 -34
- package/catalog/map-entity-details-to-catalog.js +7 -0
- package/catalog/map-skill-to-catalog-item.js +30 -27
- package/catalog/publish.js +6 -5
- package/catalog/useApplicationCredentials/useApplicationCredentials.js +39 -0
- package/catalog/useSkillDetailsPanelData/useSkillDetailsPanelData.js +39 -39
- package/catalog/useSkillItemDetails.js +17 -13
- package/catalog.d.ts +116 -20
- package/catalog.js +23 -22
- package/conversation/conversation-transfer/export-conversation.js +24 -16
- package/conversation/conversation-transfer/import-conversation.js +80 -31
- package/conversation/conversation-transfer/queue.js +8 -5
- package/conversation/create-chat-stream-api.js +85 -49
- package/conversation/message-utils.js +44 -2
- package/conversation/stage.js +23 -0
- package/conversation/useConversationExport/useConversationExport.js +9 -9
- package/conversation/useConversationHandlers/useConversationHandlers.js +16 -5
- package/conversation/useConversationImport/useConversationImport.js +123 -121
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +2 -3
- package/conversation/useConversationScroll/useConversationScroll.js +68 -64
- package/conversation/useConversationStream/apply-chunk.js +1 -1
- package/conversation/useConversationStream/generation-resume.js +104 -63
- package/conversation/useConversationStream/useConversationStream.js +181 -110
- package/conversation/useMessageSelectionReply/useMessageSelectionReply.js +189 -0
- package/conversation-overlay.d.ts +7 -0
- package/conversation-overlay.js +2 -0
- package/conversation-sources/useConversationSources/useConversationSources.js +31 -24
- package/conversation-sources.d.ts +1 -1
- package/conversation-transfer.d.ts +2 -1
- package/conversation.d.ts +241 -13
- package/conversation.js +32 -30
- package/file-manager-canvas.d.ts +398 -0
- package/file-manager-canvas.js +2 -0
- package/file-manager.d.ts +153 -350
- package/file-manager.js +25 -24
- package/files/attachment-canvas.js +40 -1
- package/files/attachment-types.js +14 -13
- package/files/dial-file-manager-mapping.util.js +2 -1
- package/files/dial-file-manager-path.util.js +23 -1
- package/files/dial-file-manager.model.js +23 -19
- package/files/dial-file-manager.types.js +3 -3
- package/files/useDialFileListing/useDialFileListing.js +157 -145
- package/files/useDialFileManager/useDialFileManager.js +132 -128
- package/files/useDialFileManagerSections/useDialFileManagerSections.js +155 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +20 -19
- package/files/useDialFileMutations/useDialFileMutations.js +33 -32
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +117 -110
- package/files/useFileAttachmentPicker/useFileAttachmentPicker.js +43 -0
- package/index.d.ts +1068 -81
- package/index.js +136 -122
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js +7 -5
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +1 -1
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +1 -1
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js +25 -23
- package/mcp-apps.d.ts +8 -6
- package/oauth/toolset-id.js +5 -3
- package/oauth/useToolsetLogin/useToolsetLogin.js +8 -8
- package/oauth.d.ts +32 -0
- package/oauth.js +9 -9
- package/package.json +36 -21
- package/scheduled-task/scheduled-task-description.js +77 -0
- package/scheduled-task/scheduled-task-preparation.js +24 -0
- package/scheduled-task/scheduled-task-trigger.js +7 -2
- package/scheduled-task/scheduled-tasks-api-client.js +19 -0
- package/scheduled-task/use-scheduled-task-runs.js +194 -0
- package/scheduled-task/use-scheduled-tasks.js +93 -0
- package/scheduled-tasks.d.ts +195 -3
- package/scheduled-tasks.js +7 -2
- package/skill/skill-archive.js +19 -0
- package/skill/skill-types.js +8 -7
- package/skill/skill.js +42 -27
- package/skill/useSkillArchiveImport/useSkillArchiveImport.js +79 -0
- package/skill/useSkillEditorLoad.js +29 -28
- package/skill/useSkillEditorSubmit.js +108 -84
- package/skill/useSkillFileActions.js +70 -58
- package/skill-editor.d.ts +133 -3
- package/skill-editor.js +9 -8
- package/usage/map-usage-data-to-dashboard.js +66 -0
- package/usage/map-user-usage-to-model-limits.js +202 -0
- package/usage.d.ts +125 -0
- package/usage.js +3 -0
- package/usePageFileDrag/usePageFileDrag.js +3 -3
- package/utils.d.ts +8 -6
|
@@ -2,29 +2,35 @@ import { getApiErrorStatus as e } from "../../api-error/api-error.js";
|
|
|
2
2
|
import { FileManagerNotificationReason as t } from "../dial-file-manager.types.js";
|
|
3
3
|
import { buildSharedItemVirtualPath as n, dialCorePathToRelative as r, findFolderByVirtualPath as i, normalizeVirtualPath as a } from "../dial-file-manager-path.util.js";
|
|
4
4
|
import { getParentFolderPath as ee, virtualPathToApiPath as o } from "../resolve-dial-file-api-path.js";
|
|
5
|
-
import { buildFromCache as te, fetchByTab as s, fetchForSearch as
|
|
6
|
-
import { useCallback as
|
|
7
|
-
import { ListFilesItemDtoNodeTypeEnum as
|
|
8
|
-
import { NotificationVariant as
|
|
9
|
-
import { DialFileManagerTabs as
|
|
5
|
+
import { buildFromCache as te, fetchByTab as s, fetchForSearch as ne, mapCorePermissions as re, mapSearchItem as c, mergeCreatedFolderIntoCache as ie } from "../dial-file-manager-mapping.util.js";
|
|
6
|
+
import { useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
7
|
+
import { ListFilesItemDtoNodeTypeEnum as m } from "@epam/ai-dial-chat-api-client";
|
|
8
|
+
import { NotificationVariant as h } from "@epam/ai-dial-ui-kit";
|
|
9
|
+
import { DialFileManagerTabs as g, DialFileNodeType as ae } from "@epam/ai-dial-react-file-manager";
|
|
10
10
|
//#region src/files/useDialFileListing/useDialFileListing.ts
|
|
11
|
-
var
|
|
12
|
-
let [C, w] =
|
|
13
|
-
|
|
11
|
+
var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x, isActive: S = !0, sessionKey: oe }) => {
|
|
12
|
+
let [C, w] = p(""), [T, E] = p(() => /* @__PURE__ */ new Map()), D = f(T);
|
|
13
|
+
u(() => {
|
|
14
14
|
D.current = T;
|
|
15
15
|
}, [T]);
|
|
16
|
-
let [O, k] =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, []),
|
|
16
|
+
let [O, k] = p(() => /* @__PURE__ */ new Map()), [se, A] = p(S), [ce, le] = p(S);
|
|
17
|
+
ce !== S && (le(S), A(S));
|
|
18
|
+
let [ue, j] = p(null), [M, de] = p(0), [N, P] = p(void 0), [fe, F] = p(() => /* @__PURE__ */ new Set()), I = f(/* @__PURE__ */ new Map()), [pe, L] = p(!1), [me, R] = p(null), z = f(null), B = f(null), V = f(/* @__PURE__ */ new Set()), H = f(/* @__PURE__ */ new Set()), [U, W] = p(() => /* @__PURE__ */ new Set()), [he, G] = p(() => /* @__PURE__ */ new Set()), [K, q] = p(() => /* @__PURE__ */ new Set()), J = `${b}|${oe ?? ""}`, Y = f(J);
|
|
19
|
+
u(() => {
|
|
20
|
+
Y.current !== J && (Y.current = J, E(/* @__PURE__ */ new Map()), k(/* @__PURE__ */ new Map()), w(""), P(void 0), I.current = /* @__PURE__ */ new Map(), V.current = /* @__PURE__ */ new Set(), H.current = /* @__PURE__ */ new Set(), G(/* @__PURE__ */ new Set()), q(/* @__PURE__ */ new Set()), z.current != null && (clearTimeout(z.current), z.current = null), B.current?.(), B.current = null, R(null), L(!1), W(/* @__PURE__ */ new Set()));
|
|
21
|
+
}, [J]), u(() => () => {
|
|
22
|
+
z.current != null && clearTimeout(z.current), B.current?.();
|
|
23
|
+
}, []), u(() => {
|
|
24
|
+
if (!S) {
|
|
25
|
+
A(!1);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
22
28
|
let t = !1;
|
|
23
|
-
return A(!0), j(null), s(
|
|
29
|
+
return A(!0), j(null), s(_, b, v, C, I.current).then(({ items: e, permissions: i }) => {
|
|
24
30
|
t || (E((t) => {
|
|
25
31
|
let n = new Map(t);
|
|
26
32
|
return n.set(C, e), n;
|
|
27
|
-
}), k((e) => new Map(e).set(C, i)),
|
|
33
|
+
}), k((e) => new Map(e).set(C, i)), b === g.Shared && C === "" && (P(e.map((e) => n(r(e.path, e.bucket ?? ""), y, e.nodeType === m.Folder))), I.current = new Map(e.map((e) => [e.name, {
|
|
28
34
|
bucket: e.bucket ?? "",
|
|
29
35
|
dialCorePath: e.path
|
|
30
36
|
}]))));
|
|
@@ -42,53 +48,55 @@ var v = ({ filesApi: v, bucket: y, rootLabel: b, activeTab: x, onNotification: S
|
|
|
42
48
|
t = !0;
|
|
43
49
|
};
|
|
44
50
|
}, [
|
|
45
|
-
|
|
46
|
-
y,
|
|
51
|
+
b,
|
|
47
52
|
v,
|
|
53
|
+
_,
|
|
48
54
|
C,
|
|
55
|
+
S,
|
|
49
56
|
M,
|
|
50
|
-
|
|
51
|
-
]),
|
|
52
|
-
if (
|
|
53
|
-
|
|
57
|
+
y
|
|
58
|
+
]), u(() => {
|
|
59
|
+
if (!S || b !== g.MyFiles) {
|
|
60
|
+
F(/* @__PURE__ */ new Set());
|
|
54
61
|
return;
|
|
55
62
|
}
|
|
56
63
|
let e = !1;
|
|
57
|
-
return
|
|
58
|
-
e ||
|
|
64
|
+
return _.listSharedByMe(v).then((t) => {
|
|
65
|
+
e || F(new Set(t.items.map((e) => n(r(e.path, v), y, e.nodeType === m.Folder))));
|
|
59
66
|
}).catch(() => {
|
|
60
|
-
e ||
|
|
67
|
+
e || F(/* @__PURE__ */ new Set());
|
|
61
68
|
}), () => {
|
|
62
69
|
e = !0;
|
|
63
70
|
};
|
|
64
71
|
}, [
|
|
65
|
-
|
|
66
|
-
y,
|
|
72
|
+
b,
|
|
67
73
|
v,
|
|
74
|
+
_,
|
|
75
|
+
S,
|
|
68
76
|
M,
|
|
69
|
-
|
|
77
|
+
y
|
|
70
78
|
]);
|
|
71
|
-
let X =
|
|
72
|
-
id:
|
|
73
|
-
name:
|
|
74
|
-
path: `/${
|
|
79
|
+
let X = d(() => [{
|
|
80
|
+
id: v,
|
|
81
|
+
name: y,
|
|
82
|
+
path: `/${y}`,
|
|
75
83
|
parentPath: "",
|
|
76
|
-
nodeType:
|
|
77
|
-
folderId:
|
|
78
|
-
permissions:
|
|
79
|
-
items: te(T, O, "", `/${
|
|
84
|
+
nodeType: ae.FOLDER,
|
|
85
|
+
folderId: v,
|
|
86
|
+
permissions: re(O.get("")),
|
|
87
|
+
items: te(T, O, "", `/${y}`, v)
|
|
80
88
|
}], [
|
|
81
89
|
T,
|
|
82
90
|
O,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
]),
|
|
91
|
+
y,
|
|
92
|
+
v
|
|
93
|
+
]), ge = l((e) => {
|
|
86
94
|
if (e == null) {
|
|
87
95
|
w("");
|
|
88
96
|
return;
|
|
89
97
|
}
|
|
90
|
-
let t = `/${
|
|
91
|
-
if (e === `/${
|
|
98
|
+
let t = `/${y}/`, n = `${y}/`;
|
|
99
|
+
if (e === `/${y}` || e === t || e === y || e === n) {
|
|
92
100
|
w("");
|
|
93
101
|
return;
|
|
94
102
|
}
|
|
@@ -100,11 +108,11 @@ var v = ({ filesApi: v, bucket: y, rootLabel: b, activeTab: x, onNotification: S
|
|
|
100
108
|
r = t.startsWith(n) ? t.slice(n.length) : t;
|
|
101
109
|
}
|
|
102
110
|
w(r && !r.endsWith("/") ? `${r}/` : r);
|
|
103
|
-
}, [
|
|
104
|
-
|
|
105
|
-
}, []),
|
|
111
|
+
}, [y]), Z = l(() => {
|
|
112
|
+
de((e) => e + 1);
|
|
113
|
+
}, []), _e = Z, ve = l((e) => {
|
|
106
114
|
if (e.length === 0) return;
|
|
107
|
-
let n = new Set([...
|
|
115
|
+
let n = new Set([...U].map((e) => o(e, y))), r = (e) => e === C || C.startsWith(e) || n.has(e), i = e.filter((e) => !r(e)), a = e.filter((e) => r(e) && e !== C);
|
|
108
116
|
i.length > 0 && (E((e) => {
|
|
109
117
|
let t = new Map(e);
|
|
110
118
|
return i.forEach((e) => t.delete(e)), t;
|
|
@@ -114,54 +122,55 @@ var v = ({ filesApi: v, bucket: y, rootLabel: b, activeTab: x, onNotification: S
|
|
|
114
122
|
})), a.forEach((e) => {
|
|
115
123
|
(async () => {
|
|
116
124
|
try {
|
|
117
|
-
let { items: t, permissions: n } = await s(
|
|
125
|
+
let { items: t, permissions: n } = await s(_, b, v, e, I.current);
|
|
118
126
|
E((n) => new Map(n).set(e, t)), n != null && k((t) => new Map(t).set(e, n));
|
|
119
127
|
} catch {
|
|
120
|
-
|
|
121
|
-
variant:
|
|
128
|
+
x?.({
|
|
129
|
+
variant: h.Error,
|
|
122
130
|
reason: t.FolderLoadFailed
|
|
123
131
|
});
|
|
124
132
|
}
|
|
125
133
|
})();
|
|
126
134
|
});
|
|
127
135
|
}, [
|
|
128
|
-
|
|
129
|
-
y,
|
|
136
|
+
b,
|
|
130
137
|
v,
|
|
138
|
+
_,
|
|
131
139
|
C,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
]),
|
|
136
|
-
E((r) =>
|
|
137
|
-
}, []),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
U,
|
|
141
|
+
y,
|
|
142
|
+
x
|
|
143
|
+
]), Q = l((e, t, n) => {
|
|
144
|
+
E((r) => ie(r, e, t, n));
|
|
145
|
+
}, []), ye = l((e) => {
|
|
146
|
+
if (!S) return;
|
|
147
|
+
let n = e == null ? "" : o(e, y), r = e ?? `/${y}`;
|
|
148
|
+
if (q((e) => {
|
|
140
149
|
if (e.has(r)) return e;
|
|
141
150
|
let t = new Set(e);
|
|
142
151
|
return t.add(r), t;
|
|
143
152
|
}), !D.current.has(n)) {
|
|
144
|
-
if (
|
|
145
|
-
|
|
153
|
+
if (V.current.has(n)) {
|
|
154
|
+
G((e) => {
|
|
146
155
|
let t = new Set(e);
|
|
147
156
|
return t.add(r), t;
|
|
148
157
|
});
|
|
149
158
|
return;
|
|
150
159
|
}
|
|
151
|
-
|
|
160
|
+
V.current.add(n), G((e) => {
|
|
152
161
|
let t = new Set(e);
|
|
153
162
|
return t.add(r), t;
|
|
154
163
|
}), (async () => {
|
|
155
164
|
try {
|
|
156
|
-
let { items: e, permissions: t } = await s(
|
|
157
|
-
E((t) => new Map(t).set(n, e)), t != null && k((e) => new Map(e).set(n, t)),
|
|
165
|
+
let { items: e, permissions: t } = await s(_, b, v, n, I.current);
|
|
166
|
+
E((t) => new Map(t).set(n, e)), t != null && k((e) => new Map(e).set(n, t)), H.current.delete(n);
|
|
158
167
|
} catch {
|
|
159
|
-
|
|
160
|
-
variant:
|
|
168
|
+
x?.({
|
|
169
|
+
variant: h.Error,
|
|
161
170
|
reason: t.FolderLoadFailed
|
|
162
171
|
});
|
|
163
172
|
} finally {
|
|
164
|
-
|
|
173
|
+
V.current.delete(n), G((e) => {
|
|
165
174
|
let t = new Set(e);
|
|
166
175
|
return t.delete(r), t;
|
|
167
176
|
});
|
|
@@ -169,127 +178,130 @@ var v = ({ filesApi: v, bucket: y, rootLabel: b, activeTab: x, onNotification: S
|
|
|
169
178
|
})();
|
|
170
179
|
}
|
|
171
180
|
}, [
|
|
172
|
-
|
|
173
|
-
y,
|
|
181
|
+
b,
|
|
174
182
|
v,
|
|
183
|
+
_,
|
|
175
184
|
S,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
185
|
+
x,
|
|
186
|
+
y
|
|
187
|
+
]), be = d(() => {
|
|
188
|
+
let e = /* @__PURE__ */ new Set(), t = new Set([...U, ...K]);
|
|
179
189
|
for (let n of t) {
|
|
180
|
-
let t = o(n,
|
|
190
|
+
let t = o(n, y);
|
|
181
191
|
T.has(t) && e.add(n);
|
|
182
192
|
}
|
|
183
193
|
return e;
|
|
184
194
|
}, [
|
|
185
|
-
|
|
186
|
-
|
|
195
|
+
U,
|
|
196
|
+
K,
|
|
187
197
|
T,
|
|
188
|
-
|
|
189
|
-
]),
|
|
190
|
-
|
|
191
|
-
e.has(t) ||
|
|
192
|
-
}),
|
|
193
|
-
let t = o(e,
|
|
194
|
-
return !D.current.has(t) && !
|
|
198
|
+
y
|
|
199
|
+
]), xe = l((e) => {
|
|
200
|
+
S && (U.forEach((t) => {
|
|
201
|
+
e.has(t) || H.current.delete(o(t, y));
|
|
202
|
+
}), W(e), [...e].filter((e) => {
|
|
203
|
+
let t = o(e, y);
|
|
204
|
+
return !D.current.has(t) && !V.current.has(t) && !H.current.has(t);
|
|
195
205
|
}).forEach((e) => {
|
|
196
|
-
let n = o(e,
|
|
197
|
-
|
|
206
|
+
let n = o(e, y);
|
|
207
|
+
V.current.add(n), (async () => {
|
|
198
208
|
try {
|
|
199
|
-
let { items: e, permissions: t } = await s(
|
|
209
|
+
let { items: e, permissions: t } = await s(_, b, v, n, I.current);
|
|
200
210
|
E((t) => new Map(t).set(n, e)), t != null && k((e) => new Map(e).set(n, t));
|
|
201
211
|
} catch {
|
|
202
|
-
|
|
203
|
-
variant:
|
|
212
|
+
H.current.add(n), x?.({
|
|
213
|
+
variant: h.Error,
|
|
204
214
|
reason: t.FolderLoadFailed
|
|
205
215
|
});
|
|
206
216
|
} finally {
|
|
207
|
-
|
|
217
|
+
V.current.delete(n), G((t) => {
|
|
208
218
|
let n = new Set(t);
|
|
209
219
|
return n.delete(e), n;
|
|
210
220
|
});
|
|
211
221
|
}
|
|
212
222
|
})();
|
|
213
|
-
});
|
|
223
|
+
}));
|
|
214
224
|
}, [
|
|
215
|
-
|
|
216
|
-
y,
|
|
225
|
+
b,
|
|
217
226
|
v,
|
|
218
|
-
|
|
227
|
+
_,
|
|
228
|
+
U,
|
|
219
229
|
S,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
B.current = setTimeout(() => {
|
|
229
|
-
B.current = null;
|
|
230
|
-
let e = t.toLowerCase();
|
|
231
|
-
if (x === _.Shared && C === "") {
|
|
232
|
-
V.current?.(), V.current = null, R(!0), z((T.get("") ?? []).filter((t) => t.name.toLowerCase().includes(e)).map((e) => l(e, e.bucket ?? y, b))), R(!1);
|
|
230
|
+
x,
|
|
231
|
+
y
|
|
232
|
+
]), Se = l(() => {
|
|
233
|
+
z.current != null && (clearTimeout(z.current), z.current = null), B.current?.(), B.current = null, R(null), L(!1);
|
|
234
|
+
}, []), Ce = l((e, t) => {
|
|
235
|
+
if (S) {
|
|
236
|
+
if (z.current != null && (clearTimeout(z.current), z.current = null), B.current?.(), B.current = null, !t.trim()) {
|
|
237
|
+
R(null), L(!1);
|
|
233
238
|
return;
|
|
234
239
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
try {
|
|
240
|
-
let { items: t } = await c(v, x, y, C, L.current);
|
|
241
|
-
if (n) return;
|
|
242
|
-
z(t.filter((t) => t.name.toLowerCase().includes(e)).map((e) => l(e, e.bucket ?? y, b)));
|
|
243
|
-
} catch {
|
|
244
|
-
n || z([]);
|
|
245
|
-
} finally {
|
|
246
|
-
n || R(!1);
|
|
240
|
+
z.current = setTimeout(() => {
|
|
241
|
+
if (z.current = null, b === g.Shared && C === "") {
|
|
242
|
+
B.current?.(), B.current = null, L(!0), R((T.get("") ?? []).map((e) => c(e, e.bucket ?? v, y))), L(!1);
|
|
243
|
+
return;
|
|
247
244
|
}
|
|
248
|
-
|
|
249
|
-
|
|
245
|
+
let e = !1;
|
|
246
|
+
B.current = () => {
|
|
247
|
+
e = !0;
|
|
248
|
+
}, L(!0), (async () => {
|
|
249
|
+
try {
|
|
250
|
+
let { items: t } = await ne(_, b, v, C, I.current);
|
|
251
|
+
if (e) return;
|
|
252
|
+
R(t.map((e) => c(e, e.bucket ?? v, y)));
|
|
253
|
+
} catch {
|
|
254
|
+
e || R([]);
|
|
255
|
+
} finally {
|
|
256
|
+
e || L(!1);
|
|
257
|
+
}
|
|
258
|
+
})();
|
|
259
|
+
}, 300);
|
|
260
|
+
}
|
|
250
261
|
}, [
|
|
251
|
-
|
|
252
|
-
y,
|
|
253
|
-
T,
|
|
262
|
+
b,
|
|
254
263
|
v,
|
|
264
|
+
T,
|
|
265
|
+
_,
|
|
255
266
|
C,
|
|
256
|
-
|
|
257
|
-
|
|
267
|
+
S,
|
|
268
|
+
y
|
|
269
|
+
]), $ = C ? `/${y}/${C}` : `/${y}`, we = d(() => {
|
|
258
270
|
let e = X[0];
|
|
259
|
-
if (e) return a($) === a(`/${
|
|
271
|
+
if (e) return a($) === a(`/${y}`) ? e : i(e.items ?? [], $);
|
|
260
272
|
}, [
|
|
261
273
|
X,
|
|
262
274
|
$,
|
|
263
|
-
|
|
275
|
+
y
|
|
264
276
|
]);
|
|
265
277
|
return {
|
|
266
278
|
items: X,
|
|
267
|
-
isLoading:
|
|
268
|
-
error:
|
|
279
|
+
isLoading: se,
|
|
280
|
+
error: ue,
|
|
269
281
|
path: $,
|
|
270
282
|
folderPath: C,
|
|
271
|
-
onPathChange:
|
|
283
|
+
onPathChange: ge,
|
|
272
284
|
retry: Z,
|
|
273
|
-
onSearchFiles:
|
|
274
|
-
isSearching:
|
|
275
|
-
searchResults:
|
|
276
|
-
clearSearchResults:
|
|
277
|
-
expandedPaths:
|
|
278
|
-
loadedPaths:
|
|
279
|
-
onExpandedPathsChange:
|
|
280
|
-
onFolderPopupPathChange:
|
|
281
|
-
folderPopupLoadingPaths:
|
|
282
|
-
sharedWithMeIds:
|
|
283
|
-
sharedByMePaths:
|
|
284
|
-
currentFolder:
|
|
285
|
+
onSearchFiles: Ce,
|
|
286
|
+
isSearching: pe,
|
|
287
|
+
searchResults: me,
|
|
288
|
+
clearSearchResults: Se,
|
|
289
|
+
expandedPaths: U,
|
|
290
|
+
loadedPaths: be,
|
|
291
|
+
onExpandedPathsChange: xe,
|
|
292
|
+
onFolderPopupPathChange: ye,
|
|
293
|
+
folderPopupLoadingPaths: he,
|
|
294
|
+
sharedWithMeIds: d(() => b === g.Shared ? N : void 0, [b, N]),
|
|
295
|
+
sharedByMePaths: fe,
|
|
296
|
+
currentFolder: we,
|
|
285
297
|
cache: T,
|
|
286
298
|
listingPermissionsCache: O,
|
|
287
|
-
sharedRootMetaRef:
|
|
299
|
+
sharedRootMetaRef: I,
|
|
288
300
|
setFolderPath: w,
|
|
289
|
-
invalidateFolders:
|
|
290
|
-
mergeCreatedFolder:
|
|
291
|
-
bumpRetry:
|
|
301
|
+
invalidateFolders: ve,
|
|
302
|
+
mergeCreatedFolder: Q,
|
|
303
|
+
bumpRetry: _e
|
|
292
304
|
};
|
|
293
305
|
};
|
|
294
306
|
//#endregion
|
|
295
|
-
export {
|
|
307
|
+
export { _ as useDialFileListing };
|