@prismicio/editor-fields 0.4.89-alpha.jp-box-display-none.1 → 0.4.90

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 (124) hide show
  1. package/dist/DocumentEditor.d.ts +1 -0
  2. package/dist/EditorConfig.d.ts +22 -7
  3. package/dist/GroupAndNestableWidgetSwitch.d.ts +1 -0
  4. package/dist/GroupEditor.d.ts +1 -0
  5. package/dist/NestableWidgetSwitch.d.ts +1 -0
  6. package/dist/SectionEditor.d.ts +1 -0
  7. package/dist/SliceSelection.d.ts +1 -0
  8. package/dist/core/APIExplorer/APIExplorer.d.ts +1 -0
  9. package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +1 -0
  10. package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +1 -0
  11. package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +1 -0
  12. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +1 -0
  13. package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +1 -0
  14. package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +1 -0
  15. package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +1 -0
  16. package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +1 -0
  17. package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -0
  18. package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +1 -0
  19. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +1 -0
  20. package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +1 -0
  21. package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +1 -0
  22. package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -0
  23. package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +1 -0
  24. package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +1 -0
  25. package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +1 -0
  26. package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
  27. package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1413 -1
  28. package/dist/core/EditorErrorBoundary.d.ts +1 -0
  29. package/dist/core/MediaLibrary/MediaLibrary.d.ts +1 -0
  30. package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +1 -0
  31. package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +1 -0
  32. package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +1 -0
  33. package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +1 -0
  34. package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +1 -0
  35. package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +1 -0
  36. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +1 -0
  37. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +1 -0
  38. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +1 -0
  39. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +1 -0
  40. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +1 -0
  41. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +1 -0
  42. package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +1 -0
  43. package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +1 -0
  44. package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +1 -0
  45. package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +1 -0
  46. package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +1 -0
  47. package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +1 -0
  48. package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +3 -3
  49. package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +1 -0
  50. package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +1 -0
  51. package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +1 -0
  52. package/dist/core/SelectionManager/SelectionManager.d.ts +1 -0
  53. package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +1 -0
  54. package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +1 -0
  55. package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +1 -0
  56. package/dist/core/service/customType.d.ts +16319 -175
  57. package/dist/core/service/document.d.ts +218 -48
  58. package/dist/core/service/onboarding.d.ts +1 -0
  59. package/dist/core/service/role.d.ts +1 -1
  60. package/dist/fields/BooleanField.d.ts +1 -0
  61. package/dist/fields/ColorField/ColorField.d.ts +1 -0
  62. package/dist/fields/DateField.d.ts +1 -0
  63. package/dist/fields/EmbedField/EmbedField.d.ts +1 -0
  64. package/dist/fields/FieldTextInput.d.ts +1 -0
  65. package/dist/fields/GeoPointField/GeoPointField.d.ts +1 -0
  66. package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +1 -0
  67. package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -0
  68. package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +1 -0
  69. package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +1 -0
  70. package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
  71. package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +1 -0
  72. package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -0
  73. package/dist/fields/ImageField/ImageField.d.ts +1 -0
  74. package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +1 -0
  75. package/dist/fields/IntegrationField/IntegrationDialog.d.ts +1 -0
  76. package/dist/fields/IntegrationField/IntegrationField.d.ts +1 -0
  77. package/dist/fields/IntegrationField/IntegrationInput.d.ts +1 -0
  78. package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +1 -0
  79. package/dist/fields/IntegrationField/integrationData.d.ts +1 -5
  80. package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
  81. package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +1 -0
  82. package/dist/fields/LinkField/Documents/Filters.d.ts +1 -0
  83. package/dist/fields/LinkField/Documents/useFilters.d.ts +1 -0
  84. package/dist/fields/LinkField/LinkDescriptionCard.d.ts +1 -0
  85. package/dist/fields/LinkField/LinkField.d.ts +1 -0
  86. package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
  87. package/dist/fields/LinkField/LinkImageCard.d.ts +1 -0
  88. package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +1 -0
  89. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
  90. package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +1 -0
  91. package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +1 -0
  92. package/dist/fields/LinkField/useLinkField.d.ts +2 -1
  93. package/dist/fields/MetadataTextField.d.ts +1 -0
  94. package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
  95. package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +1 -0
  96. package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +1 -0
  97. package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +1 -0
  98. package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +1 -0
  99. package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +1 -0
  100. package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +1 -0
  101. package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +1 -0
  102. package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +1 -0
  103. package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +1 -0
  104. package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +1 -0
  105. package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +1 -0
  106. package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
  107. package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -0
  108. package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -0
  109. package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +1 -0
  110. package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +1 -0
  111. package/dist/fields/SelectField.d.ts +1 -0
  112. package/dist/fields/TableField/TableField.d.ts +1 -0
  113. package/dist/fields/TimestampField.d.ts +1 -0
  114. package/dist/fields/UIDField.d.ts +1 -0
  115. package/dist/index.cjs.js +48 -48
  116. package/dist/index.es.js +16391 -16237
  117. package/dist/slices/SharedSliceEditor.d.ts +2 -1
  118. package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +1 -0
  119. package/dist/zones/NonRepeatableZoneEditor.d.ts +1 -0
  120. package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
  121. package/dist/zones/SlicePrimaryZoneEditor.d.ts +1 -0
  122. package/dist/zones/SliceZoneEditor.d.ts +1 -0
  123. package/dist/zones/StaticZoneEditor.d.ts +1 -0
  124. package/package.json +6 -7
@@ -1,6 +1,6 @@
1
1
  import { type QueryClient } from "@tanstack/react-query";
2
2
  import { z } from "zod";
3
- import type { AuthStrategy } from "../../EditorConfig";
3
+ import { type AuthStrategy } from "../../EditorConfig";
4
4
  export declare const languageSchema: z.ZodEffects<z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  name: z.ZodString;
@@ -1138,15 +1138,203 @@ export declare function makeSearchFullTextDocumentsQueryString(args: {
1138
1138
  localeId?: string;
1139
1139
  customTypesIds?: string[];
1140
1140
  }): string;
1141
- type GetDocumentsQueryFilters = "tags" | "language" | "customTypes" | "status" | "term" | "group_lang_id" | "document_id" | "uid" | "authors";
1142
- export type SearchDocumentParams = {
1143
- [S in GetDocumentsQueryFilters]?: string[];
1144
- };
1145
1141
  export declare function createSearchParams<T extends string>(params: {
1146
1142
  name: T;
1147
1143
  values: (string | undefined)[];
1148
1144
  }[]): [string, string][];
1149
- export declare function getDocumentById(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
1145
+ export declare function getDocumentMeta(baseUrl: URL, authStrategy: AuthStrategy, documentId: string): Promise<DocumentMeta>;
1146
+ export declare function documentMetaKey(documentId: string): readonly ["documentMeta", string];
1147
+ interface DocumentMetaOptionsArgs {
1148
+ baseUrl: URL;
1149
+ authStrategy: AuthStrategy;
1150
+ documentId: string;
1151
+ }
1152
+ export declare function getDocumentMetaOptions(args: DocumentMetaOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
1153
+ language: {
1154
+ id: string;
1155
+ label: string;
1156
+ isMaster: boolean;
1157
+ };
1158
+ title: string;
1159
+ id: string;
1160
+ custom_type_id: string;
1161
+ group_lang_id: string;
1162
+ versions: (({
1163
+ status: "unclassified";
1164
+ } | {
1165
+ status: "published";
1166
+ } | {
1167
+ status: "release";
1168
+ release_id: string;
1169
+ } | {
1170
+ status: "archived";
1171
+ }) & {
1172
+ tags: string[];
1173
+ version_id: string;
1174
+ last_modified_date: Date;
1175
+ custom_type_label: string;
1176
+ author: {
1177
+ email?: string | undefined;
1178
+ id?: string | undefined;
1179
+ first_name?: string | undefined;
1180
+ last_name?: string | undefined;
1181
+ uploadedAvatar?: string | undefined;
1182
+ };
1183
+ uid?: string | undefined;
1184
+ preview_image?: string | undefined;
1185
+ preview_summary?: string | undefined;
1186
+ })[];
1187
+ ai_abm_thread_id?: string | undefined;
1188
+ }, Error, {
1189
+ language: {
1190
+ id: string;
1191
+ label: string;
1192
+ isMaster: boolean;
1193
+ };
1194
+ title: string;
1195
+ id: string;
1196
+ custom_type_id: string;
1197
+ group_lang_id: string;
1198
+ versions: (({
1199
+ status: "unclassified";
1200
+ } | {
1201
+ status: "published";
1202
+ } | {
1203
+ status: "release";
1204
+ release_id: string;
1205
+ } | {
1206
+ status: "archived";
1207
+ }) & {
1208
+ tags: string[];
1209
+ version_id: string;
1210
+ last_modified_date: Date;
1211
+ custom_type_label: string;
1212
+ author: {
1213
+ email?: string | undefined;
1214
+ id?: string | undefined;
1215
+ first_name?: string | undefined;
1216
+ last_name?: string | undefined;
1217
+ uploadedAvatar?: string | undefined;
1218
+ };
1219
+ uid?: string | undefined;
1220
+ preview_image?: string | undefined;
1221
+ preview_summary?: string | undefined;
1222
+ })[];
1223
+ ai_abm_thread_id?: string | undefined;
1224
+ }, readonly ["documentMeta", string]> & {
1225
+ initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
1226
+ language: {
1227
+ id: string;
1228
+ label: string;
1229
+ isMaster: boolean;
1230
+ };
1231
+ title: string;
1232
+ id: string;
1233
+ custom_type_id: string;
1234
+ group_lang_id: string;
1235
+ versions: (({
1236
+ status: "unclassified";
1237
+ } | {
1238
+ status: "published";
1239
+ } | {
1240
+ status: "release";
1241
+ release_id: string;
1242
+ } | {
1243
+ status: "archived";
1244
+ }) & {
1245
+ tags: string[];
1246
+ version_id: string;
1247
+ last_modified_date: Date;
1248
+ custom_type_label: string;
1249
+ author: {
1250
+ email?: string | undefined;
1251
+ id?: string | undefined;
1252
+ first_name?: string | undefined;
1253
+ last_name?: string | undefined;
1254
+ uploadedAvatar?: string | undefined;
1255
+ };
1256
+ uid?: string | undefined;
1257
+ preview_image?: string | undefined;
1258
+ preview_summary?: string | undefined;
1259
+ })[];
1260
+ ai_abm_thread_id?: string | undefined;
1261
+ }> | undefined;
1262
+ } & {
1263
+ queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<readonly ["documentMeta", string], {
1264
+ language: {
1265
+ id: string;
1266
+ label: string;
1267
+ isMaster: boolean;
1268
+ };
1269
+ title: string;
1270
+ id: string;
1271
+ custom_type_id: string;
1272
+ group_lang_id: string;
1273
+ versions: (({
1274
+ status: "unclassified";
1275
+ } | {
1276
+ status: "published";
1277
+ } | {
1278
+ status: "release";
1279
+ release_id: string;
1280
+ } | {
1281
+ status: "archived";
1282
+ }) & {
1283
+ tags: string[];
1284
+ version_id: string;
1285
+ last_modified_date: Date;
1286
+ custom_type_label: string;
1287
+ author: {
1288
+ email?: string | undefined;
1289
+ id?: string | undefined;
1290
+ first_name?: string | undefined;
1291
+ last_name?: string | undefined;
1292
+ uploadedAvatar?: string | undefined;
1293
+ };
1294
+ uid?: string | undefined;
1295
+ preview_image?: string | undefined;
1296
+ preview_summary?: string | undefined;
1297
+ })[];
1298
+ ai_abm_thread_id?: string | undefined;
1299
+ }>;
1300
+ };
1301
+ export declare function useEditorDocumentMeta(documentId: string): {
1302
+ language: {
1303
+ id: string;
1304
+ label: string;
1305
+ isMaster: boolean;
1306
+ };
1307
+ title: string;
1308
+ id: string;
1309
+ custom_type_id: string;
1310
+ group_lang_id: string;
1311
+ versions: (({
1312
+ status: "unclassified";
1313
+ } | {
1314
+ status: "published";
1315
+ } | {
1316
+ status: "release";
1317
+ release_id: string;
1318
+ } | {
1319
+ status: "archived";
1320
+ }) & {
1321
+ tags: string[];
1322
+ version_id: string;
1323
+ last_modified_date: Date;
1324
+ custom_type_label: string;
1325
+ author: {
1326
+ email?: string | undefined;
1327
+ id?: string | undefined;
1328
+ first_name?: string | undefined;
1329
+ last_name?: string | undefined;
1330
+ uploadedAvatar?: string | undefined;
1331
+ };
1332
+ uid?: string | undefined;
1333
+ preview_image?: string | undefined;
1334
+ preview_summary?: string | undefined;
1335
+ })[];
1336
+ ai_abm_thread_id?: string | undefined;
1337
+ };
1150
1338
  export declare const Document: z.ZodEffects<z.ZodUnknown, {
1151
1339
  [x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
1152
1340
  type: string;
@@ -8232,49 +8420,31 @@ export declare const documentKeys: {
8232
8420
  * Returns updated document or undefined if document should be removed
8233
8421
  */
8234
8422
  type UpdateDocumentFunction = (document: DocumentMeta, page: GetDocumentListSchema) => DocumentMeta | undefined;
8235
- export declare function updateDocumentListData(queryClient: QueryClient, updateFunction: UpdateDocumentFunction): void;
8423
+ interface UpdateDocumentListDataArgs {
8424
+ queryClient: QueryClient;
8425
+ updateFunction: UpdateDocumentFunction;
8426
+ /**
8427
+ * Include or exclude stale queries from the update.
8428
+ *
8429
+ * updateDocumentListData() makes queries fresh. If the queries are already
8430
+ * stale, it's best to keep them untouched and let them refetch instead of
8431
+ * modifying the cache manually.
8432
+ *
8433
+ * Use stale: false to exclude stale queries from the update.
8434
+ */
8435
+ stale?: boolean;
8436
+ }
8437
+ export declare function updateDocumentListData(args: UpdateDocumentListDataArgs): void;
8438
+ /**
8439
+ * @deprecated ⚠️ Don't add new usages of this and try to remove existing usages as much as possible.
8440
+ *
8441
+ * This is not scalable: If you scroll 30 pages of data and call invalidateDocumentListData(),
8442
+ * we will instantly make 30 expensive queries to the core API (or the next time we visit one of the infinite lists).
8443
+ * We should create a toast with an action that will only reload the first page, at your convenience.
8444
+ * For now, only bulk actions make use of this toast approach but we should share and reuse that logic.
8445
+ */
8236
8446
  export declare function invalidateDocumentListData(queryClient: QueryClient): Promise<void>;
8237
- export declare function useDocumentList(args: GetDocumentListArgs): import("@tanstack/react-query/build/legacy/types").UseSuspenseQueryResult<{
8238
- results: {
8239
- language: {
8240
- id: string;
8241
- label: string;
8242
- isMaster: boolean;
8243
- };
8244
- title: string;
8245
- id: string;
8246
- custom_type_id: string;
8247
- group_lang_id: string;
8248
- versions: (({
8249
- status: "unclassified";
8250
- } | {
8251
- status: "published";
8252
- } | {
8253
- status: "release";
8254
- release_id: string;
8255
- } | {
8256
- status: "archived";
8257
- }) & {
8258
- tags: string[];
8259
- version_id: string;
8260
- last_modified_date: Date;
8261
- custom_type_label: string;
8262
- author: {
8263
- email?: string | undefined;
8264
- id?: string | undefined;
8265
- first_name?: string | undefined;
8266
- last_name?: string | undefined;
8267
- uploadedAvatar?: string | undefined;
8268
- };
8269
- uid?: string | undefined;
8270
- preview_image?: string | undefined;
8271
- preview_summary?: string | undefined;
8272
- })[];
8273
- ai_abm_thread_id?: string | undefined;
8274
- }[];
8275
- total: number;
8276
- cursor?: string | undefined;
8277
- }, Error>;
8447
+ export declare function resetFirstDocumentListPage(queryClient: QueryClient): Promise<void>;
8278
8448
  export declare function getDocumentListOptions(args: GetDocumentListArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
8279
8449
  results: {
8280
8450
  language: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { z } from "zod";
2
3
  import { type AuthStrategy } from "../../EditorConfig";
3
4
  export interface OnboardingStep {
@@ -2,7 +2,7 @@ import { z } from "zod";
2
2
  import type { AuthStrategy } from "../../EditorConfig";
3
3
  declare const SimpleRole: z.ZodEnum<["SuperUser", "Owner", "Administrator", "Manager", "Writer", "Readonly"]>;
4
4
  export type SimpleRole = z.infer<typeof SimpleRole>;
5
- export declare function isAdminRole(role?: SimpleRole): boolean;
5
+ export declare function isAdminRole(role: SimpleRole): boolean;
6
6
  export declare function getRoleLabel(role: SimpleRole): string;
7
7
  declare const RolesPerTeamSpace: z.ZodRecord<z.ZodString, z.ZodObject<{
8
8
  rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { BooleanContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { BooleanField as BooleanT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ColorContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Color as ColorT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { DateContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Date as DateT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Embed as EmbedT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type TextInputProps } from "@prismicio/editor-ui";
2
3
  export declare const FieldTextInput: (props: TextInputProps & import("react").RefAttributes<HTMLInputElement>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
3
4
  export declare const fieldInputPadding: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { GeoPointContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { GeoPoint } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface GeoPointFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface EmptyCardContentProps {
2
3
  fieldLabel: string;
3
4
  isUpdating: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ImageAltControlProps {
2
3
  readOnly?: boolean;
3
4
  altText: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type CropperImage } from "../../../core/imageUtils";
2
3
  import { type CroppedImages } from "../CropperDialog";
3
4
  interface ImageFieldHeaderProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ImageFieldTitleProps {
2
3
  fieldLabel: string;
3
4
  imageLabel?: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ImageBlockData } from "../../../core/imageUtils";
2
3
  type LinkTo = ImageBlockData["linkTo"];
3
4
  interface ImageLinkControlProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type ImageContent, type ImageContentView } from "@prismicio/types-internal/lib/content";
2
3
  import { type CropperImage, type ImageBlockData } from "../../../core/imageUtils";
3
4
  import { type CroppedImages } from "../CropperDialog";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { CroppedImage } from "@prismicio/types-internal/lib/content";
2
3
  import type { CropperImage } from "../../../core/imageUtils";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ImageContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Image } from "@prismicio/types-internal/lib/customtypes";
3
4
  export interface ImageFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type MediaAssetType } from "@prismicio/editor-ui";
2
3
  import { type MediaAssetOrExternalImage } from "../../../core/MediaLibrary/hooks/mediaLibraryData";
3
4
  interface MediaDialogProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IntegrationItem } from "./integrationData";
2
3
  interface Props {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IntegrationFieldContent } from "@prismicio/types-internal/lib/content";
2
3
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface Props {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { IntegrationField as IntegrationFieldT } from "@prismicio/types-internal/lib/customtypes";
2
3
  import { type IntegrationItem } from "./integrationData";
3
4
  interface IntegrationSharedInputProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { IntegrationItem } from "./integrationData";
2
3
  interface Props {
3
4
  item: IntegrationItem;
@@ -40,11 +40,7 @@ declare const integrationItem: z.ZodObject<{
40
40
  imageURL?: string | undefined;
41
41
  }>;
42
42
  export type IntegrationItem = z.TypeOf<typeof integrationItem>;
43
- interface IntegrationCatalogReadArgs {
44
- catalogId: string;
45
- itemId: string;
46
- }
47
- export declare function useIntegrationCatalogRead(args: IntegrationCatalogReadArgs): {
43
+ export declare function useIntegrationCatalogRead(itemId: string): {
48
44
  item: {
49
45
  title: string;
50
46
  id: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  export interface DocumentCardProps {
3
4
  documentTypeId: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  interface DocumentsModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type FilterOption } from "@prismicio/editor-ui";
2
3
  interface DocumentsListFiltersProps {
3
4
  filteredLocales: Set<FilterOption>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { FilterOption } from "@prismicio/editor-ui";
2
3
  export declare function useFilters(fixedCustomTypes?: Set<string>, fixedTags?: Set<string>): {
3
4
  searchTerm: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IconName } from "@prismicio/editor-ui";
2
3
  export interface LinkDescriptionCardProps {
3
4
  url?: URL | string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FilledLinkContent, type LinkContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { type FieldSelectType } from "./LinkFieldActions";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type FieldSelectType = "web" | "document" | "media" | "any";
2
3
  interface Props {
3
4
  hasLink: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface LinkImageCardProps {
2
3
  url: string;
3
4
  title: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type NestableContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface LinkOrRepeatableLinkFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RepeatableContent } from "@prismicio/types-internal/lib/content";
2
3
  import { type Link } from "@prismicio/types-internal/lib/customtypes";
3
4
  interface RepeatableLinkFieldProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface RepeatableLinkFieldActionsProps {
2
3
  onDelete: () => void;
3
4
  onMoveUp: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface WebLinkOptions {
2
3
  newTab: boolean;
3
4
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { ErrorBoundary } from "@prismicio/editor-ui";
2
3
  import { type LinkContent } from "@prismicio/types-internal/lib/content";
3
4
  import type { Link } from "@prismicio/types-internal/lib/customtypes";
@@ -10,7 +11,7 @@ interface useLinkFieldParams {
10
11
  }
11
12
  export declare function useLinkField(params: useLinkFieldParams): {
12
13
  contentType: "ImageLink" | "FileLink" | "DocumentLink" | "ExternalLink" | "MediaLink" | "AnyLink" | undefined;
13
- selectType: "any" | "document" | "web" | "media" | undefined;
14
+ selectType: "any" | "document" | "media" | "web" | undefined;
14
15
  fieldValue: string;
15
16
  onDisplayTextChange: (displayText: string) => void;
16
17
  onValueChange: (value: string, options?: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Document, type TextContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { StaticCustomType, Text } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { type MetadataType } from "../core/service";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface BubbleMenuProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface ExtraItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface NodeItemsProps {
3
4
  labels: string[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LabelPopoverProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface DocumentDescriptionCardProps {
2
3
  docId: string;
3
4
  onEdit: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { Modal } from "../BubbleMenu";
3
4
  interface LinkItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LinkPopoverProps {
3
4
  editor: Editor;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetDocumentLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetMediaLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface SetWebLinkModalProps {
3
4
  open: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface MarkItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  import type { MenuItem } from "../models/MenuItems";
3
4
  interface NodeItemsProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { type IconName } from "@prismicio/editor-ui";
2
3
  import type { RichText } from "@prismicio/types-internal/lib/customtypes";
3
4
  import { Transaction } from "@tiptap/pm/state";
@@ -18,6 +19,7 @@ interface Props<TContent extends ExtendedRichTextContent> {
18
19
  */
19
20
  shouldReturnEmptyContent?: boolean;
20
21
  icon?: IconName;
22
+ "data-tag"?: string;
21
23
  }
22
24
  export declare function RichTextField<TContent extends ExtendedRichTextContent>(props: Props<TContent>): JSX.Element | null;
23
25
  export declare function isTransactionFromExternalUpdate(transaction: Transaction): boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { EmbedContent } from "@prismicio/types-internal/lib/content";
2
3
  import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
3
4
  import { type NodeViewProps } from "@tiptap/react";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
2
3
  import { type NodeViewProps } from "@tiptap/react";
3
4
  import { type ImageBlockData } from "../../../../core/imageUtils";
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Editor } from "@tiptap/core";
2
3
  interface LimitModalProps {
3
4
  editor: Editor;