@epam/ai-dial-publish-panel 1.4.0-dev.26 → 1.4.0-dev.35
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/PublishDependenciesList/PublishDependenciesList.d.ts +10 -0
- package/components/PublishDependenciesList/PublishDependenciesList.d.ts.map +1 -0
- package/components/PublishPanel/PublishPanel.d.ts +9 -0
- package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +3 -0
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
- package/constants/public-class-names.d.ts +6 -0
- package/constants/public-class-names.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -1
- package/index.js +880 -775
- package/models/publish-dependencies-list.d.ts +47 -0
- package/models/publish-dependencies-list.d.ts.map +1 -0
- package/models/publish-dependency.d.ts +30 -0
- package/models/publish-dependency.d.ts.map +1 -0
- package/models/publish-panel-styles.d.ts +3 -0
- package/models/publish-panel-styles.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { PublishDependency, PublishDependencyType } from './publish-dependency';
|
|
3
|
+
/** Text overrides for the private-dependencies section. */
|
|
4
|
+
export interface PublishDependenciesLabels {
|
|
5
|
+
/** Section heading. Default: `'Private dependencies'`. */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Warning shown under the heading: why a private dependency matters. */
|
|
8
|
+
description?: string;
|
|
9
|
+
/** Label for a dependency that sits at the root of its owner's bucket. Default: `'Root folder'`. */
|
|
10
|
+
rootLocation?: string;
|
|
11
|
+
/** Label per kind of dependency. Defaults: `'Application'`, `'Toolset'`, `'Prompt'`, `'Skill'`, `'File'`. */
|
|
12
|
+
typeLabels?: Partial<Record<PublishDependencyType, string>>;
|
|
13
|
+
/** Text announced to screen readers when the section appears or its count changes; receives the count. */
|
|
14
|
+
getAnnouncement?: (count: number) => string;
|
|
15
|
+
}
|
|
16
|
+
/** Color overrides for the private-dependencies section. */
|
|
17
|
+
export interface PublishDependenciesColors {
|
|
18
|
+
/** Heading text color. Defaults to `--text-primary`. */
|
|
19
|
+
headingText?: string;
|
|
20
|
+
/** Dependency name text color. Defaults to `--text-primary`. */
|
|
21
|
+
nameText?: string;
|
|
22
|
+
/** Type, version and location text color. Defaults to `--text-secondary`. */
|
|
23
|
+
metaText?: string;
|
|
24
|
+
}
|
|
25
|
+
/** Style overrides for the private-dependencies section. */
|
|
26
|
+
export interface PublishDependenciesStyles {
|
|
27
|
+
/** Color overrides for the section. */
|
|
28
|
+
colors?: PublishDependenciesColors;
|
|
29
|
+
/** Additional CSS custom properties applied to the section root. */
|
|
30
|
+
cssVars?: CSSProperties;
|
|
31
|
+
}
|
|
32
|
+
/** Props for `PublishDependenciesList`. */
|
|
33
|
+
export interface PublishDependenciesListProps {
|
|
34
|
+
/** Dependencies to list. The list is hidden while this is empty. */
|
|
35
|
+
dependencies: PublishDependency[];
|
|
36
|
+
/** Text overrides. */
|
|
37
|
+
labels?: PublishDependenciesLabels;
|
|
38
|
+
/** Typography class for the heading. Default: `'dial-body-semi-text'`. */
|
|
39
|
+
headingClassName?: string;
|
|
40
|
+
/** Typography class for each dependency name. Default: `'dial-small-semi-text'`. */
|
|
41
|
+
nameClassName?: string;
|
|
42
|
+
/** Typography class for each dependency's type, version and location. Default: `'dial-small-text'`. */
|
|
43
|
+
metaClassName?: string;
|
|
44
|
+
/** Style overrides. */
|
|
45
|
+
styles?: PublishDependenciesStyles;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=publish-dependencies-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-dependencies-list.d.ts","sourceRoot":"","sources":["../../src/models/publish-dependencies-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C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. */
|
|
2
|
+
export declare enum PublishDependencyType {
|
|
3
|
+
Application = "application",
|
|
4
|
+
Toolset = "toolset",
|
|
5
|
+
Prompt = "prompt",
|
|
6
|
+
Skill = "skill",
|
|
7
|
+
File = "file"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A resource the item being published refers to that is not in the public
|
|
11
|
+
* bucket, so the published copy may not work for the people it is shared with
|
|
12
|
+
* until this resource is published too.
|
|
13
|
+
*/
|
|
14
|
+
export interface PublishDependency {
|
|
15
|
+
/** Unique key of the dependency, normally its resource url. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Display name of the dependency. */
|
|
18
|
+
name: string;
|
|
19
|
+
/** Version, when the dependency is versioned. */
|
|
20
|
+
version?: string;
|
|
21
|
+
/** What kind of resource it is. */
|
|
22
|
+
type: PublishDependencyType;
|
|
23
|
+
/** Already-resolved icon URL of the dependency, when the host has one; without it the row shows the name's initials (a file shows its file-type icon instead). */
|
|
24
|
+
iconUrl?: string;
|
|
25
|
+
/** Whether a `File` dependency is a folder, which gets the folder icon instead of a file-type icon. */
|
|
26
|
+
isFolder?: boolean;
|
|
27
|
+
/** Folder path the dependency sits in, inside its owner's bucket; empty at the bucket root. */
|
|
28
|
+
location: string;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=publish-dependency.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-dependency.d.ts","sourceRoot":"","sources":["../../src/models/publish-dependency.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,oBAAY,qBAAqB;IAC/B,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,+DAA+D;IAC/D,EAAE,EAAE,MAAM,CAAC;IACX,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,kKAAkK;IAClK,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+FAA+F;IAC/F,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { PublishAccessRulesStyles } from './publish-access-rules-styles';
|
|
3
|
+
import { PublishDependenciesStyles } from './publish-dependencies-list';
|
|
3
4
|
import { PublishFoldersTreeStyles } from './publish-folders-tree';
|
|
4
5
|
/** Color overrides for the publish panel body. */
|
|
5
6
|
export interface PublishPanelColors {
|
|
@@ -22,6 +23,8 @@ export interface PublishPanelStyles {
|
|
|
22
23
|
folderTree?: PublishFoldersTreeStyles;
|
|
23
24
|
/** Style overrides forwarded to the access-rules section. */
|
|
24
25
|
accessRules?: PublishAccessRulesStyles;
|
|
26
|
+
/** Style overrides forwarded to the private-dependencies section. */
|
|
27
|
+
dependencies?: PublishDependenciesStyles;
|
|
25
28
|
/** Additional CSS custom properties applied to the panel body root. */
|
|
26
29
|
cssVars?: CSSProperties;
|
|
27
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-panel-styles.d.ts","sourceRoot":"","sources":["../../src/models/publish-panel-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3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AAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,qEAAqE;IACrE,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,uEAAuE;IACvE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-publish-panel",
|
|
3
3
|
"description": "Publish-to-folder UI and state flow shared by catalog entity publish and conversation publish",
|
|
4
|
-
"version": "1.4.0-dev.
|
|
4
|
+
"version": "1.4.0-dev.35",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.8",
|
|
28
|
-
"@epam/ai-dial-chat-shared": "1.4.0-dev.
|
|
28
|
+
"@epam/ai-dial-chat-shared": "1.4.0-dev.35",
|
|
29
29
|
"@epam/ai-dial-ui-kit": "^0.16.0",
|
|
30
30
|
"@epam/ai-dial-react-file-manager": "^0.4.1"
|
|
31
31
|
},
|