@select-org/select-post-builder 1.1.34 → 1.1.36

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 CHANGED
@@ -4,13 +4,11 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  declare type AppUserPayload = {
7
- users: Array<UserPayload>;
8
7
  background: string;
9
8
  username: string;
10
9
  relationship: 2;
11
10
  refresh_token: string;
12
11
  name: string;
13
- new_user: boolean;
14
12
  longitude: number;
15
13
  latitude: number;
16
14
  jwtoken: string;
@@ -20,11 +18,10 @@ declare type AppUserPayload = {
20
18
  avatar: string;
21
19
  avatarPlaceholder: string;
22
20
  highResolutionAvatar: string;
23
- twitterUsername: string;
24
- email: string;
25
21
  description: string;
26
- email_verified: boolean;
27
22
  featured_groups: string[];
23
+ new_user?: boolean;
24
+ email?: string;
28
25
  };
29
26
 
30
27
  declare type BasePollOptionItem = {
@@ -47,7 +44,14 @@ declare type BaseProps = {
47
44
  json: JSONContent;
48
45
  text: string;
49
46
  }) => void;
47
+ onVoiceComment?: (params: {
48
+ voiceUrl: string;
49
+ voiceTime: number;
50
+ }) => void;
50
51
  onGroupSelect?: (groupId: string) => void;
52
+ onDirtyStateChange?: (isDirty: boolean) => void;
53
+ onReady?: (controls: PostBuilderControls) => void;
54
+ disableNavigationWarning?: boolean;
51
55
  };
52
56
 
53
57
  export declare enum EditorPlacement {
@@ -129,6 +133,12 @@ export declare interface PostBuilderConfig {
129
133
  logEvent: (name: string, properties: Record<string, unknown>) => void;
130
134
  }
131
135
 
136
+ export declare interface PostBuilderControls {
137
+ saveDraft: () => void;
138
+ discardDraft: () => void;
139
+ keepEditing: () => void;
140
+ }
141
+
132
142
  export declare const PostBuilderEditor: FC<PostBuilderEditorProps>;
133
143
 
134
144
  export declare type PostBuilderEditorProps = WithModalProps | WithoutModalProps;
@@ -253,23 +263,6 @@ declare enum SpecialType {
253
263
  FEATURED_POST = 1
254
264
  }
255
265
 
256
- declare type UserPayload = {
257
- id: string;
258
- username: string;
259
- name: string;
260
- avatar: string;
261
- avatarPlaceholder: string;
262
- highResolutionAvatar: string;
263
- gender: string;
264
- birthday: string;
265
- description?: string;
266
- type?: string;
267
- latitude?: number;
268
- longitude?: number;
269
- relationship?: number;
270
- interactionIds?: Array<string>;
271
- };
272
-
273
266
  declare type WithModalProps = BaseProps & {
274
267
  openModal: boolean;
275
268
  onModalOpenChange: (open: boolean) => void;