@prismicio/editor-fields 0.4.42-alpha.dialog-key-up.0 → 0.4.43

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.
@@ -1,5 +1,5 @@
1
1
  import { type RefObject } from "react";
2
- import type { MediaAssetType } from "../MediaLibrary/hooks/mediaLibraryData";
2
+ import { type MediaAssetType } from "../MediaLibrary/hooks/mediaLibraryData";
3
3
  interface MediaLibraryProps {
4
4
  /**
5
5
  * The type of media to fetch from the media library.
@@ -3,7 +3,7 @@ interface MediaLibraryLayoutProps {
3
3
  mediaList: ReactNode;
4
4
  mediaToolbar: ReactNode;
5
5
  mediaActions: ReactNode;
6
- sidePane: ReactNode;
6
+ sidePane: ReactNode | undefined;
7
7
  }
8
8
  export declare function MediaLibraryLayout(props: MediaLibraryLayoutProps): JSX.Element;
9
9
  export {};
@@ -0,0 +1 @@
1
+ export declare function useIsEmptyMediaLibrary(): boolean;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Queries the first page of the current repos media library
3
+ * The first page will have an accurate total of the full media library, without
4
+ * search keywords or filters
5
+ *
6
+ * @returns total {number}
7
+ */
8
+ export declare function useMediaLibraryFirstPageTotal(): number;
@@ -542,44 +542,6 @@ export declare function createSearchParams<T extends string>(params: {
542
542
  values: string[];
543
543
  }[]): [string, string][];
544
544
  export declare function getDocumentByDocumentId(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
545
- export declare function getDocumentsByReleaseId(baseUrl: URL, authStrategy: AuthStrategy, releaseId: string, limit?: number): Promise<{
546
- total: number;
547
- results: {
548
- id: string;
549
- title: string;
550
- custom_type_id: string;
551
- group_lang_id: string;
552
- language: {
553
- id: string;
554
- name: string;
555
- is_master?: boolean | undefined;
556
- };
557
- versions: (({
558
- status: "unclassified";
559
- } | {
560
- status: "published";
561
- } | {
562
- status: "release";
563
- release_id: string;
564
- } | {
565
- status: "archived";
566
- }) & {
567
- version_id: string;
568
- tags: string[];
569
- custom_type_label: string;
570
- last_modified_date: Date;
571
- author: {
572
- first_name?: string | undefined;
573
- last_name?: string | undefined;
574
- email?: string | undefined;
575
- };
576
- preview_summary?: string | undefined;
577
- preview_image?: string | undefined;
578
- uid?: string | undefined;
579
- })[];
580
- }[];
581
- cursor?: string | undefined;
582
- }>;
583
545
  export declare function getDocumentsById(baseUrl: URL, authStrategy: AuthStrategy, ids: string[]): Promise<GetsDocumentApi>;
584
546
  export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDef, unknown>, {
585
547
  [x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
@@ -25,6 +25,8 @@ declare const repositoryQuotas: z.ZodObject<{
25
25
  slicemachineEnabled: boolean;
26
26
  }>;
27
27
  export type RepositoryQuotas = z.TypeOf<typeof repositoryQuotas>;
28
+ declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
29
+ export type RepositoryFramework = z.TypeOf<typeof repositoryFramework>;
28
30
  declare const repositorySchema: z.ZodEffects<z.ZodObject<{
29
31
  simulator_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  languages: z.ZodEffects<z.ZodArray<z.ZodObject<{
@@ -71,6 +73,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
71
73
  }, {
72
74
  slicemachineEnabled: boolean;
73
75
  }>>>;
76
+ framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
74
77
  }, "strip", z.ZodTypeAny, {
75
78
  authors: {
76
79
  id: string;
@@ -86,6 +89,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
86
89
  quotas: {
87
90
  slicemachineEnabled: boolean;
88
91
  };
92
+ framework: "next" | "nuxt" | "sveltekit" | "other";
89
93
  simulator_url?: string | null | undefined;
90
94
  }, {
91
95
  languages: {
@@ -103,8 +107,10 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
103
107
  quotas?: {
104
108
  slicemachineEnabled: boolean;
105
109
  } | undefined;
110
+ framework?: unknown;
106
111
  }>, {
107
112
  simulatorUrl: string | undefined;
113
+ isSupportedFramework: boolean;
108
114
  authors: {
109
115
  id: string;
110
116
  email: string;
@@ -135,6 +141,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
135
141
  quotas?: {
136
142
  slicemachineEnabled: boolean;
137
143
  } | undefined;
144
+ framework?: unknown;
138
145
  }>;
139
146
  export type Repository = z.TypeOf<typeof repositorySchema>;
140
147
  export declare function getRepository(baseUrl: URL, authStrategy: AuthStrategy): Promise<Repository>;