@monei-js/components 1.7.2 → 1.7.3

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.
@@ -15232,6 +15232,15 @@ var onLoadPaypal = /*#__PURE__*/function () {
15232
15232
  props.onError == null ? void 0 : props.onError(data);
15233
15233
  }
15234
15234
  },
15235
+ onClick: function onClick(_data, actions) {
15236
+ var shouldOpen = true;
15237
+
15238
+ if (props.onBeforeOpen) {
15239
+ shouldOpen = props.onBeforeOpen();
15240
+ }
15241
+
15242
+ if (!shouldOpen) return actions.reject();
15243
+ },
15235
15244
  style: _extends({}, defaultStyle, props.style)
15236
15245
  }).render(state.__container);
15237
15246
 
@@ -15312,6 +15321,10 @@ var options$2 = {
15312
15321
  type: zoid.PROP_TYPE.FUNCTION,
15313
15322
  required: false
15314
15323
  },
15324
+ onBeforeOpen: {
15325
+ type: zoid.PROP_TYPE.FUNCTION,
15326
+ required: false
15327
+ },
15315
15328
  onSubmit: {
15316
15329
  type: zoid.PROP_TYPE.FUNCTION,
15317
15330
  required: false