@prismicio/editor-fields 0.4.45 → 0.4.47
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 +0 -4
- package/dist/core/DeferredCodeBlock.d.ts +3 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +0 -2
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SidepaneMetadataTags.utils.d.ts +3 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +1 -2
- package/dist/core/service/document.d.ts +1585 -0
- package/dist/index.cjs.js +27 -26
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +8760 -8774
- package/package.json +4 -4
package/dist/EditorConfig.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ type MediaLibrary = {
|
|
|
13
13
|
mediaLibrary: true;
|
|
14
14
|
assetsApiBaseUrl: URL;
|
|
15
15
|
repository: string;
|
|
16
|
-
useOpenSearch: boolean;
|
|
17
|
-
mediaLibraryTagsEnabled: boolean;
|
|
18
16
|
};
|
|
19
17
|
type UIDField = {
|
|
20
18
|
uidField?: never;
|
|
@@ -53,7 +51,6 @@ interface LayoutConfig {
|
|
|
53
51
|
}
|
|
54
52
|
interface OnAnalyticsEvent {
|
|
55
53
|
(event: "Media Library Search", args: {
|
|
56
|
-
useOpenSearch: "1" | "0";
|
|
57
54
|
assetType: MediaAssetType;
|
|
58
55
|
mode: "browse" | "select";
|
|
59
56
|
searchQuery: string;
|
|
@@ -63,7 +60,6 @@ interface OnAnalyticsEvent {
|
|
|
63
60
|
tags: string;
|
|
64
61
|
}): void;
|
|
65
62
|
(event: "Media Added To Page", args: {
|
|
66
|
-
useOpenSearch: "1" | "0";
|
|
67
63
|
assetType: MediaAssetType;
|
|
68
64
|
searchQuery: string;
|
|
69
65
|
numberOfWords: string;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type MediaAsset } from "../../../../hooks/mediaLibraryData";
|
|
3
|
-
import { type Tag } from "../../../../hooks/tagData";
|
|
4
3
|
interface MultiMediaMetadataTagsProps {
|
|
5
4
|
selectedMedia: MediaAsset[];
|
|
6
5
|
}
|
|
7
6
|
export declare function MultiMediaMetadataTags(props: MultiMediaMetadataTagsProps): JSX.Element;
|
|
8
|
-
export declare function getCommonMediaTags(medias: MediaAsset[]): Tag[];
|
|
9
7
|
export {};
|
|
@@ -291,7 +291,7 @@ export interface ExternalImage {
|
|
|
291
291
|
alt?: string;
|
|
292
292
|
}
|
|
293
293
|
export type MediaAssetOrExternalImage = MediaAsset | ExternalImage;
|
|
294
|
-
export declare function searchMedia(baseUrl: URL | undefined, repository: string, authStrategy: AuthStrategy, assetType: MediaAssetType, keyword: string, tags: string,
|
|
294
|
+
export declare function searchMedia(baseUrl: URL | undefined, repository: string, authStrategy: AuthStrategy, assetType: MediaAssetType, keyword: string, tags: string, page: number, cursor?: string): Promise<{
|
|
295
295
|
time: string;
|
|
296
296
|
assetType: MediaAssetType;
|
|
297
297
|
keyword: string;
|
|
@@ -456,7 +456,6 @@ export interface SearchMediaArgs {
|
|
|
456
456
|
assetType: MediaAssetType;
|
|
457
457
|
keyword: string;
|
|
458
458
|
tagIds: string[];
|
|
459
|
-
useOpenSearch: boolean;
|
|
460
459
|
page: number;
|
|
461
460
|
cursor?: string;
|
|
462
461
|
}
|