@notabene/javascript-sdk 1.34.0 → 2.0.0-RC
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/LICENSE.md +21 -0
- package/README.md +500 -259
- package/dist/{es/index.js → js/notabene.js} +1 -1
- package/dist/notabene.cjs +1 -0
- package/dist/notabene.d.ts +1565 -0
- package/dist/notabene.js +343 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/package.json +50 -64
- package/src/__tests__/notabene.test.ts +270 -0
- package/src/components/EmbeddedComponent.ts +237 -0
- package/src/components/__tests__/EmbeddedComponent.test.ts +530 -0
- package/src/ivms/types.ts +232 -152
- package/src/locales.ts +47 -0
- package/src/notabene.ts +292 -288
- package/src/types.ts +1068 -78
- package/src/utils/MessageEventManager.ts +115 -0
- package/src/utils/__tests__/MessageEventManager.test.ts +119 -0
- package/src/utils/__tests__/urls.test.ts +112 -0
- package/src/utils/arbitraries.ts +244 -0
- package/src/utils/caip.ts +16 -0
- package/src/utils/urls.ts +40 -0
- package/.editorconfig +0 -10
- package/.envrc.template +0 -1
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -13
- package/.gitlab-ci.yml +0 -74
- package/.husky/commit-msg +0 -4
- package/.husky/pre-commit +0 -4
- package/.husky/pre-push +0 -4
- package/.nvmrc +0 -1
- package/.prettierrc +0 -4
- package/.releaserc.json +0 -16
- package/.tool-versions +0 -3
- package/.vscode/extensions.json +0 -7
- package/.vscode/settings.json +0 -11
- package/CODEOWNERS +0 -1
- package/dist/lib/index.js +0 -376
- package/jest.config.js +0 -5
- package/public/index.html +0 -93
- package/src/lib/index.ts +0 -2
- package/src/module/index.ts +0 -10
- package/src/zoidComponentProps.ts +0 -81
- package/tsconfig.json +0 -18
- /package/{public/js/.gitkeep → src/arbitraries.ts} +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
const generalProps = {
|
|
2
|
-
vaspDID: {
|
|
3
|
-
type: 'string',
|
|
4
|
-
required: true,
|
|
5
|
-
},
|
|
6
|
-
transaction: {
|
|
7
|
-
type: 'object',
|
|
8
|
-
required: false,
|
|
9
|
-
},
|
|
10
|
-
error: {
|
|
11
|
-
type: 'object',
|
|
12
|
-
required: false,
|
|
13
|
-
},
|
|
14
|
-
onError: {
|
|
15
|
-
type: 'function',
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
storeTransaction: {
|
|
19
|
-
type: 'function',
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
theme: {
|
|
23
|
-
type: 'object',
|
|
24
|
-
required: false,
|
|
25
|
-
},
|
|
26
|
-
dictionary: {
|
|
27
|
-
type: 'object',
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
transactionTypeAllowed: {
|
|
31
|
-
type: 'string',
|
|
32
|
-
required: false,
|
|
33
|
-
},
|
|
34
|
-
nonCustodialDeclarationType: {
|
|
35
|
-
type: 'string',
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
38
|
-
beneficiaryDetails: {
|
|
39
|
-
type: 'array',
|
|
40
|
-
required: false,
|
|
41
|
-
},
|
|
42
|
-
fieldsProps: {
|
|
43
|
-
type: 'object',
|
|
44
|
-
required: false,
|
|
45
|
-
},
|
|
46
|
-
fallbacks: {
|
|
47
|
-
type: 'array',
|
|
48
|
-
required: false,
|
|
49
|
-
},
|
|
50
|
-
optInFeatures: {
|
|
51
|
-
type: 'array',
|
|
52
|
-
required: false,
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const widgetProps = {
|
|
57
|
-
...generalProps,
|
|
58
|
-
onRequireAdditionalInformation: {
|
|
59
|
-
type: 'function',
|
|
60
|
-
required: true,
|
|
61
|
-
},
|
|
62
|
-
onValidStateChange: {
|
|
63
|
-
type: 'function',
|
|
64
|
-
required: true,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export const popupProps = {
|
|
69
|
-
...generalProps,
|
|
70
|
-
close: {
|
|
71
|
-
type: 'function',
|
|
72
|
-
},
|
|
73
|
-
popupOpen: {
|
|
74
|
-
type: 'boolean',
|
|
75
|
-
required: true,
|
|
76
|
-
},
|
|
77
|
-
setPopupOpen: {
|
|
78
|
-
type: 'function',
|
|
79
|
-
required: true,
|
|
80
|
-
},
|
|
81
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"module": "ES2020",
|
|
5
|
-
"strict": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"outDir": "./dist",
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"sourceMap": false,
|
|
12
|
-
"baseUrl": "src",
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"lib": ["dom", "es2016"]
|
|
15
|
-
},
|
|
16
|
-
"include": ["./src"],
|
|
17
|
-
"exclude": [".git", "node_modules"]
|
|
18
|
-
}
|
|
File without changes
|