intlayer-editor 8.3.0 → 8.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,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/xml-C_9VvpQq.js","assets/java-BfXh-0uJ.js","assets/bundle-web-BHw3y2Rw.js","assets/index-IT8aKTX0.js","assets/index-C4-4d5yo.css"])))=>i.map(i=>d[i]);
2
- import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-IT8aKTX0.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CWEOkb3q.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-BOjX3v2Q.js","assets/html-derivative-Cswrtqyq.js","assets/xml-C_9VvpQq.js","assets/java-BfXh-0uJ.js","assets/bundle-web-iKMMotOu.js","assets/index-B6XTEObp.js","assets/index-C4-4d5yo.css"])))=>i.map(i=>d[i]);
2
+ import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-B6XTEObp.js";
3
3
  const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = async (e) => {
4
4
  if (i.has(e)) return i.get(e);
5
5
  let t;
@@ -57,7 +57,7 @@ const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = async (e
57
57
  };
58
58
  let c = null;
59
59
  const l = async () => (c ||= __vitePreload(async () => {
60
- const { createHighlighter: e } = await import("./bundle-web-BHw3y2Rw.js");
60
+ const { createHighlighter: e } = await import("./bundle-web-iKMMotOu.js");
61
61
  return { createHighlighter: e };
62
62
  }, true ? __vite__mapDeps([9,10,11]) : void 0).then(({ createHighlighter: e }) => e({ langs: [], themes: [] })), c), u = async (e, t, n) => {
63
63
  let r = n ? `github-dark` : `github-light`, [i2, a2, c2] = await Promise.all([l(), o(t), s(r)]);
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-ChYFFmg7.js","assets/html-BOjX3v2Q.js","assets/javascript-DLs729Nk.js","assets/css-BtVcDqlU.js","assets/angular-ts-CpuGw9DZ.js","assets/scss-Dq-LbI_c.js","assets/astro-B0lt4qz0.js","assets/json-D07AUpjp.js","assets/typescript-Cju7JbYj.js","assets/postcss-kj1IbjVd.js","assets/tsx-B9RA6cgQ.js","assets/blade-CRfxJHPE.js","assets/html-derivative-Cswrtqyq.js","assets/xml-C_9VvpQq.js","assets/java-BfXh-0uJ.js","assets/sql-DzUuSofg.js","assets/coffee-DJkIX6_2.js","assets/cpp-zh2ePAE_.js","assets/regexp-BxWeO75u.js","assets/glsl-CGsiYPcu.js","assets/c-C4VtT7JA.js","assets/graphql-oNSp8dGZ.js","assets/jsx-BPmvoin2.js","assets/haml-BJ44RGT2.js","assets/handlebars-v7TDC-Uu.js","assets/yaml-BTMSdukS.js","assets/http-cwl4j4v2.js","assets/bash-Bz2gZrDc.js","assets/hurl-CvGoQI5A.js","assets/csv-Ba84L8e5.js","assets/jinja-BAZ4h1JD.js","assets/jison-Bwp1bXaL.js","assets/julia-DijK_igD.js","assets/python-CrdIx4PZ.js","assets/r-Dpdc-Kyk.js","assets/marko-Dp5JrPMQ.js","assets/less-BAzLMJNR.js","assets/mdc-Du6Rrk4r.js","assets/markdown-F_EULe_G.js","assets/php-F8kBBMXh.js","assets/pug-C-LeC0-n.js","assets/svelte-BdGWWPP8.js","assets/ts-tags-ChrW48Bs.js","assets/vue-CWEOkb3q.js","assets/vue-html-Df7OYD9X.js","assets/vue-vine-Bx34p5qN.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./index-IT8aKTX0.js";
2
+ import { _ as __vitePreload } from "./index-B6XTEObp.js";
3
3
  var __defProp$1 = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -12758,7 +12758,7 @@ const e$o = (e2) => {
12758
12758
  return x2;
12759
12759
  };
12760
12760
  const e$n = (e2) => typeof e2 == `object` && e2?.key !== void 0 && e2?.props !== void 0;
12761
- const re$1 = `ar`, t$R = `ar-AE`, n$B = `ar-BH`, r$W = `ar-DZ`, i$I = `ar-EG`, a$K = `ar-IQ`, o$K = `ar-JO`, s$G = `ar-KW`, c$w = `ar-LB`, l$s = `ar-LY`, u$q = `ar-MA`, d$j = `ar-OM`, f$j = `ar-QA`, p$g = `ar-SA`, m$f = `ar-SY`, h$d = `ar-TN`, g$c = `ar-YE`, pe$2 = `dv`, A$2 = `dv-MV`, he$3 = `en`, Pe$1 = `fa`, Fe = `fa-IR`, tt = `he`, nt = `he-IL`, mn = `ps`, hn = `ps-AR`, tr = `syr`, nr = `syr-SY`, br = `ur`, xr = `ur-PK`, Zr = `yi`, Qr = `yi-001`, Oi = `ar-MR`, ki = `ar-PS`, Ai = `ar-SD`, ji = `ar-DJ`, Mi = `ar-SO`, Ni = `ar-TD`, Pi = `ar-KM`;
12761
+ const re$1 = `ar`, t$R = `ar-AE`, n$B = `ar-BH`, r$V = `ar-DZ`, i$H = `ar-EG`, a$K = `ar-IQ`, o$L = `ar-JO`, s$G = `ar-KW`, c$w = `ar-LB`, l$s = `ar-LY`, u$q = `ar-MA`, d$i = `ar-OM`, f$j = `ar-QA`, p$g = `ar-SA`, m$f = `ar-SY`, h$d = `ar-TN`, g$c = `ar-YE`, pe$2 = `dv`, A$2 = `dv-MV`, he$3 = `en`, Pe$1 = `fa`, Fe = `fa-IR`, tt = `he`, nt = `he-IL`, mn = `ps`, hn = `ps-AR`, tr = `syr`, nr = `syr-SY`, br = `ur`, xr = `ur-PK`, Zr = `yi`, Qr = `yi-001`, Oi = `ar-MR`, ki = `ar-PS`, Ai = `ar-SD`, ji = `ar-DJ`, Mi = `ar-SO`, Ni = `ar-TD`, Pi = `ar-KM`;
12762
12762
  const t$Q = (t2, n2) => {
12763
12763
  let r2 = t2 ? String(t2) : he$3;
12764
12764
  return n2 ? `${r2}|${JSON.stringify(n2)}` : r2;
@@ -12776,7 +12776,7 @@ const t$Q = (t2, n2) => {
12776
12776
  return n2.set(s2, c2), c2;
12777
12777
  }
12778
12778
  return r2.prototype = e2.prototype, r2;
12779
- }, r$V = () => {
12779
+ }, r$U = () => {
12780
12780
  let e2 = /* @__PURE__ */ new Map();
12781
12781
  return new Proxy(Intl, { get: (t2, r2, i2) => {
12782
12782
  if (e2.has(r2)) return e2.get(r2);
@@ -12787,7 +12787,7 @@ const t$Q = (t2, n2) => {
12787
12787
  }
12788
12788
  return a2;
12789
12789
  } });
12790
- }, i$H = r$V();
12790
+ }, i$G = r$U();
12791
12791
  const e$m = (e2, t2) => {
12792
12792
  try {
12793
12793
  let n2 = t2 ?? (typeof document < `u` ? document.cookie : ``);
@@ -12809,7 +12809,7 @@ const e$m = (e2, t2) => {
12809
12809
  } catch {
12810
12810
  }
12811
12811
  };
12812
- const n$z = (t2) => t2, r$U = (e2, t2) => {
12812
+ const n$z = (t2) => t2, r$T = (e2, t2) => {
12813
12813
  let r2 = t2?.isVerbose ?? false, i2 = t2?.config?.mode ?? `default`, a2 = t2?.level ?? `info`, o2 = n$z(t2?.config?.prefix), s2 = t2?.config?.log ?? console.log, c2 = t2?.config?.info ?? console.info, l2 = t2?.config?.warn ?? console.warn, u2 = t2?.config?.error ?? console.error, d2 = t2?.config?.debug ?? console.debug;
12814
12814
  if (i2 === `disabled` || r2 && i2 !== `verbose`) return;
12815
12815
  let f2 = o2 ? [o2, ...[e2].flat()] : [e2].flat();
@@ -12819,13 +12819,13 @@ const n$z = (t2) => t2, r$U = (e2, t2) => {
12819
12819
  if (a2 === `error`) return u2(...f2);
12820
12820
  s2(...f2);
12821
12821
  };
12822
- let i$G = (function(e2) {
12822
+ let i$F = (function(e2) {
12823
12823
  return e2.RESET = `\x1B[0m`, e2.GREY = `\x1B[90m`, e2.GREY_DARK = `\x1B[38;5;239m`, e2.GREY_LIGHT = `\x1B[38;5;252m`, e2.BLUE = `\x1B[34m`, e2.RED = `\x1B[31m`, e2.GREEN = `\x1B[32m`, e2.YELLOW = `\x1B[38;5;226m`, e2.MAGENTA = `\x1B[35m`, e2.BEIGE = `\x1B[38;5;3m`, e2.ORANGE = `\x1B[38;5;208m`, e2.CYAN = `\x1B[36m`, e2.WHITE = `\x1B[37m`, e2.BOLD = `\x1B[1m`, e2;
12824
12824
  })({});
12825
- const o$J = (e2, t2) => (n2, i2) => r$U(n2, { ...i2 ?? {}, config: { ...e2?.log, ...t2?.config, ...i2?.config ?? {} } }), s$F = (e2, t2, n2) => t2 ? `${t2}${e2}${n2 ? typeof n2 == `boolean` ? i$G.RESET : n2 : i$G.RESET}` : e2, l$r = (e2, t2 = i$G.BEIGE, n2 = i$G.RESET) => [e2].flat().map((e3) => s$F(e3, t2, n2)).join(`, `);
12826
- s$F(`✗`, i$G.RED);
12827
- s$F(`✓`, i$G.GREEN);
12828
- s$F(`⏲`, i$G.BLUE);
12825
+ const o$K = (e2, t2) => (n2, i2) => r$T(n2, { ...i2 ?? {}, config: { ...e2?.log, ...t2?.config, ...i2?.config ?? {} } }), s$F = (e2, t2, n2) => t2 ? `${t2}${e2}${n2 ? typeof n2 == `boolean` ? i$F.RESET : n2 : i$F.RESET}` : e2, l$r = (e2, t2 = i$F.BEIGE, n2 = i$F.RESET) => [e2].flat().map((e3) => s$F(e3, t2, n2)).join(`, `);
12826
+ s$F(`✗`, i$F.RED);
12827
+ s$F(`✓`, i$F.GREEN);
12828
+ s$F(`⏲`, i$F.BLUE);
12829
12829
  const e$l = (e2) => {
12830
12830
  if (!e2 || typeof e2 != `string`) return ``;
12831
12831
  let t2 = e2.replace(/([a-z])([A-Z])/g, `$1 $2`).replace(/([A-Z]+)([A-Z][a-z])/g, `$1 $2`);
@@ -12840,24 +12840,23 @@ var e$k = Object.defineProperty, t$P = (t2, n2) => {
12840
12840
  if (typeof require < `u`) return require.apply(this, arguments);
12841
12841
  throw Error('Calling `require` for "' + e2 + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
12842
12842
  });
12843
- var t$O = t$P({ BUILD_MODE: () => n$y, CACHE: () => true, OPTIMIZE: () => void 0, OUTPUT_FORMAT: () => a$J, TRAVERSE_PATTERN: () => i$F, TYPE_CHECKING: () => false });
12844
- const n$y = `auto`, i$F = [`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`, `!**/node_modules/**`, `!**/*.config.*`, `!**/*.test.*`, `!**/*.spec.*`, `!**/*.stories.*`, `!**/*.d.ts`, `!**/*.d.ts.map`], a$J = [`esm`, `cjs`];
12845
- var t$N = t$P({ COMPILER_DICTIONARY_KEY_PREFIX: () => r$T, COMPILER_ENABLED: () => true, COMPILER_NO_METADATA: () => false, COMPILER_OUTPUT: () => i$E, COMPILER_SAVE_COMPONENTS: () => false });
12846
- const r$T = `comp-`, i$E = (e2) => `/compiler/${e2.key}.${e2.extension.split(`.`)[1]}.json`;
12847
- var t$M = t$P({ CODE_DIR: () => a$I, CONTENT_DIR: () => i$D, EXCLUDED_PATHS: () => r$S, FILE_EXTENSIONS: () => n$x, I18NEXT_DICTIONARIES_DIR: () => o$I, REACT_INTL_MESSAGES_DIR: () => s$E, WATCH: () => true });
12848
- const n$x = [`.content.ts`, `.content.js`, `.content.cjs`, `.content.mjs`, `.content.json`, `.content.json5`, `.content.jsonc`, `.content.tsx`, `.content.jsx`], r$S = [`**/node_modules/**`, `**/dist/**`, `**/build/**`, `**/.intlayer/**`, `**/.next/**`, `**/.nuxt/**`, `**/.expo/**`, `**/.vercel/**`, `**/.turbo/**`, `**/.tanstack/**`], i$D = [`.`], a$I = [`.`], o$I = `i18next_resources`, s$E = `intl_messages`;
12843
+ var t$O = t$P({ BUILD_MODE: () => n$y, CACHE: () => true, OPTIMIZE: () => void 0, OUTPUT_FORMAT: () => a$J, TRAVERSE_PATTERN: () => i$E, TYPE_CHECKING: () => false });
12844
+ const n$y = `auto`, i$E = [`**/*.{tsx,ts,js,mjs,cjs,jsx,vue,svelte,svte}`, `!**/node_modules/**`, `!**/dist/**`, `!**/build/**`, `!**/.intlayer/**`, `!**/.next/**`, `!**/.nuxt/**`, `!**/.expo/**`, `!**/.vercel/**`, `!**/.turbo/**`, `!**/.tanstack/**`, `!**/*.config.*`, `!**/*.test.*`, `!**/*.spec.*`, `!**/*.stories.*`, `!**/*.d.ts`, `!**/*.d.ts.map`], a$J = [`esm`, `cjs`];
12845
+ var t$N = t$P({ COMPILER_DICTIONARY_KEY_PREFIX: () => ``, COMPILER_ENABLED: () => true, COMPILER_NO_METADATA: () => false, COMPILER_SAVE_COMPONENTS: () => false });
12846
+ var t$M = t$P({ CODE_DIR: () => a$I, CONTENT_DIR: () => i$D, EXCLUDED_PATHS: () => r$S, FILE_EXTENSIONS: () => n$x, I18NEXT_DICTIONARIES_DIR: () => o$J, REACT_INTL_MESSAGES_DIR: () => s$E, WATCH: () => true });
12847
+ const n$x = [`.content.ts`, `.content.js`, `.content.cjs`, `.content.mjs`, `.content.json`, `.content.json5`, `.content.jsonc`, `.content.tsx`, `.content.jsx`], r$S = [`**/node_modules/**`, `**/dist/**`, `**/build/**`, `**/.intlayer/**`, `**/.next/**`, `**/.nuxt/**`, `**/.expo/**`, `**/.vercel/**`, `**/.turbo/**`, `**/.tanstack/**`], i$D = [`.`], a$I = [`.`], o$J = `i18next_resources`, s$E = `intl_messages`;
12849
12848
  var t$L = t$P({ CONTENT_AUTO_TRANSFORMATION: () => false, FILL: () => true, IMPORT_MODE: () => a$H, LOCATION: () => r$R });
12850
12849
  const r$R = `local`, a$H = `static`;
12851
- var t$K = t$P({ APPLICATION_URL: () => void 0, BACKEND_URL: () => a$G, CMS_URL: () => i$C, DICTIONARY_PRIORITY_STRATEGY: () => l$q, EDITOR_URL: () => r$Q, IS_ENABLED: () => false, LIVE_SYNC: () => true, LIVE_SYNC_PORT: () => u$p, PORT: () => o$H });
12852
- const r$Q = `http://localhost:8000`, i$C = `https://app.intlayer.org`, a$G = `https://back.intlayer.org`, o$H = 8e3, l$q = `local_first`, u$p = 4e3;
12853
- var n$w = t$P({ DEFAULT_LOCALE: () => a$F, LOCALES: () => r$P, REQUIRED_LOCALES: () => i$B, STRICT_MODE: () => o$G });
12854
- const r$P = [he$3], i$B = [], a$F = he$3, o$G = `inclusive`;
12850
+ var t$K = t$P({ APPLICATION_URL: () => void 0, BACKEND_URL: () => a$G, CMS_URL: () => i$C, DICTIONARY_PRIORITY_STRATEGY: () => l$q, EDITOR_URL: () => r$Q, IS_ENABLED: () => false, LIVE_SYNC: () => true, LIVE_SYNC_PORT: () => u$p, PORT: () => o$I });
12851
+ const r$Q = `http://localhost:8000`, i$C = `https://app.intlayer.org`, a$G = `https://back.intlayer.org`, o$I = 8e3, l$q = `local_first`, u$p = 4e3;
12852
+ var n$w = t$P({ DEFAULT_LOCALE: () => a$F, LOCALES: () => r$P, REQUIRED_LOCALES: () => i$B, STRICT_MODE: () => o$H });
12853
+ const r$P = [he$3], i$B = [], a$F = he$3, o$H = `inclusive`;
12855
12854
  var n$v = t$P({ MODE: () => r$O, PREFIX: () => i$A });
12856
- const r$O = `default`, i$A = `${i$G.GREY_DARK}[intlayer] ${i$G.RESET}`;
12857
- var t$J = t$P({ BASE_PATH: () => ``, COOKIE_NAME: () => r$N, HEADER_NAME: () => n$u, LOCALE_STORAGE_NAME: () => i$z, ROUTING_MODE: () => s$D, SERVER_SET_COOKIE: () => o$F, STORAGE: () => c$v });
12858
- const n$u = `x-intlayer-locale`, r$N = `INTLAYER_LOCALE`, i$z = `INTLAYER_LOCALE`, o$F = `always`, s$D = `prefix-no-default`, c$v = [`cookie`, `header`];
12859
- var t$I = t$P({ CACHE_DIR: () => f$i, CONFIG_DIR: () => d$i, DICTIONARIES_DIR: () => r$M, DYNAMIC_DICTIONARIES_DIR: () => s$C, FETCH_DICTIONARIES_DIR: () => c$u, MAIN_DIR: () => n$t, MASKS_DIR: () => i$y, MODULE_AUGMENTATION_DIR: () => u$o, REMOTE_DICTIONARIES_DIR: () => a$E, TEMP_DIR: () => p$f, TYPES_DIR: () => l$p, UNMERGED_DICTIONARIES_DIR: () => o$E });
12860
- const n$t = `.intlayer/main`, r$M = `.intlayer/dictionary`, i$y = `.intlayer/mask`, a$E = `.intlayer/remote_dictionary`, o$E = `.intlayer/unmerged_dictionary`, s$C = `.intlayer/dynamic_dictionary`, c$u = `.intlayer/fetch_dictionary`, l$p = `.intlayer/types`, u$o = `.intlayer/types`, d$i = `.intlayer/config`, f$i = `.intlayer/cache`, p$f = `.intlayer/tmp`;
12855
+ const r$O = `default`, i$A = `${i$F.GREY_DARK}[intlayer] ${i$F.RESET}`;
12856
+ var t$J = t$P({ BASE_PATH: () => ``, COOKIE_NAME: () => r$N, HEADER_NAME: () => n$u, LOCALE_STORAGE_NAME: () => i$z, ROUTING_MODE: () => s$D, SERVER_SET_COOKIE: () => o$G, STORAGE: () => c$v });
12857
+ const n$u = `x-intlayer-locale`, r$N = `INTLAYER_LOCALE`, i$z = `INTLAYER_LOCALE`, o$G = `always`, s$D = `prefix-no-default`, c$v = [`cookie`, `header`];
12858
+ var t$I = t$P({ CACHE_DIR: () => f$i, CONFIG_DIR: () => d$h, DICTIONARIES_DIR: () => r$M, DYNAMIC_DICTIONARIES_DIR: () => s$C, FETCH_DICTIONARIES_DIR: () => c$u, MAIN_DIR: () => n$t, MASKS_DIR: () => i$y, MODULE_AUGMENTATION_DIR: () => u$o, REMOTE_DICTIONARIES_DIR: () => a$E, TEMP_DIR: () => p$f, TYPES_DIR: () => l$p, UNMERGED_DICTIONARIES_DIR: () => o$F });
12859
+ const n$t = `.intlayer/main`, r$M = `.intlayer/dictionary`, i$y = `.intlayer/mask`, a$E = `.intlayer/remote_dictionary`, o$F = `.intlayer/unmerged_dictionary`, s$C = `.intlayer/dynamic_dictionary`, c$u = `.intlayer/fetch_dictionary`, l$p = `.intlayer/types`, u$o = `.intlayer/types`, d$h = `.intlayer/config`, f$i = `.intlayer/cache`, p$f = `.intlayer/tmp`;
12861
12860
  var u$n = t$P({ Build: () => t$O, Compiler: () => t$N, Content: () => t$M, Dictionary: () => t$L, Editor: () => t$K, Internationalization: () => n$w, Log: () => n$v, Routing: () => t$J, System: () => t$I });
12862
12861
  const t$H = (t2) => {
12863
12862
  let { name: n2, path: r2, expires: i2, domain: a2, secure: o2, sameSite: s2, httpOnly: c2 } = t2 ?? {};
@@ -12868,7 +12867,7 @@ const t$H = (t2) => {
12868
12867
  }, r$L = (t2) => {
12869
12868
  let { name: n2 } = t2 ?? {};
12870
12869
  return { name: n2 ?? u$n.Routing.HEADER_NAME };
12871
- }, i$x = (e2) => e2.type === `cookie` || `sameSite` in e2 || `httpOnly` in e2 || `secure` in e2, a$D = (e2) => e2 === `cookie` || e2 === `localStorage` || e2 === `sessionStorage` || e2 === `header`, o$D = (e2) => {
12870
+ }, i$x = (e2) => e2.type === `cookie` || `sameSite` in e2 || `httpOnly` in e2 || `secure` in e2, a$D = (e2) => e2 === `cookie` || e2 === `localStorage` || e2 === `sessionStorage` || e2 === `header`, o$E = (e2) => {
12872
12871
  if (typeof e2 == `string`) {
12873
12872
  if (!a$D(e2)) return { cookies: [], localStorage: [], sessionStorage: [], headers: [] };
12874
12873
  if (e2 === `cookie`) return { cookies: [t$H()] };
@@ -12897,7 +12896,7 @@ const t$H = (t2) => {
12897
12896
  return { cookies: [], localStorage: [], sessionStorage: [], headers: [] };
12898
12897
  }, s$B = (e2, t2) => ({ cookies: [...e2.cookies, ...t2.cookies ?? []], localStorage: [...e2.localStorage, ...t2.localStorage ?? []], sessionStorage: [...e2.sessionStorage, ...t2.sessionStorage ?? []], headers: [...e2.headers, ...t2.headers ?? []] }), c$t = (e2) => {
12899
12898
  let t2 = { cookies: [], localStorage: [], sessionStorage: [], headers: [] };
12900
- return e2 === false || e2 === void 0 ? t2 : Array.isArray(e2) ? e2.reduce((e3, t3) => s$B(e3, o$D(t3)), t2) : s$B(t2, o$D(e2));
12899
+ return e2 === false || e2 === void 0 ? t2 : Array.isArray(e2) ? e2.reduce((e3, t3) => s$B(e3, o$E(t3)), t2) : s$B(t2, o$E(e2));
12901
12900
  };
12902
12901
  const internationalization = { "locales": ["en", "en-GB", "fr", "es", "de", "ja", "ko", "zh", "it", "pt", "hi", "ar", "ru"], "requiredLocales": ["en", "en-GB", "fr", "es", "de", "ja", "ko", "zh", "it", "pt", "hi", "ar", "ru"], "strictMode": "strict", "defaultLocale": "en" };
12903
12902
  const routing = { "mode": "prefix-no-default", "storage": ["cookie", "header"], "basePath": "" };
@@ -12907,8 +12906,8 @@ const editor = { "editorURL": "http://localhost:8000", "cmsURL": "https://app.in
12907
12906
  const log = { "mode": "default", "prefix": "\x1B[38;5;239m[intlayer] \x1B[0m" };
12908
12907
  const ai = {};
12909
12908
  const dictionary = { "fill": true, "contentAutoTransformation": false, "location": "local", "importMode": "static" };
12910
- const metadata = { "name": "Intlayer", "version": "8.3.0", "doc": "https://intlayer.org/docs" };
12911
- const d$h = {
12909
+ const metadata = { "name": "Intlayer", "version": "8.3.1", "doc": "https://intlayer.org/docs" };
12910
+ const o$D = {
12912
12911
  internationalization,
12913
12912
  routing,
12914
12913
  content: content$j,
@@ -12923,7 +12922,7 @@ const r$K = (e2, t2, n2) => {
12923
12922
  let r2 = [`${e2}=${encodeURIComponent(t2)}`];
12924
12923
  return n2.path && r2.push(`Path=${n2.path}`), n2.domain && r2.push(`Domain=${n2.domain}`), n2.expires instanceof Date && r2.push(`Expires=${n2.expires.toUTCString()}`), n2.secure && r2.push(`Secure`), n2.sameSite && r2.push(`SameSite=${n2.sameSite}`), r2.join(`; `);
12925
12924
  }, i$w = (r2) => {
12926
- let { routing: i2, internationalization: a2 } = d$h, { locales: o2 } = a2, { storage: s2 } = i2;
12925
+ let { routing: i2, internationalization: a2 } = o$D, { locales: o2 } = a2, { storage: s2 } = i2;
12927
12926
  if (s2 === false || r2?.isCookieEnabled === false) return;
12928
12927
  let c2 = c$t(s2), l2 = (e2) => e2 ? o2.includes(e2) : false, u2 = (e2) => {
12929
12928
  try {
@@ -12962,8 +12961,8 @@ const r$K = (e2, t2, n2) => {
12962
12961
  }
12963
12962
  }
12964
12963
  }, a$C = (t2, i2) => {
12965
- if (d$h.routing.storage === false || i2?.isCookieEnabled === false) return;
12966
- let a2 = c$t(d$h.routing.storage);
12964
+ if (o$D.routing.storage === false || i2?.isCookieEnabled === false) return;
12965
+ let a2 = c$t(o$D.routing.storage);
12967
12966
  for (let e2 = 0; e2 < a2.cookies.length; e2++) {
12968
12967
  let { name: n2, attributes: o2 } = a2.cookies[e2];
12969
12968
  try {
@@ -13004,7 +13003,7 @@ const r$K = (e2, t2, n2) => {
13004
13003
  };
13005
13004
  const e$j = (e2) => /^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e2);
13006
13005
  const e$i = (e2, t2) => e2.every((e3, n2) => t2[n2] && t2[n2].key === e3.key && t2[n2].type === e3.type);
13007
- const t$G = (t2, n2 = d$h?.internationalization?.locales, r2 = d$h?.internationalization?.defaultLocale) => {
13006
+ const t$G = (t2, n2 = o$D?.internationalization?.locales, r2 = o$D?.internationalization?.defaultLocale) => {
13008
13007
  let i2 = [t2].flat(), a2 = (e2) => e2.trim().toLowerCase();
13009
13008
  try {
13010
13009
  for (let e2 of i2) {
@@ -13028,15 +13027,15 @@ const t$F = (t2) => {
13028
13027
  case re$1:
13029
13028
  case t$R:
13030
13029
  case n$B:
13031
- case r$W:
13032
- case i$I:
13030
+ case r$V:
13031
+ case i$H:
13033
13032
  case a$K:
13034
- case o$K:
13033
+ case o$L:
13035
13034
  case s$G:
13036
13035
  case c$w:
13037
13036
  case l$s:
13038
13037
  case u$q:
13039
- case d$j:
13038
+ case d$i:
13040
13039
  case f$j:
13041
13040
  case p$g:
13042
13041
  case m$f:
@@ -13068,8 +13067,8 @@ const t$F = (t2) => {
13068
13067
  return `ltr`;
13069
13068
  }
13070
13069
  };
13071
- const t$E = (t2, n2 = t2) => new i$H.DisplayNames(n2, { type: `language` }).of(t2) ?? `Unknown locale`;
13072
- const n$r = (n2, r2 = d$h?.internationalization?.locales) => {
13070
+ const t$E = (t2, n2 = t2) => new i$G.DisplayNames(n2, { type: `language` }).of(t2) ?? `Unknown locale`;
13071
+ const n$r = (n2, r2 = o$D?.internationalization?.locales) => {
13073
13072
  let i2 = e$j(n2), a2 = n2;
13074
13073
  n2?.endsWith(`/`) && (a2 = n2.slice(0, -1));
13075
13074
  let o2 = i2 ? new URL(a2) : new URL(a2, `http://example.com`), s2 = o2.pathname;
@@ -13080,7 +13079,7 @@ const n$r = (n2, r2 = d$h?.internationalization?.locales) => {
13080
13079
  return u2.has(`locale`) && (u2.delete(`locale`), o2.search = u2.toString()), i2 ? o2.toString() : o2.toString().replace(`http://example.com`, ``);
13081
13080
  };
13082
13081
  const n$q = (n2, r2 = {}) => {
13083
- let { defaultLocale: i2, mode: a2, locales: o2 } = { defaultLocale: d$h?.internationalization?.defaultLocale ?? u$n.Internationalization.DEFAULT_LOCALE, mode: d$h?.routing?.mode ?? u$n.Routing.ROUTING_MODE, locales: d$h?.internationalization?.locales ?? u$n.Internationalization.LOCALES, ...r2 };
13082
+ let { defaultLocale: i2, mode: a2, locales: o2 } = { defaultLocale: o$D?.internationalization?.defaultLocale ?? u$n.Internationalization.DEFAULT_LOCALE, mode: o$D?.routing?.mode ?? u$n.Routing.ROUTING_MODE, locales: o$D?.internationalization?.locales ?? u$n.Internationalization.LOCALES, ...r2 };
13084
13083
  return !n2 || !o2.includes(n2) ? { prefix: ``, localePrefix: void 0 } : a2 === `prefix-all` || a2 === `prefix-no-default` && i2 !== n2 ? { prefix: `${n2}/`, localePrefix: n2 } : { prefix: ``, localePrefix: void 0 };
13085
13084
  };
13086
13085
  const e$h = (e2, t2 = `url`) => {
@@ -13117,8 +13116,8 @@ const e$h = (e2, t2 = `url`) => {
13117
13116
  }
13118
13117
  return { path: e2, isRewritten: false };
13119
13118
  };
13120
- const c$s = (c2, l2 = d$h?.internationalization?.defaultLocale, u2 = {}) => {
13121
- let { defaultLocale: d2, mode: f2, locales: p2, rewrite: m2 } = { defaultLocale: d$h?.internationalization?.defaultLocale ?? u$n.Internationalization.DEFAULT_LOCALE, mode: d$h?.routing?.mode ?? u$n.Routing.ROUTING_MODE, locales: d$h?.internationalization?.locales ?? u$n.Internationalization.LOCALES, rewrite: d$h?.routing?.rewrite, ...u2 }, h2 = n$r(c2, p2), g2 = e$h(m2, `url`);
13119
+ const c$s = (c2, l2 = o$D?.internationalization?.defaultLocale, u2 = {}) => {
13120
+ let { defaultLocale: d2, mode: f2, locales: p2, rewrite: m2 } = { defaultLocale: o$D?.internationalization?.defaultLocale ?? u$n.Internationalization.DEFAULT_LOCALE, mode: o$D?.routing?.mode ?? u$n.Routing.ROUTING_MODE, locales: o$D?.internationalization?.locales ?? u$n.Internationalization.LOCALES, rewrite: o$D?.routing?.rewrite, ...u2 }, h2 = n$r(c2, p2), g2 = e$h(m2, `url`);
13122
13121
  if (f2 === `no-prefix`) return a$A(i$v(h2, void 0, g2), l2, g2).path;
13123
13122
  let _2 = e$j(h2), v2 = _2 ? new URL(h2) : new URL(h2, `http://example.com`), y2 = _2 ? `${v2.protocol}//${v2.host}` : ``, b2 = a$A(i$v(v2.pathname, void 0, g2), l2, g2).path;
13124
13123
  if (f2 === `search-params`) {
@@ -13185,7 +13184,7 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
13185
13184
  return baseModule().catch(handlePreloadError);
13186
13185
  });
13187
13186
  };
13188
- const o$C = () => Math.random().toString(36).slice(2), { editor: s$z } = d$h ?? {}, c$r = reactExports.createContext({ postMessage: () => null, allowedOrigins: [s$z?.applicationURL, s$z?.editorURL, s$z?.cmsURL], senderId: `` }), l$o = ({ children: t2, allowedOrigins: n2, postMessage: a2 }) => {
13187
+ const o$C = () => Math.random().toString(36).slice(2), { editor: s$z } = o$D ?? {}, c$r = reactExports.createContext({ postMessage: () => null, allowedOrigins: [s$z?.applicationURL, s$z?.editorURL, s$z?.cmsURL], senderId: `` }), l$o = ({ children: t2, allowedOrigins: n2, postMessage: a2 }) => {
13189
13188
  let s2 = reactExports.useRef(o$C()), l2 = reactExports.useMemo(() => ({ postMessage: a2, allowedOrigins: n2, senderId: s2.current }), [a2, n2, s2.current]);
13190
13189
  return jsxRuntimeExports.jsx(c$r.Provider, { value: l2, children: t2 });
13191
13190
  }, u$m = () => reactExports.useContext(c$r);
@@ -13388,7 +13387,7 @@ const e$a = (e2) => e2 === `m` || e2 === `male` ? `male` : e2 === `f` || e2 ===
13388
13387
  };
13389
13388
  const e$9 = (e2, t2) => e2.replace(/\{\{\s*(.*?)\s*\}\}/g, (e3, n2) => (t2[n2.trim()] ?? ``).toString());
13390
13389
  const l$l = (l2, u2, d2, f2) => {
13391
- let p2 = d$h?.internationalization?.defaultLocale, m2 = [s$w(d2 ?? p2, f2 ? p2 : void 0), c$o, l$k, f$h(d2 ?? p2), p$e, u$j, d$g, ...u2.plugins ?? []];
13390
+ let p2 = o$D?.internationalization?.defaultLocale, m2 = [s$w(d2 ?? p2, f2 ? p2 : void 0), c$o, l$k, f$h(d2 ?? p2), p$e, u$j, d$g, ...u2.plugins ?? []];
13392
13391
  return t$x(l2, { ...u2, plugins: m2 });
13393
13392
  };
13394
13393
  const t$u = (t2, n2, r2) => {
@@ -13402,7 +13401,7 @@ const a$x = (e2 = ``) => new Proxy(() => e2, { get: (t2, n2) => {
13402
13401
  if (n2 !== `then`) return a$x(e2 ? `${e2}.${String(n2)}` : String(n2));
13403
13402
  }, apply: () => e2 }), o$z = (o2, s2, c2) => {
13404
13403
  let l2 = getDictionaries()[o2];
13405
- return l2 ? t$u(l2, s2, c2) : (o$J(d$h)(`Dictionary ${l$r(o2)} was not found. Using fallback proxy.`, { level: `warn`, isVerbose: true }), a$x(o2));
13404
+ return l2 ? t$u(l2, s2, c2) : (o$K(o$D)(`Dictionary ${l$r(o2)} was not found. Using fallback proxy.`, { level: `warn`, isVerbose: true }), a$x(o2));
13406
13405
  };
13407
13406
  const t$t = (t2, n2, r2) => {
13408
13407
  let i2 = o$z(t2, r2?.locale, r2?.plugins);
@@ -13610,8 +13609,8 @@ const f$f = ({ children: e2 }) => {
13610
13609
  }, []), n2 ? e2 : t2;
13611
13610
  }, h$b = ({ children: t2, configuration: n2, ...i2 }) => jsxRuntimeExports.jsx(u$i, { children: jsxRuntimeExports.jsx(s$v, { configuration: n2, children: i2.mode === `editor` ? jsxRuntimeExports.jsx(l$o, { ...i2, children: jsxRuntimeExports.jsx(f$f, { children: t2 }) }) : jsxRuntimeExports.jsx(m$d, { fallback: t2, children: jsxRuntimeExports.jsx(l$o, { ...i2, children: jsxRuntimeExports.jsx(p$d, { fallback: t2, children: jsxRuntimeExports.jsx(f$f, { children: t2 }) }) }) }) }) });
13612
13611
  const a$u = () => r$I(e$e.INTLAYER_IFRAME_CLICKED, e$f);
13613
- const d$e = reactExports.createContext({ locale: a$z ?? d$h?.internationalization?.defaultLocale, setLocale: () => null, isCookieEnabled: true, disableEditor: false }), f$e = () => reactExports.useContext(d$e), p$c = ({ locale: e2, defaultLocale: i2, children: a2, setLocale: f2, disableEditor: p2, isCookieEnabled: m2 }) => {
13614
- let { internationalization: h2 } = d$h ?? {}, { locales: g2, defaultLocale: _2 } = h2 ?? {}, v2 = e2 ?? a$z ?? i2 ?? _2, [y2, b2] = a$y(e$e.INTLAYER_CURRENT_LOCALE, v2);
13612
+ const d$e = reactExports.createContext({ locale: a$z ?? o$D?.internationalization?.defaultLocale, setLocale: () => null, isCookieEnabled: true, disableEditor: false }), f$e = () => reactExports.useContext(d$e), p$c = ({ locale: e2, defaultLocale: i2, children: a2, setLocale: f2, disableEditor: p2, isCookieEnabled: m2 }) => {
13613
+ let { internationalization: h2 } = o$D ?? {}, { locales: g2, defaultLocale: _2 } = h2 ?? {}, v2 = e2 ?? a$z ?? i2 ?? _2, [y2, b2] = a$y(e$e.INTLAYER_CURRENT_LOCALE, v2);
13615
13614
  reactExports.useEffect(() => {
13616
13615
  e2 && e2 !== y2 && b2(e2);
13617
13616
  }, [e2]);
@@ -14221,7 +14220,7 @@ const t$l = (n2) => {
14221
14220
  })(n2);
14222
14221
  return reactExports.createElement(r2 ?? `span`, i2, ...i2.children);
14223
14222
  };
14224
- const m$a = { id: `intlayer-node-plugin`, canHandle: (e2) => typeof e2 == `bigint` || typeof e2 == `string` || typeof e2 == `number`, transform: (e2, { plugins: n2, ...i2 }) => r$C({ ...i2, value: i2.children, children: d$h?.editor.enabled ? jsxRuntimeExports.jsx(a$s, { ...i2, children: i2.children }) : i2.children }) }, h$8 = { id: `react-node-plugin`, canHandle: (e2) => typeof e2 == `object` && e2?.props !== void 0 && e2.key !== void 0, transform: (t2, { plugins: n2, ...i2 }) => r$C({ ...i2, value: `[[react-element]]`, children: jsxRuntimeExports.jsx(f$d, { ...i2, children: t$l(t2) }) }) }, g$8 = (e2, t2) => {
14223
+ const m$a = { id: `intlayer-node-plugin`, canHandle: (e2) => typeof e2 == `bigint` || typeof e2 == `string` || typeof e2 == `number`, transform: (e2, { plugins: n2, ...i2 }) => r$C({ ...i2, value: i2.children, children: o$D?.editor.enabled ? jsxRuntimeExports.jsx(a$s, { ...i2, children: i2.children }) : i2.children }) }, h$8 = { id: `react-node-plugin`, canHandle: (e2) => typeof e2 == `object` && e2?.props !== void 0 && e2.key !== void 0, transform: (t2, { plugins: n2, ...i2 }) => r$C({ ...i2, value: `[[react-element]]`, children: jsxRuntimeExports.jsx(f$d, { ...i2, children: t$l(t2) }) }) }, g$8 = (e2, t2) => {
14225
14224
  let n2 = t$p(e2, t2);
14226
14225
  return n2.isSimple ? n2.parts : reactExports.createElement(reactExports.Fragment, null, ...n2.parts.map((e3, t3) => reactExports.createElement(reactExports.Fragment, { key: t3 }, e3)));
14227
14226
  }, _$8 = { id: `insertion-plugin`, canHandle: (e2) => typeof e2 == `object` && e2?.nodeType === e$d.Insertion, transform: (e2, t2, n2) => {
@@ -14256,7 +14255,7 @@ const i$o = (i2, a2) => {
14256
14255
  return reactExports.useMemo(() => o$t(i2, o2), [i2, o2, a2]);
14257
14256
  };
14258
14257
  const a$o = ({ isCookieEnabled: a2, onLocaleChange: o2 } = {}) => {
14259
- let { defaultLocale: s2, locales: c2 } = d$h?.internationalization ?? {}, { locale: l2, setLocale: u2, isCookieEnabled: d2 } = reactExports.useContext(d$e);
14258
+ let { defaultLocale: s2, locales: c2 } = o$D?.internationalization ?? {}, { locale: l2, setLocale: u2, isCookieEnabled: d2 } = reactExports.useContext(d$e);
14260
14259
  return { locale: l2, defaultLocale: s2, availableLocales: c2, setLocale: reactExports.useCallback((t2) => {
14261
14260
  if (!c2?.map(String).includes(t2)) {
14262
14261
  console.error(`Locale ${t2} is not available`);
@@ -26746,11 +26745,11 @@ function createDefu(merger) {
26746
26745
  }
26747
26746
  const defu = createDefu();
26748
26747
  const v$6 = (v2 = {}, y2) => {
26749
- let b2 = defu(y2 ?? {}, d$h);
26748
+ let b2 = defu(y2 ?? {}, o$D);
26750
26749
  return { organization: t$9(v2, b2), project: t$8(v2, b2), user: t$4(v2, b2), oAuth: t$a(b2), dictionary: t$f(v2, b2), stripe: t$6(v2, b2), ai: t$i(v2, b2), audit: t$h(v2, b2), tag: t$5(v2, b2), search: t$7(v2, b2), editor: t$e(v2, b2), newsletter: t$b(v2, b2), github: t$d(v2, b2), gitlab: t$c(v2, b2), bitbucket: t$g(v2, b2), showcaseProject: t$3(v2, b2) };
26751
26750
  };
26752
26751
  const i$g = (i2) => {
26753
- let a2 = c$n(), o2 = i2 ?? a2 ?? d$h, { data: s2 } = useQuery({ queryKey: [`oAuth2AccessToken`], queryFn: t$a(o2).getOAuth2AccessToken, enabled: !!(o2.editor.clientId && o2.editor.clientSecret), staleTime: 0, gcTime: 0, refetchOnWindowFocus: false, refetchOnMount: false, refetchOnReconnect: false, refetchInterval: false, refetchIntervalInBackground: false });
26752
+ let a2 = c$n(), o2 = i2 ?? a2 ?? o$D, { data: s2 } = useQuery({ queryKey: [`oAuth2AccessToken`], queryFn: t$a(o2).getOAuth2AccessToken, enabled: !!(o2.editor.clientId && o2.editor.clientSecret), staleTime: 0, gcTime: 0, refetchOnWindowFocus: false, refetchOnMount: false, refetchOnReconnect: false, refetchInterval: false, refetchIntervalInBackground: false });
26754
26753
  return { oAuth2AccessToken: s2?.data };
26755
26754
  };
26756
26755
  function defineErrorCodes(codes) {
@@ -32359,15 +32358,15 @@ const s$h = (n2) => createAuthClient({ baseURL: n2, withCredentials: true, plugi
32359
32358
  let e2 = new URLSearchParams(window.location.search).get(`redirect_url`), t2 = e2 ? `/auth/2fa?redirect_url=${encodeURIComponent(e2)}` : `/auth/2fa`;
32360
32359
  window.location.href = t2;
32361
32360
  } }), passkeyClient(), magicLinkClient(), ssoClient()] }), c$a = (e2) => {
32362
- let t2 = e2?.editor?.backendURL ?? d$h?.editor?.backendURL;
32363
- t2 || (t2 = u$n.Editor.BACKEND_URL, console.dir({ intlayerConfig: e2, configuration: d$h }, { depth: null }), console.error(`Backend URL is not defined in the Intlayer configuration.`));
32361
+ let t2 = e2?.editor?.backendURL ?? o$D?.editor?.backendURL;
32362
+ t2 || (t2 = u$n.Editor.BACKEND_URL, console.dir({ intlayerConfig: e2, configuration: o$D }, { depth: null }), console.error(`Backend URL is not defined in the Intlayer configuration.`));
32364
32363
  let i2 = s$h(t2);
32365
32364
  return { getAuthClient: () => i2, signInEmail: async (...e3) => i2.signIn.email(...e3), signUpEmail: async (...e3) => i2.signUp.email(...e3), signOut: async (...e3) => i2.signOut(...e3), signInSocial: async (...e3) => i2.signIn.social(...e3), linkSocial: async (...e3) => i2.linkSocial(...e3), changePasswordSession: async (...e3) => i2.changePassword(...e3), requestPasswordResetSession: async (...e3) => i2.requestPasswordReset(...e3), resetPassword: async (...e3) => i2.resetPassword(...e3), verifyEmailSession: async (...e3) => i2.verifyEmail(...e3), getSession: async (...e3) => i2.getSession(...e3), forgetPassword: async (...e3) => i2.requestPasswordReset(...e3), sendVerificationEmail: async (...e3) => i2.sendVerificationEmail(...e3), changeEmail: async (...e3) => i2.changeEmail(...e3), deleteUser: async (...e3) => i2.deleteUser(...e3), revokeSession: async (...e3) => i2.revokeSession(...e3), revokeSessions: async (...e3) => i2.revokeSessions(...e3), revokeOtherSessions: async (...e3) => i2.revokeOtherSessions(...e3), listAccounts: async (...e3) => i2.listAccounts(...e3), unlinkAccount: async (...e3) => i2.unlinkAccount(...e3), refreshToken: async (...e3) => i2.refreshToken(...e3), getAccessToken: async (...e3) => i2.getAccessToken(...e3), accountInfo: async (...e3) => i2.accountInfo(...e3), updateUser: async (...e3) => i2.updateUser(...e3), listSessions: async (...e3) => i2.listSessions(...e3), enableTwoFactor: async (...e3) => i2.twoFactor.enable(...e3), disableTwoFactor: async (...e3) => i2.twoFactor.disable(...e3), verifyTotp: async (...e3) => i2.twoFactor.verifyTotp(...e3), verifyBackupCode: async (...e3) => i2.twoFactor.verifyBackupCode(...e3), addPasskey: async (...e3) => i2.passkey.addPasskey(...e3), signInPasskey: async (...e3) => i2.signIn.passkey(...e3), deletePasskey: async (...e3) => i2.passkey.deletePasskey(...e3), listPasskeys: async () => i2.$fetch(`/passkey/list-user-passkeys`, { method: `GET` }), signInMagicLink: async (...e3) => i2.signIn.magicLink(...e3), signInSSO: async (...e3) => i2.signIn.sso(...e3), registerSSO: async (...e3) => i2.sso.register(...e3), listSSOProviders: async () => {
32366
32365
  }, deleteSSOProvider: async (e3) => {
32367
32366
  } };
32368
32367
  };
32369
32368
  const a$g = (a2, o2) => {
32370
- let s2 = c$n(), c2 = o2 ?? s2 ?? d$h, l2 = useQueryClient(), { data: u2, isFetched: d2, refetch: f2 } = useQuery({ queryKey: [`session`], queryFn: async () => (await c$a(c2).getSession()).data, staleTime: 60 * 1e3, gcTime: 300 * 1e3, refetchOnMount: true, refetchOnWindowFocus: false, refetchOnReconnect: false, enabled: !a2 }), p2 = u2 ?? (d2 ? null : void 0), m2 = (e2) => {
32369
+ let s2 = c$n(), c2 = o2 ?? s2 ?? o$D, l2 = useQueryClient(), { data: u2, isFetched: d2, refetch: f2 } = useQuery({ queryKey: [`session`], queryFn: async () => (await c$a(c2).getSession()).data, staleTime: 60 * 1e3, gcTime: 300 * 1e3, refetchOnMount: true, refetchOnWindowFocus: false, refetchOnReconnect: false, enabled: !a2 }), p2 = u2 ?? (d2 ? null : void 0), m2 = (e2) => {
32371
32370
  l2.setQueryData([`session`], e2);
32372
32371
  }, h2 = async () => (await f2()).data;
32373
32372
  return { session: p2, fetchSession: h2, revalidateSession: h2, setSession: m2 };
@@ -32520,13 +32519,13 @@ const r$p = (r2) => {
32520
32519
  let { keyPath: i2, section: a2 } = r2, o2 = [...i2, { type: e$d.Markdown }], s2 = a2[e$d.Markdown];
32521
32520
  return jsxRuntimeExports.jsx(`div`, { className: `ml-2 grid grid-cols-[auto,1fr] gap-2`, children: jsxRuntimeExports.jsx(v$5, { ...r2, keyPath: o2, section: s2 }) });
32522
32521
  };
32523
- const l$7 = reactExports.memo((r2) => {
32524
- let { keyPath: l2, section: u2, focusedKeyPath: d2 = [], onFocusKeyPath: f2 } = r2;
32522
+ const l$7 = reactExports.memo((i2) => {
32523
+ let { keyPath: l2, section: u2, focusedKeyPath: d2 = [], onFocusKeyPath: f2 } = i2;
32525
32524
  return reactExports.useMemo(() => Object.keys(u2 ?? {}).filter((e2) => !_$5.includes(e2)), [u2]).map((n2) => {
32526
- let i2 = { key: n2, type: e$d.Object }, p2 = [...l2, i2], m2 = e$i(p2, d2);
32525
+ let a2 = { key: n2, type: e$d.Object }, p2 = [...l2, a2], m2 = e$i(p2, d2);
32527
32526
  return jsxRuntimeExports.jsx(i$e, { level: l2.length, title: e$l(n2), description: ``, isSelected: m2, onClick: (e2) => {
32528
32527
  e2.stopPropagation(), f2(m2 ? [] : p2);
32529
- }, children: jsxRuntimeExports.jsx(v$5, { ...r2, keyPath: p2, section: u2[n2] }) }, n2);
32528
+ }, children: jsxRuntimeExports.jsx(v$5, { ...i2, keyPath: p2, section: u2[n2] }) }, n2);
32530
32529
  });
32531
32530
  });
32532
32531
  const r$o = (r2) => {
@@ -34218,7 +34217,7 @@ const c$7 = ({
34218
34217
  }) : u2;
34219
34218
  };
34220
34219
  const i$9 = ({ children: e2 }) => jsxRuntimeExports.jsx(`div`, { className: `min-w-0 max-w-full overflow-x-auto`, children: jsxRuntimeExports.jsx(`pre`, { className: `min-w-0 max-w-full overflow-x-auto [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden`, children: jsxRuntimeExports.jsx(`code`, { children: typeof e2 == `string` ? e2.split(`
34221
- `).map((e3, t2) => jsxRuntimeExports.jsx(`span`, { className: `line block w-full`, children: e3 }, `line-${t2}-${e3.slice(0, 10)}`)) : e2 }) }) }), a$8 = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BMSUME3m.js"), true ? [] : void 0).then((e2) => ({ default: e2.CodeBlockShiki }))), o$c = ({ className: n2, onChange: o2, isEditable: s2, children: c2, lang: l2, isDarkMode: u2, ...d2 }) => jsxRuntimeExports.jsx(`div`, { className: n$j(`flex w-full min-w-0 max-w-full overflow-x-auto`, n2), ...d2, children: jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(i$9, { children: c2 }), children: jsxRuntimeExports.jsx(a$8, { lang: l2, isDarkMode: u2, children: c2 }) }) });
34220
+ `).map((e3, t2) => jsxRuntimeExports.jsx(`span`, { className: `line block w-full`, children: e3 }, `line-${t2}-${e3.slice(0, 10)}`)) : e2 }) }) }), a$8 = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-K9Tkb5Nn.js"), true ? [] : void 0).then((e2) => ({ default: e2.CodeBlockShiki }))), o$c = ({ className: n2, onChange: o2, isEditable: s2, children: c2, lang: l2, isDarkMode: u2, ...d2 }) => jsxRuntimeExports.jsx(`div`, { className: n$j(`flex w-full min-w-0 max-w-full overflow-x-auto`, n2), ...d2, children: jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(i$9, { children: c2 }), children: jsxRuntimeExports.jsx(a$8, { lang: l2, isDarkMode: u2, children: c2 }) }) });
34222
34221
  const g$2 = reactExports.createContext(null), _$3 = () => {
34223
34222
  let e2 = reactExports.useContext(g$2);
34224
34223
  if (!e2) throw Error(`useMultiSelect must be used within MultiSelectProvider`);
@@ -46616,7 +46615,7 @@ const C$2 = ({
46616
46615
  }) => {
46617
46616
  let {
46618
46617
  locales: E2
46619
- } = d$h.internationalization, D2 = t$B(S2, w2, n$o()), {
46618
+ } = o$D.internationalization, D2 = t$B(S2, w2, n$o()), {
46620
46619
  addEditedContent: O2
46621
46620
  } = v$c(), {
46622
46621
  setFocusedContentKeyPath: k2,
@@ -46657,37 +46656,37 @@ const C$2 = ({
46657
46656
  }, e2))
46658
46657
  }) : N2 === e$d.Array ? jsxRuntimeExports.jsxs(`div`, {
46659
46658
  className: `flex flex-col justify-between gap-2`,
46660
- children: [D2.map((n2, s2) => {
46661
- let c2 = [...w2, {
46659
+ children: [D2.map((n2, o2) => {
46660
+ let s2 = [...w2, {
46662
46661
  type: e$d.Array,
46663
- key: s2
46662
+ key: o2
46664
46663
  }];
46665
46664
  return r$f(n2) ? jsxRuntimeExports.jsxs(f$8, {
46666
- label: `${M2.label.value} ${s2}`,
46665
+ label: `${M2.label.value} ${o2}`,
46667
46666
  variant: c$h.HOVERABLE,
46668
46667
  color: l$e.TEXT,
46669
46668
  className: `w-full`,
46670
- onClick: () => k2(c2),
46669
+ onClick: () => k2(s2),
46671
46670
  IconRight: ChevronRight,
46672
- isActive: P2(c2),
46673
- children: [`Item `, s2]
46674
- }, JSON.stringify(c2)) : jsxRuntimeExports.jsx(u$d, {
46675
- label: `${M2.label.value} ${s2}`,
46676
- header: `Item ${s2}`,
46677
- isActive: P2(c2),
46678
- onClick: () => k2(c2),
46671
+ isActive: P2(s2),
46672
+ children: [`Item `, o2]
46673
+ }, JSON.stringify(s2)) : jsxRuntimeExports.jsx(u$d, {
46674
+ label: `${M2.label.value} ${o2}`,
46675
+ header: `Item ${o2}`,
46676
+ isActive: P2(s2),
46677
+ onClick: () => k2(s2),
46679
46678
  children: jsxRuntimeExports.jsx(`div`, {
46680
46679
  className: `mt-2 flex w-full max-w-full`,
46681
46680
  children: jsxRuntimeExports.jsx(`div`, {
46682
46681
  className: `flex-1 pl-10`,
46683
46682
  children: jsxRuntimeExports.jsx(C$2, {
46684
- keyPath: c2,
46683
+ keyPath: s2,
46685
46684
  section: S2,
46686
46685
  dictionary: T2
46687
46686
  })
46688
46687
  })
46689
46688
  })
46690
- }, JSON.stringify(c2));
46689
+ }, JSON.stringify(s2));
46691
46690
  }), jsxRuntimeExports.jsx(f$8, {
46692
46691
  label: j2.label.value,
46693
46692
  variant: c$h.HOVERABLE,
@@ -46712,30 +46711,30 @@ const C$2 = ({
46712
46711
  }) : jsxRuntimeExports.jsx(`div`, {
46713
46712
  className: `flex w-full max-w-full flex-col justify-between gap-2`,
46714
46713
  children: Object.keys(D2).map((n2) => {
46715
- let s2 = [...w2, {
46714
+ let o2 = [...w2, {
46716
46715
  type: e$d.Object,
46717
46716
  key: n2
46718
46717
  }];
46719
- return r$f(t$B(S2, s2)) ? jsxRuntimeExports.jsx(f$8, {
46718
+ return r$f(t$B(S2, o2)) ? jsxRuntimeExports.jsx(f$8, {
46720
46719
  label: `${M2.label.value} ${n2}`,
46721
- isActive: P2(s2),
46720
+ isActive: P2(o2),
46722
46721
  variant: c$h.HOVERABLE,
46723
46722
  color: l$e.TEXT,
46724
46723
  className: `w-full`,
46725
- onClick: () => k2(s2),
46724
+ onClick: () => k2(o2),
46726
46725
  IconRight: ChevronRight,
46727
46726
  children: e$l(n2)
46728
46727
  }, n2) : jsxRuntimeExports.jsx(u$d, {
46729
46728
  label: `${M2.label.value} ${n2}`,
46730
- isActive: P2(s2),
46731
- onClick: () => k2(s2),
46729
+ isActive: P2(o2),
46730
+ onClick: () => k2(o2),
46732
46731
  header: e$l(n2),
46733
46732
  children: jsxRuntimeExports.jsx(`div`, {
46734
46733
  className: `mt-2 flex w-full max-w-full`,
46735
46734
  children: jsxRuntimeExports.jsx(`div`, {
46736
46735
  className: `flex-1 pl-10`,
46737
46736
  children: jsxRuntimeExports.jsx(C$2, {
46738
- keyPath: s2,
46737
+ keyPath: o2,
46739
46738
  section: S2,
46740
46739
  dictionary: T2
46741
46740
  })
@@ -49518,7 +49517,7 @@ const C$1 = ({
49518
49517
  })]
49519
49518
  });
49520
49519
  };
49521
- const l$1 = reactExports.lazy(() => __vitePreload(() => import("./index-D_AtOkgr.js"), true ? [] : void 0).then((e2) => ({ default: e2.Editor }))), u = ({ children: i2, language: u2, isDarkMode: d2, showLineNumbers: f2, showCopyButton: p2 = true, isReadOnly: m2 = false, onChange: h2 }) => {
49520
+ const l$1 = reactExports.lazy(() => __vitePreload(() => import("./index-Czf9YwzC.js"), true ? [] : void 0).then((e2) => ({ default: e2.Editor }))), u = ({ children: i2, language: u2, isDarkMode: d2, showLineNumbers: f2, showCopyButton: p2 = true, isReadOnly: m2 = false, onChange: h2 }) => {
49522
49521
  let g2 = reactExports.useRef(null), _2 = reactExports.useRef(null), [v2, y2] = reactExports.useState({ height: 0, width: 0 }), b2 = d2 ? `vs-dark-transparent` : `hc-light-theme`, x2 = (e2, t2) => {
49523
49522
  _2.current = e2;
49524
49523
  let n2 = (e2.getContentHeight() ?? 0) + 25;
@@ -49696,8 +49695,8 @@ const C = ({
49696
49695
  });
49697
49696
  }, w = ({
49698
49697
  sectionKey: s2,
49699
- section: c2,
49700
- keyPath: u2,
49698
+ section: l2,
49699
+ keyPath: d2,
49701
49700
  dictionaryLocalId: h2
49702
49701
  }) => {
49703
49702
  let {
@@ -49710,8 +49709,8 @@ const C = ({
49710
49709
  titleInput: w2,
49711
49710
  deleteButton: T2
49712
49711
  } = i$o(_AZoQWUiazkW3drbCIDM1), E2 = (e2) => {
49713
- b2(h2, e2, u2);
49714
- let t2 = u2.slice(0, -1), n2 = u2[u2.length - 1];
49712
+ b2(h2, e2, d2);
49713
+ let t2 = d2.slice(0, -1), n2 = d2[d2.length - 1];
49715
49714
  y2([...t2, {
49716
49715
  ...n2,
49717
49716
  key: e2
@@ -49724,8 +49723,8 @@ const C = ({
49724
49723
  border: true,
49725
49724
  borderColor: `text`,
49726
49725
  background: `none`,
49727
- "aria-selected": e$i(u2, v2?.keyPath ?? []),
49728
- onClick: () => y2(u2),
49726
+ "aria-selected": e$i(d2, v2?.keyPath ?? []),
49727
+ onClick: () => y2(d2),
49729
49728
  children: jsxRuntimeExports.jsxs(`div`, {
49730
49729
  className: `flex w-full flex-col items-start justify-between gap-3`,
49731
49730
  children: [typeof s2 == `string` && jsxRuntimeExports.jsxs(`div`, {
@@ -49747,7 +49746,7 @@ const C = ({
49747
49746
  className: `translate-x-2`,
49748
49747
  Icon: Trash,
49749
49748
  onClick: () => {
49750
- x2(h2, void 0, u2), y2(u2.slice(0, -1));
49749
+ x2(h2, void 0, d2), y2(d2.slice(0, -1));
49751
49750
  }
49752
49751
  })]
49753
49752
  }), jsxRuntimeExports.jsxs(`span`, {
@@ -49755,11 +49754,11 @@ const C = ({
49755
49754
  children: [`( `, e$l(s2), ` )`]
49756
49755
  })]
49757
49756
  }), jsxRuntimeExports.jsx(C, {
49758
- keyPath: u2,
49757
+ keyPath: d2,
49759
49758
  dictionaryLocalId: h2,
49760
- section: c2,
49759
+ section: l2,
49761
49760
  onNodeTypeChange: (e2) => {
49762
- x2(h2, e2, u2);
49761
+ x2(h2, e2, d2);
49763
49762
  }
49764
49763
  })]
49765
49764
  })
@@ -49772,7 +49771,7 @@ const C = ({
49772
49771
  let {
49773
49772
  addNodeButton: s2
49774
49773
  } = i$o(_AZoQWUiazkW3drbCIDM1), {
49775
- setFocusedContentKeyPath: l2
49774
+ setFocusedContentKeyPath: c2
49776
49775
  } = o$y(), {
49777
49776
  addEditedContent: u2
49778
49777
  } = v$c();
@@ -49806,7 +49805,7 @@ const C = ({
49806
49805
  type: e$d.Object,
49807
49806
  key: `newKey`
49808
49807
  }];
49809
- u2(o2, ``, e3), l2(e3);
49808
+ u2(o2, ``, e3), c2(e3);
49810
49809
  },
49811
49810
  children: s2.text
49812
49811
  })]
@@ -1,4 +1,4 @@
1
- import { r as reactExports, W as We } from "./index-IT8aKTX0.js";
1
+ import { r as reactExports, W as We } from "./index-B6XTEObp.js";
2
2
  function _arrayLikeToArray(r, a) {
3
3
  (null == a || a > r.length) && (a = r.length);
4
4
  for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Intlayer Editor</title>
8
- <script type="module" crossorigin src="/assets/index-IT8aKTX0.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-B6XTEObp.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-C4-4d5yo.css">
10
10
  </head>
11
11
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer-editor",
3
- "version": "8.3.0",
3
+ "version": "8.3.1",
4
4
  "private": false,
5
5
  "description": "Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.",
6
6
  "keywords": [
@@ -93,17 +93,17 @@
93
93
  "@fastify/formbody": "8.0.2",
94
94
  "@fastify/helmet": "13.0.2",
95
95
  "@fastify/static": "9.0.0",
96
- "@intlayer/chokidar": "8.3.0",
97
- "@intlayer/config": "8.3.0",
98
- "@intlayer/unmerged-dictionaries-entry": "8.3.0",
96
+ "@intlayer/chokidar": "8.3.1",
97
+ "@intlayer/config": "8.3.1",
98
+ "@intlayer/unmerged-dictionaries-entry": "8.3.1",
99
99
  "fastify": "5.8.1",
100
- "fastify-intlayer": "8.3.0",
100
+ "fastify-intlayer": "8.3.1",
101
101
  "mime": "4.1.0"
102
102
  },
103
103
  "devDependencies": {
104
- "@intlayer/design-system": "8.3.0",
105
- "@intlayer/editor-react": "8.3.0",
106
- "@intlayer/types": "8.3.0",
104
+ "@intlayer/design-system": "8.3.1",
105
+ "@intlayer/editor-react": "8.3.1",
106
+ "@intlayer/types": "8.3.1",
107
107
  "@tailwindcss/vite": "4.2.1",
108
108
  "@tanstack/react-query": "5.90.21",
109
109
  "@types/node": "25.4.0",
@@ -117,18 +117,18 @@
117
117
  "framer-motion": "12.35.1",
118
118
  "fuse.js": "7.1.0",
119
119
  "globals": "17.4.0",
120
- "intlayer": "8.3.0",
120
+ "intlayer": "8.3.1",
121
121
  "lucide-react": "0.577.0",
122
122
  "react": "19.2.4",
123
123
  "react-dom": "19.2.4",
124
- "react-intlayer": "8.3.0",
124
+ "react-intlayer": "8.3.1",
125
125
  "react-router-dom": "7.13.1",
126
126
  "tailwind-merge": "3.5.0",
127
127
  "tailwindcss": "4.2.1",
128
128
  "tsdown": "0.21.2",
129
129
  "typescript": "5.9.3",
130
130
  "vite": "7.3.1",
131
- "vite-intlayer": "8.3.0",
131
+ "vite-intlayer": "8.3.1",
132
132
  "vitest": "4.0.18"
133
133
  },
134
134
  "engines": {