@epam/ai-dial-chat-hooks 1.2.0-dev.20 → 1.2.0-dev.207

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