@prismicio/editor-fields 0.4.63-alpha.jp-upgrade-tiptap.0 → 0.4.64-alpha.fix-simulator-issue.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 (71) hide show
  1. package/dist/EditorConfig.d.ts +12 -3
  2. package/dist/core/APIExplorer/APIExplorer.d.ts +2 -0
  3. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +54 -0
  4. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +2 -0
  5. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +2 -0
  6. package/dist/core/APIExplorer/components/Request/GetByTypeRequest.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/GetByUIDRequest.d.ts +1 -0
  8. package/dist/core/APIExplorer/components/Request/GetRepositoryRequest.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/Request/GetRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/Request/GetSingleRequest.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +4 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +6 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +4 -0
  14. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +5 -0
  15. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +7 -0
  16. package/dist/core/APIExplorer/components/Request/components/index.d.ts +3 -0
  17. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +20 -0
  18. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
  19. package/dist/core/APIExplorer/components/Request/types.d.ts +14 -0
  20. package/dist/core/APIExplorer/index.d.ts +1 -0
  21. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +84 -84
  22. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  23. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +8 -8
  24. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +8 -8
  25. package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
  26. package/dist/core/service/aiSeoMetadata.d.ts +2 -6
  27. package/dist/core/service/customType.d.ts +20 -20
  28. package/dist/core/service/document.d.ts +218 -192
  29. package/dist/core/service/documentSearch.d.ts +57 -76
  30. package/dist/core/service/repository.d.ts +24 -24
  31. package/dist/core/service/role.d.ts +257 -36
  32. package/dist/core/service/user.d.ts +11 -7
  33. package/dist/fields/ImageField/useImageField.d.ts +8 -8
  34. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +8 -8
  35. package/dist/fields/LinkField/Documents/documentsData.d.ts +20 -18
  36. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  37. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  38. package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
  39. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  40. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +8 -8
  41. package/dist/fields/RichTextField/extensions/Table/Table.d.ts +18 -0
  42. package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +10 -0
  43. package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +10 -0
  44. package/dist/fields/RichTextField/extensions/Table/TableCell/index.d.ts +2 -0
  45. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
  46. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
  47. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
  48. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
  49. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +23 -0
  50. package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
  51. package/dist/fields/RichTextField/extensions/Table/TableCell/types.d.ts +17 -0
  52. package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +15 -0
  53. package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
  54. package/dist/fields/RichTextField/extensions/Table/TableEvent.d.ts +31 -0
  55. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +7 -0
  56. package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +9 -0
  57. package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +20 -0
  58. package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +11 -0
  59. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +7 -0
  60. package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +10 -0
  61. package/dist/fields/RichTextField/extensions/Table/menus/TriggerAnchor.d.ts +11 -0
  62. package/dist/fields/RichTextField/extensions/Table/menus/index.d.ts +2 -0
  63. package/dist/fields/RichTextField/extensions/Table/menus/utils.d.ts +23 -0
  64. package/dist/fields/RichTextField/extensions/Table/utils.d.ts +60 -0
  65. package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
  66. package/dist/fields/TableField/TableField.d.ts +1 -1
  67. package/dist/index.cjs.js +92 -111
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.es.js +37996 -43673
  70. package/dist/slices/utils.d.ts +4 -4
  71. package/package.json +7 -6
@@ -38,31 +38,31 @@ export declare function uploadMedia(params: {
38
38
  config: EditorConfig;
39
39
  }): Promise<{
40
40
  id: string;
41
+ size: number;
41
42
  kind: string;
42
43
  url: string;
43
- size: number;
44
44
  tags: {
45
45
  id: string;
46
46
  name: string;
47
- last_modified: number;
48
47
  created_at: number;
48
+ last_modified: number;
49
49
  count: number;
50
50
  uploader_id?: string | undefined;
51
51
  }[];
52
- filename: string;
53
52
  last_modified: number;
53
+ filename: string;
54
+ notes?: string | undefined;
54
55
  height?: number | undefined;
55
56
  width?: number | undefined;
56
- extension?: string | undefined;
57
+ credits?: string | undefined;
57
58
  alt?: string | undefined;
58
59
  uploader_id?: string | undefined;
59
- notes?: string | undefined;
60
- credits?: string | undefined;
60
+ extension?: string | undefined;
61
61
  search_highlight?: {
62
- filename?: string | undefined;
63
- alt?: string | undefined;
64
62
  notes?: string | undefined;
65
63
  credits?: string | undefined;
64
+ alt?: string | undefined;
65
+ filename?: string | undefined;
66
66
  } | undefined;
67
67
  }>;
68
68
  export {};
@@ -1,29 +1,29 @@
1
1
  export declare function useSelectedMedia(): {
2
2
  id: string;
3
+ size: number;
3
4
  kind: string;
4
5
  url: string;
5
- size: number;
6
6
  tags: {
7
7
  id: string;
8
8
  name: string;
9
- last_modified: number;
10
9
  created_at: number;
10
+ last_modified: number;
11
11
  count: number;
12
12
  uploader_id?: string | undefined;
13
13
  }[];
14
- filename: string;
15
14
  last_modified: number;
15
+ filename: string;
16
+ notes?: string | undefined;
16
17
  height?: number | undefined;
17
18
  width?: number | undefined;
18
- extension?: string | undefined;
19
+ credits?: string | undefined;
19
20
  alt?: string | undefined;
20
21
  uploader_id?: string | undefined;
21
- notes?: string | undefined;
22
- credits?: string | undefined;
22
+ extension?: string | undefined;
23
23
  search_highlight?: {
24
- filename?: string | undefined;
25
- alt?: string | undefined;
26
24
  notes?: string | undefined;
27
25
  credits?: string | undefined;
26
+ alt?: string | undefined;
27
+ filename?: string | undefined;
28
28
  } | undefined;
29
29
  }[];
@@ -17,9 +17,9 @@ declare const unsplashImage: import("zod").ZodObject<{
17
17
  description: import("zod").ZodNullable<import("zod").ZodString>;
18
18
  }, "strip", import("zod").ZodTypeAny, {
19
19
  id: string;
20
+ description: string | null;
20
21
  height: number;
21
22
  width: number;
22
- description: string | null;
23
23
  urls: {
24
24
  small: string;
25
25
  full: string;
@@ -27,9 +27,9 @@ declare const unsplashImage: import("zod").ZodObject<{
27
27
  alt_description?: string | undefined;
28
28
  }, {
29
29
  id: string;
30
+ description: string | null;
30
31
  height: number;
31
32
  width: number;
32
- description: string | null;
33
33
  urls: {
34
34
  small: string;
35
35
  full: string;
@@ -55,9 +55,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
55
55
  description: import("zod").ZodNullable<import("zod").ZodString>;
56
56
  }, "strip", import("zod").ZodTypeAny, {
57
57
  id: string;
58
+ description: string | null;
58
59
  height: number;
59
60
  width: number;
60
- description: string | null;
61
61
  urls: {
62
62
  small: string;
63
63
  full: string;
@@ -65,9 +65,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
65
65
  alt_description?: string | undefined;
66
66
  }, {
67
67
  id: string;
68
+ description: string | null;
68
69
  height: number;
69
70
  width: number;
70
- description: string | null;
71
71
  urls: {
72
72
  small: string;
73
73
  full: string;
@@ -77,9 +77,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
77
77
  }, "strip", import("zod").ZodTypeAny, {
78
78
  results: {
79
79
  id: string;
80
+ description: string | null;
80
81
  height: number;
81
82
  width: number;
82
- description: string | null;
83
83
  urls: {
84
84
  small: string;
85
85
  full: string;
@@ -89,9 +89,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
89
89
  }, {
90
90
  results: {
91
91
  id: string;
92
+ description: string | null;
92
93
  height: number;
93
94
  width: number;
94
- description: string | null;
95
95
  urls: {
96
96
  small: string;
97
97
  full: string;
@@ -100,9 +100,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
100
100
  }[];
101
101
  }>, {
102
102
  id: string;
103
+ description: string | null;
103
104
  height: number;
104
105
  width: number;
105
- description: string | null;
106
106
  urls: {
107
107
  small: string;
108
108
  full: string;
@@ -111,9 +111,9 @@ export declare const unsplashSearchApiType: import("zod").ZodEffects<import("zod
111
111
  }[], {
112
112
  results: {
113
113
  id: string;
114
+ description: string | null;
114
115
  height: number;
115
116
  width: number;
116
- description: string | null;
117
117
  urls: {
118
118
  small: string;
119
119
  full: string;
@@ -125,9 +125,9 @@ export type UnplashSearchApi = TypeOf<typeof unsplashSearchApiType>;
125
125
  export type UnsplashImage = TypeOf<typeof unsplashImage>;
126
126
  export declare function useUnsplashSearch(baseUrl: URL, term: string): {
127
127
  id: string;
128
+ description: string | null;
128
129
  height: number;
129
130
  width: number;
130
- description: string | null;
131
131
  urls: {
132
132
  small: string;
133
133
  full: string;
@@ -1,18 +1,14 @@
1
1
  import { Document } from "@prismicio/types-internal/lib/content";
2
2
  import type { StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
3
+ import { type AuthStrategy } from "../../EditorConfig";
3
4
  export declare const metaTitleProperty = "meta_title";
4
5
  export declare const metaDescriptionProperty = "meta_description";
5
6
  export type MetadataType = typeof metaTitleProperty | typeof metaDescriptionProperty;
6
7
  interface GenerateSEOMetadataArgs {
7
8
  pageTextContent: string;
8
9
  contentLocale: string;
9
- config: {
10
- accessKeyId: string;
11
- secretAccessKey: string;
12
- region: string;
13
- };
14
10
  }
15
- export declare function generateSEOMetadata(args: GenerateSEOMetadataArgs): Promise<{
11
+ export declare function generateSEOMetadata(repository: string, baseURL: URL, authStrategy: AuthStrategy, body: GenerateSEOMetadataArgs): Promise<{
16
12
  meta_title: string;
17
13
  meta_description: string;
18
14
  }>;
@@ -8,13 +8,13 @@ declare const CustomType: z.ZodObject<{
8
8
  status: z.ZodBoolean;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
- label: string;
12
11
  status: boolean;
12
+ label: string;
13
13
  repeatable: boolean;
14
14
  }, {
15
15
  id: string;
16
- label: string;
17
16
  status: boolean;
17
+ label: string;
18
18
  repeatable: boolean;
19
19
  }>;
20
20
  export type CustomType = z.TypeOf<typeof CustomType>;
@@ -25,40 +25,40 @@ interface CustomTypesOptionsArgs {
25
25
  }
26
26
  export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
27
27
  id: string;
28
- label: string;
29
28
  status: boolean;
29
+ label: string;
30
30
  repeatable: boolean;
31
31
  }[], Error, {
32
32
  id: string;
33
- label: string;
34
33
  status: boolean;
34
+ label: string;
35
35
  repeatable: boolean;
36
36
  }[], string[]> & {
37
37
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
38
38
  id: string;
39
- label: string;
40
39
  status: boolean;
40
+ label: string;
41
41
  repeatable: boolean;
42
42
  }[]> | undefined;
43
43
  } & {
44
44
  queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
45
45
  id: string;
46
- label: string;
47
46
  status: boolean;
47
+ label: string;
48
48
  repeatable: boolean;
49
49
  }[]>;
50
50
  };
51
51
  export declare function prefetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): void;
52
52
  export declare function fetchCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<{
53
53
  id: string;
54
- label: string;
55
54
  status: boolean;
55
+ label: string;
56
56
  repeatable: boolean;
57
57
  }[]>;
58
58
  export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
59
59
  id: string;
60
- label: string;
61
60
  status: boolean;
61
+ label: string;
62
62
  repeatable: boolean;
63
63
  }[], Error>;
64
64
  interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
@@ -66,8 +66,8 @@ interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
66
66
  }
67
67
  export declare function useCustomType(args: CustomTypeOptionsArgs): {
68
68
  id: string;
69
- label: string;
70
69
  status: boolean;
70
+ label: string;
71
71
  repeatable: boolean;
72
72
  };
73
73
  export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
@@ -154,7 +154,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
154
154
  label?: string | null | undefined;
155
155
  useAsTitle?: boolean | undefined;
156
156
  placeholder?: string | undefined;
157
- select?: "web" | "document" | "media" | null | undefined;
157
+ select?: "document" | "web" | "media" | null | undefined;
158
158
  customtypes?: readonly string[] | undefined;
159
159
  masks?: readonly string[] | undefined;
160
160
  tags?: readonly string[] | undefined;
@@ -329,7 +329,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
329
329
  label?: string | null | undefined;
330
330
  useAsTitle?: boolean | undefined;
331
331
  placeholder?: string | undefined;
332
- select?: "web" | "document" | "media" | null | undefined;
332
+ select?: "document" | "web" | "media" | null | undefined;
333
333
  customtypes?: readonly string[] | undefined;
334
334
  masks?: readonly string[] | undefined;
335
335
  tags?: readonly string[] | undefined;
@@ -504,7 +504,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
504
504
  label?: string | null | undefined;
505
505
  useAsTitle?: boolean | undefined;
506
506
  placeholder?: string | undefined;
507
- select?: "web" | "document" | "media" | null | undefined;
507
+ select?: "document" | "web" | "media" | null | undefined;
508
508
  customtypes?: readonly string[] | undefined;
509
509
  masks?: readonly string[] | undefined;
510
510
  tags?: readonly string[] | undefined;
@@ -689,7 +689,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
689
689
  label?: string | null | undefined;
690
690
  useAsTitle?: boolean | undefined;
691
691
  placeholder?: string | undefined;
692
- select?: "web" | "document" | "media" | null | undefined;
692
+ select?: "document" | "web" | "media" | null | undefined;
693
693
  customtypes?: readonly string[] | undefined;
694
694
  masks?: readonly string[] | undefined;
695
695
  tags?: readonly string[] | undefined;
@@ -864,7 +864,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
864
864
  label?: string | null | undefined;
865
865
  useAsTitle?: boolean | undefined;
866
866
  placeholder?: string | undefined;
867
- select?: "web" | "document" | "media" | null | undefined;
867
+ select?: "document" | "web" | "media" | null | undefined;
868
868
  customtypes?: readonly string[] | undefined;
869
869
  masks?: readonly string[] | undefined;
870
870
  tags?: readonly string[] | undefined;
@@ -1040,7 +1040,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1040
1040
  label?: string | null | undefined;
1041
1041
  useAsTitle?: boolean | undefined;
1042
1042
  placeholder?: string | undefined;
1043
- select?: "web" | "document" | "media" | null | undefined;
1043
+ select?: "document" | "web" | "media" | null | undefined;
1044
1044
  customtypes?: readonly string[] | undefined;
1045
1045
  masks?: readonly string[] | undefined;
1046
1046
  tags?: readonly string[] | undefined;
@@ -1208,7 +1208,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1208
1208
  label?: string | null | undefined;
1209
1209
  useAsTitle?: boolean | undefined;
1210
1210
  placeholder?: string | undefined;
1211
- select?: "web" | "document" | "media" | null | undefined;
1211
+ select?: "document" | "web" | "media" | null | undefined;
1212
1212
  customtypes?: readonly string[] | undefined;
1213
1213
  masks?: readonly string[] | undefined;
1214
1214
  tags?: readonly string[] | undefined;
@@ -1392,7 +1392,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1392
1392
  label?: string | null | undefined;
1393
1393
  useAsTitle?: boolean | undefined;
1394
1394
  placeholder?: string | undefined;
1395
- select?: "web" | "document" | "media" | null | undefined;
1395
+ select?: "document" | "web" | "media" | null | undefined;
1396
1396
  customtypes?: readonly string[] | undefined;
1397
1397
  masks?: readonly string[] | undefined;
1398
1398
  tags?: readonly string[] | undefined;
@@ -1567,7 +1567,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1567
1567
  label?: string | null | undefined;
1568
1568
  useAsTitle?: boolean | undefined;
1569
1569
  placeholder?: string | undefined;
1570
- select?: "web" | "document" | "media" | null | undefined;
1570
+ select?: "document" | "web" | "media" | null | undefined;
1571
1571
  customtypes?: readonly string[] | undefined;
1572
1572
  masks?: readonly string[] | undefined;
1573
1573
  tags?: readonly string[] | undefined;
@@ -1742,7 +1742,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1742
1742
  label?: string | null | undefined;
1743
1743
  useAsTitle?: boolean | undefined;
1744
1744
  placeholder?: string | undefined;
1745
- select?: "web" | "document" | "media" | null | undefined;
1745
+ select?: "document" | "web" | "media" | null | undefined;
1746
1746
  customtypes?: readonly string[] | undefined;
1747
1747
  masks?: readonly string[] | undefined;
1748
1748
  tags?: readonly string[] | undefined;
@@ -1916,7 +1916,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1916
1916
  label?: string | null | undefined;
1917
1917
  useAsTitle?: boolean | undefined;
1918
1918
  placeholder?: string | undefined;
1919
- select?: "web" | "document" | "media" | null | undefined;
1919
+ select?: "document" | "web" | "media" | null | undefined;
1920
1920
  customtypes?: readonly string[] | undefined;
1921
1921
  masks?: readonly string[] | undefined;
1922
1922
  tags?: readonly string[] | undefined;