@criipto/verify-react 4.0.2 → 4.0.4
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/dist/utils.d.ts
CHANGED
|
@@ -8,10 +8,18 @@ export declare function assertUnreachableLanguage(x: never): never;
|
|
|
8
8
|
export declare type Language = 'en' | 'da' | 'sv' | 'nb';
|
|
9
9
|
export declare function stringifyAction(language: Language, action: Action): string;
|
|
10
10
|
export declare function acrValueToProviderPrefix(value: string): string;
|
|
11
|
-
export declare function acrValueToTitle(language: Language, value: string
|
|
11
|
+
export declare function acrValueToTitle(language: Language, value: string, { disambiguate }: {
|
|
12
|
+
disambiguate: boolean;
|
|
13
|
+
}): {
|
|
12
14
|
title: string;
|
|
13
15
|
subtitle?: string;
|
|
14
16
|
};
|
|
15
17
|
export declare function filterAcrValues(input: string[]): string[];
|
|
16
18
|
export declare function isSingle(acrValue: string, acrValues: string[]): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A provider is considered ambiguous iff:
|
|
21
|
+
* 1. It is in the list of ambiguous providers
|
|
22
|
+
* 2. There is another ambiguous provider in the arc values list
|
|
23
|
+
*/
|
|
24
|
+
export declare function isAmbiguous(acrValue: string, acrValues: string[]): boolean;
|
|
17
25
|
export declare function trySessionStorage(): Storage | null;
|
package/package.json
CHANGED