intlayer-editor 7.1.0-canary.1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/dist/assets/{CodeBlockShiki-_DmwRPKS.js → CodeBlockShiki-BSALDQ1I.js} +3 -3
- package/client/dist/assets/{bundle-web--vAVGoVT.js → bundle-web-CDKQVXX6.js} +1 -1
- package/client/dist/assets/{index-Dx4Hk1MV.js → index-RhJD8Pnc.js} +18 -12
- package/client/dist/index.html +1 -1
- package/package.json +23 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vue-CV5z08t_.js","assets/css-BtVcDqlU.js","assets/javascript-BXO33K-2.js","assets/typescript-j4TNaYMi.js","assets/json-D07AUpjp.js","assets/html-derivative-9rfoponC.js","assets/html-Dkr1GMsP.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-CV5z08t_.js","assets/css-BtVcDqlU.js","assets/javascript-BXO33K-2.js","assets/typescript-j4TNaYMi.js","assets/json-D07AUpjp.js","assets/html-derivative-9rfoponC.js","assets/html-Dkr1GMsP.js","assets/bundle-web-CDKQVXX6.js","assets/index-RhJD8Pnc.js","assets/index-BVgTO6SK.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { r as reactExports, j as jsxRuntimeExports, C as CodeDefault, _ as __vitePreload } from "./index-RhJD8Pnc.js";
|
|
3
3
|
const languageCache = /* @__PURE__ */ new Map();
|
|
4
4
|
const themeCache = /* @__PURE__ */ new Map();
|
|
5
5
|
const loadLanguage = async (lang) => {
|
|
@@ -60,7 +60,7 @@ const loadTheme = async (themeName) => {
|
|
|
60
60
|
const highlightCode = async (code, lang, isDarkMode) => {
|
|
61
61
|
const themeName = isDarkMode ? "github-dark" : "github-light";
|
|
62
62
|
const [{ codeToHtml }, languageModule, themeModule] = await Promise.all([
|
|
63
|
-
__vitePreload(() => import("./bundle-web
|
|
63
|
+
__vitePreload(() => import("./bundle-web-CDKQVXX6.js"), true ? __vite__mapDeps([7,8,9]) : void 0),
|
|
64
64
|
loadLanguage(lang),
|
|
65
65
|
loadTheme(themeName)
|
|
66
66
|
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CqDu7dYI.js","assets/html-Dkr1GMsP.js","assets/javascript-BXO33K-2.js","assets/css-BtVcDqlU.js","assets/angular-ts-JUgYMaAO.js","assets/scss-Dq-LbI_c.js","assets/astro-DgRPb09x.js","assets/json-D07AUpjp.js","assets/typescript-j4TNaYMi.js","assets/postcss-kj1IbjVd.js","assets/tsx-B9RA6cgQ.js","assets/blade-BNo76U2i.js","assets/html-derivative-9rfoponC.js","assets/xml-BMzZeaqs.js","assets/java-BfXh-0uJ.js","assets/sql-DzUuSofg.js","assets/coffee-DRmm8L99.js","assets/cpp-zh2ePAE_.js","assets/regexp-BxWeO75u.js","assets/glsl-CGsiYPcu.js","assets/c-C4VtT7JA.js","assets/graphql-BRx9mrhY.js","assets/jsx-BPmvoin2.js","assets/haml-O037W7a8.js","assets/handlebars-kwM0CYPJ.js","assets/yaml-B_vW5iTY.js","assets/http-CB4Cm8yY.js","assets/bash-Bz2gZrDc.js","assets/jinja-DX5epABU.js","assets/jison-5-r4c8L1.js","assets/julia-CSYRDJn0.js","assets/python-CrdIx4PZ.js","assets/r-oprfD2-9.js","assets/marko-D6KBFqYp.js","assets/less-BAzLMJNR.js","assets/mdc-N73HqDUD.js","assets/markdown-F_EULe_G.js","assets/php-D0sxH1LE.js","assets/pug-HL4PJmfE.js","assets/svelte-zeq24KqG.js","assets/ts-tags-CINmazHI.js","assets/vue-CV5z08t_.js","assets/vue-html-k04GfWOW.js","assets/vue-vine-BL_nHMoY.js","assets/stylus-DXFa_2Jl.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import { _ as __vitePreload } from "./index-
|
|
2
|
+
import { _ as __vitePreload } from "./index-RhJD8Pnc.js";
|
|
3
3
|
let ShikiError$2 = class ShikiError extends Error {
|
|
4
4
|
constructor(message) {
|
|
5
5
|
super(message);
|
|
@@ -14877,13 +14877,19 @@ const getPathWithoutLocale = (inputUrl, locales = configuration?.internationaliz
|
|
|
14877
14877
|
return url.toString().replace("http://example.com", "");
|
|
14878
14878
|
};
|
|
14879
14879
|
const getPrefix = (locale, options = {}) => {
|
|
14880
|
-
const { defaultLocale = configuration?.internationalization?.defaultLocale, mode = configuration?.routing?.mode
|
|
14881
|
-
if (!locale) return
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14880
|
+
const { defaultLocale = configuration?.internationalization?.defaultLocale, mode = configuration?.routing?.mode } = options;
|
|
14881
|
+
if (!locale) return {
|
|
14882
|
+
prefix: "",
|
|
14883
|
+
localePrefix: void 0
|
|
14884
|
+
};
|
|
14885
|
+
if (mode === "prefix-all" || mode === "prefix-no-default" && defaultLocale !== locale) return {
|
|
14886
|
+
prefix: `${locale}/`,
|
|
14887
|
+
localePrefix: locale
|
|
14888
|
+
};
|
|
14889
|
+
return {
|
|
14890
|
+
prefix: "",
|
|
14891
|
+
localePrefix: void 0
|
|
14892
|
+
};
|
|
14887
14893
|
};
|
|
14888
14894
|
const getLocalizedUrl = (url, currentLocale, options = {}) => {
|
|
14889
14895
|
const { locales = configuration?.internationalization?.locales ?? defaultValues_exports.Internationalization.LOCALES, defaultLocale = configuration?.internationalization?.defaultLocale ?? defaultValues_exports.Internationalization.DEFAULT_LOCALE, mode = configuration?.routing?.mode ?? defaultValues_exports.Routing.ROUTING_MODE } = options;
|
|
@@ -14900,11 +14906,11 @@ const getLocalizedUrl = (url, currentLocale, options = {}) => {
|
|
|
14900
14906
|
if (isAbsoluteUrl) return `${baseUrl}${pathWithQuery}${parsedUrl.hash}`;
|
|
14901
14907
|
return `${pathWithQuery}${parsedUrl.hash}`;
|
|
14902
14908
|
}
|
|
14903
|
-
|
|
14909
|
+
const { prefix } = getPrefix(currentLocale, {
|
|
14904
14910
|
defaultLocale,
|
|
14905
|
-
mode
|
|
14906
|
-
|
|
14907
|
-
}
|
|
14911
|
+
mode
|
|
14912
|
+
});
|
|
14913
|
+
let localizedPath = `/${prefix}${parsedUrl.pathname}`;
|
|
14908
14914
|
localizedPath = localizedPath.replaceAll(/\/+/g, "/");
|
|
14909
14915
|
if (localizedPath.length > 1 && localizedPath.endsWith("/")) localizedPath = localizedPath.slice(0, -1);
|
|
14910
14916
|
if (isAbsoluteUrl) return `${baseUrl}${localizedPath}${parsedUrl.search}${parsedUrl.hash}`;
|
|
@@ -49655,7 +49661,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
|
|
|
49655
49661
|
}, `line-${index2}-${line.slice(0, 10)}`)) })
|
|
49656
49662
|
})
|
|
49657
49663
|
});
|
|
49658
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
49664
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BSALDQ1I.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
|
|
49659
49665
|
const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
49660
49666
|
className: cn$2("flex w-full min-w-0 max-w-full overflow-x-auto", className),
|
|
49661
49667
|
...props,
|
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-RhJD8Pnc.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-BVgTO6SK.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.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
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,31 +85,31 @@
|
|
|
85
85
|
"typecheck": "tsc --project ./server/tsconfig.types.json --noEmit"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@intlayer/api": "7.1.0
|
|
89
|
-
"@intlayer/config": "7.1.0
|
|
90
|
-
"@intlayer/core": "7.1.0
|
|
91
|
-
"@intlayer/design-system": "7.1.0
|
|
92
|
-
"@intlayer/editor-react": "7.1.0
|
|
93
|
-
"@intlayer/types": "7.1.0
|
|
94
|
-
"@intlayer/unmerged-dictionaries-entry": "7.1.0
|
|
88
|
+
"@intlayer/api": "7.1.0",
|
|
89
|
+
"@intlayer/config": "7.1.0",
|
|
90
|
+
"@intlayer/core": "7.1.0",
|
|
91
|
+
"@intlayer/design-system": "7.1.0",
|
|
92
|
+
"@intlayer/editor-react": "7.1.0",
|
|
93
|
+
"@intlayer/types": "7.1.0",
|
|
94
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.0",
|
|
95
95
|
"@tanstack/react-query": "5.90.8",
|
|
96
96
|
"compression": "1.8.1",
|
|
97
97
|
"cookie-parser": "1.4.7",
|
|
98
98
|
"cors": "2.8.5",
|
|
99
99
|
"express": "5.1.0",
|
|
100
|
-
"express-intlayer": "7.1.0
|
|
100
|
+
"express-intlayer": "7.1.0",
|
|
101
101
|
"framer-motion": "12.23.24",
|
|
102
102
|
"fuse.js": "7.1.0",
|
|
103
103
|
"helmet": "8.1.0",
|
|
104
|
-
"intlayer": "7.1.0
|
|
104
|
+
"intlayer": "7.1.0",
|
|
105
105
|
"lucide-react": "0.553.0",
|
|
106
106
|
"mime": "4.1.0",
|
|
107
107
|
"react": "19.2.0",
|
|
108
108
|
"react-dom": "19.2.0",
|
|
109
|
-
"react-intlayer": "7.1.0
|
|
109
|
+
"react-intlayer": "7.1.0",
|
|
110
110
|
"react-router-dom": "7.9.5",
|
|
111
111
|
"rimraf": "6.1.0",
|
|
112
|
-
"vite-intlayer": "7.1.0
|
|
112
|
+
"vite-intlayer": "7.1.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@tailwindcss/vite": "4.1.16",
|
|
@@ -132,23 +132,23 @@
|
|
|
132
132
|
"vitest": "4.0.8"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
|
-
"@intlayer/chokidar": "7.1.0
|
|
136
|
-
"@intlayer/config": "7.1.0
|
|
137
|
-
"@intlayer/core": "7.1.0
|
|
138
|
-
"@intlayer/design-system": "7.1.0
|
|
139
|
-
"@intlayer/dictionaries-entry": "7.1.0
|
|
140
|
-
"@intlayer/editor-react": "7.1.0
|
|
141
|
-
"@intlayer/types": "7.1.0
|
|
142
|
-
"@intlayer/unmerged-dictionaries-entry": "7.1.0
|
|
135
|
+
"@intlayer/chokidar": "7.1.0",
|
|
136
|
+
"@intlayer/config": "7.1.0",
|
|
137
|
+
"@intlayer/core": "7.1.0",
|
|
138
|
+
"@intlayer/design-system": "7.1.0",
|
|
139
|
+
"@intlayer/dictionaries-entry": "7.1.0",
|
|
140
|
+
"@intlayer/editor-react": "7.1.0",
|
|
141
|
+
"@intlayer/types": "7.1.0",
|
|
142
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.0",
|
|
143
143
|
"clsx": "2.1.1",
|
|
144
144
|
"framer-motion": "12.23.24",
|
|
145
|
-
"intlayer": "7.1.0
|
|
145
|
+
"intlayer": "7.1.0",
|
|
146
146
|
"react": ">=16.0.0",
|
|
147
147
|
"react-dom": ">=16.0.0",
|
|
148
|
-
"react-intlayer": "7.1.0
|
|
148
|
+
"react-intlayer": "7.1.0",
|
|
149
149
|
"react-router-dom": ">=6.0.0",
|
|
150
150
|
"tailwind-merge": "3.4.0",
|
|
151
|
-
"vite-intlayer": "7.1.0
|
|
151
|
+
"vite-intlayer": "7.1.0"
|
|
152
152
|
},
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14.18"
|