@epam/ai-dial-catalog 1.2.0-dev.3 → 1.2.0-dev.300
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.map +1 -1
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts +10 -0
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts.map +1 -0
- package/components/ApplicationCredentials/ApplicationCredentials.d.ts +5 -0
- package/components/ApplicationCredentials/ApplicationCredentials.d.ts.map +1 -0
- 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.map +1 -1
- package/components/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +10 -1
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts +50 -0
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts.map +1 -0
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts +59 -0
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -0
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +8 -1
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +4 -2
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/TabsContent/About.d.ts +3 -1
- package/components/Details/TabsContent/About.d.ts.map +1 -1
- package/components/Details/TabsContent/Content.d.ts +6 -2
- package/components/Details/TabsContent/Content.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts +2 -0
- package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts +3 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/Limits.d.ts.map +1 -1
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/ListView/ListView.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 +4 -1
- package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
- package/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/constants/create-menu.d.ts +7 -0
- package/constants/create-menu.d.ts.map +1 -0
- package/constants/public-class-names.d.ts +21 -0
- package/constants/public-class-names.d.ts.map +1 -0
- package/index.css +2 -2
- package/index.d.ts +11 -5
- package/index.d.ts.map +1 -1
- package/index.js +2389 -2015
- package/{mapping-FVCFAmAc.js → mapping-BHlCxGmC.js} +4 -4
- package/mapping.js +2 -2
- package/models/application-credentials.d.ts +69 -0
- package/models/application-credentials.d.ts.map +1 -0
- package/models/card-props.d.ts +3 -0
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +3 -0
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-props.d.ts +54 -4
- package/models/catalog-props.d.ts.map +1 -1
- package/models/grid-props.d.ts +3 -0
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-data.d.ts +29 -0
- package/models/item-details-data.d.ts.map +1 -1
- package/models/item-details-props.d.ts +50 -6
- package/models/item-details-props.d.ts.map +1 -1
- package/models/limits-props.d.ts +6 -2
- package/models/limits-props.d.ts.map +1 -1
- package/package.json +4 -4
- package/types/details-confirmation.d.ts +0 -7
- package/types/details-confirmation.d.ts.map +1 -1
- package/types/limit-row-layout.d.ts +8 -0
- package/types/limit-row-layout.d.ts.map +1 -0
- package/utils/create-menu.d.ts +4 -0
- package/utils/create-menu.d.ts.map +1 -0
- package/utils/item-details-texts.d.ts +4 -0
- package/utils/item-details-texts.d.ts.map +1 -0
- package/utils/scroll-window.d.ts.map +1 -1
- package/utils/toolset-credentials.d.ts +14 -0
- package/utils/toolset-credentials.d.ts.map +1 -1
- package/utils/use-scroll-virtualizer.d.ts.map +1 -1
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +0 -29
- package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +0 -1
- package/components/Details/ConfirmationView/ConfirmationView.d.ts +0 -28
- package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +0 -1
- package/components/InfoCard/InfoCard.d.ts +0 -15
- package/components/InfoCard/InfoCard.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-catalog",
|
|
3
3
|
"description": "Marketplace catalog component for browsing models, tools, and assistants with search, filter, and sort",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.300",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@tabler/icons-react": "^3.44.0",
|
|
30
30
|
"ag-grid-community": "^35.3.0",
|
|
31
|
-
"@epam/ai-dial-publish-panel": "1.2.0-dev.
|
|
31
|
+
"@epam/ai-dial-publish-panel": "1.2.0-dev.300"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
36
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.300",
|
|
36
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.39"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -18,11 +18,4 @@ export declare enum DetailsConfirmationKind {
|
|
|
18
18
|
*/
|
|
19
19
|
Unpublish = "unpublish"
|
|
20
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
21
|
//# sourceMappingURL=details-confirmation.d.ts.map
|
|
@@ -1 +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
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Arrangement `LimitsTab` uses for each usage-limit row. */
|
|
2
|
+
export declare enum LimitRowLayout {
|
|
3
|
+
/** Label column beside a fixed-width column holding the value above a narrow progress bar. */
|
|
4
|
+
Inline = "inline",
|
|
5
|
+
/** Label and value on one line, with a full-width progress bar and the reset caption beneath it. */
|
|
6
|
+
Stacked = "stacked"
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=limit-row-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limit-row-layout.d.ts","sourceRoot":"","sources":["../../src/types/limit-row-layout.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,oBAAY,cAAc;IACxB,8FAA8F;IAC9F,MAAM,WAAW;IACjB,oGAAoG;IACpG,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
/** Returns `items` with every string label, nested ones included, rendered through a single-line `Highlight` for `query`. */
|
|
3
|
+
export declare const highlightDropdownLabels: (items: DropdownItem[], query: string) => DropdownItem[];
|
|
4
|
+
//# sourceMappingURL=create-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAa,MAAM,sBAAsB,CAAC;AAE/D,6HAA6H;AAC7H,eAAO,MAAM,uBAAuB,GAClC,OAAO,YAAY,EAAE,EACrB,OAAO,MAAM,KACZ,YAAY,EAYV,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CatalogMarkdownLabels, ItemDetailsTexts } from '../models/item-details-props';
|
|
2
|
+
/** Returns the markdown code-block, table and formula labels carried by `texts`, keyed as `MarkdownRenderer` props. */
|
|
3
|
+
export declare const getCatalogMarkdownLabels: (texts: ItemDetailsTexts | undefined) => CatalogMarkdownLabels;
|
|
4
|
+
//# sourceMappingURL=item-details-texts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-details-texts.d.ts","sourceRoot":"","sources":["../../src/utils/item-details-texts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,8BAA8B,CAAC;AAEtC,uHAAuH;AACvH,eAAO,MAAM,wBAAwB,GACnC,OAAO,gBAAgB,GAAG,SAAS,KAClC,qBAMD,CAAC"}
|
|
@@ -1 +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,
|
|
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,SAuEF,CAAC"}
|
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
import { CatalogItemCredentials } from '../models/catalog-item-credentials';
|
|
2
2
|
import { CredentialsBadgeState, CredentialsBannerState, CredentialsLevel, CredentialsUiState } from '../types/toolset-auth';
|
|
3
|
+
/** Whether the given credentials level (`USER` or `GLOBAL`) is currently signed in. */
|
|
4
|
+
export declare const isLevelSignedIn: (credentials: CatalogItemCredentials | undefined, level: CredentialsLevel) => boolean;
|
|
5
|
+
/** Resolves after the given duration, used to space out retry attempts. */
|
|
6
|
+
export declare const sleep: (ms: number) => Promise<void>;
|
|
3
7
|
/** Resolves which credentials action/section the Details Panel should show for the given item credentials. */
|
|
4
8
|
export declare const getCredentialsUiState: (credentials: CatalogItemCredentials) => CredentialsUiState;
|
|
5
9
|
/** Returns `CredentialsBadgeState.LoggedOut` when signed out at every applicable level, or `undefined` when no authentication is required or signed in at any level. */
|
|
6
10
|
export declare const getCredentialsBadgeState: (credentials: CatalogItemCredentials) => CredentialsBadgeState | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the publisher holds a credential for an authenticated toolset and
|
|
13
|
+
* may therefore offer to publish it alongside the toolset.
|
|
14
|
+
*
|
|
15
|
+
* Either level qualifies: publishing always acts on the publisher's own source
|
|
16
|
+
* item, where `globalStatus` is the owner's own credential and `userStatus`
|
|
17
|
+
* covers a personal credential configured on top of it. Access the publisher
|
|
18
|
+
* does not hold cannot be passed on.
|
|
19
|
+
*/
|
|
20
|
+
export declare const canPublishCredentials: (credentials: CatalogItemCredentials | undefined) => boolean;
|
|
7
21
|
/** Resolves which level a direct (non-accordion) "Log out" action applies to. */
|
|
8
22
|
export declare const getSignedInLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
|
|
9
23
|
/** Resolves which credentials banner, if any, the Details Panel should show below the header. */
|
|
@@ -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,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"}
|
|
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,uFAAuF;AACvF,eAAO,MAAM,eAAe,GAC1B,aAAa,sBAAsB,GAAG,SAAS,EAC/C,OAAO,gBAAgB,KACtB,OAKA,CAAC;AAEJ,2EAA2E;AAC3E,eAAO,MAAM,KAAK,GAAI,IAAI,MAAM,KAAG,OAAO,CAAC,IAAI,CACI,CAAC;AAEpD,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;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,sBAAsB,GAAG,SAAS,KAC9C,OAUF,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-scroll-virtualizer.d.ts","sourceRoot":"","sources":["../../src/utils/use-scroll-virtualizer.ts"],"names":[],"mappings":"AACA,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,
|
|
1
|
+
{"version":3,"file":"use-scroll-virtualizer.d.ts","sourceRoot":"","sources":["../../src/utils/use-scroll-virtualizer.ts"],"names":[],"mappings":"AACA,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,uBAwFF,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
-
/**
|
|
14
|
-
* Whether confirming is not yet possible because the step's required input
|
|
15
|
-
* is unsatisfied — e.g. no published folder chosen yet. Kept separate from
|
|
16
|
-
* `isLoading`: a confirmation that cannot run yet and one already running are
|
|
17
|
-
* different states, and only `isLoading` disables cancel. Default: `false`.
|
|
18
|
-
*/
|
|
19
|
-
isConfirmDisabled?: boolean;
|
|
20
|
-
/** Status text announced to assistive tech while the action is in flight. */
|
|
21
|
-
loadingStatusLabel?: string;
|
|
22
|
-
/** Called when the user confirms. */
|
|
23
|
-
onConfirm: () => void;
|
|
24
|
-
/** Called when the user cancels. */
|
|
25
|
-
onCancel: () => void;
|
|
26
|
-
}
|
|
27
|
-
/** Action row pinned to the bottom of the details panel while a confirmation step is open. */
|
|
28
|
-
export declare const ConfirmationFooter: FC<ConfirmationFooterProps>;
|
|
29
|
-
//# sourceMappingURL=ConfirmationFooter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/Details/ConfirmationView/ConfirmationFooter.tsx"],"names":[],"mappings":"AAUA,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;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,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,CAuD1D,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
* Optional interactive slot rendered after the consequence bullets, for a
|
|
18
|
-
* confirmation that needs an input before it can be confirmed — today,
|
|
19
|
-
* choosing which published folder to unpublish from. This component stays
|
|
20
|
-
* presentational: whoever passes the slot owns its state, and disabling the
|
|
21
|
-
* confirm button until the input is satisfied is the panel's job. A kind
|
|
22
|
-
* that needs no input passes nothing and renders exactly as before.
|
|
23
|
-
*/
|
|
24
|
-
children?: ReactNode;
|
|
25
|
-
}
|
|
26
|
-
/** Body of the details panel's in-place confirmation step: an item identity card, the confirmation copy, and an optional consequence list. */
|
|
27
|
-
export declare const ConfirmationView: FC<ConfirmationViewProps>;
|
|
28
|
-
//# sourceMappingURL=ConfirmationView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;IAC1B;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,8IAA8I;AAC9I,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAiCtD,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { CatalogItem } from '../../models/catalog-item';
|
|
3
|
-
import { DetailsConfirmationVariant } from '../../types/details-confirmation';
|
|
4
|
-
/** Props for `InfoCard`. */
|
|
5
|
-
export interface InfoCardProps {
|
|
6
|
-
/** Item whose identity the card shows. */
|
|
7
|
-
item: CatalogItem;
|
|
8
|
-
/** Palette of the card surface. Default: `DetailsConfirmationVariant.Info`. */
|
|
9
|
-
variant?: DetailsConfirmationVariant;
|
|
10
|
-
/** Size of the entity icon in pixels. Default: `40`. */
|
|
11
|
-
iconSize?: number;
|
|
12
|
-
}
|
|
13
|
-
/** Tinted card showing a catalog item's identity, used to anchor a message to the item it is about. */
|
|
14
|
-
export declare const InfoCard: FC<InfoCardProps>;
|
|
15
|
-
//# sourceMappingURL=InfoCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfoCard.d.ts","sourceRoot":"","sources":["../../../src/components/InfoCard/InfoCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAG9E,4BAA4B;AAC5B,MAAM,WAAW,aAAa;IAC5B,0CAA0C;IAC1C,IAAI,EAAE,WAAW,CAAC;IAClB,+EAA+E;IAC/E,OAAO,CAAC,EAAE,0BAA0B,CAAC;IACrC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,uGAAuG;AACvG,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAetC,CAAC"}
|