@epam/ai-dial-publish-panel 1.1.0-dev.108 → 1.1.0-dev.111
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/index.js +18 -18
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -48319,26 +48319,26 @@ var jO = 2e3, MO = (e, t = jO) => {
|
|
|
48319
48319
|
}, zO = {
|
|
48320
48320
|
dark: RO,
|
|
48321
48321
|
light: RO
|
|
48322
|
-
}, BO = a(({ language: e, value: t, isStreaming: n, theme: r = un.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code",
|
|
48323
|
-
let { isCopied:
|
|
48322
|
+
}, BO = a(({ language: e, value: t, isStreaming: n, theme: r = un.Dark, copyLabel: i = "Copy code", copiedLabel: a = "Copied!", downloadLabel: o = "Download code", hideDownload: s = !1, containerClassName: c, headerClassName: l, codeClassName: u = "dial-code-text", languageLabelClassName: d = "dial-tiny-semi-text uppercase", titleSlot: f, colors: p }) => {
|
|
48323
|
+
let { isCopied: m, copy: h } = MO(t), g = r === un.Light;
|
|
48324
48324
|
return /* @__PURE__ */ N("div", {
|
|
48325
48325
|
style: zr({
|
|
48326
|
-
"--cm-code-block-bg":
|
|
48327
|
-
"--cm-code-block-border":
|
|
48328
|
-
"--cm-code-block-header-bg":
|
|
48329
|
-
"--cm-code-block-language":
|
|
48330
|
-
"--cm-code-block-copied":
|
|
48331
|
-
"--cm-code-block-scrollbar":
|
|
48326
|
+
"--cm-code-block-bg": p?.background,
|
|
48327
|
+
"--cm-code-block-border": p?.border,
|
|
48328
|
+
"--cm-code-block-header-bg": p?.headerBackground,
|
|
48329
|
+
"--cm-code-block-language": p?.language,
|
|
48330
|
+
"--cm-code-block-copied": p?.copied,
|
|
48331
|
+
"--cm-code-block-scrollbar": p?.scrollbar
|
|
48332
48332
|
}),
|
|
48333
|
-
className: Rr("my-4 max-w-full overflow-hidden rounded-xl border", NO.container,
|
|
48333
|
+
className: Rr("my-4 max-w-full overflow-hidden rounded-xl border", NO.container, g && NO.containerLight, c),
|
|
48334
48334
|
children: [/* @__PURE__ */ N("div", {
|
|
48335
|
-
className: Rr("flex min-h-10 items-center justify-between border-b px-
|
|
48336
|
-
children: [/* @__PURE__ */ M("span", {
|
|
48337
|
-
className: Rr(NO.languageLabel,
|
|
48335
|
+
className: Rr("flex min-h-10 items-center justify-between border-b px-4", f == null ? "py-2" : "py-0", NO.header, l),
|
|
48336
|
+
children: [f ?? /* @__PURE__ */ M("span", {
|
|
48337
|
+
className: Rr(NO.languageLabel, d),
|
|
48338
48338
|
children: e
|
|
48339
48339
|
}), !n && /* @__PURE__ */ N("div", {
|
|
48340
48340
|
className: "flex items-center gap-1",
|
|
48341
|
-
children: [/* @__PURE__ */ M(Ne, {
|
|
48341
|
+
children: [!s && /* @__PURE__ */ M(Ne, {
|
|
48342
48342
|
icon: /* @__PURE__ */ M(Zr, { size: C.SM }),
|
|
48343
48343
|
"aria-label": o,
|
|
48344
48344
|
size: Ae.Small,
|
|
@@ -48346,7 +48346,7 @@ var jO = 2e3, MO = (e, t = jO) => {
|
|
|
48346
48346
|
Kr(t, `code.${Ur(e)}`);
|
|
48347
48347
|
}
|
|
48348
48348
|
}), /* @__PURE__ */ M(Ne, {
|
|
48349
|
-
icon:
|
|
48349
|
+
icon: m ? /* @__PURE__ */ M(Yr, {
|
|
48350
48350
|
size: C.SM,
|
|
48351
48351
|
className: NO.copiedIcon,
|
|
48352
48352
|
"aria-hidden": !0
|
|
@@ -48354,9 +48354,9 @@ var jO = 2e3, MO = (e, t = jO) => {
|
|
|
48354
48354
|
size: C.SM,
|
|
48355
48355
|
"aria-hidden": !0
|
|
48356
48356
|
}),
|
|
48357
|
-
"aria-label":
|
|
48357
|
+
"aria-label": m ? a : i,
|
|
48358
48358
|
size: Ae.Small,
|
|
48359
|
-
onClick:
|
|
48359
|
+
onClick: h
|
|
48360
48360
|
})]
|
|
48361
48361
|
})]
|
|
48362
48362
|
}), /* @__PURE__ */ M("div", {
|
|
@@ -48374,12 +48374,12 @@ var jO = 2e3, MO = (e, t = jO) => {
|
|
|
48374
48374
|
padding: "14px 16px",
|
|
48375
48375
|
letterSpacing: 0
|
|
48376
48376
|
},
|
|
48377
|
-
codeTagProps: { className:
|
|
48377
|
+
codeTagProps: { className: u },
|
|
48378
48378
|
children: t
|
|
48379
48379
|
}) : /* @__PURE__ */ M("pre", {
|
|
48380
48380
|
className: "p-4",
|
|
48381
48381
|
children: /* @__PURE__ */ M("code", {
|
|
48382
|
-
className: Rr("whitespace-pre",
|
|
48382
|
+
className: Rr("whitespace-pre", u),
|
|
48383
48383
|
children: t
|
|
48384
48384
|
})
|
|
48385
48385
|
})
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-publish-panel",
|
|
3
3
|
"description": "Publish-to-folder UI and state flow shared by catalog entity publish and conversation publish",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.111",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
|
-
"@epam/ai-dial-sidebar": "1.1.0-dev.
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
24
|
-
"@epam/ai-dial-kit": "1.1.0-dev.
|
|
22
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.111",
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.111",
|
|
24
|
+
"@epam/ai-dial-kit": "1.1.0-dev.111",
|
|
25
25
|
"@epam/ai-dial-ui-kit": "^0.13.0-dev.26",
|
|
26
26
|
"@epam/ai-dial-react-file-manager": "^0.1.0-dev.17"
|
|
27
27
|
},
|