@dutchiesdk/ecommerce-extensions-sdk 0.14.0 → 0.16.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.14.0';
33
+ const DataBridgeVersion = '0.16.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.14.0';
2
+ const DataBridgeVersion = '0.16.0';
3
3
  const DataBridgeContext = createContext(void 0);
4
4
  const useDataBridge = ()=>{
5
5
  const context = useContext(DataBridgeContext);
@@ -6,6 +6,10 @@ type GoToIdOrCnameParameters = {
6
6
  cname?: string;
7
7
  id?: string;
8
8
  } & AdditionalRoutableParameters;
9
+ type GoToSpecialParameters = {
10
+ id: string;
11
+ type: 'offer' | 'sale';
12
+ } & AdditionalRoutableParameters;
9
13
  type AuthenticationActions = {
10
14
  /**
11
15
  * Navigate to login
@@ -90,6 +94,10 @@ type DetailPageActions = {
90
94
  * Navigate to product details. Only one parameter is required.
91
95
  */
92
96
  goToProductDetails: (params: GoToIdOrCnameParameters) => void;
97
+ /**
98
+ * Navigate to specific special page
99
+ */
100
+ goToSpecial: (params: GoToSpecialParameters) => void;
93
101
  };
94
102
  type ListPageActions = {
95
103
  /**
@@ -114,6 +122,10 @@ type ListPageActions = {
114
122
  collectionCname?: string;
115
123
  collectionId?: string;
116
124
  } & AdditionalRoutableParameters) => void;
125
+ /**
126
+ * Navigate to specials list
127
+ */
128
+ goToSpecialsList: (params?: AdditionalRoutableParameters) => void;
117
129
  };
118
130
  type NavigationActions = {
119
131
  /**
@@ -1,6 +1,7 @@
1
1
  export type Brand = {
2
2
  cname: string;
3
3
  id: string;
4
+ image?: string | null;
4
5
  name: string;
5
6
  };
6
7
  export type CartItem = {
@@ -6,6 +6,10 @@ type GoToIdOrCnameParameters = {
6
6
  cname?: string;
7
7
  id?: string;
8
8
  } & AdditionalRoutableParameters;
9
+ type GoToSpecialParameters = {
10
+ id: string;
11
+ type: 'offer' | 'sale';
12
+ } & AdditionalRoutableParameters;
9
13
  type AuthenticationActions = {
10
14
  /**
11
15
  * Navigate to login
@@ -90,6 +94,10 @@ type DetailPageActions = {
90
94
  * Navigate to product details. Only one parameter is required.
91
95
  */
92
96
  goToProductDetails: (params: GoToIdOrCnameParameters) => void;
97
+ /**
98
+ * Navigate to specific special page
99
+ */
100
+ goToSpecial: (params: GoToSpecialParameters) => void;
93
101
  };
94
102
  type ListPageActions = {
95
103
  /**
@@ -114,6 +122,10 @@ type ListPageActions = {
114
122
  collectionCname?: string;
115
123
  collectionId?: string;
116
124
  } & AdditionalRoutableParameters) => void;
125
+ /**
126
+ * Navigate to specials list
127
+ */
128
+ goToSpecialsList: (params?: AdditionalRoutableParameters) => void;
117
129
  };
118
130
  type NavigationActions = {
119
131
  /**
@@ -1,6 +1,7 @@
1
1
  export type Brand = {
2
2
  cname: string;
3
3
  id: string;
4
+ image?: string | null;
4
5
  name: string;
5
6
  };
6
7
  export type CartItem = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.14.0",
7
+ "version": "0.16.0",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "module": "./dist/esm/index.js",