@prismicio/editor-fields 0.4.74 → 0.4.75

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 (30) hide show
  1. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +10 -10
  2. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -1
  3. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +6 -7
  4. package/dist/core/APIExplorer/constants.d.ts +1 -0
  5. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
  6. package/dist/core/APIExplorer/utils.d.ts +3 -0
  7. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +76 -76
  8. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +8 -8
  9. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +8 -8
  10. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  11. package/dist/core/document.d.ts +1 -1
  12. package/dist/core/service/customType.d.ts +153 -32
  13. package/dist/core/service/document.d.ts +146 -146
  14. package/dist/core/service/documentSearch.d.ts +37 -37
  15. package/dist/core/service/onboarding.d.ts +3 -3
  16. package/dist/core/service/repository.d.ts +6 -6
  17. package/dist/core/service/role.d.ts +64 -64
  18. package/dist/core/service/user.d.ts +8 -8
  19. package/dist/fields/ImageField/useImageField.d.ts +8 -8
  20. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +8 -8
  21. package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
  22. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  23. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  24. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  25. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +8 -8
  26. package/dist/index.cjs.js +50 -61
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.es.js +15510 -15410
  29. package/dist/slices/utils.d.ts +5 -5
  30. package/package.json +5 -5
@@ -7,14 +7,14 @@ declare const CustomType: z.ZodObject<{
7
7
  repeatable: z.ZodBoolean;
8
8
  status: z.ZodBoolean;
9
9
  }, "strip", z.ZodTypeAny, {
10
- status: boolean;
11
10
  id: string;
12
11
  label: string;
12
+ status: boolean;
13
13
  repeatable: boolean;
14
14
  }, {
15
- status: boolean;
16
15
  id: string;
17
16
  label: string;
17
+ status: boolean;
18
18
  repeatable: boolean;
19
19
  }>;
20
20
  export type CustomType = z.TypeOf<typeof CustomType>;
@@ -24,50 +24,50 @@ interface CustomTypesOptionsArgs {
24
24
  authStrategy: AuthStrategy;
25
25
  }
26
26
  export declare function getCustomTypesOptions(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
27
- status: boolean;
28
27
  id: string;
29
28
  label: string;
29
+ status: boolean;
30
30
  repeatable: boolean;
31
31
  }[], Error, {
32
- status: boolean;
33
32
  id: string;
34
33
  label: string;
34
+ status: boolean;
35
35
  repeatable: boolean;
36
36
  }[], string[]> & {
37
37
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
38
- status: boolean;
39
38
  id: string;
40
39
  label: string;
40
+ status: boolean;
41
41
  repeatable: boolean;
42
42
  }[]> | undefined;
43
43
  } & {
44
44
  queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
45
- status: boolean;
46
45
  id: string;
47
46
  label: string;
47
+ status: boolean;
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
- status: boolean;
54
53
  id: string;
55
54
  label: string;
55
+ status: boolean;
56
56
  repeatable: boolean;
57
57
  }[]>;
58
58
  export declare function useCustomTypes(args: CustomTypesOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
59
- status: boolean;
60
59
  id: string;
61
60
  label: string;
61
+ status: boolean;
62
62
  repeatable: boolean;
63
63
  }[], Error>;
64
64
  interface CustomTypeOptionsArgs extends CustomTypesOptionsArgs {
65
65
  id: string;
66
66
  }
67
67
  export declare function useCustomType(args: CustomTypeOptionsArgs): {
68
- status: boolean;
69
68
  id: string;
70
69
  label: string;
70
+ status: boolean;
71
71
  repeatable: boolean;
72
72
  };
73
73
  export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;
@@ -154,8 +154,19 @@ 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?: "media" | "document" | "web" | null | undefined;
158
- customtypes?: readonly string[] | undefined;
157
+ select?: "web" | "document" | "media" | null | undefined;
158
+ customtypes?: readonly (string | ({
159
+ id: string;
160
+ } & {
161
+ fields?: readonly (string | {
162
+ id: string;
163
+ customtypes: readonly (string | ({
164
+ id: string;
165
+ } & {
166
+ fields?: readonly string[] | undefined;
167
+ }))[];
168
+ })[] | undefined;
169
+ }))[] | undefined;
159
170
  masks?: readonly string[] | undefined;
160
171
  tags?: readonly string[] | undefined;
161
172
  allowTargetBlank?: boolean | undefined;
@@ -329,8 +340,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
329
340
  label?: string | null | undefined;
330
341
  useAsTitle?: boolean | undefined;
331
342
  placeholder?: string | undefined;
332
- select?: "media" | "document" | "web" | null | undefined;
333
- customtypes?: readonly string[] | undefined;
343
+ select?: "web" | "document" | "media" | null | undefined;
344
+ customtypes?: readonly (string | ({
345
+ id: string;
346
+ } & {
347
+ fields?: readonly (string | {
348
+ id: string;
349
+ customtypes: readonly (string | ({
350
+ id: string;
351
+ } & {
352
+ fields?: readonly string[] | undefined;
353
+ }))[];
354
+ })[] | undefined;
355
+ }))[] | undefined;
334
356
  masks?: readonly string[] | undefined;
335
357
  tags?: readonly string[] | undefined;
336
358
  allowTargetBlank?: boolean | undefined;
@@ -504,8 +526,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
504
526
  label?: string | null | undefined;
505
527
  useAsTitle?: boolean | undefined;
506
528
  placeholder?: string | undefined;
507
- select?: "media" | "document" | "web" | null | undefined;
508
- customtypes?: readonly string[] | undefined;
529
+ select?: "web" | "document" | "media" | null | undefined;
530
+ customtypes?: readonly (string | ({
531
+ id: string;
532
+ } & {
533
+ fields?: readonly (string | {
534
+ id: string;
535
+ customtypes: readonly (string | ({
536
+ id: string;
537
+ } & {
538
+ fields?: readonly string[] | undefined;
539
+ }))[];
540
+ })[] | undefined;
541
+ }))[] | undefined;
509
542
  masks?: readonly string[] | undefined;
510
543
  tags?: readonly string[] | undefined;
511
544
  allowTargetBlank?: boolean | undefined;
@@ -599,7 +632,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
599
632
  } | undefined;
600
633
  } | undefined;
601
634
  }) | ({
602
- type: "Choice" | "Slices";
635
+ type: "Slices" | "Choice";
603
636
  } & {
604
637
  fieldset?: string | null | undefined;
605
638
  config?: {
@@ -689,8 +722,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
689
722
  label?: string | null | undefined;
690
723
  useAsTitle?: boolean | undefined;
691
724
  placeholder?: string | undefined;
692
- select?: "media" | "document" | "web" | null | undefined;
693
- customtypes?: readonly string[] | undefined;
725
+ select?: "web" | "document" | "media" | null | undefined;
726
+ customtypes?: readonly (string | ({
727
+ id: string;
728
+ } & {
729
+ fields?: readonly (string | {
730
+ id: string;
731
+ customtypes: readonly (string | ({
732
+ id: string;
733
+ } & {
734
+ fields?: readonly string[] | undefined;
735
+ }))[];
736
+ })[] | undefined;
737
+ }))[] | undefined;
694
738
  masks?: readonly string[] | undefined;
695
739
  tags?: readonly string[] | undefined;
696
740
  allowTargetBlank?: boolean | undefined;
@@ -864,8 +908,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
864
908
  label?: string | null | undefined;
865
909
  useAsTitle?: boolean | undefined;
866
910
  placeholder?: string | undefined;
867
- select?: "media" | "document" | "web" | null | undefined;
868
- customtypes?: readonly string[] | undefined;
911
+ select?: "web" | "document" | "media" | null | undefined;
912
+ customtypes?: readonly (string | ({
913
+ id: string;
914
+ } & {
915
+ fields?: readonly (string | {
916
+ id: string;
917
+ customtypes: readonly (string | ({
918
+ id: string;
919
+ } & {
920
+ fields?: readonly string[] | undefined;
921
+ }))[];
922
+ })[] | undefined;
923
+ }))[] | undefined;
869
924
  masks?: readonly string[] | undefined;
870
925
  tags?: readonly string[] | undefined;
871
926
  allowTargetBlank?: boolean | undefined;
@@ -1040,8 +1095,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1040
1095
  label?: string | null | undefined;
1041
1096
  useAsTitle?: boolean | undefined;
1042
1097
  placeholder?: string | undefined;
1043
- select?: "media" | "document" | "web" | null | undefined;
1044
- customtypes?: readonly string[] | undefined;
1098
+ select?: "web" | "document" | "media" | null | undefined;
1099
+ customtypes?: readonly (string | ({
1100
+ id: string;
1101
+ } & {
1102
+ fields?: readonly (string | {
1103
+ id: string;
1104
+ customtypes: readonly (string | ({
1105
+ id: string;
1106
+ } & {
1107
+ fields?: readonly string[] | undefined;
1108
+ }))[];
1109
+ })[] | undefined;
1110
+ }))[] | undefined;
1045
1111
  masks?: readonly string[] | undefined;
1046
1112
  tags?: readonly string[] | undefined;
1047
1113
  allowTargetBlank?: boolean | undefined;
@@ -1208,8 +1274,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1208
1274
  label?: string | null | undefined;
1209
1275
  useAsTitle?: boolean | undefined;
1210
1276
  placeholder?: string | undefined;
1211
- select?: "media" | "document" | "web" | null | undefined;
1212
- customtypes?: readonly string[] | undefined;
1277
+ select?: "web" | "document" | "media" | null | undefined;
1278
+ customtypes?: readonly (string | ({
1279
+ id: string;
1280
+ } & {
1281
+ fields?: readonly (string | {
1282
+ id: string;
1283
+ customtypes: readonly (string | ({
1284
+ id: string;
1285
+ } & {
1286
+ fields?: readonly string[] | undefined;
1287
+ }))[];
1288
+ })[] | undefined;
1289
+ }))[] | undefined;
1213
1290
  masks?: readonly string[] | undefined;
1214
1291
  tags?: readonly string[] | undefined;
1215
1292
  allowTargetBlank?: boolean | undefined;
@@ -1392,8 +1469,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1392
1469
  label?: string | null | undefined;
1393
1470
  useAsTitle?: boolean | undefined;
1394
1471
  placeholder?: string | undefined;
1395
- select?: "media" | "document" | "web" | null | undefined;
1396
- customtypes?: readonly string[] | undefined;
1472
+ select?: "web" | "document" | "media" | null | undefined;
1473
+ customtypes?: readonly (string | ({
1474
+ id: string;
1475
+ } & {
1476
+ fields?: readonly (string | {
1477
+ id: string;
1478
+ customtypes: readonly (string | ({
1479
+ id: string;
1480
+ } & {
1481
+ fields?: readonly string[] | undefined;
1482
+ }))[];
1483
+ })[] | undefined;
1484
+ }))[] | undefined;
1397
1485
  masks?: readonly string[] | undefined;
1398
1486
  tags?: readonly string[] | undefined;
1399
1487
  allowTargetBlank?: boolean | undefined;
@@ -1567,8 +1655,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1567
1655
  label?: string | null | undefined;
1568
1656
  useAsTitle?: boolean | undefined;
1569
1657
  placeholder?: string | undefined;
1570
- select?: "media" | "document" | "web" | null | undefined;
1571
- customtypes?: readonly string[] | undefined;
1658
+ select?: "web" | "document" | "media" | null | undefined;
1659
+ customtypes?: readonly (string | ({
1660
+ id: string;
1661
+ } & {
1662
+ fields?: readonly (string | {
1663
+ id: string;
1664
+ customtypes: readonly (string | ({
1665
+ id: string;
1666
+ } & {
1667
+ fields?: readonly string[] | undefined;
1668
+ }))[];
1669
+ })[] | undefined;
1670
+ }))[] | undefined;
1572
1671
  masks?: readonly string[] | undefined;
1573
1672
  tags?: readonly string[] | undefined;
1574
1673
  allowTargetBlank?: boolean | undefined;
@@ -1742,8 +1841,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1742
1841
  label?: string | null | undefined;
1743
1842
  useAsTitle?: boolean | undefined;
1744
1843
  placeholder?: string | undefined;
1745
- select?: "media" | "document" | "web" | null | undefined;
1746
- customtypes?: readonly string[] | undefined;
1844
+ select?: "web" | "document" | "media" | null | undefined;
1845
+ customtypes?: readonly (string | ({
1846
+ id: string;
1847
+ } & {
1848
+ fields?: readonly (string | {
1849
+ id: string;
1850
+ customtypes: readonly (string | ({
1851
+ id: string;
1852
+ } & {
1853
+ fields?: readonly string[] | undefined;
1854
+ }))[];
1855
+ })[] | undefined;
1856
+ }))[] | undefined;
1747
1857
  masks?: readonly string[] | undefined;
1748
1858
  tags?: readonly string[] | undefined;
1749
1859
  allowTargetBlank?: boolean | undefined;
@@ -1916,8 +2026,19 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
1916
2026
  label?: string | null | undefined;
1917
2027
  useAsTitle?: boolean | undefined;
1918
2028
  placeholder?: string | undefined;
1919
- select?: "media" | "document" | "web" | null | undefined;
1920
- customtypes?: readonly string[] | undefined;
2029
+ select?: "web" | "document" | "media" | null | undefined;
2030
+ customtypes?: readonly (string | ({
2031
+ id: string;
2032
+ } & {
2033
+ fields?: readonly (string | {
2034
+ id: string;
2035
+ customtypes: readonly (string | ({
2036
+ id: string;
2037
+ } & {
2038
+ fields?: readonly string[] | undefined;
2039
+ }))[];
2040
+ })[] | undefined;
2041
+ }))[] | undefined;
1921
2042
  masks?: readonly string[] | undefined;
1922
2043
  tags?: readonly string[] | undefined;
1923
2044
  allowTargetBlank?: boolean | undefined;