@epam/ai-dial-catalog 1.1.0-dev.423 → 1.1.0-dev.426
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/entry-points/mapping.d.ts +16 -0
- package/entry-points/mapping.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +1 -8
- package/index.d.ts.map +1 -1
- package/index.js +1796 -30169
- package/mapping-FVCFAmAc.js +64 -0
- package/mapping.js +2 -0
- package/models/catalog-props.d.ts +1 -1
- package/models/item-details-props.d.ts +1 -1
- package/package.json +9 -4
- package/esm-CopgoDht-BT2jHHeq.js +0 -16149
- package/index.dom-BKBT_wVu-B6NnB8v3.js +0 -10
- package/lib-CglXTr1t-Ck7BZBUX.js +0 -1202
- package/rehype-katex-Da1z0EAE-BhD6x-qn.js +0 -22225
- package/web-namespaces-BJylbtYz-BBYVhrE_.js +0 -89
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CatalogEntityType as e } from "@epam/ai-dial-chat-shared";
|
|
2
|
+
//#region src/types/toolset-auth.ts
|
|
3
|
+
var t = /* @__PURE__ */ function(e) {
|
|
4
|
+
return e.None = "NONE", e.ApiKey = "API_KEY", e.OAuth = "OAUTH", e;
|
|
5
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.SignedIn = "SIGNED_IN", e.SignedOut = "SIGNED_OUT", e.Failed = "FAILED", e;
|
|
7
|
+
}({}), r = /* @__PURE__ */ function(e) {
|
|
8
|
+
return e.User = "USER", e.Global = "GLOBAL", e;
|
|
9
|
+
}({}), i = /* @__PURE__ */ function(e) {
|
|
10
|
+
return e.ManageCredentials = "MANAGE_CREDENTIALS", e.LoginWithMyCreds = "LOGIN_WITH_MY_CREDS", e.LogIn = "LOG_IN", e.LogOut = "LOG_OUT", e;
|
|
11
|
+
}({}), a = /* @__PURE__ */ function(e) {
|
|
12
|
+
return e.LoggedOut = "LOGGED_OUT", e;
|
|
13
|
+
}({}), o = /* @__PURE__ */ function(e) {
|
|
14
|
+
return e.UsingOrgCredentials = "USING_ORG_CREDENTIALS", e.OrgCredentialsActive = "ORG_CREDENTIALS_ACTIVE", e.PersonalCredentialsActive = "PERSONAL_CREDENTIALS_ACTIVE", e;
|
|
15
|
+
}({}), s = /* @__PURE__ */ function(e) {
|
|
16
|
+
return e.RecentlyUpdated = "recently-updated", e.Newest = "newest", e.NameAZ = "name-az", e;
|
|
17
|
+
}({}), c = (e, t, n = "From") => {
|
|
18
|
+
let r = t?.size ?? 0, i = e.size;
|
|
19
|
+
if (i === 0 || i === r) return n;
|
|
20
|
+
if (r - i === 1) {
|
|
21
|
+
let r = [...t ?? []].find((t) => !e.has(t));
|
|
22
|
+
return r == null ? n : `${n}: All except ${r}`;
|
|
23
|
+
}
|
|
24
|
+
return `${n}: ${i} of ${r}`;
|
|
25
|
+
}, l = (e, t) => t.size === 0 ? e : e.filter((e) => e.topics.some((e) => t.has(e))), u = (e) => e.filter((e) => e.isMyApp === !0), d = (e) => new Set(e.flatMap((e) => e.topics)), f = (e, t) => {
|
|
26
|
+
let n = t.trim().toLowerCase();
|
|
27
|
+
return n ? e.filter((e) => e.name.toLowerCase().includes(n)) : e;
|
|
28
|
+
}, p = (e, t) => {
|
|
29
|
+
let n = e.filter((e) => e.isFeatured), r = e.filter((e) => !e.isFeatured), i = (e) => t === s.NameAZ ? [...e].sort((e, t) => e.name.trim().toLowerCase().localeCompare(t.name.trim().toLowerCase())) : t === s.RecentlyUpdated ? [...e].sort((e, t) => !e.updatedAt && !t.updatedAt ? 0 : e.updatedAt ? t.updatedAt ? t.updatedAt - e.updatedAt : -1 : 1) : t === s.Newest ? [...e].sort((e, t) => !e.createdAt && !t.createdAt ? 0 : e.createdAt ? t.createdAt ? t.createdAt - e.createdAt : -1 : 1) : e;
|
|
30
|
+
return [...i(n), ...i(r)];
|
|
31
|
+
}, m = {
|
|
32
|
+
[e.Model]: "Models",
|
|
33
|
+
[e.Agent]: "Agents",
|
|
34
|
+
[e.Toolset]: "Toolsets",
|
|
35
|
+
[e.Prompt]: "Prompts",
|
|
36
|
+
[e.Skill]: "Skills"
|
|
37
|
+
}, h = [
|
|
38
|
+
e.Model,
|
|
39
|
+
e.Agent,
|
|
40
|
+
e.Toolset,
|
|
41
|
+
e.Skill,
|
|
42
|
+
e.Prompt
|
|
43
|
+
], g = (e, t) => {
|
|
44
|
+
let n = {
|
|
45
|
+
...m,
|
|
46
|
+
...t
|
|
47
|
+
}, r = new Set(e.map((e) => e.type));
|
|
48
|
+
return h.filter((e) => r.has(e)).map((e) => ({
|
|
49
|
+
id: e,
|
|
50
|
+
label: n[e] ?? e
|
|
51
|
+
}));
|
|
52
|
+
}, _ = (e) => e === n.SignedIn, v = (e) => {
|
|
53
|
+
let t = _(e.userStatus), n = _(e.globalStatus);
|
|
54
|
+
return e.isManageableByAdmin ? i.ManageCredentials : e.isPublic && !t ? i.LoginWithMyCreds : !t && !n ? i.LogIn : i.LogOut;
|
|
55
|
+
}, y = (e) => {
|
|
56
|
+
if (e.authenticationType === t.None) return;
|
|
57
|
+
let n = _(e.userStatus), r = _(e.globalStatus);
|
|
58
|
+
return !n && !r ? a.LoggedOut : void 0;
|
|
59
|
+
}, b = (e) => _(e.userStatus) ? r.User : r.Global, x = (e) => {
|
|
60
|
+
if (e.isManageableByAdmin) return _(e.userStatus) ? o.PersonalCredentialsActive : _(e.globalStatus) ? o.OrgCredentialsActive : void 0;
|
|
61
|
+
if (_(e.globalStatus) && e.isPublic && !_(e.userStatus)) return o.UsingOrgCredentials;
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { i as _, g as a, l as c, d, s as f, r as g, o as h, b as i, f as l, a as m, x as n, p as o, n as p, v as r, u as s, y as t, c as u, t as v };
|
package/mapping.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { _ as e, a as t, d as n, f as r, g as i, i as a, l as o, m as s, o as c, p as l, r as u, t as d, v as f } from "./mapping-FVCFAmAc.js";
|
|
2
|
+
export { r as CatalogSortKey, l as CredentialStatus, s as CredentialsBadgeState, i as CredentialsLevel, e as CredentialsUiState, f as ToolsetAuthenticationType, t as buildCatalogTabs, o as filterCatalogItems, d as getCredentialsBadgeState, u as getCredentialsUiState, a as getSignedInLevel, n as getTopicOptions, c as sortCatalogItems };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CatalogEntityType } from '@epam/ai-dial-chat-shared';
|
|
2
|
-
import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '
|
|
2
|
+
import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '@epam/ai-dial-publish-panel';
|
|
3
3
|
import { DropdownItem, TabModel } from '@epam/ai-dial-ui-kit';
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { ListViewColumnVisibility } from '../components/ListView/columns';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '
|
|
1
|
+
import { PublicationRule, PublishFolderNode, PublishFooterLabels, PublishHistoryEntry, PublishPanelLabels } from '@epam/ai-dial-publish-panel';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { CredentialsLevel, ToolsetAuthenticationType } from '../types/toolset-auth';
|
|
4
4
|
import { CatalogItem } from './catalog-item';
|
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.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.426",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -13,18 +13,23 @@
|
|
|
13
13
|
"types": "./index.d.ts",
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|
|
16
|
-
"./styles.css": "./
|
|
16
|
+
"./styles.css": "./index.css",
|
|
17
17
|
".": {
|
|
18
18
|
"types": "./index.d.ts",
|
|
19
19
|
"import": "./index.js",
|
|
20
20
|
"default": "./index.js"
|
|
21
|
+
},
|
|
22
|
+
"./mapping": {
|
|
23
|
+
"types": "./entry-points/mapping.d.ts",
|
|
24
|
+
"import": "./mapping.js",
|
|
25
|
+
"default": "./mapping.js"
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
"peerDependencies": {
|
|
24
29
|
"react": "^19.0.0",
|
|
25
30
|
"@tabler/icons-react": "^3.0.0",
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
27
|
-
"@epam/ai-dial-publish-panel": "1.1.0-dev.
|
|
31
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.426",
|
|
32
|
+
"@epam/ai-dial-publish-panel": "1.1.0-dev.426",
|
|
28
33
|
"ag-grid-community": "35.3.0",
|
|
29
34
|
"@epam/ai-dial-ui-kit": "^0.14.0-dev.30"
|
|
30
35
|
},
|