@dutchiesdk/ecommerce-extensions-sdk 0.9.0 → 0.10.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.9.0';
33
+ const DataBridgeVersion = '0.10.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.9.0';
2
+ const DataBridgeVersion = '0.10.0';
3
3
  const DataBridgeContext = createContext(void 0);
4
4
  const useDataBridge = ()=>{
5
5
  const context = useContext(DataBridgeContext);
@@ -10,8 +10,8 @@ type AuthenticationActions = {
10
10
  goToRegister: () => void;
11
11
  };
12
12
  type GoToIdOrCnameParameters = {
13
- id?: string;
14
13
  cname?: string;
14
+ id?: string;
15
15
  };
16
16
  type CartActions = {
17
17
  /**
@@ -90,14 +90,21 @@ type ListPageActions = {
90
90
  goToBrandList: () => void;
91
91
  /**
92
92
  * Navigate to product list
93
- * @param categoryId - The category ID
94
- * @param categoryCname - The category CNAME
95
- * @param brandId - The brand ID
96
93
  * @param brandCname - The brand CNAME
97
- * @param collectionId - The collection ID
94
+ * @param brandId - The brand ID
95
+ * @param categoryCname - The category CNAME
96
+ * @param categoryId - The category ID
98
97
  * @param collectionCname - The collection CNAME
98
+ * @param collectionId - The collection ID
99
99
  */
100
- goToProductList: (categoryId?: string, categoryCname?: string, brandId?: string, brandCname?: string, collectionId?: string, collectionCname?: string) => void;
100
+ goToProductList: ({ brandCname, brandId, categoryCname, categoryId, collectionCname, collectionId, }: {
101
+ brandCname?: string;
102
+ brandId?: string;
103
+ categoryCname?: string;
104
+ categoryId?: string;
105
+ collectionCname?: string;
106
+ collectionId?: string;
107
+ }) => void;
101
108
  };
102
109
  type NavigationActions = {
103
110
  /**
@@ -106,10 +113,13 @@ type NavigationActions = {
106
113
  goToInfoPage: () => void;
107
114
  /**
108
115
  * Navigate to specific store
109
- * @param storeId - The store ID
110
- * @param storeCname - The store CNAME
116
+ * @param cname - The store CNAME
117
+ * @param id - The store ID
111
118
  */
112
- goToStore: (storeId?: string, storeCname?: string) => void;
119
+ goToStore: ({ cname, id }: {
120
+ cname?: string;
121
+ id?: string;
122
+ }) => void;
113
123
  /**
114
124
  * Navigate to store front
115
125
  */
@@ -11,6 +11,7 @@ export type RemoteModuleRegistry = {
11
11
  StoreFrontHeader?: RemoteBoundaryComponent;
12
12
  StoreFrontNavigation?: RemoteBoundaryComponent;
13
13
  StoreFrontFooter?: RemoteBoundaryComponent;
14
+ StoreFrontCarouselInterstitials?: RemoteBoundaryComponent[];
14
15
  StoreFrontHero?: RemoteBoundaryComponent;
15
16
  ProductDetailsPrimary?: RemoteBoundaryComponent;
16
17
  };
@@ -10,8 +10,8 @@ type AuthenticationActions = {
10
10
  goToRegister: () => void;
11
11
  };
12
12
  type GoToIdOrCnameParameters = {
13
- id?: string;
14
13
  cname?: string;
14
+ id?: string;
15
15
  };
16
16
  type CartActions = {
17
17
  /**
@@ -90,14 +90,21 @@ type ListPageActions = {
90
90
  goToBrandList: () => void;
91
91
  /**
92
92
  * Navigate to product list
93
- * @param categoryId - The category ID
94
- * @param categoryCname - The category CNAME
95
- * @param brandId - The brand ID
96
93
  * @param brandCname - The brand CNAME
97
- * @param collectionId - The collection ID
94
+ * @param brandId - The brand ID
95
+ * @param categoryCname - The category CNAME
96
+ * @param categoryId - The category ID
98
97
  * @param collectionCname - The collection CNAME
98
+ * @param collectionId - The collection ID
99
99
  */
100
- goToProductList: (categoryId?: string, categoryCname?: string, brandId?: string, brandCname?: string, collectionId?: string, collectionCname?: string) => void;
100
+ goToProductList: ({ brandCname, brandId, categoryCname, categoryId, collectionCname, collectionId, }: {
101
+ brandCname?: string;
102
+ brandId?: string;
103
+ categoryCname?: string;
104
+ categoryId?: string;
105
+ collectionCname?: string;
106
+ collectionId?: string;
107
+ }) => void;
101
108
  };
102
109
  type NavigationActions = {
103
110
  /**
@@ -106,10 +113,13 @@ type NavigationActions = {
106
113
  goToInfoPage: () => void;
107
114
  /**
108
115
  * Navigate to specific store
109
- * @param storeId - The store ID
110
- * @param storeCname - The store CNAME
116
+ * @param cname - The store CNAME
117
+ * @param id - The store ID
111
118
  */
112
- goToStore: (storeId?: string, storeCname?: string) => void;
119
+ goToStore: ({ cname, id }: {
120
+ cname?: string;
121
+ id?: string;
122
+ }) => void;
113
123
  /**
114
124
  * Navigate to store front
115
125
  */
@@ -11,6 +11,7 @@ export type RemoteModuleRegistry = {
11
11
  StoreFrontHeader?: RemoteBoundaryComponent;
12
12
  StoreFrontNavigation?: RemoteBoundaryComponent;
13
13
  StoreFrontFooter?: RemoteBoundaryComponent;
14
+ StoreFrontCarouselInterstitials?: RemoteBoundaryComponent[];
14
15
  StoreFrontHero?: RemoteBoundaryComponent;
15
16
  ProductDetailsPrimary?: RemoteBoundaryComponent;
16
17
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.9.0",
7
+ "version": "0.10.0",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "module": "./dist/esm/index.js",