@select-org/select-post-builder 1.1.51 → 1.1.53
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 +38 -24
- package/dist/post-builder.cjs.js +26 -26
- package/dist/post-builder.css +1 -1
- package/dist/post-builder.js +5251 -5214
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -76,6 +76,8 @@ declare type BaseProps = {
|
|
|
76
76
|
*/
|
|
77
77
|
onQuickGif?: (params: {
|
|
78
78
|
text: string;
|
|
79
|
+
sendCrossMention: boolean;
|
|
80
|
+
onSent: () => void;
|
|
79
81
|
}) => void;
|
|
80
82
|
onGroupSelect?: (groupId: string) => void;
|
|
81
83
|
onDirtyStateChange?: (isDirty: boolean) => void;
|
|
@@ -409,30 +411,14 @@ declare type WithoutModalProps = BaseProps & {
|
|
|
409
411
|
export { }
|
|
410
412
|
|
|
411
413
|
|
|
412
|
-
declare module '
|
|
413
|
-
interface
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
* Update media node attributes by uid
|
|
421
|
-
*/
|
|
422
|
-
updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
|
|
423
|
-
/**
|
|
424
|
-
* Delete media node by uid
|
|
425
|
-
*/
|
|
426
|
-
deleteMediaByUid: (uid: string) => ReturnType;
|
|
427
|
-
/**
|
|
428
|
-
* Update media upload progress by uid
|
|
429
|
-
*/
|
|
430
|
-
updateMediaProgress: (uid: string, progress: number) => ReturnType;
|
|
431
|
-
/**
|
|
432
|
-
* Delete all media nodes that are currently uploading
|
|
433
|
-
*/
|
|
434
|
-
deleteAllUploadingMedia: () => ReturnType;
|
|
435
|
-
};
|
|
414
|
+
declare module 'axios' {
|
|
415
|
+
interface AxiosRequestConfig {
|
|
416
|
+
/**
|
|
417
|
+
* When true, the response interceptor won't show an error toast for this
|
|
418
|
+
* request. Use when the caller has its own fallback/handling and a failure
|
|
419
|
+
* here is not (yet) user-facing.
|
|
420
|
+
*/
|
|
421
|
+
suppressErrorToast?: boolean;
|
|
436
422
|
}
|
|
437
423
|
}
|
|
438
424
|
|
|
@@ -476,6 +462,34 @@ declare module '@tiptap/core' {
|
|
|
476
462
|
}
|
|
477
463
|
|
|
478
464
|
|
|
465
|
+
declare module '@tiptap/core' {
|
|
466
|
+
interface Commands<ReturnType> {
|
|
467
|
+
media: {
|
|
468
|
+
/**
|
|
469
|
+
* Insert a media node (image, video, or audio)
|
|
470
|
+
*/
|
|
471
|
+
insertMedia: (options: MediaAttrs) => ReturnType;
|
|
472
|
+
/**
|
|
473
|
+
* Update media node attributes by uid
|
|
474
|
+
*/
|
|
475
|
+
updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
|
|
476
|
+
/**
|
|
477
|
+
* Delete media node by uid
|
|
478
|
+
*/
|
|
479
|
+
deleteMediaByUid: (uid: string) => ReturnType;
|
|
480
|
+
/**
|
|
481
|
+
* Update media upload progress by uid
|
|
482
|
+
*/
|
|
483
|
+
updateMediaProgress: (uid: string, progress: number) => ReturnType;
|
|
484
|
+
/**
|
|
485
|
+
* Delete all media nodes that are currently uploading
|
|
486
|
+
*/
|
|
487
|
+
deleteAllUploadingMedia: () => ReturnType;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
479
493
|
declare module '@tiptap/core' {
|
|
480
494
|
interface Commands<ReturnType> {
|
|
481
495
|
iframe: {
|