@applicaster/zapp-react-native-ui-components 13.0.0-alpha.3322585145 → 13.0.0-alpha.3332871333

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.
@@ -11,7 +11,6 @@ import { allSettled } from "promise";
11
11
  import { createLogger } from "@applicaster/zapp-react-native-utils/logger";
12
12
  import { isNilOrEmpty } from "@applicaster/zapp-react-native-utils/reactUtils/helpers";
13
13
  import { ScreenTrackedViewPositionsContext } from "@applicaster/zapp-react-native-ui-components/Contexts/ScreenTrackedViewPositionsContext";
14
- import { useEventAlerts } from "./utils/useEventAlerts";
15
14
 
16
15
  const { log_info } = createLogger({
17
16
  category: "ScreenContainer",
@@ -104,8 +103,6 @@ export const GeneralContentScreen = ({
104
103
  [typeof cellTapAction === "function" ? cellTapAction : onCellTapAction]
105
104
  );
106
105
 
107
- useEventAlerts(screenData);
108
-
109
106
  if (!isReady || isNilOrEmpty(components || uiComponents)) return null;
110
107
 
111
108
  return (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "13.0.0-alpha.3322585145",
3
+ "version": "13.0.0-alpha.3332871333",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -31,10 +31,10 @@
31
31
  "redux-mock-store": "^1.5.3"
32
32
  },
33
33
  "dependencies": {
34
- "@applicaster/applicaster-types": "13.0.0-alpha.3322585145",
35
- "@applicaster/zapp-react-native-bridge": "13.0.0-alpha.3322585145",
36
- "@applicaster/zapp-react-native-redux": "13.0.0-alpha.3322585145",
37
- "@applicaster/zapp-react-native-utils": "13.0.0-alpha.3322585145",
34
+ "@applicaster/applicaster-types": "13.0.0-alpha.3332871333",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.0-alpha.3332871333",
36
+ "@applicaster/zapp-react-native-redux": "13.0.0-alpha.3332871333",
37
+ "@applicaster/zapp-react-native-utils": "13.0.0-alpha.3332871333",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",
@@ -1,30 +0,0 @@
1
- import React from "react";
2
- import { showAlertDialog } from "@applicaster/zapp-react-native-utils/alertUtils";
3
- import { TOGGLE_FLAG_MAX_ITEMS_REACHED_EVENT } from "@applicaster/zapp-react-native-utils/actionsExecutor/consts";
4
- import { useLocalizedStrings } from "@applicaster/zapp-react-native-utils/localizationUtils";
5
- import { useIsScreenActive } from "@applicaster/zapp-react-native-utils/reactHooks";
6
- import { useSubscriberFor } from "@applicaster/zapp-react-native-utils/reactHooks/useSubscriberFor";
7
-
8
- export const useEventAlerts = (screenData: ZappRiver) => {
9
- const localizations = useLocalizedStrings({
10
- localizations: screenData?.localizations || {},
11
- });
12
-
13
- const isActive = useIsScreenActive();
14
-
15
- const onMaxTagsReached = React.useCallback(() => {
16
- // We can't skip subscribe hook call, so we have to check.
17
- if (!isActive || !localizations?.msg_maximum_selection_reached_message) {
18
- return;
19
- }
20
-
21
- showAlertDialog({
22
- title: "",
23
- message: localizations.msg_maximum_selection_reached_message,
24
- okButtonText:
25
- localizations.msg_maximum_selection_reached_message_ok_button || "OK",
26
- });
27
- }, [localizations, isActive]);
28
-
29
- useSubscriberFor(TOGGLE_FLAG_MAX_ITEMS_REACHED_EVENT, onMaxTagsReached);
30
- };