@epam/ai-dial-catalog 1.2.0-dev.99 → 1.3.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/components/AppIdentity/AppIdentity.d.ts +2 -2
  2. package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
  3. package/components/CardGrid/Card.d.ts.map +1 -1
  4. package/components/CardGrid/CardGrid.d.ts.map +1 -1
  5. package/components/CardGrid/CardRowRenderer.d.ts.map +1 -1
  6. package/components/CardTag/CardTag.d.ts.map +1 -1
  7. package/components/Catalog/Catalog.d.ts.map +1 -1
  8. package/components/Catalog/CreateButton.d.ts +14 -1
  9. package/components/Catalog/CreateButton.d.ts.map +1 -1
  10. package/components/Catalog/CreateMenuSheet.d.ts +33 -0
  11. package/components/Catalog/CreateMenuSheet.d.ts.map +1 -0
  12. package/components/ClampedName/ClampedName.d.ts +13 -0
  13. package/components/ClampedName/ClampedName.d.ts.map +1 -0
  14. package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts +1 -2
  15. package/components/Details/Credentials/CredentialsBanner/CredentialsBanner.d.ts.map +1 -1
  16. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +1 -2
  17. package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
  18. package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts +2 -0
  19. package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -1
  20. package/components/Details/DetailsPanel.d.ts.map +1 -1
  21. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +9 -3
  22. package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
  23. package/components/Details/Header/Header.d.ts +18 -3
  24. package/components/Details/Header/Header.d.ts.map +1 -1
  25. package/components/Details/TabsContent/About.d.ts +4 -3
  26. package/components/Details/TabsContent/About.d.ts.map +1 -1
  27. package/components/Details/TabsContent/Content.d.ts +6 -2
  28. package/components/Details/TabsContent/Content.d.ts.map +1 -1
  29. package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts +2 -0
  30. package/components/Details/TabsContent/Limits/LimitGroupSection.d.ts.map +1 -1
  31. package/components/Details/TabsContent/Limits/LimitRow.d.ts +3 -1
  32. package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
  33. package/components/Details/TabsContent/Limits/Limits.d.ts.map +1 -1
  34. package/components/Details/TabsContent/Overview.d.ts +2 -0
  35. package/components/Details/TabsContent/Overview.d.ts.map +1 -1
  36. package/components/Details/TabsContent/Pricing.d.ts +3 -1
  37. package/components/Details/TabsContent/Pricing.d.ts.map +1 -1
  38. package/components/Details/TabsContent/Tools/Tools.d.ts +9 -2
  39. package/components/Details/TabsContent/Tools/Tools.d.ts.map +1 -1
  40. package/components/Favorites/Favorites.d.ts.map +1 -1
  41. package/components/Filter/Filter.d.ts.map +1 -1
  42. package/components/ListView/ListView.d.ts.map +1 -1
  43. package/components/ListView/Renders/NameCellRenderer.d.ts.map +1 -1
  44. package/components/ListView/Renders/SelectionCellRenderer.d.ts +6 -0
  45. package/components/ListView/Renders/SelectionCellRenderer.d.ts.map +1 -0
  46. package/components/ListView/Renders/SelectionHeader.d.ts +4 -0
  47. package/components/ListView/Renders/SelectionHeader.d.ts.map +1 -0
  48. package/components/ListView/columns.d.ts +6 -1
  49. package/components/ListView/columns.d.ts.map +1 -1
  50. package/components/ListView/selection-context.d.ts +24 -0
  51. package/components/ListView/selection-context.d.ts.map +1 -0
  52. package/components/StarToggleButton/StarToggleButton.d.ts +4 -1
  53. package/components/StarToggleButton/StarToggleButton.d.ts.map +1 -1
  54. package/constants/create-menu.d.ts +7 -0
  55. package/constants/create-menu.d.ts.map +1 -0
  56. package/entry-points/mapping.d.ts +5 -2
  57. package/entry-points/mapping.d.ts.map +1 -1
  58. package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts +16 -0
  59. package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts.map +1 -0
  60. package/index.css +2 -2
  61. package/index.d.ts +26 -5
  62. package/index.d.ts.map +1 -1
  63. package/index.js +2480 -2138
  64. package/{mapping-BHlCxGmC.js → mapping-BAfcHO36.js} +21 -16
  65. package/mapping.js +2 -2
  66. package/models/card-props.d.ts +3 -0
  67. package/models/card-props.d.ts.map +1 -1
  68. package/models/card-row-data.d.ts +3 -0
  69. package/models/card-row-data.d.ts.map +1 -1
  70. package/models/catalog-props.d.ts +26 -2
  71. package/models/catalog-props.d.ts.map +1 -1
  72. package/models/grid-props.d.ts +3 -0
  73. package/models/grid-props.d.ts.map +1 -1
  74. package/models/item-details-data.d.ts +54 -1
  75. package/models/item-details-data.d.ts.map +1 -1
  76. package/models/item-details-props.d.ts +59 -4
  77. package/models/item-details-props.d.ts.map +1 -1
  78. package/models/limits-props.d.ts +6 -2
  79. package/models/limits-props.d.ts.map +1 -1
  80. package/models/list-props.d.ts +12 -1
  81. package/models/list-props.d.ts.map +1 -1
  82. package/package.json +4 -4
  83. package/types/details-confirmation.d.ts +0 -7
  84. package/types/details-confirmation.d.ts.map +1 -1
  85. package/types/limit-row-layout.d.ts +8 -0
  86. package/types/limit-row-layout.d.ts.map +1 -0
  87. package/types/pricing-unit.d.ts +8 -0
  88. package/types/pricing-unit.d.ts.map +1 -0
  89. package/types/selection-mode.d.ts +8 -0
  90. package/types/selection-mode.d.ts.map +1 -0
  91. package/utils/create-menu.d.ts +4 -0
  92. package/utils/create-menu.d.ts.map +1 -0
  93. package/utils/details-tabs.d.ts +26 -0
  94. package/utils/details-tabs.d.ts.map +1 -0
  95. package/utils/item-details-texts.d.ts +4 -0
  96. package/utils/item-details-texts.d.ts.map +1 -0
  97. package/utils/list-selection.d.ts +13 -0
  98. package/utils/list-selection.d.ts.map +1 -0
  99. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts +0 -29
  100. package/components/Details/ConfirmationView/ConfirmationFooter.d.ts.map +0 -1
  101. package/components/Details/ConfirmationView/ConfirmationView.d.ts +0 -28
  102. package/components/Details/ConfirmationView/ConfirmationView.d.ts.map +0 -1
  103. package/components/InfoCard/InfoCard.d.ts +0 -15
  104. package/components/InfoCard/InfoCard.d.ts.map +0 -1
@@ -1,5 +1,6 @@
1
1
  import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
2
2
  import { ListViewColumnVisibility } from '../components/ListView/columns';
3
+ import { CatalogSelectionMode } from '../types/selection-mode';
3
4
  import { CatalogItem } from './catalog-item';
4
5
  /** Typography class overrides for `ListView` cells. */
5
6
  export interface ListViewTypography {
@@ -69,8 +70,18 @@ export interface ListViewProps {
69
70
  * sits flush below it while the page scrolls.
70
71
  */
71
72
  stickyHeaderTop?: number;
72
- /** ID of an item to visually mark as selected (border, tint, and checkmark). */
73
+ /** ID of an item to visually mark as selected (border, tint, and checkmark). Ignored in `CatalogSelectionMode.Multiple`. */
73
74
  selectedItemId?: string;
75
+ /** Row selection mode; `Multiple` adds a checkbox column with a select-all header. Default: `CatalogSelectionMode.Single`. */
76
+ selectionMode?: CatalogSelectionMode;
77
+ /** Ids of the selected items in `CatalogSelectionMode.Multiple`; may include ids that are not in `items`. */
78
+ selectedItemIds?: ReadonlySet<string>;
79
+ /** Called with the next selection in `CatalogSelectionMode.Multiple`; newly selected ids are appended, so iteration order is selection order. */
80
+ onSelectionChange?: (ids: Set<string>) => void;
81
+ /** Accessible name of a row's checkbox in `CatalogSelectionMode.Multiple`. Default: `Select <item name>`. */
82
+ selectRowAriaLabel?: (item: CatalogItem) => string;
83
+ /** Accessible name of the select-all checkbox in `CatalogSelectionMode.Multiple`. Default: `'Select all'`. */
84
+ selectAllAriaLabel?: string;
74
85
  /** Accessible label for the logged-out warning icon on the entity avatar, and the text shown in its hover tooltip. Default: `'Authorize to use this toolset.'`. */
75
86
  credentialsBadgeLoggedOutLabel?: string;
76
87
  /** Renders the list read-only: the "Favorite" column is dropped entirely. Default: false. */
@@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AM,CAAC;IACzB,8DAA8D;IAC9D,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5D,mJAAmJ;IACnJ,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC;IACnD,sEAAsE;IACtE,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4HAA4H;IAC5H,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8HAA8H;IAC9H,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,6GAA6G;IAC7G,eAAe,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACtC,iJAAiJ;IACjJ,iBAAiB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC/C,6GAA6G;IAC7G,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;IACnD,8GAA8G;IAC9G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mKAAmK;IACnK,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,6FAA6F;IAC7F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C"}
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.99",
4
+ "version": "1.3.0-dev.5",
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.99"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.5"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.2.0-dev.99",
36
- "@epam/ai-dial-ui-kit": "^0.15.0-dev.12"
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.5",
36
+ "@epam/ai-dial-ui-kit": "^0.15.0"
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;AAED,oDAAoD;AACpD,oBAAY,0BAA0B;IACpC,sFAAsF;IACtF,MAAM,WAAW;IACjB,0GAA0G;IAC1G,IAAI,SAAS;CACd"}
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,8 @@
1
+ /** Billing unit the Pricing tab's price rows are quoted in. */
2
+ export declare enum CatalogPricingUnit {
3
+ /** Prices are quoted per token. */
4
+ Token = "token",
5
+ /** Prices are quoted per character. */
6
+ Character = "character"
7
+ }
8
+ //# sourceMappingURL=pricing-unit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pricing-unit.d.ts","sourceRoot":"","sources":["../../src/types/pricing-unit.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,oBAAY,kBAAkB;IAC5B,mCAAmC;IACnC,KAAK,UAAU;IACf,uCAAuC;IACvC,SAAS,cAAc;CACxB"}
@@ -0,0 +1,8 @@
1
+ /** How many `ListView` rows a user can select. */
2
+ export declare enum CatalogSelectionMode {
3
+ /** One row is highlighted through `selectedItemId`. */
4
+ Single = "single",
5
+ /** Every row has a checkbox, and the host owns the selected set. */
6
+ Multiple = "multiple"
7
+ }
8
+ //# sourceMappingURL=selection-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-mode.d.ts","sourceRoot":"","sources":["../../src/types/selection-mode.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,oBAAoB;IAC9B,uDAAuD;IACvD,MAAM,WAAW;IACjB,oEAAoE;IACpE,QAAQ,aAAa;CACtB"}
@@ -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,26 @@
1
+ import { CatalogItem } from '../models/catalog-item';
2
+ import { CatalogItemApiDetails } from '../models/item-details-data';
3
+ import { CatalogDetailsTab } from '../types/detail-tab';
4
+ /**
5
+ * An item is worth a Connect tab only when its api data names something to
6
+ * connect to — a single endpoint URL or a non-empty multi-endpoint list (e.g.
7
+ * a model's Chat Completions/Responses endpoints). A resource identifier
8
+ * alone (a model's `modelId` with no endpoints) has nothing to connect to.
9
+ */
10
+ export declare const hasConnectableApi: (api: CatalogItemApiDetails | undefined) => api is CatalogItemApiDetails;
11
+ /** Options for {@link getCatalogDetailsTabs}. */
12
+ export interface CatalogDetailsTabsOptions {
13
+ /**
14
+ * Leaves out the Connect tab, for hosts whose users are not API consumers
15
+ * (e.g. an app editor embedding the details content). Default: `false`.
16
+ */
17
+ isConnectHidden?: boolean;
18
+ }
19
+ /**
20
+ * The details tabs an item shows, in display order — the rule `DetailsPanel`
21
+ * renders by, exported so a host embedding the tab components in its own
22
+ * surface shows exactly the same set. Pure and string-free: the caller pairs
23
+ * each id with its own label.
24
+ */
25
+ export declare const getCatalogDetailsTabs: (item: CatalogItem, options?: CatalogDetailsTabsOptions) => CatalogDetailsTab[];
26
+ //# sourceMappingURL=details-tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/details-tabs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAcxD;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,qBAAqB,GAAG,SAAS,KACrC,GAAG,IAAI,qBAC+D,CAAC;AAE1E,iDAAiD;AACjD,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,WAAW,EACjB,UAAS,yBAA8B,KACtC,iBAAiB,EAyBnB,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"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Returns a new selection with `id` toggled. A newly selected id is appended,
3
+ * so the set's iteration order stays the order items were selected in.
4
+ */
5
+ export declare const toggleSelectedId: (selectedIds: ReadonlySet<string>, id: string) => Set<string>;
6
+ /**
7
+ * Returns a new selection after a select-all over `listedIds`: when every
8
+ * listed id is already selected they are all removed, otherwise the missing
9
+ * ones are appended in list order. Selected ids that are not listed (e.g.
10
+ * filtered out by the host) are kept either way.
11
+ */
12
+ export declare const toggleAllSelectedIds: (selectedIds: ReadonlySet<string>, listedIds: readonly string[]) => Set<string>;
13
+ //# sourceMappingURL=list-selection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-selection.d.ts","sourceRoot":"","sources":["../../src/utils/list-selection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,IAAI,MAAM,KACT,GAAG,CAAC,MAAM,CAQZ,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,WAAW,CAAC,MAAM,CAAC,EAChC,WAAW,SAAS,MAAM,EAAE,KAC3B,GAAG,CAAC,MAAM,CAaZ,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"}