@epam/ai-dial-catalog 1.3.0-dev.37 → 1.3.0-dev.371
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/AddOnCatalogModal/AddOnCatalogModal.d.ts +44 -0
- package/components/AddOnCatalogModal/AddOnCatalogModal.d.ts.map +1 -0
- package/components/AddOnListItem/AddOnListItem.d.ts +65 -0
- package/components/AddOnListItem/AddOnListItem.d.ts.map +1 -0
- package/components/AppIdentity/AppIdentity.d.ts +5 -8
- package/components/AppIdentity/AppIdentity.d.ts.map +1 -1
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts +3 -1
- package/components/ApplicationCredentials/ApplicationCredentialRow/ApplicationCredentialRow.d.ts.map +1 -1
- package/components/ApplicationCredentials/ApplicationCredentials.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/Catalog/Catalog.d.ts.map +1 -1
- package/components/Catalog/CreateButton.d.ts +8 -1
- package/components/Catalog/CreateButton.d.ts.map +1 -1
- package/components/Catalog/CreateMenuSheet.d.ts +5 -0
- package/components/Catalog/CreateMenuSheet.d.ts.map +1 -1
- package/components/CatalogPickerModal/CatalogPickerModal.d.ts +110 -0
- package/components/CatalogPickerModal/CatalogPickerModal.d.ts.map +1 -0
- package/components/ClampedName/ClampedName.d.ts.map +1 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts +3 -1
- package/components/DeploymentSelectorField/DeploymentSelectorField.d.ts.map +1 -1
- package/components/DeploymentSelectorPanel/DeploymentSelectorPanel.d.ts +5 -0
- package/components/DeploymentSelectorPanel/DeploymentSelectorPanel.d.ts.map +1 -0
- package/components/Details/ApiDetails.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts +1 -1
- package/components/Details/Credentials/CredentialsIdentityIcon/CredentialsIdentityIcon.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsInfoCard/CredentialsInfoCard.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts +1 -1
- package/components/Details/Credentials/CredentialsManagementPanel/CredentialsManagementPanel.d.ts.map +1 -1
- package/components/Details/Credentials/CredentialsRow/CredentialsRow.d.ts.map +1 -1
- package/components/Details/DetailsPanel.d.ts.map +1 -1
- package/components/Details/DetailsPublishContent.d.ts +19 -0
- package/components/Details/DetailsPublishContent.d.ts.map +1 -0
- package/components/Details/DetailsTabs.d.ts +23 -0
- package/components/Details/DetailsTabs.d.ts.map +1 -0
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts +6 -4
- package/components/Details/Header/CredentialsApiKeyOverlay/CredentialsApiKeyOverlay.d.ts.map +1 -1
- package/components/Details/Header/Header.d.ts +3 -152
- package/components/Details/Header/Header.d.ts.map +1 -1
- package/components/Details/Header/HeaderCredentialsButton.d.ts +16 -0
- package/components/Details/Header/HeaderCredentialsButton.d.ts.map +1 -0
- package/components/Details/Header/HeaderManageSlot.d.ts +27 -0
- package/components/Details/Header/HeaderManageSlot.d.ts.map +1 -0
- package/components/Details/Header/LimitStatusBadge.d.ts +14 -0
- package/components/Details/Header/LimitStatusBadge.d.ts.map +1 -0
- package/components/Details/Header/ShareButton/ShareButton.d.ts.map +1 -1
- package/components/Details/Header/hooks/useManageActions.d.ts +34 -0
- package/components/Details/Header/hooks/useManageActions.d.ts.map +1 -0
- package/components/Details/Header/hooks/useRecipientsCount.d.ts +11 -0
- package/components/Details/Header/hooks/useRecipientsCount.d.ts.map +1 -0
- package/components/Details/TabsContent/Content.d.ts +3 -2
- package/components/Details/TabsContent/Content.d.ts.map +1 -1
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts +10 -0
- package/components/Details/TabsContent/ContentFileTree/ContentFileTree.d.ts.map +1 -1
- package/components/Details/TabsContent/Limits/LimitRow.d.ts.map +1 -1
- package/components/Details/TabsContent/Tools/Tools.d.ts +2 -0
- package/components/Details/TabsContent/Tools/Tools.d.ts.map +1 -1
- package/components/Details/hooks/useDetailsConfirmation.d.ts +29 -0
- package/components/Details/hooks/useDetailsConfirmation.d.ts.map +1 -0
- package/components/Details/hooks/useDetailsContentFile.d.ts +19 -0
- package/components/Details/hooks/useDetailsContentFile.d.ts.map +1 -0
- package/components/Details/hooks/useDetailsPublish.d.ts +22 -0
- package/components/Details/hooks/useDetailsPublish.d.ts.map +1 -0
- package/components/Favorites/FavoriteCard.d.ts +2 -0
- package/components/Favorites/FavoriteCard.d.ts.map +1 -1
- package/components/Favorites/Favorites.d.ts +2 -2
- package/components/Favorites/Favorites.d.ts.map +1 -1
- package/components/Filter/Filter.d.ts +2 -0
- package/components/Filter/Filter.d.ts.map +1 -1
- package/components/ListView/ListView.d.ts +1 -1
- package/components/ListView/ListView.d.ts.map +1 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts +2 -1
- package/components/ListView/Renders/EntityTypeCellRenderer.d.ts.map +1 -1
- package/components/ListView/columns.d.ts +4 -7
- package/components/ListView/columns.d.ts.map +1 -1
- package/components/PersonalEmptyState/PersonalEmptyState.d.ts +2 -2
- package/components/PersonalEmptyState/PersonalEmptyState.d.ts.map +1 -1
- package/components/ScrollToTopButton/ScrollToTopButton.d.ts +14 -0
- package/components/ScrollToTopButton/ScrollToTopButton.d.ts.map +1 -0
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts +5 -0
- package/components/SigninInterruptDialog/SigninInterruptDialog.d.ts.map +1 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts +18 -0
- package/components/SigninInterruptDialog/SigninInterruptRow/SigninInterruptRow.d.ts.map +1 -0
- package/components/Toolbar/Rows/TitleRow.d.ts +2 -1
- package/components/Toolbar/Rows/TitleRow.d.ts.map +1 -1
- package/constants/create-menu.d.ts +0 -2
- package/constants/create-menu.d.ts.map +1 -1
- package/entry-points/mapping.d.ts +5 -3
- package/entry-points/mapping.d.ts.map +1 -1
- package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts +9 -0
- package/hooks/useCatalogScrollToTop/useCatalogScrollToTop.d.ts.map +1 -0
- package/index.css +3 -2
- package/index.d.ts +18 -4
- package/index.d.ts.map +1 -1
- package/index.js +4227 -3194
- package/{mapping-CA0Z7TOl.js → mapping-Bsy4fyg5.js} +35 -24
- package/mapping.js +1 -2
- package/models/application-credentials.d.ts +17 -0
- package/models/application-credentials.d.ts.map +1 -1
- package/models/card-props.d.ts +11 -0
- package/models/card-props.d.ts.map +1 -1
- package/models/card-row-data.d.ts +5 -0
- package/models/card-row-data.d.ts.map +1 -1
- package/models/catalog-item.d.ts +3 -1
- package/models/catalog-item.d.ts.map +1 -1
- package/models/catalog-props.d.ts +17 -3
- package/models/catalog-props.d.ts.map +1 -1
- package/models/catalog-styles.d.ts +13 -0
- package/models/catalog-styles.d.ts.map +1 -1
- package/models/deployment-selector-panel.d.ts +83 -0
- package/models/deployment-selector-panel.d.ts.map +1 -0
- package/models/details-header.d.ts +176 -0
- package/models/details-header.d.ts.map +1 -0
- package/models/details-panel.d.ts +31 -0
- package/models/details-panel.d.ts.map +1 -0
- package/models/favorites.d.ts +2 -0
- package/models/favorites.d.ts.map +1 -1
- package/models/grid-context.d.ts +1 -1
- package/models/grid-context.d.ts.map +1 -1
- package/models/grid-props.d.ts +7 -0
- package/models/grid-props.d.ts.map +1 -1
- package/models/item-details-props.d.ts +26 -0
- package/models/item-details-props.d.ts.map +1 -1
- package/models/list-props.d.ts +23 -26
- package/models/list-props.d.ts.map +1 -1
- package/models/scroll-to-top.d.ts +23 -0
- package/models/scroll-to-top.d.ts.map +1 -0
- package/models/signin-interrupt-dialog.d.ts +97 -0
- package/models/signin-interrupt-dialog.d.ts.map +1 -0
- package/models/toolbar-props.d.ts +3 -1
- package/models/toolbar-props.d.ts.map +1 -1
- package/package.json +5 -5
- package/types/deployment-selector-layout.d.ts +8 -0
- package/types/deployment-selector-layout.d.ts.map +1 -0
- package/types/list-view-column.d.ts +7 -0
- package/types/list-view-column.d.ts.map +1 -0
- package/types/load-status.d.ts +10 -0
- package/types/load-status.d.ts.map +1 -0
- package/types/toolset-auth.d.ts +1 -1
- package/types/toolset-auth.d.ts.map +1 -1
- package/utils/catalog-filter.d.ts +16 -0
- package/utils/catalog-filter.d.ts.map +1 -1
- package/utils/catalog-tabs.d.ts +9 -1
- package/utils/catalog-tabs.d.ts.map +1 -1
- package/utils/create-menu.d.ts +5 -1
- package/utils/create-menu.d.ts.map +1 -1
- package/utils/details-header-actions.d.ts +37 -0
- package/utils/details-header-actions.d.ts.map +1 -0
- package/utils/details-panel.d.ts +33 -0
- package/utils/details-panel.d.ts.map +1 -0
- package/utils/favorites-row.d.ts +8 -0
- package/utils/favorites-row.d.ts.map +1 -0
- package/utils/list-selection.d.ts +10 -10
- package/utils/list-selection.d.ts.map +1 -1
- package/utils/scroll-window.d.ts +3 -14
- package/utils/scroll-window.d.ts.map +1 -1
- package/utils/toolset-credentials.d.ts +17 -6
- package/utils/toolset-credentials.d.ts.map +1 -1
- package/utils/use-list-remove-focus.d.ts +4 -0
- package/utils/use-list-remove-focus.d.ts.map +1 -0
- package/components/ListView/Renders/SelectionCellRenderer.d.ts +0 -6
- package/components/ListView/Renders/SelectionCellRenderer.d.ts.map +0 -1
- package/components/ListView/Renders/SelectionHeader.d.ts +0 -4
- package/components/ListView/Renders/SelectionHeader.d.ts.map +0 -1
- package/components/ListView/selection-context.d.ts +0 -24
- package/components/ListView/selection-context.d.ts.map +0 -1
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts +0 -16
- package/hooks/useIsVerticallyClamped/useIsVerticallyClamped.d.ts.map +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/** Host-resolved presentation of one pending sign-in request. */
|
|
2
|
+
export interface SigninInterruptDialogRow {
|
|
3
|
+
/** Pending event id passed back to every row callback. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Resource display name. */
|
|
6
|
+
displayName: string;
|
|
7
|
+
/** Resource version rendered in parentheses after the name, when present. */
|
|
8
|
+
displayVersion?: string;
|
|
9
|
+
/** Current value of the row's API key field. */
|
|
10
|
+
apiKey: string;
|
|
11
|
+
/** Whether a login or decline is in flight; disables the row's controls and shows a spinner on `Log in`. */
|
|
12
|
+
isProcessing: boolean;
|
|
13
|
+
/** Whether `Log in` is enabled while the row is idle. */
|
|
14
|
+
canSubmitLogin: boolean;
|
|
15
|
+
/** Whether to render the password-type API key field. */
|
|
16
|
+
requiresApiKey: boolean;
|
|
17
|
+
/** Whether the resource needs no credentials; replaces the actions with the no-credentials label. */
|
|
18
|
+
requiresNoCredentials: boolean;
|
|
19
|
+
/** Whether to render the DIAL-native offline-access hint. */
|
|
20
|
+
showDialNativeHint: boolean;
|
|
21
|
+
/** Translated recoverable error, rendered with a Retry action; omitted when the row has none. */
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
}
|
|
24
|
+
/** Localizable copy of `SigninInterruptDialog`; omitted values use English defaults. */
|
|
25
|
+
export interface SigninInterruptDialogLabels {
|
|
26
|
+
/** Dialog heading. Defaults to `'Sign-in required'`. */
|
|
27
|
+
title?: string;
|
|
28
|
+
/** Text under the heading. Defaults to `'One or more tools or services need you to sign in before the conversation can continue.'`. */
|
|
29
|
+
description?: string;
|
|
30
|
+
/** Footer action declining every row. Defaults to `'Decline all'`. */
|
|
31
|
+
declineAll?: string;
|
|
32
|
+
/** Per-row decline action. Defaults to `'Decline'`. */
|
|
33
|
+
decline?: string;
|
|
34
|
+
/** Per-row login action and its spinner's accessible name. Defaults to `'Log in'`. */
|
|
35
|
+
logIn?: string;
|
|
36
|
+
/** Retry action next to a row error. Defaults to `'Retry'`. */
|
|
37
|
+
retry?: string;
|
|
38
|
+
/** API key field label. Defaults to `'API key'`. */
|
|
39
|
+
apiKeyLabel?: string;
|
|
40
|
+
/** API key field placeholder. Defaults to `'Enter API key'`. */
|
|
41
|
+
apiKeyPlaceholder?: string;
|
|
42
|
+
/** DIAL-native row hint. Defaults to `'Connect your account for offline access. An administrator must separately approve this application's access.'`. */
|
|
43
|
+
dialNativeHint?: string;
|
|
44
|
+
/** Label of a row that needs no credentials. Defaults to `'No credentials required'`. */
|
|
45
|
+
noCredentialsRequired?: string;
|
|
46
|
+
/** Offline-use consent checkbox label. Defaults to `'Allow offline use'`. */
|
|
47
|
+
offlineUsageConsent?: string;
|
|
48
|
+
/** Offline-use consent checkbox caption. Defaults to `'Required for scheduled and background runs.'`. */
|
|
49
|
+
offlineUsageConsentHint?: string;
|
|
50
|
+
}
|
|
51
|
+
/** Color overrides of `SigninInterruptDialog`, applied as `--cat-signin-*` custom properties. */
|
|
52
|
+
export interface SigninInterruptDialogColors {
|
|
53
|
+
/** Divider between rows. Defaults to `--stroke-primary`. */
|
|
54
|
+
rowBorder?: string;
|
|
55
|
+
/** Row name text. Defaults to `--text-primary`. */
|
|
56
|
+
nameText?: string;
|
|
57
|
+
/** Row error text and icon. Defaults to `--text-error`. */
|
|
58
|
+
errorText?: string;
|
|
59
|
+
/** DIAL-native hint and no-credentials label. Defaults to `--text-secondary`. */
|
|
60
|
+
hintText?: string;
|
|
61
|
+
/** Text under the heading. Defaults to `--text-secondary`. */
|
|
62
|
+
descriptionText?: string;
|
|
63
|
+
}
|
|
64
|
+
/** Props of `SigninInterruptDialog`. */
|
|
65
|
+
export interface SigninInterruptDialogProps {
|
|
66
|
+
/** Pending sign-in requests in display order; an empty list renders nothing. */
|
|
67
|
+
rows: SigninInterruptDialogRow[];
|
|
68
|
+
/** Status announced politely after a row resolves. Defaults to `''`. */
|
|
69
|
+
statusMessage?: string;
|
|
70
|
+
/** Whether to render the offline-use consent checkbox. Defaults to `false`. */
|
|
71
|
+
isOfflineUsageConsentShown?: boolean;
|
|
72
|
+
/** Checked state of the offline-use consent checkbox. */
|
|
73
|
+
offlineUsageConsent: boolean;
|
|
74
|
+
/** Called with the new offline-use consent. */
|
|
75
|
+
onOfflineUsageConsentChange: (value: boolean) => void;
|
|
76
|
+
/** Called with a row id and its new API key. */
|
|
77
|
+
onApiKeyChange: (rowId: string, value: string) => void;
|
|
78
|
+
/** Called with a row id on `Log in` or Retry; must open any OAuth popup synchronously. */
|
|
79
|
+
onLogin: (rowId: string) => void;
|
|
80
|
+
/** Called with a row id on `Decline`. */
|
|
81
|
+
onDecline: (rowId: string) => void;
|
|
82
|
+
/** Called on `Decline all`, which renders only while more than one row is listed. */
|
|
83
|
+
onDeclineAll: () => void;
|
|
84
|
+
/** Copy overrides. */
|
|
85
|
+
labels?: SigninInterruptDialogLabels;
|
|
86
|
+
/** Color overrides. */
|
|
87
|
+
colors?: SigninInterruptDialogColors;
|
|
88
|
+
/** Typography class of the text under the heading. Defaults to `'dial-small-text'`. */
|
|
89
|
+
descriptionClassName?: string;
|
|
90
|
+
/** Typography class of each row name. Defaults to `'dial-body-semi-text'`. */
|
|
91
|
+
nameClassName?: string;
|
|
92
|
+
/** Typography class of each row error. Defaults to `'dial-small-text'`. */
|
|
93
|
+
errorClassName?: string;
|
|
94
|
+
/** Typography class of the DIAL-native hint and the no-credentials label. Defaults to `'dial-small-text'`. */
|
|
95
|
+
hintClassName?: string;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=signin-interrupt-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signin-interrupt-dialog.d.ts","sourceRoot":"","sources":["../../src/models/signin-interrupt-dialog.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,6BAA6B;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,6EAA6E;IAC7E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,4GAA4G;IAC5G,YAAY,EAAE,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,wCAAwC;AACxC,MAAM,WAAW,0BAA0B;IACzC,gFAAgF;IAChF,IAAI,EAAE,wBAAwB,EAAE,CAAC;IACjC,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+EAA+E;IAC/E,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,yDAAyD;IACzD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+CAA+C;IAC/C,2BAA2B,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,gDAAgD;IAChD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,0FAA0F;IAC1F,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,yCAAyC;IACzC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,qFAAqF;IACrF,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,sBAAsB;IACtB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,uBAAuB;IACvB,MAAM,CAAC,EAAE,2BAA2B,CAAC;IACrC,uFAAuF;IACvF,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8GAA8G;IAC9G,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectOption } from '@epam/ai-dial-ui-kit';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, Ref } from 'react';
|
|
3
3
|
import { CatalogViewMode } from '../types/view-mode';
|
|
4
4
|
/** Typography class overrides for `Toolbar`. */
|
|
5
5
|
export interface ToolbarTypography {
|
|
@@ -81,6 +81,8 @@ export interface ToolbarProps {
|
|
|
81
81
|
browseHeaderRenderer?: ReactNode;
|
|
82
82
|
/** Search input placeholder. Default: 'Search models, tools, agents…'. */
|
|
83
83
|
searchPlaceholder?: string;
|
|
84
|
+
/** Ref attached to the search `<input>`, e.g. so the host can focus it. */
|
|
85
|
+
searchInputRef?: Ref<HTMLInputElement>;
|
|
84
86
|
/** Accessible label for switching to grid view. Default: 'Grid view'. */
|
|
85
87
|
gridViewLabel?: string;
|
|
86
88
|
/** Accessible label for switching to list view. Default: 'List view'. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-props.d.ts","sourceRoot":"","sources":["../../src/models/toolbar-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"toolbar-props.d.ts","sourceRoot":"","sources":["../../src/models/toolbar-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,gDAAgD;AAChD,MAAM,WAAW,iBAAiB;IAChC,gFAAgF;IAChF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,0FAA0F;IAC1F,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wEAAwE;AACxE,MAAM,WAAW,aAAa;IAC5B,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oFAAoF;IACpF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2GAA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O,CAAC,yBAAyB,CAAC,CAAC;CAC3D"}
|
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.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.371",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@tabler/icons-react": "^3.
|
|
29
|
+
"@tabler/icons-react": "^3.50.0",
|
|
30
30
|
"ag-grid-community": "^35.3.0",
|
|
31
|
-
"@epam/ai-dial-publish-panel": "1.3.0-dev.
|
|
31
|
+
"@epam/ai-dial-publish-panel": "1.3.0-dev.371"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.3.0-dev.
|
|
36
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.3.0-dev.371",
|
|
36
|
+
"@epam/ai-dial-ui-kit": "^0.16.0"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
39
39
|
"type": "git",
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** How `DeploymentSelectorPanel` arranges the selected, pinned and favourite rows. */
|
|
2
|
+
export declare enum DeploymentSelectorLayout {
|
|
3
|
+
/** A "Currently selected" section above a headed Favorites section. */
|
|
4
|
+
Sectioned = "sectioned",
|
|
5
|
+
/** One list without headings: pinned row, then the selection when it is not a favourite, then favourites. */
|
|
6
|
+
Flat = "flat"
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=deployment-selector-layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployment-selector-layout.d.ts","sourceRoot":"","sources":["../../src/types/deployment-selector-layout.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,oBAAY,wBAAwB;IAClC,uEAAuE;IACvE,SAAS,cAAc;IACvB,6GAA6G;IAC7G,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-view-column.d.ts","sourceRoot":"","sources":["../../src/types/list-view-column.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Where the data behind a `CatalogPickerModal` stands. */
|
|
2
|
+
export declare enum CatalogLoadStatus {
|
|
3
|
+
/** The items are still being fetched; the picker shows a spinner. */
|
|
4
|
+
Loading = "loading",
|
|
5
|
+
/** The items are in; the picker lists them. */
|
|
6
|
+
Ready = "ready",
|
|
7
|
+
/** The items failed to load; the picker shows the error, with Retry when `onRetry` is given. */
|
|
8
|
+
Error = "error"
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=load-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-status.d.ts","sourceRoot":"","sources":["../../src/types/load-status.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,oBAAY,iBAAiB;IAC3B,qEAAqE;IACrE,OAAO,YAAY;IACnB,+CAA+C;IAC/C,KAAK,UAAU;IACf,gGAAgG;IAChG,KAAK,UAAU;CAChB"}
|
package/types/toolset-auth.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare enum CredentialStatus {
|
|
|
20
20
|
export declare enum CredentialsLevel {
|
|
21
21
|
/** The current user's own, personal credentials. */
|
|
22
22
|
User = "USER",
|
|
23
|
-
/**
|
|
23
|
+
/** Toolset-level credentials: organization-wide on a public toolset, the owner's own on a private one. */
|
|
24
24
|
Global = "GLOBAL"
|
|
25
25
|
}
|
|
26
26
|
/** Resolved UI state for the credentials trigger button/section. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,
|
|
1
|
+
{"version":3,"file":"toolset-auth.d.ts","sourceRoot":"","sources":["../../src/types/toolset-auth.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,yBAAyB;IACnC,+BAA+B;IAC/B,IAAI,SAAS;IACb,0CAA0C;IAC1C,MAAM,YAAY;IAClB,wDAAwD;IACxD,KAAK,UAAU;CAChB;AAED,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,yCAAyC;IACzC,QAAQ,cAAc;IACtB,kCAAkC;IAClC,SAAS,eAAe;IACxB,mDAAmD;IACnD,MAAM,WAAW;CAClB;AAED,6DAA6D;AAC7D,oBAAY,gBAAgB;IAC1B,oDAAoD;IACpD,IAAI,SAAS;IACb,0GAA0G;IAC1G,MAAM,WAAW;CAClB;AAED,oEAAoE;AACpE,oBAAY,kBAAkB;IAC5B,4EAA4E;IAC5E,iBAAiB,uBAAuB;IACxC,wEAAwE;IACxE,gBAAgB,wBAAwB;IACxC,6CAA6C;IAC7C,KAAK,WAAW;IAChB,uCAAuC;IACvC,MAAM,YAAY;CACnB;AAED,wGAAwG;AACxG,oBAAY,qBAAqB;IAC/B,SAAS,eAAe;CACzB;AAED,qHAAqH;AACrH,oBAAY,sBAAsB;IAChC,kIAAkI;IAClI,mBAAmB,0BAA0B;IAC7C,mFAAmF;IACnF,oBAAoB,2BAA2B;IAC/C,2IAA2I;IAC3I,yBAAyB,gCAAgC;CAC1D"}
|
|
@@ -20,4 +20,20 @@ export declare const getTopicOptions: (items: CatalogItem[]) => Set<string>;
|
|
|
20
20
|
export declare const filterCatalogItems: (items: CatalogItem[], query: string) => CatalogItem[];
|
|
21
21
|
/** Returns a copy of `checked` with `topic` added, or removed when it was already selected. */
|
|
22
22
|
export declare const toggleTopic: (topic: string, checked: Set<string>) => Set<string>;
|
|
23
|
+
/** A catalog toolbar's search, From filter and sort, as `filterCatalogItemsByQuery` applies them. */
|
|
24
|
+
export interface CatalogItemsQuery {
|
|
25
|
+
/** Name search, case-insensitive and trimmed. */
|
|
26
|
+
search: string;
|
|
27
|
+
/** Topics to keep; an empty set keeps every item. */
|
|
28
|
+
topics: Set<string>;
|
|
29
|
+
/** Whether to keep only the user's own items (`isMyApp`). */
|
|
30
|
+
isMyOnly: boolean;
|
|
31
|
+
/** A `CatalogSortKey` value. */
|
|
32
|
+
sortKey: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Applies a catalog toolbar's search, From filter (topics and "My") and sort,
|
|
36
|
+
* in the order and with the meaning of the catalog's own toolbar.
|
|
37
|
+
*/
|
|
38
|
+
export declare const filterCatalogItemsByQuery: (items: CatalogItem[], { search, topics, isMyOnly, sortKey }: CatalogItemsQuery) => CatalogItem[];
|
|
23
39
|
//# sourceMappingURL=catalog-filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-filter.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-filter.d.ts","sourceRoot":"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
1
|
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { TabModel } from '@epam/ai-dial-ui-kit';
|
|
3
3
|
import { CatalogItem } from '../models/catalog-item';
|
|
4
|
-
/**
|
|
4
|
+
/** Canonical display order for entity type tabs. */
|
|
5
|
+
export declare const CATALOG_TAB_ORDER: readonly CatalogEntityType[];
|
|
6
|
+
/** Returns the Browse tabs `item` is listed under: its non-empty `catalogTabs`, otherwise `[item.type]`. */
|
|
7
|
+
export declare const getCatalogItemTabs: (item: CatalogItem) => readonly CatalogEntityType[];
|
|
8
|
+
/** Returns the entity type `item` is labeled with under `activeTab`: the tab itself when the item is listed there, otherwise `item.type`. */
|
|
9
|
+
export declare const getCatalogItemDisplayType: (item: CatalogItem, activeTab?: CatalogEntityType) => CatalogEntityType;
|
|
10
|
+
/** Derives entity-type tabs from the tabs the catalog's items are listed under, sorted by canonical order. */
|
|
5
11
|
export declare const buildCatalogTabs: (items: CatalogItem[], tabLabels?: Partial<Record<CatalogEntityType, string>>) => TabModel[];
|
|
6
12
|
/** Scrolls a horizontally scrolling tab row just enough to bring its selected tab fully into view. */
|
|
7
13
|
export declare const scrollSelectedTabIntoView: (row: HTMLElement) => void;
|
|
14
|
+
/** Returns a tab-dependent text: the string itself, or the callback's result for `activeTab`. */
|
|
15
|
+
export declare const resolveTabText: (text: string | ((activeTab: string) => string) | undefined, activeTab: string) => string | undefined;
|
|
8
16
|
//# sourceMappingURL=catalog-tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-tabs.d.ts","sourceRoot":"","sources":["../../src/utils/catalog-tabs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAc1D,oDAAoD;AACpD,eAAO,MAAM,iBAAiB,EAAE,SAAS,iBAAiB,EAMzD,CAAC;AAEF,4GAA4G;AAC5G,eAAO,MAAM,kBAAkB,GAC7B,MAAM,WAAW,KAChB,SAAS,iBAAiB,EAGZ,CAAC;AAElB,6IAA6I;AAC7I,eAAO,MAAM,yBAAyB,GACpC,MAAM,WAAW,EACjB,YAAY,iBAAiB,KAC5B,iBAGY,CAAC;AAEhB,8GAA8G;AAC9G,eAAO,MAAM,gBAAgB,GAC3B,OAAO,WAAW,EAAE,EACpB,YAAY,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,KACrD,QAAQ,EASV,CAAC;AAEF,sGAAsG;AACtG,eAAO,MAAM,yBAAyB,GAAI,KAAK,WAAW,KAAG,IAiB5D,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,EAC1D,WAAW,MAAM,KAChB,MAAM,GAAG,SAAkE,CAAC"}
|
package/utils/create-menu.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { DropdownItem } from '@epam/ai-dial-ui-kit';
|
|
2
2
|
import { MouseEvent } from 'react';
|
|
3
3
|
import { CatalogCreateSearch, CatalogTabCreateMenu } from '../models/catalog-props';
|
|
4
|
-
/**
|
|
4
|
+
/**
|
|
5
|
+
* Returns `items` with every option's string label, nested ones included,
|
|
6
|
+
* rendered through a single-line `Highlight` for `query`. Divider and
|
|
7
|
+
* plain-text rows (such as a section header) are returned unchanged.
|
|
8
|
+
*/
|
|
5
9
|
export declare const highlightDropdownLabels: (items: DropdownItem[], query: string) => DropdownItem[];
|
|
6
10
|
/** Create-button wiring derived from one tab's Create menu. */
|
|
7
11
|
export interface TabCreateButtonConfig {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"create-menu.d.ts","sourceRoot":"","sources":["../../src/utils/create-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAOjC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,YAAY,EAAE,EACrB,OAAO,MAAM,KACZ,YAAY,EAeX,CAAC;AAEL,+DAA+D;AAC/D,MAAM,WAAW,qBAAqB;IACpC,sFAAsF;IACtF,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,gFAAgF;IAChF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IACzD,yDAAyD;IACzD,MAAM,CAAC,EAAE,mBAAmB,CAAC;CAC9B;AAED,iHAAiH;AACjH,eAAO,MAAM,wBAAwB,GACnC,MAAM,oBAAoB,GAAG,SAAS,KACrC,qBAAqB,GAAG,SAkB1B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HeaderProps } from '../models/details-header';
|
|
2
|
+
import { RecipientsCountStatus } from '../types/recipients-count';
|
|
3
|
+
import { CredentialsUiState, ToolsetAuthenticationType } from '../types/toolset-auth';
|
|
4
|
+
/** Returns the default label of the admin credentials-management action for an authentication type. */
|
|
5
|
+
export declare const defaultManageCredentialsActionLabel: (authenticationType: ToolsetAuthenticationType) => string;
|
|
6
|
+
/** Parameters for {@link resolveHeaderActionVisibility}. */
|
|
7
|
+
export interface HeaderActionVisibilityParams extends Pick<HeaderProps, 'item' | 'texts' | 'isReadonly' | 'isPrimaryActionVisible' | 'onOpenUnpublish' | 'hasPublishedFolders' | 'isUnpublishVisible' | 'isPublishHistoryResolved' | 'isPublishVisible' | 'onEdit' | 'isShareVisible' | 'isSharePrimary' | 'isPublishPrimary' | 'onLogin' | 'onLogout' | 'onDownload' | 'isDownloadVisible' | 'isDownloadPrimary' | 'onUnshare' | 'isUnshareVisible' | 'onRevokeShare' | 'onFetchRecipientsCount' | 'isRevokeShareVisible'> {
|
|
8
|
+
/** State of the recipient-count lookup, from `useRecipientsCount`. */
|
|
9
|
+
recipientsCountStatus: RecipientsCountStatus;
|
|
10
|
+
/** Resolved recipient count, from `useRecipientsCount`. */
|
|
11
|
+
recipientsCount: number | undefined;
|
|
12
|
+
}
|
|
13
|
+
/** Resolves which header actions show, and on which surface, for one item. */
|
|
14
|
+
export declare const resolveHeaderActionVisibility: ({ item, texts, isReadonly, isPrimaryActionVisible, onOpenUnpublish, hasPublishedFolders, isUnpublishVisible, isPublishHistoryResolved, isPublishVisible, onEdit, isShareVisible, isSharePrimary, isPublishPrimary, onLogin, onLogout, onDownload, isDownloadVisible, isDownloadPrimary, onUnshare, isUnshareVisible, onRevokeShare, onFetchRecipientsCount, isRevokeShareVisible, recipientsCountStatus, recipientsCount, }: HeaderActionVisibilityParams) => {
|
|
15
|
+
shouldShowPrimaryAction: boolean;
|
|
16
|
+
shouldShowUnpublish: boolean;
|
|
17
|
+
isUnpublishPending: boolean;
|
|
18
|
+
shouldShowPublish: boolean;
|
|
19
|
+
shouldShowEditAction: boolean;
|
|
20
|
+
shouldShowShareAction: boolean;
|
|
21
|
+
isShareInActionRow: boolean;
|
|
22
|
+
isPublishInActionRow: boolean;
|
|
23
|
+
authenticationType: ToolsetAuthenticationType;
|
|
24
|
+
credentialsUiState: CredentialsUiState | undefined;
|
|
25
|
+
shouldShowCredentialsAction: boolean;
|
|
26
|
+
isCredentialsActionPrimary: boolean;
|
|
27
|
+
isDownloadActionPrimary: boolean;
|
|
28
|
+
shouldShowDownloadAction: boolean;
|
|
29
|
+
shouldShowDeleteAction: boolean | undefined;
|
|
30
|
+
shouldShowUnshareAction: boolean;
|
|
31
|
+
shouldShowRevokeShareAction: boolean;
|
|
32
|
+
mayGainUnpublishEntry: boolean;
|
|
33
|
+
mayGainRevokeShareEntry: boolean;
|
|
34
|
+
isApiKeyConfigured: boolean;
|
|
35
|
+
isOAuthLogoutState: boolean;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=details-header-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-header-actions.d.ts","sourceRoot":"","sources":["../../src/utils/details-header-actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAG/B,uGAAuG;AACvG,eAAO,MAAM,mCAAmC,GAC9C,oBAAoB,yBAAyB,KAC5C,MAGuB,CAAC;AAE3B,4DAA4D;AAC5D,MAAM,WAAW,4BAA6B,SAAQ,IAAI,CACxD,WAAW,EACT,MAAM,GACN,OAAO,GACP,YAAY,GACZ,wBAAwB,GACxB,iBAAiB,GACjB,qBAAqB,GACrB,oBAAoB,GACpB,0BAA0B,GAC1B,kBAAkB,GAClB,QAAQ,GACR,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,SAAS,GACT,UAAU,GACV,YAAY,GACZ,mBAAmB,GACnB,mBAAmB,GACnB,WAAW,GACX,kBAAkB,GAClB,eAAe,GACf,wBAAwB,GACxB,sBAAsB,CACzB;IACC,sEAAsE;IACtE,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,2DAA2D;IAC3D,eAAe,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC;AAED,8EAA8E;AAC9E,eAAO,MAAM,6BAA6B,GAAI,6ZA0B3C,4BAA4B;;;;;;;;;;;;;;;;;;;;;;CAwM9B,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PublishFolderNode } from '@epam/ai-dial-publish-panel';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { PublishedFolder } from '../models/details-panel';
|
|
4
|
+
import { ItemDetailsColors } from '../models/item-details-props';
|
|
5
|
+
import { DetailsConfirmationKind } from '../types/details-confirmation';
|
|
6
|
+
import { CredentialsLevel, ToolsetAuthenticationType } from '../types/toolset-auth';
|
|
7
|
+
/** One published folder needs no choice; several require the user to pick one. */
|
|
8
|
+
export declare const resolveUnpublishFolder: (folders: PublishedFolder[], selectedKey: string | null) => PublishedFolder | undefined;
|
|
9
|
+
/** Whether the catalog's publish flow may replace an already-published version. Always `false`. */
|
|
10
|
+
export declare const CATALOG_PUBLISH_ALLOWS_REPLACE = false;
|
|
11
|
+
/** Publish handler used when the host supplies none. */
|
|
12
|
+
export declare const NO_OP_PUBLISH: () => Promise<undefined>;
|
|
13
|
+
/** Stable empty folder list for the `publishFolderItems` default. */
|
|
14
|
+
export declare const EMPTY_PUBLISH_FOLDERS: PublishFolderNode[];
|
|
15
|
+
/** Stable empty list for the `ruleSourceOptions` default. */
|
|
16
|
+
export declare const EMPTY_RULE_SOURCE_OPTIONS: string[];
|
|
17
|
+
/** Default consequences listed under the Delete confirmation. */
|
|
18
|
+
export declare const DEFAULT_DELETE_CONSEQUENCES: string[];
|
|
19
|
+
/** Default consequences listed under the Remove-from-My-List confirmation. */
|
|
20
|
+
export declare const DEFAULT_UNSHARE_CONSEQUENCES: string[];
|
|
21
|
+
/** Default consequences listed under the Unpublish confirmation. */
|
|
22
|
+
export declare const DEFAULT_UNPUBLISH_CONSEQUENCES: string[];
|
|
23
|
+
/** Default consequences listed under the Revoke-access confirmation. */
|
|
24
|
+
export declare const DEFAULT_REVOKE_SHARE_CONSEQUENCES: string[];
|
|
25
|
+
/** Returns the default credentials-management sub-view title for an authentication type. */
|
|
26
|
+
export declare const defaultCredentialsManagementTitle: (authenticationType: ToolsetAuthenticationType) => string;
|
|
27
|
+
/** Returns the default API-key delete confirmation message for a credentials level. */
|
|
28
|
+
export declare const defaultDeleteApiKeyConfirmMessage: (level: CredentialsLevel) => string;
|
|
29
|
+
/** Confirmation kinds that close the details panel once confirmed. */
|
|
30
|
+
export declare const CONFIRMATIONS_REMOVING_ITEM_FROM_VIEW: Set<DetailsConfirmationKind>;
|
|
31
|
+
/** Maps the details panel color overrides to the CSS custom properties its stylesheets read. */
|
|
32
|
+
export declare const getDetailsPanelCssVars: (detailsColors: ItemDetailsColors | undefined) => CSSProperties;
|
|
33
|
+
//# sourceMappingURL=details-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-panel.d.ts","sourceRoot":"","sources":["../../src/utils/details-panel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,GACjC,SAAS,eAAe,EAAE,EAC1B,aAAa,MAAM,GAAG,IAAI,KACzB,eAAe,GAAG,SAKpB,CAAC;AASF,mGAAmG;AACnG,eAAO,MAAM,8BAA8B,QAAQ,CAAC;AACpD,wDAAwD;AACxD,eAAO,MAAM,aAAa,0BAAwB,CAAC;AACnD,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,EAAE,iBAAiB,EAAO,CAAC;AAC7D,6DAA6D;AAC7D,eAAO,MAAM,yBAAyB,EAAE,MAAM,EAAO,CAAC;AAEtD,iEAAiE;AACjE,eAAO,MAAM,2BAA2B,UAIvC,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,4BAA4B,UAIxC,CAAC;AAEF,oEAAoE;AACpE,eAAO,MAAM,8BAA8B,UAI1C,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,iCAAiC,UAI7C,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,iCAAiC,GAC5C,oBAAoB,yBAAyB,KAC5C,MAGwB,CAAC;AAE5B,uFAAuF;AACvF,eAAO,MAAM,iCAAiC,GAC5C,OAAO,gBAAgB,KACtB,MAG2D,CAAC;AAS/D,sEAAsE;AACtE,eAAO,MAAM,qCAAqC,8BAI9C,CAAC;AAEL,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,GACjC,eAAe,iBAAiB,GAAG,SAAS,KAC3C,aA0CC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the physical horizontal distance, in px, that `row` must scroll for
|
|
3
|
+
* `card`'s inline-start edge to meet the row's inline-start padding edge.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getRowScrollDelta: (row: HTMLElement, card: HTMLElement) => number;
|
|
6
|
+
/** Returns the index of the card closest to the row's inline-start edge; the last index once the row is scrolled to its end. */
|
|
7
|
+
export declare const getRowActiveIndex: (row: HTMLElement, cards: HTMLElement[]) => number;
|
|
8
|
+
//# sourceMappingURL=favorites-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"favorites-row.d.ts","sourceRoot":"","sources":["../../src/utils/favorites-row.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAC5B,KAAK,WAAW,EAChB,MAAM,WAAW,KAChB,MAUF,CAAC;AAEF,gIAAgI;AAChI,eAAO,MAAM,iBAAiB,GAC5B,KAAK,WAAW,EAChB,OAAO,WAAW,EAAE,KACnB,MAiBF,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Merges the selection the ui-kit `Grid` reports into the host's selection.
|
|
3
|
+
*
|
|
4
|
+
* The grid only knows the rows it holds and reports them in row order, so a
|
|
5
|
+
* plain copy would lose two things the host relies on: the order items were
|
|
6
|
+
* selected in, and selected ids the host filtered out of the list. Previous ids
|
|
7
|
+
* are kept in their order when they are unlisted or still selected; ids the
|
|
8
|
+
* grid newly selected are appended after them, in the grid's order.
|
|
4
9
|
*/
|
|
5
|
-
export declare const
|
|
6
|
-
/**
|
|
7
|
-
|
|
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>;
|
|
10
|
+
export declare const mergeGridSelection: (previous: ReadonlySet<string>, gridIds: ReadonlySet<string>, listedIds: readonly string[]) => Set<string>;
|
|
11
|
+
/** Returns the ids a picker commits: attached ids still checked or not listed, in order, then newly checked ids. */
|
|
12
|
+
export declare const applyCatalogSelection: (attachedIds: readonly string[], checkedIds: ReadonlySet<string>, listedIds: ReadonlySet<string>) => string[];
|
|
13
13
|
//# sourceMappingURL=list-selection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-selection.d.ts","sourceRoot":"","sources":["../../src/utils/list-selection.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"list-selection.d.ts","sourceRoot":"","sources":["../../src/utils/list-selection.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAU,WAAW,CAAC,MAAM,CAAC,EAC7B,SAAS,WAAW,CAAC,MAAM,CAAC,EAC5B,WAAW,SAAS,MAAM,EAAE,KAC3B,GAAG,CAAC,MAAM,CAUZ,CAAC;AAEF,oHAAoH;AACpH,eAAO,MAAM,qBAAqB,GAChC,aAAa,SAAS,MAAM,EAAE,EAC9B,YAAY,WAAW,CAAC,MAAM,CAAC,EAC/B,WAAW,WAAW,CAAC,MAAM,CAAC,KAC7B,MAAM,EAQR,CAAC"}
|
package/utils/scroll-window.d.ts
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
1
|
/** Returns the nearest scrollable ancestor, falling back to `<html>`. */
|
|
3
2
|
export declare const getScrollParent: (el: Element | null) => Element;
|
|
4
|
-
/** Row range `useRowWindow` currently wants rendered. */
|
|
5
|
-
export interface RowWindow {
|
|
6
|
-
/** Attach to the element that spans all rows, spacers included. */
|
|
7
|
-
containerRef: RefObject<HTMLDivElement | null>;
|
|
8
|
-
/** Index of the first row to render (inclusive). */
|
|
9
|
-
startRow: number;
|
|
10
|
-
/** Index of one past the last row to render (exclusive). */
|
|
11
|
-
endRow: number;
|
|
12
|
-
}
|
|
13
3
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* than inside its own box.
|
|
4
|
+
* Scrolls `container` vertically just enough to bring `child` fully into
|
|
5
|
+
* view. Unlike `scrollIntoView`, no other scrollable ancestor moves.
|
|
17
6
|
*/
|
|
18
|
-
export declare const
|
|
7
|
+
export declare const scrollChildIntoContainerView: (container: HTMLElement, child: HTMLElement) => void;
|
|
19
8
|
//# sourceMappingURL=scroll-window.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-window.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-window.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"scroll-window.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-window.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,eAAO,MAAM,eAAe,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,OAYpD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,WAAW,EACtB,OAAO,WAAW,KACjB,IAWF,CAAC"}
|
|
@@ -9,15 +9,26 @@ export declare const getCredentialsUiState: (credentials: CatalogItemCredentials
|
|
|
9
9
|
/** Returns `CredentialsBadgeState.LoggedOut` when signed out at every applicable level, or `undefined` when no authentication is required or signed in at any level. */
|
|
10
10
|
export declare const getCredentialsBadgeState: (credentials: CatalogItemCredentials) => CredentialsBadgeState | undefined;
|
|
11
11
|
/**
|
|
12
|
-
* Whether the publisher holds a credential for an authenticated
|
|
13
|
-
* may therefore offer to publish it alongside the toolset.
|
|
12
|
+
* Whether the publisher holds a global-level credential for an authenticated
|
|
13
|
+
* toolset and may therefore offer to publish it alongside the toolset.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* does not hold cannot be passed on.
|
|
15
|
+
* Only `globalStatus` qualifies: DIAL Core copies the source item's global
|
|
16
|
+
* credential to the published copy, so a user-level sign-in alone leaves
|
|
17
|
+
* nothing to pass on.
|
|
19
18
|
*/
|
|
20
19
|
export declare const canPublishCredentials: (credentials: CatalogItemCredentials | undefined) => boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Resolves which level the direct (non-admin) "Log in" and API-key actions
|
|
22
|
+
* apply to, per DIAL Core's public/private toolset convention: a public
|
|
23
|
+
* toolset is signed in to at `USER` level, a private one at `GLOBAL` level —
|
|
24
|
+
* the owner's own credential, which is also the one DIAL Core copies onto a
|
|
25
|
+
* copy published with shared credentials.
|
|
26
|
+
*
|
|
27
|
+
* A private toolset already signed in at `USER` level keeps resolving to
|
|
28
|
+
* `USER`, so a key added there before this rule can still be changed or
|
|
29
|
+
* deleted from the same action.
|
|
30
|
+
*/
|
|
31
|
+
export declare const getDirectCredentialsLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
|
|
21
32
|
/** Resolves which level a direct (non-accordion) "Log out" action applies to. */
|
|
22
33
|
export declare const getSignedInLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
|
|
23
34
|
/** 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,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
|
|
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;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,aAAa,sBAAsB,GAAG,SAAS,KAC9C,OAQF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,gBAG0B,CAAC;AAE9B,iFAAiF;AACjF,eAAO,MAAM,gBAAgB,GAC3B,aAAa,sBAAsB,KAClC,gBAG0B,CAAC;AAE9B,iGAAiG;AACjG,eAAO,MAAM,yBAAyB,GACpC,aAAa,sBAAsB,KAClC,sBAAsB,GAAG,SAkB3B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/** Returns a ref for a list's container that, once `count` drops and focus is lost, focuses the list's first button. */
|
|
3
|
+
export declare const useListRemoveFocus: <T extends HTMLElement = HTMLElement>(count: number) => RefObject<T | null>;
|
|
4
|
+
//# sourceMappingURL=use-list-remove-focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-list-remove-focus.d.ts","sourceRoot":"","sources":["../../src/utils/use-list-remove-focus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,OAAO,CAAC;AAE1D,wHAAwH;AACxH,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,WAAW,GAAG,WAAW,EACpE,OAAO,MAAM,KACZ,SAAS,CAAC,CAAC,GAAG,IAAI,CAsBpB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ICellRendererParams } from 'ag-grid-community';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { CatalogItem } from '../../../models/catalog-item';
|
|
4
|
-
/** ag-grid cell renderer for a row's checkbox in the multi-select column. */
|
|
5
|
-
export declare const SelectionCellRenderer: FC<ICellRendererParams<CatalogItem>>;
|
|
6
|
-
//# sourceMappingURL=SelectionCellRenderer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionCellRenderer.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionCellRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGhE,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAgBtE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/ListView/Renders/SelectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG3B,mFAAmF;AACnF,eAAO,MAAM,eAAe,EAAE,EAoB7B,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CatalogItem } from '../../models/catalog-item';
|
|
2
|
-
/** Multi-select state shared by the `ListView` selection column's header and cells. */
|
|
3
|
-
export interface ListSelectionContextValue {
|
|
4
|
-
/** Ids of the selected items, in selection order. */
|
|
5
|
-
selectedIds: ReadonlySet<string>;
|
|
6
|
-
/** Whether every listed item is selected. */
|
|
7
|
-
isAllSelected: boolean;
|
|
8
|
-
/** Whether some, but not all, listed items are selected. */
|
|
9
|
-
isSomeSelected: boolean;
|
|
10
|
-
/** Whether the list has any items to select. */
|
|
11
|
-
hasItems: boolean;
|
|
12
|
-
/** Toggles one item's selection. */
|
|
13
|
-
toggle: (id: string) => void;
|
|
14
|
-
/** Selects every listed item, or clears them all when they are all selected. */
|
|
15
|
-
toggleAll: () => void;
|
|
16
|
-
/** Accessible name of a row's checkbox. */
|
|
17
|
-
getRowAriaLabel: (item: CatalogItem) => string;
|
|
18
|
-
/** Accessible name of the select-all checkbox. */
|
|
19
|
-
selectAllAriaLabel: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const ListSelectionContext: import('react').Context<ListSelectionContextValue | null>;
|
|
22
|
-
/** Reads the `ListView` multi-select state; only valid inside the selection column. */
|
|
23
|
-
export declare const useListSelection: () => ListSelectionContextValue;
|
|
24
|
-
//# sourceMappingURL=selection-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selection-context.d.ts","sourceRoot":"","sources":["../../../src/components/ListView/selection-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAE7D,uFAAuF;AACvF,MAAM,WAAW,yBAAyB;IACxC,qDAAqD;IACrD,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,6CAA6C;IAC7C,aAAa,EAAE,OAAO,CAAC;IACvB,4DAA4D;IAC5D,cAAc,EAAE,OAAO,CAAC;IACxB,gDAAgD;IAChD,QAAQ,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,gFAAgF;IAChF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,2CAA2C;IAC3C,eAAe,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,CAAC;IAC/C,kDAAkD;IAClD,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAOD,eAAO,MAAM,oBAAoB,2DACsB,CAAC;AAExD,uFAAuF;AACvF,eAAO,MAAM,gBAAgB,QAAO,yBAQnC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
/** Return value of `useIsVerticallyClamped`. */
|
|
3
|
-
export interface UseIsVerticallyClampedResult<TElement extends HTMLElement> {
|
|
4
|
-
/** Ref attached to the clamped element whose overflow is measured. */
|
|
5
|
-
ref: RefObject<TElement | null>;
|
|
6
|
-
/** Whether the element, or one of its direct children, is taller inside than its visible box. */
|
|
7
|
-
isClamped: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Tracks whether a `line-clamp-*` (or any `overflow: hidden`) element hides
|
|
11
|
-
* part of its content, so a caller can reveal the rest — e.g. in a tooltip —
|
|
12
|
-
* only when something is actually cut off. Re-measures on every resize of the
|
|
13
|
-
* element and whenever `content` changes.
|
|
14
|
-
*/
|
|
15
|
-
export declare const useIsVerticallyClamped: <TElement extends HTMLElement>(content: unknown) => UseIsVerticallyClampedResult<TElement>;
|
|
16
|
-
//# sourceMappingURL=useIsVerticallyClamped.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsVerticallyClamped.d.ts","sourceRoot":"","sources":["../../../src/hooks/useIsVerticallyClamped/useIsVerticallyClamped.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,gDAAgD;AAChD,MAAM,WAAW,4BAA4B,CAAC,QAAQ,SAAS,WAAW;IACxE,sEAAsE;IACtE,GAAG,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;IAChC,iGAAiG;IACjG,SAAS,EAAE,OAAO,CAAC;CACpB;AAKD;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,SAAS,WAAW,EACjE,SAAS,OAAO,KACf,4BAA4B,CAAC,QAAQ,CAiCvC,CAAC"}
|