@epam/ai-dial-chat-hooks 1.4.0-dev.122 → 1.4.0-dev.127

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.
@@ -13,11 +13,12 @@ var e = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/, t = /^(\d{1,2}):(\d{2})$/, n = /* @__
13
13
  dateStyle: "medium",
14
14
  timeStyle: "short",
15
15
  timeZone: "UTC"
16
- }).format(/* @__PURE__ */ new Date(`${e}:00Z`)), a = (e, t) => {
16
+ }).format(/* @__PURE__ */ new Date(`${e}:00Z`)), a = (e, t, n) => {
17
17
  try {
18
18
  return new Intl.DateTimeFormat(t, {
19
19
  dateStyle: "medium",
20
- timeStyle: "short"
20
+ timeStyle: "short",
21
+ timeZone: n
21
22
  }).format(new Date(e));
22
23
  } catch {
23
24
  return e;
@@ -1,17 +1,17 @@
1
1
  import { UnsupportedTriggerReason as e } from "./scheduled-task/scheduled-task-mapping.js";
2
2
  import { ScheduledTaskTriggerDescriptionKind as t, describeScheduledTaskTrigger as n } from "./scheduled-task/scheduled-task-description.js";
3
3
  import { UTC_TIMEZONE_ID as r, findTimezoneOption as i, getTimezoneOptions as a, isKnownTimezone as o, isSameTimezone as s } from "./shared/timezones.js";
4
- import { SCHEDULED_TASK_WALL_DATE_TIME_PATTERN as c, ScheduledTaskWeekdayStyle as l, formatScheduledTaskClockTime as u, formatScheduledTaskInstant as d, formatScheduledTaskRunDate as f, formatScheduledTaskRunTime as p, formatScheduledTaskWeekday as m, formatScheduledTaskWeekdays as h, formatZonedDateTime as g } from "./scheduled-task/scheduled-task-time-format.js";
5
- import { ScheduledTaskDeleteErrorKind as _, classifyScheduledTaskDeleteError as v, formatScheduledTaskRunDuration as y, formatScheduledTaskRunTimestamp as b, formatScheduledTaskScheduleLabel as x, formatScheduledTaskTriggerTime as S, selectScheduledTaskErrorMessage as C, toScheduledTaskItem as w, toScheduledTaskItems as T, toScheduledTaskRunItem as E, toScheduledTaskRunItems as D } from "./scheduled-task/scheduled-task-display.js";
6
- import { mapFormValuesToCreateBody as O, mapFormValuesToUpdateBody as k, mapScheduledTaskDtoToFormValues as A } from "./scheduled-task/scheduled-task-trigger.js";
7
- import { prepareScheduledTaskCreateBody as j, prepareScheduledTaskUpdateBody as M } from "./scheduled-task/scheduled-task-preparation.js";
8
- import { createScheduledTasksApiClient as N } from "./scheduled-task/scheduled-tasks-api-client.js";
9
- import { useScheduledTasks as P } from "./scheduled-task/use-scheduled-tasks.js";
10
- import { mergeRunsById as F, useScheduledTaskRuns as I } from "./scheduled-task/use-scheduled-task-runs.js";
11
- import { ScheduledTaskRunStatusFeedback as L, mergeScheduledTaskRuns as R, useStartScheduledTask as z } from "./scheduled-task/useStartScheduledTask.js";
12
- import { getNextCronOccurrence as B, hasScheduledTaskWindowEnded as V } from "./scheduled-task/scheduled-task-next-occurrence.js";
13
- import { checkScheduledTaskAuthSessionError as H } from "./scheduled-task/check-scheduled-task-auth-session-error.js";
14
- import { useScheduledTaskSkillDisplayNames as U } from "./scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js";
15
- import { ActiveScheduledTaskDetailState as W, ActiveScheduledTaskStatus as G, resolveActiveScheduledTask as K } from "./scheduled-task/active-scheduled-task.js";
16
- import { useActiveScheduledTaskDetails as q } from "./scheduled-task/useActiveScheduledTaskDetails.js";
17
- export { W as ActiveScheduledTaskDetailState, G as ActiveScheduledTaskStatus, c as SCHEDULED_TASK_WALL_DATE_TIME_PATTERN, _ as ScheduledTaskDeleteErrorKind, L as ScheduledTaskRunStatusFeedback, t as ScheduledTaskTriggerDescriptionKind, l as ScheduledTaskWeekdayStyle, r as UTC_TIMEZONE_ID, e as UnsupportedTriggerReason, H as checkScheduledTaskAuthSessionError, v as classifyScheduledTaskDeleteError, N as createScheduledTasksApiClient, n as describeScheduledTaskTrigger, i as findTimezoneOption, u as formatScheduledTaskClockTime, d as formatScheduledTaskInstant, f as formatScheduledTaskRunDate, y as formatScheduledTaskRunDuration, p as formatScheduledTaskRunTime, b as formatScheduledTaskRunTimestamp, x as formatScheduledTaskScheduleLabel, S as formatScheduledTaskTriggerTime, m as formatScheduledTaskWeekday, h as formatScheduledTaskWeekdays, g as formatZonedDateTime, B as getNextCronOccurrence, a as getTimezoneOptions, V as hasScheduledTaskWindowEnded, o as isKnownTimezone, s as isSameTimezone, O as mapFormValuesToCreateBody, k as mapFormValuesToUpdateBody, A as mapScheduledTaskDtoToFormValues, F as mergeRunsById, R as mergeScheduledTaskRuns, j as prepareScheduledTaskCreateBody, M as prepareScheduledTaskUpdateBody, K as resolveActiveScheduledTask, C as selectScheduledTaskErrorMessage, w as toScheduledTaskItem, T as toScheduledTaskItems, E as toScheduledTaskRunItem, D as toScheduledTaskRunItems, q as useActiveScheduledTaskDetails, I as useScheduledTaskRuns, U as useScheduledTaskSkillDisplayNames, P as useScheduledTasks, z as useStartScheduledTask };
4
+ import { getNextCronOccurrence as c, hasScheduledTaskWindowEnded as l } from "./scheduled-task/scheduled-task-next-occurrence.js";
5
+ import { SCHEDULED_TASK_WALL_DATE_TIME_PATTERN as u, ScheduledTaskWeekdayStyle as d, formatScheduledTaskClockTime as f, formatScheduledTaskInstant as p, formatScheduledTaskRunDate as m, formatScheduledTaskRunTime as h, formatScheduledTaskWeekday as g, formatScheduledTaskWeekdays as _, formatZonedDateTime as v } from "./scheduled-task/scheduled-task-time-format.js";
6
+ import { ScheduledTaskActivationBlock as y, ScheduledTaskDeleteErrorKind as b, classifyScheduledTaskDeleteError as x, formatScheduledTaskActiveWindow as S, formatScheduledTaskNextRunTime as C, formatScheduledTaskRunDuration as w, formatScheduledTaskRunTimestamp as T, formatScheduledTaskScheduleLabel as E, formatScheduledTaskTriggerTime as D, getScheduledTaskActivationBlock as O, selectScheduledTaskErrorMessage as k, toScheduledTaskItem as A, toScheduledTaskItems as j, toScheduledTaskRunItem as M, toScheduledTaskRunItems as N } from "./scheduled-task/scheduled-task-display.js";
7
+ import { mapFormValuesToCreateBody as P, mapFormValuesToUpdateBody as F, mapScheduledTaskDtoToFormValues as I } from "./scheduled-task/scheduled-task-trigger.js";
8
+ import { prepareScheduledTaskCreateBody as L, prepareScheduledTaskUpdateBody as R } from "./scheduled-task/scheduled-task-preparation.js";
9
+ import { createScheduledTasksApiClient as z } from "./scheduled-task/scheduled-tasks-api-client.js";
10
+ import { useScheduledTasks as B } from "./scheduled-task/use-scheduled-tasks.js";
11
+ import { mergeRunsById as V, useScheduledTaskRuns as H } from "./scheduled-task/use-scheduled-task-runs.js";
12
+ import { ScheduledTaskRunStatusFeedback as U, mergeScheduledTaskRuns as W, useStartScheduledTask as G } from "./scheduled-task/useStartScheduledTask.js";
13
+ import { checkScheduledTaskAuthSessionError as K } from "./scheduled-task/check-scheduled-task-auth-session-error.js";
14
+ import { useScheduledTaskSkillDisplayNames as q } from "./scheduled-task/useScheduledTaskSkillDisplayNames/useScheduledTaskSkillDisplayNames.js";
15
+ import { ActiveScheduledTaskDetailState as J, ActiveScheduledTaskStatus as Y, resolveActiveScheduledTask as X } from "./scheduled-task/active-scheduled-task.js";
16
+ import { useActiveScheduledTaskDetails as Z } from "./scheduled-task/useActiveScheduledTaskDetails.js";
17
+ export { J as ActiveScheduledTaskDetailState, Y as ActiveScheduledTaskStatus, u as SCHEDULED_TASK_WALL_DATE_TIME_PATTERN, y as ScheduledTaskActivationBlock, b as ScheduledTaskDeleteErrorKind, U as ScheduledTaskRunStatusFeedback, t as ScheduledTaskTriggerDescriptionKind, d as ScheduledTaskWeekdayStyle, r as UTC_TIMEZONE_ID, e as UnsupportedTriggerReason, K as checkScheduledTaskAuthSessionError, x as classifyScheduledTaskDeleteError, z as createScheduledTasksApiClient, n as describeScheduledTaskTrigger, i as findTimezoneOption, S as formatScheduledTaskActiveWindow, f as formatScheduledTaskClockTime, p as formatScheduledTaskInstant, C as formatScheduledTaskNextRunTime, m as formatScheduledTaskRunDate, w as formatScheduledTaskRunDuration, h as formatScheduledTaskRunTime, T as formatScheduledTaskRunTimestamp, E as formatScheduledTaskScheduleLabel, D as formatScheduledTaskTriggerTime, g as formatScheduledTaskWeekday, _ as formatScheduledTaskWeekdays, v as formatZonedDateTime, c as getNextCronOccurrence, O as getScheduledTaskActivationBlock, a as getTimezoneOptions, l as hasScheduledTaskWindowEnded, o as isKnownTimezone, s as isSameTimezone, P as mapFormValuesToCreateBody, F as mapFormValuesToUpdateBody, I as mapScheduledTaskDtoToFormValues, V as mergeRunsById, W as mergeScheduledTaskRuns, L as prepareScheduledTaskCreateBody, R as prepareScheduledTaskUpdateBody, X as resolveActiveScheduledTask, k as selectScheduledTaskErrorMessage, A as toScheduledTaskItem, j as toScheduledTaskItems, M as toScheduledTaskRunItem, N as toScheduledTaskRunItems, Z as useActiveScheduledTaskDetails, H as useScheduledTaskRuns, q as useScheduledTaskSkillDisplayNames, B as useScheduledTasks, G as useStartScheduledTask };
package/utils.js CHANGED
@@ -9,21 +9,21 @@ import { PromptSource as x, parsePromptResourceUrl as S } from "./prompt/prompt-
9
9
  import { getRunnerSchemas as C, isCustomAppSchema as w, isQuickAppSchema as T } from "./shared/application-schema.js";
10
10
  import { buildExternalServiceScopeId as E, getExternalServiceFallbackName as D, parseExternalServiceUrl as O } from "./shared/external-services.js";
11
11
  import { SaveDestinationRoot as k } from "./catalog/save-destination-root.js";
12
- import { buildPromptExportEnvelope as A, buildPromptExportFileName as j, serializePromptExport as M } from "./prompt/export-prompt.js";
13
- import { PROMPT_CONTENT_MAX_LENGTH as N, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as P, PROMPT_DESCRIPTION_MAX_LENGTH as F, PROMPT_FIELD_VALIDATORS as I, PROMPT_NAME_MAX_LENGTH as L, PromptFieldError as R, buildPromptPath as z, getRemainingCharacters as B, validatePromptContent as V, validatePromptDescription as H, validatePromptName as U } from "./prompt/prompt.js";
14
- import { usePromptsState as W } from "./prompt/usePromptsState/usePromptsState.js";
15
- import { getBrowserTimezone as G } from "./shared/browser-timezone.js";
16
- import { apSchedulerDayToJsDay as K, jsDayToApSchedulerDay as q } from "./shared/cron-weekday.js";
17
- import { isValidAbsoluteUrl as J, isValidFeaturesData as Y, parseFeaturesData as X } from "./shared/custom-apps.js";
18
- import { EXTERNAL_SERVICE_SIGNIN_METHOD as Z, PendingSigninEventKind as Q, TOOLSET_SIGNIN_METHOD as $ } from "./shared/client-channel.js";
19
- import { ColorScheme as ee, applyThemeColors as te, getOsPreferredTheme as ne } from "./shared/theme-colors.js";
20
- import { useUsageData as re } from "./usage/useUsageData/useUsageData.js";
21
- import { triggerBrowserDownload as ie } from "./files/browser-download.js";
22
- import { usePersistedState as ae } from "./shared/usePersistedState/usePersistedState.js";
23
- import { useAppVersionCheck as oe } from "./shared/useAppVersionCheck/useAppVersionCheck.js";
24
- import { getCleanedLocationTarget as se } from "./shared/url-cleanup.js";
25
- import { OrgUnitsStatus as ce } from "./org-units/types.js";
26
- import { useOrgUnits as le } from "./org-units/useOrgUnits/useOrgUnits.js";
27
- import { OrgUnitFolderGuardPurpose as ue, buildFolderGuards as de, getOrgUnitNamespace as fe, toPublishDisabledReason as pe } from "./org-units/org-unit-guards.js";
28
- import { useFolderGuards as me } from "./org-units/useFolderGuards/useFolderGuards.js";
29
- export { ee as ColorScheme, Z as EXTERNAL_SERVICE_SIGNIN_METHOD, ue as OrgUnitFolderGuardPurpose, ce as OrgUnitsStatus, N as PROMPT_CONTENT_MAX_LENGTH, P as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, F as PROMPT_DESCRIPTION_MAX_LENGTH, I as PROMPT_FIELD_VALIDATORS, L as PROMPT_NAME_MAX_LENGTH, Q as PendingSigninEventKind, R as PromptFieldError, x as PromptSource, k as SaveDestinationRoot, $ as TOOLSET_SIGNIN_METHOD, K as apSchedulerDayToJsDay, p as appendLocaleCode, te as applyThemeColors, m as buildAdditionalLocaleOptions, E as buildExternalServiceScopeId, de as buildFolderGuards, A as buildPromptExportEnvelope, j as buildPromptExportFileName, z as buildPromptPath, h as composeLocalePayload, o as createCsrfMiddleware, s as createUnauthorizedMiddleware, g as decomposeLocalizedFields, y as formatCalendarDate, e as getAcceptInvitationErrorItemName, t as getApiErrorDetails, n as getApiErrorMessage, r as getApiErrorStatus, G as getBrowserTimezone, se as getCleanedLocationTarget, D as getExternalServiceFallbackName, fe as getOrgUnitNamespace, ne as getOsPreferredTheme, B as getRemainingCharacters, C as getRunnerSchemas, c as includesIgnoreCase, i as isConversationNotFoundError, w as isCustomAppSchema, T as isQuickAppSchema, J as isValidAbsoluteUrl, Y as isValidFeaturesData, q as jsDayToApSchedulerDay, b as padTwoDigits, O as parseExternalServiceUrl, X as parseFeaturesData, S as parsePromptResourceUrl, _ as resolveLocalizedText, l as safeDecodeURI, u as safeDecodeURIComponent, M as serializePromptExport, d as stripSurroundingSlashes, f as stripTrailingSlashes, v as toBaseLocale, pe as toPublishDisabledReason, ie as triggerBrowserDownload, oe as useAppVersionCheck, me as useFolderGuards, le as useOrgUnits, ae as usePersistedState, W as usePromptsState, re as useUsageData, V as validatePromptContent, H as validatePromptDescription, U as validatePromptName, a as withApiErrorMapping };
12
+ import { OrgUnitsStatus as A } from "./org-units/types.js";
13
+ import { OrgUnitFolderGuardPurpose as j, buildFolderGuards as M, getCatalogPublishDirectAvailability as N, getDependencyOrgUnitNamespaces as P, getDependencyTypeOfNamespace as F, getMissingDirectWriteNamespaces as I, getOrgUnitNamespace as L, getPublishDirectAvailability as R, toPublishDisabledReason as z } from "./org-units/org-unit-guards.js";
14
+ import { buildPromptExportEnvelope as B, buildPromptExportFileName as V, serializePromptExport as H } from "./prompt/export-prompt.js";
15
+ import { PROMPT_CONTENT_MAX_LENGTH as U, PROMPT_COUNTER_ANNOUNCE_THRESHOLD as W, PROMPT_DESCRIPTION_MAX_LENGTH as G, PROMPT_FIELD_VALIDATORS as K, PROMPT_NAME_MAX_LENGTH as q, PromptFieldError as J, buildPromptPath as Y, getRemainingCharacters as X, validatePromptContent as Z, validatePromptDescription as Q, validatePromptName as $ } from "./prompt/prompt.js";
16
+ import { usePromptsState as ee } from "./prompt/usePromptsState/usePromptsState.js";
17
+ import { getBrowserTimezone as te } from "./shared/browser-timezone.js";
18
+ import { apSchedulerDayToJsDay as ne, jsDayToApSchedulerDay as re } from "./shared/cron-weekday.js";
19
+ import { isValidAbsoluteUrl as ie, isValidFeaturesData as ae, parseFeaturesData as oe } from "./shared/custom-apps.js";
20
+ import { EXTERNAL_SERVICE_SIGNIN_METHOD as se, PendingSigninEventKind as ce, TOOLSET_SIGNIN_METHOD as le } from "./shared/client-channel.js";
21
+ import { ColorScheme as ue, applyThemeColors as de, getOsPreferredTheme as fe } from "./shared/theme-colors.js";
22
+ import { useUsageData as pe } from "./usage/useUsageData/useUsageData.js";
23
+ import { triggerBrowserDownload as me } from "./files/browser-download.js";
24
+ import { usePersistedState as he } from "./shared/usePersistedState/usePersistedState.js";
25
+ import { useAppVersionCheck as ge } from "./shared/useAppVersionCheck/useAppVersionCheck.js";
26
+ import { getCleanedLocationTarget as _e } from "./shared/url-cleanup.js";
27
+ import { useOrgUnits as ve } from "./org-units/useOrgUnits/useOrgUnits.js";
28
+ import { useFolderGuards as ye } from "./org-units/useFolderGuards/useFolderGuards.js";
29
+ export { ue as ColorScheme, se as EXTERNAL_SERVICE_SIGNIN_METHOD, j as OrgUnitFolderGuardPurpose, A as OrgUnitsStatus, U as PROMPT_CONTENT_MAX_LENGTH, W as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, G as PROMPT_DESCRIPTION_MAX_LENGTH, K as PROMPT_FIELD_VALIDATORS, q as PROMPT_NAME_MAX_LENGTH, ce as PendingSigninEventKind, J as PromptFieldError, x as PromptSource, k as SaveDestinationRoot, le as TOOLSET_SIGNIN_METHOD, ne as apSchedulerDayToJsDay, p as appendLocaleCode, de as applyThemeColors, m as buildAdditionalLocaleOptions, E as buildExternalServiceScopeId, M as buildFolderGuards, B as buildPromptExportEnvelope, V as buildPromptExportFileName, Y as buildPromptPath, h as composeLocalePayload, o as createCsrfMiddleware, s as createUnauthorizedMiddleware, g as decomposeLocalizedFields, y as formatCalendarDate, e as getAcceptInvitationErrorItemName, t as getApiErrorDetails, n as getApiErrorMessage, r as getApiErrorStatus, te as getBrowserTimezone, N as getCatalogPublishDirectAvailability, _e as getCleanedLocationTarget, P as getDependencyOrgUnitNamespaces, F as getDependencyTypeOfNamespace, D as getExternalServiceFallbackName, I as getMissingDirectWriteNamespaces, L as getOrgUnitNamespace, fe as getOsPreferredTheme, R as getPublishDirectAvailability, X as getRemainingCharacters, C as getRunnerSchemas, c as includesIgnoreCase, i as isConversationNotFoundError, w as isCustomAppSchema, T as isQuickAppSchema, ie as isValidAbsoluteUrl, ae as isValidFeaturesData, re as jsDayToApSchedulerDay, b as padTwoDigits, O as parseExternalServiceUrl, oe as parseFeaturesData, S as parsePromptResourceUrl, _ as resolveLocalizedText, l as safeDecodeURI, u as safeDecodeURIComponent, H as serializePromptExport, d as stripSurroundingSlashes, f as stripTrailingSlashes, v as toBaseLocale, z as toPublishDisabledReason, me as triggerBrowserDownload, ge as useAppVersionCheck, ye as useFolderGuards, ve as useOrgUnits, he as usePersistedState, ee as usePromptsState, pe as useUsageData, Z as validatePromptContent, Q as validatePromptDescription, $ as validatePromptName, a as withApiErrorMapping };