reactjs-tiptap-editor 0.2.28 → 0.2.29
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/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +56 -56
- package/lib/extension-bundle.d.ts +56 -56
- package/lib/extension-bundle.js +0 -5
- package/lib/index.d.cts +56 -56
- package/lib/index.d.ts +56 -56
- package/lib/locale-bundle.d.cts +56 -56
- package/lib/locale-bundle.d.ts +56 -56
- package/package.json +1 -1
|
@@ -729,6 +729,16 @@ declare module '@tiptap/core' {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
|
|
732
|
+
declare module '@tiptap/core' {
|
|
733
|
+
interface Commands<ReturnType> {
|
|
734
|
+
lineHeight: {
|
|
735
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
736
|
+
unsetLineHeight: () => ReturnType;
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
|
|
732
742
|
declare module '@tiptap/core' {
|
|
733
743
|
interface Commands<ReturnType> {
|
|
734
744
|
indent: {
|
|
@@ -745,16 +755,6 @@ declare module '@tiptap/core' {
|
|
|
745
755
|
}
|
|
746
756
|
|
|
747
757
|
|
|
748
|
-
declare module '@tiptap/core' {
|
|
749
|
-
interface Commands<ReturnType> {
|
|
750
|
-
lineHeight: {
|
|
751
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
752
|
-
unsetLineHeight: () => ReturnType;
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
758
758
|
declare module '@tiptap/core' {
|
|
759
759
|
interface Commands<ReturnType> {
|
|
760
760
|
imageUpload: {
|
|
@@ -775,16 +775,6 @@ declare module '@tiptap/core' {
|
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
|
|
778
|
-
declare module '@tiptap/core' {
|
|
779
|
-
interface Commands<ReturnType> {
|
|
780
|
-
tableCellBackground: {
|
|
781
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
782
|
-
unsetTableCellBackground: () => ReturnType;
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
|
|
788
778
|
declare module '@tiptap/core' {
|
|
789
779
|
interface Commands<ReturnType> {
|
|
790
780
|
columns: {
|
|
@@ -799,6 +789,16 @@ declare module '@tiptap/core' {
|
|
|
799
789
|
}
|
|
800
790
|
|
|
801
791
|
|
|
792
|
+
declare module '@tiptap/core' {
|
|
793
|
+
interface Commands<ReturnType> {
|
|
794
|
+
tableCellBackground: {
|
|
795
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
796
|
+
unsetTableCellBackground: () => ReturnType;
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
802
|
declare module '@tiptap/core' {
|
|
803
803
|
interface Commands<ReturnType> {
|
|
804
804
|
iframe: {
|
|
@@ -814,15 +814,6 @@ declare module '@tiptap/core' {
|
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
|
|
817
|
-
declare module '@tiptap/core' {
|
|
818
|
-
interface Commands<ReturnType> {
|
|
819
|
-
painter: {
|
|
820
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
821
|
-
};
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
|
|
826
817
|
declare module '@tiptap/core' {
|
|
827
818
|
interface Commands<ReturnType> {
|
|
828
819
|
search: {
|
|
@@ -840,11 +831,8 @@ declare module '@tiptap/core' {
|
|
|
840
831
|
|
|
841
832
|
declare module '@tiptap/core' {
|
|
842
833
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
name: string;
|
|
846
|
-
emoji: string;
|
|
847
|
-
}) => ReturnType;
|
|
834
|
+
painter: {
|
|
835
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
848
836
|
};
|
|
849
837
|
}
|
|
850
838
|
}
|
|
@@ -880,17 +868,11 @@ declare module '@tiptap/core' {
|
|
|
880
868
|
|
|
881
869
|
declare module '@tiptap/core' {
|
|
882
870
|
interface Commands<ReturnType> {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
declare module '@tiptap/core' {
|
|
891
|
-
interface Commands<ReturnType> {
|
|
892
|
-
attachment: {
|
|
893
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
871
|
+
emoji: {
|
|
872
|
+
setEmoji: (emoji: {
|
|
873
|
+
name: string;
|
|
874
|
+
emoji: string;
|
|
875
|
+
}) => ReturnType;
|
|
894
876
|
};
|
|
895
877
|
}
|
|
896
878
|
}
|
|
@@ -898,14 +880,8 @@ declare module '@tiptap/core' {
|
|
|
898
880
|
|
|
899
881
|
declare module '@tiptap/core' {
|
|
900
882
|
interface Commands<ReturnType> {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
* Insert a tweet
|
|
904
|
-
* @param options The tweet attributes
|
|
905
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
906
|
-
*/
|
|
907
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
908
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
883
|
+
excalidraw: {
|
|
884
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
909
885
|
};
|
|
910
886
|
}
|
|
911
887
|
}
|
|
@@ -933,9 +909,8 @@ declare module '@tiptap/core' {
|
|
|
933
909
|
|
|
934
910
|
declare module '@tiptap/core' {
|
|
935
911
|
interface Commands<ReturnType> {
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
912
|
+
attachment: {
|
|
913
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
939
914
|
};
|
|
940
915
|
}
|
|
941
916
|
}
|
|
@@ -949,3 +924,28 @@ declare module '@tiptap/core' {
|
|
|
949
924
|
};
|
|
950
925
|
}
|
|
951
926
|
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
drawer: {
|
|
932
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
declare module '@tiptap/core' {
|
|
940
|
+
interface Commands<ReturnType> {
|
|
941
|
+
twitter: {
|
|
942
|
+
/**
|
|
943
|
+
* Insert a tweet
|
|
944
|
+
* @param options The tweet attributes
|
|
945
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
946
|
+
*/
|
|
947
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
948
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
}
|
|
@@ -729,6 +729,16 @@ declare module '@tiptap/core' {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
|
|
732
|
+
declare module '@tiptap/core' {
|
|
733
|
+
interface Commands<ReturnType> {
|
|
734
|
+
lineHeight: {
|
|
735
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
736
|
+
unsetLineHeight: () => ReturnType;
|
|
737
|
+
};
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
|
|
732
742
|
declare module '@tiptap/core' {
|
|
733
743
|
interface Commands<ReturnType> {
|
|
734
744
|
indent: {
|
|
@@ -745,16 +755,6 @@ declare module '@tiptap/core' {
|
|
|
745
755
|
}
|
|
746
756
|
|
|
747
757
|
|
|
748
|
-
declare module '@tiptap/core' {
|
|
749
|
-
interface Commands<ReturnType> {
|
|
750
|
-
lineHeight: {
|
|
751
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
752
|
-
unsetLineHeight: () => ReturnType;
|
|
753
|
-
};
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
|
|
758
758
|
declare module '@tiptap/core' {
|
|
759
759
|
interface Commands<ReturnType> {
|
|
760
760
|
imageUpload: {
|
|
@@ -775,16 +775,6 @@ declare module '@tiptap/core' {
|
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
|
|
778
|
-
declare module '@tiptap/core' {
|
|
779
|
-
interface Commands<ReturnType> {
|
|
780
|
-
tableCellBackground: {
|
|
781
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
782
|
-
unsetTableCellBackground: () => ReturnType;
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
|
|
788
778
|
declare module '@tiptap/core' {
|
|
789
779
|
interface Commands<ReturnType> {
|
|
790
780
|
columns: {
|
|
@@ -799,6 +789,16 @@ declare module '@tiptap/core' {
|
|
|
799
789
|
}
|
|
800
790
|
|
|
801
791
|
|
|
792
|
+
declare module '@tiptap/core' {
|
|
793
|
+
interface Commands<ReturnType> {
|
|
794
|
+
tableCellBackground: {
|
|
795
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
796
|
+
unsetTableCellBackground: () => ReturnType;
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
802
|
declare module '@tiptap/core' {
|
|
803
803
|
interface Commands<ReturnType> {
|
|
804
804
|
iframe: {
|
|
@@ -814,15 +814,6 @@ declare module '@tiptap/core' {
|
|
|
814
814
|
}
|
|
815
815
|
|
|
816
816
|
|
|
817
|
-
declare module '@tiptap/core' {
|
|
818
|
-
interface Commands<ReturnType> {
|
|
819
|
-
painter: {
|
|
820
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
821
|
-
};
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
|
|
826
817
|
declare module '@tiptap/core' {
|
|
827
818
|
interface Commands<ReturnType> {
|
|
828
819
|
search: {
|
|
@@ -840,11 +831,8 @@ declare module '@tiptap/core' {
|
|
|
840
831
|
|
|
841
832
|
declare module '@tiptap/core' {
|
|
842
833
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
name: string;
|
|
846
|
-
emoji: string;
|
|
847
|
-
}) => ReturnType;
|
|
834
|
+
painter: {
|
|
835
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
848
836
|
};
|
|
849
837
|
}
|
|
850
838
|
}
|
|
@@ -880,17 +868,11 @@ declare module '@tiptap/core' {
|
|
|
880
868
|
|
|
881
869
|
declare module '@tiptap/core' {
|
|
882
870
|
interface Commands<ReturnType> {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
declare module '@tiptap/core' {
|
|
891
|
-
interface Commands<ReturnType> {
|
|
892
|
-
attachment: {
|
|
893
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
871
|
+
emoji: {
|
|
872
|
+
setEmoji: (emoji: {
|
|
873
|
+
name: string;
|
|
874
|
+
emoji: string;
|
|
875
|
+
}) => ReturnType;
|
|
894
876
|
};
|
|
895
877
|
}
|
|
896
878
|
}
|
|
@@ -898,14 +880,8 @@ declare module '@tiptap/core' {
|
|
|
898
880
|
|
|
899
881
|
declare module '@tiptap/core' {
|
|
900
882
|
interface Commands<ReturnType> {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
* Insert a tweet
|
|
904
|
-
* @param options The tweet attributes
|
|
905
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
906
|
-
*/
|
|
907
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
908
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
883
|
+
excalidraw: {
|
|
884
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
909
885
|
};
|
|
910
886
|
}
|
|
911
887
|
}
|
|
@@ -933,9 +909,8 @@ declare module '@tiptap/core' {
|
|
|
933
909
|
|
|
934
910
|
declare module '@tiptap/core' {
|
|
935
911
|
interface Commands<ReturnType> {
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
912
|
+
attachment: {
|
|
913
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
939
914
|
};
|
|
940
915
|
}
|
|
941
916
|
}
|
|
@@ -949,3 +924,28 @@ declare module '@tiptap/core' {
|
|
|
949
924
|
};
|
|
950
925
|
}
|
|
951
926
|
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
drawer: {
|
|
932
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
declare module '@tiptap/core' {
|
|
940
|
+
interface Commands<ReturnType> {
|
|
941
|
+
twitter: {
|
|
942
|
+
/**
|
|
943
|
+
* Insert a tweet
|
|
944
|
+
* @param options The tweet attributes
|
|
945
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
946
|
+
*/
|
|
947
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
948
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
949
|
+
};
|
|
950
|
+
}
|
|
951
|
+
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -325,11 +325,6 @@ function Xn(e) {
|
|
|
325
325
|
(l = a.current) != null && l.remove && ((h = a.current) == null || h.remove());
|
|
326
326
|
};
|
|
327
327
|
}, [n]), T(() => {
|
|
328
|
-
var l, h;
|
|
329
|
-
(l = a.current) != null && l.setOptions && ((h = a.current) == null || h.setOptions({
|
|
330
|
-
readOnly: e.editor.isEditable
|
|
331
|
-
}));
|
|
332
|
-
}, [a, e.editor.isEditable]), T(() => {
|
|
333
328
|
var l, h;
|
|
334
329
|
if ((l = a.current) != null && l.setOptions) {
|
|
335
330
|
const f = d(e.node.attrs);
|
package/lib/index.d.cts
CHANGED
|
@@ -298,6 +298,16 @@ declare module '@tiptap/core' {
|
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
|
|
301
|
+
declare module '@tiptap/core' {
|
|
302
|
+
interface Commands<ReturnType> {
|
|
303
|
+
lineHeight: {
|
|
304
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
305
|
+
unsetLineHeight: () => ReturnType;
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
301
311
|
declare module '@tiptap/core' {
|
|
302
312
|
interface Commands<ReturnType> {
|
|
303
313
|
indent: {
|
|
@@ -314,16 +324,6 @@ declare module '@tiptap/core' {
|
|
|
314
324
|
}
|
|
315
325
|
|
|
316
326
|
|
|
317
|
-
declare module '@tiptap/core' {
|
|
318
|
-
interface Commands<ReturnType> {
|
|
319
|
-
lineHeight: {
|
|
320
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
321
|
-
unsetLineHeight: () => ReturnType;
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
|
|
327
327
|
declare module '@tiptap/core' {
|
|
328
328
|
interface Commands<ReturnType> {
|
|
329
329
|
imageUpload: {
|
|
@@ -344,16 +344,6 @@ declare module '@tiptap/core' {
|
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
declare module '@tiptap/core' {
|
|
348
|
-
interface Commands<ReturnType> {
|
|
349
|
-
tableCellBackground: {
|
|
350
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
351
|
-
unsetTableCellBackground: () => ReturnType;
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
357
347
|
declare module '@tiptap/core' {
|
|
358
348
|
interface Commands<ReturnType> {
|
|
359
349
|
columns: {
|
|
@@ -368,6 +358,16 @@ declare module '@tiptap/core' {
|
|
|
368
358
|
}
|
|
369
359
|
|
|
370
360
|
|
|
361
|
+
declare module '@tiptap/core' {
|
|
362
|
+
interface Commands<ReturnType> {
|
|
363
|
+
tableCellBackground: {
|
|
364
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
365
|
+
unsetTableCellBackground: () => ReturnType;
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
|
|
371
371
|
declare module '@tiptap/core' {
|
|
372
372
|
interface Commands<ReturnType> {
|
|
373
373
|
iframe: {
|
|
@@ -383,15 +383,6 @@ declare module '@tiptap/core' {
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
declare module '@tiptap/core' {
|
|
387
|
-
interface Commands<ReturnType> {
|
|
388
|
-
painter: {
|
|
389
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
386
|
declare module '@tiptap/core' {
|
|
396
387
|
interface Commands<ReturnType> {
|
|
397
388
|
search: {
|
|
@@ -409,11 +400,8 @@ declare module '@tiptap/core' {
|
|
|
409
400
|
|
|
410
401
|
declare module '@tiptap/core' {
|
|
411
402
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
name: string;
|
|
415
|
-
emoji: string;
|
|
416
|
-
}) => ReturnType;
|
|
403
|
+
painter: {
|
|
404
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
417
405
|
};
|
|
418
406
|
}
|
|
419
407
|
}
|
|
@@ -449,17 +437,11 @@ declare module '@tiptap/core' {
|
|
|
449
437
|
|
|
450
438
|
declare module '@tiptap/core' {
|
|
451
439
|
interface Commands<ReturnType> {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
declare module '@tiptap/core' {
|
|
460
|
-
interface Commands<ReturnType> {
|
|
461
|
-
attachment: {
|
|
462
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
440
|
+
emoji: {
|
|
441
|
+
setEmoji: (emoji: {
|
|
442
|
+
name: string;
|
|
443
|
+
emoji: string;
|
|
444
|
+
}) => ReturnType;
|
|
463
445
|
};
|
|
464
446
|
}
|
|
465
447
|
}
|
|
@@ -467,14 +449,8 @@ declare module '@tiptap/core' {
|
|
|
467
449
|
|
|
468
450
|
declare module '@tiptap/core' {
|
|
469
451
|
interface Commands<ReturnType> {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
* Insert a tweet
|
|
473
|
-
* @param options The tweet attributes
|
|
474
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
475
|
-
*/
|
|
476
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
477
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
452
|
+
excalidraw: {
|
|
453
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
478
454
|
};
|
|
479
455
|
}
|
|
480
456
|
}
|
|
@@ -502,9 +478,8 @@ declare module '@tiptap/core' {
|
|
|
502
478
|
|
|
503
479
|
declare module '@tiptap/core' {
|
|
504
480
|
interface Commands<ReturnType> {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
481
|
+
attachment: {
|
|
482
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
508
483
|
};
|
|
509
484
|
}
|
|
510
485
|
}
|
|
@@ -518,3 +493,28 @@ declare module '@tiptap/core' {
|
|
|
518
493
|
};
|
|
519
494
|
}
|
|
520
495
|
}
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
declare module '@tiptap/core' {
|
|
499
|
+
interface Commands<ReturnType> {
|
|
500
|
+
drawer: {
|
|
501
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
502
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
declare module '@tiptap/core' {
|
|
509
|
+
interface Commands<ReturnType> {
|
|
510
|
+
twitter: {
|
|
511
|
+
/**
|
|
512
|
+
* Insert a tweet
|
|
513
|
+
* @param options The tweet attributes
|
|
514
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
515
|
+
*/
|
|
516
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
517
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
}
|