@epam/ai-dial-skill-editor 1.3.0-dev.29 → 1.3.0-dev.294
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/SkillCreateFolderDialog/SkillCreateFolderDialog.d.ts +5 -0
- package/components/SkillCreateFolderDialog/SkillCreateFolderDialog.d.ts.map +1 -0
- package/components/SkillEditor/SkillEditor.d.ts.map +1 -1
- package/components/SkillEditorDialog/SkillEditorDialog.d.ts +5 -0
- package/components/SkillEditorDialog/SkillEditorDialog.d.ts.map +1 -0
- package/components/SkillFileDropOverlay/SkillFileDropOverlay.d.ts +4 -0
- package/components/SkillFileDropOverlay/SkillFileDropOverlay.d.ts.map +1 -1
- package/components/SkillFileUploadDialog/SkillFileUploadDialog.d.ts +21 -1
- package/components/SkillFileUploadDialog/SkillFileUploadDialog.d.ts.map +1 -1
- package/components/SkillFilesSummary/SkillFilesSummary.d.ts +5 -0
- package/components/SkillFilesSummary/SkillFilesSummary.d.ts.map +1 -0
- package/hooks/useDraftFolder.d.ts +4 -0
- package/hooks/useDraftFolder.d.ts.map +1 -1
- package/index.css +3 -2
- package/index.js +1094 -823
- package/models/skill-create-folder-dialog-props.d.ts +27 -0
- package/models/skill-create-folder-dialog-props.d.ts.map +1 -0
- package/models/skill-editor-dialog-props.d.ts +36 -0
- package/models/skill-editor-dialog-props.d.ts.map +1 -0
- package/models/skill-editor-props.d.ts +63 -11
- package/models/skill-editor-props.d.ts.map +1 -1
- package/models/skill-files-summary-props.d.ts +19 -0
- package/models/skill-files-summary-props.d.ts.map +1 -0
- package/package.json +7 -7
- package/types/skill-add-source.d.ts +1 -3
- package/types/skill-add-source.d.ts.map +1 -1
- package/types/skill-file-conflict-resolution.d.ts +8 -0
- package/types/skill-file-conflict-resolution.d.ts.map +1 -0
- package/utils/file-tree.d.ts +6 -4
- package/utils/file-tree.d.ts.map +1 -1
- package/utils/icon.d.ts +2 -1
- package/utils/icon.d.ts.map +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SkillEditorDialogColors } from './skill-editor-dialog-props';
|
|
2
|
+
/** Props for `SkillCreateFolderDialog`. */
|
|
3
|
+
export interface SkillCreateFolderDialogProps {
|
|
4
|
+
/** Whether the dialog is shown. */
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
/** Called to close the dialog: Cancel, the close control, Escape, or a created folder. */
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
/** Returns the error for a folder name, or `undefined` when it can be created. */
|
|
9
|
+
validateName: (name: string) => string | undefined;
|
|
10
|
+
/** Creates the folder with an already validated name. */
|
|
11
|
+
onCreate: (name: string) => void;
|
|
12
|
+
/** Dialog title. */
|
|
13
|
+
title: string;
|
|
14
|
+
/** Name field label. */
|
|
15
|
+
nameLabel: string;
|
|
16
|
+
/** Name field placeholder. */
|
|
17
|
+
namePlaceholder: string;
|
|
18
|
+
/** Create button label. */
|
|
19
|
+
createLabel: string;
|
|
20
|
+
/** Cancel button label. */
|
|
21
|
+
cancelLabel: string;
|
|
22
|
+
/** Accessible name of the close control. */
|
|
23
|
+
closeAriaLabel: string;
|
|
24
|
+
/** Color overrides for the mobile sheet footer. */
|
|
25
|
+
dialogColors?: SkillEditorDialogColors;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=skill-create-folder-dialog-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-create-folder-dialog-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-create-folder-dialog-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,2CAA2C;AAC3C,MAAM,WAAW,4BAA4B;IAC3C,mCAAmC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kFAAkF;IAClF,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACnD,yDAAyD;IACzD,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,8BAA8B;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,YAAY,CAAC,EAAE,uBAAuB,CAAC;CACxC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Color overrides for the mobile `BottomSheet` footer of `SkillEditorDialog`. */
|
|
3
|
+
export interface SkillEditorDialogColors {
|
|
4
|
+
/** Background of the sheet footer. Defaults to `--bg-layer-raised`. */
|
|
5
|
+
footerBackground?: string;
|
|
6
|
+
/** Top border color of the sheet footer. Defaults to `--stroke-tertiary`. */
|
|
7
|
+
footerBorder?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Props for `SkillEditorDialog`. */
|
|
10
|
+
export interface SkillEditorDialogProps {
|
|
11
|
+
/** Whether the dialog is shown. */
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
/** Heading of the dialog, which also names it. */
|
|
14
|
+
title: string;
|
|
15
|
+
/** Accessible name of the close button. */
|
|
16
|
+
closeAriaLabel: string;
|
|
17
|
+
/** Called when the dialog asks to close: the close button, Escape, or a press outside it. */
|
|
18
|
+
onClose: () => void;
|
|
19
|
+
/** Label of the confirming button. */
|
|
20
|
+
confirmLabel: string;
|
|
21
|
+
/** Called when the confirming button is activated. */
|
|
22
|
+
onConfirm: () => void;
|
|
23
|
+
/** Label of the cancelling button. */
|
|
24
|
+
cancelLabel: string;
|
|
25
|
+
/** Called when the cancelling button is activated. */
|
|
26
|
+
onCancel: () => void;
|
|
27
|
+
/** Disables the confirming button. Defaults to `false`. */
|
|
28
|
+
isConfirmDisabled?: boolean;
|
|
29
|
+
/** Shows a spinner in the confirming button while its action runs. Defaults to `false`. */
|
|
30
|
+
isConfirming?: boolean;
|
|
31
|
+
/** Content of the dialog body, which brings its own padding. */
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
/** Color overrides for the mobile sheet footer. */
|
|
34
|
+
colors?: SkillEditorDialogColors;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=skill-editor-dialog-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-editor-dialog-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-editor-dialog-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,kFAAkF;AAClF,MAAM,WAAW,uBAAuB;IACtC,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,mCAAmC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,6FAA6F;IAC7F,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sCAAsC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,2DAA2D;IAC3D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,2FAA2F;IAC3F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gEAAgE;IAChE,QAAQ,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextRefinementLabels } from '
|
|
1
|
+
import { TextRefinementLabels } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { EditorThemes } from '@epam/ai-dial-ui-kit';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { SkillFileNodeKind } from '../types/skill-file-node-kind';
|
|
@@ -58,6 +58,8 @@ export interface SkillFileUploadCandidate {
|
|
|
58
58
|
file: File;
|
|
59
59
|
/** Resolved relative path (`webkitRelativePath` falling back to `File.name`, `/`-normalized). */
|
|
60
60
|
path: string;
|
|
61
|
+
/** Set when the user chose to replace the file already at `path`; the commit then overwrites it instead of adding a node. */
|
|
62
|
+
replacesExisting?: boolean;
|
|
61
63
|
}
|
|
62
64
|
/** Host validation outcome for one staged candidate. */
|
|
63
65
|
export interface SkillFileValidationResult {
|
|
@@ -147,16 +149,22 @@ export interface SkillEditorLabels extends TextRefinementLabels {
|
|
|
147
149
|
filesTreeAriaLabel?: string;
|
|
148
150
|
/** Label of the Files pane's Add dropdown trigger. Defaults to `'Add'`. */
|
|
149
151
|
addLabel?: string;
|
|
150
|
-
/** Add-menu entry that creates a folder inline. Defaults to `'Create folder'`. */
|
|
152
|
+
/** Add-menu entry that creates a folder — inline on desktop, in a dialog of the same title below the `desktop` breakpoint. Defaults to `'Create folder'`. */
|
|
151
153
|
createFolderLabel?: string;
|
|
154
|
+
/** Name field label of the mobile Create folder dialog. Defaults to `'Name'`. */
|
|
155
|
+
createFolderNameLabel?: string;
|
|
156
|
+
/** Name field placeholder of the mobile Create folder dialog. Defaults to `'Enter folder name'`. */
|
|
157
|
+
createFolderNamePlaceholder?: string;
|
|
158
|
+
/** Accessible label of the mobile Create folder dialog's close control. Defaults to `'Close'`. */
|
|
159
|
+
createFolderCloseAriaLabel?: string;
|
|
160
|
+
/** Confirm button label of the mobile Create folder dialog. Defaults to `'Create'`. */
|
|
161
|
+
createFolderConfirmLabel?: string;
|
|
152
162
|
/** Add-menu entry that opens the upload dialog for device files. Defaults to `'Upload files from device'`. */
|
|
153
163
|
uploadFilesLabel?: string;
|
|
154
164
|
/** Add-menu entry that opens the upload dialog for a `.zip` archive. Defaults to `'Upload archive from device'`. */
|
|
155
165
|
uploadArchiveLabel?: string;
|
|
156
166
|
/** Add-menu entry that opens the host's file-system picker. Defaults to `'Open DIAL file system'`. */
|
|
157
167
|
openFileSystemLabel?: string;
|
|
158
|
-
/** Node context-menu submenu that adds next to the node. Defaults to `'Add sibling'`. */
|
|
159
|
-
addSiblingLabel?: string;
|
|
160
168
|
/** Node context-menu action that removes the node. Defaults to `'Delete'`. */
|
|
161
169
|
deleteLabel?: string;
|
|
162
170
|
/** Name prefilled in a folder being created inline. Defaults to `'New folder'`. */
|
|
@@ -187,6 +195,8 @@ export interface SkillEditorLabels extends TextRefinementLabels {
|
|
|
187
195
|
nameLabel?: string;
|
|
188
196
|
/** Name field placeholder. Defaults to `'good-morning-breakfast'`. */
|
|
189
197
|
namePlaceholder?: string;
|
|
198
|
+
/** Tooltip over the Name field while it is read-only. Defaults to `"The skill name can't be changed after creation"`. */
|
|
199
|
+
nameReadOnlyTooltip?: string;
|
|
190
200
|
/** Name field helper text. Defaults to `"Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed."`. */
|
|
191
201
|
nameCaption?: string;
|
|
192
202
|
/** Description field label. Defaults to `'Description'`. */
|
|
@@ -225,6 +235,22 @@ export interface SkillEditorLabels extends TextRefinementLabels {
|
|
|
225
235
|
uploadDropZoneMobileLabel?: string;
|
|
226
236
|
/** Accessible label of the drop zone / native-picker trigger. Defaults to `'Upload files'`. */
|
|
227
237
|
uploadDropZoneAriaLabel?: string;
|
|
238
|
+
/** Secondary drop-zone line, e.g. the accepted formats. Hidden by default. */
|
|
239
|
+
uploadDropZoneDescription?: string;
|
|
240
|
+
/** Secondary archive-mode drop-zone line, e.g. the accepted formats. Hidden by default. */
|
|
241
|
+
uploadArchiveDropZoneDescription?: string;
|
|
242
|
+
/** Title of the step that asks how to resolve an upload whose path already holds a file. Defaults to `'Replace or duplicate it?'`. */
|
|
243
|
+
uploadConflictTitle?: string;
|
|
244
|
+
/** Builds that step's message, given the conflicting path. Defaults to a sentence naming the path. */
|
|
245
|
+
uploadConflictMessage?: (path: string) => string;
|
|
246
|
+
/** Option that overwrites the existing file. Defaults to `'Replace'`. */
|
|
247
|
+
uploadConflictReplaceLabel?: string;
|
|
248
|
+
/** Option that keeps both files, staging the upload as `name (n).ext`. Defaults to `'Duplicate'`. */
|
|
249
|
+
uploadConflictDuplicateLabel?: string;
|
|
250
|
+
/** Confirm button label of that step. Defaults to `'Confirm'`. */
|
|
251
|
+
uploadConflictConfirmLabel?: string;
|
|
252
|
+
/** Note on a staged row that will overwrite an existing file. Defaults to `'Will replace the existing file'`. */
|
|
253
|
+
uploadReplaceRowNote?: string;
|
|
228
254
|
/** Builds the accessible label of a staged row's remove control, given its path. Defaults to a sentence naming the path. */
|
|
229
255
|
uploadRemoveCandidateLabel?: (path: string) => string;
|
|
230
256
|
/** Explanatory copy on a manifest-kind staged row. Defaults to a sentence explaining it will populate/replace the Skill's metadata. */
|
|
@@ -233,7 +259,7 @@ export interface SkillEditorLabels extends TextRefinementLabels {
|
|
|
233
259
|
uploadConfirmLabel?: string;
|
|
234
260
|
/** Cancel button label in the upload dialog. Defaults to `'Cancel'`. */
|
|
235
261
|
uploadCancelLabel?: string;
|
|
236
|
-
/** Prefix announced in the `aria-live` region
|
|
262
|
+
/** Prefix announced in the `aria-live` region before each batch-level or staged-row error. Defaults to `'Upload error: '`. */
|
|
237
263
|
uploadBatchErrorAriaPrefix?: string;
|
|
238
264
|
/** Title shown in the full-surface overlay while a file-bearing drag is over the editor and the upload dialog isn't open yet. Defaults to `'Upload files'`. */
|
|
239
265
|
dropOverlayTitle?: string;
|
|
@@ -256,12 +282,28 @@ export interface SkillEditorColors {
|
|
|
256
282
|
refineActionText?: string;
|
|
257
283
|
/** Refinement error color. Defaults to --text-error. */
|
|
258
284
|
refineErrorText?: string;
|
|
259
|
-
/** Color of the "Files" heading
|
|
285
|
+
/** Color of the "Files" heading, the Metadata and Setup section headings, and the mobile "Editing file" file name. Defaults to `--text-primary`. */
|
|
260
286
|
title?: string;
|
|
261
|
-
/** Color of the hand-rendered Instructions field label. Defaults to `--text-secondary`. */
|
|
287
|
+
/** Color of the hand-rendered Instructions field label and of the mobile "Editing file" caption and caret. Defaults to `--text-secondary`. */
|
|
262
288
|
helperText?: string;
|
|
289
|
+
/** Background of the mobile "Editing file" card. Defaults to `--bg-layer-sunken`. */
|
|
290
|
+
filesCardBackground?: string;
|
|
291
|
+
/** Border color of the mobile "Editing file" card. Defaults to `--stroke-tertiary`. */
|
|
292
|
+
filesCardBorder?: string;
|
|
293
|
+
/** Background of the mobile upload and create-folder sheet footer. Defaults to `--bg-layer-raised`. */
|
|
294
|
+
dialogFooterBackground?: string;
|
|
295
|
+
/** Top border color of the mobile upload and create-folder sheet footer. Defaults to `--stroke-tertiary`. */
|
|
296
|
+
dialogFooterBorder?: string;
|
|
263
297
|
/** Border color of the layout header row and Files sidebar divider. Defaults to `--stroke-tertiary`. */
|
|
264
298
|
border?: string;
|
|
299
|
+
/** Color of the upload icon on the file-drop overlay. Defaults to `--text-accent-primary`. */
|
|
300
|
+
dropOverlayIcon?: string;
|
|
301
|
+
/** Color of the file tree Add-menu entry icons. Defaults to `--text-secondary`. */
|
|
302
|
+
menuIcon?: string;
|
|
303
|
+
/** Border color of the upload dialog's drop zone while every staged file is invalid. Defaults to `--stroke-error`. */
|
|
304
|
+
uploadInvalidDropZoneBorder?: string;
|
|
305
|
+
/** Border color of each staged row in the upload dialog. Defaults to `--stroke-tertiary`. */
|
|
306
|
+
uploadRowBorder?: string;
|
|
265
307
|
}
|
|
266
308
|
/** Typography class overrides for `SkillEditor`. */
|
|
267
309
|
export interface SkillEditorTypography {
|
|
@@ -273,8 +315,18 @@ export interface SkillEditorTypography {
|
|
|
273
315
|
helperTextClassName?: string;
|
|
274
316
|
/** Color class applied to the file tree "Delete" context-menu icon. Unset by default, so the icon takes the item's danger color. */
|
|
275
317
|
removeIconClassName?: string;
|
|
276
|
-
/**
|
|
277
|
-
|
|
318
|
+
/** Typography class applied to the mobile "Editing file" caption. Defaults to `'dial-tiny-lead-text'`. */
|
|
319
|
+
editingFileLabelClassName?: string;
|
|
320
|
+
/** Typography class applied to the mobile "Editing file" file name. Defaults to `'dial-small-text'`. */
|
|
321
|
+
editingFileNameClassName?: string;
|
|
322
|
+
/** Typography class applied to the upload dialog's Replace-or-duplicate message. Defaults to `'dial-small-text'`. */
|
|
323
|
+
uploadMessageClassName?: string;
|
|
324
|
+
/** Typography and color classes merged over a staged upload row's size and notes, which render `'dial-tiny-text text-secondary'` when unset. */
|
|
325
|
+
uploadRowCaptionClassName?: string;
|
|
326
|
+
/** Typography class applied to the file-drop overlay title. Defaults to `'dial-h3-text'`. */
|
|
327
|
+
dropOverlayTitleClassName?: string;
|
|
328
|
+
/** Typography class applied to the file-drop overlay subtitle. Defaults to `'dial-small-text'`. */
|
|
329
|
+
dropOverlaySubtitleClassName?: string;
|
|
278
330
|
}
|
|
279
331
|
/** Grouped style overrides for `SkillEditor`. */
|
|
280
332
|
export interface SkillEditorStyles {
|
|
@@ -324,11 +376,11 @@ export interface SkillEditorProps {
|
|
|
324
376
|
/** Called when the conflict state's "Reload latest" control is activated. Required when `conflict` can be set. */
|
|
325
377
|
onReloadLatest?: () => void;
|
|
326
378
|
/**
|
|
327
|
-
* When `true`, the Name field renders
|
|
379
|
+
* When `true`, the Name field renders disabled — its value is still
|
|
328
380
|
* included in submitted values unchanged. The host sets this in edit mode,
|
|
329
381
|
* since DIAL Core has no rename/move operation for a skill; the library
|
|
330
382
|
* itself has no notion of "edit mode" and infers no policy from this flag
|
|
331
|
-
* beyond rendering the field
|
|
383
|
+
* beyond rendering the field disabled.
|
|
332
384
|
*/
|
|
333
385
|
isNameReadOnly?: boolean;
|
|
334
386
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8FAA8F;AAC9F,oBAAY,sBAAsB;IAChC,gEAAgE;IAChE,cAAc,oBAAoB;IAClC,uGAAuG;IACvG,QAAQ,aAAa;CACtB;AAED,yEAAyE;AACzE,oBAAY,yBAAyB;IACnC,iDAAiD;IACjD,KAAK,UAAU;IACf,sEAAsE;IACtE,OAAO,YAAY;CACpB;AAED,6EAA6E;AAC7E,MAAM,WAAW,wBAAwB;IACvC,gFAAgF;IAChF,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,IAAI,EAAE,IAAI,CAAC;IACX,iGAAiG;IACjG,IAAI,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"skill-editor-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-editor-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,8CAA8C;AAC9C,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,8FAA8F;AAC9F,oBAAY,sBAAsB;IAChC,gEAAgE;IAChE,cAAc,oBAAoB;IAClC,uGAAuG;IACvG,QAAQ,aAAa;CACtB;AAED,yEAAyE;AACzE,oBAAY,yBAAyB;IACnC,iDAAiD;IACjD,KAAK,UAAU;IACf,sEAAsE;IACtE,OAAO,YAAY;CACpB;AAED,6EAA6E;AAC7E,MA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E,YAAY,CAAC;CACxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** Props for `SkillFilesSummary`. */
|
|
3
|
+
export interface SkillFilesSummaryProps {
|
|
4
|
+
/** Small caption above the file name, e.g. `'Editing file'`. */
|
|
5
|
+
label: string;
|
|
6
|
+
/** Name of the file being edited; its extension picks the file-type icon. */
|
|
7
|
+
fileName: string;
|
|
8
|
+
/** Whether the file tree is revealed. */
|
|
9
|
+
isExpanded: boolean;
|
|
10
|
+
/** Called with the next expanded state when the summary row is activated. */
|
|
11
|
+
onToggle: (isExpanded: boolean) => void;
|
|
12
|
+
/** Content revealed below the summary row — the Files pane. */
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Typography class applied to the caption. Defaults to `'dial-tiny-lead-text'`. */
|
|
15
|
+
labelClassName?: string;
|
|
16
|
+
/** Typography class applied to the file name. Defaults to `'dial-small-text'`. */
|
|
17
|
+
fileNameClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=skill-files-summary-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-files-summary-props.d.ts","sourceRoot":"","sources":["../../src/models/skill-files-summary-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,qCAAqC;AACrC,MAAM,WAAW,sBAAsB;IACrC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,UAAU,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,+DAA+D;IAC/D,QAAQ,EAAE,SAAS,CAAC;IACpB,oFAAoF;IACpF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-skill-editor",
|
|
3
3
|
"description": "Host-agnostic form for authoring a DIAL Skill, with an inline supporting-file tree",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.294",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@tabler/icons-react": "^3.
|
|
20
|
+
"@tabler/icons-react": "^3.50.0",
|
|
21
21
|
"@uiw/react-markdown-preview": "^5.2.1",
|
|
22
|
-
"@uiw/react-md-editor": "^4.
|
|
23
|
-
"@epam/ai-dial-builder-form": "1.3.0-dev.
|
|
22
|
+
"@uiw/react-md-editor": "^4.2.2",
|
|
23
|
+
"@epam/ai-dial-builder-form": "1.3.0-dev.294"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
27
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
28
|
-
"@epam/ai-dial-react-file-manager": "^0.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.294",
|
|
27
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.67",
|
|
28
|
+
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.25",
|
|
29
29
|
"react": "^19.2.8"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
@@ -3,8 +3,6 @@ export declare enum SkillAddSource {
|
|
|
3
3
|
/** The Files pane header's Add dropdown: the selected folder, else the root. */
|
|
4
4
|
Header = "header",
|
|
5
5
|
/** The add entries listed directly in a folder's context menu: that folder. */
|
|
6
|
-
Child = "child"
|
|
7
|
-
/** A node's "Add sibling" submenu: the node's parent folder. */
|
|
8
|
-
Sibling = "sibling"
|
|
6
|
+
Child = "child"
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=skill-add-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-add-source.d.ts","sourceRoot":"","sources":["../../src/types/skill-add-source.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,oBAAY,cAAc;IACxB,gFAAgF;IAChF,MAAM,WAAW;IACjB,+EAA+E;IAC/E,KAAK,UAAU;
|
|
1
|
+
{"version":3,"file":"skill-add-source.d.ts","sourceRoot":"","sources":["../../src/types/skill-add-source.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,oBAAY,cAAc;IACxB,gFAAgF;IAChF,MAAM,WAAW;IACjB,+EAA+E;IAC/E,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** How a staged upload whose path already holds a file in the skill is resolved. */
|
|
2
|
+
export declare enum SkillFileConflictResolution {
|
|
3
|
+
/** The upload overwrites the existing file at the same path. */
|
|
4
|
+
Replace = "replace",
|
|
5
|
+
/** The upload is staged under a free `name (n).ext` path beside the existing file. */
|
|
6
|
+
Duplicate = "duplicate"
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=skill-file-conflict-resolution.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-file-conflict-resolution.d.ts","sourceRoot":"","sources":["../../src/types/skill-file-conflict-resolution.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,oBAAY,2BAA2B;IACrC,gEAAgE;IAChE,OAAO,YAAY;IACnB,sFAAsF;IACtF,SAAS,cAAc;CACxB"}
|
package/utils/file-tree.d.ts
CHANGED
|
@@ -10,13 +10,15 @@ import { SkillAddSource } from '../types/skill-add-source';
|
|
|
10
10
|
export declare const buildDialFileTree: (nodes: SkillFileTreeNode[]) => DialFile[];
|
|
11
11
|
/** Joins a folder path (`''` for the skill root) and a relative path below it. */
|
|
12
12
|
export declare const joinSkillPath: (folderPath: string, relativePath: string) => string;
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Returns the first `name (n).ext` sibling of `path` that `takenPaths` does not
|
|
15
|
+
* hold, numbering from 1 the way the DIAL file manager names a duplicate.
|
|
16
|
+
*/
|
|
17
|
+
export declare const buildDuplicatePath: (path: string, takenPaths: ReadonlySet<string>) => string;
|
|
15
18
|
/**
|
|
16
19
|
* Resolves the folder an add action targets (`''` is the skill root). The
|
|
17
20
|
* header adds into the selected folder, or the root when a file (or nothing)
|
|
18
|
-
* is selected; a folder's own menu entries add into it
|
|
19
|
-
* next to the node.
|
|
21
|
+
* is selected; a folder's own menu entries add into it.
|
|
20
22
|
*/
|
|
21
23
|
export declare const resolveAddTarget: (source: SkillAddSource, node: SkillFileTreeNode | undefined) => string;
|
|
22
24
|
/**
|
package/utils/file-tree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-tree.d.ts","sourceRoot":"","sources":["../../src/utils/file-tree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,iBAAiB,EAAE,KAAG,QAAQ,EAuDtE,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,aAAa,GACxB,YAAY,MAAM,EAClB,cAAc,MAAM,KACnB,MAAuE,CAAC;AAE3E
|
|
1
|
+
{"version":3,"file":"file-tree.d.ts","sourceRoot":"","sources":["../../src/utils/file-tree.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAa3D;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,iBAAiB,EAAE,KAAG,QAAQ,EAuDtE,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,aAAa,GACxB,YAAY,MAAM,EAClB,cAAc,MAAM,KACnB,MAAuE,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,MAAM,MAAM,EACZ,YAAY,WAAW,CAAC,MAAM,CAAC,KAC9B,MAmBF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,cAAc,EACtB,MAAM,iBAAiB,GAAG,SAAS,KAClC,MAQF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,iBAAiB,EAAE,EAC1B,YAAY,MAAM,KACjB,GAAG,CAAC,MAAM,CASZ,CAAC;AAEF,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,MAAM,EACf,cAAc,GAAG,CAAC,MAAM,CAAC,EACzB,UAAU,kBAAkB,KAC3B,MAAM,GAAG,SAQX,CAAC"}
|
package/utils/icon.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TablerIcon } from '@tabler/icons-react';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
/** Returns a decorative Tabler icon at the kit stroke, sized `DIAL_ICON_SIZE.MD` unless `size` is given. */
|
|
3
|
-
export declare const renderIcon: (Icon: TablerIcon, className?: string, size?: number) => import(
|
|
4
|
+
export declare const renderIcon: (Icon: TablerIcon, className?: string, size?: number, style?: CSSProperties) => import('react').JSX.Element;
|
|
4
5
|
//# sourceMappingURL=icon.d.ts.map
|
package/utils/icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/utils/icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/utils/icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,4GAA4G;AAC5G,eAAO,MAAM,UAAU,GACrB,MAAM,UAAU,EAChB,YAAY,MAAM,EAClB,OAAM,MAA0B,EAChC,QAAQ,aAAa,gCAStB,CAAC"}
|