@tellescope/react-components 1.167.0 → 1.168.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/react-components",
3
- "version": "1.167.0",
3
+ "version": "1.168.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.167.0",
51
- "@tellescope/sdk": "^1.167.0",
52
- "@tellescope/types-client": "^1.167.0",
53
- "@tellescope/types-models": "^1.167.0",
54
- "@tellescope/types-utilities": "^1.167.0",
55
- "@tellescope/utilities": "^1.167.0",
56
- "@tellescope/validation": "^1.167.0",
50
+ "@tellescope/constants": "^1.168.0",
51
+ "@tellescope/sdk": "^1.168.0",
52
+ "@tellescope/types-client": "^1.168.0",
53
+ "@tellescope/types-models": "^1.168.0",
54
+ "@tellescope/types-utilities": "^1.168.0",
55
+ "@tellescope/utilities": "^1.168.0",
56
+ "@tellescope/validation": "^1.168.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": "c38c1cdd092cc5a0881c68117d88e98b83daed8e",
83
+ "gitHead": "2a92eab06c67bafc1445136c8e81dab4a94d260e",
84
84
  "publishConfig": {
85
85
  "access": "public"
86
86
  }
@@ -896,6 +896,7 @@ export interface UserAndEnduserSelectorProps {
896
896
  filter?: (e: Enduser | User) => boolean,
897
897
  limitToUsers?: User[],
898
898
  dontIncludeSelf: boolean,
899
+ virtualizationHeight?: number,
899
900
  }
900
901
  export const UserAndEnduserSelector: React.JSXElementConstructor<UserAndEnduserSelectorProps> = ({
901
902
  titleInput,
@@ -914,7 +915,8 @@ export const UserAndEnduserSelector: React.JSXElementConstructor<UserAndEnduserS
914
915
  filter,
915
916
  radio,
916
917
  limitToUsers,
917
- dontIncludeSelf
918
+ dontIncludeSelf,
919
+ virtualizationHeight,
918
920
  }) => {
919
921
  const session = useResolvedSession()
920
922
  const [endusersLoading, { loadMore: loadMoreEndusers, doneLoading: doneLoadingEndusers }] = useEndusers()
@@ -1000,7 +1002,16 @@ export const UserAndEnduserSelector: React.JSXElementConstructor<UserAndEnduserS
1000
1002
  />
1001
1003
  </Flex>
1002
1004
 
1003
- <ScrollingList items={items}
1005
+ <ScrollingList items={items}
1006
+ virtualization={
1007
+ virtualizationHeight ? {
1008
+ virtualize: true,
1009
+ height: virtualizationHeight,
1010
+ rowHeight: 45,
1011
+ width: '100%',
1012
+ hideHorizontalScroll: true,
1013
+ } : undefined
1014
+ }
1004
1015
  emptyText={
1005
1016
  itemsUnfiltered.length === 0
1006
1017
  ? "No contacts found"