@bigbinary/neeto-rules-frontend 2.5.53 → 2.5.54

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.
@@ -5153,7 +5153,16 @@ var getActionsSchema = function getActionsSchema(element, customData) {
5153
5153
  entity: i18next.t("neetoRules.common.phoneNumber")
5154
5154
  })).of(yup__namespace.string().test("testPhoneNumber", i18next.t("neetoRules.validations.invalidPhoneNumber"), function (value) {
5155
5155
  return PhoneNumber.isPhoneNumberValid(value);
5156
- })) : schema,
5156
+ })).when("test", {
5157
+ is: function is() {
5158
+ return selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.maxLimit;
5159
+ },
5160
+ then: function then(schema) {
5161
+ return schema.max(selectedAction.maxLimit, i18next.t("neetoRules.validations.maximumPhoneNumbers", {
5162
+ max: selectedAction.maxLimit
5163
+ }));
5164
+ }
5165
+ }) : schema,
5157
5166
  body: yup__namespace.string().test("body", i18next.t("neetoRules.validations.required.body"), function (value) {
5158
5167
  return !utils$2.isEditorEmpty(value);
5159
5168
  }),