@applicaster/zapp-react-native-utils 12.0.19-rc.1 → 12.0.19
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.
|
@@ -233,6 +233,16 @@ const prepareDefaultActions = (actionExecutor) => {
|
|
|
233
233
|
if (selectedItems.includes(tag)) {
|
|
234
234
|
await multiSelectProvider.removeItem(tag);
|
|
235
235
|
} else {
|
|
236
|
+
const maxItems = action.options?.max_items;
|
|
237
|
+
|
|
238
|
+
if (maxItems && selectedItems.length >= maxItems) {
|
|
239
|
+
log_info(
|
|
240
|
+
`handleAction: localStorageToggleFlag event reached max items limit: ${maxItems}, cannot add tag: ${tag}`
|
|
241
|
+
);
|
|
242
|
+
|
|
243
|
+
return ActionResult.Cancel;
|
|
244
|
+
}
|
|
245
|
+
|
|
236
246
|
await multiSelectProvider.addItem(tag);
|
|
237
247
|
}
|
|
238
248
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-utils",
|
|
3
|
-
"version": "12.0.19
|
|
3
|
+
"version": "12.0.19",
|
|
4
4
|
"description": "Applicaster Zapp React Native utilities package",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "12.0.19
|
|
31
|
+
"@applicaster/applicaster-types": "12.0.19",
|
|
32
32
|
"buffer": "^5.2.1",
|
|
33
33
|
"camelize": "^1.0.0",
|
|
34
34
|
"create-react-context": "^0.2.3",
|