@epam/ai-dial-chat-hooks 1.1.0-dev.423 → 1.1.0-dev.430

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 (178) hide show
  1. package/{api-error-DuLNy43N.js → api-error/api-error.js} +1 -1
  2. package/api-transport/create-csrf-middleware.js +21 -0
  3. package/api-transport/create-unauthorized-middleware.js +41 -0
  4. package/attachment/useAttachmentAction/useAttachmentAction.js +74 -0
  5. package/attachment/useAttachmentValidation/useAttachmentValidation.js +35 -0
  6. package/attachments.js +3 -2
  7. package/catalog/catalog-derivations.js +10 -0
  8. package/catalog/catalog-primary-action.js +21 -0
  9. package/catalog/create-publish-api.js +27 -0
  10. package/catalog/deployment-endpoint-url.js +34 -0
  11. package/{deployment-id-CxWgJTs9.js → catalog/deployment-id.js} +1 -1
  12. package/catalog/entity-details.js +6 -0
  13. package/catalog/map-deployment-limits-to-catalog.js +73 -0
  14. package/catalog/map-deployment-limits-to-input.js +14 -0
  15. package/catalog/map-deployment-to-catalog-item.js +92 -0
  16. package/catalog/map-entity-details-to-catalog.js +350 -0
  17. package/catalog/map-prompt-to-catalog-item.js +49 -0
  18. package/catalog/map-skill-to-catalog-item.js +123 -0
  19. package/catalog/mcp-endpoint-url.js +26 -0
  20. package/catalog/publish.js +18 -0
  21. package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +109 -0
  22. package/catalog/useCatalogItemDetails.js +101 -0
  23. package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +146 -0
  24. package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +50 -0
  25. package/catalog/usePublishFolders/usePublishFolders.js +72 -0
  26. package/catalog.js +22 -3
  27. package/conversation/announcement-message.js +42 -0
  28. package/conversation/conversation-transfer/async.js +18 -0
  29. package/conversation/conversation-transfer/attachment-refs.js +11 -0
  30. package/conversation/conversation-transfer/build-upload-path.js +27 -0
  31. package/{date-BeuD8G79.js → conversation/conversation-transfer/date.js} +1 -1
  32. package/conversation/conversation-transfer/dial-file-resolve.js +18 -0
  33. package/conversation/conversation-transfer/export-conversation.js +32 -0
  34. package/conversation/conversation-transfer/import-conversation.js +93 -0
  35. package/conversation/conversation-transfer/progress.js +39 -0
  36. package/conversation/conversation-transfer/queue.js +84 -0
  37. package/conversation/conversation-transfer/types.js +9 -0
  38. package/conversation/conversation-transfer/zip-export.js +19 -0
  39. package/conversation/conversation-transfer/zip-import.js +29 -0
  40. package/conversation/create-chat-stream-api.js +96 -0
  41. package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.js +14 -0
  42. package/conversation/display-name-watch.js +5 -0
  43. package/conversation/footer-message.js +23 -0
  44. package/conversation/get-model-id-from-conversation-id.js +14 -0
  45. package/conversation/greeting.js +7 -0
  46. package/conversation/message-factory.js +19 -0
  47. package/conversation/message-utils.js +13 -0
  48. package/conversation/overlay-messages.js +8 -0
  49. package/conversation/quick-app-conversation-starters.js +29 -0
  50. package/conversation/starter-option.js +27 -0
  51. package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -0
  52. package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js +39 -0
  53. package/conversation/useAttachmentUpload/useAttachmentUpload.js +33 -0
  54. package/conversation/useConversationExport/useConversationExport.js +285 -0
  55. package/conversation/useConversationHandlers/attachment-to-dto.js +13 -0
  56. package/conversation/useConversationHandlers/message-factory.js +21 -0
  57. package/conversation/useConversationHandlers/message-utils.js +8 -0
  58. package/conversation/useConversationHandlers/starter-option.js +11 -0
  59. package/conversation/useConversationHandlers/useConversationHandlers.js +263 -0
  60. package/conversation/useConversationImport/useConversationImport.js +239 -0
  61. package/conversation/useConversationLookupMaps/useConversationLookupMaps.js +11 -0
  62. package/conversation/useConversationPanelItems/useConversationPanelItems.js +35 -0
  63. package/{useConversationScroll-CliIMnjP.js → conversation/useConversationScroll/useConversationScroll.js} +1 -1
  64. package/conversation/useConversationStream/apply-chunk.js +78 -0
  65. package/conversation/useConversationStream/buffered-generation.js +18 -0
  66. package/conversation/useConversationStream/conversation-path.js +8 -0
  67. package/conversation/useConversationStream/generation-resume.js +126 -0
  68. package/conversation/useConversationStream/useConversationStream.js +148 -0
  69. package/conversation/useImportFilePicker/useImportFilePicker.js +20 -0
  70. package/conversation/useTranscribeAudio/audio-transcription-error.js +12 -0
  71. package/conversation/useTranscribeAudio/transcription-retry.js +38 -0
  72. package/conversation/useTranscribeAudio/useTranscribeAudio.js +41 -0
  73. package/{useConversationSources-DKaKvjXZ.js → conversation-sources/useConversationSources/useConversationSources.js} +1 -1
  74. package/conversation-sources.js +1 -1
  75. package/conversation-transfer.js +7 -3
  76. package/conversation.d.ts +66 -0
  77. package/conversation.js +31 -2
  78. package/file-manager.d.ts +3 -4
  79. package/file-manager.js +28 -3
  80. package/files/annotation.js +15 -0
  81. package/files/attachment-canvas.js +218 -0
  82. package/files/attachment-dto-to-display.js +15 -0
  83. package/files/attachment-types.js +16 -0
  84. package/files/create-files-api.js +40 -0
  85. package/files/create-upload-file-with-progress.js +42 -0
  86. package/files/dial-file-manager-copy-move.util.js +55 -0
  87. package/files/dial-file-manager-mapping.util.js +140 -0
  88. package/files/dial-file-manager-path.util.js +72 -0
  89. package/files/dial-file-manager.model.js +25 -0
  90. package/files/dial-file-manager.types.js +10 -0
  91. package/files/dial-file-to-attachment.js +37 -0
  92. package/files/dial-file.js +30 -0
  93. package/files/dial-files-api.js +6 -0
  94. package/files/download-destination.js +6 -0
  95. package/files/file-manager-variant.js +11 -0
  96. package/files/file-name.js +19 -0
  97. package/files/prepare-download-destination.js +24 -0
  98. package/files/resolve-dial-file-api-path.js +33 -0
  99. package/files/source-content.js +37 -0
  100. package/files/useDialFileListing/useDialFileListing.js +295 -0
  101. package/files/useDialFileManager/useDialFileManager.js +146 -0
  102. package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +23 -0
  103. package/files/useDialFileMetadata/useDialFileMetadata.js +42 -0
  104. package/files/useDialFileMutations/useDialFileMutations.js +359 -0
  105. package/files/useDialFileSharing/useDialFileSharing.js +70 -0
  106. package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +156 -0
  107. package/index.d.ts +69 -4
  108. package/index.js +134 -28
  109. package/mcp-apps/mcp-apps-api-client.js +48 -0
  110. package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js +26 -0
  111. package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +26 -0
  112. package/mcp-apps/useMcpAppTools/useMcpAppTools.js +71 -0
  113. package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js +58 -0
  114. package/mcp-apps.js +6 -2
  115. package/oauth/authorize-url.js +12 -0
  116. package/oauth/handshake.js +65 -0
  117. package/oauth/popup.js +29 -0
  118. package/oauth/toolset-id.js +10 -0
  119. package/oauth/types.js +24 -0
  120. package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +94 -0
  121. package/oauth/useToolsetLogin/useToolsetLogin.js +73 -0
  122. package/oauth.js +9 -3
  123. package/package.json +35 -23
  124. package/prompt/export-prompt.js +28 -0
  125. package/prompt/prompt-resource.js +15 -0
  126. package/prompt/prompt.js +12 -0
  127. package/prompt/usePromptsState/usePromptsState.js +42 -0
  128. package/scheduled-task/scheduled-task-mapping.js +6 -0
  129. package/{scheduled-task-trigger-D9RZCk52.js → scheduled-task/scheduled-task-trigger.js} +39 -40
  130. package/scheduled-tasks.js +3 -2
  131. package/scroll-anchoring.js +1 -1
  132. package/shared/application-schema.js +4 -0
  133. package/shared/browser-timezone.js +10 -0
  134. package/{cron-weekday-B4w29eAC.js → shared/cron-weekday.js} +1 -1
  135. package/shared/custom-apps.js +30 -0
  136. package/shared/external-services.js +18 -0
  137. package/{formatting-CZyyxBG3.js → shared/formatting.js} +1 -1
  138. package/{prompt-resource-Bt1I-8ri.js → shared/locale.js} +2 -13
  139. package/{string-utils-iBi2Y55C.js → shared/string-utils.js} +1 -1
  140. package/shared/toolset-login-events.js +13 -0
  141. package/sharing.js +3 -3
  142. package/skill/skill-file-batch-validation.js +48 -0
  143. package/skill/skill-file-preview.js +15 -0
  144. package/skill/skill-manifest.js +70 -0
  145. package/skill/skill-types.js +15 -0
  146. package/skill/skill.js +48 -0
  147. package/skill/useSkillEditorLoad.js +103 -0
  148. package/skill/useSkillEditorSubmit.js +135 -0
  149. package/skill/useSkillFileActions.js +99 -0
  150. package/skill/useSkillFilePreview.js +29 -0
  151. package/{useSkillsState-BoLlwmzb.js → skill/useSkillsState/useSkillsState.js} +1 -1
  152. package/skill-editor.js +8 -3
  153. package/skills-state.js +1 -1
  154. package/source-content.d.ts +29 -0
  155. package/source-content.js +2 -0
  156. package/usage/useUsageData/useUsageData.js +32 -0
  157. package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +74 -0
  158. package/{usePanelMaxWidth-BEZYuqF9.js → usePageFileDrag/usePageFileDrag.js} +1 -11
  159. package/usePanelMaxWidth/usePanelMaxWidth.js +8 -0
  160. package/{useShareLink-xkiaxATt.js → useShareLink/useShareLink.js} +1 -1
  161. package/{useShareRecipientsCount-BgwCLKY0.js → useShareRecipientsCount/useShareRecipientsCount.js} +1 -1
  162. package/useToolsMenu/useToolsMenu.js +50 -0
  163. package/useViewportWidth/useViewportWidth.js +12 -0
  164. package/utils.js +17 -7
  165. package/viewport-layout.js +4 -2
  166. package/attachment-types-AAoN9E95.js +0 -7760
  167. package/browser-Btsa0Lmr.js +0 -607
  168. package/skill-manifest-CeG6-WSK.js +0 -4056
  169. package/useAttachmentValidation-CkMTd5lA.js +0 -102
  170. package/useConversationImport-CDRs7JF1.js +0 -826
  171. package/useDialFileManagerTabConfig-CjI46lMo.js +0 -2291
  172. package/useOAuthCallbackCompletion-CvyTKLER.js +0 -93
  173. package/useOpenMcpAppCanvas-C7-AMseH.js +0 -207
  174. package/useSkillFileActions-B-VaGD20.js +0 -373
  175. package/useSkillFilePreview-B5o1n_0F.js +0 -1244
  176. package/useToolsMenu-zURpMEn1.js +0 -1882
  177. package/useToolsetLogin-B05m134e.js +0 -195
  178. package/useUsageData-D7BxloKZ.js +0 -201
@@ -0,0 +1,2 @@
1
+ import { getUrlFileName as e, isExternalSourcePreviewable as t, resolveExternalSourceContentType as n } from "./files/source-content.js";
2
+ export { e as getUrlFileName, t as isExternalSourcePreviewable, n as resolveExternalSourceContentType };
@@ -0,0 +1,32 @@
1
+ import { useEffect as e, useState as t } from "react";
2
+ //#region src/usage/useUsageData/useUsageData.ts
3
+ var n = (e) => e instanceof Error ? e : Error(String(e)), r = (r, i = !0) => {
4
+ let [a, o] = t(), [s, c] = t(i), [l, u] = t();
5
+ return e(() => {
6
+ if (!i) {
7
+ c(!1);
8
+ return;
9
+ }
10
+ let e = !1;
11
+ return c(!0), (async () => {
12
+ try {
13
+ let t = await r();
14
+ if (e) return;
15
+ o(t);
16
+ } catch (t) {
17
+ if (e) return;
18
+ u(n(t));
19
+ } finally {
20
+ e || c(!1);
21
+ }
22
+ })(), () => {
23
+ e = !0;
24
+ };
25
+ }, [i, r]), {
26
+ usage: a,
27
+ isLoading: s,
28
+ usageError: l
29
+ };
30
+ };
31
+ //#endregion
32
+ export { r as useUsageData };
@@ -0,0 +1,74 @@
1
+ import { ResponseFormat as e } from "@epam/ai-dial-chat-shared";
2
+ import { useCallback as t, useMemo as n } from "react";
3
+ //#region src/useChatSettingsFormConfig/useChatSettingsFormConfig.ts
4
+ var r = {
5
+ settings: "Settings",
6
+ savedNotification: "Chat settings have been saved",
7
+ responseFormatLabel: "Response format",
8
+ responseFormatHint: "Applies to new and existing messages",
9
+ responseFormatMarkdown: "Markdown",
10
+ responseFormatPlainText: "Plain text",
11
+ systemPromptLabel: "System prompt",
12
+ systemPromptTooltip: "Enter a prompt",
13
+ temperatureLabel: "Temperature",
14
+ temperaturePrecise: "Precise",
15
+ temperatureNeutral: "Neutral",
16
+ temperatureCreative: "Creative",
17
+ temperatureHint: "Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.",
18
+ saveLabel: "Apply changes",
19
+ saveDisabledTooltip: "Please select a response format"
20
+ }, i = (t) => (t ?? "").toLowerCase().replace(/[^a-z]/g, "") === "plaintext" ? e.PlainText : e.Markdown, a = (e) => {
21
+ let a = n(() => ({
22
+ ...r,
23
+ ...e.labels
24
+ }), [e.labels]), { onSaved: o } = e, s = e.mode === "local" ? e.values.responseFormat : i(e.conversation.responseFormat), c = e.mode === "local" ? e.values.systemPrompt : e.conversation.prompt ?? "", l = e.mode === "local" ? e.values.temperature : e.conversation.temperature ?? .5, u = t((t) => {
25
+ e.mode === "local" ? e.onValuesChange({
26
+ responseFormat: t.responseFormat ?? e.values.responseFormat,
27
+ systemPrompt: t.systemPrompt ?? e.values.systemPrompt,
28
+ temperature: t.temperature ?? e.values.temperature
29
+ }) : e.onConversationChange({
30
+ ...e.conversation,
31
+ ...t.responseFormat != null && { responseFormat: t.responseFormat },
32
+ ...t.systemPrompt != null && { prompt: t.systemPrompt },
33
+ ...t.temperature != null && { temperature: t.temperature }
34
+ }), o?.();
35
+ }, [o, e]), d = e.deploymentFeatures?.systemPrompt ?? !1, f = !e.isQuickApp && (e.deploymentFeatures?.temperature ?? !1);
36
+ return n(() => ({
37
+ features: {
38
+ systemPrompt: d,
39
+ temperature: f,
40
+ responseFormat: !0
41
+ },
42
+ responseFormat: s,
43
+ systemPrompt: c,
44
+ temperature: l,
45
+ onSave: u,
46
+ menuItemLabel: a.settings,
47
+ title: a.settings,
48
+ responseFormatLabel: a.responseFormatLabel,
49
+ responseFormatHint: a.responseFormatHint,
50
+ responseFormatMarkdownLabel: a.responseFormatMarkdown,
51
+ responseFormatPlainTextLabel: a.responseFormatPlainText,
52
+ systemPromptLabel: a.systemPromptLabel,
53
+ systemPromptTooltip: a.systemPromptTooltip,
54
+ temperatureLabel: a.temperatureLabel,
55
+ temperatureLabels: [
56
+ a.temperaturePrecise,
57
+ a.temperatureNeutral,
58
+ a.temperatureCreative
59
+ ],
60
+ temperatureHint: a.temperatureHint,
61
+ saveLabel: a.saveLabel,
62
+ saveDisabledTooltip: a.saveDisabledTooltip
63
+ }), [
64
+ u,
65
+ d,
66
+ f,
67
+ a,
68
+ s,
69
+ c,
70
+ l
71
+ ]);
72
+ };
73
+ //#endregion
74
+ export { a as useChatSettingsFormConfig };
@@ -29,16 +29,6 @@ var a = (a = !0, o = !0) => {
29
29
  pendingFiles: l,
30
30
  onFilesConsumed: m
31
31
  };
32
- }, o = () => typeof window < "u" ? window.innerWidth : 1024, s = () => {
33
- let [e, n] = i(o);
34
- return t(() => {
35
- if (typeof window > "u") return;
36
- let e = () => n(window.innerWidth);
37
- return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
38
- }, []), e;
39
- }, c = (e) => {
40
- let t = s();
41
- return Math.max(0, t - e);
42
32
  };
43
33
  //#endregion
44
- export { s as n, a as r, c as t };
34
+ export { a as usePageFileDrag };
@@ -0,0 +1,8 @@
1
+ import { useViewportWidth as e } from "../useViewportWidth/useViewportWidth.js";
2
+ //#region src/usePanelMaxWidth/usePanelMaxWidth.ts
3
+ var t = (t) => {
4
+ let n = e();
5
+ return Math.max(0, n - t);
6
+ };
7
+ //#endregion
8
+ export { t as usePanelMaxWidth };
@@ -41,4 +41,4 @@ var o = (e) => e.map((e) => e === i.Edit ? a.Edit : a.View), s = (e, t) => {
41
41
  };
42
42
  };
43
43
  //#endregion
44
- export { c as t };
44
+ export { c as useShareLink };
@@ -34,4 +34,4 @@ var r = /* @__PURE__ */ function(e) {
34
34
  };
35
35
  };
36
36
  //#endregion
37
- export { a as n, r as t };
37
+ export { r as RecipientsCountStatus, a as useShareRecipientsCount };
@@ -0,0 +1,50 @@
1
+ import { useCallback as e, useEffect as t, useMemo as n, useRef as r, useState as i } from "react";
2
+ //#region src/useToolsMenu/useToolsMenu.ts
3
+ var a = (e) => e.type === "boolean" || e.type == null && typeof e.default == "boolean", o = (e) => {
4
+ let t = e.replace(/[_-]+/g, " ").trim();
5
+ return t.length === 0 ? e : t.charAt(0).toUpperCase() + t.slice(1);
6
+ }, s = (e) => {
7
+ let t = e?.properties;
8
+ return t == null ? [] : Object.entries(t).filter(([, e]) => a(e)).map(([e, t]) => ({
9
+ id: e,
10
+ label: typeof t.title == "string" && t.title.length > 0 ? t.title : o(e),
11
+ defaultValue: t.default === !0
12
+ }));
13
+ }, c = (a) => {
14
+ let { selectedItemId: o, selectedDeploymentConfiguration: c, toolIcon: l } = a, u = n(() => s(c), [c]), d = n(() => Object.fromEntries(u.map(({ id: e, defaultValue: t }) => [e, t])), [u]), [f, p] = i(d), m = JSON.stringify(d), h = r(d);
15
+ h.current = d, t(() => {
16
+ p(h.current);
17
+ }, [o, m]);
18
+ let g = e((e) => {
19
+ p((t) => e in t ? {
20
+ ...t,
21
+ [e]: !t[e]
22
+ } : t);
23
+ }, [p]), _ = e((e) => {
24
+ e != null && p((t) => {
25
+ let n = !1, r = { ...t };
26
+ for (let i of Object.keys(t)) {
27
+ let a = e[i];
28
+ typeof a == "boolean" && a !== t[i] && (r[i] = a, n = !0);
29
+ }
30
+ return n ? r : t;
31
+ });
32
+ }, [p]);
33
+ return {
34
+ toolsMenuItems: n(() => u.map(({ id: e, label: t }) => ({
35
+ id: e,
36
+ label: t,
37
+ icon: l ?? null,
38
+ isSelected: f[e] ?? !1
39
+ })), [
40
+ u,
41
+ f,
42
+ l
43
+ ]),
44
+ onToolToggle: g,
45
+ toolConfigurationValue: n(() => Object.fromEntries(u.map(({ id: e }) => [e, f[e] ?? !1])), [u, f]),
46
+ restoreToolConfiguration: _
47
+ };
48
+ };
49
+ //#endregion
50
+ export { c as useToolsMenu };
@@ -0,0 +1,12 @@
1
+ import { useEffect as e, useState as t } from "react";
2
+ //#region src/useViewportWidth/useViewportWidth.ts
3
+ var n = () => typeof window < "u" ? window.innerWidth : 1024, r = () => {
4
+ let [r, i] = t(n);
5
+ return e(() => {
6
+ if (typeof window > "u") return;
7
+ let e = () => i(window.innerWidth);
8
+ return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
9
+ }, []), r;
10
+ };
11
+ //#endregion
12
+ export { r as useViewportWidth };
package/utils.js CHANGED
@@ -1,7 +1,17 @@
1
- import { i as e, n as t, r as n, t as r } from "./api-error-DuLNy43N.js";
2
- import { C as i, E as a, S as o, T as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "./useUsageData-D7BxloKZ.js";
3
- import { i as A, n as j, r as M, t as N } from "./string-utils-iBi2Y55C.js";
4
- import { a as P, c as F, i as I, n as L, o as R, r as z, s as B, t as V } from "./prompt-resource-Bt1I-8ri.js";
5
- import { n as H, t as U } from "./formatting-CZyyxBG3.js";
6
- import { n as W, t as G } from "./cron-weekday-B4w29eAC.js";
7
- export { p as PROMPT_CONTENT_MAX_LENGTH, x as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, v as PROMPT_DESCRIPTION_MAX_LENGTH, h as PROMPT_NAME_MAX_LENGTH, m as PromptFieldError, V as PromptSource, G as apSchedulerDayToJsDay, z as appendLocaleCode, I as buildAdditionalLocaleOptions, y as buildExternalServiceScopeId, o as buildPromptExportEnvelope, i as buildPromptExportFileName, c as buildPromptPath, P as composeLocalePayload, a as createCsrfMiddleware, s as createUnauthorizedMiddleware, R as decomposeLocalizedFields, U as formatCalendarDate, r as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, d as getBrowserTimezone, S as getExternalServiceFallbackName, E as getRemainingCharacters, N as includesIgnoreCase, e as isConversationNotFoundError, _ as isCustomAppSchema, T as isQuickAppSchema, l as isValidAbsoluteUrl, b as isValidFeaturesData, W as jsDayToApSchedulerDay, H as padTwoDigits, g as parseExternalServiceUrl, C as parseFeaturesData, L as parsePromptResourceUrl, B as resolveLocalizedText, j as safeDecodeURI, M as safeDecodeURIComponent, D as serializePromptExport, A as stripSurroundingSlashes, F as toBaseLocale, f as usePromptsState, w as useUsageData, k as validatePromptContent, u as validatePromptDescription, O as validatePromptName };
1
+ import { getApiErrorDetails as e, getApiErrorMessage as t, getApiErrorStatus as n, isConversationNotFoundError as r } from "./api-error/api-error.js";
2
+ import { createCsrfMiddleware as i } from "./api-transport/create-csrf-middleware.js";
3
+ import { createUnauthorizedMiddleware as a } from "./api-transport/create-unauthorized-middleware.js";
4
+ import { includesIgnoreCase as o, safeDecodeURI as s, safeDecodeURIComponent as c, stripSurroundingSlashes as l } from "./shared/string-utils.js";
5
+ import { appendLocaleCode as u, buildAdditionalLocaleOptions as d, composeLocalePayload as f, decomposeLocalizedFields as p, resolveLocalizedText as m, toBaseLocale as h } from "./shared/locale.js";
6
+ import { formatCalendarDate as g, padTwoDigits as _ } from "./shared/formatting.js";
7
+ import { PromptSource as v, parsePromptResourceUrl as y } from "./prompt/prompt-resource.js";
8
+ import { buildPromptExportEnvelope as b, buildPromptExportFileName as x, serializePromptExport as S } from "./prompt/export-prompt.js";
9
+ import { PROMPT_CONTENT_MAX_LENGTH as C, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as w, PROMPT_DESCRIPTION_MAX_LENGTH as T, PROMPT_NAME_MAX_LENGTH as E, PromptFieldError as D, buildPromptPath as O, getRemainingCharacters as k, validatePromptContent as A, validatePromptDescription as j, validatePromptName as M } from "./prompt/prompt.js";
10
+ import { usePromptsState as N } from "./prompt/usePromptsState/usePromptsState.js";
11
+ import { apSchedulerDayToJsDay as P, jsDayToApSchedulerDay as F } from "./shared/cron-weekday.js";
12
+ import { isCustomAppSchema as I, isQuickAppSchema as L } from "./shared/application-schema.js";
13
+ import { getBrowserTimezone as R } from "./shared/browser-timezone.js";
14
+ import { isValidAbsoluteUrl as z, isValidFeaturesData as B, parseFeaturesData as V } from "./shared/custom-apps.js";
15
+ import { buildExternalServiceScopeId as H, getExternalServiceFallbackName as U, parseExternalServiceUrl as W } from "./shared/external-services.js";
16
+ import { useUsageData as G } from "./usage/useUsageData/useUsageData.js";
17
+ export { C as PROMPT_CONTENT_MAX_LENGTH, w as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, T as PROMPT_DESCRIPTION_MAX_LENGTH, E as PROMPT_NAME_MAX_LENGTH, D as PromptFieldError, v as PromptSource, P as apSchedulerDayToJsDay, u as appendLocaleCode, d as buildAdditionalLocaleOptions, H as buildExternalServiceScopeId, b as buildPromptExportEnvelope, x as buildPromptExportFileName, O as buildPromptPath, f as composeLocalePayload, i as createCsrfMiddleware, a as createUnauthorizedMiddleware, p as decomposeLocalizedFields, g as formatCalendarDate, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, R as getBrowserTimezone, U as getExternalServiceFallbackName, k as getRemainingCharacters, o as includesIgnoreCase, r as isConversationNotFoundError, I as isCustomAppSchema, L as isQuickAppSchema, z as isValidAbsoluteUrl, B as isValidFeaturesData, F as jsDayToApSchedulerDay, _ as padTwoDigits, W as parseExternalServiceUrl, V as parseFeaturesData, y as parsePromptResourceUrl, m as resolveLocalizedText, s as safeDecodeURI, c as safeDecodeURIComponent, S as serializePromptExport, l as stripSurroundingSlashes, h as toBaseLocale, N as usePromptsState, G as useUsageData, A as validatePromptContent, j as validatePromptDescription, M as validatePromptName };
@@ -1,2 +1,4 @@
1
- import { n as e, r as t, t as n } from "./usePanelMaxWidth-BEZYuqF9.js";
2
- export { t as usePageFileDrag, n as usePanelMaxWidth, e as useViewportWidth };
1
+ import { usePageFileDrag as e } from "./usePageFileDrag/usePageFileDrag.js";
2
+ import { useViewportWidth as t } from "./useViewportWidth/useViewportWidth.js";
3
+ import { usePanelMaxWidth as n } from "./usePanelMaxWidth/usePanelMaxWidth.js";
4
+ export { e as usePageFileDrag, n as usePanelMaxWidth, t as useViewportWidth };