@epam/ai-dial-catalog 1.3.5 → 1.3.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2BzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CAgR9B,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/CardGrid/Card.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,EAAE,EAOH,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2BzD,6FAA6F;AAC7F,eAAO,MAAM,IAAI,EAAE,EAAE,CAAC,SAAS,CA8R9B,CAAC"}
package/index.js CHANGED
@@ -355,27 +355,37 @@ var rn = /* @__PURE__ */ function(e) {
355
355
  U(() => {
356
356
  v(r);
357
357
  }, [e.id, r]);
358
- let { ref: b, isClamped: x } = de(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = d?.typography?.featuredChipClassName, w = d?.typography?.folderLabelClassName ?? "dial-tiny-text", E = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", D = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", O = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", k = G(() => ({
359
- p: D,
360
- ul: D,
361
- ol: D,
362
- h1: D,
363
- h2: D,
364
- h3: D,
365
- h4: D,
366
- h5: D,
367
- h6: D,
368
- strong: O
369
- }), [D, O]), A = B({
358
+ let { ref: b, isClamped: x } = de(e.description), S = d?.typography?.descriptionClassName ?? "dial-small-paragraph-text", C = G(() => ({
359
+ p: S,
360
+ ul: S,
361
+ ol: S,
362
+ h1: S,
363
+ h2: S,
364
+ h3: S,
365
+ h4: S,
366
+ h5: S,
367
+ h6: S
368
+ }), [S]), w = d?.typography?.featuredChipClassName, E = d?.typography?.folderLabelClassName ?? "dial-tiny-text", D = d?.typography?.folderLeafClassName ?? "dial-tiny-semi-text", O = d?.typography?.descriptionTooltipClassName ?? "dial-small-text", k = d?.typography?.descriptionTooltipStrongClassName ?? "dial-small-semi-text", A = G(() => ({
369
+ p: O,
370
+ ul: O,
371
+ ol: O,
372
+ h1: O,
373
+ h2: O,
374
+ h3: O,
375
+ h4: O,
376
+ h5: O,
377
+ h6: O,
378
+ strong: k
379
+ }), [O, k]), j = B({
370
380
  "--cg-description-text": d?.colors?.textSecondary,
371
381
  "--cg-selected-border": d?.colors?.selectedBorder,
372
382
  "--cg-selected-bg": d?.colors?.selectedBackground,
373
383
  "--cg-check-icon": d?.colors?.checkIcon,
374
384
  "--cg-footer-border": d?.colors?.footerBorder,
375
385
  "--cg-focus-outline": d?.colors?.focusOutline
376
- }), j = !m && e.isFeatured === !0, M = !m && a?.(e) !== !1, N = !m || e.folder.length > 0, P = n ? (t) => {
386
+ }), M = !m && e.isFeatured === !0, N = !m && a?.(e) !== !1, P = !m || e.folder.length > 0, F = n ? (t) => {
377
387
  !Hn(t) && !Un(t) && n(e);
378
- } : void 0, F = H((t) => {
388
+ } : void 0, I = H((t) => {
379
389
  t.stopPropagation();
380
390
  let n = !_;
381
391
  v(n), i?.(e.id, n);
@@ -385,22 +395,22 @@ var rn = /* @__PURE__ */ function(e) {
385
395
  e.id
386
396
  ]);
387
397
  return /* @__PURE__ */ Q(Te, {
388
- onClick: P,
398
+ onClick: F,
389
399
  "aria-label": e.name,
390
- style: A,
391
- className: V("box-border cursor-pointer gap-3 p-3", On.card, j ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
400
+ style: j,
401
+ className: V("box-border cursor-pointer gap-3 p-3", On.card, M ? On.featuredCard : void 0, l ? On.selectedCard : void 0, u, mn.card),
392
402
  children: [
393
403
  n && /* @__PURE__ */ Z("button", {
394
404
  type: "button",
395
405
  className: V("sr-only", On.cardButton),
396
406
  children: e.name
397
407
  }),
398
- j && /* @__PURE__ */ Z("div", {
408
+ M && /* @__PURE__ */ Z("div", {
399
409
  className: "absolute inset-e-[22px] top-0 -translate-y-1/2",
400
410
  children: /* @__PURE__ */ Z(re, {
401
411
  label: o,
402
412
  type: y,
403
- className: C,
413
+ className: w,
404
414
  style: d?.colors?.featuredChipStyle
405
415
  })
406
416
  }),
@@ -429,7 +439,7 @@ var rn = /* @__PURE__ */ function(e) {
429
439
  contentClassName: "max-h-[calc(100dvh-16px)] overflow-y-auto",
430
440
  content: e.description && /* @__PURE__ */ Z(R, {
431
441
  content: e.description,
432
- classNames: k,
442
+ classNames: A,
433
443
  components: Vn,
434
444
  ...h
435
445
  }),
@@ -438,18 +448,9 @@ var rn = /* @__PURE__ */ function(e) {
438
448
  className: V(e.topics.length > 0 ? "line-clamp-2 min-h-[2lh]" : "line-clamp-3 min-h-[3lh]", "wrap-break-word", On.description),
439
449
  children: e.description && /* @__PURE__ */ Z(R, {
440
450
  content: e.description,
441
- classNames: {
442
- p: S,
443
- ul: S,
444
- ol: S,
445
- h1: S,
446
- h2: S,
447
- h3: S,
448
- h4: S,
449
- h5: S,
450
- h6: S
451
- },
451
+ classNames: C,
452
452
  components: Vn,
453
+ isRawHtmlEnabled: e.description.includes("<"),
453
454
  ...h
454
455
  })
455
456
  })
@@ -458,7 +459,7 @@ var rn = /* @__PURE__ */ function(e) {
458
459
  className: "mt-auto flex items-center gap-2",
459
460
  children: /* @__PURE__ */ Z(Bn, { topics: e.topics })
460
461
  }),
461
- N && /* @__PURE__ */ Z("div", {
462
+ P && /* @__PURE__ */ Z("div", {
462
463
  className: V("pt-3", !m && V("border-t", On.footer)),
463
464
  children: /* @__PURE__ */ Q("div", {
464
465
  className: "flex items-center gap-2",
@@ -466,16 +467,16 @@ var rn = /* @__PURE__ */ function(e) {
466
467
  className: "min-w-0 flex-1",
467
468
  children: e.folder.length > 0 ? /* @__PURE__ */ Z(Le, {
468
469
  segments: e.folder,
469
- labelClassName: w,
470
- leafClassName: E
470
+ labelClassName: E,
471
+ leafClassName: D
471
472
  }) : /* @__PURE__ */ Z("span", {
472
- className: V(w, On.description),
473
+ className: V(E, On.description),
473
474
  children: p
474
475
  })
475
- }), M && /* @__PURE__ */ Z(Fn, {
476
+ }), N && /* @__PURE__ */ Z(Fn, {
476
477
  isStarred: _,
477
478
  size: Me.Small,
478
- onClick: F,
479
+ onClick: I,
479
480
  ariaLabel: _ ? c : s,
480
481
  className: V(!_ && On.emptyStarHidden)
481
482
  })]
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.5",
4
+ "version": "1.3.7",
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.50.0",
30
30
  "ag-grid-community": "^35.3.0",
31
- "@epam/ai-dial-publish-panel": "1.3.5"
31
+ "@epam/ai-dial-publish-panel": "1.3.7"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.8",
35
- "@epam/ai-dial-chat-shared": "1.3.5",
35
+ "@epam/ai-dial-chat-shared": "1.3.7",
36
36
  "@epam/ai-dial-ui-kit": "^0.16.0"
37
37
  },
38
38
  "repository": {