@epam/ai-dial-publish-panel 1.1.0-dev.99 → 1.2.0-dev.1

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 (32) hide show
  1. package/components/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts +2 -72
  2. package/components/PublishAccessRuleEditor/PublishAccessRuleEditor.d.ts.map +1 -1
  3. package/components/PublishAccessRules/PublishAccessRules.d.ts +19 -23
  4. package/components/PublishAccessRules/PublishAccessRules.d.ts.map +1 -1
  5. package/components/PublishFoldersTree/PublishFoldersTree.d.ts +2 -60
  6. package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +1 -1
  7. package/components/PublishHistoryList/PublishHistoryList.d.ts +1 -1
  8. package/components/PublishPanel/PublishPanel.d.ts +27 -19
  9. package/components/PublishPanel/PublishPanel.d.ts.map +1 -1
  10. package/components/PublishPanel/StandalonePublishPanel.d.ts +10 -0
  11. package/components/PublishPanel/StandalonePublishPanel.d.ts.map +1 -1
  12. package/index.css +1 -1
  13. package/index.d.ts +8 -6
  14. package/index.d.ts.map +1 -1
  15. package/index.js +2919 -51317
  16. package/models/publish-access-rule-editor.d.ts +83 -0
  17. package/models/publish-access-rule-editor.d.ts.map +1 -0
  18. package/models/publish-access-rules-styles.d.ts +25 -0
  19. package/models/publish-access-rules-styles.d.ts.map +1 -0
  20. package/models/publish-folders-tree.d.ts +60 -0
  21. package/models/publish-folders-tree.d.ts.map +1 -0
  22. package/models/publish-panel-styles.d.ts +32 -0
  23. package/models/publish-panel-styles.d.ts.map +1 -0
  24. package/models/publish.d.ts +5 -4
  25. package/models/publish.d.ts.map +1 -1
  26. package/package.json +13 -9
  27. package/utils/focus.d.ts +3 -0
  28. package/utils/focus.d.ts.map +1 -0
  29. package/utils/publish-folder-tree.d.ts +8 -0
  30. package/utils/publish-folder-tree.d.ts.map +1 -1
  31. package/utils/use-publish-flow.d.ts +31 -3
  32. package/utils/use-publish-flow.d.ts.map +1 -1
@@ -0,0 +1,83 @@
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
+ /** Dialog accessible label. Defaults to `'Add access rule'`. */
38
+ dialogAriaLabel?: string;
39
+ }
40
+ /** Color overrides for the access-rule editor. */
41
+ export interface PublishAccessRuleEditorColors {
42
+ /** Full-screen mobile background. Defaults to `--bg-layer-sunken`. */
43
+ mobileBackground?: string;
44
+ /** Desktop panel background. Defaults to `--bg-layer-base`. */
45
+ background?: string;
46
+ /** Validation error text color. Defaults to `--text-error`. */
47
+ errorText?: string;
48
+ /** Picker border color. Defaults to `--stroke-tertiary`. */
49
+ selectBorder?: string;
50
+ /** Picker hover border color. Defaults to `--stroke-secondary`. */
51
+ selectBorderHover?: string;
52
+ /** Open picker border color. Defaults to `--stroke-accent`. */
53
+ selectBorderOpen?: string;
54
+ /** Focused picker border color. Defaults to `--stroke-accent`. */
55
+ selectBorderFocus?: string;
56
+ }
57
+ /** Style overrides for the access-rule editor. */
58
+ export interface PublishAccessRuleEditorStyles {
59
+ /** Color overrides. */
60
+ colors?: PublishAccessRuleEditorColors;
61
+ /** Additional CSS custom properties applied to the editor root. */
62
+ cssVars?: CSSProperties;
63
+ }
64
+ /** Props for the access-rule editor. */
65
+ export interface PublishAccessRuleEditorProps {
66
+ /** Options offered in the source picker. */
67
+ sourceOptions: string[];
68
+ /** Called with the completed rule. */
69
+ onSave: (rule: PublicationRule) => void;
70
+ /** Called when editing is cancelled. */
71
+ onCancel: () => void;
72
+ /** Disables every control. Defaults to `false`. */
73
+ disabled?: boolean;
74
+ /** Maximum target count. Defaults to `20`. */
75
+ maxTargets?: number;
76
+ /** Text overrides. */
77
+ labels?: PublishAccessRuleEditorLabels;
78
+ /** Typography class for validation errors. Defaults to `'dial-small-text'`. */
79
+ errorClassName?: string;
80
+ /** Style overrides. */
81
+ styles?: PublishAccessRuleEditorStyles;
82
+ }
83
+ //# sourceMappingURL=publish-access-rule-editor.d.ts.map
@@ -0,0 +1 @@
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;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IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;IACvC,mEAAmE;IACnE,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,+EAA+E;IAC/E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB;IACvB,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
@@ -0,0 +1,25 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,60 @@
1
+ import { CSSProperties } from 'react';
2
+ import { PublishFolderNode } from './publish';
3
+ /** Color overrides for the publish destination folder tree. */
4
+ export interface PublishFoldersTreeColors {
5
+ /** Divider color above the folder-creation controls. Defaults to `--stroke-tertiary`. */
6
+ divider?: string;
7
+ }
8
+ /** Style overrides for the publish destination folder tree. */
9
+ export interface PublishFoldersTreeStyles {
10
+ /** Color overrides. */
11
+ colors?: PublishFoldersTreeColors;
12
+ /** Additional class name applied to the component root. */
13
+ className?: string;
14
+ /** Additional CSS custom properties applied to the component root. */
15
+ cssVars?: CSSProperties;
16
+ }
17
+ /** Props for the publish destination folder tree. */
18
+ export interface PublishFoldersTreeProps {
19
+ /** Root-level folder nodes. */
20
+ items: PublishFolderNode[];
21
+ /** Currently selected destination path; `undefined` means no selection and `[]` means the bucket root. */
22
+ selectedPath?: string[];
23
+ /** Called when the selected destination changes. */
24
+ onSelectedPathChange: (path: string[] | undefined) => void;
25
+ /** Called when a new folder name is confirmed. */
26
+ onCreateFolder: (parentPath: string[], name: string) => Promise<void>;
27
+ /** Host-owned search query used to filter the tree. */
28
+ searchQuery: string;
29
+ /** Disables every control. Defaults to `false`. */
30
+ disabled?: boolean;
31
+ /** Label for the folder-creation trigger. Defaults to `'Create new folder'`. */
32
+ createFolderLabel?: string;
33
+ /** Label for the action that cancels folder creation. Defaults to `'Cancel'`. */
34
+ cancelCreatingFolderLabel?: string;
35
+ /** Label for the context-menu action that creates a sibling folder. Defaults to `'Add sibling'`. */
36
+ addSiblingFolderLabel?: string;
37
+ /** Label for the context-menu action that creates a child folder. Defaults to `'Add child'`. */
38
+ addChildFolderLabel?: string;
39
+ /** Initial folder name unless a valid unmatched search query is available. Defaults to `'New folder'`. */
40
+ newFolderDefaultName?: string;
41
+ /** Empty-state message with a `{query}` placeholder. Defaults to `'No folders match "{query}".'`. */
42
+ noResultsLabel?: string;
43
+ /** Validation message for an empty folder name. Defaults to `'Folder name cannot be empty.'`. */
44
+ emptyFolderNameError?: string;
45
+ /** Validation message for a forbidden folder name. Defaults to `'Folder name contains invalid characters.'`. */
46
+ invalidFolderNameError?: string;
47
+ /** Validation message for a duplicate folder name. Defaults to `'A folder with this name already exists.'`. */
48
+ duplicateFolderNameError?: string;
49
+ /** Label for the selectable bucket root. Defaults to `'Organization'`. */
50
+ rootLabel?: string;
51
+ /** Externally controlled expanded folder path keys. */
52
+ expandedPaths?: Set<string>;
53
+ /** Called when expanded folder path keys change. */
54
+ onExpandedPathsChange?: (paths: Set<string>) => void;
55
+ /** Folder path keys currently being fetched by the host. */
56
+ loadingPaths?: Set<string>;
57
+ /** Style overrides. */
58
+ styles?: PublishFoldersTreeStyles;
59
+ }
60
+ //# sourceMappingURL=publish-folders-tree.d.ts.map
@@ -0,0 +1 @@
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,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,sEAAsE;IACtE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,qDAAqD;AACrD,MAAM,WAAW,uBAAuB;IACtC,+BAA+B;IAC/B,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,0GAA0G;IAC1G,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oDAAoD;IACpD,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,KAAK,IAAI,CAAC;IAC3D,kDAAkD;IAClD,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,uDAAuD;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iFAAiF;IACjF,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gGAAgG;IAChG,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0GAA0G;IAC1G,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qGAAqG;IACrG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,gHAAgH;IAChH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+GAA+G;IAC/G,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACrD,4DAA4D;IAC5D,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,uBAAuB;IACvB,MAAM,CAAC,EAAE,wBAAwB,CAAC;CACnC"}
@@ -0,0 +1,32 @@
1
+ import { CSSProperties } from 'react';
2
+ import { PublishAccessRulesStyles } from './publish-access-rules-styles';
3
+ import { PublishFoldersTreeStyles } from './publish-folders-tree';
4
+ /** Color overrides for the publish panel body. */
5
+ export interface PublishPanelColors {
6
+ /** Summary row border color. Defaults to `--stroke-tertiary`. */
7
+ summaryBorder?: string;
8
+ /** Summary row background color. Defaults to `--bg-layer-sunken`. */
9
+ summaryBackground?: string;
10
+ /** Version tag border color. Defaults to `--stroke-tertiary`. */
11
+ summaryVersionTagBorder?: string;
12
+ /** Version tag background color. Defaults to `--bg-control-accent-alpha`. */
13
+ summaryVersionTagBackground?: string;
14
+ /** Version tag text color. Defaults to `--text-accent`. */
15
+ summaryVersionTagText?: string;
16
+ /** Default summary title text color. Defaults to `--text-primary`. */
17
+ summaryTitleText?: string;
18
+ /** Section heading text color. Defaults to `--text-primary`. */
19
+ headingText?: string;
20
+ }
21
+ /** Style overrides for the publish panel body and its nested components. */
22
+ export interface PublishPanelStyles {
23
+ /** Color overrides for the panel body. */
24
+ colors?: PublishPanelColors;
25
+ /** Style overrides forwarded to the destination folder tree. */
26
+ folderTree?: PublishFoldersTreeStyles;
27
+ /** Style overrides forwarded to the access-rules section. */
28
+ accessRules?: PublishAccessRulesStyles;
29
+ /** Additional CSS custom properties applied to the panel body root. */
30
+ cssVars?: CSSProperties;
31
+ }
32
+ //# sourceMappingURL=publish-panel-styles.d.ts.map
@@ -0,0 +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;IAC3B,iEAAiE;IACjE,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,6EAA6E;IAC7E,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,2DAA2D;IAC3D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sEAAsE;IACtE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,4EAA4E;AAC5E,MAAM,WAAW,kBAAkB;IACjC,0CAA0C;IAC1C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,gEAAgE;IAChE,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,6DAA6D;IAC7D,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC,uEAAuE;IACvE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
@@ -1,3 +1,4 @@
1
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
1
2
  /** A single folder in the "publish to folder" destination tree. */
2
3
  export interface PublishFolderNode {
3
4
  /** Full path segments to this folder, outermost first. Also serves as the unique key. */
@@ -20,8 +21,6 @@ export interface PublishHistoryEntry {
20
21
  version?: string;
21
22
  /** Unix timestamp (ms) when this version was published. */
22
23
  publishedAt: number;
23
- /** Display name of the user who published this version. */
24
- publishedBy: string;
25
24
  /** Folder path segments this version was published to, outermost first. */
26
25
  folderPath: string[];
27
26
  }
@@ -36,10 +35,12 @@ export interface PublishHistoryEntry {
36
35
  export interface PublishResourceSummary {
37
36
  /** Display title/name shown in the summary row. */
38
37
  title: string;
39
- /** Icon URL, if any. */
40
- iconUrl?: string;
41
38
  /** Version, when the resource is versioned. `undefined` for conversations. */
42
39
  version?: string;
40
+ /** Entity category. When set, the summary row renders the entity header with icon and type label instead of the title-only row. */
41
+ type?: CatalogEntityType;
42
+ /** URL of the entity icon, used only by the entity-header row. */
43
+ iconUrl?: string;
43
44
  }
44
45
  /** Combining function applied across a rule's `targets`. */
45
46
  export declare enum PublicationRuleFunction {
@@ -1 +1 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../src/models/publish.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,WAAW,iBAAiB;IAChC,yFAAyF;IACzF,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB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;IAC1E,QAAQ,aAAa;IACrB,6DAA6D;IAC7D,WAAW,gBAAgB;CAC5B;AAED,iFAAiF;AACjF,MAAM,WAAW,sBAAsB;IACrC,0DAA0D;IAC1D,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;;;OAIG;IACH,8BAA8B,EAAE,OAAO,CAAC;IACxC,mEAAmE;IACnE,cAAc,EAAE,OAAO,CAAC;IACxB,wDAAwD;IACxD,YAAY,EAAE,OAAO,CAAC;IACtB,qDAAqD;IACrD,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,8DAA8D;IAC9D,WAAW,EAAE,kBAAkB,CAAC;IAChC,6CAA6C;IAC7C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,uEAAuE;IACvE,eAAe,EAAE,OAAO,CAAC;CAC1B"}
package/package.json CHANGED
@@ -1,29 +1,33 @@
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.1.0-dev.99",
4
+ "version": "1.2.0-dev.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
+ "sideEffects": [
8
+ "**/*.css",
9
+ "**/*.scss"
10
+ ],
7
11
  "main": "./index.js",
8
12
  "module": "./index.js",
9
13
  "types": "./index.d.ts",
10
14
  "exports": {
11
15
  "./package.json": "./package.json",
12
- "./styles.css": "./style.css",
16
+ "./styles.css": "./index.css",
13
17
  ".": {
14
18
  "types": "./index.d.ts",
15
19
  "import": "./index.js",
16
20
  "default": "./index.js"
17
21
  }
18
22
  },
23
+ "dependencies": {
24
+ "@tabler/icons-react": "^3.44.0"
25
+ },
19
26
  "peerDependencies": {
20
- "react": "^19.0.0",
21
- "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-sidebar": "1.1.0-dev.99",
23
- "@epam/ai-dial-chat-shared": "1.1.0-dev.99",
24
- "@epam/ai-dial-kit": "1.1.0-dev.99",
25
- "@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
26
- "@epam/ai-dial-react-file-manager": "^0.1.0-dev.17"
27
+ "react": "^19.2.8",
28
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.1",
29
+ "@epam/ai-dial-ui-kit": "^0.14.2",
30
+ "@epam/ai-dial-react-file-manager": "^0.2.0"
27
31
  },
28
32
  "repository": {
29
33
  "type": "git",
@@ -0,0 +1,3 @@
1
+ /** Elements inside `container` that Tab can reach, in document order. */
2
+ export declare const getFocusableElements: (container: HTMLElement) => HTMLElement[];
3
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/utils/focus.ts"],"names":[],"mappings":"AA8BA,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,GAAI,WAAW,WAAW,KAAG,WAAW,EAGlD,CAAC"}
@@ -6,6 +6,14 @@ import { PublishFolderNode } from '../models/publish';
6
6
  * descendants. Matching is case-insensitive substring matching.
7
7
  */
8
8
  export declare const filterFolderTree: (items: PublishFolderNode[], query: string) => PublishFolderNode[];
9
+ /** Returns `items` ordered by folder name at every level; the input array and its nodes are left untouched. */
10
+ export declare const sortFolderTree: (items: PublishFolderNode[]) => PublishFolderNode[];
11
+ /**
12
+ * Returns `items` with a folder node added for every path in `paths` that is
13
+ * not already present, creating any missing ancestor along the way. Existing
14
+ * nodes and their children are preserved as-is.
15
+ */
16
+ export declare const mergeFolderPaths: (items: PublishFolderNode[], paths: string[][]) => PublishFolderNode[];
9
17
  /** Returns every folder path (joined by "/") in `items`, recursively. */
10
18
  export declare const collectFolderKeys: (items: PublishFolderNode[]) => string[];
11
19
  /** Joins folder path segments into the string path key used by `DialFile`/`DialFoldersTree`. */
@@ -1 +1 @@
1
- {"version":3,"file":"publish-folder-tree.d.ts","sourceRoot":"","sources":["../../src/utils/publish-folder-tree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AAO,MAAM,qBAAqB,GAChC,OAAO,iBAAiB,EAAE,EAC1B,YAAY,MAAM,EAAE,KACnB,MAAM,EAoBR,CAAC"}
@@ -25,10 +25,31 @@ export interface UsePublishFlowOptions<TItem extends PublishFlowItem> {
25
25
  * error callout is surfaced.
26
26
  */
27
27
  onCreateFolder?: (parentPath: string[], name: string) => void | Promise<void>;
28
- /** Called with the destination folder path and current rules when the user confirms publish/update. */
29
- onPublish: (item: TItem, folderPath: string[], rules: PublicationRule[]) => Promise<void>;
28
+ /**
29
+ * Initial value for the publication's display author, and the value
30
+ * `reset` restores.
31
+ *
32
+ * The hook cannot resolve this itself: who the signed-in user is, is host
33
+ * knowledge, and this library holds no notion of a session. The host
34
+ * passes its own resolved display name here. It may arrive after the first
35
+ * render (a profile still loading) or change (a different session), which
36
+ * is why {@link UsePublishFlowResult.author} re-syncs from it while the
37
+ * user has not edited the field.
38
+ *
39
+ * Defaults to `''`, which leaves the decision entirely to the host's own
40
+ * publish call.
41
+ */
42
+ defaultAuthor?: string;
43
+ /** Called with the destination folder path, current rules, and trimmed display author when the user confirms publish/update. */
44
+ onPublish: (item: TItem, folderPath: string[], rules: PublicationRule[], author: string) => Promise<void>;
30
45
  /** Called after a successful publish; the host surfaces its own success notification. */
31
46
  onPublishSuccess?: (item: TItem, folderPath: string[]) => void;
47
+ /**
48
+ * Called with the rejection reason when `onPublish` fails, before
49
+ * `handleSubmit` resolves to `false`. The host surfaces its own error
50
+ * notification; the hook only sets `hasSubmitError` for the inline callout.
51
+ */
52
+ onPublishError?: (item: TItem, folderPath: string[], error: unknown) => void;
32
53
  /**
33
54
  * Resolves the access rules already configured for a destination folder.
34
55
  * Called whenever `selectedFolderPath` changes to a defined folder; the
@@ -76,11 +97,18 @@ export interface UsePublishFlowResult {
76
97
  rules: PublicationRule[];
77
98
  /** Replaces the current rules; used by manual add/remove/clear actions. */
78
99
  setRules: (rules: PublicationRule[]) => void;
100
+ /**
101
+ * Current display author for the publication — the host-supplied
102
+ * `defaultAuthor` until the user edits it.
103
+ */
104
+ author: string;
105
+ /** Replaces the current display author; marks the field as user-edited, so `defaultAuthor` no longer overwrites it. */
106
+ setAuthor: (author: string) => void;
79
107
  /** Whether `onFetchExistingRules` is currently resolving for the selected folder. */
80
108
  isRulesLoading: boolean;
81
109
  /** Whether the most recent `onFetchExistingRules` call failed. `rules` is left unchanged when this is `true`. */
82
110
  hasRulesLoadError: boolean;
83
111
  }
84
112
  /** Manages all state for the Publish flow: folder selection, local folder creation, existing-publication detection, and submit handling. */
85
- export declare const usePublishFlow: <TItem extends PublishFlowItem = PublishFlowItem>({ item, history, folderItems: initialFolderItems, hasWriteAccess: resolveWriteAccess, onCreateFolder, onPublish, onPublishSuccess, onFetchExistingRules, }: UsePublishFlowOptions<TItem>) => UsePublishFlowResult;
113
+ export declare const usePublishFlow: <TItem extends PublishFlowItem = PublishFlowItem>({ item, history, folderItems: initialFolderItems, hasWriteAccess: resolveWriteAccess, defaultAuthor, onCreateFolder, onPublish, onPublishSuccess, onPublishError, onFetchExistingRules, }: UsePublishFlowOptions<TItem>) => UsePublishFlowResult;
86
114
  //# sourceMappingURL=use-publish-flow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-publish-flow.d.ts","sourceRoot":"","sources":["../../src/utils/use-publish-flow.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,mGAAmG;AACnG,MAAM,WAAW,eAAe;IAC9B,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA2DD,0CAA0C;AAC1C,MAAM,WAAW,qBAAqB,CAAC,KAAK,SAAS,eAAe;IAClE,8FAA8F;IAC9F,IAAI,EAAE,KAAK,CAAC;IACZ,kDAAkD;IAClD,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,2EAA2E;IAC3E,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC;;;OAGG;IAC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