@dutchiesdk/ecommerce-extensions-sdk 0.13.0 → 0.15.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.15.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.15.0';
|
|
3
3
|
const DataBridgeContext = createContext(void 0);
|
|
4
4
|
const useDataBridge = ()=>{
|
|
5
5
|
const context = useContext(DataBridgeContext);
|
package/dist/esm/types/data.d.ts
CHANGED
|
@@ -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 = {
|
|
@@ -149,6 +150,10 @@ export type DataLoaders = {
|
|
|
149
150
|
* All dispensary locations of the chain
|
|
150
151
|
*/
|
|
151
152
|
locations: () => Promise<Dispensary[] | []>;
|
|
153
|
+
/**
|
|
154
|
+
* Only populated when on a PDP
|
|
155
|
+
*/
|
|
156
|
+
product: () => Promise<Product | null>;
|
|
152
157
|
/**
|
|
153
158
|
* Product catalog
|
|
154
159
|
*/
|
package/dist/types/data.d.ts
CHANGED
|
@@ -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 = {
|
|
@@ -149,6 +150,10 @@ export type DataLoaders = {
|
|
|
149
150
|
* All dispensary locations of the chain
|
|
150
151
|
*/
|
|
151
152
|
locations: () => Promise<Dispensary[] | []>;
|
|
153
|
+
/**
|
|
154
|
+
* Only populated when on a PDP
|
|
155
|
+
*/
|
|
156
|
+
product: () => Promise<Product | null>;
|
|
152
157
|
/**
|
|
153
158
|
* Product catalog
|
|
154
159
|
*/
|