@epam/ai-dial-catalog 1.1.0-dev.21 → 1.1.0-dev.211
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 +7 -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/CardGrid/CardRowRenderer.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 +10 -1
- package/components/CredentialsBadge/CredentialsBadge.d.ts.map +1 -1
- package/components/Details/ApiDetails.d.ts +4 -2
- package/components/Details/ApiDetails.d.ts.map +1 -1
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +22 -0
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
- package/components/Details/ConfirmationView/ConfirmationView.d.ts +19 -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/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 +38 -16
- 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 +2 -1
- 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.map +1 -1
- package/components/Favorites/FavoriteCard.d.ts +6 -3
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts +34 -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 +3 -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 +21 -33
- package/index.d.ts.map +1 -1
- package/index.js +54407 -17975
- 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 +13 -13
- package/models/card-props.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 +107 -34
- package/models/catalog-props.d.ts.map +1 -1
- package/models/catalog-styles.d.ts +3 -40
- package/models/catalog-styles.d.ts.map +1 -1
- package/models/favorites.d.ts +13 -7
- package/models/favorites.d.ts.map +1 -1
- package/models/grid-props.d.ts +4 -0
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-data.d.ts +66 -0
- package/models/item-details-data.d.ts.map +1 -1
- package/models/item-details-props.d.ts +371 -56
- 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 +22 -3
- package/models/list-props.d.ts.map +1 -1
- package/models/toolbar-props.d.ts +17 -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 +21 -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/parse-about-content.d.ts +2 -12
- package/utils/parse-about-content.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/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,5 +1,7 @@
|
|
|
1
|
+
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
1
2
|
import { FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
+
import { AppIdentityStyles } from '../../models/app-identity-styles';
|
|
4
|
+
import { DeploymentSize } from '../../types/deployment-icon-size';
|
|
3
5
|
/** Props for the shared AppIdentity block used in browse and favorite cards. */
|
|
4
6
|
export interface AppIdentityProps {
|
|
5
7
|
/** Icon image URL. When absent, the DeploymentIcon renders a tinted fallback. */
|
|
@@ -15,23 +17,14 @@ export interface AppIdentityProps {
|
|
|
15
17
|
* When undefined, the row is hidden even in size 'lg'.
|
|
16
18
|
*/
|
|
17
19
|
lastUsed?: string;
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
* 'lg' — favorite cards: 54 px logo, radius 14 px, includes last-used line.
|
|
21
|
-
*/
|
|
22
|
-
size: 'sm' | 'lg';
|
|
20
|
+
/** Size of the block, which controls the logo size and whether the last-used row is shown. */
|
|
21
|
+
size: DeploymentSize;
|
|
23
22
|
/** Search query used to highlight matching text in the name. */
|
|
24
23
|
query?: string;
|
|
25
24
|
/** Additional classes applied to the root element. */
|
|
26
25
|
className?: string;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/** CSS class for the entity name. Default: 'dial-body-semi-text text-primary'. */
|
|
30
|
-
nameClassName?: string;
|
|
31
|
-
/** CSS class for the version string. Default: 'dial-tiny-text text-secondary'. */
|
|
32
|
-
versionClassName?: string;
|
|
33
|
-
/** CSS class for the last-used line text and icon. Default: 'dial-tiny-text text-secondary'. */
|
|
34
|
-
lastUsedClassName?: string;
|
|
26
|
+
/** Grouped color and typography overrides. */
|
|
27
|
+
styles?: AppIdentityStyles;
|
|
35
28
|
/** Element rendered at the end of the last-used row (size 'lg' only). */
|
|
36
29
|
lastUsedTrailing?: ReactNode;
|
|
37
30
|
/** Additional CSS class applied to the icon wrapper div (e.g. for hover-scale animations). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppIdentity.d.ts","sourceRoot":"","sources":["../../../src/components/AppIdentity/AppIdentity.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppIdentity.d.ts","sourceRoot":"","sources":["../../../src/components/AppIdentity/AppIdentity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAIlB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAGlE,gFAAgF;AAChF,MAAM,WAAW,gBAAgB;IAC/B,iFAAiF;IACjF,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,6FAA6F;IAC7F,IAAI,EAAE,iBAAiB,CAAC;IACxB,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8FAA8F;IAC9F,IAAI,EAAE,cAAc,CAAC;IACrB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,8FAA8F;IAC9F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oFAAoF;AACpF,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiG5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,EAAE,EAMH,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAQzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA4K9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardGrid.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAiB,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAK7D,yFAAyF;AACzF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2GtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardRowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardRowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,uDAAuD;AACvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"CardRowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/CardRowRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,uDAAuD;AACvD,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACvD,sFAAsF;IACtF,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAkDpD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
/** Color overrides for `CardTag`, applied as CSS custom properties. */
|
|
3
|
+
export interface CardTagColors {
|
|
4
|
+
/** Tag background color. Fallback: `--bg-layer-sunken`. */
|
|
5
|
+
background?: string;
|
|
6
|
+
/** Tag text color. Fallback: `--text-secondary`. */
|
|
7
|
+
text?: string;
|
|
8
|
+
/** Tag border color. Fallback: `--stroke-tertiary`. */
|
|
9
|
+
border?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Props for `CardTag`. */
|
|
12
|
+
export interface CardTagProps {
|
|
13
|
+
/** Text displayed inside the tag. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** CSS class for layout/spacing of the tag itself (e.g. margins). */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Typography class for the tag label. Default: `'dial-tiny-text'`. */
|
|
18
|
+
badgeClassName?: string;
|
|
19
|
+
/** Color overrides applied as CSS custom properties. */
|
|
20
|
+
colors?: CardTagColors;
|
|
21
|
+
}
|
|
22
|
+
/** Compact tag used on catalog cards and rows for topics and status badges. */
|
|
23
|
+
export declare const CardTag: FC<CardTagProps>;
|
|
24
|
+
//# sourceMappingURL=CardTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTag.d.ts","sourceRoot":"","sources":["../../../src/components/CardTag/CardTag.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,uEAAuE;AACvE,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,2BAA2B;AAC3B,MAAM,WAAW,YAAY;IAC3B,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,+EAA+E;AAC/E,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAqBpC,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { CatalogProps } from '../../models/catalog-props';
|
|
3
|
-
/**
|
|
4
|
-
* Root catalog component. Owns all filter/sort/tab/pagination state and wires
|
|
5
|
-
* Favorites, Toolbar, CardGrid, and ListView.
|
|
6
|
-
* All data arrives via props — no direct API or context access.
|
|
7
|
-
*/
|
|
3
|
+
/** Root catalog component: entity browsing with tabs, search, sort, filter, favorites strip, and details panel. */
|
|
8
4
|
export declare const Catalog: FC<CatalogProps>;
|
|
9
5
|
//# sourceMappingURL=Catalog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Catalog.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/Catalog.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAqD,MAAM,OAAO,CAAC;AAE9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAqB/D,mHAAmH;AACnH,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAoiBpC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
1
2
|
import { FC } from 'react';
|
|
2
|
-
import { CreateOption } from '../../models/catalog-props';
|
|
3
3
|
/** Props for the catalog Create button. */
|
|
4
4
|
export interface CreateButtonProps {
|
|
5
5
|
/** Button label. */
|
|
@@ -8,7 +8,7 @@ export interface CreateButtonProps {
|
|
|
8
8
|
* When provided, the button opens a dropdown with these options instead of
|
|
9
9
|
* calling `onClick` directly.
|
|
10
10
|
*/
|
|
11
|
-
options?:
|
|
11
|
+
options?: DropdownItem[];
|
|
12
12
|
/** Called when the button is clicked and no `options` are present. */
|
|
13
13
|
onClick?: () => void;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateButton.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/CreateButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateButton.d.ts","sourceRoot":"","sources":["../../../src/components/Catalog/CreateButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAU,MAAM,OAAO,CAAC;AAEnC,2CAA2C;AAC3C,MAAM,WAAW,iBAAiB;IAChC,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,yEAAyE;AACzE,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA4B9C,CAAC"}
|
|
@@ -8,8 +8,17 @@ export interface CredentialsBadgeProps {
|
|
|
8
8
|
loggedOutLabel?: string;
|
|
9
9
|
/** Additional CSS class applied for layout/spacing (e.g. margins). */
|
|
10
10
|
className?: string;
|
|
11
|
-
/** Typography
|
|
11
|
+
/** Typography class for the badge itself. Default: `'dial-caption-lead-semi-text'`. Colors come from the module stylesheet. */
|
|
12
12
|
badgeClassName?: string;
|
|
13
|
+
/** Color overrides applied as CSS custom properties. */
|
|
14
|
+
colors?: CredentialsBadgeColors;
|
|
15
|
+
}
|
|
16
|
+
/** Color overrides for `CredentialsBadge`, applied as CSS custom properties. */
|
|
17
|
+
export interface CredentialsBadgeColors {
|
|
18
|
+
/** Badge background color. Fallback: `--bg-error`. */
|
|
19
|
+
background?: string;
|
|
20
|
+
/** Badge text color. Fallback: `--text-error`. */
|
|
21
|
+
text?: string;
|
|
13
22
|
}
|
|
14
23
|
/** Credential-status badge shown on toolset cards — only rendered when signed out. */
|
|
15
24
|
export declare const CredentialsBadge: FC<CredentialsBadgeProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialsBadge.d.ts","sourceRoot":"","sources":["../../../src/components/CredentialsBadge/CredentialsBadge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CredentialsBadge.d.ts","sourceRoot":"","sources":["../../../src/components/CredentialsBadge/CredentialsBadge.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAKpF,oCAAoC;AACpC,MAAM,WAAW,qBAAqB;IACpC,2IAA2I;IAC3I,WAAW,CAAC,EAAE,sBAAsB,CAAC;IACrC,kEAAkE;IAClE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+HAA+H;IAC/H,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC;AAED,gFAAgF;AAChF,MAAM,WAAW,sBAAsB;IACrC,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,sFAAsF;AACtF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAoBtD,CAAC"}
|
|
@@ -12,7 +12,7 @@ export interface ApiDetailsProps {
|
|
|
12
12
|
snippetSectionLabel?: string;
|
|
13
13
|
/** "Model ID" row label. Default: `'Model ID'`. */
|
|
14
14
|
modelIdLabel?: string;
|
|
15
|
-
/**
|
|
15
|
+
/** Title shown in the single-endpoint code block's header (when `api.endpoints` is absent). Default: `'Endpoint'`. */
|
|
16
16
|
endpointLabel?: string;
|
|
17
17
|
/** "Request example" row label. Default: `'Request example'`. */
|
|
18
18
|
requestExampleLabel?: string;
|
|
@@ -26,9 +26,11 @@ export interface ApiDetailsProps {
|
|
|
26
26
|
valueClassName?: string;
|
|
27
27
|
/** CSS class for code block text. Defaults to `'dial-code-text'`. */
|
|
28
28
|
codeClassName?: string;
|
|
29
|
+
/** CSS class for the endpoint/language title inside a code block header. Defaults to `'dial-tiny-semi-text'` — unlike a plain code block's label, these titles keep their authored casing. */
|
|
30
|
+
codeTitleClassName?: string;
|
|
29
31
|
/** CSS class for section headings. Defaults to `'dial-caption-text'`. */
|
|
30
32
|
sectionClassName?: string;
|
|
31
33
|
}
|
|
32
|
-
/** Renders the
|
|
34
|
+
/** Renders the Connect tab: resource identity rows, a copyable single- or multi-endpoint URL (titled with the endpoint's name), and code snippets. */
|
|
33
35
|
export declare const ApiDetails: FC<ApiDetailsProps>;
|
|
34
36
|
//# sourceMappingURL=ApiDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApiDetails.d.ts","sourceRoot":"","sources":["../../../src/components/Details/ApiDetails.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ApiDetails.d.ts","sourceRoot":"","sources":["../../../src/components/Details/ApiDetails.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAgC,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,gCAAgC,CAAC;AAkBxC,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,GAAG,EAAE,qBAAqB,CAAC;IAC3B,yDAAyD;IACzD,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,yFAAyF;IACzF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,6FAA6F;IAC7F,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sHAAsH;IACtH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,8LAA8L;IAC9L,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAsFD,sJAAsJ;AACtJ,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA+K1C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DetailsConfirmationVariant } from '../../../types/details-confirmation';
|
|
3
|
+
/** Props for `ConfirmationFooter`. */
|
|
4
|
+
export interface ConfirmationFooterProps {
|
|
5
|
+
/** Label of the confirming action button. */
|
|
6
|
+
confirmLabel: string;
|
|
7
|
+
/** Label of the cancel button. */
|
|
8
|
+
cancelLabel: string;
|
|
9
|
+
/** Palette of the confirm button; `Danger` also gives it a leading trash icon. Default: `DetailsConfirmationVariant.Info`. */
|
|
10
|
+
variant?: DetailsConfirmationVariant;
|
|
11
|
+
/** Whether the confirmed action is in flight. Default: `false`. */
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
/** Status text announced to assistive tech while the action is in flight. */
|
|
14
|
+
loadingStatusLabel?: string;
|
|
15
|
+
/** Called when the user confirms. */
|
|
16
|
+
onConfirm: () => void;
|
|
17
|
+
/** Called when the user cancels. */
|
|
18
|
+
onCancel: () => void;
|
|
19
|
+
}
|
|
20
|
+
/** Action row pinned to the bottom of the details panel while a confirmation step is open. */
|
|
21
|
+
export declare const ConfirmationFooter: FC<ConfirmationFooterProps>;
|
|
22
|
+
//# sourceMappingURL=ConfirmationFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmationFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/ConfirmationView/ConfirmationFooter.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAGjF,sCAAsC;AACtC,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,8HAA8H;IAC9H,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,mEAAmE;IACnE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qCAAqC;IACrC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAgD1D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { CatalogItem } from '../../../models/catalog-item';
|
|
3
|
+
import { DetailsConfirmationVariant } from '../../../types/details-confirmation';
|
|
4
|
+
/** Props for `ConfirmationView`. */
|
|
5
|
+
export interface ConfirmationViewProps {
|
|
6
|
+
/** Item the confirmation is about, rendered as an identity card above the copy. */
|
|
7
|
+
item: CatalogItem;
|
|
8
|
+
/** Body copy explaining what confirming does. */
|
|
9
|
+
message: ReactNode;
|
|
10
|
+
/** Consequences listed as bullets under the message. An empty or omitted list renders nothing. */
|
|
11
|
+
consequences?: string[];
|
|
12
|
+
/** Palette of the identity card. Default: `DetailsConfirmationVariant.Info`. */
|
|
13
|
+
variant?: DetailsConfirmationVariant;
|
|
14
|
+
/** Typography class applied to the message and the bullet list. Defaults to `'dial-small-text'`. */
|
|
15
|
+
messageClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Body of the details panel's in-place confirmation step: an item identity card, the confirmation copy, and an optional consequence list. */
|
|
18
|
+
export declare const ConfirmationView: FC<ConfirmationViewProps>;
|
|
19
|
+
//# sourceMappingURL=ConfirmationView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmationView.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/ConfirmationView/ConfirmationView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAIjF,oCAAoC;AACpC,MAAM,WAAW,qBAAqB;IACpC,mFAAmF;IACnF,IAAI,EAAE,WAAW,CAAC;IAClB,iDAAiD;IACjD,OAAO,EAAE,SAAS,CAAC;IACnB,kGAAkG;IAClG,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,gFAAgF;IAChF,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,oGAAoG;IACpG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,8IAA8I;AAC9I,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0BtD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
3
|
+
import { CredentialsBannerState, ToolsetAuthenticationType } from '../../../../types/toolset-auth';
|
|
4
|
+
/** Props for {@link CredentialsBanner}. */
|
|
5
|
+
interface CredentialsBannerProps {
|
|
6
|
+
/** Which banner copy to show. */
|
|
7
|
+
state: CredentialsBannerState;
|
|
8
|
+
/** Authentication mechanism the banner's wording should refer to. */
|
|
9
|
+
authenticationType: ToolsetAuthenticationType;
|
|
10
|
+
/** Text overrides. */
|
|
11
|
+
texts?: ItemDetailsTexts;
|
|
12
|
+
}
|
|
13
|
+
/** Informational banner below the details header about which credentials are active: a fallback nudge for a non-admin, or an active-status note for an admin. */
|
|
14
|
+
export declare const CredentialsBanner: FC<CredentialsBannerProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=CredentialsBanner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialsBanner.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsBanner/CredentialsBanner.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAGxC,2CAA2C;AAC3C,UAAU,sBAAsB;IAC9B,iCAAiC;IACjC,KAAK,EAAE,sBAAsB,CAAC;IAC9B,qEAAqE;IACrE,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAgCD,iKAAiK;AACjK,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA2CxD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
/** Props for {@link CredentialsInfoCard}. */
|
|
3
|
+
interface CredentialsInfoCardProps {
|
|
4
|
+
/** Leading icon. */
|
|
5
|
+
icon: ReactNode;
|
|
6
|
+
/** Card title. */
|
|
7
|
+
title: string;
|
|
8
|
+
/** Optional body text shown below the title. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Optional action rendered alongside the title (e.g. a "Delete" button). */
|
|
11
|
+
action?: ReactNode;
|
|
12
|
+
/** CSS class applied to the title. Defaults to `'dial-small-semi-text'`. */
|
|
13
|
+
titleClassName?: string;
|
|
14
|
+
/** CSS class applied to the description. Defaults to `'dial-small-text'`. */
|
|
15
|
+
descriptionClassName?: string;
|
|
16
|
+
}
|
|
17
|
+
/** Tinted status card — icon, title, optional description below, optional trailing action — shared by the organization-credentials banner and the personal API-key popover's "key added" state. */
|
|
18
|
+
export declare const CredentialsInfoCard: FC<CredentialsInfoCardProps>;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=CredentialsInfoCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialsInfoCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtC,6CAA6C;AAC7C,UAAU,wBAAwB;IAChC,oBAAoB;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,4EAA4E;IAC5E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6EAA6E;IAC7E,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,mMAAmM;AACnM,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA+C5D,CAAC"}
|
package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogItem } from '../../../../models/catalog-item';
|
|
3
|
+
import { ItemDetailsStyles, ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
4
|
+
import { CredentialsLevel } from '../../../../types/toolset-auth';
|
|
5
|
+
/** Props for {@link CredentialsManagementPanel}. */
|
|
6
|
+
interface CredentialsManagementPanelProps {
|
|
7
|
+
/** Item whose personal and organization credentials are managed. */
|
|
8
|
+
item: CatalogItem;
|
|
9
|
+
/** Called when a login action (OAuth or API-key add) is submitted for either level. May return a promise; the submitting row shows a spinner in place of its action label until it resolves. */
|
|
10
|
+
onLogin?: (item: CatalogItem, params: {
|
|
11
|
+
level: CredentialsLevel;
|
|
12
|
+
apiKey?: string;
|
|
13
|
+
}) => Promise<void> | void;
|
|
14
|
+
/** Called when "Log out" is clicked on a signed-in OAuth row, so the host can show a full logout-confirmation sub-view for the given level. */
|
|
15
|
+
onRequestLogout?: (level: CredentialsLevel) => void;
|
|
16
|
+
/** Called when "Delete" is clicked on a configured API key, so the host can show a full delete-confirmation sub-view for the given level. */
|
|
17
|
+
onRequestDeleteApiKey?: (level: CredentialsLevel) => void;
|
|
18
|
+
/** Text overrides. */
|
|
19
|
+
texts?: ItemDetailsTexts;
|
|
20
|
+
/**
|
|
21
|
+
* Style overrides. Typography classes are read from `typography`; colors are
|
|
22
|
+
* applied as CSS custom properties on the `DetailsPanel` root and cascade in.
|
|
23
|
+
*/
|
|
24
|
+
detailsStyles?: ItemDetailsStyles;
|
|
25
|
+
/** CSS class applied to the "Delete" action on a configured API key. Defaults to `'text-error'`. */
|
|
26
|
+
deleteActionClassName?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Admin sub-screen listing an item's personal and organization-wide credentials slots, each independently manageable. Reached via the details header's "Manage credentials"/"Manage API keys" action. */
|
|
29
|
+
export declare const CredentialsManagementPanel: FC<CredentialsManagementPanelProps>;
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=CredentialsManagementPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialsManagementPanel.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,EAAE,EAAoC,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAGjB,MAAM,gCAAgC,CAAC;AA4PxC,oDAAoD;AACpD,UAAU,+BAA+B;IACvC,oEAAoE;IACpE,IAAI,EAAE,WAAW,CAAC;IAClB,gMAAgM;IAChM,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,+IAA+I;IAC/I,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACpD,6IAA6I;IAC7I,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1D,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,oGAAoG;IACpG,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AASD,0MAA0M;AAC1M,eAAO,MAAM,0BAA0B,EAAE,EAAE,CACzC,+BAA+B,CAmHhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DetailsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/Details/DetailsPanel.tsx"],"names":[],"mappings":"AAuBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAiHzE,4EAA4E;AAC5E,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyhC9C,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogItem } from '../../../../models/catalog-item';
|
|
3
|
+
import { ItemDetailsTexts } from '../../../../models/item-details-props';
|
|
4
|
+
import { CredentialsLevel, CredentialStatus } from '../../../../types/toolset-auth';
|
|
5
|
+
/** Props for {@link CredentialsApiKeyOverlay}. */
|
|
6
|
+
interface CredentialsApiKeyOverlayProps {
|
|
7
|
+
/** Item the popover manages the API key for. */
|
|
8
|
+
item: CatalogItem;
|
|
9
|
+
/** Credentials slot this popover manages. Always `User` — this is the personal, non-admin API-key popover. */
|
|
10
|
+
level: CredentialsLevel;
|
|
11
|
+
/** Current sign-in status of the personal API key. */
|
|
12
|
+
status: CredentialStatus | undefined;
|
|
13
|
+
/** Already-formatted relative time since the key was added (e.g. `'3 weeks ago'`), shown as support text once signed in. */
|
|
14
|
+
apiKeyAddedWhen?: string;
|
|
15
|
+
/** Called with the entered key when "Add" is submitted. May return a promise; the popover stays open with a spinner until it resolves. */
|
|
16
|
+
onLogin?: (item: CatalogItem, params: {
|
|
17
|
+
level: CredentialsLevel;
|
|
18
|
+
apiKey?: string;
|
|
19
|
+
}) => Promise<void> | void;
|
|
20
|
+
/** Called when "Delete" is clicked to remove the key on file. May return a promise; the popover stays open with a spinner until it resolves. */
|
|
21
|
+
onLogout?: (item: CatalogItem, params: {
|
|
22
|
+
level: CredentialsLevel;
|
|
23
|
+
}) => Promise<void> | void;
|
|
24
|
+
/** Called once the login/logout call resolves successfully, so the anchoring dropdown can close. */
|
|
25
|
+
onClose: () => void;
|
|
26
|
+
/** Text overrides. */
|
|
27
|
+
texts?: ItemDetailsTexts;
|
|
28
|
+
/** CSS class applied to the "Delete" action. Defaults to `'text-error'`. */
|
|
29
|
+
deleteActionClassName?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Popover content for the header's "API key"/"Change API key" trigger: add a personal key, or confirm and remove the one already on file. */
|
|
32
|
+
export declare const CredentialsApiKeyOverlay: FC<CredentialsApiKeyOverlayProps>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=CredentialsApiKeyOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CredentialsApiKeyOverlay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,EAAE,EAAyB,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,gCAAgC,CAAC;AAMxC,kDAAkD;AAClD,UAAU,6BAA6B;IACrC,gDAAgD;IAChD,IAAI,EAAE,WAAW,CAAC;IAClB,8GAA8G;IAC9G,KAAK,EAAE,gBAAgB,CAAC;IACxB,sDAAsD;IACtD,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACrC,4HAA4H;IAC5H,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0IAA0I;IAC1I,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,gJAAgJ;IAChJ,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,oGAAoG;IACpG,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB;IACtB,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,4EAA4E;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,8IAA8I;AAC9I,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CAwItE,CAAC"}
|
|
@@ -13,16 +13,38 @@ interface HeaderProps {
|
|
|
13
13
|
*/
|
|
14
14
|
shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* Additional caller-supplied rule for whether Share is shown, combined
|
|
17
|
+
* (AND) with the built-in ownership/type rule.
|
|
18
18
|
*/
|
|
19
|
-
|
|
20
|
-
/** Controls whether the "Connect" action is shown for the item. When absent, the Connect button is never shown. */
|
|
21
|
-
isConnectVisible?: (item: CatalogItem) => boolean;
|
|
19
|
+
isShareVisible?: (item: CatalogItem) => boolean;
|
|
22
20
|
onEdit?: (item: CatalogItem) => void;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Called when "Download" is clicked. In the Manage menu, fire-and-forget:
|
|
23
|
+
* the result is not awaited and no pending state is shown. As the primary
|
|
24
|
+
* action (see `isDownloadPrimary`), the call is awaited and drives a
|
|
25
|
+
* pending/disabled state on the button.
|
|
26
|
+
*/
|
|
27
|
+
onDownload?: (item: CatalogItem) => Promise<void> | void;
|
|
28
|
+
/** Additional caller-supplied rule for whether "Download" is shown. Defaults to `true` when absent. */
|
|
29
|
+
isDownloadVisible?: (item: CatalogItem) => boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves whether Download renders as the primary action instead of a
|
|
32
|
+
* Manage-menu entry. Defaults to `item.type === CatalogEntityType.Skill`.
|
|
33
|
+
* An item whose Download is primary never also shows it in the Manage menu.
|
|
34
|
+
*/
|
|
35
|
+
isDownloadPrimary?: (item: CatalogItem) => boolean;
|
|
36
|
+
/** Called when "Delete" is clicked in the Manage menu. The details panel owns the confirmation step, so this only requests it. */
|
|
37
|
+
onDelete?: (item: CatalogItem) => void;
|
|
38
|
+
/** Called when the recipient-side "Remove from My List" action is clicked for an item shared with the current user. The details panel owns the confirmation step. */
|
|
39
|
+
onUnshare?: (item: CatalogItem) => void;
|
|
40
|
+
/** Additional caller-supplied rule for whether "Remove from My List" is shown, combined (AND) with the built-in `sharedWithMe`/`isMyApp` rule. Defaults to `true` when absent. */
|
|
41
|
+
isUnshareVisible?: (item: CatalogItem) => boolean;
|
|
42
|
+
/** Called when the owner-side "Revoke access" action is clicked for an item the current user owns. The details panel owns the confirmation step. */
|
|
43
|
+
onRevokeShare?: (item: CatalogItem) => void;
|
|
44
|
+
/** Resolves how many users currently hold shared access to an owned item, called when the Manage menu is opened or focused. `0` hides "Revoke access"; `undefined` or a rejection leaves it reachable without a count. */
|
|
45
|
+
onFetchRecipientsCount?: (item: CatalogItem) => Promise<number | undefined>;
|
|
46
|
+
/** Additional caller-supplied rule for whether "Revoke access" is shown, combined (AND) with the built-in `isMyApp` rule and the recipient count. Defaults to `true` when absent. */
|
|
47
|
+
isRevokeShareVisible?: (item: CatalogItem) => boolean;
|
|
26
48
|
onLogin?: (item: CatalogItem, params: {
|
|
27
49
|
level: CredentialsLevel;
|
|
28
50
|
apiKey?: string;
|
|
@@ -31,15 +53,15 @@ interface HeaderProps {
|
|
|
31
53
|
level: CredentialsLevel;
|
|
32
54
|
}) => Promise<void> | void;
|
|
33
55
|
/**
|
|
34
|
-
* Called when the credentials trigger button is clicked and the
|
|
35
|
-
*
|
|
36
|
-
* credentials
|
|
56
|
+
* Called when the credentials trigger button is clicked and the resolved
|
|
57
|
+
* state is "Manage credentials"/"Manage API keys" — opens the admin
|
|
58
|
+
* credentials-management sub-screen.
|
|
37
59
|
*/
|
|
38
|
-
|
|
60
|
+
onOpenCredentialsManagement?: () => void;
|
|
39
61
|
/**
|
|
40
|
-
* Called instead of
|
|
41
|
-
* "Log out" — opens the logout confirmation
|
|
42
|
-
*
|
|
62
|
+
* Called instead of directly logging out when the resolved state is
|
|
63
|
+
* "Log out" for OAuth authentication — opens the logout confirmation
|
|
64
|
+
* without signing out immediately.
|
|
43
65
|
*/
|
|
44
66
|
onRequestLogout?: () => void;
|
|
45
67
|
texts?: ItemDetailsTexts;
|
|
@@ -49,7 +71,7 @@ interface HeaderProps {
|
|
|
49
71
|
/** Called when the "Publish" button is clicked; the host swaps this panel's content to the publish view. */
|
|
50
72
|
onOpenPublish?: () => void;
|
|
51
73
|
}
|
|
52
|
-
/**
|
|
74
|
+
/** Details panel header bar: entity identity (icon + name + version), action buttons (primary action, Share, a "Manage" menu for Edit/Publish/Delete), and inline credentials section. For Toolsets, the credentials action (Log in / Log out / manage) renders first and styled as the primary action, since Toolsets have no "Use in chat" action. */
|
|
53
75
|
export declare const Header: FC<HeaderProps>;
|
|
54
76
|
export {};
|
|
55
77
|
//# sourceMappingURL=Header.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/Header/Header.tsx"],"names":[],"mappings":"AA8BA,OAAO,EACL,EAAE,EAMF,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,gBAAgB,EAGjB,MAAM,6BAA6B,CAAC;AAarC,UAAU,WAAW;IACnB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACxD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACrE;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAChD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACrC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACzD,uGAAuG;IACvG,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,kIAAkI;IAClI,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,qKAAqK;IACrK,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,kLAAkL;IAClL,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAClD,oJAAoJ;IACpJ,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC5C,0NAA0N;IAC1N,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5E,qLAAqL;IACrL,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACtD,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,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;;;;OAIG;IACH,2BAA2B,CAAC,EAAE,MAAM,IAAI,CAAC;IACzC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,uGAAuG;IACvG,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAClD,4GAA4G;IAC5G,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B;AACD,wVAAwV;AACxV,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CAkiBlC,CAAC"}
|
|
@@ -11,6 +11,12 @@ interface ShareButtonProps {
|
|
|
11
11
|
* provided, clicking Share opens this popover instead of calling `onShare`.
|
|
12
12
|
*/
|
|
13
13
|
shareOverlay?: (item: CatalogItem, onClose: () => void) => ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Additional caller-supplied rule for whether Share is shown, combined
|
|
16
|
+
* (AND) with the built-in ownership/type rule. Absent means the built-in
|
|
17
|
+
* rule alone decides.
|
|
18
|
+
*/
|
|
19
|
+
isShareVisible?: (item: CatalogItem) => boolean;
|
|
14
20
|
/** Share button label. Defaults to `'Share'`. */
|
|
15
21
|
label?: string;
|
|
16
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/ShareButton/ShareButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShareButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/Header/ShareButton/ShareButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,qCAAqC;AACrC,UAAU,gBAAgB;IACxB,iCAAiC;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAC;IACrE;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IAChD,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAUD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CA8C5C,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ItemDetailsStyles } from '../../../models/item-details-props';
|
|
3
3
|
interface AboutTabProps {
|
|
4
|
-
|
|
4
|
+
topics?: string[];
|
|
5
|
+
/** Raw text to render (bullets/headings are parsed from it), typically `item.description`. */
|
|
5
6
|
content: string;
|
|
6
7
|
detailsStyles?: ItemDetailsStyles;
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"About.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/About.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AA0B5E,UAAU,aAAa;IACrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,8FAA8F;IAC9F,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,gFAAgF;AAChF,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA4CtC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { CatalogContentFilePreview, CatalogContentTreeNode } from '../../../models/item-details-data';
|
|
3
|
+
import { ItemDetailsStyles } from '../../../models/item-details-props';
|
|
4
|
+
/** Props for ContentTab. */
|
|
5
|
+
export interface ContentTabProps {
|
|
6
|
+
/** The item's full text body, rendered read-only as markdown. */
|
|
7
|
+
content: string;
|
|
8
|
+
/** Short summary shown above the body. Omitted when empty. */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Folder/file tree the tab can switch between. A selector renders whenever this holds two or more file nodes, at any depth. */
|
|
11
|
+
files?: CatalogContentTreeNode[];
|
|
12
|
+
/** Id of the file currently displayed. */
|
|
13
|
+
selectedFileId?: string;
|
|
14
|
+
/** Called with a file's `id` when a different one is picked. */
|
|
15
|
+
onSelectFile?: (fileId: string) => void;
|
|
16
|
+
/** Whether the picked file's content is still loading. */
|
|
17
|
+
isFileLoading?: boolean;
|
|
18
|
+
/** Ids of folders currently expanded in the selector. Defaults to an empty set. */
|
|
19
|
+
expandedFolderIds?: ReadonlySet<string>;
|
|
20
|
+
/** Called with a folder's id when its disclosure control is toggled. */
|
|
21
|
+
onToggleFolder?: (folderId: string) => void;
|
|
22
|
+
/** Whether the file selector overlay is open. Defaults to `false`. */
|
|
23
|
+
isFileSelectorOpen?: boolean;
|
|
24
|
+
/** Called when the file selector's open state should change. */
|
|
25
|
+
onFileSelectorOpenChange?: (open: boolean) => void;
|
|
26
|
+
/** Accessible label for the file selector. Defaults to `'Select file'`. */
|
|
27
|
+
fileSelectorAriaLabel?: string;
|
|
28
|
+
/** Returns the file-count text shown beside the selector. Defaults to ``(count) => `${count} files` ``. */
|
|
29
|
+
fileCountLabel?: (count: number) => string;
|
|
30
|
+
/** Status text announced while a picked file loads. Defaults to `'Loading file'`. */
|
|
31
|
+
fileLoadingLabel?: string;
|
|
32
|
+
/** Body text shown when a picked file's preview type is `unsupported`. Defaults to `'Preview is not supported for this file'`. */
|
|
33
|
+
fileUnsupportedLabel?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The currently picked file's resolved preview. Absent (or `null`) renders
|
|
36
|
+
* `content` as Markdown — the base file's state. Ignored while
|
|
37
|
+
* `isFileLoading` is `true`, so a stale preview never appears under a
|
|
38
|
+
* newly-selected file's name while its own load is still pending.
|
|
39
|
+
*/
|
|
40
|
+
filePreview?: CatalogContentFilePreview | null;
|
|
41
|
+
/** Host-rendered picked-file preview. Takes precedence over `filePreview`. */
|
|
42
|
+
filePreviewContent?: ReactNode;
|
|
43
|
+
/** Color and typography overrides for the body text, headings, and placeholder highlights. */
|
|
44
|
+
detailsStyles?: ItemDetailsStyles;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Renders a catalog item's summary and its long-form body as read-only
|
|
48
|
+
* markdown, with `{{placeholder}}` tokens highlighted. An item carrying more
|
|
49
|
+
* than one file, at any depth, gets a hierarchical selector above the body to
|
|
50
|
+
* switch between them.
|
|
51
|
+
*/
|
|
52
|
+
export declare const ContentTab: FC<ContentTabProps>;
|
|
53
|
+
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/TabsContent/Content.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAW5E,4BAA4B;AAC5B,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gIAAgI;IAChI,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACjC,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,0DAA0D;IAC1D,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mFAAmF;IACnF,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACxC,wEAAwE;IACxE,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,sEAAsE;IACtE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gEAAgE;IAChE,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,2EAA2E;IAC3E,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2GAA2G;IAC3G,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,qFAAqF;IACrF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kIAAkI;IAClI,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC/C,8EAA8E;IAC9E,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,8FAA8F;IAC9F,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAuJ1C,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { CatalogContentTreeNode } from '../../../../models/item-details-data';
|
|
3
|
+
/** Props for {@link ContentFileTree}. */
|
|
4
|
+
export interface ContentFileTreeProps {
|
|
5
|
+
/** Root-level folder and file nodes to render. */
|
|
6
|
+
nodes: CatalogContentTreeNode[];
|
|
7
|
+
/** Id of the file currently displayed; its row carries `aria-selected` and receives initial focus. */
|
|
8
|
+
selectedFileId?: string;
|
|
9
|
+
/** Ids of folders currently expanded. */
|
|
10
|
+
expandedFolderIds: ReadonlySet<string>;
|
|
11
|
+
/** Called with a folder's id when its disclosure control is toggled. */
|
|
12
|
+
onToggleFolder: (folderId: string) => void;
|
|
13
|
+
/** Called with a file's id when it is picked. */
|
|
14
|
+
onSelectFile: (fileId: string) => void;
|
|
15
|
+
/** Called on Escape, without changing the selection. */
|
|
16
|
+
onClose: () => void;
|
|
17
|
+
/** Accessible name for the root `role="tree"` element. */
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
/** Typography class applied to every row's name text. Defaults to `'dial-small-text'`. */
|
|
20
|
+
rowNameClassName?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Recursive, read-only folder/file tree rendered inside the Content tab's
|
|
24
|
+
* selector overlay. Owns roving-tabIndex keyboard navigation over its own
|
|
25
|
+
* DOM; expand/collapse and selection state are fully controlled by the host.
|
|
26
|
+
*/
|
|
27
|
+
export declare const ContentFileTree: FC<ContentFileTreeProps>;
|
|
28
|
+
//# sourceMappingURL=ContentFileTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentFileTree.d.ts","sourceRoot":"","sources":["../../../../../src/components/Details/TabsContent/ContentFileTree/ContentFileTree.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAGnF,yCAAyC;AACzC,MAAM,WAAW,oBAAoB;IACnC,kDAAkD;IAClD,KAAK,EAAE,sBAAsB,EAAE,CAAC;IAChC,sGAAsG;IACtG,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,iBAAiB,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,wEAAwE;IACxE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iDAAiD;IACjD,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,wDAAwD;IACxD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAmBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAgMpD,CAAC"}
|