@epam/ai-dial-catalog 1.1.0-dev.284 → 1.1.0-dev.287
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/Catalog/Catalog.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +34 -8
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/index.js +7079 -7022
- package/models/catalog-props.d.ts +12 -0
- package/models/catalog-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +16 -2
- package/models/item-details-props.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAmjBpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAwBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAqJzE,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAwBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAqJzE,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAuuC9C,CAAC"}
|
|
@@ -8,8 +8,10 @@ interface HeaderProps {
|
|
|
8
8
|
isPrimaryActionVisible?: (item: CatalogItem) => boolean;
|
|
9
9
|
onShare?: (item: CatalogItem) => void;
|
|
10
10
|
/**
|
|
11
|
-
* Renders the Share popover content
|
|
12
|
-
*
|
|
11
|
+
* Renders the Share popover content. When provided, choosing Share opens
|
|
12
|
+
* this popover instead of calling `onShare`. It anchors to whichever surface
|
|
13
|
+
* carries Share: the header button, or the Manage trigger when
|
|
14
|
+
* `isSharePrimary` has moved the entry into that menu.
|
|
13
15
|
*/
|
|
14
16
|
shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
|
|
15
17
|
/**
|
|
@@ -17,6 +19,13 @@ interface HeaderProps {
|
|
|
17
19
|
* (AND) with the built-in ownership/type rule.
|
|
18
20
|
*/
|
|
19
21
|
isShareVisible?: (item: CatalogItem) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Resolves whether Share renders as its own header button rather than a
|
|
24
|
+
* Manage-menu entry. Defaults to `true` — the header button. Returning
|
|
25
|
+
* `false` moves Share into the Manage menu, beside Delete. Share renders on
|
|
26
|
+
* one surface or the other, never both.
|
|
27
|
+
*/
|
|
28
|
+
isSharePrimary?: (item: CatalogItem) => boolean;
|
|
20
29
|
onEdit?: (item: CatalogItem) => void;
|
|
21
30
|
/**
|
|
22
31
|
* Called when "Download" is clicked. In the Manage menu, fire-and-forget:
|
|
@@ -69,10 +78,16 @@ interface HeaderProps {
|
|
|
69
78
|
/**
|
|
70
79
|
* Controls whether the "Publish" action is shown. Defaults to the same rule
|
|
71
80
|
* as the primary action. Returning `true` is not sufficient on its own:
|
|
72
|
-
* "Publish" is suppressed whenever "Unpublish" is shown, so the
|
|
73
|
-
* one of the two, never both.
|
|
81
|
+
* "Publish" is suppressed whenever "Unpublish" is shown, so the panel
|
|
82
|
+
* carries one of the two, never both.
|
|
74
83
|
*/
|
|
75
84
|
isPublishVisible?: (item: CatalogItem) => boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Resolves whether whichever of "Publish"/"Unpublish" applies renders as its
|
|
87
|
+
* own header button rather than a Manage-menu entry. Defaults to `false` —
|
|
88
|
+
* the menu entry. It renders on one surface or the other, never both.
|
|
89
|
+
*/
|
|
90
|
+
isPublishPrimary?: (item: CatalogItem) => boolean;
|
|
76
91
|
/** Called when the "Publish" button is clicked; the host swaps this panel's content to the publish view. */
|
|
77
92
|
onOpenPublish?: () => void;
|
|
78
93
|
/**
|
|
@@ -90,14 +105,25 @@ interface HeaderProps {
|
|
|
90
105
|
*/
|
|
91
106
|
hasPublishedFolders?: boolean;
|
|
92
107
|
/**
|
|
93
|
-
* Starts the panel's publish-history lookup, called on
|
|
94
|
-
*
|
|
108
|
+
* Starts the panel's publish-history lookup, called on hover/focus of the
|
|
109
|
+
* Manage trigger and on Manage-menu open, plus on hover/focus of the publish
|
|
110
|
+
* button where `isPublishPrimary` promoted it into the action row. Guarded
|
|
111
|
+
* once per item by the panel.
|
|
95
112
|
*/
|
|
96
113
|
onRequestPublishHistory?: () => void;
|
|
97
|
-
/** Called when the "Unpublish"
|
|
114
|
+
/** Called when the "Unpublish" button is clicked; the host swaps this panel's content to the unpublish confirmation. */
|
|
98
115
|
onOpenUnpublish?: () => void;
|
|
99
116
|
}
|
|
100
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Details panel header bar: entity identity (icon + name + version), action
|
|
119
|
+
* buttons, and inline credentials section. By default the action row carries
|
|
120
|
+
* the primary action and Share, with a "Manage" menu for Edit, Publish or
|
|
121
|
+
* Unpublish, and Delete; `isSharePrimary` and `isPublishPrimary` let a host
|
|
122
|
+
* swap which of the two sits in the row and which sits in the menu. For
|
|
123
|
+
* Toolsets, the credentials action (Log in / Log out / manage) renders first
|
|
124
|
+
* and styled as the primary action, since Toolsets have no "Use in chat"
|
|
125
|
+
* action.
|
|
126
|
+
*/
|
|
101
127
|
export declare const Header: FC<HeaderProps>;
|
|
102
128
|
export {};
|
|
103
129
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"AA+BA,OAAO,EACL,EAAE,EAMF,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAGjB,MAAM,6BAA6B,CAAC;AAarC,UAAU,WAAW;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC;;;;;OAKG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACrE;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAChD;;;;;OAKG;IACH,cA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