@abraca/nuxt 2.6.0 → 2.7.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/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -285,6 +285,11 @@ const module$1 = defineNuxtModule({
|
|
|
285
285
|
prebundleDeps.push("jszip");
|
|
286
286
|
} catch {
|
|
287
287
|
}
|
|
288
|
+
try {
|
|
289
|
+
createRequire(`${nuxt.options.rootDir}/`).resolve("mapbox-gl");
|
|
290
|
+
prebundleDeps.push("mapbox-gl");
|
|
291
|
+
} catch {
|
|
292
|
+
}
|
|
288
293
|
if (options.features?.code !== false) {
|
|
289
294
|
const cmPeers = [
|
|
290
295
|
"@codemirror/view",
|
|
@@ -14,13 +14,13 @@ type __VLS_Props = {
|
|
|
14
14
|
extraItems?: DropdownMenuItem[][];
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
logout: () => any;
|
|
18
17
|
"open-settings": () => any;
|
|
19
18
|
"open-account": () => any;
|
|
19
|
+
logout: () => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onLogout?: (() => any) | undefined;
|
|
22
21
|
"onOpen-settings"?: (() => any) | undefined;
|
|
23
22
|
"onOpen-account"?: (() => any) | undefined;
|
|
23
|
+
onLogout?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
color: string;
|
|
26
26
|
collapsed: boolean;
|
|
@@ -14,13 +14,13 @@ type __VLS_Props = {
|
|
|
14
14
|
extraItems?: DropdownMenuItem[][];
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
-
logout: () => any;
|
|
18
17
|
"open-settings": () => any;
|
|
19
18
|
"open-account": () => any;
|
|
19
|
+
logout: () => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onLogout?: (() => any) | undefined;
|
|
22
21
|
"onOpen-settings"?: (() => any) | undefined;
|
|
23
22
|
"onOpen-account"?: (() => any) | undefined;
|
|
23
|
+
onLogout?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
color: string;
|
|
26
26
|
collapsed: boolean;
|
|
@@ -256,16 +256,26 @@ async function loadServerExtensions() {
|
|
|
256
256
|
}
|
|
257
257
|
let _cachedClient = null;
|
|
258
258
|
let _cachedServer = null;
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
let _clientReady = null;
|
|
260
|
+
function ensureClientReady() {
|
|
261
|
+
if (_clientReady) return _clientReady;
|
|
262
|
+
_clientReady = loadClientExtensions().then((exts) => {
|
|
263
|
+
_cachedClient = exts;
|
|
264
|
+
}).catch((e) => console.warn("[abracadabra:core] Failed to preload client extensions:", e));
|
|
265
|
+
return _clientReady;
|
|
266
|
+
}
|
|
262
267
|
export const corePlugin = {
|
|
263
268
|
name: "core",
|
|
264
269
|
label: "Core",
|
|
265
270
|
version: "0.1.0",
|
|
266
271
|
description: "Core TipTap extensions: rich text, tables, tasks, code blocks, document structure, and more.",
|
|
267
|
-
//
|
|
268
|
-
extensionsReady
|
|
272
|
+
// Lazy property: reading it the first time kicks off the dynamic import
|
|
273
|
+
// wave. PluginRegistry.waitForExtensions() reads `p.extensionsReady` on
|
|
274
|
+
// every aggregator call, so the editor still gets a warmed cache before
|
|
275
|
+
// construction — but apps that never mount an editor never pay the cost.
|
|
276
|
+
get extensionsReady() {
|
|
277
|
+
return ensureClientReady();
|
|
278
|
+
},
|
|
269
279
|
pageTypes: Object.fromEntries(
|
|
270
280
|
Object.entries(DOC_TYPES).map(([key, def]) => [
|
|
271
281
|
key,
|