@dutchiesdk/ecommerce-extensions-sdk 0.32.2 → 0.34.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.
|
@@ -30,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
useDataBridge: ()=>useDataBridge
|
|
31
31
|
});
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
|
-
const DataBridgeVersion = '0.
|
|
33
|
+
const DataBridgeVersion = '0.34.0';
|
|
34
34
|
const DataBridgeContext = (0, external_react_namespaceObject.createContext)(void 0);
|
|
35
35
|
const useDataBridge = ()=>{
|
|
36
36
|
const context = (0, external_react_namespaceObject.useContext)(DataBridgeContext);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useState } from "react";
|
|
2
|
-
const DataBridgeVersion = '0.
|
|
2
|
+
const DataBridgeVersion = '0.34.0';
|
|
3
3
|
const DataBridgeContext = createContext(void 0);
|
|
4
4
|
const useDataBridge = ()=>{
|
|
5
5
|
const context = useContext(DataBridgeContext);
|
|
@@ -63,6 +63,25 @@ export type RemoteModuleRegistry = {
|
|
|
63
63
|
GlobalStyles?: ModuleRegistryEntry;
|
|
64
64
|
StoreFrontCarouselInterstitials?: ModuleRegistryEntry[];
|
|
65
65
|
StoreFrontHero?: ModuleRegistryEntry;
|
|
66
|
+
/**
|
|
67
|
+
* Replaces the storefront loyalty rewards widget on the home page
|
|
68
|
+
* (balance, tier progress, redemption CTA). Receives the standard
|
|
69
|
+
* Data Bridge context -- use `dataLoaders.loyalty()` for loyalty data
|
|
70
|
+
* and `user`/`actions.goToLoyalty` for auth state and navigation.
|
|
71
|
+
*/
|
|
72
|
+
StoreFrontLoyaltyWidget?: ModuleRegistryEntry;
|
|
73
|
+
/**
|
|
74
|
+
* Replaces the logged-out login/sign-up prompt widget on the home page.
|
|
75
|
+
* Use `user` to check auth state and `actions.goToLogin` /
|
|
76
|
+
* `actions.goToRegister` to trigger navigation.
|
|
77
|
+
*/
|
|
78
|
+
StoreFrontLoginWidget?: ModuleRegistryEntry;
|
|
79
|
+
/**
|
|
80
|
+
* Replaces the category tiles/pills navigation rendered on the home page.
|
|
81
|
+
* Use `dataLoaders.categories()` for the available categories and
|
|
82
|
+
* `actions.goToCategory` to navigate.
|
|
83
|
+
*/
|
|
84
|
+
StoreFrontCategoryTiles?: ModuleRegistryEntry;
|
|
66
85
|
ProductDetailsPrimary?: ModuleRegistryEntry;
|
|
67
86
|
/** Custom grid product card rendered in category pages and carousels */
|
|
68
87
|
ProductCard?: ModuleRegistryEntry;
|
|
@@ -63,6 +63,25 @@ export type RemoteModuleRegistry = {
|
|
|
63
63
|
GlobalStyles?: ModuleRegistryEntry;
|
|
64
64
|
StoreFrontCarouselInterstitials?: ModuleRegistryEntry[];
|
|
65
65
|
StoreFrontHero?: ModuleRegistryEntry;
|
|
66
|
+
/**
|
|
67
|
+
* Replaces the storefront loyalty rewards widget on the home page
|
|
68
|
+
* (balance, tier progress, redemption CTA). Receives the standard
|
|
69
|
+
* Data Bridge context -- use `dataLoaders.loyalty()` for loyalty data
|
|
70
|
+
* and `user`/`actions.goToLoyalty` for auth state and navigation.
|
|
71
|
+
*/
|
|
72
|
+
StoreFrontLoyaltyWidget?: ModuleRegistryEntry;
|
|
73
|
+
/**
|
|
74
|
+
* Replaces the logged-out login/sign-up prompt widget on the home page.
|
|
75
|
+
* Use `user` to check auth state and `actions.goToLogin` /
|
|
76
|
+
* `actions.goToRegister` to trigger navigation.
|
|
77
|
+
*/
|
|
78
|
+
StoreFrontLoginWidget?: ModuleRegistryEntry;
|
|
79
|
+
/**
|
|
80
|
+
* Replaces the category tiles/pills navigation rendered on the home page.
|
|
81
|
+
* Use `dataLoaders.categories()` for the available categories and
|
|
82
|
+
* `actions.goToCategory` to navigate.
|
|
83
|
+
*/
|
|
84
|
+
StoreFrontCategoryTiles?: ModuleRegistryEntry;
|
|
66
85
|
ProductDetailsPrimary?: ModuleRegistryEntry;
|
|
67
86
|
/** Custom grid product card rendered in category pages and carousels */
|
|
68
87
|
ProductCard?: ModuleRegistryEntry;
|
package/package.json
CHANGED