@incodetech/web 2.0.0-alpha.2 → 2.0.0-alpha.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/{styles/core.css → base.css} +53 -57
- package/dist/email/email.es.js +1 -1
- package/dist/email/styles.css +11 -11
- package/dist/flow/styles.css +688 -1
- package/dist/{incodeModule-BF5MX9GT.js → incodeModule-Ct9jp5k6.js} +22 -19
- package/dist/index.es.js +18 -18
- package/dist/phone/phone.es.js +1 -1
- package/dist/phone/styles.css +31 -31
- package/dist/selfie/selfie.es.js +16 -16
- package/dist/selfie/styles.css +0 -51
- package/dist/themes/dark.css +652 -0
- package/dist/types/dark.d.ts +1 -0
- package/dist/types/light.d.ts +1 -0
- package/dist/types/themes/light.d.ts +1 -0
- package/package.json +12 -6
- package/.turbo/turbo-build.log +0 -58
- package/.turbo/turbo-coverage.log +0 -23
- package/.turbo/turbo-format.log +0 -6
- package/.turbo/turbo-lint$colon$fix.log +0 -6
- package/.turbo/turbo-lint.log +0 -6
- package/.turbo/turbo-test.log +0 -1033
- package/.turbo/turbo-typecheck.log +0 -5
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/email/email.tsx.html +0 -850
- package/coverage/email/emailInput.tsx.html +0 -340
- package/coverage/email/index.html +0 -131
- package/coverage/favicon.png +0 -0
- package/coverage/flow/flow.tsx.html +0 -961
- package/coverage/flow/flowCompleted.tsx.html +0 -448
- package/coverage/flow/flowInit.ts.html +0 -367
- package/coverage/flow/flowStart.tsx.html +0 -208
- package/coverage/flow/index.html +0 -221
- package/coverage/flow/preloadFlow.ts.html +0 -598
- package/coverage/flow/unsupportedModule.tsx.html +0 -202
- package/coverage/flow/useFlowInitialization.ts.html +0 -469
- package/coverage/flow/useModuleLoader.ts.html +0 -361
- package/coverage/hooks/index.html +0 -116
- package/coverage/hooks/useManager.ts.html +0 -205
- package/coverage/index.html +0 -401
- package/coverage/permissions/boldWithArrow.tsx.html +0 -208
- package/coverage/permissions/denied.tsx.html +0 -172
- package/coverage/permissions/deniedAndroid.tsx.html +0 -253
- package/coverage/permissions/deniedDesktop.tsx.html +0 -277
- package/coverage/permissions/deniedIOS.tsx.html +0 -304
- package/coverage/permissions/deniedInstructions.tsx.html +0 -142
- package/coverage/permissions/iconWrapper.tsx.html +0 -130
- package/coverage/permissions/index.html +0 -251
- package/coverage/permissions/learnMore.tsx.html +0 -340
- package/coverage/permissions/numberedStep.tsx.html +0 -127
- package/coverage/permissions/permissions.tsx.html +0 -289
- package/coverage/phone/index.html +0 -116
- package/coverage/phone/phoneInput.tsx.html +0 -832
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/selfie/index.html +0 -131
- package/coverage/selfie/selfie.tsx.html +0 -334
- package/coverage/selfie/tutorial.tsx.html +0 -214
- package/coverage/shared/baseTutorial/baseTutorial.tsx.html +0 -250
- package/coverage/shared/baseTutorial/index.html +0 -131
- package/coverage/shared/baseTutorial/replaceBaseTutorial.ts.html +0 -289
- package/coverage/shared/button/button.tsx.html +0 -226
- package/coverage/shared/button/index.html +0 -116
- package/coverage/shared/componentRoot/incodeComponent.tsx.html +0 -121
- package/coverage/shared/componentRoot/index.html +0 -116
- package/coverage/shared/countries/countries.ts.html +0 -502
- package/coverage/shared/countries/index.html +0 -116
- package/coverage/shared/icons/chevronDown.tsx.html +0 -151
- package/coverage/shared/icons/index.html +0 -131
- package/coverage/shared/icons/successIcon.tsx.html +0 -163
- package/coverage/shared/loader/index.html +0 -116
- package/coverage/shared/loader/loadingIcon.tsx.html +0 -286
- package/coverage/shared/otpInput/index.html +0 -116
- package/coverage/shared/otpInput/otpInput.tsx.html +0 -808
- package/coverage/shared/page/index.html +0 -146
- package/coverage/shared/page/page.tsx.html +0 -358
- package/coverage/shared/page/pageUiConfig.ts.html +0 -277
- package/coverage/shared/page/verifiedByIncode.tsx.html +0 -310
- package/coverage/shared/spacer/index.html +0 -116
- package/coverage/shared/spacer/spacer.tsx.html +0 -349
- package/coverage/shared/spinner/index.html +0 -116
- package/coverage/shared/spinner/spinner.tsx.html +0 -280
- package/coverage/shared/title/index.html +0 -116
- package/coverage/shared/title/title.tsx.html +0 -121
- package/coverage/shared/uiConfig/index.html +0 -116
- package/coverage/shared/uiConfig/uiConfig.ts.html +0 -193
- package/coverage/shared/webComponent/incodeModule.ts.html +0 -172
- package/coverage/shared/webComponent/index.html +0 -131
- package/coverage/shared/webComponent/registerIncodeElement.ts.html +0 -130
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/styles/cn.tsx.html +0 -148
- package/coverage/styles/fetchTheme.ts.html +0 -349
- package/coverage/styles/index.html +0 -131
- package/dev/README.md +0 -163
- package/dev/getToken.ts +0 -36
- package/dev/headless.html +0 -875
- package/dev/index.html +0 -366
- package/dev/main-headless.tsx +0 -1332
- package/dev/main-orchestrated-flow.tsx +0 -1158
- package/dev/main-preact.tsx +0 -323
- package/dev/main-simplified.tsx +0 -123
- package/dev/main-web-component.tsx +0 -256
- package/dev/main.tsx +0 -332
- package/dev/manual.html +0 -27
- package/dev/orchestrated-flow.html +0 -64
- package/dev/simplified.html +0 -64
- package/dev/tiktok-logo.svg +0 -7
- package/dist/asset-manifest.json +0 -18
- package/src/defineCustomElement.tsx +0 -30
- package/src/email/email.test.tsx +0 -368
- package/src/email/email.tsx +0 -255
- package/src/email/emailInput.test.tsx +0 -264
- package/src/email/emailInput.tsx +0 -85
- package/src/email/styles.css +0 -59
- package/src/flow/flow.test.tsx +0 -796
- package/src/flow/flow.tsx +0 -292
- package/src/flow/flowCompleted.css +0 -30
- package/src/flow/flowCompleted.test.tsx +0 -331
- package/src/flow/flowCompleted.tsx +0 -121
- package/src/flow/flowInit.test.ts +0 -264
- package/src/flow/flowInit.ts +0 -94
- package/src/flow/flowStart.css +0 -58
- package/src/flow/flowStart.test.tsx +0 -49
- package/src/flow/flowStart.tsx +0 -41
- package/src/flow/incode-logo.svg +0 -8
- package/src/flow/index.ts +0 -7
- package/src/flow/preloadFlow.test.ts +0 -421
- package/src/flow/preloadFlow.ts +0 -171
- package/src/flow/styles.css +0 -9
- package/src/flow/unsupportedModule.css +0 -21
- package/src/flow/unsupportedModule.tsx +0 -39
- package/src/flow/useFlowInitialization.test.tsx +0 -292
- package/src/flow/useFlowInitialization.ts +0 -128
- package/src/flow/useModuleLoader.test.tsx +0 -212
- package/src/flow/useModuleLoader.ts +0 -92
- package/src/hooks/index.ts +0 -1
- package/src/hooks/useManager.test.ts +0 -91
- package/src/hooks/useManager.ts +0 -40
- package/src/i18n/index.ts +0 -3
- package/src/i18n/instance.ts +0 -16
- package/src/i18n/setup.ts +0 -184
- package/src/i18n/useTranslation.ts +0 -42
- package/src/index.ts +0 -27
- package/src/permissions/assets/android-dots-icon.svg +0 -7
- package/src/permissions/assets/android-settings-icon.svg +0 -16
- package/src/permissions/assets/android-toggle-icon.svg +0 -20
- package/src/permissions/assets/bank-card-icon.svg +0 -14
- package/src/permissions/assets/camera-icon.svg +0 -12
- package/src/permissions/assets/camera-ios.svg +0 -53
- package/src/permissions/assets/check-icon.svg +0 -8
- package/src/permissions/assets/chrome-icon.svg +0 -43
- package/src/permissions/assets/password-icon.svg +0 -11
- package/src/permissions/assets/permissions-img.svg +0 -51
- package/src/permissions/assets/safari-icon.svg +0 -37
- package/src/permissions/assets/settings-icon.svg +0 -33
- package/src/permissions/assets/toggle-icon.svg +0 -19
- package/src/permissions/assets/warning-icon.svg +0 -6
- package/src/permissions/boldWithArrow.css +0 -9
- package/src/permissions/boldWithArrow.tsx +0 -41
- package/src/permissions/denied.css +0 -37
- package/src/permissions/denied.tsx +0 -29
- package/src/permissions/deniedAndroid.tsx +0 -56
- package/src/permissions/deniedDesktop.css +0 -9
- package/src/permissions/deniedDesktop.tsx +0 -64
- package/src/permissions/deniedIOS.tsx +0 -73
- package/src/permissions/deniedInstructions.tsx +0 -19
- package/src/permissions/iconWrapper.css +0 -9
- package/src/permissions/iconWrapper.tsx +0 -15
- package/src/permissions/learnMore.css +0 -37
- package/src/permissions/learnMore.tsx +0 -85
- package/src/permissions/numberedStep.css +0 -13
- package/src/permissions/numberedStep.tsx +0 -14
- package/src/permissions/permissions.css +0 -13
- package/src/permissions/permissions.tsx +0 -68
- package/src/phone/phone.tsx +0 -246
- package/src/phone/phoneInput.test.tsx +0 -275
- package/src/phone/phoneInput.tsx +0 -249
- package/src/phone/styles.css +0 -158
- package/src/selfie/cameraButton.css +0 -13
- package/src/selfie/cameraButton.tsx +0 -35
- package/src/selfie/capture.css +0 -57
- package/src/selfie/capture.tsx +0 -232
- package/src/selfie/errorModal.tsx +0 -218
- package/src/selfie/errorModalContent.css +0 -33
- package/src/selfie/errorModalContent.tsx +0 -44
- package/src/selfie/faceOutline.css +0 -5
- package/src/selfie/faceOutline.tsx +0 -22
- package/src/selfie/loadingBorder.css +0 -12
- package/src/selfie/loadingBorder.tsx +0 -77
- package/src/selfie/manualCaptureButton.css +0 -13
- package/src/selfie/manualCaptureButton.tsx +0 -35
- package/src/selfie/noMoreAttemptsModal.tsx +0 -44
- package/src/selfie/notification.css +0 -9
- package/src/selfie/notification.tsx +0 -36
- package/src/selfie/retryErrorModal.tsx +0 -56
- package/src/selfie/selfie.test.tsx +0 -458
- package/src/selfie/selfie.tsx +0 -83
- package/src/selfie/selfieTutorial.json +0 -2626
- package/src/selfie/styles.css +0 -1
- package/src/selfie/tutorial.test.tsx +0 -200
- package/src/selfie/tutorial.tsx +0 -43
- package/src/setup.ts +0 -33
- package/src/shared/baseTutorial/baseTutorial.css +0 -21
- package/src/shared/baseTutorial/baseTutorial.test.tsx +0 -184
- package/src/shared/baseTutorial/baseTutorial.tsx +0 -55
- package/src/shared/baseTutorial/replaceBaseTutorial.test.ts +0 -267
- package/src/shared/baseTutorial/replaceBaseTutorial.ts +0 -68
- package/src/shared/button/button.css +0 -55
- package/src/shared/button/button.test.tsx +0 -101
- package/src/shared/button/button.tsx +0 -47
- package/src/shared/componentRoot/incodeComponent.tsx +0 -12
- package/src/shared/countries/countries.test.ts +0 -75
- package/src/shared/countries/countries.ts +0 -139
- package/src/shared/countries/index.ts +0 -6
- package/src/shared/icons/chevronDown.tsx +0 -22
- package/src/shared/icons/index.ts +0 -2
- package/src/shared/icons/successIcon.css +0 -5
- package/src/shared/icons/successIcon.test.tsx +0 -40
- package/src/shared/icons/successIcon.tsx +0 -26
- package/src/shared/loader/loadingIcon.css +0 -28
- package/src/shared/loader/loadingIcon.tsx +0 -67
- package/src/shared/lottie/lottie.tsx +0 -108
- package/src/shared/otpInput/otpInput.css +0 -85
- package/src/shared/otpInput/otpInput.test.tsx +0 -356
- package/src/shared/otpInput/otpInput.tsx +0 -241
- package/src/shared/page/incode-logo.svg +0 -3
- package/src/shared/page/page.css +0 -47
- package/src/shared/page/page.test.tsx +0 -97
- package/src/shared/page/page.tsx +0 -91
- package/src/shared/page/pageUiConfig.test.ts +0 -112
- package/src/shared/page/pageUiConfig.ts +0 -64
- package/src/shared/page/verifiedByIncode.css +0 -5
- package/src/shared/page/verifiedByIncode.tsx +0 -75
- package/src/shared/spacer/spacer.css +0 -149
- package/src/shared/spacer/spacer.test.tsx +0 -143
- package/src/shared/spacer/spacer.tsx +0 -88
- package/src/shared/spinner/index.ts +0 -2
- package/src/shared/spinner/spinner.css +0 -28
- package/src/shared/spinner/spinner.test.tsx +0 -82
- package/src/shared/spinner/spinner.tsx +0 -65
- package/src/shared/title/title.css +0 -7
- package/src/shared/title/title.tsx +0 -12
- package/src/shared/uiConfig/uiConfig.ts +0 -36
- package/src/shared/webComponent/incodeModule.ts +0 -29
- package/src/shared/webComponent/registerIncodeElement.ts +0 -15
- package/src/styles/__mocks__/fetchTheme.ts +0 -19
- package/src/styles/applyTheme.ts +0 -37
- package/src/styles/cn.test.tsx +0 -57
- package/src/styles/cn.tsx +0 -21
- package/src/styles/core.css +0 -12
- package/src/styles/fetchTheme.test.ts +0 -390
- package/src/styles/fetchTheme.ts +0 -88
- package/src/styles/generatePalette.ts +0 -111
- package/src/styles/reset.css +0 -65
- package/src/styles/resolveCssVariableToHex.ts +0 -28
- package/src/styles/tailwind.css +0 -291
- package/src/styles/themeTypes.ts +0 -18
- package/src/styles/tokens/colors.css +0 -190
- package/src/styles/tokens/components.css +0 -174
- package/src/styles/tokens/index.css +0 -4
- package/src/styles/tokens/primitives.css +0 -129
- package/src/styles/tokens/semantic.css +0 -51
- package/src/svg.d.ts +0 -4
- package/src/types/assets.d.ts +0 -1
- package/src/types/custom-elements.d.ts +0 -104
- package/tsconfig.json +0 -22
- package/vite.config.ts +0 -260
- package/vitest.config.ts +0 -40
- package/vitest.setup.ts +0 -16
- /package/dist/{styles/tokens.css → themes/light.css} +0 -0
- /package/dist/types/{core.d.ts → base.d.ts} +0 -0
- /package/dist/types/{styles/core.d.ts → themes/dark.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/web",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.es.js",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -9,11 +9,14 @@
|
|
|
9
9
|
"types": "./dist/types/index.d.ts",
|
|
10
10
|
"import": "./dist/index.es.js"
|
|
11
11
|
},
|
|
12
|
-
"./
|
|
13
|
-
"default": "./dist/
|
|
12
|
+
"./themes/light.css": {
|
|
13
|
+
"default": "./dist/themes/light.css"
|
|
14
14
|
},
|
|
15
|
-
"./
|
|
16
|
-
"default": "./dist/
|
|
15
|
+
"./themes/dark.css": {
|
|
16
|
+
"default": "./dist/themes/dark.css"
|
|
17
|
+
},
|
|
18
|
+
"./base.css": {
|
|
19
|
+
"default": "./dist/base.css"
|
|
17
20
|
},
|
|
18
21
|
"./selfie": {
|
|
19
22
|
"types": "./dist/types/selfie/selfie.d.ts",
|
|
@@ -44,6 +47,9 @@
|
|
|
44
47
|
"default": "./dist/flow/styles.css"
|
|
45
48
|
}
|
|
46
49
|
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist"
|
|
52
|
+
],
|
|
47
53
|
"dependencies": {
|
|
48
54
|
"@tailwindcss/vite": "^4.1.17",
|
|
49
55
|
"i18next": "^25.7.1",
|
|
@@ -52,7 +58,7 @@
|
|
|
52
58
|
"libphonenumber-js": "^1.11.0",
|
|
53
59
|
"preact-custom-element": "^4.6.0",
|
|
54
60
|
"tailwindcss": "^4.1.17",
|
|
55
|
-
"@incodetech/core": "2.0.0-alpha.
|
|
61
|
+
"@incodetech/core": "2.0.0-alpha.4"
|
|
56
62
|
},
|
|
57
63
|
"devDependencies": {
|
|
58
64
|
"@biomejs/biome": "^2.3.7",
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @incodetech/ui@2.0.0-alpha.1 prebuild /Users/alexisnavarro/dev/incode-web-sdk/packages/ui
|
|
3
|
-
> bun run ../../scripts/generate-asset-manifest.ts
|
|
4
|
-
|
|
5
|
-
[OK] Generated asset manifest with 15 SVG files
|
|
6
|
-
Output: /Users/alexisnavarro/dev/incode-web-sdk/packages/ui/dist/asset-manifest.json
|
|
7
|
-
CDN Base: https://cdn.incode.com/@incodetech/ui
|
|
8
|
-
Version: 2.0.0-alpha.1
|
|
9
|
-
|
|
10
|
-
> @incodetech/ui@2.0.0-alpha.1 build /Users/alexisnavarro/dev/incode-web-sdk/packages/ui
|
|
11
|
-
> vite build
|
|
12
|
-
|
|
13
|
-
vite v7.2.4 building client environment for production...
|
|
14
|
-
transforming...
|
|
15
|
-
Found 1 warning while optimizing generated CSS:
|
|
16
|
-
|
|
17
|
-
[2m│ fill: var(--color-spinner-surface-secondary, var(--spinner-surface-secondary));[22m
|
|
18
|
-
[2m│ }[22m
|
|
19
|
-
[2m│[22m @keyframes fadeInScale {
|
|
20
|
-
[2m┆[22m [33m[2m^--[22m Unknown at rule: @keyframes[39m
|
|
21
|
-
[2m┆[22m
|
|
22
|
-
[2m│ from {[22m
|
|
23
|
-
[2m│ opacity: 0;[22m
|
|
24
|
-
|
|
25
|
-
✓ 227 modules transformed.
|
|
26
|
-
rendering chunks...
|
|
27
|
-
|
|
28
|
-
[vite:dts] Start generate declaration files...
|
|
29
|
-
computing gzip size...
|
|
30
|
-
../dist/successIcon.css 0.11 kB │ gzip: 0.12 kB
|
|
31
|
-
../dist/flow/styles.css 2.47 kB │ gzip: 0.61 kB
|
|
32
|
-
../dist/email/styles.css 4.14 kB │ gzip: 1.09 kB
|
|
33
|
-
../dist/button.css 4.68 kB │ gzip: 1.18 kB
|
|
34
|
-
../dist/otpInput.css 5.49 kB │ gzip: 1.20 kB
|
|
35
|
-
../dist/incodeModule.css 6.82 kB │ gzip: 1.24 kB
|
|
36
|
-
../dist/phone/styles.css 10.86 kB │ gzip: 1.82 kB
|
|
37
|
-
../dist/selfie/styles.css 30.29 kB │ gzip: 4.03 kB
|
|
38
|
-
../dist/flow/flow.es.js 0.31 kB │ gzip: 0.17 kB
|
|
39
|
-
../dist/index.es.js 0.31 kB │ gzip: 0.21 kB
|
|
40
|
-
../dist/otpInput-CDV9LuLL.js 4.32 kB │ gzip: 1.48 kB
|
|
41
|
-
../dist/email/email.es.js 4.86 kB │ gzip: 1.53 kB
|
|
42
|
-
../dist/button-DxzTOrGQ.js 7.32 kB │ gzip: 3.02 kB
|
|
43
|
-
../dist/browser-ponyfill-B6W6hHVY.js 15.51 kB │ gzip: 4.10 kB
|
|
44
|
-
../dist/flow-CqMPoqPm.js 17.13 kB │ gzip: 5.90 kB
|
|
45
|
-
../dist/incodeModule-Cm16hEfX.js 23.14 kB │ gzip: 8.87 kB
|
|
46
|
-
../dist/vendor-preact-CK0WeTOR.js 25.70 kB │ gzip: 8.62 kB
|
|
47
|
-
../dist/useTranslation-CIRDUZYl.js 81.48 kB │ gzip: 21.85 kB
|
|
48
|
-
../dist/selfie/selfie.es.js 148.60 kB │ gzip: 35.86 kB
|
|
49
|
-
../dist/phone/phone.es.js 204.80 kB │ gzip: 45.21 kB
|
|
50
|
-
[vite:dts] Start rollup declaration files...
|
|
51
|
-
Analysis will use the bundled TypeScript version 5.8.2
|
|
52
|
-
Analysis will use the bundled TypeScript version 5.8.2
|
|
53
|
-
Analysis will use the bundled TypeScript version 5.8.2
|
|
54
|
-
Analysis will use the bundled TypeScript version 5.8.2
|
|
55
|
-
Analysis will use the bundled TypeScript version 5.8.2
|
|
56
|
-
[vite:dts] Declaration files built in 8036ms.
|
|
57
|
-
|
|
58
|
-
✓ built in 8.90s
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @incodetech/ui@1.0.0 coverage /Users/alexisnavarro/dev/incode-web-sdk/packages/ui
|
|
3
|
-
> vitest run --coverage
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
RUN v4.0.13 /Users/alexisnavarro/dev/incode-web-sdk/packages/ui
|
|
7
|
-
Coverage enabled with v8
|
|
8
|
-
|
|
9
|
-
✓ src/index.test.tsx (4 tests) 7ms
|
|
10
|
-
|
|
11
|
-
Test Files 1 passed (1)
|
|
12
|
-
Tests 4 passed (4)
|
|
13
|
-
Start at 14:40:55
|
|
14
|
-
Duration 579ms (transform 28ms, setup 14ms, collect 108ms, tests 7ms, environment 297ms, prepare 25ms)
|
|
15
|
-
|
|
16
|
-
% Coverage report from v8
|
|
17
|
-
------------|---------|----------|---------|---------|-------------------
|
|
18
|
-
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
19
|
-
------------|---------|----------|---------|---------|-------------------
|
|
20
|
-
All files | 100 | 100 | 100 | 100 |
|
|
21
|
-
index.ts | 0 | 0 | 0 | 0 |
|
|
22
|
-
widget.tsx | 100 | 100 | 100 | 100 |
|
|
23
|
-
------------|---------|----------|---------|---------|-------------------
|
package/.turbo/turbo-format.log
DELETED
package/.turbo/turbo-lint.log
DELETED