@livetiles/reach-plugin-types 0.5.0-preview.1071 → 0.5.0-preview.1072
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 +92 -77
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -705,81 +705,6 @@ declare module "libs/shared/util/environment/src/index" {
|
|
|
705
705
|
export * from "libs/shared/util/environment/src/ClientConfigContext";
|
|
706
706
|
export * from "libs/shared/util/environment/src/OpenIdConfiguration";
|
|
707
707
|
}
|
|
708
|
-
declare module "libs/reach/util/context/src/ErrorContext" {
|
|
709
|
-
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
710
|
-
export const ErrorContext: import("react").Context<{
|
|
711
|
-
handleAccessDeniedError: (error: AccessDeniedError) => unknown;
|
|
712
|
-
handleFatalError: (error: FatalError) => unknown;
|
|
713
|
-
handleNotFoundError: (error: NotFoundError) => unknown;
|
|
714
|
-
}>;
|
|
715
|
-
export interface AccessDeniedError {
|
|
716
|
-
authType?: AuthenticationType;
|
|
717
|
-
error?: any;
|
|
718
|
-
errorMessage?: string;
|
|
719
|
-
}
|
|
720
|
-
export interface FatalError {
|
|
721
|
-
error: any;
|
|
722
|
-
messageId?: string;
|
|
723
|
-
}
|
|
724
|
-
export interface NotFoundError {
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
declare module "libs/reach/util/context/src/LinkContext" {
|
|
728
|
-
export interface LinkContextType {
|
|
729
|
-
onShare: (url: string) => Promise<boolean>;
|
|
730
|
-
onOpenExternalLink: (url: string, newTab?: boolean) => Promise<void> | unknown;
|
|
731
|
-
tryGetInternalLink: (url: string, appUrls: string[]) => string;
|
|
732
|
-
changeHistory: (url: string) => unknown;
|
|
733
|
-
}
|
|
734
|
-
export const LinkContext: import("react").Context<LinkContextType>;
|
|
735
|
-
}
|
|
736
|
-
declare module "libs/reach/util/context/src/StorageContext" {
|
|
737
|
-
export interface Storage {
|
|
738
|
-
clearAll(): Promise<void>;
|
|
739
|
-
remove(key: string): Promise<void>;
|
|
740
|
-
getObject<T>(key: string): Promise<T>;
|
|
741
|
-
getString(key: string): Promise<string>;
|
|
742
|
-
setString(key: string, value: string): Promise<void>;
|
|
743
|
-
set<T>(key: string, value: T): Promise<void>;
|
|
744
|
-
getAllKeys(): Promise<string[]>;
|
|
745
|
-
}
|
|
746
|
-
export const StorageContext: import("react").Context<Storage>;
|
|
747
|
-
export function useStorage(): Storage;
|
|
748
|
-
}
|
|
749
|
-
declare module "libs/reach/util/context/src/SubscriptionIdContext" {
|
|
750
|
-
export interface SubscriptionIdentifier {
|
|
751
|
-
id?: string;
|
|
752
|
-
subscriptionHandle?: string;
|
|
753
|
-
}
|
|
754
|
-
export const SubscriptionIdContext: import("react").Context<{
|
|
755
|
-
setIdentifier: (identifier: SubscriptionIdentifier) => void;
|
|
756
|
-
} & {
|
|
757
|
-
identifier: SubscriptionIdentifier;
|
|
758
|
-
}>;
|
|
759
|
-
}
|
|
760
|
-
declare module "libs/reach/util/context/src/SubscriptionIdContextProvider" {
|
|
761
|
-
import { FC } from 'react';
|
|
762
|
-
export const SubscriptionIdContextProvider: FC<{
|
|
763
|
-
subscriptionId?: string;
|
|
764
|
-
}>;
|
|
765
|
-
}
|
|
766
|
-
declare module "libs/reach/util/context/src/ResourceContext" {
|
|
767
|
-
import { FC } from 'react';
|
|
768
|
-
import { IntlShape } from 'react-intl';
|
|
769
|
-
export const IntlContext: import("react").Context<IntlShape>;
|
|
770
|
-
export const InjectIntlContext: FC;
|
|
771
|
-
interface ResourceContextType {
|
|
772
|
-
language: string;
|
|
773
|
-
changeLocale: (locale: string) => Promise<void>;
|
|
774
|
-
changeLanguage: (language: string) => Promise<void>;
|
|
775
|
-
changeSettings: (language: string, locale: string) => Promise<void>;
|
|
776
|
-
addResources: (resources: Resources) => void;
|
|
777
|
-
}
|
|
778
|
-
export interface Resources {
|
|
779
|
-
[language: string]: Record<string, string>;
|
|
780
|
-
}
|
|
781
|
-
export const ResourceContext: import("react").Context<ResourceContextType>;
|
|
782
|
-
}
|
|
783
708
|
declare module "libs/shared/util/common/src/Logger" {
|
|
784
709
|
export interface Logger {
|
|
785
710
|
verbose: (message?: any, ...optionalParams: any[]) => void;
|
|
@@ -880,14 +805,104 @@ declare module "libs/reach/util/context/src/ChromeSettingsContext" {
|
|
|
880
805
|
}>;
|
|
881
806
|
export const ChromeSettingsContextProvider: FC;
|
|
882
807
|
}
|
|
808
|
+
declare module "libs/reach/util/context/src/ErrorContext" {
|
|
809
|
+
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
810
|
+
export const ErrorContext: import("react").Context<{
|
|
811
|
+
handleAccessDeniedError: (error: AccessDeniedError) => unknown;
|
|
812
|
+
handleFatalError: (error: FatalError) => unknown;
|
|
813
|
+
handleNotFoundError: (error: NotFoundError) => unknown;
|
|
814
|
+
}>;
|
|
815
|
+
export interface AccessDeniedError {
|
|
816
|
+
authType?: AuthenticationType;
|
|
817
|
+
error?: any;
|
|
818
|
+
errorMessage?: string;
|
|
819
|
+
}
|
|
820
|
+
export interface FatalError {
|
|
821
|
+
error: any;
|
|
822
|
+
messageId?: string;
|
|
823
|
+
}
|
|
824
|
+
export interface NotFoundError {
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
declare module "libs/reach/util/context/src/LinkContext" {
|
|
828
|
+
export interface LinkContextType {
|
|
829
|
+
onShare: (url: string) => Promise<boolean>;
|
|
830
|
+
onOpenExternalLink: (url: string, newTab?: boolean) => Promise<void> | unknown;
|
|
831
|
+
tryGetInternalLink: (url: string, appUrls: string[]) => string;
|
|
832
|
+
changeHistory: (url: string) => unknown;
|
|
833
|
+
}
|
|
834
|
+
export const LinkContext: import("react").Context<LinkContextType>;
|
|
835
|
+
}
|
|
836
|
+
declare module "libs/reach/util/context/src/StorageContext" {
|
|
837
|
+
export interface Storage {
|
|
838
|
+
clearAll(): Promise<void>;
|
|
839
|
+
remove(key: string): Promise<void>;
|
|
840
|
+
getObject<T>(key: string): Promise<T>;
|
|
841
|
+
getString(key: string): Promise<string>;
|
|
842
|
+
setString(key: string, value: string): Promise<void>;
|
|
843
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
844
|
+
getAllKeys(): Promise<string[]>;
|
|
845
|
+
}
|
|
846
|
+
export const StorageContext: import("react").Context<Storage>;
|
|
847
|
+
export function useStorage(): Storage;
|
|
848
|
+
}
|
|
849
|
+
declare module "libs/reach/util/context/src/MemoryCache" {
|
|
850
|
+
import { Storage } from "libs/reach/util/context/src/StorageContext";
|
|
851
|
+
class MemoryStorage implements Storage {
|
|
852
|
+
private storage;
|
|
853
|
+
remove(key: string): Promise<void>;
|
|
854
|
+
clearAll(): Promise<void>;
|
|
855
|
+
getObject<T>(key: string): Promise<T>;
|
|
856
|
+
set<T>(key: string, value: T): Promise<void>;
|
|
857
|
+
getString(key: string): Promise<string>;
|
|
858
|
+
setString(key: string, value: string): Promise<void>;
|
|
859
|
+
getAllKeys(): Promise<string[]>;
|
|
860
|
+
}
|
|
861
|
+
export const memoryStorageInstance: MemoryStorage;
|
|
862
|
+
}
|
|
863
|
+
declare module "libs/reach/util/context/src/ResourceContext" {
|
|
864
|
+
import { FC } from 'react';
|
|
865
|
+
import { IntlShape } from 'react-intl';
|
|
866
|
+
export const IntlContext: import("react").Context<IntlShape>;
|
|
867
|
+
export const InjectIntlContext: FC;
|
|
868
|
+
interface ResourceContextType {
|
|
869
|
+
language: string;
|
|
870
|
+
changeLocale: (locale: string) => Promise<void>;
|
|
871
|
+
changeLanguage: (language: string) => Promise<void>;
|
|
872
|
+
changeSettings: (language: string, locale: string) => Promise<void>;
|
|
873
|
+
addResources: (resources: Resources) => void;
|
|
874
|
+
}
|
|
875
|
+
export interface Resources {
|
|
876
|
+
[language: string]: Record<string, string>;
|
|
877
|
+
}
|
|
878
|
+
export const ResourceContext: import("react").Context<ResourceContextType>;
|
|
879
|
+
}
|
|
880
|
+
declare module "libs/reach/util/context/src/SubscriptionIdContext" {
|
|
881
|
+
export interface SubscriptionIdentifier {
|
|
882
|
+
id?: string;
|
|
883
|
+
subscriptionHandle?: string;
|
|
884
|
+
}
|
|
885
|
+
export const SubscriptionIdContext: import("react").Context<{
|
|
886
|
+
setIdentifier: (identifier: SubscriptionIdentifier) => void;
|
|
887
|
+
} & {
|
|
888
|
+
identifier: SubscriptionIdentifier;
|
|
889
|
+
}>;
|
|
890
|
+
}
|
|
891
|
+
declare module "libs/reach/util/context/src/SubscriptionIdContextProvider" {
|
|
892
|
+
import { FC } from 'react';
|
|
893
|
+
export const SubscriptionIdContextProvider: FC<{
|
|
894
|
+
subscriptionId?: string;
|
|
895
|
+
}>;
|
|
896
|
+
}
|
|
883
897
|
declare module "libs/reach/util/context/src/index" {
|
|
898
|
+
export * from "libs/reach/util/context/src/ChromeSettingsContext";
|
|
884
899
|
export * from "libs/reach/util/context/src/ErrorContext";
|
|
885
900
|
export * from "libs/reach/util/context/src/LinkContext";
|
|
901
|
+
export * from "libs/reach/util/context/src/MemoryCache";
|
|
902
|
+
export * from "libs/reach/util/context/src/ResourceContext";
|
|
886
903
|
export * from "libs/reach/util/context/src/StorageContext";
|
|
887
904
|
export * from "libs/reach/util/context/src/SubscriptionIdContext";
|
|
888
905
|
export * from "libs/reach/util/context/src/SubscriptionIdContextProvider";
|
|
889
|
-
export * from "libs/reach/util/context/src/ResourceContext";
|
|
890
|
-
export * from "libs/reach/util/context/src/ChromeSettingsContext";
|
|
891
906
|
}
|
|
892
907
|
declare module "libs/reach/util/common/src/user/Audience" {
|
|
893
908
|
import { Account } from "libs/reach/util/common/src/user/Account";
|