@moonbase.sh/react 1.4.0 → 1.4.1
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 +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -67,7 +67,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
67
67
|
var import_storefront_api13 = require("@moonbase.sh/storefront-api");
|
|
68
68
|
|
|
69
69
|
// package.json
|
|
70
|
-
var version = "1.4.
|
|
70
|
+
var version = "1.4.1";
|
|
71
71
|
|
|
72
72
|
// src/storefront.ts
|
|
73
73
|
var import_storefront_api5 = require("@moonbase.sh/storefront-api");
|
|
@@ -1366,7 +1366,7 @@ function useStorefrontEvent(event, handler) {
|
|
|
1366
1366
|
(0, import_react.useEffect)(() => {
|
|
1367
1367
|
latest.current = handler;
|
|
1368
1368
|
});
|
|
1369
|
-
(0, import_react.useEffect)(() => storefront.on(event, (...args) => latest.current(...args)), [storefront, event]);
|
|
1369
|
+
(0, import_react.useEffect)(() => storefront.on(event, ((...args) => latest.current(...args))), [storefront, event]);
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
1372
|
// src/hooks/catalog.ts
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, Address, SignUpOptions, SignUpResult, CommunicationPreferences, UserAccountConfirmed, ConnectableAccountProvider, CheckoutRedirectMode, StorefrontProduct, StorefrontBundle, PricingVariation, StorefrontOffer, LineItem, MoonbaseConfiguration,
|
|
1
|
+
import { User, Address, SignUpOptions, SignUpResult, CommunicationPreferences, UserAccountConfirmed, ConnectableAccountProvider, CheckoutRedirectMode, StorefrontProduct, StorefrontBundle, PricingVariation, StorefrontOffer, LineItem, MoonbaseConfiguration, MoonbaseClient, Storefront, Order, UrchinTrackingModule, OpenOrder, Money, CheckoutPaymentFailure, CompletedOrder, AdConsentReport, AdSignals, OfferConditionContext, StorefrontPromotion, OfferProgress, OwnedProduct, Activation, License, Subscription, ActivationRequest, CartTotal, SubscribeInput, CommunicationPreferencesInput, GiftClaim, ActivationMethod, Download, SubscriptionCancellationFeedback, Page, PriceFormat, ProductReviewSort, SubmitReviewRequest, ReviewVoteDirection, Vendor, Voucher } from '@moonbase.sh/storefront-api';
|
|
2
2
|
export * from '@moonbase.sh/storefront-api';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, Address, SignUpOptions, SignUpResult, CommunicationPreferences, UserAccountConfirmed, ConnectableAccountProvider, CheckoutRedirectMode, StorefrontProduct, StorefrontBundle, PricingVariation, StorefrontOffer, LineItem, MoonbaseConfiguration,
|
|
1
|
+
import { User, Address, SignUpOptions, SignUpResult, CommunicationPreferences, UserAccountConfirmed, ConnectableAccountProvider, CheckoutRedirectMode, StorefrontProduct, StorefrontBundle, PricingVariation, StorefrontOffer, LineItem, MoonbaseConfiguration, MoonbaseClient, Storefront, Order, UrchinTrackingModule, OpenOrder, Money, CheckoutPaymentFailure, CompletedOrder, AdConsentReport, AdSignals, OfferConditionContext, StorefrontPromotion, OfferProgress, OwnedProduct, Activation, License, Subscription, ActivationRequest, CartTotal, SubscribeInput, CommunicationPreferencesInput, GiftClaim, ActivationMethod, Download, SubscriptionCancellationFeedback, Page, PriceFormat, ProductReviewSort, SubmitReviewRequest, ReviewVoteDirection, Vendor, Voucher } from '@moonbase.sh/storefront-api';
|
|
2
2
|
export * from '@moonbase.sh/storefront-api';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { MoonbaseClient } from "@moonbase.sh/storefront-api";
|
|
3
3
|
|
|
4
4
|
// package.json
|
|
5
|
-
var version = "1.4.
|
|
5
|
+
var version = "1.4.1";
|
|
6
6
|
|
|
7
7
|
// src/storefront.ts
|
|
8
8
|
import {
|
|
@@ -1373,7 +1373,7 @@ function useStorefrontEvent(event, handler) {
|
|
|
1373
1373
|
useEffect(() => {
|
|
1374
1374
|
latest.current = handler;
|
|
1375
1375
|
});
|
|
1376
|
-
useEffect(() => storefront.on(event, (...args) => latest.current(...args)), [storefront, event]);
|
|
1376
|
+
useEffect(() => storefront.on(event, ((...args) => latest.current(...args))), [storefront, event]);
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
1379
|
// src/hooks/catalog.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbase.sh/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"description": "Package to let you build React storefronts with Moonbase.sh as payment and delivery provider",
|
|
6
6
|
"author": "Tobias Lønnerød Madsen <m@dsen.tv>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"react": ">=18"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@moonbase.sh/storefront-api": "3.21.
|
|
19
|
+
"@moonbase.sh/storefront-api": "3.21.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^22.5.4",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"rimraf": "^5.0.10",
|
|
30
30
|
"tsup": "^8.5.0",
|
|
31
31
|
"typescript": "~5.8.3",
|
|
32
|
-
"vitest": "^
|
|
32
|
+
"vitest": "^4.1.12"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|