@bunnyapp/components 1.5.0-beta.7 → 1.5.0-beta.8
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/cjs/index.js +10 -4
- package/dist/esm/index.js +10 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var BrandContext = react.createContext({
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
// This will be replaced at build time by rollup-plugin-replace
|
|
157
|
-
var PACKAGE_VERSION = '1.5.0-beta.
|
|
157
|
+
var PACKAGE_VERSION = '1.5.0-beta.7';
|
|
158
158
|
var createRequestHeaders = function (token) {
|
|
159
159
|
var headers = createClientDevHeaders({ token: token });
|
|
160
160
|
// Add the components version header
|
|
@@ -22462,7 +22462,15 @@ var useQuoteCreate = function (_a) {
|
|
|
22462
22462
|
},
|
|
22463
22463
|
}), createEmptyQuote = _d.mutate, isCreatingEmptyQuote = _d.isPending;
|
|
22464
22464
|
var _e = reactQuery.useMutation({
|
|
22465
|
-
mutationFn:
|
|
22465
|
+
mutationFn: function (_a) {
|
|
22466
|
+
var subscriptionId = _a.subscriptionId;
|
|
22467
|
+
return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_b) {
|
|
22468
|
+
switch (_b.label) {
|
|
22469
|
+
case 0: return [4 /*yield*/, quoteSubscriptionActivate({ subscriptionId: subscriptionId, apiHost: apiHost, token: token })];
|
|
22470
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
22471
|
+
}
|
|
22472
|
+
}); });
|
|
22473
|
+
},
|
|
22466
22474
|
onSuccess: function (response) {
|
|
22467
22475
|
var _a;
|
|
22468
22476
|
var quote = (_a = response === null || response === void 0 ? void 0 : response.quoteSubscriptionActivate) === null || _a === void 0 ? void 0 : _a.quote;
|
|
@@ -22485,8 +22493,6 @@ var useQuoteCreate = function (_a) {
|
|
|
22485
22493
|
if (isActivatingTrialSubscription || isActivatingExpiredTrialSubscription) {
|
|
22486
22494
|
subscriptionActivate({
|
|
22487
22495
|
subscriptionId: upgradingSubscription === null || upgradingSubscription === void 0 ? void 0 : upgradingSubscription.id,
|
|
22488
|
-
apiHost: apiHost,
|
|
22489
|
-
token: token,
|
|
22490
22496
|
});
|
|
22491
22497
|
}
|
|
22492
22498
|
else if (buyingAddonsForCurrentSubscription) {
|
package/dist/esm/index.js
CHANGED
|
@@ -143,7 +143,7 @@ var BrandContext = createContext({
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
// This will be replaced at build time by rollup-plugin-replace
|
|
146
|
-
var PACKAGE_VERSION = '1.5.0-beta.
|
|
146
|
+
var PACKAGE_VERSION = '1.5.0-beta.7';
|
|
147
147
|
var createRequestHeaders = function (token) {
|
|
148
148
|
var headers = createClientDevHeaders({ token: token });
|
|
149
149
|
// Add the components version header
|
|
@@ -22451,7 +22451,15 @@ var useQuoteCreate = function (_a) {
|
|
|
22451
22451
|
},
|
|
22452
22452
|
}), createEmptyQuote = _d.mutate, isCreatingEmptyQuote = _d.isPending;
|
|
22453
22453
|
var _e = useMutation({
|
|
22454
|
-
mutationFn:
|
|
22454
|
+
mutationFn: function (_a) {
|
|
22455
|
+
var subscriptionId = _a.subscriptionId;
|
|
22456
|
+
return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_b) {
|
|
22457
|
+
switch (_b.label) {
|
|
22458
|
+
case 0: return [4 /*yield*/, quoteSubscriptionActivate({ subscriptionId: subscriptionId, apiHost: apiHost, token: token })];
|
|
22459
|
+
case 1: return [2 /*return*/, _b.sent()];
|
|
22460
|
+
}
|
|
22461
|
+
}); });
|
|
22462
|
+
},
|
|
22455
22463
|
onSuccess: function (response) {
|
|
22456
22464
|
var _a;
|
|
22457
22465
|
var quote = (_a = response === null || response === void 0 ? void 0 : response.quoteSubscriptionActivate) === null || _a === void 0 ? void 0 : _a.quote;
|
|
@@ -22474,8 +22482,6 @@ var useQuoteCreate = function (_a) {
|
|
|
22474
22482
|
if (isActivatingTrialSubscription || isActivatingExpiredTrialSubscription) {
|
|
22475
22483
|
subscriptionActivate({
|
|
22476
22484
|
subscriptionId: upgradingSubscription === null || upgradingSubscription === void 0 ? void 0 : upgradingSubscription.id,
|
|
22477
|
-
apiHost: apiHost,
|
|
22478
|
-
token: token,
|
|
22479
22485
|
});
|
|
22480
22486
|
}
|
|
22481
22487
|
else if (buyingAddonsForCurrentSubscription) {
|
package/package.json
CHANGED