@tellescope/react-components 1.217.0 → 1.219.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/hooks.d.ts.map +1 -1
- package/lib/cjs/Forms/hooks.js +6 -2
- package/lib/cjs/Forms/hooks.js.map +1 -1
- package/lib/cjs/inputs_shared.d.ts.map +1 -1
- package/lib/cjs/inputs_shared.js +2 -1
- package/lib/cjs/inputs_shared.js.map +1 -1
- package/lib/esm/CMS/components.d.ts +1 -0
- package/lib/esm/CMS/components.d.ts.map +1 -1
- package/lib/esm/Forms/forms.d.ts +3 -3
- package/lib/esm/Forms/hooks.d.ts.map +1 -1
- package/lib/esm/Forms/hooks.js +6 -2
- package/lib/esm/Forms/hooks.js.map +1 -1
- package/lib/esm/Forms/inputs.d.ts +1 -1
- package/lib/esm/controls.d.ts +2 -2
- package/lib/esm/inputs.d.ts +1 -1
- package/lib/esm/inputs_shared.d.ts.map +1 -1
- package/lib/esm/inputs_shared.js +2 -1
- package/lib/esm/inputs_shared.js.map +1 -1
- package/lib/esm/layout.d.ts +1 -1
- package/lib/esm/state.d.ts +44 -44
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/Forms/hooks.tsx +6 -2
- package/src/inputs_shared.tsx +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/react-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.219.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.219.0",
|
|
51
|
+
"@tellescope/sdk": "^1.219.0",
|
|
52
|
+
"@tellescope/types-client": "^1.219.0",
|
|
53
|
+
"@tellescope/types-models": "^1.219.0",
|
|
54
|
+
"@tellescope/types-utilities": "^1.219.0",
|
|
55
|
+
"@tellescope/utilities": "^1.219.0",
|
|
56
|
+
"@tellescope/validation": "^1.219.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",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
84
84
|
"react-native": "^0.65.0 || ^0.66.0 || ^0.67.0 || ^0.68.0 || ^0.71.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "7282e4f5d36d947700943ba1901e471d47d2e747",
|
|
87
87
|
"publishConfig": {
|
|
88
88
|
"access": "public"
|
|
89
89
|
}
|
package/src/Forms/hooks.tsx
CHANGED
|
@@ -1334,6 +1334,7 @@ export const useTellescopeForm = ({ dontAutoadvance, isPublicForm, form, urlLogi
|
|
|
1334
1334
|
if (!currentValue) return
|
|
1335
1335
|
if (isNextDisabled() && currentValue?.answer.type !== 'Hidden Value') return
|
|
1336
1336
|
|
|
1337
|
+
console.log('going to next field')
|
|
1337
1338
|
if (currentValue.answer.type === 'Question Group') {
|
|
1338
1339
|
const responsesToSave = (
|
|
1339
1340
|
(currentValue.field.options?.subFields || [])
|
|
@@ -1373,7 +1374,7 @@ export const useTellescopeForm = ({ dontAutoadvance, isPublicForm, form, urlLogi
|
|
|
1373
1374
|
|
|
1374
1375
|
return newField || activeField
|
|
1375
1376
|
})
|
|
1376
|
-
}, [prevFieldStackRef, currentValue, isNextDisabled, updateFormResponse, session, responses, logicOptions])
|
|
1377
|
+
}, [prevFieldStackRef, currentValue, isNextDisabled, updateFormResponse, session, responses, logicOptions, accessCode, formResponseId, setActiveField, setCurrentPageIndex])
|
|
1377
1378
|
|
|
1378
1379
|
useEffect(() => {
|
|
1379
1380
|
if (dontAutoadvance) return
|
|
@@ -1383,7 +1384,10 @@ export const useTellescopeForm = ({ dontAutoadvance, isPublicForm, form, urlLogi
|
|
|
1383
1384
|
// add slight delay so it's obvious which answer was selected before proceeding
|
|
1384
1385
|
const t = setTimeout(goToNextField, 250)
|
|
1385
1386
|
|
|
1386
|
-
return () => {
|
|
1387
|
+
return () => {
|
|
1388
|
+
console.log('clearing autoadvance timeout');
|
|
1389
|
+
clearTimeout(t)
|
|
1390
|
+
}
|
|
1387
1391
|
}, [responses, goToNextField, dontAutoadvance])
|
|
1388
1392
|
|
|
1389
1393
|
const isPreviousDisabled = useCallback(() => (
|
package/src/inputs_shared.tsx
CHANGED
|
@@ -936,7 +936,12 @@ export const ChatRoomSearch = (props: Omit<GenericSearchProps<ChatRoom>, 'filter
|
|
|
936
936
|
onLoad={addLocalElements}
|
|
937
937
|
attachSearchableFields={r => {
|
|
938
938
|
const users = (r.userIds || []).map(r => findUser(r, { batch: true })!).filter(u => u)
|
|
939
|
-
|
|
939
|
+
|
|
940
|
+
const enduserIds = [
|
|
941
|
+
...r.enduserIds || [],
|
|
942
|
+
...r.aboutEnduserId ? [r.aboutEnduserId] : [],
|
|
943
|
+
]
|
|
944
|
+
const endusers = enduserIds.map(r => findEnduser(r, { batch: true })!).filter(e => e)
|
|
940
945
|
|
|
941
946
|
const fields = {} as Record<string, string>
|
|
942
947
|
let i = 0
|