@livetiles/reach-plugin-types 0.4.142 → 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.
Files changed (2) hide show
  1. package/lib/index.d.ts +49 -28
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -473,6 +473,13 @@ declare module "libs/reach/util/common/src/SortDirection" {
473
473
  desc = -1
474
474
  }
475
475
  }
476
+ declare module "libs/reach/util/context/src/ChromeSettingsContext" {
477
+ import { FC } from 'react';
478
+ export const ChromeSettingsContext: import("react").Context<{
479
+ hideChrome: boolean;
480
+ }>;
481
+ export const ChromeSettingsContextProvider: FC;
482
+ }
476
483
  declare module "libs/reach/util/context/src/ErrorContext" {
477
484
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
478
485
  export const ErrorContext: import("react").Context<{
@@ -514,22 +521,19 @@ declare module "libs/reach/util/context/src/StorageContext" {
514
521
  export const StorageContext: import("react").Context<Storage>;
515
522
  export function useStorage(): Storage;
516
523
  }
517
- declare module "libs/reach/util/context/src/SubscriptionIdContext" {
518
- export interface SubscriptionIdentifier {
519
- id?: string;
520
- subscriptionHandle?: string;
524
+ declare module "libs/reach/util/context/src/MemoryCache" {
525
+ import { Storage } from "libs/reach/util/context/src/StorageContext";
526
+ class MemoryStorage implements Storage {
527
+ private storage;
528
+ remove(key: string): Promise<void>;
529
+ clearAll(): Promise<void>;
530
+ getObject<T>(key: string): Promise<T>;
531
+ set<T>(key: string, value: T): Promise<void>;
532
+ getString(key: string): Promise<string>;
533
+ setString(key: string, value: string): Promise<void>;
534
+ getAllKeys(): Promise<string[]>;
521
535
  }
522
- export const SubscriptionIdContext: import("react").Context<{
523
- setIdentifier: (identifier: SubscriptionIdentifier) => void;
524
- } & {
525
- identifier: SubscriptionIdentifier;
526
- }>;
527
- }
528
- declare module "libs/reach/util/context/src/SubscriptionIdContextProvider" {
529
- import { FC } from 'react';
530
- export const SubscriptionIdContextProvider: FC<{
531
- subscriptionId?: string;
532
- }>;
536
+ export const memoryStorageInstance: MemoryStorage;
533
537
  }
534
538
  declare module "libs/reach/util/context/src/ResourceContext" {
535
539
  import { FC } from 'react';
@@ -548,21 +552,32 @@ declare module "libs/reach/util/context/src/ResourceContext" {
548
552
  }
549
553
  export const ResourceContext: import("react").Context<ResourceContextType>;
550
554
  }
551
- declare module "libs/reach/util/context/src/ChromeSettingsContext" {
555
+ declare module "libs/reach/util/context/src/SubscriptionIdContext" {
556
+ export interface SubscriptionIdentifier {
557
+ id?: string;
558
+ subscriptionHandle?: string;
559
+ }
560
+ export const SubscriptionIdContext: import("react").Context<{
561
+ setIdentifier: (identifier: SubscriptionIdentifier) => void;
562
+ } & {
563
+ identifier: SubscriptionIdentifier;
564
+ }>;
565
+ }
566
+ declare module "libs/reach/util/context/src/SubscriptionIdContextProvider" {
552
567
  import { FC } from 'react';
553
- export const ChromeSettingsContext: import("react").Context<{
554
- hideChrome: boolean;
568
+ export const SubscriptionIdContextProvider: FC<{
569
+ subscriptionId?: string;
555
570
  }>;
556
- export const ChromeSettingsContextProvider: FC;
557
571
  }
558
572
  declare module "libs/reach/util/context/src/index" {
573
+ export * from "libs/reach/util/context/src/ChromeSettingsContext";
559
574
  export * from "libs/reach/util/context/src/ErrorContext";
560
575
  export * from "libs/reach/util/context/src/LinkContext";
576
+ export * from "libs/reach/util/context/src/MemoryCache";
577
+ export * from "libs/reach/util/context/src/ResourceContext";
561
578
  export * from "libs/reach/util/context/src/StorageContext";
562
579
  export * from "libs/reach/util/context/src/SubscriptionIdContext";
563
580
  export * from "libs/reach/util/context/src/SubscriptionIdContextProvider";
564
- export * from "libs/reach/util/context/src/ResourceContext";
565
- export * from "libs/reach/util/context/src/ChromeSettingsContext";
566
581
  }
567
582
  declare module "libs/reach/util/common/src/useCacheLanguageApi" {
568
583
  export function useCacheLanguageApi(): {
@@ -1807,24 +1822,28 @@ declare module "libs/reach/util/common/src/content/BaseItem" {
1807
1822
  choices: PollQuestionChoice[];
1808
1823
  }
1809
1824
  export interface PollQuestionSettings {
1825
+ allowOtherAnswer?: boolean;
1810
1826
  isMultiChoice?: boolean;
1811
1827
  }
1812
1828
  export interface PollQuestionChoice {
1813
1829
  choiceId: string;
1814
1830
  description?: string;
1815
1831
  disabled?: boolean;
1832
+ isOther?: boolean;
1816
1833
  }
1817
1834
  export interface PollQuestionAnswer {
1818
- questionId: string;
1819
1835
  choiceIds: string[];
1836
+ freeTextAnswer?: string;
1837
+ questionId: string;
1820
1838
  }
1821
1839
  export interface QuestionResult {
1822
- showResults: boolean;
1823
1840
  choiceResults: {
1824
1841
  [choiceId: string]: number;
1825
1842
  };
1826
- userSelectedChoices: string[];
1843
+ freeTextAnswer?: string;
1844
+ showResults: boolean;
1827
1845
  totalFeedbackCount: number;
1846
+ userSelectedChoices: string[];
1828
1847
  }
1829
1848
  export interface PollResult {
1830
1849
  totalFeedbackCount?: number;
@@ -1964,6 +1983,7 @@ declare module "libs/reach/util/common/src/content/PublishableItem" {
1964
1983
  }
1965
1984
  export interface ChoiceTranslations {
1966
1985
  choiceId: string;
1986
+ isOther: boolean;
1967
1987
  text: string;
1968
1988
  }
1969
1989
  export interface TaskSummary {
@@ -7472,7 +7492,7 @@ declare module "libs/reach/feature/content/src/forms/videos/InsertVideoDialog" {
7472
7492
  declare module "libs/reach/feature/content/src/forms/videos/VideoElementGenerator" {
7473
7493
  import { VideoInfo } from "libs/reach/feature/content/src/forms/videos/InsertVideoDialog";
7474
7494
  import { TVideoProperties } from "libs/reach/feature/content/src/forms/videos/VideoUrlParser";
7475
- export const getMicrosoftStreamVideoUrl: (id: string) => string;
7495
+ export const getMicrosoftStreamVideoUrl: (url: string) => string;
7476
7496
  export class VideoElementGenerator {
7477
7497
  private videoInfo;
7478
7498
  private iframeAreaLabel;
@@ -7613,8 +7633,8 @@ declare module "libs/reach/feature/content/src/common/detail/events/EventPathCon
7613
7633
  }>;
7614
7634
  }
7615
7635
  declare module "libs/reach/feature/content/src/common/detail/events/controls/EventMetaInfo" {
7616
- import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7617
7636
  import { FC } from 'react';
7637
+ import { Channel, EventItem, EventLocation } from "libs/reach/util/common/src/index";
7618
7638
  export const EventLocationInfo: FC<{
7619
7639
  className?: string;
7620
7640
  itemId: string;
@@ -9447,6 +9467,7 @@ declare module "libs/reach/feature/content/src/feedback/PollUserContext" {
9447
9467
  questions: PollQuestion[];
9448
9468
  answers: PollQuestionAnswer[];
9449
9469
  addAnswer: (questionId: string, selectedChoiceIds: string[]) => unknown;
9470
+ addFreeTextAnswer: (questionId: string, freeTextAnswer: string | null) => void;
9450
9471
  setAnswers: (answers: PollQuestionAnswer[]) => unknown;
9451
9472
  hasMissingAnswers: boolean;
9452
9473
  hasMissingUnsavedAnswer: boolean;
@@ -11254,11 +11275,11 @@ declare module "libs/reach/feature/content/src/stream/useEventsStreamDataLoader"
11254
11275
  export const CONTACTS_CONDITION: (contacts: string[]) => string;
11255
11276
  }
11256
11277
  declare module "libs/reach/feature/content/src/stream/useMarkStreamItemsAsRead" {
11257
- import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11258
11278
  import { ItemTypeFilterFlag } from "libs/reach/feature/content/src/filter/index";
11279
+ import { StreamFilterDefinition } from "libs/reach/feature/content/src/stream/useStreamItemsQuery";
11259
11280
  export interface onMarkAsReadHandlers {
11260
- onStarted?: () => unknown;
11261
11281
  onFinished?: () => unknown;
11282
+ onStarted?: () => unknown;
11262
11283
  }
11263
11284
  export function useMarkStreamItemsAsRead(itemTypes: ItemTypeFilterFlag, filter?: StreamFilterDefinition, searchText?: string, handlers?: onMarkAsReadHandlers, unreadCount?: number): () => Promise<void>;
11264
11285
  }
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.142",
7
+ "version": "0.4.144",
8
8
  "dependencies": {}
9
9
  }