@betterstore/react 0.3.0 → 0.3.2
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/CHANGELOG.md +12 -0
- package/dist/index.cjs.js +13 -11
- package/dist/index.mjs +13 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -3240,8 +3240,8 @@ const CheckoutEmbed$2 = {
|
|
|
3240
3240
|
zipCodePlaceholder: "12345"
|
|
3241
3241
|
},
|
|
3242
3242
|
button: "Uložit a pokračovat",
|
|
3243
|
-
email: "
|
|
3244
|
-
emailPlaceholder: "Zadejte svůj
|
|
3243
|
+
email: "Email",
|
|
3244
|
+
emailPlaceholder: "Zadejte svůj email",
|
|
3245
3245
|
firstName: "Křestní jméno",
|
|
3246
3246
|
firstNamePlaceholder: "Zadejte své křestní jméno",
|
|
3247
3247
|
lastName: "Příjmení",
|
|
@@ -3253,11 +3253,11 @@ const CheckoutEmbed$2 = {
|
|
|
3253
3253
|
Summary: {
|
|
3254
3254
|
calculatedAtNextStep: "Vypočítáno v dalším kroku",
|
|
3255
3255
|
edit: "Upravit",
|
|
3256
|
-
shipping: "
|
|
3257
|
-
subtotal: "
|
|
3256
|
+
shipping: "Doprava",
|
|
3257
|
+
subtotal: "Mezisoučet",
|
|
3258
3258
|
tax: "Daň",
|
|
3259
3259
|
title: "Shrnutí",
|
|
3260
|
-
total: "
|
|
3260
|
+
total: "Celkem"
|
|
3261
3261
|
},
|
|
3262
3262
|
loading: "Načítání ...",
|
|
3263
3263
|
Payment: {
|
|
@@ -5480,7 +5480,7 @@ class MotionValue {
|
|
|
5480
5480
|
* This will be replaced by the build step with the latest version number.
|
|
5481
5481
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
5482
5482
|
*/
|
|
5483
|
-
this.version = "12.9.
|
|
5483
|
+
this.version = "12.9.1";
|
|
5484
5484
|
/**
|
|
5485
5485
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
5486
5486
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -7296,13 +7296,13 @@ class JSAnimation extends WithPromise {
|
|
|
7296
7296
|
}
|
|
7297
7297
|
onPlay && onPlay();
|
|
7298
7298
|
const now = this.driver.now();
|
|
7299
|
-
if (this.
|
|
7300
|
-
this.startTime = now - this.holdTime;
|
|
7301
|
-
}
|
|
7302
|
-
else if (this.state === "finished") {
|
|
7299
|
+
if (this.state === "finished") {
|
|
7303
7300
|
this.updateFinished();
|
|
7304
7301
|
this.startTime = now;
|
|
7305
7302
|
}
|
|
7303
|
+
else if (this.holdTime !== null) {
|
|
7304
|
+
this.startTime = now - this.holdTime;
|
|
7305
|
+
}
|
|
7306
7306
|
else if (!this.startTime) {
|
|
7307
7307
|
this.startTime = startTime ?? now;
|
|
7308
7308
|
}
|
|
@@ -12712,7 +12712,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
12712
12712
|
* and warn against mismatches.
|
|
12713
12713
|
*/
|
|
12714
12714
|
if (process.env.NODE_ENV === "development") {
|
|
12715
|
-
warnOnce(nextValue.version === "12.9.
|
|
12715
|
+
warnOnce(nextValue.version === "12.9.1", `Attempting to mix Motion versions ${nextValue.version} with 12.9.1 may not work as expected.`);
|
|
12716
12716
|
}
|
|
12717
12717
|
}
|
|
12718
12718
|
else if (isMotionValue(prevValue)) {
|
|
@@ -34160,6 +34160,7 @@ function ShippingMethodForm({ shippingRates, initialData, onSubmit, onBack, cont
|
|
|
34160
34160
|
provider: "",
|
|
34161
34161
|
price: 0,
|
|
34162
34162
|
pickupPointId: "",
|
|
34163
|
+
pickupPointDisplayName: "",
|
|
34163
34164
|
},
|
|
34164
34165
|
});
|
|
34165
34166
|
const currentRateId = form.watch("rateId");
|
|
@@ -34401,6 +34402,7 @@ function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl,
|
|
|
34401
34402
|
shipmentData: {
|
|
34402
34403
|
provider: data.provider,
|
|
34403
34404
|
pickupPointId: data.pickupPointId,
|
|
34405
|
+
name: data.name,
|
|
34404
34406
|
},
|
|
34405
34407
|
});
|
|
34406
34408
|
const { paymentSecret, publicKey } = yield storeClient.generateCheckoutsPaymentSecret(clientSecret, checkoutId);
|
package/dist/index.mjs
CHANGED
|
@@ -3217,8 +3217,8 @@ const CheckoutEmbed$2 = {
|
|
|
3217
3217
|
zipCodePlaceholder: "12345"
|
|
3218
3218
|
},
|
|
3219
3219
|
button: "Uložit a pokračovat",
|
|
3220
|
-
email: "
|
|
3221
|
-
emailPlaceholder: "Zadejte svůj
|
|
3220
|
+
email: "Email",
|
|
3221
|
+
emailPlaceholder: "Zadejte svůj email",
|
|
3222
3222
|
firstName: "Křestní jméno",
|
|
3223
3223
|
firstNamePlaceholder: "Zadejte své křestní jméno",
|
|
3224
3224
|
lastName: "Příjmení",
|
|
@@ -3230,11 +3230,11 @@ const CheckoutEmbed$2 = {
|
|
|
3230
3230
|
Summary: {
|
|
3231
3231
|
calculatedAtNextStep: "Vypočítáno v dalším kroku",
|
|
3232
3232
|
edit: "Upravit",
|
|
3233
|
-
shipping: "
|
|
3234
|
-
subtotal: "
|
|
3233
|
+
shipping: "Doprava",
|
|
3234
|
+
subtotal: "Mezisoučet",
|
|
3235
3235
|
tax: "Daň",
|
|
3236
3236
|
title: "Shrnutí",
|
|
3237
|
-
total: "
|
|
3237
|
+
total: "Celkem"
|
|
3238
3238
|
},
|
|
3239
3239
|
loading: "Načítání ...",
|
|
3240
3240
|
Payment: {
|
|
@@ -5457,7 +5457,7 @@ class MotionValue {
|
|
|
5457
5457
|
* This will be replaced by the build step with the latest version number.
|
|
5458
5458
|
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
5459
5459
|
*/
|
|
5460
|
-
this.version = "12.9.
|
|
5460
|
+
this.version = "12.9.1";
|
|
5461
5461
|
/**
|
|
5462
5462
|
* Tracks whether this value can output a velocity. Currently this is only true
|
|
5463
5463
|
* if the value is numerical, but we might be able to widen the scope here and support
|
|
@@ -7273,13 +7273,13 @@ class JSAnimation extends WithPromise {
|
|
|
7273
7273
|
}
|
|
7274
7274
|
onPlay && onPlay();
|
|
7275
7275
|
const now = this.driver.now();
|
|
7276
|
-
if (this.
|
|
7277
|
-
this.startTime = now - this.holdTime;
|
|
7278
|
-
}
|
|
7279
|
-
else if (this.state === "finished") {
|
|
7276
|
+
if (this.state === "finished") {
|
|
7280
7277
|
this.updateFinished();
|
|
7281
7278
|
this.startTime = now;
|
|
7282
7279
|
}
|
|
7280
|
+
else if (this.holdTime !== null) {
|
|
7281
|
+
this.startTime = now - this.holdTime;
|
|
7282
|
+
}
|
|
7283
7283
|
else if (!this.startTime) {
|
|
7284
7284
|
this.startTime = startTime ?? now;
|
|
7285
7285
|
}
|
|
@@ -12689,7 +12689,7 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
12689
12689
|
* and warn against mismatches.
|
|
12690
12690
|
*/
|
|
12691
12691
|
if (process.env.NODE_ENV === "development") {
|
|
12692
|
-
warnOnce(nextValue.version === "12.9.
|
|
12692
|
+
warnOnce(nextValue.version === "12.9.1", `Attempting to mix Motion versions ${nextValue.version} with 12.9.1 may not work as expected.`);
|
|
12693
12693
|
}
|
|
12694
12694
|
}
|
|
12695
12695
|
else if (isMotionValue(prevValue)) {
|
|
@@ -34137,6 +34137,7 @@ function ShippingMethodForm({ shippingRates, initialData, onSubmit, onBack, cont
|
|
|
34137
34137
|
provider: "",
|
|
34138
34138
|
price: 0,
|
|
34139
34139
|
pickupPointId: "",
|
|
34140
|
+
pickupPointDisplayName: "",
|
|
34140
34141
|
},
|
|
34141
34142
|
});
|
|
34142
34143
|
const currentRateId = form.watch("rateId");
|
|
@@ -34378,6 +34379,7 @@ function CheckoutForm({ storeClient, checkoutId, onSuccess, onError, cancelUrl,
|
|
|
34378
34379
|
shipmentData: {
|
|
34379
34380
|
provider: data.provider,
|
|
34380
34381
|
pickupPointId: data.pickupPointId,
|
|
34382
|
+
name: data.name,
|
|
34381
34383
|
},
|
|
34382
34384
|
});
|
|
34383
34385
|
const { paymentSecret, publicKey } = yield storeClient.generateCheckoutsPaymentSecret(clientSecret, checkoutId);
|