@dutchiesdk/ecommerce-extensions-sdk 0.13.0 → 0.14.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.13.0';
33
+ const DataBridgeVersion = '0.14.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.13.0';
2
+ const DataBridgeVersion = '0.14.0';
3
3
  const DataBridgeContext = createContext(void 0);
4
4
  const useDataBridge = ()=>{
5
5
  const context = useContext(DataBridgeContext);
@@ -149,6 +149,10 @@ export type DataLoaders = {
149
149
  * All dispensary locations of the chain
150
150
  */
151
151
  locations: () => Promise<Dispensary[] | []>;
152
+ /**
153
+ * Only populated when on a PDP
154
+ */
155
+ product: () => Promise<Product | null>;
152
156
  /**
153
157
  * Product catalog
154
158
  */
@@ -149,6 +149,10 @@ export type DataLoaders = {
149
149
  * All dispensary locations of the chain
150
150
  */
151
151
  locations: () => Promise<Dispensary[] | []>;
152
+ /**
153
+ * Only populated when on a PDP
154
+ */
155
+ product: () => Promise<Product | null>;
152
156
  /**
153
157
  * Product catalog
154
158
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0",
7
+ "version": "0.14.0",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
10
  "module": "./dist/esm/index.js",