@abyss-project/commons-front-core 18.1.0 → 18.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/catalog/pages/CookieConsent.tsx +51 -0
  3. package/catalog/specs/cookie-consent-modal.spec.ts +145 -5
  4. package/dist/CookieConsentSettings-CLB1Mlv5.js +687 -0
  5. package/dist/{Surface-z5TuQzlh.js → Surface-B_wIEB3b.js} +9 -9
  6. package/dist/{Tabs-C4K0mLME.js → Tabs-MVmpclcZ.js} +1 -1
  7. package/dist/components/business/CookieConsent/containing-block.d.ts +19 -0
  8. package/dist/components/business/CookieConsent/containing-block.spec.d.ts +1 -0
  9. package/dist/components/business/CookieConsent/use-banner-portal.d.ts +9 -0
  10. package/dist/cookie-consent.js +2 -2
  11. package/dist/{design-theme-BFkCN7Nz.js → design-theme-Bcu3EMIB.js} +1 -1
  12. package/dist/{editors-Eb3PHnxn.js → editors-D0JP2AdM.js} +27 -27
  13. package/dist/editors.js +1 -1
  14. package/dist/{index-CWD0waD8.js → index-B7TbdCxd.js} +2 -2
  15. package/dist/{index-z5ZOXlY8.js → index-BTQOcRMg.js} +4 -4
  16. package/dist/{index-BlOP01yA.js → index-BXwVo31B.js} +2 -2
  17. package/dist/{index-CtVoDSIn.js → index-BgK7ZufI.js} +2 -2
  18. package/dist/{index-2lNOK7eK.js → index-BhfgX3oc.js} +2 -2
  19. package/dist/{index-Ckzcg8qD.js → index-BiBtwp14.js} +4 -4
  20. package/dist/{index-BaL2x2GW.js → index-COEwfkxf.js} +3 -3
  21. package/dist/{index-CFDEfvCD.js → index-CTbeT-N0.js} +1 -1
  22. package/dist/{index-CQ7z2zKY.js → index-CTmmM3bQ.js} +4 -4
  23. package/dist/{index-CRFGogWn.js → index-CVRa0oBj.js} +2 -2
  24. package/dist/{index-Ckzmgx9X.js → index-CorW4VOJ.js} +3 -3
  25. package/dist/{index-BcO-JFrs.js → index-CxQaYgoB.js} +2 -2
  26. package/dist/{index-Dqm1dC1j.js → index-DB03r0_G.js} +2 -2
  27. package/dist/{index-Bw4XnSa0.js → index-DHwatinf.js} +2 -2
  28. package/dist/{index-DRtBc440.js → index-DOniqiUF.js} +2 -2
  29. package/dist/{index-CYBvIQsH.js → index-DS7PaGaq.js} +3 -3
  30. package/dist/{index-CrZZo4r1.js → index-DWOXLAjk.js} +2 -2
  31. package/dist/{index-CtkfWhK1.js → index-P3mYGVW9.js} +2 -2
  32. package/dist/{index-CUhMNEUo.js → index-WbhbeBj8.js} +3 -3
  33. package/dist/{index-B76nCWpd.js → index-WnQHBsCS.js} +2 -2
  34. package/dist/{index-BKRudpMw.js → index-tTzlUmYK.js} +2 -2
  35. package/dist/index.js +1312 -1301
  36. package/dist/legacy.js +6 -6
  37. package/dist/test/vitest-workers.d.ts +18 -0
  38. package/dist/test/vitest-workers.spec.d.ts +1 -0
  39. package/package.json +1 -1
  40. package/vitest.config.ts +6 -0
  41. package/dist/CookieConsentSettings-DUoKKRMZ.js +0 -595
@@ -1,11 +1,11 @@
1
1
  import { jsx as d, jsxs as C } from "react/jsx-runtime";
2
- import { useId as x, useRef as Y, useState as V, useCallback as X, useMemo as re, forwardRef as ae } from "react";
2
+ import { useId as x, useRef as Y, useState as H, useCallback as X, useMemo as re, forwardRef as ae } from "react";
3
3
  import { useIntl as G } from "react-intl";
4
4
  import ne from "@mui/material/Dialog";
5
5
  import J from "@mui/material/IconButton";
6
6
  import { alpha as se, styled as g, useTheme as le } from "@mui/material/styles";
7
7
  import $ from "@mui/icons-material/Close";
8
- import H from "@mui/material/useMediaQuery";
8
+ import V from "@mui/material/useMediaQuery";
9
9
  import ce from "@mui/material/Modal";
10
10
  import de from "@mui/material/Slide";
11
11
  import { enTranslation as ue, frTranslation as pe } from "@abyss-project/main";
@@ -127,9 +127,9 @@ const ee = {
127
127
  }), ye = (e, t, o = "fast") => t.map(
128
128
  (i) => `${i} ${e.design.durations[o]}ms ${e.design.easings.standard}`
129
129
  ).join(", "), Ee = () => {
130
- const e = H(w.up(R.Desktop), {
130
+ const e = V(w.up(R.Desktop), {
131
131
  noSsr: !0
132
- }), t = H(w.down(R.Tablet), {
132
+ }), t = V(w.down(R.Tablet), {
133
133
  noSsr: !0
134
134
  });
135
135
  return e ? R.Desktop : t ? R.Mobile : R.Tablet;
@@ -222,7 +222,7 @@ function De({
222
222
  closeLabel: r,
223
223
  children: n
224
224
  }) {
225
- const h = le(), v = G(), y = x(), f = Y(null), A = Y(null), [E, N] = V(0), [u, l] = V(!1), s = (T) => {
225
+ const h = le(), v = G(), y = x(), f = Y(null), A = Y(null), [E, N] = H(0), [u, l] = H(!1), s = (T) => {
226
226
  T.currentTarget.setPointerCapture(T.pointerId), A.current = T.clientY, l(!0);
227
227
  }, p = (T) => {
228
228
  A.current !== null && N(Math.max(0, T.clientY - A.current));
@@ -543,12 +543,12 @@ const q = (e) => e, te = {
543
543
  })
544
544
  };
545
545
  var D = /* @__PURE__ */ ((e) => (e.FREEMIUM = "FREEMIUM", e.DEFAULT = "DEFAULT", e.CUSTOM = "CUSTOM", e.SYSTEM = "SYSTEM", e))(D || {}), O = /* @__PURE__ */ ((e) => (e.FREEMIUM = "freemium", e.STARTER = "starter", e.PRO = "pro", e.ENTERPRISE = "enterprise", e.CUSTOM = "custom", e.INTERNAL = "internal", e.FAMILY_FREE = "family-free", e.FAMILY_PAID = "family-paid", e.DEMO = "demo", e))(O || {});
546
- const Ve = {
546
+ const He = {
547
547
  [D.FREEMIUM]: O.FREEMIUM,
548
548
  [D.DEFAULT]: "paid",
549
549
  [D.SYSTEM]: O.INTERNAL,
550
550
  [D.CUSTOM]: O.CUSTOM
551
- }, He = new Set(Object.values(O)), U = (e) => e ? e.tier === D.CUSTOM ? O.CUSTOM : e.catalogKey && He.has(e.catalogKey) ? e.catalogKey : Ve[e.tier] ?? "paid" : O.FREEMIUM, Ct = (e, t) => {
551
+ }, Ve = new Set(Object.values(O)), U = (e) => e ? e.tier === D.CUSTOM ? O.CUSTOM : e.catalogKey && Ve.has(e.catalogKey) ? e.catalogKey : He[e.tier] ?? "paid" : O.FREEMIUM, Ct = (e, t) => {
552
552
  const o = (v) => {
553
553
  const y = e[`${v}Tier`];
554
554
  if (typeof y != "string")
@@ -1536,7 +1536,7 @@ const Ve = {
1536
1536
  status: "Statut",
1537
1537
  event: "Événement",
1538
1538
  attempts: "Tentatives",
1539
- code: "Code de réponse",
1539
+ code: "Code HTTP",
1540
1540
  created: "Créée",
1541
1541
  delivered: "Livrée"
1542
1542
  },
@@ -3936,7 +3936,7 @@ const Ve = {
3936
3936
  status: "Status",
3937
3937
  event: "Event",
3938
3938
  attempts: "Attempts",
3939
- code: "Response code",
3939
+ code: "HTTP code",
3940
3940
  created: "Created",
3941
3941
  delivered: "Delivered"
3942
3942
  },
@@ -8,7 +8,7 @@ import hn from "@mui/material/Select";
8
8
  import { styled as l, useTheme as bn, getContrastRatio as ke } from "@mui/material/styles";
9
9
  import { visuallyHidden as fe } from "@mui/utils";
10
10
  import { useIntl as P } from "react-intl";
11
- import { a as A, p as o, h as D, d as Z, D as K, e as yn, t as De, s as de, g as oe, i as te, M as Pe, c as He, j as vn, B as wn } from "./Surface-z5TuQzlh.js";
11
+ import { a as A, p as o, h as D, d as Z, D as K, e as yn, t as De, s as de, g as oe, i as te, M as Pe, c as He, j as vn, B as wn } from "./Surface-B_wIEB3b.js";
12
12
  import { i as xn, b as Cn, r as kn, u as Sn, A as In, E as Fn } from "./index-C27b790L.js";
13
13
  import X from "@mui/material/Button";
14
14
  import { byteSizeIEC as Mn } from "@abyss-project/main";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The banner is `position: fixed`, so that it sticks to the window. A surface of a modal whose style
3
+ * creates a containing block (the `backdrop-filter` of the legacy theme's dialog paper, a
4
+ * `transform`, a `filter`, `contain: paint`, `will-change: transform`, `container-type`...) becomes
5
+ * the box the banner is laid out in instead: it sticks to the bottom of the surface and covers the
6
+ * modal's main action (#747). No stylesheet can tell this in advance, a theme may add any of them.
7
+ *
8
+ * So, while the banner is hosted in `surface`, each property above that really creates a block, read
9
+ * from `getComputedStyle` on the surface and on every ancestor up to `boundary` (the modal root), is
10
+ * switched off by an inline `!important` style. Only what comes from a stylesheet is touched: a
11
+ * property an element carries inline is driven by code (a sheet following the finger writes a
12
+ * `translateY` on every frame, a drawer leaving writes its exit transform), and is never written
13
+ * over, whatever its value; the banner then follows that element for as long as it is moved. Since
14
+ * only a property with no inline value is ever written, giving it back is removing ours (the `style`
15
+ * attribute goes too if it was not there). A style or class change of a chain element, or the end of a
16
+ * transition, is read again; a value someone writes over ours is theirs, and is left alone on release.
17
+ * The list is the common case: what other properties could ever create a block is not exhaustive.
18
+ */
19
+ export declare const neutralizeContainingBlocks: (surface: HTMLElement, boundary: HTMLElement) => (() => void);
@@ -32,5 +32,14 @@ export interface BannerPortal {
32
32
  * moved into that modal's `aria-modal` surface (inside its focus trap and its accessibility
33
33
  * subtree), and back to `body` once no modal is open. The banner is rendered in it with a portal,
34
34
  * so it keeps the React context (theme, messages) of the provider.
35
+ *
36
+ * The banner is `position: fixed`, and a surface whose style creates a containing block (a
37
+ * `backdrop-filter`, a `filter`, a `transform`, `contain: paint`, `will-change: transform`,
38
+ * `container-type`...) would stick it to the bottom of the surface instead of the window, over the
39
+ * modal's main action. While the banner is hosted, the properties a stylesheet gives to the surface
40
+ * and to its ancestors up to the modal root are therefore switched off by an inline style, and removed
41
+ * when the banner leaves or the modal closes (`containing-block.ts`). A property carried inline (a
42
+ * sheet being dragged, a drawer leaving) is never touched. The surface loses that effect (a frosted
43
+ * glass, say) while the banner is in it.
35
44
  */
36
45
  export declare const useBannerPortal: () => BannerPortal;
@@ -1,5 +1,5 @@
1
- import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-DUoKKRMZ.js";
2
- import { f as p } from "./Surface-z5TuQzlh.js";
1
+ import { A as o, g as a, h as n, e as C, i as t, f as i, j as r, k as A, C as E, b as O, c as S, D as _, R as k, o as I, m as c, l as d, n as N, r as T, p as l, u as f, d as D, a as R, w as V } from "./CookieConsentSettings-CLB1Mlv5.js";
2
+ import { f as p } from "./Surface-B_wIEB3b.js";
3
3
  export {
4
4
  o as AbyssCookieConsentProvider,
5
5
  a as CONSENT_VALIDITY_DAYS,
@@ -2,7 +2,7 @@ import { B as Mt, C as DW, D as PW, F as KW, f as WW, m as af, n as b3, G as BW,
2
2
  import { W as JW, r as zW, C as ZW } from "./index-D7cgykJH.js";
3
3
  import * as ga from "react";
4
4
  import PT, { useRef as gt, useEffect as xr, useState as Pr, useCallback as xe, useMemo as Ye, useLayoutEffect as fE, createContext as no, forwardRef as ms, createElement as Tr, useContext as ji, memo as Kt, cloneElement as $W, Component as dE, Fragment as t2, isValidElement as eB } from "react";
5
- import { u as tB, T as qc, v as rB, H as hE, l as gE, r as pE, q as vE, y as mE, z as bE, J as nB, K as iB, I as aB, o as oB } from "./Surface-z5TuQzlh.js";
5
+ import { u as tB, T as qc, v as rB, H as hE, l as gE, r as pE, q as vE, y as mE, z as bE, J as nB, K as iB, I as aB, o as oB } from "./Surface-B_wIEB3b.js";
6
6
  import KT from "@mui/icons-material/InsertDriveFile";
7
7
  import sB from "@mui/icons-material/Image";
8
8
  import uB from "@mui/icons-material/PictureAsPdf";
@@ -9,14 +9,14 @@ import { c as fn } from "./clsx-OuTLNxxd.js";
9
9
  import { c as cO, d as gc, e as HG, f as Hz, g as aO, h as Pz, j as oO, k as rO, l as UO, m as hO, n as Az, o as FO, p as ZO, q as PG, s as uO, t as mO, v as VO, w as QO, x as AG, y as WO, z as pO, S as NO, B as RO } from "./index-C27b790L.js";
10
10
  import { styled as Rt, useTheme as bO } from "@mui/material/styles";
11
11
  import { useIntl as gl } from "react-intl";
12
- import { s as NU, d as ys, D as ds, p as E, h as El, M as Zo, c as uo, a as _d, b as MO, t as bu, i as Z0, g as vo, m as RF, e as PW, j as SO, u as TO } from "./Surface-z5TuQzlh.js";
12
+ import { s as NU, d as ys, D as ds, p as E, h as El, M as Zo, c as uo, a as _d, b as MO, t as bu, i as Z0, g as vo, m as RF, e as PW, j as SO, u as TO } from "./Surface-B_wIEB3b.js";
13
13
  import Vl from "@mui/material/Button";
14
14
  import LM from "@mui/material/Checkbox";
15
15
  import zQ from "@mui/material/CircularProgress";
16
16
  import mo from "@mui/material/FormControlLabel";
17
17
  import WV from "@mui/material/OutlinedInput";
18
18
  import DM from "@mui/material/Switch";
19
- import { R as wb, F as pV, C as bF, a as MF, h as Mu, S as iZ, D as _z, k as JO, T as GO, N as fM, A as yO, u as BO, d as XO, j as YO } from "./Tabs-C4K0mLME.js";
19
+ import { R as wb, F as pV, C as bF, a as MF, h as Mu, S as iZ, D as _z, k as JO, T as GO, N as fM, A as yO, u as BO, d as XO, j as YO } from "./Tabs-MVmpclcZ.js";
20
20
  import { PDFDocument as Ka, PDFTextField as qz, PDFCheckBox as $z, PDFDropdown as t9, PDFRadioGroup as e9, PDFOptionList as kO, degrees as Ib, StandardFonts as SN, BlendMode as zO, rgb as LO } from "pdf-lib";
21
21
  import * as _G from "pdfjs-dist";
22
22
  import DO from "@mui/icons-material/OpenInNew";
@@ -14225,7 +14225,7 @@ function Ut(l) {
14225
14225
  return new CH(oS.define(l));
14226
14226
  }
14227
14227
  function ra(l) {
14228
- return import("./index-Bw4XnSa0.js").then((t) => t.sql({ dialect: t[l] }));
14228
+ return import("./index-DHwatinf.js").then((t) => t.sql({ dialect: t[l] }));
14229
14229
  }
14230
14230
  const Y7 = [
14231
14231
  // New-style language modes
@@ -14233,7 +14233,7 @@ const Y7 = [
14233
14233
  name: "C",
14234
14234
  extensions: ["c", "h", "ino"],
14235
14235
  load() {
14236
- return import("./index-CRFGogWn.js").then((l) => l.cpp());
14236
+ return import("./index-CVRa0oBj.js").then((l) => l.cpp());
14237
14237
  }
14238
14238
  }),
14239
14239
  /* @__PURE__ */ A.of({
@@ -14241,7 +14241,7 @@ const Y7 = [
14241
14241
  alias: ["cpp"],
14242
14242
  extensions: ["cpp", "c++", "cc", "cxx", "hpp", "h++", "hh", "hxx"],
14243
14243
  load() {
14244
- return import("./index-CRFGogWn.js").then((l) => l.cpp());
14244
+ return import("./index-CVRa0oBj.js").then((l) => l.cpp());
14245
14245
  }
14246
14246
  }),
14247
14247
  /* @__PURE__ */ A.of({
@@ -14256,14 +14256,14 @@ const Y7 = [
14256
14256
  name: "CSS",
14257
14257
  extensions: ["css"],
14258
14258
  load() {
14259
- return import("./index-BKRudpMw.js").then((l) => l.css());
14259
+ return import("./index-tTzlUmYK.js").then((l) => l.css());
14260
14260
  }
14261
14261
  }),
14262
14262
  /* @__PURE__ */ A.of({
14263
14263
  name: "Go",
14264
14264
  extensions: ["go"],
14265
14265
  load() {
14266
- return import("./index-2lNOK7eK.js").then((l) => l.go());
14266
+ return import("./index-BhfgX3oc.js").then((l) => l.go());
14267
14267
  }
14268
14268
  }),
14269
14269
  /* @__PURE__ */ A.of({
@@ -14271,14 +14271,14 @@ const Y7 = [
14271
14271
  alias: ["xhtml"],
14272
14272
  extensions: ["html", "htm", "handlebars", "hbs"],
14273
14273
  load() {
14274
- return import("./index-z5ZOXlY8.js").then((l) => l.html());
14274
+ return import("./index-BTQOcRMg.js").then((l) => l.html());
14275
14275
  }
14276
14276
  }),
14277
14277
  /* @__PURE__ */ A.of({
14278
14278
  name: "Java",
14279
14279
  extensions: ["java"],
14280
14280
  load() {
14281
- return import("./index-BcO-JFrs.js").then((l) => l.java());
14281
+ return import("./index-CxQaYgoB.js").then((l) => l.java());
14282
14282
  }
14283
14283
  }),
14284
14284
  /* @__PURE__ */ A.of({
@@ -14286,7 +14286,7 @@ const Y7 = [
14286
14286
  alias: ["ecmascript", "js", "node"],
14287
14287
  extensions: ["js", "mjs", "cjs"],
14288
14288
  load() {
14289
- return import("./index-CWD0waD8.js").then((l) => l.javascript());
14289
+ return import("./index-B7TbdCxd.js").then((l) => l.javascript());
14290
14290
  }
14291
14291
  }),
14292
14292
  /* @__PURE__ */ A.of({
@@ -14294,28 +14294,28 @@ const Y7 = [
14294
14294
  alias: ["json5"],
14295
14295
  extensions: ["json", "map"],
14296
14296
  load() {
14297
- return import("./index-CtVoDSIn.js").then((l) => l.json());
14297
+ return import("./index-BgK7ZufI.js").then((l) => l.json());
14298
14298
  }
14299
14299
  }),
14300
14300
  /* @__PURE__ */ A.of({
14301
14301
  name: "JSX",
14302
14302
  extensions: ["jsx"],
14303
14303
  load() {
14304
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ jsx: !0 }));
14304
+ return import("./index-B7TbdCxd.js").then((l) => l.javascript({ jsx: !0 }));
14305
14305
  }
14306
14306
  }),
14307
14307
  /* @__PURE__ */ A.of({
14308
14308
  name: "LESS",
14309
14309
  extensions: ["less"],
14310
14310
  load() {
14311
- return import("./index-Ckzmgx9X.js").then((l) => l.less());
14311
+ return import("./index-CorW4VOJ.js").then((l) => l.less());
14312
14312
  }
14313
14313
  }),
14314
14314
  /* @__PURE__ */ A.of({
14315
14315
  name: "Liquid",
14316
14316
  extensions: ["liquid"],
14317
14317
  load() {
14318
- return import("./index-CYBvIQsH.js").then((l) => l.liquid());
14318
+ return import("./index-DS7PaGaq.js").then((l) => l.liquid());
14319
14319
  }
14320
14320
  }),
14321
14321
  /* @__PURE__ */ A.of({
@@ -14328,7 +14328,7 @@ const Y7 = [
14328
14328
  name: "Markdown",
14329
14329
  extensions: ["md", "markdown", "mkd"],
14330
14330
  load() {
14331
- return import("./index-CtkfWhK1.js").then((l) => l.markdown());
14331
+ return import("./index-P3mYGVW9.js").then((l) => l.markdown());
14332
14332
  }
14333
14333
  }),
14334
14334
  /* @__PURE__ */ A.of({
@@ -14347,7 +14347,7 @@ const Y7 = [
14347
14347
  name: "PHP",
14348
14348
  extensions: ["php", "php3", "php4", "php5", "php7", "phtml"],
14349
14349
  load() {
14350
- return import("./index-BaL2x2GW.js").then((l) => l.php());
14350
+ return import("./index-COEwfkxf.js").then((l) => l.php());
14351
14351
  }
14352
14352
  }),
14353
14353
  /* @__PURE__ */ A.of({
@@ -14368,28 +14368,28 @@ const Y7 = [
14368
14368
  extensions: ["BUILD", "bzl", "py", "pyw"],
14369
14369
  filename: /^(BUCK|BUILD)$/,
14370
14370
  load() {
14371
- return import("./index-B76nCWpd.js").then((l) => l.python());
14371
+ return import("./index-WnQHBsCS.js").then((l) => l.python());
14372
14372
  }
14373
14373
  }),
14374
14374
  /* @__PURE__ */ A.of({
14375
14375
  name: "Rust",
14376
14376
  extensions: ["rs"],
14377
14377
  load() {
14378
- return import("./index-Dqm1dC1j.js").then((l) => l.rust());
14378
+ return import("./index-DB03r0_G.js").then((l) => l.rust());
14379
14379
  }
14380
14380
  }),
14381
14381
  /* @__PURE__ */ A.of({
14382
14382
  name: "Sass",
14383
14383
  extensions: ["sass"],
14384
14384
  load() {
14385
- return import("./index-CUhMNEUo.js").then((l) => l.sass({ indented: !0 }));
14385
+ return import("./index-WbhbeBj8.js").then((l) => l.sass({ indented: !0 }));
14386
14386
  }
14387
14387
  }),
14388
14388
  /* @__PURE__ */ A.of({
14389
14389
  name: "SCSS",
14390
14390
  extensions: ["scss"],
14391
14391
  load() {
14392
- return import("./index-CUhMNEUo.js").then((l) => l.sass());
14392
+ return import("./index-WbhbeBj8.js").then((l) => l.sass());
14393
14393
  }
14394
14394
  }),
14395
14395
  /* @__PURE__ */ A.of({
@@ -14409,7 +14409,7 @@ const Y7 = [
14409
14409
  name: "TSX",
14410
14410
  extensions: ["tsx"],
14411
14411
  load() {
14412
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ jsx: !0, typescript: !0 }));
14412
+ return import("./index-B7TbdCxd.js").then((l) => l.javascript({ jsx: !0, typescript: !0 }));
14413
14413
  }
14414
14414
  }),
14415
14415
  /* @__PURE__ */ A.of({
@@ -14417,14 +14417,14 @@ const Y7 = [
14417
14417
  alias: ["ts"],
14418
14418
  extensions: ["ts", "mts", "cts"],
14419
14419
  load() {
14420
- return import("./index-CWD0waD8.js").then((l) => l.javascript({ typescript: !0 }));
14420
+ return import("./index-B7TbdCxd.js").then((l) => l.javascript({ typescript: !0 }));
14421
14421
  }
14422
14422
  }),
14423
14423
  /* @__PURE__ */ A.of({
14424
14424
  name: "WebAssembly",
14425
14425
  extensions: ["wat", "wast"],
14426
14426
  load() {
14427
- return import("./index-DRtBc440.js").then((l) => l.wast());
14427
+ return import("./index-DOniqiUF.js").then((l) => l.wast());
14428
14428
  }
14429
14429
  }),
14430
14430
  /* @__PURE__ */ A.of({
@@ -14432,7 +14432,7 @@ const Y7 = [
14432
14432
  alias: ["rss", "wsdl", "xsd"],
14433
14433
  extensions: ["xml", "xsl", "xsd", "svg"],
14434
14434
  load() {
14435
- return import("./index-CrZZo4r1.js").then((l) => l.xml());
14435
+ return import("./index-DWOXLAjk.js").then((l) => l.xml());
14436
14436
  }
14437
14437
  }),
14438
14438
  /* @__PURE__ */ A.of({
@@ -14440,7 +14440,7 @@ const Y7 = [
14440
14440
  alias: ["yml"],
14441
14441
  extensions: ["yaml", "yml"],
14442
14442
  load() {
14443
- return import("./index-BlOP01yA.js").then((l) => l.yaml());
14443
+ return import("./index-BXwVo31B.js").then((l) => l.yaml());
14444
14444
  }
14445
14445
  }),
14446
14446
  // Legacy modes ported from CodeMirror 5
@@ -15236,13 +15236,13 @@ const Y7 = [
15236
15236
  name: "Vue",
15237
15237
  extensions: ["vue"],
15238
15238
  load() {
15239
- return import("./index-Ckzcg8qD.js").then((l) => l.vue());
15239
+ return import("./index-BiBtwp14.js").then((l) => l.vue());
15240
15240
  }
15241
15241
  }),
15242
15242
  /* @__PURE__ */ A.of({
15243
15243
  name: "Angular Template",
15244
15244
  load() {
15245
- return import("./index-CQ7z2zKY.js").then((l) => l.angular());
15245
+ return import("./index-CTmmM3bQ.js").then((l) => l.angular());
15246
15246
  }
15247
15247
  })
15248
15248
  ], k7 = "#e5c07b", G5 = "#e06c75", z7 = "#56b6c2", L7 = "#ffffff", kV = "#abb2bf", D2 = "#7d8799", D7 = "#61afef", f7 = "#98c379", y5 = "#d19a66", w7 = "#c678dd", I7 = "#21252b", B5 = "#2c313a", X5 = "#282c34", HN = "#353a42", x7 = "#3E4451", Y5 = "#528bff", C7 = /* @__PURE__ */ At.theme({
package/dist/editors.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Q as o, R as s, S as r, M as t, O as i, K as n, Y as d, U as g, W as p, X as E, V as l, Z as f } from "./editors-Eb3PHnxn.js";
1
+ import { Q as o, R as s, S as r, M as t, O as i, K as n, Y as d, U as g, W as p, X as E, V as l, Z as f } from "./editors-D0JP2AdM.js";
2
2
  export {
3
3
  o as CodeEditor,
4
4
  s as ExpressionCodeEditor,
@@ -1,5 +1,5 @@
1
- import { L as M, E as X, a as h, C as E } from "./index-CFDEfvCD.js";
2
- import { s as A, t as i, E as C, a as J, n as o, L as I, b as B, d as D, e as u, h as K, i as N, f as H, c as g, j as F, m as OO, g as aO, J as j, x as QO, o as iO, I as eO } from "./editors-Eb3PHnxn.js";
1
+ import { L as M, E as X, a as h, C as E } from "./index-CTbeT-N0.js";
2
+ import { s as A, t as i, E as C, a as J, n as o, L as I, b as B, d as D, e as u, h as K, i as N, f as H, c as g, j as F, m as OO, g as aO, J as j, x as QO, o as iO, I as eO } from "./editors-D0JP2AdM.js";
3
3
  const $O = 315, rO = 316, v = 1, tO = 2, lO = 3, nO = 4, oO = 317, sO = 319, ZO = 320, PO = 5, pO = 6, cO = 0, q = [
4
4
  9,
5
5
  10,
@@ -1,7 +1,7 @@
1
- import { L as be, E as $, C as Pe } from "./index-CFDEfvCD.js";
2
- import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, h as ve, i as Xe, f as ke, H as $e } from "./editors-Eb3PHnxn.js";
3
- import { cssLanguage as J, css as _e } from "./index-BKRudpMw.js";
4
- import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-CWD0waD8.js";
1
+ import { L as be, E as $, C as Pe } from "./index-CTbeT-N0.js";
2
+ import { p as xe, s as Te, t as h, E as Ve, a as we, L as ye, e as K, h as ve, i as Xe, f as ke, H as $e } from "./editors-D0JP2AdM.js";
3
+ import { cssLanguage as J, css as _e } from "./index-tTzlUmYK.js";
4
+ import { typescriptLanguage as qe, jsxLanguage as Ce, tsxLanguage as Qe, javascriptLanguage as R, javascript as Ae } from "./index-B7TbdCxd.js";
5
5
  const Ye = 54, Me = 1, Re = 55, Ee = 2, Ze = 56, Be = 3, z = 4, ze = 5, X = 6, ee = 7, te = 8, ae = 9, le = 10, We = 11, De = 12, Ne = 13, _ = 57, Ge = 14, W = 58, re = 20, Ie = 22, ne = 23, je = 24, Y = 26, se = 27, Ue = 28, Le = 31, Fe = 34, He = 36, Ke = 37, Je = 0, et = 1, tt = {
6
6
  area: !0,
7
7
  base: !0,
@@ -1,5 +1,5 @@
1
- import { L as W, E as i, C as B } from "./index-CFDEfvCD.js";
2
- import { s as U, t as n, a as C, L as b, p as E, i as u, f as M, j as v, g as N } from "./editors-Eb3PHnxn.js";
1
+ import { L as W, E as i, C as B } from "./index-CTbeT-N0.js";
2
+ import { s as U, t as n, a as C, L as b, p as E, i as u, f as M, j as v, g as N } from "./editors-D0JP2AdM.js";
3
3
  const c = 63, D = 64, j = 1, A = 2, y = 3, H = 4, Z = 5, F = 6, I = 7, z = 65, K = 66, J = 8, OO = 9, eO = 10, aO = 11, rO = 12, V = 13, tO = 19, nO = 20, oO = 29, PO = 33, QO = 34, sO = 47, lO = 0, T = 1, g = 2, d = 3, m = 4;
4
4
  class s {
5
5
  constructor(e, a, r) {
@@ -1,5 +1,5 @@
1
- import { L as s } from "./index-CFDEfvCD.js";
2
- import { s as n, t as r, a as o, L as P, i as Q, f as i, c as a, g as c } from "./editors-Eb3PHnxn.js";
1
+ import { L as s } from "./index-CTbeT-N0.js";
2
+ import { s as n, t as r, a as o, L as P, i as Q, f as i, c as a, g as c } from "./editors-D0JP2AdM.js";
3
3
  const g = n({
4
4
  String: r.string,
5
5
  Number: r.number,
@@ -1,5 +1,5 @@
1
- import { L as s, E as R, a as Y, C as x } from "./index-CFDEfvCD.js";
2
- import { s as w, t as O, a as d, n as X, L as k, b as h, d as f, i as u, f as y, c as l, j as g, m as j, g as U, e as G, o as b, I as Z } from "./editors-Eb3PHnxn.js";
1
+ import { L as s, E as R, a as Y, C as x } from "./index-CTbeT-N0.js";
2
+ import { s as w, t as O, a as d, n as X, L as k, b as h, d as f, i as u, f as y, c as l, j as g, m as j, g as U, e as G, o as b, I as Z } from "./editors-D0JP2AdM.js";
3
3
  const _ = 177, q = 179, E = 184, v = 12, C = 13, D = 17, z = 20, F = 25, B = 53, N = 95, I = 142, L = 144, A = 145, J = 148, M = 10, H = 13, K = 32, OO = 9, $ = 47, QO = 41, eO = 125, aO = new R((Q, e) => {
4
4
  for (let n = 0, a = Q.next; (e.context && (a < 0 || a == M || a == H || a == $ && Q.peek(n + 1) == $) || a == QO || a == eO) && Q.acceptToken(_), !(a != K && a != OO); )
5
5
  a = Q.peek(++n);
@@ -1,7 +1,7 @@
1
- import { a as p, L as u, p as n, s as l, t as e } from "./editors-Eb3PHnxn.js";
2
- import { html as m } from "./index-z5ZOXlY8.js";
3
- import { javascriptLanguage as b } from "./index-CWD0waD8.js";
4
- import { L as S, a as r } from "./index-CFDEfvCD.js";
1
+ import { a as p, L as u, p as n, s as l, t as e } from "./editors-D0JP2AdM.js";
2
+ import { html as m } from "./index-BTQOcRMg.js";
3
+ import { javascriptLanguage as b } from "./index-B7TbdCxd.js";
4
+ import { L as S, a as r } from "./index-CTbeT-N0.js";
5
5
  const c = /* @__PURE__ */ S.deserialize({
6
6
  version: 14,
7
7
  states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
@@ -1,6 +1,6 @@
1
- import { L as V, E as X } from "./index-CFDEfvCD.js";
2
- import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, j as U, g as l } from "./editors-Eb3PHnxn.js";
3
- import { html as w } from "./index-z5ZOXlY8.js";
1
+ import { L as V, E as X } from "./index-CTbeT-N0.js";
2
+ import { s as d, t as $, a as Z, L as R, p as s, i as t, f as y, c, j as U, g as l } from "./editors-D0JP2AdM.js";
3
+ import { html as w } from "./index-BTQOcRMg.js";
4
4
  const W = 1, p = 2, q = 275, u = 3, b = 276, _ = 277, f = 278, k = 4, m = 5, G = 6, x = 7, z = 8, h = 9, g = 10, v = 11, j = 12, E = 13, I = 14, N = 15, L = 16, F = 17, C = 18, H = 19, A = 20, K = 21, D = 22, B = 23, M = 24, J = 25, OO = 26, $O = 27, QO = 28, iO = 29, aO = 30, TO = 31, PO = 32, XO = 33, SO = 34, cO = 35, eO = 36, oO = 37, _O = 38, zO = 39, nO = 40, rO = 41, YO = 42, VO = 43, dO = 44, ZO = 45, RO = 46, sO = 47, tO = 48, yO = 49, UO = 50, lO = 51, wO = 52, WO = 53, pO = 54, qO = 55, uO = 56, bO = 57, fO = 58, kO = 59, mO = 60, GO = 61, xO = 62, e = 63, hO = 64, gO = 65, vO = 66, jO = {
5
5
  abstract: k,
6
6
  and: m,
@@ -1,4 +1,4 @@
1
- import { P as L, N as M, k as $, D as E, l as y, T as S, I as j } from "./editors-Eb3PHnxn.js";
1
+ import { P as L, N as M, k as $, D as E, l as y, T as S, I as j } from "./editors-D0JP2AdM.js";
2
2
  class v {
3
3
  /**
4
4
  @internal
@@ -1,7 +1,7 @@
1
- import { a as g, L as P, p as l, s as q, t as r } from "./editors-Eb3PHnxn.js";
2
- import { html as c } from "./index-z5ZOXlY8.js";
3
- import { javascriptLanguage as i } from "./index-CWD0waD8.js";
4
- import { L as R, E as p } from "./index-CFDEfvCD.js";
1
+ import { a as g, L as P, p as l, s as q, t as r } from "./editors-D0JP2AdM.js";
2
+ import { html as c } from "./index-BTQOcRMg.js";
3
+ import { javascriptLanguage as i } from "./index-B7TbdCxd.js";
4
+ import { L as R, E as p } from "./index-CTbeT-N0.js";
5
5
  const b = 1, $ = 33, m = 34, v = 35, x = 36, W = /* @__PURE__ */ new p((O) => {
6
6
  let t = O.pos;
7
7
  for (; ; ) {
@@ -1,5 +1,5 @@
1
- import { L as o, E as t } from "./index-CFDEfvCD.js";
2
- import { s, t as Q, a as j, L as x, i as f, f as c, c as a, j as W, m as S, g as l } from "./editors-Eb3PHnxn.js";
1
+ import { L as o, E as t } from "./index-CTbeT-N0.js";
2
+ import { s, t as Q, a as j, L as x, i as f, f as c, c as a, j as W, m as S, g as l } from "./editors-D0JP2AdM.js";
3
3
  const r = 1, q = 2, u = 3, n = 82, Z = 76, V = 117, T = 85, z = 97, w = 122, m = 65, b = 90, y = 95, i = 48, Y = 34, v = 40, P = 41, _ = 32, U = 62, p = new t((O) => {
4
4
  if (O.next == Z || O.next == T ? O.advance() : O.next == V && (O.advance(), O.next == i + 8 && O.advance()), O.next != n || (O.advance(), O.next != Y)) return;
5
5
  O.advance();
@@ -1,6 +1,6 @@
1
- import { a as t, L as i, i as n, f as $, c as y, g as P, s as X, t as O } from "./editors-Eb3PHnxn.js";
2
- import { defineCSSCompletionSource as m } from "./index-BKRudpMw.js";
3
- import { L as c, E as S } from "./index-CFDEfvCD.js";
1
+ import { a as t, L as i, i as n, f as $, c as y, g as P, s as X, t as O } from "./editors-D0JP2AdM.js";
2
+ import { defineCSSCompletionSource as m } from "./index-tTzlUmYK.js";
3
+ import { L as c, E as S } from "./index-CTbeT-N0.js";
4
4
  const f = 110, l = 1, s = 2, r = [
5
5
  9,
6
6
  10,
@@ -1,5 +1,5 @@
1
- import { L as r } from "./index-CFDEfvCD.js";
2
- import { s as e, t as O, a as s, L as X, i as l, f as Y, c as $, j as S, m as o, g as t } from "./editors-Eb3PHnxn.js";
1
+ import { L as r } from "./index-CTbeT-N0.js";
2
+ import { s as e, t as O, a as s, L as X, i as l, f as Y, c as $, j as S, m as o, g as t } from "./editors-D0JP2AdM.js";
3
3
  const Z = e({
4
4
  null: O.null,
5
5
  instanceof: O.operatorKeyword,
@@ -1,5 +1,5 @@
1
- import { L as o, E as a } from "./index-CFDEfvCD.js";
2
- import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, g as V } from "./editors-Eb3PHnxn.js";
1
+ import { L as o, E as a } from "./index-CTbeT-N0.js";
2
+ import { s as Z, t as Q, a as _, L as q, i as l, f as w, c as r, g as V } from "./editors-D0JP2AdM.js";
3
3
  const g = 1, R = 2, b = 3, y = 4, T = 5, s = 98, c = 101, v = 102, t = 114, p = 69, X = 48, W = 46, d = 43, f = 45, Y = 35, z = 34, x = 124, U = 60, h = 62;
4
4
  function n(O) {
5
5
  return O >= 48 && O <= 57;
@@ -1,5 +1,5 @@
1
- import { L as te, a as re, i as ae, f as ne, s as ie, c as se, t as i, b as oe, d as le, e as ce } from "./editors-Eb3PHnxn.js";
2
- import { L as de, E as me } from "./index-CFDEfvCD.js";
1
+ import { L as te, a as re, i as ae, f as ne, s as ie, c as se, t as i, b as oe, d as le, e as ce } from "./editors-D0JP2AdM.js";
2
+ import { L as de, E as me } from "./index-CTbeT-N0.js";
3
3
  const ue = 36, B = 1, pe = 2, y = 3, C = 4, fe = 5, _e = 6, ge = 7, he = 8, ye = 9, be = 10, ve = 11, ke = 12, xe = 13, Oe = 14, we = 15, Qe = 16, Ce = 17, X = 18, Se = 19, A = 20, E = 21, I = 22, qe = 23, Pe = 24;
4
4
  function q(t) {
5
5
  return t >= 65 && t <= 90 || t >= 97 && t <= 122 || t >= 48 && t <= 57;
@@ -1,5 +1,5 @@
1
- import { a as O, L as r, i as b, f as s, s as a, j as t, g as P, t as e } from "./editors-Eb3PHnxn.js";
2
- import { L as n } from "./index-CFDEfvCD.js";
1
+ import { a as O, L as r, i as b, f as s, s as a, j as t, g as P, t as e } from "./editors-D0JP2AdM.js";
2
+ import { L as n } from "./index-CTbeT-N0.js";
3
3
  const S = { __proto__: null, anyref: 34, dataref: 34, eqref: 34, externref: 34, i31ref: 34, funcref: 34, i8: 34, i16: 34, i32: 34, i64: 34, f32: 34, f64: 34 }, i = /* @__PURE__ */ n.deserialize({
4
4
  version: 14,
5
5
  states: "!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",
@@ -1,6 +1,6 @@
1
- import { E as d, L as y, h as b, a as _, p as g, e as u, s as S, i as T, f as k, j as W, t } from "./editors-Eb3PHnxn.js";
2
- import { html as j } from "./index-z5ZOXlY8.js";
3
- import { L as X, E as p } from "./index-CFDEfvCD.js";
1
+ import { E as d, L as y, h as b, a as _, p as g, e as u, s as S, i as T, f as k, j as W, t } from "./editors-D0JP2AdM.js";
2
+ import { html as j } from "./index-BTQOcRMg.js";
3
+ import { L as X, E as p } from "./index-CTbeT-N0.js";
4
4
  const Y = 1, U = 2, G = 3, R = 179, z = 4, v = 180, x = 5, Z = 181, V = 6;
5
5
  function E(O) {
6
6
  return O >= 65 && O <= 90 || O >= 97 && O <= 122;
@@ -1,5 +1,5 @@
1
- import { L as G, E as A, C as N } from "./index-CFDEfvCD.js";
2
- import { s as I, t as p, E as Y, a as j, L as U, e as k, h as Z, i as B, f as D, H as M } from "./editors-Eb3PHnxn.js";
1
+ import { L as G, E as A, C as N } from "./index-CTbeT-N0.js";
2
+ import { s as I, t as p, E as Y, a as j, L as U, e as k, h as Z, i as B, f as D, H as M } from "./editors-D0JP2AdM.js";
3
3
  const h = 1, F = 2, L = 3, H = 4, K = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
4
4
  function re(e) {
5
5
  return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
@@ -1,5 +1,5 @@
1
- import { P as nt, k as j, l as v, q as st, N as Ae, s as Be, p as it, t as c, T as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, h as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, F as he, G as gt } from "./editors-Eb3PHnxn.js";
2
- import { html as kt, htmlCompletionSource as Lt } from "./index-z5ZOXlY8.js";
1
+ import { P as nt, k as j, l as v, q as st, N as Ae, s as Be, p as it, t as c, T as E, r as ot, L as le, u as at, v as lt, w as ht, x as ft, e as _, h as P, y as T, z as ut, f as Ie, i as dt, A as pt, C as ct, B as mt, F as he, G as gt } from "./editors-D0JP2AdM.js";
2
+ import { html as kt, htmlCompletionSource as Lt } from "./index-BTQOcRMg.js";
3
3
  class $ {
4
4
  static create(e, r, n, s, i) {
5
5
  let o = s + (s << 8) + e + (r << 4) | 0;
@@ -1,6 +1,6 @@
1
- import { L as v, E as i, C as _ } from "./index-CFDEfvCD.js";
2
- import { s as W, t as e, a as g, L as x, f as p, i as U, g as V, c as E } from "./editors-Eb3PHnxn.js";
3
- import { defineCSSCompletionSource as N } from "./index-BKRudpMw.js";
1
+ import { L as v, E as i, C as _ } from "./index-CTbeT-N0.js";
2
+ import { s as W, t as e, a as g, L as x, f as p, i as U, g as V, c as E } from "./editors-D0JP2AdM.js";
3
+ import { defineCSSCompletionSource as N } from "./index-tTzlUmYK.js";
4
4
  const j = 168, X = 169, C = 170, I = 1, D = 2, w = 3, L = 171, F = 172, Y = 4, z = 173, K = 5, A = 174, T = 175, Z = 176, s = 177, G = 6, q = 7, B = 8, H = 9, c = 0, R = [
5
5
  9,
6
6
  10,
@@ -1,5 +1,5 @@
1
- import { L as D, E as h, C as L } from "./index-CFDEfvCD.js";
2
- import { s as H, t as n, b as B, a as K, L as M, e as OO, i as eO, f as iO, j as f, g as aO, o as nO, I as rO, d as QO, n as d } from "./editors-Eb3PHnxn.js";
1
+ import { L as D, E as h, C as L } from "./index-CTbeT-N0.js";
2
+ import { s as H, t as n, b as B, a as K, L as M, e as OO, i as eO, f as iO, j as f, g as aO, o as nO, I as rO, d as QO, n as d } from "./editors-D0JP2AdM.js";
3
3
  const tO = 1, Z = 194, j = 195, oO = 196, x = 197, dO = 198, sO = 199, lO = 200, TO = 2, E = 3, u = 201, SO = 24, pO = 25, qO = 49, gO = 50, PO = 55, mO = 56, $O = 57, hO = 59, cO = 60, fO = 61, XO = 62, yO = 63, zO = 65, WO = 238, vO = 71, RO = 241, kO = 242, _O = 243, xO = 244, uO = 245, UO = 246, bO = 247, VO = 248, Y = 72, GO = 249, wO = 250, ZO = 251, jO = 252, EO = 253, YO = 254, FO = 255, CO = 256, JO = 73, AO = 77, IO = 263, NO = 112, DO = 130, LO = 151, HO = 152, BO = 155, p = 10, q = 13, k = 32, c = 9, _ = 35, KO = 40, MO = 46, R = 123, U = 125, F = 39, C = 34, b = 92, Oe = 111, ee = 120, ie = 78, ae = 117, ne = 85, re = /* @__PURE__ */ new Set([
4
4
  pO,
5
5
  qO,
@@ -1,5 +1,5 @@
1
- import { L as w, E as p, a as Y } from "./index-CFDEfvCD.js";
2
- import { s as x, t as r, a as q, L as j, e as G, i as R, f as T, c as E, g as _, o as C, I as U } from "./editors-Eb3PHnxn.js";
1
+ import { L as w, E as p, a as Y } from "./index-CTbeT-N0.js";
2
+ import { s as x, t as r, a as q, L as j, e as G, i as R, f as T, c as E, g as _, o as C, I as U } from "./editors-D0JP2AdM.js";
3
3
  const V = 122, g = 1, Z = 123, W = 124, b = 2, N = 125, I = 3, F = 4, X = [
4
4
  9,
5
5
  10,