@prismicio/editor-fields 0.4.75 → 0.4.76-alpha.tree-view-component.1

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 (37) hide show
  1. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +38 -14
  2. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +10 -0
  3. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigPathInput.d.ts +9 -0
  4. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +5 -0
  5. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/getFilterSnippet.d.ts +2 -0
  6. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/index.d.ts +3 -0
  7. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/types.d.ts +34 -0
  8. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -1
  9. package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +3 -1
  11. package/dist/core/APIExplorer/components/Request/index.d.ts +1 -1
  12. package/dist/core/APIExplorer/components/Request/types.d.ts +1 -1
  13. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
  14. package/dist/core/APIExplorer/utils.d.ts +3 -2
  15. package/dist/core/DeferredBarChart.d.ts +3 -0
  16. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +93 -93
  17. package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
  18. package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +9 -9
  19. package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +9 -9
  20. package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
  21. package/dist/core/service/customType.d.ts +20 -20
  22. package/dist/core/service/document.d.ts +188 -188
  23. package/dist/core/service/documentSearch.d.ts +55 -55
  24. package/dist/core/service/repository.d.ts +20 -12
  25. package/dist/core/service/user.d.ts +5 -5
  26. package/dist/fields/ImageField/useImageField.d.ts +9 -9
  27. package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +9 -9
  28. package/dist/fields/IntegrationField/integrationData.d.ts +5 -5
  29. package/dist/fields/LinkField/Documents/documentsData.d.ts +18 -18
  30. package/dist/fields/LinkField/LinkField.d.ts +1 -1
  31. package/dist/fields/LinkField/useLinkField.d.ts +1 -1
  32. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
  33. package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +9 -9
  34. package/dist/index.cjs.js +90 -90
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.es.js +21323 -20616
  37. package/package.json +4 -4
@@ -16,19 +16,19 @@ export declare function useDocuments(params: {
16
16
  } | {
17
17
  status: "archived";
18
18
  }) & {
19
- tags: string[];
20
19
  version_id: string;
20
+ tags: string[];
21
21
  last_modified_date: Date;
22
22
  custom_type_label: string;
23
23
  author: {
24
+ email?: string | undefined;
24
25
  id?: string | undefined;
25
26
  first_name?: string | undefined;
26
27
  last_name?: string | undefined;
27
- email?: string | undefined;
28
28
  uploadedAvatar?: string | undefined;
29
29
  };
30
- preview_image?: string | undefined;
31
30
  uid?: string | undefined;
31
+ preview_image?: string | undefined;
32
32
  preview_summary?: string | undefined;
33
33
  }) | (({
34
34
  status: "unclassified";
@@ -40,27 +40,27 @@ export declare function useDocuments(params: {
40
40
  } | {
41
41
  status: "archived";
42
42
  }) & {
43
- tags: string[];
44
43
  version_id: string;
44
+ tags: string[];
45
45
  last_modified_date: Date;
46
- custom_type_id?: string | undefined;
47
- preview_image?: string | undefined;
48
- uid?: string | undefined;
49
46
  summary?: string | undefined;
47
+ uid?: string | undefined;
48
+ preview_image?: string | undefined;
49
+ custom_type_id?: string | undefined;
50
50
  author_ids?: string[] | undefined;
51
51
  highlights?: {
52
52
  uid?: string | undefined;
53
53
  } | undefined;
54
54
  }))[];
55
- id: string;
56
55
  title: string;
57
- custom_type_id: string;
58
- group_lang_id: string;
59
56
  language: {
60
57
  isMaster?: boolean | undefined;
61
58
  id: string;
62
59
  label: string;
63
60
  };
61
+ id: string;
62
+ custom_type_id: string;
63
+ group_lang_id: string;
64
64
  } | {
65
65
  versions: ((({
66
66
  status: "unclassified";
@@ -72,19 +72,19 @@ export declare function useDocuments(params: {
72
72
  } | {
73
73
  status: "archived";
74
74
  }) & {
75
- tags: string[];
76
75
  version_id: string;
76
+ tags: string[];
77
77
  last_modified_date: Date;
78
78
  custom_type_label: string;
79
79
  author: {
80
+ email?: string | undefined;
80
81
  id?: string | undefined;
81
82
  first_name?: string | undefined;
82
83
  last_name?: string | undefined;
83
- email?: string | undefined;
84
84
  uploadedAvatar?: string | undefined;
85
85
  };
86
- preview_image?: string | undefined;
87
86
  uid?: string | undefined;
87
+ preview_image?: string | undefined;
88
88
  preview_summary?: string | undefined;
89
89
  }) | (({
90
90
  status: "unclassified";
@@ -96,20 +96,20 @@ export declare function useDocuments(params: {
96
96
  } | {
97
97
  status: "archived";
98
98
  }) & {
99
- tags: string[];
100
99
  version_id: string;
100
+ tags: string[];
101
101
  last_modified_date: Date;
102
- custom_type_id?: string | undefined;
103
- preview_image?: string | undefined;
104
- uid?: string | undefined;
105
102
  summary?: string | undefined;
103
+ uid?: string | undefined;
104
+ preview_image?: string | undefined;
105
+ custom_type_id?: string | undefined;
106
106
  author_ids?: string[] | undefined;
107
107
  highlights?: {
108
108
  uid?: string | undefined;
109
109
  } | undefined;
110
110
  }))[];
111
- id: string;
112
111
  title: string;
112
+ id: string;
113
113
  custom_type_id: string;
114
114
  group_lang_id: string;
115
115
  locale_id?: 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): "image" | "notes" | "description" | "public" | "link";
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" | "any" | "web" | "media" | undefined;
15
15
  fieldValue: string;
16
16
  onDisplayTextChange: (displayText: string) => void;
17
17
  onValueChange: (value: string, options?: {
@@ -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: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
6
+ type: "em" | "embed" | "strong" | "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
7
7
  content: {
8
8
  text: string;
9
9
  } & {
@@ -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: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
67
+ type: "em" | "embed" | "strong" | "image" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
68
68
  content: {
69
69
  text: string;
70
70
  } & {
@@ -20,32 +20,32 @@ 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
- id: string;
24
- kind: string;
25
23
  url: string;
24
+ id: string;
26
25
  size: number;
26
+ kind: string;
27
27
  tags: {
28
28
  id: string;
29
29
  name: string;
30
- last_modified: number;
31
30
  created_at: number;
31
+ last_modified: number;
32
32
  count: number;
33
33
  uploader_id?: string | undefined;
34
34
  }[];
35
- filename: string;
36
35
  last_modified: number;
36
+ filename: string;
37
37
  height?: number | undefined;
38
+ notes?: string | undefined;
38
39
  width?: number | undefined;
39
- extension?: string | undefined;
40
+ credits?: string | undefined;
40
41
  alt?: string | undefined;
41
42
  uploader_id?: string | undefined;
42
- notes?: string | undefined;
43
- credits?: string | undefined;
43
+ extension?: string | undefined;
44
44
  search_highlight?: {
45
- filename?: string | undefined;
46
- alt?: string | undefined;
47
45
  notes?: string | undefined;
48
46
  credits?: string | undefined;
47
+ alt?: string | undefined;
48
+ filename?: string | undefined;
49
49
  } | undefined;
50
50
  }, Error, File, unknown>;
51
51
  isUploadingImage: boolean;