@moonbase.sh/vue 0.2.17 → 0.2.20

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.cjs CHANGED
@@ -82,6 +82,7 @@ function mountCheckout(endpoint) {
82
82
  iframe.style.left = "0px";
83
83
  iframe.style.right = "0px";
84
84
  iframe.style.border = "none";
85
+ iframe.style.colorScheme = "normal";
85
86
  iframe.style.backgroundColor = "transparent";
86
87
  iframe.style.zIndex = Number.MAX_SAFE_INTEGER.toString();
87
88
  iframe.setAttribute("background", "transparent");
@@ -617,6 +618,7 @@ function useCart(context) {
617
618
  });
618
619
  } else if (updatedOrder.checkoutUrl && typeof window !== "undefined") {
619
620
  window.location.href = updatedOrder.checkoutUrl;
621
+ return { next: void 0 };
620
622
  } else {
621
623
  throw new Error("No checkout URL found");
622
624
  }
package/dist/index.js CHANGED
@@ -47,6 +47,7 @@ function mountCheckout(endpoint) {
47
47
  iframe.style.left = "0px";
48
48
  iframe.style.right = "0px";
49
49
  iframe.style.border = "none";
50
+ iframe.style.colorScheme = "normal";
50
51
  iframe.style.backgroundColor = "transparent";
51
52
  iframe.style.zIndex = Number.MAX_SAFE_INTEGER.toString();
52
53
  iframe.setAttribute("background", "transparent");
@@ -582,6 +583,7 @@ function useCart(context) {
582
583
  });
583
584
  } else if (updatedOrder.checkoutUrl && typeof window !== "undefined") {
584
585
  window.location.href = updatedOrder.checkoutUrl;
586
+ return { next: void 0 };
585
587
  } else {
586
588
  throw new Error("No checkout URL found");
587
589
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.2.17",
4
+ "version": "0.2.20",
5
5
  "description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "@vue/devtools-api": "^6.5.1",
20
20
  "uuid": "^9.0.1",
21
21
  "zod": "^3.21.4",
22
- "@moonbase.sh/storefront-api": "0.2.17"
22
+ "@moonbase.sh/storefront-api": "0.2.20"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/uuid": "^9.0.7",