@team-monolith/cds 1.93.0 → 1.93.1

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.
@@ -1,6 +1,5 @@
1
1
  type ParagraphPlaceholderPluginProps = {
2
2
  placeholder: string;
3
- hideOnEmptyEditor?: boolean;
4
3
  };
5
4
  export declare const ParagraphPlaceholderPlugin: ({ placeholder, }: ParagraphPlaceholderPluginProps) => null;
6
5
  export {};
@@ -31,18 +31,17 @@ export const ParagraphPlaceholderPlugin = ({ placeholder, }) => {
31
31
  if (!selection ||
32
32
  !$isRangeSelection(selection) ||
33
33
  !selection.isCollapsed()) {
34
- return false;
34
+ return;
35
35
  }
36
36
  const focusedNode = selection.focus.getNode();
37
37
  if (!$isParagraphNode(focusedNode) || !focusedNode.isEmpty())
38
- return false;
38
+ return;
39
39
  const el = editor.getElementByKey(focusedNode.getKey());
40
40
  if (el instanceof HTMLParagraphElement) {
41
41
  paragraphRef.current = el;
42
42
  paragraphRef.current.setAttribute("data-placeholder", placeholder);
43
43
  paragraphRef.current.classList.add(placeholderClassName);
44
44
  }
45
- return false;
46
45
  });
47
46
  });
48
47
  return () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.93.0",
3
+ "version": "1.93.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,