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

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
@@ -490,21 +490,6 @@ declare module '@tiptap/core' {
490
490
  }
491
491
 
492
492
 
493
- declare module '@tiptap/core' {
494
- interface Commands<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;
503
- };
504
- }
505
- }
506
-
507
-
508
493
  declare module '@tiptap/core' {
509
494
  interface Commands<ReturnType> {
510
495
  iframe: {
@@ -521,6 +506,21 @@ declare module '@tiptap/core' {
521
506
  }
522
507
 
523
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
+
524
524
  declare module '@tiptap/core' {
525
525
  interface Commands<ReturnType> {
526
526
  linkPreview: {
@@ -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
  }