@epam/ai-dial-catalog 1.0.0-dev.518 → 1.0.0-dev.519
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/PublishFoldersTree/PublishFoldersTree.d.ts +17 -6
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +1 -1
- package/components/PublishPanel/PublishPanel.d.ts +10 -0
- package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +7 -2
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
- package/index.js +3123 -3108
- package/package.json +4 -4
- package/utils/publish-folder-tree.d.ts +20 -5
- package/utils/publish-folder-tree.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.0.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.519",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
22
|
"@epam/ai-dial-ui-kit": "0.12.0-dev.28",
|
|
23
|
-
"@epam/ai-dial-kit": "1.0.0-dev.
|
|
24
|
-
"@epam/ai-dial-sidebar": "1.0.0-dev.
|
|
25
|
-
"@epam/ai-dial-chat-shared": "1.0.0-dev.
|
|
23
|
+
"@epam/ai-dial-kit": "1.0.0-dev.519",
|
|
24
|
+
"@epam/ai-dial-sidebar": "1.0.0-dev.519",
|
|
25
|
+
"@epam/ai-dial-chat-shared": "1.0.0-dev.519",
|
|
26
26
|
"ag-grid-community": "35.3.0"
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
@@ -18,13 +18,28 @@ export declare const fromFolderPathKey: (pathKey: string) => string[];
|
|
|
18
18
|
* folder-only, context-menu-less tree, so it is set to the path key.
|
|
19
19
|
*/
|
|
20
20
|
export declare const toDialFileTree: (items: PublishFolderNode[]) => DialFile[];
|
|
21
|
+
/** Error messages returned by {@link validateFolderName} for each rejection reason. */
|
|
22
|
+
export interface FolderNameValidationMessages {
|
|
23
|
+
/** Shown when the trimmed name is empty. */
|
|
24
|
+
empty: string;
|
|
25
|
+
/** Shown when the name contains `..` or a forbidden character. */
|
|
26
|
+
invalid: string;
|
|
27
|
+
/** Shown when a sibling folder already has this name (case-insensitive). */
|
|
28
|
+
duplicate: string;
|
|
29
|
+
}
|
|
21
30
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* user confirms is.
|
|
31
|
+
* Validates a folder name entered in the publish destination tree. Returns an
|
|
32
|
+
* error message from `messages`, or `null` when `rawValue` is a valid,
|
|
33
|
+
* non-duplicate folder name.
|
|
26
34
|
*/
|
|
27
|
-
export declare const
|
|
35
|
+
export declare const validateFolderName: (rawValue: string, siblingNames: string[], messages: FolderNameValidationMessages) => string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Returns `baseName` if no sibling already has that name, otherwise
|
|
38
|
+
* `"${baseName} 2"`, `"${baseName} 3"`, etc. — the first suffix that is
|
|
39
|
+
* free. Used so the inline create-folder editor starts with a name that does
|
|
40
|
+
* not duplicate an existing sibling folder.
|
|
41
|
+
*/
|
|
42
|
+
export declare const getUniqueFolderName: (baseName: string, siblingNames: string[]) => string;
|
|
28
43
|
/** Names of the direct children of the folder at `parentPath` (root siblings when empty). */
|
|
29
44
|
export declare const getSiblingFolderNames: (items: PublishFolderNode[], parentPath: string[]) => string[];
|
|
30
45
|
//# sourceMappingURL=publish-folder-tree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-folder-tree.d.ts","sourceRoot":"","sources":["../../src/utils/publish-folder-tree.ts"],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