@perceptimagery/dita-configurator-staging 0.2.1205 → 0.2.1301
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.
- package/dist/index.js +10 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __publicField = (obj, key, value) => {
|
|
|
112
112
|
host: "https://api.sprie.io"
|
|
113
113
|
};
|
|
114
114
|
const config$1 = Object.freeze(Config$2);
|
|
115
|
-
const version$1 = "0.2.
|
|
115
|
+
const version$1 = "0.2.1301";
|
|
116
116
|
function modifyLensArr$1(arr, element) {
|
|
117
117
|
const index = arr.findIndex((e) => e["sku"] === element["sku"]);
|
|
118
118
|
if (index !== -1) {
|
|
@@ -222,7 +222,14 @@ var __publicField = (obj, key, value) => {
|
|
|
222
222
|
const cart = await this.shopifyAPI.Get();
|
|
223
223
|
document.querySelector("#shopify-section-mini-cart").outerHTML = responseData.sections["mini-cart"];
|
|
224
224
|
document.querySelector(".header__cart-count").textContent = cart.item_count;
|
|
225
|
-
document.querySelector(".drawer.drawer--full")
|
|
225
|
+
const desktopContainer = document.querySelector(".drawer.drawer--full");
|
|
226
|
+
if (desktopContainer && desktopContainer.hasAttribute("open")) {
|
|
227
|
+
desktopContainer.removeAttribute("open");
|
|
228
|
+
}
|
|
229
|
+
const mobileContainer = document.querySelector(".popover.hidden-lap-and-up.popover--full");
|
|
230
|
+
if (mobileContainer && mobileContainer.hasAttribute("open")) {
|
|
231
|
+
mobileContainer.removeAttribute("open");
|
|
232
|
+
}
|
|
226
233
|
document.querySelector(".mini-cart.drawer.drawer--large").setAttribute("open", "");
|
|
227
234
|
}
|
|
228
235
|
}
|
|
@@ -51288,6 +51295,7 @@ bool bvhIntersectFirstHit(
|
|
|
51288
51295
|
* @returns
|
|
51289
51296
|
*/
|
|
51290
51297
|
async Post(data) {
|
|
51298
|
+
console.log(this.config.addToCartUrl);
|
|
51291
51299
|
const response = await fetch(this.config.addToCartUrl, this.RequestOptions("POST", data || {}));
|
|
51292
51300
|
const result = response.json();
|
|
51293
51301
|
return result;
|