@select-org/select-post-builder 1.1.53 → 1.1.54

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
@@ -423,6 +423,34 @@ declare module 'axios' {
423
423
  }
424
424
 
425
425
 
426
+ declare module '@tiptap/core' {
427
+ interface Commands<ReturnType> {
428
+ media: {
429
+ /**
430
+ * Insert a media node (image, video, or audio)
431
+ */
432
+ insertMedia: (options: MediaAttrs) => ReturnType;
433
+ /**
434
+ * Update media node attributes by uid
435
+ */
436
+ updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
437
+ /**
438
+ * Delete media node by uid
439
+ */
440
+ deleteMediaByUid: (uid: string) => ReturnType;
441
+ /**
442
+ * Update media upload progress by uid
443
+ */
444
+ updateMediaProgress: (uid: string, progress: number) => ReturnType;
445
+ /**
446
+ * Delete all media nodes that are currently uploading
447
+ */
448
+ deleteAllUploadingMedia: () => ReturnType;
449
+ };
450
+ }
451
+ }
452
+
453
+
426
454
  declare module '@tiptap/core' {
427
455
  interface Commands<ReturnType> {
428
456
  poll: {
@@ -464,27 +492,14 @@ declare module '@tiptap/core' {
464
492
 
465
493
  declare module '@tiptap/core' {
466
494
  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;
495
+ smartMediaUpload: {
496
+ insertMediaWithUpload: (params: {
497
+ source: File | Blob | string;
498
+ type: MediaNodeTypes;
499
+ mediaType?: MediaItemType;
500
+ caption?: string;
501
+ searchFrom?: ImageSearchFrom;
502
+ }) => ReturnType;
488
503
  };
489
504
  }
490
505
  }
@@ -506,21 +521,6 @@ declare module '@tiptap/core' {
506
521
  }
507
522
 
508
523
 
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
-
524
524
  declare module '@tiptap/core' {
525
525
  interface Commands<ReturnType> {
526
526
  linkPreview: {