@epam/ai-dial-publish-panel 1.4.0-dev.96 → 1.5.0-dev.2

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.
Files changed (44) hide show
  1. package/components/PublishDependenciesList/PublishDependenciesList.d.ts.map +1 -1
  2. package/components/PublishPanel/PublishPanel.d.ts +35 -19
  3. package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
  4. package/components/PublishPanel/StandalonePublishPanel.d.ts +10 -14
  5. package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
  6. package/components/SaveToFolderPanel/StandaloneSaveToFolderPanel.d.ts.map +1 -1
  7. package/constants/publish-dependencies.d.ts +3 -0
  8. package/constants/publish-dependencies.d.ts.map +1 -0
  9. package/index.css +2 -2
  10. package/index.d.ts +5 -12
  11. package/index.d.ts.map +1 -1
  12. package/index.js +700 -1269
  13. package/models/folder-destination.d.ts +0 -2
  14. package/models/folder-destination.d.ts.map +1 -1
  15. package/models/publish-dependencies-list.d.ts +25 -2
  16. package/models/publish-dependencies-list.d.ts.map +1 -1
  17. package/models/publish-panel-styles.d.ts +4 -5
  18. package/models/publish-panel-styles.d.ts.map +1 -1
  19. package/models/publish.d.ts +6 -19
  20. package/models/publish.d.ts.map +1 -1
  21. package/models/save-to-folder-panel.d.ts +51 -89
  22. package/models/save-to-folder-panel.d.ts.map +1 -1
  23. package/package.json +4 -4
  24. package/types/publish-panel.d.ts +1 -1
  25. package/types/publish-panel.d.ts.map +1 -1
  26. package/types/save-to-folder.d.ts +0 -7
  27. package/types/save-to-folder.d.ts.map +1 -1
  28. package/utils/publish-state.d.ts.map +1 -1
  29. package/utils/use-publish-flow.d.ts +53 -26
  30. package/utils/use-publish-flow.d.ts.map +1 -1
  31. package/components/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts +0 -5
  32. package/components/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts.map +0 -1
  33. package/components/PublishAccessRules/PublishAccessRules.d.ts +0 -83
  34. package/components/PublishAccessRules/PublishAccessRules.d.ts.map +0 -1
  35. package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -5
  36. package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
  37. package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts +0 -5
  38. package/components/SaveToFolderPanel/SaveToFolderPanel.d.ts.map +0 -1
  39. package/models/publish-access-rule-editor.d.ts +0 -79
  40. package/models/publish-access-rule-editor.d.ts.map +0 -1
  41. package/models/publish-access-rules-styles.d.ts +0 -25
  42. package/models/publish-access-rules-styles.d.ts.map +0 -1
  43. package/models/publish-folders-tree.d.ts +0 -73
  44. package/models/publish-folders-tree.d.ts.map +0 -1
@@ -1,83 +0,0 @@
1
- import { FC } from 'react';
2
- import { PublicationRule } from '../../models/publish';
3
- import { PublishAccessRuleEditorLabels } from '../../models/publish-access-rule-editor';
4
- import { PublishAccessRulesStyles } from '../../models/publish-access-rules-styles';
5
- /** Text overrides for all user-visible strings in {@link PublishAccessRules}. */
6
- export interface PublishAccessRulesLabels {
7
- /** Section heading. Default: `'Allow access if all match'`. */
8
- heading?: string;
9
- /** Hint under the heading naming the destination folder the rules apply to; `{folder}` is replaced. Default: `'These rules apply to "{folder}". Selecting another folder loads that folder\'s own rules instead.'`. */
10
- folderScopeHint?: string;
11
- /** Hint under the heading shown while no destination folder is selected. Default: `'Access rules apply to the destination folder — pick a folder above to set its rules.'`. */
12
- noFolderScopeHint?: string;
13
- /** Warning shown when rules exist while no destination folder is selected. Default: `'These rules have no destination yet. Select a folder above to apply them.'`. */
14
- rulesWithoutFolderWarning?: string;
15
- /** Hint next to a disabled "Add rule" trigger once `maxRules` is reached; `{max}` is replaced. Default: `'Rule limit reached ({max}). Remove a rule to add another.'`. */
16
- maxRulesReachedLabel?: string;
17
- /** Label for the trigger that opens the single-rule editor. Default: `'Add rule'`. */
18
- addRuleLabel?: string;
19
- /** Label for the control that removes every rule; shown only when at least one rule exists. Default: `'Clear all'`. */
20
- clearAllLabel?: string;
21
- /** Separator joining a rule's targets. Default: `'Or'`. */
22
- orSeparatorLabel?: string;
23
- /** Accessible name template for a chip's remove control; `{source}` and `{targets}` are replaced. Default: `'Remove rule for {source}: {targets}'`. */
24
- removeRuleAriaLabelTemplate?: string;
25
- /** Chip label for an `EQUAL` rule. Default: `'Equal'`. */
26
- equalFunctionLabel?: string;
27
- /** Chip label for a `CONTAIN` rule. Default: `'Contain'`. */
28
- containFunctionLabel?: string;
29
- /** Chip label for a `REGEX` rule. Default: `'Regex'`. */
30
- regexFunctionLabel?: string;
31
- /** Shown while existing rules are being fetched for the selected folder. Default: `'Loading existing rules…'`. */
32
- loadingLabel?: string;
33
- /** Shown when fetching existing rules for the selected folder failed. Default: `"Couldn't load existing rules for this folder. You can still add rules manually."`. */
34
- loadErrorLabel?: string;
35
- /** Live-region announcement after a rule is added. Default: `'Rule added.'`. */
36
- ruleAddedAnnouncement?: string;
37
- /** Live-region announcement after a rule is removed. Default: `'Rule removed.'`. */
38
- ruleRemovedAnnouncement?: string;
39
- /** Live-region announcement after all rules are cleared. Default: `'All rules cleared.'`. */
40
- rulesClearedAnnouncement?: string;
41
- /** Live-region announcement after existing rules are loaded for a selected folder. Default: `'Existing rules loaded for the selected folder.'`. */
42
- rulesLoadedAnnouncement?: string;
43
- /** Text overrides passed through to the nested single-rule editor. */
44
- editorLabels?: PublishAccessRuleEditorLabels;
45
- }
46
- /** Props for {@link PublishAccessRules}. */
47
- export interface PublishAccessRulesProps {
48
- /** Current access rules, combined with AND. */
49
- rules: PublicationRule[];
50
- /** Called with the full next rules array on add, remove, or clear. */
51
- onRulesChange: (rules: PublicationRule[]) => void;
52
- /** Options offered in the single-rule editor's source picker. */
53
- sourceOptions: string[];
54
- /** Name of the destination folder these rules apply to; `undefined` while no folder is selected. */
55
- folderName?: string;
56
- /** Disables every control in the section, e.g. while a publish request is in flight. Default: `false`. */
57
- disabled?: boolean;
58
- /** Whether existing rules are currently being fetched for the selected folder. Default: `false`. */
59
- isLoading?: boolean;
60
- /** Whether the most recent existing-rules fetch failed. Default: `false`. */
61
- hasLoadError?: boolean;
62
- /** Maximum number of rules allowed. Default: `20`. */
63
- maxRules?: number;
64
- /** Maximum number of targets allowed per EQUAL/CONTAIN rule. Default: `20`. */
65
- maxTargetsPerRule?: number;
66
- /** Text overrides for all user-visible strings. */
67
- labels?: PublishAccessRulesLabels;
68
- /** Typography class for the section heading. Default: `'dial-body-semi-text'`. */
69
- headingClassName?: string;
70
- /** Typography class for the folder-scope and rule-limit hints. Default: `'dial-small-text'`. */
71
- hintClassName?: string;
72
- /** Typography class for the loading message. Default: `'dial-small-text'`. */
73
- loadingClassName?: string;
74
- /** Typography class for each rule chip's text. Default: `'dial-small-text'`. */
75
- ruleTextClassName?: string;
76
- /** Typography class for the emphasised rule source inside each chip. Default: `'dial-small-semi-text'`. */
77
- ruleSourceClassName?: string;
78
- /** Style overrides. */
79
- styles?: PublishAccessRulesStyles;
80
- }
81
- /** Renders access rules with controls to add, remove, and clear them. */
82
- export declare const PublishAccessRules: FC<PublishAccessRulesProps>;
83
- //# sourceMappingURL=PublishAccessRules.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublishAccessRules.d.ts","sourceRoot":"","sources":["../../../src/components/PublishAccessRules/PublishAccessRules.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,EAAE,EAAsC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAA2B,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AAMzF,iFAAiF;AACjF,MAAM,WAAW,wBAAwB;IACvC,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uNAAuN;IACvN,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+KAA+K;IAC/K,iBAAiB,CAAC,EAAE,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AC,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 +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":"AAoBA,OAAO,EAAE,EAAE,EAA4B,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAOhF,qHAAqH;AACrH,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAuQxD,CAAC"}
@@ -1,79 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { PublicationRule } from './publish';
3
- /** Text overrides for the access-rule editor. */
4
- export interface PublishAccessRuleEditorLabels {
5
- /** Source picker label. Defaults to `'Source'`. */
6
- sourceLabel?: string;
7
- /** Source picker placeholder. Defaults to `'Select...'`. */
8
- sourcePlaceholder?: string;
9
- /** Function picker label. Defaults to `'Function'`. */
10
- functionLabel?: string;
11
- /** EQUAL option label. Defaults to `'Equal'`. */
12
- equalOptionLabel?: string;
13
- /** CONTAIN option label. Defaults to `'Contain'`. */
14
- containOptionLabel?: string;
15
- /** REGEX option label. Defaults to `'Regex'`. */
16
- regexOptionLabel?: string;
17
- /** Targets field label. Defaults to `'Targets'`. */
18
- targetsLabel?: string;
19
- /** Targets field placeholder. Defaults to `'Add a target'`. */
20
- targetsPlaceholder?: string;
21
- /** Targets field hint. Defaults to `'Press Enter or comma to add a target.'`. */
22
- targetsHintLabel?: string;
23
- /** Pattern field label. Defaults to `'Pattern'`. */
24
- patternLabel?: string;
25
- /** Pattern field placeholder. Defaults to `'Enter a regular expression'`. */
26
- patternPlaceholder?: string;
27
- /** Invalid-regex message. Defaults to `'Enter a valid regular expression.'`. */
28
- invalidRegexError?: string;
29
- /** Required picker message. Defaults to `'This field is required.'`. */
30
- requiredFieldError?: string;
31
- /** Required targets message. Defaults to `'Add at least one target.'`. */
32
- targetsRequiredError?: string;
33
- /** Save action label. Defaults to `'Save'`. */
34
- saveLabel?: string;
35
- /** Cancel action label. Defaults to `'Cancel'`. */
36
- cancelLabel?: string;
37
- /** Accessible name of the editor — the bottom sheet below the desktop breakpoint, the inline group on desktop. Defaults to `'Add access rule'`. */
38
- dialogAriaLabel?: string;
39
- }
40
- /** Color overrides for the access-rule editor. */
41
- export interface PublishAccessRuleEditorColors {
42
- /** Bottom-sheet background below the desktop breakpoint. Defaults to `--bg-layer-sunken`. */
43
- mobileBackground?: string;
44
- /** Desktop panel background. Defaults to `--bg-layer-base`. */
45
- background?: string;
46
- /** Picker border color. Defaults to `--stroke-tertiary`. */
47
- selectBorder?: string;
48
- /** Picker hover border color. Defaults to `--stroke-secondary`. */
49
- selectBorderHover?: string;
50
- /** Open picker border color. Defaults to `--stroke-accent`. */
51
- selectBorderOpen?: string;
52
- /** Focused picker border color. Defaults to `--stroke-accent`. */
53
- selectBorderFocus?: string;
54
- }
55
- /** Style overrides for the access-rule editor. */
56
- export interface PublishAccessRuleEditorStyles {
57
- /** Color overrides. */
58
- colors?: PublishAccessRuleEditorColors;
59
- /** Additional CSS custom properties applied to the editor root (the sheet panel below the desktop breakpoint). */
60
- cssVars?: CSSProperties;
61
- }
62
- /** Props for the access-rule editor. */
63
- export interface PublishAccessRuleEditorProps {
64
- /** Options offered in the source picker. */
65
- sourceOptions: string[];
66
- /** Called with the completed rule. */
67
- onSave: (rule: PublicationRule) => void;
68
- /** Called when editing is cancelled. */
69
- onCancel: () => void;
70
- /** Disables every control. Defaults to `false`. */
71
- disabled?: boolean;
72
- /** Maximum target count. Defaults to `20`. */
73
- maxTargets?: number;
74
- /** Text overrides. */
75
- labels?: PublishAccessRuleEditorLabels;
76
- /** Style overrides. */
77
- styles?: PublishAccessRuleEditorStyles;
78
- }
79
- //# sourceMappingURL=publish-access-rule-editor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish-access-rule-editor.d.ts","sourceRoot":"","sources":["../../src/models/publish-access-rule-editor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,iDAAiD;AACjD,MAAM,WAAW,6BAA6B;IAC5C,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uDAAuD;IACvD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iDAAiD;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iFAAiF;IACjF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mJAAmJ;IACnJ,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+DAA+D;IAC/D,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,kHAAkH;IAClH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,wCAAwC;AACxC,MAAM,WAAW,4BAA4B;IAC3C,4CAA4C;IAC5C,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,sCAAsC;IACtC,MAAM,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IACxC,wCAAwC;IACxC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACtB,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
@@ -1,25 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { PublishAccessRuleEditorStyles } from './publish-access-rule-editor';
3
- /** Color overrides for the access-rules section. */
4
- export interface PublishAccessRulesColors {
5
- /** Rule row background. Defaults to `--bg-layer-base`. */
6
- ruleBackground?: string;
7
- /** Section heading text color. Defaults to `--text-primary`. */
8
- headingText?: string;
9
- /** Hint text color. Defaults to `--text-primary`. */
10
- hintText?: string;
11
- /** Loading message text color. Defaults to `--text-primary`. */
12
- loadingText?: string;
13
- /** Rule chip text color. Defaults to `--text-primary`. */
14
- ruleText?: string;
15
- }
16
- /** Style overrides for the access-rules section and its editor. */
17
- export interface PublishAccessRulesStyles {
18
- /** Color overrides for the section. */
19
- colors?: PublishAccessRulesColors;
20
- /** Style overrides forwarded to the nested rule editor. */
21
- editor?: PublishAccessRuleEditorStyles;
22
- /** Additional CSS custom properties applied to the section root. */
23
- cssVars?: CSSProperties;
24
- }
25
- //# sourceMappingURL=publish-access-rules-styles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish-access-rules-styles.d.ts","sourceRoot":"","sources":["../../src/models/publish-access-rules-styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAElF,oDAAoD;AACpD,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,mEAAmE;AACnE,MAAM,WAAW,wBAAwB;IACvC,uCAAuC;IACvC,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAClC,2DAA2D;IAC3D,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,oEAAoE;IACpE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
@@ -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,s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