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