@epam/ai-dial-scheduled-tasks 1.3.0-dev.310 → 1.3.0-dev.311

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.
@@ -0,0 +1,72 @@
1
+ import { ReactNode } from 'react';
2
+ /** User-visible strings of `ScheduledTaskConversationBanner`. */
3
+ export interface ScheduledTaskConversationBannerLabels {
4
+ /** Announced while the task loads. Defaults to `'Loading task details…'`. */
5
+ loadingLabel?: string;
6
+ /** Shown and announced when the task cannot be shown. Defaults to `'Task details are unavailable'`. */
7
+ unavailableLabel?: string;
8
+ /** Visible label and accessible name of the retry button. Defaults to `'Retry'`. */
9
+ retryLabel?: string;
10
+ /** Visible label of the task details link. Defaults to `'Task details'`. */
11
+ taskDetailsLabel?: string;
12
+ /** Accessible name of the task details link for `taskName`. Defaults to `` (taskName) => `View task details for ${taskName}` ``. */
13
+ taskDetailsAriaLabel?: (taskName: string) => string;
14
+ /** Shown in place of the details link when the task was deleted. Defaults to `'Task was deleted'`. */
15
+ taskDeletedLabel?: string;
16
+ }
17
+ /** Color overrides of `ScheduledTaskConversationBanner`, applied as CSS custom properties. */
18
+ export interface ScheduledTaskConversationBannerColors {
19
+ /** Card background. Defaults to `--bg-layer-sunken`. */
20
+ surface?: string;
21
+ /** Card border. Defaults to `--stroke-secondary`. */
22
+ border?: string;
23
+ /** Task name, run time and unavailable message. Defaults to `--text-primary`. */
24
+ text?: string;
25
+ /** Task details link text and chevron. Defaults to `--text-accent`. */
26
+ detailsLink?: string;
27
+ /** Task details link background on hover and keyboard focus. Defaults to `--bg-control-accent-alpha-hover`. */
28
+ detailsLinkHoverSurface?: string;
29
+ /** Task details link focus outline. Defaults to `--stroke-focus`. */
30
+ focusOutline?: string;
31
+ /** Task-deleted note. Defaults to `--text-secondary`. */
32
+ deletedText?: string;
33
+ }
34
+ /** Props the host's details link element receives from `ScheduledTaskConversationBanner`. */
35
+ export interface ScheduledTaskConversationBannerDetailsLinkProps {
36
+ /** Classes to put on the link element. */
37
+ className: string;
38
+ /** Accessible name of the link. */
39
+ 'aria-label': string;
40
+ /** Link content: the label and the directional chevron. */
41
+ children: ReactNode;
42
+ }
43
+ /** Props for `ScheduledTaskConversationBanner`. */
44
+ export interface ScheduledTaskConversationBannerProps {
45
+ /** Whether the task is loading; shows a skeleton and announces `labels.loadingLabel`. Defaults to `false`. */
46
+ isLoading?: boolean;
47
+ /** Whether the task cannot be shown; shows `labels.unavailableLabel`. Defaults to `false`. */
48
+ isUnavailable?: boolean;
49
+ /** Whether the task was deleted; replaces the details link with `labels.taskDeletedLabel`. Defaults to `false`. */
50
+ isTaskDeleted?: boolean;
51
+ /** Task name shown on the card. */
52
+ displayName: string;
53
+ /** Pre-formatted run time shown after the name, when known. */
54
+ timestampLabel?: string;
55
+ /** Renders the task details link; the host owns the route and the router element. */
56
+ renderDetailsLink: (props: ScheduledTaskConversationBannerDetailsLinkProps) => ReactNode;
57
+ /** Retries loading the task; when set, the unavailable state shows a retry button. */
58
+ onRetry?: () => void;
59
+ /** User-visible strings, each with an English default. */
60
+ labels?: ScheduledTaskConversationBannerLabels;
61
+ /** Color overrides, applied as CSS custom properties. */
62
+ colors?: ScheduledTaskConversationBannerColors;
63
+ /** CSS class of the task name. Defaults to `'dial-small-semi-text'`. */
64
+ nameClassName?: string;
65
+ /** CSS class of the run time and the unavailable message. Defaults to `'dial-small-text'`. */
66
+ textClassName?: string;
67
+ /** CSS class of the details link and the task-deleted note. Defaults to `'dial-tiny-semi-text'`. */
68
+ actionClassName?: string;
69
+ /** Additional classes merged over the card root. */
70
+ className?: string;
71
+ }
72
+ //# sourceMappingURL=scheduled-task-conversation-banner-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-task-conversation-banner-props.d.ts","sourceRoot":"","sources":["../../src/models/scheduled-task-conversation-banner-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,iEAAi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,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,iBAAiB,EAAE,CACjB,KAAK,EAAE,+CAA+C,KACnD,SAAS,CAAC;IACf,sFAAsF;IACtF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0DAA0D;IAC1D,MAAM,CAAC,EAAE,qCAAqC,CAAC;IAC/C,yDAAyD;IACzD,MAAM,CAAC,EAAE,qCAAqC,CAAC;IAC/C,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oGAAoG;IACpG,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-scheduled-tasks",
3
3
  "description": "Presentational Scheduled Tasks page shell — header, toolbar, and empty state",
4
- "version": "1.3.0-dev.310",
4
+ "version": "1.3.0-dev.311",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -25,10 +25,10 @@
25
25
  "@tabler/icons-react": "^3.50.0",
26
26
  "@uiw/react-markdown-preview": "^5.2.1",
27
27
  "@uiw/react-md-editor": "^4.2.2",
28
- "@epam/ai-dial-builder-form": "1.3.0-dev.310"
28
+ "@epam/ai-dial-builder-form": "1.3.0-dev.311"
29
29
  },
30
30
  "peerDependencies": {
31
- "@epam/ai-dial-chat-shared": "1.3.0-dev.310",
31
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.311",
32
32
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.71",
33
33
  "react": "^19.2.8"
34
34
  },