@prismicio/editor-fields 0.4.72 → 0.4.73

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 (29) hide show
  1. package/dist/EditorConfig.d.ts +2 -10
  2. package/dist/core/APIExplorer/APIExplorer.d.ts +4 -1
  3. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +36 -8
  4. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -1
  5. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +12 -3
  6. package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
  7. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
  8. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +6 -0
  9. package/dist/core/APIExplorer/hooks/useRequestRepository.d.ts +1 -1
  10. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +31 -31
  11. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +3 -3
  12. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +3 -3
  13. package/dist/core/UnsplashLibrary/unsplashData.d.ts +9 -9
  14. package/dist/core/service/customType.d.ts +9 -9
  15. package/dist/core/service/document.d.ts +151 -151
  16. package/dist/core/service/documentSearch.d.ts +40 -40
  17. package/dist/core/service/repository.d.ts +12 -12
  18. package/dist/fields/ImageField/useImageField.d.ts +3 -3
  19. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +3 -3
  20. package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
  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/RichTextField/coreExtensions/ListItem.d.ts +4 -4
  24. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +3 -3
  25. package/dist/index.cjs.js +42 -42
  26. package/dist/index.es.js +12451 -12397
  27. package/dist/slices/utils.d.ts +4 -4
  28. package/package.json +4 -4
  29. package/dist/core/APIExplorer/hooks/useRequestRepositoryCustomTypes.d.ts +0 -6
@@ -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
+ label: string;
10
11
  status: boolean;
11
12
  id: string;
12
- label: string;
13
13
  repeatable: boolean;
14
14
  }, {
15
+ label: string;
15
16
  status: boolean;
16
17
  id: string;
17
- label: string;
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
+ label: string;
27
28
  status: boolean;
28
29
  id: string;
29
- label: string;
30
30
  repeatable: boolean;
31
31
  }[], Error, {
32
+ label: string;
32
33
  status: boolean;
33
34
  id: string;
34
- label: string;
35
35
  repeatable: boolean;
36
36
  }[], string[]> & {
37
37
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
38
+ label: string;
38
39
  status: boolean;
39
40
  id: string;
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
+ label: string;
45
46
  status: boolean;
46
47
  id: string;
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
+ label: string;
53
54
  status: boolean;
54
55
  id: string;
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
+ label: string;
59
60
  status: boolean;
60
61
  id: string;
61
- label: string;
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
+ label: string;
68
69
  status: boolean;
69
70
  id: string;
70
- label: string;
71
71
  repeatable: boolean;
72
72
  };
73
73
  export declare function invalidateCustomTypes(queryClient: QueryClient, args: CustomTypesOptionsArgs): Promise<void>;