@epam/ai-dial-publish-panel 1.1.0-dev.315 → 1.1.0-dev.319

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.
Files changed (2) hide show
  1. package/index.js +59 -57
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -61917,13 +61917,13 @@ var tF = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancel
61917
61917
  });
61918
61918
  };
61919
61919
  a(tF);
61920
- var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
61920
+ var nF = (e, t) => {
61921
61921
  if (e.isDownloading) return t.downloadingLabel;
61922
61922
  if (e.isDeleting) return t.deletingLabel;
61923
61923
  if (e.isRenaming && !e.isMoving) return t.renamingLabel;
61924
61924
  if (e.isUnsharing) return t.unsharingLabel;
61925
61925
  if (e.isRemovingAccess) return t.removingAccessLabel;
61926
- }, iF = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: l, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: p, isRowSelectable: h, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
61926
+ }, rF = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: l, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: p, isRowSelectable: h, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
61927
61927
  let { items: v, isLoading: y, error: b, path: x, onPathChange: S, retry: C, onSearchFiles: w, isSearching: T, searchResults: E, clearSearchResults: D, expandedPaths: O, loadedPaths: k, onExpandedPathsChange: ee, onFolderPopupPathChange: te, folderPopupLoadingPaths: A, onUploadFiles: ne, onUploadArchive: re, onValidateUpload: ie, uploadBatchState: j, cancelUpload: ae, clearUploadBatch: oe, onCreateFolder: se, onCreateFolderValidate: ce, onDownloadFiles: le, isDownloading: ue, onDeleteFiles: de, isDeleting: fe, onMoveToFiles: pe, onRenameValidate: me, isRenaming: he, onCopyFiles: ge, isCopying: _e, isMoving: ye, cancelCopyMove: be, uploadEnabled: xe, isNewButtonDisabled: Se, disabledNewButtonTooltip: Ce, visibleColumns: we, dateLocale: Te, dateOptions: De, actionLabels: Oe, sharedWithMeIds: ke, sharedByMePaths: Ae, onUnshareFiles: je, isUnsharing: Ne, onRemoveFilesAccess: Pe, isRemovingAccess: Fe, fileMetadata: Ie, isFileMetadataLoading: Le, onGetInfo: Re, clearMetadata: ze } = e, [Be, Ve] = m(void 0), { handleGridApiChange: He, reset: Ue } = $P();
61928
61928
  c(() => {
61929
61929
  Ue();
@@ -61979,6 +61979,7 @@ var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
61979
61979
  header: t.treeHeaderByTab[n],
61980
61980
  expandedPaths: O,
61981
61981
  loadedPaths: k,
61982
+ loadingPaths: A,
61982
61983
  onExpandedPathsChange: ee,
61983
61984
  actionLabels: We
61984
61985
  }), [
@@ -61986,6 +61987,7 @@ var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
61986
61987
  n,
61987
61988
  O,
61988
61989
  k,
61990
+ A,
61989
61991
  ee,
61990
61992
  We
61991
61993
  ]), Ze = s === GP.Standalone && l === KP.Full && n === hn.MyFiles && xe, Qe = f(() => ({
@@ -62037,7 +62039,7 @@ var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
62037
62039
  else if (e !== n) return;
62038
62040
  }
62039
62041
  return e;
62040
- }, [a]), nt = Be != null && A.has(nF(Be)), rt = nt ? Be : tt, it = f(() => ({
62042
+ }, [a]), nt = Be != null && A.has(Be), rt = nt ? Be : tt, it = f(() => ({
62041
62043
  copyLabel: t.copyLabel,
62042
62044
  moveLabel: t.moveLabel,
62043
62045
  addFolderLabel: t.addFolderLabel,
@@ -62087,7 +62089,7 @@ var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
62087
62089
  t.metadataModifiedDateLabel,
62088
62090
  t.metadataSizeLabel,
62089
62091
  t.metadataAuthorLabel
62090
- ]), st = rF({
62092
+ ]), st = nF({
62091
62093
  isDownloading: ue,
62092
62094
  isDeleting: fe,
62093
62095
  isRenaming: he,
@@ -62200,8 +62202,8 @@ var nF = (e) => e.replace(/\/+$/, "") || "/", rF = (e, t) => {
62200
62202
  })
62201
62203
  ] });
62202
62204
  };
62203
- a(iF);
62204
- var aF = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: s, activeTab: c, tabs: l, onTabChange: u, labels: d, variant: p, actionProfile: m, selectedPaths: h, onSelectedPathsChange: g, resolveFolderPath: _, isFileTypeAllowed: v, maxSelectableFileSize: y, maximumAttachmentsAmount: b, existingAttachmentsAmount: x = 0, isRowSelectable: S, getDisabledTooltip: C, unsupportedFileTypeTooltip: w, allowedFileTypes: T, autoSelectUploadedItems: E = !1 }) => {
62205
+ a(rF);
62206
+ var iF = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: s, activeTab: c, tabs: l, onTabChange: u, labels: d, variant: p, actionProfile: m, selectedPaths: h, onSelectedPathsChange: g, resolveFolderPath: _, isFileTypeAllowed: v, maxSelectableFileSize: y, maximumAttachmentsAmount: b, existingAttachmentsAmount: x = 0, isRowSelectable: S, getDisabledTooltip: C, unsupportedFileTypeTooltip: w, allowedFileTypes: T, autoSelectUploadedItems: E = !1 }) => {
62205
62207
  let { items: D, isLoading: O, searchResults: k } = a, ee = f(() => {
62206
62208
  let e = /* @__PURE__ */ new Map(), t = (n) => {
62207
62209
  n.forEach((n) => {
@@ -62264,7 +62266,7 @@ var aF = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
62264
62266
  }),
62265
62267
  children: /* @__PURE__ */ M("div", {
62266
62268
  className: "flex min-h-0 flex-col",
62267
- children: /* @__PURE__ */ M(iF, {
62269
+ children: /* @__PURE__ */ M(rF, {
62268
62270
  controller: a,
62269
62271
  labels: j,
62270
62272
  activeTab: c,
@@ -62284,21 +62286,21 @@ var aF = a(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
62284
62286
  })
62285
62287
  });
62286
62288
  });
62287
- aF.displayName = "FileManagerAttachModal";
62288
- var oF = {
62289
+ iF.displayName = "FileManagerAttachModal";
62290
+ var aF = {
62289
62291
  dialog: "_dialog_1chty_2",
62290
62292
  error: "_error_1chty_11",
62291
62293
  selectField: "_selectField_1chty_25",
62292
62294
  selectFieldOpen: "_selectFieldOpen_1chty_37"
62293
- }, sF = 20, cF = 200, lF = 8, uF = (e) => {
62295
+ }, oF = 20, sF = 200, cF = 8, lF = (e) => {
62294
62296
  let t = e.trim();
62295
- if (t.length === 0 || t.length > cF) return !1;
62297
+ if (t.length === 0 || t.length > sF) return !1;
62296
62298
  try {
62297
62299
  return new RegExp(t) instanceof RegExp;
62298
62300
  } catch {
62299
62301
  return !1;
62300
62302
  }
62301
- }, dF = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = sF, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
62303
+ }, uF = ({ sourceOptions: e, onSave: t, onCancel: n, disabled: r = !1, maxTargets: i = oF, labels: a = {}, errorClassName: o = "dial-small-text", styles: s = {} }) => {
62302
62304
  let u = {
62303
62305
  ...xo({
62304
62306
  "--pare-mobile-bg": s.colors?.mobileBackground,
@@ -62314,7 +62316,7 @@ var oF = {
62314
62316
  c(() => {
62315
62317
  ie.current?.focus();
62316
62318
  }, []);
62317
- let [j, ae] = m(), [oe, se] = m(), [ce, le] = m([]), [ue, de] = m(""), [fe, me] = m(!1), [he, ge] = m(!1), [ve, be] = m(!1), xe = bo(oF.selectField, fe && oF.selectFieldOpen), Se = bo(oF.selectField, he && oF.selectFieldOpen), Ce = f(() => e.map((e) => ({
62319
+ let [j, ae] = m(), [oe, se] = m(), [ce, le] = m([]), [ue, de] = m(""), [fe, me] = m(!1), [he, ge] = m(!1), [ve, be] = m(!1), xe = bo(aF.selectField, fe && aF.selectFieldOpen), Se = bo(aF.selectField, he && aF.selectFieldOpen), Ce = f(() => e.map((e) => ({
62318
62320
  value: e,
62319
62321
  label: e
62320
62322
  })), [e]), we = f(() => [
@@ -62334,7 +62336,7 @@ var oF = {
62334
62336
  _,
62335
62337
  v,
62336
62338
  y
62337
- ]), Te = oe === At.Regex, Ee = uF(ue), De = j != null && oe != null && (Te ? Ee : ce.length > 0);
62339
+ ]), Te = oe === At.Regex, Ee = lF(ue), De = j != null && oe != null && (Te ? Ee : ce.length > 0);
62338
62340
  return /* @__PURE__ */ N("div", {
62339
62341
  ref: ie,
62340
62342
  role: "dialog",
@@ -62345,7 +62347,7 @@ var oF = {
62345
62347
  e.key === "Escape" && (e.stopPropagation(), n());
62346
62348
  },
62347
62349
  style: u,
62348
- className: bo("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", oF.dialog),
62350
+ className: bo("fixed inset-0 z-[60] flex flex-col gap-3 overflow-y-auto p-4", "desktop:static desktop:z-auto desktop:flex-none desktop:overflow-visible desktop:rounded-lg desktop:p-3", aF.dialog),
62349
62351
  children: [
62350
62352
  /* @__PURE__ */ M(ke, {
62351
62353
  id: A,
@@ -62356,7 +62358,7 @@ var oF = {
62356
62358
  ae(Array.isArray(e) ? e[0] : e), me(!1);
62357
62359
  },
62358
62360
  placeholder: h,
62359
- searchable: e.length > lF,
62361
+ searchable: e.length > cF,
62360
62362
  searchPlaceholder: h,
62361
62363
  disabled: r,
62362
62364
  open: fe,
@@ -62394,7 +62396,7 @@ var oF = {
62394
62396
  }), (ue.length > 0 || ve) && !Ee && /* @__PURE__ */ M("span", {
62395
62397
  id: te,
62396
62398
  role: "alert",
62397
- className: bo("mt-1 block", o, oF.error),
62399
+ className: bo("mt-1 block", o, aF.error),
62398
62400
  children: T
62399
62401
  })] }) : /* @__PURE__ */ M(Ie, {
62400
62402
  id: re,
@@ -62439,13 +62441,13 @@ var oF = {
62439
62441
  })
62440
62442
  ]
62441
62443
  });
62442
- }, fF = {
62444
+ }, dF = {
62443
62445
  ruleRow: "_ruleRow_nx0en_1",
62444
62446
  heading: "_heading_nx0en_5",
62445
62447
  hint: "_hint_nx0en_9",
62446
62448
  loading: "_loading_nx0en_13",
62447
62449
  ruleText: "_ruleText_nx0en_17"
62448
- }, pF = 20, mF = (e, t) => e === At.Equal ? t.equal : e === At.Contain ? t.contain : t.regex, hF = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = pF, maxTargetsPerRule: u, labels: d = {}, headingClassName: f = "dial-body-semi-text", hintClassName: h = "dial-small-text", loadingClassName: g = "dial-small-text", ruleTextClassName: _ = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
62450
+ }, fF = 20, pF = (e, t) => e === At.Equal ? t.equal : e === At.Contain ? t.contain : t.regex, mF = ({ rules: e, onRulesChange: t, sourceOptions: n, folderName: r, disabled: i = !1, isLoading: a = !1, hasLoadError: o = !1, maxRules: s = fF, maxTargetsPerRule: u, labels: d = {}, headingClassName: f = "dial-body-semi-text", hintClassName: h = "dial-small-text", loadingClassName: g = "dial-small-text", ruleTextClassName: _ = "dial-small-text", ruleSourceClassName: y = "dial-small-semi-text", styles: b = {} }) => {
62449
62451
  let x = {
62450
62452
  ...xo({
62451
62453
  "--par-rule-bg": b.colors?.ruleBackground,
@@ -62494,7 +62496,7 @@ var oF = {
62494
62496
  className: "mb-1 flex items-center justify-between gap-2",
62495
62497
  children: [/* @__PURE__ */ M("div", {
62496
62498
  id: de,
62497
- className: bo(f, fF.heading),
62499
+ className: bo(f, dF.heading),
62498
62500
  children: S
62499
62501
  }), e.length > 0 && /* @__PURE__ */ M(pe, {
62500
62502
  variant: v.Primary,
@@ -62504,7 +62506,7 @@ var oF = {
62504
62506
  })]
62505
62507
  }),
62506
62508
  /* @__PURE__ */ M("p", {
62507
- className: bo("mb-2", h, fF.hint),
62509
+ className: bo("mb-2", h, dF.hint),
62508
62510
  children: je ? C.replace("{folder}", r) : w
62509
62511
  }),
62510
62512
  e.length > 0 && !je && /* @__PURE__ */ M("div", {
@@ -62516,7 +62518,7 @@ var oF = {
62516
62518
  })
62517
62519
  }),
62518
62520
  a && /* @__PURE__ */ N("div", {
62519
- className: bo("mb-2 flex items-center gap-2", g, fF.loading),
62521
+ className: bo("mb-2 flex items-center gap-2", g, dF.loading),
62520
62522
  children: [/* @__PURE__ */ M(Me, {
62521
62523
  size: 16,
62522
62524
  ariaLabel: j
@@ -62535,16 +62537,16 @@ var oF = {
62535
62537
  children: e.map((e, t) => {
62536
62538
  let n = e.targets.join(` ${te} `), r = A.replace("{source}", e.source).replace("{targets}", n);
62537
62539
  return /* @__PURE__ */ N("li", {
62538
- className: bo("flex items-center justify-between gap-2 rounded-lg px-3 py-2", fF.ruleRow),
62540
+ className: bo("flex items-center justify-between gap-2 rounded-lg px-3 py-2", dF.ruleRow),
62539
62541
  children: [/* @__PURE__ */ N("span", {
62540
- className: bo("truncate", _, fF.ruleText),
62542
+ className: bo("truncate", _, dF.ruleText),
62541
62543
  children: [
62542
62544
  /* @__PURE__ */ M("span", {
62543
62545
  className: y,
62544
62546
  children: e.source
62545
62547
  }),
62546
62548
  " ",
62547
- mF(e.function, Oe),
62549
+ pF(e.function, Oe),
62548
62550
  ": ",
62549
62551
  n
62550
62552
  ]
@@ -62561,7 +62563,7 @@ var oF = {
62561
62563
  }, t);
62562
62564
  })
62563
62565
  }),
62564
- fe && /* @__PURE__ */ M(dF, {
62566
+ fe && /* @__PURE__ */ M(uF, {
62565
62567
  sourceOptions: n,
62566
62568
  onSave: Te,
62567
62569
  onCancel: we,
@@ -62584,18 +62586,18 @@ var oF = {
62584
62586
  })
62585
62587
  }),
62586
62588
  ke && /* @__PURE__ */ M("p", {
62587
- className: bo("mt-2", h, fF.hint),
62589
+ className: bo("mt-2", h, dF.hint),
62588
62590
  children: E.replace("{max}", String(s))
62589
62591
  })
62590
62592
  ]
62591
62593
  });
62592
- }, gF = {
62594
+ }, hF = {
62593
62595
  currentBadge: "_currentBadge_eo6mj_1",
62594
62596
  version: "_version_eo6mj_7",
62595
62597
  date: "_date_eo6mj_11",
62596
62598
  emptyState: "_emptyState_eo6mj_15",
62597
62599
  stripedRow: "_stripedRow_eo6mj_19"
62598
- }, _F = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
62600
+ }, gF = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", emptyStateLabel: o = "Not published to this folder yet — this will be the first version here.", loadingLabel: s = "Loading history…", errorLabel: c = "Failed to load publish history.", versionClassName: l = "dial-small-text", dateClassName: u = "dial-small-text", emptyStateClassName: d = "dial-small-text", colors: f }) => {
62599
62601
  let p = xo({
62600
62602
  "--phl-badge-border": f?.currentBadgeBorder,
62601
62603
  "--phl-badge-bg": f?.currentBadgeBackground,
@@ -62604,7 +62606,7 @@ var oF = {
62604
62606
  "--phl-date-text": f?.dateText,
62605
62607
  "--phl-empty-text": f?.emptyStateText,
62606
62608
  "--phl-striped-bg": f?.stripedBackground
62607
- }), m = bo(d, gF.emptyState);
62609
+ }), m = bo(d, hF.emptyState);
62608
62610
  return n ? /* @__PURE__ */ M("p", {
62609
62611
  style: p,
62610
62612
  className: m,
@@ -62621,12 +62623,12 @@ var oF = {
62621
62623
  }) : /* @__PURE__ */ M("ul", {
62622
62624
  style: p,
62623
62625
  children: e.map((e, n) => /* @__PURE__ */ N("li", {
62624
- className: bo("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && gF.stripedRow),
62626
+ className: bo("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && hF.stripedRow),
62625
62627
  children: [/* @__PURE__ */ N("span", {
62626
62628
  className: "flex min-w-0 items-center gap-2",
62627
62629
  style: p,
62628
62630
  children: [/* @__PURE__ */ N("span", {
62629
- className: bo(l, gF.version),
62631
+ className: bo(l, hF.version),
62630
62632
  children: [
62631
62633
  i,
62632
62634
  " ",
@@ -62634,15 +62636,15 @@ var oF = {
62634
62636
  ]
62635
62637
  }), e.version === t && /* @__PURE__ */ M(Fe, {
62636
62638
  label: a,
62637
- className: bo("shrink-0 whitespace-nowrap", gF.currentBadge)
62639
+ className: bo("shrink-0 whitespace-nowrap", hF.currentBadge)
62638
62640
  })]
62639
62641
  }), /* @__PURE__ */ M("span", {
62640
- className: bo(u, gF.date),
62642
+ className: bo(u, hF.date),
62641
62643
  children: Pt(e.publishedAt)
62642
62644
  })]
62643
62645
  }, `${e.version}-${n}`))
62644
62646
  });
62645
- }, vF = { divider: "_divider_a8iz6_1" }, yF = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: S = {} }) => {
62647
+ }, _F = { divider: "_divider_a8iz6_1" }, vF = ({ items: e, selectedPath: t, onSelectedPathChange: n, onCreateFolder: r, searchQuery: i, disabled: a = !1, createFolderLabel: o = "Create new folder", cancelCreatingFolderLabel: s = "Cancel", addSiblingFolderLabel: c = "Add sibling", addChildFolderLabel: l = "Add child", newFolderDefaultName: u = "New folder", noResultsLabel: d = "No folders match \"{query}\".", emptyFolderNameError: h = "Folder name cannot be empty.", invalidFolderNameError: g = "Folder name contains invalid characters.", duplicateFolderNameError: _ = "A folder with this name already exists.", rootLabel: v = "Organization", expandedPaths: y, onExpandedPathsChange: b, loadingPaths: x, styles: S = {} }) => {
62646
62648
  let C = {
62647
62649
  ...xo({ "--pft-divider": S.colors?.divider }),
62648
62650
  ...S.cssVars
@@ -62731,7 +62733,7 @@ var oF = {
62731
62733
  })
62732
62734
  }),
62733
62735
  /* @__PURE__ */ M("div", {
62734
- className: bo("my-2 h-px", vF.divider),
62736
+ className: bo("my-2 h-px", _F.divider),
62735
62737
  "aria-hidden": !0
62736
62738
  }),
62737
62739
  /* @__PURE__ */ N("div", {
@@ -62753,10 +62755,10 @@ var oF = {
62753
62755
  })
62754
62756
  ]
62755
62757
  });
62756
- }, bF = {
62758
+ }, yF = {
62757
62759
  summaryTitle: "_summaryTitle_tf20a_1",
62758
62760
  sectionHeading: "_sectionHeading_tf20a_5"
62759
- }, xF = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", styles: D = {} }) => {
62761
+ }, bF = ({ resource: e, renderSummary: t, history: n, isHistoryLoading: r = !1, hasHistoryError: i = !1, folderItems: a, selectedFolderPath: o, onSelectedFolderPathChange: s, onCreateFolder: c, expandedPaths: l, onExpandedPathsChange: u, loadingPaths: d, hasExistingPublicationInFolder: p, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, rules: y, onRulesChange: b, ruleSourceOptions: x, isRulesLoading: S = !1, hasRulesLoadError: C = !1, labels: w = {}, summaryTitleClassName: T = "dial-body-semi-text", headingClassName: E = "dial-body-semi-text", styles: D = {} }) => {
62760
62762
  let { colors: O, folderTree: k, accessRules: ee } = D, te = {
62761
62763
  ...xo({
62762
62764
  "--pp-summary-title-text": O?.summaryTitleText,
@@ -62786,7 +62788,7 @@ var oF = {
62786
62788
  _,
62787
62789
  v
62788
62790
  ]), we = be ? o[o.length - 1] ?? fe : "", Te = t ? t() : /* @__PURE__ */ M("span", {
62789
- className: bo("truncate", T, bF.summaryTitle),
62791
+ className: bo("truncate", T, yF.summaryTitle),
62790
62792
  children: e?.title
62791
62793
  });
62792
62794
  return /* @__PURE__ */ N("div", {
@@ -62806,7 +62808,7 @@ var oF = {
62806
62808
  colors: A
62807
62809
  }), /* @__PURE__ */ N("div", { children: [
62808
62810
  /* @__PURE__ */ M("div", {
62809
- className: bo("mb-2", E, bF.sectionHeading),
62811
+ className: bo("mb-2", E, yF.sectionHeading),
62810
62812
  children: ne
62811
62813
  }),
62812
62814
  /* @__PURE__ */ M("div", {
@@ -62820,7 +62822,7 @@ var oF = {
62820
62822
  "aria-label": he
62821
62823
  })
62822
62824
  }),
62823
- /* @__PURE__ */ M(yF, {
62825
+ /* @__PURE__ */ M(vF, {
62824
62826
  items: a,
62825
62827
  selectedPath: o,
62826
62828
  onSelectedPathChange: s,
@@ -62844,8 +62846,8 @@ var oF = {
62844
62846
  className: "mt-3",
62845
62847
  children: /* @__PURE__ */ M(xe, {
62846
62848
  type: Se.SectionMessage,
62847
- variant: SF(Ce.calloutKind),
62848
- message: wF(Ce.calloutKind, {
62849
+ variant: xF(Ce.calloutKind),
62850
+ message: CF(Ce.calloutKind, {
62849
62851
  replaceWarning: re,
62850
62852
  noAccessError: ie,
62851
62853
  submitError: j,
@@ -62856,7 +62858,7 @@ var oF = {
62856
62858
  }),
62857
62859
  /* @__PURE__ */ M("div", {
62858
62860
  className: "mt-4",
62859
- children: /* @__PURE__ */ M(hF, {
62861
+ children: /* @__PURE__ */ M(mF, {
62860
62862
  rules: y,
62861
62863
  onRulesChange: b,
62862
62864
  sourceOptions: x,
@@ -62870,7 +62872,7 @@ var oF = {
62870
62872
  })
62871
62873
  ] })]
62872
62874
  });
62873
- }, SF = (e) => e === jt.ReplaceWarning ? Ce.Warning : Ce.Error, CF = (e, t) => {
62875
+ }, xF = (e) => e === jt.ReplaceWarning ? Ce.Warning : Ce.Error, SF = (e, t) => {
62874
62876
  let [n, r, ...i] = e.split("{folder}");
62875
62877
  return r === void 0 || i.length > 0 ? e : /* @__PURE__ */ N(Ke, { children: [
62876
62878
  n,
@@ -62880,11 +62882,11 @@ var oF = {
62880
62882
  }),
62881
62883
  r
62882
62884
  ] });
62883
- }, wF = (e, t) => e === jt.ReplaceWarning ? CF(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === jt.NoAccess ? CF(t.noAccessError, t.folderName) : t.submitError, TF = { footer: "_footer_dks1v_1" }, EF = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
62885
+ }, CF = (e, t) => e === jt.ReplaceWarning ? SF(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName) : e === jt.NoAccess ? SF(t.noAccessError, t.folderName) : t.submitError, wF = { footer: "_footer_dks1v_1" }, TF = ({ version: e, hasExistingPublicationInFolder: t, isSubmitDisabled: n, isSubmitLoading: r, onCancel: i, onSubmit: a, labels: o = {}, colors: s }) => {
62884
62886
  let c = xo({ "--pf-border": s?.border }), { cancelLabel: l = "Cancel", publishDefaultLabel: u = "Publish", updateLabel: d = "Update version {version}", publishingInProgressLabel: f = "Publishing…" } = o, p = r ? f : t && e != null ? d.replace("{version}", e) : u;
62885
62887
  return /* @__PURE__ */ N("div", {
62886
62888
  style: c,
62887
- className: bo("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", TF.footer),
62889
+ className: bo("flex items-center justify-end gap-2 border-t px-3.5 py-4 rtl:flex-row-reverse rtl:justify-start", wF.footer),
62888
62890
  children: [/* @__PURE__ */ M(pe, {
62889
62891
  label: l,
62890
62892
  disabled: r,
@@ -62896,13 +62898,13 @@ var oF = {
62896
62898
  onClick: a
62897
62899
  })]
62898
62900
  });
62899
- }, DF = {
62901
+ }, EF = {
62900
62902
  backdrop: "_backdrop_1rdk6_1",
62901
62903
  panel: "_panel_1rdk6_5",
62902
62904
  divider: "_divider_1rdk6_10",
62903
62905
  content: "_content_1rdk6_14",
62904
62906
  title: "_title_1rdk6_19"
62905
- }, OF = ({ 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 }) => {
62907
+ }, DF = ({ 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 }) => {
62906
62908
  let j = xo({
62907
62909
  "--spp-backdrop-bg": ie?.backdropBackground,
62908
62910
  "--spp-panel-bg": ie?.panelBackground,
@@ -62951,7 +62953,7 @@ var oF = {
62951
62953
  };
62952
62954
  }, [e, D]), /* @__PURE__ */ N(Ke, { children: [/* @__PURE__ */ M("div", {
62953
62955
  style: j,
62954
- className: bo("fixed inset-0 z-[51] transition-opacity duration-300", DF.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
62956
+ className: bo("fixed inset-0 z-[51] transition-opacity duration-300", EF.backdrop, e ? "opacity-100" : "pointer-events-none opacity-0"),
62955
62957
  onClick: D,
62956
62958
  "aria-hidden": "true"
62957
62959
  }), /* @__PURE__ */ N("div", {
@@ -62963,14 +62965,14 @@ var oF = {
62963
62965
  inert: !e,
62964
62966
  tabIndex: -1,
62965
62967
  style: j,
62966
- className: bo("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", DF.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
62968
+ className: bo("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", EF.panel, e ? "translate-x-0" : "translate-x-full rtl:-translate-x-full"),
62967
62969
  children: [
62968
62970
  /* @__PURE__ */ N("div", {
62969
62971
  className: "flex shrink-0 items-center gap-2 px-[22px] py-3",
62970
62972
  children: [
62971
62973
  /* @__PURE__ */ M("div", { className: "flex-1" }),
62972
62974
  /* @__PURE__ */ M("span", {
62973
- className: bo("flex-1 text-center", re, DF.title),
62975
+ className: bo("flex-1 text-center", re, EF.title),
62974
62976
  children: oe
62975
62977
  }),
62976
62978
  /* @__PURE__ */ M("div", {
@@ -62983,12 +62985,12 @@ var oF = {
62983
62985
  })
62984
62986
  ]
62985
62987
  }),
62986
- /* @__PURE__ */ M("div", { className: bo("shrink-0", DF.divider) }),
62988
+ /* @__PURE__ */ M("div", { className: bo("shrink-0", EF.divider) }),
62987
62989
  /* @__PURE__ */ M("div", {
62988
- className: bo("min-h-0 flex-1 overflow-y-auto", DF.content),
62990
+ className: bo("min-h-0 flex-1 overflow-y-auto", EF.content),
62989
62991
  children: /* @__PURE__ */ M("div", {
62990
62992
  className: "p-[22px]",
62991
- children: /* @__PURE__ */ M(xF, {
62993
+ children: /* @__PURE__ */ M(bF, {
62992
62994
  resource: t,
62993
62995
  renderSummary: n,
62994
62996
  history: r,
@@ -63016,7 +63018,7 @@ var oF = {
63016
63018
  })
63017
63019
  })
63018
63020
  }),
63019
- /* @__PURE__ */ M(EF, {
63021
+ /* @__PURE__ */ M(TF, {
63020
63022
  version: t?.version,
63021
63023
  hasExistingPublicationInFolder: g,
63022
63024
  isSubmitDisabled: le.isSubmitDisabled,
@@ -63029,4 +63031,4 @@ var oF = {
63029
63031
  })] });
63030
63032
  };
63031
63033
  //#endregion
63032
- export { At as PublicationRuleFunction, dF as PublishAccessRuleEditor, hF as PublishAccessRules, jt as PublishCalloutKind, yF as PublishFoldersTree, EF as PublishFooter, _F as PublishHistoryList, xF as PublishPanel, OF as StandalonePublishPanel, Ut as collectFolderKeys, Mt as derivePublishState, Rt as filterFolderTree, Pt as formatPublishedDate, Gt as fromFolderPathKey, Xt as getSiblingFolderNames, Yt as getUniqueFolderName, Ht as mergeFolderPaths, Bt as sortFolderTree, Kt as toDialFileTree, Wt as toFolderPathKey, Lt as usePublishFlow, Jt as validateFolderName };
63034
+ export { At as PublicationRuleFunction, uF as PublishAccessRuleEditor, mF as PublishAccessRules, jt as PublishCalloutKind, vF as PublishFoldersTree, TF as PublishFooter, gF as PublishHistoryList, bF as PublishPanel, DF as StandalonePublishPanel, Ut as collectFolderKeys, Mt as derivePublishState, Rt as filterFolderTree, Pt as formatPublishedDate, Gt as fromFolderPathKey, Xt as getSiblingFolderNames, Yt as getUniqueFolderName, Ht as mergeFolderPaths, Bt as sortFolderTree, Kt as toDialFileTree, Wt as toFolderPathKey, Lt as usePublishFlow, Jt 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.315",
4
+ "version": "1.1.0-dev.319",
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.315",
22
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.319",
23
23
  "@epam/ai-dial-ui-kit": "*",
24
24
  "@epam/ai-dial-react-file-manager": "^0.2.0-dev.9"
25
25
  },