@prismicio/editor-fields 0.4.59 → 0.4.60

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.
@@ -16,7 +16,6 @@ interface SearchDocumentsArgs {
16
16
  * TODO: Remove after all repos have been migrated to storageVerison 7 or above (PBD-1908)
17
17
  */
18
18
  storageVersion?: Repository["storageVersion"];
19
- searchDocumentsWithInterestingVersions: boolean;
20
19
  track: ((args: {
21
20
  numberOfResults: number;
22
21
  searchQuery: string;
@@ -245,7 +244,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
245
244
  readonly authors: string[] | undefined;
246
245
  readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
247
246
  readonly locale: string | undefined;
248
- readonly searchDocumentsWithInterestingVersions: boolean;
249
247
  readonly track: ((args: {
250
248
  numberOfResults: number;
251
249
  searchQuery: string;
@@ -333,7 +331,6 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
333
331
  readonly authors: string[] | undefined;
334
332
  readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
335
333
  readonly locale: string | undefined;
336
- readonly searchDocumentsWithInterestingVersions: boolean;
337
334
  readonly track: ((args: {
338
335
  numberOfResults: number;
339
336
  searchQuery: string;
@@ -411,5 +408,5 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
411
408
  };
412
409
  type SearchDocumentsConfig = Pick<EditorConfig & {
413
410
  searchDocuments: true;
414
- }, "authStrategy" | "coreApiBaseUrl" | "documentSearchBaseUrl" | "repository" | "searchDocuments" | "searchDocumentsWithInterestingVersions">;
411
+ }, "authStrategy" | "coreApiBaseUrl" | "documentSearchBaseUrl" | "repository" | "searchDocuments">;
415
412
  export {};
@@ -102,7 +102,7 @@ export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@
102
102
  customTypes: string[];
103
103
  rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
104
104
  rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
105
- }[], string[]> & {
105
+ }[], (string | GetTeamSpacesArgs)[]> & {
106
106
  initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
107
107
  results: {
108
108
  name: string;
@@ -113,7 +113,7 @@ export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@
113
113
  }[];
114
114
  }> | undefined;
115
115
  } & {
116
- queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
116
+ queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<(string | GetTeamSpacesArgs)[], {
117
117
  results: {
118
118
  name: string;
119
119
  id: string;
@@ -12,6 +12,9 @@ interface Props {
12
12
  condensedButtons?: boolean;
13
13
  showNewTabButton?: boolean;
14
14
  displayTextEnabled: boolean;
15
+ variants: string[];
16
+ variant?: string;
17
+ onVariantChange: (newVariant: string) => void;
15
18
  }
16
19
  export declare function LinkFieldActions(props: Props): JSX.Element;
17
20
  export {};
@@ -26,6 +26,7 @@ export declare function useRepeatableLinkField(props: UseRepeatableLinkFieldProp
26
26
  kind: "image";
27
27
  }) & {
28
28
  text?: string | undefined;
29
+ variant?: string | undefined;
29
30
  })) | ({
30
31
  __TYPE__: "FileLink";
31
32
  } & ((({
@@ -40,6 +41,7 @@ export declare function useRepeatableLinkField(props: UseRepeatableLinkFieldProp
40
41
  kind: "file";
41
42
  }) & {
42
43
  text?: string | undefined;
44
+ variant?: string | undefined;
43
45
  })) | ({
44
46
  __TYPE__: "DocumentLink";
45
47
  } & (({
@@ -48,6 +50,7 @@ export declare function useRepeatableLinkField(props: UseRepeatableLinkFieldProp
48
50
  kind: "document";
49
51
  }) & {
50
52
  text?: string | undefined;
53
+ variant?: string | undefined;
51
54
  })) | ({
52
55
  __TYPE__: "ExternalLink";
53
56
  } & ((({
@@ -62,18 +65,21 @@ export declare function useRepeatableLinkField(props: UseRepeatableLinkFieldProp
62
65
  kind: "web";
63
66
  }) & {
64
67
  text?: string | undefined;
68
+ variant?: string | undefined;
65
69
  })) | ({
66
70
  __TYPE__: "MediaLink";
67
71
  } & {
68
72
  kind: "media";
69
73
  } & {
70
74
  text?: string | undefined;
75
+ variant?: string | undefined;
71
76
  }) | ({
72
77
  __TYPE__: "AnyLink";
73
78
  } & {
74
79
  kind: "any";
75
80
  } & {
76
81
  text?: string | undefined;
82
+ variant?: string | undefined;
77
83
  });
78
84
  })[];
79
85
  updateLink: (linkContent: LinkContent | undefined, index: number) => void;
@@ -27,6 +27,9 @@ export declare function useLinkField(params: useLinkFieldParams): {
27
27
  onMediaSelected: (newMedia: MediaAssetOrExternalImage) => void;
28
28
  displayTextEnabled: boolean;
29
29
  displayText: string;
30
+ variants: string[];
31
+ variant: string | undefined;
32
+ onVariantChange: (newVariant: string) => void;
30
33
  };
31
34
  export declare function useDocumentTitle(id: string): string;
32
35
  interface MapMediaToLinkContentArgs {