@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.
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { LazyCodeBlock } from "@prismicio/editor-ui";
2
+ import { type ComponentProps } from "react";
3
+ export declare function DeferredCodeBlock(props: ComponentProps<typeof LazyCodeBlock>): JSX.Element;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import type { MediaAsset } from "../../../../hooks/mediaLibraryData";
2
+ import type { Tag } from "../../../../hooks/tagData";
3
+ export declare function getCommonMediaTags(medias: MediaAsset[]): Tag[];
@@ -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, useOpenSearch: boolean, page: number, cursor?: string): Promise<{
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
  }