slate-vue3 0.5.2 → 0.5.3

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SLATE_USE_SELECTED, a as SLATE_STATE_SELECTION } from "./use-focused-BWpvB-A8.js";
2
- import { g, D, c, e, f, d, E, b, u, j, h, i } from "./use-focused-BWpvB-A8.js";
1
+ import { S as SLATE_USE_SELECTED, a as SLATE_STATE_SELECTION } from "./use-focused-DLqRINOK.js";
2
+ import { g, D, c, e, f, d, E, b, u, j, h, i } from "./use-focused-DLqRINOK.js";
3
3
  import { inject } from "vue";
4
4
  import { t } from "./batch-dirty-paths-DGoKWQz8.js";
5
5
  const useSelected = () => {
@@ -1,6 +1,6 @@
1
- import { h, defineComponent, provide, ref, computed, onMounted, onUnmounted, renderSlot, inject, watch, nextTick, renderList, Fragment, onUpdated, useAttrs, reactive, toRaw } from "vue";
1
+ import { h, defineComponent, provide, ref, computed, onMounted, onUnmounted, renderSlot, inject, watch, renderList, Fragment, onUpdated, useAttrs, reactive, toRaw } from "vue";
2
2
  import { R as Range, N as Node, S as Scrubber, T as Text, P as Path, E as Editor, a as Element, c as Transforms } from "./batch-dirty-paths-DGoKWQz8.js";
3
- import { I as IS_ANDROID, p as isDOMNode, D as DOMEditor, P as MARK_PLACEHOLDER_SYMBOL, d as EDITOR_TO_ON_CHANGE, x as IS_IOS, F as EDITOR_TO_ELEMENT, y as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, J as ELEMENT_TO_NODE, Q as NODE_TO_ELEMENT, R as NODE_TO_INDEX, S as NODE_TO_PARENT, v as IS_FIREFOX, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, O as IS_READ_ONLY, h as getDefaultView, G as EDITOR_TO_WINDOW, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, M as IS_FOCUSED, r as isPlainTextOnlyPaste, L as IS_COMPOSING, B as Hotkeys, u as IS_CHROME, w as IS_FIREFOX_LEGACY, A as IS_WECHATBROWSER, z as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, o as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys-DdYAaAmE.js";
3
+ import { I as IS_ANDROID, p as isDOMNode, D as DOMEditor, P as MARK_PLACEHOLDER_SYMBOL, d as EDITOR_TO_ON_CHANGE, x as IS_IOS, y as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, J as ELEMENT_TO_NODE, Q as NODE_TO_ELEMENT, R as NODE_TO_INDEX, S as NODE_TO_PARENT, v as IS_FIREFOX, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, O as IS_READ_ONLY, h as getDefaultView, G as EDITOR_TO_WINDOW, F as EDITOR_TO_ELEMENT, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, M as IS_FOCUSED, r as isPlainTextOnlyPaste, L as IS_COMPOSING, B as Hotkeys, u as IS_CHROME, w as IS_FIREFOX_LEGACY, A as IS_WECHATBROWSER, z as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, o as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys-DdYAaAmE.js";
4
4
  const SLATE_USE_EDITOR = Symbol("SLATE_USE_EDITOR");
5
5
  const SLATE_USE_DECORATE = Symbol("SLATE_USE_DECORATE");
6
6
  const SLATE_USE_SELECTED = Symbol("SLATE_USE_SELECTED");
@@ -461,19 +461,6 @@ const PlaceholderComp = defineComponent({
461
461
  }
462
462
  }));
463
463
  const renderPlaceholder = useRenderPlaceholder();
464
- const editor = useEditor();
465
- onMounted(() => {
466
- nextTick(() => {
467
- const element = EDITOR_TO_ELEMENT.get(editor).querySelector(
468
- "[data-slate-placeholder]"
469
- );
470
- for (const node of element.childNodes) {
471
- if (node.nodeType === 3 && node.textContent === "") {
472
- element.removeChild(node);
473
- }
474
- }
475
- });
476
- });
477
464
  return () => renderPlaceholder({
478
465
  children: placeholder.value,
479
466
  attributes: attributes.value
package/dist/yjs.js CHANGED
@@ -2,7 +2,7 @@ import { d as isObject, T as Text, N as Node, P as Path, E as Editor, t as toRaw
2
2
  import { toRaw, ref, onMounted, onUnmounted, watch, onUpdated, computed } from "vue";
3
3
  import { XmlText, YTextEvent, createRelativePositionFromTypeIndex, createAbsolutePositionFromRelativePosition, createRelativePositionFromJSON, decodeRelativePosition, encodeRelativePosition, UndoManager, compareRelativePositions } from "yjs";
4
4
  import { L as Location } from "./location-H02Ot2Mm.js";
5
- import { j as useEditor, h as useFocused } from "./use-focused-BWpvB-A8.js";
5
+ import { j as useEditor, h as useFocused } from "./use-focused-DLqRINOK.js";
6
6
  import { D as DOMEditor } from "./hotkeys-DdYAaAmE.js";
7
7
  function deepEquals(node, another) {
8
8
  for (const key in node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slate-vue3",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",