@engagently/types 2.7.2 → 2.8.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.
@@ -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';
13
+ export type EventHooks = 'onAny' | 'onChangeViewMode' | 'onLoadMoreComments' | 'onLoadMoreReplies' | 'onSetup' | 'onSignIn';
14
14
  export declare const EventHookMessageEventMap: Record<EventHooks, MessageEvents | MessageEvents[]>;
15
15
  export type Translations = Record<string, DeepPartial<typeof defaultResources.en>>;
16
16
  /**
@@ -53,6 +53,7 @@ export declare enum DiscussionSlots {
53
53
  ACCOUNT_ICON = "dialogAccountIcon",
54
54
  SETTINGS_ICON = "dialogSettingsIcon",
55
55
  LIVE_MODE_ICON = "liveModeIcon",
56
+ CUSTOM_CALL_TO_ACTION = "customCallToAction",
56
57
  REPLY_ICON = "replyIcon",
57
58
  REACTION1 = "reaction1",
58
59
  REACTION1_active = "reaction1_active",
@@ -94,7 +95,7 @@ export interface PollWidget {
94
95
  /**
95
96
  * Events that can be used by the pub/sub implementation for window.postMessage
96
97
  */
97
- export type MessageEvents = 'EGY_SETUP' | 'EGY_SIGN_IN' | 'EGY_SIGN_OUT' | 'EGY_SIGNED_OUT' | 'EGY_AUTHENTICATED' | 'EGY_AUTHENTICATION_FAILED' | 'EGY_TOGGLE_COLOR_SCHEME' | 'EGY_CHANGE_LANGUAGE' | 'EGY_CHANGE_VIEW_MODE' | 'EGY_LOAD_MORE_COMMENTS' | 'EGY_LOAD_MORE_REPLIES' | 'EGY_REINIT';
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';
98
99
  export declare const EGY_AUTH = "egy_auth";
99
100
  export type EgyAuth = {
100
101
  accessToken: string;
@@ -29,6 +29,12 @@ export declare enum DsmReactionName {
29
29
  Reaction2 = "REACTION2",
30
30
  Reaction3 = "REACTION3"
31
31
  }
32
+ export declare enum DsmRichTextFormat {
33
+ Bold = "BOLD",
34
+ Italic = "ITALIC",
35
+ Link = "LINK",
36
+ Underline = "UNDERLINE"
37
+ }
32
38
  export declare enum DsmViewName {
33
39
  Featured = "FEATURED",
34
40
  List = "LIST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagently/types",
3
- "version": "2.7.2",
3
+ "version": "2.8.1",
4
4
  "main": "./index.ts",
5
5
  "types": "dist/types/engagently.d.ts",
6
6
  "files": [