@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.
- package/dist/EditorConfig.d.ts +11 -0
- package/dist/GroupEditor.d.ts +2 -12
- package/dist/NestableWidgetSwitch.d.ts +1 -1
- package/dist/core/APIExplorer/components/APIExplorerContext.d.ts +39 -20
- package/dist/core/APIExplorer/components/Request/components/RequestAPIPathFieldset.d.ts +26 -0
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/types.d.ts +1 -11
- package/dist/core/APIExplorer/components/Request/components/RequestFormMultiInput.d.ts +6 -3
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/OrderingConfigDialog.d.ts +8 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/RequestOrderingsFieldset.d.ts +5 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/constants.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/index.d.ts +2 -0
- package/dist/core/APIExplorer/components/Request/components/RequestOrderingsFieldset/queryOrderingsToOrderings.d.ts +2 -0
- package/dist/core/APIExplorer/components/Request/components/RequestTagsFieldset.d.ts +11 -0
- package/dist/core/APIExplorer/components/Request/components/index.d.ts +1 -0
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +5 -2
- package/dist/core/APIExplorer/utils.d.ts +4 -2
- package/dist/core/Collaboration/CollaborationPresence.d.ts +7 -0
- package/dist/core/document.d.ts +1 -1
- package/dist/core/imageUtils.d.ts +0 -2
- package/dist/core/service/customType.d.ts +8897 -0
- package/dist/core/service/document.d.ts +30 -12
- package/dist/core/service/documentSearch.d.ts +5 -0
- package/dist/core/service/onboarding.d.ts +3 -3
- package/dist/fields/ColorField/ColorField.d.ts +1 -0
- package/dist/fields/ImageField/Components/ImageLinkControl.d.ts +1 -0
- package/dist/fields/ImageField/ImageField.d.ts +1 -0
- package/dist/fields/KeyTextField.d.ts +1 -1
- package/dist/fields/LinkField/Documents/documentsData.d.ts +1 -0
- package/dist/fields/LinkField/LinkField.d.ts +2 -0
- package/dist/fields/LinkField/LinkFieldActions.d.ts +1 -0
- package/dist/fields/LinkField/RepeatableLinkField/RepeatableLinkField.d.ts +1 -0
- package/dist/fields/RichTextField/RichTextField.d.ts +5 -3
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -1
- package/dist/fields/RichTextField/coreExtensions/Text.d.ts +2 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableCell.d.ts +2 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/TableHeaderCell.d.ts +2 -1
- package/dist/fields/RichTextField/extensions/Table/TableCell/utils.d.ts +2 -1
- package/dist/fields/RichTextField/extensions/Table/TableRow.d.ts +2 -1
- package/dist/fields/RichTextField/models/EditorExtension.d.ts +8 -7
- package/dist/index.cjs.js +45 -50
- package/dist/index.es.js +38942 -46469
- package/dist/slices/utils.d.ts +1 -1
- package/dist/zones/RepeatableZoneEditor.d.ts +1 -0
- package/package.json +65 -8
- package/dist/core/APIExplorer/components/Request/components/RequestFiltersFieldset/FilterConfigPathInput.d.ts +0 -9
|
@@ -205,6 +205,7 @@ export declare const documentMetaSchema: z.ZodObject<{
|
|
|
205
205
|
name: string;
|
|
206
206
|
is_master?: boolean | undefined;
|
|
207
207
|
}>;
|
|
208
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
208
209
|
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
209
210
|
status: z.ZodLiteral<"unclassified">;
|
|
210
211
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -326,6 +327,7 @@ export declare const documentMetaSchema: z.ZodObject<{
|
|
|
326
327
|
preview_image?: string | undefined;
|
|
327
328
|
preview_summary?: string | undefined;
|
|
328
329
|
})[];
|
|
330
|
+
ai_abm_thread_id?: string | undefined;
|
|
329
331
|
}, {
|
|
330
332
|
language: {
|
|
331
333
|
id: string;
|
|
@@ -361,6 +363,7 @@ export declare const documentMetaSchema: z.ZodObject<{
|
|
|
361
363
|
preview_summary?: string | undefined;
|
|
362
364
|
})[];
|
|
363
365
|
title?: string | null | undefined;
|
|
366
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
364
367
|
}>;
|
|
365
368
|
declare const getDocumentListSchema: z.ZodObject<{
|
|
366
369
|
total: z.ZodNumber;
|
|
@@ -391,6 +394,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
391
394
|
name: string;
|
|
392
395
|
is_master?: boolean | undefined;
|
|
393
396
|
}>;
|
|
397
|
+
ai_abm_thread_id: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
|
|
394
398
|
versions: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
395
399
|
status: z.ZodLiteral<"unclassified">;
|
|
396
400
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -512,6 +516,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
512
516
|
preview_image?: string | undefined;
|
|
513
517
|
preview_summary?: string | undefined;
|
|
514
518
|
})[];
|
|
519
|
+
ai_abm_thread_id?: string | undefined;
|
|
515
520
|
}, {
|
|
516
521
|
language: {
|
|
517
522
|
id: string;
|
|
@@ -547,6 +552,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
547
552
|
preview_summary?: string | undefined;
|
|
548
553
|
})[];
|
|
549
554
|
title?: string | null | undefined;
|
|
555
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
550
556
|
}>, "many">;
|
|
551
557
|
}, "strip", z.ZodTypeAny, {
|
|
552
558
|
results: {
|
|
@@ -584,6 +590,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
584
590
|
preview_image?: string | undefined;
|
|
585
591
|
preview_summary?: string | undefined;
|
|
586
592
|
})[];
|
|
593
|
+
ai_abm_thread_id?: string | undefined;
|
|
587
594
|
}[];
|
|
588
595
|
total: number;
|
|
589
596
|
cursor?: string | undefined;
|
|
@@ -623,6 +630,7 @@ declare const getDocumentListSchema: z.ZodObject<{
|
|
|
623
630
|
preview_summary?: string | undefined;
|
|
624
631
|
})[];
|
|
625
632
|
title?: string | null | undefined;
|
|
633
|
+
ai_abm_thread_id?: string | null | undefined;
|
|
626
634
|
}[];
|
|
627
635
|
total: number;
|
|
628
636
|
cursor?: string | undefined;
|
|
@@ -1108,7 +1116,7 @@ export declare function createSearchParams<T extends string>(params: {
|
|
|
1108
1116
|
values: (string | undefined)[];
|
|
1109
1117
|
}[]): [string, string][];
|
|
1110
1118
|
export declare function getDocumentById(baseUrl: URL, authStrategy: AuthStrategy, id: string): Promise<DocumentMeta>;
|
|
1111
|
-
export declare const
|
|
1119
|
+
export declare const Document: z.ZodEffects<z.ZodUnknown, {
|
|
1112
1120
|
[x: string]: import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
1113
1121
|
type: string;
|
|
1114
1122
|
__TYPE__: "EmptyContent";
|
|
@@ -1460,7 +1468,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
1460
1468
|
content: ({
|
|
1461
1469
|
key: string;
|
|
1462
1470
|
} & {
|
|
1463
|
-
type: "
|
|
1471
|
+
type: "tableHeader" | "tableCell";
|
|
1464
1472
|
content: {
|
|
1465
1473
|
__TYPE__: "StructuredTextContent";
|
|
1466
1474
|
value: (({
|
|
@@ -2061,7 +2069,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2061
2069
|
content: ({
|
|
2062
2070
|
key: string;
|
|
2063
2071
|
} & {
|
|
2064
|
-
type: "
|
|
2072
|
+
type: "tableHeader" | "tableCell";
|
|
2065
2073
|
content: {
|
|
2066
2074
|
__TYPE__: "StructuredTextContent";
|
|
2067
2075
|
value: (({
|
|
@@ -2303,6 +2311,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2303
2311
|
};
|
|
2304
2312
|
repeat: {
|
|
2305
2313
|
__TYPE__: "GroupItemContent";
|
|
2314
|
+
key: string;
|
|
2306
2315
|
value: [string, import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
2307
2316
|
type: string;
|
|
2308
2317
|
__TYPE__: "EmptyContent";
|
|
@@ -2654,7 +2663,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
2654
2663
|
content: ({
|
|
2655
2664
|
key: string;
|
|
2656
2665
|
} & {
|
|
2657
|
-
type: "
|
|
2666
|
+
type: "tableHeader" | "tableCell";
|
|
2658
2667
|
content: {
|
|
2659
2668
|
__TYPE__: "StructuredTextContent";
|
|
2660
2669
|
value: (({
|
|
@@ -3246,7 +3255,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
3246
3255
|
content: ({
|
|
3247
3256
|
key: string;
|
|
3248
3257
|
} & {
|
|
3249
|
-
type: "
|
|
3258
|
+
type: "tableHeader" | "tableCell";
|
|
3250
3259
|
content: {
|
|
3251
3260
|
__TYPE__: "StructuredTextContent";
|
|
3252
3261
|
value: (({
|
|
@@ -3488,6 +3497,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
3488
3497
|
};
|
|
3489
3498
|
items: {
|
|
3490
3499
|
__TYPE__: "GroupItemContent";
|
|
3500
|
+
key: string;
|
|
3491
3501
|
value: [string, import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
3492
3502
|
type: string;
|
|
3493
3503
|
__TYPE__: "EmptyContent";
|
|
@@ -3839,7 +3849,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
3839
3849
|
content: ({
|
|
3840
3850
|
key: string;
|
|
3841
3851
|
} & {
|
|
3842
|
-
type: "
|
|
3852
|
+
type: "tableHeader" | "tableCell";
|
|
3843
3853
|
content: {
|
|
3844
3854
|
__TYPE__: "StructuredTextContent";
|
|
3845
3855
|
value: (({
|
|
@@ -4427,7 +4437,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
4427
4437
|
content: ({
|
|
4428
4438
|
key: string;
|
|
4429
4439
|
} & {
|
|
4430
|
-
type: "
|
|
4440
|
+
type: "tableHeader" | "tableCell";
|
|
4431
4441
|
content: {
|
|
4432
4442
|
__TYPE__: "StructuredTextContent";
|
|
4433
4443
|
value: (({
|
|
@@ -4669,6 +4679,7 @@ export declare const documentSchema: z.ZodEffects<z.ZodType<unknown, z.ZodTypeDe
|
|
|
4669
4679
|
}[];
|
|
4670
4680
|
};
|
|
4671
4681
|
}, unknown>;
|
|
4682
|
+
export type Document = z.TypeOf<typeof Document>;
|
|
4672
4683
|
export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
4673
4684
|
key: string;
|
|
4674
4685
|
name: string;
|
|
@@ -5027,7 +5038,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
5027
5038
|
content: ({
|
|
5028
5039
|
key: string;
|
|
5029
5040
|
} & {
|
|
5030
|
-
type: "
|
|
5041
|
+
type: "tableHeader" | "tableCell";
|
|
5031
5042
|
content: {
|
|
5032
5043
|
__TYPE__: "StructuredTextContent";
|
|
5033
5044
|
value: (({
|
|
@@ -5269,6 +5280,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
5269
5280
|
};
|
|
5270
5281
|
repeat: {
|
|
5271
5282
|
__TYPE__: "GroupItemContent";
|
|
5283
|
+
key: string;
|
|
5272
5284
|
value: [string, import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
5273
5285
|
type: string;
|
|
5274
5286
|
__TYPE__: "EmptyContent";
|
|
@@ -5620,7 +5632,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
5620
5632
|
content: ({
|
|
5621
5633
|
key: string;
|
|
5622
5634
|
} & {
|
|
5623
|
-
type: "
|
|
5635
|
+
type: "tableHeader" | "tableCell";
|
|
5624
5636
|
content: {
|
|
5625
5637
|
__TYPE__: "StructuredTextContent";
|
|
5626
5638
|
value: (({
|
|
@@ -6215,7 +6227,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
6215
6227
|
content: ({
|
|
6216
6228
|
key: string;
|
|
6217
6229
|
} & {
|
|
6218
|
-
type: "
|
|
6230
|
+
type: "tableHeader" | "tableCell";
|
|
6219
6231
|
content: {
|
|
6220
6232
|
__TYPE__: "StructuredTextContent";
|
|
6221
6233
|
value: (({
|
|
@@ -6457,6 +6469,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
6457
6469
|
};
|
|
6458
6470
|
items: {
|
|
6459
6471
|
__TYPE__: "GroupItemContent";
|
|
6472
|
+
key: string;
|
|
6460
6473
|
value: [string, import("@prismicio/types-internal/lib/content").GroupContent | {
|
|
6461
6474
|
type: string;
|
|
6462
6475
|
__TYPE__: "EmptyContent";
|
|
@@ -6808,7 +6821,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
6808
6821
|
content: ({
|
|
6809
6822
|
key: string;
|
|
6810
6823
|
} & {
|
|
6811
|
-
type: "
|
|
6824
|
+
type: "tableHeader" | "tableCell";
|
|
6812
6825
|
content: {
|
|
6813
6826
|
__TYPE__: "StructuredTextContent";
|
|
6814
6827
|
value: (({
|
|
@@ -7399,7 +7412,7 @@ export declare const sliceItemContentSchema: z.ZodEffects<z.ZodUnknown, {
|
|
|
7399
7412
|
content: ({
|
|
7400
7413
|
key: string;
|
|
7401
7414
|
} & {
|
|
7402
|
-
type: "
|
|
7415
|
+
type: "tableHeader" | "tableCell";
|
|
7403
7416
|
content: {
|
|
7404
7417
|
__TYPE__: "StructuredTextContent";
|
|
7405
7418
|
value: (({
|
|
@@ -7688,6 +7701,7 @@ export declare function useDocumentList(args: GetDocumentListArgs): import("@tan
|
|
|
7688
7701
|
preview_image?: string | undefined;
|
|
7689
7702
|
preview_summary?: string | undefined;
|
|
7690
7703
|
})[];
|
|
7704
|
+
ai_abm_thread_id?: string | undefined;
|
|
7691
7705
|
}[];
|
|
7692
7706
|
total: number;
|
|
7693
7707
|
cursor?: string | undefined;
|
|
@@ -7728,6 +7742,7 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7728
7742
|
preview_image?: string | undefined;
|
|
7729
7743
|
preview_summary?: string | undefined;
|
|
7730
7744
|
})[];
|
|
7745
|
+
ai_abm_thread_id?: string | undefined;
|
|
7731
7746
|
}[];
|
|
7732
7747
|
total: number;
|
|
7733
7748
|
cursor?: string | undefined;
|
|
@@ -7767,6 +7782,7 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7767
7782
|
preview_image?: string | undefined;
|
|
7768
7783
|
preview_summary?: string | undefined;
|
|
7769
7784
|
})[];
|
|
7785
|
+
ai_abm_thread_id?: string | undefined;
|
|
7770
7786
|
}[];
|
|
7771
7787
|
total: number;
|
|
7772
7788
|
cursor?: string | undefined;
|
|
@@ -7807,6 +7823,7 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7807
7823
|
preview_image?: string | undefined;
|
|
7808
7824
|
preview_summary?: string | undefined;
|
|
7809
7825
|
})[];
|
|
7826
|
+
ai_abm_thread_id?: string | undefined;
|
|
7810
7827
|
}[];
|
|
7811
7828
|
total: number;
|
|
7812
7829
|
cursor?: string | undefined;
|
|
@@ -7848,6 +7865,7 @@ export declare function getDocumentListOptions(args: GetDocumentListArgs): impor
|
|
|
7848
7865
|
preview_image?: string | undefined;
|
|
7849
7866
|
preview_summary?: string | undefined;
|
|
7850
7867
|
})[];
|
|
7868
|
+
ai_abm_thread_id?: string | undefined;
|
|
7851
7869
|
}[];
|
|
7852
7870
|
total: number;
|
|
7853
7871
|
cursor?: string | undefined;
|
|
@@ -54,6 +54,7 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
54
54
|
preview_image?: string | undefined;
|
|
55
55
|
preview_summary?: string | undefined;
|
|
56
56
|
})[];
|
|
57
|
+
ai_abm_thread_id?: string | undefined;
|
|
57
58
|
}[];
|
|
58
59
|
} | {
|
|
59
60
|
results: {
|
|
@@ -135,6 +136,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
135
136
|
preview_image?: string | undefined;
|
|
136
137
|
preview_summary?: string | undefined;
|
|
137
138
|
})[];
|
|
139
|
+
ai_abm_thread_id?: string | undefined;
|
|
138
140
|
}[];
|
|
139
141
|
} | {
|
|
140
142
|
results: {
|
|
@@ -202,6 +204,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
202
204
|
preview_image?: string | undefined;
|
|
203
205
|
preview_summary?: string | undefined;
|
|
204
206
|
})[];
|
|
207
|
+
ai_abm_thread_id?: string | undefined;
|
|
205
208
|
}[];
|
|
206
209
|
} | {
|
|
207
210
|
results: {
|
|
@@ -285,6 +288,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
285
288
|
preview_image?: string | undefined;
|
|
286
289
|
preview_summary?: string | undefined;
|
|
287
290
|
})[];
|
|
291
|
+
ai_abm_thread_id?: string | undefined;
|
|
288
292
|
}[];
|
|
289
293
|
} | {
|
|
290
294
|
results: {
|
|
@@ -369,6 +373,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
369
373
|
preview_image?: string | undefined;
|
|
370
374
|
preview_summary?: string | undefined;
|
|
371
375
|
})[];
|
|
376
|
+
ai_abm_thread_id?: string | undefined;
|
|
372
377
|
}[];
|
|
373
378
|
} | {
|
|
374
379
|
results: {
|
|
@@ -25,19 +25,19 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
25
25
|
starterId?: string | null | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
completedSteps: string[];
|
|
29
|
-
isDismissed: boolean;
|
|
30
28
|
context: {
|
|
31
29
|
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
32
30
|
starterId?: string | null | undefined;
|
|
33
31
|
};
|
|
34
|
-
}, {
|
|
35
32
|
completedSteps: string[];
|
|
36
33
|
isDismissed: boolean;
|
|
34
|
+
}, {
|
|
37
35
|
context: {
|
|
38
36
|
framework?: unknown;
|
|
39
37
|
starterId?: string | null | undefined;
|
|
40
38
|
};
|
|
39
|
+
completedSteps: string[];
|
|
40
|
+
isDismissed: boolean;
|
|
41
41
|
}>;
|
|
42
42
|
export type OnboardingState = z.infer<typeof onboardingStateSchema>;
|
|
43
43
|
export type OnboardingFramework = OnboardingState["context"]["framework"];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { ImageContent } from "@prismicio/types-internal/lib/content";
|
|
3
3
|
import type { Image } from "@prismicio/types-internal/lib/customtypes";
|
|
4
4
|
export interface ImageFieldProps {
|
|
5
|
+
id: string | undefined;
|
|
5
6
|
content: ImageContent | undefined;
|
|
6
7
|
field: Image;
|
|
7
8
|
readOnly: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type TextContent } from "@prismicio/types-internal/lib/content";
|
|
2
2
|
import type { Text } from "@prismicio/types-internal/lib/customtypes";
|
|
3
3
|
import { type ReactNode } from "react";
|
|
4
4
|
interface Props {
|
|
@@ -10,6 +10,7 @@ interface LinkFieldProps {
|
|
|
10
10
|
onContentChange: (content: LinkContent | undefined) => void;
|
|
11
11
|
appearance?: LinkFieldAppearance;
|
|
12
12
|
backgroundColor?: "transparent" | "grey1";
|
|
13
|
+
readOnly: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare function LinkField(props: LinkFieldProps): JSX.Element;
|
|
15
16
|
interface GetFieldIconArgs {
|
|
@@ -27,6 +28,7 @@ interface FilledLinkFieldProps {
|
|
|
27
28
|
};
|
|
28
29
|
content: FilledLinkContent | undefined;
|
|
29
30
|
onContentChange: (content: FilledLinkContent | undefined) => void;
|
|
31
|
+
readOnly: boolean;
|
|
30
32
|
}
|
|
31
33
|
export declare function FilledLinkField(props: FilledLinkFieldProps): JSX.Element;
|
|
32
34
|
export {};
|
|
@@ -6,6 +6,7 @@ interface RepeatableLinkFieldProps {
|
|
|
6
6
|
field: Link;
|
|
7
7
|
content: RepeatableContent | undefined;
|
|
8
8
|
onContentChange: (content: RepeatableContent) => void;
|
|
9
|
+
readOnly: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare function RepeatableLinkField(props: RepeatableLinkFieldProps): JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -7,13 +7,15 @@ interface Props<TContent extends ExtendedRichTextContent> {
|
|
|
7
7
|
content: TContent | undefined;
|
|
8
8
|
field: RichText;
|
|
9
9
|
readOnly: boolean;
|
|
10
|
-
onContentChange: (content: TContent | undefined) => void;
|
|
11
10
|
padding?: "normal" | "zero";
|
|
12
11
|
scroll?: "hidden" | "x-auto";
|
|
13
|
-
|
|
12
|
+
onContentChange: (content: TContent | undefined) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Checks `editor.isEmpty` before calling `onContentChange`.
|
|
14
15
|
* - When `true`, the current structure of the document will be returned, even if it has no content.
|
|
15
16
|
* - When `false`, `undefined` will be returned.
|
|
16
|
-
* @default false
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
17
19
|
shouldReturnEmptyContent?: boolean;
|
|
18
20
|
icon?: IconName;
|
|
19
21
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
2
3
|
declare const _default: {
|
|
3
4
|
component: import("@tiptap/core").Node<import("@tiptap/extension-list-item").ListItemOptions, any>;
|
|
4
5
|
converter: {
|
|
5
|
-
fromPrismic(schema: Schema<any, any>): (list: {
|
|
6
|
+
fromPrismic(id: string, schema: Schema<any, any>, threads?: ThreadData<BaseMetadata>[] | undefined): (list: {
|
|
6
7
|
type: "image" | "em" | "embed" | "strong" | "paragraph" | "heading1" | "heading2" | "heading3" | "heading4" | "heading5" | "heading6" | "preformatted" | "hyperlink" | "list-item" | "o-list-item" | "rtl";
|
|
7
8
|
content: {
|
|
8
9
|
text: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import type { TextBlock } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import type { RichTextNodeType } from "@prismicio/types-internal/lib/customtypes";
|
|
3
4
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
@@ -13,7 +14,7 @@ declare const EditorText: {
|
|
|
13
14
|
name: string;
|
|
14
15
|
component: import("@tiptap/core").Node<any, any>;
|
|
15
16
|
converter: {
|
|
16
|
-
fromPrismic(schema: Schema): (extensionName: string, textBlock: TextBlock, preventHardbreaks?: boolean) => ProsemirrorNode[];
|
|
17
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (extensionName: string, textBlock: TextBlock, preventHardbreaks?: boolean) => ProsemirrorNode[];
|
|
17
18
|
toPrismic(node: ProsemirrorNode, nodeType: RichTextNodeType, attributes?: {
|
|
18
19
|
direction?: Direction;
|
|
19
20
|
}): TextBlock;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import { Node as ProseMirrorNode, type Schema } from "@tiptap/pm/model";
|
|
3
4
|
type TableRowBlock = TableContent["content"][number];
|
|
4
5
|
type TableCellOrHeaderBlock = TableRowBlock["content"][number];
|
|
5
6
|
export declare const TableCell: import("@tiptap/core").Node<import("@tiptap/extension-table-cell").TableCellOptions, any>;
|
|
6
7
|
export declare const tableCellConverter: {
|
|
7
|
-
fromPrismic(schema: Schema): (cell: TableCellOrHeaderBlock) => ProseMirrorNode;
|
|
8
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (cell: TableCellOrHeaderBlock) => ProseMirrorNode;
|
|
8
9
|
toPrismic(node: ProseMirrorNode): TableCellOrHeaderBlock;
|
|
9
10
|
};
|
|
10
11
|
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
3
4
|
type TableRowBlock = TableContent["content"][number];
|
|
4
5
|
type TableCellOrHeaderBlock = TableRowBlock["content"][number];
|
|
5
6
|
export declare const TableHeader: import("@tiptap/core").Node<import("@tiptap/extension-table-header").TableHeaderOptions, any>;
|
|
6
7
|
export declare const tableHeaderCellConverter: {
|
|
7
|
-
fromPrismic(schema: Schema): (header: TableCellOrHeaderBlock) => ProseMirrorNode;
|
|
8
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (header: TableCellOrHeaderBlock) => ProseMirrorNode;
|
|
8
9
|
toPrismic(node: ProseMirrorNode): TableCellOrHeaderBlock;
|
|
9
10
|
};
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import type { Block } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
3
|
-
export declare function mapTableCellToParagraph(schema: Schema, block: Block): ProseMirrorNode | undefined;
|
|
4
|
+
export declare function mapTableCellToParagraph(id: string, schema: Schema, block: Block, threads?: ThreadData<BaseMetadata>[]): ProseMirrorNode | undefined;
|
|
4
5
|
interface CreateButtonElementArgs {
|
|
5
6
|
title: string;
|
|
6
7
|
className: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import { TableContent } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import type { Node as ProseMirrorNode, Schema } from "@tiptap/pm/model";
|
|
3
4
|
type TableRowBlock = TableContent["content"][number];
|
|
4
5
|
export declare const TableRow: import("@tiptap/core").Node<import("@tiptap/extension-table-row").TableRowOptions, any>;
|
|
5
6
|
export declare const tableRowConverter: {
|
|
6
|
-
fromPrismic(schema: Schema): (row: TableRowBlock) => ProseMirrorNode;
|
|
7
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (row: TableRowBlock) => ProseMirrorNode;
|
|
7
8
|
toPrismic(node: ProseMirrorNode): TableRowBlock;
|
|
8
9
|
};
|
|
9
10
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseMetadata, ThreadData } from "@liveblocks/core";
|
|
1
2
|
import type { EmbedBlock, ImageBlock, TextBlock } from "@prismicio/types-internal/lib/content";
|
|
2
3
|
import type { Node } from "@tiptap/core";
|
|
3
4
|
import type { Node as ProsemirrorNode, Schema } from "@tiptap/pm/model";
|
|
@@ -22,7 +23,7 @@ export type Extension = WidgetExtension | DocumentExtension;
|
|
|
22
23
|
export type WidgetExtension = MarkExtension | NodeExtension;
|
|
23
24
|
export type ExtensionPlaceholder = string | ((nodeAttrs: ProsemirrorNode["attrs"]) => string | undefined) | undefined;
|
|
24
25
|
export type DocumentConverterReturnType<T extends ExtendedRichTextContent> = {
|
|
25
|
-
fromPrismic(schema: Schema, nodeTypes: Set<ExtendedRichTextNodeType>, content: T): ProsemirrorNode | undefined;
|
|
26
|
+
fromPrismic(id: string, schema: Schema, nodeTypes: Set<ExtendedRichTextNodeType>, content: T, threads?: ThreadData<BaseMetadata>[]): ProsemirrorNode | undefined;
|
|
26
27
|
toPrismic(node: ProsemirrorNode): T | undefined;
|
|
27
28
|
};
|
|
28
29
|
export declare class DocumentExtension {
|
|
@@ -39,7 +40,7 @@ export declare class TextExtension {
|
|
|
39
40
|
readonly name: string;
|
|
40
41
|
readonly component: Node;
|
|
41
42
|
readonly converter: {
|
|
42
|
-
fromPrismic(schema: Schema): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
43
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
43
44
|
toPrismic(elmt: ProsemirrorNode): TextBlock | readonly TextBlock[] | undefined;
|
|
44
45
|
};
|
|
45
46
|
readonly placeholder?: ExtensionPlaceholder;
|
|
@@ -47,7 +48,7 @@ export declare class TextExtension {
|
|
|
47
48
|
extType: ExtensionType.Node;
|
|
48
49
|
nodeType: NodeType.Text;
|
|
49
50
|
constructor(richTextNodeTypes: ExtendedRichTextNodeType[], name: string, component: Node, converter: {
|
|
50
|
-
fromPrismic(schema: Schema): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
51
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
51
52
|
toPrismic(elmt: ProsemirrorNode): TextBlock | readonly TextBlock[] | undefined;
|
|
52
53
|
}, placeholder?: ExtensionPlaceholder, lockedFormat?: boolean);
|
|
53
54
|
}
|
|
@@ -85,13 +86,13 @@ export declare class ImageExtension {
|
|
|
85
86
|
export declare class HeadingTextExtension extends TextExtension {
|
|
86
87
|
readonly levels: readonly Level[];
|
|
87
88
|
constructor(richTextNodeTypes: ExtendedRichTextNodeType[], Component: Node, levels: readonly Level[], Converter: {
|
|
88
|
-
fromPrismic(schema: Schema): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
89
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
89
90
|
toPrismic(elmt: ProsemirrorNode): TextBlock | undefined;
|
|
90
91
|
}, placeholder?: ExtensionPlaceholder);
|
|
91
92
|
}
|
|
92
93
|
export declare class ListExtension extends TextExtension {
|
|
93
94
|
constructor(richTextNodeTypes: ExtendedRichTextNodeType[], name: string, Component: Node, Converter: {
|
|
94
|
-
fromPrismic(schema: Schema): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
95
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TextBlock) => ProsemirrorNode | undefined;
|
|
95
96
|
toPrismic(elmt: ProsemirrorNode): readonly TextBlock[];
|
|
96
97
|
});
|
|
97
98
|
}
|
|
@@ -100,13 +101,13 @@ export declare class TableExtension {
|
|
|
100
101
|
readonly name: string;
|
|
101
102
|
readonly component: Node[];
|
|
102
103
|
readonly converter: {
|
|
103
|
-
fromPrismic(schema: Schema): (elmt: TableBlock) => ProsemirrorNode | undefined;
|
|
104
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TableBlock) => ProsemirrorNode | undefined;
|
|
104
105
|
toPrismic(elmt: ProsemirrorNode): TableBlock | undefined;
|
|
105
106
|
};
|
|
106
107
|
extType: ExtensionType.Node;
|
|
107
108
|
nodeType: NodeType.Table;
|
|
108
109
|
constructor(richTextNodeTypes: ExtendedRichTextNodeType[], name: string, component: Node[], converter: {
|
|
109
|
-
fromPrismic(schema: Schema): (elmt: TableBlock) => ProsemirrorNode | undefined;
|
|
110
|
+
fromPrismic(id: string, schema: Schema, threads?: ThreadData<BaseMetadata>[]): (elmt: TableBlock) => ProsemirrorNode | undefined;
|
|
110
111
|
toPrismic(elmt: ProsemirrorNode): TableBlock | undefined;
|
|
111
112
|
});
|
|
112
113
|
}
|