@abraca/nuxt 2.100.0 → 2.102.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 +1 -1
- package/dist/module.mjs +8 -2
- package/dist/runtime/components/ADocRenderer.vue +3 -3
- package/dist/runtime/components/aware/AMedia.d.vue.ts +1 -1
- package/dist/runtime/components/aware/AMedia.vue.d.ts +1 -1
- package/dist/runtime/components/shell/AUserMenu.d.vue.ts +2 -2
- package/dist/runtime/components/shell/AUserMenu.vue.d.ts +2 -2
- package/package.json +5 -5
- /package/dist/runtime/utils/{missingPeer.d.mts → missingPeer.d.ts} +0 -0
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
2
3
|
import { defineNuxtModule, createResolver, addPlugin, addPluginTemplate, addImportsDir, addImports, addComponentsDir, addServerHandler, addRouteMiddleware, addServerPlugin, addServerImportsDir } from '@nuxt/kit';
|
|
3
4
|
import { defu } from 'defu';
|
|
4
5
|
export { buildSlugMap, isUUID, slugify } from '../dist/runtime/utils/slugify.js';
|
|
@@ -384,7 +385,7 @@ const module$1 = defineNuxtModule({
|
|
|
384
385
|
"y-codemirror.next",
|
|
385
386
|
"@lezer/highlight"
|
|
386
387
|
];
|
|
387
|
-
const missingPeerStub = resolver.resolve(
|
|
388
|
+
const missingPeerStub = [".js", ".mjs", ".ts"].map((ext) => resolver.resolve(`./runtime/utils/missingPeer${ext}`)).find((candidate) => existsSync(candidate));
|
|
388
389
|
const peerRequires = [
|
|
389
390
|
createRequire(`${nuxt.options.rootDir}/`),
|
|
390
391
|
createRequire(import.meta.url)
|
|
@@ -397,7 +398,12 @@ const module$1 = defineNuxtModule({
|
|
|
397
398
|
return false;
|
|
398
399
|
}
|
|
399
400
|
}));
|
|
400
|
-
if (missingPeers.length) {
|
|
401
|
+
if (missingPeers.length && !missingPeerStub) {
|
|
402
|
+
console.warn(
|
|
403
|
+
`[abracadabra] optional-peer stub missing from this build of @abraca/nuxt; not stubbing ${missingPeers.join(", ")}`
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
if (missingPeers.length && missingPeerStub) {
|
|
401
407
|
nuxt.hook("vite:extendConfig", (config) => {
|
|
402
408
|
config.resolve ??= {};
|
|
403
409
|
const resolveCfg = config.resolve;
|
|
@@ -28,13 +28,13 @@ const snapshotEntry = computed(
|
|
|
28
28
|
() => snapshot.value?.entries?.[props.docId]
|
|
29
29
|
);
|
|
30
30
|
const docTitle = computed(
|
|
31
|
-
() => props.entry?.label ??
|
|
31
|
+
() => props.entry?.label ?? resolvedEntry.value?.label ?? snapshotEntry.value?.label ?? "Untitled"
|
|
32
32
|
);
|
|
33
33
|
const docType = computed(
|
|
34
|
-
() => props.entry?.type ??
|
|
34
|
+
() => props.entry?.type ?? resolvedEntry.value?.type ?? snapshotEntry.value?.type ?? "doc"
|
|
35
35
|
);
|
|
36
36
|
const docMeta = computed(
|
|
37
|
-
() => props.entry?.meta ??
|
|
37
|
+
() => props.entry?.meta ?? resolvedEntry.value?.meta ?? snapshotEntry.value?.meta ?? {}
|
|
38
38
|
);
|
|
39
39
|
const canRenderOffline = computed(() => !!(props.entry?.type ?? snapshotEntry.value?.type));
|
|
40
40
|
const registry = usePluginRegistry();
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
awareness: boolean;
|
|
13
13
|
tag: "video" | "audio";
|
|
14
14
|
live: boolean;
|
|
15
|
-
controls: boolean;
|
|
16
15
|
total: boolean;
|
|
16
|
+
controls: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
export default _default;
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
12
12
|
awareness: boolean;
|
|
13
13
|
tag: "video" | "audio";
|
|
14
14
|
live: boolean;
|
|
15
|
-
controls: boolean;
|
|
16
15
|
total: boolean;
|
|
16
|
+
controls: boolean;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
export default _default;
|
|
@@ -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;
|
|
17
18
|
"open-settings": () => any;
|
|
18
19
|
"open-account": () => any;
|
|
19
|
-
logout: () => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onLogout?: (() => any) | undefined;
|
|
21
22
|
"onOpen-settings"?: (() => any) | undefined;
|
|
22
23
|
"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;
|
|
17
18
|
"open-settings": () => any;
|
|
18
19
|
"open-account": () => any;
|
|
19
|
-
logout: () => any;
|
|
20
20
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onLogout?: (() => any) | undefined;
|
|
21
22
|
"onOpen-settings"?: (() => any) | undefined;
|
|
22
23
|
"onOpen-account"?: (() => any) | undefined;
|
|
23
|
-
onLogout?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
color: string;
|
|
26
26
|
collapsed: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abraca/nuxt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.102.0",
|
|
4
4
|
"description": "First-class Nuxt module for the Abracadabra CRDT collaboration platform",
|
|
5
5
|
"repository": "abracadabra/abracadabra-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -173,10 +173,10 @@
|
|
|
173
173
|
}
|
|
174
174
|
},
|
|
175
175
|
"devDependencies": {
|
|
176
|
-
"@abraca/convert": "^2.
|
|
177
|
-
"@abraca/dabra": "^2.
|
|
178
|
-
"@abraca/plugin": "^2.
|
|
179
|
-
"@abraca/schema": "^2.
|
|
176
|
+
"@abraca/convert": "^2.101.0",
|
|
177
|
+
"@abraca/dabra": "^2.101.0",
|
|
178
|
+
"@abraca/plugin": "^2.101.0",
|
|
179
|
+
"@abraca/schema": "^2.101.0",
|
|
180
180
|
"@codemirror/autocomplete": "^6.18.0",
|
|
181
181
|
"@codemirror/commands": "^6.7.0",
|
|
182
182
|
"@codemirror/lang-css": "^6.3.1",
|
|
File without changes
|