@gem-sdk/components 2.2.0-staging.45 → 2.2.0-staging.47

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.
@@ -32,7 +32,7 @@ const ProductPrice = (props)=>{
32
32
  bundleItem?.quantity
33
33
  ]);
34
34
  const bundleDiscount = React.useMemo(()=>{
35
- const value = parseInt(bundleItem?.discountValue);
35
+ const value = Number(bundleItem?.discountValue);
36
36
  if (bundleItem?.discountType === 'percentage') {
37
37
  return price * quantityProduct * value / 100;
38
38
  }
@@ -56,9 +56,7 @@ const HTML5Embed = (props)=>{
56
56
  ${initPreloadPoster()}
57
57
  <video
58
58
  id="${videoId}"
59
- class="${core.cls(' gp-w-full', props.className, props.isVideoComponent && !props.lazy ? '' : 'lazy', {
60
- 'gp-object-cover': props.autoplay
61
- })}"
59
+ class="${core.cls(' gp-w-full', props.className, props.isVideoComponent && !props.lazy ? '' : 'lazy')}"
62
60
  style="${props.style}"
63
61
  ${props.controls ? 'controls' : undefined}
64
62
  ${props.loop ? 'loop' : undefined}
@@ -28,7 +28,7 @@ const ProductPrice = (props)=>{
28
28
  bundleItem?.quantity
29
29
  ]);
30
30
  const bundleDiscount = useMemo(()=>{
31
- const value = parseInt(bundleItem?.discountValue);
31
+ const value = Number(bundleItem?.discountValue);
32
32
  if (bundleItem?.discountType === 'percentage') {
33
33
  return price * quantityProduct * value / 100;
34
34
  }
@@ -52,9 +52,7 @@ const HTML5Embed = (props)=>{
52
52
  ${initPreloadPoster()}
53
53
  <video
54
54
  id="${videoId}"
55
- class="${cls(' gp-w-full', props.className, props.isVideoComponent && !props.lazy ? '' : 'lazy', {
56
- 'gp-object-cover': props.autoplay
57
- })}"
55
+ class="${cls(' gp-w-full', props.className, props.isVideoComponent && !props.lazy ? '' : 'lazy')}"
58
56
  style="${props.style}"
59
57
  ${props.controls ? 'controls' : undefined}
60
58
  ${props.loop ? 'loop' : undefined}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.2.0-staging.45",
3
+ "version": "2.2.0-staging.47",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",