@abraca/nuxt 2.3.0 → 2.5.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.
Files changed (99) hide show
  1. package/README.md +25 -6
  2. package/dist/module.d.mts +4 -2
  3. package/dist/module.json +1 -1
  4. package/dist/runtime/components/ACodeEditor.d.vue.ts +1 -1
  5. package/dist/runtime/components/ACodeEditor.vue.d.ts +1 -1
  6. package/dist/runtime/components/AConnectServerModal.d.vue.ts +2 -2
  7. package/dist/runtime/components/AConnectServerModal.vue +1 -1
  8. package/dist/runtime/components/AConnectServerModal.vue.d.ts +2 -2
  9. package/dist/runtime/components/ADocumentTree.d.vue.ts +8 -1
  10. package/dist/runtime/components/ADocumentTree.vue +6 -3
  11. package/dist/runtime/components/ADocumentTree.vue.d.ts +8 -1
  12. package/dist/runtime/components/AEditor.d.vue.ts +7 -7
  13. package/dist/runtime/components/AEditor.vue.d.ts +7 -7
  14. package/dist/runtime/components/AEmailVerifyConfirmModal.d.vue.ts +2 -2
  15. package/dist/runtime/components/AEmailVerifyConfirmModal.vue.d.ts +2 -2
  16. package/dist/runtime/components/AIdentityModal.d.vue.ts +2 -2
  17. package/dist/runtime/components/AIdentityModal.vue.d.ts +2 -2
  18. package/dist/runtime/components/AInviteRedeemModal.vue +15 -11
  19. package/dist/runtime/components/AMnemonicLoginModal.d.vue.ts +2 -2
  20. package/dist/runtime/components/AMnemonicLoginModal.vue.d.ts +2 -2
  21. package/dist/runtime/components/APasswordChangeModal.d.vue.ts +3 -3
  22. package/dist/runtime/components/APasswordChangeModal.vue.d.ts +3 -3
  23. package/dist/runtime/components/APasswordLoginModal.d.vue.ts +4 -4
  24. package/dist/runtime/components/APasswordLoginModal.vue.d.ts +4 -4
  25. package/dist/runtime/components/APasswordRegisterModal.d.vue.ts +3 -3
  26. package/dist/runtime/components/APasswordRegisterModal.vue.d.ts +3 -3
  27. package/dist/runtime/components/APasswordResetConfirmModal.d.vue.ts +3 -3
  28. package/dist/runtime/components/APasswordResetConfirmModal.vue.d.ts +3 -3
  29. package/dist/runtime/components/APasswordResetRequestModal.d.vue.ts +2 -2
  30. package/dist/runtime/components/APasswordResetRequestModal.vue.d.ts +2 -2
  31. package/dist/runtime/components/ASetPasswordCard.d.vue.ts +1 -1
  32. package/dist/runtime/components/ASetPasswordCard.vue.d.ts +1 -1
  33. package/dist/runtime/components/aware/AArea.d.vue.ts +1 -1
  34. package/dist/runtime/components/aware/AArea.vue.d.ts +1 -1
  35. package/dist/runtime/components/aware/ACalendar.d.vue.ts +1 -1
  36. package/dist/runtime/components/aware/ACalendar.vue.d.ts +1 -1
  37. package/dist/runtime/components/aware/AFileUpload.d.vue.ts +1 -1
  38. package/dist/runtime/components/aware/AFileUpload.vue.d.ts +1 -1
  39. package/dist/runtime/components/aware/AInput.d.vue.ts +1 -1
  40. package/dist/runtime/components/aware/AInput.vue.d.ts +1 -1
  41. package/dist/runtime/components/aware/AMedia.d.vue.ts +1 -1
  42. package/dist/runtime/components/aware/AMedia.vue.d.ts +1 -1
  43. package/dist/runtime/components/aware/AScroll.d.vue.ts +1 -1
  44. package/dist/runtime/components/aware/AScroll.vue.d.ts +1 -1
  45. package/dist/runtime/components/aware/ASlider.d.vue.ts +1 -1
  46. package/dist/runtime/components/aware/ASlider.vue.d.ts +1 -1
  47. package/dist/runtime/components/aware/ATable.d.vue.ts +1 -1
  48. package/dist/runtime/components/aware/ATable.vue.d.ts +1 -1
  49. package/dist/runtime/components/aware/ATabs.d.vue.ts +1 -1
  50. package/dist/runtime/components/aware/ATabs.vue.d.ts +1 -1
  51. package/dist/runtime/components/aware/ATextarea.d.vue.ts +1 -1
  52. package/dist/runtime/components/aware/ATextarea.vue.d.ts +1 -1
  53. package/dist/runtime/components/aware/ATree.d.vue.ts +1 -1
  54. package/dist/runtime/components/aware/ATree.vue.d.ts +1 -1
  55. package/dist/runtime/components/docs/ADocsNavigation.d.vue.ts +1 -1
  56. package/dist/runtime/components/docs/ADocsNavigation.vue.d.ts +1 -1
  57. package/dist/runtime/components/docs/ADocsSearch.d.vue.ts +4 -4
  58. package/dist/runtime/components/docs/ADocsSearch.vue.d.ts +4 -4
  59. package/dist/runtime/components/docs/ADocsSearchButton.d.vue.ts +2 -2
  60. package/dist/runtime/components/docs/ADocsSearchButton.vue.d.ts +2 -2
  61. package/dist/runtime/components/docs/ADocsToc.d.vue.ts +1 -1
  62. package/dist/runtime/components/docs/ADocsToc.vue.d.ts +1 -1
  63. package/dist/runtime/components/editor/AColorPalettePopover.d.vue.ts +2 -2
  64. package/dist/runtime/components/editor/AColorPalettePopover.vue.d.ts +2 -2
  65. package/dist/runtime/components/editor/AFileGlbViewer.vue +27 -10
  66. package/dist/runtime/components/editor/AIconPickerPopover.d.vue.ts +2 -2
  67. package/dist/runtime/components/editor/AIconPickerPopover.vue.d.ts +2 -2
  68. package/dist/runtime/components/editor/ALocationPickerPopover.d.vue.ts +2 -2
  69. package/dist/runtime/components/editor/ALocationPickerPopover.vue.d.ts +2 -2
  70. package/dist/runtime/components/registry/APluginCapabilityDialog.d.vue.ts +4 -4
  71. package/dist/runtime/components/registry/APluginCapabilityDialog.vue +1 -1
  72. package/dist/runtime/components/registry/APluginCapabilityDialog.vue.d.ts +4 -4
  73. package/dist/runtime/components/renderers/AProseRenderer.d.vue.ts +4 -4
  74. package/dist/runtime/components/renderers/AProseRenderer.vue.d.ts +4 -4
  75. package/dist/runtime/components/renderers/sheets/ASheetsCell.d.vue.ts +4 -4
  76. package/dist/runtime/components/renderers/sheets/ASheetsCell.vue.d.ts +4 -4
  77. package/dist/runtime/components/renderers/sheets/ASheetsGrid.d.vue.ts +2 -2
  78. package/dist/runtime/components/renderers/sheets/ASheetsGrid.vue.d.ts +2 -2
  79. package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.d.vue.ts +4 -4
  80. package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.vue.d.ts +4 -4
  81. package/dist/runtime/components/renderers/sheets/ASheetsToolbar.d.vue.ts +4 -4
  82. package/dist/runtime/components/renderers/sheets/ASheetsToolbar.vue.d.ts +4 -4
  83. package/dist/runtime/components/shell/ADocPanelSettings.d.vue.ts +1 -1
  84. package/dist/runtime/components/shell/ADocPanelSettings.vue.d.ts +1 -1
  85. package/dist/runtime/components/shell/AUserProfilePopover.d.vue.ts +1 -1
  86. package/dist/runtime/components/shell/AUserProfilePopover.vue.d.ts +1 -1
  87. package/dist/runtime/components/shell/AWelcomeScreen.d.vue.ts +4 -4
  88. package/dist/runtime/components/shell/AWelcomeScreen.vue +77 -58
  89. package/dist/runtime/components/shell/AWelcomeScreen.vue.d.ts +4 -4
  90. package/dist/runtime/composables/useAbraAdmin.d.ts +131 -4
  91. package/dist/runtime/composables/useAbraAdmin.js +136 -36
  92. package/dist/runtime/composables/useInvites.d.ts +7 -0
  93. package/dist/runtime/plugin-abracadabra.client.js +44 -3
  94. package/dist/runtime/server/api/_abracadabra/spaces.get.d.ts +1 -1
  95. package/dist/runtime/types.d.ts +2 -0
  96. package/dist/runtime/utils/loadThree.d.ts +18 -0
  97. package/dist/runtime/utils/loadThree.js +46 -0
  98. package/dist/types.d.mts +6 -2
  99. package/package.json +26 -22
@@ -1,8 +1,6 @@
1
1
  <script setup>
2
2
  import { ref, computed, shallowRef, watch, onMounted, onUnmounted } from "vue";
3
- import { Raycaster, Vector2 } from "three";
4
- import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
5
- import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader.js";
3
+ import { loadThree } from "../../utils/loadThree";
6
4
  const props = defineProps({
7
5
  url: { type: String, required: true },
8
6
  objectId: { type: String, required: true },
@@ -27,9 +25,19 @@ const panY = ref(0);
27
25
  const ZOOM_MIN = 1.5;
28
26
  const ZOOM_MAX = 12;
29
27
  const loadedModel = shallowRef(null);
28
+ const viewerUnavailable = ref(false);
30
29
  async function loadGLTF(url) {
31
- const loader = new GLTFLoader();
32
- const dracoLoader = new DRACOLoader();
30
+ const three = await loadThree();
31
+ if (!three) {
32
+ viewerUnavailable.value = true;
33
+ return;
34
+ }
35
+ if (!raycaster) {
36
+ raycaster = new three.Raycaster();
37
+ ndc = new three.Vector2();
38
+ }
39
+ const loader = new three.GLTFLoader();
40
+ const dracoLoader = new three.DRACOLoader();
33
41
  dracoLoader.setDecoderPath("https://www.gstatic.com/draco/versioned/decoders/1.5.7/");
34
42
  loader.setDRACOLoader(dracoLoader);
35
43
  const gltf = await loader.loadAsync(url);
@@ -53,12 +61,12 @@ defineExpose({ autoRotateEnabled, wireframe, resetView });
53
61
  const camPos = computed(() => [panX.value, 1.5 + panY.value, zoom.value]);
54
62
  const camTarget = computed(() => [panX.value, panY.value, 0]);
55
63
  const sceneCamera = shallowRef(null);
56
- const raycaster = new Raycaster();
57
- const ndc = new Vector2();
64
+ let raycaster = null;
65
+ let ndc = null;
58
66
  const wrapEl = ref(null);
59
67
  function hitsModel(ev) {
60
68
  const cam = sceneCamera.value;
61
- if (!cam || !wrapEl.value || !loadedModel.value) return true;
69
+ if (!cam || !wrapEl.value || !loadedModel.value || !raycaster) return true;
62
70
  const rect = wrapEl.value.getBoundingClientRect();
63
71
  ndc.x = (ev.clientX - rect.left) / rect.width * 2 - 1;
64
72
  ndc.y = -((ev.clientY - rect.top) / rect.height) * 2 + 1;
@@ -153,7 +161,16 @@ onMounted(() => {
153
161
  @pointerdown="onPointerDown"
154
162
  @wheel.prevent="onWheel"
155
163
  >
156
- <TresCanvas :clear-color="clearColor">
164
+ <div
165
+ v-if="viewerUnavailable"
166
+ class="glb-fallback"
167
+ >
168
+ 3D preview unavailable — install <code>three</code> to view this model.
169
+ </div>
170
+ <TresCanvas
171
+ v-else
172
+ :clear-color="clearColor"
173
+ >
157
174
  <TresPerspectiveCamera
158
175
  :position="camPos"
159
176
  :look-at="camTarget"
@@ -183,5 +200,5 @@ onMounted(() => {
183
200
  </template>
184
201
 
185
202
  <style scoped>
186
- .glb-wrap{cursor:grab;height:100%;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.glb-wrap.dragging{cursor:grabbing}
203
+ .glb-wrap{cursor:grab;height:100%;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.glb-wrap.dragging{cursor:grabbing}.glb-fallback{align-items:center;display:flex;font-size:.875rem;height:100%;justify-content:center;opacity:.7;padding:1rem;text-align:center;width:100%}.glb-fallback code{font-family:monospace;opacity:.85}
187
204
  </style>
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_10) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: string) => any;
12
11
  "update:open": (value: boolean) => any;
12
+ "update:modelValue": (value: string) => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
14
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_10) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:modelValue": (value: string) => any;
12
11
  "update:open": (value: boolean) => any;
12
+ "update:modelValue": (value: string) => any;
13
13
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
14
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
14
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
@@ -8,13 +8,13 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_10) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- clear: () => any;
12
11
  "update:open": (args_0: boolean) => any;
12
+ clear: () => any;
13
13
  "update:lat": (args_0: number) => any;
14
14
  "update:lng": (args_0: number) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onClear?: (() => any) | undefined;
17
16
  "onUpdate:open"?: ((args_0: boolean) => any) | undefined;
17
+ onClear?: (() => any) | undefined;
18
18
  "onUpdate:lat"?: ((args_0: number) => any) | undefined;
19
19
  "onUpdate:lng"?: ((args_0: number) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,13 +8,13 @@ type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_10) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- clear: () => any;
12
11
  "update:open": (args_0: boolean) => any;
12
+ clear: () => any;
13
13
  "update:lat": (args_0: number) => any;
14
14
  "update:lng": (args_0: number) => any;
15
15
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
- onClear?: (() => any) | undefined;
17
16
  "onUpdate:open"?: ((args_0: boolean) => any) | undefined;
17
+ onClear?: (() => any) | undefined;
18
18
  "onUpdate:lat"?: ((args_0: number) => any) | undefined;
19
19
  "onUpdate:lng"?: ((args_0: number) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -5,13 +5,13 @@ type __VLS_Props = {
5
5
  detail: CatalogVersionDetail | null;
6
6
  };
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- cancel: () => any;
9
- "update:modelValue": (open: boolean) => any;
10
8
  confirm: (detail: CatalogVersionDetail) => any;
9
+ "update:modelValue": (open: boolean) => any;
10
+ cancel: () => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- onCancel?: (() => any) | undefined;
13
- "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
14
12
  onConfirm?: ((detail: CatalogVersionDetail) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
14
+ onCancel?: (() => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
@@ -28,7 +28,7 @@ function describe(cap) {
28
28
  if (cap === "doc-write") return { label: "Modify documents", icon: "i-lucide-pencil", severity: "medium" };
29
29
  if (cap === "doc-read") return { label: "Read documents", icon: "i-lucide-eye", severity: "low" };
30
30
  if (cap === "awareness") return { label: "Broadcast presence", icon: "i-lucide-users", severity: "low" };
31
- if (cap === "server-runner") return { label: "Run server-side background tasks", icon: "i-lucide-server", severity: "high" };
31
+ if (cap === "server-runner") return { label: "Run server-side background tasks", icon: "i-lucide-hexagon", severity: "high" };
32
32
  if (cap === "chat:send") return { label: "Send chat messages", icon: "i-lucide-message-circle", severity: "medium" };
33
33
  if (cap === "chat:read") return { label: "Read chat history", icon: "i-lucide-message-square", severity: "low" };
34
34
  if (cap === "notifications:show") return { label: "Show notifications", icon: "i-lucide-bell", severity: "low" };
@@ -5,13 +5,13 @@ type __VLS_Props = {
5
5
  detail: CatalogVersionDetail | null;
6
6
  };
7
7
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
- cancel: () => any;
9
- "update:modelValue": (open: boolean) => any;
10
8
  confirm: (detail: CatalogVersionDetail) => any;
9
+ "update:modelValue": (open: boolean) => any;
10
+ cancel: () => any;
11
11
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
- onCancel?: (() => any) | undefined;
13
- "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
14
12
  onConfirm?: ((detail: CatalogVersionDetail) => any) | undefined;
13
+ "onUpdate:modelValue"?: ((open: boolean) => any) | undefined;
14
+ onCancel?: (() => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
@@ -10,14 +10,14 @@ type __VLS_Props = {
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, Record<PropertyKey, unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  rename: (label: string) => any;
13
- ready: () => any;
14
- update: (content: any) => any;
15
13
  updateMeta: (patch: Partial<DocPageMeta>) => any;
14
+ update: (content: any) => any;
15
+ ready: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
17
  onRename?: ((label: string) => any) | undefined;
18
- onReady?: (() => any) | undefined;
19
- onUpdate?: ((content: any) => any) | undefined;
20
18
  onUpdateMeta?: ((patch: Partial<DocPageMeta>) => any) | undefined;
19
+ onUpdate?: ((content: any) => any) | undefined;
20
+ onReady?: (() => any) | undefined;
21
21
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -10,14 +10,14 @@ type __VLS_Props = {
10
10
  };
11
11
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, Record<PropertyKey, unknown>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  rename: (label: string) => any;
13
- ready: () => any;
14
- update: (content: any) => any;
15
13
  updateMeta: (patch: Partial<DocPageMeta>) => any;
14
+ update: (content: any) => any;
15
+ ready: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
17
  onRename?: ((label: string) => any) | undefined;
18
- onReady?: (() => any) | undefined;
19
- onUpdate?: ((content: any) => any) | undefined;
20
18
  onUpdateMeta?: ((patch: Partial<DocPageMeta>) => any) | undefined;
19
+ onUpdate?: ((content: any) => any) | undefined;
20
+ onReady?: (() => any) | undefined;
21
21
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const _default: typeof __VLS_export;
23
23
  export default _default;
@@ -25,20 +25,20 @@ type __VLS_Props = {
25
25
  editable: boolean;
26
26
  };
27
27
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- contextmenu: (e: MouseEvent) => any;
29
28
  dblclick: () => any;
29
+ contextmenu: (e: MouseEvent) => any;
30
+ pointermove: (e: PointerEvent) => any;
30
31
  pointercancel: (e: PointerEvent) => any;
31
32
  pointerdown: (e: PointerEvent) => any;
32
33
  pointerenter: () => any;
33
- pointermove: (e: PointerEvent) => any;
34
34
  pointerup: (e: PointerEvent) => any;
35
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
- onContextmenu?: ((e: MouseEvent) => any) | undefined;
37
36
  onDblclick?: (() => any) | undefined;
37
+ onContextmenu?: ((e: MouseEvent) => any) | undefined;
38
+ onPointermove?: ((e: PointerEvent) => any) | undefined;
38
39
  onPointercancel?: ((e: PointerEvent) => any) | undefined;
39
40
  onPointerdown?: ((e: PointerEvent) => any) | undefined;
40
41
  onPointerenter?: (() => any) | undefined;
41
- onPointermove?: ((e: PointerEvent) => any) | undefined;
42
42
  onPointerup?: ((e: PointerEvent) => any) | undefined;
43
43
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const _default: typeof __VLS_export;
@@ -25,20 +25,20 @@ type __VLS_Props = {
25
25
  editable: boolean;
26
26
  };
27
27
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
- contextmenu: (e: MouseEvent) => any;
29
28
  dblclick: () => any;
29
+ contextmenu: (e: MouseEvent) => any;
30
+ pointermove: (e: PointerEvent) => any;
30
31
  pointercancel: (e: PointerEvent) => any;
31
32
  pointerdown: (e: PointerEvent) => any;
32
33
  pointerenter: () => any;
33
- pointermove: (e: PointerEvent) => any;
34
34
  pointerup: (e: PointerEvent) => any;
35
35
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
36
- onContextmenu?: ((e: MouseEvent) => any) | undefined;
37
36
  onDblclick?: (() => any) | undefined;
37
+ onContextmenu?: ((e: MouseEvent) => any) | undefined;
38
+ onPointermove?: ((e: PointerEvent) => any) | undefined;
38
39
  onPointercancel?: ((e: PointerEvent) => any) | undefined;
39
40
  onPointerdown?: ((e: PointerEvent) => any) | undefined;
40
41
  onPointerenter?: (() => any) | undefined;
41
- onPointermove?: ((e: PointerEvent) => any) | undefined;
42
42
  onPointerup?: ((e: PointerEvent) => any) | undefined;
43
43
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const _default: typeof __VLS_export;
@@ -55,9 +55,9 @@ declare function scrollToCell(colIdx: number, rowIdx: number): void;
55
55
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
56
56
  scrollToCell: typeof scrollToCell;
57
57
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ keydown: (e: KeyboardEvent) => any;
58
59
  copy: (e: ClipboardEvent) => any;
59
60
  cut: (e: ClipboardEvent) => any;
60
- keydown: (e: KeyboardEvent) => any;
61
61
  paste: (e: ClipboardEvent) => any;
62
62
  renameColumn: (colId: string, label: string) => any;
63
63
  commitEdit: () => any;
@@ -81,9 +81,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
81
81
  fillDragEnd: () => any;
82
82
  autoFitColumn: (colId: string) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
84
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
84
85
  onCopy?: ((e: ClipboardEvent) => any) | undefined;
85
86
  onCut?: ((e: ClipboardEvent) => any) | undefined;
86
- onKeydown?: ((e: KeyboardEvent) => any) | undefined;
87
87
  onPaste?: ((e: ClipboardEvent) => any) | undefined;
88
88
  onRenameColumn?: ((colId: string, label: string) => any) | undefined;
89
89
  onCommitEdit?: (() => any) | undefined;
@@ -55,9 +55,9 @@ declare function scrollToCell(colIdx: number, rowIdx: number): void;
55
55
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
56
56
  scrollToCell: typeof scrollToCell;
57
57
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
+ keydown: (e: KeyboardEvent) => any;
58
59
  copy: (e: ClipboardEvent) => any;
59
60
  cut: (e: ClipboardEvent) => any;
60
- keydown: (e: KeyboardEvent) => any;
61
61
  paste: (e: ClipboardEvent) => any;
62
62
  renameColumn: (colId: string, label: string) => any;
63
63
  commitEdit: () => any;
@@ -81,9 +81,9 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
81
81
  fillDragEnd: () => any;
82
82
  autoFitColumn: (colId: string) => any;
83
83
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
84
+ onKeydown?: ((e: KeyboardEvent) => any) | undefined;
84
85
  onCopy?: ((e: ClipboardEvent) => any) | undefined;
85
86
  onCut?: ((e: ClipboardEvent) => any) | undefined;
86
- onKeydown?: ((e: KeyboardEvent) => any) | undefined;
87
87
  onPaste?: ((e: ClipboardEvent) => any) | undefined;
88
88
  onRenameColumn?: ((colId: string, label: string) => any) | undefined;
89
89
  onCommitEdit?: (() => any) | undefined;
@@ -6,19 +6,19 @@ type __VLS_Props = {
6
6
  cellContextItems: any[][];
7
7
  };
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ clear: () => any;
9
10
  copy: () => any;
11
+ edit: () => any;
10
12
  cut: () => any;
11
13
  paste: () => any;
12
- clear: () => any;
13
- edit: () => any;
14
14
  toggleBold: () => any;
15
15
  toggleItalic: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onClear?: (() => any) | undefined;
17
18
  onCopy?: (() => any) | undefined;
19
+ onEdit?: (() => any) | undefined;
18
20
  onCut?: (() => any) | undefined;
19
21
  onPaste?: (() => any) | undefined;
20
- onClear?: (() => any) | undefined;
21
- onEdit?: (() => any) | undefined;
22
22
  onToggleBold?: (() => any) | undefined;
23
23
  onToggleItalic?: (() => any) | undefined;
24
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -6,19 +6,19 @@ type __VLS_Props = {
6
6
  cellContextItems: any[][];
7
7
  };
8
8
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ clear: () => any;
9
10
  copy: () => any;
11
+ edit: () => any;
10
12
  cut: () => any;
11
13
  paste: () => any;
12
- clear: () => any;
13
- edit: () => any;
14
14
  toggleBold: () => any;
15
15
  toggleItalic: () => any;
16
16
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
17
+ onClear?: (() => any) | undefined;
17
18
  onCopy?: (() => any) | undefined;
19
+ onEdit?: (() => any) | undefined;
18
20
  onCut?: (() => any) | undefined;
19
21
  onPaste?: (() => any) | undefined;
20
- onClear?: (() => any) | undefined;
21
- onEdit?: (() => any) | undefined;
22
22
  onToggleBold?: (() => any) | undefined;
23
23
  onToggleItalic?: (() => any) | undefined;
24
24
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -18,27 +18,27 @@ type __VLS_Props = {
18
18
  labels?: Partial<AbracadabraLocale['renderers']['sheets']>;
19
19
  };
20
20
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- toggleBold: () => any;
22
- toggleItalic: () => any;
23
21
  addColumn: () => any;
24
22
  addRow: () => any;
25
23
  "update:editValue": (value: string) => any;
26
24
  commitFormulaBar: () => any;
27
25
  cancelFormulaBar: () => any;
28
26
  startEditFromBar: () => any;
27
+ toggleBold: () => any;
28
+ toggleItalic: () => any;
29
29
  setTextColor: (color: string | undefined) => any;
30
30
  setBgColor: (color: string | undefined) => any;
31
31
  setAlign: (align: string) => any;
32
32
  setNumberFormat: (format: string | undefined) => any;
33
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
- onToggleBold?: (() => any) | undefined;
35
- onToggleItalic?: (() => any) | undefined;
36
34
  onAddColumn?: (() => any) | undefined;
37
35
  onAddRow?: (() => any) | undefined;
38
36
  "onUpdate:editValue"?: ((value: string) => any) | undefined;
39
37
  onCommitFormulaBar?: (() => any) | undefined;
40
38
  onCancelFormulaBar?: (() => any) | undefined;
41
39
  onStartEditFromBar?: (() => any) | undefined;
40
+ onToggleBold?: (() => any) | undefined;
41
+ onToggleItalic?: (() => any) | undefined;
42
42
  onSetTextColor?: ((color: string | undefined) => any) | undefined;
43
43
  onSetBgColor?: ((color: string | undefined) => any) | undefined;
44
44
  onSetAlign?: ((align: string) => any) | undefined;
@@ -18,27 +18,27 @@ type __VLS_Props = {
18
18
  labels?: Partial<AbracadabraLocale['renderers']['sheets']>;
19
19
  };
20
20
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- toggleBold: () => any;
22
- toggleItalic: () => any;
23
21
  addColumn: () => any;
24
22
  addRow: () => any;
25
23
  "update:editValue": (value: string) => any;
26
24
  commitFormulaBar: () => any;
27
25
  cancelFormulaBar: () => any;
28
26
  startEditFromBar: () => any;
27
+ toggleBold: () => any;
28
+ toggleItalic: () => any;
29
29
  setTextColor: (color: string | undefined) => any;
30
30
  setBgColor: (color: string | undefined) => any;
31
31
  setAlign: (align: string) => any;
32
32
  setNumberFormat: (format: string | undefined) => any;
33
33
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
34
- onToggleBold?: (() => any) | undefined;
35
- onToggleItalic?: (() => any) | undefined;
36
34
  onAddColumn?: (() => any) | undefined;
37
35
  onAddRow?: (() => any) | undefined;
38
36
  "onUpdate:editValue"?: ((value: string) => any) | undefined;
39
37
  onCommitFormulaBar?: (() => any) | undefined;
40
38
  onCancelFormulaBar?: (() => any) | undefined;
41
39
  onStartEditFromBar?: (() => any) | undefined;
40
+ onToggleBold?: (() => any) | undefined;
41
+ onToggleItalic?: (() => any) | undefined;
42
42
  onSetTextColor?: ((color: string | undefined) => any) | undefined;
43
43
  onSetBgColor?: ((color: string | undefined) => any) | undefined;
44
44
  onSetAlign?: ((align: string) => any) | undefined;
@@ -107,8 +107,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
107
107
  "onFork-snapshot"?: ((version: number) => any) | undefined;
108
108
  "onLoad-more-snapshots"?: (() => any) | undefined;
109
109
  }>, {
110
- snapshots: SnapshotMeta[];
111
110
  userName: string;
111
+ snapshots: SnapshotMeta[];
112
112
  docMeta: DocPageMeta | null;
113
113
  effectiveRole: string | null;
114
114
  userAvatarStyle: string;
@@ -107,8 +107,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
107
107
  "onFork-snapshot"?: ((version: number) => any) | undefined;
108
108
  "onLoad-more-snapshots"?: (() => any) | undefined;
109
109
  }>, {
110
- snapshots: SnapshotMeta[];
111
110
  userName: string;
111
+ snapshots: SnapshotMeta[];
112
112
  docMeta: DocPageMeta | null;
113
113
  effectiveRole: string | null;
114
114
  userAvatarStyle: string;
@@ -36,10 +36,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
36
36
  color: string;
37
37
  name: string;
38
38
  online: boolean | null;
39
- currentDocId: string | null;
40
39
  avatarStyle: string;
41
40
  isSelf: boolean;
42
41
  isFollowing: boolean;
42
+ currentDocId: string | null;
43
43
  showFollow: boolean;
44
44
  currentDocLabel: string | null;
45
45
  currentDocIcon: string;
@@ -36,10 +36,10 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
36
36
  color: string;
37
37
  name: string;
38
38
  online: boolean | null;
39
- currentDocId: string | null;
40
39
  avatarStyle: string;
41
40
  isSelf: boolean;
42
41
  isFollowing: boolean;
42
+ currentDocId: string | null;
43
43
  showFollow: boolean;
44
44
  currentDocLabel: string | null;
45
45
  currentDocIcon: string;
@@ -35,7 +35,7 @@ type __VLS_ModelProps = {
35
35
  * Ported from cou-sh/app/components/WelcomeScreen.vue — decoupled from
36
36
  * useAbracadabra, useSpaceRegistry, and all app-specific modals.
37
37
  */
38
- 'open'?: boolean;
38
+ "open"?: boolean;
39
39
  };
40
40
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
41
41
  declare var __VLS_15: {}, __VLS_22: {}, __VLS_24: {}, __VLS_57: {}, __VLS_69: {}, __VLS_76: {}, __VLS_78: {};
@@ -55,8 +55,8 @@ type __VLS_Slots = {} & {
55
55
  logo?: (props: typeof __VLS_78) => any;
56
56
  };
57
57
  declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
- done: () => any;
59
58
  "update:open": (value: boolean) => any;
59
+ done: () => any;
60
60
  "set-name": (name: string) => any;
61
61
  "set-color": (color: string) => any;
62
62
  "set-neutral": (color: string) => any;
@@ -64,8 +64,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
64
64
  "connect-server": (url: string) => any;
65
65
  "claim-passkey": () => any;
66
66
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
67
- onDone?: (() => any) | undefined;
68
67
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
68
+ onDone?: (() => any) | undefined;
69
69
  "onSet-name"?: ((name: string) => any) | undefined;
70
70
  "onSet-color"?: ((color: string) => any) | undefined;
71
71
  "onSet-neutral"?: ((color: string) => any) | undefined;
@@ -74,9 +74,9 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
74
74
  "onClaim-passkey"?: (() => any) | undefined;
75
75
  }>, {
76
76
  connecting: boolean;
77
+ isClaimed: boolean;
77
78
  userName: string;
78
79
  currentColor: string;
79
- isClaimed: boolean;
80
80
  avatarStyle: string;
81
81
  connectionError: string;
82
82
  colors: string[];