@gem-sdk/core 1.47.0-staging.3 → 1.47.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.
@@ -20,7 +20,6 @@ require('dayjs');
20
20
  var composeAdvanceStyle = require('../helpers/compose-advance-style.js');
21
21
  var convert = require('../helpers/convert.js');
22
22
  var render = require('../helpers/render.js');
23
- require('cssjson');
24
23
 
25
24
  const componentsRenderWithParentId = [
26
25
  'CarouselItem'
@@ -9,7 +9,6 @@ var PageContext = require('../contexts/PageContext.js');
9
9
  require('@gem-sdk/adapter-shopify');
10
10
  require('swr/mutation');
11
11
  require('swr/infinite');
12
- var useFormatMoney = require('./useFormatMoney.js');
13
12
  require('vanilla-lazyload');
14
13
  require('./useCartUI.js');
15
14
  var variant = require('../helpers/variant.js');
@@ -206,7 +205,7 @@ const useProductOfferDiscount = ()=>{
206
205
  const price = currentVariant?.price || 0;
207
206
  currentDiscount = currentDiscount * price / 100;
208
207
  }
209
- return currentDiscount ? parseFloat(useFormatMoney.shopifyPriceRounding(currentDiscount, 2)) : 0;
208
+ return currentDiscount || 0;
210
209
  };
211
210
 
212
211
  exports.useCheckAvailableVariantInStock = useCheckAvailableVariantInStock;
@@ -16,7 +16,6 @@ import 'dayjs';
16
16
  import { composeAdvanceStyle } from '../helpers/compose-advance-style.js';
17
17
  import { baseAssetURL, isLocalEnv } from '../helpers/convert.js';
18
18
  import { RenderIf, template } from '../helpers/render.js';
19
- import 'cssjson';
20
19
 
21
20
  const componentsRenderWithParentId = [
22
21
  'CarouselItem'
@@ -7,7 +7,6 @@ import { usePageStore } from '../contexts/PageContext.js';
7
7
  import '@gem-sdk/adapter-shopify';
8
8
  import 'swr/mutation';
9
9
  import 'swr/infinite';
10
- import { shopifyPriceRounding } from './useFormatMoney.js';
11
10
  import 'vanilla-lazyload';
12
11
  import './useCartUI.js';
13
12
  import { checkInStock } from '../helpers/variant.js';
@@ -204,7 +203,7 @@ const useProductOfferDiscount = ()=>{
204
203
  const price = currentVariant?.price || 0;
205
204
  currentDiscount = currentDiscount * price / 100;
206
205
  }
207
- return currentDiscount ? parseFloat(shopifyPriceRounding(currentDiscount, 2)) : 0;
206
+ return currentDiscount || 0;
208
207
  };
209
208
 
210
209
  export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.47.0-staging.3",
3
+ "version": "1.47.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,8 +27,8 @@
27
27
  "type-check": "yarn tsc --noEmit"
28
28
  },
29
29
  "devDependencies": {
30
- "@gem-sdk/adapter-shopify": "1.47.0-staging.0",
31
- "@gem-sdk/styles": "1.47.0-staging.0",
30
+ "@gem-sdk/adapter-shopify": "1.47.0",
31
+ "@gem-sdk/styles": "1.47.0",
32
32
  "@types/classnames": "^2.3.1"
33
33
  },
34
34
  "dependencies": {