@prismicio/editor-fields 0.4.79-alpha.jp-tree-view-title.0 → 0.4.79-alpha.jp-release-script.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.
- package/dist/fields/KeyTextField.d.ts +1 -1
- package/dist/fields/RichTextField/RichTextField.d.ts +4 -2
- package/dist/index.cjs.js +26 -24
- package/dist/index.es.js +1636 -1624
- package/package.json +5 -5
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigPathInput.d.ts +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TextContent } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import type { Text } from "@prismicio/types-internal/lib/customtypes";
|
|
3
3
|
import { type ReactNode } from "react";
|
|
4
4
|
interface Props {
|
|
@@ -10,10 +10,12 @@ interface Props<TContent extends ExtendedRichTextContent> {
|
|
|
10
10
|
padding?: "normal" | "zero";
|
|
11
11
|
scroll?: "hidden" | "x-auto";
|
|
12
12
|
onContentChange: (content: TContent | undefined) => void;
|
|
13
|
-
/**
|
|
13
|
+
/**
|
|
14
|
+
* Checks `editor.isEmpty` before calling `onContentChange`.
|
|
14
15
|
* - When `true`, the current structure of the document will be returned, even if it has no content.
|
|
15
16
|
* - When `false`, `undefined` will be returned.
|
|
16
|
-
* @default false
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
17
19
|
shouldReturnEmptyContent?: boolean;
|
|
18
20
|
icon?: IconName;
|
|
19
21
|
}
|