@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.
- package/dist/DocumentEditor.d.ts +1 -0
- package/dist/EditorConfig.d.ts +22 -7
- package/dist/GroupAndNestableWidgetSwitch.d.ts +1 -0
- package/dist/GroupEditor.d.ts +1 -0
- package/dist/NestableWidgetSwitch.d.ts +1 -0
- package/dist/SectionEditor.d.ts +1 -0
- package/dist/SliceSelection.d.ts +1 -0
- package/dist/core/APIExplorer/APIExplorer.d.ts +1 -0
- package/dist/core/APIExplorer/components/APIExplorerRequest.d.ts +1 -0
- package/dist/core/APIExplorer/components/APIExplorerResponse.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigDialog.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/RequestFiltersFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInput.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormInputBase.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestLangFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestPaginationFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestRefFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTypeFieldset.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +1 -0
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1413 -1
- package/dist/core/EditorErrorBoundary.d.ts +1 -0
- package/dist/core/MediaLibrary/MediaLibrary.d.ts +1 -0
- package/dist/core/MediaLibrary/components/EmptyMediaList.d.ts +1 -0
- package/dist/core/MediaLibrary/components/MediaLibraryRenderError.d.ts +1 -0
- package/dist/core/MediaLibrary/components/MediaLibrarySkeleton.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/DefaultSidepaneContent.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/Sidepane.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/SidepaneContent.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneHeader.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneImage.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadata.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/MultiMediaMetadataTags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/SingleMediaMetadataTags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneMetadataTags/Tags.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Sidepane/components/SidepaneTagManager.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/AssetCount.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/Toolbar.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/AssetTypeFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/TagsFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/components/Toolbar/filters/UploaderFilter.d.ts +1 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +3 -3
- package/dist/core/OnboardingGuide/components/OnboardingCard.d.ts +1 -0
- package/dist/core/OnboardingGuide/components/OnboardingProgressStepper.d.ts +1 -0
- package/dist/core/OnboardingGuide/components/OnboardingTutorial.d.ts +1 -0
- package/dist/core/SelectionManager/SelectionManager.d.ts +1 -0
- package/dist/core/SeoMetadata/components/MetadataBadge.d.ts +1 -0
- package/dist/core/SeoMetadata/components/MetadataPreview.d.ts +1 -0
- package/dist/core/UnsplashLibrary/UnsplashLibrary.d.ts +1 -0
- package/dist/core/service/customType.d.ts +16319 -175
- package/dist/core/service/document.d.ts +218 -48
- package/dist/core/service/onboarding.d.ts +1 -0
- package/dist/core/service/role.d.ts +1 -1
- package/dist/fields/BooleanField.d.ts +1 -0
- package/dist/fields/ColorField/ColorField.d.ts +1 -0
- package/dist/fields/DateField.d.ts +1 -0
- package/dist/fields/EmbedField/EmbedField.d.ts +1 -0
- package/dist/fields/FieldTextInput.d.ts +1 -0
- package/dist/fields/GeoPointField/GeoPointField.d.ts +1 -0
- package/dist/fields/ImageField/Components/EmptyCardContent.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageAltControl.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageFieldHeader.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageFieldTitle.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
- package/dist/fields/ImageField/Components/NonEmptyCardContent.d.ts +1 -0
- package/dist/fields/ImageField/CropperDialog/CropperControls.d.ts +1 -0
- package/dist/fields/ImageField/ImageField.d.ts +1 -0
- package/dist/fields/ImageField/MediaDialog/MediaDialog.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationDialog.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationField.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationInput.d.ts +1 -0
- package/dist/fields/IntegrationField/IntegrationPreviewCard.d.ts +1 -0
- package/dist/fields/IntegrationField/integrationData.d.ts +1 -5
- package/dist/fields/LinkField/Documents/DocumentCard.d.ts +1 -0
- package/dist/fields/LinkField/Documents/DocumentsModal.d.ts +1 -0
- package/dist/fields/LinkField/Documents/Filters.d.ts +1 -0
- package/dist/fields/LinkField/Documents/useFilters.d.ts +1 -0
- package/dist/fields/LinkField/LinkDescriptionCard.d.ts +1 -0
- package/dist/fields/LinkField/LinkField.d.ts +1 -0
- package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
- package/dist/fields/LinkField/LinkImageCard.d.ts +1 -0
- package/dist/fields/LinkField/LinkOrRepeatableLinkField.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkFieldActions.d.ts +1 -0
- package/dist/fields/LinkField/WebLinks/WebLinkModal.d.ts +1 -0
- package/dist/fields/LinkField/useLinkField.d.ts +2 -1
- package/dist/fields/MetadataTextField.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/BubbleMenu.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/ExtraItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Label/LabelPopover.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/DocumentDescriptionCard.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/LinkPopover.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetDocumentLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetMediaLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/Link/SetWebLinkModal.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/MarkItems.d.ts +1 -0
- package/dist/fields/RichTextField/BubbleMenu/NodeItems.d.ts +1 -0
- package/dist/fields/RichTextField/RichTextField.d.ts +2 -0
- package/dist/fields/RichTextField/extensions/Embed/EmbedView.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Image/ImageView.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/TableLimitToast.d.ts +1 -0
- package/dist/fields/RichTextField/extensions/Table/menus/TableFloatingMenus.d.ts +1 -0
- package/dist/fields/SelectField.d.ts +1 -0
- package/dist/fields/TableField/TableField.d.ts +1 -0
- package/dist/fields/TimestampField.d.ts +1 -0
- package/dist/fields/UIDField.d.ts +1 -0
- package/dist/index.cjs.js +48 -48
- package/dist/index.es.js +16391 -16237
- package/dist/slices/SharedSliceEditor.d.ts +2 -1
- package/dist/zones/Components/LegacyCustomLabelSelect.d.ts +1 -0
- package/dist/zones/NonRepeatableZoneEditor.d.ts +1 -0
- package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
- package/dist/zones/SlicePrimaryZoneEditor.d.ts +1 -0
- package/dist/zones/SliceZoneEditor.d.ts +1 -0
- package/dist/zones/StaticZoneEditor.d.ts +1 -0
- 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
|
|
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
|
|
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
|
-
|
|
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
|
|
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: {
|
|
@@ -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
|
|
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 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: {
|
|
@@ -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
|
-
|
|
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 { 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" | "
|
|
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 { 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;
|