@epam/ai-dial-chat-hooks 1.1.0-dev.423 → 1.1.0-dev.426
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-DuLNy43N.js → api-error/api-error.js} +1 -1
- package/api-transport/create-csrf-middleware.js +21 -0
- package/api-transport/create-unauthorized-middleware.js +41 -0
- package/attachment/useAttachmentAction/useAttachmentAction.js +74 -0
- package/attachment/useAttachmentValidation/useAttachmentValidation.js +35 -0
- package/attachments.js +3 -2
- package/catalog/catalog-derivations.js +10 -0
- package/catalog/catalog-primary-action.js +21 -0
- package/catalog/create-publish-api.js +27 -0
- package/catalog/deployment-endpoint-url.js +34 -0
- package/{deployment-id-CxWgJTs9.js → catalog/deployment-id.js} +1 -1
- package/catalog/entity-details.js +6 -0
- package/catalog/map-deployment-limits-to-catalog.js +73 -0
- package/catalog/map-deployment-limits-to-input.js +14 -0
- package/catalog/map-deployment-to-catalog-item.js +92 -0
- package/catalog/map-entity-details-to-catalog.js +350 -0
- package/catalog/map-prompt-to-catalog-item.js +49 -0
- package/catalog/map-skill-to-catalog-item.js +123 -0
- package/catalog/mcp-endpoint-url.js +26 -0
- package/catalog/publish.js +18 -0
- package/catalog/useCatalogEditNavigation/useCatalogEditNavigation.js +109 -0
- package/catalog/useCatalogItemDetails.js +101 -0
- package/catalog/useCatalogToolsetCredentials/useCatalogToolsetCredentials.js +146 -0
- package/catalog/useFavoriteEntitiesState/useFavoriteEntitiesState.js +50 -0
- package/catalog/usePublishFolders/usePublishFolders.js +72 -0
- package/catalog.js +22 -3
- package/conversation/announcement-message.js +42 -0
- package/conversation/conversation-transfer/async.js +18 -0
- package/conversation/conversation-transfer/attachment-refs.js +11 -0
- package/conversation/conversation-transfer/build-upload-path.js +27 -0
- package/{date-BeuD8G79.js → conversation/conversation-transfer/date.js} +1 -1
- package/conversation/conversation-transfer/dial-file-resolve.js +18 -0
- package/conversation/conversation-transfer/export-conversation.js +32 -0
- package/conversation/conversation-transfer/import-conversation.js +93 -0
- package/conversation/conversation-transfer/progress.js +39 -0
- package/conversation/conversation-transfer/queue.js +84 -0
- package/conversation/conversation-transfer/types.js +9 -0
- package/conversation/conversation-transfer/zip-export.js +19 -0
- package/conversation/conversation-transfer/zip-import.js +29 -0
- package/conversation/create-chat-stream-api.js +96 -0
- package/conversation/deriveConversationRowActionState/deriveConversationRowActionState.js +14 -0
- package/conversation/display-name-watch.js +5 -0
- package/conversation/footer-message.js +23 -0
- package/conversation/get-model-id-from-conversation-id.js +14 -0
- package/conversation/greeting.js +7 -0
- package/conversation/message-factory.js +19 -0
- package/conversation/message-utils.js +13 -0
- package/conversation/overlay-messages.js +8 -0
- package/conversation/quick-app-conversation-starters.js +29 -0
- package/conversation/starter-option.js +27 -0
- package/conversation/useActiveConversationSync/useActiveConversationSync.js +19 -0
- package/conversation/useAsyncConfirmDialog/useAsyncConfirmDialog.js +39 -0
- package/conversation/useAttachmentUpload/useAttachmentUpload.js +33 -0
- package/conversation/useConversationExport/useConversationExport.js +285 -0
- package/conversation/useConversationHandlers/attachment-to-dto.js +13 -0
- package/conversation/useConversationHandlers/message-factory.js +21 -0
- package/conversation/useConversationHandlers/message-utils.js +8 -0
- package/conversation/useConversationHandlers/starter-option.js +11 -0
- package/conversation/useConversationHandlers/useConversationHandlers.js +263 -0
- package/conversation/useConversationImport/useConversationImport.js +239 -0
- package/conversation/useConversationLookupMaps/useConversationLookupMaps.js +11 -0
- package/conversation/useConversationPanelItems/useConversationPanelItems.js +35 -0
- package/{useConversationScroll-CliIMnjP.js → conversation/useConversationScroll/useConversationScroll.js} +1 -1
- package/conversation/useConversationStream/apply-chunk.js +78 -0
- package/conversation/useConversationStream/buffered-generation.js +18 -0
- package/conversation/useConversationStream/conversation-path.js +8 -0
- package/conversation/useConversationStream/generation-resume.js +126 -0
- package/conversation/useConversationStream/useConversationStream.js +148 -0
- package/conversation/useImportFilePicker/useImportFilePicker.js +20 -0
- package/conversation/useTranscribeAudio/audio-transcription-error.js +12 -0
- package/conversation/useTranscribeAudio/transcription-retry.js +38 -0
- package/conversation/useTranscribeAudio/useTranscribeAudio.js +41 -0
- package/{useConversationSources-DKaKvjXZ.js → conversation-sources/useConversationSources/useConversationSources.js} +1 -1
- package/conversation-sources.js +1 -1
- package/conversation-transfer.js +7 -3
- package/conversation.d.ts +66 -0
- package/conversation.js +31 -2
- package/file-manager.d.ts +3 -4
- package/file-manager.js +28 -3
- package/files/annotation.js +15 -0
- package/files/attachment-canvas.js +218 -0
- package/files/attachment-dto-to-display.js +15 -0
- package/files/attachment-types.js +16 -0
- package/files/create-files-api.js +40 -0
- package/files/create-upload-file-with-progress.js +42 -0
- package/files/dial-file-manager-copy-move.util.js +55 -0
- package/files/dial-file-manager-mapping.util.js +140 -0
- package/files/dial-file-manager-path.util.js +72 -0
- package/files/dial-file-manager.model.js +25 -0
- package/files/dial-file-manager.types.js +10 -0
- package/files/dial-file-to-attachment.js +37 -0
- package/files/dial-file.js +30 -0
- package/files/dial-files-api.js +6 -0
- package/files/download-destination.js +6 -0
- package/files/file-manager-variant.js +11 -0
- package/files/file-name.js +19 -0
- package/files/prepare-download-destination.js +24 -0
- package/files/resolve-dial-file-api-path.js +33 -0
- package/files/source-content.js +37 -0
- package/files/useDialFileListing/useDialFileListing.js +295 -0
- package/files/useDialFileManager/useDialFileManager.js +146 -0
- package/files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js +23 -0
- package/files/useDialFileMetadata/useDialFileMetadata.js +42 -0
- package/files/useDialFileMutations/useDialFileMutations.js +359 -0
- package/files/useDialFileSharing/useDialFileSharing.js +70 -0
- package/files/useDialFileUploadBatch/useDialFileUploadBatch.js +156 -0
- package/index.d.ts +69 -4
- package/index.js +134 -28
- package/mcp-apps/mcp-apps-api-client.js +48 -0
- package/mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js +26 -0
- package/mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js +26 -0
- package/mcp-apps/useMcpAppTools/useMcpAppTools.js +71 -0
- package/mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js +58 -0
- package/mcp-apps.js +6 -2
- package/oauth/authorize-url.js +12 -0
- package/oauth/handshake.js +65 -0
- package/oauth/popup.js +29 -0
- package/oauth/toolset-id.js +10 -0
- package/oauth/types.js +24 -0
- package/oauth/useOAuthCallbackCompletion/useOAuthCallbackCompletion.js +94 -0
- package/oauth/useToolsetLogin/useToolsetLogin.js +73 -0
- package/oauth.js +9 -3
- package/package.json +35 -23
- package/prompt/export-prompt.js +28 -0
- package/prompt/prompt-resource.js +15 -0
- package/prompt/prompt.js +12 -0
- package/prompt/usePromptsState/usePromptsState.js +42 -0
- package/scheduled-task/scheduled-task-mapping.js +6 -0
- package/{scheduled-task-trigger-D9RZCk52.js → scheduled-task/scheduled-task-trigger.js} +39 -40
- package/scheduled-tasks.js +3 -2
- package/scroll-anchoring.js +1 -1
- package/shared/application-schema.js +4 -0
- package/shared/browser-timezone.js +10 -0
- package/{cron-weekday-B4w29eAC.js → shared/cron-weekday.js} +1 -1
- package/shared/custom-apps.js +30 -0
- package/shared/external-services.js +18 -0
- package/{formatting-CZyyxBG3.js → shared/formatting.js} +1 -1
- package/{prompt-resource-Bt1I-8ri.js → shared/locale.js} +2 -13
- package/{string-utils-iBi2Y55C.js → shared/string-utils.js} +1 -1
- package/shared/toolset-login-events.js +13 -0
- package/sharing.js +3 -3
- package/skill/skill-file-batch-validation.js +48 -0
- package/skill/skill-file-preview.js +15 -0
- package/skill/skill-manifest.js +70 -0
- package/skill/skill-types.js +15 -0
- package/skill/skill.js +48 -0
- package/skill/useSkillEditorLoad.js +103 -0
- package/skill/useSkillEditorSubmit.js +135 -0
- package/skill/useSkillFileActions.js +99 -0
- package/skill/useSkillFilePreview.js +29 -0
- package/{useSkillsState-BoLlwmzb.js → skill/useSkillsState/useSkillsState.js} +1 -1
- package/skill-editor.js +8 -3
- package/skills-state.js +1 -1
- package/source-content.d.ts +29 -0
- package/source-content.js +2 -0
- package/usage/useUsageData/useUsageData.js +32 -0
- package/useChatSettingsFormConfig/useChatSettingsFormConfig.js +74 -0
- package/{usePanelMaxWidth-BEZYuqF9.js → usePageFileDrag/usePageFileDrag.js} +1 -11
- package/usePanelMaxWidth/usePanelMaxWidth.js +8 -0
- package/{useShareLink-xkiaxATt.js → useShareLink/useShareLink.js} +1 -1
- package/{useShareRecipientsCount-BgwCLKY0.js → useShareRecipientsCount/useShareRecipientsCount.js} +1 -1
- package/useToolsMenu/useToolsMenu.js +50 -0
- package/useViewportWidth/useViewportWidth.js +12 -0
- package/utils.js +17 -7
- package/viewport-layout.js +4 -2
- package/attachment-types-AAoN9E95.js +0 -7760
- package/browser-Btsa0Lmr.js +0 -607
- package/skill-manifest-CeG6-WSK.js +0 -4056
- package/useAttachmentValidation-CkMTd5lA.js +0 -102
- package/useConversationImport-CDRs7JF1.js +0 -826
- package/useDialFileManagerTabConfig-CjI46lMo.js +0 -2291
- package/useOAuthCallbackCompletion-CvyTKLER.js +0 -93
- package/useOpenMcpAppCanvas-C7-AMseH.js +0 -207
- package/useSkillFileActions-B-VaGD20.js +0 -373
- package/useSkillFilePreview-B5o1n_0F.js +0 -1244
- package/useToolsMenu-zURpMEn1.js +0 -1882
- package/useToolsetLogin-B05m134e.js +0 -195
- package/useUsageData-D7BxloKZ.js +0 -201
|
@@ -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 {
|
|
34
|
+
export { a as usePageFileDrag };
|
|
@@ -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 {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
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 };
|
package/viewport-layout.js
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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 };
|