@pinwheel/react-native-pinwheel 2.3.16 → 2.3.17
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 +15 -4
- package/lib/constants.d.ts +1 -1
- package/lib/constants.js +1 -1
- package/lib/index.d.ts +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,11 +12,22 @@ You may want to run the example app locally to get started.
|
|
|
12
12
|
- iPhone 14 simulator (open your Simulator app and check the available versions)
|
|
13
13
|
- iOS 16 running on the simulator (open your Simulator app and check the available versions)
|
|
14
14
|
- `pod` version 1.11.3 (check with `pod --version`)
|
|
15
|
+
- Add your pinwheel secret to `example/env.js` (create this file) with `export default "<YOUR PINWHEEL SECRET>"`.
|
|
15
16
|
|
|
16
17
|
#### Directions
|
|
17
18
|
|
|
18
19
|
- `npm run dev`
|
|
19
20
|
|
|
21
|
+
#### Troubleshooting
|
|
22
|
+
|
|
23
|
+
###### An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=405)
|
|
24
|
+
- Click Apple > About This Mac > Storage > Manage > Developer
|
|
25
|
+
- Delete Xcode cache
|
|
26
|
+
- Delete Project Build and indexes
|
|
27
|
+
|
|
28
|
+
###### Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65
|
|
29
|
+
- Try downloading Xcode 14.2 from https://developer.apple.com/download/all/?q=xcode
|
|
30
|
+
|
|
20
31
|
|
|
21
32
|
## Installation
|
|
22
33
|
|
|
@@ -64,7 +75,7 @@ With the PinwheelLink component, end-users can select their employer, authentica
|
|
|
64
75
|
|
|
65
76
|
### `linkToken`
|
|
66
77
|
|
|
67
|
-
The link token retrieved using the [create link token endpoint](https://docs.
|
|
78
|
+
The link token retrieved using the [create link token endpoint](https://docs.pinwheelapi.com/reference/post_v1_link_tokens___post).
|
|
68
79
|
|
|
69
80
|
| Type | Required |
|
|
70
81
|
| ------ | -------- |
|
|
@@ -80,7 +91,7 @@ Callback when a user successfully signs in to their payroll account.
|
|
|
80
91
|
|
|
81
92
|
### `onError`
|
|
82
93
|
|
|
83
|
-
Callback whenever an error occurs during the modal flow. This does not necessarily mean that the flow cannot still complete successfully. These include such retryable events as the user inputting an incorrect password or MFA code and needs to reattempt it. Error codes can be seen [here](https://docs.
|
|
94
|
+
Callback whenever an error occurs during the modal flow. This does not necessarily mean that the flow cannot still complete successfully. These include such retryable events as the user inputting an incorrect password or MFA code and needs to reattempt it. Error codes can be seen [here](https://docs.pinwheelapi.com/docs/link-sdk-errors).
|
|
84
95
|
|
|
85
96
|
| Type | Required |
|
|
86
97
|
| -------- | -------- |
|
|
@@ -96,7 +107,7 @@ Callback whenever a user completes a modal flow successfully. Note: This is simp
|
|
|
96
107
|
|
|
97
108
|
### `onExit`
|
|
98
109
|
|
|
99
|
-
Callback whenever a user exits the modal either explicitly or if an error occurred that crashed the modal. Error codes can be seen [here](https://docs.
|
|
110
|
+
Callback whenever a user exits the modal either explicitly or if an error occurred that crashed the modal. Error codes can be seen [here](https://docs.pinwheelapi.com/docs/link-sdk-errors). Will pass back an error result if the modal either crashed due to an error or if the user exited while in an error state (e.g. invalid credentials).
|
|
100
111
|
|
|
101
112
|
| Type | Required |
|
|
102
113
|
| -------- | -------- |
|
|
@@ -104,7 +115,7 @@ Callback whenever a user exits the modal either explicitly or if an error occurr
|
|
|
104
115
|
|
|
105
116
|
### `onEvent`
|
|
106
117
|
|
|
107
|
-
Callback for all significant events that happen during the modal flow. See all possible [event types](https://docs.
|
|
118
|
+
Callback for all significant events that happen during the modal flow. See all possible [event types](https://docs.pinwheelapi.com/docs/link-1#link-events).
|
|
108
119
|
|
|
109
120
|
| Type | Required |
|
|
110
121
|
| -------- | -------- |
|
package/lib/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Importing package.json here causes a problem with the folder structure when we npm pack and publish.
|
|
3
3
|
*/
|
|
4
|
-
export declare const VERSION = "2.3.
|
|
4
|
+
export declare const VERSION = "2.3.17";
|
|
5
5
|
export declare const LINK_PAGE_URL = "https://cdn.getpinwheel.com/link-v2.3.0.html";
|
|
6
6
|
export declare const PINWHEEL_DOMAIN = "getpinwheel.com";
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Importing package.json here causes a problem with the folder structure when we npm pack and publish.
|
|
3
3
|
*/
|
|
4
|
-
export const VERSION = '2.3.
|
|
4
|
+
export const VERSION = '2.3.17';
|
|
5
5
|
export const LINK_PAGE_URL = 'https://cdn.getpinwheel.com/link-v2.3.0.html';
|
|
6
6
|
export const PINWHEEL_DOMAIN = 'getpinwheel.com';
|
package/lib/index.d.ts
CHANGED
|
@@ -17,6 +17,13 @@ export declare type LinkResult = {
|
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
export declare type ScreenTransition = {
|
|
21
|
+
screenName: string;
|
|
22
|
+
selectedEmployerId?: string;
|
|
23
|
+
selectedEmployerName?: string;
|
|
24
|
+
selectedPlatformId?: string;
|
|
25
|
+
selectedPlatformName?: string;
|
|
26
|
+
};
|
|
20
27
|
/**
|
|
21
28
|
* @deprecated This type will be removed in version 2.4. Use the renamed type `PinwheelErrorType`
|
|
22
29
|
* instead.
|
|
@@ -47,7 +54,7 @@ export declare type EventPayload = {
|
|
|
47
54
|
} | LinkResult | {
|
|
48
55
|
accountId: string;
|
|
49
56
|
platformId: string;
|
|
50
|
-
} | PinwheelError | EmptyPayloadObject | undefined;
|
|
57
|
+
} | ScreenTransition | PinwheelError | EmptyPayloadObject | undefined;
|
|
51
58
|
declare type PinwheelProps = {
|
|
52
59
|
linkToken: string;
|
|
53
60
|
onLogin?: (result: {
|