intlayer-editor 7.3.3 → 7.3.5

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-M1-XqLgv.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-derivative-Cswrtqyq.js","assets/html-BOjX3v2Q.js","assets/bundle-web-xUNa13zP.js","assets/index-50BTmkVQ.js","assets/index-BzAV_y2-.css"])))=>i.map(i=>d[i]);
2
- import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-50BTmkVQ.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-M1-XqLgv.js","assets/css-BtVcDqlU.js","assets/javascript-DLs729Nk.js","assets/typescript-Cju7JbYj.js","assets/json-D07AUpjp.js","assets/html-derivative-Cswrtqyq.js","assets/html-BOjX3v2Q.js","assets/bundle-web-D6TbbzJa.js","assets/index-Bcd0Fw4l.js","assets/index-aEQU_i7D.css"])))=>i.map(i=>d[i]);
2
+ import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-Bcd0Fw4l.js";
3
3
  const languageCache = /* @__PURE__ */ new Map();
4
4
  const themeCache = /* @__PURE__ */ new Map();
5
5
  const loadLanguage = async (lang) => {
@@ -61,7 +61,7 @@ const highlightCode = async (code, lang, isDarkMode) => {
61
61
  const themeName = isDarkMode ? "github-dark" : "github-light";
62
62
  const [{
63
63
  codeToHtml
64
- }, languageModule, themeModule] = await Promise.all([__vitePreload(() => import("./bundle-web-xUNa13zP.js"), true ? __vite__mapDeps([7,8,9]) : void 0), loadLanguage(lang), loadTheme(themeName)]);
64
+ }, languageModule, themeModule] = await Promise.all([__vitePreload(() => import("./bundle-web-D6TbbzJa.js"), true ? __vite__mapDeps([7,8,9]) : void 0), loadLanguage(lang), loadTheme(themeName)]);
65
65
  return codeToHtml(code, {
66
66
  lang,
67
67
  theme: themeModule,
@@ -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-DtOFwYfC.js","assets/html-derivative-Cswrtqyq.js","assets/xml-BMzZeaqs.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-DTnHNTeU.js","assets/yaml-B_vW5iTY.js","assets/http-B1QlEqj7.js","assets/bash-Bz2gZrDc.js","assets/hurl-Br_hZn4E.js","assets/csv-Ba84L8e5.js","assets/jinja-BAZ4h1JD.js","assets/jison-Bwp1bXaL.js","assets/julia-D0f5tMoo.js","assets/python-CrdIx4PZ.js","assets/r-oprfD2-9.js","assets/marko-rwefYVra.js","assets/less-BAzLMJNR.js","assets/mdc-ucHOH9Vl.js","assets/markdown-F_EULe_G.js","assets/php-CI-6KGJr.js","assets/pug-C-LeC0-n.js","assets/svelte-CYSO_rLN.js","assets/ts-tags-DCkNjov3.js","assets/vue-M1-XqLgv.js","assets/vue-html-BzXE5pTE.js","assets/vue-vine-BT_ihGGO.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./index-50BTmkVQ.js";
2
+ import { _ as __vitePreload } from "./index-Bcd0Fw4l.js";
3
3
  let ShikiError$2 = class ShikiError extends Error {
4
4
  constructor(message) {
5
5
  super(message);
@@ -1355,10 +1355,10 @@ function requireReactDomClient_production() {
1355
1355
  } catch (err) {
1356
1356
  }
1357
1357
  }
1358
- var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log = Math.log, LN2 = Math.LN2;
1358
+ var clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log2 = Math.log, LN2 = Math.LN2;
1359
1359
  function clz32Fallback(x) {
1360
1360
  x >>>= 0;
1361
- return 0 === x ? 32 : 31 - (log(x) / LN2 | 0) | 0;
1361
+ return 0 === x ? 32 : 31 - (log2(x) / LN2 | 0) | 0;
1362
1362
  }
1363
1363
  var nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304;
1364
1364
  function getHighestPriorityLanes(lanes) {
@@ -12527,6 +12527,25 @@ function requireCompilerRuntime() {
12527
12527
  return compilerRuntime.exports;
12528
12528
  }
12529
12529
  var compilerRuntimeExports = /* @__PURE__ */ requireCompilerRuntime();
12530
+ const logger = (content2, details) => {
12531
+ const isVerbose = details?.isVerbose ?? false;
12532
+ const mode = details?.config?.mode ?? "default";
12533
+ const level = details?.level ?? "info";
12534
+ const prefix = details?.config?.prefix ? details?.config?.prefix : void 0;
12535
+ const log2 = details?.config?.log ?? console.log;
12536
+ const info = details?.config?.info ?? console.info;
12537
+ const warn = details?.config?.warn ?? console.warn;
12538
+ const error = details?.config?.error ?? console.error;
12539
+ const debug = details?.config?.debug ?? console.debug;
12540
+ if (mode === "disabled") return;
12541
+ if (isVerbose && mode !== "verbose") return;
12542
+ const flatContent = prefix ? [prefix, ...[content2].flat()] : [content2].flat();
12543
+ if (level === "debug") return debug(...flatContent);
12544
+ if (level === "info") return info(...flatContent);
12545
+ if (level === "warn") return warn(...flatContent);
12546
+ if (level === "error") return error(...flatContent);
12547
+ log2(...flatContent);
12548
+ };
12530
12549
  let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
12531
12550
  ANSIColors$1["RESET"] = "\x1B[0m";
12532
12551
  ANSIColors$1["GREY"] = "\x1B[90m";
@@ -12544,6 +12563,14 @@ let ANSIColors = /* @__PURE__ */ function(ANSIColors$1) {
12544
12563
  ANSIColors$1["BOLD"] = "\x1B[1m";
12545
12564
  return ANSIColors$1;
12546
12565
  }({});
12566
+ const getAppLogger = (configuration2, globalDetails) => (content2, details) => logger(content2, {
12567
+ ...details ?? {},
12568
+ config: {
12569
+ ...configuration2?.log,
12570
+ ...globalDetails?.config,
12571
+ ...details?.config ?? {}
12572
+ }
12573
+ });
12547
12574
  var __defProp$2 = Object.defineProperty;
12548
12575
  var __export$1 = (all, symbols) => {
12549
12576
  let target = {};
@@ -13708,12 +13735,30 @@ const getEnumeration = (enumerationContent, quantity) => {
13708
13735
  return enumerationContent[findMatchingCondition(enumerationContent, quantity) ?? "fallback"];
13709
13736
  };
13710
13737
  const getInsertion = (content2, values) => content2.replace(/\{\{(.*?)\}\}/g, (_2, key2) => (values[key2] ?? "").toString());
13738
+ const internationalization = { "locales": ["en", "en-GB", "fr", "es", "de", "ja", "ko", "zh", "it", "pt", "hi", "ar", "ru"], "defaultLocale": "en" };
13739
+ const routing = { "mode": "prefix-no-default", "storage": ["cookie", "header"] };
13740
+ const editor$1 = { "applicationURL": "", "editorURL": "http://localhost:8000", "cmsURL": "https://intlayer.org", "backendURL": "https://back.intlayer.org", "port": 8e3, "enabled": true, "dictionaryPriorityStrategy": "local_first", "liveSync": true, "liveSyncPort": 4e3, "liveSyncURL": "http://localhost:4000" };
13741
+ const log = { "mode": "default", "prefix": "\x1B[38;5;239m[intlayer] \x1B[0m" };
13742
+ const build = { "optimize": true };
13743
+ const configuration = {
13744
+ internationalization,
13745
+ routing,
13746
+ editor: editor$1,
13747
+ log,
13748
+ build
13749
+ };
13711
13750
  const dictionaries = {};
13712
13751
  const getDictionaries = () => dictionaries;
13713
13752
  const getIntlayer = (key2, locale, plugins) => {
13714
13753
  const dictionaries2 = getDictionaries();
13715
13754
  const dictionary = dictionaries2[key2];
13716
- if (!dictionary) throw new Error(`Dictionary ${key2} not found`, dictionaries2);
13755
+ if (!dictionary) {
13756
+ if (configuration.build.optimize) getAppLogger(configuration)("Build optimization is enabled, the dictionary may have been purged. You can disable build optimization, or configure the traversePattern to include the current component.", {
13757
+ level: "error",
13758
+ isVerbose: true
13759
+ });
13760
+ throw new Error(`Dictionary ${key2} not found`, dictionaries2);
13761
+ }
13717
13762
  return getDictionary$1(dictionary, locale, plugins);
13718
13763
  };
13719
13764
  const getNesting = (dictionaryKey, path, props) => {
@@ -13994,14 +14039,6 @@ const filePlugin = {
13994
14039
  children: node.content
13995
14040
  })
13996
14041
  };
13997
- const internationalization = { "locales": ["en", "en-GB", "fr", "es", "de", "ja", "ko", "zh", "it", "pt", "hi", "ar", "ru"], "defaultLocale": "en" };
13998
- const routing = { "mode": "prefix-no-default", "storage": ["cookie", "header"] };
13999
- const editor$1 = { "applicationURL": "", "editorURL": "http://localhost:8000", "cmsURL": "https://intlayer.org", "backendURL": "https://back.intlayer.org", "port": 8e3, "enabled": true, "dictionaryPriorityStrategy": "local_first", "liveSync": true, "liveSyncPort": 4e3, "liveSyncURL": "http://localhost:4000" };
14000
- const configuration = {
14001
- internationalization,
14002
- routing,
14003
- editor: editor$1
14004
- };
14005
14042
  const getContent = (node, nodeProps, locale) => {
14006
14043
  const defaultLocale = configuration?.internationalization?.defaultLocale;
14007
14044
  const plugins = [
@@ -32048,7 +32085,7 @@ let ModalSize = /* @__PURE__ */ function(ModalSize$1) {
32048
32085
  ModalSize$1["UNSET"] = "unset";
32049
32086
  return ModalSize$1;
32050
32087
  }({});
32051
- const modalVariants = cva("cursor-default overflow-auto p-3 shadow-sm", {
32088
+ const modalVariants = cva("flex cursor-default flex-col overflow-hidden p-3 shadow-sm", {
32052
32089
  variants: {
32053
32090
  size: {
32054
32091
  sm: "h-auto max-h-[30vh] w-[95vw] max-w-xl",
@@ -32154,7 +32191,7 @@ const Modal = ({
32154
32191
  size: ButtonSize.ICON_MD
32155
32192
  })]
32156
32193
  }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
32157
- className: "flex flex-1 flex-col items-center",
32194
+ className: "flex w-full flex-1 flex-col overflow-hidden",
32158
32195
  children
32159
32196
  })]
32160
32197
  })
@@ -50508,7 +50545,7 @@ const CodeDefault = ({
50508
50545
  })
50509
50546
  })
50510
50547
  });
50511
- const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-98ARt5Qf.js"), true ? [] : void 0).then((mod) => ({
50548
+ const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-B6qqbyYR.js"), true ? [] : void 0).then((mod) => ({
50512
50549
  default: mod.CodeBlockShiki
50513
50550
  })));
50514
50551
  const CodeBlock = ({
@@ -2266,6 +2266,11 @@
2266
2266
  border-left-width: 4px;
2267
2267
  }
2268
2268
 
2269
+ .border-l-\[2px\] {
2270
+ border-left-style: var(--tw-border-style);
2271
+ border-left-width: 2px;
2272
+ }
2273
+
2269
2274
  .border-dashed {
2270
2275
  --tw-border-style: dashed;
2271
2276
  border-style: dashed;
@@ -3133,8 +3138,17 @@
3133
3138
  background-color: var(--color-yellow-600);
3134
3139
  }
3135
3140
 
3136
- .bg-gradient-to-br {
3137
- --tw-gradient-position: to bottom right in oklab;
3141
+ .bg-linear-to-br {
3142
+ --tw-gradient-position: to bottom right;
3143
+ }
3144
+
3145
+ @supports (background-image: linear-gradient(in lab, red, red)) {
3146
+ .bg-linear-to-br {
3147
+ --tw-gradient-position: to bottom right in oklab;
3148
+ }
3149
+ }
3150
+
3151
+ .bg-linear-to-br {
3138
3152
  background-image: linear-gradient(var(--tw-gradient-stops));
3139
3153
  }
3140
3154
 
@@ -4975,6 +4989,11 @@
4975
4989
  left: calc(var(--spacing) * -12);
4976
4990
  }
4977
4991
 
4992
+ .after\:left-0:after {
4993
+ content: var(--tw-content);
4994
+ left: calc(var(--spacing) * 0);
4995
+ }
4996
+
4978
4997
  .after\:block:after {
4979
4998
  content: var(--tw-content);
4980
4999
  display: block;
@@ -4995,6 +5014,12 @@
4995
5014
  width: calc(var(--spacing) * 2);
4996
5015
  }
4997
5016
 
5017
+ .after\:-translate-x-1\/2:after {
5018
+ content: var(--tw-content);
5019
+ --tw-translate-x: calc(calc(1 / 2 * 100%) * -1);
5020
+ translate: var(--tw-translate-x) var(--tw-translate-y);
5021
+ }
5022
+
4998
5023
  .after\:translate-x-1\/2:after {
4999
5024
  content: var(--tw-content);
5000
5025
  --tw-translate-x: calc(1 / 2 * 100%);
@@ -5,8 +5,8 @@
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-50BTmkVQ.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-BzAV_y2-.css">
8
+ <script type="module" crossorigin src="/assets/index-Bcd0Fw4l.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-aEQU_i7D.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer-editor",
3
- "version": "7.3.3",
3
+ "version": "7.3.5",
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": [
@@ -85,32 +85,32 @@
85
85
  "typecheck": "tsc --project ./server/tsconfig.types.json --noEmit"
86
86
  },
87
87
  "dependencies": {
88
- "@intlayer/api": "7.3.3",
89
- "@intlayer/chokidar": "7.3.3",
90
- "@intlayer/config": "7.3.3",
91
- "@intlayer/core": "7.3.3",
92
- "@intlayer/design-system": "7.3.3",
93
- "@intlayer/editor-react": "7.3.3",
94
- "@intlayer/types": "7.3.3",
95
- "@intlayer/unmerged-dictionaries-entry": "7.3.3",
88
+ "@intlayer/api": "7.3.5",
89
+ "@intlayer/chokidar": "7.3.5",
90
+ "@intlayer/config": "7.3.5",
91
+ "@intlayer/core": "7.3.5",
92
+ "@intlayer/design-system": "7.3.5",
93
+ "@intlayer/editor-react": "7.3.5",
94
+ "@intlayer/types": "7.3.5",
95
+ "@intlayer/unmerged-dictionaries-entry": "7.3.5",
96
96
  "@tanstack/react-query": "5.90.10",
97
97
  "compression": "1.8.1",
98
98
  "cookie-parser": "1.4.7",
99
99
  "cors": "2.8.5",
100
100
  "express": "5.1.0",
101
- "express-intlayer": "7.3.3",
101
+ "express-intlayer": "7.3.5",
102
102
  "framer-motion": "12.23.24",
103
103
  "fuse.js": "7.1.0",
104
104
  "helmet": "8.1.0",
105
- "intlayer": "7.3.3",
105
+ "intlayer": "7.3.5",
106
106
  "lucide-react": "0.554.0",
107
107
  "mime": "4.1.0",
108
108
  "react": "19.2.0",
109
109
  "react-dom": "19.2.0",
110
- "react-intlayer": "7.3.3",
110
+ "react-intlayer": "7.3.5",
111
111
  "react-router-dom": "7.9.5",
112
112
  "rimraf": "6.1.2",
113
- "vite-intlayer": "7.3.3"
113
+ "vite-intlayer": "7.3.5"
114
114
  },
115
115
  "devDependencies": {
116
116
  "@tailwindcss/vite": "4.1.16",
@@ -135,13 +135,13 @@
135
135
  "peerDependencies": {
136
136
  "clsx": "2.1.1",
137
137
  "framer-motion": "12.23.24",
138
- "intlayer": "7.3.3",
138
+ "intlayer": "7.3.5",
139
139
  "react": ">=16.0.0",
140
140
  "react-dom": ">=16.0.0",
141
- "react-intlayer": "7.3.3",
141
+ "react-intlayer": "7.3.5",
142
142
  "react-router-dom": ">=6.0.0",
143
143
  "tailwind-merge": "3.4.0",
144
- "vite-intlayer": "7.3.3"
144
+ "vite-intlayer": "7.3.5"
145
145
  },
146
146
  "engines": {
147
147
  "node": ">=14.18"