@epam/ai-dial-publish-panel 1.1.0-dev.372 → 1.1.0-dev.373
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":"StandalonePublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/StandalonePublishPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"StandalonePublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/StandalonePublishPanel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAA8B,MAAM,OAAO,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAG5E,OAAO,EAAiB,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,uJAAuJ;AACvJ,MAAM,WAAW,4BAA4B;IAC3C,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8EAA8E;IAC9E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,gDAAgD;AAChD,MAAM,WAAW,2BAA2B;IAC1C,gFAAgF;IAChF,MAAM,EAAE,OAAO,CAAC;IAChB;;;OA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[
|
|
62902
|
+
"a[href]",
|
|
62903
|
+
"area[href]",
|
|
62904
|
+
"button",
|
|
62905
|
+
"input",
|
|
62906
|
+
"select",
|
|
62907
|
+
"textarea",
|
|
62908
|
+
"summary",
|
|
62909
|
+
"[contenteditable=\"true\"]",
|
|
62910
|
+
"[tabindex]"
|
|
62911
|
+
].join(","), kF = (e) => e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true" || e.tabIndex < 0 ? !1 : e.closest("[inert],[hidden],[aria-hidden=\"true\"]") == null, AF = (e) => Array.from(e.querySelectorAll(OF)).filter(kF), jF = {
|
|
62902
62912
|
backdrop: "_backdrop_1rdk6_1",
|
|
62903
62913
|
panel: "_panel_1rdk6_5",
|
|
62904
62914
|
divider: "_divider_1rdk6_10",
|
|
62905
62915
|
content: "_content_1rdk6_14",
|
|
62906
62916
|
title: "_title_1rdk6_19"
|
|
62907
|
-
},
|
|
62917
|
+
}, MF = ({ isOpen: e, resource: t, renderSummary: n, history: r, isHistoryLoading: i = !1, hasHistoryError: a = !1, folderItems: o, selectedFolderPath: s, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: m, loadingPaths: h, hasExistingPublicationInFolder: g, hasWriteAccess: _, isSubmitting: v, hasSubmitError: y = !1, allowReplace: x = !0, rules: S, onRulesChange: C, ruleSourceOptions: w, isRulesLoading: T = !1, hasRulesLoadError: E = !1, onClose: D, returnFocusRef: O, onSubmit: k, panelLabels: ee, panelStyles: te, footerLabels: A, labels: ne = {}, titleClassName: re = "dial-body-semi-text", colors: ie }) => {
|
|
62908
62918
|
let j = Co({
|
|
62909
62919
|
"--spp-backdrop-bg": ie?.backdropBackground,
|
|
62910
62920
|
"--spp-panel-bg": ie?.panelBackground,
|
|
@@ -62946,14 +62956,33 @@ var sF = {
|
|
|
62946
62956
|
}, [e, O]), c(() => {
|
|
62947
62957
|
if (!e) return;
|
|
62948
62958
|
let t = (e) => {
|
|
62949
|
-
e.key === "Escape"
|
|
62959
|
+
if (e.key === "Escape") {
|
|
62960
|
+
D();
|
|
62961
|
+
return;
|
|
62962
|
+
}
|
|
62963
|
+
if (e.key !== "Tab") return;
|
|
62964
|
+
let t = ae.current;
|
|
62965
|
+
if (!t) return;
|
|
62966
|
+
let n = document.activeElement;
|
|
62967
|
+
if (!(n instanceof HTMLElement) || !t.contains(n)) return;
|
|
62968
|
+
let r = AF(t);
|
|
62969
|
+
if (r.length === 0) {
|
|
62970
|
+
e.preventDefault(), t.focus({ preventScroll: !0 });
|
|
62971
|
+
return;
|
|
62972
|
+
}
|
|
62973
|
+
let i = r[0], a = r[r.length - 1];
|
|
62974
|
+
if (e.shiftKey && n === i) {
|
|
62975
|
+
e.preventDefault(), a.focus();
|
|
62976
|
+
return;
|
|
62977
|
+
}
|
|
62978
|
+
!e.shiftKey && n === a && (e.preventDefault(), i.focus());
|
|
62950
62979
|
};
|
|
62951
62980
|
return document.addEventListener("keydown", t), () => {
|
|
62952
62981
|
document.removeEventListener("keydown", t);
|
|
62953
62982
|
};
|
|
62954
62983
|
}, [e, D]), /* @__PURE__ */ N(qe, { children: [/* @__PURE__ */ M("div", {
|
|
62955
62984
|
style: j,
|
|
62956
|
-
className: So("fixed inset-0 z-[51] transition-opacity duration-300",
|
|
62985
|
+
className: So("fixed inset-0 z-[51] transition-opacity duration-300", jF.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
|
|
62957
62986
|
onClick: D,
|
|
62958
62987
|
"aria-hidden": "true"
|
|
62959
62988
|
}), /* @__PURE__ */ N("div", {
|
|
@@ -62965,14 +62994,14 @@ var sF = {
|
|
|
62965
62994
|
inert: !e,
|
|
62966
62995
|
tabIndex: -1,
|
|
62967
62996
|
style: j,
|
|
62968
|
-
className: So("fixed inset-y-0 end-0 z-[52] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300",
|
|
62997
|
+
className: So("fixed inset-y-0 end-0 z-[52] flex w-full flex-col overflow-hidden", "desktop:rounded-ts-xl desktop:rounded-bs-xl desktop:w-[540px] desktop:border-s", "transition-transform duration-300", jF.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
|
|
62969
62998
|
children: [
|
|
62970
62999
|
/* @__PURE__ */ N("div", {
|
|
62971
63000
|
className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
|
|
62972
63001
|
children: [
|
|
62973
63002
|
/* @__PURE__ */ M("div", { className: "flex-1" }),
|
|
62974
63003
|
/* @__PURE__ */ M("span", {
|
|
62975
|
-
className: So("flex-1 text-center", re,
|
|
63004
|
+
className: So("flex-1 text-center", re, jF.title),
|
|
62976
63005
|
children: oe
|
|
62977
63006
|
}),
|
|
62978
63007
|
/* @__PURE__ */ M("div", {
|
|
@@ -62985,9 +63014,9 @@ var sF = {
|
|
|
62985
63014
|
})
|
|
62986
63015
|
]
|
|
62987
63016
|
}),
|
|
62988
|
-
/* @__PURE__ */ M("div", { className: So("shrink-0",
|
|
63017
|
+
/* @__PURE__ */ M("div", { className: So("shrink-0", jF.divider) }),
|
|
62989
63018
|
/* @__PURE__ */ M("div", {
|
|
62990
|
-
className: So("min-h-0 flex-1 overflow-y-auto",
|
|
63019
|
+
className: So("min-h-0 flex-1 overflow-y-auto", jF.content),
|
|
62991
63020
|
children: /* @__PURE__ */ M("div", {
|
|
62992
63021
|
className: "p-[22px]",
|
|
62993
63022
|
children: /* @__PURE__ */ M(SF, {
|
|
@@ -63031,4 +63060,4 @@ var sF = {
|
|
|
63031
63060
|
})] });
|
|
63032
63061
|
};
|
|
63033
63062
|
//#endregion
|
|
63034
|
-
export { jt as PublicationRuleFunction, fF as PublishAccessRuleEditor, gF as PublishAccessRules, Mt as PublishCalloutKind, bF as PublishFoldersTree, DF as PublishFooter, vF as PublishHistoryList, SF as PublishPanel,
|
|
63063
|
+
export { jt as PublicationRuleFunction, fF as PublishAccessRuleEditor, gF as PublishAccessRules, Mt as PublishCalloutKind, bF as PublishFoldersTree, DF as PublishFooter, vF as PublishHistoryList, SF as PublishPanel, MF as StandalonePublishPanel, Wt as collectFolderKeys, Nt as derivePublishState, zt as filterFolderTree, Ft as formatPublishedDate, Kt as fromFolderPathKey, Zt as getSiblingFolderNames, Xt as getUniqueFolderName, Ut as mergeFolderPaths, Vt as sortFolderTree, qt as toDialFileTree, Gt as toFolderPathKey, Rt as usePublishFlow, Yt as validateFolderName };
|
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.373",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^19.0.0",
|
|
21
21
|
"@tabler/icons-react": "^3.0.0",
|
|
22
|
-
"@epam/ai-dial-chat-shared": "1.1.0-dev.
|
|
22
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.373",
|
|
23
23
|
"@epam/ai-dial-ui-kit": "*",
|
|
24
24
|
"@epam/ai-dial-react-file-manager": "^0.2.0-dev.10"
|
|
25
25
|
},
|
package/utils/focus.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/utils/focus.ts"],"names":[],"mappings":"AA8BA,yEAAyE;AACzE,eAAO,MAAM,oBAAoB,GAAI,WAAW,WAAW,KAAG,WAAW,EAGlD,CAAC"}
|