@applicaster/zapp-react-native-utils 14.0.0-alpha.2332850672 → 14.0.0-alpha.2385258459

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 (77) hide show
  1. package/actionsExecutor/ActionExecutorContext.tsx +1 -1
  2. package/analyticsUtils/AnalyticsEvents/helper.ts +81 -0
  3. package/analyticsUtils/AnalyticsEvents/sendHeaderClickEvent.ts +1 -1
  4. package/analyticsUtils/AnalyticsEvents/sendMenuClickEvent.ts +2 -1
  5. package/analyticsUtils/AnalyticsEvents/sendOnClickEvent.ts +14 -4
  6. package/analyticsUtils/__tests__/analyticsUtils.test.js +14 -0
  7. package/analyticsUtils/events.ts +8 -0
  8. package/analyticsUtils/index.tsx +3 -4
  9. package/analyticsUtils/manager.ts +1 -1
  10. package/appUtils/HooksManager/Hook.ts +4 -4
  11. package/appUtils/HooksManager/index.ts +11 -1
  12. package/appUtils/accessibilityManager/index.ts +7 -4
  13. package/appUtils/focusManager/treeDataStructure/Tree/index.js +1 -1
  14. package/appUtils/playerManager/OverlayObserver/OverlaysObserver.ts +0 -15
  15. package/appUtils/playerManager/useChapterMarker.tsx +0 -1
  16. package/appUtils/playerManager/usePlayerControllerSetup.tsx +16 -0
  17. package/arrayUtils/__tests__/isEmptyArray.test.ts +63 -0
  18. package/arrayUtils/__tests__/isFilledArray.test.ts +1 -1
  19. package/arrayUtils/index.ts +8 -3
  20. package/audioPlayerUtils/__tests__/getArtworkImage.test.ts +144 -0
  21. package/audioPlayerUtils/__tests__/getImageFromEntry.test.ts +54 -0
  22. package/audioPlayerUtils/index.ts +168 -29
  23. package/componentsUtils/__tests__/isTabsScreen.test.ts +38 -0
  24. package/componentsUtils/index.ts +4 -1
  25. package/conf/player/__tests__/selectors.test.ts +34 -0
  26. package/conf/player/selectors.ts +10 -0
  27. package/configurationUtils/__tests__/configurationUtils.test.js +0 -31
  28. package/configurationUtils/__tests__/getMediaItems.test.ts +65 -0
  29. package/configurationUtils/__tests__/imageSrcFromMediaItem.test.ts +34 -0
  30. package/configurationUtils/__tests__/manifestKeyParser.test.ts +547 -0
  31. package/configurationUtils/index.ts +63 -34
  32. package/configurationUtils/manifestKeyParser.ts +57 -32
  33. package/focusManager/FocusManager.ts +26 -16
  34. package/focusManager/Tree.ts +25 -21
  35. package/focusManager/__tests__/FocusManager.test.ts +50 -8
  36. package/index.d.ts +0 -9
  37. package/manifestUtils/_internals/getDefaultConfiguration.js +28 -0
  38. package/manifestUtils/{_internals.js → _internals/index.js} +2 -25
  39. package/manifestUtils/createConfig.js +4 -1
  40. package/manifestUtils/defaultManifestConfigurations/player.js +1239 -200
  41. package/manifestUtils/progressBar/__tests__/mobileProgressBar.test.js +0 -30
  42. package/navigationUtils/__tests__/mapContentTypesToRivers.test.ts +130 -0
  43. package/navigationUtils/index.ts +6 -4
  44. package/package.json +2 -3
  45. package/playerUtils/__tests__/configurationUtils.test.ts +1 -65
  46. package/playerUtils/__tests__/getPlayerActionButtons.test.ts +54 -0
  47. package/playerUtils/_internals/__tests__/utils.test.ts +71 -0
  48. package/playerUtils/_internals/index.ts +1 -0
  49. package/playerUtils/_internals/utils.ts +31 -0
  50. package/playerUtils/configurationUtils.ts +0 -44
  51. package/playerUtils/getPlayerActionButtons.ts +17 -0
  52. package/playerUtils/index.ts +53 -0
  53. package/playerUtils/useValidatePlayerConfig.tsx +22 -19
  54. package/reactHooks/autoscrolling/__tests__/useTrackedView.test.tsx +15 -14
  55. package/reactHooks/feed/__tests__/useBatchLoading.test.tsx +39 -88
  56. package/reactHooks/feed/useBatchLoading.ts +11 -9
  57. package/reactHooks/feed/useFeedLoader.tsx +12 -8
  58. package/reactHooks/feed/usePipesCacheReset.ts +3 -3
  59. package/reactHooks/flatList/useSequentialRenderItem.tsx +3 -3
  60. package/reactHooks/layout/__tests__/index.test.tsx +3 -1
  61. package/reactHooks/layout/isTablet/index.ts +12 -5
  62. package/reactHooks/layout/useDimensions/__tests__/useDimensions.test.ts +34 -36
  63. package/reactHooks/layout/useDimensions/useDimensions.ts +2 -3
  64. package/reactHooks/layout/useLayoutVersion.ts +5 -5
  65. package/reactHooks/navigation/index.ts +7 -5
  66. package/reactHooks/navigation/useIsScreenActive.ts +9 -5
  67. package/reactHooks/resolvers/__tests__/useCellResolver.test.tsx +4 -0
  68. package/reactHooks/screen/useScreenContext.ts +1 -1
  69. package/reactHooks/state/__tests__/ZStoreProvider.test.tsx +2 -1
  70. package/reactHooks/state/useRivers.ts +7 -8
  71. package/riverComponetsMeasurementProvider/index.tsx +1 -1
  72. package/services/js2native.ts +1 -0
  73. package/testUtils/index.tsx +7 -8
  74. package/time/BackgroundTimer.ts +6 -4
  75. package/utils/index.ts +9 -2
  76. package/playerUtils/configurationGenerator.ts +0 -2572
  77. package/utils/isPresent.ts +0 -4
@@ -1,4 +0,0 @@
1
- import { isNil, isEmpty } from "lodash";
2
-
3
- export const isPresent = (value: unknown): boolean =>
4
- !isNil(value) && !isEmpty(value);