@engagently/types 4.3.0 → 4.4.0

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.
@@ -4,6 +4,7 @@ import type { ThemeSettings } from '../../ui/themes/config';
4
4
  import type { CombinedError, Operation } from '@urql/preact';
5
5
  import type { EgyEntities, MessageEvents } from './WidgetDefinitions';
6
6
  import type { DsmFeatureName } from '../lib/api/enums';
7
+ import type { AdSlotProps, AdSlots } from '../lib/components/AdSlot';
7
8
  export declare enum ExperienceCallBackNames {
8
9
  POLL_BAR = "POLL_BAR",
9
10
  POLL_GRID = "POLL_GRID",
@@ -35,6 +36,7 @@ export interface EngageConfig {
35
36
  cta?: Partial<Record<DsmFeatureName | ExperienceCallBackNames, CallbackFn>>;
36
37
  error?: ErrorCallbackFn;
37
38
  events?: Partial<Record<EventHooks, CallbackFn>>;
39
+ ads?: Record<AdSlots, Omit<AdSlotProps, 'id'>>;
38
40
  }
39
41
  /**
40
42
  * Definition for the configuration related to the current community
@@ -3,6 +3,19 @@ export declare enum DsmCommentariesSort {
3
3
  CreatedAtDesc = "CREATED_AT_DESC",
4
4
  PopularityDesc = "POPULARITY_DESC"
5
5
  }
6
+ export declare enum DsmCommentaryReportReason {
7
+ Bully = "BULLY",
8
+ Fake = "FAKE",
9
+ Hate = "HATE",
10
+ Legal = "LEGAL",
11
+ Other = "OTHER",
12
+ Privacy = "PRIVACY",
13
+ Sexual = "SEXUAL",
14
+ Spam = "SPAM",
15
+ Terms = "TERMS",
16
+ Toxic = "TOXIC",
17
+ Violence = "VIOLENCE"
18
+ }
6
19
  export declare enum DsmDiscussionEffectiveState {
7
20
  Archived = "ARCHIVED",
8
21
  Closed = "CLOSED",
@@ -17,8 +30,10 @@ export declare enum DsmDiscussionState {
17
30
  export declare enum DsmFeatureName {
18
31
  Comment = "COMMENT",
19
32
  CommentaryRead = "COMMENTARY_READ",
33
+ Ignore = "IGNORE",
20
34
  InstantContext = "INSTANT_CONTEXT",
21
35
  MyProfile = "MY_PROFILE",
36
+ OnboardNamehint = "ONBOARD_NAMEHINT",
22
37
  Profile = "PROFILE",
23
38
  Reaction = "REACTION",
24
39
  Reply = "REPLY",
@@ -61,6 +76,7 @@ export declare enum ExmQuestionChoiceType {
61
76
  }
62
77
  export declare enum ExmQuestionType {
63
78
  Bar = "BAR",
79
+ Grid = "GRID",
64
80
  Slider = "SLIDER"
65
81
  }
66
82
  export declare enum PageStatus {
@@ -16,6 +16,7 @@ export declare const defaultResources: {
16
16
  actions: {
17
17
  cancel: string;
18
18
  close: string;
19
+ continue: string;
19
20
  "open-discussion": string;
20
21
  "go-to-discussion": string;
21
22
  na: string;
@@ -99,8 +100,23 @@ export declare const defaultResources: {
99
100
  moderate: string;
100
101
  reply: string;
101
102
  report: {
102
- inactive: string;
103
- active: string;
103
+ action: string;
104
+ title: string;
105
+ "justification-description": string;
106
+ reasons: {
107
+ OTHER: string;
108
+ SPAM: string;
109
+ TOXIC: string;
110
+ BULLY: string;
111
+ HATE: string;
112
+ VIOLENCE: string;
113
+ SEXUAL: string;
114
+ PRIVACY: string;
115
+ FAKE: string;
116
+ TERMS: string;
117
+ LEGAL: string;
118
+ };
119
+ submitted: string;
104
120
  };
105
121
  reaction: {
106
122
  REACTION1: string;
@@ -152,6 +168,7 @@ export declare const defaultResources: {
152
168
  "no-more-comments": string;
153
169
  "no-comments-yet": string;
154
170
  "no-recent-comments": string;
171
+ "onboarding-username-change": string;
155
172
  placeholders: {
156
173
  "new-commentary": string;
157
174
  "new-reply": string;
@@ -216,6 +233,7 @@ export declare const defaultResources: {
216
233
  inline: {
217
234
  "write-comment": string;
218
235
  };
236
+ "report-commentary": string;
219
237
  };
220
238
  features: {
221
239
  COMMENT: {
@@ -230,6 +248,9 @@ export declare const defaultResources: {
230
248
  MY_PROFILE: {
231
249
  "call-to-action": string;
232
250
  };
251
+ ONBOARD_NAMEHINT: {
252
+ "call-to-action": string;
253
+ };
233
254
  PROFILE: {
234
255
  "call-to-action": string;
235
256
  };
@@ -245,6 +266,9 @@ export declare const defaultResources: {
245
266
  SHARE: {
246
267
  "call-to-action": string;
247
268
  };
269
+ IGNORE: {
270
+ "call-to-action": string;
271
+ };
248
272
  };
249
273
  interpolation: {
250
274
  comment: string;
@@ -299,6 +323,7 @@ export declare const defaultResources: {
299
323
  actions: {
300
324
  cancel: string;
301
325
  close: string;
326
+ continue: string;
302
327
  "open-discussion": string;
303
328
  "go-to-discussion": string;
304
329
  na: string;
@@ -382,8 +407,23 @@ export declare const defaultResources: {
382
407
  moderate: string;
383
408
  reply: string;
384
409
  report: {
385
- inactive: string;
386
- active: string;
410
+ action: string;
411
+ title: string;
412
+ "justification-description": string;
413
+ reasons: {
414
+ OTHER: string;
415
+ SPAM: string;
416
+ TOXIC: string;
417
+ BULLY: string;
418
+ HATE: string;
419
+ VIOLENCE: string;
420
+ SEXUAL: string;
421
+ PRIVACY: string;
422
+ FAKE: string;
423
+ TERMS: string;
424
+ LEGAL: string;
425
+ };
426
+ submitted: string;
387
427
  };
388
428
  reaction: {
389
429
  REACTION1: string;
@@ -435,6 +475,7 @@ export declare const defaultResources: {
435
475
  "no-more-comments": string;
436
476
  "no-comments-yet": string;
437
477
  "no-recent-comments": string;
478
+ "onboarding-username-change": string;
438
479
  placeholders: {
439
480
  "new-commentary": string;
440
481
  "new-reply": string;
@@ -498,6 +539,7 @@ export declare const defaultResources: {
498
539
  inline: {
499
540
  "write-comment": string;
500
541
  };
542
+ "report-commentary": string;
501
543
  };
502
544
  features: {
503
545
  COMMENT: {
@@ -512,6 +554,9 @@ export declare const defaultResources: {
512
554
  MY_PROFILE: {
513
555
  "call-to-action": string;
514
556
  };
557
+ ONBOARD_NAMEHINT: {
558
+ "call-to-action": string;
559
+ };
515
560
  PROFILE: {
516
561
  "call-to-action": string;
517
562
  };
@@ -527,6 +572,9 @@ export declare const defaultResources: {
527
572
  SHARE: {
528
573
  "call-to-action": string;
529
574
  };
575
+ IGNORE: {
576
+ "call-to-action": string;
577
+ };
530
578
  };
531
579
  interpolation: {
532
580
  comment: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagently/types",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "main": "./index.ts",
5
5
  "types": "dist/types/engagently.d.ts",
6
6
  "files": [