@epam/ai-dial-publish-panel 1.4.0-dev.151 → 1.4.0-dev.159
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/PublishPanel/PublishPanel.d.ts +1 -1
- package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
- package/components/SaveToFolderPanel/StandaloneSaveToFolderPanel.d.ts.map +1 -1
- package/index.css +2 -2
- package/index.d.ts +2 -5
- package/index.d.ts.map +1 -1
- package/index.js +538 -888
- package/models/publish-panel-styles.d.ts +2 -2
- package/models/publish-panel-styles.d.ts.map +1 -1
- package/models/save-to-folder-panel.d.ts +33 -66
- package/models/save-to-folder-panel.d.ts.map +1 -1
- package/package.json +4 -4
- package/types/save-to-folder.d.ts +0 -7
- package/types/save-to-folder.d.ts.map +1 -1
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -5
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
- package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts +0 -5
- package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts.map +0 -1
- package/models/publish-folders-tree.d.ts +0 -73
- package/models/publish-folders-tree.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { FolderDestinationTreeStyles } from '@epam/ai-dial-react-file-manager';
|
|
1
2
|
import { CSSProperties } from 'react';
|
|
2
3
|
import { PublishDependenciesStyles } from './publish-dependencies-list';
|
|
3
|
-
import { PublishFoldersTreeStyles } from './publish-folders-tree';
|
|
4
4
|
/** Color overrides for the publish panel body. */
|
|
5
5
|
export interface PublishPanelColors {
|
|
6
6
|
/** Summary row border color. Defaults to `--stroke-tertiary`. */
|
|
@@ -21,7 +21,7 @@ export interface PublishPanelStyles {
|
|
|
21
21
|
/** Color overrides for the panel body. */
|
|
22
22
|
colors?: PublishPanelColors;
|
|
23
23
|
/** Style overrides forwarded to the destination folder tree. */
|
|
24
|
-
folderTree?:
|
|
24
|
+
folderTree?: FolderDestinationTreeStyles;
|
|
25
25
|
/** Style overrides forwarded to the private-dependencies section. */
|
|
26
26
|
dependencies?: PublishDependenciesStyles;
|
|
27
27
|
/** Additional CSS custom properties applied to the panel body root. */
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"publish-panel-styles.d.ts","sourceRoot":"","sources":["../../src/models/publish-panel-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,kDAAkD;AAClD,MAAM,WAAW,kBAAkB;IACjC,iEAAiE;IACjE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,0CAA0C;IAC1C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,gEAAgE;IAChE,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,qEAAqE;IACrE,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,uEAAuE;IACvE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FolderDestinationTreeStyles } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { CSSProperties, RefObject } from 'react';
|
|
3
|
+
import { SaveVersionMode } from '../types/save-to-folder';
|
|
3
4
|
import { FolderDestination, FolderDestinationRoot } from './folder-destination';
|
|
4
5
|
import { PublishResourceSummary } from './publish';
|
|
5
6
|
import { PublishDependenciesLabels, PublishDependenciesStyles } from './publish-dependencies-list';
|
|
6
7
|
import { PublishDependency } from './publish-dependency';
|
|
7
|
-
import { PublishFoldersTreeStyles } from './publish-folders-tree';
|
|
8
8
|
import { VersionHistorySectionProps } from './version-history';
|
|
9
9
|
/** Text overrides for the body of the save-to-folder panel. */
|
|
10
10
|
export interface SaveToFolderPanelLabels {
|
|
@@ -46,28 +46,26 @@ export interface SaveToFolderPanelLabels {
|
|
|
46
46
|
createFolderDuplicateNameError?: string;
|
|
47
47
|
/** Inline error for a new folder named like its parent folder. */
|
|
48
48
|
createFolderSameAsParentNameError?: string;
|
|
49
|
+
/** Non-blocking notice for a new folder name starting with a dot, which hides the folder. Plain text. */
|
|
50
|
+
createFolderHiddenNameWarning?: string;
|
|
49
51
|
/** Label of the action that retries a failed folder listing. Defaults to `'Retry'`. */
|
|
50
52
|
retryLabel?: string;
|
|
53
|
+
/** Error announced when creating a folder fails and the host passes no `submitError`. Defaults to `'Failed to create the folder. Please try again.'`. */
|
|
54
|
+
createFolderFailedMessage?: string;
|
|
51
55
|
}
|
|
52
|
-
/** Color overrides for the
|
|
56
|
+
/** Color overrides for the sections the save-to-folder panel adds to the main view. */
|
|
53
57
|
export interface SaveToFolderPanelColors {
|
|
54
58
|
/** Section heading text color. Defaults to `--text-primary`. */
|
|
55
59
|
headingText?: string;
|
|
56
|
-
/** Destination path text color. Defaults to `--text-secondary`. */
|
|
57
|
-
destinationText?: string;
|
|
58
60
|
/** Text color of `dependenciesNote` and `destinationNote`. Defaults to `--text-secondary`. */
|
|
59
61
|
noteText?: string;
|
|
60
|
-
/** Summary row border color. Defaults to `--stroke-tertiary`. */
|
|
61
|
-
summaryBorder?: string;
|
|
62
|
-
/** Summary row background color. Defaults to `--bg-layer-sunken`. */
|
|
63
|
-
summaryBackground?: string;
|
|
64
62
|
}
|
|
65
63
|
/** Style overrides for the body of the save-to-folder panel. */
|
|
66
64
|
export interface SaveToFolderPanelStyles {
|
|
67
65
|
/** Color overrides. */
|
|
68
66
|
colors?: SaveToFolderPanelColors;
|
|
69
67
|
/** Style overrides forwarded to the folder tree. */
|
|
70
|
-
folderTree?:
|
|
68
|
+
folderTree?: FolderDestinationTreeStyles;
|
|
71
69
|
/** Additional CSS custom properties applied to the body root. */
|
|
72
70
|
cssVars?: CSSProperties;
|
|
73
71
|
}
|
|
@@ -88,8 +86,27 @@ export interface SaveToFolderVersionProps {
|
|
|
88
86
|
/** Error shown under the new version input, already translated by the host. */
|
|
89
87
|
newVersionError?: string;
|
|
90
88
|
}
|
|
91
|
-
/**
|
|
92
|
-
export interface
|
|
89
|
+
/** Text overrides for the shell of the standalone save-to-folder panel. */
|
|
90
|
+
export interface StandaloneSaveToFolderPanelLabels {
|
|
91
|
+
/** Main view title and dialog name. Defaults to `'Save'`. */
|
|
92
|
+
title?: string;
|
|
93
|
+
/** Folder view title. Defaults to `'Change folder'`. */
|
|
94
|
+
changeFolderTitle?: string;
|
|
95
|
+
/** Accessible name of the close button. Defaults to `'Close'`. */
|
|
96
|
+
closeAriaLabel?: string;
|
|
97
|
+
/** Accessible name of the folder view's back button. Defaults to `'Back'`. */
|
|
98
|
+
backAriaLabel?: string;
|
|
99
|
+
/** Cancel button label. Defaults to `'Cancel'`. */
|
|
100
|
+
cancelLabel?: string;
|
|
101
|
+
/** Save button label. Defaults to `'Save'`. */
|
|
102
|
+
saveLabel?: string;
|
|
103
|
+
/** Save button label while saving. Defaults to `'Saving…'`. */
|
|
104
|
+
savingLabel?: string;
|
|
105
|
+
/** Select button label in the folder view. Defaults to `'Select'`. */
|
|
106
|
+
selectLabel?: string;
|
|
107
|
+
}
|
|
108
|
+
/** Props of the standalone save-to-folder panel. */
|
|
109
|
+
export interface StandaloneSaveToFolderPanelProps {
|
|
93
110
|
/** Summary row content; a `type` renders the entity header with icon and type badge. */
|
|
94
111
|
resource: PublishResourceSummary;
|
|
95
112
|
/** Top-level destination roots, in display order. */
|
|
@@ -98,10 +115,12 @@ export interface SaveToFolderPanelBaseProps {
|
|
|
98
115
|
destination: FolderDestination;
|
|
99
116
|
/** Called with the destination the user selected and confirmed in the folder tree. */
|
|
100
117
|
onDestinationChange: (destination: FolderDestination) => void;
|
|
101
|
-
/** Reason a folder is unavailable as a destination, or `undefined` when it is usable; forwarded to the folder tree, see `
|
|
118
|
+
/** Reason a folder is unavailable as a destination, or `undefined` when it is usable; forwarded to the folder tree, see `FolderDestinationTreeProps.getDisabledReason`. */
|
|
102
119
|
getDisabledReason?: (destination: FolderDestination) => string | undefined;
|
|
103
120
|
/** Called when a new folder name is confirmed under `rootKey` at `parentPath`. */
|
|
104
121
|
onCreateFolder: (rootKey: string, parentPath: string[], name: string) => Promise<void>;
|
|
122
|
+
/** Called with the rejection when `onCreateFolder` fails, after the panel has announced `panelLabels.createFolderFailedMessage`; the new folder is not selected. */
|
|
123
|
+
onCreateFolderError?: (error: unknown) => void;
|
|
105
124
|
/** Version choice; omit for an unversioned resource. */
|
|
106
125
|
version?: SaveToFolderVersionProps;
|
|
107
126
|
/** Resources the item refers to that are not in the public bucket, listed in the main view as in `PublishPanel`; informational only, it never blocks Save. The host passes them only when they apply (for example, an Organization destination); the section is hidden while this is empty or omitted. */
|
|
@@ -134,56 +153,6 @@ export interface SaveToFolderPanelBaseProps {
|
|
|
134
153
|
headingClassName?: string;
|
|
135
154
|
/** Typography class of the destination path. Defaults to `'dial-small-semi-text'`. */
|
|
136
155
|
destinationClassName?: string;
|
|
137
|
-
}
|
|
138
|
-
/** Props of the body of the save-to-folder panel. */
|
|
139
|
-
export interface SaveToFolderPanelProps extends SaveToFolderPanelBaseProps {
|
|
140
|
-
/** Which view to render. */
|
|
141
|
-
view: SaveToFolderView;
|
|
142
|
-
/** Called when the user activates Change in the main view. */
|
|
143
|
-
onChangeFolderClick: () => void;
|
|
144
|
-
/** Ref attached to the Change button, for returning focus after the folder view closes. */
|
|
145
|
-
changeFolderButtonRef?: Ref<HTMLButtonElement>;
|
|
146
|
-
/** Destination selected in the folder view but not yet confirmed. */
|
|
147
|
-
pendingDestination?: FolderDestination;
|
|
148
|
-
/** Called when the user selects or deselects a folder in the folder view. */
|
|
149
|
-
onPendingDestinationChange: (destination: FolderDestination | undefined) => void;
|
|
150
|
-
}
|
|
151
|
-
/** Text overrides for the shell of the standalone save-to-folder panel. */
|
|
152
|
-
export interface StandaloneSaveToFolderPanelLabels {
|
|
153
|
-
/** Main view title and dialog name. Defaults to `'Save'`. */
|
|
154
|
-
title?: string;
|
|
155
|
-
/** Folder view title. Defaults to `'Change folder'`. */
|
|
156
|
-
changeFolderTitle?: string;
|
|
157
|
-
/** Accessible name of the close button. Defaults to `'Close'`. */
|
|
158
|
-
closeAriaLabel?: string;
|
|
159
|
-
/** Accessible name of the folder view's back button. Defaults to `'Back'`. */
|
|
160
|
-
backAriaLabel?: string;
|
|
161
|
-
/** Cancel button label. Defaults to `'Cancel'`. */
|
|
162
|
-
cancelLabel?: string;
|
|
163
|
-
/** Save button label. Defaults to `'Save'`. */
|
|
164
|
-
saveLabel?: string;
|
|
165
|
-
/** Save button label while saving. Defaults to `'Saving…'`. */
|
|
166
|
-
savingLabel?: string;
|
|
167
|
-
/** Select button label in the folder view. Defaults to `'Select'`. */
|
|
168
|
-
selectLabel?: string;
|
|
169
|
-
}
|
|
170
|
-
/** Color overrides for the shell of the standalone save-to-folder panel. */
|
|
171
|
-
export interface StandaloneSaveToFolderPanelColors {
|
|
172
|
-
/** Backdrop background color. Defaults to `--bg-backdrop`. */
|
|
173
|
-
backdropBackground?: string;
|
|
174
|
-
/** Panel background color. Defaults to `--bg-layer-raised`. */
|
|
175
|
-
panelBackground?: string;
|
|
176
|
-
/** Panel leading-edge border color. Defaults to `--stroke-secondary`. */
|
|
177
|
-
panelBorder?: string;
|
|
178
|
-
/** Divider color below the header and above the footer. Defaults to `--stroke-tertiary`. */
|
|
179
|
-
dividerBorder?: string;
|
|
180
|
-
/** Scrollbar thumb color of the scrollable body. Defaults to `--stroke-secondary`. */
|
|
181
|
-
scrollbarThumb?: string;
|
|
182
|
-
/** Header title text color. Defaults to `--text-primary`. */
|
|
183
|
-
titleText?: string;
|
|
184
|
-
}
|
|
185
|
-
/** Props of the standalone save-to-folder panel. */
|
|
186
|
-
export interface StandaloneSaveToFolderPanelProps extends SaveToFolderPanelBaseProps {
|
|
187
156
|
/** Whether the panel is open. */
|
|
188
157
|
isOpen: boolean;
|
|
189
158
|
/** Called when the panel asks to close: Close, Cancel in the main view, backdrop, or Escape. */
|
|
@@ -198,8 +167,6 @@ export interface StandaloneSaveToFolderPanelProps extends SaveToFolderPanelBaseP
|
|
|
198
167
|
onPendingDestinationChange?: (destination: FolderDestination | undefined) => void;
|
|
199
168
|
/** Text overrides for the shell. */
|
|
200
169
|
labels?: StandaloneSaveToFolderPanelLabels;
|
|
201
|
-
/** Color overrides for the shell. */
|
|
202
|
-
colors?: StandaloneSaveToFolderPanelColors;
|
|
203
170
|
/** Typography class of the header title. Defaults to `'dial-body-semi-text'`. */
|
|
204
171
|
titleClassName?: string;
|
|
205
172
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-to-folder-panel.d.ts","sourceRoot":"","sources":["../../src/models/save-to-folder-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"save-to-folder-panel.d.ts","sourceRoot":"","sources":["../../src/models/save-to-folder-panel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAA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"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.159",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.2.8",
|
|
28
|
-
"@epam/ai-dial-chat-shared": "1.4.0-dev.
|
|
29
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
30
|
-
"@epam/ai-dial-react-file-manager": "^0.
|
|
28
|
+
"@epam/ai-dial-chat-shared": "1.4.0-dev.159",
|
|
29
|
+
"@epam/ai-dial-ui-kit": "^0.17.0-dev.1",
|
|
30
|
+
"@epam/ai-dial-react-file-manager": "^0.5.0-dev.5"
|
|
31
31
|
},
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
@@ -5,11 +5,4 @@ export declare enum SaveVersionMode {
|
|
|
5
5
|
/** Save the edits as a new version; the current one stays as last saved. */
|
|
6
6
|
New = "new"
|
|
7
7
|
}
|
|
8
|
-
/** Which view the save-to-folder panel shows. */
|
|
9
|
-
export declare enum SaveToFolderView {
|
|
10
|
-
/** Summary, destination and version choice. */
|
|
11
|
-
Main = "main",
|
|
12
|
-
/** The destination folder tree. */
|
|
13
|
-
ChangeFolder = "change-folder"
|
|
14
|
-
}
|
|
15
8
|
//# sourceMappingURL=save-to-folder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-to-folder.d.ts","sourceRoot":"","sources":["../../src/types/save-to-folder.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oBAAY,eAAe;IACzB,+CAA+C;IAC/C,IAAI,SAAS;IACb,4EAA4E;IAC5E,GAAG,QAAQ;CACZ
|
|
1
|
+
{"version":3,"file":"save-to-folder.d.ts","sourceRoot":"","sources":["../../src/types/save-to-folder.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,oBAAY,eAAe;IACzB,+CAA+C;IAC/C,IAAI,SAAS;IACb,4EAA4E;IAC5E,GAAG,QAAQ;CACZ"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { PublishFoldersTreeProps } from '../../models/publish-folders-tree';
|
|
3
|
-
/** Destination folder tree for the Publish flow, ordered by folder name at every level, with search, folder creation (trailing button and context menu), a disabled state, and an optional multi-root mode. */
|
|
4
|
-
export declare const PublishFoldersTree: FC<PublishFoldersTreeProps>;
|
|
5
|
-
//# sourceMappingURL=PublishFoldersTree.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PublishFoldersTree.d.ts","sourceRoot":"","sources":["../../../src/components/PublishFoldersTree/PublishFoldersTree.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,EAAE,EAAwC,MAAM,OAAO,CAAC;AAGjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA6BjF,+MAA+M;AAC/M,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAif1D,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { SaveToFolderPanelProps } from '../../models/save-to-folder-panel';
|
|
3
|
-
/** Body of the save-to-folder panel: the summary, destination and version choice, or the destination folder tree. */
|
|
4
|
-
export declare const SaveToFolderPanel: FC<SaveToFolderPanelProps>;
|
|
5
|
-
//# sourceMappingURL=SaveToFolderPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SaveToFolderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SaveToFolderPanel/SaveToFolderPanel.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,EAAE,EAA4B,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAOhF,qHAAqH;AACrH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAsRxD,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { FolderDestination, FolderDestinationRoot } from './folder-destination';
|
|
3
|
-
import { PublishFolderNode } from './publish';
|
|
4
|
-
/** Color overrides for the publish destination folder tree. */
|
|
5
|
-
export interface PublishFoldersTreeColors {
|
|
6
|
-
/** Divider color above the folder-creation controls. Defaults to `--stroke-tertiary`. */
|
|
7
|
-
divider?: string;
|
|
8
|
-
}
|
|
9
|
-
/** Style overrides for the publish destination folder tree. */
|
|
10
|
-
export interface PublishFoldersTreeStyles {
|
|
11
|
-
/** Color overrides. */
|
|
12
|
-
colors?: PublishFoldersTreeColors;
|
|
13
|
-
/** Additional class name applied to the component root. */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** Additional CSS custom properties applied to the component root. */
|
|
16
|
-
cssVars?: CSSProperties;
|
|
17
|
-
}
|
|
18
|
-
/** Props for the publish destination folder tree. */
|
|
19
|
-
export interface PublishFoldersTreeProps {
|
|
20
|
-
/** Root-level folder nodes of the single-root tree. Ignored when `roots` is set. Defaults to `[]`. */
|
|
21
|
-
items?: PublishFolderNode[];
|
|
22
|
-
/** Currently selected destination path of the single-root tree; `undefined` means no selection and `[]` means the bucket root. Ignored when `roots` is set. */
|
|
23
|
-
selectedPath?: string[];
|
|
24
|
-
/** Called when the selected destination of the single-root tree changes. */
|
|
25
|
-
onSelectedPathChange?: (path: string[] | undefined) => void;
|
|
26
|
-
/** Called when a new folder name is confirmed in the single-root tree. */
|
|
27
|
-
onCreateFolder?: (parentPath: string[], name: string) => Promise<void>;
|
|
28
|
-
/** Renders one top-level node per root, in this order, instead of the single `rootLabel` root. */
|
|
29
|
-
roots?: FolderDestinationRoot[];
|
|
30
|
-
/** Currently selected destination in multi-root mode; `undefined` means no selection. */
|
|
31
|
-
destination?: FolderDestination;
|
|
32
|
-
/** Called when the selected destination changes in multi-root mode. */
|
|
33
|
-
onDestinationChange?: (destination: FolderDestination | undefined) => void;
|
|
34
|
-
/** Called when a new folder name is confirmed in multi-root mode, with the root and the parent path inside it. */
|
|
35
|
-
onCreateDestinationFolder?: (rootKey: string, parentPath: string[], name: string) => Promise<void>;
|
|
36
|
-
/** Host-owned search query used to filter the tree. */
|
|
37
|
-
searchQuery: string;
|
|
38
|
-
/** Reason a folder is unavailable as a destination; a non-empty string disables that row (`aria-disabled`, tooltip, accessible description, no selection) while it stays focusable and expandable, and no folder is created under it. `rootKey` is `''` in single-root mode. The whole-tree `disabled` wins. Without it, or while it returns `undefined`, nothing changes. */
|
|
39
|
-
getDisabledReason?: (destination: FolderDestination) => string | undefined;
|
|
40
|
-
/** Disables every control. Defaults to `false`. */
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
/** Label for the folder-creation trigger. Defaults to `'Create new folder'`. */
|
|
43
|
-
createFolderLabel?: string;
|
|
44
|
-
/** Label for the action that cancels folder creation. Defaults to `'Cancel'`. */
|
|
45
|
-
cancelCreatingFolderLabel?: string;
|
|
46
|
-
/** Label for the context-menu action that creates a sibling folder. Defaults to `'Add sibling'`. */
|
|
47
|
-
addSiblingFolderLabel?: string;
|
|
48
|
-
/** Label for the context-menu action that creates a child folder. Defaults to `'Add child'`. */
|
|
49
|
-
addChildFolderLabel?: string;
|
|
50
|
-
/** Initial folder name unless a valid unmatched search query is available. Defaults to `'New folder'`. */
|
|
51
|
-
newFolderDefaultName?: string;
|
|
52
|
-
/** Empty-state message with a `{query}` placeholder. Defaults to `'No folders match "{query}".'`. */
|
|
53
|
-
noResultsLabel?: string;
|
|
54
|
-
/** Validation message for an empty folder name. Defaults to `'Folder name cannot be empty.'`. */
|
|
55
|
-
emptyFolderNameError?: string;
|
|
56
|
-
/** Validation message for a forbidden folder name. Defaults to `'Folder name contains invalid characters.'`. */
|
|
57
|
-
invalidFolderNameError?: string;
|
|
58
|
-
/** Validation message for a duplicate folder name. Defaults to `'A folder with this name already exists.'`. */
|
|
59
|
-
duplicateFolderNameError?: string;
|
|
60
|
-
/** Validation message for a new folder named like its parent folder. Defaults to `'A folder cannot have the same name as its parent folder.'`. */
|
|
61
|
-
sameAsParentFolderNameError?: string;
|
|
62
|
-
/** Label for the selectable bucket root of the single-root tree. Ignored when `roots` is set. Defaults to `'Organization'`. */
|
|
63
|
-
rootLabel?: string;
|
|
64
|
-
/** Externally controlled expanded folder path keys of the single-root tree; use `FolderDestinationRoot.expandedPaths` in multi-root mode. */
|
|
65
|
-
expandedPaths?: Set<string>;
|
|
66
|
-
/** Called when expanded folder path keys change. */
|
|
67
|
-
onExpandedPathsChange?: (paths: Set<string>) => void;
|
|
68
|
-
/** Folder path keys of the single-root tree currently being fetched by the host; use `FolderDestinationRoot.loadingPaths` in multi-root mode. */
|
|
69
|
-
loadingPaths?: Set<string>;
|
|
70
|
-
/** Style overrides. */
|
|
71
|
-
styles?: PublishFoldersTreeStyles;
|
|
72
|
-
}
|
|
73
|
-
//# sourceMappingURL=publish-folders-tree.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"publish-folders-tree.d.ts","sourceRoot":"","sources":["../../src/models/publish-folders-tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,+DAA+D;AAC/D,MAAM,WAAW,wBAAwB;IACvC,yFAAyF;IACzF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,+DAA+D;AAC/D,MAAM,WAAW,wBAAwB;IACvC,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,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