@epam/ai-dial-catalog 1.1.0-dev.39 → 1.1.0-dev.390

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 (214) hide show
  1. package/components/AppIdentity/AppIdentity.d.ts +9 -14
  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/CardTag/CardTag.d.ts +24 -0
  7. package/components/CardTag/CardTag.d.ts.map +1 -0
  8. package/components/Catalog/Catalog.d.ts +1 -5
  9. package/components/Catalog/Catalog.d.ts.map +1 -1
  10. package/components/Catalog/CreateButton.d.ts +2 -2
  11. package/components/Catalog/CreateButton.d.ts.map +1 -1
  12. package/components/CredentialsBadge/CredentialsBadge.d.ts +12 -5
  13. package/components/CredentialsBadge/CredentialsBadge.d.ts.map +1 -1
  14. package/components/Details/ApiDetails.d.ts +6 -2
  15. package/components/Details/ApiDetails.d.ts.map +1 -1
  16. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +29 -0
  17. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  18. package/components/Details/ConfirmationView/ConfirmationView.d.ts +28 -0
  19. package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  20. package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts +16 -0
  21. package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts.map +1 -0
  22. package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +29 -0
  23. package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -0
  24. package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts +20 -0
  25. package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -0
  26. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +31 -0
  27. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -0
  28. package/components/Details/DetailsPanel.d.ts.map +1 -1
  29. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +34 -0
  30. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -0
  31. package/components/Details/Header/Header.d.ts +92 -19
  32. package/components/Details/Header/Header.d.ts.map +1 -1
  33. package/components/Details/Header/ShareButton/ShareButton.d.ts +6 -0
  34. package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
  35. package/components/Details/TabsContent/About.d.ts +3 -2
  36. package/components/Details/TabsContent/About.d.ts.map +1 -1
  37. package/components/Details/TabsContent/Content.d.ts +53 -0
  38. package/components/Details/TabsContent/Content.d.ts.map +1 -0
  39. package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +28 -0
  40. package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -0
  41. package/components/Details/TabsContent/DataGrid/DataGrid.d.ts +1 -1
  42. package/components/Details/TabsContent/DataGrid/DataGrid.d.ts.map +1 -1
  43. package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts +11 -0
  44. package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts.map +1 -0
  45. package/components/Details/TabsContent/Limits/LimitRow.d.ts +10 -0
  46. package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -0
  47. package/components/Details/TabsContent/Limits/Limits.d.ts +5 -0
  48. package/components/Details/TabsContent/Limits/Limits.d.ts.map +1 -0
  49. package/components/Favorites/FavoriteCard.d.ts +9 -4
  50. package/components/Favorites/FavoriteCard.d.ts.map +1 -1
  51. package/components/Favorites/Favorites.d.ts.map +1 -1
  52. package/components/Filter/Filter.d.ts +42 -6
  53. package/components/Filter/Filter.d.ts.map +1 -1
  54. package/components/InfoCard/InfoCard.d.ts +15 -0
  55. package/components/InfoCard/InfoCard.d.ts.map +1 -0
  56. package/components/ListView/ListView.d.ts +1 -5
  57. package/components/ListView/ListView.d.ts.map +1 -1
  58. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +1 -0
  59. package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
  60. package/components/ListView/Renders/FolderCellRenderer.d.ts +4 -0
  61. package/components/ListView/Renders/FolderCellRenderer.d.ts.map +1 -1
  62. package/components/ListView/Renders/NameCellRenderer.d.ts +1 -0
  63. package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
  64. package/components/ListView/Renders/StarCellRenderer.d.ts +1 -0
  65. package/components/ListView/Renders/StarCellRenderer.d.ts.map +1 -1
  66. package/components/ListView/Renders/TagsCellRenderer.d.ts +1 -0
  67. package/components/ListView/Renders/TagsCellRenderer.d.ts.map +1 -1
  68. package/components/ListView/columns.d.ts +25 -2
  69. package/components/ListView/columns.d.ts.map +1 -1
  70. package/components/StarToggleButton/StarToggleButton.d.ts +2 -0
  71. package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
  72. package/components/TableView/TableView.d.ts +19 -0
  73. package/components/TableView/TableView.d.ts.map +1 -1
  74. package/components/Toolbar/Rows/TitleRow.d.ts +6 -4
  75. package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
  76. package/components/Toolbar/Toolbar.d.ts.map +1 -1
  77. package/components/TopicTag/TopicTag.d.ts +12 -7
  78. package/components/TopicTag/TopicTag.d.ts.map +1 -1
  79. package/constants/virtual-grid.d.ts +7 -0
  80. package/constants/virtual-grid.d.ts.map +1 -1
  81. package/esm-CopgoDht-BT2jHHeq.js +16149 -0
  82. package/index.css +1 -1
  83. package/index.d.ts +25 -36
  84. package/index.d.ts.map +1 -1
  85. package/index.dom-BKBT_wVu-B6NnB8v3.js +10 -0
  86. package/index.js +30802 -27611
  87. package/lib-CglXTr1t-Ck7BZBUX.js +1202 -0
  88. package/models/app-identity-styles.d.ts +28 -0
  89. package/models/app-identity-styles.d.ts.map +1 -0
  90. package/models/card-props.d.ts +21 -15
  91. package/models/card-props.d.ts.map +1 -1
  92. package/models/card-row-data.d.ts +5 -1
  93. package/models/card-row-data.d.ts.map +1 -1
  94. package/models/catalog-item-credentials.d.ts +4 -0
  95. package/models/catalog-item-credentials.d.ts.map +1 -1
  96. package/models/catalog-item.d.ts +3 -6
  97. package/models/catalog-item.d.ts.map +1 -1
  98. package/models/catalog-props.d.ts +209 -34
  99. package/models/catalog-props.d.ts.map +1 -1
  100. package/models/catalog-styles.d.ts +4 -41
  101. package/models/catalog-styles.d.ts.map +1 -1
  102. package/models/favorites.d.ts +24 -8
  103. package/models/favorites.d.ts.map +1 -1
  104. package/models/grid-context.d.ts +6 -1
  105. package/models/grid-context.d.ts.map +1 -1
  106. package/models/grid-props.d.ts +20 -1
  107. package/models/grid-props.d.ts.map +1 -1
  108. package/models/item-details-data.d.ts +94 -4
  109. package/models/item-details-data.d.ts.map +1 -1
  110. package/models/item-details-props.d.ts +457 -57
  111. package/models/item-details-props.d.ts.map +1 -1
  112. package/models/item-overview.d.ts +1 -7
  113. package/models/item-overview.d.ts.map +1 -1
  114. package/models/limits-props.d.ts +61 -0
  115. package/models/limits-props.d.ts.map +1 -0
  116. package/models/list-props.d.ts +41 -6
  117. package/models/list-props.d.ts.map +1 -1
  118. package/models/toolbar-props.d.ts +14 -21
  119. package/models/toolbar-props.d.ts.map +1 -1
  120. package/package.json +5 -6
  121. package/rehype-katex-Da1z0EAE-BhD6x-qn.js +22225 -0
  122. package/types/catalog-content-type.d.ts +13 -0
  123. package/types/catalog-content-type.d.ts.map +1 -0
  124. package/types/deployment-icon-size.d.ts +5 -0
  125. package/types/deployment-icon-size.d.ts.map +1 -0
  126. package/types/detail-tab.d.ts +4 -1
  127. package/types/detail-tab.d.ts.map +1 -1
  128. package/types/details-confirmation.d.ts +28 -0
  129. package/types/details-confirmation.d.ts.map +1 -0
  130. package/types/recipients-count.d.ts +12 -0
  131. package/types/recipients-count.d.ts.map +1 -0
  132. package/types/toolset-auth.d.ts +9 -0
  133. package/types/toolset-auth.d.ts.map +1 -1
  134. package/types/view-mode.d.ts +1 -1
  135. package/types/view-mode.d.ts.map +1 -1
  136. package/utils/catalog-content-tree.d.ts +8 -0
  137. package/utils/catalog-content-tree.d.ts.map +1 -0
  138. package/utils/catalog-filter.d.ts +10 -1
  139. package/utils/catalog-filter.d.ts.map +1 -1
  140. package/utils/catalog-sort.d.ts +1 -8
  141. package/utils/catalog-sort.d.ts.map +1 -1
  142. package/utils/catalog-tabs.d.ts +2 -2
  143. package/utils/catalog-tabs.d.ts.map +1 -1
  144. package/utils/scroll-window.d.ts +19 -0
  145. package/utils/scroll-window.d.ts.map +1 -0
  146. package/utils/styles.d.ts +1 -3
  147. package/utils/styles.d.ts.map +1 -1
  148. package/utils/toolset-credentials.d.ts +6 -19
  149. package/utils/toolset-credentials.d.ts.map +1 -1
  150. package/utils/usage-limits.d.ts +15 -0
  151. package/utils/usage-limits.d.ts.map +1 -0
  152. package/utils/use-fav-columns.d.ts +1 -4
  153. package/utils/use-fav-columns.d.ts.map +1 -1
  154. package/utils/use-scroll-virtualizer.d.ts +14 -8
  155. package/utils/use-scroll-virtualizer.d.ts.map +1 -1
  156. package/web-namespaces-BJylbtYz-BBYVhrE_.js +89 -0
  157. package/components/Details/Credentials/CredentialsSection.d.ts +0 -21
  158. package/components/Details/Credentials/CredentialsSection.d.ts.map +0 -1
  159. package/components/Details/Header/ConnectButton/ConnectButton.d.ts +0 -25
  160. package/components/Details/Header/ConnectButton/ConnectButton.d.ts.map +0 -1
  161. package/components/Details/Header/DeleteButton/DeleteButton.d.ts +0 -25
  162. package/components/Details/Header/DeleteButton/DeleteButton.d.ts.map +0 -1
  163. package/components/Details/Summary/Limits.d.ts +0 -18
  164. package/components/Details/Summary/Limits.d.ts.map +0 -1
  165. package/components/Details/Summary/Summary.d.ts +0 -12
  166. package/components/Details/Summary/Summary.d.ts.map +0 -1
  167. package/components/Details/TabsContent/Limits.d.ts +0 -14
  168. package/components/Details/TabsContent/Limits.d.ts.map +0 -1
  169. package/components/EntityHeader/EntityHeader.d.ts +0 -32
  170. package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
  171. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
  172. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
  173. package/components/FeaturedChip/FeaturedChip.d.ts +0 -11
  174. package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
  175. package/components/FolderPath/FolderPath.d.ts +0 -25
  176. package/components/FolderPath/FolderPath.d.ts.map +0 -1
  177. package/components/ItemHeader/ItemHeader.d.ts +0 -14
  178. package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
  179. package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -72
  180. package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
  181. package/components/PublishHistoryList/PublishHistoryList.d.ts +0 -44
  182. package/components/PublishHistoryList/PublishHistoryList.d.ts.map +0 -1
  183. package/components/PublishPanel/PublishFooter.d.ts +0 -37
  184. package/components/PublishPanel/PublishFooter.d.ts.map +0 -1
  185. package/components/PublishPanel/PublishPanel.d.ts +0 -109
  186. package/components/PublishPanel/PublishPanel.d.ts.map +0 -1
  187. package/components/PublishPanel/StandalonePublishPanel.d.ts +0 -90
  188. package/components/PublishPanel/StandalonePublishPanel.d.ts.map +0 -1
  189. package/components/SearchBar/SearchBar.d.ts +0 -29
  190. package/components/SearchBar/SearchBar.d.ts.map +0 -1
  191. package/constants/catalog-defaults.d.ts +0 -4
  192. package/constants/catalog-defaults.d.ts.map +0 -1
  193. package/constants/entity-colors.d.ts +0 -6
  194. package/constants/entity-colors.d.ts.map +0 -1
  195. package/models/entity-summary.d.ts +0 -23
  196. package/models/entity-summary.d.ts.map +0 -1
  197. package/models/publish.d.ts +0 -89
  198. package/models/publish.d.ts.map +0 -1
  199. package/models/sort.d.ts +0 -8
  200. package/models/sort.d.ts.map +0 -1
  201. package/types/entity-tag.d.ts +0 -9
  202. package/types/entity-tag.d.ts.map +0 -1
  203. package/types/entity-type.d.ts +0 -11
  204. package/types/entity-type.d.ts.map +0 -1
  205. package/utils/format-published-date.d.ts +0 -8
  206. package/utils/format-published-date.d.ts.map +0 -1
  207. package/utils/parse-about-content.d.ts +0 -32
  208. package/utils/parse-about-content.d.ts.map +0 -1
  209. package/utils/publish-folder-tree.d.ts +0 -45
  210. package/utils/publish-folder-tree.d.ts.map +0 -1
  211. package/utils/publish-state.d.ts +0 -9
  212. package/utils/publish-state.d.ts.map +0 -1
  213. package/utils/use-publish-flow.d.ts +0 -77
  214. package/utils/use-publish-flow.d.ts.map +0 -1
@@ -0,0 +1,13 @@
1
+ /** Discriminates a Content tab file-tree node between a folder and a file. */
2
+ export declare enum CatalogContentNodeType {
3
+ File = "file",
4
+ Folder = "folder"
5
+ }
6
+ /** Discriminates a resolved Content tab file preview by how it should be rendered. */
7
+ export declare enum CatalogContentPreviewType {
8
+ Markdown = "markdown",
9
+ Text = "text",
10
+ Image = "image",
11
+ Unsupported = "unsupported"
12
+ }
13
+ //# sourceMappingURL=catalog-content-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-content-type.d.ts","sourceRoot":"","sources":["../../src/types/catalog-content-type.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,oBAAY,sBAAsB;IAChC,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,sFAAsF;AACtF,oBAAY,yBAAyB;IACnC,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B"}
@@ -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,28 @@
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
+ /** Removing a configured API key from a credentials slot. */
12
+ DeleteApiKey = "deleteApiKey",
13
+ /**
14
+ * Owner-side request to remove an already-published copy from one folder.
15
+ * The source item survives untouched, and the removal itself takes effect
16
+ * only after an administrator approves the request — copy for this kind
17
+ * describes a request, never a completed removal.
18
+ */
19
+ Unpublish = "unpublish"
20
+ }
21
+ /** Palette a confirmation step is rendered with. */
22
+ export declare enum DetailsConfirmationVariant {
23
+ /** Irreversible loss for everyone — red identity card and a danger confirm button. */
24
+ Danger = "danger",
25
+ /** Affects only the current user and is recoverable — blue identity card and a neutral confirm button. */
26
+ Info = "info"
27
+ }
28
+ //# 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;IAC7B,6DAA6D;IAC7D,YAAY,iBAAiB;IAC7B;;;;;OAKG;IACH,SAAS,cAAc;CACxB;AAED,oDAAoD;AACpD,oBAAY,0BAA0B;IACpC,sFAAsF;IACtF,MAAM,WAAW;IACjB,0GAA0G;IAC1G,IAAI,SAAS;CACd"}
@@ -0,0 +1,12 @@
1
+ /** Lifecycle of the on-demand recipient-count lookup that gates "Revoke access" in the details panel's Manage menu. */
2
+ export declare enum RecipientsCountStatus {
3
+ /** Nothing requested yet — the Manage menu has not been opened or focused. */
4
+ Idle = "idle",
5
+ /** A lookup is in flight. */
6
+ Loading = "loading",
7
+ /** A count came back and is known exactly. */
8
+ Resolved = "resolved",
9
+ /** The lookup finished without a count (host returned `undefined` or rejected). */
10
+ Unknown = "unknown"
11
+ }
12
+ //# sourceMappingURL=recipients-count.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipients-count.d.ts","sourceRoot":"","sources":["../../src/types/recipients-count.ts"],"names":[],"mappings":"AAAA,uHAAuH;AACvH,oBAAY,qBAAqB;IAC/B,8EAA8E;IAC9E,IAAI,SAAS;IACb,6BAA6B;IAC7B,OAAO,YAAY;IACnB,8CAA8C;IAC9C,QAAQ,aAAa;IACrB,mFAAmF;IACnF,OAAO,YAAY;CACpB"}
@@ -38,4 +38,13 @@ export declare enum CredentialsUiState {
38
38
  export declare enum CredentialsBadgeState {
39
39
  LoggedOut = "LOGGED_OUT"
40
40
  }
41
+ /** Resolved state for the informational banner shown below the details header about which credentials are active. */
42
+ export declare enum CredentialsBannerState {
43
+ /** Non-admin, not signed in personally, but organization-wide credentials are active — the item is usable meanwhile via those. */
44
+ UsingOrgCredentials = "USING_ORG_CREDENTIALS",
45
+ /** Admin managing a public item whose organization-wide credentials are active. */
46
+ OrgCredentialsActive = "ORG_CREDENTIALS_ACTIVE",
47
+ /** Admin managing a public item whose own personal credentials are active (and take precedence over any organization-wide credentials). */
48
+ PersonalCredentialsActive = "PERSONAL_CREDENTIALS_ACTIVE"
49
+ }
41
50
  //# sourceMappingURL=toolset-auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,6EAA6E;IAC7E,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,kBAAkB;IAC5B,4EAA4E;IAC5E,iBAAiB,uBAAuB;IACxC,wEAAwE;IACxE,gBAAgB,wBAAwB;IACxC,6CAA6C;IAC7C,KAAK,WAAW;IAChB,uCAAuC;IACvC,MAAM,YAAY;CACnB;AAED,wGAAwG;AACxG,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;CACzB"}
1
+ {"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,6EAA6E;IAC7E,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,kBAAkB;IAC5B,4EAA4E;IAC5E,iBAAiB,uBAAuB;IACxC,wEAAwE;IACxE,gBAAgB,wBAAwB;IACxC,6CAA6C;IAC7C,KAAK,WAAW;IAChB,uCAAuC;IACvC,MAAM,YAAY;CACnB;AAED,wGAAwG;AACxG,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;CACzB;AAED,qHAAqH;AACrH,oBAAY,sBAAsB;IAChC,kIAAkI;IAClI,mBAAmB,0BAA0B;IAC7C,mFAAmF;IACnF,oBAAoB,2BAA2B;IAC/C,2IAA2I;IAC3I,yBAAyB,gCAAgC;CAC1D"}
@@ -1,6 +1,6 @@
1
1
  /** Display mode for the browse section. */
2
2
  export declare enum CatalogViewMode {
3
3
  Grid = "grid",
4
- List = "list"
4
+ Cards = "cards"
5
5
  }
6
6
  //# sourceMappingURL=view-mode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../src/types/view-mode.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../src/types/view-mode.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB"}
@@ -0,0 +1,8 @@
1
+ import { CatalogContentTreeNode } from '../models/item-details-data';
2
+ /** Counts file nodes across the whole tree, at any depth; folders themselves are not counted. */
3
+ export declare const countFileNodes: (nodes: CatalogContentTreeNode[]) => number;
4
+ /** Collects the `id` of every folder node in the tree, at any depth. */
5
+ export declare const collectAllFolderIds: (nodes: CatalogContentTreeNode[]) => Set<string>;
6
+ /** Returns the `name` of the node carrying `id`, searching at any depth; `undefined` when absent or `id` is `undefined`. */
7
+ export declare const findContentNodeName: (nodes: CatalogContentTreeNode[], id: string | undefined) => string | undefined;
8
+ //# sourceMappingURL=catalog-content-tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog-content-tree.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-content-tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAG1E,iGAAiG;AACjG,eAAO,MAAM,cAAc,GAAI,OAAO,sBAAsB,EAAE,KAAG,MAI1D,CAAC;AAER,wEAAwE;AACxE,eAAO,MAAM,mBAAmB,GAC9B,OAAO,sBAAsB,EAAE,KAC9B,GAAG,CAAC,MAAM,CAYZ,CAAC;AAEF,4HAA4H;AAC5H,eAAO,MAAM,mBAAmB,GAC9B,OAAO,sBAAsB,EAAE,EAC/B,IAAI,MAAM,GAAG,SAAS,KACrB,MAAM,GAAG,SAUX,CAAC"}
@@ -1,12 +1,21 @@
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[];
5
6
  /** Returns items where `isMyApp` is `true`. */
6
7
  export declare const filterByMyApp: (items: CatalogItem[]) => CatalogItem[];
8
+ /** Derives the set of distinct topic values present across `items`. */
9
+ export declare const getTopicOptions: (items: CatalogItem[]) => Set<string>;
7
10
  /**
8
- * Returns a filtered array of items whose name, description, or type includes the query.
11
+ * Returns a filtered array of items whose name includes the query.
9
12
  * Case-insensitive and ignores leading/trailing whitespace.
13
+ *
14
+ * Only `name` is matched, because the name is the only text the card and the
15
+ * list row highlight. Matching `description` or `type` as well kept rows whose
16
+ * visible name had nothing in common with the query — a word that is common in
17
+ * tool descriptions, or any substring of an entity type such as `TOOLSET`,
18
+ * returned the whole category.
10
19
  */
11
20
  export declare const filterCatalogItems: (items: CatalogItem[], query: string) => CatalogItem[];
12
21
  //# sourceMappingURL=catalog-filter.d.ts.map
@@ -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,uEAAuE;AACvE,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,EAAE,KAAG,GAAG,CAAC,MAAM,CAClB,CAAC;AAEhD;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,WAAW,EAAE,EACpB,OAAO,MAAM,KACZ,WAAW,EAMb,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"}
@@ -1,6 +1,6 @@
1
+ import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
1
2
  import { TabModel } from '@epam/ai-dial-ui-kit';
2
3
  import { CatalogItem } from '../models/catalog-item';
3
- import { CatalogTitles } from '../models/catalog-props';
4
4
  /** Derives entity-type tabs from items present in the catalog, sorted by canonical order. */
5
- export declare const buildCatalogTabs: (items: CatalogItem[], tabLabels?: CatalogTitles["tabLabels"]) => TabModel[];
5
+ export declare const buildCatalogTabs: (items: CatalogItem[], tabLabels?: Partial<Record<CatalogEntityType, string>>) => TabModel[];
6
6
  //# sourceMappingURL=catalog-tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AA4B7D,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,YAAY,aAAa,CAAC,WAAW,CAAC,KACrC,QAAQ,EAOV,CAAC"}
1
+ {"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAuB1D,6FAA6F;AAC7F,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,YAAY,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,KACrD,QAAQ,EAOV,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { RefObject } from 'react';
2
+ /** Returns the nearest scrollable ancestor, falling back to `<html>`. */
3
+ export declare const getScrollParent: (el: Element | null) => Element;
4
+ /** Row range `useRowWindow` currently wants rendered. */
5
+ export interface RowWindow {
6
+ /** Attach to the element that spans all rows, spacers included. */
7
+ containerRef: RefObject<HTMLDivElement | null>;
8
+ /** Index of the first row to render (inclusive). */
9
+ startRow: number;
10
+ /** Index of one past the last row to render (exclusive). */
11
+ endRow: number;
12
+ }
13
+ /**
14
+ * Tracks which slice of a fixed-row-height list covers the viewport of its
15
+ * nearest scrollable ancestor, for a list that scrolls with the page rather
16
+ * than inside its own box.
17
+ */
18
+ export declare const useRowWindow: (rowCount: number, rowHeight: number, overscan?: number) => RowWindow;
19
+ //# sourceMappingURL=scroll-window.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-window.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-window.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAEpE,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,OAYpD,CAAC;AAeF,yDAAyD;AACzD,MAAM,WAAW,SAAS;IACxB,mEAAmE;IACnE,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,UAAU,MAAM,EAChB,WAAW,MAAM,EACjB,iBAA2B,KAC1B,SAiEF,CAAC"}
package/utils/styles.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { CSSProperties } from 'react';
2
- import { CatalogItem } from '../models/catalog-item';
3
2
  import { CatalogStyles } from '../models/catalog-styles';
4
- /** Returns CSS custom properties for entity color and shadow when the item is featured, undefined otherwise. */
5
- export declare const getFeaturedEntityStyle: (item: CatalogItem) => CSSProperties | undefined;
3
+ /** Builds CSS custom properties for the `Catalog` component from `CatalogStyles`. */
6
4
  export declare const getStyles: (catalogStyles?: CatalogStyles) => CSSProperties;
7
5
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/utils/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,gHAAgH;AAChH,eAAO,MAAM,sBAAsB,GACjC,MAAM,WAAW,KAChB,aAAa,GAAG,SAOlB,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,gBAAgB,aAAa,KAAG,aAezD,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/utils/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,qFAAqF;AACrF,eAAO,MAAM,SAAS,GAAI,gBAAgB,aAAa,KAAG,aAOzD,CAAC"}
@@ -1,24 +1,11 @@
1
1
  import { CatalogItemCredentials } from '../models/catalog-item-credentials';
2
- import { CredentialsBadgeState, CredentialsLevel, CredentialsUiState } from '../types/toolset-auth';
3
- /**
4
- * Resolves which credentials action/section the Details Panel should show,
5
- * mirroring the legacy Marketplace `getToolsetAuthAction` decision:
6
- * admin managing a public item always gets the two-level accordion; a
7
- * non-admin viewing a public item that they are not personally signed into
8
- * gets "Login with my creds"; otherwise it's a plain Log in / Log out.
9
- */
2
+ import { CredentialsBadgeState, CredentialsBannerState, CredentialsLevel, CredentialsUiState } from '../types/toolset-auth';
3
+ /** Resolves which credentials action/section the Details Panel should show for the given item credentials. */
10
4
  export declare const getCredentialsUiState: (credentials: CatalogItemCredentials) => CredentialsUiState;
11
- /**
12
- * Resolves the card-grid credentials badge state: LOGGED OUT when signed out
13
- * at every applicable level. Returns `undefined` (no badge) when the item
14
- * requires no authentication, or when it is signed in at any level.
15
- */
5
+ /** Returns `CredentialsBadgeState.LoggedOut` when signed out at every applicable level, or `undefined` when no authentication is required or signed in at any level. */
16
6
  export declare const getCredentialsBadgeState: (credentials: CatalogItemCredentials) => CredentialsBadgeState | undefined;
17
- /**
18
- * Resolves which level a direct (non-accordion) "Log out" action applies to:
19
- * prefers `USER` when signed in there, else falls back to `GLOBAL`. Only
20
- * meaningful when `getCredentialsUiState` returned `LogOut` (i.e. at least
21
- * one level is signed in).
22
- */
7
+ /** Resolves which level a direct (non-accordion) "Log out" action applies to. */
23
8
  export declare const getSignedInLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
9
+ /** Resolves which credentials banner, if any, the Details Panel should show below the header. */
10
+ export declare const getCredentialsBannerState: (credentials: CatalogItemCredentials) => CredentialsBannerState | undefined;
24
11
  //# sourceMappingURL=toolset-credentials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolset-credentials.d.ts","sourceRoot":"","sources":["../../src/utils/toolset-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAK/B;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,sBAAsB,KAClC,kBAcF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,GACnC,aAAa,sBAAsB,KAClC,qBAAqB,GAAG,SAW1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,sBAAsB,KAClC,gBAG0B,CAAC"}
1
+ {"version":3,"file":"toolset-credentials.d.ts","sourceRoot":"","sources":["../../src/utils/toolset-credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAGnB,MAAM,uBAAuB,CAAC;AAK/B,8GAA8G;AAC9G,eAAO,MAAM,qBAAqB,GAChC,aAAa,sBAAsB,KAClC,kBAcF,CAAC;AAEF,wKAAwK;AACxK,eAAO,MAAM,wBAAwB,GACnC,aAAa,sBAAsB,KAClC,qBAAqB,GAAG,SAW1B,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,GAC3B,aAAa,sBAAsB,KAClC,gBAG0B,CAAC;AAE9B,iGAAiG;AACjG,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBAAsB,GAAG,SAkB3B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { UsageLimitProgressRow } from '../models/item-details-data';
2
+ export declare enum ProgressStatus {
3
+ Default = "default",
4
+ Warning = "warning",
5
+ Danger = "danger"
6
+ }
7
+ export declare const getProgressValue: (row: UsageLimitProgressRow) => number;
8
+ export declare const getProgressMax: (total: number) => number;
9
+ export declare const getValueLabel: ({ used, total, valueLabel, }: UsageLimitProgressRow) => string;
10
+ export declare const hasProgress: ({ total }: UsageLimitProgressRow) => boolean;
11
+ export declare const isCapped: (row: UsageLimitProgressRow) => boolean;
12
+ /** Fraction of the limit consumed so far, clamped to `[0, Infinity)`; `0` when `total` isn't usable. */
13
+ export declare const getUsageRatio: (row: UsageLimitProgressRow) => number;
14
+ export declare const getProgressStatus: (row: UsageLimitProgressRow) => ProgressStatus;
15
+ //# sourceMappingURL=usage-limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage-limits.d.ts","sourceRoot":"","sources":["../../src/utils/usage-limits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAMzE,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,gBAAgB,GAAI,KAAK,qBAAqB,KAAG,MAM7D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,KAAG,MACE,CAAC;AAElD,eAAO,MAAM,aAAa,GAAI,8BAI3B,qBAAqB,WAE8C,CAAC;AAEvE,eAAO,MAAM,WAAW,GAAI,WAAW,qBAAqB,YACvB,CAAC;AAEtC,eAAO,MAAM,QAAQ,GAAI,KAAK,qBAAqB,YACL,CAAC;AAE/C,wGAAwG;AACxG,eAAO,MAAM,aAAa,GAAI,KAAK,qBAAqB,KAAG,MACD,CAAC;AAE3D,eAAO,MAAM,iBAAiB,GAC5B,KAAK,qBAAqB,KACzB,cASF,CAAC"}
@@ -1,6 +1,3 @@
1
- /**
2
- * Returns the column count for the Favorites grid.
3
- * Responsive: ≥1024 px → 4, ≥640 px → 2, else 1.
4
- */
1
+ /** Returns the column count for the Favorites grid: ≥1024 px → 4, ≥640 px → 2, else 1. */
5
2
  export declare const useFavColumns: () => number;
6
3
  //# sourceMappingURL=use-fav-columns.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-fav-columns.d.ts","sourceRoot":"","sources":["../../src/utils/use-fav-columns.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAO,MAYhC,CAAC"}
1
+ {"version":3,"file":"use-fav-columns.d.ts","sourceRoot":"","sources":["../../src/utils/use-fav-columns.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,eAAO,MAAM,aAAa,QAAO,MAYhC,CAAC"}
@@ -14,14 +14,20 @@ export interface ScrollVirtualizerResult {
14
14
  /** Total pixel height of the full (un-windowed) content area. */
15
15
  totalHeight: number;
16
16
  }
17
+ /** Options for `useScrollVirtualizer`. */
18
+ export interface ScrollVirtualizerOptions {
19
+ /** Rows kept rendered beyond each edge of the viewport. Defaults to `3`. */
20
+ overscan?: number;
21
+ /**
22
+ * Set when the grid renders without the `CONTENT_MAX_WIDTH` column cap, so
23
+ * the first-paint column guess matches the width the container actually
24
+ * gets. Defaults to `false`.
25
+ */
26
+ isFullWidth?: boolean;
27
+ }
17
28
  /**
18
- * Virtualizes a card grid whose scroll is driven by the nearest scrollable
19
- * ancestor rather than an internal scroll container.
20
- *
21
- * Attach `containerRef` to a `position: relative` wrapper that has
22
- * `height: totalHeight` so the page scroll height stays correct.
23
- * Only rows between `startRow` (inclusive) and `endRow` (exclusive)
24
- * need to be rendered.
29
+ * Virtualizes a card grid driven by the nearest scrollable ancestor; returns
30
+ * row window, column count, and total height.
25
31
  */
26
- export declare const useScrollVirtualizer: (itemCount: number, overscan?: number) => ScrollVirtualizerResult;
32
+ export declare const useScrollVirtualizer: (itemCount: number, { overscan, isFullWidth }?: ScrollVirtualizerOptions) => ScrollVirtualizerResult;
27
33
  //# sourceMappingURL=use-scroll-virtualizer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-scroll-virtualizer.d.ts","sourceRoot":"","sources":["../../src/utils/use-scroll-virtualizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAyBpE,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAC/B,WAAW,MAAM,EACjB,iBAAY,KACX,uBAkEF,CAAC"}
1
+ {"version":3,"file":"use-scroll-virtualizer.d.ts","sourceRoot":"","sources":["../../src/utils/use-scroll-virtualizer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAWpE,8CAA8C;AAC9C,MAAM,WAAW,uBAAuB;IACtC,2DAA2D;IAC3D,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC/C,oDAAoD;IACpD,QAAQ,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,0CAA0C;AAC1C,MAAM,WAAW,wBAAwB;IACvC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,WAAW,MAAM,EACjB,4BAAuC,wBAA6B,KACnE,uBAqEF,CAAC"}
@@ -0,0 +1,89 @@
1
+ //#region ../chat-shared/dist/web-namespaces-BJylbtYz.js
2
+ var e = (function(e) {
3
+ if (e == null) return a;
4
+ if (typeof e == "function") return i(e);
5
+ if (typeof e == "object") return Array.isArray(e) ? t(e) : n(e);
6
+ if (typeof e == "string") return r(e);
7
+ throw Error("Expected function, string, or object as test");
8
+ });
9
+ function t(t) {
10
+ let n = [], r = -1;
11
+ for (; ++r < t.length;) n[r] = e(t[r]);
12
+ return i(a);
13
+ function a(...e) {
14
+ let t = -1;
15
+ for (; ++t < n.length;) if (n[t].apply(this, e)) return !0;
16
+ return !1;
17
+ }
18
+ }
19
+ function n(e) {
20
+ let t = e;
21
+ return i(n);
22
+ function n(n) {
23
+ let r = n, i;
24
+ for (i in e) if (r[i] !== t[i]) return !1;
25
+ return !0;
26
+ }
27
+ }
28
+ function r(e) {
29
+ return i(t);
30
+ function t(t) {
31
+ return t && t.type === e;
32
+ }
33
+ }
34
+ function i(e) {
35
+ return t;
36
+ function t(t, n, r) {
37
+ return !!(o(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
38
+ }
39
+ }
40
+ function a() {
41
+ return !0;
42
+ }
43
+ function o(e) {
44
+ return typeof e == "object" && !!e && "type" in e;
45
+ }
46
+ function s(e) {
47
+ return e;
48
+ }
49
+ var c = [], l = "skip";
50
+ function u(t, n, r, i) {
51
+ let a;
52
+ typeof n == "function" && typeof r != "function" ? (i = r, r = n) : a = n;
53
+ let o = e(a), l = i ? -1 : 1;
54
+ u(t, void 0, [])();
55
+ function u(e, t, a) {
56
+ let f = e && typeof e == "object" ? e : {};
57
+ if (typeof f.type == "string") {
58
+ let t = typeof f.tagName == "string" ? f.tagName : typeof f.name == "string" ? f.name : void 0;
59
+ Object.defineProperty(p, "name", { value: "node (" + s(e.type + (t ? "<" + t + ">" : "")) + ")" });
60
+ }
61
+ return p;
62
+ function p() {
63
+ let s = c, f, p, m;
64
+ if ((!n || o(e, t, a[a.length - 1] || void 0)) && (s = d(r(e, a)), s[0] === !1)) return s;
65
+ if ("children" in e && e.children) {
66
+ let t = e;
67
+ if (t.children && s[0] !== "skip") for (p = (i ? t.children.length : -1) + l, m = a.concat(t); p > -1 && p < t.children.length;) {
68
+ let e = t.children[p];
69
+ if (f = u(e, p, m)(), f[0] === !1) return f;
70
+ p = typeof f[1] == "number" ? f[1] : p + l;
71
+ }
72
+ }
73
+ return s;
74
+ }
75
+ }
76
+ }
77
+ function d(e) {
78
+ return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? c : [e];
79
+ }
80
+ var f = {
81
+ html: "http://www.w3.org/1999/xhtml",
82
+ mathml: "http://www.w3.org/1998/Math/MathML",
83
+ svg: "http://www.w3.org/2000/svg",
84
+ xlink: "http://www.w3.org/1999/xlink",
85
+ xml: "http://www.w3.org/XML/1998/namespace",
86
+ xmlns: "http://www.w3.org/2000/xmlns/"
87
+ };
88
+ //#endregion
89
+ export { u as i, f as n, l as r, e as t };
@@ -1,21 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogItem } from '../../../models/catalog-item';
3
- import { ItemDetailsTexts } from '../../../models/item-details-props';
4
- import { CredentialsLevel } from '../../../types/toolset-auth';
5
- interface CredentialsSectionProps {
6
- item: CatalogItem;
7
- onLogin?: (item: CatalogItem, params: {
8
- level: CredentialsLevel;
9
- apiKey?: string;
10
- }) => void;
11
- onLogout?: (item: CatalogItem, params: {
12
- level: CredentialsLevel;
13
- }) => void;
14
- texts?: ItemDetailsTexts;
15
- /** Typography class for the signed-in/signed-out status label. Default: `'dial-small-semi-text text-primary'`. */
16
- statusLabelClassName?: string;
17
- }
18
- /** Inline login/logout section shown below the details panel header when the credentials action is expanded. */
19
- export declare const CredentialsSection: FC<CredentialsSectionProps>;
20
- export {};
21
- //# sourceMappingURL=CredentialsSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CredentialsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Credentials/CredentialsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAIjB,MAAM,6BAA6B,CAAC;AAMrC,UAAU,uBAAuB;IAC/B,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,CACR,IAAI,EAAE,WAAW,EACjB,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KACjD,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE,KAAK,IAAI,CAAC;IAC5E,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,kHAAkH;IAClH,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AA+GD,gHAAgH;AAChH,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAqG1D,CAAC"}
@@ -1,25 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { CatalogItem } from '../../../../models/catalog-item';
3
- /** Props for {@link ConnectButton}. */
4
- interface ConnectButtonProps {
5
- /** The catalog item to connect. */
6
- item: CatalogItem;
7
- /**
8
- * Renders the Connect popover content anchored to the button. When
9
- * absent, the Connect button is never shown.
10
- */
11
- connectOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
12
- /** Controls whether the button is shown for the item. When absent or `false`, nothing renders. */
13
- isConnectVisible?: (item: CatalogItem) => boolean;
14
- /** Connect button label. Defaults to `'Connect'`. */
15
- label?: string;
16
- }
17
- /**
18
- * Connect action button for the details header. Renders nothing unless
19
- * both `isConnectVisible(item)` returns `true` and `connectOverlay` is
20
- * supplied — there is no non-overlay fallback action. Clicking the button
21
- * opens `connectOverlay` in an anchored dropdown.
22
- */
23
- export declare const ConnectButton: FC<ConnectButtonProps>;
24
- export {};
25
- //# sourceMappingURL=ConnectButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ConnectButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/ConnectButton/ConnectButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,uCAAuC;AACvC,UAAU,kBAAkB;IAC1B,mCAAmC;IACnC,IAAI,EAAE,WAAW,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACvE,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAClD,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuChD,CAAC"}
@@ -1,25 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogItem } from '../../../../models/catalog-item';
3
- import { ItemDetailsTexts } from '../../../../models/item-details-props';
4
- /** Props for {@link DeleteButton}. */
5
- interface DeleteButtonProps {
6
- /** The catalog item to delete. */
7
- item: CatalogItem;
8
- /**
9
- * Called when the Delete button is clicked. May return a promise; the
10
- * button shows a disabled state while pending.
11
- */
12
- onDelete?: (item: CatalogItem) => Promise<void> | void;
13
- /** Called after `onDelete` resolves successfully, e.g. to close the whole details panel. */
14
- onDeleted?: () => void;
15
- /** Text overrides for the button label. */
16
- texts?: ItemDetailsTexts;
17
- }
18
- /**
19
- * Delete action button for the details header. Renders nothing for items the
20
- * current user doesn't own or that aren't deletable. Clicking it calls
21
- * `onDelete` immediately, with no confirmation step.
22
- */
23
- export declare const DeleteButton: FC<DeleteButtonProps>;
24
- export {};
25
- //# sourceMappingURL=DeleteButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/DeleteButton/DeleteButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAG9E,sCAAsC;AACtC,UAAU,iBAAiB;IACzB,kCAAkC;IAClC,IAAI,EAAE,WAAW,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACvD,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAYD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA8C9C,CAAC"}
@@ -1,18 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogItemSummary } from '../../../models/entity-summary';
3
- /** Props for `Limits`. */
4
- export interface LimitsProps {
5
- /** Summary data to render. */
6
- summary: CatalogItemSummary;
7
- /** Label shown above the daily-limit progress bar. Default: `'Daily limit'`. */
8
- dailyLimitLabel?: string;
9
- /** CSS class applied to the tag chip text. Defaults to `'dial-tiny-text'`. */
10
- tagClassName?: string;
11
- /** CSS class applied to the progress bar label. Defaults to `'dial-caption-text'`. */
12
- limitLabelClassName?: string;
13
- /** CSS class applied to the reset cadence string. Defaults to `'dial-tiny-text'`. */
14
- limitResetClassName?: string;
15
- }
16
- /** Renders the header summary block: entity tag, badge image, and daily-limit progress bar. */
17
- export declare const Limits: FC<LimitsProps>;
18
- //# sourceMappingURL=Limits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Limits.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Summary/Limits.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAYzE,0BAA0B;AAC1B,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC9B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sFAAsF;IACtF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qFAAqF;IACrF,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,+FAA+F;AAC/F,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA4DlC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogItem } from '../../../models/catalog-item';
3
- import { ItemDetailsStyles, ItemDetailsTexts } from '../../../models/item-details-props';
4
- interface SummaryProp {
5
- item: CatalogItem;
6
- texts?: ItemDetailsTexts;
7
- detailsStyles?: ItemDetailsStyles;
8
- }
9
- /** Right-side slide-in panel summary: intro/description, topics, and usage limits. */
10
- export declare const Summary: FC<SummaryProp>;
11
- export {};
12
- //# sourceMappingURL=Summary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Summary.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Summary/Summary.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAM5C,UAAU,WAAW;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,WAAW,CAgCnC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogItemLimits } from '../../../models/item-details-data';
3
- /** Props for `LimitsTab`. */
4
- export interface LimitsTabProps {
5
- /** Limits data to render. */
6
- limits?: CatalogItemLimits;
7
- /** CSS class for row labels. Defaults to `'dial-small-semi-text'`. */
8
- labelClassName?: string;
9
- /** CSS class for row values. Defaults to `'dial-small-text'`. */
10
- valueClassName?: string;
11
- }
12
- /** Renders model usage limits as labeled progress bars. */
13
- export declare const LimitsTab: FC<LimitsTabProps>;
14
- //# sourceMappingURL=Limits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Limits.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Limits.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,mCAAmC,CAAC;AAmB3C,6BAA6B;AAC7B,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2DAA2D;AAC3D,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CAyCxC,CAAC"}