@bunnyapp/components 1.0.58 → 1.0.60
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 +11 -6
- package/dist/esm/index.js +11 -6
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -20076,7 +20076,7 @@ var useQuoteDelete = function () {
|
|
|
20076
20076
|
}); };
|
|
20077
20077
|
};
|
|
20078
20078
|
|
|
20079
|
-
var QUOTE_QUERY = function (id) { return "\n query quote {\n quote(id: ".concat(id, ") {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"); };
|
|
20079
|
+
var QUOTE_QUERY = function (id) { return "\n query quote {\n quote ".concat(id ? "(id: ".concat(id, ")") : '', " {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"); };
|
|
20080
20080
|
var getQuote = function (_a) {
|
|
20081
20081
|
var id = _a.id, token = _a.token, apiHost = _a.apiHost;
|
|
20082
20082
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20702,17 +20702,22 @@ var PlanPickerCheckoutBar = function (_a) {
|
|
|
20702
20702
|
var quote;
|
|
20703
20703
|
return __generator(this, function (_a) {
|
|
20704
20704
|
switch (_a.label) {
|
|
20705
|
-
case 0:
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20705
|
+
case 0:
|
|
20706
|
+
if (!quoteIdRef.current) {
|
|
20707
|
+
throw new Error('Quote ID is required');
|
|
20708
|
+
}
|
|
20709
|
+
return [4 /*yield*/, getQuote({
|
|
20710
|
+
id: quoteIdRef.current,
|
|
20711
|
+
token: token,
|
|
20712
|
+
apiHost: apiHost,
|
|
20713
|
+
})];
|
|
20710
20714
|
case 1:
|
|
20711
20715
|
quote = _a.sent();
|
|
20712
20716
|
return [2 /*return*/, quote];
|
|
20713
20717
|
}
|
|
20714
20718
|
});
|
|
20715
20719
|
}); },
|
|
20720
|
+
enabled: Boolean(quoteIdRef.current),
|
|
20716
20721
|
}).data;
|
|
20717
20722
|
react.useEffect(function () {
|
|
20718
20723
|
if (!(upgradingSubscription === null || upgradingSubscription === void 0 ? void 0 : upgradingSubscription.id)) {
|
package/dist/esm/index.js
CHANGED
|
@@ -20047,7 +20047,7 @@ var useQuoteDelete = function () {
|
|
|
20047
20047
|
}); };
|
|
20048
20048
|
};
|
|
20049
20049
|
|
|
20050
|
-
var QUOTE_QUERY = function (id) { return "\n query quote {\n quote(id: ".concat(id, ") {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"); };
|
|
20050
|
+
var QUOTE_QUERY = function (id) { return "\n query quote {\n quote ".concat(id ? "(id: ".concat(id, ")") : '', " {\n accountId\n amount\n amountDue\n smallUnitAmountDue\n currencyId\n formattedQuote {\n html\n }\n id\n payableId\n periodAmount\n subtotal\n taxAmount\n amountsByPeriod {\n amount\n startDate\n }\n quoteChanges {\n currencyId\n id\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n currencyId\n feature {\n unitName\n }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n quantity\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n\n }\n }\n }"); };
|
|
20051
20051
|
var getQuote = function (_a) {
|
|
20052
20052
|
var id = _a.id, token = _a.token, apiHost = _a.apiHost;
|
|
20053
20053
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -20673,17 +20673,22 @@ var PlanPickerCheckoutBar = function (_a) {
|
|
|
20673
20673
|
var quote;
|
|
20674
20674
|
return __generator(this, function (_a) {
|
|
20675
20675
|
switch (_a.label) {
|
|
20676
|
-
case 0:
|
|
20677
|
-
|
|
20678
|
-
|
|
20679
|
-
|
|
20680
|
-
|
|
20676
|
+
case 0:
|
|
20677
|
+
if (!quoteIdRef.current) {
|
|
20678
|
+
throw new Error('Quote ID is required');
|
|
20679
|
+
}
|
|
20680
|
+
return [4 /*yield*/, getQuote({
|
|
20681
|
+
id: quoteIdRef.current,
|
|
20682
|
+
token: token,
|
|
20683
|
+
apiHost: apiHost,
|
|
20684
|
+
})];
|
|
20681
20685
|
case 1:
|
|
20682
20686
|
quote = _a.sent();
|
|
20683
20687
|
return [2 /*return*/, quote];
|
|
20684
20688
|
}
|
|
20685
20689
|
});
|
|
20686
20690
|
}); },
|
|
20691
|
+
enabled: Boolean(quoteIdRef.current),
|
|
20687
20692
|
}).data;
|
|
20688
20693
|
useEffect(function () {
|
|
20689
20694
|
if (!(upgradingSubscription === null || upgradingSubscription === void 0 ? void 0 : upgradingSubscription.id)) {
|
package/package.json
CHANGED