@select-org/select-post-builder 1.2.7 → 1.2.8
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 +11 -1
- package/dist/post-builder.cjs.js +10 -10
- package/dist/post-builder.js +255 -252
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,7 +54,17 @@ declare type BaseProps = {
|
|
|
54
54
|
hideGroupSelector?: boolean;
|
|
55
55
|
isSubmitting?: boolean;
|
|
56
56
|
clearOnSuccess?: boolean;
|
|
57
|
-
onCreatePost: (params: CreatePostCallbackPayload
|
|
57
|
+
onCreatePost: (params: CreatePostCallbackPayload,
|
|
58
|
+
/**
|
|
59
|
+
* Present only when the submit fails and the host wants to refill the
|
|
60
|
+
* editor with what was just submitted. `restoreContent()` re-injects the
|
|
61
|
+
* exact submitted content into the current live editor instance (resolved
|
|
62
|
+
* at call time, so it still works if this editor instance was destroyed
|
|
63
|
+
* and recreated in the meantime).
|
|
64
|
+
*/
|
|
65
|
+
meta?: {
|
|
66
|
+
restoreContent: () => void;
|
|
67
|
+
}) => void;
|
|
58
68
|
onVoiceComment?: (params: {
|
|
59
69
|
voiceUrl: string;
|
|
60
70
|
voiceTime: number;
|