@prismicio/editor-fields 0.4.62-alpha.jp-table-render-default-layout.2 → 0.4.62

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.
@@ -10,6 +10,8 @@ export interface DocumentCardProps {
10
10
  tags: string[];
11
11
  tagsFilter?: Set<FilterOption>;
12
12
  highlighted?: boolean;
13
+ highlightedUID?: string;
14
+ searchTerm?: string;
13
15
  onSelect: () => void;
14
16
  }
15
17
  export declare function DocumentCard(props: DocumentCardProps): JSX.Element;
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
16
16
  selectType?: FieldSelectType;
17
17
  displayTextEnabled?: boolean;
18
18
  }
19
- export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "link" | "notes" | "public";
19
+ export declare function getFieldIcon(args: GetFieldIconArgs): "description" | "image" | "link" | "notes" | "public";
20
20
  interface FilledLinkFieldProps {
21
21
  id?: string;
22
22
  appearance?: LinkFieldAppearance;
@@ -11,7 +11,7 @@ interface useLinkFieldParams {
11
11
  }
12
12
  export declare function useLinkField(params: useLinkFieldParams): {
13
13
  contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
14
- selectType: "web" | "document" | "media" | "any" | undefined;
14
+ selectType: "document" | "web" | "media" | "any" | undefined;
15
15
  fieldValue: string;
16
16
  onDisplayTextChange: (displayText: string) => void;
17
17
  onValueChange: (value: string, options?: {
@@ -4,6 +4,7 @@ interface BubbleMenuProps {
4
4
  editor: Editor;
5
5
  nodeTypes: string[];
6
6
  labels: string[];
7
+ hideDisabledOptions?: boolean;
7
8
  }
8
9
  export type Modal = "webLink" | "documentLink" | "mediaLink" | undefined;
9
10
  export declare function BubbleMenu(props: BubbleMenuProps): JSX.Element | null;
@@ -3,7 +3,7 @@ declare const _default: {
3
3
  component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
4
4
  converter: {
5
5
  fromPrismic(schema: Schema<any, any>): (list: {
6
- type: "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
6
+ type: "em" | "embed" | "strong" | "image" | "list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "o-list-item" | "rtl";
7
7
  content: {
8
8
  text: string;
9
9
  } & {
@@ -56,7 +56,7 @@ declare const _default: {
56
56
  } | {
57
57
  start: number;
58
58
  end: number;
59
- type: "strong" | "em" | "list-item";
59
+ type: "em" | "strong" | "list-item";
60
60
  })[] | undefined;
61
61
  };
62
62
  } & {
@@ -64,7 +64,7 @@ declare const _default: {
64
64
  direction?: string | undefined;
65
65
  }) => ProsemirrorNode | undefined;
66
66
  toPrismic(node: ProsemirrorNode, nodeType: "list-item" | "o-list-item"): readonly ({
67
- type: "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "strong" | "em" | "preformatted" | "hyperlink" | "image" | "embed" | "list-item" | "o-list-item" | "rtl";
67
+ type: "em" | "embed" | "strong" | "image" | "list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "o-list-item" | "rtl";
68
68
  content: {
69
69
  text: string;
70
70
  } & {
@@ -117,7 +117,7 @@ declare const _default: {
117
117
  } | {
118
118
  start: number;
119
119
  end: number;
120
- type: "strong" | "em" | "list-item";
120
+ type: "em" | "strong" | "list-item";
121
121
  })[] | undefined;
122
122
  };
123
123
  } & {
@@ -20,31 +20,31 @@ export declare function useImageView(props: useImageViewProps): {
20
20
  updateContent: (content?: ImageBlockData) => void;
21
21
  onClear: () => void;
22
22
  uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
23
- kind: string;
24
- id: string;
25
- url: string;
26
- size: number;
27
23
  tags: {
28
24
  name: string;
29
25
  id: string;
30
- created_at: number;
31
26
  last_modified: number;
27
+ created_at: number;
32
28
  count: number;
33
29
  uploader_id?: string | undefined;
34
30
  }[];
35
- last_modified: number;
31
+ size: number;
32
+ id: string;
33
+ kind: string;
34
+ url: string;
36
35
  filename: string;
37
- height?: number | undefined;
36
+ last_modified: number;
37
+ notes?: string | undefined;
38
38
  width?: number | undefined;
39
+ height?: number | undefined;
39
40
  credits?: string | undefined;
40
41
  alt?: string | undefined;
41
- notes?: string | undefined;
42
- uploader_id?: string | undefined;
43
42
  extension?: string | undefined;
43
+ uploader_id?: string | undefined;
44
44
  search_highlight?: {
45
+ notes?: string | undefined;
45
46
  credits?: string | undefined;
46
47
  alt?: string | undefined;
47
- notes?: string | undefined;
48
48
  filename?: string | undefined;
49
49
  } | undefined;
50
50
  }, Error, File, unknown>;
@@ -12,7 +12,7 @@ import { Link } from "./Link/Link";
12
12
  import { default as OrderedList } from "./OrderedList/OrderedList";
13
13
  import { default as Paragraph } from "./Paragraph/Paragraph";
14
14
  import { Table } from "./Table/Table";
15
- export declare const MarkExtensions: (import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Link/LinkModel").LinkExtension | import("./Label/LabelModel").LabelExtension)[];
15
+ export declare const MarkExtensions: (import("./Link/LinkModel").LinkExtension | import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Label/LabelModel").LabelExtension)[];
16
16
  export type MarkExtensionName = (typeof MarkExtensions)[number]["name"];
17
17
  export declare function getAllExtensions(nodeTypes?: Set<ExtendedRichTextNodeType>): WidgetExtension[];
18
18
  export { Bold, BulletList, CodeBlock, Embed, Heading, Image, Italic, Label, Link, OrderedList, Paragraph, Table, };