@select-org/select-post-builder 1.3.0 → 1.4.0
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 +19 -17
- package/dist/post-builder.cjs.js +47 -47
- package/dist/post-builder.css +1 -1
- package/dist/post-builder.js +2092 -2053
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare function applyResolvedMediaItem(jsonBody: JSONContent_2 | undefin
|
|
|
14
14
|
/**
|
|
15
15
|
* Walks a serialized htmlBody string, finds the `[data-media][data-uid=itemKey]`
|
|
16
16
|
* wrapper and rewrites it to point at the hosted URL + payload from a resolved
|
|
17
|
-
* upload result
|
|
17
|
+
* upload result, rebuilding the inner element for the resolved node type.
|
|
18
|
+
* Mirrors `applyResolvedMediaItem` for the JSON form. If no
|
|
18
19
|
* matching node is found, returns the input unchanged.
|
|
19
20
|
*/
|
|
20
21
|
export declare function applyResolvedMediaItemToHtml(html: string | undefined, itemKey: string, resolvedItem: ResolvedMediaItem_2): string | undefined;
|
|
@@ -401,6 +402,7 @@ declare type PostCreationMediaItem = {
|
|
|
401
402
|
key: string;
|
|
402
403
|
type: MediaItemType | PollType;
|
|
403
404
|
imageType: string;
|
|
405
|
+
sourceType?: string;
|
|
404
406
|
compressVideoPath?: string;
|
|
405
407
|
playableDuration?: number | null;
|
|
406
408
|
preloadUrl?: boolean;
|
|
@@ -522,6 +524,22 @@ declare module '@tiptap/core' {
|
|
|
522
524
|
}
|
|
523
525
|
|
|
524
526
|
|
|
527
|
+
declare module '@tiptap/core' {
|
|
528
|
+
interface Commands<ReturnType> {
|
|
529
|
+
iframe: {
|
|
530
|
+
/**
|
|
531
|
+
* Insert an iframe node into the document
|
|
532
|
+
*/
|
|
533
|
+
setIframe: (options: {
|
|
534
|
+
src: string;
|
|
535
|
+
width?: string;
|
|
536
|
+
height?: string;
|
|
537
|
+
}) => ReturnType;
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
|
|
525
543
|
declare module '@tiptap/core' {
|
|
526
544
|
interface Commands<ReturnType> {
|
|
527
545
|
customLink: {
|
|
@@ -550,22 +568,6 @@ declare module '@tiptap/core' {
|
|
|
550
568
|
}
|
|
551
569
|
|
|
552
570
|
|
|
553
|
-
declare module '@tiptap/core' {
|
|
554
|
-
interface Commands<ReturnType> {
|
|
555
|
-
iframe: {
|
|
556
|
-
/**
|
|
557
|
-
* Insert an iframe node into the document
|
|
558
|
-
*/
|
|
559
|
-
setIframe: (options: {
|
|
560
|
-
src: string;
|
|
561
|
-
width?: string;
|
|
562
|
-
height?: string;
|
|
563
|
-
}) => ReturnType;
|
|
564
|
-
};
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
|
|
569
571
|
declare module '@tiptap/core' {
|
|
570
572
|
interface Commands<ReturnType> {
|
|
571
573
|
smartMediaUpload: {
|