@orangelogic/design-system 2.156.0 → 2.158.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.
@@ -15,7 +15,7 @@ import "./content-builder.BU8X7I6V.js";
15
15
  import "./unsafe-html.Dff7-rCx.js";
16
16
  import { b as Xt } from "./_baseUniq.je-HWbb3.js";
17
17
  import { c as j } from "./component.styles.CRO4Odto.js";
18
- import { b as Y } from "./transformation.DGzjBg6V.js";
18
+ import { b as Y } from "./transformation.BDmd3kER.js";
19
19
  import { v as Kt } from "./v4.CKZ6klMF.js";
20
20
  import { c as V } from "./custom-element.L4WJXn1j.js";
21
21
  import { w as F } from "./watch.DOt4Mabe.js";
@@ -3,8 +3,8 @@ import { n as c, C as b } from "./lib-cortex-element.CVMmyPMC.js";
3
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
- import { L as y } from "./i18n.Bchq8v1d.js";
7
- import { w } from "./watch.DOt4Mabe.js";
6
+ import { L as w } from "./i18n.Bchq8v1d.js";
7
+ import { w as y } from "./watch.DOt4Mabe.js";
8
8
  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";
@@ -75,11 +75,13 @@ const z = p`insert,span[format]{background-color:var(--cx-color-success-200)}del
75
75
 
76
76
  /* Scale the number/bullet marker with the item's font (matches the content-builder text block's */
77
77
  .ProseMirror li::marker {
78
- color: var(--color);
79
- font-family: var(--font-family, inherit), var(--cx-font-sans);
80
78
  font-size: var(--font-size);
81
- font-style: var(--font-style, inherit);
82
- font-weight: var(--font-weight);
79
+ }
80
+
81
+ /* Highlight the full link range when the cursor is inside it. */
82
+ .ProseMirror .link--active {
83
+ background-color: var(--cx-color-primary-100);
84
+ border-radius: var(--cx-border-radius-x-small);
83
85
  }
84
86
 
85
87
  /* Keep a hyperlink's underline attached to superscript/subscript text. */
@@ -585,7 +587,7 @@ const S = {
585
587
  };
586
588
  let o = class extends b {
587
589
  constructor() {
588
- 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 = () => {
590
+ super(), this.localize = new w(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 = () => {
589
591
  const e = this.getAnchorID();
590
592
  !e || e !== this.anchorID || this.scrollIntoView({
591
593
  block: "start"
@@ -711,7 +713,7 @@ n([
711
713
  c({ attribute: "custom-line-height", reflect: !0, type: Boolean })
712
714
  ], o.prototype, "customLineHeight", 2);
713
715
  n([
714
- w("variant")
716
+ y("variant")
715
717
  ], o.prototype, "handleHeadingChange", 1);
716
718
  o = n([
717
719
  v("cx-header")
@@ -0,0 +1,163 @@
1
+ import { T as n, U as $ } from "./asset-link-format.QzzboHHE.js";
2
+ function R({
3
+ asset: p,
4
+ baseUrl: c,
5
+ extension: f,
6
+ options: _,
7
+ parameters: y,
8
+ transformations: r,
9
+ useSession: k = ""
10
+ }) {
11
+ if (c == null)
12
+ return "";
13
+ let i = c;
14
+ const s = r?.findLast(
15
+ (a) => a.key === n.Quality
16
+ );
17
+ if (s && (r = [
18
+ ...r?.filter(
19
+ (a) => a.key !== n.Quality
20
+ ) || [],
21
+ s
22
+ ]), r) {
23
+ const a = [];
24
+ for (let e = 0; e < r.length; e++) {
25
+ const o = r[e];
26
+ if (o.key === n.Rotate) {
27
+ let t = o.value.rotation ?? 0;
28
+ for (; r[e + 1]?.key === n.Rotate; )
29
+ e++, t += r[e].value.rotation ?? 0;
30
+ t !== 0 && a.push({ key: n.Rotate, value: { rotation: t } });
31
+ } else
32
+ a.push(o);
33
+ }
34
+ r = a;
35
+ }
36
+ r && r.length > 0 && (i += "/t/"), r?.forEach(({ key: a, value: e }) => {
37
+ if (a === n.Resize) {
38
+ if (e.unit === $.AspectRatio && e.ratioWidth && e.ratioHeight) {
39
+ i += `re_ar_${e.ratioWidth}:${e.ratioHeight}/`;
40
+ return;
41
+ }
42
+ const o = [
43
+ ...[
44
+ {
45
+ key: "re_w_",
46
+ value: Math.round(e.width ?? 0)
47
+ },
48
+ {
49
+ key: "re_h_",
50
+ value: Math.round(e.height ?? 0)
51
+ }
52
+ ].filter((t) => t.value !== void 0).map((t) => ({
53
+ key: t.key,
54
+ value: Math.round(Number(t.value))
55
+ })),
56
+ {
57
+ key: "re_rm_",
58
+ value: "stretch"
59
+ }
60
+ ];
61
+ o.forEach(({ key: t, value: d }, u) => {
62
+ i += `${t}${d}${u < o.length - 1 ? "," : ""}`;
63
+ }), i += "/";
64
+ }
65
+ if (a === n.Crop) {
66
+ const o = e.unit === $.AspectRatio && !!e.ratioWidth && !!e.ratioHeight, t = !e.disabledSize && !o, d = t && (e.x !== void 0 || e.y !== void 0), u = [
67
+ ...[
68
+ {
69
+ key: "c_",
70
+ value: e.mode
71
+ },
72
+ ...o ? [
73
+ {
74
+ key: "ar_",
75
+ value: `${e.ratioWidth}:${e.ratioHeight}`
76
+ }
77
+ ] : [],
78
+ ...t ? [
79
+ {
80
+ key: "c_w_",
81
+ value: Math.round(e.width ?? 0)
82
+ },
83
+ {
84
+ key: "c_h_",
85
+ value: Math.round(e.height ?? 0)
86
+ },
87
+ {
88
+ key: "c_x_",
89
+ value: Math.round(e.x ?? 0) === 0 && _?.omitZeroXY ? void 0 : Math.round(e.x ?? 0)
90
+ },
91
+ {
92
+ key: "c_y_",
93
+ value: Math.round(e.y ?? 0) === 0 && _?.omitZeroXY ? void 0 : Math.round(e.y ?? 0)
94
+ }
95
+ ] : [],
96
+ ...!d && e.focusMode && e.focusMode !== "manual" ? [
97
+ {
98
+ key: e.isFocusModeAuto ? "acm_" : "c_g_",
99
+ value: e.focusMode
100
+ }
101
+ ] : []
102
+ ].filter((h) => h.value !== void 0 && h.value !== null).map((h) => ({
103
+ key: h.key,
104
+ value: h.value
105
+ })),
106
+ ...o ? [] : [
107
+ {
108
+ key: "c_whu_",
109
+ value: "pixel"
110
+ }
111
+ ]
112
+ ];
113
+ u.forEach(({ key: h, value: v }, M) => {
114
+ const g = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(h);
115
+ i += `${h}${g ? Math.round(Number(v)) : v}${M < u.length - 1 ? "," : ""}`;
116
+ }), i += "/";
117
+ }
118
+ if (a === n.Rotate && ([
119
+ {
120
+ key: "r_a_",
121
+ value: e.rotation
122
+ }
123
+ ].filter((t) => t.value !== void 0).map((t) => ({
124
+ key: t.key,
125
+ value: Math.round(Number(t.value))
126
+ })).forEach(({ key: t, value: d }) => {
127
+ i += `${t}${d}`;
128
+ }), i += "/"), a === n.Quality) {
129
+ const o = [
130
+ {
131
+ key: "q_level_",
132
+ value: e.quality
133
+ }
134
+ ].filter((t) => t.value !== void 0).map((t) => ({
135
+ key: t.key,
136
+ value: Math.round(Number(t.value))
137
+ }));
138
+ o.forEach(({ key: t, value: d }, u) => {
139
+ i += `${t}${d}${u < o.length - 1 ? "," : ""}`;
140
+ }), i += "/";
141
+ }
142
+ if (a === n.Metadata) {
143
+ const o = [
144
+ {
145
+ key: "fl_keep_metadata",
146
+ value: e.keepMetadata
147
+ }
148
+ ].filter((t) => t.value !== void 0).map((t) => ({ key: t.key, value: t.value }));
149
+ o.forEach(({ key: t }, d) => {
150
+ i += `${t}${d < o.length - 1 ? "," : ""}`;
151
+ }), i += "/";
152
+ }
153
+ }), f && (i += `${p?.identifier ?? crypto.randomUUID()}${f}`);
154
+ const l = [];
155
+ return y && y.length > 0 && y.forEach(({ key: a, value: e }) => {
156
+ l.push(
157
+ `${encodeURIComponent(a.trim())}=${encodeURIComponent(e.trim())}`
158
+ );
159
+ }), c && k && l.push(`UseSession=${encodeURIComponent(k)}`), l.length > 0 && (i += `?${l.join("&")}`), i.endsWith("/") && (i = i.slice(0, -1)), i;
160
+ }
161
+ export {
162
+ R as b
163
+ };
@@ -3,14 +3,14 @@ import "../chunks/button.8syoJXYs.js";
3
3
  import "./space.js";
4
4
  import "../chunks/typography.IqHbnd3C.js";
5
5
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
6
- import { C as g } from "../chunks/asset-link-format.DzYh0_YS.js";
6
+ import { C as g } from "../chunks/asset-link-format.CUPqX8XL.js";
7
7
  import "../chunks/component.styles.CRO4Odto.js";
8
8
  import "../chunks/asset-link-format.QzzboHHE.js";
9
9
  import "../chunks/custom-element.L4WJXn1j.js";
10
10
  import "../chunks/i18n.Bchq8v1d.js";
11
11
  import "../chunks/watch.DOt4Mabe.js";
12
12
  import "../chunks/number.CtCaI0T_.js";
13
- import "../chunks/transformation.DGzjBg6V.js";
13
+ import "../chunks/transformation.BDmd3kER.js";
14
14
  import "../chunks/lit-element.jLBm65_O.js";
15
15
  import "../chunks/state.CSDxrqLd.js";
16
16
  import "../chunks/when.Dr1es41R.js";
@@ -33,7 +33,7 @@ import { default as Se } from "./format-number.js";
33
33
  import { default as De } from "./format-time.js";
34
34
  import { default as Be } from "./grid.js";
35
35
  import { default as he } from "./grid-item.js";
36
- import { C as Pe } from "../chunks/header.x8SZLjAG.js";
36
+ import { C as Pe } from "../chunks/header.e1FLwywx.js";
37
37
  import { C as Me } from "../chunks/hub-connection.CA_wS_wh.js";
38
38
  import { f } from "../chunks/icon.mxNZ85k0.js";
39
39
  import { C as Fe } from "../chunks/icon.mxNZ85k0.js";
@@ -1,7 +1,7 @@
1
1
  import "./copy-button.js";
2
2
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
3
3
  import "../chunks/component.styles.CRO4Odto.js";
4
- import { C as x } from "../chunks/header.x8SZLjAG.js";
4
+ import { C as x } from "../chunks/header.e1FLwywx.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
6
6
  import "../chunks/i18n.Bchq8v1d.js";
7
7
  import "../chunks/watch.DOt4Mabe.js";
@@ -1,4 +1,4 @@
1
- import { C as a } from "../chunks/asset-link-format.DzYh0_YS.js";
1
+ import { C as a } from "../chunks/asset-link-format.CUPqX8XL.js";
2
2
  import { C as t } from "../chunks/color-swatch-group.oFxwjebo.js";
3
3
  import { default as C } from "./file-on-demand.js";
4
4
  export {