@epam/ai-dial-skills 1.3.0-dev.252 → 1.3.0-dev.256
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/components/ChatSkill/ChatSkill.d.ts.map +1 -1
- package/components/SkillInfoTooltipContent/SkillInfoTooltipContent.d.ts.map +1 -1
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts +1 -1
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +343 -321
- package/models/chat-skill-props.d.ts +19 -13
- package/models/chat-skill-props.d.ts.map +1 -1
- package/models/skill-info-tooltip-content-props.d.ts +9 -0
- package/models/skill-info-tooltip-content-props.d.ts.map +1 -1
- package/models/skill-selector-overlay.d.ts +3 -8
- package/models/skill-selector-overlay.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
import { SkillUnresolvedReason } from '../types/skill-unresolved-reason';
|
|
2
|
+
import { SkillInfoTooltipContentColors } from './skill-info-tooltip-content-props';
|
|
3
|
+
/** Color overrides for {@link ChatSkillProps}'s component. */
|
|
4
|
+
export interface ChatSkillColors {
|
|
5
|
+
/** Text color of the `/{name}` label. Defaults to `--text-accent`. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Chip background on hover, keyboard focus and press. Defaults to `--bg-info`. */
|
|
8
|
+
hoverBackground?: string;
|
|
9
|
+
/** Text color of the `/{name}` label while `isUnsupported` is set. Defaults to `--text-error`. */
|
|
10
|
+
unsupportedLabel?: string;
|
|
11
|
+
/** Chip background while `isUnsupported` is set. Defaults to `--bg-error`. */
|
|
12
|
+
unsupportedBackground?: string;
|
|
13
|
+
/** Colors of the tooltip's unresolved-skill content. */
|
|
14
|
+
tooltip?: SkillInfoTooltipContentColors;
|
|
15
|
+
}
|
|
2
16
|
/** Localizable string labels for {@link ChatSkillProps}'s component. */
|
|
3
17
|
export interface ChatSkillLabels {
|
|
4
18
|
/** Label for the tooltip's "View details" action. Defaults to `'View details'`. */
|
|
@@ -37,8 +51,8 @@ export interface ChatSkillProps {
|
|
|
37
51
|
description?: string;
|
|
38
52
|
/**
|
|
39
53
|
* Whether the current model/application does not support skills. While
|
|
40
|
-
* `true` the
|
|
41
|
-
*
|
|
54
|
+
* `true` the chip renders in the `colors.unsupportedLabel` /
|
|
55
|
+
* `colors.unsupportedBackground` error colors, and the tooltip shows the
|
|
42
56
|
* unsupported-model message alone — no description paragraph and no
|
|
43
57
|
* "View details" button.
|
|
44
58
|
*/
|
|
@@ -52,18 +66,10 @@ export interface ChatSkillProps {
|
|
|
52
66
|
* unaffected — it keeps rendering with `labelClassName` alone.
|
|
53
67
|
*/
|
|
54
68
|
unresolvedReason?: SkillUnresolvedReason;
|
|
55
|
-
/**
|
|
69
|
+
/** Typography class applied to the `/name` label. Defaults to `'dial-body-paragraph-text'`. */
|
|
56
70
|
labelClassName?: string;
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
* `labelClassName` while `isUnsupported` is set. Defaults to `'text-error'`.
|
|
60
|
-
*/
|
|
61
|
-
unsupportedLabelClassName?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Class applied to the chip in addition to its layout classes while
|
|
64
|
-
* `isUnsupported` is set. Defaults to `'bg-error'`.
|
|
65
|
-
*/
|
|
66
|
-
unsupportedClassName?: string;
|
|
71
|
+
/** Color overrides, applied as CSS custom properties. */
|
|
72
|
+
colors?: ChatSkillColors;
|
|
67
73
|
/**
|
|
68
74
|
* How the description card opens. Defaults to `'hover'` so existing hosts
|
|
69
75
|
* retain their hover-and-focus behaviour.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-skill-props.d.ts","sourceRoot":"","sources":["../../src/models/chat-skill-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;
|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AC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;IACzC,wFAAwF;IACxF,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,oCAAoC;IACpC,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { SkillUnresolvedReason } from '../types/skill-unresolved-reason';
|
|
2
|
+
/** Color overrides for `SkillInfoTooltipContent`. */
|
|
3
|
+
export interface SkillInfoTooltipContentColors {
|
|
4
|
+
/** Color of the trash-can / lock icon shown for an unresolved skill. Defaults to `--text-secondary`. */
|
|
5
|
+
unresolvedIcon?: string;
|
|
6
|
+
/** Text color of the unresolved-skill message. Defaults to `--text-primary`. */
|
|
7
|
+
unresolvedMessage?: string;
|
|
8
|
+
}
|
|
2
9
|
/** Props for the shared skill info tooltip content component. */
|
|
3
10
|
export interface SkillInfoTooltipContentProps {
|
|
4
11
|
/** The skill's listing-sourced description paragraph. Omitted entirely when empty. */
|
|
@@ -32,5 +39,7 @@ export interface SkillInfoTooltipContentProps {
|
|
|
32
39
|
viewDetailsTabIndex?: number;
|
|
33
40
|
/** CSS class applied to the description and message paragraphs. Defaults to `'dial-tiny-text'`. */
|
|
34
41
|
textClassName?: string;
|
|
42
|
+
/** Color overrides, applied as CSS custom properties. */
|
|
43
|
+
colors?: SkillInfoTooltipContentColors;
|
|
35
44
|
}
|
|
36
45
|
//# sourceMappingURL=skill-info-tooltip-content-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-info-tooltip-content-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-info-tooltip-content-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,iEAAiE;AACjE,MAAM,WAAW,4BAA4B;IAC3C,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kGAAkG;IAClG,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mGAAmG;IACnG,aAAa,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-info-tooltip-content-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-info-tooltip-content-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qDAAqD;AACrD,MAAM,WAAW,6BAA6B;IAC5C,wGAAwG;IACxG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,iEAAiE;AACjE,MAAM,WAAW,4BAA4B;IAC3C,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4GAA4G;IAC5G,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kGAAkG;IAClG,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mGAAmG;IACnG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestSkill, TextSegment } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { CommandMenuConfig, HighlightedTextRange, MenuOverlayConfig } from '@epam/ai-dial-conversation-input';
|
|
3
3
|
import { ComponentType, ReactNode } from 'react';
|
|
4
|
-
import { ChatSkillDetailsTrigger } from './chat-skill-props';
|
|
4
|
+
import { ChatSkillColors, ChatSkillDetailsTrigger } from './chat-skill-props';
|
|
5
5
|
import { SkillListingEntry } from './favorite-skill-item';
|
|
6
6
|
import { FavoriteSkillsPanelLabels } from './favorite-skills-panel-props';
|
|
7
7
|
/**
|
|
@@ -93,13 +93,8 @@ export interface UseSkillSelectorOverlayOptions {
|
|
|
93
93
|
* to that line. Unset falls back to the chip's own default label class.
|
|
94
94
|
*/
|
|
95
95
|
historyChipLabelClassName?: string;
|
|
96
|
-
/**
|
|
97
|
-
|
|
98
|
-
* Pass color classes only: the label inherits the input's own font, which
|
|
99
|
-
* keeps it exactly as wide as the invisible text under it. Defaults to
|
|
100
|
-
* `'text-accent'`.
|
|
101
|
-
*/
|
|
102
|
-
activeMentionLabelClassName?: string;
|
|
96
|
+
/** Color overrides forwarded to every `ChatSkill` chip — active mentions and history chips alike. */
|
|
97
|
+
chipColors?: ChatSkillColors;
|
|
103
98
|
/**
|
|
104
99
|
* Trigger used by mentions rendered in an active composer. Unset retains
|
|
105
100
|
* `ChatSkill`'s hover-and-focus default; history chips are unaffected.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"skill-selector-overlay.d.ts","sourceRoot":"","sources":["../../src/models/skill-selector-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E;;;;;GAKG;AACH,MAAM,WAAW,+BAA+B;IAC9C,iFAAiF;IACjF,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,qEAAqE;AACrE,MAAM,WAAW,0BAA0B;IACzC,2EAA2E;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+EAA+E;IAC/E,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uEAAuE;IAC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,CAAC;IAC7B;;OAEG;IACH,iBAAiB,EAAE,SAAS,CAAC;IAC7B;;;;;;;;OAQG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;;OAMG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC;;;;;;OAMG;IACH,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C;;;;;;;OAOG;IACH,kBAAkB,EAAE,CAClB,aAAa,EAAE,MAAM,KAClB,oBAAoB,GAAG,SAAS,CAAC;IACtC;;;;;;OAMG;IACH,qBAAqB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAC3C;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B;;;;;;OAMG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,IAAI,CAAC;IACV;;;;;;;OAOG;IACH,4BAA4B,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD;;;;;;;;;;;;;;OAcG;IACH,0BAA0B,EAAE,CAC1B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAC/B,WAAW,EAAE,GAAG,IAAI,CAAC;IAC1B;;;;;;;OAOG;IACH,mBAAmB,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,KAAK,SAAS,CAAC;CACxE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-skills",
|
|
3
3
|
"description": "Host-agnostic UI for picking a favorite skill to attach to a chat input",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.256",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
|
-
"@epam/ai-dial-catalog": "1.3.0-dev.
|
|
22
|
-
"@epam/ai-dial-conversation-input": "1.3.0-dev.
|
|
21
|
+
"@epam/ai-dial-catalog": "1.3.0-dev.256",
|
|
22
|
+
"@epam/ai-dial-conversation-input": "1.3.0-dev.256"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.256",
|
|
26
26
|
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.19",
|
|
27
27
|
"@epam/ai-dial-ui-kit": "^0.16.0-dev.56",
|
|
28
28
|
"react": "^19.2.8"
|