@livetiles/reach-plugin-types 0.5.0-preview.1044 → 0.5.0-preview.1045

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +9 -4
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -1724,24 +1724,28 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1724
1724
  choices: PollQuestionChoice[];
1725
1725
  }
1726
1726
  export interface PollQuestionSettings {
1727
+ allowOtherAnswer?: boolean;
1727
1728
  isMultiChoice?: boolean;
1728
1729
  }
1729
1730
  export interface PollQuestionChoice {
1730
1731
  choiceId: string;
1731
1732
  description?: string;
1732
1733
  disabled?: boolean;
1734
+ isOther?: boolean;
1733
1735
  }
1734
1736
  export interface PollQuestionAnswer {
1735
- questionId: string;
1736
1737
  choiceIds: string[];
1738
+ freeTextAnswer?: string;
1739
+ questionId: string;
1737
1740
  }
1738
1741
  export interface QuestionResult {
1739
- showResults: boolean;
1740
1742
  choiceResults: {
1741
1743
  [choiceId: string]: number;
1742
1744
  };
1743
- userSelectedChoices: string[];
1745
+ freeTextAnswer?: string;
1746
+ showResults: boolean;
1744
1747
  totalFeedbackCount: number;
1748
+ userSelectedChoices: string[];
1745
1749
  }
1746
1750
  export interface PollResult {
1747
1751
  totalFeedbackCount?: number;
@@ -7858,8 +7862,8 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
7858
7862
  }>;
7859
7863
  }
7860
7864
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7861
- import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7862
7865
  import { FC } from 'react';
7866
+ import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7863
7867
  export const EventLocationInfo: FC<{
7864
7868
  className?: string;
7865
7869
  itemId: string;
@@ -9641,6 +9645,7 @@ declare module "libs/reach/feature/content/src/feedback/PollUserContext" {
9641
9645
  questions: PollQuestion[];
9642
9646
  answers: PollQuestionAnswer[];
9643
9647
  addAnswer: (questionId: string, selectedChoiceIds: string[]) => unknown;
9648
+ addFreeTextAnswer: (questionId: string, freeTextAnswer: string | null) => void;
9644
9649
  setAnswers: (answers: PollQuestionAnswer[]) => unknown;
9645
9650
  hasMissingAnswers: boolean;
9646
9651
  hasMissingUnsavedAnswer: boolean;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1044",
7
+ "version": "0.5.0-preview.1045",
8
8
  "dependencies": {}
9
9
  }