@select-org/select-post-builder 1.1.4 → 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 +73 -5
- package/dist/post-builder.cjs.js +10761 -10284
- package/dist/post-builder.css +26 -18
- package/dist/post-builder.js +10762 -10285
- 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;
|
|
@@ -115,7 +123,7 @@ export declare interface PostBuilderConfig {
|
|
|
115
123
|
};
|
|
116
124
|
authToken: string;
|
|
117
125
|
toI18N: (key: string) => string;
|
|
118
|
-
i18nKeys
|
|
126
|
+
i18nKeys?: Partial<PostBuilderI18nKeys>;
|
|
119
127
|
logEvent: (name: string, properties: Record<string, unknown>) => void;
|
|
120
128
|
}
|
|
121
129
|
|
|
@@ -126,13 +134,65 @@ 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 {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
142
|
+
addKey: string;
|
|
143
|
+
cancelKey: string;
|
|
144
|
+
deleteKey: string;
|
|
145
|
+
editKey: string;
|
|
146
|
+
updateKey: string;
|
|
147
|
+
insertKey: string;
|
|
148
|
+
uploadKey: string;
|
|
149
|
+
postKey: string;
|
|
150
|
+
crossPostKey: string;
|
|
151
|
+
postTabKey: string;
|
|
152
|
+
blogTabKey: string;
|
|
153
|
+
pollTabKey: string;
|
|
154
|
+
alignLeftKey: string;
|
|
155
|
+
alignCenterKey: string;
|
|
156
|
+
alignRightKey: string;
|
|
157
|
+
undoKey: string;
|
|
158
|
+
redoKey: string;
|
|
159
|
+
headingOptionsKey: string;
|
|
160
|
+
paragraphKey: string;
|
|
161
|
+
heading1Key: string;
|
|
162
|
+
heading2Key: string;
|
|
163
|
+
heading3Key: string;
|
|
164
|
+
boldKey: string;
|
|
165
|
+
italicKey: string;
|
|
166
|
+
strikethroughKey: string;
|
|
167
|
+
bulletListKey: string;
|
|
168
|
+
orderedListKey: string;
|
|
169
|
+
blockquoteKey: string;
|
|
170
|
+
codeKey: string;
|
|
171
|
+
codeBlockKey: string;
|
|
172
|
+
moreOptionsKey: string;
|
|
173
|
+
insertImageKey: string;
|
|
174
|
+
insertVideoKey: string;
|
|
175
|
+
insertAudioKey: string;
|
|
176
|
+
mediaSearchTitleKey: string;
|
|
177
|
+
gifSearchKey: string;
|
|
178
|
+
imageSearchKey: string;
|
|
179
|
+
searchGifOrImagesKey: string;
|
|
180
|
+
searchGifPlaceholder: string;
|
|
181
|
+
searchIMagePlaceholder: string;
|
|
182
|
+
editLinkKey: string;
|
|
183
|
+
unsetLinkKey: string;
|
|
184
|
+
visitLinkKey: string;
|
|
185
|
+
linkInputLabelKey: string;
|
|
186
|
+
linkTextInputLabelKey: string;
|
|
187
|
+
invalidLinkKey: string;
|
|
188
|
+
insertLinkKey: string;
|
|
189
|
+
updateLinkKey: string;
|
|
190
|
+
addLinkPreviewKey: string;
|
|
191
|
+
removeLinkPreviewKey: string;
|
|
192
|
+
fetchingMetadataKey: string;
|
|
193
|
+
addTextOptionKey: string;
|
|
194
|
+
enterTextOptionKey: string;
|
|
195
|
+
pressEnterToAddKey: string;
|
|
136
196
|
}
|
|
137
197
|
|
|
138
198
|
export declare const PostBuilderProvider: ({ children, apiBaseURL, authToken, toI18N, i18nKeys, logEvent, }: PostBuilderConfig) => JSX_2.Element;
|
|
@@ -170,6 +230,14 @@ declare enum PostType {
|
|
|
170
230
|
Comment = "comment"
|
|
171
231
|
}
|
|
172
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
|
+
*/
|
|
173
241
|
export declare type PublishEventDetails = {
|
|
174
242
|
postId: string;
|
|
175
243
|
postType: string;
|