ui.shipaid.com 0.3.144 → 0.3.145
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/widget.es.js +3 -3
- package/dist/widget.iife.js +1 -1
- package/dist/widget.umd.js +1 -1
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -3909,7 +3909,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
3909
3909
|
try {
|
|
3910
3910
|
if (this.useCustomStoreFront && this.cartId) {
|
|
3911
3911
|
const result = await this.runStoreFrontQuery(
|
|
3912
|
-
"query getCart($cartId: ID!){ cart( id: $cartId ) { id createdAt updatedAt lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags }
|
|
3912
|
+
"query getCart($cartId: ID!){ cart( id: $cartId ) { id createdAt updatedAt lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags } } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } }",
|
|
3913
3913
|
{ cartId: this.cartId }
|
|
3914
3914
|
);
|
|
3915
3915
|
const cart2 = formatCartDataItems(result.cart);
|
|
@@ -4004,7 +4004,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4004
4004
|
let cart;
|
|
4005
4005
|
if (this.useCustomStoreFront) {
|
|
4006
4006
|
const cartItemAdded = await this.runStoreFrontQuery(
|
|
4007
|
-
"mutation AddItemToCart($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags }
|
|
4007
|
+
"mutation AddItemToCart($cartId: ID!, $lines: [CartLineInput!]!) { cartLinesAdd(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags } } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",
|
|
4008
4008
|
{
|
|
4009
4009
|
cartId: this.cartId,
|
|
4010
4010
|
lines: [
|
|
@@ -4059,7 +4059,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
4059
4059
|
let cart;
|
|
4060
4060
|
if (this.useCustomStoreFront) {
|
|
4061
4061
|
const cartItemUpdated = await this.runStoreFrontQuery(
|
|
4062
|
-
"mutation RemoveItemToCart($cartId: ID!, $lines: [CartLineUpdateInput!]!) { cartLinesUpdate(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags }
|
|
4062
|
+
"mutation RemoveItemToCart($cartId: ID!, $lines: [CartLineUpdateInput!]!) { cartLinesUpdate(cartId: $cartId, lines: $lines) { cart { id lines(first: 10) { edges { node { id quantity merchandise { ... on ProductVariant { id sku product { tags } } } cost{ totalAmount{ amount currencyCode } } } } } cost { totalAmount { amount currencyCode } subtotalAmount { amount currencyCode } } } } }",
|
|
4063
4063
|
{
|
|
4064
4064
|
cartId: this.cartId,
|
|
4065
4065
|
lines: [
|