@orangelogic/design-system 2.203.0 → 2.205.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.
@@ -10,7 +10,7 @@ import "./form.DSsy3Fcy.js";
10
10
  import { L as G } from "./i18n.DbXTTLXx.js";
11
11
  import { a as ae } from "./string.CfI2ejyR.js";
12
12
  import "./date-picker.BGHn6qg8.js";
13
- import { a as Rt, r as jt, b as oe, c as re, d as dt } from "./transformation.DhMUTZnT.js";
13
+ import { a as Rt, r as jt, b as oe, c as re, d as dt } from "./transformation.Bjs3TBPd.js";
14
14
  import "./unsafe-html.Dff7-rCx.js";
15
15
  import { b as ne } from "./_baseUniq.lwMgmtt2.js";
16
16
  import { c as Q } from "./component.styles.CRO4Odto.js";
@@ -7,7 +7,7 @@ import { C as Et } from "./button.BnkkUqiI.js";
7
7
  import { C as xn, o as Rn, O as Sn } from "./dialog.B6hZ7fvn.js";
8
8
  import { C as oi } from "./icon-button.CVrxJcZq.js";
9
9
  import Pt from "../components/tooltip.js";
10
- import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.Ci418pnA.js";
10
+ import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.GT3J-T2_.js";
11
11
  import { c as Ie } from "./custom-element.L4WJXn1j.js";
12
12
  import { L as tt } from "./i18n.DbXTTLXx.js";
13
13
  import { b as zn, S as _n, c as No, p as On, w as V, E as An } from "./watch.DJF5K-8U.js";
@@ -47,7 +47,7 @@ import "./browser.BHOCIF_A.js";
47
47
  import "./form.DSsy3Fcy.js";
48
48
  import "./purify.es.BIuh5IAZ.js";
49
49
  import { D as Ur, a as sa, t as oa, b as Kr } from "./date-picker.BGHn6qg8.js";
50
- import { D as Ti } from "./transformation.DhMUTZnT.js";
50
+ import { D as Ti } from "./transformation.Bjs3TBPd.js";
51
51
  import { s as P, h as Bo, b as Ui, c as lo } from "./string.CfI2ejyR.js";
52
52
  import { a as ra } from "./_commonjsHelpers.DQNKXVTB.js";
53
53
  import { d as na } from "./debounce.Bv1rtE8D.js";
@@ -23,7 +23,7 @@ import { L as LocalizeController } from "./i18n.DbXTTLXx.js";
23
23
  import "./purify.es.BIuh5IAZ.js";
24
24
  import { w as watch } from "./watch.DJF5K-8U.js";
25
25
  import "./date-picker.BGHn6qg8.js";
26
- import { f as fetchCortexApi } from "./transformation.DhMUTZnT.js";
26
+ import { f as fetchCortexApi } from "./transformation.Bjs3TBPd.js";
27
27
  import "./unsafe-html.Dff7-rCx.js";
28
28
  import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
29
29
  import { a as getDefaultExportFromCjs, c as commonjsGlobal } from "./_commonjsHelpers.DQNKXVTB.js";
@@ -1,4 +1,4 @@
1
- import { D as f } from "./transformation.DhMUTZnT.js";
1
+ import { D as f } from "./transformation.Bjs3TBPd.js";
2
2
  function h(n, e) {
3
3
  return n.filter((r, t) => t !== e);
4
4
  }
@@ -1,8 +1,8 @@
1
1
  import { c as k } from "./capitalize.CIBKBL10.js";
2
2
  import { C as $, T as R, U as M } from "./asset-link-format.ClaYu_v8.js";
3
3
  import { P as v } from "./position-picker.DjnhxIKF.js";
4
- const y = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
5
- function ae(e, i, n, u = y) {
4
+ const L = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
5
+ function ae(e, i, n, u = L) {
6
6
  const c = new URL(u + "/" + e);
7
7
  return Array.isArray(n) ? n.forEach((a) => {
8
8
  a[1] && c.searchParams.append(a[0], a[1]);
@@ -11,8 +11,8 @@ function ae(e, i, n, u = y) {
11
11
  }), fetch(c, i);
12
12
  }
13
13
  const oe = "space-default";
14
- var L = /* @__PURE__ */ ((e) => (e.Desktop = "desktop", e.Mobile = "mobile", e.Tablet = "tablet", e))(L || {});
15
- const w = {
14
+ var p = /* @__PURE__ */ ((e) => (e.Desktop = "desktop", e.Mobile = "mobile", e.Tablet = "tablet", e))(p || {});
15
+ const F = {
16
16
  canvasWidth: "",
17
17
  height: "",
18
18
  id: "desktop",
@@ -21,7 +21,7 @@ const w = {
21
21
  "desktop"
22
22
  /* Desktop */
23
23
  )
24
- }, F = {
24
+ }, w = {
25
25
  canvasWidth: "770px",
26
26
  height: "",
27
27
  id: "tablet",
@@ -39,14 +39,14 @@ const w = {
39
39
  "mobile"
40
40
  /* Mobile */
41
41
  )
42
- }, re = [w, F, W];
42
+ }, re = [F, w, W];
43
43
  var B = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(D || {}), U = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(U || {}), G = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(G || {}), I = /* @__PURE__ */ ((e) => (e.Accordion = "BlockAccordion", e.Analytics = "BlockAnalytics", e.Audio = "BlockAudio", e.Button = "BlockButton", e.Carousel = "BlockCarousel", e.ColorSwatches = "BlockColorSwatches", e.Column = "BlockCell", e.ColumnGroup = "BlockColumns", e.DamView = "BlockDamView", e.Divider = "BlockDivider", e.DocumentViewer = "BlockDocumentViewer", e.FontKit = "BlockFontKit", e.Gallery = "BlockGallery", e.Header = "BlockHeader", e.Image = "BlockImage", e.RichText = "BlockRichText", e.SearchBox = "BlockSearchBox", e.TabGroup = "BlockTabs", e.Text = "BlockText", e.Timeline = "BlockTimeline", e.Video = "BlockVideo", e))(I || {});
44
44
  const se = Object.values(I).filter(
45
45
  (e) => e !== "BlockCell"
46
46
  /* Column */
47
47
  );
48
- var K = /* @__PURE__ */ ((e) => (e.Carousel = "carousel", e.Gallery = "gallery", e))(K || {}), j = /* @__PURE__ */ ((e) => (e.Templates = "TEMPLATES", e.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", e.TranslatableTexts = "TRANSLATABLE_TEXTS", e))(j || {});
49
- const _ = "/AssetLink/", V = {
48
+ var K = /* @__PURE__ */ ((e) => (e.Carousel = "carousel", e.Gallery = "gallery", e))(K || {}), V = /* @__PURE__ */ ((e) => (e.Templates = "TEMPLATES", e.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", e.TranslatableTexts = "TRANSLATABLE_TEXTS", e))(V || {});
49
+ const _ = "/AssetLink/", X = {
50
50
  [v.BottomCenter]: $.South,
51
51
  [v.BottomLeft]: $.Southwest,
52
52
  [v.BottomRight]: $.Southeast,
@@ -56,8 +56,8 @@ const _ = "/AssetLink/", V = {
56
56
  [v.TopCenter]: $.North,
57
57
  [v.TopLeft]: $.Northwest,
58
58
  [v.TopRight]: $.Northeast
59
- }, g = "/t/", X = [400, 800, 1200, 1600, 2400], z = 0.15;
60
- function H({
59
+ }, g = "/t/", z = [400, 800, 1200, 1600, 2400], H = 0.15;
60
+ function Y({
61
61
  asset: e,
62
62
  baseUrl: i,
63
63
  extension: n,
@@ -160,7 +160,7 @@ function H({
160
160
  ...!m && t.focusMode === "manual" && t.position ? [
161
161
  {
162
162
  key: "c_g_",
163
- value: V[t.position]
163
+ value: X[t.position]
164
164
  }
165
165
  ] : []
166
166
  ].filter((C) => C.value !== void 0 && C.value !== null).map((C) => ({
@@ -175,8 +175,8 @@ function H({
175
175
  ]
176
176
  ];
177
177
  A.forEach(({ key: C, value: b }, x) => {
178
- const p = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(C);
179
- r += `${C}${p ? Math.round(Number(b)) : b}${x < A.length - 1 ? "," : ""}`;
178
+ const y = ["c_w_", "c_h_", "c_x_", "c_y_"].includes(C);
179
+ r += `${C}${y ? Math.round(Number(b)) : b}${x < A.length - 1 ? "," : ""}`;
180
180
  }), r += "/";
181
181
  }
182
182
  if (l === R.Rotate && ([
@@ -227,7 +227,7 @@ function ce(e, i, n = {}) {
227
227
  const u = n.format === T && S(n.extension), c = !!n.autoFormat && !u;
228
228
  if (!e || !i?.length && !c)
229
229
  return e;
230
- const a = i?.length ? H({ baseUrl: "", transformations: i }).replace(/\/t\//g, "") : "";
230
+ const a = i?.length ? Y({ baseUrl: "", transformations: i }).replace(/\/t\//g, "") : "";
231
231
  if (!a && !c)
232
232
  return e;
233
233
  const f = e.indexOf(_);
@@ -241,7 +241,7 @@ function ce(e, i, n = {}) {
241
241
  );
242
242
  return x.length === 0 ? e : `${r}${o}${g}${x.join("/")}`;
243
243
  }
244
- function Y(e) {
244
+ function j(e) {
245
245
  return `re_w_${Math.round(e)}`;
246
246
  }
247
247
  function q(e, i) {
@@ -250,7 +250,7 @@ function q(e, i) {
250
250
  const n = e.indexOf(_);
251
251
  if (n < 0)
252
252
  return e;
253
- const u = Y(i), c = e.slice(0, n + _.length), a = e.slice(n + _.length), f = a.indexOf(g);
253
+ const u = j(i), c = e.slice(0, n + _.length), a = e.slice(n + _.length), f = a.indexOf(g);
254
254
  if (f >= 0) {
255
255
  const h = a.slice(0, f), s = a.slice(
256
256
  f + g.length
@@ -276,15 +276,8 @@ function Q(e) {
276
276
  return u < 0 ? !1 : n.slice(u + g.length).includes("/");
277
277
  }
278
278
  const T = "TRX", N = "TR1", Z = /* @__PURE__ */ new Set([
279
- "avif",
280
- "bmp",
281
279
  "gif",
282
- "ico",
283
- "jpeg",
284
- "jpg",
285
- "png",
286
- "svg",
287
- "webp"
280
+ "svg"
288
281
  ]);
289
282
  function O(e) {
290
283
  if (!e)
@@ -336,7 +329,7 @@ function ue(e, i) {
336
329
  function he(e, i = {}) {
337
330
  if (!e.includes(_) || Q(e) || i.format === T && S(i.extension))
338
331
  return "";
339
- const { maxWidth: n, widths: u = X } = i, c = [...u].filter((s) => Number.isFinite(s) && s > 0).sort((s, l) => s - l);
332
+ const { maxWidth: n, widths: u = z } = i, c = [...u].filter((s) => Number.isFinite(s) && s > 0).sort((s, l) => s - l);
340
333
  if (c.length === 0)
341
334
  return "";
342
335
  let a = c;
@@ -345,7 +338,7 @@ function he(e, i = {}) {
345
338
  a = s.length > 0 ? s : [c[0]];
346
339
  }
347
340
  const f = n !== void 0 && Number.isFinite(n) && n > 0, h = (f ? a.filter(
348
- (s) => n > s * (1 + z)
341
+ (s) => n > s * (1 + H)
349
342
  ) : a).map(
350
343
  (s) => `${q(e, s)} ${s}w`
351
344
  );
@@ -357,7 +350,7 @@ function fe(e, i = 100) {
357
350
  export {
358
351
  D as A,
359
352
  I as B,
360
- L as D,
353
+ p as D,
361
354
  U as E,
362
355
  B as P,
363
356
  oe as S,
@@ -365,14 +358,14 @@ export {
365
358
  ce as a,
366
359
  he as b,
367
360
  de as c,
368
- H as d,
361
+ Y as d,
369
362
  fe as e,
370
363
  ae as f,
371
364
  K as g,
372
- j as h,
365
+ V as h,
373
366
  se as i,
374
367
  re as j,
375
- X as k,
368
+ z as k,
376
369
  E as l,
377
370
  q as m,
378
371
  le as n,
@@ -3,7 +3,7 @@ import "../chunks/button.BnkkUqiI.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 h } from "../chunks/asset-link-format.CQu5-Ftq.js";
6
+ import { C as h } from "../chunks/asset-link-format.C6BPob3e.js";
7
7
  import "../chunks/component.styles.CRO4Odto.js";
8
8
  import "../chunks/asset-link-format.ClaYu_v8.js";
9
9
  import "../chunks/position-picker.DjnhxIKF.js";
@@ -11,7 +11,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
11
11
  import "../chunks/i18n.DbXTTLXx.js";
12
12
  import "../chunks/watch.DJF5K-8U.js";
13
13
  import "../chunks/number.Cx2ncfJJ.js";
14
- import "../chunks/transformation.DhMUTZnT.js";
14
+ import "../chunks/transformation.Bjs3TBPd.js";
15
15
  import "../chunks/lit-element.jLBm65_O.js";
16
16
  import "../chunks/state.CSDxrqLd.js";
17
17
  import "../chunks/when.Dr1es41R.js";
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
20
20
  import { default as Y } from "./diff.js";
21
21
  import { C as _ } from "../chunks/dialog.B6hZ7fvn.js";
22
22
  import { default as oe } from "./divider.js";
23
- import { C as ae } from "../chunks/document-viewer.CwSM3a_i.js";
23
+ import { C as ae } from "../chunks/document-viewer.CfH1u-Ds.js";
24
24
  import { C as xe } from "../chunks/dot-pagination.BqGFeFXK.js";
25
25
  import { default as me } from "./dot-status.js";
26
26
  import { default as pe } from "./drawer.js";
@@ -3,13 +3,13 @@ import "../chunks/typography.IqHbnd3C.js";
3
3
  import "../chunks/lib-cortex-element.CVMmyPMC.js";
4
4
  import "../chunks/color-swatch.D6Gg5bpz.js";
5
5
  import "../chunks/component.styles.CRO4Odto.js";
6
- import { C as v } from "../chunks/color-swatch-group.DSb2oDkj.js";
7
- import "../chunks/transformation.DhMUTZnT.js";
6
+ import { C as v } from "../chunks/color-swatch-group.BEYWPmp0.js";
7
+ import "../chunks/transformation.Bjs3TBPd.js";
8
8
  import "../chunks/custom-element.L4WJXn1j.js";
9
9
  import "../chunks/debounce.DaHuiSGU.js";
10
10
  import "../chunks/i18n.DbXTTLXx.js";
11
11
  import "../chunks/watch.DJF5K-8U.js";
12
- import "../chunks/toast.Ci418pnA.js";
12
+ import "../chunks/toast.GT3J-T2_.js";
13
13
  import "../chunks/lit-element.jLBm65_O.js";
14
14
  import "../chunks/state.CSDxrqLd.js";
15
15
  import "../chunks/query.BBf1UFkC.js";
@@ -1,5 +1,5 @@
1
1
  import "../chunks/resizable-component.styles.CAfXABBc.js";
2
- import { C as b } from "../chunks/document-viewer.CwSM3a_i.js";
2
+ import { C as b } from "../chunks/document-viewer.CfH1u-Ds.js";
3
3
  import "../chunks/component.styles.CRO4Odto.js";
4
4
  import "../chunks/index.Cpamj0jB.js";
5
5
  import "../chunks/custom-element.L4WJXn1j.js";
@@ -1,5 +1,5 @@
1
- import { C as a } from "../chunks/asset-link-format.CQu5-Ftq.js";
2
- import { C as t } from "../chunks/color-swatch-group.DSb2oDkj.js";
1
+ import { C as a } from "../chunks/asset-link-format.C6BPob3e.js";
2
+ import { C as t } from "../chunks/color-swatch-group.BEYWPmp0.js";
3
3
  import { default as C } from "./file-on-demand.js";
4
4
  export {
5
5
  a as CxAssetLinkFormat,