@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@criipto/verify-react",
3
3
  "private": false,
4
- "version": "4.0.2",
4
+ "version": "4.0.4",
5
5
  "description": "Verify SDK for React Single Page Applications",
6
6
  "main": "dist/criipto-verify-react.cjs.js",
7
7
  "types": "dist/index.d.ts",