@epam/ai-dial-catalog 1.2.0-dev.2 → 1.2.0-dev.20
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.
|
@@ -49,16 +49,16 @@ var t = /* @__PURE__ */ function(e) {
|
|
|
49
49
|
id: e,
|
|
50
50
|
label: n[e] ?? e
|
|
51
51
|
}));
|
|
52
|
-
}, _ = (e) => e === n.SignedIn, v = (e) => {
|
|
52
|
+
}, _ = (e) => e === n.SignedIn, v = (e, t) => _(t === r.User ? e?.userStatus : e?.globalStatus), y = (e) => new Promise((t) => setTimeout(t, e)), b = (e) => {
|
|
53
53
|
let t = _(e.userStatus), n = _(e.globalStatus);
|
|
54
54
|
return e.isManageableByAdmin ? i.ManageCredentials : e.isPublic && !t ? i.LoginWithMyCreds : !t && !n ? i.LogIn : i.LogOut;
|
|
55
|
-
},
|
|
55
|
+
}, x = (e) => {
|
|
56
56
|
if (e.authenticationType === t.None) return;
|
|
57
57
|
let n = _(e.userStatus), r = _(e.globalStatus);
|
|
58
58
|
return !n && !r ? a.LoggedOut : void 0;
|
|
59
|
-
},
|
|
59
|
+
}, S = (e) => _(e.userStatus) ? r.User : r.Global, C = (e) => {
|
|
60
60
|
if (e.isManageableByAdmin) return _(e.userStatus) ? o.PersonalCredentialsActive : _(e.globalStatus) ? o.OrgCredentialsActive : void 0;
|
|
61
61
|
if (_(e.globalStatus) && e.isPublic && !_(e.userStatus)) return o.UsingOrgCredentials;
|
|
62
62
|
};
|
|
63
63
|
//#endregion
|
|
64
|
-
export {
|
|
64
|
+
export { o as _, v as a, t as b, p as c, f as d, c as f, a as g, n as h, S as i, u as l, s as m, C as n, y as o, d as p, b as r, g as s, x as t, l as u, r as v, i as y };
|
package/mapping.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { b as e, c as t, d as n, g as r, h as i, i as a, m as o, p as s, r as c, s as l, t as u, v as d, y as f } from "./mapping-DtxJk1HM.js";
|
|
2
|
+
export { o as CatalogSortKey, i as CredentialStatus, r as CredentialsBadgeState, d as CredentialsLevel, f as CredentialsUiState, e as ToolsetAuthenticationType, l as buildCatalogTabs, n as filterCatalogItems, u as getCredentialsBadgeState, c as getCredentialsUiState, a as getSignedInLevel, s as getTopicOptions, t as sortCatalogItems };
|
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.20",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -28,11 +28,11 @@
|
|
|
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.20"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
35
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.20",
|
|
36
36
|
"@epam/ai-dial-ui-kit": "^0.14.2"
|
|
37
37
|
},
|
|
38
38
|
"repository": {
|
|
@@ -1,5 +1,9 @@
|
|
|
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. */
|
|
@@ -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,gBA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