@livetiles/reach-plugin-types 0.4.143 → 0.4.144
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.
- package/lib/index.d.ts +10 -4
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1822,24 +1822,28 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
|
|
|
1822
1822
|
choices: PollQuestionChoice[];
|
|
1823
1823
|
}
|
|
1824
1824
|
export interface PollQuestionSettings {
|
|
1825
|
+
allowOtherAnswer?: boolean;
|
|
1825
1826
|
isMultiChoice?: boolean;
|
|
1826
1827
|
}
|
|
1827
1828
|
export interface PollQuestionChoice {
|
|
1828
1829
|
choiceId: string;
|
|
1829
1830
|
description?: string;
|
|
1830
1831
|
disabled?: boolean;
|
|
1832
|
+
isOther?: boolean;
|
|
1831
1833
|
}
|
|
1832
1834
|
export interface PollQuestionAnswer {
|
|
1833
|
-
questionId: string;
|
|
1834
1835
|
choiceIds: string[];
|
|
1836
|
+
freeTextAnswer?: string;
|
|
1837
|
+
questionId: string;
|
|
1835
1838
|
}
|
|
1836
1839
|
export interface QuestionResult {
|
|
1837
|
-
showResults: boolean;
|
|
1838
1840
|
choiceResults: {
|
|
1839
1841
|
[choiceId: string]: number;
|
|
1840
1842
|
};
|
|
1841
|
-
|
|
1843
|
+
freeTextAnswer?: string;
|
|
1844
|
+
showResults: boolean;
|
|
1842
1845
|
totalFeedbackCount: number;
|
|
1846
|
+
userSelectedChoices: string[];
|
|
1843
1847
|
}
|
|
1844
1848
|
export interface PollResult {
|
|
1845
1849
|
totalFeedbackCount?: number;
|
|
@@ -1979,6 +1983,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
|
|
|
1979
1983
|
}
|
|
1980
1984
|
export interface ChoiceTranslations {
|
|
1981
1985
|
choiceId: string;
|
|
1986
|
+
isOther: boolean;
|
|
1982
1987
|
text: string;
|
|
1983
1988
|
}
|
|
1984
1989
|
export interface TaskSummary {
|
|
@@ -7628,8 +7633,8 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
|
|
|
7628
7633
|
}>;
|
|
7629
7634
|
}
|
|
7630
7635
|
declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
|
|
7631
|
-
import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
|
|
7632
7636
|
import { FC } from 'react';
|
|
7637
|
+
import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
|
|
7633
7638
|
export const EventLocationInfo: FC<{
|
|
7634
7639
|
className?: string;
|
|
7635
7640
|
itemId: string;
|
|
@@ -9462,6 +9467,7 @@ declare module "libs/reach/feature/content/src/feedback/PollUserContext" {
|
|
|
9462
9467
|
questions: PollQuestion[];
|
|
9463
9468
|
answers: PollQuestionAnswer[];
|
|
9464
9469
|
addAnswer: (questionId: string, selectedChoiceIds: string[]) => unknown;
|
|
9470
|
+
addFreeTextAnswer: (questionId: string, freeTextAnswer: string | null) => void;
|
|
9465
9471
|
setAnswers: (answers: PollQuestionAnswer[]) => unknown;
|
|
9466
9472
|
hasMissingAnswers: boolean;
|
|
9467
9473
|
hasMissingUnsavedAnswer: boolean;
|