intlayer-editor 7.3.11 → 7.3.12
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.
- package/client/dist/assets/{CodeBlockShiki-BtHKWEZc.js → CodeBlockShiki-C3xG8AyL.js} +3 -3
- package/client/dist/assets/{bundle-web-BlyAAHKE.js → bundle-web-06zUzoaF.js} +1 -1
- package/client/dist/assets/{index-DgMLPt35.js → index-OEPa9TO7.js} +17 -17
- package/client/dist/index.html +1 -1
- package/package.json +16 -16
|
@@ -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-
|
|
2
|
-
import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-
|
|
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-06zUzoaF.js","assets/index-OEPa9TO7.js","assets/index-CpI4KDfc.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-OEPa9TO7.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-
|
|
64
|
+
}, languageModule, themeModule] = await Promise.all([__vitePreload(() => import("./bundle-web-06zUzoaF.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-
|
|
2
|
+
import { _ as __vitePreload } from "./index-OEPa9TO7.js";
|
|
3
3
|
let ShikiError$2 = class ShikiError extends Error {
|
|
4
4
|
constructor(message) {
|
|
5
5
|
super(message);
|
|
@@ -14551,6 +14551,22 @@ const createCachedIntl = () => new Proxy(Intl, { get: (target, prop, receiver) =
|
|
|
14551
14551
|
return typeof value === "function" && /^[A-Z]/.test(String(prop)) ? createCachedConstructor(value) : value;
|
|
14552
14552
|
} });
|
|
14553
14553
|
const CachedIntl = createCachedIntl();
|
|
14554
|
+
const localeResolver = (selectedLocale, locales = configuration?.internationalization?.locales, defaultLocale = configuration?.internationalization?.defaultLocale) => {
|
|
14555
|
+
const requestedLocales = [selectedLocale].flat();
|
|
14556
|
+
const normalize = (locale) => locale.trim().toLowerCase();
|
|
14557
|
+
try {
|
|
14558
|
+
for (const requested of requestedLocales) {
|
|
14559
|
+
const normalizedRequested = normalize(requested);
|
|
14560
|
+
const exactMatch = locales.find((loc) => normalize(loc) === normalizedRequested);
|
|
14561
|
+
if (exactMatch) return exactMatch;
|
|
14562
|
+
const [requestedLang] = normalizedRequested.split("-");
|
|
14563
|
+
const partialMatch = locales.find((loc) => normalize(loc).split("-")[0] === requestedLang);
|
|
14564
|
+
if (partialMatch) return partialMatch;
|
|
14565
|
+
}
|
|
14566
|
+
} catch (_error) {
|
|
14567
|
+
}
|
|
14568
|
+
return defaultLocale;
|
|
14569
|
+
};
|
|
14554
14570
|
const getCookie = (name, cookieString) => {
|
|
14555
14571
|
try {
|
|
14556
14572
|
const str = cookieString ?? (typeof document !== "undefined" ? document.cookie : "");
|
|
@@ -14677,22 +14693,6 @@ const setLocaleInStorage$1 = (locale, options) => {
|
|
|
14677
14693
|
}
|
|
14678
14694
|
}
|
|
14679
14695
|
};
|
|
14680
|
-
const localeResolver = (selectedLocale, locales = configuration?.internationalization?.locales, defaultLocale = configuration?.internationalization?.defaultLocale) => {
|
|
14681
|
-
const requestedLocales = [selectedLocale].flat();
|
|
14682
|
-
const normalize = (locale) => locale.trim().toLowerCase();
|
|
14683
|
-
try {
|
|
14684
|
-
for (const requested of requestedLocales) {
|
|
14685
|
-
const normalizedRequested = normalize(requested);
|
|
14686
|
-
const exactMatch = locales.find((loc) => normalize(loc) === normalizedRequested);
|
|
14687
|
-
if (exactMatch) return exactMatch;
|
|
14688
|
-
const [requestedLang] = normalizedRequested.split("-");
|
|
14689
|
-
const partialMatch = locales.find((loc) => normalize(loc).split("-")[0] === requestedLang);
|
|
14690
|
-
if (partialMatch) return partialMatch;
|
|
14691
|
-
}
|
|
14692
|
-
} catch (_error) {
|
|
14693
|
-
}
|
|
14694
|
-
return defaultLocale;
|
|
14695
|
-
};
|
|
14696
14696
|
const localeStorageOptions = {
|
|
14697
14697
|
getCookie: (name) => document.cookie.split(";").find((c) => c.trim().startsWith(`${name}=`))?.split("=")[1],
|
|
14698
14698
|
getLocaleStorage: (name) => localStorage.getItem(name),
|
|
@@ -50472,7 +50472,7 @@ const CodeDefault = ({
|
|
|
50472
50472
|
})
|
|
50473
50473
|
})
|
|
50474
50474
|
});
|
|
50475
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
50475
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-C3xG8AyL.js"), true ? [] : void 0).then((mod) => ({
|
|
50476
50476
|
default: mod.CodeBlockShiki
|
|
50477
50477
|
})));
|
|
50478
50478
|
const CodeBlock = ({
|
package/client/dist/index.html
CHANGED
|
@@ -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-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-OEPa9TO7.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-CpI4KDfc.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer-editor",
|
|
3
|
-
"version": "7.3.
|
|
3
|
+
"version": "7.3.12",
|
|
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.
|
|
89
|
-
"@intlayer/chokidar": "7.3.
|
|
90
|
-
"@intlayer/config": "7.3.
|
|
91
|
-
"@intlayer/core": "7.3.
|
|
92
|
-
"@intlayer/design-system": "7.3.
|
|
93
|
-
"@intlayer/editor-react": "7.3.
|
|
94
|
-
"@intlayer/types": "7.3.
|
|
95
|
-
"@intlayer/unmerged-dictionaries-entry": "7.3.
|
|
88
|
+
"@intlayer/api": "7.3.12",
|
|
89
|
+
"@intlayer/chokidar": "7.3.12",
|
|
90
|
+
"@intlayer/config": "7.3.12",
|
|
91
|
+
"@intlayer/core": "7.3.12",
|
|
92
|
+
"@intlayer/design-system": "7.3.12",
|
|
93
|
+
"@intlayer/editor-react": "7.3.12",
|
|
94
|
+
"@intlayer/types": "7.3.12",
|
|
95
|
+
"@intlayer/unmerged-dictionaries-entry": "7.3.12",
|
|
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.
|
|
101
|
+
"express-intlayer": "7.3.12",
|
|
102
102
|
"framer-motion": "12.23.25",
|
|
103
103
|
"fuse.js": "7.1.0",
|
|
104
104
|
"helmet": "8.1.0",
|
|
105
|
-
"intlayer": "7.3.
|
|
105
|
+
"intlayer": "7.3.12",
|
|
106
106
|
"lucide-react": "0.555.0",
|
|
107
107
|
"mime": "4.1.0",
|
|
108
108
|
"react": "19.2.1",
|
|
109
109
|
"react-dom": "19.2.1",
|
|
110
|
-
"react-intlayer": "7.3.
|
|
110
|
+
"react-intlayer": "7.3.12",
|
|
111
111
|
"react-router-dom": "7.9.5",
|
|
112
112
|
"rimraf": "6.1.2",
|
|
113
|
-
"vite-intlayer": "7.3.
|
|
113
|
+
"vite-intlayer": "7.3.12"
|
|
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.25",
|
|
138
|
-
"intlayer": "7.3.
|
|
138
|
+
"intlayer": "7.3.12",
|
|
139
139
|
"react": ">=16.0.0",
|
|
140
140
|
"react-dom": ">=16.0.0",
|
|
141
|
-
"react-intlayer": "7.3.
|
|
141
|
+
"react-intlayer": "7.3.12",
|
|
142
142
|
"react-router-dom": ">=6.0.0",
|
|
143
143
|
"tailwind-merge": "3.4.0",
|
|
144
|
-
"vite-intlayer": "7.3.
|
|
144
|
+
"vite-intlayer": "7.3.12"
|
|
145
145
|
},
|
|
146
146
|
"engines": {
|
|
147
147
|
"node": ">=14.18"
|