@usebridge/sdk-react 0.7.0-beta.2 → 0.7.1-beta.1
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/index.cjs +20 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
import * as _usebridge_sdk_core from '@usebridge/sdk-core';
|
|
4
|
-
import { BridgeSdkConfig, BridgeSdk, Payer, PayerSearchResults, SoftEligibilitySession, SoftEligibilitySessionState, HardEligibilitySession, HardEligibilitySessionState, UsStateCode } from '@usebridge/sdk-core';
|
|
4
|
+
import { BridgeSdkConfig, BridgeSdk, Payer, PayerSearchResults, SoftEligibilitySession, SoftEligibilitySessionState, HardEligibilitySession, HardEligibilitySessionState, ClinicalInfo, UsStateCode } from '@usebridge/sdk-core';
|
|
5
5
|
import { StoreApi } from 'zustand';
|
|
6
6
|
|
|
7
7
|
interface BridgeSdkProviderProps extends PropsWithChildren {
|
|
@@ -105,13 +105,20 @@ declare const HardEligibilityProvider: FC<HardEligibilityProviderProps>;
|
|
|
105
105
|
*/
|
|
106
106
|
declare function useHardEligibilityState(): HardEligibilitySessionState;
|
|
107
107
|
|
|
108
|
+
interface HardEligibilitySubmitCallbackArgs {
|
|
109
|
+
clinicalInfo?: ClinicalInfo;
|
|
110
|
+
}
|
|
111
|
+
interface HardEligibilitySubmitFn {
|
|
112
|
+
(): Promise<HardEligibilitySessionState>;
|
|
113
|
+
(args: HardEligibilitySubmitCallbackArgs): Promise<HardEligibilitySessionState>;
|
|
114
|
+
}
|
|
108
115
|
/**
|
|
109
116
|
* Returns a function to submit requests into the Hard Eligibility Session
|
|
110
117
|
* Parses the arguments required for the submission from the EligibilityInput
|
|
111
118
|
*/
|
|
112
119
|
declare function useHardEligibilitySubmit(): {
|
|
113
120
|
isDisabled: boolean;
|
|
114
|
-
submit:
|
|
121
|
+
submit: HardEligibilitySubmitFn;
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { FC, PropsWithChildren } from 'react';
|
|
3
3
|
import * as _usebridge_sdk_core from '@usebridge/sdk-core';
|
|
4
|
-
import { BridgeSdkConfig, BridgeSdk, Payer, PayerSearchResults, SoftEligibilitySession, SoftEligibilitySessionState, HardEligibilitySession, HardEligibilitySessionState, UsStateCode } from '@usebridge/sdk-core';
|
|
4
|
+
import { BridgeSdkConfig, BridgeSdk, Payer, PayerSearchResults, SoftEligibilitySession, SoftEligibilitySessionState, HardEligibilitySession, HardEligibilitySessionState, ClinicalInfo, UsStateCode } from '@usebridge/sdk-core';
|
|
5
5
|
import { StoreApi } from 'zustand';
|
|
6
6
|
|
|
7
7
|
interface BridgeSdkProviderProps extends PropsWithChildren {
|
|
@@ -105,13 +105,20 @@ declare const HardEligibilityProvider: FC<HardEligibilityProviderProps>;
|
|
|
105
105
|
*/
|
|
106
106
|
declare function useHardEligibilityState(): HardEligibilitySessionState;
|
|
107
107
|
|
|
108
|
+
interface HardEligibilitySubmitCallbackArgs {
|
|
109
|
+
clinicalInfo?: ClinicalInfo;
|
|
110
|
+
}
|
|
111
|
+
interface HardEligibilitySubmitFn {
|
|
112
|
+
(): Promise<HardEligibilitySessionState>;
|
|
113
|
+
(args: HardEligibilitySubmitCallbackArgs): Promise<HardEligibilitySessionState>;
|
|
114
|
+
}
|
|
108
115
|
/**
|
|
109
116
|
* Returns a function to submit requests into the Hard Eligibility Session
|
|
110
117
|
* Parses the arguments required for the submission from the EligibilityInput
|
|
111
118
|
*/
|
|
112
119
|
declare function useHardEligibilitySubmit(): {
|
|
113
120
|
isDisabled: boolean;
|
|
114
|
-
submit:
|
|
121
|
+
submit: HardEligibilitySubmitFn;
|
|
115
122
|
};
|
|
116
123
|
|
|
117
124
|
/**
|
package/dist/index.js
CHANGED
|
@@ -39,8 +39,8 @@ var require_lodash = __commonJS({
|
|
|
39
39
|
var freeGlobal2 = typeof global == "object" && global && global.Object === Object && global;
|
|
40
40
|
var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
|
|
41
41
|
var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
|
|
42
|
-
var
|
|
43
|
-
var objectToString2 =
|
|
42
|
+
var objectProto16 = Object.prototype;
|
|
43
|
+
var objectToString2 = objectProto16.toString;
|
|
44
44
|
var nativeMax2 = Math.max;
|
|
45
45
|
var nativeMin = Math.min;
|
|
46
46
|
var now = function() {
|
|
@@ -2042,10 +2042,25 @@ function parent(object, path) {
|
|
|
2042
2042
|
var parent_default = parent;
|
|
2043
2043
|
|
|
2044
2044
|
// ../../node_modules/lodash-es/_baseUnset.js
|
|
2045
|
+
var objectProto15 = Object.prototype;
|
|
2046
|
+
var hasOwnProperty12 = objectProto15.hasOwnProperty;
|
|
2045
2047
|
function baseUnset(object, path) {
|
|
2046
2048
|
path = castPath_default(path, object);
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
+
var index = -1, length = path.length;
|
|
2050
|
+
if (!length) {
|
|
2051
|
+
return true;
|
|
2052
|
+
}
|
|
2053
|
+
while (++index < length) {
|
|
2054
|
+
var key = toKey_default(path[index]);
|
|
2055
|
+
if (key === "__proto__" && !hasOwnProperty12.call(object, "__proto__")) {
|
|
2056
|
+
return false;
|
|
2057
|
+
}
|
|
2058
|
+
if ((key === "constructor" || key === "prototype") && index < length - 1) {
|
|
2059
|
+
return false;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
var obj = parent_default(object, path);
|
|
2063
|
+
return obj == null || delete obj[toKey_default(last_default(path))];
|
|
2049
2064
|
}
|
|
2050
2065
|
var baseUnset_default = baseUnset;
|
|
2051
2066
|
|
|
@@ -2537,7 +2552,7 @@ lodash-es/lodash.js:
|
|
|
2537
2552
|
(**
|
|
2538
2553
|
* @license
|
|
2539
2554
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
2540
|
-
* Build: `lodash modularize exports="es" -o ./`
|
|
2555
|
+
* Build: `lodash modularize exports="es" --repo lodash/lodash#4.18.1 -o ./`
|
|
2541
2556
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
2542
2557
|
* Released under MIT license <https://lodash.com/license>
|
|
2543
2558
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|