@epam/ai-dial-catalog 1.1.0-dev.17 → 1.1.0-dev.170

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 (160) hide show
  1. package/components/AppIdentity/AppIdentity.d.ts +6 -13
  2. package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
  3. package/components/CardGrid/Card.d.ts.map +1 -1
  4. package/components/CardGrid/CardGrid.d.ts.map +1 -1
  5. package/components/CardGrid/CardRowRenderer.d.ts.map +1 -1
  6. package/components/Catalog/Catalog.d.ts +1 -5
  7. package/components/Catalog/Catalog.d.ts.map +1 -1
  8. package/components/Catalog/CreateButton.d.ts +2 -2
  9. package/components/Catalog/CreateButton.d.ts.map +1 -1
  10. package/components/CredentialsBadge/CredentialsBadge.d.ts +10 -1
  11. package/components/CredentialsBadge/CredentialsBadge.d.ts.map +1 -1
  12. package/components/Details/ApiDetails.d.ts +4 -2
  13. package/components/Details/ApiDetails.d.ts.map +1 -1
  14. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +22 -0
  15. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  16. package/components/Details/ConfirmationView/ConfirmationView.d.ts +19 -0
  17. package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  18. package/components/Details/Credentials/CredentialsSection.d.ts +1 -1
  19. package/components/Details/Credentials/CredentialsSection.d.ts.map +1 -1
  20. package/components/Details/DetailsPanel.d.ts.map +1 -1
  21. package/components/Details/Header/Header.d.ts +12 -9
  22. package/components/Details/Header/Header.d.ts.map +1 -1
  23. package/components/Details/Header/ShareButton/ShareButton.d.ts +6 -0
  24. package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
  25. package/components/Details/TabsContent/About.d.ts +2 -1
  26. package/components/Details/TabsContent/About.d.ts.map +1 -1
  27. package/components/Details/TabsContent/Content.d.ts +16 -0
  28. package/components/Details/TabsContent/Content.d.ts.map +1 -0
  29. package/components/EntityHeader/EntityHeader.d.ts +4 -4
  30. package/components/EntityHeader/EntityHeader.d.ts.map +1 -1
  31. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -1
  32. package/components/Favorites/FavoriteCard.d.ts +6 -3
  33. package/components/Favorites/FavoriteCard.d.ts.map +1 -1
  34. package/components/Favorites/Favorites.d.ts.map +1 -1
  35. package/components/Filter/Filter.d.ts +34 -6
  36. package/components/Filter/Filter.d.ts.map +1 -1
  37. package/components/InfoCard/InfoCard.d.ts +15 -0
  38. package/components/InfoCard/InfoCard.d.ts.map +1 -0
  39. package/components/ItemHeader/ItemHeader.d.ts +1 -0
  40. package/components/ItemHeader/ItemHeader.d.ts.map +1 -1
  41. package/components/ListView/ListView.d.ts +1 -5
  42. package/components/ListView/ListView.d.ts.map +1 -1
  43. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +1 -0
  44. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
  45. package/components/ListView/Renders/FolderCellRenderer.d.ts +1 -0
  46. package/components/ListView/Renders/FolderCellRenderer.d.ts.map +1 -1
  47. package/components/ListView/Renders/NameCellRenderer.d.ts +1 -0
  48. package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
  49. package/components/ListView/Renders/StarCellRenderer.d.ts +1 -0
  50. package/components/ListView/Renders/StarCellRenderer.d.ts.map +1 -1
  51. package/components/ListView/Renders/TagsCellRenderer.d.ts +1 -0
  52. package/components/ListView/Renders/TagsCellRenderer.d.ts.map +1 -1
  53. package/components/ListView/columns.d.ts +2 -1
  54. package/components/ListView/columns.d.ts.map +1 -1
  55. package/components/SearchBar/SearchBar.d.ts +1 -5
  56. package/components/SearchBar/SearchBar.d.ts.map +1 -1
  57. package/components/StarToggleButton/StarToggleButton.d.ts +2 -0
  58. package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
  59. package/components/TableView/TableView.d.ts +19 -0
  60. package/components/TableView/TableView.d.ts.map +1 -1
  61. package/components/Toolbar/Rows/TitleRow.d.ts +3 -3
  62. package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
  63. package/components/Toolbar/Toolbar.d.ts.map +1 -1
  64. package/components/TopicTag/TopicTag.d.ts +12 -7
  65. package/components/TopicTag/TopicTag.d.ts.map +1 -1
  66. package/constants/entity-colors.d.ts +0 -2
  67. package/constants/entity-colors.d.ts.map +1 -1
  68. package/index.css +1 -1
  69. package/index.d.ts +13 -29
  70. package/index.d.ts.map +1 -1
  71. package/index.js +146296 -10143
  72. package/models/app-identity-styles.d.ts +28 -0
  73. package/models/app-identity-styles.d.ts.map +1 -0
  74. package/models/card-props.d.ts +9 -11
  75. package/models/card-props.d.ts.map +1 -1
  76. package/models/catalog-item.d.ts +9 -5
  77. package/models/catalog-item.d.ts.map +1 -1
  78. package/models/catalog-props.d.ts +44 -32
  79. package/models/catalog-props.d.ts.map +1 -1
  80. package/models/catalog-styles.d.ts +3 -40
  81. package/models/catalog-styles.d.ts.map +1 -1
  82. package/models/favorites.d.ts +13 -7
  83. package/models/favorites.d.ts.map +1 -1
  84. package/models/grid-props.d.ts +4 -0
  85. package/models/grid-props.d.ts.map +1 -1
  86. package/models/item-details-data.d.ts +7 -0
  87. package/models/item-details-data.d.ts.map +1 -1
  88. package/models/item-details-props.d.ts +178 -34
  89. package/models/item-details-props.d.ts.map +1 -1
  90. package/models/item-overview.d.ts +1 -7
  91. package/models/item-overview.d.ts.map +1 -1
  92. package/models/list-props.d.ts +21 -2
  93. package/models/list-props.d.ts.map +1 -1
  94. package/models/toolbar-props.d.ts +14 -18
  95. package/models/toolbar-props.d.ts.map +1 -1
  96. package/package.json +6 -6
  97. package/types/deployment-icon-size.d.ts +5 -0
  98. package/types/deployment-icon-size.d.ts.map +1 -0
  99. package/types/detail-tab.d.ts +4 -1
  100. package/types/detail-tab.d.ts.map +1 -1
  101. package/types/details-confirmation.d.ts +19 -0
  102. package/types/details-confirmation.d.ts.map +1 -0
  103. package/types/entity-type.d.ts +2 -3
  104. package/types/entity-type.d.ts.map +1 -1
  105. package/utils/catalog-filter.d.ts +1 -0
  106. package/utils/catalog-filter.d.ts.map +1 -1
  107. package/utils/catalog-sort.d.ts +1 -8
  108. package/utils/catalog-sort.d.ts.map +1 -1
  109. package/utils/catalog-tabs.d.ts +2 -2
  110. package/utils/catalog-tabs.d.ts.map +1 -1
  111. package/utils/parse-about-content.d.ts +2 -12
  112. package/utils/parse-about-content.d.ts.map +1 -1
  113. package/utils/prompt-variables.d.ts +21 -0
  114. package/utils/prompt-variables.d.ts.map +1 -0
  115. package/utils/styles.d.ts +1 -0
  116. package/utils/styles.d.ts.map +1 -1
  117. package/utils/toolset-credentials.d.ts +3 -18
  118. package/utils/toolset-credentials.d.ts.map +1 -1
  119. package/utils/use-fav-columns.d.ts +1 -4
  120. package/utils/use-fav-columns.d.ts.map +1 -1
  121. package/utils/use-scroll-virtualizer.d.ts +1 -9
  122. package/utils/use-scroll-virtualizer.d.ts.map +1 -1
  123. package/components/Details/Header/ConnectButton/ConnectButton.d.ts +0 -25
  124. package/components/Details/Header/ConnectButton/ConnectButton.d.ts.map +0 -1
  125. package/components/Details/Header/DeleteButton/DeleteButton.d.ts +0 -25
  126. package/components/Details/Header/DeleteButton/DeleteButton.d.ts.map +0 -1
  127. package/components/Details/Summary/Limits.d.ts +0 -18
  128. package/components/Details/Summary/Limits.d.ts.map +0 -1
  129. package/components/Details/Summary/Summary.d.ts +0 -12
  130. package/components/Details/Summary/Summary.d.ts.map +0 -1
  131. package/components/FolderPath/FolderPath.d.ts +0 -25
  132. package/components/FolderPath/FolderPath.d.ts.map +0 -1
  133. package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -72
  134. package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
  135. package/components/PublishHistoryList/PublishHistoryList.d.ts +0 -44
  136. package/components/PublishHistoryList/PublishHistoryList.d.ts.map +0 -1
  137. package/components/PublishPanel/PublishFooter.d.ts +0 -37
  138. package/components/PublishPanel/PublishFooter.d.ts.map +0 -1
  139. package/components/PublishPanel/PublishPanel.d.ts +0 -109
  140. package/components/PublishPanel/PublishPanel.d.ts.map +0 -1
  141. package/components/PublishPanel/StandalonePublishPanel.d.ts +0 -90
  142. package/components/PublishPanel/StandalonePublishPanel.d.ts.map +0 -1
  143. package/constants/catalog-defaults.d.ts +0 -4
  144. package/constants/catalog-defaults.d.ts.map +0 -1
  145. package/models/entity-summary.d.ts +0 -23
  146. package/models/entity-summary.d.ts.map +0 -1
  147. package/models/publish.d.ts +0 -89
  148. package/models/publish.d.ts.map +0 -1
  149. package/models/sort.d.ts +0 -8
  150. package/models/sort.d.ts.map +0 -1
  151. package/types/entity-tag.d.ts +0 -9
  152. package/types/entity-tag.d.ts.map +0 -1
  153. package/utils/format-published-date.d.ts +0 -8
  154. package/utils/format-published-date.d.ts.map +0 -1
  155. package/utils/publish-folder-tree.d.ts +0 -45
  156. package/utils/publish-folder-tree.d.ts.map +0 -1
  157. package/utils/publish-state.d.ts +0 -9
  158. package/utils/publish-state.d.ts.map +0 -1
  159. package/utils/use-publish-flow.d.ts +0 -77
  160. package/utils/use-publish-flow.d.ts.map +0 -1
@@ -1,27 +1,25 @@
1
+ import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '../../../publish-panel/src/index.ts';
1
2
  import { ReactNode } from 'react';
2
- import { PublishFooterTexts } from '../components/PublishPanel/PublishFooter';
3
- import { PublishPanelTexts } from '../components/PublishPanel/PublishPanel';
4
3
  import { CredentialsLevel } from '../types/toolset-auth';
5
4
  import { CatalogItem } from './catalog-item';
6
- import { PublishFolderNode, PublishHistoryEntry } from './publish';
7
5
  /** Text overrides for all user-visible strings in `DetailsPanel`. */
8
6
  export interface ItemDetailsTexts {
9
7
  /** "Share" action button label. Default: `'Share'`. */
10
8
  shareLabel?: string;
11
- /** "Connect" action button label, used for every entity type. Default: `'Connect'`. */
12
- connectLabel?: string;
13
- /** Caption above the intro/description text. Default: `'Intro'`. */
14
- introLabel?: string;
9
+ /** "Connect" tab label (resource ID, endpoint, and code snippets). Default: `'Connect'`. */
10
+ tabConnectLabel?: string;
11
+ /** Accessible label for the icon-only "Manage" button (opens the Edit/Publish/Delete menu). Default: `'Manage'`. */
12
+ manageActionLabel?: string;
15
13
  /** "About" tab label. Default: `'About'`. */
16
14
  tabAboutLabel?: string;
15
+ /** Content tab label, shown for items carrying a text body. Default: `'Details'`. */
16
+ tabContentLabel?: string;
17
17
  /** "Overview" tab label. Default: `'Overview'`. */
18
18
  tabOverviewLabel?: string;
19
19
  /** "Pricing" tab label. Default: `'Pricing'`. */
20
20
  tabPricingLabel?: string;
21
21
  /** "Limits" tab label. Default: `'Limits'`. */
22
22
  tabLimitsLabel?: string;
23
- /** "API" tab label. Default: `'API'`. */
24
- tabApiLabel?: string;
25
23
  /** Accessible label for the details panel `role="dialog"`. Default: `'Item details'`. */
26
24
  ariaLabel?: string;
27
25
  /** Accessible label for the close button. Default: `'Close'`. */
@@ -50,18 +48,16 @@ export interface ItemDetailsTexts {
50
48
  hasPrimaryAction?: boolean;
51
49
  /** "Edit" action button label. Default: `'Edit'`. */
52
50
  editActionLabel?: string;
53
- /** Label above the daily-limit progress bar. Default: `'Daily limit'`. */
54
- dailyLimitLabel?: string;
55
51
  /** "Resource" section heading in the API tab. Default: `'Resource'`. */
56
52
  apiResourceSectionLabel?: string;
57
53
  /** "Code snippet" section heading in the API tab. Default: `'Code snippet'`. */
58
54
  apiSnippetSectionLabel?: string;
59
55
  /** "Model ID" row label in the API tab. Default: `'Model ID'`. */
60
56
  apiModelIdLabel?: string;
61
- /** "Endpoint" section heading in the API tab (multi-endpoint selector). Default: `'Endpoint'`. */
62
- apiEndpointSectionLabel?: string;
63
- /** URL row label inside each endpoint option. Default: `'Endpoint'`. */
57
+ /** Title shown in the single-endpoint code block's header in the Connect tab. Default: `'Endpoint'`. */
64
58
  apiEndpointLabel?: string;
59
+ /** "Endpoint" section heading above the multi-endpoint selector in the Connect tab. Default: `'Endpoint'`. */
60
+ apiEndpointSectionLabel?: string;
65
61
  /** "Request example" row label in the API tab. Default: `'Request example'`. */
66
62
  apiRequestExampleLabel?: string;
67
63
  /** "Response schema" row label in the API tab. Default: `'Response schema'`. */
@@ -112,20 +108,77 @@ export interface ItemDetailsTexts {
112
108
  deleteActionLabel?: string;
113
109
  /** Status text announced to assistive tech while a delete is in progress. Default: `'Deleting'`. */
114
110
  deletingStatusLabel?: string;
111
+ /** Title of the delete confirmation step. Default: the `deleteActionLabel` value. */
112
+ deleteConfirmTitle?: string;
113
+ /**
114
+ * Returns the delete confirmation's body copy, given the item's display
115
+ * name. Default:
116
+ * `(name) => \`Are you sure you want to delete ${name}? This action is permanent and cannot be undone.\`` (with the name emphasized).
117
+ */
118
+ deleteConfirmMessage?: (name: string) => ReactNode;
119
+ /**
120
+ * Consequences listed as bullets in the delete confirmation. Default:
121
+ * `['All shared configurations will be lost', 'Users who rely on it will lose access', 'Cannot be undone']`.
122
+ * Pass `[]` to render no list.
123
+ */
124
+ deleteConfirmConsequences?: string[];
125
+ /** Recipient-side "Remove from My List" action and confirmation label. Default: `'Remove from My List'`. */
126
+ unshareLabel?: string;
127
+ /** Title of the confirmation step shown before removing a shared item. Default: `'Remove from My List'`. */
128
+ unshareConfirmTitle?: string;
129
+ /**
130
+ * Returns the removal confirmation's body copy, given the item's display
131
+ * name. Default:
132
+ * `(name) => \`Remove ${name} from your list? You'll need a new invitation to access it again.\`` (with the name emphasized).
133
+ */
134
+ unshareConfirmMessage?: (name: string) => ReactNode;
135
+ /**
136
+ * Consequences listed as bullets in the removal confirmation. Default:
137
+ * `['You will lose access to this item', 'Other people keep their access', 'You will need a new invitation to get it back']`.
138
+ * Pass `[]` to render no list.
139
+ */
140
+ unshareConfirmConsequences?: string[];
141
+ /** Status text announced to assistive tech while a removal is in progress. Default: `'Removing'`. */
142
+ unsharingStatusLabel?: string;
143
+ /** Owner-side "Revoke access" action and confirmation label. Default: `'Revoke access'`. */
144
+ revokeShareLabel?: string;
145
+ /**
146
+ * Returns the "Revoke access" menu label when the number of users holding
147
+ * access is known, so the owner can see the blast radius before opening the
148
+ * confirmation. Falls back to `revokeShareLabel` when the count is unknown.
149
+ * Default: `(count) => \`Revoke access (${count})\``.
150
+ */
151
+ revokeShareLabelWithCount?: (count: number) => string;
152
+ /** Title of the confirmation step shown before revoking everyone's shared access. Default: `'Revoke access'`. */
153
+ revokeShareConfirmTitle?: string;
154
+ /**
155
+ * Returns the revoke confirmation's body copy, given the item's display
156
+ * name. Default:
157
+ * `(name) => \`Revoke shared access to ${name}? Anyone you shared it with will lose access.\`` (with the name emphasized).
158
+ */
159
+ revokeShareConfirmMessage?: (name: string) => ReactNode;
160
+ /**
161
+ * Consequences listed as bullets in the revoke confirmation. Default:
162
+ * `['Everyone you shared it with loses access', 'Existing share links stop working', 'You keep full access — nothing is deleted']`.
163
+ * Pass `[]` to render no list.
164
+ */
165
+ revokeShareConfirmConsequences?: string[];
166
+ /** Status text announced to assistive tech while a revoke is in progress. Default: `'Revoking access'`. */
167
+ revokingShareStatusLabel?: string;
168
+ /** Status text announced to assistive tech while a logout is in progress. Default: `'Logging out'`. */
169
+ loggingOutStatusLabel?: string;
170
+ /** Generic "Cancel" label, used by every confirmation step. Default: `'Cancel'`. */
171
+ cancelLabel?: string;
115
172
  }
116
173
  /** Typography class overrides for `DetailsPanel` text elements. */
117
174
  export interface ItemDetailsTypography {
118
- /** Typography class for the entity name. Default: `'dial-body-semi-text text-primary'`. */
175
+ /** Typography class for the entity name. Default: `'dial-body-semi-text'`. */
119
176
  nameClassName?: string;
120
- /** Typography class for the provider label below the entity name. Default: `'dial-tiny-text text-secondary'`. */
121
- providerClassName?: string;
122
177
  /** Typography class for the version string. Default: `'dial-tiny-text'`. */
123
178
  versionClassName?: string;
124
- /** Typography class for the intro section caption. Default: `'dial-caption-text'`. */
125
- introCaptionClassName?: string;
126
- /** Typography class for section headings inside the intro/description content. Default: `'dial-small-semi-text'`. */
179
+ /** Typography class for section headings inside the description content. Default: `'dial-small-semi-text'`. */
127
180
  contentHeadingClassName?: string;
128
- /** Typography class for the intro/description body text. Default: `'dial-small-text'`. */
181
+ /** Typography class for the description body text. Default: `'dial-small-text'`. */
129
182
  contentClassName?: string;
130
183
  /** Typography class for Overview section headings. Default: `'dial-caption-text'`. */
131
184
  overviewSectionClassName?: string;
@@ -139,13 +192,78 @@ export interface ItemDetailsTypography {
139
192
  folderLabelClassName?: string;
140
193
  /** Typography class applied to the leaf (last) folder path segment. Default: `'dial-tiny-semi-text'`. */
141
194
  folderLeafClassName?: string;
142
- /** Typography class for the credentials section's signed-in/signed-out status label. Default: `'dial-small-semi-text text-primary'`. */
195
+ /** Typography class for the credentials section's signed-in/signed-out status label. Default: `'dial-small-semi-text'`. */
143
196
  credentialsStatusLabelClassName?: string;
197
+ /** Typography class for a confirmation step's body copy and consequence bullets. Default: `'dial-small-text'`. */
198
+ confirmMessageClassName?: string;
199
+ }
200
+ /**
201
+ * Color overrides for `DetailsPanel` and everything it renders, applied as CSS
202
+ * custom properties on the panel root so they cascade into the nested header,
203
+ * credentials, summary, spec-grid and tools sections.
204
+ */
205
+ export interface ItemDetailsColors {
206
+ /** Backdrop overlay color behind the panel. Fallback: `--bg-backdrop`. */
207
+ backdrop?: string;
208
+ /** Panel surface background. Fallback: `--bg-layer-raised`. */
209
+ background?: string;
210
+ /** Panel's leading-edge border color (desktop only). Fallback: `--stroke-secondary`. */
211
+ border?: string;
212
+ /** Horizontal divider color between panel sections. Fallback: `--stroke-tertiary`. */
213
+ divider?: string;
214
+ /** Scrollbar thumb color of the scrollable content area. Fallback: `--stroke-secondary`. */
215
+ scrollbar?: string;
216
+ /** Shimmer color of the tab-row loading skeleton. Fallback: `--bg-layer-4`. */
217
+ skeleton?: string;
218
+ /** Entity name text color in the header. Fallback: `--text-primary`. */
219
+ nameText?: string;
220
+ /** Title text color of a sub-view (publish or a confirmation step). Fallback: `--text-primary`. */
221
+ publishTitleText?: string;
222
+ /** Border color of the "current version" tag. Fallback: `--stroke-tertiary`. */
223
+ versionTagBorder?: string;
224
+ /** Background color of the "current version" tag. Fallback: `--bg-accent-primary-alpha`. */
225
+ versionTagBackground?: string;
226
+ /** Text color of the "current version" tag. Fallback: `--text-accent`. */
227
+ versionTagText?: string;
228
+ /** Credentials signed-in/signed-out status label color. Fallback: `--text-primary`. */
229
+ credentialsStatusText?: string;
230
+ /** Body text color of the Content tab. Fallback: `--text-primary`. */
231
+ contentText?: string;
232
+ /** Heading color of the API section. Fallback: `--text-secondary`. */
233
+ apiHeadingText?: string;
234
+ /** Divider color between tool entries. Fallback: `--stroke-tertiary`. */
235
+ toolsDivider?: string;
236
+ /** Tool description text color. Fallback: `--text-secondary`. */
237
+ toolsDescriptionText?: string;
238
+ /** Spec-grid outer border color. Fallback: `--stroke-secondary`. */
239
+ gridBorder?: string;
240
+ /** Spec-grid header text color. Fallback: `--text-secondary`. */
241
+ gridHeaderText?: string;
242
+ /** Spec-grid header background. Fallback: `--bg-layer-1`. */
243
+ gridHeaderBackground?: string;
244
+ /** Spec-grid cell text color. Fallback: `--text-primary`. */
245
+ gridCellText?: string;
246
+ /** Spec-grid cell top-border color. Fallback: `--stroke-secondary`. */
247
+ gridCellDivider?: string;
248
+ /** Spec-grid even-row background. Fallback: `--bg-layer-7`. */
249
+ gridRowEvenBackground?: string;
250
+ /** `InfoCard` surface color in its `Info` variant. Fallback: `--bg-info`. */
251
+ infoCardBackground?: string;
252
+ /** `InfoCard` surface color in its `Danger` variant. Fallback: `--bg-error`. */
253
+ infoCardDangerBackground?: string;
254
+ /** Confirmation body-copy text color. Fallback: `--text-primary`. */
255
+ confirmMessageText?: string;
256
+ /** Confirmation consequence-bullet text color. Fallback: `--text-secondary`. */
257
+ confirmConsequenceText?: string;
258
+ /** Top border color of the confirmation action row. Fallback: `--stroke-tertiary`. */
259
+ confirmFooterBorder?: string;
144
260
  }
145
261
  /** Grouped style overrides for `DetailsPanel`. */
146
262
  export interface ItemDetailsStyles {
147
263
  /** Typography class overrides for text elements. */
148
264
  typography?: ItemDetailsTypography;
265
+ /** Color overrides applied as CSS custom properties on the panel root. */
266
+ colors?: ItemDetailsColors;
149
267
  }
150
268
  /** Props for `DetailsPanel`. */
151
269
  export interface DetailsPanelProps {
@@ -164,6 +282,12 @@ export interface DetailsPanelProps {
164
282
  onClose: () => void;
165
283
  /** Called when the star/favorite button is toggled. */
166
284
  onToggleFavorite?: (id: string, isStarred: boolean) => void;
285
+ /**
286
+ * Additional caller-supplied rule for whether the "Remove from My List"
287
+ * action is shown, combined (AND) with the built-in
288
+ * `sharedWithMe`/`isMyApp` rule. Defaults to `true` when absent.
289
+ */
290
+ isUnshareVisible?: (item: CatalogItem) => boolean;
167
291
  /** Called when the "Use in chat" button is clicked. */
168
292
  onUseInChat?: (item: CatalogItem) => void;
169
293
  /** Controls whether the primary action button is shown for the item. */
@@ -188,30 +312,35 @@ export interface DetailsPanelProps {
188
312
  publishLoadingPaths?: Set<string>;
189
313
  /** Resolves whether the current user can publish to a given folder path. */
190
314
  hasPublishWriteAccess?: (folderPath: string[]) => boolean;
191
- /** Called with the destination folder path when the user confirms publish/update. */
192
- onPublish?: (item: CatalogItem, folderPath: string[]) => Promise<void>;
315
+ /** Called with the destination folder path and current access rules when the user confirms publish/update. */
316
+ onPublish?: (item: CatalogItem, folderPath: string[], rules: PublicationRule[]) => Promise<void>;
193
317
  /** Called after a successful publish; use this to surface a success notification. */
194
318
  onPublishSuccess?: (item: CatalogItem, folderPath: string[]) => void;
319
+ /** Called with the rejection reason when a publish request fails; use this to surface an error notification. */
320
+ onPublishError?: (item: CatalogItem, folderPath: string[], error: unknown) => void;
195
321
  /** Called when the user confirms a new folder name in the publish flow. */
196
322
  onCreatePublishFolder?: (parentPath: string[], name: string) => void;
197
323
  /** Text overrides forwarded to the publish flow. */
198
- publishTexts?: PublishPanelTexts & PublishFooterTexts;
324
+ publishLabels?: PublishPanelLabels & PublishFooterLabels;
325
+ /** Options offered in the access-rules editor's source picker. Defaults to `[]` when absent. */
326
+ ruleSourceOptions?: string[];
327
+ /**
328
+ * Resolves the access rules already configured for a destination folder,
329
+ * called whenever the selected folder changes. The result fully replaces
330
+ * the rules editor's contents. Omit to skip pre-filling entirely.
331
+ */
332
+ onFetchExistingRules?: (folderPath: string[]) => Promise<PublicationRule[]>;
199
333
  /**
200
334
  * Renders the Share popover content anchored to the Share button. When
201
335
  * provided, clicking Share opens this popover instead of calling `onShare`.
202
336
  */
203
337
  shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
204
338
  /**
205
- * Renders the Connect popover content anchored to the Connect button. When
206
- * absent, the Connect button is never shown there is no non-overlay
207
- * fallback action.
339
+ * Additional caller-supplied rule for whether the "Share" action is shown
340
+ * for the item, combined (AND) with the built-in ownership/type rule.
341
+ * Absent means the built-in rule alone decides.
208
342
  */
209
- connectOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
210
- /**
211
- * Controls whether the "Connect" action is shown for the item. When
212
- * absent, the Connect button is never shown.
213
- */
214
- isConnectVisible?: (item: CatalogItem) => boolean;
343
+ isShareVisible?: (item: CatalogItem) => boolean;
215
344
  /** Called when the "Edit" button is clicked. Shown only when the item's `isEditable` is `true`. */
216
345
  onEdit?: (item: CatalogItem) => void;
217
346
  /**
@@ -221,6 +350,21 @@ export interface DetailsPanelProps {
221
350
  * button shows a disabled state while pending.
222
351
  */
223
352
  onDelete?: (item: CatalogItem) => Promise<void> | void;
353
+ /**
354
+ * Called when removal is confirmed via the confirmation popup, for an item
355
+ * shared with the current user (`sharedWithMe: true`). May return a
356
+ * promise; the popup shows a loading state and prevents duplicate
357
+ * submission while pending.
358
+ */
359
+ onUnshare?: (item: CatalogItem) => Promise<void> | void;
360
+ /**
361
+ * Called when revocation is confirmed for an item the current user owns
362
+ * (`isMyApp: true`), removing every recipient's shared access at once. May
363
+ * return a promise; the confirmation shows a loading state and prevents
364
+ * duplicate submission while pending. The item stays in the owner's
365
+ * catalog, so the panel returns to its details content on success.
366
+ */
367
+ onRevokeShare?: (item: CatalogItem) => Promise<void> | void;
224
368
  /**
225
369
  * Called when the credentials login form is submitted. `level` identifies
226
370
  * which credentials slot the call applies to (`USER` for the current
@@ -1 +1 @@
1
- {"version":3,"file":"item-details-props.d.ts","sourceRoot":"","sources":["../../src/models/item-details-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAExE,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uFAAuF;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,kEAAkE;IAClE,gBAAgB,C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;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,CACR,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KACjD,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CACT,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,KAChC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,mDAAmD;IACnD,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
1
+ {"version":3,"file":"item-details-props.d.ts","sourceRoot":"","sources":["../../src/models/item-details-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,qEAAqE;AACrE,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4FAA4F;IAC5F,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oHAAoH;IACpH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,6CAA6C;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qFAAqF;IACrF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,eAAe,C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C/B,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B"}
@@ -17,13 +17,7 @@ export interface OverviewSection {
17
17
  /** Ordered spec rows. */
18
18
  specs: OverviewSpec[];
19
19
  }
20
- /**
21
- * Structured data powering the Overview tab of `DetailsPanel`.
22
- *
23
- * Recommended source format: a TypeScript file per entity type (or per provider)
24
- * exporting a `Record<string, CatalogItemOverview>` keyed by item id.
25
- * Example: `export const MODEL_OVERVIEWS: Record<string, CatalogItemOverview> = { 'gpt-4o': { sections: [...] } }`.
26
- */
20
+ /** Structured data powering the Overview tab of `DetailsPanel`. */
27
21
  export interface CatalogItemOverview {
28
22
  /** Ordered list of spec sections shown in the Overview tab. */
29
23
  sections: OverviewSection[];
@@ -1 +1 @@
1
- {"version":3,"file":"item-overview.d.ts","sourceRoot":"","sources":["../../src/models/item-overview.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"item-overview.d.ts","sourceRoot":"","sources":["../../src/models/item-overview.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB;AAED,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB;AAED,mEAAmE;AACnE,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC7B"}
@@ -1,3 +1,4 @@
1
+ import { CatalogEntityType } from '../types/entity-type';
1
2
  import { CatalogItem } from './catalog-item';
2
3
  /** Typography class overrides for `ListView` cells. */
3
4
  export interface ListViewTypography {
@@ -12,8 +13,24 @@ export interface ListViewTypography {
12
13
  }
13
14
  /** Color overrides for `ListView` cells, applied via CSS custom properties. */
14
15
  export interface ListViewColors {
15
- /** Color for item name text. Fallback: `--text-primary`. */
16
- nameText?: string;
16
+ /** Grid container background. Fallback: `--bg-layer-raised`. */
17
+ background?: string;
18
+ /** Grid container border color. Fallback: `--stroke-secondary`. */
19
+ border?: string;
20
+ /** Sticky header background. Fallback: `--bg-layer-raised`. */
21
+ headerBackground?: string;
22
+ /** Divider color between header and rows. Fallback: `--stroke-tertiary`. */
23
+ rowDivider?: string;
24
+ /** Color of the filled star icon in the favorite column. Fallback: `--text-warning-icon`. */
25
+ starFilled?: string;
26
+ /** Background color of even-indexed grid rows. Fallback: `--bg-layer-base`. */
27
+ rowEvenBackground?: string;
28
+ /** Border color of the selected row. Fallback: `--stroke-info`. */
29
+ selectedRowBorder?: string;
30
+ /** Background color (tint) of the selected row. Fallback: `--bg-accent-primary-alpha`. */
31
+ selectedRowBackground?: string;
32
+ /** Color of the checkmark icon in the selected row's name cell. Fallback: `--text-accent`. */
33
+ selectedRowCheckIcon?: string;
17
34
  }
18
35
  /** Combined style overrides for `ListView`. */
19
36
  export interface ListViewStyles {
@@ -24,6 +41,8 @@ export interface ListViewStyles {
24
41
  }
25
42
  /** Props for ListView. */
26
43
  export interface ListViewProps {
44
+ /** Type of catalog items being displayed. */
45
+ type: CatalogEntityType;
27
46
  /** Items to display in the table. */
28
47
  items: CatalogItem[];
29
48
  /** Active search query — passed through grid context so cell renderers can highlight. */
@@ -1 +1 @@
1
- {"version":3,"file":"list-props.d.ts","sourceRoot":"","sources":["../../src/models/list-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,uDAAuD;AACvD,MAAM,WAAW,kBAAkB;IACjC,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iGAAiG;IACjG,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,kCAAkC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,gDAAgD;IAChD,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,0BAA0B;AAC1B,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM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6CAA6C;IAC7C,IAAI,EAAE,iBAAiB,CAAC;IACxB,qCAAqC;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,yFAAyF;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC"}
@@ -1,11 +1,5 @@
1
+ import { DropdownItem } from '@epam/ai-dial-ui-kit';
1
2
  import { CatalogViewMode } from '../types/view-mode';
2
- /** A single option in the sort dropdown. */
3
- export interface CatalogSortOption {
4
- /** Sort key passed to `onSortChange`. */
5
- value: string;
6
- /** Display label shown in the dropdown. */
7
- label: string;
8
- }
9
3
  /** Typography class overrides for `Toolbar`. */
10
4
  export interface ToolbarTypography {
11
5
  /** Typography class for the section title. Default: `'dial-h3-text'`. */
@@ -19,20 +13,24 @@ export interface ToolbarTypography {
19
13
  }
20
14
  /** Color overrides for `Toolbar`, applied via CSS custom properties. */
21
15
  export interface ToolbarColors {
22
- /** Section background color. Fallback: `--bg-layer-1`. */
23
- background?: string;
24
16
  /** Section title text color. Fallback: `--text-primary`. */
25
17
  titleText?: string;
26
18
  /** Total count text color. Fallback: `--text-secondary`. */
27
19
  countText?: string;
28
- /** Filter icon color. Fallback: `--text-secondary`. */
29
- icon?: string;
30
20
  /** Vertical divider color next to sort dropdown. Fallback: `--stroke-secondary`. */
31
21
  divider?: string;
32
- /** Clear-all button text color. Fallback: `--text-error`. */
33
- clearAll?: string;
34
- /** Bottom border color of tabs row. Fallback: `--stroke-secondary`. */
35
- tabsBorder?: string;
22
+ /** Background color of the view-toggle wrapper. Fallback: `--bg-layer-sunken`. */
23
+ viewToggleBackground?: string;
24
+ /** Border color of the view-toggle wrapper. Fallback: `--stroke-tertiary`. */
25
+ viewToggleBorder?: string;
26
+ /** Background color of the active grid/list view-toggle button. Fallback: `--bg-layer-raised`. */
27
+ viewToggleActiveBackground?: string;
28
+ /** Icon color of the active grid/list view-toggle button. Fallback: `--text-accent`. */
29
+ viewToggleActiveText?: string;
30
+ /** Icon color of an inactive grid/list view-toggle button. Fallback: `--text-secondary`. */
31
+ viewToggleText?: string;
32
+ /** Icon color of an inactive grid/list view-toggle button on hover. Fallback: `--text-primary`. */
33
+ viewToggleTextHover?: string;
36
34
  }
37
35
  /** Grouped style overrides for `Toolbar`. */
38
36
  export interface ToolbarStyles {
@@ -81,9 +79,7 @@ export interface ToolbarProps {
81
79
  filterTopicsLabel?: string;
82
80
  /** Currently active sort key. */
83
81
  sortKey?: string;
84
- /** Called when the user selects a different sort option. */
85
- onSortChange?: (key: string) => void;
86
82
  /** Available sort options shown in the dropdown. */
87
- sortOptions?: CatalogSortOption[];
83
+ sortOptions?: DropdownItem[];
88
84
  }
89
85
  //# sourceMappingURL=toolbar-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar-props.d.ts","sourceRoot":"","sources":["../../src/models/toolbar-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,4CAA4C;AAC5C,MAAM,WAAW,iBAAiB;IAChC,yCAAyC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,gDAAgD;AAChD,MA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AE,MAAM,CAAC;IACvB,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,mFAAmF;IACnF,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,sDAAsD;IACtD,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACjD,8EAA8E;IAC9E,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,6EAA6E;IAC7E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,EAAE,CAAC;CAC9B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-catalog",
3
3
  "description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
4
- "version": "1.1.0-dev.17",
4
+ "version": "1.1.0-dev.170",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,11 +19,11 @@
19
19
  "peerDependencies": {
20
20
  "react": "^19.0.0",
21
21
  "@tabler/icons-react": "^3.0.0",
22
- "@epam/ai-dial-ui-kit": "0.12.0-dev.36",
23
- "@epam/ai-dial-kit": "1.1.0-dev.17",
24
- "@epam/ai-dial-sidebar": "1.1.0-dev.17",
25
- "@epam/ai-dial-chat-shared": "1.1.0-dev.17",
26
- "ag-grid-community": "35.3.0"
22
+ "@epam/ai-dial-kit": "1.1.0-dev.170",
23
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.170",
24
+ "@epam/ai-dial-publish-panel": "1.1.0-dev.170",
25
+ "ag-grid-community": "35.3.0",
26
+ "@epam/ai-dial-ui-kit": "^0.13.0-dev.26"
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
@@ -0,0 +1,5 @@
1
+ export declare enum DeploymentSize {
2
+ SM = "sm",
3
+ LG = "lg"
4
+ }
5
+ //# sourceMappingURL=deployment-icon-size.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-icon-size.d.ts","sourceRoot":"","sources":["../../src/types/deployment-icon-size.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,EAAE,OAAO;IACT,EAAE,OAAO;CACV"}
@@ -1,11 +1,14 @@
1
1
  /** Tab identifiers for the entity details panel. */
2
2
  export declare enum CatalogDetailsTab {
3
- /** Intro/description content (`item.intro ?? item.description`). Always the first tab. */
3
+ /** Description content (`item.description`). Always the first tab. */
4
4
  About = "about",
5
+ /** Read-only long-form text body, e.g. a prompt's content. */
6
+ Content = "content",
5
7
  Overview = "overview",
6
8
  Pricing = "pricing",
7
9
  /** Runtime usage-limit progress for model deployments. */
8
10
  Limits = "limits",
11
+ /** Resource ID, endpoint, and code snippets. Labeled "Connect". */
9
12
  Api = "api",
10
13
  /** Tool definitions tab, shown for Toolset entities. */
11
14
  Tools = "tools"
@@ -1 +1 @@
1
- {"version":3,"file":"detail-tab.d.ts","sourceRoot":"","sources":["../../src/types/detail-tab.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,oBAAY,iBAAiB;IAC3B,0FAA0F;IAC1F,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,0DAA0D;IAC1D,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,wDAAwD;IACxD,KAAK,UAAU;CAChB"}
1
+ {"version":3,"file":"detail-tab.d.ts","sourceRoot":"","sources":["../../src/types/detail-tab.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,oBAAY,iBAAiB;IAC3B,sEAAsE;IACtE,KAAK,UAAU;IACf,8DAA8D;IAC9D,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,0DAA0D;IAC1D,MAAM,WAAW;IACjB,mEAAmE;IACnE,GAAG,QAAQ;IACX,wDAAwD;IACxD,KAAK,UAAU;CAChB"}
@@ -0,0 +1,19 @@
1
+ /** Identifies which confirmation step the catalog details panel is currently showing in place of its details content. */
2
+ export declare enum DetailsConfirmationKind {
3
+ /** Owner-side deletion of the item for everyone. */
4
+ Delete = "delete",
5
+ /** Signing out of the item's stored credentials. */
6
+ Logout = "logout",
7
+ /** Recipient-side removal of the caller's own shared access. */
8
+ Unshare = "unshare",
9
+ /** Owner-side revocation of everyone else's shared access. */
10
+ RevokeAccess = "revokeAccess"
11
+ }
12
+ /** Palette a confirmation step is rendered with. */
13
+ export declare enum DetailsConfirmationVariant {
14
+ /** Irreversible loss for everyone — red identity card and a danger confirm button. */
15
+ Danger = "danger",
16
+ /** Affects only the current user and is recoverable — blue identity card and a neutral confirm button. */
17
+ Info = "info"
18
+ }
19
+ //# sourceMappingURL=details-confirmation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-confirmation.d.ts","sourceRoot":"","sources":["../../src/types/details-confirmation.ts"],"names":[],"mappings":"AAAA,yHAAyH;AACzH,oBAAY,uBAAuB;IACjC,oDAAoD;IACpD,MAAM,WAAW;IACjB,oDAAoD;IACpD,MAAM,WAAW;IACjB,gEAAgE;IAChE,OAAO,YAAY;IACnB,8DAA8D;IAC9D,YAAY,iBAAiB;CAC9B;AAED,oDAAoD;AACpD,oBAAY,0BAA0B;IACpC,sFAAsF;IACtF,MAAM,WAAW;IACjB,0GAA0G;IAC1G,IAAI,SAAS;CACd"}
@@ -1,11 +1,10 @@
1
1
  /** Entity type for a catalog item. Values are uppercase for direct color-map lookup. */
2
2
  export declare enum CatalogEntityType {
3
3
  Model = "MODEL",
4
- Application = "APPLICATION",
5
4
  Agent = "AGENT",
6
5
  Toolset = "TOOLSET",
7
- Guardrail = "GUARDRAIL",
8
6
  Skill = "SKILL",
9
- Mcp = "MCP"
7
+ /** Reusable text prompt. Carries a body instead of a runtime. */
8
+ Prompt = "PROMPT"
10
9
  }
11
10
  //# sourceMappingURL=entity-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,GAAG,QAAQ;CACZ"}
1
+ {"version":3,"file":"entity-type.d.ts","sourceRoot":"","sources":["../../src/types/entity-type.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,iEAAiE;IACjE,MAAM,WAAW;CAClB"}
@@ -1,4 +1,5 @@
1
1
  import { CatalogItem } from '../models/catalog-item';
2
+ /** Returns the filter label for the From dropdown: the default label when nothing (or everything) is selected, or a compact summary otherwise. */
2
3
  export declare const getFromLabel: (checked: Set<string>, allIds: Set<string> | undefined, defaultLabel?: string) => string;
3
4
  /** Returns items that have at least one topic in the selected set. No-ops when `topics` is empty. */
4
5
  export declare const filterByTopics: (items: CatalogItem[], topics: Set<string>) => CatalogItem[];
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,YAAY,GACvB,SAAS,GAAG,CAAC,MAAM,CAAC,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,EAC/B,qBAAqB,KACpB,MAUF,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,cAAc,GACzB,OAAO,WAAW,EAAE,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,KAClB,WAAW,EAGb,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,aAAa,GAAI,OAAO,WAAW,EAAE,KAAG,WAAW,EACjB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,OAAO,MAAM,KACZ,WAAW,EAeb,CAAC"}
1
+ {"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,kJAAkJ;AAClJ,eAAO,MAAM,YAAY,GACvB,SAAS,GAAG,CAAC,MAAM,CAAC,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,GAAG,SAAS,EAC/B,qBAAqB,KACpB,MAUF,CAAC;AAEF,qGAAqG;AACrG,eAAO,MAAM,cAAc,GACzB,OAAO,WAAW,EAAE,EACpB,QAAQ,GAAG,CAAC,MAAM,CAAC,KAClB,WAAW,EAGb,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,aAAa,GAAI,OAAO,WAAW,EAAE,KAAG,WAAW,EACjB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,OAAO,MAAM,KACZ,WAAW,EAeb,CAAC"}
@@ -1,11 +1,4 @@
1
1
  import { CatalogItem } from '../models/catalog-item';
2
- /**
3
- * Returns a sorted copy of the items array.
4
- * Featured items always appear first in every sort mode.
5
- * Within each group the chosen key is applied:
6
- * 'recently-updated': no further ordering (original/API order).
7
- * 'newest': descending by updatedAt; items without a timestamp sort last.
8
- * 'name-az': alphabetical by name.
9
- */
2
+ /** Returns a sorted copy of items; featured items always sort first, then by the given `sortKey`. */
10
3
  export declare const sortCatalogItems: (items: CatalogItem[], sortKey: string) => CatalogItem[];
11
4
  //# sourceMappingURL=catalog-sort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-sort.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-sort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,SAAS,MAAM,KACd,WAAW,EA8Bb,CAAC"}
1
+ {"version":3,"file":"catalog-sort.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-sort.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,qGAAqG;AACrG,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,SAAS,MAAM,KACd,WAAW,EA8Bb,CAAC"}