@epam/ai-dial-publish-panel 1.3.0-dev.34 → 1.3.0-dev.342
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/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts +1 -1
- package/components/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts.map +1 -1
- package/components/PublishAccessRules/PublishAccessRules.d.ts.map +1 -1
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts +1 -1
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +1 -1
- package/components/PublishHistoryList/PublishHistoryList.d.ts.map +1 -1
- package/components/PublishPanel/PublishFooter.d.ts +12 -1
- package/components/PublishPanel/PublishFooter.d.ts.map +1 -1
- package/components/PublishPanel/PublishPanel.d.ts +28 -11
- package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +14 -3
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
- package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts +5 -0
- package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts.map +1 -0
- package/components/SaveToFolderPanel/StandaloneSaveToFolderPanel.d.ts +5 -0
- package/components/SaveToFolderPanel/StandaloneSaveToFolderPanel.d.ts.map +1 -0
- package/index.css +3 -2
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -1
- package/index.js +1005 -600
- package/models/folder-destination.d.ts +28 -0
- package/models/folder-destination.d.ts.map +1 -0
- package/models/publish-access-rule-editor.d.ts +3 -7
- package/models/publish-access-rule-editor.d.ts.map +1 -1
- package/models/publish-folders-tree.d.ts +19 -10
- package/models/publish-folders-tree.d.ts.map +1 -1
- package/models/publish-panel-styles.d.ts +2 -6
- package/models/publish-panel-styles.d.ts.map +1 -1
- package/models/publish.d.ts +3 -3
- package/models/save-to-folder-panel.d.ts +204 -0
- package/models/save-to-folder-panel.d.ts.map +1 -0
- package/package.json +5 -5
- package/types/publish-panel.d.ts +8 -0
- package/types/publish-panel.d.ts.map +1 -0
- package/types/save-to-folder.d.ts +15 -0
- package/types/save-to-folder.d.ts.map +1 -0
- package/utils/folder-destination.d.ts +17 -0
- package/utils/folder-destination.d.ts.map +1 -0
- package/utils/use-publish-folder-view.d.ts +28 -0
- package/utils/use-publish-folder-view.d.ts.map +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { PublishAccessRuleEditorProps } from '../../models/publish-access-rule-editor';
|
|
3
|
-
/** Edits one access rule inline on desktop or in a
|
|
3
|
+
/** Edits one access rule inline on desktop or in a bottom sheet below the desktop breakpoint. */
|
|
4
4
|
export declare const PublishAccessRuleEditor: FC<PublishAccessRuleEditorProps>;
|
|
5
5
|
//# sourceMappingURL=PublishAccessRuleEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishAccessRuleEditor.d.ts","sourceRoot":"","sources":["../../../src/components/PublishAccessRuleEditor/PublishAccessRuleEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublishAccessRuleEditor.d.ts","sourceRoot":"","sources":["../../../src/components/PublishAccessRuleEditor/PublishAccessRuleEditor.tsx"],"names":[],"mappings":"AAeA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAoB5F,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAgTpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishAccessRules.d.ts","sourceRoot":"","sources":["../../../src/components/PublishAccessRules/PublishAccessRules.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublishAccessRules.d.ts","sourceRoot":"","sources":["../../../src/components/PublishAccessRules/PublishAccessRules.tsx"],"names":[],"mappings":"AAeA,OAAO,EA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AY,CAAC,EAAE,6BAA6B,CAAC;CAC9C;AAED,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,+CAA+C;IAC/C,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,sEAAsE;IACtE,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAClD,iEAAiE;IACjE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,oGAAoG;IACpG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0GAA0G;IAC1G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oGAAoG;IACpG,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+EAA+E;IAC/E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mDAAmD;IACnD,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gGAAgG;IAChG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2GAA2G;IAC3G,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAWD,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAiQ1D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
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),
|
|
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
4
|
export declare const PublishFoldersTree: FC<PublishFoldersTreeProps>;
|
|
5
5
|
//# sourceMappingURL=PublishFoldersTree.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishFoldersTree.d.ts","sourceRoot":"","sources":["../../../src/components/PublishFoldersTree/PublishFoldersTree.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"PublishFoldersTree.d.ts","sourceRoot":"","sources":["../../../src/components/PublishFoldersTree/PublishFoldersTree.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,EAAE,EAAwC,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AA6BjF,+MAA+M;AAC/M,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAwa1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishHistoryList.d.ts","sourceRoot":"","sources":["../../../src/components/PublishHistoryList/PublishHistoryList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAI3D,4CAA4C;AAC5C,MAAM,WAAW,uBAAuB;IACtC,sIAAsI;IACtI,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,+FAA+F;IAC/F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oHAAoH;IACpH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uEAAuE;IACvE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oGAAoG;IACpG,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,mIAAmI;IACnI,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kFAAkF;IAClF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC;AAED,iHAAiH;AACjH,MAAM,WAAW,wBAAwB;IACvC,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,sFAAsF;IACtF,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,wFAAwF;IACxF,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,iFAAiF;IACjF,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,2EAA2E;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,oIAAoI;AACpI,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"PublishHistoryList.d.ts","sourceRoot":"","sources":["../../../src/components/PublishHistoryList/PublishHistoryList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,mBAAmB,E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;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wFAAwF;IACxF,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,oIAAoI;AACpI,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CA4F1D,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { PublishPanelView } from '../../types/publish-panel';
|
|
2
3
|
/** Text overrides for all user-visible strings in {@link PublishFooter}. */
|
|
3
4
|
export interface PublishFooterLabels {
|
|
4
5
|
/** Cancel button label. Default: `'Cancel'`. */
|
|
@@ -9,6 +10,8 @@ export interface PublishFooterLabels {
|
|
|
9
10
|
updateLabel?: string;
|
|
10
11
|
/** Submit button label while the request is in flight. Default: `'Publishing…'`. */
|
|
11
12
|
publishingInProgressLabel?: string;
|
|
13
|
+
/** Confirm button label in the folder view. Default: `'Select'`. */
|
|
14
|
+
selectFolderLabel?: string;
|
|
12
15
|
}
|
|
13
16
|
/** Props for {@link PublishFooter}. */
|
|
14
17
|
export interface PublishFooterProps {
|
|
@@ -16,6 +19,8 @@ export interface PublishFooterProps {
|
|
|
16
19
|
version?: string;
|
|
17
20
|
/** Whether this publication already exists at the selected destination folder. */
|
|
18
21
|
hasExistingPublicationInFolder: boolean;
|
|
22
|
+
/** Whether resubmitting over an existing publication replaces it; when `false` the submit label never offers an update. Default: `true`. */
|
|
23
|
+
allowReplace?: boolean;
|
|
19
24
|
/** Whether the submit button should be disabled. */
|
|
20
25
|
isSubmitDisabled: boolean;
|
|
21
26
|
/** Whether the submit button should show its loading/spinner state. */
|
|
@@ -24,6 +29,12 @@ export interface PublishFooterProps {
|
|
|
24
29
|
onCancel: () => void;
|
|
25
30
|
/** Called when the user confirms the publish/update action. */
|
|
26
31
|
onSubmit: () => void;
|
|
32
|
+
/** Which panel view the footer serves; the folder view shows Cancel and Select. Default: `PublishPanelView.Main`. */
|
|
33
|
+
view?: PublishPanelView;
|
|
34
|
+
/** Called when the user confirms the folder picked in the folder view. */
|
|
35
|
+
onSelectFolder?: () => void;
|
|
36
|
+
/** Whether Select is disabled in the folder view. Default: `false`. */
|
|
37
|
+
isSelectFolderDisabled?: boolean;
|
|
27
38
|
/** Text overrides for all user-visible strings. */
|
|
28
39
|
labels?: PublishFooterLabels;
|
|
29
40
|
/** Color overrides. */
|
|
@@ -34,6 +45,6 @@ export interface PublishFooterColors {
|
|
|
34
45
|
/** Top border color. Fallback: `--stroke-tertiary`. */
|
|
35
46
|
border?: string;
|
|
36
47
|
}
|
|
37
|
-
/** Action row for the Publish flow: pinned Cancel and Publish/Update buttons. */
|
|
48
|
+
/** Action row for the Publish flow: pinned Cancel and Publish/Update buttons, or Cancel and Select in the folder view. */
|
|
38
49
|
export declare const PublishFooter: FC<PublishFooterProps>;
|
|
39
50
|
//# sourceMappingURL=PublishFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishFooter.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/PublishFooter.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PublishFooter.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/PublishFooter.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,4EAA4E;AAC5E,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uFAAuF;IACvF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oFAAoF;IACpF,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC,8LAA8L;IAC9L,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kFAAkF;IAClF,8BAA8B,EAAE,OAAO,CAAC;IACxC,4IAA4I;IAC5I,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oDAAoD;IACpD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,eAAe,EAAE,OAAO,CAAC;IACzB,qDAAqD;IACrD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,qHAAqH;IACrH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,uEAAuE;IACvE,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,mDAAmD;IACnD,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,uBAAuB;IACvB,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,4GAA4G;AAC5G,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,0HAA0H;AAC1H,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8EhD,CAAC"}
|
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { PublicationRule, PublishFolderNode, PublishResourceSummary } from '../../models/publish';
|
|
3
3
|
import { PublishPanelStyles } from '../../models/publish-panel-styles';
|
|
4
|
+
import { PublishPanelView } from '../../types/publish-panel';
|
|
4
5
|
import { PublishAccessRulesLabels } from '../PublishAccessRules/PublishAccessRules';
|
|
5
6
|
/** Text overrides for all user-visible strings in {@link PublishPanel}. */
|
|
6
7
|
export interface PublishPanelLabels {
|
|
7
|
-
/**
|
|
8
|
+
/** Heading above the destination row, and the accessible name of the folder view. Default: `'Publish to folder'`. */
|
|
8
9
|
folderLabel?: string;
|
|
10
|
+
/** Accessible name of the destination row. Default: `'Destination folder'`. */
|
|
11
|
+
destinationAriaLabel?: string;
|
|
12
|
+
/** Destination row text while no folder is selected. Default: `'No folder selected'`. */
|
|
13
|
+
noFolderSelectedLabel?: string;
|
|
14
|
+
/** Label of the action that opens the folder view once a folder is selected. Default: `'Change'`. */
|
|
15
|
+
changeFolderLabel?: string;
|
|
16
|
+
/** Label of the action that opens the folder view while no folder is selected. Default: `'Choose'`. */
|
|
17
|
+
chooseFolderLabel?: string;
|
|
9
18
|
/** Placeholder for the folder search input. Default: `'Search folders'`. */
|
|
10
19
|
searchPlaceholder?: string;
|
|
11
20
|
/** Accessible label for the search input's clear button. Default: `'Clear search'`. */
|
|
@@ -42,8 +51,6 @@ export interface PublishPanelLabels {
|
|
|
42
51
|
createFolderDuplicateNameError?: string;
|
|
43
52
|
/** Label used for the bucket root as a destination and as `{folder}` in callouts when it is selected. Default: `'Organization'`. */
|
|
44
53
|
rootFolderLabel?: string;
|
|
45
|
-
/** Version tag text in the entity-header summary row; `{version}` is replaced. Default: `'Version {version} · current'`. */
|
|
46
|
-
summaryVersionLabel?: string;
|
|
47
54
|
/** Text overrides for the access-rules section. */
|
|
48
55
|
accessRulesLabels?: PublishAccessRulesLabels;
|
|
49
56
|
}
|
|
@@ -62,16 +69,22 @@ export interface PublishPanelProps {
|
|
|
62
69
|
* working.
|
|
63
70
|
*/
|
|
64
71
|
renderSummary?: () => ReactNode;
|
|
72
|
+
/** Which view to show: the main form or the destination folder tree. Default: `PublishPanelView.Main`. */
|
|
73
|
+
view?: PublishPanelView;
|
|
74
|
+
/** Called when the user asks to open the folder view from the destination row. */
|
|
75
|
+
onChangeFolderClick: () => void;
|
|
65
76
|
/** Destination folders available for selection. */
|
|
66
77
|
folderItems: PublishFolderNode[];
|
|
67
78
|
/**
|
|
68
|
-
*
|
|
69
|
-
* is selected; `[]` means the bucket root itself
|
|
70
|
-
* valid destination).
|
|
79
|
+
* Committed destination folder path shown in the destination row.
|
|
80
|
+
* `undefined` means nothing is selected; `[]` means the bucket root itself
|
|
81
|
+
* is selected (a distinct, valid destination).
|
|
71
82
|
*/
|
|
72
83
|
selectedFolderPath?: string[];
|
|
73
|
-
/**
|
|
74
|
-
|
|
84
|
+
/** Folder highlighted in the folder view before the host commits it; `undefined` when none. */
|
|
85
|
+
pendingFolderPath?: string[];
|
|
86
|
+
/** Called when the user picks a folder or the root in the folder view; `undefined` when deselected. */
|
|
87
|
+
onPendingFolderPathChange: (path: string[] | undefined) => void;
|
|
75
88
|
/** Called when the user confirms a new folder name. */
|
|
76
89
|
onCreateFolder: (parentPath: string[], name: string) => Promise<void>;
|
|
77
90
|
/**
|
|
@@ -98,8 +111,8 @@ export interface PublishPanelProps {
|
|
|
98
111
|
hasSubmitError?: boolean;
|
|
99
112
|
/**
|
|
100
113
|
* Whether resubmitting when `hasExistingPublicationInFolder` is true is
|
|
101
|
-
* allowed
|
|
102
|
-
*
|
|
114
|
+
* allowed or blocked — see `PublishDerivationInput.allowReplace`.
|
|
115
|
+
* Default `true`.
|
|
103
116
|
*/
|
|
104
117
|
allowReplace?: boolean;
|
|
105
118
|
/**
|
|
@@ -138,9 +151,13 @@ export interface PublishPanelProps {
|
|
|
138
151
|
summaryTitleClassName?: string;
|
|
139
152
|
/** Typography class for the "Publish to folder" section heading. Default: `'dial-body-semi-text'`. */
|
|
140
153
|
headingClassName?: string;
|
|
154
|
+
/** Typography class for the destination folder path. Default: `'dial-small-semi-text'`. */
|
|
155
|
+
destinationClassName?: string;
|
|
156
|
+
/** Typography class for the folder name emphasised inside the replace-warning and no-access callouts. Default: `'dial-small-paragraph-semi-text'`. */
|
|
157
|
+
calloutFolderNameClassName?: string;
|
|
141
158
|
/** Style overrides. */
|
|
142
159
|
styles?: PublishPanelStyles;
|
|
143
160
|
}
|
|
144
|
-
/** Scrollable body of the Publish flow: entity summary, destination
|
|
161
|
+
/** Scrollable body of the Publish flow: entity summary, destination row with callout, author, credentials and access rules, or the destination folder tree. */
|
|
145
162
|
export declare const PublishPanel: FC<PublishPanelProps>;
|
|
146
163
|
//# sourceMappingURL=PublishPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/PublishPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/PublishPanel.tsx"],"names":[],"mappings":"AAmBA,OAAO,EACL,EAAE,EACF,SAAS,EAMV,MAAM,OAAO,CAAC;AAEf,OAAO,EACL,eAAe,EAEf,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE7D,OAAO,EAEL,wBAAwB,EACzB,MAAM,0CAA0C,CAAC;AAOlD,2EAA2E;AAC3E,MAAM,WAAW,kBAAkB;IACjC,qHAAqH;IACrH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yFAAyF;IACzF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qGAAqG;IACrG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uGAAuG;IACvG,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,4EAA4E;IAC5E,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,iBAAiB,CAAC,EAAE,MAAM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AC,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,mJAAmJ;IACnJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sGAAsG;IACtG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uBAAuB;IACvB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,+JAA+J;AAC/J,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+U9C,CAAC"}
|
|
@@ -7,6 +7,10 @@ import { PublishPanelLabels } from './PublishPanel';
|
|
|
7
7
|
export interface StandalonePublishPanelLabels {
|
|
8
8
|
/** Header title. Default: `'Publish'`. */
|
|
9
9
|
title?: string;
|
|
10
|
+
/** Header title in the folder view. Default: `'Change folder'`. */
|
|
11
|
+
changeFolderTitle?: string;
|
|
12
|
+
/** Accessible label for the header's Back button in the folder view. Default: `'Back'`. */
|
|
13
|
+
backAriaLabel?: string;
|
|
10
14
|
/** Accessible label for the panel's `role="dialog"`. Default: `'Publish'`. */
|
|
11
15
|
ariaLabel?: string;
|
|
12
16
|
/** Accessible label for the header's Close button. Default: `'Close'`. */
|
|
@@ -31,7 +35,7 @@ export interface StandalonePublishPanelProps {
|
|
|
31
35
|
folderItems: PublishFolderNode[];
|
|
32
36
|
/** Currently selected destination folder path. `undefined` means nothing selected; `[]` means the bucket root. */
|
|
33
37
|
selectedFolderPath?: string[];
|
|
34
|
-
/** Called when the user
|
|
38
|
+
/** Called when the user confirms a destination folder or the root with Select in the folder view. */
|
|
35
39
|
onSelectedFolderPathChange: (path: string[] | undefined) => void;
|
|
36
40
|
/** Called when the user confirms a new folder name. */
|
|
37
41
|
onCreateFolder: (parentPath: string[], name: string) => Promise<void>;
|
|
@@ -51,7 +55,8 @@ export interface StandalonePublishPanelProps {
|
|
|
51
55
|
hasSubmitError?: boolean;
|
|
52
56
|
/**
|
|
53
57
|
* Whether resubmitting when `hasExistingPublicationInFolder` is true is
|
|
54
|
-
* allowed
|
|
58
|
+
* allowed or blocked — see `PublishDerivationInput.allowReplace`.
|
|
59
|
+
* Default `true`.
|
|
55
60
|
*/
|
|
56
61
|
allowReplace?: boolean;
|
|
57
62
|
/**
|
|
@@ -81,6 +86,12 @@ export interface StandalonePublishPanelProps {
|
|
|
81
86
|
panelLabels?: PublishPanelLabels;
|
|
82
87
|
/** Style overrides for the panel body. */
|
|
83
88
|
panelStyles?: PublishPanelStyles;
|
|
89
|
+
/** Typography class forwarded to the panel body's `summaryTitleClassName`. Default: `'dial-body-semi-text'`. */
|
|
90
|
+
panelSummaryTitleClassName?: string;
|
|
91
|
+
/** Typography class forwarded to the panel body's `headingClassName`. Default: `'dial-body-semi-text'`. */
|
|
92
|
+
panelHeadingClassName?: string;
|
|
93
|
+
/** Typography class forwarded to the panel body's `calloutFolderNameClassName`. Default: `'dial-small-paragraph-semi-text'`. */
|
|
94
|
+
panelCalloutFolderNameClassName?: string;
|
|
84
95
|
/** Text overrides for the pinned footer. */
|
|
85
96
|
footerLabels?: PublishFooterLabels;
|
|
86
97
|
/** Text overrides for the header/shell. */
|
|
@@ -105,6 +116,6 @@ export interface StandalonePublishPanelColors {
|
|
|
105
116
|
/** Header title text color. Fallback: `--text-primary`. */
|
|
106
117
|
titleText?: string;
|
|
107
118
|
}
|
|
108
|
-
/** Standalone end-edge slide-in panel for the Publish flow: full-screen backdrop, entity summary, folder
|
|
119
|
+
/** Standalone end-edge slide-in panel for the Publish flow: full-screen backdrop, entity summary, destination row with a drill-in folder view, and pinned footer. */
|
|
109
120
|
export declare const StandalonePublishPanel: FC<StandalonePublishPanelProps>;
|
|
110
121
|
//# sourceMappingURL=StandalonePublishPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandalonePublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/StandalonePublishPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAC/E,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"StandalonePublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/StandalonePublishPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAgC,MAAM,OAAO,CAAC;AAC/E,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAI5E,OAAO,EAAiB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,uJAAuJ;AACvJ,MAAM,WAAW,4BAA4B;IAC3C,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2FAA2F;IAC3F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,gDAAgD;AAChD,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;IAChC,mD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,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mEAAmE;IACnE,cAAc,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC/C,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,yCAAyC;IACzC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,0CAA0C;IAC1C,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,gHAAgH;IAChH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,2GAA2G;IAC3G,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gIAAgI;IAChI,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,4CAA4C;IAC5C,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,2CAA2C;IAC3C,MAAM,CAAC,EAAE,4BAA4B,CAAC;IACtC,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB;IACvB,MAAM,CAAC,EAAE,4BAA4B,CAAC;CACvC;AAED,qHAAqH;AACrH,MAAM,WAAW,4BAA4B;IAC3C,4DAA4D;IAC5D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4FAA4F;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qKAAqK;AACrK,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAgOlE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SaveToFolderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SaveToFolderPanel/SaveToFolderPanel.tsx"],"names":[],"mappings":"AAoBA,OAAO,EAAE,EAAE,EAA4B,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAMhF,qHAAqH;AACrH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA4OxD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { StandaloneSaveToFolderPanelProps } from '../../models/save-to-folder-panel';
|
|
3
|
+
/** End-edge slide-in panel for saving a resource to a chosen folder, with a summary view and a folder view. */
|
|
4
|
+
export declare const StandaloneSaveToFolderPanel: FC<StandaloneSaveToFolderPanelProps>;
|
|
5
|
+
//# sourceMappingURL=StandaloneSaveToFolderPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StandaloneSaveToFolderPanel.d.ts","sourceRoot":"","sources":["../../../src/components/SaveToFolderPanel/StandaloneSaveToFolderPanel.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAA+B,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AAK1F,+GAA+G;AAC/G,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAC1C,gCAAgC,CAyLjC,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
.
|
|
2
|
-
/*$vite$:1
|
|
1
|
+
._sheet_1jbwn_3._sheet_1jbwn_3{background:var(--pare-mobile-bg,var(--bg-layer-sunken,#eef1f7))}._inline_1jbwn_7{background:var(--pare-bg,var(--bg-layer-base,#f5f7fa))}._selectField_1jbwn_21.dial-kit-input{border-color:var(--pare-select-border,var(--stroke-tertiary,#e0e6f0))!important}@media (hover:hover){._selectField_1jbwn_21.dial-kit-input:hover:not(:focus-within){border-color:var(--pare-select-border-hover,var(--stroke-secondary,#d1dbea))!important}}._selectField_1jbwn_21.dial-kit-input:focus-within{border-color:var(--pare-select-border-focus,var(--stroke-accent,#1d4ed8))!important}._selectFieldOpen_1jbwn_33.dial-kit-input{border-color:var(--pare-select-border-open,var(--stroke-accent,#1d4ed8))!important}._ruleRow_nx0en_1{background:var(--par-rule-bg,var(--bg-layer-base,#f5f7fa))}._heading_nx0en_5{color:var(--par-heading-text,var(--text-primary,#161b2d))}._hint_nx0en_9{color:var(--par-hint-text,var(--text-primary,#161b2d))}._loading_nx0en_13{color:var(--par-loading-text,var(--text-primary,#161b2d))}._ruleText_nx0en_17{color:var(--par-rule-text,var(--text-primary,#161b2d))}._currentBadge_d0adf_1{border-color:var(--phl-badge-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--phl-badge-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--phl-badge-text,var(--text-accent,#1d4ed8))!important}._sharedCredentialsBadge_d0adf_7{border-color:var(--phl-shared-creds-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--phl-shared-creds-bg,var(--bg-layer-sunken,#eef1f7))!important;color:var(--phl-shared-creds-text,var(--text-secondary,#57647a))!important}._version_d0adf_13{color:var(--phl-version-text,var(--text-primary,#161b2d))}._date_d0adf_17{color:var(--phl-date-text,var(--text-secondary,#57647a))}._emptyState_d0adf_21{color:var(--phl-empty-text,var(--text-secondary,#57647a))}._stripedRow_d0adf_25{background:var(--phl-striped-bg,var(--bg-layer-sunken,#eef1f7))}._divider_1gs31_1{background:var(--pft-divider,var(--stroke-tertiary,#e0e6f0))}._tree_1gs31_17 .dial-kit-input{height:20px;padding-block:0;padding-inline:7px}._summaryTitle_zj3gd_1{color:var(--pp-summary-title-text,var(--text-primary,#161b2d))}._sectionHeading_zj3gd_5{color:var(--pp-heading-text,var(--text-primary,#161b2d))}._destination_zj3gd_9{color:var(--pp-destination-text,var(--text-secondary,#57647a))}._footer_dks1v_1{border-color:var(--pf-border,var(--stroke-tertiary,#e0e6f0))}._backdrop_16jmd_6._backdrop_16jmd_6{background:var(--spp-backdrop-bg,var(--bg-backdrop,#161b2d4d))}._panel_16jmd_10._panel_16jmd_10{background:var(--spp-panel-bg,var(--bg-layer-raised,#fcfcfc));border-inline-start-color:var(--spp-panel-border,var(--stroke-secondary,#d1dbea))}._divider_16jmd_15._divider_16jmd_15{border-block-end:1px solid var(--spp-divider-border,var(--stroke-tertiary,#e0e6f0))}._content_16jmd_19{scrollbar-width:thin;scrollbar-color:var(--spp-scrollbar-thumb,var(--stroke-secondary,#d1dbea)) transparent}._title_16jmd_24._title_16jmd_24{color:var(--spp-title-text,var(--text-primary,#161b2d))}._heading_vk731_1{color:var(--stf-heading-text,var(--text-primary,#161b2d))}._destination_vk731_5{color:var(--stf-destination-text,var(--text-secondary,#57647a))}._backdrop_1ie8s_6._backdrop_1ie8s_6{background:var(--sstf-backdrop-bg,var(--bg-backdrop,#161b2d4d))}._panel_1ie8s_10._panel_1ie8s_10{background:var(--sstf-panel-bg,var(--bg-layer-raised,#fcfcfc));border-inline-start-color:var(--sstf-panel-border,var(--stroke-secondary,#d1dbea))}._divider_1ie8s_15._divider_1ie8s_15{border-block-end:1px solid var(--sstf-divider-border,var(--stroke-tertiary,#e0e6f0))}._footer_1ie8s_19{border-color:var(--sstf-divider-border,var(--stroke-tertiary,#e0e6f0))}._content_1ie8s_23{scrollbar-width:thin;scrollbar-color:var(--sstf-scrollbar-thumb,var(--stroke-secondary,#d1dbea)) transparent}._title_1ie8s_28._title_1ie8s_28{color:var(--sstf-title-text,var(--text-primary,#161b2d))}
|
|
2
|
+
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.my-2{margin-block:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.inline{display:inline}.h-px{height:1px}.min-h-0{min-height:0}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[22px\]{padding:22px}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-\[22px\]{padding-inline:22px}.py-2{padding-block:.5rem}.py-4{padding-block:1rem}.py-\[11px\]{padding-block:11px}.text-center{text-align:center}.whitespace-nowrap{white-space:nowrap}.opacity-60{opacity:.6}.blur{--tw-blur:blur(8px);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,)}.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,)}.outline-none{--tw-outline-style:none;outline-style:none}.rtl\:flex-row-reverse:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where(:dir(rtl),[dir=rtl],[dir=rtl] *){justify-content:flex-start}@media (max-width:1279px){.mobile\:flex-1{flex:1}}@media (min-width:1280px){.desktop\:mt-2{margin-top:.5rem}.desktop\:px-3\.5{padding-inline:.875rem}}@media (min-width:768px) and (not (min-width:1280px)){.tablet\:w-\[540px\]\!{width:540px!important}.tablet\:max-w-\[calc\(100\%-32px\)\]\!{max-width:calc(100% - 32px)!important}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
|
package/index.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ export type { PublicationRule, PublishDerivationInput, PublishDerivedState, Publ
|
|
|
3
3
|
export { derivePublishState } from './utils/publish-state';
|
|
4
4
|
export { formatPublishedDate } from './utils/format-published-date';
|
|
5
5
|
export { usePublishFlow } from './utils/use-publish-flow';
|
|
6
|
+
export { usePublishFolderView } from './utils/use-publish-folder-view';
|
|
7
|
+
export type { UsePublishFolderViewOptions, UsePublishFolderViewResult, } from './utils/use-publish-folder-view';
|
|
8
|
+
export { PublishPanelView } from './types/publish-panel';
|
|
6
9
|
export type { PublishFlowItem, UsePublishFlowOptions, UsePublishFlowResult, } from './utils/use-publish-flow';
|
|
7
10
|
export { collectFolderKeys, filterFolderTree, fromFolderPathKey, getSiblingFolderNames, getUniqueFolderName, mergeFolderPaths, sortFolderTree, toDialFileTree, toFolderPathKey, validateFolderName, } from './utils/publish-folder-tree';
|
|
8
11
|
export type { FolderNameValidationMessages } from './utils/publish-folder-tree';
|
|
@@ -23,4 +26,9 @@ export type { PublishFooterColors, PublishFooterProps, PublishFooterLabels, } fr
|
|
|
23
26
|
export { StandalonePublishPanel } from './components/PublishPanel/StandalonePublishPanel';
|
|
24
27
|
export type { StandalonePublishPanelColors, StandalonePublishPanelProps, StandalonePublishPanelLabels, } from './components/PublishPanel/StandalonePublishPanel';
|
|
25
28
|
export { PUBLISH_PANEL_CLASS } from './constants/public-class-names';
|
|
29
|
+
export type { FolderDestination, FolderDestinationRoot, } from './models/folder-destination';
|
|
30
|
+
export { SaveToFolderView, SaveVersionMode } from './types/save-to-folder';
|
|
31
|
+
export { SaveToFolderPanel } from './components/SaveToFolderPanel/SaveToFolderPanel';
|
|
32
|
+
export { StandaloneSaveToFolderPanel } from './components/SaveToFolderPanel/StandaloneSaveToFolderPanel';
|
|
33
|
+
export type { SaveToFolderAccessRulesProps, SaveToFolderPanelBaseProps, SaveToFolderPanelColors, SaveToFolderPanelLabels, SaveToFolderPanelProps, SaveToFolderPanelStyles, SaveToFolderVersionProps, StandaloneSaveToFolderPanelColors, StandaloneSaveToFolderPanelLabels, StandaloneSaveToFolderPanelProps, } from './models/save-to-folder-panel';
|
|
26
34
|
//# 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":"AACA,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,YAAY,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAGhF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AACvG,YAAY,EACV,6BAA6B,EAC7B,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,GAC9B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,YAAY,EACV,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,oDAAoD,CAAC;AAC5D,YAAY,EACV,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,YAAY,EACV,wBAAwB,EACxB,uB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