@basis-theory/react-elements 1.18.0 → 1.19.0
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/package.json +2 -2
- package/types/index.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0",
|
|
4
4
|
"repository": "https://github.com/basis-theory/react-elements",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tag": "latest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@basis-theory/web-elements": "1.
|
|
33
|
+
"@basis-theory/web-elements": "1.19.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
package/types/index.d.ts
CHANGED
|
@@ -371,10 +371,12 @@ export type EncryptTokenModel<DataType = Primitive> = {
|
|
|
371
371
|
public_key: string;
|
|
372
372
|
key_id: string;
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
type EncryptedSingleToken = {
|
|
375
375
|
encrypted: string;
|
|
376
376
|
type: TokenBase['type'];
|
|
377
377
|
};
|
|
378
|
+
type EncryptedMultipleTokens = Record<string, EncryptedSingleToken>;
|
|
379
|
+
export type EncryptedToken = EncryptedSingleToken | EncryptedMultipleTokens;
|
|
378
380
|
export type TokenizeObject<DataType = Primitive> = {
|
|
379
381
|
[key: string]: Primitive | TokenizeObject<DataType> | TokenizeArray<DataType> | DataType;
|
|
380
382
|
};
|