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

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: {
@@ -462,34 +490,6 @@ declare module '@tiptap/core' {
462
490
  }
463
491
 
464
492
 
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
-
493
493
  declare module '@tiptap/core' {
494
494
  interface Commands<ReturnType> {
495
495
  iframe: {
@@ -545,6 +545,12 @@ declare module '@tiptap/core' {
545
545
  * the link mark with the given uid. Skips nested content (depth > 1).
546
546
  */
547
547
  insertLinkPreviewAfterLink: (uid: string, attrs: LinkPreviewAttributes) => ReturnType;
548
+ /**
549
+ * Insert a loading/preview node using the placement appropriate for the
550
+ * editor mode: single-preview (linkMode) appends at the document tail;
551
+ * multi-preview (Blog) inserts directly after the link's block.
552
+ */
553
+ insertLinkPreviewForMode: (args: InsertLinkPreviewForModeArgs) => ReturnType;
548
554
  };
549
555
  }
550
556
  }