@blerp/design 1.2.51 → 1.2.53
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/index.cjs.js +14 -2
- package/dist/index.esm.js +14 -2
- package/dist/index.umd.js +14 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -89209,7 +89209,9 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89209
89209
|
postalCode = _ref.postalCode,
|
|
89210
89210
|
setPostalCode = _ref.setPostalCode;
|
|
89211
89211
|
React.useEffect(function () {
|
|
89212
|
-
|
|
89212
|
+
var _window, _window$Quaderno;
|
|
89213
|
+
|
|
89214
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
|
|
89213
89215
|
console.log("Quaderno.js successfully initialized");
|
|
89214
89216
|
}).catch(function (error) {
|
|
89215
89217
|
console.log(error.description, error.messages);
|
|
@@ -89218,6 +89220,8 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89218
89220
|
|
|
89219
89221
|
var reloadTaxes = /*#__PURE__*/function () {
|
|
89220
89222
|
var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
|
|
89223
|
+
var _window2, _window2$Quaderno;
|
|
89224
|
+
|
|
89221
89225
|
var taxObject, taxAmount, totalAmount;
|
|
89222
89226
|
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
|
|
89223
89227
|
while (1) {
|
|
@@ -89227,7 +89231,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89227
89231
|
options.taxType = "included"; // console.log("Calling calculateTaxes with params", options);
|
|
89228
89232
|
|
|
89229
89233
|
_context.next = 4;
|
|
89230
|
-
return window.Quaderno.calculateTaxes(options);
|
|
89234
|
+
return (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Quaderno = _window2.Quaderno) === null || _window2$Quaderno === void 0 ? void 0 : _window2$Quaderno.calculateTaxes(options);
|
|
89231
89235
|
|
|
89232
89236
|
case 4:
|
|
89233
89237
|
taxObject = _context.sent;
|
|
@@ -90377,6 +90381,14 @@ var CheckoutModal = function CheckoutModal(_ref) {
|
|
|
90377
90381
|
}();
|
|
90378
90382
|
|
|
90379
90383
|
if (show) {
|
|
90384
|
+
var scriptUrl = "https://js.quaderno.io/v4/";
|
|
90385
|
+
|
|
90386
|
+
if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
|
|
90387
|
+
var script = document.createElement("script");
|
|
90388
|
+
script.src = scriptUrl;
|
|
90389
|
+
document.head.appendChild(script);
|
|
90390
|
+
}
|
|
90391
|
+
|
|
90380
90392
|
createBraintreeDropIn();
|
|
90381
90393
|
}
|
|
90382
90394
|
}, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
|
package/dist/index.esm.js
CHANGED
|
@@ -89133,7 +89133,9 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89133
89133
|
postalCode = _ref.postalCode,
|
|
89134
89134
|
setPostalCode = _ref.setPostalCode;
|
|
89135
89135
|
useEffect(function () {
|
|
89136
|
-
|
|
89136
|
+
var _window, _window$Quaderno;
|
|
89137
|
+
|
|
89138
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
|
|
89137
89139
|
console.log("Quaderno.js successfully initialized");
|
|
89138
89140
|
}).catch(function (error) {
|
|
89139
89141
|
console.log(error.description, error.messages);
|
|
@@ -89142,6 +89144,8 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89142
89144
|
|
|
89143
89145
|
var reloadTaxes = /*#__PURE__*/function () {
|
|
89144
89146
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(options) {
|
|
89147
|
+
var _window2, _window2$Quaderno;
|
|
89148
|
+
|
|
89145
89149
|
var taxObject, taxAmount, totalAmount;
|
|
89146
89150
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
89147
89151
|
while (1) {
|
|
@@ -89151,7 +89155,7 @@ var QuadernoTaxCalc = function QuadernoTaxCalc(_ref) {
|
|
|
89151
89155
|
options.taxType = "included"; // console.log("Calling calculateTaxes with params", options);
|
|
89152
89156
|
|
|
89153
89157
|
_context.next = 4;
|
|
89154
|
-
return window.Quaderno.calculateTaxes(options);
|
|
89158
|
+
return (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Quaderno = _window2.Quaderno) === null || _window2$Quaderno === void 0 ? void 0 : _window2$Quaderno.calculateTaxes(options);
|
|
89155
89159
|
|
|
89156
89160
|
case 4:
|
|
89157
89161
|
taxObject = _context.sent;
|
|
@@ -90301,6 +90305,14 @@ var CheckoutModal = function CheckoutModal(_ref) {
|
|
|
90301
90305
|
}();
|
|
90302
90306
|
|
|
90303
90307
|
if (show) {
|
|
90308
|
+
var scriptUrl = "https://js.quaderno.io/v4/";
|
|
90309
|
+
|
|
90310
|
+
if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
|
|
90311
|
+
var script = document.createElement("script");
|
|
90312
|
+
script.src = scriptUrl;
|
|
90313
|
+
document.head.appendChild(script);
|
|
90314
|
+
}
|
|
90315
|
+
|
|
90304
90316
|
createBraintreeDropIn();
|
|
90305
90317
|
}
|
|
90306
90318
|
}, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
|
package/dist/index.umd.js
CHANGED
|
@@ -89154,7 +89154,9 @@
|
|
|
89154
89154
|
postalCode = _ref.postalCode,
|
|
89155
89155
|
setPostalCode = _ref.setPostalCode;
|
|
89156
89156
|
React.useEffect(function () {
|
|
89157
|
-
|
|
89157
|
+
var _window, _window$Quaderno;
|
|
89158
|
+
|
|
89159
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$Quaderno = _window.Quaderno) === null || _window$Quaderno === void 0 ? void 0 : _window$Quaderno.init("pk_live_JLZ6dgFdcXEVZySpVxb7").then(function () {
|
|
89158
89160
|
console.log("Quaderno.js successfully initialized");
|
|
89159
89161
|
}).catch(function (error) {
|
|
89160
89162
|
console.log(error.description, error.messages);
|
|
@@ -89163,6 +89165,8 @@
|
|
|
89163
89165
|
|
|
89164
89166
|
var reloadTaxes = /*#__PURE__*/function () {
|
|
89165
89167
|
var _ref2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee(options) {
|
|
89168
|
+
var _window2, _window2$Quaderno;
|
|
89169
|
+
|
|
89166
89170
|
var taxObject, taxAmount, totalAmount;
|
|
89167
89171
|
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
|
|
89168
89172
|
while (1) {
|
|
@@ -89172,7 +89176,7 @@
|
|
|
89172
89176
|
options.taxType = "included"; // console.log("Calling calculateTaxes with params", options);
|
|
89173
89177
|
|
|
89174
89178
|
_context.next = 4;
|
|
89175
|
-
return window.Quaderno.calculateTaxes(options);
|
|
89179
|
+
return (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$Quaderno = _window2.Quaderno) === null || _window2$Quaderno === void 0 ? void 0 : _window2$Quaderno.calculateTaxes(options);
|
|
89176
89180
|
|
|
89177
89181
|
case 4:
|
|
89178
89182
|
taxObject = _context.sent;
|
|
@@ -90322,6 +90326,14 @@
|
|
|
90322
90326
|
}();
|
|
90323
90327
|
|
|
90324
90328
|
if (show) {
|
|
90329
|
+
var scriptUrl = "https://js.quaderno.io/v4/";
|
|
90330
|
+
|
|
90331
|
+
if (!document.querySelector("script[src=\"".concat(scriptUrl, "\"]"))) {
|
|
90332
|
+
var script = document.createElement("script");
|
|
90333
|
+
script.src = scriptUrl;
|
|
90334
|
+
document.head.appendChild(script);
|
|
90335
|
+
}
|
|
90336
|
+
|
|
90325
90337
|
createBraintreeDropIn();
|
|
90326
90338
|
}
|
|
90327
90339
|
}, [show, googleMerchantId, venmoProfileId, clientToken, type, total]);
|