@epam/ai-dial-catalog 1.3.0-dev.182 → 1.3.0-dev.187

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.
@@ -72,9 +72,9 @@ var t = /* @__PURE__ */ function(e) {
72
72
  if (e.authenticationType === t.None) return;
73
73
  let n = T(e.userStatus), r = T(e.globalStatus);
74
74
  return !n && !r ? a.LoggedOut : void 0;
75
- }, A = (e) => e?.authenticationType == null || e.authenticationType === t.None ? !1 : T(e.globalStatus), j = (e) => T(e.userStatus) ? r.User : r.Global, M = (e) => {
75
+ }, A = (e) => e?.authenticationType == null || e.authenticationType === t.None ? !1 : T(e.globalStatus), j = (e) => e.isPublic || T(e.userStatus) ? r.User : r.Global, M = (e) => T(e.userStatus) ? r.User : r.Global, N = (e) => {
76
76
  if (e.isManageableByAdmin) return T(e.userStatus) ? o.PersonalCredentialsActive : T(e.globalStatus) ? o.OrgCredentialsActive : void 0;
77
77
  if (T(e.globalStatus) && e.isPublic && !T(e.userStatus)) return o.UsingOrgCredentials;
78
78
  };
79
79
  //#endregion
80
- export { n as C, i as D, r as E, t as O, s as S, o as T, u as _, j as a, l as b, w as c, x as d, b as f, g, m as h, O as i, C as l, d as m, k as n, E as o, f as p, M as r, D as s, A as t, y as u, p as v, a as w, c as x, h as y };
80
+ export { s as C, r as D, o as E, i as O, c as S, a as T, g as _, j as a, h as b, D as c, y as d, x as f, m as g, d as h, O as i, t as k, w as l, f as m, k as n, M as o, b as p, N as r, E as s, A as t, C as u, u as v, n as w, l as x, p as y };
package/mapping.js CHANGED
@@ -1 +1 @@
1
- export { x as CatalogDetailsTab, S as CatalogSortKey, C as CredentialStatus, w as CredentialsBadgeState, T as CredentialsBannerState, E as CredentialsLevel, D as CredentialsUiState, O as ToolsetAuthenticationType, u as buildCatalogTabs, h as filterCatalogItems, g as filterCatalogItemsByQuery, c as getCatalogDetailsTabs, n as getCredentialsBadgeState, r as getCredentialsBannerState, i as getCredentialsUiState, a as getSignedInLevel, v as getTopicOptions, b as sortCatalogItems } from "./mapping-FRc9CRhD.js";
1
+ export { S as CatalogDetailsTab, C as CatalogSortKey, w as CredentialStatus, T as CredentialsBadgeState, E as CredentialsBannerState, D as CredentialsLevel, O as CredentialsUiState, k as ToolsetAuthenticationType, d as buildCatalogTabs, g as filterCatalogItems, _ as filterCatalogItemsByQuery, l as getCatalogDetailsTabs, n as getCredentialsBadgeState, r as getCredentialsBannerState, i as getCredentialsUiState, a as getDirectCredentialsLevel, o as getSignedInLevel, y as getTopicOptions, x as sortCatalogItems } from "./mapping-up05V8hl.js";
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.182",
4
+ "version": "1.3.0-dev.187",
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.3.0-dev.182"
31
+ "@epam/ai-dial-publish-panel": "1.3.0-dev.187"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.0-dev.182",
35
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.187",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.35"
37
37
  },
38
38
  "repository": {
@@ -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
- /** Organization-wide credentials shared by all users of a public toolset. */
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,6EAA6E;IAC7E,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"}
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"}
@@ -17,6 +17,18 @@ export declare const getCredentialsBadgeState: (credentials: CatalogItemCredenti
17
17
  * nothing to pass on.
18
18
  */
19
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;
20
32
  /** Resolves which level a direct (non-accordion) "Log out" action applies to. */
21
33
  export declare const getSignedInLevel: (credentials: CatalogItemCredentials) => CredentialsLevel;
22
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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