@select-org/select-post-builder 1.0.8 → 1.1.1
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 +28 -26
- package/dist/post-builder.cjs.js +19425 -18453
- package/dist/post-builder.css +69 -143
- package/dist/post-builder.js +19426 -18454
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,8 @@ declare interface ImageInfo {
|
|
|
57
57
|
|
|
58
58
|
declare enum MediaItemType {
|
|
59
59
|
MEDIA_ITEM = "mediaItem",
|
|
60
|
-
IMAGE_ITEM = "imageItem"
|
|
60
|
+
IMAGE_ITEM = "imageItem",
|
|
61
|
+
LINK_ITEM = "linkItem"
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
declare type MentionData = {
|
|
@@ -102,6 +103,7 @@ export declare interface PostBuilderConfig {
|
|
|
102
103
|
authToken: string;
|
|
103
104
|
toI18N: (key: string) => string;
|
|
104
105
|
i18nKeys: PostBuilderI18nKeys;
|
|
106
|
+
logEvent: (name: string, properties: Record<string, unknown>) => void;
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
export declare const PostBuilderEditor: FC<PostBuilderEditorProps>;
|
|
@@ -114,7 +116,7 @@ declare interface PostBuilderI18nKeys {
|
|
|
114
116
|
italicMarkKey: string;
|
|
115
117
|
}
|
|
116
118
|
|
|
117
|
-
export declare const PostBuilderProvider: ({ children, apiBaseURL, authToken, toI18N, i18nKeys, }: PostBuilderConfig) => JSX_2.Element;
|
|
119
|
+
export declare const PostBuilderProvider: ({ children, apiBaseURL, authToken, toI18N, i18nKeys, logEvent, }: PostBuilderConfig) => JSX_2.Element;
|
|
118
120
|
|
|
119
121
|
declare type PostCreationData = {
|
|
120
122
|
body: string;
|
|
@@ -184,30 +186,6 @@ declare type WithoutModalProps = BaseProps & {
|
|
|
184
186
|
export { }
|
|
185
187
|
|
|
186
188
|
|
|
187
|
-
declare module '@tiptap/core' {
|
|
188
|
-
interface Commands<ReturnType> {
|
|
189
|
-
media: {
|
|
190
|
-
/**
|
|
191
|
-
* Insert a media node (image, video, or audio)
|
|
192
|
-
*/
|
|
193
|
-
insertMedia: (options: MediaAttrs) => ReturnType;
|
|
194
|
-
/**
|
|
195
|
-
* Update media node attributes by uid
|
|
196
|
-
*/
|
|
197
|
-
updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
|
|
198
|
-
/**
|
|
199
|
-
* Delete media node by uid
|
|
200
|
-
*/
|
|
201
|
-
deleteMediaByUid: (uid: string) => ReturnType;
|
|
202
|
-
/**
|
|
203
|
-
* Update media upload progress by uid
|
|
204
|
-
*/
|
|
205
|
-
updateMediaProgress: (uid: string, progress: number) => ReturnType;
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
|
|
211
189
|
declare module '@tiptap/core' {
|
|
212
190
|
interface Commands<ReturnType> {
|
|
213
191
|
poll: {
|
|
@@ -243,6 +221,30 @@ declare module '@tiptap/core' {
|
|
|
243
221
|
}
|
|
244
222
|
|
|
245
223
|
|
|
224
|
+
declare module '@tiptap/core' {
|
|
225
|
+
interface Commands<ReturnType> {
|
|
226
|
+
media: {
|
|
227
|
+
/**
|
|
228
|
+
* Insert a media node (image, video, or audio)
|
|
229
|
+
*/
|
|
230
|
+
insertMedia: (options: MediaAttrs) => ReturnType;
|
|
231
|
+
/**
|
|
232
|
+
* Update media node attributes by uid
|
|
233
|
+
*/
|
|
234
|
+
updateMediaByUid: (uid: string, attrs: Partial<MediaAttrs>) => ReturnType;
|
|
235
|
+
/**
|
|
236
|
+
* Delete media node by uid
|
|
237
|
+
*/
|
|
238
|
+
deleteMediaByUid: (uid: string) => ReturnType;
|
|
239
|
+
/**
|
|
240
|
+
* Update media upload progress by uid
|
|
241
|
+
*/
|
|
242
|
+
updateMediaProgress: (uid: string, progress: number) => ReturnType;
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
|
|
246
248
|
declare module '@tiptap/core' {
|
|
247
249
|
interface Commands<ReturnType> {
|
|
248
250
|
iframe: {
|