@engagently/types 4.0.0 → 4.1.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.
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { VNode } from 'preact';
|
|
2
2
|
import type { ExperienceParticipationFragment } from '../../widgets/src/poll/data/ExperienceFragments.generated';
|
|
3
|
-
import type { PollBarData } from '../../ui/core/
|
|
4
|
-
import type { ChartData } from '../../ui/core/Charts/Chart';
|
|
3
|
+
import type { PollBarData, ChartData } from '../../ui/core/_types';
|
|
5
4
|
/**
|
|
6
5
|
* Type Definitions for all available entities
|
|
7
6
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare enum DsmCommentariesSort {
|
|
2
2
|
CreatedAtAsc = "CREATED_AT_ASC",
|
|
3
|
-
CreatedAtDesc = "CREATED_AT_DESC"
|
|
3
|
+
CreatedAtDesc = "CREATED_AT_DESC",
|
|
4
|
+
PopularityDesc = "POPULARITY_DESC"
|
|
4
5
|
}
|
|
5
6
|
export declare enum DsmDiscussionEffectiveState {
|
|
6
7
|
Archived = "ARCHIVED",
|
|
@@ -67,6 +68,12 @@ export declare enum PageStatus {
|
|
|
67
68
|
Full = "FULL",
|
|
68
69
|
Partial = "PARTIAL"
|
|
69
70
|
}
|
|
71
|
+
export declare enum TieBreakerSort {
|
|
72
|
+
CreatedAtAsc = "CREATED_AT_ASC",
|
|
73
|
+
CreatedAtDesc = "CREATED_AT_DESC",
|
|
74
|
+
IdAsc = "ID_ASC",
|
|
75
|
+
IdDesc = "ID_DESC"
|
|
76
|
+
}
|
|
70
77
|
export declare enum UserDeletionStatus {
|
|
71
78
|
Completed = "COMPLETED",
|
|
72
79
|
InProgress = "IN_PROGRESS",
|
package/dist/i18n/i18n.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ export declare const defaultResources: {
|
|
|
36
36
|
"featured-comment": string;
|
|
37
37
|
live: string;
|
|
38
38
|
"load-more": string;
|
|
39
|
+
"load-more-comments": string;
|
|
39
40
|
"load-newer-comments": string;
|
|
40
41
|
"load-older-comments": string;
|
|
41
42
|
"load-newer-replies": string;
|
|
@@ -111,6 +112,11 @@ export declare const defaultResources: {
|
|
|
111
112
|
header: string;
|
|
112
113
|
title: string;
|
|
113
114
|
};
|
|
115
|
+
POPULARITY_DESC: {
|
|
116
|
+
description: string;
|
|
117
|
+
header: string;
|
|
118
|
+
title: string;
|
|
119
|
+
};
|
|
114
120
|
LIST: {
|
|
115
121
|
description: string;
|
|
116
122
|
title: string;
|
|
@@ -123,6 +129,11 @@ export declare const defaultResources: {
|
|
|
123
129
|
};
|
|
124
130
|
labels: {
|
|
125
131
|
"sort-comments": string;
|
|
132
|
+
"view-structure": string;
|
|
133
|
+
"author-badge": string;
|
|
134
|
+
"comment-list": string;
|
|
135
|
+
"discussion-link": string;
|
|
136
|
+
"commentary-actions": string;
|
|
126
137
|
};
|
|
127
138
|
"new-commentary": string;
|
|
128
139
|
"new-commentary_other": string;
|
|
@@ -295,6 +306,7 @@ export declare const defaultResources: {
|
|
|
295
306
|
"featured-comment": string;
|
|
296
307
|
live: string;
|
|
297
308
|
"load-more": string;
|
|
309
|
+
"load-more-comments": string;
|
|
298
310
|
"load-newer-comments": string;
|
|
299
311
|
"load-older-comments": string;
|
|
300
312
|
"load-newer-replies": string;
|
|
@@ -370,6 +382,11 @@ export declare const defaultResources: {
|
|
|
370
382
|
header: string;
|
|
371
383
|
title: string;
|
|
372
384
|
};
|
|
385
|
+
POPULARITY_DESC: {
|
|
386
|
+
description: string;
|
|
387
|
+
header: string;
|
|
388
|
+
title: string;
|
|
389
|
+
};
|
|
373
390
|
LIST: {
|
|
374
391
|
description: string;
|
|
375
392
|
title: string;
|
|
@@ -382,6 +399,11 @@ export declare const defaultResources: {
|
|
|
382
399
|
};
|
|
383
400
|
labels: {
|
|
384
401
|
"sort-comments": string;
|
|
402
|
+
"view-structure": string;
|
|
403
|
+
"author-badge": string;
|
|
404
|
+
"comment-list": string;
|
|
405
|
+
"discussion-link": string;
|
|
406
|
+
"commentary-actions": string;
|
|
385
407
|
};
|
|
386
408
|
"new-commentary": string;
|
|
387
409
|
"new-commentary_other": string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'vue';
|
|
2
2
|
|
|
3
3
|
import type { Engagently } from '../main/lib/engagently';
|
|
4
|
+
import { PollEvents } from '../common/_types/WidgetDefinitions';
|
|
4
5
|
import type {
|
|
5
|
-
PollEvents,
|
|
6
6
|
PollWidgetEvents,
|
|
7
7
|
DiscussionAttributesHTMLElement,
|
|
8
8
|
PollAttributesHTMLElement,
|
|
@@ -63,9 +63,7 @@ declare global {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
interface HTMLElementEventMap extends PollWidgetEvents {}
|
|
68
|
-
}
|
|
66
|
+
interface HTMLElementEventMap extends PollWidgetEvents {}
|
|
69
67
|
|
|
70
68
|
interface Window {
|
|
71
69
|
engagently?: Engagently;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* These types will be shared with the ts package
|
|
3
|
+
*/
|
|
4
|
+
/** Poll Data for the PollBar widget */
|
|
5
|
+
export type PollBarData = {
|
|
6
|
+
question?: {
|
|
7
|
+
id?: string | null;
|
|
8
|
+
text?: string | null;
|
|
9
|
+
};
|
|
10
|
+
choices?: Array<PollBarChoice> | null;
|
|
11
|
+
stats: {
|
|
12
|
+
clicks: number;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type PollBarChoice = {
|
|
16
|
+
id?: string;
|
|
17
|
+
label?: string;
|
|
18
|
+
imageUrl?: string | null;
|
|
19
|
+
stats: {
|
|
20
|
+
clicks: number;
|
|
21
|
+
};
|
|
22
|
+
} | null;
|
|
23
|
+
/** Poll Data for the PollSlider widget */
|
|
24
|
+
export type ChartData = {
|
|
25
|
+
question?: {
|
|
26
|
+
id?: string | null;
|
|
27
|
+
text?: string | null;
|
|
28
|
+
};
|
|
29
|
+
choices?: Array<{
|
|
30
|
+
id: string;
|
|
31
|
+
label: string;
|
|
32
|
+
stats: {
|
|
33
|
+
clicks: number;
|
|
34
|
+
buckets?: Array<{
|
|
35
|
+
bucket: string;
|
|
36
|
+
clicks: number;
|
|
37
|
+
}> | null;
|
|
38
|
+
};
|
|
39
|
+
} | null> | null;
|
|
40
|
+
};
|