@dutchiesdk/ecommerce-extensions-sdk 0.12.0 → 0.13.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.12.0';
33
+ const DataBridgeVersion = '0.13.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.12.0';
2
+ const DataBridgeVersion = '0.13.0';
3
3
  const DataBridgeContext = createContext(void 0);
4
4
  const useDataBridge = ()=>{
5
5
  const context = useContext(DataBridgeContext);
@@ -1,7 +1,6 @@
1
1
  import type { CartItem } from './data';
2
- type QueryParameter = string;
3
2
  type AdditionalRoutableParameters = {
4
- query?: QueryParameter;
3
+ query?: Record<string, string>;
5
4
  };
6
5
  type GoToIdOrCnameParameters = {
7
6
  cname?: string;
@@ -15,7 +14,7 @@ type AuthenticationActions = {
15
14
  /**
16
15
  * Navigate to loyalty. Redirects to the homepage if the user is not logged in.
17
16
  */
18
- goToLoyalty: () => void;
17
+ goToLoyalty: (params?: AdditionalRoutableParameters) => void;
19
18
  /**
20
19
  * Navigate to registration
21
20
  */
@@ -37,7 +36,7 @@ type CartActions = {
37
36
  /**
38
37
  * Navigate to checkout
39
38
  */
40
- goToCheckout: (params?: AdditionalRoutableParameters) => void;
39
+ goToCheckout: () => void;
41
40
  /**
42
41
  * Remove product from cart
43
42
  */
@@ -114,8 +113,7 @@ type ListPageActions = {
114
113
  categoryId?: string;
115
114
  collectionCname?: string;
116
115
  collectionId?: string;
117
- query?: QueryParameter;
118
- }) => void;
116
+ } & AdditionalRoutableParameters) => void;
119
117
  };
120
118
  type NavigationActions = {
121
119
  /**
@@ -10,10 +10,12 @@ export type RoutablePageRegistryEntry = {
10
10
  export type RemoteModuleRegistry = {
11
11
  RouteablePages?: RoutablePageRegistryEntry[];
12
12
  StoreFrontHeader?: RemoteBoundaryComponent;
13
+ StoreFrontMeta?: RemoteBoundaryComponent;
13
14
  StoreFrontNavigation?: RemoteBoundaryComponent;
14
15
  StoreFrontFooter?: RemoteBoundaryComponent;
15
16
  StoreFrontCarouselInterstitials?: RemoteBoundaryComponent[];
16
17
  StoreFrontHero?: RemoteBoundaryComponent;
18
+ ProductDetailsMeta?: RemoteBoundaryComponent;
17
19
  ProductDetailsPrimary?: RemoteBoundaryComponent;
18
20
  events?: Events;
19
21
  };
@@ -1,7 +1,6 @@
1
1
  import type { CartItem } from './data';
2
- type QueryParameter = string;
3
2
  type AdditionalRoutableParameters = {
4
- query?: QueryParameter;
3
+ query?: Record<string, string>;
5
4
  };
6
5
  type GoToIdOrCnameParameters = {
7
6
  cname?: string;
@@ -15,7 +14,7 @@ type AuthenticationActions = {
15
14
  /**
16
15
  * Navigate to loyalty. Redirects to the homepage if the user is not logged in.
17
16
  */
18
- goToLoyalty: () => void;
17
+ goToLoyalty: (params?: AdditionalRoutableParameters) => void;
19
18
  /**
20
19
  * Navigate to registration
21
20
  */
@@ -37,7 +36,7 @@ type CartActions = {
37
36
  /**
38
37
  * Navigate to checkout
39
38
  */
40
- goToCheckout: (params?: AdditionalRoutableParameters) => void;
39
+ goToCheckout: () => void;
41
40
  /**
42
41
  * Remove product from cart
43
42
  */
@@ -114,8 +113,7 @@ type ListPageActions = {
114
113
  categoryId?: string;
115
114
  collectionCname?: string;
116
115
  collectionId?: string;
117
- query?: QueryParameter;
118
- }) => void;
116
+ } & AdditionalRoutableParameters) => void;
119
117
  };
120
118
  type NavigationActions = {
121
119
  /**
@@ -10,10 +10,12 @@ export type RoutablePageRegistryEntry = {
10
10
  export type RemoteModuleRegistry = {
11
11
  RouteablePages?: RoutablePageRegistryEntry[];
12
12
  StoreFrontHeader?: RemoteBoundaryComponent;
13
+ StoreFrontMeta?: RemoteBoundaryComponent;
13
14
  StoreFrontNavigation?: RemoteBoundaryComponent;
14
15
  StoreFrontFooter?: RemoteBoundaryComponent;
15
16
  StoreFrontCarouselInterstitials?: RemoteBoundaryComponent[];
16
17
  StoreFrontHero?: RemoteBoundaryComponent;
18
+ ProductDetailsMeta?: RemoteBoundaryComponent;
17
19
  ProductDetailsPrimary?: RemoteBoundaryComponent;
18
20
  events?: Events;
19
21
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.12.0",
7
+ "version": "0.13.0",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "module": "./dist/esm/index.js",