@select-org/select-post-builder 1.1.5 → 1.1.6
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 +18 -1
- package/dist/post-builder.cjs.js +10619 -10279
- package/dist/post-builder.js +10620 -10280
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ declare type BasePollOptionItem = {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
declare type BaseProps = {
|
|
37
|
+
placement?: EditorPlacement;
|
|
37
38
|
groupId?: string;
|
|
38
39
|
postId?: string;
|
|
39
40
|
user?: AppUserPayload;
|
|
@@ -48,6 +49,13 @@ declare type BaseProps = {
|
|
|
48
49
|
}) => void;
|
|
49
50
|
};
|
|
50
51
|
|
|
52
|
+
export declare enum EditorPlacement {
|
|
53
|
+
Feed = "Feed",
|
|
54
|
+
Modal = "Modal",
|
|
55
|
+
Comment = "Comment",
|
|
56
|
+
Edit = "edit"
|
|
57
|
+
}
|
|
58
|
+
|
|
51
59
|
declare interface ImageInfo {
|
|
52
60
|
width: number;
|
|
53
61
|
height: number;
|
|
@@ -126,7 +134,8 @@ export declare type PostBuilderEditorProps = WithModalProps | WithoutModalProps;
|
|
|
126
134
|
export declare enum PostBuilderEvents {
|
|
127
135
|
POST_PUBLISH_ATTEMPTED = "select:post_publish_attempted",
|
|
128
136
|
POST_PUBLISH_SUCCESSFUL = "select:post_publish_success",
|
|
129
|
-
POST_PUBLISH_FAILED = "select:post_publish_failed"
|
|
137
|
+
POST_PUBLISH_FAILED = "select:post_publish_failed",
|
|
138
|
+
POST_SESSION_ROTATED = "select:post_session_rotated"
|
|
130
139
|
}
|
|
131
140
|
|
|
132
141
|
declare interface PostBuilderI18nKeys {
|
|
@@ -221,6 +230,14 @@ declare enum PostType {
|
|
|
221
230
|
Comment = "comment"
|
|
222
231
|
}
|
|
223
232
|
|
|
233
|
+
/**
|
|
234
|
+
* Step 5: Update useHostAnalyticsBridge
|
|
235
|
+
* File: hooks/use-host-analytics-bridge.ts
|
|
236
|
+
*
|
|
237
|
+
* Changes:
|
|
238
|
+
* 1. Accept sessionId parameter
|
|
239
|
+
* 2. Use useAnalyticsStore instead of context
|
|
240
|
+
*/
|
|
224
241
|
export declare type PublishEventDetails = {
|
|
225
242
|
postId: string;
|
|
226
243
|
postType: string;
|