@threadlabs/looma 0.23.18 → 0.23.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threadlabs/looma",
3
- "version": "0.23.18",
3
+ "version": "0.23.19",
4
4
  "type": "module",
5
5
  "description": "Looma components as HTML, Vue, and plain DOM, with design tokens.",
6
6
  "license": "MIT",
@@ -1999,7 +1999,7 @@ var LoomaEditor = defineComponent({
1999
1999
  instance && props.editable && !mobile.value && (props.toolbarMode === "bubble" || props.toolbarMode === "popover" || props.toolbarMode === "contextual") ? h(BubbleMenu, {
2000
2000
  editor: instance,
2001
2001
  pluginKey: "looma-text-formatting-menu",
2002
- shouldShow: ({ editor: menuEditor, from, to }) => (props.toolbarMode !== "popover" || !props.toolbarOpen) && (props.toolbarMode === "contextual" ? menuEditor.isFocused || linkContextEditing.value : shouldShowTextFormattingToolbar(menuEditor, from, to)),
2002
+ shouldShow: ({ editor: menuEditor, from, to }) => (props.toolbarMode !== "popover" || !props.toolbarOpen) && (props.toolbarMode === "contextual" ? !slash.active && !mention.active && (menuEditor.isFocused || linkContextEditing.value) : shouldShowTextFormattingToolbar(menuEditor, from, to)),
2003
2003
  tippyOptions: {
2004
2004
  appendTo: () => root.value?.closest("dialog[open], [popover]") ?? document.body,
2005
2005
  onShow: () => announceOverlayOpen(root.value?.ownerDocument ?? document, root.value),