@applicaster/zapp-react-native-utils 13.0.0-alpha.6714678893 → 13.0.0-alpha.7120331332
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/analyticsUtils/__tests__/__snapshots__/analyticsManagerNoModule.test.js.snap +9 -9
- package/analyticsUtils/helpers/hooks.ts +1 -1
- package/appUtils/HooksManager/__tests__/__snapshots__/hook.test.js.snap +7 -7
- package/appUtils/HooksManager/__tests__/__snapshots__/hooksManager.test.js.snap +186 -186
- package/appUtils/focusManager/__tests__/__snapshots__/focusManager.test.js.snap +6 -6
- package/appUtils/keyCodes/__tests__/__snapshots__/keyCodes.test.js.snap +2 -2
- package/appUtils/keyCodes/__tests__/keyCodes.test.js +1 -1
- package/appUtils/orientationHelper.ts +1 -1
- package/appUtils/playerManager/playerNative.ts +1 -1
- package/arrayUtils/__tests__/__snapshots__/arrayUtils.test.ts.snap +4 -4
- package/functionUtils/__tests__/__snapshots__/functionUtils.test.js.snap +4 -4
- package/manifestUtils/__tests__/createConfig.test.js +18 -16
- package/navigationUtils/__tests__/__snapshots__/navigationUtils.test.js.snap +6 -6
- package/navigationUtils/__tests__/itemTypes.test.js +2 -2
- package/navigationUtils/__tests__/navigationUtils.test.js +2 -2
- package/package.json +2 -2
- package/reactHooks/autoscrolling/__tests__/useTrackCurrentAutoScrollingElement.test.ts +1 -1
- package/reactHooks/autoscrolling/__tests__/useTrackedView.test.tsx +1 -1
- package/reactHooks/cell-click/__tests__/index.test.js +5 -2
- package/reactHooks/feed/__tests__/useBuildPipesUrl.test.tsx +4 -4
- package/reactHooks/feed/__tests__/useFeedLoader.test.tsx +10 -11
- package/reactHooks/feed/usePipesCacheReset.ts +5 -5
- package/reactHooks/flatList/__tests__/index.test.tsx +30 -21
- package/reactHooks/layout/__tests__/index.test.tsx +10 -10
- package/reactHooks/layout/useDimensions/helpers/__tests__/getInitialDimensions.native.test.js +14 -28
- package/reactHooks/navigation/__tests__/index.test.tsx +0 -4
- package/reactHooks/navigation/index.ts +22 -214
- package/reactHooks/navigation/useGetBottomTabBarHeight.ts +12 -0
- package/reactHooks/navigation/useGetNavBarTopBorderWidth.ts +14 -0
- package/reactHooks/navigation/useGetTabBarHeight.ts +12 -0
- package/reactHooks/navigation/useIsScreenActive.ts +17 -0
- package/reactHooks/navigation/useNavigationPluginData.ts +15 -0
- package/reactHooks/navigation/useNavigationType.ts +15 -0
- package/reactHooks/navigation/usePathname.ts +4 -0
- package/reactHooks/navigation/useRoute.ts +100 -0
- package/reactHooks/navigation/useUniqueRouteSuffix.ts +41 -0
- package/reactHooks/player/__tests__/useAutoSeek.test.tsx +2 -3
- package/reactUtils/__tests__/reactUtils.test.js +10 -28
- package/reactUtils/createContext/__tests__/__snapshots__/helpers.test.js.snap +19 -19
- package/reactUtils/createContext/__tests__/__snapshots__/index.test.js.snap +2 -2
- package/reactUtils/createContext/__tests__/__snapshots__/provider.test.js.snap +3 -3
- package/reactUtils/createContext/__tests__/helpers.test.js +8 -8
- package/theme/__mocks__/index.ts +4 -0
- package/manifestUtils/sharedConfiguration/screenPicker/__tests__/utils.test.js +0 -304
- package/manifestUtils/sharedConfiguration/screenPicker/stylesFields.js +0 -875
- package/manifestUtils/sharedConfiguration/screenPicker/utils.js +0 -130
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`AnalyticsManager - with undefined Native Module doesn't crash when calling the methods 1`] = `
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
[
|
|
5
|
+
[
|
|
6
|
+
{
|
|
7
7
|
"message": "Analytics Bridge is missing - no event will be sent",
|
|
8
8
|
},
|
|
9
9
|
],
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
[
|
|
11
|
+
{
|
|
12
12
|
"message": "Analytics Bridge is missing - no event will be sent",
|
|
13
13
|
},
|
|
14
14
|
],
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
[
|
|
16
|
+
{
|
|
17
17
|
"message": "Analytics Bridge is missing - no event will be sent",
|
|
18
18
|
},
|
|
19
19
|
],
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
[
|
|
21
|
+
{
|
|
22
22
|
"message": "Analytics Bridge is missing - no event will be sent",
|
|
23
23
|
},
|
|
24
24
|
],
|
|
@@ -2,7 +2,7 @@ import * as R from "ramda";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
|
|
4
4
|
import { isTV } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
5
|
-
import { useScreenContext } from "@applicaster/zapp-react-native-utils/reactHooks/screen";
|
|
5
|
+
import { useScreenContext } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useScreenContext";
|
|
6
6
|
|
|
7
7
|
import { getAnalyticsScreenPropertiesFromScreenData } from "@applicaster/zapp-react-native-utils/analyticsUtils/currentScreenProperities";
|
|
8
8
|
import { useAnalytics } from "@applicaster/zapp-react-native-utils/analyticsUtils";
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Hook Hook Properties has all the hook properties 1`] = `
|
|
4
4
|
Hook {
|
|
5
|
-
"advertising":
|
|
6
|
-
"general":
|
|
5
|
+
"advertising": {},
|
|
6
|
+
"general": {
|
|
7
7
|
"allow_screen_plugin_presentation": true,
|
|
8
8
|
"is_flow_blocker": true,
|
|
9
9
|
},
|
|
10
|
-
"hooks":
|
|
10
|
+
"hooks": [],
|
|
11
11
|
"id": "A1234",
|
|
12
12
|
"identifier": "hook_screen",
|
|
13
13
|
"lastHook": true,
|
|
14
|
-
"manager":
|
|
14
|
+
"manager": {
|
|
15
15
|
"executeHook": [MockFunction],
|
|
16
16
|
"presentScreenHook": [MockFunction],
|
|
17
|
-
"subscriber":
|
|
17
|
+
"subscriber": {
|
|
18
18
|
"invokeHandler": [MockFunction],
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
"name": "Hook Screen",
|
|
22
|
-
"navigations":
|
|
22
|
+
"navigations": [],
|
|
23
23
|
"screen_id": "A1234",
|
|
24
24
|
"state": 0,
|
|
25
|
-
"styles":
|
|
25
|
+
"styles": {},
|
|
26
26
|
"type": "hook_screen",
|
|
27
27
|
"weight": 1,
|
|
28
28
|
}
|