@engagently/types 2.8.2 → 2.8.3

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.
@@ -10,7 +10,7 @@ export type CallbackFn = (data: {
10
10
  payload?: unknown;
11
11
  }) => void;
12
12
  export type ErrorCallbackFn = (error: CombinedError, operation: Operation) => void;
13
- export type EventHooks = 'onAny' | 'onChangeViewMode' | 'onLoadMoreComments' | 'onLoadMoreReplies' | 'onSetup' | 'onSignIn';
13
+ export type EventHooks = 'onAny' | 'onChangeViewMode' | 'onLoadMoreComments' | 'onLoadMoreReplies' | 'onSetup' | 'onSignIn' | 'onSubmitCommentary';
14
14
  export declare const EventHookMessageEventMap: Record<EventHooks, MessageEvents | MessageEvents[]>;
15
15
  export type Translations = Record<string, DeepPartial<typeof defaultResources.en>>;
16
16
  /**
@@ -47,6 +47,7 @@ export type DiscussionAttributesComponent = {
47
47
  imageUrl?: string;
48
48
  };
49
49
  export declare enum DiscussionSlots {
50
+ MY_PROFILE_ICON = "myProfileIcon",
50
51
  PROFILE_ICON = "dialogProfileIcon",
51
52
  COMMENTS_ICON = "dialogCommentsIcon",
52
53
  BOOKMARK = "dialogBookmarkIcon",
@@ -95,7 +96,7 @@ export interface PollWidget {
95
96
  /**
96
97
  * Events that can be used by the pub/sub implementation for window.postMessage
97
98
  */
98
- export type MessageEvents = 'EGY_SETUP' | 'EGY_SIGN_IN' | 'EGY_SIGNED_OUT' | 'EGY_AUTHENTICATED' | 'EGY_TOGGLE_COLOR_SCHEME' | 'EGY_CHANGE_LANGUAGE' | 'EGY_CHANGE_VIEW_MODE' | 'EGY_LOAD_MORE_COMMENTS' | 'EGY_LOAD_MORE_REPLIES' | 'EGY_REINIT';
99
+ export type MessageEvents = 'EGY_SETUP' | 'EGY_SIGN_IN' | 'EGY_SIGNED_OUT' | 'EGY_AUTHENTICATED' | 'EGY_TOGGLE_COLOR_SCHEME' | 'EGY_CHANGE_LANGUAGE' | 'EGY_CHANGE_VIEW_MODE' | 'EGY_LOAD_MORE_COMMENTS' | 'EGY_LOAD_MORE_REPLIES' | 'EGY_SUBMIT_COMMENTARY' | 'EGY_REINIT';
99
100
  export declare const EGY_AUTH = "egy_auth";
100
101
  export type EgyAuth = {
101
102
  accessToken: string;
@@ -107,6 +108,10 @@ export type ChangeLanguagePayload = {
107
108
  export type ToggleColorSchemePayload = {
108
109
  mode: string;
109
110
  };
111
+ export type SubmitCommentaryPayload = {
112
+ commentaryType: 'COMMENT' | 'REPLY';
113
+ mode: 'CREATE' | 'EDIT';
114
+ };
110
115
  /**
111
116
  * Will convert an array type -> ["foo", "bar"] as keys for an object type
112
117
  * requiring strings -> { foo: string; bar: string }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagently/types",
3
- "version": "2.8.2",
3
+ "version": "2.8.3",
4
4
  "main": "./index.ts",
5
5
  "types": "dist/types/engagently.d.ts",
6
6
  "files": [