@velion-la/onboarding-sdk-react-native 1.2.0-beta.6 → 1.2.0-beta.7
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/README.md +32 -4
- package/lib/commonjs/ui/icons/StepIcon.js +8 -3
- package/lib/commonjs/ui/icons/StepIcon.js.map +1 -1
- package/lib/module/ui/icons/StepIcon.js +8 -3
- package/lib/module/ui/icons/StepIcon.js.map +1 -1
- package/lib/typescript/ui/icons/StepIcon.d.ts +7 -2
- package/lib/typescript/ui/icons/StepIcon.d.ts.map +1 -1
- package/package.json +5 -1
- package/src/ui/icons/StepIcon.tsx +9 -3
package/README.md
CHANGED
|
@@ -140,6 +140,24 @@ That is why they are optional: an existing integration keeps working untouched.
|
|
|
140
140
|
> the error above, check for a second copy of `react-native-reanimated` in your
|
|
141
141
|
> tree (`npm ls react-native-reanimated`) and pin it with an `overrides` block.
|
|
142
142
|
|
|
143
|
+
### 5. Optional peer dependencies (step header icons)
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
npx expo install @expo/vector-icons
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Needed only for the Material icon shown next to each step title. Pure JS, so
|
|
150
|
+
it needs no native rebuild.
|
|
151
|
+
|
|
152
|
+
> **Upgrading from an older Expo SDK?** This package used to arrive as a
|
|
153
|
+
> dependency of `expo`, but **SDK 57 dropped it**. An app that never installed
|
|
154
|
+
> it explicitly will lose its step icons on upgrade, with a `[StepIcon]` warning
|
|
155
|
+
> in the logs.
|
|
156
|
+
|
|
157
|
+
Without it the SDK still mounts and every step works; only the icons are
|
|
158
|
+
replaced by a neutral placeholder. Set `VelionTheme.hideStepIcons = true` to
|
|
159
|
+
remove the circle entirely.
|
|
160
|
+
|
|
143
161
|
### Supported versions
|
|
144
162
|
|
|
145
163
|
| Package | Minimum | Tested against |
|
|
@@ -150,6 +168,7 @@ That is why they are optional: an existing integration keeps working untouched.
|
|
|
150
168
|
| `react-native-vision-camera` | `>=5.0.0` | `5.2.3` |
|
|
151
169
|
| `react-native-nitro-modules` | `>=0.37.0` | `0.37.1` |
|
|
152
170
|
| `react-native-nitro-image` | `>=0.15.0` | `0.15.2` |
|
|
171
|
+
| `@expo/vector-icons` (optional) | `>=15.0.0` | `15.1.1` |
|
|
153
172
|
| `react-native-keyboard-controller` (optional) | `>=1.18.0` | `1.21.9` |
|
|
154
173
|
|
|
155
174
|
---
|
|
@@ -555,10 +574,19 @@ Equivalences:
|
|
|
555
574
|
### Step header icons
|
|
556
575
|
|
|
557
576
|
Each step renders a themed icon (Material Icons) inside a circle of
|
|
558
|
-
`primaryColor` next to the title. They come from `@expo/vector-icons`,
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
577
|
+
`primaryColor` next to the title. They come from `@expo/vector-icons`, an
|
|
578
|
+
optional peer dependency you install yourself:
|
|
579
|
+
|
|
580
|
+
```bash
|
|
581
|
+
npx expo install @expo/vector-icons
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
> Expo used to ship this package as a dependency of `expo`, but **SDK 57
|
|
585
|
+
> dropped it**, so an app upgrading from an older SDK has to add it explicitly
|
|
586
|
+
> or the icons silently disappear.
|
|
587
|
+
|
|
588
|
+
Skip it and enable `hideStepIcons` if you would rather not add the dependency —
|
|
589
|
+
the flow renders fine without it.
|
|
562
590
|
|
|
563
591
|
### Color mode
|
|
564
592
|
|
|
@@ -8,8 +8,13 @@ var _reactNative = require("react-native");
|
|
|
8
8
|
var _log = require("../../utils/log");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
/**
|
|
11
|
-
* @fileoverview StepIcon — small wrapper around `MaterialIcons
|
|
12
|
-
* `@expo/vector-icons
|
|
11
|
+
* @fileoverview StepIcon — small wrapper around `MaterialIcons`, shipped with
|
|
12
|
+
* `@expo/vector-icons`.
|
|
13
|
+
*
|
|
14
|
+
* That package is an OPTIONAL peer dependency the host installs itself. It
|
|
15
|
+
* used to arrive for free because `expo` depended on it, but `expo@57` dropped
|
|
16
|
+
* that dependency, so relying on it silently blanked every step icon
|
|
17
|
+
* (OSDKR-21). Nothing here assumes it is present.
|
|
13
18
|
*
|
|
14
19
|
* Steps pass an icon by name (e.g. `<StepIcon name="badge" />`) and the
|
|
15
20
|
* shell renders it inside the colored circle next to the title. When the
|
|
@@ -25,7 +30,7 @@ try {
|
|
|
25
30
|
const mod = require('@expo/vector-icons');
|
|
26
31
|
MaterialIcons = mod.MaterialIcons ?? null;
|
|
27
32
|
} catch {
|
|
28
|
-
_log.log.warn('[StepIcon] @expo/vector-icons is not installed — step header icons will be hidden. ' + '
|
|
33
|
+
_log.log.warn('[StepIcon] @expo/vector-icons is not installed — step header icons will be hidden. ' + 'Install it (`npx expo install @expo/vector-icons`) or set VelionTheme.hideStepIcons=true. ' + 'Note it is no longer bundled with expo: since SDK 57 the host has to add it explicitly.');
|
|
29
34
|
}
|
|
30
35
|
/**
|
|
31
36
|
* Renders a Material icon centered inside the step's title circle. Returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_log","_jsxRuntime","MaterialIcons","mod","log","warn","StepIcon","name","size","color","jsx","Text","style","fontSize","fontWeight","children","Icon"],"sourceRoot":"../../../../src","sources":["ui/icons/StepIcon.tsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_log","_jsxRuntime","MaterialIcons","mod","log","warn","StepIcon","name","size","color","jsx","Text","style","fontSize","fontWeight","children","Icon"],"sourceRoot":"../../../../src","sources":["ui/icons/StepIcon.tsx"],"mappings":";;;;;;AAkBA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AAAsC,IAAAE,WAAA,GAAAF,OAAA;AAnBtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsBA,IAAIG,aAOI,GAAG,IAAI;AAEf,IAAI;EACF;EACA,MAAMC,GAAG,GAAGJ,OAAO,CAAC,oBAAoB,CAAC;EACzCG,aAAa,GAAGC,GAAG,CAACD,aAAa,IAAI,IAAI;AAC3C,CAAC,CAAC,MAAM;EACNE,QAAG,CAACC,IAAI,CACN,qFAAqF,GACnF,4FAA4F,GAC5F,yFACJ,CAAC;AACH;AAUA;AACA;AACA;AACA;AACA;AACO,SAASC,QAAQA,CAAC;EAAEC,IAAI;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAyB,CAAC,EAAE;EAC9E,IAAI,CAACP,aAAa,EAAE;IAClB;IACA;IACA,oBAAO,IAAAD,WAAA,CAAAS,GAAA,EAACZ,YAAA,CAAAa,IAAI;MAACC,KAAK,EAAE;QAAEH,KAAK;QAAEI,QAAQ,EAAEL,IAAI;QAAEM,UAAU,EAAE;MAAM,CAAE;MAAAC,QAAA,EAAC;IAAC,CAAM,CAAC;EAC5E;EACA,MAAMC,IAAI,GAAGd,aAIK;EAClB,oBAAO,IAAAD,WAAA,CAAAS,GAAA,EAACM,IAAI;IAACT,IAAI,EAAEA,IAAK;IAACC,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA;EAAM,CAAE,CAAC;AACvD","ignoreList":[]}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @fileoverview StepIcon — small wrapper around `MaterialIcons
|
|
5
|
-
* `@expo/vector-icons
|
|
4
|
+
* @fileoverview StepIcon — small wrapper around `MaterialIcons`, shipped with
|
|
5
|
+
* `@expo/vector-icons`.
|
|
6
|
+
*
|
|
7
|
+
* That package is an OPTIONAL peer dependency the host installs itself. It
|
|
8
|
+
* used to arrive for free because `expo` depended on it, but `expo@57` dropped
|
|
9
|
+
* that dependency, so relying on it silently blanked every step icon
|
|
10
|
+
* (OSDKR-21). Nothing here assumes it is present.
|
|
6
11
|
*
|
|
7
12
|
* Steps pass an icon by name (e.g. `<StepIcon name="badge" />`) and the
|
|
8
13
|
* shell renders it inside the colored circle next to the title. When the
|
|
@@ -21,7 +26,7 @@ try {
|
|
|
21
26
|
const mod = require('@expo/vector-icons');
|
|
22
27
|
MaterialIcons = mod.MaterialIcons ?? null;
|
|
23
28
|
} catch {
|
|
24
|
-
log.warn('[StepIcon] @expo/vector-icons is not installed — step header icons will be hidden. ' + '
|
|
29
|
+
log.warn('[StepIcon] @expo/vector-icons is not installed — step header icons will be hidden. ' + 'Install it (`npx expo install @expo/vector-icons`) or set VelionTheme.hideStepIcons=true. ' + 'Note it is no longer bundled with expo: since SDK 57 the host has to add it explicitly.');
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* Renders a Material icon centered inside the step's title circle. Returns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Text","log","jsx","_jsx","MaterialIcons","mod","require","warn","StepIcon","name","size","color","style","fontSize","fontWeight","children","Icon"],"sourceRoot":"../../../../src","sources":["ui/icons/StepIcon.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBtC,IAAIC,aAOI,GAAG,IAAI;AAEf,IAAI;EACF;EACA,MAAMC,GAAG,GAAGC,OAAO,CAAC,oBAAoB,CAAC;EACzCF,aAAa,GAAGC,GAAG,CAACD,aAAa,IAAI,IAAI;AAC3C,CAAC,CAAC,MAAM;EACNH,GAAG,CAACM,IAAI,CACN,qFAAqF,GACnF,
|
|
1
|
+
{"version":3,"names":["Text","log","jsx","_jsx","MaterialIcons","mod","require","warn","StepIcon","name","size","color","style","fontSize","fontWeight","children","Icon"],"sourceRoot":"../../../../src","sources":["ui/icons/StepIcon.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,GAAG,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBtC,IAAIC,aAOI,GAAG,IAAI;AAEf,IAAI;EACF;EACA,MAAMC,GAAG,GAAGC,OAAO,CAAC,oBAAoB,CAAC;EACzCF,aAAa,GAAGC,GAAG,CAACD,aAAa,IAAI,IAAI;AAC3C,CAAC,CAAC,MAAM;EACNH,GAAG,CAACM,IAAI,CACN,qFAAqF,GACnF,4FAA4F,GAC5F,yFACJ,CAAC;AACH;AAUA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAC;EAAEC,IAAI;EAAEC,IAAI,GAAG,EAAE;EAAEC,KAAK,GAAG;AAAyB,CAAC,EAAE;EAC9E,IAAI,CAACP,aAAa,EAAE;IAClB;IACA;IACA,oBAAOD,IAAA,CAACH,IAAI;MAACY,KAAK,EAAE;QAAED,KAAK;QAAEE,QAAQ,EAAEH,IAAI;QAAEI,UAAU,EAAE;MAAM,CAAE;MAAAC,QAAA,EAAC;IAAC,CAAM,CAAC;EAC5E;EACA,MAAMC,IAAI,GAAGZ,aAIK;EAClB,oBAAOD,IAAA,CAACa,IAAI;IAACP,IAAI,EAAEA,IAAK;IAACC,IAAI,EAAEA,IAAK;IAACC,KAAK,EAAEA;EAAM,CAAE,CAAC;AACvD","ignoreList":[]}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview StepIcon — small wrapper around `MaterialIcons
|
|
3
|
-
* `@expo/vector-icons
|
|
2
|
+
* @fileoverview StepIcon — small wrapper around `MaterialIcons`, shipped with
|
|
3
|
+
* `@expo/vector-icons`.
|
|
4
|
+
*
|
|
5
|
+
* That package is an OPTIONAL peer dependency the host installs itself. It
|
|
6
|
+
* used to arrive for free because `expo` depended on it, but `expo@57` dropped
|
|
7
|
+
* that dependency, so relying on it silently blanked every step icon
|
|
8
|
+
* (OSDKR-21). Nothing here assumes it is present.
|
|
4
9
|
*
|
|
5
10
|
* Steps pass an icon by name (e.g. `<StepIcon name="badge" />`) and the
|
|
6
11
|
* shell renders it inside the colored circle next to the title. When the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StepIcon.d.ts","sourceRoot":"","sources":["../../../../src/ui/icons/StepIcon.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"StepIcon.d.ts","sourceRoot":"","sources":["../../../../src/ui/icons/StepIcon.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,MAAM,MAAM,gBAAgB,GACxB,OAAO,GACP,UAAU,GACV,iBAAiB,GACjB,OAAO,GACP,aAAa,GACb,cAAc,GACd,QAAQ,GACR,MAAM,GACN,cAAc,GACd,cAAc,GACd,MAAM,GACN,cAAc,GACd,aAAa,GACb,cAAc,CAAC;AAuBnB,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,gBAAgB,CAAC;IACvB,+DAA+D;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAS,EAAE,KAAiB,EAAE,EAAE,aAAa,+BAY7E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velion-la/onboarding-sdk-react-native",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.7",
|
|
4
4
|
"description": "Native React Native SDK for the Velion Onboarding (KYC) flow: ID document OCR, passive + active liveness, device fingerprint, OTP verification, address picker, and personal / legal information forms.",
|
|
5
5
|
"main": "./lib/commonjs/index.js",
|
|
6
6
|
"module": "./lib/module/index.js",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"react-native-sse": "^1.2.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
+
"@expo/vector-icons": ">=15.0.0",
|
|
72
73
|
"@fingerprintjs/fingerprintjs-pro-react-native": ">=3.0.0",
|
|
73
74
|
"expo": ">=57.0.0",
|
|
74
75
|
"react": ">=19.2.0",
|
|
@@ -82,6 +83,9 @@
|
|
|
82
83
|
"react-native-vision-camera": ">=5.0.0"
|
|
83
84
|
},
|
|
84
85
|
"peerDependenciesMeta": {
|
|
86
|
+
"@expo/vector-icons": {
|
|
87
|
+
"optional": true
|
|
88
|
+
},
|
|
85
89
|
"@fingerprintjs/fingerprintjs-pro-react-native": {
|
|
86
90
|
"optional": true
|
|
87
91
|
},
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @fileoverview StepIcon — small wrapper around `MaterialIcons
|
|
3
|
-
* `@expo/vector-icons
|
|
2
|
+
* @fileoverview StepIcon — small wrapper around `MaterialIcons`, shipped with
|
|
3
|
+
* `@expo/vector-icons`.
|
|
4
|
+
*
|
|
5
|
+
* That package is an OPTIONAL peer dependency the host installs itself. It
|
|
6
|
+
* used to arrive for free because `expo` depended on it, but `expo@57` dropped
|
|
7
|
+
* that dependency, so relying on it silently blanked every step icon
|
|
8
|
+
* (OSDKR-21). Nothing here assumes it is present.
|
|
4
9
|
*
|
|
5
10
|
* Steps pass an icon by name (e.g. `<StepIcon name="badge" />`) and the
|
|
6
11
|
* shell renders it inside the colored circle next to the title. When the
|
|
@@ -46,7 +51,8 @@ try {
|
|
|
46
51
|
} catch {
|
|
47
52
|
log.warn(
|
|
48
53
|
'[StepIcon] @expo/vector-icons is not installed — step header icons will be hidden. ' +
|
|
49
|
-
'
|
|
54
|
+
'Install it (`npx expo install @expo/vector-icons`) or set VelionTheme.hideStepIcons=true. ' +
|
|
55
|
+
'Note it is no longer bundled with expo: since SDK 57 the host has to add it explicitly.',
|
|
50
56
|
);
|
|
51
57
|
}
|
|
52
58
|
|