intlayer-editor 8.1.9 → 8.1.10
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-BXrRHeYx.js → CodeBlockShiki-BbrEGcga.js} +3 -3
- package/client/dist/assets/{bundle-web-XXLowsEv.js → bundle-web-CkrRYqnG.js} +1 -1
- package/client/dist/assets/{index-CEHLBzQk.js → index-DIiSCteI.js} +1 -1
- package/client/dist/assets/{index-DwSBwgdT.js → index-Dhl0zVYG.js} +99 -45
- package/client/dist/assets/{index-B2i361gn.css → index-G-fVzC9V.css} +1 -1
- package/client/dist/index.html +2 -2
- package/package.json +18 -18
|
@@ -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/bundle-web-
|
|
2
|
-
import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-
|
|
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/bundle-web-CkrRYqnG.js","assets/index-Dhl0zVYG.js","assets/index-G-fVzC9V.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { r as reactExports, j as jsxRuntimeExports, i as i$1, _ as __vitePreload } from "./index-Dhl0zVYG.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;
|
|
@@ -51,7 +51,7 @@ const i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = async (e
|
|
|
51
51
|
};
|
|
52
52
|
let c = null;
|
|
53
53
|
const l = async () => (c ||= __vitePreload(async () => {
|
|
54
|
-
const { createHighlighter: e } = await import("./bundle-web-
|
|
54
|
+
const { createHighlighter: e } = await import("./bundle-web-CkrRYqnG.js");
|
|
55
55
|
return { createHighlighter: e };
|
|
56
56
|
}, true ? __vite__mapDeps([7,8,9]) : void 0).then(({ createHighlighter: e }) => e({ langs: [], themes: [] })), c), u = async (e, t, n) => {
|
|
57
57
|
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-DyeoExSN.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-DijK_igD.js","assets/python-CrdIx4PZ.js","assets/r-Dpdc-Kyk.js","assets/marko-DdYN1N-r.js","assets/less-BAzLMJNR.js","assets/mdc-ucHOH9Vl.js","assets/markdown-F_EULe_G.js","assets/php-2B8X4n9S.js","assets/pug-C-LeC0-n.js","assets/svelte-CaHM8dOn.js","assets/ts-tags-DCkNjov3.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-
|
|
2
|
+
import { _ as __vitePreload } from "./index-Dhl0zVYG.js";
|
|
3
3
|
let ShikiError$2 = class ShikiError extends Error {
|
|
4
4
|
constructor(message) {
|
|
5
5
|
super(message);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, W as We } from "./index-
|
|
1
|
+
import { r as reactExports, W as We } from "./index-Dhl0zVYG.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];
|
|
@@ -14244,15 +14244,24 @@ const a$o = ({ isCookieEnabled: a2, onLocaleChange: o2 } = {}) => {
|
|
|
14244
14244
|
};
|
|
14245
14245
|
const i$o = (t2, { components: n2, wrapper: r2, forceBlock: i2, forceInline: a2, preserveFrontmatter: o2, tagfilter: s2 } = {}) => l$i(t2, { components: n2, forceBlock: i2, forceInline: a2, wrapper: r2, forceWrapper: !!r2, preserveFrontmatter: o2, tagfilter: s2 });
|
|
14246
14246
|
var PopStateEventType = "popstate";
|
|
14247
|
+
function isLocation(obj) {
|
|
14248
|
+
return typeof obj === "object" && obj != null && "pathname" in obj && "search" in obj && "hash" in obj && "state" in obj && "key" in obj;
|
|
14249
|
+
}
|
|
14247
14250
|
function createBrowserHistory(options = {}) {
|
|
14248
14251
|
function createBrowserLocation(window2, globalHistory) {
|
|
14249
|
-
let
|
|
14252
|
+
let maskedLocation = globalHistory.state?.masked;
|
|
14253
|
+
let { pathname, search: search2, hash } = maskedLocation || window2.location;
|
|
14250
14254
|
return createLocation(
|
|
14251
14255
|
"",
|
|
14252
14256
|
{ pathname, search: search2, hash },
|
|
14253
14257
|
// state defaults to `null` because `window.history.state` does
|
|
14254
14258
|
globalHistory.state && globalHistory.state.usr || null,
|
|
14255
|
-
globalHistory.state && globalHistory.state.key || "default"
|
|
14259
|
+
globalHistory.state && globalHistory.state.key || "default",
|
|
14260
|
+
maskedLocation ? {
|
|
14261
|
+
pathname: window2.location.pathname,
|
|
14262
|
+
search: window2.location.search,
|
|
14263
|
+
hash: window2.location.hash
|
|
14264
|
+
} : void 0
|
|
14256
14265
|
);
|
|
14257
14266
|
}
|
|
14258
14267
|
function createBrowserHref(window2, to) {
|
|
@@ -14286,10 +14295,15 @@ function getHistoryState(location, index2) {
|
|
|
14286
14295
|
return {
|
|
14287
14296
|
usr: location.state,
|
|
14288
14297
|
key: location.key,
|
|
14289
|
-
idx: index2
|
|
14298
|
+
idx: index2,
|
|
14299
|
+
masked: location.unstable_mask ? {
|
|
14300
|
+
pathname: location.pathname,
|
|
14301
|
+
search: location.search,
|
|
14302
|
+
hash: location.hash
|
|
14303
|
+
} : void 0
|
|
14290
14304
|
};
|
|
14291
14305
|
}
|
|
14292
|
-
function createLocation(current, to, state = null, key2) {
|
|
14306
|
+
function createLocation(current, to, state = null, key2, unstable_mask) {
|
|
14293
14307
|
let location = {
|
|
14294
14308
|
pathname: typeof current === "string" ? current : current.pathname,
|
|
14295
14309
|
search: "",
|
|
@@ -14300,7 +14314,8 @@ function createLocation(current, to, state = null, key2) {
|
|
|
14300
14314
|
// full Locations now and avoid the need to run through this flow at all
|
|
14301
14315
|
// But that's a pretty big refactor to the current test suite so going to
|
|
14302
14316
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
14303
|
-
key: to && to.key || key2 || createKey$1()
|
|
14317
|
+
key: to && to.key || key2 || createKey$1(),
|
|
14318
|
+
unstable_mask
|
|
14304
14319
|
};
|
|
14305
14320
|
return location;
|
|
14306
14321
|
}
|
|
@@ -14359,10 +14374,10 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
14359
14374
|
}
|
|
14360
14375
|
function push(to, state) {
|
|
14361
14376
|
action = "PUSH";
|
|
14362
|
-
let location = createLocation(history.location, to, state);
|
|
14377
|
+
let location = isLocation(to) ? to : createLocation(history.location, to, state);
|
|
14363
14378
|
index2 = getIndex() + 1;
|
|
14364
14379
|
let historyState = getHistoryState(location, index2);
|
|
14365
|
-
let url = history.createHref(location);
|
|
14380
|
+
let url = history.createHref(location.unstable_mask || location);
|
|
14366
14381
|
try {
|
|
14367
14382
|
globalHistory.pushState(historyState, "", url);
|
|
14368
14383
|
} catch (error) {
|
|
@@ -14377,10 +14392,10 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
14377
14392
|
}
|
|
14378
14393
|
function replace2(to, state) {
|
|
14379
14394
|
action = "REPLACE";
|
|
14380
|
-
let location = createLocation(history.location, to, state);
|
|
14395
|
+
let location = isLocation(to) ? to : createLocation(history.location, to, state);
|
|
14381
14396
|
index2 = getIndex();
|
|
14382
14397
|
let historyState = getHistoryState(location, index2);
|
|
14383
|
-
let url = history.createHref(location);
|
|
14398
|
+
let url = history.createHref(location.unstable_mask || location);
|
|
14384
14399
|
globalHistory.replaceState(historyState, "", url);
|
|
14385
14400
|
if (v5Compat && listener) {
|
|
14386
14401
|
listener({ action, location: history.location, delta: 0 });
|
|
@@ -14671,9 +14686,16 @@ function compilePath(path, caseSensitive = false, end = true) {
|
|
|
14671
14686
|
let params = [];
|
|
14672
14687
|
let regexpSource = "^" + path.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
14673
14688
|
/\/:([\w-]+)(\?)?/g,
|
|
14674
|
-
(
|
|
14689
|
+
(match, paramName, isOptional, index2, str) => {
|
|
14675
14690
|
params.push({ paramName, isOptional: isOptional != null });
|
|
14676
|
-
|
|
14691
|
+
if (isOptional) {
|
|
14692
|
+
let nextChar = str.charAt(index2 + match.length);
|
|
14693
|
+
if (nextChar && nextChar !== "/") {
|
|
14694
|
+
return "/([^\\/]*)";
|
|
14695
|
+
}
|
|
14696
|
+
return "(?:/([^\\/]*))?";
|
|
14697
|
+
}
|
|
14698
|
+
return "/([^\\/]+)";
|
|
14677
14699
|
}
|
|
14678
14700
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
14679
14701
|
if (path.endsWith("*")) {
|
|
@@ -14711,7 +14733,6 @@ function stripBasename(pathname, basename) {
|
|
|
14711
14733
|
return pathname.slice(startIndex) || "/";
|
|
14712
14734
|
}
|
|
14713
14735
|
var ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
|
|
14714
|
-
var isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
14715
14736
|
function resolvePath(to, fromPathname = "/") {
|
|
14716
14737
|
let {
|
|
14717
14738
|
pathname: toPathname,
|
|
@@ -14720,22 +14741,11 @@ function resolvePath(to, fromPathname = "/") {
|
|
|
14720
14741
|
} = typeof to === "string" ? parsePath(to) : to;
|
|
14721
14742
|
let pathname;
|
|
14722
14743
|
if (toPathname) {
|
|
14723
|
-
|
|
14724
|
-
|
|
14744
|
+
toPathname = toPathname.replace(/\/\/+/g, "/");
|
|
14745
|
+
if (toPathname.startsWith("/")) {
|
|
14746
|
+
pathname = resolvePathname(toPathname.substring(1), "/");
|
|
14725
14747
|
} else {
|
|
14726
|
-
|
|
14727
|
-
let oldPathname = toPathname;
|
|
14728
|
-
toPathname = toPathname.replace(/\/\/+/g, "/");
|
|
14729
|
-
warning(
|
|
14730
|
-
false,
|
|
14731
|
-
`Pathnames cannot have embedded double slashes - normalizing ${oldPathname} -> ${toPathname}`
|
|
14732
|
-
);
|
|
14733
|
-
}
|
|
14734
|
-
if (toPathname.startsWith("/")) {
|
|
14735
|
-
pathname = resolvePathname(toPathname.substring(1), "/");
|
|
14736
|
-
} else {
|
|
14737
|
-
pathname = resolvePathname(toPathname, fromPathname);
|
|
14738
|
-
}
|
|
14748
|
+
pathname = resolvePathname(toPathname, fromPathname);
|
|
14739
14749
|
}
|
|
14740
14750
|
} else {
|
|
14741
14751
|
pathname = fromPathname;
|
|
@@ -15058,7 +15068,7 @@ function useResolvedPath(to, { relative } = {}) {
|
|
|
15058
15068
|
function useRoutes(routes, locationArg) {
|
|
15059
15069
|
return useRoutesImpl(routes, locationArg);
|
|
15060
15070
|
}
|
|
15061
|
-
function useRoutesImpl(routes, locationArg,
|
|
15071
|
+
function useRoutesImpl(routes, locationArg, dataRouterOpts) {
|
|
15062
15072
|
invariant$1(
|
|
15063
15073
|
useInRouterContext(),
|
|
15064
15074
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -15139,9 +15149,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
15139
15149
|
})
|
|
15140
15150
|
),
|
|
15141
15151
|
parentMatches,
|
|
15142
|
-
|
|
15143
|
-
onError,
|
|
15144
|
-
future
|
|
15152
|
+
dataRouterOpts
|
|
15145
15153
|
);
|
|
15146
15154
|
if (locationArg && renderedMatches) {
|
|
15147
15155
|
return /* @__PURE__ */ reactExports.createElement(
|
|
@@ -15154,6 +15162,7 @@ Please change the parent <Route path="${parentPath}"> to <Route path="${parentPa
|
|
|
15154
15162
|
hash: "",
|
|
15155
15163
|
state: null,
|
|
15156
15164
|
key: "default",
|
|
15165
|
+
unstable_mask: void 0,
|
|
15157
15166
|
...location
|
|
15158
15167
|
},
|
|
15159
15168
|
navigationType: "POP"
|
|
@@ -15282,7 +15291,8 @@ function RenderedRoute({ routeContext, match, children }) {
|
|
|
15282
15291
|
}
|
|
15283
15292
|
return /* @__PURE__ */ reactExports.createElement(RouteContext.Provider, { value: routeContext }, children);
|
|
15284
15293
|
}
|
|
15285
|
-
function _renderMatches(matches, parentMatches = [],
|
|
15294
|
+
function _renderMatches(matches, parentMatches = [], dataRouterOpts) {
|
|
15295
|
+
let dataRouterState = dataRouterOpts?.state;
|
|
15286
15296
|
if (matches == null) {
|
|
15287
15297
|
if (!dataRouterState) {
|
|
15288
15298
|
return null;
|
|
@@ -15314,7 +15324,8 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, onE
|
|
|
15314
15324
|
}
|
|
15315
15325
|
let renderFallback = false;
|
|
15316
15326
|
let fallbackIndex = -1;
|
|
15317
|
-
if (dataRouterState) {
|
|
15327
|
+
if (dataRouterOpts && dataRouterState) {
|
|
15328
|
+
renderFallback = dataRouterState.renderFallback;
|
|
15318
15329
|
for (let i2 = 0; i2 < renderedMatches.length; i2++) {
|
|
15319
15330
|
let match = renderedMatches[i2];
|
|
15320
15331
|
if (match.route.HydrateFallback || match.route.hydrateFallbackElement) {
|
|
@@ -15324,7 +15335,9 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, onE
|
|
|
15324
15335
|
let { loaderData, errors: errors2 } = dataRouterState;
|
|
15325
15336
|
let needsToRunLoader = match.route.loader && !loaderData.hasOwnProperty(match.route.id) && (!errors2 || errors2[match.route.id] === void 0);
|
|
15326
15337
|
if (match.route.lazy || needsToRunLoader) {
|
|
15327
|
-
|
|
15338
|
+
if (dataRouterOpts.isStatic) {
|
|
15339
|
+
renderFallback = true;
|
|
15340
|
+
}
|
|
15328
15341
|
if (fallbackIndex >= 0) {
|
|
15329
15342
|
renderedMatches = renderedMatches.slice(0, fallbackIndex + 1);
|
|
15330
15343
|
} else {
|
|
@@ -15335,6 +15348,7 @@ function _renderMatches(matches, parentMatches = [], dataRouterState = null, onE
|
|
|
15335
15348
|
}
|
|
15336
15349
|
}
|
|
15337
15350
|
}
|
|
15351
|
+
let onErrorHandler = dataRouterOpts?.onError;
|
|
15338
15352
|
let onError = dataRouterState && onErrorHandler ? (error, errorInfo) => {
|
|
15339
15353
|
onErrorHandler(error, {
|
|
15340
15354
|
location: dataRouterState.location,
|
|
@@ -15497,9 +15511,10 @@ function DataRoutes({
|
|
|
15497
15511
|
routes,
|
|
15498
15512
|
future,
|
|
15499
15513
|
state,
|
|
15514
|
+
isStatic,
|
|
15500
15515
|
onError
|
|
15501
15516
|
}) {
|
|
15502
|
-
return useRoutesImpl(routes, void 0, state,
|
|
15517
|
+
return useRoutesImpl(routes, void 0, { state, isStatic, onError });
|
|
15503
15518
|
}
|
|
15504
15519
|
function Route(props) {
|
|
15505
15520
|
invariant$1(
|
|
@@ -15539,7 +15554,8 @@ function Router({
|
|
|
15539
15554
|
search: search2 = "",
|
|
15540
15555
|
hash = "",
|
|
15541
15556
|
state = null,
|
|
15542
|
-
key: key2 = "default"
|
|
15557
|
+
key: key2 = "default",
|
|
15558
|
+
unstable_mask
|
|
15543
15559
|
} = locationProp;
|
|
15544
15560
|
let locationContext = reactExports.useMemo(() => {
|
|
15545
15561
|
let trailingPathname = stripBasename(pathname, basename);
|
|
@@ -15552,11 +15568,21 @@ function Router({
|
|
|
15552
15568
|
search: search2,
|
|
15553
15569
|
hash,
|
|
15554
15570
|
state,
|
|
15555
|
-
key: key2
|
|
15571
|
+
key: key2,
|
|
15572
|
+
unstable_mask
|
|
15556
15573
|
},
|
|
15557
15574
|
navigationType
|
|
15558
15575
|
};
|
|
15559
|
-
}, [
|
|
15576
|
+
}, [
|
|
15577
|
+
basename,
|
|
15578
|
+
pathname,
|
|
15579
|
+
search2,
|
|
15580
|
+
hash,
|
|
15581
|
+
state,
|
|
15582
|
+
key2,
|
|
15583
|
+
navigationType,
|
|
15584
|
+
unstable_mask
|
|
15585
|
+
]);
|
|
15560
15586
|
warning(
|
|
15561
15587
|
locationContext != null,
|
|
15562
15588
|
`<Router basename="${basename}"> is not able to match the URL "${pathname}${search2}${hash}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
@@ -16104,7 +16130,15 @@ function PrefetchPageLinksImpl({
|
|
|
16104
16130
|
return /* @__PURE__ */ reactExports.createElement(reactExports.Fragment, null, dataHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "prefetch", as: "fetch", href, ...linkProps })), moduleHrefs.map((href) => /* @__PURE__ */ reactExports.createElement("link", { key: href, rel: "modulepreload", href, ...linkProps })), keyedPrefetchLinks.map(({ key: key2, link }) => (
|
|
16105
16131
|
// these don't spread `linkProps` because they are full link descriptors
|
|
16106
16132
|
// already with their own props
|
|
16107
|
-
/* @__PURE__ */ reactExports.createElement(
|
|
16133
|
+
/* @__PURE__ */ reactExports.createElement(
|
|
16134
|
+
"link",
|
|
16135
|
+
{
|
|
16136
|
+
key: key2,
|
|
16137
|
+
nonce: linkProps.nonce,
|
|
16138
|
+
...link,
|
|
16139
|
+
crossOrigin: link.crossOrigin ?? linkProps.crossOrigin
|
|
16140
|
+
}
|
|
16141
|
+
)
|
|
16108
16142
|
)));
|
|
16109
16143
|
}
|
|
16110
16144
|
function mergeRefs(...refs) {
|
|
@@ -16122,7 +16156,7 @@ var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "un
|
|
|
16122
16156
|
try {
|
|
16123
16157
|
if (isBrowser2) {
|
|
16124
16158
|
window.__reactRouterVersion = // @ts-expect-error
|
|
16125
|
-
"7.
|
|
16159
|
+
"7.13.1";
|
|
16126
16160
|
}
|
|
16127
16161
|
} catch (e2) {
|
|
16128
16162
|
}
|
|
@@ -16173,6 +16207,7 @@ var Link = reactExports.forwardRef(
|
|
|
16173
16207
|
relative,
|
|
16174
16208
|
reloadDocument,
|
|
16175
16209
|
replace: replace2,
|
|
16210
|
+
unstable_mask,
|
|
16176
16211
|
state,
|
|
16177
16212
|
target,
|
|
16178
16213
|
to,
|
|
@@ -16181,17 +16216,32 @@ var Link = reactExports.forwardRef(
|
|
|
16181
16216
|
unstable_defaultShouldRevalidate,
|
|
16182
16217
|
...rest
|
|
16183
16218
|
}, forwardedRef) {
|
|
16184
|
-
let { basename, unstable_useTransitions } = reactExports.useContext(NavigationContext);
|
|
16219
|
+
let { basename, navigator: navigator2, unstable_useTransitions } = reactExports.useContext(NavigationContext);
|
|
16185
16220
|
let isAbsolute = typeof to === "string" && ABSOLUTE_URL_REGEX2.test(to);
|
|
16186
16221
|
let parsed = parseToInfo(to, basename);
|
|
16187
16222
|
to = parsed.to;
|
|
16188
16223
|
let href = useHref(to, { relative });
|
|
16224
|
+
let location = useLocation();
|
|
16225
|
+
let maskedHref = null;
|
|
16226
|
+
if (unstable_mask) {
|
|
16227
|
+
let resolved = resolveTo(
|
|
16228
|
+
unstable_mask,
|
|
16229
|
+
[],
|
|
16230
|
+
location.unstable_mask ? location.unstable_mask.pathname : "/",
|
|
16231
|
+
true
|
|
16232
|
+
);
|
|
16233
|
+
if (basename !== "/") {
|
|
16234
|
+
resolved.pathname = resolved.pathname === "/" ? basename : joinPaths([basename, resolved.pathname]);
|
|
16235
|
+
}
|
|
16236
|
+
maskedHref = navigator2.createHref(resolved);
|
|
16237
|
+
}
|
|
16189
16238
|
let [shouldPrefetch, prefetchRef, prefetchHandlers] = usePrefetchBehavior(
|
|
16190
16239
|
prefetch,
|
|
16191
16240
|
rest
|
|
16192
16241
|
);
|
|
16193
16242
|
let internalOnClick = useLinkClickHandler(to, {
|
|
16194
16243
|
replace: replace2,
|
|
16244
|
+
unstable_mask,
|
|
16195
16245
|
state,
|
|
16196
16246
|
target,
|
|
16197
16247
|
preventScrollReset,
|
|
@@ -16206,6 +16256,7 @@ var Link = reactExports.forwardRef(
|
|
|
16206
16256
|
internalOnClick(event);
|
|
16207
16257
|
}
|
|
16208
16258
|
}
|
|
16259
|
+
let isSpaLink = !(parsed.isExternal || reloadDocument);
|
|
16209
16260
|
let link = (
|
|
16210
16261
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
16211
16262
|
/* @__PURE__ */ reactExports.createElement(
|
|
@@ -16213,8 +16264,8 @@ var Link = reactExports.forwardRef(
|
|
|
16213
16264
|
{
|
|
16214
16265
|
...rest,
|
|
16215
16266
|
...prefetchHandlers,
|
|
16216
|
-
href: parsed.absoluteURL || href,
|
|
16217
|
-
onClick:
|
|
16267
|
+
href: (isSpaLink ? maskedHref : void 0) || parsed.absoluteURL || href,
|
|
16268
|
+
onClick: isSpaLink ? handleClick : onClick,
|
|
16218
16269
|
ref: mergeRefs(forwardedRef, prefetchRef),
|
|
16219
16270
|
target,
|
|
16220
16271
|
"data-discover": !isAbsolute && discover === "render" ? "true" : void 0
|
|
@@ -16362,6 +16413,7 @@ function useDataRouterContext3(hookName) {
|
|
|
16362
16413
|
function useLinkClickHandler(to, {
|
|
16363
16414
|
target,
|
|
16364
16415
|
replace: replaceProp,
|
|
16416
|
+
unstable_mask,
|
|
16365
16417
|
state,
|
|
16366
16418
|
preventScrollReset,
|
|
16367
16419
|
relative,
|
|
@@ -16379,6 +16431,7 @@ function useLinkClickHandler(to, {
|
|
|
16379
16431
|
let replace2 = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);
|
|
16380
16432
|
let doNavigate = () => navigate(to, {
|
|
16381
16433
|
replace: replace2,
|
|
16434
|
+
unstable_mask,
|
|
16382
16435
|
state,
|
|
16383
16436
|
preventScrollReset,
|
|
16384
16437
|
relative,
|
|
@@ -16397,6 +16450,7 @@ function useLinkClickHandler(to, {
|
|
|
16397
16450
|
navigate,
|
|
16398
16451
|
path,
|
|
16399
16452
|
replaceProp,
|
|
16453
|
+
unstable_mask,
|
|
16400
16454
|
state,
|
|
16401
16455
|
target,
|
|
16402
16456
|
to,
|
|
@@ -33331,7 +33385,7 @@ const c$9 = ({
|
|
|
33331
33385
|
}) : u2;
|
|
33332
33386
|
};
|
|
33333
33387
|
const i$b = ({ 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(`
|
|
33334
|
-
`).map((e3, t2) => jsxRuntimeExports.jsx(`span`, { className: `line block w-full`, children: e3 }, `line-${t2}-${e3.slice(0, 10)}`)) : e2 }) }) }), a$a = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-
|
|
33388
|
+
`).map((e3, t2) => jsxRuntimeExports.jsx(`span`, { className: `line block w-full`, children: e3 }, `line-${t2}-${e3.slice(0, 10)}`)) : e2 }) }) }), a$a = reactExports.lazy(() => __vitePreload(() => import("./CodeBlockShiki-BbrEGcga.js"), true ? [] : void 0).then((e2) => ({ default: e2.CodeBlockShiki }))), o$e = ({ className: n2, onChange: o2, isEditable: s2, children: c2, lang: l2, isDarkMode: u2, ...d2 }) => jsxRuntimeExports.jsx(`div`, { className: n$x(`flex w-full min-w-0 max-w-full overflow-x-auto`, n2), ...d2, children: jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: jsxRuntimeExports.jsx(i$b, { children: c2 }), children: jsxRuntimeExports.jsx(a$a, { lang: l2, isDarkMode: u2, children: c2 }) }) });
|
|
33335
33389
|
const g$3 = reactExports.createContext(null), _$3 = () => {
|
|
33336
33390
|
let e2 = reactExports.useContext(g$3);
|
|
33337
33391
|
if (!e2) throw Error(`useMultiSelect must be used within MultiSelectProvider`);
|
|
@@ -48689,7 +48743,7 @@ const C$1 = ({
|
|
|
48689
48743
|
})]
|
|
48690
48744
|
});
|
|
48691
48745
|
};
|
|
48692
|
-
const l$3 = reactExports.lazy(() => __vitePreload(() => import("./index-
|
|
48746
|
+
const l$3 = reactExports.lazy(() => __vitePreload(() => import("./index-DIiSCteI.js"), true ? [] : void 0).then((e2) => ({ default: e2.Editor }))), u$2 = ({ children: i2, language: u2, isDarkMode: d2, showLineNumbers: f2, showCopyButton: p2 = true, isReadOnly: m2 = false, onChange: h2 }) => {
|
|
48693
48747
|
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) => {
|
|
48694
48748
|
_2.current = e2;
|
|
48695
48749
|
let n2 = (e2.getContentHeight() ?? 0) + 25;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.2.
|
|
1
|
+
/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties {
|
|
3
3
|
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
4
|
*, :before, :after, ::backdrop {
|
package/client/dist/index.html
CHANGED
|
@@ -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-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Dhl0zVYG.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-G-fVzC9V.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": "8.1.
|
|
3
|
+
"version": "8.1.10",
|
|
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": [
|
|
@@ -91,42 +91,42 @@
|
|
|
91
91
|
"@fastify/formbody": "8.0.2",
|
|
92
92
|
"@fastify/helmet": "13.0.2",
|
|
93
93
|
"@fastify/static": "9.0.0",
|
|
94
|
-
"@intlayer/chokidar": "8.1.
|
|
95
|
-
"@intlayer/config": "8.1.
|
|
96
|
-
"@intlayer/unmerged-dictionaries-entry": "8.1.
|
|
94
|
+
"@intlayer/chokidar": "8.1.10",
|
|
95
|
+
"@intlayer/config": "8.1.10",
|
|
96
|
+
"@intlayer/unmerged-dictionaries-entry": "8.1.10",
|
|
97
97
|
"fastify": "5.7.4",
|
|
98
|
-
"fastify-intlayer": "8.1.
|
|
98
|
+
"fastify-intlayer": "8.1.10",
|
|
99
99
|
"mime": "4.1.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@intlayer/design-system": "8.1.
|
|
103
|
-
"@intlayer/editor-react": "8.1.
|
|
104
|
-
"@intlayer/types": "8.1.
|
|
105
|
-
"@tailwindcss/vite": "4.2.
|
|
102
|
+
"@intlayer/design-system": "8.1.10",
|
|
103
|
+
"@intlayer/editor-react": "8.1.10",
|
|
104
|
+
"@intlayer/types": "8.1.10",
|
|
105
|
+
"@tailwindcss/vite": "4.2.1",
|
|
106
106
|
"@tanstack/react-query": "5.90.21",
|
|
107
|
-
"@types/node": "25.3.
|
|
107
|
+
"@types/node": "25.3.3",
|
|
108
108
|
"@types/react": "19.2.14",
|
|
109
109
|
"@types/react-dom": "19.2.3",
|
|
110
110
|
"@utils/ts-config": "1.0.4",
|
|
111
|
-
"@vitejs/plugin-react": "5.1.
|
|
112
|
-
"autoprefixer": "10.4.
|
|
111
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
112
|
+
"autoprefixer": "10.4.27",
|
|
113
113
|
"babel-plugin-react-compiler": "1.0.0",
|
|
114
114
|
"clsx": "2.1.1",
|
|
115
115
|
"framer-motion": "12.34.3",
|
|
116
116
|
"fuse.js": "7.1.0",
|
|
117
|
-
"globals": "
|
|
118
|
-
"intlayer": "8.1.
|
|
117
|
+
"globals": "17.4.0",
|
|
118
|
+
"intlayer": "8.1.10",
|
|
119
119
|
"lucide-react": "0.575.0",
|
|
120
120
|
"react": "19.2.4",
|
|
121
121
|
"react-dom": "19.2.4",
|
|
122
|
-
"react-intlayer": "8.1.
|
|
123
|
-
"react-router-dom": "7.
|
|
122
|
+
"react-intlayer": "8.1.10",
|
|
123
|
+
"react-router-dom": "7.13.1",
|
|
124
124
|
"tailwind-merge": "3.5.0",
|
|
125
|
-
"tailwindcss": "4.2.
|
|
125
|
+
"tailwindcss": "4.2.1",
|
|
126
126
|
"tsdown": "0.20.3",
|
|
127
127
|
"typescript": "5.9.3",
|
|
128
128
|
"vite": "7.3.1",
|
|
129
|
-
"vite-intlayer": "8.1.
|
|
129
|
+
"vite-intlayer": "8.1.10",
|
|
130
130
|
"vitest": "4.0.18"
|
|
131
131
|
},
|
|
132
132
|
"engines": {
|