@epam/ai-dial-skills 1.2.0-dev.15 → 1.2.0-dev.152
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 +3 -2
- package/components/ChatSkill/ChatSkill.d.ts.map +1 -1
- package/components/FavoriteSkillsPanel/FavoriteSkillsPanel.d.ts.map +1 -1
- package/components/SkillArchiveUploadDialog/SkillArchiveUploadDialog.d.ts +9 -0
- package/components/SkillArchiveUploadDialog/SkillArchiveUploadDialog.d.ts.map +1 -0
- package/components/SkillInfoTooltipContent/SkillInfoTooltipContent.d.ts.map +1 -1
- package/components/SkillSelectorField/SkillSelectorField.d.ts +5 -0
- package/components/SkillSelectorField/SkillSelectorField.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +15 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/hooks/useSkillMentions/useSkillMentions.d.ts +50 -0
- package/hooks/useSkillMentions/useSkillMentions.d.ts.map +1 -0
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts +5 -4
- package/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +14 -1
- package/index.d.ts.map +1 -1
- package/index.js +523 -206
- package/models/chat-skill-props.d.ts +7 -0
- package/models/chat-skill-props.d.ts.map +1 -1
- package/models/favorite-skills-panel-props.d.ts +32 -5
- package/models/favorite-skills-panel-props.d.ts.map +1 -1
- package/models/skill-archive-upload-dialog-props.d.ts +33 -0
- package/models/skill-archive-upload-dialog-props.d.ts.map +1 -0
- package/models/skill-info-tooltip-content-props.d.ts +6 -0
- package/models/skill-info-tooltip-content-props.d.ts.map +1 -1
- package/models/skill-mention-anchor.d.ts +12 -0
- package/models/skill-mention-anchor.d.ts.map +1 -0
- package/models/skill-selector-field-props.d.ts +80 -0
- package/models/skill-selector-field-props.d.ts.map +1 -0
- package/models/skill-selector-overlay.d.ts +107 -55
- package/models/skill-selector-overlay.d.ts.map +1 -1
- package/package.json +5 -5
- package/test-setup.d.ts +1 -0
- package/utils/skill-mention-matching.d.ts +25 -0
- package/utils/skill-mention-matching.d.ts.map +1 -0
- package/utils/skill-mention-tracking.d.ts +39 -0
- package/utils/skill-mention-tracking.d.ts.map +1 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ChatSkillProps } from '../../models/chat-skill-props';
|
|
3
3
|
/**
|
|
4
|
-
* A used skill rendered as a `/name`
|
|
5
|
-
* and a "View details" action,
|
|
4
|
+
* A used skill rendered as a `/name` chip — plain, selectable text styled to
|
|
5
|
+
* read as a button, with a description tooltip and a "View details" action,
|
|
6
|
+
* or the error state while unsupported.
|
|
6
7
|
*/
|
|
7
8
|
export declare const ChatSkill: FC<ChatSkillProps>;
|
|
8
9
|
//# sourceMappingURL=ChatSkill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChatSkill.d.ts","sourceRoot":"","sources":["../../../src/components/ChatSkill/ChatSkill.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAqHxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoriteSkillsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoriteSkillsPanel/FavoriteSkillsPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,
|
|
1
|
+
{"version":3,"file":"FavoriteSkillsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/FavoriteSkillsPanel/FavoriteSkillsPanel.tsx"],"names":[],"mappings":"AAaA,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAYzF,sHAAsH;AACtH,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAqT5D,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SkillArchiveUploadDialogProps } from '../../models/skill-archive-upload-dialog-props';
|
|
3
|
+
/**
|
|
4
|
+
* Dialog presenting the drop area and supported formats for a skill-archive upload, so the host
|
|
5
|
+
* can start the flow before the native file picker appears. Presentation only — the host wires
|
|
6
|
+
* selection/rejection/close to its own import controller.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SkillArchiveUploadDialog: FC<SkillArchiveUploadDialogProps>;
|
|
9
|
+
//# sourceMappingURL=SkillArchiveUploadDialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillArchiveUploadDialog.d.ts","sourceRoot":"","sources":["../../../src/components/SkillArchiveUploadDialog/SkillArchiveUploadDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAIpG;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CA4CtE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillInfoTooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/SkillInfoTooltipContent/SkillInfoTooltipContent.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAElG,kJAAkJ;AAClJ,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"SkillInfoTooltipContent.d.ts","sourceRoot":"","sources":["../../../src/components/SkillInfoTooltipContent/SkillInfoTooltipContent.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAElG,kJAAkJ;AAClJ,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAgDpE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { SkillSelectorFieldProps } from '../../models/skill-selector-field-props';
|
|
3
|
+
/** Controlled skill input with favorites, catalog browsing, and explicit removal. */
|
|
4
|
+
export declare const SkillSelectorField: FC<SkillSelectorFieldProps>;
|
|
5
|
+
//# sourceMappingURL=SkillSelectorField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SkillSelectorField.d.ts","sourceRoot":"","sources":["../../../src/components/SkillSelectorField/SkillSelectorField.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAOvF,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA0O1D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const SKILLS_CLASS: {
|
|
2
|
+
/** Controlled skill selector root carrying theme overrides. */
|
|
3
|
+
readonly selectorField: "dial-skills-selector-field";
|
|
4
|
+
/** The favorite-skills panel root, which carries the themed CSS variables. */
|
|
5
|
+
readonly favoritesPanel: "dial-skills-favorites-panel";
|
|
6
|
+
/**
|
|
7
|
+
* The `/name` chip a `ChatSkill` renders inside the composer, additive to
|
|
8
|
+
* the `dial-kit-base-button` that `@epam/ai-dial-ui-kit` draws. The chip's
|
|
9
|
+
* height is its label line, so a host changing its padding should keep the
|
|
10
|
+
* vertical padding at zero or the chip stops aligning with the input's first
|
|
11
|
+
* text line.
|
|
12
|
+
*/
|
|
13
|
+
readonly chip: "dial-skills-chip";
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=public-class-names.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;IACvB,+DAA+D;;IAE/D,8EAA8E;;IAE9E;;;;;;OAMG;;CAEK,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RequestSkill } from '@epam/ai-dial-chat-shared';
|
|
2
|
+
import { SkillMentionAnchor } from '../../models/skill-mention-anchor';
|
|
3
|
+
/** Return value of {@link useSkillMentions}. */
|
|
4
|
+
export interface UseSkillMentionsResult {
|
|
5
|
+
/** The current plain-text draft, mentions included as literal `/{name}` runs. */
|
|
6
|
+
draft: string;
|
|
7
|
+
/** Ordered, left-to-right tracked mention locations within `draft`. */
|
|
8
|
+
anchors: SkillMentionAnchor[];
|
|
9
|
+
/** Reconciles `anchors` against an external edit to the draft (typing, deleting, pasting, undo/redo). */
|
|
10
|
+
onDraftChange: (nextValue: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Splices `/${name}` into the draft at `atCaretIndex` and tracks it as a
|
|
13
|
+
* new mention, appending a trailing space only when `atCaretIndex` isn't
|
|
14
|
+
* already followed by whitespace (typed at the end of the message, or
|
|
15
|
+
* before a non-space character) — text already followed by a space (a
|
|
16
|
+
* mention inserted between two existing words) gets none, so a second
|
|
17
|
+
* space is never introduced. Returns whether a space was appended, so the
|
|
18
|
+
* caller can place the caret right after whichever run was actually
|
|
19
|
+
* inserted.
|
|
20
|
+
*/
|
|
21
|
+
insertMention: (url: string, name: string, atCaretIndex: number) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Looks up the mention whose run ends exactly at `caretPosition`, without
|
|
24
|
+
* mutating `draft`/`anchors`. The caller (`Input.tsx`) uses the returned
|
|
25
|
+
* anchor's range to delete the whole run through the textarea's native
|
|
26
|
+
* editing pipeline (e.g. `setRangeText`), preserving native undo, then
|
|
27
|
+
* reports the result back through `onDraftChange` — whose own
|
|
28
|
+
* overlap-drop reconciliation removes the anchor. Returns `undefined` when
|
|
29
|
+
* the caret isn't at a mention boundary, so the caller falls back to the
|
|
30
|
+
* browser's default single-character deletion.
|
|
31
|
+
*/
|
|
32
|
+
onBackspaceAtCaret: (caretPosition: number) => SkillMentionAnchor | undefined;
|
|
33
|
+
/** `anchors` as an ordered `RequestSkill[]`, or `undefined` when there are no mentions — the `custom_content.skills` payload. */
|
|
34
|
+
orderedSkills: RequestSkill[] | undefined;
|
|
35
|
+
/** Clears both the draft and its tracked mentions. */
|
|
36
|
+
reset: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* Initializes the draft and its tracked mentions from a persisted message —
|
|
39
|
+
* runs {@link matchSkillMentions} once against `text`/`skills` and seeds
|
|
40
|
+
* `anchors` from the result. A skill the match could not locate in `text` is
|
|
41
|
+
* not seeded as an anchor.
|
|
42
|
+
*/
|
|
43
|
+
seedFromMessage: (text: string, skills: RequestSkill[] | undefined, resolveName: (url: string) => string) => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Tracks an ordered set of skill mentions live within a plain-text draft, as
|
|
47
|
+
* character-range anchors, replacing a single `selectedSkillId` selection.
|
|
48
|
+
*/
|
|
49
|
+
export declare const useSkillMentions: () => UseSkillMentionsResult;
|
|
50
|
+
//# sourceMappingURL=useSkillMentions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSkillMentions.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillMentions/useSkillMentions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAU5E,gDAAgD;AAChD,MAAM,WAAW,sBAAsB;IACrC,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,yGAAyG;IACzG,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C;;;;;;;;;OASG;IACH,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5E;;;;;;;;;OASG;IACH,kBAAkB,EAAE,CAAC,aAAa,EAAE,MAAM,KAAK,kBAAkB,GAAG,SAAS,CAAC;IAC9E,iIAAiI;IACjI,aAAa,EAAE,YAAY,EAAE,GAAG,SAAS,CAAC;IAC1C,sDAAsD;IACtD,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB;;;;;OAKG;IACH,eAAe,EAAE,CACf,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,YAAY,EAAE,GAAG,SAAS,EAClC,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACjC,IAAI,CAAC;CACX;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,sBAqGnC,CAAC"}
|
|
@@ -2,9 +2,10 @@ import { UseSkillSelectorOverlayOptions, UseSkillSelectorOverlayResult } from '.
|
|
|
2
2
|
/**
|
|
3
3
|
* Owns the Skills Add-menu flow: the favorites overlay, the "Use skill"
|
|
4
4
|
* browse modal's open state, the skill details side panel's open state, and
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* deployment-support signal, and
|
|
5
|
+
* every currently-mentioned skill tracked as a character-range anchor within
|
|
6
|
+
* the composer's draft text (via `useSkillMentions`). The host injects the
|
|
7
|
+
* listing data, favorites state, labels, the deployment-support signal, and
|
|
8
|
+
* the modal/panel components.
|
|
8
9
|
*/
|
|
9
|
-
export declare const useSkillSelectorOverlay: ({ isEnabled, isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, onToggleFavorite, labels, historyChipLabelClassName, renderCatalogContent, detailsPanelComponent: DetailsPanelComponent, }: UseSkillSelectorOverlayOptions) => UseSkillSelectorOverlayResult;
|
|
10
|
+
export declare const useSkillSelectorOverlay: ({ isEnabled, isSkillsSupported, skills, sharedWithMe, publicSkills, favoriteIds, onToggleFavorite, labels, historyChipLabelClassName, activeMentionDetailsTrigger, renderCatalogContent, detailsPanelComponent: DetailsPanelComponent, }: UseSkillSelectorOverlayOptions) => UseSkillSelectorOverlayResult;
|
|
10
11
|
//# sourceMappingURL=useSkillSelectorOverlay.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSkillSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSkillSelectorOverlay.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSkillSelectorOverlay/useSkillSelectorOverlay.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,8BAA8B,EAC9B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAK7C;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,GAAI,0OAarC,8BAA8B,KAAG,6BA2ZnC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.
|
|
2
|
-
/*$vite$:1
|
|
1
|
+
._row_1v431_1:hover,._row_1v431_1:focus-visible,._row_1v431_1[aria-selected=true]{background:var(--fs-row-hover-bg,var(--bg-layer-sunken,#eef1f7))}._header_1v431_8{color:var(--fs-header-text,var(--text-tertiary,#848e9c))}._emptyHint_1v431_12{color:var(--fs-empty-hint-text,var(--text-icon-tertiary,#848e9c))}._star_1v431_16{color:var(--fs-star-color,var(--text-warning-icon,#eec840))}._footer_1v431_20{border-top-color:var(--fs-footer-border,var(--stroke-tertiary,#e0e6f0))}._rowEnter_1v431_28{animation:.2s ease-out _rowFadeIn_1v431_1}._rowLeaving_1v431_32{pointer-events:none;animation:.18s ease-out forwards _rowFadeOut_1v431_1}@keyframes _rowFadeIn_1v431_1{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes _rowFadeOut_1v431_1{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.96)}}._listContent_1v431_60{transition:max-height .2s}@media (prefers-reduced-motion:reduce){._rowEnter_1v431_28,._rowLeaving_1v431_32{animation:none}._listContent_1v431_60{transition:none}}._background_14zdf_1{background:var(--ssf-bg)}._border_14zdf_5{border-color:var(--ssf-border)}._value_14zdf_9{color:var(--ssf-text)}._clear_14zdf_13{margin-block:-.5rem}._invalid_14zdf_17{color:var(--ssf-error,var(--text-error,#9c2222));border-color:var(--ssf-error,var(--text-error,#9c2222))}._invalid_14zdf_17 input{color:var(--ssf-error,var(--text-error,#9c2222))}
|
|
2
|
+
/*$vite$:1*/.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.top-0{top:0}.-me-1{margin-inline-end:-.25rem}.-ms-1{margin-inline-start:-.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.size-11{height:2.75rem;width:2.75rem}.h-\[24px\]{height:24px}.h-\[min\(80vh\2c 840px\)\]{height:min(80vh,840px)}.h-\[min\(90vh\2c 860px\)\]{height:min(90vh,860px)}.max-h-72{max-height:18rem}.min-h-0{min-height:0}.min-h-11{min-height:2.75rem}.w-\[min\(var\(--reference-width\)\2c calc\(100vw-2rem\)\)\]{width:min(var(--reference-width),calc(100vw - 2rem))}.w-full{width:100%}.min-w-0{min-width:0}.\!max-w-\[min\(95vw\2c 1200px\)\]{max-width:min(95vw,1200px)!important}.max-w-\[550px\]{max-width:550px}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-t{border-top-width:1px}.border-transparent{border-color:transparent}.bg-error{background-color:var(--bg-error,#f3d6d8)}.p-2{padding:.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-0{padding-bottom:0}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pe-1{padding-inline-end:.25rem}.ps-1{padding-inline-start:.25rem}.pt-2{padding-top:.5rem}.text-start{text-align:start}.text-accent{color:var(--text-accent,#1d4ed8)}.text-error{color:var(--text-error,#ae2f2f)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-duration:.15s;transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:bg-info:hover{background-color:var(--bg-info,#e1eaf9)}.focus-visible\:bg-info:focus-visible{background-color:var(--bg-info,#e1eaf9)}.active\:bg-info:active{background-color:var(--bg-info,#e1eaf9)}@media (min-width:1280px){.desktop\:inline{display:inline}.desktop\:hidden{display:none}.desktop\:w-\[280px\]{width:280px}.desktop\:w-full{width:100%}}
|
package/index.d.ts
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
export { ChatSkill } from './components/ChatSkill/ChatSkill';
|
|
2
2
|
export { FavoriteSkillsPanel } from './components/FavoriteSkillsPanel/FavoriteSkillsPanel';
|
|
3
|
+
export { SkillArchiveUploadDialog } from './components/SkillArchiveUploadDialog/SkillArchiveUploadDialog';
|
|
3
4
|
export { SkillCatalogModal } from './components/SkillCatalogModal/SkillCatalogModal';
|
|
4
5
|
export { SkillDetailsSidePanel } from './components/SkillDetailsSidePanel/SkillDetailsSidePanel';
|
|
5
6
|
export { SkillInfoTooltipContent } from './components/SkillInfoTooltipContent/SkillInfoTooltipContent';
|
|
7
|
+
export { useSkillMentions } from './hooks/useSkillMentions/useSkillMentions';
|
|
6
8
|
export { useSkillSelectorOverlay } from './hooks/useSkillSelectorOverlay/useSkillSelectorOverlay';
|
|
7
9
|
export { buildFavoriteSkillItem } from './models/favorite-skill-item';
|
|
8
|
-
export
|
|
10
|
+
export { matchSkillMentions } from './utils/skill-mention-matching';
|
|
11
|
+
export { getSkillFallbackName } from './utils/skill-url';
|
|
12
|
+
export { diffTextChange, findMentionAtCaret, insertAnchor, reconcileAnchors, } from './utils/skill-mention-tracking';
|
|
13
|
+
export type { ChatSkillDetailsTrigger, ChatSkillLabels, ChatSkillProps, } from './models/chat-skill-props';
|
|
9
14
|
export type { FavoriteSkillItem, SkillListingEntry, } from './models/favorite-skill-item';
|
|
10
15
|
export type { FavoriteSkillsPanelColors, FavoriteSkillsPanelLabels, FavoriteSkillsPanelProps, } from './models/favorite-skills-panel-props';
|
|
16
|
+
export type { SkillArchiveUploadDialogLabels, SkillArchiveUploadDialogProps, } from './models/skill-archive-upload-dialog-props';
|
|
11
17
|
export type { SkillCatalogModalProps } from './models/skill-catalog-modal-props';
|
|
12
18
|
export type { SkillDetailsSidePanelProps } from './models/skill-details-side-panel-props';
|
|
13
19
|
export type { SkillInfoTooltipContentProps } from './models/skill-info-tooltip-content-props';
|
|
20
|
+
export type { SkillMentionAnchor } from './models/skill-mention-anchor';
|
|
14
21
|
export type { SkillDetailsPanelComponentProps, SkillSelectorOverlayLabels, UseSkillSelectorOverlayOptions, UseSkillSelectorOverlayResult, } from './models/skill-selector-overlay';
|
|
22
|
+
export type { UseSkillMentionsResult } from './hooks/useSkillMentions/useSkillMentions';
|
|
23
|
+
export type { ResolvedSkillMention } from './utils/skill-mention-matching';
|
|
24
|
+
export type { TextChange } from './utils/skill-mention-tracking';
|
|
25
|
+
export { SKILLS_CLASS } from './constants/public-class-names';
|
|
26
|
+
export { SkillSelectorField } from './components/SkillSelectorField/SkillSelectorField';
|
|
27
|
+
export type { SkillSelectorFieldProps, SkillSelectorFieldLabels, SkillSelectorFieldStyles, } from './models/skill-selector-field-props';
|
|
15
28
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,k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