@tellescope/react-components 1.162.0 → 1.163.0
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/lib/cjs/Forms/inputs.d.ts +1 -1
- package/lib/cjs/Forms/inputs.d.ts.map +1 -1
- package/lib/cjs/Forms/inputs.js +4 -3
- package/lib/cjs/Forms/inputs.js.map +1 -1
- package/lib/cjs/state.d.ts +36 -0
- package/lib/cjs/state.d.ts.map +1 -1
- package/lib/cjs/state.js +19 -3
- package/lib/cjs/state.js.map +1 -1
- package/lib/esm/CMS/components.d.ts +0 -1
- package/lib/esm/CMS/components.d.ts.map +1 -1
- package/lib/esm/Forms/forms.d.ts +3 -3
- package/lib/esm/Forms/inputs.d.ts +2 -2
- package/lib/esm/Forms/inputs.d.ts.map +1 -1
- package/lib/esm/Forms/inputs.js +4 -3
- package/lib/esm/Forms/inputs.js.map +1 -1
- package/lib/esm/Forms/inputs.native.d.ts +0 -1
- package/lib/esm/Forms/inputs.native.d.ts.map +1 -1
- package/lib/esm/controls.d.ts +2 -2
- package/lib/esm/inputs.d.ts +1 -1
- package/lib/esm/inputs.native.d.ts +0 -1
- package/lib/esm/inputs.native.d.ts.map +1 -1
- package/lib/esm/layout.d.ts +1 -1
- package/lib/esm/state.d.ts +292 -256
- package/lib/esm/state.d.ts.map +1 -1
- package/lib/esm/state.js +15 -0
- package/lib/esm/state.js.map +1 -1
- package/lib/esm/theme.native.d.ts +0 -1
- package/lib/esm/theme.native.d.ts.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/Forms/inputs.tsx +4 -3
- package/src/state.tsx +22 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.163.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"@reduxjs/toolkit": "^1.6.2",
|
|
48
48
|
"@stripe/react-stripe-js": "^2.9.0",
|
|
49
49
|
"@stripe/stripe-js": "^1.52.1",
|
|
50
|
-
"@tellescope/constants": "^1.
|
|
51
|
-
"@tellescope/sdk": "^1.
|
|
52
|
-
"@tellescope/types-client": "^1.
|
|
53
|
-
"@tellescope/types-models": "^1.
|
|
54
|
-
"@tellescope/types-utilities": "^1.
|
|
55
|
-
"@tellescope/utilities": "^1.
|
|
56
|
-
"@tellescope/validation": "^1.
|
|
50
|
+
"@tellescope/constants": "^1.163.0",
|
|
51
|
+
"@tellescope/sdk": "^1.163.0",
|
|
52
|
+
"@tellescope/types-client": "^1.163.0",
|
|
53
|
+
"@tellescope/types-models": "^1.163.0",
|
|
54
|
+
"@tellescope/types-utilities": "^1.163.0",
|
|
55
|
+
"@tellescope/utilities": "^1.163.0",
|
|
56
|
+
"@tellescope/validation": "^1.163.0",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
58
58
|
"@typescript-eslint/parser": "^4.33.0",
|
|
59
59
|
"css-to-react-native": "^3.0.0",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
81
81
|
"react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "6a89f58a6a1826cd1ef8569f90c29de7774c5919",
|
|
84
84
|
"publishConfig": {
|
|
85
85
|
"access": "public"
|
|
86
86
|
}
|
package/src/Forms/inputs.tsx
CHANGED
|
@@ -2944,14 +2944,15 @@ export const HeightInput = ({ field, value={} as any, onChange, ...props }: Form
|
|
|
2944
2944
|
</Grid>
|
|
2945
2945
|
)
|
|
2946
2946
|
|
|
2947
|
-
export const RedirectInput = ({ groupId, groupInsance, rootResponseId, formResponseId, field, submit, value={} as any, onChange, responses, enduser, ...props }: FormInputProps<'Redirect'>) => {
|
|
2947
|
+
export const RedirectInput = ({ enduserId, groupId, groupInsance, rootResponseId, formResponseId, field, submit, value={} as any, onChange, responses, enduser, ...props }: FormInputProps<'Redirect'>) => {
|
|
2948
2948
|
console.log('formResponseId', formResponseId, 'rootResponseId', rootResponseId)
|
|
2949
2949
|
const session = useResolvedSession()
|
|
2950
2950
|
|
|
2951
2951
|
let eId = ''
|
|
2952
2952
|
try {
|
|
2953
|
-
eId = new URL(window.location.href).searchParams.get('eId') || ''
|
|
2953
|
+
eId = new URL(window.location.href).searchParams.get('eId') || enduserId || ''
|
|
2954
2954
|
} catch(err) {}
|
|
2955
|
+
console.log(eId)
|
|
2955
2956
|
|
|
2956
2957
|
const email = (
|
|
2957
2958
|
responses?.find(r => r.intakeField === 'email')?.answer?.value
|
|
@@ -2993,7 +2994,7 @@ export const RedirectInput = ({ groupId, groupInsance, rootResponseId, formRespo
|
|
|
2993
2994
|
field.options.redirectExternalUrl,
|
|
2994
2995
|
{
|
|
2995
2996
|
...session.userInfo as any,
|
|
2996
|
-
email, fname, lname, state, phone,
|
|
2997
|
+
id: eId, email, fname, lname, state, phone,
|
|
2997
2998
|
}
|
|
2998
2999
|
)
|
|
2999
3000
|
)
|
package/src/state.tsx
CHANGED
|
@@ -96,6 +96,7 @@ import {
|
|
|
96
96
|
DiagnosisCode,
|
|
97
97
|
AllergyCode,
|
|
98
98
|
IntegrationLog,
|
|
99
|
+
EnduserEligibilityResult,
|
|
99
100
|
} from "@tellescope/types-client"
|
|
100
101
|
|
|
101
102
|
import {
|
|
@@ -359,6 +360,7 @@ const suggestedContactsSlice = createSliceForList<SuggestedContact, 'suggested_c
|
|
|
359
360
|
const diagnosisCodesSlice = createSliceForList<DiagnosisCode, 'diagnosis_codes'>('diagnosis_codes')
|
|
360
361
|
const allergyCodesSlice = createSliceForList<AllergyCode, 'allergy_codes'>('allergy_codes')
|
|
361
362
|
const integrationLogsSlice = createSliceForList<IntegrationLog, 'integration_logs'>('integration_logs')
|
|
363
|
+
const enduserEligibilityResultsSlice = createSliceForList<EnduserEligibilityResult, 'enduser_eligibility_results'>('enduser_eligibility_results')
|
|
362
364
|
|
|
363
365
|
const roleBasedAccessPermissionsSlice = createSliceForList<RoleBasedAccessPermission, 'role_based_access_permissions'>('role_based_access_permissions')
|
|
364
366
|
|
|
@@ -367,6 +369,7 @@ const userLogsSlice = createSliceForList<UserLog, 'user_logs'>('user_logs')
|
|
|
367
369
|
|
|
368
370
|
export const sharedConfig = {
|
|
369
371
|
reducer: {
|
|
372
|
+
enduser_eligibility_results: enduserEligibilityResultsSlice.reducer,
|
|
370
373
|
integration_logs: integrationLogsSlice.reducer,
|
|
371
374
|
ticket_queues: ticketQueuesSlice.reducer,
|
|
372
375
|
automation_triggers: automationTriggersSlice.reducer,
|
|
@@ -1192,6 +1195,25 @@ export const useUserAndEnduserDisplayInfo = () => {
|
|
|
1192
1195
|
return displayInfo
|
|
1193
1196
|
}
|
|
1194
1197
|
|
|
1198
|
+
export const useEnduserEligibilityResults = (options={} as HookOptions<EnduserEligibilityResult>) => {
|
|
1199
|
+
const session = useResolvedSession()
|
|
1200
|
+
|
|
1201
|
+
return useListStateHook('enduser_eligibility_results', useTypedSelector(s => s.enduser_eligibility_results), session, enduserEligibilityResultsSlice,
|
|
1202
|
+
{
|
|
1203
|
+
loadQuery: session.api.enduser_eligibility_results.getSome,
|
|
1204
|
+
findOne: session.api.enduser_eligibility_results.getOne,
|
|
1205
|
+
findByIds: session.api.enduser_eligibility_results.getByIds,
|
|
1206
|
+
addOne: session.api.enduser_eligibility_results.createOne,
|
|
1207
|
+
addSome: session.api.enduser_eligibility_results.createSome,
|
|
1208
|
+
deleteOne: session.api.enduser_eligibility_results.deleteOne,
|
|
1209
|
+
updateOne: session.api.enduser_eligibility_results.updateOne,
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
...options,
|
|
1213
|
+
},
|
|
1214
|
+
)
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1195
1217
|
export const useSuggestedContacts = (options={} as HookOptions<SuggestedContact>) => {
|
|
1196
1218
|
const session = useSession()
|
|
1197
1219
|
|