@abraca/nuxt 2.9.0 → 2.11.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.d.mts +14 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -0
- package/dist/runtime/assets/editor.css +1 -1
- package/dist/runtime/components/AConnectionBadge.d.vue.ts +29 -0
- package/dist/runtime/components/AConnectionBadge.vue +79 -0
- package/dist/runtime/components/AConnectionBadge.vue.d.ts +29 -0
- package/dist/runtime/components/AEditor.d.vue.ts +2 -2
- package/dist/runtime/components/AEditor.vue +11 -1
- package/dist/runtime/components/AEditor.vue.d.ts +2 -2
- package/dist/runtime/components/AEncryptionModePicker.d.vue.ts +33 -0
- package/dist/runtime/components/AEncryptionModePicker.vue +211 -0
- package/dist/runtime/components/AEncryptionModePicker.vue.d.ts +33 -0
- package/dist/runtime/components/AModalShell.d.vue.ts +48 -0
- package/dist/runtime/components/AModalShell.vue +105 -0
- package/dist/runtime/components/AModalShell.vue.d.ts +48 -0
- package/dist/runtime/components/ANodePanel.d.vue.ts +8 -6
- package/dist/runtime/components/ANodePanel.vue +25 -0
- package/dist/runtime/components/ANodePanel.vue.d.ts +8 -6
- package/dist/runtime/components/ANodePanelHeader.d.vue.ts +20 -10
- package/dist/runtime/components/ANodePanelHeader.vue +17 -3
- package/dist/runtime/components/ANodePanelHeader.vue.d.ts +20 -10
- package/dist/runtime/components/ANodeSettingsPanel.d.vue.ts +2 -0
- package/dist/runtime/components/ANodeSettingsPanel.vue +21 -1
- package/dist/runtime/components/ANodeSettingsPanel.vue.d.ts +2 -0
- package/dist/runtime/components/ASnapshotPreviewModal.d.vue.ts +33 -0
- package/dist/runtime/components/ASnapshotPreviewModal.vue +430 -0
- package/dist/runtime/components/ASnapshotPreviewModal.vue.d.ts +33 -0
- package/dist/runtime/components/docs/ADocsSearch.d.vue.ts +2 -2
- package/dist/runtime/components/docs/ADocsSearch.vue.d.ts +2 -2
- package/dist/runtime/components/editor/ALocationPickerPopover.vue +28 -7
- package/dist/runtime/components/registry/APluginDetail.d.vue.ts +2 -2
- package/dist/runtime/components/registry/APluginDetail.vue.d.ts +2 -2
- package/dist/runtime/components/renderers/AProseRenderer.d.vue.ts +2 -2
- package/dist/runtime/components/renderers/AProseRenderer.vue.d.ts +2 -2
- package/dist/runtime/components/shell/ABreadcrumbForDoc.d.vue.ts +6 -0
- package/dist/runtime/components/shell/ABreadcrumbForDoc.vue +75 -3
- package/dist/runtime/components/shell/ABreadcrumbForDoc.vue.d.ts +6 -0
- package/dist/runtime/components/shell/ADocPanelServerSettings.d.vue.ts +17 -0
- package/dist/runtime/components/shell/ADocPanelServerSettings.vue +253 -0
- package/dist/runtime/components/shell/ADocPanelServerSettings.vue.d.ts +17 -0
- package/dist/runtime/components/shell/ADocPanelSettings.d.vue.ts +2 -0
- package/dist/runtime/components/shell/ADocPanelSettings.vue +15 -4
- package/dist/runtime/components/shell/ADocPanelSettings.vue.d.ts +2 -0
- package/dist/runtime/components/shell/AUserMenu.d.vue.ts +2 -2
- package/dist/runtime/components/shell/AUserMenu.vue.d.ts +2 -2
- package/dist/runtime/composables/useDocBreadcrumb.d.ts +17 -2
- package/dist/runtime/composables/useDocBreadcrumb.js +17 -3
- package/dist/runtime/composables/useDocSnapshots.d.ts +2 -1
- package/dist/runtime/composables/useDocSnapshots.js +5 -0
- package/dist/runtime/composables/useEditor.d.ts +1 -1
- package/dist/runtime/composables/useEditor.js +120 -0
- package/dist/runtime/composables/useEditorToolbar.d.ts +12 -4
- package/dist/runtime/composables/useEditorToolbar.js +78 -56
- package/dist/runtime/composables/useNodeContextMenu.d.ts +10 -0
- package/dist/runtime/composables/useNodeContextMenu.js +41 -1
- package/dist/runtime/composables/useSwipeGesture.d.ts +48 -0
- package/dist/runtime/composables/useSwipeGesture.js +140 -0
- package/dist/runtime/extensions/document-header.js +16 -6
- package/dist/runtime/extensions/document-meta.js +344 -19
- package/dist/runtime/extensions/meta-field.js +42 -0
- package/dist/runtime/extensions/views/DocumentMetaView.vue +33 -7
- package/dist/runtime/extensions/views/FieldView.vue +51 -19
- package/dist/runtime/extensions/views/MetaFieldView.vue +30 -4
- package/dist/runtime/middleware/abracadabra-auth.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.client.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.client.js +12 -2
- package/dist/runtime/plugin-abracadabra.server.d.ts +1 -1
- package/dist/runtime/plugin-shared-globals.client.d.ts +1 -1
- package/package.json +1 -4
|
@@ -208,6 +208,7 @@ export default defineNuxtPlugin({
|
|
|
208
208
|
const features = abraConfig.features ?? {};
|
|
209
209
|
const debug = abraConfig.debug ?? false;
|
|
210
210
|
const configEntryDocId = abraConfig.entryDocId || void 0;
|
|
211
|
+
const pinServer = abraConfig.pinServer ?? false;
|
|
211
212
|
const registry = new PluginRegistry();
|
|
212
213
|
const storedDisabledBuiltins = JSON.parse(
|
|
213
214
|
localStorage.getItem(STORAGE_KEY_DISABLED_BUILTINS) ?? "[]"
|
|
@@ -1398,10 +1399,19 @@ export default defineNuxtPlugin({
|
|
|
1398
1399
|
} catch {
|
|
1399
1400
|
}
|
|
1400
1401
|
const storedServer = localStorage.getItem(CURRENT_SERVER_KEY);
|
|
1401
|
-
|
|
1402
|
+
let initialUrl;
|
|
1403
|
+
if (pinServer) {
|
|
1404
|
+
initialUrl = defaultUrl;
|
|
1405
|
+
} else if (deepLinkServer) {
|
|
1406
|
+
initialUrl = deepLinkServer;
|
|
1407
|
+
} else if (storedServer && savedServers.value.some((s) => s.url === storedServer)) {
|
|
1408
|
+
initialUrl = storedServer;
|
|
1409
|
+
} else {
|
|
1410
|
+
initialUrl = currentServerUrl.value || savedServers.value[0]?.url || defaultUrl;
|
|
1411
|
+
}
|
|
1402
1412
|
if (initialUrl !== currentServerUrl.value) currentServerUrl.value = initialUrl;
|
|
1403
1413
|
_initPromise = init(initialUrl);
|
|
1404
|
-
if (deepLinkServer && !savedServers.value.some((s) => s.url === deepLinkServer)) {
|
|
1414
|
+
if (!pinServer && deepLinkServer && !savedServers.value.some((s) => s.url === deepLinkServer)) {
|
|
1405
1415
|
void addServer(deepLinkServer).catch(() => {
|
|
1406
1416
|
});
|
|
1407
1417
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("#app").Plugin<Record<string, unknown>> & import("#app").ObjectPlugin<Record<string, unknown>>;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abraca/nuxt",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.0",
|
|
4
4
|
"description": "First-class Nuxt module for the Abracadabra CRDT collaboration platform",
|
|
5
5
|
"repository": "abracadabra/abracadabra-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -120,9 +120,6 @@
|
|
|
120
120
|
"y-codemirror.next": {
|
|
121
121
|
"optional": true
|
|
122
122
|
},
|
|
123
|
-
"@tanstack/vue-virtual": {
|
|
124
|
-
"optional": true
|
|
125
|
-
},
|
|
126
123
|
"d3-force": {
|
|
127
124
|
"optional": true
|
|
128
125
|
},
|