@prismicio/editor-fields 0.4.79-bump-types-internal.0 → 0.4.79

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.
Files changed (45) hide show
  1. package/dist/EditorConfig.d.ts +11 -0
  2. package/dist/GroupEditor.d.ts +2 -12
  3. package/dist/NestableWidgetSwitch.d.ts +1 -1
  4. package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +39 -20
  5. package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +26 -0
  6. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/types.d.ts +1 -11
  7. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +6 -3
  8. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +8 -0
  9. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +5 -0
  10. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/constants.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/index.d.ts +2 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/queryOrderingsToOrderings.d.ts +2 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +11 -0
  14. package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
  15. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +5 -2
  16. package/dist/core/APIExplorer/utils.d.ts +4 -2
  17. package/dist/core/Collaboration/CollaborationPresence.d.ts +7 -0
  18. package/dist/core/document.d.ts +1 -1
  19. package/dist/core/imageUtils.d.ts +0 -2
  20. package/dist/core/service/customType.d.ts +8897 -0
  21. package/dist/core/service/document.d.ts +30 -12
  22. package/dist/core/service/documentSearch.d.ts +5 -0
  23. package/dist/core/service/onboarding.d.ts +3 -3
  24. package/dist/fields/ColorField/ColorField.d.ts +1 -0
  25. package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
  26. package/dist/fields/ImageField/ImageField.d.ts +1 -0
  27. package/dist/fields/KeyTextField.d.ts +1 -1
  28. package/dist/fields/LinkField/Documents/documentsData.d.ts +1 -0
  29. package/dist/fields/LinkField/LinkField.d.ts +2 -0
  30. package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
  31. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
  32. package/dist/fields/RichTextField/RichTextField.d.ts +5 -3
  33. package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -1
  34. package/dist/fields/RichTextField/coreExtensions/Text.d.ts +2 -1
  35. package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +2 -1
  36. package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +2 -1
  37. package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +2 -1
  38. package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +2 -1
  39. package/dist/fields/RichTextField/models/EditorExtension.d.ts +8 -7
  40. package/dist/index.cjs.js +45 -50
  41. package/dist/index.es.js +38942 -46469
  42. package/dist/slices/utils.d.ts +1 -1
  43. package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
  44. package/package.json +65 -8
  45. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigPathInput.d.ts +0 -9
@@ -1,5 +1,8 @@
1
1
  /// <reference types="react" />
2
+ import type { BaseMetadata } from "@liveblocks/core";
3
+ import type { useThreads as useLiveblocksThreads, UseThreadsOptions } from "@liveblocks/react";
2
4
  import { type MediaAssetType } from "@prismicio/editor-ui";
5
+ import type { Content, Extension } from "@tiptap/core";
3
6
  import type { APIExplorerEvents } from "./core/APIExplorer/components/APIExplorerContext";
4
7
  import type { MetadataType } from "./core/service";
5
8
  export type EditorConfig = {
@@ -7,6 +10,8 @@ export type EditorConfig = {
7
10
  embedApiEndpoint: URL;
8
11
  unsplashApiBaseUrl: URL;
9
12
  authStrategy: AuthStrategy;
13
+ useCollaborativeComments?: UseCollaborativeComments;
14
+ useThreads?: UseThreads;
10
15
  } & OptionalConfigs;
11
16
  type OptionalConfigs = SearchDocuments & MediaLibrary & UIDField & Analytics & ErrorTracking & IntegrationFields & LayoutConfig & UserService & AISeoMetadata;
12
17
  type UserService = {
@@ -108,6 +113,12 @@ interface ErrorTracking {
108
113
  /** Asks the editor to track this Error in its Error monitoring solution. */
109
114
  onTrackError?: (error: Error) => void;
110
115
  }
116
+ interface UseCollaborativeCommentsArgs {
117
+ field?: string;
118
+ initialContent?: Content;
119
+ }
120
+ type UseCollaborativeComments = (args: UseCollaborativeCommentsArgs) => Extension;
121
+ type UseThreads = (options?: UseThreadsOptions<BaseMetadata> | undefined) => ReturnType<typeof useLiveblocksThreads>;
111
122
  export type AuthStrategy = "cookie" | "token";
112
123
  export declare const EditorConfigContext: import("react").Context<EditorConfig | undefined>;
113
124
  export declare function useEditorConfig(): EditorConfig;
@@ -2,22 +2,12 @@
2
2
  import type { GroupContent } from "@prismicio/types-internal/lib/content";
3
3
  import type { Group } from "@prismicio/types-internal/lib/customtypes";
4
4
  interface GroupEditorProps {
5
- content: GroupContent | EditorGroupContent | undefined;
5
+ content: GroupContent | undefined;
6
6
  group: Group;
7
7
  id: string;
8
8
  readOnly: boolean;
9
- onContentChange: (content: EditorGroupContent) => void;
9
+ onContentChange: (content: GroupContent) => void;
10
10
  }
11
11
  export declare function GroupEditor(props: GroupEditorProps): JSX.Element;
12
12
  export declare function getGroupLabel(group: Group): string;
13
- /**
14
- * We extend the base Prismic GroupContent type to add a key property.
15
- * This is used to identify and reference the group item in the repeatable zone.
16
- *
17
- * TODO: re-evaluate this strategy and the effort of adding stable IDs to Prismic models.
18
- * [PBD-2135](https://linear.app/prismic/issue/PBD-2135/spike-stable-group-items)
19
- */
20
- interface EditorGroupContent extends GroupContent {
21
- key: string;
22
- }
23
13
  export {};
@@ -8,5 +8,5 @@ interface Props {
8
8
  onContentChange: (content: NestableContent | undefined) => void;
9
9
  readOnly: boolean;
10
10
  }
11
- export declare function NestableWidgetSwitch(props: Props): JSX.Element | null;
11
+ export declare function NestableWidgetSwitch(props: Props): JSX.Element;
12
12
  export {};
@@ -3,18 +3,18 @@ import { z } from "zod";
3
3
  import { type RequestRunReturnType, type RequestType } from "./Request";
4
4
  import { type Filter } from "./Request/components/RequestFiltersFieldset";
5
5
  declare const APIExplorerRequestProperties: z.ZodObject<{
6
- repository: z.ZodObject<{
7
- id: z.ZodString;
6
+ repository: z.ZodDefault<z.ZodObject<{
7
+ id: z.ZodDefault<z.ZodString>;
8
8
  accessToken: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  id: string;
11
11
  accessToken?: string | undefined;
12
12
  }, {
13
- id: string;
13
+ id?: string | undefined;
14
14
  accessToken?: string | undefined;
15
- }>;
16
- type: z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>;
17
- options: z.ZodRecord<z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>, z.ZodOptional<z.ZodObject<{
15
+ }>>;
16
+ type: z.ZodDefault<z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>>;
17
+ options: z.ZodDefault<z.ZodRecord<z.ZodEnum<["get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", ...("get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags")[]]>, z.ZodOptional<z.ZodObject<{
18
18
  id: z.ZodOptional<z.ZodString>;
19
19
  ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
20
  type: z.ZodOptional<z.ZodString>;
@@ -38,8 +38,8 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
38
38
  uid?: string | undefined;
39
39
  uids?: string[] | undefined;
40
40
  tags?: string[] | undefined;
41
- }>>>;
42
- pagination: z.ZodObject<{
41
+ }>>>>;
42
+ pagination: z.ZodDefault<z.ZodObject<{
43
43
  page: z.ZodOptional<z.ZodNumber>;
44
44
  pageSize: z.ZodOptional<z.ZodNumber>;
45
45
  }, "strip", z.ZodTypeAny, {
@@ -48,7 +48,7 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
48
48
  }, {
49
49
  pageSize?: number | undefined;
50
50
  page?: number | undefined;
51
- }>;
51
+ }>>;
52
52
  lang: z.ZodOptional<z.ZodString>;
53
53
  advanced: z.ZodDefault<z.ZodBoolean>;
54
54
  ref: z.ZodOptional<z.ZodString>;
@@ -65,6 +65,16 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
65
65
  type: "at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore";
66
66
  args: (string | number | boolean | (string | number | boolean)[])[];
67
67
  }[] | undefined>;
68
+ orderings: z.ZodDefault<z.ZodArray<z.ZodObject<{
69
+ field: z.ZodString;
70
+ direction: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ field: string;
73
+ direction?: "desc" | "asc" | undefined;
74
+ }, {
75
+ field: string;
76
+ direction?: "desc" | "asc" | undefined;
77
+ }>, "many">>;
68
78
  }, "strip", z.ZodTypeAny, {
69
79
  options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
70
80
  tag?: string | undefined;
@@ -81,6 +91,10 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
81
91
  accessToken?: string | undefined;
82
92
  };
83
93
  filters: Filter[];
94
+ orderings: {
95
+ field: string;
96
+ direction?: "desc" | "asc" | undefined;
97
+ }[];
84
98
  pagination: {
85
99
  pageSize?: number | undefined;
86
100
  page?: number | undefined;
@@ -89,7 +103,7 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
89
103
  ref?: string | undefined;
90
104
  lang?: string | undefined;
91
105
  }, {
92
- options: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
106
+ options?: Partial<Record<"get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags", {
93
107
  tag?: string | undefined;
94
108
  type?: string | undefined;
95
109
  id?: string | undefined;
@@ -97,22 +111,26 @@ declare const APIExplorerRequestProperties: z.ZodObject<{
97
111
  uid?: string | undefined;
98
112
  uids?: string[] | undefined;
99
113
  tags?: string[] | undefined;
100
- } | undefined>>;
101
- type: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags";
102
- repository: {
103
- id: string;
104
- accessToken?: string | undefined;
105
- };
106
- pagination: {
107
- pageSize?: number | undefined;
108
- page?: number | undefined;
109
- };
114
+ } | undefined>> | undefined;
115
+ type?: "get" | "getFirst" | "getByID" | "getByIDs" | "getAllByIDs" | "getByUID" | "getByUIDs" | "getAllByUIDs" | "getSingle" | "getByType" | "getAllByType" | "getByTag" | "getAllByTag" | "getByEveryTag" | "getAllByEveryTag" | "getBySomeTags" | "getAllBySomeTags" | "getRepository" | "getTags" | undefined;
110
116
  ref?: string | undefined;
117
+ repository?: {
118
+ id?: string | undefined;
119
+ accessToken?: string | undefined;
120
+ } | undefined;
111
121
  filters?: {
112
122
  type: "at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore";
113
123
  args: (string | number | boolean | (string | number | boolean)[])[];
114
124
  }[] | undefined;
125
+ orderings?: {
126
+ field: string;
127
+ direction?: "desc" | "asc" | undefined;
128
+ }[] | undefined;
115
129
  lang?: string | undefined;
130
+ pagination?: {
131
+ pageSize?: number | undefined;
132
+ page?: number | undefined;
133
+ } | undefined;
116
134
  advanced?: boolean | undefined;
117
135
  }>;
118
136
  export type APIExplorerRequestProperties = z.infer<typeof APIExplorerRequestProperties>;
@@ -129,6 +147,7 @@ type APIExplorerRequestMethods = {
129
147
  setAdvanced: (advanced: boolean) => void;
130
148
  setRef: (ref?: string) => void;
131
149
  setFilters: (filters: APIExplorerRequestProperties["filters"]) => void;
150
+ setOrderings: (orderings: APIExplorerRequestProperties["orderings"]) => void;
132
151
  run: () => Promise<void>;
133
152
  };
134
153
  type ResponseBase = {
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ export declare const apiPaths: {
3
+ doc: string;
4
+ docType: string;
5
+ docTags: string;
6
+ docFirstPublicationDate: string;
7
+ docLastPublicationDate: string;
8
+ docId: string;
9
+ myDocUid: string;
10
+ myDocField: string;
11
+ };
12
+ type RequestAPIPathFieldsetProps = {
13
+ path: string;
14
+ setPath: (path: string) => void;
15
+ description: string;
16
+ allowedPaths: string[];
17
+ context: "filter" | "ordering";
18
+ };
19
+ export declare function RequestAPIPathFieldset(props: RequestAPIPathFieldsetProps): JSX.Element;
20
+ interface ValidateAPIPathOptions {
21
+ allowedPaths: string[];
22
+ customTypeIds?: string[];
23
+ context: "filter" | "ordering";
24
+ }
25
+ export declare function validateAPIPath(path: string | undefined, options: ValidateAPIPathOptions): asserts path is string;
26
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { filter } from "@prismicio/client";
2
- import type { IconName } from "editor-ui/src/components/Icon";
2
+ import type { IconName } from "@prismicio/editor-ui";
3
3
  import { z } from "zod";
4
4
  export type FilterType = keyof typeof filter;
5
5
  export declare const FilterTypes: ["at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore", ...("at" | "not" | "any" | "in" | "fulltext" | "has" | "missing" | "similar" | "geopointNear" | "numberLessThan" | "numberGreaterThan" | "numberInRange" | "dateAfter" | "dateBefore" | "dateBetween" | "dateDayOfMonth" | "dateDayOfMonthAfter" | "dateDayOfMonthBefore" | "dateDayOfWeek" | "dateDayOfWeekAfter" | "dateDayOfWeekBefore" | "dateMonth" | "dateMonthAfter" | "dateMonthBefore" | "dateYear" | "dateHour" | "dateHourAfter" | "dateHourBefore")[]];
@@ -24,14 +24,4 @@ export declare const filters: {
24
24
  }[];
25
25
  export declare const FilterAnyArg: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>;
26
26
  export type FilterAnyArg = z.infer<typeof FilterAnyArg>;
27
- export declare const filterPaths: {
28
- doc: string;
29
- docType: string;
30
- docTags: string;
31
- docFirstPublicationDate: string;
32
- docLastPublicationDate: string;
33
- docId: string;
34
- myDocUid: string;
35
- myDocField: string;
36
- };
37
27
  export {};
@@ -1,7 +1,10 @@
1
1
  /// <reference types="react" />
2
- import { type RequestFormInputProps } from "./RequestFormInput";
3
- export type RequestFormMultiInputProps = Omit<RequestFormInputProps, "value" | "onValueChange"> & {
2
+ import { type FormInputProps } from "@prismicio/editor-ui";
3
+ import { type RequestFormInputBaseProps } from "./RequestFormInputBase";
4
+ export type RequestFormMultiInputProps = Pick<RequestFormInputBaseProps, "label"> & FormMultiInputProps;
5
+ export declare function RequestFormMultiInput(props: RequestFormMultiInputProps): JSX.Element;
6
+ export type FormMultiInputProps = Omit<FormInputProps, "value" | "onValueChange"> & {
4
7
  value: string[];
5
8
  onValueChange: (values: string[]) => void;
6
9
  };
7
- export declare function RequestFormMultiInput(props: RequestFormMultiInputProps): JSX.Element;
10
+ export declare function FormMultiInput(props: FormMultiInputProps): JSX.Element;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface OrderingConfigDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ editIndex?: number;
6
+ }
7
+ export declare function OrderingConfigDialog(props: OrderingConfigDialogProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Display a fieldset managing a request orderings setting.
4
+ */
5
+ export declare function RequestOrderingsFieldset(): JSX.Element | null;
@@ -0,0 +1 @@
1
+ export declare const allowedOrderingPaths: string[];
@@ -0,0 +1,2 @@
1
+ export { queryOrderingsToOrderings } from "./queryOrderingsToOrderings";
2
+ export { RequestOrderingsFieldset } from "./RequestOrderingsFieldset";
@@ -0,0 +1,2 @@
1
+ import type { Ordering } from "@prismicio/client";
2
+ export declare function queryOrderingsToOrderings(rawOrderings: string[]): Ordering[];
@@ -1,5 +1,16 @@
1
1
  /// <reference types="react" />
2
+ import { type FormInputProps } from "@prismicio/editor-ui";
2
3
  /**
3
4
  * Display a fieldset managing a request tags settings.
4
5
  */
5
6
  export declare function RequestTagsFieldset(): JSX.Element;
7
+ interface TagsFieldsetProps extends Omit<FormInputProps, "value" | "onValueChange" | "placeholder"> {
8
+ tags: string[];
9
+ setTags: (tags: string[]) => void;
10
+ overflowWidth: number;
11
+ }
12
+ /**
13
+ * Display a fieldset managing tags.
14
+ */
15
+ export declare function TagsFieldset(props: TagsFieldsetProps): JSX.Element;
16
+ export {};
@@ -2,6 +2,7 @@ export { RequestFiltersFieldset } from "./RequestFiltersFieldset";
2
2
  export { RequestFormInput } from "./RequestFormInput";
3
3
  export { RequestFormMultiInput } from "./RequestFormMultiInput";
4
4
  export { RequestLangFieldset } from "./RequestLangFieldset";
5
+ export { RequestOrderingsFieldset } from "./RequestOrderingsFieldset";
5
6
  export { RequestPaginationFieldset } from "./RequestPaginationFieldset";
6
7
  export { RequestRefFieldset } from "./RequestRefFieldset";
7
8
  export { RequestTagFieldset } from "./RequestTagFieldset";
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { BuildQueryURLArgs, Client } from "@prismicio/client";
2
+ import type { BuildQueryURLArgs, Client, Ordering } from "@prismicio/client";
3
3
  import type { SnippetArgs } from "../../utils";
4
4
  import type { RequestRunReturnType } from "./types";
5
5
  type RequestOptions = {
@@ -15,8 +15,11 @@ type RequestOptions = {
15
15
  export type RequestConfig<TType extends string> = {
16
16
  type: TType;
17
17
  Fieldset?: () => JSX.Element;
18
- getSnippetArgs?: (options: Omit<RequestOptions, "filters"> & {
18
+ getSnippetArgs?: (options: Omit<RequestOptions, "filters" | "orderings"> & {
19
19
  filters?: symbol[];
20
+ orderings?: {
21
+ [K in keyof Ordering]: Ordering[K];
22
+ }[];
20
23
  }) => SnippetArgs;
21
24
  run: (client: Client, options: RequestOptions) => Promise<RequestRunReturnType>;
22
25
  };
@@ -1,6 +1,8 @@
1
1
  type Primitive = number | string | boolean | symbol | undefined;
2
- type PrimitiveWithArray = Primitive | Primitive[];
3
- export type SnippetArgs = (PrimitiveWithArray | Record<string, PrimitiveWithArray>)[];
2
+ type Serializable = Primitive | Serializable[] | {
3
+ [key: string]: Serializable;
4
+ };
5
+ export type SnippetArgs = Serializable[];
4
6
  export declare function formatSnippetArgs(args: SnippetArgs, options?: {
5
7
  maxLength: number;
6
8
  }): string;
@@ -0,0 +1,7 @@
1
+ import type { ReactNode } from "react";
2
+ interface CollaborationPresenceProps {
3
+ children: ReactNode;
4
+ id: string;
5
+ }
6
+ export declare function CollaborationPresence(props: CollaborationPresenceProps): JSX.Element;
7
+ export {};
@@ -2,7 +2,7 @@ import { type Document as DocumentT, GroupContent } from "@prismicio/types-inter
2
2
  import { type StaticCustomType } from "@prismicio/types-internal/lib/customtypes";
3
3
  import type { DocumentVersion } from "./service";
4
4
  export declare function prepareDocument(document: DocumentT, customType: StaticCustomType): DocumentT;
5
- export declare const defaultGroupContentWithOneItem: GroupContent;
5
+ export declare function defaultGroupContentWithOneItem(): GroupContent;
6
6
  export declare const documentStatus: {
7
7
  readonly unclassified: {
8
8
  readonly title: "Draft";
@@ -39,8 +39,6 @@ export declare function getPreviewImage(fromUrl: string, options?: {
39
39
  height?: number;
40
40
  }): string;
41
41
  export declare function getSearchTileImage(fromUrl: string): string;
42
- export declare function getCarouselImage(fromUrl: string): string;
43
- export declare function getCarouselItemSource(view: ImageContentView | undefined): string | undefined;
44
42
  export declare function replaceImage(thumbnailName: string, field: Image, content: ImageContent | undefined, extImage: MediaAssetOrExternalImage): ImageContent;
45
43
  export declare function isMediaAsset(image: MediaAssetOrExternalImage): image is MediaAsset;
46
44
  export declare function createContentView(image: MediaAssetOrExternalImage, constraints?: ImageConstraint): ImageContentView;