@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.
- package/dist/components.cjs.development.js +13 -0
- package/dist/components.cjs.development.js.map +1 -1
- package/dist/components.cjs.production.min.js +1 -1
- package/dist/components.cjs.production.min.js.map +1 -1
- package/dist/components.esm.js +13 -0
- package/dist/components.esm.js.map +1 -1
- package/dist/paypal/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/components.esm.js
CHANGED
|
@@ -15228,6 +15228,15 @@ var onLoadPaypal = /*#__PURE__*/function () {
|
|
|
15228
15228
|
props.onError == null ? void 0 : props.onError(data);
|
|
15229
15229
|
}
|
|
15230
15230
|
},
|
|
15231
|
+
onClick: function onClick(_data, actions) {
|
|
15232
|
+
var shouldOpen = true;
|
|
15233
|
+
|
|
15234
|
+
if (props.onBeforeOpen) {
|
|
15235
|
+
shouldOpen = props.onBeforeOpen();
|
|
15236
|
+
}
|
|
15237
|
+
|
|
15238
|
+
if (!shouldOpen) return actions.reject();
|
|
15239
|
+
},
|
|
15231
15240
|
style: _extends({}, defaultStyle, props.style)
|
|
15232
15241
|
}).render(state.__container);
|
|
15233
15242
|
|
|
@@ -15308,6 +15317,10 @@ var options$2 = {
|
|
|
15308
15317
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15309
15318
|
required: false
|
|
15310
15319
|
},
|
|
15320
|
+
onBeforeOpen: {
|
|
15321
|
+
type: zoid.PROP_TYPE.FUNCTION,
|
|
15322
|
+
required: false
|
|
15323
|
+
},
|
|
15311
15324
|
onSubmit: {
|
|
15312
15325
|
type: zoid.PROP_TYPE.FUNCTION,
|
|
15313
15326
|
required: false
|