@epam/ai-dial-publish-panel 1.3.0-rc.5 → 1.3.1

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":"PublishDependenciesList.d.ts","sourceRoot":"","sources":["../../../src/components/PublishDependenciesList/PublishDependenciesList.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAEV,4BAA4B,EAC7B,MAAM,wCAAwC,CAAC;AA0DhD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA0GpE,CAAC"}
1
+ {"version":3,"file":"PublishDependenciesList.d.ts","sourceRoot":"","sources":["../../../src/components/PublishDependenciesList/PublishDependenciesList.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAEV,4BAA4B,EAC7B,MAAM,wCAAwC,CAAC;AAyDhD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CA2GpE,CAAC"}
@@ -37,6 +37,10 @@ export interface PublishPanelLabels {
37
37
  noAccessError?: string;
38
38
  /** Error callout body shown when the most recent submit attempt failed. */
39
39
  submitError?: string;
40
+ /** Heading of the informational callout stating the publication needs an administrator's approval. Default: `'Admin approval required'`. */
41
+ adminApprovalTitle?: string;
42
+ /** Body of the informational callout under `adminApprovalTitle`. Default: `'We’ll send a request to your organization’s admin. If approved, it will appear in the folder.'`; a host replaces it to name the entity being published. */
43
+ adminApprovalMessage?: string;
40
44
  /** Message shown when a folder search query matches no folders; `{query}` is replaced. */
41
45
  folderEmptyStateLabel?: string;
42
46
  /** Label for the per-row context menu action that creates a folder alongside the clicked folder. */
@@ -1 +1 @@
1
- {"version":3,"file":"PublishPanel.d.ts","sourceRoot":"","sources":["../../../src/components/PublishPanel/PublishPanel.t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,IAAI,CAAC;IACzC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;;OAKG;IACH,0BAA0B,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACtD,+CAA+C;IAC/C,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,sEAAsE;IACtE,aAAa,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;IAClD,kEAAkE;IAClE,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,oGAAoG;IACpG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mDAAmD;IACnD,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,mJAAmJ;IACnJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sGAAsG;IACtG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,2FAA2F;IAC3F,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sJAAsJ;IACtJ,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,uBAAuB;IACvB,MAAM,CAAC,EAAE,kBAAkB,CAAC;CAC7B;AAED,+JAA+J;AAC/J,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAyW9C,CAAC"}
package/index.css CHANGED
@@ -1,3 +1,3 @@
1
1
  ._sheet_1jbwn_3._sheet_1jbwn_3{background:var(--pare-mobile-bg,var(--bg-layer-sunken,#eef1f7))}._inline_1jbwn_7{background:var(--pare-bg,var(--bg-layer-base,#f5f7fa))}._selectField_1jbwn_21.dial-kit-input{border-color:var(--pare-select-border,var(--stroke-tertiary,#e0e6f0))!important}@media (hover:hover){._selectField_1jbwn_21.dial-kit-input:hover:not(:focus-within){border-color:var(--pare-select-border-hover,var(--stroke-secondary,#d1dbea))!important}}._selectField_1jbwn_21.dial-kit-input:focus-within{border-color:var(--pare-select-border-focus,var(--stroke-accent,#1d4ed8))!important}._selectFieldOpen_1jbwn_33.dial-kit-input{border-color:var(--pare-select-border-open,var(--stroke-accent,#1d4ed8))!important}._ruleRow_nx0en_1{background:var(--par-rule-bg,var(--bg-layer-base,#f5f7fa))}._heading_nx0en_5{color:var(--par-heading-text,var(--text-primary,#161b2d))}._hint_nx0en_9{color:var(--par-hint-text,var(--text-primary,#161b2d))}._loading_nx0en_13{color:var(--par-loading-text,var(--text-primary,#161b2d))}._ruleText_nx0en_17{color:var(--par-rule-text,var(--text-primary,#161b2d))}._heading_k0m34_1{color:var(--pp-dependencies-heading-text,var(--text-primary,#161b2d))}._name_k0m34_5{color:var(--pp-dependencies-name-text,var(--text-primary,#161b2d))}._meta_k0m34_9{color:var(--pp-dependencies-meta-text,var(--text-secondary,#57647a))}._currentBadge_d0adf_1{border-color:var(--phl-badge-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--phl-badge-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--phl-badge-text,var(--text-accent,#1d4ed8))!important}._sharedCredentialsBadge_d0adf_7{border-color:var(--phl-shared-creds-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--phl-shared-creds-bg,var(--bg-layer-sunken,#eef1f7))!important;color:var(--phl-shared-creds-text,var(--text-secondary,#57647a))!important}._version_d0adf_13{color:var(--phl-version-text,var(--text-primary,#161b2d))}._date_d0adf_17{color:var(--phl-date-text,var(--text-secondary,#57647a))}._emptyState_d0adf_21{color:var(--phl-empty-text,var(--text-secondary,#57647a))}._stripedRow_d0adf_25{background:var(--phl-striped-bg,var(--bg-layer-sunken,#eef1f7))}._divider_1gs31_1{background:var(--pft-divider,var(--stroke-tertiary,#e0e6f0))}._tree_1gs31_17 .dial-kit-input{height:20px;padding-block:0;padding-inline:7px}._summaryTitle_zj3gd_1{color:var(--pp-summary-title-text,var(--text-primary,#161b2d))}._sectionHeading_zj3gd_5{color:var(--pp-heading-text,var(--text-primary,#161b2d))}._destination_zj3gd_9{color:var(--pp-destination-text,var(--text-secondary,#57647a))}._footer_dks1v_1{border-color:var(--pf-border,var(--stroke-tertiary,#e0e6f0))}._backdrop_16jmd_6._backdrop_16jmd_6{background:var(--spp-backdrop-bg,var(--bg-backdrop,#161b2d4d))}._panel_16jmd_10._panel_16jmd_10{background:var(--spp-panel-bg,var(--bg-layer-raised,#fcfcfc));border-inline-start-color:var(--spp-panel-border,var(--stroke-secondary,#d1dbea))}._divider_16jmd_15._divider_16jmd_15{border-block-end:1px solid var(--spp-divider-border,var(--stroke-tertiary,#e0e6f0))}._content_16jmd_19{scrollbar-width:thin;scrollbar-color:var(--spp-scrollbar-thumb,var(--stroke-secondary,#d1dbea)) transparent}._title_16jmd_24._title_16jmd_24{color:var(--spp-title-text,var(--text-primary,#161b2d))}._option_skygm_1{color:var(--ucd-option-text,var(--text-primary,#161b2d))}._heading_vk731_1{color:var(--stf-heading-text,var(--text-primary,#161b2d))}._destination_vk731_5{color:var(--stf-destination-text,var(--text-secondary,#57647a))}._backdrop_1ie8s_6._backdrop_1ie8s_6{background:var(--sstf-backdrop-bg,var(--bg-backdrop,#161b2d4d))}._panel_1ie8s_10._panel_1ie8s_10{background:var(--sstf-panel-bg,var(--bg-layer-raised,#fcfcfc));border-inline-start-color:var(--sstf-panel-border,var(--stroke-secondary,#d1dbea))}._divider_1ie8s_15._divider_1ie8s_15{border-block-end:1px solid var(--sstf-divider-border,var(--stroke-tertiary,#e0e6f0))}._footer_1ie8s_19{border-color:var(--sstf-divider-border,var(--stroke-tertiary,#e0e6f0))}._content_1ie8s_23{scrollbar-width:thin;scrollbar-color:var(--sstf-scrollbar-thumb,var(--stroke-secondary,#d1dbea)) transparent}._title_1ie8s_28._title_1ie8s_28{color:var(--sstf-title-text,var(--text-primary,#161b2d))}
2
2
  /*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.my-2{margin-block:.5rem}.ms-2{margin-inline-start:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-px{height:1px}.min-h-0{min-height:0}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[22px\]{padding:22px}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-\[22px\]{padding-inline:22px}.py-2{padding-block:.5rem}.py-4{padding-block:1rem}.py-\[11px\]{padding-block:11px}.text-center{text-align:center}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.opacity-60{opacity:.6}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.outline-none{--tw-outline-style:none;outline-style:none}.rtl\:flex-row-reverse:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where(:dir(rtl),[dir=rtl],[dir=rtl] *){justify-content:flex-start}@media (max-width:1279px){.mobile\:flex-1{flex:1}}@media (min-width:1280px){.desktop\:mt-2{margin-top:.5rem}.desktop\:px-3\.5{padding-inline:.875rem}}@media (min-width:768px) and (not (min-width:1280px)){.tablet\:w-\[540px\]\!{width:540px!important}.tablet\:max-w-\[calc\(100\%-32px\)\]\!{max-width:calc(100% - 32px)!important}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.relative{position:relative}.my-2{margin-block:.5rem}.my-4{margin-block:1rem}.ms-2{margin-inline-start:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-px{height:1px}.min-h-0{min-height:0}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:.5rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.p-3{padding:.75rem}.p-4{padding:1rem}.p-\[22px\]{padding:22px}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-\[22px\]{padding-inline:22px}.py-2{padding-block:.5rem}.py-4{padding-block:1rem}.py-\[11px\]{padding-block:11px}.text-center{text-align:center}.wrap-break-word{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.opacity-60{opacity:.6}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.outline-none{--tw-outline-style:none;outline-style:none}.rtl\:flex-row-reverse:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where(:dir(rtl),[dir=rtl],[dir=rtl] *){justify-content:flex-start}@media (max-width:1279px){.mobile\:flex-1{flex:1}}@media (min-width:1280px){.desktop\:mt-2{margin-top:.5rem}.desktop\:px-3\.5{padding-inline:.875rem}}@media (min-width:768px) and (not (min-width:1280px)){.tablet\:w-\[540px\]\!{width:540px!important}.tablet\:max-w-\[calc\(100\%-32px\)\]\!{max-width:calc(100% - 32px)!important}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
package/index.js CHANGED
@@ -563,23 +563,23 @@ var U = /* @__PURE__ */ function(e) {
563
563
  initialsName: e.name,
564
564
  styles: { badgeClassName: "rounded-lg" }
565
565
  })
566
- }), Ve = "Private dependencies", He = "These resources are still private. This item may not work for others until they are published too.", Ue = "Root folder", We = (e) => `${e} ${e === 1 ? "dependency is" : "dependencies are"} not public yet`, Ge = ({ dependencies: e, labels: t = {}, headingClassName: r = "dial-body-semi-text", nameClassName: i = "dial-small-semi-text", metaClassName: a = "dial-small-text", styles: o = {} }) => {
567
- let s = n(), { title: c = Ve, description: l = He, rootLocation: u = Ue, typeLabels: d = {}, getAnnouncement: f = We } = t, { colors: p } = o, m = {
566
+ }), Ve = "Private dependencies", He = "This item depends on personal private resources (listed below). After publishing, other users may not be able to use it fully, or may run into problems.", Ue = (e) => `${e} ${e === 1 ? "dependency is" : "dependencies are"} not public yet`, We = ({ dependencies: e, labels: t = {}, headingClassName: r = "dial-body-semi-text", nameClassName: i = "dial-small-semi-text", metaClassName: a = "dial-small-text", styles: o = {} }) => {
567
+ let s = n(), { title: c = Ve, description: l = He, typeLabels: u = {}, getAnnouncement: d = Ue } = t, { colors: f } = o, p = {
568
568
  ...oe({
569
- "--pp-dependencies-heading-text": p?.headingText,
570
- "--pp-dependencies-name-text": p?.nameText,
571
- "--pp-dependencies-meta-text": p?.metaText
569
+ "--pp-dependencies-heading-text": f?.headingText,
570
+ "--pp-dependencies-name-text": f?.nameText,
571
+ "--pp-dependencies-meta-text": f?.metaText
572
572
  }),
573
573
  ...o.cssVars
574
- }, h = e.length;
574
+ }, m = e.length;
575
575
  return /* @__PURE__ */ R(ce, { children: [/* @__PURE__ */ L(S, {
576
576
  visuallyHidden: !0,
577
577
  as: te.Span,
578
- children: h > 0 ? f(h) : ""
579
- }), h > 0 && /* @__PURE__ */ R("section", {
578
+ children: m > 0 ? d(m) : ""
579
+ }), m > 0 && /* @__PURE__ */ R("section", {
580
580
  "aria-labelledby": s,
581
581
  className: I("flex flex-col gap-3", Fe.dependencies),
582
- style: m,
582
+ style: p,
583
583
  children: [
584
584
  /* @__PURE__ */ L("h2", {
585
585
  id: s,
@@ -595,7 +595,7 @@ var U = /* @__PURE__ */ function(e) {
595
595
  /* @__PURE__ */ L("ul", {
596
596
  className: Fe.dependenciesList,
597
597
  children: e.map((e) => {
598
- let t = d[e.type] ?? Le[e.type];
598
+ let t = u[e.type] ?? Le[e.type];
599
599
  return /* @__PURE__ */ R("li", {
600
600
  className: I("flex items-center gap-3 py-2", Fe.dependenciesItem),
601
601
  children: [Be(e), /* @__PURE__ */ R("div", {
@@ -606,13 +606,9 @@ var U = /* @__PURE__ */ function(e) {
606
606
  className: I("ms-2", a, Ie.meta),
607
607
  children: e.version
608
608
  })]
609
- }), /* @__PURE__ */ R("span", {
609
+ }), /* @__PURE__ */ L("span", {
610
610
  className: I("truncate", a, Ie.meta),
611
- children: [
612
- t,
613
- " · ",
614
- e.location || u
615
- ]
611
+ children: e.location ? `${t} · ${e.location}` : t
616
612
  })]
617
613
  })]
618
614
  }, e.id);
@@ -620,14 +616,14 @@ var U = /* @__PURE__ */ function(e) {
620
616
  })
621
617
  ]
622
618
  })] });
623
- }, Ke = {
619
+ }, Ge = {
624
620
  currentBadge: "_currentBadge_d0adf_1",
625
621
  sharedCredentialsBadge: "_sharedCredentialsBadge_d0adf_7",
626
622
  version: "_version_d0adf_13",
627
623
  date: "_date_d0adf_17",
628
624
  emptyState: "_emptyState_d0adf_21",
629
625
  stripedRow: "_stripedRow_d0adf_25"
630
- }, qe = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", sharedCredentialsLabel: o = "Shared credentials", emptyStateLabel: s = "Not published to this folder yet — this will be the first version here.", loadingLabel: c = "Loading history…", errorLabel: l = "Failed to load publish history.", versionClassName: u = "dial-small-text", dateClassName: d = "dial-small-text", emptyStateClassName: f = "dial-small-text", colors: p }) => {
626
+ }, Ke = ({ entries: e, currentVersion: t, isLoading: n = !1, hasError: r = !1, versionPrefix: i = "Version", currentBadgeLabel: a = "Current", sharedCredentialsLabel: o = "Shared credentials", emptyStateLabel: s = "Not published to this folder yet — this will be the first version here.", loadingLabel: c = "Loading history…", errorLabel: l = "Failed to load publish history.", versionClassName: u = "dial-small-text", dateClassName: d = "dial-small-text", emptyStateClassName: f = "dial-small-text", colors: p }) => {
631
627
  let m = oe({
632
628
  "--phl-badge-border": p?.currentBadgeBorder,
633
629
  "--phl-badge-bg": p?.currentBadgeBackground,
@@ -639,7 +635,7 @@ var U = /* @__PURE__ */ function(e) {
639
635
  "--phl-date-text": p?.dateText,
640
636
  "--phl-empty-text": p?.emptyStateText,
641
637
  "--phl-striped-bg": p?.stripedBackground
642
- }), h = I(f, Ke.emptyState);
638
+ }), h = I(f, Ge.emptyState);
643
639
  if (n || r || e.length === 0) {
644
640
  let e = s;
645
641
  return n ? e = c : r && (e = l), /* @__PURE__ */ L(S, {
@@ -652,13 +648,13 @@ var U = /* @__PURE__ */ function(e) {
652
648
  return /* @__PURE__ */ L("ul", {
653
649
  style: m,
654
650
  children: e.map((e, n) => /* @__PURE__ */ R("li", {
655
- className: I("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Ke.stripedRow),
651
+ className: I("flex items-center justify-between gap-2 rounded-lg px-3 py-[11px]", n % 2 == 0 && Ge.stripedRow),
656
652
  children: [/* @__PURE__ */ R("span", {
657
653
  className: "flex min-w-0 items-center gap-2",
658
654
  style: m,
659
655
  children: [
660
656
  /* @__PURE__ */ R("span", {
661
- className: I(u, Ke.version),
657
+ className: I(u, Ge.version),
662
658
  children: [
663
659
  i,
664
660
  " ",
@@ -667,77 +663,77 @@ var U = /* @__PURE__ */ function(e) {
667
663
  }),
668
664
  e.version === t && /* @__PURE__ */ L(j, {
669
665
  label: a,
670
- className: I("shrink-0 whitespace-nowrap", Ke.currentBadge)
666
+ className: I("shrink-0 whitespace-nowrap", Ge.currentBadge)
671
667
  }),
672
668
  e.publishCredentials === !0 && /* @__PURE__ */ L(j, {
673
669
  label: o,
674
- className: I("shrink-0 whitespace-nowrap", Ke.sharedCredentialsBadge)
670
+ className: I("shrink-0 whitespace-nowrap", Ge.sharedCredentialsBadge)
675
671
  })
676
672
  ]
677
673
  }), /* @__PURE__ */ L("span", {
678
- className: I(d, Ke.date),
674
+ className: I(d, Ge.date),
679
675
  children: de(e.publishedAt)
680
676
  })]
681
677
  }, `${e.version}-${n}`))
682
678
  });
683
- }, Je = ":", Ye = (e) => `${Je}${e}`, Xe = (e) => e?.startsWith(Je) ? e.slice(1) : void 0, Ze = (e) => [Ye(e.rootKey), ...e.path], Qe = (e) => {
684
- let [t, ...n] = e, r = Xe(t);
679
+ }, qe = ":", Je = (e) => `${qe}${e}`, Ye = (e) => e?.startsWith(qe) ? e.slice(1) : void 0, Xe = (e) => [Je(e.rootKey), ...e.path], Ze = (e) => {
680
+ let [t, ...n] = e, r = Ye(t);
685
681
  return r == null ? void 0 : {
686
682
  rootKey: r,
687
683
  path: n
688
684
  };
689
- }, $e = (e, t) => e.map((e) => ({
685
+ }, Qe = (e, t) => e.map((e) => ({
690
686
  ...e,
691
687
  path: [t, ...e.path],
692
- children: e.children ? $e(e.children, t) : void 0
693
- })), et = (e) => e.map((e) => {
694
- let t = Ye(e.key);
688
+ children: e.children ? Qe(e.children, t) : void 0
689
+ })), $e = (e) => e.map((e) => {
690
+ let t = Je(e.key);
695
691
  return {
696
692
  path: [t],
697
693
  name: e.label,
698
- children: $e(me(e.items), t)
694
+ children: Qe(me(e.items), t)
699
695
  };
700
- }), tt = (e) => e.map((e) => Ye(e.key)), nt = (e, t) => {
696
+ }), et = (e) => e.map((e) => Je(e.key)), tt = (e, t) => {
701
697
  let n = /* @__PURE__ */ new Set();
702
698
  for (let r of e) {
703
- let e = Ye(r.key);
699
+ let e = Je(r.key);
704
700
  for (let i of t(r) ?? []) n.add(i ? `${e}/${i}` : e);
705
701
  }
706
702
  return n;
707
- }, rt = (e, t) => {
703
+ }, nt = (e, t) => {
708
704
  let n = new Map(e.map((e) => [e.key, /* @__PURE__ */ new Set()]));
709
705
  for (let e of t) {
710
- let [t, ...r] = e.split("/"), i = Xe(t);
706
+ let [t, ...r] = e.split("/"), i = Ye(t);
711
707
  i != null && r.length !== 0 && n.get(i)?.add($(r));
712
708
  }
713
709
  return n;
714
- }, it = {
710
+ }, rt = {
715
711
  divider: "_divider_1gs31_1",
716
712
  tree: "_tree_1gs31_17"
717
- }, at = "data-cancel-creating-folder", ot = "", st = [], ct = ({ items: e = st, selectedPath: n, onSelectedPathChange: o, onCreateFolder: s, roots: c, destination: l, onDestinationChange: f, onCreateDestinationFolder: p, searchQuery: m, disabled: h = !1, createFolderLabel: g = "Create new folder", cancelCreatingFolderLabel: _ = "Cancel", addSiblingFolderLabel: y = "Add sibling", addChildFolderLabel: b = "Add child", newFolderDefaultName: x = "New folder", noResultsLabel: ee = "No folders match \"{query}\".", emptyFolderNameError: S = "Folder name cannot be empty.", invalidFolderNameError: te = "Folder name contains invalid characters.", duplicateFolderNameError: ne = "A folder with this name already exists.", sameAsParentFolderNameError: C = "A folder cannot have the same name as its parent folder.", rootLabel: w = "Organization", expandedPaths: T, onExpandedPathsChange: E, loadingPaths: D, styles: O = {} }) => {
713
+ }, it = "data-cancel-creating-folder", at = "", ot = [], st = ({ items: e = ot, selectedPath: n, onSelectedPathChange: o, onCreateFolder: s, roots: c, destination: l, onDestinationChange: f, onCreateDestinationFolder: p, searchQuery: m, disabled: h = !1, createFolderLabel: g = "Create new folder", cancelCreatingFolderLabel: _ = "Cancel", addSiblingFolderLabel: y = "Add sibling", addChildFolderLabel: b = "Add child", newFolderDefaultName: x = "New folder", noResultsLabel: ee = "No folders match \"{query}\".", emptyFolderNameError: S = "Folder name cannot be empty.", invalidFolderNameError: te = "Folder name contains invalid characters.", duplicateFolderNameError: ne = "A folder with this name already exists.", sameAsParentFolderNameError: C = "A folder cannot have the same name as its parent folder.", rootLabel: w = "Organization", expandedPaths: T, onExpandedPathsChange: E, loadingPaths: D, styles: O = {} }) => {
718
714
  let re = {
719
715
  ...oe({ "--pft-divider": O.colors?.divider }),
720
716
  ...O.cssVars
721
- }, k = c != null, A = r(() => c ? et(c) : e, [c, e]), ie = i(A);
717
+ }, k = c != null, A = r(() => c ? $e(c) : e, [c, e]), ie = i(A);
722
718
  t(() => {
723
719
  ie.current = A;
724
720
  }, [A]);
725
- let j = r(() => c ? tt(c) : [ot], [c]), M = n;
726
- k && (M = l ? Ze(l) : void 0);
721
+ let j = r(() => c ? et(c) : [at], [c]), M = n;
722
+ k && (M = l ? Xe(l) : void 0);
727
723
  let N = (e) => {
728
- k ? f?.(e ? Qe(e) : void 0) : o?.(e);
729
- }, [P, F] = a(() => new Set(M?.map((e, t) => $(M.slice(0, t + 1))) ?? [])), ae = r(() => c ? /* @__PURE__ */ new Set([...P, ...nt(c, (e) => e.expandedPaths)]) : void 0, [c, P]) ?? T ?? P, se = r(() => c ? nt(c, (e) => e.loadingPaths) : D, [c, D]), ce = (e) => {
724
+ k ? f?.(e ? Ze(e) : void 0) : o?.(e);
725
+ }, [P, F] = a(() => new Set(M?.map((e, t) => $(M.slice(0, t + 1))) ?? [])), ae = r(() => c ? /* @__PURE__ */ new Set([...P, ...tt(c, (e) => e.expandedPaths)]) : void 0, [c, P]) ?? T ?? P, se = r(() => c ? tt(c, (e) => e.loadingPaths) : D, [c, D]), ce = (e) => {
730
726
  let t = new Set(e);
731
727
  for (let e of j) t.delete(e);
732
728
  if (c) {
733
729
  F(t);
734
- let e = rt(c, t);
730
+ let e = nt(c, t);
735
731
  for (let t of c) t.onExpandedPathsChange?.(e.get(t.key) ?? /* @__PURE__ */ new Set());
736
732
  } else E ? E(t) : F(t);
737
733
  }, [z, V] = a(null), [U, W] = a(x), G = i(null), K = i(!1);
738
734
  t(() => {
739
735
  let e = (e) => {
740
- e.target instanceof Element && e.target.closest(`[${at}]`) && (K.current = !0);
736
+ e.target instanceof Element && e.target.closest(`[${it}]`) && (K.current = !0);
741
737
  };
742
738
  return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
743
739
  }, []);
@@ -755,9 +751,9 @@ var U = /* @__PURE__ */ function(e) {
755
751
  fe,
756
752
  ae
757
753
  ]), he = r(() => be(Z), [Z]), ge = r(() => X && he.length === 0 ? [] : k ? he : [{
758
- path: ot,
754
+ path: at,
759
755
  name: w,
760
- folderId: ot,
756
+ folderId: at,
761
757
  nodeType: H.FOLDER,
762
758
  items: he
763
759
  }], [
@@ -772,13 +768,13 @@ var U = /* @__PURE__ */ function(e) {
772
768
  sameAsParent: C
773
769
  }, Te = (e) => j.includes($(e)) ? void 0 : e.at(-1), Ee = (e) => {
774
770
  if (!c) return !0;
775
- let t = Qe(e), n = c.find((e) => e.key === t?.rootKey);
771
+ let t = Ze(e), n = c.find((e) => e.key === t?.rootKey);
776
772
  return n != null && n.canCreateFolders !== !1;
777
773
  }, De = (() => {
778
774
  if (!c) return M ?? [];
779
775
  if (M && Ee(M)) return M;
780
776
  let e = c.find((e) => e.canCreateFolders !== !1);
781
- return e ? Ze({
777
+ return e ? Xe({
782
778
  rootKey: e.key,
783
779
  path: []
784
780
  }) : void 0;
@@ -824,7 +820,7 @@ var U = /* @__PURE__ */ function(e) {
824
820
  if (!z || K.current) return;
825
821
  let t = e.trim(), n = G.current;
826
822
  if (!(Pe(e) ?? n)) {
827
- let e = c ? Qe(z) : void 0;
823
+ let e = c ? Ze(z) : void 0;
828
824
  e ? p?.(e.rootKey, e.path, t) : s?.(z, t), N([...z, t]);
829
825
  }
830
826
  V(null);
@@ -834,7 +830,7 @@ var U = /* @__PURE__ */ function(e) {
834
830
  className: I(h && "pointer-events-none opacity-60", O.className),
835
831
  children: [
836
832
  /* @__PURE__ */ L("div", {
837
- className: I("w-full max-w-full min-w-0", it.tree),
833
+ className: I("w-full max-w-full min-w-0", rt.tree),
838
834
  children: /* @__PURE__ */ L(ue, {
839
835
  items: ge,
840
836
  showFiles: !1,
@@ -857,7 +853,7 @@ var U = /* @__PURE__ */ function(e) {
857
853
  })
858
854
  }),
859
855
  /* @__PURE__ */ L("div", {
860
- className: I("my-2 h-px", it.divider),
856
+ className: I("my-2 h-px", rt.divider),
861
857
  "aria-hidden": !0
862
858
  }),
863
859
  /* @__PURE__ */ R("div", {
@@ -875,67 +871,67 @@ var U = /* @__PURE__ */ function(e) {
875
871
  label: _,
876
872
  onClick: Ie,
877
873
  disabled: h,
878
- [at]: ""
874
+ [it]: ""
879
875
  })]
880
876
  })
881
877
  ]
882
878
  });
883
- }, lt = {
879
+ }, ct = {
884
880
  summaryTitle: "_summaryTitle_zj3gd_1",
885
881
  sectionHeading: "_sectionHeading_zj3gd_5",
886
882
  destination: "_destination_zj3gd_9"
887
- }, ut = 200, dt = ({ view: e = Z.Main, onChangeFolderClick: o, resource: s, renderSummary: l, dependencies: f, folderItems: p, selectedFolderPath: h, pendingFolderPath: g, onPendingFolderPathChange: y, onCreateFolder: b, expandedPaths: ee, onExpandedPathsChange: S, loadingPaths: te, hasExistingPublicationInFolder: ne, hasWriteAccess: C, isSubmitting: E, hasSubmitError: D = !1, allowReplace: O = !0, author: k, onAuthorChange: A, publishCredentials: ie = !1, onPublishCredentialsChange: j, rules: M, onRulesChange: N, ruleSourceOptions: P, isRulesLoading: ae = !1, hasRulesLoadError: se = !1, labels: ce = {}, summaryTitleClassName: le = "dial-body-semi-text", headingClassName: B = "dial-body-semi-text", destinationClassName: V = "dial-small-semi-text", calloutFolderNameClassName: H = "dial-small-paragraph-semi-text", styles: ue = {} }) => {
888
- let { colors: U, folderTree: G, accessRules: q, dependencies: de } = ue, J = {
883
+ }, lt = 200, ut = ({ view: e = Z.Main, onChangeFolderClick: o, resource: s, renderSummary: l, dependencies: f, folderItems: p, selectedFolderPath: h, pendingFolderPath: g, onPendingFolderPathChange: y, onCreateFolder: b, expandedPaths: ee, onExpandedPathsChange: S, loadingPaths: te, hasExistingPublicationInFolder: ne, hasWriteAccess: C, isSubmitting: D, hasSubmitError: O = !1, allowReplace: k = !0, author: A, onAuthorChange: ie, publishCredentials: j = !1, onPublishCredentialsChange: M, rules: N, onRulesChange: P, ruleSourceOptions: ae, isRulesLoading: se = !1, hasRulesLoadError: ce = !1, labels: le = {}, summaryTitleClassName: B = "dial-body-semi-text", headingClassName: V = "dial-body-semi-text", destinationClassName: H = "dial-small-semi-text", calloutFolderNameClassName: ue = "dial-small-paragraph-semi-text", styles: U = {} }) => {
884
+ let { colors: G, folderTree: q, accessRules: de, dependencies: J } = U, Y = {
889
885
  ...oe({
890
- "--pp-summary-title-text": U?.summaryTitleText,
891
- "--pp-heading-text": U?.headingText,
892
- "--pp-destination-text": U?.destinationText
886
+ "--pp-summary-title-text": G?.summaryTitleText,
887
+ "--pp-heading-text": G?.headingText,
888
+ "--pp-destination-text": G?.destinationText
893
889
  }),
894
- ...ue.cssVars
895
- }, Y = {
896
- border: U?.summaryBorder,
897
- background: U?.summaryBackground
898
- }, { folderLabel: X = "Publish to folder", destinationAriaLabel: fe = "Destination folder", noFolderSelectedLabel: Q = "No folder selected", changeFolderLabel: pe = "Change", chooseFolderLabel: me = "Choose", replaceWarning: he = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: ge = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: _e = "Publishing failed. Please try again.", folderEmptyStateLabel: $, addSiblingFolderLabel: ve, addChildFolderLabel: ye, cancelCreatingFolderLabel: be, createFolderEmptyNameError: xe, createFolderInvalidNameError: Se, createFolderDuplicateNameError: Ce, createFolderSameAsParentNameError: we, rootFolderLabel: Te = "Organization", accessRulesLabels: Ee, dependenciesLabels: De, searchPlaceholder: Oe, clearSearchAriaLabel: ke, authorLabel: Ae = "Author", authorPlaceholder: je = "Author name", authorHint: Me = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Ne = "Publish with my credentials", credentialsHint: Ie = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = ce, [Le, Re] = a(""), ze = n(), Be = i(null), Ve = i(null), He = (e) => {
899
- Re(e ?? "");
900
- }, Ue = i(e);
890
+ ...U.cssVars
891
+ }, X = {
892
+ border: G?.summaryBorder,
893
+ background: G?.summaryBackground
894
+ }, { folderLabel: fe = "Publish to folder", destinationAriaLabel: Q = "Destination folder", noFolderSelectedLabel: pe = "No folder selected", changeFolderLabel: me = "Change", chooseFolderLabel: he = "Choose", replaceWarning: ge = "Version {version} is already published in {folder}. Publishing will replace it.", noAccessError: _e = "You don't have permission to publish to {folder}. Pick another, or ask an owner for access.", submitError: $ = "Publishing failed. Please try again.", adminApprovalTitle: ve = "Admin approval required", adminApprovalMessage: ye = "We’ll send a request to your organization’s admin. If approved, it will appear in the folder.", folderEmptyStateLabel: be, addSiblingFolderLabel: xe, addChildFolderLabel: Se, cancelCreatingFolderLabel: Ce, createFolderEmptyNameError: we, createFolderInvalidNameError: Te, createFolderDuplicateNameError: Ee, createFolderSameAsParentNameError: De, rootFolderLabel: Oe = "Organization", accessRulesLabels: ke, dependenciesLabels: Ae, searchPlaceholder: je, clearSearchAriaLabel: Me, authorLabel: Ne = "Author", authorPlaceholder: Ie = "Author name", authorHint: Le = "Shown as the publication’s author. Defaults to you — replace it to credit a team instead.", credentialsLabel: Re = "Publish with my credentials", credentialsHint: ze = "Members will use this without signing in themselves. Your credential itself is never shown to them." } = le, [Be, Ve] = a(""), He = n(), Ue = i(null), Ge = i(null), Ke = (e) => {
895
+ Ve(e ?? "");
896
+ }, qe = i(e);
901
897
  t(() => {
902
- Ue.current !== e && (Ue.current = e, e === Z.ChangeFolder ? Ve.current?.focus({ preventScroll: !0 }) : Be.current?.focus({ preventScroll: !0 }));
898
+ qe.current !== e && (qe.current = e, e === Z.ChangeFolder ? Ge.current?.focus({ preventScroll: !0 }) : Ue.current?.focus({ preventScroll: !0 }));
903
899
  }, [e]);
904
- let We = h != null, Ke = r(() => K({
905
- hasSelectedFolder: We,
900
+ let Je = h != null, Ye = r(() => K({
901
+ hasSelectedFolder: Je,
906
902
  hasExistingPublicationInFolder: ne,
907
903
  hasWriteAccess: C,
908
- isSubmitting: E,
909
- hasSubmitError: D,
910
- allowReplace: O
904
+ isSubmitting: D,
905
+ hasSubmitError: O,
906
+ allowReplace: k
911
907
  }), [
912
- We,
908
+ Je,
913
909
  ne,
914
910
  C,
915
- E,
916
911
  D,
917
- O
918
- ]), qe = We ? h[h.length - 1] ?? Te : "", Je = l ? l() : /* @__PURE__ */ L("span", {
919
- className: I("truncate", le, lt.summaryTitle),
912
+ O,
913
+ k
914
+ ]), Xe = Je ? h[h.length - 1] ?? Oe : "", Ze = l ? l() : /* @__PURE__ */ L("span", {
915
+ className: I("truncate", B, ct.summaryTitle),
920
916
  children: s?.title
921
917
  });
922
918
  if (e === Z.ChangeFolder) return /* @__PURE__ */ R("div", {
923
- ref: Ve,
919
+ ref: Ge,
924
920
  tabIndex: -1,
925
921
  role: "group",
926
- "aria-label": X,
922
+ "aria-label": fe,
927
923
  className: I("flex flex-col gap-3 outline-none", Fe.panel),
928
- style: J,
924
+ style: Y,
929
925
  children: [/* @__PURE__ */ L("div", {
930
926
  role: "search",
931
927
  children: /* @__PURE__ */ L(re, {
932
- value: Le,
933
- onChange: He,
934
- placeholder: Oe,
935
- clearLabel: ke,
936
- "aria-label": Oe
928
+ value: Be,
929
+ onChange: Ke,
930
+ placeholder: je,
931
+ clearLabel: Me,
932
+ "aria-label": je
937
933
  })
938
- }), /* @__PURE__ */ L(ct, {
934
+ }), /* @__PURE__ */ L(st, {
939
935
  items: p,
940
936
  selectedPath: g,
941
937
  onSelectedPathChange: y,
@@ -943,28 +939,28 @@ var U = /* @__PURE__ */ function(e) {
943
939
  expandedPaths: ee,
944
940
  onExpandedPathsChange: S,
945
941
  loadingPaths: te,
946
- searchQuery: Le,
947
- disabled: E,
948
- noResultsLabel: $,
949
- addSiblingFolderLabel: ve,
950
- addChildFolderLabel: ye,
951
- cancelCreatingFolderLabel: be,
952
- emptyFolderNameError: xe,
953
- invalidFolderNameError: Se,
954
- duplicateFolderNameError: Ce,
955
- sameAsParentFolderNameError: we,
956
- rootLabel: Te,
957
- styles: G
942
+ searchQuery: Be,
943
+ disabled: D,
944
+ noResultsLabel: be,
945
+ addSiblingFolderLabel: xe,
946
+ addChildFolderLabel: Se,
947
+ cancelCreatingFolderLabel: Ce,
948
+ emptyFolderNameError: we,
949
+ invalidFolderNameError: Te,
950
+ duplicateFolderNameError: Ee,
951
+ sameAsParentFolderNameError: De,
952
+ rootLabel: Oe,
953
+ styles: q
958
954
  })]
959
955
  });
960
- let Ye = I(V, lt.destination);
956
+ let Qe = I(H, ct.destination);
961
957
  return /* @__PURE__ */ R("div", {
962
958
  className: I("flex flex-col gap-5", Fe.panel),
963
- style: J,
959
+ style: Y,
964
960
  children: [
965
961
  s?.type == null ? /* @__PURE__ */ L(F, {
966
- colors: Y,
967
- children: Je
962
+ colors: X,
963
+ children: Ze
968
964
  }) : /* @__PURE__ */ L(F, {
969
965
  item: {
970
966
  type: s.type,
@@ -973,101 +969,110 @@ var U = /* @__PURE__ */ function(e) {
973
969
  iconUrl: s.iconUrl
974
970
  },
975
971
  hasVersionTag: !1,
976
- colors: Y
972
+ colors: X
977
973
  }),
978
974
  /* @__PURE__ */ R("section", { children: [
979
975
  /* @__PURE__ */ L("h2", {
980
- className: I("mb-2", B, lt.sectionHeading),
981
- children: X
976
+ className: I("mb-2", V, ct.sectionHeading),
977
+ children: fe
982
978
  }),
983
979
  /* @__PURE__ */ R("div", {
984
980
  className: "flex min-w-0 items-center gap-2",
985
981
  children: [/* @__PURE__ */ L("div", {
986
982
  role: "group",
987
- "aria-label": fe,
983
+ "aria-label": Q,
988
984
  className: "min-w-0 flex-1",
989
- children: We ? /* @__PURE__ */ L(_, {
990
- name: [Te, ...h].join(" / "),
991
- nameClassName: Ye
985
+ children: Je ? /* @__PURE__ */ L(_, {
986
+ name: [Oe, ...h].join(" / "),
987
+ nameClassName: Qe
992
988
  }) : /* @__PURE__ */ L("span", {
993
- className: I("block truncate", Ye),
994
- children: Q
989
+ className: I("block truncate", Qe),
990
+ children: pe
995
991
  })
996
992
  }), /* @__PURE__ */ L(v, {
997
- ref: Be,
993
+ ref: Ue,
998
994
  size: m.Small,
999
- label: We ? pe : me,
995
+ label: Je ? me : he,
1000
996
  iconBefore: /* @__PURE__ */ L(z, {
1001
997
  size: u.SM,
1002
998
  stroke: d,
1003
999
  "aria-hidden": !0
1004
1000
  }),
1005
- disabled: E,
1001
+ disabled: D,
1006
1002
  onClick: o
1007
1003
  })]
1008
1004
  }),
1009
- Ke.calloutKind !== W.None && Ke.calloutKind !== W.Info && /* @__PURE__ */ L("div", {
1005
+ Ye.calloutKind === W.Info && /* @__PURE__ */ L("div", {
1006
+ className: "my-4",
1007
+ children: /* @__PURE__ */ L(w, {
1008
+ type: T.SectionMessage,
1009
+ variant: E.Info,
1010
+ title: ve,
1011
+ message: ye
1012
+ })
1013
+ }),
1014
+ Ye.calloutKind !== W.None && Ye.calloutKind !== W.Info && /* @__PURE__ */ L("div", {
1010
1015
  className: "mt-3",
1011
1016
  children: /* @__PURE__ */ L(w, {
1012
1017
  type: T.SectionMessage,
1013
- variant: ft(Ke.calloutKind),
1014
- message: mt(Ke.calloutKind, {
1015
- replaceWarning: he,
1016
- noAccessError: ge,
1017
- submitError: _e,
1018
- folderName: qe,
1018
+ variant: dt(Ye.calloutKind),
1019
+ message: pt(Ye.calloutKind, {
1020
+ replaceWarning: ge,
1021
+ noAccessError: _e,
1022
+ submitError: $,
1023
+ folderName: Xe,
1019
1024
  version: s?.version,
1020
- folderNameClassName: H
1025
+ folderNameClassName: ue
1021
1026
  })
1022
1027
  })
1023
1028
  }),
1024
1029
  /* @__PURE__ */ L("div", {
1025
1030
  className: "mt-4",
1026
1031
  children: /* @__PURE__ */ L(x, {
1027
- id: ze,
1028
- labelProps: { label: Ae },
1029
- placeholder: je,
1030
- caption: Me,
1031
- value: k,
1032
- onChange: (e) => A(e ?? ""),
1033
- maxLength: ut,
1034
- disabled: E
1032
+ id: He,
1033
+ labelProps: { label: Ne },
1034
+ placeholder: Ie,
1035
+ caption: Le,
1036
+ value: A,
1037
+ onChange: (e) => ie(e ?? ""),
1038
+ maxLength: lt,
1039
+ disabled: D
1035
1040
  })
1036
1041
  }),
1037
- j != null && /* @__PURE__ */ L("div", {
1042
+ M != null && /* @__PURE__ */ L("div", {
1038
1043
  className: "mt-4",
1039
1044
  children: /* @__PURE__ */ L(c, {
1040
- labelProps: { label: Ne },
1041
- caption: Ie,
1042
- isSelected: ie,
1043
- onChange: j,
1044
- disabled: E
1045
+ labelProps: { label: Re },
1046
+ caption: ze,
1047
+ isSelected: j,
1048
+ onChange: M,
1049
+ disabled: D
1045
1050
  })
1046
1051
  }),
1047
1052
  /* @__PURE__ */ L("div", {
1048
1053
  className: "mt-4",
1049
1054
  children: /* @__PURE__ */ L(Pe, {
1050
- rules: M,
1051
- onRulesChange: N,
1052
- sourceOptions: P,
1053
- folderName: We ? qe : void 0,
1054
- disabled: E,
1055
- isLoading: ae,
1056
- hasLoadError: se,
1057
- labels: Ee,
1058
- styles: q
1055
+ rules: N,
1056
+ onRulesChange: P,
1057
+ sourceOptions: ae,
1058
+ folderName: Je ? Xe : void 0,
1059
+ disabled: D,
1060
+ isLoading: se,
1061
+ hasLoadError: ce,
1062
+ labels: ke,
1063
+ styles: de
1059
1064
  })
1060
1065
  })
1061
1066
  ] }),
1062
- f != null && /* @__PURE__ */ L(Ge, {
1067
+ f != null && /* @__PURE__ */ L(We, {
1063
1068
  dependencies: f,
1064
- labels: De,
1065
- headingClassName: B,
1066
- styles: de
1069
+ labels: Ae,
1070
+ headingClassName: V,
1071
+ styles: J
1067
1072
  })
1068
1073
  ]
1069
1074
  });
1070
- }, ft = (e) => e === W.ReplaceWarning ? E.Warning : E.Error, pt = (e, t, n) => {
1075
+ }, dt = (e) => e === W.ReplaceWarning ? E.Warning : E.Error, ft = (e, t, n) => {
1071
1076
  let [r, i, ...a] = e.split("{folder}");
1072
1077
  return i === void 0 || a.length > 0 ? e : /* @__PURE__ */ R(ce, { children: [
1073
1078
  r,
@@ -1077,11 +1082,11 @@ var U = /* @__PURE__ */ function(e) {
1077
1082
  }),
1078
1083
  i
1079
1084
  ] });
1080
- }, mt = (e, t) => e === W.ReplaceWarning ? pt(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === W.NoAccess ? pt(t.noAccessError, t.folderName, t.folderNameClassName) : t.submitError, ht = { footer: "_footer_dks1v_1" }, gt = ({ version: e, hasExistingPublicationInFolder: t, allowReplace: n = !0, isSubmitDisabled: r, isSubmitLoading: i, onCancel: a, onSubmit: o, view: s = Z.Main, onSelectFolder: c, isSelectFolderDisabled: l = !1, labels: d = {}, colors: f }) => {
1085
+ }, pt = (e, t) => e === W.ReplaceWarning ? ft(t.replaceWarning.replace("{version}", t.version ?? ""), t.folderName, t.folderNameClassName) : e === W.NoAccess ? ft(t.noAccessError, t.folderName, t.folderNameClassName) : t.submitError, mt = { footer: "_footer_dks1v_1" }, ht = ({ version: e, hasExistingPublicationInFolder: t, allowReplace: n = !0, isSubmitDisabled: r, isSubmitLoading: i, onCancel: a, onSubmit: o, view: s = Z.Main, onSelectFolder: c, isSelectFolderDisabled: l = !1, labels: d = {}, colors: f }) => {
1081
1086
  let p = oe({ "--pf-border": f?.border }), { cancelLabel: m = "Cancel", publishDefaultLabel: h = "Publish", updateLabel: g = "Update version {version}", publishingInProgressLabel: _ = "Publishing…", selectFolderLabel: y = "Select" } = d, b = s === Z.ChangeFolder, x = i ? _ : n && t && e != null ? g.replace("{version}", e) : h;
1082
1087
  return /* @__PURE__ */ R("div", {
1083
1088
  style: p,
1084
- className: I("flex items-center justify-end gap-2 border-t px-4 py-4 rtl:flex-row-reverse rtl:justify-start desktop:px-3.5", ht.footer),
1089
+ className: I("flex items-center justify-end gap-2 border-t px-4 py-4 rtl:flex-row-reverse rtl:justify-start desktop:px-3.5", mt.footer),
1085
1090
  children: [/* @__PURE__ */ L(v, {
1086
1091
  label: m,
1087
1092
  className: "mobile:flex-1",
@@ -1103,13 +1108,13 @@ var U = /* @__PURE__ */ function(e) {
1103
1108
  onClick: o
1104
1109
  })]
1105
1110
  });
1106
- }, _t = {
1111
+ }, gt = {
1107
1112
  backdrop: "_backdrop_16jmd_6",
1108
1113
  panel: "_panel_16jmd_10",
1109
1114
  divider: "_divider_16jmd_15",
1110
1115
  content: "_content_16jmd_19",
1111
1116
  title: "_title_16jmd_24"
1112
- }, vt = ({ isOpen: e, resource: n, renderSummary: i, dependencies: o, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: f, loadingPaths: p, hasExistingPublicationInFolder: m, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, author: y, onAuthorChange: b, rules: x, onRulesChange: ee, ruleSourceOptions: S, isRulesLoading: te = !1, hasRulesLoadError: ne = !1, onClose: C, returnFocusRef: w, onSubmit: T, panelLabels: E, panelStyles: D, panelSummaryTitleClassName: O, panelHeadingClassName: re, panelCalloutFolderNameClassName: k, footerLabels: ie, labels: j = {}, titleClassName: M = "dial-body-semi-text", colors: N }) => {
1117
+ }, _t = ({ isOpen: e, resource: n, renderSummary: i, dependencies: o, folderItems: s, selectedFolderPath: c, onSelectedFolderPathChange: l, onCreateFolder: u, expandedPaths: d, onExpandedPathsChange: f, loadingPaths: p, hasExistingPublicationInFolder: m, hasWriteAccess: h, isSubmitting: g, hasSubmitError: _ = !1, allowReplace: v = !0, author: y, onAuthorChange: b, rules: x, onRulesChange: ee, ruleSourceOptions: S, isRulesLoading: te = !1, hasRulesLoadError: ne = !1, onClose: C, returnFocusRef: w, onSubmit: T, panelLabels: E, panelStyles: D, panelSummaryTitleClassName: O, panelHeadingClassName: re, panelCalloutFolderNameClassName: k, footerLabels: ie, labels: j = {}, titleClassName: M = "dial-body-semi-text", colors: N }) => {
1113
1118
  let P = oe({
1114
1119
  "--spp-backdrop-bg": N?.backdropBackground,
1115
1120
  "--spp-panel-bg": N?.panelBackground,
@@ -1159,7 +1164,7 @@ var U = /* @__PURE__ */ function(e) {
1159
1164
  open: e,
1160
1165
  onClose: C,
1161
1166
  header: /* @__PURE__ */ L("span", {
1162
- className: I("block truncate text-center", M, _t.title),
1167
+ className: I("block truncate text-center", M, gt.title),
1163
1168
  children: H ? ce : se
1164
1169
  }),
1165
1170
  ariaLabel: le,
@@ -1170,16 +1175,16 @@ var U = /* @__PURE__ */ function(e) {
1170
1175
  closeDisabled: g,
1171
1176
  style: P,
1172
1177
  overlayStyle: P,
1173
- className: I(_t.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1174
- overlayClassName: _t.backdrop,
1175
- headerClassName: I("px-[22px]", _t.divider),
1178
+ className: I(gt.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1179
+ overlayClassName: gt.backdrop,
1180
+ headerClassName: I("px-[22px]", gt.divider),
1176
1181
  bodyClassName: "flex flex-col overflow-hidden",
1177
1182
  children: [/* @__PURE__ */ L("div", {
1178
1183
  ref: ae,
1179
- className: I("min-h-0 flex-1 overflow-y-auto", _t.content),
1184
+ className: I("min-h-0 flex-1 overflow-y-auto", gt.content),
1180
1185
  children: /* @__PURE__ */ L("div", {
1181
1186
  className: "p-[22px]",
1182
- children: /* @__PURE__ */ L(dt, {
1187
+ children: /* @__PURE__ */ L(ut, {
1183
1188
  resource: n,
1184
1189
  renderSummary: i,
1185
1190
  dependencies: o,
@@ -1212,7 +1217,7 @@ var U = /* @__PURE__ */ function(e) {
1212
1217
  calloutFolderNameClassName: k
1213
1218
  })
1214
1219
  })
1215
- }), /* @__PURE__ */ L(gt, {
1220
+ }), /* @__PURE__ */ L(ht, {
1216
1221
  version: n?.version,
1217
1222
  hasExistingPublicationInFolder: m,
1218
1223
  allowReplace: v,
@@ -1226,8 +1231,8 @@ var U = /* @__PURE__ */ function(e) {
1226
1231
  labels: ie
1227
1232
  })]
1228
1233
  });
1229
- }, yt = { option: "_option_skygm_1" }, bt = (e, t) => `Unpublish "${e}" from "${t}"?`, xt = (e) => `Choose which folder to unpublish "${e}" from.`, St = ({ isOpen: e, name: t, folders: n, selectedFolder: r, onSelectedFolderChange: i, isLoading: a = !1, labels: o, optionClassName: s = "dial-small-text", colors: c, onConfirm: u, onClose: d }) => {
1230
- let { title: f = "Unpublish?", confirmLabel: p = "Unpublish", cancelLabel: m = "Cancel", rootFolderLabel: h = "Organization", folderGroupAriaLabel: g = "Published folders", loadingStatusLabel: _ = "Requesting unpublish…", confirmMessage: v = bt, selectFolderMessage: y = xt } = o ?? {}, b = n.length > 1;
1234
+ }, vt = { option: "_option_skygm_1" }, yt = (e, t) => `Unpublish "${e}" from "${t}"?`, bt = (e) => `Choose which folder to unpublish "${e}" from.`, xt = ({ isOpen: e, name: t, folders: n, selectedFolder: r, onSelectedFolderChange: i, isLoading: a = !1, labels: o, optionClassName: s = "dial-small-text", colors: c, onConfirm: u, onClose: d }) => {
1235
+ let { title: f = "Unpublish?", confirmLabel: p = "Unpublish", cancelLabel: m = "Cancel", rootFolderLabel: h = "Organization", folderGroupAriaLabel: g = "Published folders", loadingStatusLabel: _ = "Requesting unpublish…", confirmMessage: v = yt, selectFolderMessage: y = bt } = o ?? {}, b = n.length > 1;
1231
1236
  return /* @__PURE__ */ L(N, {
1232
1237
  open: e,
1233
1238
  title: f,
@@ -1255,18 +1260,18 @@ var U = /* @__PURE__ */ function(e) {
1255
1260
  value: e,
1256
1261
  label: ye(e, h)
1257
1262
  })),
1258
- radioClassName: I(s, yt.option)
1263
+ radioClassName: I(s, vt.option)
1259
1264
  })
1260
1265
  })
1261
1266
  });
1262
- }, Ct = /* @__PURE__ */ function(e) {
1267
+ }, St = /* @__PURE__ */ function(e) {
1263
1268
  return e.Keep = "keep", e.New = "new", e;
1264
- }({}), wt = /* @__PURE__ */ function(e) {
1269
+ }({}), Ct = /* @__PURE__ */ function(e) {
1265
1270
  return e.Main = "main", e.ChangeFolder = "change-folder", e;
1266
- }({}), Tt = {
1271
+ }({}), wt = {
1267
1272
  heading: "_heading_vk731_1",
1268
1273
  destination: "_destination_vk731_5"
1269
- }, Et = ({ view: e, resource: t, roots: i, destination: o, onCreateFolder: s, onChangeFolderClick: c, changeFolderButtonRef: l, pendingDestination: f, onPendingDestinationChange: p, version: g, accessRules: y, isSubmitting: b = !1, submitError: te, foldersError: C, onRetryFolders: w, panelLabels: T = {}, panelStyles: E = {}, headingClassName: D = "dial-body-semi-text", destinationClassName: k = "dial-small-semi-text" }) => {
1274
+ }, Tt = ({ view: e, resource: t, roots: i, destination: o, onCreateFolder: s, onChangeFolderClick: c, changeFolderButtonRef: l, pendingDestination: f, onPendingDestinationChange: p, version: g, accessRules: y, isSubmitting: b = !1, submitError: te, foldersError: C, onRetryFolders: w, panelLabels: T = {}, panelStyles: E = {}, headingClassName: D = "dial-body-semi-text", destinationClassName: k = "dial-small-semi-text" }) => {
1270
1275
  let { saveToFolderHeading: A = "Save to folder", changeFolderLabel: ie = "Change", destinationAriaLabel: j = "Destination folder", versionHeading: M = "Version", keepVersionLabel: N = "Keep version {version}", saveAsNewVersionLabel: P = "Save as new version", newVersionLabel: ae = "Version", newVersionPlaceholder: se = "Enter new version", searchPlaceholder: ce = "Search folders", clearSearchAriaLabel: le = "Clear search", folderEmptyStateLabel: B, createFolderLabel: V, cancelCreatingFolderLabel: H, addSiblingFolderLabel: ue, addChildFolderLabel: U, createFolderEmptyNameError: W, createFolderInvalidNameError: G, createFolderDuplicateNameError: K, createFolderSameAsParentNameError: q, retryLabel: de = "Retry" } = T, { colors: J, folderTree: Y } = E, X = {
1271
1276
  ...oe({
1272
1277
  "--stf-heading-text": J?.headingText,
@@ -1276,8 +1281,8 @@ var U = /* @__PURE__ */ function(e) {
1276
1281
  }, Z = {
1277
1282
  border: J?.summaryBorder,
1278
1283
  background: J?.summaryBackground
1279
- }, [fe, Q] = a(""), pe = n(), me = r(() => [i.find((e) => e.key === o.rootKey)?.label ?? o.rootKey, ...o.path], [i, o]), he = i.find((e) => e.key === f?.rootKey), ge = f ? f.path[f.path.length - 1] ?? he?.label : void 0, _e = I(D, Tt.heading);
1280
- if (e === wt.ChangeFolder) return /* @__PURE__ */ R("div", {
1284
+ }, [fe, Q] = a(""), pe = n(), me = r(() => [i.find((e) => e.key === o.rootKey)?.label ?? o.rootKey, ...o.path], [i, o]), he = i.find((e) => e.key === f?.rootKey), ge = f ? f.path[f.path.length - 1] ?? he?.label : void 0, _e = I(D, wt.heading);
1285
+ if (e === Ct.ChangeFolder) return /* @__PURE__ */ R("div", {
1281
1286
  className: "flex flex-col gap-3",
1282
1287
  style: X,
1283
1288
  children: [
@@ -1301,7 +1306,7 @@ var U = /* @__PURE__ */ function(e) {
1301
1306
  })]
1302
1307
  })
1303
1308
  }),
1304
- /* @__PURE__ */ L(ct, {
1309
+ /* @__PURE__ */ L(st, {
1305
1310
  roots: i,
1306
1311
  destination: f,
1307
1312
  onDestinationChange: p,
@@ -1336,10 +1341,10 @@ var U = /* @__PURE__ */ function(e) {
1336
1341
  ]
1337
1342
  });
1338
1343
  let $ = g ? [{
1339
- value: Ct.Keep,
1344
+ value: St.Keep,
1340
1345
  label: N.replace("{version}", g.currentVersion)
1341
1346
  }, {
1342
- value: Ct.New,
1347
+ value: St.New,
1343
1348
  label: P,
1344
1349
  content: /* @__PURE__ */ L(x, {
1345
1350
  id: pe,
@@ -1389,7 +1394,7 @@ var U = /* @__PURE__ */ function(e) {
1389
1394
  className: "min-w-0 flex-1",
1390
1395
  children: /* @__PURE__ */ L(_, {
1391
1396
  name: me.join(" / "),
1392
- nameClassName: I(k, Tt.destination)
1397
+ nameClassName: I(k, wt.destination)
1393
1398
  })
1394
1399
  }), /* @__PURE__ */ L(v, {
1395
1400
  ref: l,
@@ -1424,14 +1429,14 @@ var U = /* @__PURE__ */ function(e) {
1424
1429
  })
1425
1430
  ]
1426
1431
  });
1427
- }, Dt = {
1432
+ }, Et = {
1428
1433
  backdrop: "_backdrop_1ie8s_6",
1429
1434
  panel: "_panel_1ie8s_10",
1430
1435
  divider: "_divider_1ie8s_15",
1431
1436
  footer: "_footer_1ie8s_19",
1432
1437
  content: "_content_1ie8s_23",
1433
1438
  title: "_title_1ie8s_28"
1434
- }, Ot = ({ isOpen: e, onClose: n, onSubmit: r, isSubmitDisabled: o = !1, returnFocusRef: s, labels: c = {}, colors: l, titleClassName: d = "dial-body-semi-text", destination: f, onDestinationChange: p, isSubmitting: m = !1, onPendingDestinationChange: h, ...g }) => {
1439
+ }, Dt = ({ isOpen: e, onClose: n, onSubmit: r, isSubmitDisabled: o = !1, returnFocusRef: s, labels: c = {}, colors: l, titleClassName: d = "dial-body-semi-text", destination: f, onDestinationChange: p, isSubmitting: m = !1, onPendingDestinationChange: h, ...g }) => {
1435
1440
  let { title: _ = "Save", changeFolderTitle: y = "Change folder", closeAriaLabel: b = "Close", backAriaLabel: x = "Back", cancelLabel: ee = "Cancel", saveLabel: S = "Save", savingLabel: te = "Saving…", selectLabel: ne = "Select" } = c, w = oe({
1436
1441
  "--sstf-backdrop-bg": l?.backdropBackground,
1437
1442
  "--sstf-panel-bg": l?.panelBackground,
@@ -1439,27 +1444,27 @@ var U = /* @__PURE__ */ function(e) {
1439
1444
  "--sstf-divider-border": l?.dividerBorder,
1440
1445
  "--sstf-scrollbar-thumb": l?.scrollbarThumb,
1441
1446
  "--sstf-title-text": l?.titleText
1442
- }), [T, E] = a(wt.Main), [O, re] = a(f), k = i(null), j = i(null);
1447
+ }), [T, E] = a(Ct.Main), [O, re] = a(f), k = i(null), j = i(null);
1443
1448
  t(() => {
1444
- e && E(wt.Main);
1449
+ e && E(Ct.Main);
1445
1450
  }, [e]);
1446
1451
  let M = i(T);
1447
1452
  t(() => {
1448
- M.current !== T && (M.current = T, T === wt.ChangeFolder ? k.current?.focus({ preventScroll: !0 }) : j.current?.focus({ preventScroll: !0 }));
1453
+ M.current !== T && (M.current = T, T === Ct.ChangeFolder ? k.current?.focus({ preventScroll: !0 }) : j.current?.focus({ preventScroll: !0 }));
1449
1454
  }, [T]);
1450
1455
  let N = i(e);
1451
1456
  t(() => {
1452
1457
  let t = N.current;
1453
1458
  N.current = e, t && !e && s?.current?.isConnected && s.current.focus({ preventScroll: !0 });
1454
1459
  }, [e, s]);
1455
- let P = T === wt.ChangeFolder, F = (e) => {
1460
+ let P = T === Ct.ChangeFolder, F = (e) => {
1456
1461
  re(e), h?.(e);
1457
1462
  }, ae = () => {
1458
- F(f), E(wt.ChangeFolder);
1463
+ F(f), E(Ct.ChangeFolder);
1459
1464
  }, se = () => {
1460
- h?.(f), E(wt.Main);
1465
+ h?.(f), E(Ct.Main);
1461
1466
  }, ce = () => {
1462
- O && p(O), E(wt.Main);
1467
+ O && p(O), E(Ct.Main);
1463
1468
  };
1464
1469
  return /* @__PURE__ */ R(A, {
1465
1470
  open: e,
@@ -1467,7 +1472,7 @@ var U = /* @__PURE__ */ function(e) {
1467
1472
  header: /* @__PURE__ */ L("span", {
1468
1473
  ref: k,
1469
1474
  tabIndex: -1,
1470
- className: I("block truncate outline-none", d, Dt.title),
1475
+ className: I("block truncate outline-none", d, Et.title),
1471
1476
  children: P ? y : _
1472
1477
  }),
1473
1478
  ariaLabel: _,
@@ -1478,13 +1483,13 @@ var U = /* @__PURE__ */ function(e) {
1478
1483
  closeDisabled: m,
1479
1484
  style: w,
1480
1485
  overlayStyle: w,
1481
- className: I(Dt.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1482
- overlayClassName: Dt.backdrop,
1483
- headerClassName: I("px-[22px]", Dt.divider),
1486
+ className: I(Et.panel, "tablet:w-[540px]! tablet:max-w-[calc(100%-32px)]!"),
1487
+ overlayClassName: Et.backdrop,
1488
+ headerClassName: I("px-[22px]", Et.divider),
1484
1489
  bodyClassName: "flex flex-col overflow-hidden",
1485
1490
  children: [/* @__PURE__ */ L("div", {
1486
- className: I("min-h-0 flex-1 overflow-y-auto p-[22px]", Dt.content),
1487
- children: /* @__PURE__ */ L(Et, {
1491
+ className: I("min-h-0 flex-1 overflow-y-auto p-[22px]", Et.content),
1492
+ children: /* @__PURE__ */ L(Tt, {
1488
1493
  ...g,
1489
1494
  view: T,
1490
1495
  destination: f,
@@ -1496,7 +1501,7 @@ var U = /* @__PURE__ */ function(e) {
1496
1501
  onPendingDestinationChange: F
1497
1502
  })
1498
1503
  }), /* @__PURE__ */ R("div", {
1499
- className: I("flex items-center justify-end gap-2 border-t px-4 py-4 desktop:px-3.5", Dt.footer),
1504
+ className: I("flex items-center justify-end gap-2 border-t px-4 py-4 desktop:px-3.5", Et.footer),
1500
1505
  children: [/* @__PURE__ */ L(v, {
1501
1506
  label: ee,
1502
1507
  className: "mobile:flex-1",
@@ -1521,4 +1526,4 @@ var U = /* @__PURE__ */ function(e) {
1521
1526
  });
1522
1527
  };
1523
1528
  //#endregion
1524
- export { Fe as PUBLISH_PANEL_CLASS, U as PublicationRuleFunction, Ae as PublishAccessRuleEditor, Pe as PublishAccessRules, W as PublishCalloutKind, Ge as PublishDependenciesList, G as PublishDependencyType, ct as PublishFoldersTree, gt as PublishFooter, qe as PublishHistoryList, dt as PublishPanel, Z as PublishPanelView, Et as SaveToFolderPanel, wt as SaveToFolderView, Ct as SaveVersionMode, vt as StandalonePublishPanel, Ot as StandaloneSaveToFolderPanel, St as UnpublishConfirmationDialog, _e as collectFolderKeys, K as derivePublishState, Q as filterFolderTree, de as formatPublishedDate, ve as fromFolderPathKey, we as getSiblingFolderNames, Ce as getUniqueFolderName, ge as mergeFolderPaths, me as sortFolderTree, be as toDialFileTree, $ as toFolderPathKey, X as usePublishFlow, fe as usePublishFolderView, Se as validateFolderName };
1529
+ export { Fe as PUBLISH_PANEL_CLASS, U as PublicationRuleFunction, Ae as PublishAccessRuleEditor, Pe as PublishAccessRules, W as PublishCalloutKind, We as PublishDependenciesList, G as PublishDependencyType, st as PublishFoldersTree, ht as PublishFooter, Ke as PublishHistoryList, ut as PublishPanel, Z as PublishPanelView, Tt as SaveToFolderPanel, Ct as SaveToFolderView, St as SaveVersionMode, _t as StandalonePublishPanel, Dt as StandaloneSaveToFolderPanel, xt as UnpublishConfirmationDialog, _e as collectFolderKeys, K as derivePublishState, Q as filterFolderTree, de as formatPublishedDate, ve as fromFolderPathKey, we as getSiblingFolderNames, Ce as getUniqueFolderName, ge as mergeFolderPaths, me as sortFolderTree, be as toDialFileTree, $ as toFolderPathKey, X as usePublishFlow, fe as usePublishFolderView, Se as validateFolderName };
@@ -4,10 +4,8 @@ import { PublishDependency, PublishDependencyType } from './publish-dependency';
4
4
  export interface PublishDependenciesLabels {
5
5
  /** Section heading. Default: `'Private dependencies'`. */
6
6
  title?: string;
7
- /** Warning shown under the heading: why a private dependency matters. */
7
+ /** Warning shown under the heading: why a private dependency matters; the host names the published entity in it. Default: a generic text about "this item". */
8
8
  description?: string;
9
- /** Label for a dependency that sits at the root of its owner's bucket. Default: `'Root folder'`. */
10
- rootLocation?: string;
11
9
  /** Label per kind of dependency. Defaults: `'Application'`, `'Toolset'`, `'Prompt'`, `'Skill'`, `'File'`. */
12
10
  typeLabels?: Partial<Record<PublishDependencyType, string>>;
13
11
  /** Text announced to screen readers when the section appears or its count changes; receives the count. */
@@ -1 +1 @@
1
- {"version":3,"file":"publish-dependencies-list.d.ts","sourceRoot":"","sources":["../../src/models/publish-dependencies-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6GAA6G;IAC7G,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,0GAA0G;IAC1G,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7C;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,2CAA2C;AAC3C,MAAM,WAAW,4BAA4B;IAC3C,oEAAoE;IACpE,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,sBAAsB;IACtB,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB;IACvB,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC"}
1
+ {"version":3,"file":"publish-dependencies-list.d.ts","sourceRoot":"","sources":["../../src/models/publish-dependencies-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,2DAA2D;AAC3D,MAAM,WAAW,yBAAyB;IACxC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+JAA+J;IAC/J,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6GAA6G;IAC7G,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5D,0GAA0G;IAC1G,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;CAC7C;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,oEAAoE;IACpE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,2CAA2C;AAC3C,MAAM,WAAW,4BAA4B;IAC3C,oEAAoE;IACpE,YAAY,EAAE,iBAAiB,EAAE,CAAC;IAClC,sBAAsB;IACtB,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oFAAoF;IACpF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uBAAuB;IACvB,MAAM,CAAC,EAAE,yBAAyB,CAAC;CACpC"}
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.3.0-rc.5",
4
+ "version": "1.3.1",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "sideEffects": [
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^19.2.8",
28
- "@epam/ai-dial-chat-shared": "1.3.0-rc.5",
28
+ "@epam/ai-dial-chat-shared": "1.3.1",
29
29
  "@epam/ai-dial-ui-kit": "^0.16.0",
30
30
  "@epam/ai-dial-react-file-manager": "^0.4.1"
31
31
  },