@select-org/select-post-builder 1.1.50 → 1.1.52
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/index.d.ts +28 -15
- package/dist/post-builder.cjs.js +30 -30
- package/dist/post-builder.js +3273 -3215
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,16 @@ declare type BaseProps = {
|
|
|
69
69
|
blob: Blob;
|
|
70
70
|
voiceTime: number;
|
|
71
71
|
}) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Optional quick-GIF handoff. When provided, long-pressing Send emits the
|
|
74
|
+
* typed text via this callback (instead of sending a normal comment); the
|
|
75
|
+
* host fetches a GIF and sends it. Only the comment composer passes this.
|
|
76
|
+
*/
|
|
77
|
+
onQuickGif?: (params: {
|
|
78
|
+
text: string;
|
|
79
|
+
sendCrossMention: boolean;
|
|
80
|
+
onSent: () => void;
|
|
81
|
+
}) => void;
|
|
72
82
|
onGroupSelect?: (groupId: string) => void;
|
|
73
83
|
onDirtyStateChange?: (isDirty: boolean) => void;
|
|
74
84
|
onReady?: (controls: PostBuilderControls) => void;
|
|
@@ -257,6 +267,7 @@ declare interface PostBuilderI18nKeys {
|
|
|
257
267
|
uploadKey: string;
|
|
258
268
|
postKey: string;
|
|
259
269
|
crossPostKey: string;
|
|
270
|
+
crossPostLimitKey: string;
|
|
260
271
|
postTabKey: string;
|
|
261
272
|
blogTabKey: string;
|
|
262
273
|
pollTabKey: string;
|
|
@@ -299,9 +310,11 @@ declare interface PostBuilderI18nKeys {
|
|
|
299
310
|
addLinkPreviewKey: string;
|
|
300
311
|
removeLinkPreviewKey: string;
|
|
301
312
|
fetchingMetadataKey: string;
|
|
313
|
+
pollQuestionPlaceholderKey: string;
|
|
302
314
|
addTextOptionKey: string;
|
|
303
315
|
enterTextOptionKey: string;
|
|
304
316
|
pressEnterToAddKey: string;
|
|
317
|
+
quickGifGeneratingKey: string;
|
|
305
318
|
cancelUploadTitleKey: string;
|
|
306
319
|
cancelUploadDescriptionKey: string;
|
|
307
320
|
stayKey: string;
|
|
@@ -481,21 +494,6 @@ declare module '@tiptap/core' {
|
|
|
481
494
|
}
|
|
482
495
|
|
|
483
496
|
|
|
484
|
-
declare module '@tiptap/core' {
|
|
485
|
-
interface Commands<ReturnType> {
|
|
486
|
-
smartMediaUpload: {
|
|
487
|
-
insertMediaWithUpload: (params: {
|
|
488
|
-
source: File | Blob | string;
|
|
489
|
-
type: MediaNodeTypes;
|
|
490
|
-
mediaType?: MediaItemType;
|
|
491
|
-
caption?: string;
|
|
492
|
-
searchFrom?: ImageSearchFrom;
|
|
493
|
-
}) => ReturnType;
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
|
|
499
497
|
declare module '@tiptap/core' {
|
|
500
498
|
interface Commands<ReturnType> {
|
|
501
499
|
linkPreview: {
|
|
@@ -523,3 +521,18 @@ declare module '@tiptap/core' {
|
|
|
523
521
|
};
|
|
524
522
|
}
|
|
525
523
|
}
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
declare module '@tiptap/core' {
|
|
527
|
+
interface Commands<ReturnType> {
|
|
528
|
+
smartMediaUpload: {
|
|
529
|
+
insertMediaWithUpload: (params: {
|
|
530
|
+
source: File | Blob | string;
|
|
531
|
+
type: MediaNodeTypes;
|
|
532
|
+
mediaType?: MediaItemType;
|
|
533
|
+
caption?: string;
|
|
534
|
+
searchFrom?: ImageSearchFrom;
|
|
535
|
+
}) => ReturnType;
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
}
|