@planningcenter/chat-react-native 3.15.0-rc.0 → 3.15.0-rc.10
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/build/components/conversations/conversation_actions.js +1 -1
- package/build/components/conversations/conversation_actions.js.map +1 -1
- package/build/components/conversations/conversation_preview.d.ts.map +1 -1
- package/build/components/conversations/conversation_preview.js +9 -5
- package/build/components/conversations/conversation_preview.js.map +1 -1
- package/build/components/conversations/mute_indicator.d.ts.map +1 -1
- package/build/components/conversations/mute_indicator.js +3 -1
- package/build/components/conversations/mute_indicator.js.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.d.ts.map +1 -1
- package/build/components/conversations/swipeable_toggle_button.js +6 -3
- package/build/components/conversations/swipeable_toggle_button.js.map +1 -1
- package/build/components/conversations/unread_count_badge.js +9 -6
- package/build/components/conversations/unread_count_badge.js.map +1 -1
- package/build/components/display/action_button.d.ts.map +1 -1
- package/build/components/display/action_button.js +2 -4
- package/build/components/display/action_button.js.map +1 -1
- package/build/components/display/avatar.d.ts +3 -1
- package/build/components/display/avatar.d.ts.map +1 -1
- package/build/components/display/avatar.js +2 -2
- package/build/components/display/avatar.js.map +1 -1
- package/build/components/display/avatar_group.d.ts +3 -1
- package/build/components/display/avatar_group.d.ts.map +1 -1
- package/build/components/display/avatar_group.js +2 -2
- package/build/components/display/avatar_group.js.map +1 -1
- package/build/components/display/badge.d.ts +5 -1
- package/build/components/display/badge.d.ts.map +1 -1
- package/build/components/display/badge.js +2 -2
- package/build/components/display/badge.js.map +1 -1
- package/build/components/display/icon.d.ts +26 -13
- package/build/components/display/icon.d.ts.map +1 -1
- package/build/components/display/icon.js +0 -12
- package/build/components/display/icon.js.map +1 -1
- package/build/components/display/index.d.ts +1 -0
- package/build/components/display/index.d.ts.map +1 -1
- package/build/components/display/index.js +1 -0
- package/build/components/display/index.js.map +1 -1
- package/build/components/display/pressable_row.d.ts +14 -0
- package/build/components/display/pressable_row.d.ts.map +1 -0
- package/build/components/display/pressable_row.js +65 -0
- package/build/components/display/pressable_row.js.map +1 -0
- package/build/components/display/toggle_button.d.ts +3 -1
- package/build/components/display/toggle_button.d.ts.map +1 -1
- package/build/components/display/toggle_button.js +1 -1
- package/build/components/display/toggle_button.js.map +1 -1
- package/build/components/primitive/avatar_primitive.d.ts +2 -0
- package/build/components/primitive/avatar_primitive.d.ts.map +1 -1
- package/build/components/primitive/avatar_primitive.js +20 -19
- package/build/components/primitive/avatar_primitive.js.map +1 -1
- package/build/components/primitive/form_sheet.d.ts +3 -2
- package/build/components/primitive/form_sheet.d.ts.map +1 -1
- package/build/components/primitive/form_sheet.js +5 -3
- package/build/components/primitive/form_sheet.js.map +1 -1
- package/build/hooks/index.d.ts +1 -0
- package/build/hooks/index.d.ts.map +1 -1
- package/build/hooks/index.js +1 -0
- package/build/hooks/index.js.map +1 -1
- package/build/hooks/use_api.d.ts +1 -1
- package/build/hooks/use_api.d.ts.map +1 -1
- package/build/hooks/use_api.js.map +1 -1
- package/build/hooks/use_api_client.d.ts +1 -1
- package/build/hooks/use_api_client.d.ts.map +1 -1
- package/build/hooks/use_api_client.js +1 -1
- package/build/hooks/use_api_client.js.map +1 -1
- package/build/hooks/use_app_name.d.ts +3 -0
- package/build/hooks/use_app_name.d.ts.map +1 -0
- package/build/hooks/use_app_name.js +12 -0
- package/build/hooks/use_app_name.js.map +1 -0
- package/build/hooks/use_async_storage.d.ts +1 -1
- package/build/hooks/use_async_storage.d.ts.map +1 -1
- package/build/hooks/use_async_storage.js +6 -5
- package/build/hooks/use_async_storage.js.map +1 -1
- package/build/hooks/use_report_bug_action.d.ts +1 -1
- package/build/hooks/use_report_bug_action.d.ts.map +1 -1
- package/build/hooks/use_report_bug_action.js +1 -9
- package/build/hooks/use_report_bug_action.js.map +1 -1
- package/build/hooks/use_scalable_number_of_lines.d.ts +2 -0
- package/build/hooks/use_scalable_number_of_lines.d.ts.map +1 -0
- package/build/hooks/use_scalable_number_of_lines.js +9 -0
- package/build/hooks/use_scalable_number_of_lines.js.map +1 -0
- package/build/hooks/use_suspense_api.d.ts +1 -1
- package/build/hooks/use_suspense_api.d.ts.map +1 -1
- package/build/hooks/use_suspense_api.js.map +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -0
- package/build/index.js.map +1 -1
- package/build/navigation/index.d.ts +20 -5
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +23 -15
- package/build/navigation/index.js.map +1 -1
- package/build/polyfills/events/CustomEvent.d.ts +21 -0
- package/build/polyfills/events/CustomEvent.d.ts.map +1 -0
- package/build/polyfills/events/CustomEvent.js +22 -0
- package/build/polyfills/events/CustomEvent.js.map +1 -0
- package/build/polyfills/events/Event.d.ts +49 -0
- package/build/polyfills/events/Event.d.ts.map +1 -0
- package/build/polyfills/events/Event.js +125 -0
- package/build/polyfills/events/Event.js.map +1 -0
- package/build/polyfills/events/EventHandlerAttributes.d.ts +8 -0
- package/build/polyfills/events/EventHandlerAttributes.d.ts.map +1 -0
- package/build/polyfills/events/EventHandlerAttributes.js +46 -0
- package/build/polyfills/events/EventHandlerAttributes.js.map +1 -0
- package/build/polyfills/events/EventTarget.d.ts +33 -0
- package/build/polyfills/events/EventTarget.d.ts.map +1 -0
- package/build/polyfills/events/EventTarget.js +238 -0
- package/build/polyfills/events/EventTarget.js.map +1 -0
- package/build/polyfills/events/internals/EventInternals.d.ts +30 -0
- package/build/polyfills/events/internals/EventInternals.d.ts.map +1 -0
- package/build/polyfills/events/internals/EventInternals.js +76 -0
- package/build/polyfills/events/internals/EventInternals.js.map +1 -0
- package/build/polyfills/events/internals/EventTargetInternals.d.ts +9 -0
- package/build/polyfills/events/internals/EventTargetInternals.d.ts.map +1 -0
- package/build/polyfills/events/internals/EventTargetInternals.js +11 -0
- package/build/polyfills/events/internals/EventTargetInternals.js.map +1 -0
- package/build/polyfills/webidl/PlatformObjects.d.ts +31 -0
- package/build/polyfills/webidl/PlatformObjects.d.ts.map +1 -0
- package/build/polyfills/webidl/PlatformObjects.js +39 -0
- package/build/polyfills/webidl/PlatformObjects.js.map +1 -0
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +62 -57
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation_filters/components/conversation_filters.js +9 -7
- package/build/screens/conversation_filters/components/conversation_filters.js.map +1 -1
- package/build/screens/conversation_filters/components/rows.d.ts.map +1 -1
- package/build/screens/conversation_filters/components/rows.js +50 -31
- package/build/screens/conversation_filters/components/rows.js.map +1 -1
- package/build/screens/conversations/components/list_header_component.d.ts.map +1 -1
- package/build/screens/conversations/components/list_header_component.js +2 -2
- package/build/screens/conversations/components/list_header_component.js.map +1 -1
- package/build/screens/conversations/conversations_screen.d.ts.map +1 -1
- package/build/screens/conversations/conversations_screen.js +6 -6
- package/build/screens/conversations/conversations_screen.js.map +1 -1
- package/build/screens/design_system_screen.js +1 -1
- package/build/screens/design_system_screen.js.map +1 -1
- package/build/screens/get_help_screen.d.ts +5 -0
- package/build/screens/get_help_screen.d.ts.map +1 -0
- package/build/screens/get_help_screen.js +94 -0
- package/build/screens/get_help_screen.js.map +1 -0
- package/build/screens/message_actions_screen.d.ts +1 -1
- package/build/screens/message_actions_screen.d.ts.map +1 -1
- package/build/screens/message_actions_screen.js +14 -11
- package/build/screens/message_actions_screen.js.map +1 -1
- package/build/utils/client/index.d.ts +1 -0
- package/build/utils/client/index.d.ts.map +1 -1
- package/build/utils/client/index.js +1 -0
- package/build/utils/client/index.js.map +1 -1
- package/build/utils/client/types.d.ts +61 -0
- package/build/utils/client/types.d.ts.map +1 -0
- package/build/utils/client/types.js +2 -0
- package/build/utils/client/types.js.map +1 -0
- package/build/utils/styles.d.ts +1 -1
- package/build/utils/styles.js +1 -1
- package/build/utils/styles.js.map +1 -1
- package/build/utils/theme.d.ts +1 -0
- package/build/utils/theme.d.ts.map +1 -1
- package/build/utils/theme.js +2 -0
- package/build/utils/theme.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/event-polyfill.test.ts +314 -0
- package/src/components/conversations/conversation_actions.tsx +1 -1
- package/src/components/conversations/conversation_preview.tsx +15 -4
- package/src/components/conversations/mute_indicator.tsx +9 -1
- package/src/components/conversations/swipeable_toggle_button.tsx +18 -3
- package/src/components/conversations/unread_count_badge.tsx +9 -6
- package/src/components/display/action_button.tsx +3 -4
- package/src/components/display/avatar.tsx +5 -1
- package/src/components/display/avatar_group.tsx +5 -1
- package/src/components/display/badge.tsx +6 -1
- package/src/components/display/icon.tsx +17 -14
- package/src/components/display/index.ts +1 -0
- package/src/components/display/pressable_row.tsx +103 -0
- package/src/components/display/toggle_button.tsx +12 -1
- package/src/components/primitive/avatar_primitive.tsx +35 -19
- package/src/components/primitive/form_sheet.tsx +33 -5
- package/src/hooks/index.ts +1 -0
- package/src/hooks/use_api.ts +1 -1
- package/src/hooks/use_api_client.ts +2 -2
- package/src/hooks/use_app_name.ts +17 -0
- package/src/hooks/use_async_storage.ts +8 -5
- package/src/hooks/use_report_bug_action.ts +2 -10
- package/src/hooks/use_scalable_number_of_lines.ts +10 -0
- package/src/hooks/use_suspense_api.ts +1 -1
- package/src/index.tsx +2 -0
- package/src/navigation/index.tsx +38 -25
- package/src/polyfills/events/CustomEvent.ts +32 -0
- package/src/polyfills/events/Event.ts +186 -0
- package/src/polyfills/events/EventHandlerAttributes.ts +67 -0
- package/src/polyfills/events/EventTarget.ts +360 -0
- package/src/polyfills/events/README.md +1 -0
- package/src/polyfills/events/internals/EventInternals.ts +95 -0
- package/src/polyfills/events/internals/EventTargetInternals.ts +16 -0
- package/src/polyfills/webidl/PlatformObjects.ts +50 -0
- package/src/screens/bug_report_screen.tsx +79 -67
- package/src/screens/conversation_filters/components/conversation_filters.tsx +10 -7
- package/src/screens/conversation_filters/components/rows.tsx +63 -50
- package/src/screens/conversations/components/list_header_component.tsx +3 -1
- package/src/screens/conversations/conversations_screen.tsx +8 -6
- package/src/screens/design_system_screen.tsx +1 -1
- package/src/screens/get_help_screen.tsx +131 -0
- package/src/screens/message_actions_screen.tsx +34 -12
- package/src/utils/client/index.ts +1 -0
- package/src/utils/styles.ts +1 -1
- package/src/utils/theme.ts +3 -0
- /package/src/utils/client/{types.d.ts → types.ts} +0 -0
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,0BAA0B,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,0BAA0B,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA"}
|
package/build/index.js
CHANGED
|
@@ -8,4 +8,6 @@ export * from './types';
|
|
|
8
8
|
export { platformFontWeightBold, Session, Uri } from './utils';
|
|
9
9
|
export * from './utils/client';
|
|
10
10
|
export * from './utils/native_adapters';
|
|
11
|
+
export { default as Event } from './polyfills/events/Event';
|
|
12
|
+
export { CustomEvent } from './polyfills/events/CustomEvent';
|
|
11
13
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAA8B,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA","sourcesContent":["export { GroupConversations } from './components'\nexport { ApiProvider, chatQueryClient, useFocusManager } from './contexts/api_provider'\nexport * from './contexts/chat_context'\nexport * from './navigation'\nexport { ScreenLayout } from './navigation/screenLayout'\nexport * from './screens'\nexport * from './types'\nexport { platformFontWeightBold, Session, TemporaryDefaultColorsType, Uri } from './utils'\nexport * from './utils/client'\nexport * from './utils/native_adapters'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACvF,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAA8B,GAAG,EAAE,MAAM,SAAS,CAAA;AAC1F,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA","sourcesContent":["export { GroupConversations } from './components'\nexport { ApiProvider, chatQueryClient, useFocusManager } from './contexts/api_provider'\nexport * from './contexts/chat_context'\nexport * from './navigation'\nexport { ScreenLayout } from './navigation/screenLayout'\nexport * from './screens'\nexport * from './types'\nexport { platformFontWeightBold, Session, TemporaryDefaultColorsType, Uri } from './utils'\nexport * from './utils/client'\nexport * from './utils/native_adapters'\nexport { default as Event } from './polyfills/events/Event'\nexport { CustomEvent } from './polyfills/events/CustomEvent'\n"]}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { StaticParamList } from '@react-navigation/native';
|
|
2
2
|
import { NativeStackHeaderRightProps } from '@react-navigation/native-stack';
|
|
3
|
+
import { CardStyleInterpolators } from '@react-navigation/stack';
|
|
3
4
|
import React from 'react';
|
|
5
|
+
import { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen';
|
|
6
|
+
import { BugReportScreen } from '../screens/bug_report_screen';
|
|
7
|
+
import { MessageReadReceiptsScreen } from '../screens/conversation/message_read_receipts_screen';
|
|
4
8
|
import { ConversationDetailsScreen } from '../screens/conversation_details_screen';
|
|
5
9
|
import { ConversationScreen } from '../screens/conversation_screen';
|
|
6
10
|
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
7
11
|
import { MessageActionsScreen } from '../screens/message_actions_screen';
|
|
8
|
-
import { SendGiphyScreen } from '../screens/send_giphy_screen';
|
|
9
12
|
import { NotFound } from '../screens/not_found';
|
|
10
13
|
import { ReactionsScreen } from '../screens/reactions_screen';
|
|
14
|
+
import { SendGiphyScreen } from '../screens/send_giphy_screen';
|
|
11
15
|
import { ScreenLayout } from './screenLayout';
|
|
12
|
-
import { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen';
|
|
13
|
-
import { BugReportScreen } from '../screens/bug_report_screen';
|
|
14
|
-
import { MessageReadReceiptsScreen } from '../screens/conversation/message_read_receipts_screen';
|
|
15
|
-
import { CardStyleInterpolators } from '@react-navigation/stack';
|
|
16
16
|
export declare const NewConversationStack: import("@react-navigation/native").TypedNavigator<{
|
|
17
17
|
ParamList: import("@react-navigation/native").ParamListBase;
|
|
18
18
|
NavigatorID: undefined;
|
|
@@ -269,6 +269,21 @@ export declare const ChatStack: import("@react-navigation/native").TypedNavigato
|
|
|
269
269
|
readonly screen: typeof BugReportScreen;
|
|
270
270
|
readonly options: ({ navigation, }: import("@react-navigation/native-stack").NativeStackScreenProps<any>) => import("@react-navigation/native-stack").NativeStackNavigationOptions;
|
|
271
271
|
};
|
|
272
|
+
readonly GetHelp: {
|
|
273
|
+
readonly screen: ({}: {
|
|
274
|
+
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<{}, string, undefined>;
|
|
275
|
+
route: import("@react-navigation/native").RouteProp<{}, string>;
|
|
276
|
+
}) => React.JSX.Element;
|
|
277
|
+
readonly options: ({ navigation }: {
|
|
278
|
+
route: import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>;
|
|
279
|
+
navigation: import("@react-navigation/native-stack").NativeStackNavigationProp<import("@react-navigation/native").ParamListBase, string, undefined>;
|
|
280
|
+
theme: ReactNavigation.Theme;
|
|
281
|
+
}) => {
|
|
282
|
+
headerTitle: string;
|
|
283
|
+
presentation: "modal";
|
|
284
|
+
headerLeft: (props: import("@react-navigation/native-stack").NativeStackHeaderLeftProps) => React.JSX.Element;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
272
287
|
readonly NotFound: {
|
|
273
288
|
readonly screen: typeof NotFound;
|
|
274
289
|
readonly options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EACL,uBAAuB,EAExB,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,eAAe,EAA0B,MAAM,8BAA8B,CAAA;AACtF,OAAO,EACL,yBAAyB,EAE1B,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AAWlF,OAAO,EAEL,kBAAkB,EAEnB,MAAM,gCAAgC,CAAA;AAIvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;AAEnF,OAAO,EACL,oBAAoB,EAErB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAA0B,MAAM,6BAA6B,CAAA;AACrF,OAAO,EAAE,eAAe,EAA0B,MAAM,8BAA8B,CAAA;AAEtF,OAAO,EAAE,YA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leInterpolators } from '@react-navigation/stack';
|
|
3
4
|
import React from 'react';
|
|
5
|
+
import { Platform } from 'react-native';
|
|
4
6
|
import { Icon } from '../components';
|
|
7
|
+
import { HeaderTextButton } from '../components/display/platform_modal_header_buttons';
|
|
8
|
+
import { AttachmentActionsScreen, AttachmentActionsScreenOptions, } from '../screens/attachment_actions/attachment_actions_screen';
|
|
9
|
+
import { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen';
|
|
10
|
+
import { MessageReadReceiptsScreen, MessageReadReceiptsScreenOptions, } from '../screens/conversation/message_read_receipts_screen';
|
|
5
11
|
import { ConversationDetailsScreen } from '../screens/conversation_details_screen';
|
|
6
|
-
import { ConversationScreen, ConversationScreenTitle, } from '../screens/conversation_screen';
|
|
7
|
-
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
8
|
-
import { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen';
|
|
9
12
|
import { ConversationFilterReceipientsScreenOptions, ConversationFilterRecipientsScreen, } from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen';
|
|
13
|
+
import { ConversationFiltersScreen, ConversationFiltersScreenOptions, } from '../screens/conversation_filters_screen';
|
|
14
|
+
import { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen';
|
|
15
|
+
import { ConversationScreen, ConversationScreenTitle, } from '../screens/conversation_screen';
|
|
16
|
+
import { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen';
|
|
10
17
|
import { ConversationSelectRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_recipients_screen';
|
|
18
|
+
import { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen';
|
|
19
|
+
import { ConversationsScreen } from '../screens/conversations/conversations_screen';
|
|
20
|
+
import { GetHelpScreen } from '../screens/get_help_screen';
|
|
11
21
|
import { MessageActionsScreen, MessageActionsScreenOptions, } from '../screens/message_actions_screen';
|
|
12
|
-
import { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen';
|
|
13
22
|
import { NotFound } from '../screens/not_found';
|
|
14
23
|
import { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen';
|
|
15
|
-
import {
|
|
16
|
-
import { ConversationFiltersScreen, ConversationFiltersScreenOptions, } from '../screens/conversation_filters_screen';
|
|
17
|
-
import { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen';
|
|
18
|
-
import { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen';
|
|
19
|
-
import { AttachmentActionsScreenOptions } from '../screens/attachment_actions/attachment_actions_screen';
|
|
20
|
-
import { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen';
|
|
21
|
-
import { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen';
|
|
22
|
-
import { MessageReadReceiptsScreen, MessageReadReceiptsScreenOptions, } from '../screens/conversation/message_read_receipts_screen';
|
|
23
|
-
import { Platform } from 'react-native';
|
|
24
|
-
import { HeaderTextButton } from '../components/display/platform_modal_header_buttons';
|
|
24
|
+
import { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen';
|
|
25
25
|
import { TeamConversationScreen } from '../screens/team_conversation_screen';
|
|
26
|
-
import {
|
|
26
|
+
import { ScreenLayout } from './screenLayout';
|
|
27
27
|
const HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES = {
|
|
28
28
|
marginLeft: Platform.select({ ios: -8, default: -3 }),
|
|
29
29
|
marginRight: Platform.select({ ios: 0, default: 30 }),
|
|
@@ -160,6 +160,14 @@ export const ChatStack = createNativeStackNavigator({
|
|
|
160
160
|
screen: BugReportScreen,
|
|
161
161
|
options: BugReportScreenOptions,
|
|
162
162
|
},
|
|
163
|
+
GetHelp: {
|
|
164
|
+
screen: GetHelpScreen,
|
|
165
|
+
options: ({ navigation }) => ({
|
|
166
|
+
headerTitle: 'Get help',
|
|
167
|
+
presentation: 'modal',
|
|
168
|
+
headerLeft: props => (<HeaderTextButton {...props} onPress={navigation.goBack} title="Close"/>),
|
|
169
|
+
}),
|
|
170
|
+
},
|
|
163
171
|
NotFound: {
|
|
164
172
|
screen: NotFound,
|
|
165
173
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EACL,0BAA0B,GAE3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AAClF,OAAO,EAEL,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAA;AACnF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAA;AAC3F,OAAO,EACL,0CAA0C,EAC1C,kCAAkC,GACnC,MAAM,iFAAiF,CAAA;AACxF,OAAO,EAAE,kCAAkC,EAAE,MAAM,iFAAiF,CAAA;AACpI,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,wCAAwC,CAAA;AAE/C,OAAO,EAAE,uCAAuC,EAAE,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/elements'\nimport { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n} from '@react-navigation/native-stack'\nimport React from 'react'\nimport { Icon } from '../components'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationsScreen } from '../screens/conversations/conversations_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationSelectRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_recipients_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { NotFound } from '../screens/not_found'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { ScreenLayout } from './screenLayout'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { AttachmentActionsScreenOptions } from '../screens/attachment_actions/attachment_actions_screen'\nimport { AttachmentActionsScreen } from '../screens/attachment_actions/attachment_actions_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport { Platform } from 'react-native'\nimport { HeaderTextButton } from '../components/display/platform_modal_header_buttons'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\n\nconst HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES = {\n marginLeft: Platform.select({ ios: -8, default: -3 }),\n marginRight: Platform.select({ ios: 0, default: 30 }),\n}\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationSelectRecipients',\n screenOptions: {\n headerBackButtonDisplayMode: 'minimal',\n },\n screenLayout: ScreenLayout,\n screens: {\n ConversationSelectRecipients: {\n screen: ConversationSelectRecipientsScreen,\n options: ({ navigation }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton {...props} onPress={navigation.goBack} title=\"Cancel\" />\n ),\n headerBackVisible: false,\n }),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.popTo('Conversations', route.params)}\n title=\"Cancel\"\n />\n ),\n }),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.popTo('Conversations', route.params)}\n title=\"Cancel\"\n />\n ),\n }),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation }) => ({\n title: 'New conversation',\n headerLeft: () => null,\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.getParent()?.goBack()}\n title=\"Cancel\"\n />\n ),\n }),\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: {\n headerBackButtonDisplayMode: 'minimal',\n },\n screenLayout: ScreenLayout,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) => ({\n headerTitle: (route.params as { title?: string })?.title ?? 'Chat',\n headerBackVisible: false,\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderBackButton\n backImage={() => <Icon name=\"general.x\" size={18} color={props.tintColor} />}\n onPress={navigation.goBack}\n {...props}\n />\n ),\n }),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) => ({\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted } = route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderBackButton\n backImage={() => <Icon name=\"general.x\" size={18} color={props.tintColor} />}\n onPress={() => navigation.getParent()?.goBack()}\n />\n ),\n headerLeft: props => (\n <HeaderBackButton\n style={HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES}\n displayMode=\"minimal\"\n onPress={() => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n }}\n {...props}\n />\n ),\n }),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) => ({\n presentation: 'modal',\n title: 'Conversation details',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton {...props} onPress={navigation.goBack} title=\"Done\" />\n ),\n }),\n },\n New: {\n screen: NewConversationStack,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/navigation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAE7D,OAAO,EACL,0BAA0B,GAE3B,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qDAAqD,CAAA;AACtF,OAAO,EACL,uBAAuB,EACvB,8BAA8B,GAC/B,MAAM,yDAAyD,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,EACL,yBAAyB,EACzB,gCAAgC,GACjC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAAE,yBAAyB,EAAE,MAAM,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AO,EAAE,sBAAsB;SAChC;QACD,mBAAmB,EAAE;YACnB,MAAM,EAAE,yBAAyB;YACjC,OAAO,EAAE,gCAAgC;SAC1C;QACD,SAAS,EAAE;YACT,MAAM,EAAE,eAAe;YACvB,OAAO,EAAE,sBAAsB;SAChC;QACD,OAAO,EAAE;YACP,MAAM,EAAE,aAAa;YACrB,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;gBAC5B,WAAW,EAAE,UAAU;gBACvB,YAAY,EAAE,OAAO;gBACrB,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,CACnB,CAAC,gBAAgB,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,EAAG,CAC1E;aACF,CAAC;SACH;QACD,QAAQ,EAAE;YACR,MAAM,EAAE,QAAQ;YAChB,OAAO,EAAE;gBACP,KAAK,EAAE,KAAK;aACb;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,GAAG;aACV;SACF;KACF;CACF,CAAC,CAAA","sourcesContent":["import { HeaderBackButton } from '@react-navigation/elements'\nimport { StaticParamList } from '@react-navigation/native'\nimport {\n createNativeStackNavigator,\n NativeStackHeaderRightProps,\n} from '@react-navigation/native-stack'\nimport { CardStyleInterpolators } from '@react-navigation/stack'\nimport React from 'react'\nimport { Platform } from 'react-native'\nimport { Icon } from '../components'\nimport { HeaderTextButton } from '../components/display/platform_modal_header_buttons'\nimport {\n AttachmentActionsScreen,\n AttachmentActionsScreenOptions,\n} from '../screens/attachment_actions/attachment_actions_screen'\nimport { BugReportScreen, BugReportScreenOptions } from '../screens/bug_report_screen'\nimport {\n MessageReadReceiptsScreen,\n MessageReadReceiptsScreenOptions,\n} from '../screens/conversation/message_read_receipts_screen'\nimport { ConversationDetailsScreen } from '../screens/conversation_details_screen'\nimport {\n ConversationFilterReceipientsScreenOptions,\n ConversationFilterRecipientsScreen,\n} from '../screens/conversation_filter_recipients/conversation_filter_recipients_screen'\nimport { ConversationFiltersParams } from '../screens/conversation_filters/screen_props'\nimport {\n ConversationFiltersScreen,\n ConversationFiltersScreenOptions,\n} from '../screens/conversation_filters_screen'\nimport { ConversationNewScreen } from '../screens/conversation_new/conversation_new_screen'\nimport {\n ConversationRouteProps,\n ConversationScreen,\n ConversationScreenTitle,\n} from '../screens/conversation_screen'\nimport { ConversationSelectGroupRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_group_recipients_screen'\nimport { ConversationSelectRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_recipients_screen'\nimport { ConversationSelectTeamsILeadRecipientsScreen } from '../screens/conversation_select_recipients/conversation_select_teams_i_lead_recipients_screen'\nimport { ConversationsScreen } from '../screens/conversations/conversations_screen'\nimport { GetHelpScreen } from '../screens/get_help_screen'\nimport {\n MessageActionsScreen,\n MessageActionsScreenOptions,\n} from '../screens/message_actions_screen'\nimport { NotFound } from '../screens/not_found'\nimport { ReactionsScreen, ReactionsScreenOptions } from '../screens/reactions_screen'\nimport { SendGiphyScreen, SendGiphyScreenOptions } from '../screens/send_giphy_screen'\nimport { TeamConversationScreen } from '../screens/team_conversation_screen'\nimport { ScreenLayout } from './screenLayout'\n\nconst HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES = {\n marginLeft: Platform.select({ ios: -8, default: -3 }),\n marginRight: Platform.select({ ios: 0, default: 30 }),\n}\n\nexport const NewConversationStack = createNativeStackNavigator({\n initialRouteName: 'ConversationSelectRecipients',\n screenOptions: {\n headerBackButtonDisplayMode: 'minimal',\n },\n screenLayout: ScreenLayout,\n screens: {\n ConversationSelectRecipients: {\n screen: ConversationSelectRecipientsScreen,\n options: ({ navigation }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton {...props} onPress={navigation.goBack} title=\"Cancel\" />\n ),\n headerBackVisible: false,\n }),\n },\n ConversationSelectGroupRecipients: {\n screen: ConversationSelectGroupRecipientsScreen,\n options: ({ navigation, route }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.popTo('Conversations', route.params)}\n title=\"Cancel\"\n />\n ),\n }),\n },\n ConversationSelectTeamsILeadRecipients: {\n screen: ConversationSelectTeamsILeadRecipientsScreen,\n options: ({ navigation, route }) => ({\n title: 'New conversation',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.popTo('Conversations', route.params)}\n title=\"Cancel\"\n />\n ),\n }),\n },\n ConversationFilterRecipients: {\n screen: ConversationFilterRecipientsScreen,\n options: ConversationFilterReceipientsScreenOptions,\n },\n ConversationNew: {\n screen: ConversationNewScreen,\n options: ({ navigation }) => ({\n title: 'New conversation',\n headerLeft: () => null,\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton\n {...props}\n onPress={() => navigation.getParent()?.goBack()}\n title=\"Cancel\"\n />\n ),\n }),\n },\n },\n})\n\nexport const ChatStack = createNativeStackNavigator({\n screenOptions: {\n headerBackButtonDisplayMode: 'minimal',\n },\n screenLayout: ScreenLayout,\n screens: {\n Conversations: {\n screen: ConversationsScreen,\n options: ({ route, navigation }) => ({\n headerTitle: (route.params as { title?: string })?.title ?? 'Chat',\n headerBackVisible: false,\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderBackButton\n backImage={() => <Icon name=\"general.x\" size={18} color={props.tintColor} />}\n onPress={navigation.goBack}\n {...props}\n />\n ),\n }),\n },\n ConversationFilters: {\n screen: ConversationFiltersScreen,\n options: ConversationFiltersScreenOptions,\n },\n Conversation: {\n screen: ConversationScreen,\n options: ({ route, navigation }) => ({\n headerTitle: (props: NativeStackHeaderRightProps) => {\n const { conversation_id, title, badge, deleted } = route.params as ConversationRouteProps\n\n return (\n <ConversationScreenTitle\n conversation_id={conversation_id}\n badge={badge}\n deleted={deleted}\n {...props}\n >\n {title ?? 'Conversation'}\n </ConversationScreenTitle>\n )\n },\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderBackButton\n backImage={() => <Icon name=\"general.x\" size={18} color={props.tintColor} />}\n onPress={() => navigation.getParent()?.goBack()}\n />\n ),\n headerLeft: props => (\n <HeaderBackButton\n style={HEADER_BACK_BUTTON_LAYOUT_RESET_STYLES}\n displayMode=\"minimal\"\n onPress={() => {\n const params = route.params as ConversationRouteProps\n if ((params as ConversationFiltersParams)?.chat_group_graph_id) {\n // Ensure that conversations with a graph id pass them back to the conversation list\n const { chat_group_graph_id } = params\n navigation.popTo('Conversations', { chat_group_graph_id })\n } else {\n navigation.goBack()\n }\n }}\n {...props}\n />\n ),\n }),\n },\n TeamConversation: {\n screen: TeamConversationScreen,\n options: {\n title: 'Finding conversation...',\n animation: 'none',\n cardStyleInterpolator: CardStyleInterpolators.forNoAnimation,\n },\n },\n ConversationDetails: {\n screen: ConversationDetailsScreen,\n options: ({ navigation }) => ({\n presentation: 'modal',\n title: 'Conversation details',\n headerRight: (props: NativeStackHeaderRightProps) => (\n <HeaderTextButton {...props} onPress={navigation.goBack} title=\"Done\" />\n ),\n }),\n },\n New: {\n screen: NewConversationStack,\n options: {\n headerShown: false,\n presentation: 'modal',\n },\n },\n SendGiphy: {\n screen: SendGiphyScreen,\n options: SendGiphyScreenOptions,\n },\n MessageActions: {\n screen: MessageActionsScreen,\n // Something about sheetAllowedDetents declared inline breaks TS\n options: MessageActionsScreenOptions,\n },\n AttachmentActions: {\n screen: AttachmentActionsScreen,\n options: AttachmentActionsScreenOptions,\n },\n Reactions: {\n screen: ReactionsScreen,\n options: ReactionsScreenOptions,\n },\n MessageReadReceipts: {\n screen: MessageReadReceiptsScreen,\n options: MessageReadReceiptsScreenOptions,\n },\n BugReport: {\n screen: BugReportScreen,\n options: BugReportScreenOptions,\n },\n GetHelp: {\n screen: GetHelpScreen,\n options: ({ navigation }) => ({\n headerTitle: 'Get help',\n presentation: 'modal',\n headerLeft: props => (\n <HeaderTextButton {...props} onPress={navigation.goBack} title=\"Close\" />\n ),\n }),\n },\n NotFound: {\n screen: NotFound,\n options: {\n title: '404',\n },\n linking: {\n path: '*',\n },\n },\n },\n})\n\ntype ChatStackParamList = StaticParamList<typeof ChatStack>\n\ndeclare global {\n namespace ReactNavigation {\n interface RootParamList extends ChatStackParamList {}\n }\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* This module implements the `CustomEvent` interface from the DOM.
|
|
9
|
+
* See https://dom.spec.whatwg.org/#interface-customevent.
|
|
10
|
+
*/
|
|
11
|
+
import Event from './Event';
|
|
12
|
+
import type { EventInit as RNEventInit } from './Event';
|
|
13
|
+
export interface CustomEventInit extends RNEventInit {
|
|
14
|
+
detail?: unknown;
|
|
15
|
+
}
|
|
16
|
+
export declare class CustomEvent extends Event {
|
|
17
|
+
private _detail;
|
|
18
|
+
constructor(type: string, options?: CustomEventInit);
|
|
19
|
+
get detail(): unknown;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=CustomEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomEvent.d.ts","sourceRoot":"","sources":["../../../src/polyfills/events/CustomEvent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAEH,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAEvD,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,qBAAa,WAAY,SAAQ,KAAK;IACpC,OAAO,CAAC,OAAO,CAAS;gBAEZ,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe;IAMnD,IAAI,MAAM,IAAI,OAAO,CAEpB;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* This module implements the `CustomEvent` interface from the DOM.
|
|
9
|
+
* See https://dom.spec.whatwg.org/#interface-customevent.
|
|
10
|
+
*/
|
|
11
|
+
import Event from './Event';
|
|
12
|
+
export class CustomEvent extends Event {
|
|
13
|
+
_detail;
|
|
14
|
+
constructor(type, options) {
|
|
15
|
+
super(type, options);
|
|
16
|
+
this._detail = options?.detail;
|
|
17
|
+
}
|
|
18
|
+
get detail() {
|
|
19
|
+
return this._detail;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=CustomEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomEvent.js","sourceRoot":"","sources":["../../../src/polyfills/events/CustomEvent.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAEH,OAAO,KAAK,MAAM,SAAS,CAAA;AAO3B,MAAM,OAAO,WAAY,SAAQ,KAAK;IAC5B,OAAO,CAAS;IAExB,YAAY,IAAY,EAAE,OAAyB;QACjD,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAEpB,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,MAAM,CAAA;IAChC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;CACF","sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * This module implements the `CustomEvent` interface from the DOM.\n * See https://dom.spec.whatwg.org/#interface-customevent.\n */\n\nimport Event from './Event'\nimport type { EventInit as RNEventInit } from './Event'\n\nexport interface CustomEventInit extends RNEventInit {\n detail?: unknown\n}\n\nexport class CustomEvent extends Event {\n private _detail: unknown\n\n constructor(type: string, options?: CustomEventInit) {\n super(type, options)\n\n this._detail = options?.detail\n }\n\n get detail(): unknown {\n return this._detail\n }\n}\n"]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* This module implements the `Event` interface from the DOM.
|
|
9
|
+
* See https://dom.spec.whatwg.org/#interface-event.
|
|
10
|
+
*/
|
|
11
|
+
import type RNEventTarget from './EventTarget';
|
|
12
|
+
export interface EventInit {
|
|
13
|
+
bubbles?: boolean;
|
|
14
|
+
cancelable?: boolean;
|
|
15
|
+
composed?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type EventPhase = 0 | 1 | 2 | 3;
|
|
18
|
+
export default class Event {
|
|
19
|
+
static NONE: 0;
|
|
20
|
+
static CAPTURING_PHASE: 1;
|
|
21
|
+
static AT_TARGET: 2;
|
|
22
|
+
static BUBBLING_PHASE: 3;
|
|
23
|
+
readonly NONE: 0;
|
|
24
|
+
readonly CAPTURING_PHASE: 1;
|
|
25
|
+
readonly AT_TARGET: 2;
|
|
26
|
+
readonly BUBBLING_PHASE: 3;
|
|
27
|
+
private _bubbles;
|
|
28
|
+
private _cancelable;
|
|
29
|
+
private _composed;
|
|
30
|
+
private _type;
|
|
31
|
+
private _defaultPrevented;
|
|
32
|
+
private _timeStamp;
|
|
33
|
+
constructor(type: string, options?: EventInit | null);
|
|
34
|
+
get bubbles(): boolean;
|
|
35
|
+
get cancelable(): boolean;
|
|
36
|
+
get composed(): boolean;
|
|
37
|
+
get currentTarget(): RNEventTarget | null;
|
|
38
|
+
get defaultPrevented(): boolean;
|
|
39
|
+
get eventPhase(): EventPhase;
|
|
40
|
+
get isTrusted(): boolean;
|
|
41
|
+
get target(): RNEventTarget | null;
|
|
42
|
+
get timeStamp(): number;
|
|
43
|
+
get type(): string;
|
|
44
|
+
composedPath(): ReadonlyArray<RNEventTarget>;
|
|
45
|
+
preventDefault(): void;
|
|
46
|
+
stopImmediatePropagation(): void;
|
|
47
|
+
stopPropagation(): void;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=Event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.d.ts","sourceRoot":"","sources":["../../../src/polyfills/events/Event.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AAEH,OAAO,KAAK,aAAa,MAAM,eAAe,CAAA;AAe9C,MAAM,WAAW,SAAS;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEtC,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,MAAM,CAAC,IAAI,EAAE,CAAC,CAAA;IACd,MAAM,CAAC,eAAe,EAAE,CAAC,CAAA;IACzB,MAAM,CAAC,SAAS,EAAE,CAAC,CAAA;IACnB,MAAM,CAAC,cAAc,EAAE,CAAC,CAAA;IAExB,QAAQ,CAAC,IAAI,EAAG,CAAC,CAAA;IACjB,QAAQ,CAAC,eAAe,EAAG,CAAC,CAAA;IAC5B,QAAQ,CAAC,SAAS,EAAG,CAAC,CAAA;IACtB,QAAQ,CAAC,cAAc,EAAG,CAAC,CAAA;IAE3B,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAQ;IAErB,OAAO,CAAC,iBAAiB,CAAiB;IAC1C,OAAO,CAAC,UAAU,CAA4B;gBAIlC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI;IAsBpD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,aAAa,IAAI,aAAa,GAAG,IAAI,CAExC;IAED,IAAI,gBAAgB,IAAI,OAAO,CAE9B;IAED,IAAI,UAAU,IAAI,UAAU,CAE3B;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,MAAM,IAAI,aAAa,GAAG,IAAI,CAEjC;IAED,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,YAAY,IAAI,aAAa,CAAC,aAAa,CAAC;IAI5C,cAAc,IAAI,IAAI;IAatB,wBAAwB,IAAI,IAAI;IAKhC,eAAe,IAAI,IAAI;CAGxB"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { getComposedPath, getCurrentTarget, getEventPhase, getInPassiveListenerFlag, getIsTrusted, getTarget, setStopImmediatePropagationFlag, setStopPropagationFlag, setIsTrusted, setEventPhase, } from './internals/EventInternals';
|
|
8
|
+
import { setPlatformObject } from '../webidl/PlatformObjects';
|
|
9
|
+
export default class Event {
|
|
10
|
+
static NONE;
|
|
11
|
+
static CAPTURING_PHASE;
|
|
12
|
+
static AT_TARGET;
|
|
13
|
+
static BUBBLING_PHASE;
|
|
14
|
+
NONE;
|
|
15
|
+
CAPTURING_PHASE;
|
|
16
|
+
AT_TARGET;
|
|
17
|
+
BUBBLING_PHASE;
|
|
18
|
+
_bubbles;
|
|
19
|
+
_cancelable;
|
|
20
|
+
_composed;
|
|
21
|
+
_type;
|
|
22
|
+
_defaultPrevented = false;
|
|
23
|
+
_timeStamp = performance.now();
|
|
24
|
+
// Symbol-keyed fields are internal and managed via helpers; not declared here.
|
|
25
|
+
constructor(type, options) {
|
|
26
|
+
if (arguments.length < 1) {
|
|
27
|
+
throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");
|
|
28
|
+
}
|
|
29
|
+
const typeOfOptions = typeof options;
|
|
30
|
+
if (options != null && typeOfOptions !== 'object' && typeOfOptions !== 'function') {
|
|
31
|
+
throw new TypeError("Failed to construct 'Event': The provided value is not of type 'EventInit'.");
|
|
32
|
+
}
|
|
33
|
+
this._type = String(type);
|
|
34
|
+
this._bubbles = Boolean(options?.bubbles);
|
|
35
|
+
this._cancelable = Boolean(options?.cancelable);
|
|
36
|
+
this._composed = Boolean(options?.composed);
|
|
37
|
+
// Initialize internal flags
|
|
38
|
+
setIsTrusted(this, false);
|
|
39
|
+
setEventPhase(this, 0);
|
|
40
|
+
}
|
|
41
|
+
get bubbles() {
|
|
42
|
+
return this._bubbles;
|
|
43
|
+
}
|
|
44
|
+
get cancelable() {
|
|
45
|
+
return this._cancelable;
|
|
46
|
+
}
|
|
47
|
+
get composed() {
|
|
48
|
+
return this._composed;
|
|
49
|
+
}
|
|
50
|
+
get currentTarget() {
|
|
51
|
+
return getCurrentTarget(this);
|
|
52
|
+
}
|
|
53
|
+
get defaultPrevented() {
|
|
54
|
+
return this._defaultPrevented;
|
|
55
|
+
}
|
|
56
|
+
get eventPhase() {
|
|
57
|
+
return getEventPhase(this);
|
|
58
|
+
}
|
|
59
|
+
get isTrusted() {
|
|
60
|
+
return getIsTrusted(this);
|
|
61
|
+
}
|
|
62
|
+
get target() {
|
|
63
|
+
return getTarget(this);
|
|
64
|
+
}
|
|
65
|
+
get timeStamp() {
|
|
66
|
+
return this._timeStamp;
|
|
67
|
+
}
|
|
68
|
+
get type() {
|
|
69
|
+
return this._type;
|
|
70
|
+
}
|
|
71
|
+
composedPath() {
|
|
72
|
+
return getComposedPath(this).slice();
|
|
73
|
+
}
|
|
74
|
+
preventDefault() {
|
|
75
|
+
if (!this._cancelable) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (getInPassiveListenerFlag(this)) {
|
|
79
|
+
console.error(new Error('Unable to preventDefault inside passive event listener invocation.'));
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
this._defaultPrevented = true;
|
|
83
|
+
}
|
|
84
|
+
stopImmediatePropagation() {
|
|
85
|
+
setStopPropagationFlag(this, true);
|
|
86
|
+
setStopImmediatePropagationFlag(this, true);
|
|
87
|
+
}
|
|
88
|
+
stopPropagation() {
|
|
89
|
+
setStopPropagationFlag(this, true);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
Object.defineProperty(Event, 'NONE', {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
value: 0,
|
|
95
|
+
});
|
|
96
|
+
Object.defineProperty(Event.prototype, 'NONE', {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
value: 0,
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(Event, 'CAPTURING_PHASE', {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
value: 1,
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(Event.prototype, 'CAPTURING_PHASE', {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
value: 1,
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(Event, 'AT_TARGET', {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
value: 2,
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(Event.prototype, 'AT_TARGET', {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
value: 2,
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(Event, 'BUBBLING_PHASE', {
|
|
117
|
+
enumerable: true,
|
|
118
|
+
value: 3,
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(Event.prototype, 'BUBBLING_PHASE', {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
value: 3,
|
|
123
|
+
});
|
|
124
|
+
setPlatformObject(Event);
|
|
125
|
+
//# sourceMappingURL=Event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Event.js","sourceRoot":"","sources":["../../../src/polyfills/events/Event.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,wBAAwB,EACxB,YAAY,EACZ,SAAS,EACT,+BAA+B,EAC/B,sBAAsB,EACtB,YAAY,EACZ,aAAa,GACd,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAU7D,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,MAAM,CAAC,IAAI,CAAG;IACd,MAAM,CAAC,eAAe,CAAG;IACzB,MAAM,CAAC,SAAS,CAAG;IACnB,MAAM,CAAC,cAAc,CAAG;IAEf,IAAI,CAAI;IACR,eAAe,CAAI;IACnB,SAAS,CAAI;IACb,cAAc,CAAI;IAEnB,QAAQ,CAAS;IACjB,WAAW,CAAS;IACpB,SAAS,CAAS;IAClB,KAAK,CAAQ;IAEb,iBAAiB,GAAY,KAAK,CAAA;IAClC,UAAU,GAAW,WAAW,CAAC,GAAG,EAAE,CAAA;IAE9C,+EAA+E;IAE/E,YAAY,IAAY,EAAE,OAA0B;QAClD,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,SAAS,CAAC,uEAAuE,CAAC,CAAA;QAC9F,CAAC;QAED,MAAM,aAAa,GAAG,OAAO,OAAO,CAAA;QACpC,IAAI,OAAO,IAAI,IAAI,IAAI,aAAa,KAAK,QAAQ,IAAI,aAAa,KAAK,UAAU,EAAE,CAAC;YACl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,CAAC,CAAA;AAEF,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,gBAAgB,EAAE;IAC7C,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,CAAC;CACT,CAAC,CAAA;AAEF,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,SAAS,EAAE,gBAAgB,EAAE;IACvD,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,CAAC;CACT,CAAC,CAAA;AAEF,iBAAiB,CAAC,KAAK,CAAC,CAAA","sourcesContent":["/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * This module implements the `Event` interface from the DOM.\n * See https://dom.spec.whatwg.org/#interface-event.\n */\n\nimport type RNEventTarget from './EventTarget'\nimport {\n getComposedPath,\n getCurrentTarget,\n getEventPhase,\n getInPassiveListenerFlag,\n getIsTrusted,\n getTarget,\n setStopImmediatePropagationFlag,\n setStopPropagationFlag,\n setIsTrusted,\n setEventPhase,\n} from './internals/EventInternals'\nimport { setPlatformObject } from '../webidl/PlatformObjects'\n\nexport interface EventInit {\n bubbles?: boolean\n cancelable?: boolean\n composed?: boolean\n}\n\nexport type EventPhase = 0 | 1 | 2 | 3\n\nexport default class Event {\n static NONE: 0\n static CAPTURING_PHASE: 1\n static AT_TARGET: 2\n static BUBBLING_PHASE: 3\n\n readonly NONE!: 0\n readonly CAPTURING_PHASE!: 1\n readonly AT_TARGET!: 2\n readonly BUBBLING_PHASE!: 3\n\n private _bubbles: boolean\n private _cancelable: boolean\n private _composed: boolean\n private _type: string\n\n private _defaultPrevented: boolean = false\n private _timeStamp: number = performance.now()\n\n // Symbol-keyed fields are internal and managed via helpers; not declared here.\n\n constructor(type: string, options?: EventInit | null) {\n if (arguments.length < 1) {\n throw new TypeError(\"Failed to construct 'Event': 1 argument required, but only 0 present.\")\n }\n\n const typeOfOptions = typeof options\n if (options != null && typeOfOptions !== 'object' && typeOfOptions !== 'function') {\n throw new TypeError(\n \"Failed to construct 'Event': The provided value is not of type 'EventInit'.\"\n )\n }\n\n this._type = String(type)\n this._bubbles = Boolean((options as EventInit | undefined)?.bubbles)\n this._cancelable = Boolean((options as EventInit | undefined)?.cancelable)\n this._composed = Boolean((options as EventInit | undefined)?.composed)\n\n // Initialize internal flags\n setIsTrusted(this, false)\n setEventPhase(this, 0 as 0)\n }\n\n get bubbles(): boolean {\n return this._bubbles\n }\n\n get cancelable(): boolean {\n return this._cancelable\n }\n\n get composed(): boolean {\n return this._composed\n }\n\n get currentTarget(): RNEventTarget | null {\n return getCurrentTarget(this)\n }\n\n get defaultPrevented(): boolean {\n return this._defaultPrevented\n }\n\n get eventPhase(): EventPhase {\n return getEventPhase(this)\n }\n\n get isTrusted(): boolean {\n return getIsTrusted(this)\n }\n\n get target(): RNEventTarget | null {\n return getTarget(this)\n }\n\n get timeStamp(): number {\n return this._timeStamp\n }\n\n get type(): string {\n return this._type\n }\n\n composedPath(): ReadonlyArray<RNEventTarget> {\n return getComposedPath(this).slice()\n }\n\n preventDefault(): void {\n if (!this._cancelable) {\n return\n }\n\n if (getInPassiveListenerFlag(this)) {\n console.error(new Error('Unable to preventDefault inside passive event listener invocation.'))\n return\n }\n\n this._defaultPrevented = true\n }\n\n stopImmediatePropagation(): void {\n setStopPropagationFlag(this, true)\n setStopImmediatePropagationFlag(this, true)\n }\n\n stopPropagation(): void {\n setStopPropagationFlag(this, true)\n }\n}\n\nObject.defineProperty(Event, 'NONE', {\n enumerable: true,\n value: 0,\n})\n\nObject.defineProperty(Event.prototype, 'NONE', {\n enumerable: true,\n value: 0,\n})\n\nObject.defineProperty(Event, 'CAPTURING_PHASE', {\n enumerable: true,\n value: 1,\n})\n\nObject.defineProperty(Event.prototype, 'CAPTURING_PHASE', {\n enumerable: true,\n value: 1,\n})\n\nObject.defineProperty(Event, 'AT_TARGET', {\n enumerable: true,\n value: 2,\n})\n\nObject.defineProperty(Event.prototype, 'AT_TARGET', {\n enumerable: true,\n value: 2,\n})\n\nObject.defineProperty(Event, 'BUBBLING_PHASE', {\n enumerable: true,\n value: 3,\n})\n\nObject.defineProperty(Event.prototype, 'BUBBLING_PHASE', {\n enumerable: true,\n value: 3,\n})\n\nsetPlatformObject(Event)\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers to implement event handler IDL attributes.
|
|
3
|
+
*/
|
|
4
|
+
import type EventTarget from './EventTarget';
|
|
5
|
+
import type { EventCallback } from './EventTarget';
|
|
6
|
+
export declare function getEventHandlerAttribute(target: EventTarget, type: string): EventCallback | null;
|
|
7
|
+
export declare function setEventHandlerAttribute(target: EventTarget, type: string, callback: EventCallback | null | undefined): void;
|
|
8
|
+
//# sourceMappingURL=EventHandlerAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventHandlerAttributes.d.ts","sourceRoot":"","sources":["../../../src/polyfills/events/EventHandlerAttributes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAmBlD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAGhG;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,GACzC,IAAI,CAiCN"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers to implement event handler IDL attributes.
|
|
3
|
+
*/
|
|
4
|
+
const EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY = Symbol('eventHandlerAttributeMap');
|
|
5
|
+
function getEventHandlerAttributeMap(target) {
|
|
6
|
+
return target[EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY];
|
|
7
|
+
}
|
|
8
|
+
function setEventHandlerAttributeMap(target, map) {
|
|
9
|
+
;
|
|
10
|
+
target[EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY] = map;
|
|
11
|
+
}
|
|
12
|
+
export function getEventHandlerAttribute(target, type) {
|
|
13
|
+
const listener = getEventHandlerAttributeMap(target)?.get(type);
|
|
14
|
+
return listener != null ? listener.handleEvent : null;
|
|
15
|
+
}
|
|
16
|
+
export function setEventHandlerAttribute(target, type, callback) {
|
|
17
|
+
let map = getEventHandlerAttributeMap(target);
|
|
18
|
+
if (map != null) {
|
|
19
|
+
const currentListener = map.get(type);
|
|
20
|
+
if (currentListener) {
|
|
21
|
+
target.removeEventListener(type, currentListener);
|
|
22
|
+
map.delete(type);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (callback != null &&
|
|
26
|
+
(typeof callback === 'function' || typeof callback === 'object')) {
|
|
27
|
+
const listener = {
|
|
28
|
+
handleEvent: callback,
|
|
29
|
+
};
|
|
30
|
+
try {
|
|
31
|
+
target.addEventListener(type, listener);
|
|
32
|
+
if (map == null) {
|
|
33
|
+
map = new Map();
|
|
34
|
+
setEventHandlerAttributeMap(target, map);
|
|
35
|
+
}
|
|
36
|
+
map.set(type, listener);
|
|
37
|
+
}
|
|
38
|
+
catch (_e) {
|
|
39
|
+
// Assigning incorrect listener does not throw in setters.
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if (map != null && map.size === 0) {
|
|
43
|
+
setEventHandlerAttributeMap(target, null);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=EventHandlerAttributes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventHandlerAttributes.js","sourceRoot":"","sources":["../../../src/polyfills/events/EventHandlerAttributes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAUH,MAAM,uCAAuC,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAA;A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AAE,GAAG,CAAC,CAAA;YAC1C,CAAC;YACD,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;QACzB,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC;YACZ,0DAA0D;QAC5D,CAAC;IACH,CAAC;IAED,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;QAClC,2BAA2B,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC3C,CAAC;AACH,CAAC","sourcesContent":["/**\n * Helpers to implement event handler IDL attributes.\n */\n\nimport type EventTarget from './EventTarget'\nimport type { EventCallback } from './EventTarget'\n\ntype EventHandler = Readonly<{\n handleEvent: EventCallback\n}>\ntype EventHandlerAttributeMap = Map<string, EventHandler | null>\n\nconst EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY = Symbol('eventHandlerAttributeMap')\n\nfunction getEventHandlerAttributeMap(\n target: EventTarget\n): EventHandlerAttributeMap | null | undefined {\n return (target as any)[EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY]\n}\n\nfunction setEventHandlerAttributeMap(target: EventTarget, map: EventHandlerAttributeMap | null) {\n ;(target as any)[EVENT_HANDLER_CONTENT_ATTRIBUTE_MAP_KEY] = map\n}\n\nexport function getEventHandlerAttribute(target: EventTarget, type: string): EventCallback | null {\n const listener = getEventHandlerAttributeMap(target)?.get(type)\n return listener != null ? listener.handleEvent : null\n}\n\nexport function setEventHandlerAttribute(\n target: EventTarget,\n type: string,\n callback: EventCallback | null | undefined\n): void {\n let map = getEventHandlerAttributeMap(target)\n if (map != null) {\n const currentListener = map.get(type)\n if (currentListener) {\n target.removeEventListener(type, currentListener)\n map.delete(type)\n }\n }\n\n if (\n callback != null &&\n (typeof callback === 'function' || typeof (callback as any) === 'object')\n ) {\n const listener: EventHandler = {\n handleEvent: callback as EventCallback,\n }\n\n try {\n target.addEventListener(type, listener)\n if (map == null) {\n map = new Map()\n setEventHandlerAttributeMap(target, map)\n }\n map.set(type, listener)\n } catch (_e) {\n // Assigning incorrect listener does not throw in setters.\n }\n }\n\n if (map != null && map.size === 0) {\n setEventHandlerAttributeMap(target, null)\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Implements the `EventTarget` interface from the DOM.
|
|
9
|
+
*/
|
|
10
|
+
import Event from './Event';
|
|
11
|
+
import { EVENT_TARGET_GET_THE_PARENT_KEY, INTERNAL_DISPATCH_METHOD_KEY } from './internals/EventTargetInternals';
|
|
12
|
+
export type EventCallback = (event: Event) => void;
|
|
13
|
+
export type EventHandler = {
|
|
14
|
+
handleEvent(event: Event): void;
|
|
15
|
+
};
|
|
16
|
+
export type EventListener = EventCallback | EventHandler;
|
|
17
|
+
export type EventListenerOptions = Readonly<{
|
|
18
|
+
capture?: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export type AddEventListenerOptions = Readonly<{
|
|
21
|
+
capture?: boolean;
|
|
22
|
+
passive?: boolean;
|
|
23
|
+
once?: boolean;
|
|
24
|
+
signal?: AbortSignal;
|
|
25
|
+
}>;
|
|
26
|
+
export default class EventTarget {
|
|
27
|
+
addEventListener(type: string, callback: EventListener | null, optionsOrUseCapture?: AddEventListenerOptions | boolean): void;
|
|
28
|
+
removeEventListener(type: string, callback: EventListener, optionsOrUseCapture?: EventListenerOptions | boolean): void;
|
|
29
|
+
dispatchEvent(event: Event): boolean;
|
|
30
|
+
[EVENT_TARGET_GET_THE_PARENT_KEY](): EventTarget | null;
|
|
31
|
+
[INTERNAL_DISPATCH_METHOD_KEY](event: Event): void;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=EventTarget.d.ts.map
|
|
@@ -0,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