@prismicio/editor-fields 0.4.62 → 0.4.63

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 (32) hide show
  1. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +45 -45
  2. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +5 -5
  3. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
  4. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  5. package/dist/core/service/customType.d.ts +18 -18
  6. package/dist/core/service/document.d.ts +97 -71
  7. package/dist/core/service/documentSearch.d.ts +20 -39
  8. package/dist/fields/ImageField/useImageField.d.ts +5 -5
  9. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +5 -5
  10. package/dist/fields/LinkField/Documents/documentsData.d.ts +8 -6
  11. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  12. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  13. package/dist/fields/RichTextField/coreExtensions/HardBreak.d.ts +1 -1
  14. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +5 -5
  15. package/dist/fields/RichTextField/coreExtensions/Text.d.ts +1 -1
  16. package/dist/fields/RichTextField/extensions/Bold/BoldModel.d.ts +1 -1
  17. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +7 -7
  18. package/dist/fields/RichTextField/extensions/Italic/ItalicModel.d.ts +1 -1
  19. package/dist/fields/RichTextField/extensions/Label/LabelModel.d.ts +1 -1
  20. package/dist/fields/RichTextField/extensions/Link/Link.d.ts +1 -1
  21. package/dist/fields/RichTextField/extensions/Link/LinkModel.d.ts +1 -1
  22. package/dist/fields/RichTextField/extensions/Table/Table.d.ts +18 -0
  23. package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
  24. package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
  25. package/dist/fields/RichTextField/globalExtensions/TextDirection.d.ts +1 -1
  26. package/dist/fields/RichTextField/models/EditorExtension.d.ts +1 -1
  27. package/dist/fields/RichTextField/models/helpers/NodeUtils.d.ts +1 -1
  28. package/dist/fields/TableField/TableField.d.ts +1 -1
  29. package/dist/index.cjs.js +11 -130
  30. package/dist/index.es.js +10894 -64732
  31. package/dist/slices/utils.d.ts +2 -2
  32. package/package.json +27 -27
@@ -16,12 +16,6 @@ interface SearchDocumentsArgs {
16
16
  * TODO: Remove after all repos have been migrated to storageVerison 7 or above (PBD-1908)
17
17
  */
18
18
  storageVersion?: Repository["storageVersion"];
19
- track: ((args: {
20
- numberOfResults: number;
21
- searchQuery: string;
22
- numberOfWords: number;
23
- timeToGetResultsInMs: number;
24
- }) => void) | undefined;
25
19
  signal: AbortSignal;
26
20
  }
27
21
  export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
@@ -45,11 +39,12 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
45
39
  } | {
46
40
  status: "archived";
47
41
  }) & {
48
- version_id: string;
49
42
  tags: string[];
43
+ version_id: string;
50
44
  last_modified_date: Date;
51
45
  custom_type_label: string;
52
46
  author: {
47
+ id?: string | undefined;
53
48
  first_name?: string | undefined;
54
49
  last_name?: string | undefined;
55
50
  email?: string | undefined;
@@ -77,13 +72,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
77
72
  } | {
78
73
  status: "archived";
79
74
  }) & {
80
- version_id: string;
81
75
  tags: string[];
76
+ version_id: string;
82
77
  last_modified_date: Date;
83
- summary?: string | undefined;
84
78
  preview_image?: string | undefined;
85
79
  uid?: string | undefined;
86
80
  custom_type_id?: string | undefined;
81
+ summary?: string | undefined;
87
82
  author_ids?: string[] | undefined;
88
83
  highlights?: {
89
84
  uid?: string | undefined;
@@ -103,12 +98,6 @@ interface SearchDocumentsQueryOptionsArgs {
103
98
  */
104
99
  storageVersion?: Repository["storageVersion"];
105
100
  config: SearchDocumentsConfig;
106
- track?: (args: {
107
- numberOfResults: number;
108
- searchQuery: string;
109
- numberOfWords: number;
110
- timeToGetResultsInMs: number;
111
- }) => void;
112
101
  }
113
102
  export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
114
103
  results: {
@@ -131,11 +120,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
131
120
  } | {
132
121
  status: "archived";
133
122
  }) & {
134
- version_id: string;
135
123
  tags: string[];
124
+ version_id: string;
136
125
  last_modified_date: Date;
137
126
  custom_type_label: string;
138
127
  author: {
128
+ id?: string | undefined;
139
129
  first_name?: string | undefined;
140
130
  last_name?: string | undefined;
141
131
  email?: string | undefined;
@@ -163,13 +153,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
163
153
  } | {
164
154
  status: "archived";
165
155
  }) & {
166
- version_id: string;
167
156
  tags: string[];
157
+ version_id: string;
168
158
  last_modified_date: Date;
169
- summary?: string | undefined;
170
159
  preview_image?: string | undefined;
171
160
  uid?: string | undefined;
172
161
  custom_type_id?: string | undefined;
162
+ summary?: string | undefined;
173
163
  author_ids?: string[] | undefined;
174
164
  highlights?: {
175
165
  uid?: string | undefined;
@@ -197,11 +187,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
197
187
  } | {
198
188
  status: "archived";
199
189
  }) & {
200
- version_id: string;
201
190
  tags: string[];
191
+ version_id: string;
202
192
  last_modified_date: Date;
203
193
  custom_type_label: string;
204
194
  author: {
195
+ id?: string | undefined;
205
196
  first_name?: string | undefined;
206
197
  last_name?: string | undefined;
207
198
  email?: string | undefined;
@@ -229,13 +220,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
229
220
  } | {
230
221
  status: "archived";
231
222
  }) & {
232
- version_id: string;
233
223
  tags: string[];
224
+ version_id: string;
234
225
  last_modified_date: Date;
235
- summary?: string | undefined;
236
226
  preview_image?: string | undefined;
237
227
  uid?: string | undefined;
238
228
  custom_type_id?: string | undefined;
229
+ summary?: string | undefined;
239
230
  author_ids?: string[] | undefined;
240
231
  highlights?: {
241
232
  uid?: string | undefined;
@@ -253,12 +244,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
253
244
  readonly authors: string[] | undefined;
254
245
  readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
255
246
  readonly locale: string | undefined;
256
- readonly track: ((args: {
257
- numberOfResults: number;
258
- searchQuery: string;
259
- numberOfWords: number;
260
- timeToGetResultsInMs: number;
261
- }) => void) | undefined;
262
247
  readonly storageVersion: {
263
248
  major: number;
264
249
  minor: number;
@@ -285,11 +270,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
285
270
  } | {
286
271
  status: "archived";
287
272
  }) & {
288
- version_id: string;
289
273
  tags: string[];
274
+ version_id: string;
290
275
  last_modified_date: Date;
291
276
  custom_type_label: string;
292
277
  author: {
278
+ id?: string | undefined;
293
279
  first_name?: string | undefined;
294
280
  last_name?: string | undefined;
295
281
  email?: string | undefined;
@@ -317,13 +303,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
317
303
  } | {
318
304
  status: "archived";
319
305
  }) & {
320
- version_id: string;
321
306
  tags: string[];
307
+ version_id: string;
322
308
  last_modified_date: Date;
323
- summary?: string | undefined;
324
309
  preview_image?: string | undefined;
325
310
  uid?: string | undefined;
326
311
  custom_type_id?: string | undefined;
312
+ summary?: string | undefined;
327
313
  author_ids?: string[] | undefined;
328
314
  highlights?: {
329
315
  uid?: string | undefined;
@@ -343,12 +329,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
343
329
  readonly authors: string[] | undefined;
344
330
  readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
345
331
  readonly locale: string | undefined;
346
- readonly track: ((args: {
347
- numberOfResults: number;
348
- searchQuery: string;
349
- numberOfWords: number;
350
- timeToGetResultsInMs: number;
351
- }) => void) | undefined;
352
332
  readonly storageVersion: {
353
333
  major: number;
354
334
  minor: number;
@@ -374,11 +354,12 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
374
354
  } | {
375
355
  status: "archived";
376
356
  }) & {
377
- version_id: string;
378
357
  tags: string[];
358
+ version_id: string;
379
359
  last_modified_date: Date;
380
360
  custom_type_label: string;
381
361
  author: {
362
+ id?: string | undefined;
382
363
  first_name?: string | undefined;
383
364
  last_name?: string | undefined;
384
365
  email?: string | undefined;
@@ -406,13 +387,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
406
387
  } | {
407
388
  status: "archived";
408
389
  }) & {
409
- version_id: string;
410
390
  tags: string[];
391
+ version_id: string;
411
392
  last_modified_date: Date;
412
- summary?: string | undefined;
413
393
  preview_image?: string | undefined;
414
394
  uid?: string | undefined;
415
395
  custom_type_id?: string | undefined;
396
+ summary?: string | undefined;
416
397
  author_ids?: string[] | undefined;
417
398
  highlights?: {
418
399
  uid?: string | undefined;
@@ -88,10 +88,6 @@ export declare function useImageField(props: useImageFieldProps): {
88
88
  }) | undefined;
89
89
  onClear: () => void;
90
90
  uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
91
- kind: string;
92
- id: string;
93
- url: string;
94
- size: number;
95
91
  tags: {
96
92
  name: string;
97
93
  id: string;
@@ -100,10 +96,14 @@ export declare function useImageField(props: useImageFieldProps): {
100
96
  count: number;
101
97
  uploader_id?: string | undefined;
102
98
  }[];
99
+ id: string;
100
+ url: string;
101
+ kind: string;
102
+ size: number;
103
103
  last_modified: number;
104
104
  filename: string;
105
- height?: number | undefined;
106
105
  width?: number | undefined;
106
+ height?: number | undefined;
107
107
  credits?: string | undefined;
108
108
  alt?: string | undefined;
109
109
  notes?: string | undefined;
@@ -4,10 +4,6 @@ interface UseImageFieldImageUploadArgs {
4
4
  }
5
5
  export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadArgs): {
6
6
  uploadImage: import("@tanstack/react-query/build/legacy/types").UseMutateFunction<{
7
- kind: string;
8
- id: string;
9
- url: string;
10
- size: number;
11
7
  tags: {
12
8
  name: string;
13
9
  id: string;
@@ -16,10 +12,14 @@ export declare function useImageFieldImageUpload(args: UseImageFieldImageUploadA
16
12
  count: number;
17
13
  uploader_id?: string | undefined;
18
14
  }[];
15
+ id: string;
16
+ url: string;
17
+ kind: string;
18
+ size: number;
19
19
  last_modified: number;
20
20
  filename: string;
21
- height?: number | undefined;
22
21
  width?: number | undefined;
22
+ height?: number | undefined;
23
23
  credits?: string | undefined;
24
24
  alt?: string | undefined;
25
25
  notes?: string | undefined;
@@ -16,11 +16,12 @@ export declare function useDocuments(params: {
16
16
  } | {
17
17
  status: "archived";
18
18
  }) & {
19
- version_id: string;
20
19
  tags: string[];
20
+ version_id: string;
21
21
  last_modified_date: Date;
22
22
  custom_type_label: string;
23
23
  author: {
24
+ id?: string | undefined;
24
25
  first_name?: string | undefined;
25
26
  last_name?: string | undefined;
26
27
  email?: string | undefined;
@@ -39,13 +40,13 @@ export declare function useDocuments(params: {
39
40
  } | {
40
41
  status: "archived";
41
42
  }) & {
42
- version_id: string;
43
43
  tags: string[];
44
+ version_id: string;
44
45
  last_modified_date: Date;
45
- summary?: string | undefined;
46
46
  preview_image?: string | undefined;
47
47
  uid?: string | undefined;
48
48
  custom_type_id?: string | undefined;
49
+ summary?: string | undefined;
49
50
  author_ids?: string[] | undefined;
50
51
  highlights?: {
51
52
  uid?: string | undefined;
@@ -71,11 +72,12 @@ export declare function useDocuments(params: {
71
72
  } | {
72
73
  status: "archived";
73
74
  }) & {
74
- version_id: string;
75
75
  tags: string[];
76
+ version_id: string;
76
77
  last_modified_date: Date;
77
78
  custom_type_label: string;
78
79
  author: {
80
+ id?: string | undefined;
79
81
  first_name?: string | undefined;
80
82
  last_name?: string | undefined;
81
83
  email?: string | undefined;
@@ -94,13 +96,13 @@ export declare function useDocuments(params: {
94
96
  } | {
95
97
  status: "archived";
96
98
  }) & {
97
- version_id: string;
98
99
  tags: string[];
100
+ version_id: string;
99
101
  last_modified_date: Date;
100
- summary?: string | undefined;
101
102
  preview_image?: string | undefined;
102
103
  uid?: string | undefined;
103
104
  custom_type_id?: string | undefined;
105
+ summary?: string | undefined;
104
106
  author_ids?: string[] | undefined;
105
107
  highlights?: {
106
108
  uid?: string | undefined;
@@ -16,7 +16,7 @@ interface GetFieldIconArgs {
16
16
  selectType?: FieldSelectType;
17
17
  displayTextEnabled?: boolean;
18
18
  }
19
- export declare function getFieldIcon(args: GetFieldIconArgs): "description" | "image" | "link" | "notes" | "public";
19
+ export declare function getFieldIcon(args: GetFieldIconArgs): "image" | "description" | "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: "document" | "web" | "media" | "any" | undefined;
14
+ selectType: "web" | "document" | "media" | "any" | undefined;
15
15
  fieldValue: string;
16
16
  onDisplayTextChange: (displayText: string) => void;
17
17
  onValueChange: (value: string, options?: {
@@ -1,4 +1,4 @@
1
- import type { Node as ProsemirrorNode, Schema } from "prosemirror-model";
1
+ import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
2
2
  declare function splitTextToNodes(schema: Schema, text: string): (textToNode: (strText: string) => ProsemirrorNode) => ProsemirrorNode[];
3
3
  declare const EditorHardBreak: {
4
4
  name: string;
@@ -1,9 +1,9 @@
1
- import type { Node as ProsemirrorNode, Schema } from "prosemirror-model";
1
+ import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
2
2
  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: "em" | "embed" | "strong" | "image" | "list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "o-list-item" | "rtl";
6
+ type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "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: "em" | "strong" | "list-item";
59
+ type: "strong" | "em" | "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: "em" | "embed" | "strong" | "image" | "list-item" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "paragraph" | "preformatted" | "hyperlink" | "o-list-item" | "rtl";
67
+ type: "image" | "embed" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "strong" | "em" | "preformatted" | "hyperlink" | "list-item" | "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: "em" | "strong" | "list-item";
120
+ type: "strong" | "em" | "list-item";
121
121
  })[] | undefined;
122
122
  };
123
123
  } & {
@@ -1,6 +1,6 @@
1
1
  import type { TextBlock } from "@prismicio/types-internal/lib/content";
2
2
  import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
3
- import type { Node as ProsemirrorNode, Schema } from "prosemirror-model";
3
+ import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
4
4
  import type { Direction } from "../globalExtensions/TextDirection";
5
5
  export declare const prismicToProsemirrorMark: {
6
6
  strong: "bold";
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from "@tiptap/core";
2
- import type { Mark as ProsemirrorMark, Schema } from "prosemirror-model";
2
+ import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
3
3
  import { ExtensionType } from "../../models";
4
4
  import type { ExtendedRichTextNodeType } from "../../types";
5
5
  export declare class BoldExtension {
@@ -23,28 +23,28 @@ export declare function useImageView(props: useImageViewProps): {
23
23
  tags: {
24
24
  name: string;
25
25
  id: string;
26
- last_modified: number;
27
26
  created_at: number;
27
+ last_modified: number;
28
28
  count: number;
29
29
  uploader_id?: string | undefined;
30
30
  }[];
31
- size: number;
32
31
  id: string;
33
- kind: string;
34
32
  url: string;
35
- filename: string;
33
+ kind: string;
34
+ size: number;
36
35
  last_modified: number;
37
- notes?: string | undefined;
36
+ filename: string;
38
37
  width?: number | undefined;
39
38
  height?: number | undefined;
40
39
  credits?: string | undefined;
41
40
  alt?: string | undefined;
42
- extension?: string | undefined;
41
+ notes?: string | undefined;
43
42
  uploader_id?: string | undefined;
43
+ extension?: string | undefined;
44
44
  search_highlight?: {
45
- notes?: string | undefined;
46
45
  credits?: string | undefined;
47
46
  alt?: string | undefined;
47
+ notes?: string | undefined;
48
48
  filename?: string | undefined;
49
49
  } | undefined;
50
50
  }, Error, File, unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from "@tiptap/core";
2
- import type { Mark as ProsemirrorMark, Schema } from "prosemirror-model";
2
+ import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
3
3
  import { ExtensionType } from "../../models";
4
4
  import type { ExtendedRichTextNodeType } from "../../types";
5
5
  export declare class ItalicExtension {
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from "@tiptap/core";
2
- import type { Mark as ProsemirrorMark, Schema } from "prosemirror-model";
2
+ import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
3
3
  import { ExtensionType } from "../../models";
4
4
  import type { ExtendedRichTextNodeType } from "../../types";
5
5
  export declare class LabelExtension {
@@ -1,4 +1,4 @@
1
- import type { Attrs } from "prosemirror-model";
1
+ import type { Attrs } from "@tiptap/pm/model";
2
2
  import type { MediaAssetOrExternalImage } from "../../../../core/MediaLibrary/hooks/mediaLibraryData";
3
3
  import { type FileLinkData, type ImageLinkData, type LinkElementData, LinkExtension } from "./LinkModel";
4
4
  export interface LinkProtocolOptions {
@@ -1,5 +1,5 @@
1
1
  import type { Mark } from "@tiptap/core";
2
- import type { Mark as ProsemirrorMark, Schema } from "prosemirror-model";
2
+ import type { Mark as ProsemirrorMark, Schema } from "@tiptap/pm/model";
3
3
  import { ExtensionType } from "../../models";
4
4
  import type { ExtendedRichTextNodeType } from "../../types";
5
5
  export declare class LinkExtension {
@@ -1,2 +1,20 @@
1
1
  import { TableExtension } from "../../models";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ Table: {
5
+ /**
6
+ * Add a row at the end of the table
7
+ * @returns True if the command was successful, otherwise false
8
+ * @example editor.commands.addRowEnd()
9
+ */
10
+ addRowEnd: () => ReturnType;
11
+ /**
12
+ * Add a column at the end of the table
13
+ * @returns True if the command was successful, otherwise false
14
+ * @example editor.commands.addColumnEnd()
15
+ */
16
+ addColumnEnd: () => ReturnType;
17
+ };
18
+ }
19
+ }
2
20
  export declare const Table: TableExtension;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { type NodeViewProps } from "@tiptap/react";
3
+ export declare function TableControlsWrapper({ editor }: NodeViewProps): JSX.Element;
@@ -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("./Link/LinkModel").LinkExtension | import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Label/LabelModel").LabelExtension)[];
15
+ export declare const MarkExtensions: (import("./Bold/BoldModel").BoldExtension | import("./Italic/ItalicModel").ItalicExtension | import("./Link/LinkModel").LinkExtension | 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, };
@@ -1,6 +1,6 @@
1
1
  import type { TextBlock } from "@prismicio/types-internal/lib/content";
2
2
  import { Extension } from "@tiptap/core";
3
- import type { Node as ProsemirrorNode } from "prosemirror-model";
3
+ import type { Node as ProsemirrorNode } from "@tiptap/pm/model";
4
4
  export type Direction = "ltr" | "rtl";
5
5
  export declare const leftToRight: Direction;
6
6
  export declare const rightToLeft: Direction;
@@ -1,6 +1,6 @@
1
1
  import type { EmbedBlock, ImageBlock, TextBlock } from "@prismicio/types-internal/lib/content";
2
2
  import type { Node } from "@tiptap/core";
3
- import type { Node as ProsemirrorNode, Schema } from "prosemirror-model";
3
+ import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
4
4
  import type { BoldExtension } from "../extensions/Bold/BoldModel";
5
5
  import type { Level } from "../extensions/Heading/Heading";
6
6
  import type { ItalicExtension } from "../extensions/Italic/ItalicModel";
@@ -1,4 +1,4 @@
1
- import type { Mark as ProsemirrorMark, Node as ProsemirrorNode } from "prosemirror-model";
1
+ import type { Mark as ProsemirrorMark, Node as ProsemirrorNode } from "@tiptap/pm/model";
2
2
  export declare const NodeUtils: {
3
3
  isHardBreak(node: ProsemirrorNode): boolean;
4
4
  children: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { TableContent } from "@prismicio/types-internal/lib/content";
2
+ import { TableContent } from "@prismicio/types-internal/lib/content";
3
3
  import { type Table } from "@prismicio/types-internal/lib/customtypes";
4
4
  interface Props {
5
5
  id: string;