@threadlabs/looma 0.5.2 → 0.6.0-rc.2
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/components/shared/overlay.js +3 -0
- package/components/ui-button/ui-button.html +46 -26
- package/components/ui-callout/ui-callout.html +1 -1
- package/components/ui-checkbox/ui-checkbox.html +1 -1
- package/components/ui-cluster/ui-cluster.html +6 -6
- package/components/ui-combobox/ui-combobox.html +23 -23
- package/components/ui-container/ui-container.html +4 -4
- package/components/ui-context-menu/ui-context-menu.html +2 -2
- package/components/ui-dialog/ui-dialog.html +12 -12
- package/components/ui-disclosure/ui-disclosure.html +19 -4
- package/components/ui-editable/ui-editable.html +6 -6
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +20 -20
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +25 -25
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +39 -39
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +20 -20
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +48 -48
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +34 -34
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +9 -9
- package/components/ui-floating-action-button/ui-floating-action-button.html +16 -22
- package/components/ui-grid/ui-grid.html +6 -6
- package/components/ui-icon-button/ui-icon-button.html +45 -40
- package/components/ui-input/ui-input.html +2 -2
- package/components/ui-menu/ui-menu.html +15 -4
- package/components/ui-menu-item/ui-menu-item.html +5 -5
- package/components/ui-popover/ui-popover.html +3 -3
- package/components/ui-reel/ui-reel.html +6 -6
- package/components/ui-search-result-row/ui-search-result-row.html +9 -9
- package/components/ui-search-shell/ui-search-shell.html +3 -3
- package/components/ui-select/ui-select.html +2 -2
- package/components/ui-sidebar/ui-sidebar.html +11 -11
- package/components/ui-stack/ui-stack.html +6 -6
- package/components/ui-switcher/ui-switcher.html +6 -6
- package/components/ui-tabs/ui-tabs.html +18 -4
- package/components/ui-textarea/ui-textarea.html +2 -2
- package/components/ui-toast-region/ui-toast-region.html +2 -2
- package/components/ui-tooltip/ui-tooltip.html +1 -1
- package/components/ui-top-bar/ui-top-bar.html +5 -5
- package/components/ui-tree/ui-tree.html +7 -0
- package/components/ui-tree-item/ui-tree-item.html +15 -7
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles/ui-button.css +47 -26
- package/styles/ui-callout.css +1 -1
- package/styles/ui-checkbox.css +1 -1
- package/styles/ui-cluster.css +6 -6
- package/styles/ui-combobox.css +23 -23
- package/styles/ui-container.css +4 -4
- package/styles/ui-context-menu.css +2 -2
- package/styles/ui-dialog.css +12 -12
- package/styles/ui-disclosure.css +22 -6
- package/styles/ui-editable.css +6 -6
- package/styles/ui-editor-insert-table-grid.css +20 -20
- package/styles/ui-editor-mention-menu.css +25 -25
- package/styles/ui-editor-slash-menu.css +39 -39
- package/styles/ui-editor-table-context-menu.css +20 -20
- package/styles/ui-editor-table-overlay.css +48 -48
- package/styles/ui-editor-table-toolbar.css +34 -34
- package/styles/ui-editor-toolbar.css +9 -9
- package/styles/ui-floating-action-button.css +16 -22
- package/styles/ui-grid.css +6 -6
- package/styles/ui-icon-button.css +45 -40
- package/styles/ui-input.css +2 -2
- package/styles/ui-menu-item.css +5 -5
- package/styles/ui-menu.css +18 -6
- package/styles/ui-popover.css +3 -3
- package/styles/ui-reel.css +6 -6
- package/styles/ui-search-result-row.css +9 -9
- package/styles/ui-search-shell.css +3 -3
- package/styles/ui-select.css +2 -2
- package/styles/ui-sidebar.css +11 -11
- package/styles/ui-stack.css +6 -6
- package/styles/ui-switcher.css +6 -6
- package/styles/ui-tabs.css +20 -6
- package/styles/ui-textarea.css +2 -2
- package/styles/ui-toast-region.css +2 -2
- package/styles/ui-tooltip.css +1 -1
- package/styles/ui-top-bar.css +5 -5
- package/styles/ui-tree-item.css +21 -8
- package/styles/ui-tree.css +7 -1
- package/theme-dark.css +46 -103
- package/theme-high-contrast.css +22 -22
- package/theme-light.css +17 -41
- package/tokens.css +154 -201
- package/vanilla/UiButton.d.ts +1 -0
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiDisclosure.d.ts +1 -0
- package/vanilla/UiDisclosure.js +1 -1
- package/vanilla/UiMenu.d.ts +1 -0
- package/vanilla/UiMenu.js +1 -1
- package/vanilla/UiTabs.d.ts +1 -0
- package/vanilla/UiTabs.js +1 -1
- package/vanilla/UiTree.d.ts +1 -0
- package/vanilla/UiTree.js +1 -1
- package/vue/UiButton.d.ts +2 -0
- package/vue/UiButton.vue +56 -41
- package/vue/UiCallout.vue +1 -1
- package/vue/UiCheckbox.vue +1 -1
- package/vue/UiCluster.vue +6 -6
- package/vue/UiCombobox.vue +23 -23
- package/vue/UiContainer.vue +4 -4
- package/vue/UiContextMenu.vue +2 -2
- package/vue/UiDialog.vue +12 -12
- package/vue/UiDisclosure.d.ts +2 -0
- package/vue/UiDisclosure.vue +21 -4
- package/vue/UiEditable.vue +6 -6
- package/vue/UiEditorInsertTableGrid.vue +20 -20
- package/vue/UiEditorMentionMenu.vue +25 -25
- package/vue/UiEditorSlashMenu.vue +39 -39
- package/vue/UiEditorTableContextMenu.vue +20 -20
- package/vue/UiEditorTableOverlay.vue +48 -57
- package/vue/UiEditorTableToolbar.vue +34 -34
- package/vue/UiEditorToolbar.vue +9 -9
- package/vue/UiFloatingActionButton.vue +17 -22
- package/vue/UiGrid.vue +6 -6
- package/vue/UiIconButton.vue +45 -55
- package/vue/UiInput.vue +2 -2
- package/vue/UiMenu.d.ts +2 -0
- package/vue/UiMenu.vue +17 -7
- package/vue/UiMenuItem.vue +6 -5
- package/vue/UiPopover.vue +3 -3
- package/vue/UiReel.vue +6 -6
- package/vue/UiSearchResultRow.vue +10 -13
- package/vue/UiSearchShell.vue +3 -3
- package/vue/UiSelect.vue +2 -2
- package/vue/UiSidebar.vue +11 -16
- package/vue/UiStack.vue +6 -6
- package/vue/UiSwitcher.vue +6 -6
- package/vue/UiTabs.d.ts +2 -0
- package/vue/UiTabs.vue +21 -4
- package/vue/UiTextarea.vue +2 -2
- package/vue/UiToastRegion.vue +2 -2
- package/vue/UiTooltip.vue +1 -1
- package/vue/UiTopBar.vue +5 -5
- package/vue/UiTree.d.ts +2 -0
- package/vue/UiTree.vue +24 -1
- package/vue/UiTreeItem.vue +16 -8
- package/vue/chunks/UiButton.js +4 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +3 -2
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiMenu.js +3 -2
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiReel.js +1 -1
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- package/vue/chunks/UiSwitcher.js +1 -1
- package/vue/chunks/UiTabs.js +7 -2
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +8 -2
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +1114 -1090
- package/vue/editor/LoomaEditor.d.ts +11 -0
- package/vue/editor/index.js +17 -0
|
@@ -61,6 +61,11 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
|
|
|
61
61
|
type: StringConstructor;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
|
+
/** Accessible name of the editing surface, which is a text box to assistive technology. */
|
|
65
|
+
label: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
64
69
|
extensions: {
|
|
65
70
|
type: PropType<AnyExtension[]>;
|
|
66
71
|
default: () => never[];
|
|
@@ -122,6 +127,11 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
|
|
|
122
127
|
type: StringConstructor;
|
|
123
128
|
default: string;
|
|
124
129
|
};
|
|
130
|
+
/** Accessible name of the editing surface, which is a text box to assistive technology. */
|
|
131
|
+
label: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
125
135
|
extensions: {
|
|
126
136
|
type: PropType<AnyExtension[]>;
|
|
127
137
|
default: () => never[];
|
|
@@ -158,6 +168,7 @@ export declare const LoomaEditor: import("vue").DefineComponent<import("vue").Ex
|
|
|
158
168
|
onImageActivate?: ((_detail: LoomaImageActivationDetail) => any) | undefined;
|
|
159
169
|
onImageRenditionError?: ((_detail: LoomaImageRenditionErrorDetail) => any) | undefined;
|
|
160
170
|
}>, {
|
|
171
|
+
label: string;
|
|
161
172
|
placeholder: string;
|
|
162
173
|
modelValue: JSONContent;
|
|
163
174
|
editable: boolean;
|
package/vue/editor/index.js
CHANGED
|
@@ -268,6 +268,11 @@ var LoomaEditor = defineComponent({
|
|
|
268
268
|
type: String,
|
|
269
269
|
default: "Type “/” for commands, or start writing…"
|
|
270
270
|
},
|
|
271
|
+
/** Accessible name of the editing surface, which is a text box to assistive technology. */
|
|
272
|
+
label: {
|
|
273
|
+
type: String,
|
|
274
|
+
default: "Document"
|
|
275
|
+
},
|
|
271
276
|
extensions: {
|
|
272
277
|
type: Array,
|
|
273
278
|
default: () => []
|
|
@@ -403,6 +408,11 @@ var LoomaEditor = defineComponent({
|
|
|
403
408
|
],
|
|
404
409
|
content: props.modelValue,
|
|
405
410
|
editable: props.editable,
|
|
411
|
+
editorProps: { attributes: {
|
|
412
|
+
role: "textbox",
|
|
413
|
+
"aria-multiline": "true",
|
|
414
|
+
"aria-label": props.label
|
|
415
|
+
} },
|
|
406
416
|
onCreate: ({ editor: instance }) => emit("ready", instance),
|
|
407
417
|
onFocus: ({ editor: instance }) => rememberSelection(instance),
|
|
408
418
|
onSelectionUpdate: ({ editor: instance }) => rememberSelection(instance),
|
|
@@ -416,6 +426,13 @@ var LoomaEditor = defineComponent({
|
|
|
416
426
|
}
|
|
417
427
|
});
|
|
418
428
|
watch(() => props.editable, (editable) => editor.value?.setEditable(editable));
|
|
429
|
+
watch(() => props.label, (label) => {
|
|
430
|
+
editor.value?.setOptions({ editorProps: { attributes: {
|
|
431
|
+
role: "textbox",
|
|
432
|
+
"aria-multiline": "true",
|
|
433
|
+
"aria-label": label
|
|
434
|
+
} } });
|
|
435
|
+
});
|
|
419
436
|
watch(() => props.resolveImageAttributes, () => {
|
|
420
437
|
const instance = editor.value;
|
|
421
438
|
if (instance) imageDelivery.reset(instance);
|