@select-org/select-post-builder 1.2.6 → 1.2.7
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 +35 -27
- package/dist/post-builder.cjs.js +19 -19
- package/dist/post-builder.js +3798 -3775
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -263,6 +263,14 @@ export declare interface PostBuilderConfig {
|
|
|
263
263
|
unauthenticatedMode?: boolean;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
/**
|
|
267
|
+
* Imperative controls handed to the host once via `onReady`. Safe to hold for
|
|
268
|
+
* the component's entire lifetime: every method resolves the live editor (and
|
|
269
|
+
* the tab it belongs to) at call time, so the controls keep working across the
|
|
270
|
+
* internal editor re-creates caused by mount and Post/Blog/Poll tab switches.
|
|
271
|
+
* When no live editor exists, `getContent` returns null and the mutating
|
|
272
|
+
* methods no-op — none of them throw.
|
|
273
|
+
*/
|
|
266
274
|
export declare interface PostBuilderControls {
|
|
267
275
|
saveDraft: () => void;
|
|
268
276
|
discardDraft: () => void;
|
|
@@ -465,6 +473,17 @@ declare module 'axios' {
|
|
|
465
473
|
}
|
|
466
474
|
|
|
467
475
|
|
|
476
|
+
declare module '@tiptap/core' {
|
|
477
|
+
interface Commands<ReturnType> {
|
|
478
|
+
poll: {
|
|
479
|
+
insertPoll: (attrs: {
|
|
480
|
+
choices: PollChoiceItem[];
|
|
481
|
+
}) => ReturnType;
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
468
487
|
declare module '@tiptap/core' {
|
|
469
488
|
interface Commands<ReturnType> {
|
|
470
489
|
media: {
|
|
@@ -493,17 +512,6 @@ declare module '@tiptap/core' {
|
|
|
493
512
|
}
|
|
494
513
|
|
|
495
514
|
|
|
496
|
-
declare module '@tiptap/core' {
|
|
497
|
-
interface Commands<ReturnType> {
|
|
498
|
-
poll: {
|
|
499
|
-
insertPoll: (attrs: {
|
|
500
|
-
choices: PollChoiceItem[];
|
|
501
|
-
}) => ReturnType;
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
|
|
507
515
|
declare module '@tiptap/core' {
|
|
508
516
|
interface Commands<ReturnType> {
|
|
509
517
|
customLink: {
|
|
@@ -532,6 +540,22 @@ declare module '@tiptap/core' {
|
|
|
532
540
|
}
|
|
533
541
|
|
|
534
542
|
|
|
543
|
+
declare module '@tiptap/core' {
|
|
544
|
+
interface Commands<ReturnType> {
|
|
545
|
+
iframe: {
|
|
546
|
+
/**
|
|
547
|
+
* Insert an iframe node into the document
|
|
548
|
+
*/
|
|
549
|
+
setIframe: (options: {
|
|
550
|
+
src: string;
|
|
551
|
+
width?: string;
|
|
552
|
+
height?: string;
|
|
553
|
+
}) => ReturnType;
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
|
|
535
559
|
declare module '@tiptap/core' {
|
|
536
560
|
interface Commands<ReturnType> {
|
|
537
561
|
smartMediaUpload: {
|
|
@@ -591,19 +615,3 @@ declare module '@tiptap/core' {
|
|
|
591
615
|
};
|
|
592
616
|
}
|
|
593
617
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
declare module '@tiptap/core' {
|
|
597
|
-
interface Commands<ReturnType> {
|
|
598
|
-
iframe: {
|
|
599
|
-
/**
|
|
600
|
-
* Insert an iframe node into the document
|
|
601
|
-
*/
|
|
602
|
-
setIframe: (options: {
|
|
603
|
-
src: string;
|
|
604
|
-
width?: string;
|
|
605
|
-
height?: string;
|
|
606
|
-
}) => ReturnType;
|
|
607
|
-
};
|
|
608
|
-
}
|
|
609
|
-
}
|