@prismicio/editor-fields 0.4.72 → 0.4.74
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.
- package/dist/EditorConfig.d.ts +2 -10
- package/dist/core/APIExplorer/APIExplorer.d.ts +4 -1
- package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +40 -12
- package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +12 -3
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/index.d.ts +1 -0
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +6 -0
- package/dist/core/APIExplorer/hooks/useRequestRepository.d.ts +1 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +93 -93
- package/dist/core/MediaLibrary/hooks/tagData.d.ts +3 -3
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +9 -9
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +9 -9
- package/dist/core/service/customType.d.ts +12 -12
- package/dist/core/service/document.d.ts +201 -201
- package/dist/core/service/documentSearch.d.ts +47 -47
- package/dist/core/service/onboarding.d.ts +3 -3
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +64 -64
- package/dist/core/service/user.d.ts +8 -8
- package/dist/fields/ImageField/useImageField.d.ts +9 -9
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +9 -9
- package/dist/fields/LinkField/Documents/documentsData.d.ts +16 -16
- package/dist/fields/LinkField/LinkField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +4 -4
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +9 -9
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/TableHandlesPlugin.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/events.d.ts +19 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/TableHandles/utils.d.ts +23 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/plugins/index.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableControlsWrapper.d.ts +3 -0
- package/dist/fields/RichTextField/extensions/Table/TableView.d.ts +5 -8
- package/dist/fields/RichTextField/extensions/Table/menus/PassthroughTrigger.d.ts +12 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableColumnMenu.d.ts +6 -4
- package/dist/fields/RichTextField/extensions/Table/menus/TableRowMenu.d.ts +6 -4
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginDef.d.ts +8 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginView.d.ts +34 -0
- package/dist/fields/RichTextField/extensions/Table/plugins/TableHandles/TableHandlesPluginViewClass.d.ts +34 -0
- package/dist/index.cjs.js +42 -42
- package/dist/index.es.js +12885 -12780
- package/dist/slices/utils.d.ts +1 -1
- package/package.json +4 -4
- package/dist/core/APIExplorer/hooks/useRequestRepositoryCustomTypes.d.ts +0 -6
- /package/dist/fields/RichTextField/extensions/Table/{plugins/tableHandles/tableHandlesPluginView.d.ts → TableCell/plugins/TableHandles/TableHandlesPluginView.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles/tableHandlesPlugin.d.ts → TableHandles/TableHandlesPlugin.d.ts} +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/index.d.ts +0 -0
- /package/dist/fields/RichTextField/extensions/Table/plugins/{tableHandles → TableHandles}/utils.d.ts +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
export declare function useSelectedMedia(): {
|
|
2
2
|
id: string;
|
|
3
|
+
size: number;
|
|
3
4
|
url: string;
|
|
4
5
|
kind: string;
|
|
5
|
-
|
|
6
|
+
filename: string;
|
|
7
|
+
last_modified: number;
|
|
6
8
|
tags: {
|
|
7
9
|
id: string;
|
|
8
10
|
name: string;
|
|
9
|
-
created_at: number;
|
|
10
11
|
last_modified: number;
|
|
12
|
+
created_at: number;
|
|
11
13
|
count: number;
|
|
12
14
|
uploader_id?: string | undefined;
|
|
13
15
|
}[];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
notes?: string | undefined;
|
|
17
|
+
extension?: string | undefined;
|
|
16
18
|
width?: number | undefined;
|
|
17
19
|
height?: number | undefined;
|
|
18
|
-
credits?: string | undefined;
|
|
19
20
|
alt?: string | undefined;
|
|
20
|
-
notes?: string | undefined;
|
|
21
21
|
uploader_id?: string | undefined;
|
|
22
|
-
|
|
22
|
+
credits?: string | undefined;
|
|
23
23
|
search_highlight?: {
|
|
24
|
-
credits?: string | undefined;
|
|
25
|
-
alt?: string | undefined;
|
|
26
24
|
notes?: string | undefined;
|
|
27
25
|
filename?: string | undefined;
|
|
26
|
+
alt?: string | undefined;
|
|
27
|
+
credits?: string | undefined;
|
|
28
28
|
} | undefined;
|
|
29
29
|
}[];
|
|
@@ -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?: "
|
|
157
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
332
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
507
|
+
select?: "media" | "document" | "web" | null | undefined;
|
|
508
508
|
customtypes?: readonly string[] | undefined;
|
|
509
509
|
masks?: readonly string[] | undefined;
|
|
510
510
|
tags?: readonly string[] | undefined;
|
|
@@ -599,7 +599,7 @@ export declare function useStaticCustomType(args: CustomTypeOptionsArgs): import
|
|
|
599
599
|
} | undefined;
|
|
600
600
|
} | undefined;
|
|
601
601
|
}) | ({
|
|
602
|
-
type: "
|
|
602
|
+
type: "Choice" | "Slices";
|
|
603
603
|
} & {
|
|
604
604
|
fieldset?: string | null | undefined;
|
|
605
605
|
config?: {
|
|
@@ -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?: "
|
|
692
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
867
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1043
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1211
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1395
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1570
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1745
|
+
select?: "media" | "document" | "web" | 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?: "
|
|
1919
|
+
select?: "media" | "document" | "web" | null | undefined;
|
|
1920
1920
|
customtypes?: readonly string[] | undefined;
|
|
1921
1921
|
masks?: readonly string[] | undefined;
|
|
1922
1922
|
tags?: readonly string[] | undefined;
|