@engagently/types 4.3.1 → 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",
|
|
@@ -20,6 +33,7 @@ export declare enum DsmFeatureName {
|
|
|
20
33
|
Ignore = "IGNORE",
|
|
21
34
|
InstantContext = "INSTANT_CONTEXT",
|
|
22
35
|
MyProfile = "MY_PROFILE",
|
|
36
|
+
OnboardNamehint = "ONBOARD_NAMEHINT",
|
|
23
37
|
Profile = "PROFILE",
|
|
24
38
|
Reaction = "REACTION",
|
|
25
39
|
Reply = "REPLY",
|
|
@@ -62,6 +76,7 @@ export declare enum ExmQuestionChoiceType {
|
|
|
62
76
|
}
|
|
63
77
|
export declare enum ExmQuestionType {
|
|
64
78
|
Bar = "BAR",
|
|
79
|
+
Grid = "GRID",
|
|
65
80
|
Slider = "SLIDER"
|
|
66
81
|
}
|
|
67
82
|
export declare enum PageStatus {
|
package/dist/i18n/i18n.d.ts
CHANGED
|
@@ -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
|
-
|
|
103
|
-
|
|
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
|
};
|
|
@@ -302,6 +323,7 @@ export declare const defaultResources: {
|
|
|
302
323
|
actions: {
|
|
303
324
|
cancel: string;
|
|
304
325
|
close: string;
|
|
326
|
+
continue: string;
|
|
305
327
|
"open-discussion": string;
|
|
306
328
|
"go-to-discussion": string;
|
|
307
329
|
na: string;
|
|
@@ -385,8 +407,23 @@ export declare const defaultResources: {
|
|
|
385
407
|
moderate: string;
|
|
386
408
|
reply: string;
|
|
387
409
|
report: {
|
|
388
|
-
|
|
389
|
-
|
|
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;
|
|
390
427
|
};
|
|
391
428
|
reaction: {
|
|
392
429
|
REACTION1: string;
|
|
@@ -438,6 +475,7 @@ export declare const defaultResources: {
|
|
|
438
475
|
"no-more-comments": string;
|
|
439
476
|
"no-comments-yet": string;
|
|
440
477
|
"no-recent-comments": string;
|
|
478
|
+
"onboarding-username-change": string;
|
|
441
479
|
placeholders: {
|
|
442
480
|
"new-commentary": string;
|
|
443
481
|
"new-reply": string;
|
|
@@ -501,6 +539,7 @@ export declare const defaultResources: {
|
|
|
501
539
|
inline: {
|
|
502
540
|
"write-comment": string;
|
|
503
541
|
};
|
|
542
|
+
"report-commentary": string;
|
|
504
543
|
};
|
|
505
544
|
features: {
|
|
506
545
|
COMMENT: {
|
|
@@ -515,6 +554,9 @@ export declare const defaultResources: {
|
|
|
515
554
|
MY_PROFILE: {
|
|
516
555
|
"call-to-action": string;
|
|
517
556
|
};
|
|
557
|
+
ONBOARD_NAMEHINT: {
|
|
558
|
+
"call-to-action": string;
|
|
559
|
+
};
|
|
518
560
|
PROFILE: {
|
|
519
561
|
"call-to-action": string;
|
|
520
562
|
};
|