@epam/ai-dial-catalog 1.1.0-dev.29 → 1.1.0-dev.293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AppIdentity/AppIdentity.d.ts +9 -14
- package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
- package/components/CardGrid/Card.d.ts.map +1 -1
- package/components/CardGrid/CardGrid.d.ts.map +1 -1
- package/components/CardTag/CardTag.d.ts +24 -0
- package/components/CardTag/CardTag.d.ts.map +1 -0
- package/components/Catalog/Catalog.d.ts +1 -5
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +2 -2
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/CredentialsBadge/CredentialsBadge.d.ts +12 -5
- package/components/CredentialsBadge/CredentialsBadge.d.ts.map +1 -1
- package/components/Details/ApiDetails.d.ts +6 -2
- package/components/Details/ApiDetails.d.ts.map +1 -1
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +29 -0
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
- package/components/Details/ConfirmationView/ConfirmationView.d.ts +28 -0
- package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts +16 -0
- package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +29 -0
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts +20 -0
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +31 -0
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -0
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +34 -0
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -0
- package/components/Details/Header/Header.d.ts +93 -19
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/ShareButton/ShareButton.d.ts +6 -0
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/Details/TabsContent/About.d.ts +3 -2
- package/components/Details/TabsContent/About.d.ts.map +1 -1
- package/components/Details/TabsContent/Content.d.ts +53 -0
- package/components/Details/TabsContent/Content.d.ts.map +1 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +28 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -0
- package/components/Details/TabsContent/DataGrid/DataGrid.d.ts +1 -1
- package/components/Details/TabsContent/DataGrid/DataGrid.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits.d.ts +34 -3
- package/components/Details/TabsContent/Limits.d.ts.map +1 -1
- package/components/Favorites/FavoriteCard.d.ts +9 -4
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts +42 -6
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/InfoCard/InfoCard.d.ts +15 -0
- package/components/InfoCard/InfoCard.d.ts.map +1 -0
- package/components/ListView/ListView.d.ts +1 -5
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/FolderCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/FolderCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/NameCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/StarCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/StarCellRenderer.d.ts.map +1 -1
- package/components/ListView/Renders/TagsCellRenderer.d.ts +1 -0
- package/components/ListView/Renders/TagsCellRenderer.d.ts.map +1 -1
- package/components/ListView/columns.d.ts +2 -1
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/StarToggleButton/StarToggleButton.d.ts +2 -0
- package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
- package/components/TableView/TableView.d.ts +19 -0
- package/components/TableView/TableView.d.ts.map +1 -1
- package/components/Toolbar/Rows/TitleRow.d.ts +4 -3
- package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
- package/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/components/TopicTag/TopicTag.d.ts +12 -7
- package/components/TopicTag/TopicTag.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.d.ts +22 -34
- package/index.d.ts.map +1 -1
- package/index.js +59493 -22777
- package/models/app-identity-styles.d.ts +28 -0
- package/models/app-identity-styles.d.ts.map +1 -0
- package/models/card-props.d.ts +16 -14
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +3 -1
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-item-credentials.d.ts +4 -0
- package/models/catalog-item-credentials.d.ts.map +1 -1
- package/models/catalog-item.d.ts +3 -6
- package/models/catalog-item.d.ts.map +1 -1
- package/models/catalog-props.d.ts +142 -33
- package/models/catalog-props.d.ts.map +1 -1
- package/models/catalog-styles.d.ts +4 -41
- package/models/catalog-styles.d.ts.map +1 -1
- package/models/favorites.d.ts +24 -8
- package/models/favorites.d.ts.map +1 -1
- package/models/grid-context.d.ts +4 -1
- package/models/grid-context.d.ts.map +1 -1
- package/models/grid-props.d.ts +11 -1
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-data.d.ts +72 -2
- package/models/item-details-data.d.ts.map +1 -1
- package/models/item-details-props.d.ts +443 -57
- package/models/item-details-props.d.ts.map +1 -1
- package/models/item-overview.d.ts +1 -7
- package/models/item-overview.d.ts.map +1 -1
- package/models/list-props.d.ts +25 -4
- package/models/list-props.d.ts.map +1 -1
- package/models/toolbar-props.d.ts +7 -21
- package/models/toolbar-props.d.ts.map +1 -1
- package/package.json +5 -6
- package/types/catalog-content-type.d.ts +13 -0
- package/types/catalog-content-type.d.ts.map +1 -0
- package/types/deployment-icon-size.d.ts +5 -0
- package/types/deployment-icon-size.d.ts.map +1 -0
- package/types/detail-tab.d.ts +4 -1
- package/types/detail-tab.d.ts.map +1 -1
- package/types/details-confirmation.d.ts +28 -0
- package/types/details-confirmation.d.ts.map +1 -0
- package/types/recipients-count.d.ts +12 -0
- package/types/recipients-count.d.ts.map +1 -0
- package/types/toolset-auth.d.ts +9 -0
- package/types/toolset-auth.d.ts.map +1 -1
- package/utils/catalog-content-tree.d.ts +8 -0
- package/utils/catalog-content-tree.d.ts.map +1 -0
- package/utils/catalog-filter.d.ts +1 -0
- package/utils/catalog-filter.d.ts.map +1 -1
- package/utils/catalog-sort.d.ts +1 -8
- package/utils/catalog-sort.d.ts.map +1 -1
- package/utils/catalog-tabs.d.ts +2 -2
- package/utils/catalog-tabs.d.ts.map +1 -1
- package/utils/styles.d.ts +1 -3
- package/utils/styles.d.ts.map +1 -1
- package/utils/toolset-credentials.d.ts +6 -19
- package/utils/toolset-credentials.d.ts.map +1 -1
- package/utils/use-fav-columns.d.ts +1 -4
- package/utils/use-fav-columns.d.ts.map +1 -1
- package/utils/use-scroll-virtualizer.d.ts +1 -9
- package/utils/use-scroll-virtualizer.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsSection.d.ts +0 -21
- package/components/Details/Credentials/CredentialsSection.d.ts.map +0 -1
- package/components/Details/Header/ConnectButton/ConnectButton.d.ts +0 -25
- package/components/Details/Header/ConnectButton/ConnectButton.d.ts.map +0 -1
- package/components/Details/Header/DeleteButton/DeleteButton.d.ts +0 -25
- package/components/Details/Header/DeleteButton/DeleteButton.d.ts.map +0 -1
- package/components/Details/Summary/Limits.d.ts +0 -18
- package/components/Details/Summary/Limits.d.ts.map +0 -1
- package/components/Details/Summary/Summary.d.ts +0 -12
- package/components/Details/Summary/Summary.d.ts.map +0 -1
- package/components/EntityHeader/EntityHeader.d.ts +0 -32
- package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
- package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
- package/components/FeaturedChip/FeaturedChip.d.ts +0 -11
- package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
- package/components/FolderPath/FolderPath.d.ts +0 -25
- package/components/FolderPath/FolderPath.d.ts.map +0 -1
- package/components/ItemHeader/ItemHeader.d.ts +0 -14
- package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts +0 -72
- package/components/PublishFoldersTree/PublishFoldersTree.d.ts.map +0 -1
- package/components/PublishHistoryList/PublishHistoryList.d.ts +0 -44
- package/components/PublishHistoryList/PublishHistoryList.d.ts.map +0 -1
- package/components/PublishPanel/PublishFooter.d.ts +0 -37
- package/components/PublishPanel/PublishFooter.d.ts.map +0 -1
- package/components/PublishPanel/PublishPanel.d.ts +0 -109
- package/components/PublishPanel/PublishPanel.d.ts.map +0 -1
- package/components/PublishPanel/StandalonePublishPanel.d.ts +0 -90
- package/components/PublishPanel/StandalonePublishPanel.d.ts.map +0 -1
- package/components/SearchBar/SearchBar.d.ts +0 -29
- package/components/SearchBar/SearchBar.d.ts.map +0 -1
- package/constants/catalog-defaults.d.ts +0 -4
- package/constants/catalog-defaults.d.ts.map +0 -1
- package/constants/entity-colors.d.ts +0 -6
- package/constants/entity-colors.d.ts.map +0 -1
- package/models/entity-summary.d.ts +0 -23
- package/models/entity-summary.d.ts.map +0 -1
- package/models/publish.d.ts +0 -89
- package/models/publish.d.ts.map +0 -1
- package/models/sort.d.ts +0 -8
- package/models/sort.d.ts.map +0 -1
- package/types/entity-tag.d.ts +0 -9
- package/types/entity-tag.d.ts.map +0 -1
- package/types/entity-type.d.ts +0 -11
- package/types/entity-type.d.ts.map +0 -1
- package/utils/format-published-date.d.ts +0 -8
- package/utils/format-published-date.d.ts.map +0 -1
- package/utils/parse-about-content.d.ts +0 -32
- package/utils/parse-about-content.d.ts.map +0 -1
- package/utils/publish-folder-tree.d.ts +0 -45
- package/utils/publish-folder-tree.d.ts.map +0 -1
- package/utils/publish-state.d.ts +0 -9
- package/utils/publish-state.d.ts.map +0 -1
- package/utils/use-publish-flow.d.ts +0 -77
- package/utils/use-publish-flow.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../src/models/favorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,
|
|
1
|
+
{"version":3,"file":"favorites.d.ts","sourceRoot":"","sources":["../../src/models/favorites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,yDAAyD;AACzD,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mGAAmG;IACnG,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,iFAAiF;AACjF,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2GAA2G;IAC3G,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iFAAiF;IACjF,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AM,CAAC;IACtC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2KAA2K;IAC3K,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC"}
|
package/models/grid-context.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CatalogItem } from './catalog-item';
|
|
1
2
|
import { ListViewTypography } from './list-props';
|
|
2
3
|
/** ag-grid context shape passed to all cell renderers. */
|
|
3
4
|
export interface GridContext {
|
|
@@ -7,9 +8,11 @@ export interface GridContext {
|
|
|
7
8
|
typography: ListViewTypography;
|
|
8
9
|
/** Called when the star button is toggled in a row. */
|
|
9
10
|
onToggleFavorite?: (id: string, isStarred: boolean) => void;
|
|
11
|
+
/** Rule for whether the favorite star is shown on a row; `false` hides it. Defaults to visible when omitted. */
|
|
12
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
10
13
|
/** ID of an item to visually mark as selected (border, tint, and checkmark). */
|
|
11
14
|
selectedItemId?: string;
|
|
12
|
-
/**
|
|
15
|
+
/** Accessible label for the logged-out warning icon on the entity avatar, and the text shown in its hover tooltip. */
|
|
13
16
|
credentialsBadgeLoggedOutLabel?: string;
|
|
14
17
|
}
|
|
15
18
|
//# sourceMappingURL=grid-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-context.d.ts","sourceRoot":"","sources":["../../src/models/grid-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,EAAE,kBAAkB,CAAC;IAC/B,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,
|
|
1
|
+
{"version":3,"file":"grid-context.d.ts","sourceRoot":"","sources":["../../src/models/grid-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD,0DAA0D;AAC1D,MAAM,WAAW,WAAW;IAC1B,sEAAsE;IACtE,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,UAAU,EAAE,kBAAkB,CAAC;IAC/B,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,gHAAgH;IAChH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sHAAsH;IACtH,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC"}
|
package/models/grid-props.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface CardGridTitles {
|
|
|
9
9
|
addToFavoritesAriaLabel?: string;
|
|
10
10
|
/** Accessible label for the star button when the item is already starred. Default: `'Remove from favorites'`. */
|
|
11
11
|
removeFromFavoritesAriaLabel?: string;
|
|
12
|
-
/**
|
|
12
|
+
/** Accessible label for the logged-out warning icon on card avatars, and the text shown in its hover tooltip. Default: `'Authorize to use this toolset.'`. */
|
|
13
13
|
credentialsBadgeLoggedOutLabel?: string;
|
|
14
14
|
}
|
|
15
15
|
/** Props for `CardGrid`. */
|
|
@@ -20,6 +20,12 @@ export interface CardGridProps {
|
|
|
20
20
|
query?: string;
|
|
21
21
|
/** Called when a card's star is toggled. */
|
|
22
22
|
onToggleFavorite?: (id: string, isStarred: boolean) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Additional caller-supplied rule for whether the favorite star is shown on a
|
|
25
|
+
* card. Returning `false` hides the star and makes the item non-favoritable.
|
|
26
|
+
* Defaults to **visible** when omitted.
|
|
27
|
+
*/
|
|
28
|
+
isFavoriteVisible?: (item: CatalogItem) => boolean;
|
|
23
29
|
/** Grouped empty-state text overrides. */
|
|
24
30
|
titles?: CardGridTitles;
|
|
25
31
|
/** Called when a card body is clicked. */
|
|
@@ -28,5 +34,9 @@ export interface CardGridProps {
|
|
|
28
34
|
isLoading?: boolean;
|
|
29
35
|
/** ID of an item to visually mark as selected (border, tint, and checkmark). */
|
|
30
36
|
selectedItemId?: string;
|
|
37
|
+
/** Skeleton bar/shape color while loading. Defaults to `--cg-skeleton-color`. */
|
|
38
|
+
skeletonColor?: string;
|
|
39
|
+
/** Background color of a skeleton placeholder card. Fallback: `--bg-layer-raised`. */
|
|
40
|
+
skeletonCardBackground?: string;
|
|
31
41
|
}
|
|
32
42
|
//# sourceMappingURL=grid-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-props.d.ts","sourceRoot":"","sources":["../../src/models/grid-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,
|
|
1
|
+
{"version":3,"file":"grid-props.d.ts","sourceRoot":"","sources":["../../src/models/grid-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,wGAAwG;IACxG,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,iHAAiH;IACjH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,8JAA8J;IAC9J,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC;AAED,4BAA4B;AAC5B,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,0CAA0C;IAC1C,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sFAAsF;IACtF,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CatalogContentNodeType, CatalogContentPreviewType } from '../types/catalog-content-type';
|
|
1
2
|
import { CodeLanguage } from '../types/code-language';
|
|
2
3
|
import { CatalogItemCredentials } from './catalog-item-credentials';
|
|
3
4
|
import { CatalogItemOverview } from './item-overview';
|
|
@@ -61,9 +62,13 @@ export interface UsageLimitProgressRow {
|
|
|
61
62
|
total: number;
|
|
62
63
|
/** Whether the backend reports this row as effectively unlimited. */
|
|
63
64
|
isUnlimited?: boolean;
|
|
64
|
-
/** Preformatted visible value, e.g. "1,200 / 5,000". */
|
|
65
|
+
/** Preformatted visible value, e.g. "1,200 / 5,000". Used as-is when `usedLabel`/`totalLabel` are absent. */
|
|
65
66
|
valueLabel?: string;
|
|
66
|
-
/**
|
|
67
|
+
/** Preformatted consumed amount, e.g. "$0.00", rendered with the row's normal value weight. Enables rendering `usedLabel` and `totalLabel` with different emphasis instead of the single `valueLabel` string. */
|
|
68
|
+
usedLabel?: string;
|
|
69
|
+
/** Preformatted limit amount, e.g. "$100.00", rendered with heavier emphasis than `usedLabel`. */
|
|
70
|
+
totalLabel?: string;
|
|
71
|
+
/** Accessible value text for the progress bar (`aria-valuetext`), overriding the default `used / total` reading. */
|
|
67
72
|
ariaLabel?: string;
|
|
68
73
|
}
|
|
69
74
|
/** Complete data for the Limits tab. */
|
|
@@ -110,11 +115,76 @@ export interface CatalogItemTools {
|
|
|
110
115
|
/** Ordered list of tool definitions. */
|
|
111
116
|
tools: ToolDefinition[];
|
|
112
117
|
}
|
|
118
|
+
/** A selectable file in the Content tab's hierarchical file selector. */
|
|
119
|
+
export interface CatalogContentFileNode {
|
|
120
|
+
/** Discriminates this node as a file. */
|
|
121
|
+
type: CatalogContentNodeType.File;
|
|
122
|
+
/** Opaque id passed back to `onLoadContentFile`. Never parsed by the panel. */
|
|
123
|
+
id: string;
|
|
124
|
+
/** File name shown in the tree row. Not required to be unique across the tree — only `id` must be unique among a node's siblings' descendants. */
|
|
125
|
+
name: string;
|
|
126
|
+
}
|
|
127
|
+
/** A grouping folder in the Content tab's hierarchical file selector. */
|
|
128
|
+
export interface CatalogContentFolderNode {
|
|
129
|
+
/** Discriminates this node as a folder. */
|
|
130
|
+
type: CatalogContentNodeType.Folder;
|
|
131
|
+
/** Stable key identifying this folder for expand/collapse state. Never parsed by the panel. */
|
|
132
|
+
id: string;
|
|
133
|
+
/** Folder name shown in the tree row. */
|
|
134
|
+
name: string;
|
|
135
|
+
/** Nested folders and files. Empty when the folder carries no children. */
|
|
136
|
+
items: CatalogContentTreeNode[];
|
|
137
|
+
}
|
|
138
|
+
/** One node of the Content tab's hierarchical file tree — either a file or a folder. */
|
|
139
|
+
export type CatalogContentTreeNode = CatalogContentFileNode | CatalogContentFolderNode;
|
|
140
|
+
/** A picked file's content, resolved and typed for safe read-only rendering. */
|
|
141
|
+
export interface CatalogContentMarkdownPreview {
|
|
142
|
+
/** Discriminates this preview as Markdown. */
|
|
143
|
+
type: CatalogContentPreviewType.Markdown;
|
|
144
|
+
/** Markdown source, rendered through the same safe path as the base body. */
|
|
145
|
+
text: string;
|
|
146
|
+
}
|
|
147
|
+
/** Plain or source-code text, rendered read-only with whitespace preserved. */
|
|
148
|
+
export interface CatalogContentTextPreview {
|
|
149
|
+
/** Discriminates this preview as text. */
|
|
150
|
+
type: CatalogContentPreviewType.Text;
|
|
151
|
+
/** The file's text content. */
|
|
152
|
+
text: string;
|
|
153
|
+
/** Syntax-highlighting language id (e.g. `'python'`, `'json'`). Omitted renders as unhighlighted monospace text. */
|
|
154
|
+
language?: string;
|
|
155
|
+
}
|
|
156
|
+
/** An image preview, already resolved to a browser-loadable URL. */
|
|
157
|
+
export interface CatalogContentImagePreview {
|
|
158
|
+
/** Discriminates this preview as an image. */
|
|
159
|
+
type: CatalogContentPreviewType.Image;
|
|
160
|
+
/** Already-resolved, browser-loadable image URL. May be a `blob:` URL the host created for this preview. */
|
|
161
|
+
url: string;
|
|
162
|
+
}
|
|
163
|
+
/** A file the panel cannot render — shown as an explicit, accessible state rather than garbled content. */
|
|
164
|
+
export interface CatalogContentUnsupportedPreview {
|
|
165
|
+
/** Discriminates this preview as unsupported. */
|
|
166
|
+
type: CatalogContentPreviewType.Unsupported;
|
|
167
|
+
}
|
|
168
|
+
/** A picked file's resolved preview — one of four generic, host-agnostic shapes. */
|
|
169
|
+
export type CatalogContentFilePreview = CatalogContentMarkdownPreview | CatalogContentTextPreview | CatalogContentImagePreview | CatalogContentUnsupportedPreview;
|
|
170
|
+
/** Complete data for the Content tab (long-form text entities such as prompts). */
|
|
171
|
+
export interface CatalogItemPromptContent {
|
|
172
|
+
/** The item's full text body, already resolved by the host. */
|
|
173
|
+
content: string;
|
|
174
|
+
/** Summary shown above the body. Takes precedence over `CatalogItem.description`, for hosts whose summary is only known once details resolve. */
|
|
175
|
+
description?: string;
|
|
176
|
+
/** Folder/file tree the tab can switch between. A selector is rendered above the body whenever this holds two or more file nodes, at any depth. */
|
|
177
|
+
files?: CatalogContentTreeNode[];
|
|
178
|
+
/** Id of the file `content` was resolved from. The selector opens on it, and reselecting it restores `content` without a reload. */
|
|
179
|
+
selectedFileId?: string;
|
|
180
|
+
}
|
|
113
181
|
/**
|
|
114
182
|
* All tab-specific detail data for a catalog item.
|
|
115
183
|
* A tab is shown only when its corresponding field is non-null.
|
|
116
184
|
*/
|
|
117
185
|
export interface CatalogItemTabData {
|
|
186
|
+
/** Content tab data. When absent the Content tab is hidden. */
|
|
187
|
+
promptContent?: CatalogItemPromptContent;
|
|
118
188
|
/** Overview tab data. When absent the Overview tab is hidden. */
|
|
119
189
|
overview?: CatalogItemOverview;
|
|
120
190
|
/** Pricing tab data. When absent the Pricing tab is hidden. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-details-data.d.ts","sourceRoot":"","sources":["../../src/models/item-details-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,kEAAkE;AAClE,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;CACd;AAED,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC1B,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,iFAAiF;AACjF,MAAM,WAAW,cAAc;IAC7B,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,6CAA6C;AAC7C,MAAM,WAAW,qBAAqB;IACpC,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,gJAAgJ;IAChJ,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B,oFAAoF;IACpF,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,6CAA6C;AAC7C,MAAM,WAAW,UAAU;IACzB,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;CACf;AAED,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+CAA+C;AAC/C,MAAM,WAAW,qBAAqB;IACpC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;IACb,qFAAqF;IACrF,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,
|
|
1
|
+
{"version":3,"file":"item-details-data.d.ts","sourceRoot":"","sources":["../../src/models/item-details-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM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