intlayer-editor 7.0.9-canary.3 → 7.1.0-canary.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.
- package/client/dist/assets/{CodeBlockShiki-DnZQYzr7.js → CodeBlockShiki-_DmwRPKS.js} +3 -3
- package/client/dist/assets/{bundle-web-DkwBW04f.js → bundle-web--vAVGoVT.js} +1 -1
- package/client/dist/assets/{index-e-HKwUP8.js → index-Dx4Hk1MV.js} +17 -6
- 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--vAVGoVT.js","assets/index-Dx4Hk1MV.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-Dx4Hk1MV.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--vAVGoVT.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-Dx4Hk1MV.js";
|
|
3
3
|
let ShikiError$2 = class ShikiError extends Error {
|
|
4
4
|
constructor(message) {
|
|
5
5
|
super(message);
|
|
@@ -14876,25 +14876,36 @@ const getPathWithoutLocale = (inputUrl, locales = configuration?.internationaliz
|
|
|
14876
14876
|
if (isAbsoluteUrl) return url.toString();
|
|
14877
14877
|
return url.toString().replace("http://example.com", "");
|
|
14878
14878
|
};
|
|
14879
|
+
const getPrefix = (locale, options = {}) => {
|
|
14880
|
+
const { defaultLocale = configuration?.internationalization?.defaultLocale, mode = configuration?.routing?.mode, addSlash = true } = options;
|
|
14881
|
+
if (!locale) return "";
|
|
14882
|
+
if (mode === "prefix-all" || mode === "prefix-no-default" && defaultLocale !== locale) {
|
|
14883
|
+
if (addSlash) return `${locale}/`;
|
|
14884
|
+
return `${locale}`;
|
|
14885
|
+
}
|
|
14886
|
+
return "";
|
|
14887
|
+
};
|
|
14879
14888
|
const getLocalizedUrl = (url, currentLocale, options = {}) => {
|
|
14880
14889
|
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;
|
|
14881
14890
|
const urlWithoutLocale = getPathWithoutLocale(url, locales);
|
|
14882
14891
|
if (mode === "no-prefix") return urlWithoutLocale;
|
|
14883
14892
|
const isAbsoluteUrl = checkIsURLAbsolute(urlWithoutLocale);
|
|
14884
14893
|
const parsedUrl = isAbsoluteUrl ? new URL(urlWithoutLocale) : new URL(urlWithoutLocale, "http://example.com");
|
|
14885
|
-
let pathname = parsedUrl.pathname;
|
|
14886
|
-
if (!pathname.startsWith("/")) pathname = `/${pathname}`;
|
|
14887
14894
|
const baseUrl = isAbsoluteUrl ? `${parsedUrl.protocol}//${parsedUrl.host}` : "";
|
|
14888
14895
|
if (mode === "search-params") {
|
|
14889
14896
|
const searchParams = new URLSearchParams(parsedUrl.search);
|
|
14890
14897
|
searchParams.set("locale", currentLocale.toString());
|
|
14891
14898
|
const queryString = searchParams.toString();
|
|
14892
|
-
const pathWithQuery = queryString ? `${pathname}?${queryString}` : pathname;
|
|
14899
|
+
const pathWithQuery = queryString ? `${parsedUrl.pathname}?${queryString}` : parsedUrl.pathname;
|
|
14893
14900
|
if (isAbsoluteUrl) return `${baseUrl}${pathWithQuery}${parsedUrl.hash}`;
|
|
14894
14901
|
return `${pathWithQuery}${parsedUrl.hash}`;
|
|
14895
14902
|
}
|
|
14896
|
-
|
|
14897
|
-
|
|
14903
|
+
let localizedPath = `/${getPrefix(currentLocale, {
|
|
14904
|
+
defaultLocale,
|
|
14905
|
+
mode,
|
|
14906
|
+
addSlash: false
|
|
14907
|
+
})}/${parsedUrl.pathname}`;
|
|
14908
|
+
localizedPath = localizedPath.replaceAll(/\/+/g, "/");
|
|
14898
14909
|
if (localizedPath.length > 1 && localizedPath.endsWith("/")) localizedPath = localizedPath.slice(0, -1);
|
|
14899
14910
|
if (isAbsoluteUrl) return `${baseUrl}${localizedPath}${parsedUrl.search}${parsedUrl.hash}`;
|
|
14900
14911
|
return `${localizedPath}${parsedUrl.search}${parsedUrl.hash}`;
|
|
@@ -49644,7 +49655,7 @@ const CodeDefault = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div
|
|
|
49644
49655
|
}, `line-${index2}-${line.slice(0, 10)}`)) })
|
|
49645
49656
|
})
|
|
49646
49657
|
});
|
|
49647
|
-
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
49658
|
+
const CodeBlockShiki = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-_DmwRPKS.js"), true ? [] : void 0).then((mod) => ({ default: mod.CodeBlockShiki })));
|
|
49648
49659
|
const CodeBlock = ({ className, onChange, isEditable, children, lang, isDarkMode, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
49649
49660
|
className: cn$2("flex w-full min-w-0 max-w-full overflow-x-auto", className),
|
|
49650
49661
|
...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-Dx4Hk1MV.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.0
|
|
3
|
+
"version": "7.1.0-canary.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": [
|
|
@@ -85,31 +85,31 @@
|
|
|
85
85
|
"typecheck": "tsc --project ./server/tsconfig.types.json --noEmit"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@intlayer/api": "7.0
|
|
89
|
-
"@intlayer/config": "7.0
|
|
90
|
-
"@intlayer/core": "7.0
|
|
91
|
-
"@intlayer/design-system": "7.0
|
|
92
|
-
"@intlayer/editor-react": "7.0
|
|
93
|
-
"@intlayer/types": "7.0
|
|
94
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0
|
|
88
|
+
"@intlayer/api": "7.1.0-canary.1",
|
|
89
|
+
"@intlayer/config": "7.1.0-canary.1",
|
|
90
|
+
"@intlayer/core": "7.1.0-canary.1",
|
|
91
|
+
"@intlayer/design-system": "7.1.0-canary.1",
|
|
92
|
+
"@intlayer/editor-react": "7.1.0-canary.1",
|
|
93
|
+
"@intlayer/types": "7.1.0-canary.1",
|
|
94
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.0-canary.1",
|
|
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.0
|
|
100
|
+
"express-intlayer": "7.1.0-canary.1",
|
|
101
101
|
"framer-motion": "12.23.24",
|
|
102
102
|
"fuse.js": "7.1.0",
|
|
103
103
|
"helmet": "8.1.0",
|
|
104
|
-
"intlayer": "7.0
|
|
104
|
+
"intlayer": "7.1.0-canary.1",
|
|
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.0
|
|
109
|
+
"react-intlayer": "7.1.0-canary.1",
|
|
110
110
|
"react-router-dom": "7.9.5",
|
|
111
111
|
"rimraf": "6.1.0",
|
|
112
|
-
"vite-intlayer": "7.0
|
|
112
|
+
"vite-intlayer": "7.1.0-canary.1"
|
|
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.0
|
|
136
|
-
"@intlayer/config": "7.0
|
|
137
|
-
"@intlayer/core": "7.0
|
|
138
|
-
"@intlayer/design-system": "7.0
|
|
139
|
-
"@intlayer/dictionaries-entry": "7.0
|
|
140
|
-
"@intlayer/editor-react": "7.0
|
|
141
|
-
"@intlayer/types": "7.0
|
|
142
|
-
"@intlayer/unmerged-dictionaries-entry": "7.0
|
|
135
|
+
"@intlayer/chokidar": "7.1.0-canary.1",
|
|
136
|
+
"@intlayer/config": "7.1.0-canary.1",
|
|
137
|
+
"@intlayer/core": "7.1.0-canary.1",
|
|
138
|
+
"@intlayer/design-system": "7.1.0-canary.1",
|
|
139
|
+
"@intlayer/dictionaries-entry": "7.1.0-canary.1",
|
|
140
|
+
"@intlayer/editor-react": "7.1.0-canary.1",
|
|
141
|
+
"@intlayer/types": "7.1.0-canary.1",
|
|
142
|
+
"@intlayer/unmerged-dictionaries-entry": "7.1.0-canary.1",
|
|
143
143
|
"clsx": "2.1.1",
|
|
144
144
|
"framer-motion": "12.23.24",
|
|
145
|
-
"intlayer": "7.0
|
|
145
|
+
"intlayer": "7.1.0-canary.1",
|
|
146
146
|
"react": ">=16.0.0",
|
|
147
147
|
"react-dom": ">=16.0.0",
|
|
148
|
-
"react-intlayer": "7.0
|
|
148
|
+
"react-intlayer": "7.1.0-canary.1",
|
|
149
149
|
"react-router-dom": ">=6.0.0",
|
|
150
150
|
"tailwind-merge": "3.4.0",
|
|
151
|
-
"vite-intlayer": "7.0
|
|
151
|
+
"vite-intlayer": "7.1.0-canary.1"
|
|
152
152
|
},
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14.18"
|