@applicaster/zapp-react-native-utils 15.0.0-rc.137 → 15.0.0-rc.139

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.
@@ -1,3 +1,5 @@
1
+ import { last } from "@applicaster/zapp-react-native-utils/utils";
2
+
1
3
  const GROUP = "group-qb";
2
4
  const GROUP_INFO = "group-info-qb";
3
5
  const GROUP_INFO_OLD = "group-info";
@@ -29,6 +31,12 @@ export const isFirstComponentGallery = (
29
31
  return isGallery(components?.[0]);
30
32
  };
31
33
 
34
+ export const isLastComponentGallery = (
35
+ components: ZappUIComponent[]
36
+ ): boolean => {
37
+ return isGallery(last(components));
38
+ };
39
+
32
40
  export const isGroup = (item): boolean => item?.component_type === GROUP;
33
41
 
34
42
  export const isEmptyGroup = (item): boolean =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "15.0.0-rc.137",
3
+ "version": "15.0.0-rc.139",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "15.0.0-rc.137",
30
+ "@applicaster/applicaster-types": "15.0.0-rc.139",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",