@planningcenter/chat-react-native 3.38.1-rc.1 → 3.38.1-rc.2

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": "@planningcenter/chat-react-native",
3
- "version": "3.38.1-rc.1",
3
+ "version": "3.38.1-rc.2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "react-native": "./src/index.tsx",
@@ -72,5 +72,5 @@
72
72
  "react-native-url-polyfill": "^2.0.0",
73
73
  "typescript": "~5.9.2"
74
74
  },
75
- "gitHead": "594da00f76ed17255cd11b6128be8687e3219e6c"
75
+ "gitHead": "6ec23b16623531c4a2d4fab2c6280468b642d20c"
76
76
  }
@@ -1,10 +0,0 @@
1
- import { RefObject } from 'react';
2
- import { type FlatListProps } from 'react-native';
3
- import { FlatList } from 'react-native-gesture-handler';
4
- import type { EnrichedMessage } from '../../utils/group_messages';
5
- type MessageListProps = Pick<FlatListProps<EnrichedMessage>, 'data' | 'renderItem' | 'onScroll' | 'onScrollBeginDrag' | 'viewabilityConfigCallbackPairs' | 'onContentSizeChange' | 'onScrollToIndexFailed' | 'onEndReached' | 'ListHeaderComponent'> & {
6
- listRef: RefObject<FlatList | null>;
7
- };
8
- export declare function MessageList({ listRef, ...props }: MessageListProps): import("react").JSX.Element;
9
- export {};
10
- //# sourceMappingURL=message_list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message_list.d.ts","sourceRoot":"","sources":["../../../src/components/conversation/message_list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAKjE,KAAK,gBAAgB,GAAG,IAAI,CAC1B,aAAa,CAAC,eAAe,CAAC,EAC5B,MAAM,GACN,YAAY,GACZ,UAAU,GACV,mBAAmB,GACnB,gCAAgC,GAChC,qBAAqB,GACrB,uBAAuB,GACvB,cAAc,GACd,qBAAqB,CACxB,GAAG;IACF,OAAO,EAAE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAA;CACpC,CAAA;AAED,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAYlE"}
@@ -1,13 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { FlatList } from 'react-native-gesture-handler';
3
- const extractItemKey = (item) => String(item.id);
4
- const maintainVisibleContentPosition = { minIndexForVisible: 0 };
5
- export function MessageList({ listRef, ...props }) {
6
- return (<FlatList inverted ref={listRef} contentContainerStyle={styles.listContainer} maintainVisibleContentPosition={maintainVisibleContentPosition} keyExtractor={extractItemKey} scrollEventThrottle={64} {...props}/>);
7
- }
8
- const styles = StyleSheet.create({
9
- listContainer: {
10
- paddingVertical: 12,
11
- },
12
- });
13
- //# sourceMappingURL=message_list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"message_list.js","sourceRoot":"","sources":["../../../src/components/conversation/message_list.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAsB,MAAM,cAAc,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAGvD,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AACjE,MAAM,8BAA8B,GAAG,EAAE,kBAAkB,EAAE,CAAC,EAAE,CAAA;AAiBhE,MAAM,UAAU,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,KAAK,EAAoB;IACjE,OAAO,CACL,CAAC,QAAQ,CACP,QAAQ,CACR,GAAG,CAAC,CAAC,OAAO,CAAC,CACb,qBAAqB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAC5C,8BAA8B,CAAC,CAAC,8BAA8B,CAAC,CAC/D,YAAY,CAAC,CAAC,cAAc,CAAC,CAC7B,mBAAmB,CAAC,CAAC,EAAE,CAAC,CACxB,IAAI,KAAK,CAAC,EACV,CACH,CAAA;AACH,CAAC;AAED,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,eAAe,EAAE,EAAE;KACpB;CACF,CAAC,CAAA","sourcesContent":["import { RefObject } from 'react'\nimport { StyleSheet, type FlatListProps } from 'react-native'\nimport { FlatList } from 'react-native-gesture-handler'\nimport type { EnrichedMessage } from '../../utils/group_messages'\n\nconst extractItemKey = (item: EnrichedMessage) => String(item.id)\nconst maintainVisibleContentPosition = { minIndexForVisible: 0 }\n\ntype MessageListProps = Pick<\n FlatListProps<EnrichedMessage>,\n | 'data'\n | 'renderItem'\n | 'onScroll'\n | 'onScrollBeginDrag'\n | 'viewabilityConfigCallbackPairs'\n | 'onContentSizeChange'\n | 'onScrollToIndexFailed'\n | 'onEndReached'\n | 'ListHeaderComponent'\n> & {\n listRef: RefObject<FlatList | null>\n}\n\nexport function MessageList({ listRef, ...props }: MessageListProps) {\n return (\n <FlatList\n inverted\n ref={listRef}\n contentContainerStyle={styles.listContainer}\n maintainVisibleContentPosition={maintainVisibleContentPosition}\n keyExtractor={extractItemKey}\n scrollEventThrottle={64}\n {...props}\n />\n )\n}\n\nconst styles = StyleSheet.create({\n listContainer: {\n paddingVertical: 12,\n },\n})\n"]}
@@ -1,14 +0,0 @@
1
- import { render } from '@testing-library/react-native'
2
- import { createRef } from 'react'
3
- import { FlatList } from 'react-native-gesture-handler'
4
- import { MessageList } from '../message_list'
5
-
6
- describe('MessageList', () => {
7
- it('renders with the gesture-handler FlatList so overscroll cannot drag an enclosing sheet', () => {
8
- const listRef = createRef<FlatList>()
9
-
10
- const screen = render(<MessageList listRef={listRef} data={[]} renderItem={() => null} />)
11
-
12
- expect(screen.UNSAFE_getByType(FlatList)).toBeTruthy()
13
- })
14
- })
@@ -1,42 +0,0 @@
1
- import { RefObject } from 'react'
2
- import { StyleSheet, type FlatListProps } from 'react-native'
3
- import { FlatList } from 'react-native-gesture-handler'
4
- import type { EnrichedMessage } from '../../utils/group_messages'
5
-
6
- const extractItemKey = (item: EnrichedMessage) => String(item.id)
7
- const maintainVisibleContentPosition = { minIndexForVisible: 0 }
8
-
9
- type MessageListProps = Pick<
10
- FlatListProps<EnrichedMessage>,
11
- | 'data'
12
- | 'renderItem'
13
- | 'onScroll'
14
- | 'onScrollBeginDrag'
15
- | 'viewabilityConfigCallbackPairs'
16
- | 'onContentSizeChange'
17
- | 'onScrollToIndexFailed'
18
- | 'onEndReached'
19
- | 'ListHeaderComponent'
20
- > & {
21
- listRef: RefObject<FlatList | null>
22
- }
23
-
24
- export function MessageList({ listRef, ...props }: MessageListProps) {
25
- return (
26
- <FlatList
27
- inverted
28
- ref={listRef}
29
- contentContainerStyle={styles.listContainer}
30
- maintainVisibleContentPosition={maintainVisibleContentPosition}
31
- keyExtractor={extractItemKey}
32
- scrollEventThrottle={64}
33
- {...props}
34
- />
35
- )
36
- }
37
-
38
- const styles = StyleSheet.create({
39
- listContainer: {
40
- paddingVertical: 12,
41
- },
42
- })