@select-org/select-post-builder 1.1.52 → 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 CHANGED
@@ -411,30 +411,14 @@ declare type WithoutModalProps = BaseProps & {
411
411
  export { }
412
412
 
413
413
 
414
- declare module '@tiptap/core' {
415
- interface Commands<ReturnType> {
416
- media: {
417
- /**
418
- * Insert a media node (image, video, or audio)
419
- */
420
- insertMedia: (options: MediaAttrs) => ReturnType;
421
- /**
422
- * Update media node attributes by uid
423
- */
424
- updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
425
- /**
426
- * Delete media node by uid
427
- */
428
- deleteMediaByUid: (uid: string) => ReturnType;
429
- /**
430
- * Update media upload progress by uid
431
- */
432
- updateMediaProgress: (uid: string, progress: number) => ReturnType;
433
- /**
434
- * Delete all media nodes that are currently uploading
435
- */
436
- deleteAllUploadingMedia: () => ReturnType;
437
- };
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;
438
422
  }
439
423
  }
440
424
 
@@ -478,6 +462,34 @@ declare module '@tiptap/core' {
478
462
  }
479
463
 
480
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
+
481
493
  declare module '@tiptap/core' {
482
494
  interface Commands<ReturnType> {
483
495
  iframe: {
@@ -494,6 +506,21 @@ declare module '@tiptap/core' {
494
506
  }
495
507
 
496
508
 
509
+ declare module '@tiptap/core' {
510
+ interface Commands<ReturnType> {
511
+ smartMediaUpload: {
512
+ insertMediaWithUpload: (params: {
513
+ source: File | Blob | string;
514
+ type: MediaNodeTypes;
515
+ mediaType?: MediaItemType;
516
+ caption?: string;
517
+ searchFrom?: ImageSearchFrom;
518
+ }) => ReturnType;
519
+ };
520
+ }
521
+ }
522
+
523
+
497
524
  declare module '@tiptap/core' {
498
525
  interface Commands<ReturnType> {
499
526
  linkPreview: {
@@ -521,18 +548,3 @@ declare module '@tiptap/core' {
521
548
  };
522
549
  }
523
550
  }
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
- }