@prismicio/editor-fields 0.2.1 → 0.4.0

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.
Files changed (63) hide show
  1. package/dist/DocumentEditor.d.ts +10 -10
  2. package/dist/EditorConfig.d.ts +10 -0
  3. package/dist/GroupEditor.d.ts +1 -0
  4. package/dist/NestableWidgetSwitch.d.ts +1 -1
  5. package/dist/SectionEditor.d.ts +7 -5
  6. package/dist/Selection.d.ts +5 -0
  7. package/dist/fields/BooleanField.d.ts +1 -1
  8. package/dist/fields/ColorField/ColorField.d.ts +10 -0
  9. package/dist/fields/ColorField/index.d.ts +1 -0
  10. package/dist/fields/DateField.d.ts +4 -4
  11. package/dist/fields/EmbedField/EmbedField.d.ts +11 -0
  12. package/dist/fields/EmbedField/index.d.ts +1 -0
  13. package/dist/{domain/fields/ImageField/CroppedImage.d.ts → fields/ImageField/CroppedDialog/croppedImage.d.ts} +1 -1
  14. package/dist/fields/ImageField/{CropperDialog.d.ts → CroppedDialog/index.d.ts} +2 -2
  15. package/dist/{domain/fields/ImageField/ExternalImage.d.ts → fields/ImageField/MediaPicker/externalImage.d.ts} +1 -2
  16. package/dist/fields/ImageField/MediaPicker/index.d.ts +8 -1
  17. package/dist/{domain/fields/ImageField/ImageField.d.ts → fields/ImageField/imageField.d.ts} +1 -2
  18. package/dist/fields/ImageField/index.d.ts +12 -1
  19. package/dist/fields/LinkField/index.d.ts +12 -1
  20. package/dist/fields/RichTextField/RichTextField.d.ts +1 -1
  21. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  22. package/dist/fields/RichTextField/coreExtensions/Placeholder.d.ts +1 -1
  23. package/dist/fields/RichTextField/coreExtensions/index.d.ts +1 -1
  24. package/dist/fields/RichTextField/extensions/Heading.d.ts +1 -1
  25. package/dist/fields/RichTextField/extensions/Link.d.ts +1 -1
  26. package/dist/fields/RichTextField/extensions/index.d.ts +1 -1
  27. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +1 -1
  28. package/dist/fields/RichTextField/models/EditorExtension.d.ts +2 -3
  29. package/dist/fields/RichTextField/models/MenuItems.d.ts +1 -1
  30. package/dist/fields/RichTextField/models/RichTextConfig.d.ts +1 -1
  31. package/dist/fields/RichTextField/models/Span.d.ts +1 -1
  32. package/dist/fields/TimestampField.d.ts +11 -0
  33. package/dist/{domain/Field.d.ts → fields/utils.d.ts} +1 -1
  34. package/dist/index.d.ts +2 -2
  35. package/dist/index.es.js +25464 -24615
  36. package/dist/index.umd.js +41 -41
  37. package/dist/slices/CompositeSliceEditor.d.ts +3 -3
  38. package/dist/slices/LegacySliceEditor.d.ts +2 -2
  39. package/dist/slices/SharedSliceEditor.d.ts +5 -1
  40. package/dist/zones/NonRepeatableZoneEditor.d.ts +6 -4
  41. package/dist/zones/RepeatableZoneEditor.d.ts +4 -4
  42. package/dist/zones/SliceZoneEditor.d.ts +6 -5
  43. package/dist/zones/StaticZone.d.ts +4 -0
  44. package/dist/zones/StaticZoneEditor.d.ts +3 -3
  45. package/package.json +5 -5
  46. package/dist/DocumentEditorConfig.d.ts +0 -8
  47. package/dist/domain/Document.d.ts +0 -8
  48. package/dist/domain/Group.d.ts +0 -7
  49. package/dist/domain/NestableWidget.d.ts +0 -11
  50. package/dist/domain/Section.d.ts +0 -10
  51. package/dist/domain/SharedSlices.d.ts +0 -3
  52. package/dist/domain/StaticWidget.d.ts +0 -3
  53. package/dist/domain/Widget.d.ts +0 -8
  54. package/dist/domain/slices/CompositeSlice.d.ts +0 -6
  55. package/dist/domain/slices/LegacySlice.d.ts +0 -2
  56. package/dist/domain/slices/SharedSlice.d.ts +0 -9
  57. package/dist/domain/zones/NonRepeatableZone.d.ts +0 -5
  58. package/dist/domain/zones/RepeatableZone.d.ts +0 -6
  59. package/dist/domain/zones/SliceZone.d.ts +0 -2
  60. package/dist/domain/zones/StaticZone.d.ts +0 -6
  61. package/dist/fields/ImageField/ImageField.d.ts +0 -12
  62. package/dist/fields/ImageField/MediaPicker/MediaPicker.d.ts +0 -8
  63. package/dist/fields/LinkField/LinkField.d.ts +0 -12
@@ -1,16 +1,16 @@
1
- import { type CustomType as DynamicCustomType } from "@prismicio/types-internal/lib/customtypes";
1
+ import type { Document } from "@prismicio/types-internal/lib/content";
2
+ import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
2
3
  import { type FC } from "react";
3
- import { DocumentEditorConfig } from "./DocumentEditorConfig";
4
- import { type DocumentContent } from "./domain/Document";
5
- import { type SharedSlices } from "./domain/SharedSlices";
4
+ import { EditorConfig } from "./EditorConfig";
5
+ import type { Selection } from "./Selection";
6
6
  declare type DocumentEditorProps = Readonly<{
7
- content: DocumentContent;
8
- customType: DynamicCustomType;
9
- onContentChange: (content: DocumentContent) => void;
7
+ config: EditorConfig;
10
8
  readOnly?: boolean;
11
- sectionName: string | undefined;
12
- sharedSlices: SharedSlices;
13
- config?: DocumentEditorConfig;
9
+ customType: StaticCustomType;
10
+ sectionName: string;
11
+ selection?: Selection;
12
+ content: Document;
13
+ onContentChange: (content: Document) => void;
14
14
  }>;
15
15
  export declare const DocumentEditor: FC<DocumentEditorProps>;
16
16
  export {};
@@ -0,0 +1,10 @@
1
+ export interface EditorConfig {
2
+ embeds: {
3
+ url: string;
4
+ };
5
+ unsplash: {
6
+ url: string;
7
+ };
8
+ }
9
+ export declare const EditorConfigContext: import("react").Context<EditorConfig | undefined>;
10
+ export declare function useEditorConfig(): EditorConfig;
@@ -9,4 +9,5 @@ declare type GroupEditorProps = Readonly<{
9
9
  readOnly: boolean;
10
10
  }>;
11
11
  export declare const GroupEditor: FC<GroupEditorProps>;
12
+ export declare function getGroupLabel(group: Group): string;
12
13
  export {};
@@ -1,5 +1,5 @@
1
1
  import { NestableContent } from "@prismicio/types-internal/lib/content";
2
- import type { NestableWidget } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
2
+ import type { NestableWidget } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { FC } from "react";
4
4
  declare type NestableWidgetSwitchProps = Readonly<{
5
5
  content: NestableContent | undefined;
@@ -1,12 +1,14 @@
1
- import type { StaticSection as Section } from "@prismicio/types-internal/lib/customtypes/Section";
1
+ import { type Document } from "@prismicio/types-internal/lib/content";
2
+ import type { StaticSection } from "@prismicio/types-internal/lib/customtypes";
2
3
  import { type FC } from "react";
3
- import { type SectionContent } from "./domain/Section";
4
+ import type { Selection } from "./Selection";
4
5
  declare type SectionEditorProps = Readonly<{
5
- content: SectionContent;
6
6
  id: string;
7
- onContentChange: (content: SectionContent) => void;
8
7
  readOnly: boolean;
9
- section: Section;
8
+ selection?: Selection;
9
+ section: StaticSection;
10
+ content: Document;
11
+ onContentChange: (content: Document) => void;
10
12
  }>;
11
13
  export declare const SectionEditor: FC<SectionEditorProps>;
12
14
  export {};
@@ -0,0 +1,5 @@
1
+ export interface Selection {
2
+ id: string;
3
+ key: string;
4
+ offset?: number;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import type { BooleanContent } from "@prismicio/types-internal/lib/content";
2
- import type { BooleanField as BooleanT } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
2
+ import type { BooleanField as BooleanT } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { FC } from "react";
4
4
  declare type BooleanFieldProps = Readonly<{
5
5
  content: BooleanContent | undefined;
@@ -0,0 +1,10 @@
1
+ import type { ColorContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Color as ColorT } from "@prismicio/types-internal/lib/customtypes";
3
+ declare type Props = Readonly<{
4
+ id: string;
5
+ field: ColorT;
6
+ content?: ColorContent;
7
+ onContentChange: (content?: ColorContent) => void;
8
+ }>;
9
+ export declare const ColorField: ({ id, field, content, onContentChange }: Props) => JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export { ColorField } from "./ColorField";
@@ -1,11 +1,11 @@
1
1
  import type { DateContent } from "@prismicio/types-internal/lib/content";
2
2
  import type { Date as DateT } from "@prismicio/types-internal/lib/customtypes";
3
3
  declare type Props = Readonly<{
4
- content?: DateContent;
5
- field: DateT;
6
4
  id: string;
7
- onContentChange: (content?: DateContent) => void;
8
5
  readOnly: boolean;
6
+ field: DateT;
7
+ content?: DateContent;
8
+ onContentChange: (content?: DateContent) => void;
9
9
  }>;
10
- export declare const DateField: ({ content, field, id, onContentChange, readOnly }: Props) => JSX.Element;
10
+ export declare const DateField: ({ id, readOnly, field, content, onContentChange }: Props) => JSX.Element;
11
11
  export {};
@@ -0,0 +1,11 @@
1
+ import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Embed as EmbedT } from "@prismicio/types-internal/lib/customtypes";
3
+ declare type Props = Readonly<{
4
+ id: string;
5
+ readOnly: boolean;
6
+ field: EmbedT;
7
+ content?: EmbedContent;
8
+ onContentChange: (content?: EmbedContent) => void;
9
+ }>;
10
+ export declare const EmbedField: ({ id, readOnly, field, content, onContentChange }: Props) => JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export { EmbedField } from "./EmbedField";
@@ -1,6 +1,6 @@
1
1
  import type { ImageContent, ImageContentView } from "@prismicio/types-internal/lib/content";
2
2
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
- import { type Thumbnail } from "./ImageField";
3
+ import { type Thumbnail } from "../imageField";
4
4
  export interface Point {
5
5
  x: number;
6
6
  y: number;
@@ -1,7 +1,7 @@
1
1
  import type { ImageContentView } from "@prismicio/types-internal/lib/content";
2
2
  import * as React from "react";
3
- import { type CroppedImage } from "../../domain/fields/ImageField/CroppedImage";
4
- import type { getImageLabel, Thumbnail } from "../../domain/fields/ImageField/ImageField";
3
+ import type { getImageLabel, Thumbnail } from "../imageField";
4
+ import { type CroppedImage } from "./croppedImage";
5
5
  export declare type CroppedImages = Record<string, CroppedImage>;
6
6
  interface Image {
7
7
  thumbnail: Thumbnail;
@@ -1,6 +1,5 @@
1
1
  import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
- import type { Image } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
3
- import type { ImageConstraint } from "@prismicio/types-internal/lib/customtypes/widgets/shared";
2
+ import type { Image, ImageConstraint } from "@prismicio/types-internal/lib/customtypes";
4
3
  export interface ExternalImage {
5
4
  id: string;
6
5
  url: string;
@@ -1 +1,8 @@
1
- export { MediaPicker } from "./MediaPicker";
1
+ import { FC, ReactNode } from "react";
2
+ import type { ExternalImage } from "./externalImage";
3
+ interface MediaPickerProps {
4
+ trigger: ReactNode;
5
+ onMediaSelected?: (media: ExternalImage) => void;
6
+ }
7
+ export declare const MediaPicker: FC<MediaPickerProps>;
8
+ export {};
@@ -1,6 +1,5 @@
1
1
  import type { ImageContent, ImageContentView } from "@prismicio/types-internal/lib/content";
2
- import type { Image } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
3
- import type { ImageConstraint } from "@prismicio/types-internal/lib/customtypes/widgets/shared";
2
+ import type { Image, ImageConstraint } from "@prismicio/types-internal/lib/customtypes";
4
3
  export declare type Thumbnail = Readonly<ImageConstraint & {
5
4
  name: string;
6
5
  }>;
@@ -1 +1,12 @@
1
- export { ImageField } from "./ImageField";
1
+ import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
+ import { type FC } from "react";
4
+ interface ImageFieldProps {
5
+ content: ImageContent | undefined;
6
+ field: Image;
7
+ id: string;
8
+ onContentChange: (content: ImageContent | undefined) => void;
9
+ readOnly: boolean;
10
+ }
11
+ export declare const ImageField: FC<ImageFieldProps>;
12
+ export {};
@@ -1 +1,12 @@
1
- export { LinkField } from "./LinkField";
1
+ import type { LinkContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
+ import { FC } from "react";
4
+ declare type LinkFieldProps = Readonly<{
5
+ content: LinkContent | undefined;
6
+ field: Link;
7
+ id: string;
8
+ readOnly: boolean;
9
+ onContentChange: (content: LinkContent | undefined) => void;
10
+ }>;
11
+ export declare const LinkField: FC<LinkFieldProps>;
12
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { RichTextContent } from "@prismicio/types-internal/lib/content";
2
- import type { RichText } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
2
+ import type { RichText } from "@prismicio/types-internal/lib/customtypes";
3
3
  import { type FC } from "react";
4
4
  declare type RichTextFieldProps = Readonly<{
5
5
  content: RichTextContent | undefined;
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
5
5
  converter: {
6
6
  fromPrismic(schema: Schema<any, any>): (list: {
7
- type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
7
+ type: "em" | "embed" | "strong" | "image" | "paragraph" | "list-item" | "o-list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "rtl";
8
8
  content: {
9
9
  text: string;
10
10
  } & {
@@ -13,7 +13,7 @@ declare const _default: {
13
13
  } & {
14
14
  start: number;
15
15
  end: number;
16
- type: "label" | "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
16
+ type: "label" | "em" | "embed" | "strong" | "image" | "paragraph" | "list-item" | "o-list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "rtl";
17
17
  })[] | undefined;
18
18
  };
19
19
  } & {
@@ -21,7 +21,7 @@ declare const _default: {
21
21
  direction?: string | undefined;
22
22
  }) => ProsemirrorNode | undefined;
23
23
  toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
24
- type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
24
+ type: "em" | "embed" | "strong" | "image" | "paragraph" | "list-item" | "o-list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "rtl";
25
25
  content: {
26
26
  text: string;
27
27
  } & {
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  } & {
31
31
  start: number;
32
32
  end: number;
33
- type: "label" | "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
33
+ type: "label" | "em" | "embed" | "strong" | "image" | "paragraph" | "list-item" | "o-list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "rtl";
34
34
  })[] | undefined;
35
35
  };
36
36
  } & {
@@ -1,3 +1,3 @@
1
1
  import { type ExtensionPlaceholder } from "../models";
2
- declare const _default: (placeholderByNodeType: Partial<Record<string, ExtensionPlaceholder>>) => import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any>;
2
+ declare const _default: (placeholderByNodeType: Record<string, ExtensionPlaceholder>) => import("@tiptap/core").Extension<import("@tiptap/extension-placeholder").PlaceholderOptions, any>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { type RichText } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
1
+ import { type RichText } from "@prismicio/types-internal/lib/customtypes";
2
2
  import type { Node } from "@tiptap/core";
3
3
  import { type NodeExtension } from "../models";
4
4
  import { default as Document } from "./Document";
@@ -1,4 +1,4 @@
1
- import { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
1
+ import { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
2
2
  import { type Level as TTLevel } from "@tiptap/extension-heading";
3
3
  import { type ReadonlyNonEmptyArray } from "fp-ts/ReadonlyNonEmptyArray";
4
4
  import type { Node as ProsemirrorNode } from "prosemirror-model";
@@ -18,9 +18,9 @@ declare const EditorLink: MarkExtension<{
18
18
  url: string;
19
19
  name: string;
20
20
  kind: string;
21
+ size: string;
21
22
  } & {
22
23
  date?: string | null | undefined;
23
- size?: string | undefined;
24
24
  } & {
25
25
  __TYPE__: "FileLink";
26
26
  } & {
@@ -1,4 +1,4 @@
1
- import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
1
+ import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
2
2
  import type { WidgetExtension } from "../models";
3
3
  import { default as Bold } from "./Bold";
4
4
  import { default as BulletList } from "./BulletList";
@@ -28,7 +28,7 @@ declare module "@tiptap/core" {
28
28
  export declare const richTextNodeType: "rtl";
29
29
  export declare const component: Extension<TextDirectionOptions, any>;
30
30
  export declare const converter: {
31
- parseNodeAttrsDirection(attributes: Partial<Record<string, unknown>>): Direction;
31
+ parseNodeAttrsDirection(attributes: Record<string, unknown>): Direction;
32
32
  fromPrismic(textBlock: TextBlock): {
33
33
  [TEXT_DIRECTION_ATTR_NAME]: Direction;
34
34
  };
@@ -1,6 +1,5 @@
1
- import type { RichTextContent } from "@prismicio/types-internal/lib/content";
2
- import type { EmbedBlock, ImageBlock, TextBlock } from "@prismicio/types-internal/lib/content";
3
- import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
1
+ import type { EmbedBlock, ImageBlock, RichTextContent, TextBlock } from "@prismicio/types-internal/lib/content";
2
+ import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
4
3
  import type { Mark, Node } from "@tiptap/core";
5
4
  import type { NonEmptyArray } from "fp-ts/NonEmptyArray";
6
5
  import type { ReadonlyNonEmptyArray } from "fp-ts/ReadonlyNonEmptyArray";
@@ -1,4 +1,4 @@
1
- import { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes/widgets/nestable";
1
+ import { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
2
2
  import type { Editor, Range } from "@tiptap/core";
3
3
  import type { ReactNode } from "react";
4
4
  export declare type MenuItem = Readonly<{
@@ -1,5 +1,5 @@
1
1
  import type { TextBlock } from "@prismicio/types-internal/lib/content";
2
- import { RichTextConfig } from "@prismicio/types-internal/lib/customtypes/widgets/nestable/RichText";
2
+ import { RichTextConfig } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { Node as ProsemirrorNode, Schema } from "prosemirror-model";
4
4
  import { type WidgetExtension } from "./EditorExtension";
5
5
  declare type TextConverter = (text: TextBlock) => ProsemirrorNode | undefined;
@@ -5,7 +5,7 @@ export declare const SpanUtils: {
5
5
  } & {
6
6
  start: number;
7
7
  end: number;
8
- type: "label" | "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
8
+ type: "label" | "em" | "embed" | "strong" | "image" | "paragraph" | "list-item" | "o-list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "rtl";
9
9
  })[]>;
10
10
  sort(spans: readonly Span[]): readonly Span[];
11
11
  mergeOverlap(spans: readonly Span[]): readonly Span[];
@@ -0,0 +1,11 @@
1
+ import type { TimestampContent } from "@prismicio/types-internal/lib/content";
2
+ import type { Timestamp } from "@prismicio/types-internal/lib/customtypes";
3
+ declare type Props = Readonly<{
4
+ id: string;
5
+ readOnly: boolean;
6
+ field: Timestamp;
7
+ content?: TimestampContent;
8
+ onContentChange: (content?: TimestampContent) => void;
9
+ }>;
10
+ export declare const TimestampField: ({ id, readOnly, field, content, onContentChange }: Props) => JSX.Element;
11
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { BooleanField, NestableWidget, Separator } from "@prismicio/types-internal/lib/customtypes";
2
2
  declare type Field = Exclude<NestableWidget, Separator>;
3
- export declare function getFieldLabel(field: Field | Separator): string;
3
+ export declare function getFieldLabel(field: NestableWidget): string;
4
4
  export declare function getFieldPlaceholder(field: Exclude<Field, BooleanField>): string;
5
5
  export declare function getFieldPlaceholder(field: BooleanField, value: boolean): string;
6
6
  export {};
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { DocumentEditor } from "./DocumentEditor";
2
- export type { DocumentEditorConfig } from "./DocumentEditorConfig";
3
- export { defaultSharedSliceContent } from "./domain/slices/SharedSlice";
2
+ export type { EditorConfig } from "./EditorConfig";
3
+ export type { Selection } from "./Selection";
4
4
  export { SharedSliceEditor } from "./slices/SharedSliceEditor";