@treely/strapi-slices 5.3.3 → 5.5.0
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/portfolio/ProjectInfo/messages.de.d.ts +1 -0
- package/dist/components/portfolio/ProjectInfo/messages.en.d.ts +1 -0
- package/dist/rootMessages.de.d.ts +1 -0
- package/dist/rootMessages.en.d.ts +1 -0
- package/dist/strapi-slices.cjs.development.js +12 -3
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +12 -3
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/portfolio/ProjectInfo/messages.de.ts +3 -0
- package/src/components/portfolio/ProjectInfo/messages.en.ts +3 -0
- package/src/components/portfolio/SmallCheckout/SmallCheckout.test.tsx +2 -2
- package/src/components/portfolio/SmallCheckout/SmallCheckout.tsx +14 -6
- package/src/slices/ShopCheckout/ShopCheckout.test.tsx +2 -2
- package/src/slices/ShopCheckout/ShopCheckout.tsx +4 -2
|
@@ -8,6 +8,7 @@ declare const messagesDe: {
|
|
|
8
8
|
'features.projectInfo.properties.projectDeveloper': string;
|
|
9
9
|
'features.projectInfo.properties.verificationStandard.label': string;
|
|
10
10
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
11
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': string;
|
|
11
12
|
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
12
13
|
'features.projectInfo.properties.riskBuffer': string;
|
|
13
14
|
'features.projectInfo.properties.year': string;
|
|
@@ -8,6 +8,7 @@ declare const messagesEn: {
|
|
|
8
8
|
'features.projectInfo.properties.projectDeveloper': string;
|
|
9
9
|
'features.projectInfo.properties.verificationStandard.label': string;
|
|
10
10
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
11
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': string;
|
|
11
12
|
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
12
13
|
'features.projectInfo.properties.riskBuffer': string;
|
|
13
14
|
'features.projectInfo.properties.year': string;
|
|
@@ -50,6 +50,7 @@ declare const rootMessagesDe: {
|
|
|
50
50
|
'features.projectInfo.properties.projectDeveloper': string;
|
|
51
51
|
'features.projectInfo.properties.verificationStandard.label': string;
|
|
52
52
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
53
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': string;
|
|
53
54
|
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
54
55
|
'features.projectInfo.properties.riskBuffer': string;
|
|
55
56
|
'features.projectInfo.properties.year': string;
|
|
@@ -50,6 +50,7 @@ declare const rootMessagesEn: {
|
|
|
50
50
|
'features.projectInfo.properties.projectDeveloper': string;
|
|
51
51
|
'features.projectInfo.properties.verificationStandard.label': string;
|
|
52
52
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': string;
|
|
53
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': string;
|
|
53
54
|
'features.projectInfo.properties.forecastedAmountYear.label': string;
|
|
54
55
|
'features.projectInfo.properties.riskBuffer': string;
|
|
55
56
|
'features.projectInfo.properties.year': string;
|
|
@@ -2056,6 +2056,7 @@ var messagesDe$6 = {
|
|
|
2056
2056
|
'features.projectInfo.properties.projectDeveloper': 'Projekt Entwickler',
|
|
2057
2057
|
'features.projectInfo.properties.verificationStandard.label': 'Verifizierungsstandard',
|
|
2058
2058
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': 'SILVACONSULT® Forest Carbon Standard, ISO 14064-2',
|
|
2059
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': 'Methodik für Klimaschutzprojekte im Wald für die Schweiz',
|
|
2059
2060
|
'features.projectInfo.properties.forecastedAmountYear.label': 'Projektvolumen',
|
|
2060
2061
|
'features.projectInfo.properties.riskBuffer': 'Anteil Risikopuffer',
|
|
2061
2062
|
'features.projectInfo.properties.year': '{years} {years, plural, one {Jahr} other {Jahre} }'
|
|
@@ -2170,6 +2171,7 @@ var messagesEn$4 = {
|
|
|
2170
2171
|
'features.projectInfo.properties.projectDeveloper': 'Project Developer',
|
|
2171
2172
|
'features.projectInfo.properties.verificationStandard.label': 'Verification Standard',
|
|
2172
2173
|
'features.projectInfo.properties.verificationStandard.value.SilvaconsultFCSISO14': 'SILVACONSULT® Forest Carbon Standard, ISO 14064-2',
|
|
2174
|
+
'features.projectInfo.properties.verificationStandard.value.MfKWCH': 'Methodik für Klimaschutzprojekte im Wald für die Schweiz',
|
|
2173
2175
|
'features.projectInfo.properties.forecastedAmountYear.label': 'Project Volume',
|
|
2174
2176
|
'features.projectInfo.properties.riskBuffer': 'Risk Buffer Share',
|
|
2175
2177
|
'features.projectInfo.properties.year': '{years} {years, plural, one {year} other {years} }'
|
|
@@ -3808,6 +3810,7 @@ var ShopCheckout = function ShopCheckout(_ref) {
|
|
|
3808
3810
|
formatNumber = _useContext.formatNumber,
|
|
3809
3811
|
locale = _useContext.locale;
|
|
3810
3812
|
var _useRouter = router.useRouter(),
|
|
3813
|
+
asPath = _useRouter.asPath,
|
|
3811
3814
|
push = _useRouter.push;
|
|
3812
3815
|
var validateForm = React.useCallback(function (values) {
|
|
3813
3816
|
var errors = {};
|
|
@@ -3831,6 +3834,7 @@ var ShopCheckout = function ShopCheckout(_ref) {
|
|
|
3831
3834
|
var url = new URL(FPM_API_URI + "/v1/webhooks/shop/checkout");
|
|
3832
3835
|
url.searchParams.append('batchId', slice.batchId);
|
|
3833
3836
|
url.searchParams.append('quantity', Math.floor(contributionValue / slice.pricePerKg).toString());
|
|
3837
|
+
url.searchParams.append('cancelPath', asPath);
|
|
3834
3838
|
if (slice.couponId) url.searchParams.append('couponId', slice.couponId);
|
|
3835
3839
|
push(url.toString());
|
|
3836
3840
|
};
|
|
@@ -4180,6 +4184,7 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4180
4184
|
formatMessage = _useContext.formatMessage,
|
|
4181
4185
|
locale = _useContext.locale;
|
|
4182
4186
|
var _useRouter = router.useRouter(),
|
|
4187
|
+
asPath = _useRouter.asPath,
|
|
4183
4188
|
push = _useRouter.push;
|
|
4184
4189
|
var validateForm = React.useCallback(function (values) {
|
|
4185
4190
|
var errors = {};
|
|
@@ -4200,13 +4205,17 @@ var SmallCheckout = function SmallCheckout(_ref) {
|
|
|
4200
4205
|
}, [locale]);
|
|
4201
4206
|
var onSubmit = /*#__PURE__*/function () {
|
|
4202
4207
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
4203
|
-
var contributionValueCurrency;
|
|
4208
|
+
var contributionValueCurrency, url;
|
|
4204
4209
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
4205
4210
|
while (1) switch (_context.prev = _context.next) {
|
|
4206
4211
|
case 0:
|
|
4207
4212
|
contributionValueCurrency = _ref2.contributionValueCurrency;
|
|
4208
|
-
|
|
4209
|
-
|
|
4213
|
+
url = new URL(FPM_API_URI + "/v1/webhooks/shop/checkout");
|
|
4214
|
+
url.searchParams.append('batchId', batchId);
|
|
4215
|
+
url.searchParams.append('quantity', Math.floor(contributionValueCurrency / pricePerKg).toString());
|
|
4216
|
+
url.searchParams.append('cancelPath', asPath);
|
|
4217
|
+
push(url.toString());
|
|
4218
|
+
case 6:
|
|
4210
4219
|
case "end":
|
|
4211
4220
|
return _context.stop();
|
|
4212
4221
|
}
|