@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.
Files changed (46) hide show
  1. package/analyticsUtils/__tests__/__snapshots__/analyticsManagerNoModule.test.js.snap +9 -9
  2. package/analyticsUtils/helpers/hooks.ts +1 -1
  3. package/appUtils/HooksManager/__tests__/__snapshots__/hook.test.js.snap +7 -7
  4. package/appUtils/HooksManager/__tests__/__snapshots__/hooksManager.test.js.snap +186 -186
  5. package/appUtils/focusManager/__tests__/__snapshots__/focusManager.test.js.snap +6 -6
  6. package/appUtils/keyCodes/__tests__/__snapshots__/keyCodes.test.js.snap +2 -2
  7. package/appUtils/keyCodes/__tests__/keyCodes.test.js +1 -1
  8. package/appUtils/orientationHelper.ts +1 -1
  9. package/appUtils/playerManager/playerNative.ts +1 -1
  10. package/arrayUtils/__tests__/__snapshots__/arrayUtils.test.ts.snap +4 -4
  11. package/functionUtils/__tests__/__snapshots__/functionUtils.test.js.snap +4 -4
  12. package/manifestUtils/__tests__/createConfig.test.js +18 -16
  13. package/navigationUtils/__tests__/__snapshots__/navigationUtils.test.js.snap +6 -6
  14. package/navigationUtils/__tests__/itemTypes.test.js +2 -2
  15. package/navigationUtils/__tests__/navigationUtils.test.js +2 -2
  16. package/package.json +2 -2
  17. package/reactHooks/autoscrolling/__tests__/useTrackCurrentAutoScrollingElement.test.ts +1 -1
  18. package/reactHooks/autoscrolling/__tests__/useTrackedView.test.tsx +1 -1
  19. package/reactHooks/cell-click/__tests__/index.test.js +5 -2
  20. package/reactHooks/feed/__tests__/useBuildPipesUrl.test.tsx +4 -4
  21. package/reactHooks/feed/__tests__/useFeedLoader.test.tsx +10 -11
  22. package/reactHooks/feed/usePipesCacheReset.ts +5 -5
  23. package/reactHooks/flatList/__tests__/index.test.tsx +30 -21
  24. package/reactHooks/layout/__tests__/index.test.tsx +10 -10
  25. package/reactHooks/layout/useDimensions/helpers/__tests__/getInitialDimensions.native.test.js +14 -28
  26. package/reactHooks/navigation/__tests__/index.test.tsx +0 -4
  27. package/reactHooks/navigation/index.ts +22 -214
  28. package/reactHooks/navigation/useGetBottomTabBarHeight.ts +12 -0
  29. package/reactHooks/navigation/useGetNavBarTopBorderWidth.ts +14 -0
  30. package/reactHooks/navigation/useGetTabBarHeight.ts +12 -0
  31. package/reactHooks/navigation/useIsScreenActive.ts +17 -0
  32. package/reactHooks/navigation/useNavigationPluginData.ts +15 -0
  33. package/reactHooks/navigation/useNavigationType.ts +15 -0
  34. package/reactHooks/navigation/usePathname.ts +4 -0
  35. package/reactHooks/navigation/useRoute.ts +100 -0
  36. package/reactHooks/navigation/useUniqueRouteSuffix.ts +41 -0
  37. package/reactHooks/player/__tests__/useAutoSeek.test.tsx +2 -3
  38. package/reactUtils/__tests__/reactUtils.test.js +10 -28
  39. package/reactUtils/createContext/__tests__/__snapshots__/helpers.test.js.snap +19 -19
  40. package/reactUtils/createContext/__tests__/__snapshots__/index.test.js.snap +2 -2
  41. package/reactUtils/createContext/__tests__/__snapshots__/provider.test.js.snap +3 -3
  42. package/reactUtils/createContext/__tests__/helpers.test.js +8 -8
  43. package/theme/__mocks__/index.ts +4 -0
  44. package/manifestUtils/sharedConfiguration/screenPicker/__tests__/utils.test.js +0 -304
  45. package/manifestUtils/sharedConfiguration/screenPicker/stylesFields.js +0 -875
  46. 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
- Array [
5
- Array [
6
- Object {
4
+ [
5
+ [
6
+ {
7
7
  "message": "Analytics Bridge is missing - no event will be sent",
8
8
  },
9
9
  ],
10
- Array [
11
- Object {
10
+ [
11
+ {
12
12
  "message": "Analytics Bridge is missing - no event will be sent",
13
13
  },
14
14
  ],
15
- Array [
16
- Object {
15
+ [
16
+ {
17
17
  "message": "Analytics Bridge is missing - no event will be sent",
18
18
  },
19
19
  ],
20
- Array [
21
- Object {
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": Object {},
6
- "general": Object {
5
+ "advertising": {},
6
+ "general": {
7
7
  "allow_screen_plugin_presentation": true,
8
8
  "is_flow_blocker": true,
9
9
  },
10
- "hooks": Array [],
10
+ "hooks": [],
11
11
  "id": "A1234",
12
12
  "identifier": "hook_screen",
13
13
  "lastHook": true,
14
- "manager": Object {
14
+ "manager": {
15
15
  "executeHook": [MockFunction],
16
16
  "presentScreenHook": [MockFunction],
17
- "subscriber": Object {
17
+ "subscriber": {
18
18
  "invokeHandler": [MockFunction],
19
19
  },
20
20
  },
21
21
  "name": "Hook Screen",
22
- "navigations": Array [],
22
+ "navigations": [],
23
23
  "screen_id": "A1234",
24
24
  "state": 0,
25
- "styles": Object {},
25
+ "styles": {},
26
26
  "type": "hook_screen",
27
27
  "weight": 1,
28
28
  }