@orangelogic/design-system 2.123.0 → 2.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/chunks/{asset.CPPr2-ir.js → asset.D_VITxRH.js} +6 -6
- package/library/chunks/{header.BrmqvtqC.js → header.WRWyUU36.js} +64 -68
- package/library/chunks/{list-editor.CSZvS-Fm.js → list-editor.CyHNKjuZ.js} +130 -123
- package/library/components/asset-link-format.js +1 -1
- package/library/components/atoms.js +1 -1
- package/library/components/header.js +1 -1
- package/library/components/list-editor.js +1 -1
- package/library/components/molecules.js +1 -1
- package/library/components/types.js +23971 -23718
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/header/header.d.ts +4 -0
- package/library/packages/events/src/events.d.ts +0 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +9 -3
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +7 -1
- package/library/packages/organisms/src/_v1/comment/comment.d.ts +67 -0
- package/library/packages/organisms/src/_v1/comment/components/comment-menu/comment-menu.d.ts +32 -0
- package/library/packages/organisms/src/_v1/comment/extensions/time.d.ts +63 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +0 -1
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +1 -4
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/types/src/asset-format-picker.d.ts +0 -1
- package/library/packages/types/src/content-builder.d.ts +2 -2
- package/library/react-web-component.d.ts +13 -1
- package/package.json +1 -1
- package/library/packages/events/src/cx-asset-format-picker-delete.d.ts +0 -6
|
@@ -453,12 +453,12 @@ export {
|
|
|
453
453
|
Fe as c,
|
|
454
454
|
Ce as d,
|
|
455
455
|
Ne as e,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
456
|
+
ge as f,
|
|
457
|
+
Le as g,
|
|
458
|
+
w as h,
|
|
459
|
+
$ as i,
|
|
460
|
+
U as j,
|
|
461
|
+
v as k,
|
|
462
462
|
j as l,
|
|
463
463
|
W as m,
|
|
464
464
|
x as n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import x from "../components/copy-button.js";
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
2
|
+
import { n as c, C as b } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
|
+
import { c as k } from "./component.styles.CRO4Odto.js";
|
|
4
4
|
import { i as p } from "./lit-element.jLBm65_O.js";
|
|
5
5
|
import { c as v } from "./custom-element.L4WJXn1j.js";
|
|
6
6
|
import { L as y } from "./i18n.NAH4U8Lw.js";
|
|
@@ -9,7 +9,7 @@ import { e as m } from "./query.BBf1UFkC.js";
|
|
|
9
9
|
import { e as u } from "./class-map.BiVq-cVR.js";
|
|
10
10
|
import { o as P } from "./style-map.llVFPd__.js";
|
|
11
11
|
import { n as M } from "./when.Dr1es41R.js";
|
|
12
|
-
import { i as
|
|
12
|
+
import { i as s, u as d } from "./static.UA3G1Deq.js";
|
|
13
13
|
const C = p`insert,span[format]{background-color:var(--cx-color-success-200)}delete{background-color:var(--cx-color-neutral-200);text-decoration:line-through}annotate{background-color:var(--cx-color-warning-200)}.ProseMirror figure[data-track*=deletion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=deletion],.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]{border:3px solid var(--cx-color-neutral);position:relative}.ProseMirror figure[data-track*=deletion] [data-node-type=figure]:after,.ProseMirror cx-rich-text-code-block[data-track*=deletion]:after,.ProseMirror cx-rich-text-image-viewer[data-track*=deletion]:after{content:"";box-sizing:border-box;pointer-events:none;background-image:repeating-linear-gradient(45deg, var(--cx-color-neutral), var(--cx-color-neutral) 10px, #fff 10px, #fff 20px);opacity:.4;width:100%;height:100%;position:absolute;top:0;left:0}.ProseMirror figure[data-track*=insertion] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=insertion],.ProseMirror cx-rich-text-image-viewer[data-track*=insertion]{border:3px solid var(--cx-color-success)}.ProseMirror figure[data-track*=annotation] [data-node-type=figure],.ProseMirror cx-rich-text-code-block[data-track*=annotation],.ProseMirror cx-rich-text-image-viewer[data-track*=annotation]{border:3px solid var(--cx-color-warning-200)}`, z = p`
|
|
14
14
|
.column-resize-handle {
|
|
15
15
|
background-color: var(--editor-table-resize-handle-color);
|
|
@@ -534,31 +534,31 @@ const C = p`insert,span[format]{background-color:var(--cx-color-success-200)}del
|
|
|
534
534
|
|
|
535
535
|
${C}
|
|
536
536
|
`;
|
|
537
|
-
var
|
|
538
|
-
const
|
|
539
|
-
var
|
|
540
|
-
for (var
|
|
541
|
-
(g = e[h]) && (
|
|
542
|
-
return
|
|
537
|
+
var t = /* @__PURE__ */ ((e) => (e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e))(t || {}), f = /* @__PURE__ */ ((e) => (e.Center = "center", e.Justify = "justify", e.Left = "left", e.Right = "right", e))(f || {});
|
|
538
|
+
const H = p`:host{--color:light-dark(#000,#fff);--font-family:var(--cx-font-sans);--text-align:left;--padding:0;width:100%;display:block}:host([alignment=center]) .container{--text-align:center;justify-content:center}:host([alignment=right]) .container{--text-align:right;flex-direction:row-reverse}:host([alignment=left]) .container{--text-align:left;justify-content:flex-start}:host([alignment=justify]) .container{--text-align:justify;justify-content:flex-start}.container{padding:var(--padding,0px);flex-direction:row;align-items:center;display:flex}.container ::slotted(p),.container p{line-height:var(--line-height,1.5);word-wrap:break-word}.heading{color:var(--color);font-family:var(--font-family);text-align:var(--text-align,left);max-width:100%;min-height:calc(var(--line-height,1) * 1em);flex:auto;min-height:1lh;margin-block:0}.container.container--has-copy-button .heading{flex:none;max-width:calc(100% - 32px)}.copy-button{opacity:0;transition:opacity var(--cx-transition-fast);color:var(--cx-color-neutral-600);pointer-events:none;user-select:none;line-height:0}.container:hover .copy-button,.copy-button:focus-within{opacity:1;pointer-events:auto;user-select:auto}.heading-1{font-size:var(--cx-font-size-3x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-2{font-size:var(--cx-font-size-2x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-3x-large))}.heading-3{font-size:var(--cx-font-size-x-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-2x-large))}.heading-4{font-size:var(--cx-font-size-large);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-x-large))}.heading-5{font-size:var(--cx-font-size-medium);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-large))}.heading-6{font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-semibold);line-height:var(--line-height,var(--cx-line-height-medium))}:host([custom-line-height]) .heading{line-height:unset}`;
|
|
539
|
+
var L = Object.defineProperty, A = Object.getOwnPropertyDescriptor, r = (e, n, a, l) => {
|
|
540
|
+
for (var i = l > 1 ? void 0 : l ? A(n, a) : n, h = e.length - 1, g; h >= 0; h--)
|
|
541
|
+
(g = e[h]) && (i = (l ? g(n, a, i) : g(i)) || i);
|
|
542
|
+
return l && i && L(n, a, i), i;
|
|
543
543
|
};
|
|
544
544
|
const S = {
|
|
545
|
-
[
|
|
546
|
-
[
|
|
547
|
-
[
|
|
548
|
-
[
|
|
549
|
-
[
|
|
550
|
-
[
|
|
545
|
+
[t.H1]: "heading-1",
|
|
546
|
+
[t.H2]: "heading-2",
|
|
547
|
+
[t.H3]: "heading-3",
|
|
548
|
+
[t.H4]: "heading-4",
|
|
549
|
+
[t.H5]: "heading-5",
|
|
550
|
+
[t.H6]: "heading-6"
|
|
551
551
|
}, T = {
|
|
552
|
-
[
|
|
553
|
-
[
|
|
554
|
-
[
|
|
555
|
-
[
|
|
556
|
-
[
|
|
557
|
-
[
|
|
552
|
+
[t.H1]: s`h1`,
|
|
553
|
+
[t.H2]: s`h2`,
|
|
554
|
+
[t.H3]: s`h3`,
|
|
555
|
+
[t.H4]: s`h4`,
|
|
556
|
+
[t.H5]: s`h5`,
|
|
557
|
+
[t.H6]: s`h6`
|
|
558
558
|
};
|
|
559
|
-
let
|
|
559
|
+
let o = class extends b {
|
|
560
560
|
constructor() {
|
|
561
|
-
super(), this.localize = new y(this), this.variant =
|
|
561
|
+
super(), this.localize = new y(this), this.variant = t.H6, this.fontSize = void 0, this.hasAnchorLink = !1, this.anchorLink = "", this.alignment = f.Left, this.disabledCopyButton = !1, this.customLineHeight = !1, this.cms5PageReadyTimeout = null, this.scrollToAnchor = () => {
|
|
562
562
|
const e = this.getAnchorID();
|
|
563
563
|
!e || e !== this.anchorID || this.scrollIntoView({
|
|
564
564
|
block: "start"
|
|
@@ -634,67 +634,63 @@ let t = class extends k {
|
|
|
634
634
|
e.stopPropagation();
|
|
635
635
|
}
|
|
636
636
|
renderHeading(e) {
|
|
637
|
-
const
|
|
638
|
-
return d`<${a} part="heading" class=${u({ heading: !0, [
|
|
639
|
-
fontSize:
|
|
640
|
-
/**
|
|
641
|
-
* Reset line-height to the font's natural value so descenders fit
|
|
642
|
-
* inside the heading box; the host's tight `--line-height: 1`
|
|
643
|
-
* truncates glyph metrics at large custom font sizes and triggers a
|
|
644
|
-
* scrollbar in overflow:auto parents (e.g. cx-column).
|
|
645
|
-
*/
|
|
646
|
-
lineHeight: i ? "normal" : void 0
|
|
637
|
+
const n = S[this.variant], a = T[this.variant], l = /\d/.test(this.fontSize || "");
|
|
638
|
+
return d`<${a} part="heading" class=${u({ heading: !0, [n]: !0 })} style=${P({
|
|
639
|
+
fontSize: l ? this.fontSize : void 0
|
|
647
640
|
})}>${e}</${a}>`;
|
|
648
641
|
}
|
|
649
642
|
render() {
|
|
650
|
-
const e = this.hasAnchorLink ? `${this.ownerWindow.location.href.split("#")[0]}#${encodeURIComponent(this.anchorID)}` : "",
|
|
643
|
+
const e = this.hasAnchorLink ? `${this.ownerWindow.location.href.split("#")[0]}#${encodeURIComponent(this.anchorID)}` : "", n = this.hasAnchorLink && !this.disabledCopyButton;
|
|
651
644
|
return d`<div part="base" class=${u({
|
|
652
645
|
container: !0,
|
|
653
|
-
"container--has-copy-button":
|
|
646
|
+
"container--has-copy-button": n
|
|
654
647
|
})}>${this.renderHeading(d`<slot></slot>`)}
|
|
655
|
-
${M(
|
|
648
|
+
${M(n, () => d`<cx-copy-button part="copy-button" class="copy-button" value=${e} hoist="" label=${this.localize.term("copy")} @click=${this.handleCopyButtonClick}><cx-icon slot="copy-icon" name="attachment"></cx-icon></cx-copy-button>`)}</div>`;
|
|
656
649
|
}
|
|
657
650
|
};
|
|
658
|
-
|
|
659
|
-
|
|
651
|
+
o.styles = [
|
|
652
|
+
k,
|
|
660
653
|
z,
|
|
661
|
-
|
|
654
|
+
H
|
|
662
655
|
];
|
|
663
|
-
|
|
656
|
+
o.dependencies = {
|
|
664
657
|
"cx-copy-button": x
|
|
665
658
|
};
|
|
666
|
-
|
|
659
|
+
r([
|
|
667
660
|
m("slot")
|
|
668
|
-
],
|
|
669
|
-
|
|
661
|
+
], o.prototype, "defaultSlot", 2);
|
|
662
|
+
r([
|
|
670
663
|
m(".heading")
|
|
671
|
-
],
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
],
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
],
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
],
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
],
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
],
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
],
|
|
690
|
-
|
|
664
|
+
], o.prototype, "heading", 2);
|
|
665
|
+
r([
|
|
666
|
+
c({ reflect: !0, type: String })
|
|
667
|
+
], o.prototype, "variant", 2);
|
|
668
|
+
r([
|
|
669
|
+
c({ attribute: "font-size", reflect: !0, type: String })
|
|
670
|
+
], o.prototype, "fontSize", 2);
|
|
671
|
+
r([
|
|
672
|
+
c({ attribute: "has-anchor-link", type: Boolean })
|
|
673
|
+
], o.prototype, "hasAnchorLink", 2);
|
|
674
|
+
r([
|
|
675
|
+
c({ attribute: "anchor-link", type: String })
|
|
676
|
+
], o.prototype, "anchorLink", 2);
|
|
677
|
+
r([
|
|
678
|
+
c({ type: String })
|
|
679
|
+
], o.prototype, "alignment", 2);
|
|
680
|
+
r([
|
|
681
|
+
c({ attribute: "disabled-copy-button", reflect: !0, type: Boolean })
|
|
682
|
+
], o.prototype, "disabledCopyButton", 2);
|
|
683
|
+
r([
|
|
684
|
+
c({ attribute: "custom-line-height", reflect: !0, type: Boolean })
|
|
685
|
+
], o.prototype, "customLineHeight", 2);
|
|
686
|
+
r([
|
|
691
687
|
w("variant")
|
|
692
|
-
],
|
|
693
|
-
|
|
688
|
+
], o.prototype, "handleHeadingChange", 1);
|
|
689
|
+
o = r([
|
|
694
690
|
v("cx-header")
|
|
695
|
-
],
|
|
691
|
+
], o);
|
|
696
692
|
export {
|
|
697
693
|
f as A,
|
|
698
|
-
|
|
699
|
-
|
|
694
|
+
o as C,
|
|
695
|
+
t as V
|
|
700
696
|
};
|