@gem-sdk/components 2.0.0-dev.553 → 2.0.0-dev.554

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.
@@ -9,10 +9,9 @@ var system = require('@gem-sdk/system');
9
9
  var classes = require('./common/classes.js');
10
10
  var styles = require('./common/styles.js');
11
11
  var getNextImageReactAttrs = require('./helpers/getNextImageReactAttrs.js');
12
- var constants = require('./common/constants.js');
13
12
 
14
13
  const NextImage = (props)=>{
15
- const { style, imgRef, setting, priority, className, width = constants.NEXT_IMAGE_CONFIG.DEFAULT_WIDTH_PROPS, height = constants.NEXT_IMAGE_CONFIG.DEFAULT_HEIGHT_PROPS, isNotLazyload, isDisableAspectStyle, enableLazyLoadImage = true } = props;
14
+ const { style, imgRef, setting, priority, className, width, height, isNotLazyload, isDisableAspectStyle, enableLazyLoadImage = true } = props;
16
15
  const hasLazyLoad = !isNotLazyload && enableLazyLoadImage && !priority;
17
16
  const nextImageStyles = system.createStyle({
18
17
  ...style,
@@ -9,7 +9,7 @@ var styles = require('./common/styles.js');
9
9
  var getNextImageLiquidAttrs = require('./helpers/getNextImageLiquidAttrs.js');
10
10
 
11
11
  const NextImage = (props)=>{
12
- const { style, setting, priority, className, pageContext, width = 2237, height = 1678, isNotLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
12
+ const { style, setting, priority, className, pageContext, width, height, isNotLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
13
13
  const hasLazyLoad = !isNotLazyload && enableLazyLoadImage && !priority;
14
14
  const nextImageStyles = system.createStyle({
15
15
  ...style,
@@ -5,10 +5,9 @@ import { createStyle, createClass } from '@gem-sdk/system';
5
5
  import { getNextImageClasses } from './common/classes.js';
6
6
  import { getNextImageStyles } from './common/styles.js';
7
7
  import { getNextImageReactAttrs } from './helpers/getNextImageReactAttrs.js';
8
- import { NEXT_IMAGE_CONFIG } from './common/constants.js';
9
8
 
10
9
  const NextImage = (props)=>{
11
- const { style, imgRef, setting, priority, className, width = NEXT_IMAGE_CONFIG.DEFAULT_WIDTH_PROPS, height = NEXT_IMAGE_CONFIG.DEFAULT_HEIGHT_PROPS, isNotLazyload, isDisableAspectStyle, enableLazyLoadImage = true } = props;
10
+ const { style, imgRef, setting, priority, className, width, height, isNotLazyload, isDisableAspectStyle, enableLazyLoadImage = true } = props;
12
11
  const hasLazyLoad = !isNotLazyload && enableLazyLoadImage && !priority;
13
12
  const nextImageStyles = createStyle({
14
13
  ...style,
@@ -5,7 +5,7 @@ import { getNextImageStyles } from './common/styles.js';
5
5
  import { getNextImageLiquidAttrs } from './helpers/getNextImageLiquidAttrs.js';
6
6
 
7
7
  const NextImage = (props)=>{
8
- const { style, setting, priority, className, pageContext, width = 2237, height = 1678, isNotLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
8
+ const { style, setting, priority, className, pageContext, width, height, isNotLazyload, isDisableObjectFit, isDisableAspectStyle, enableLazyLoadImage = true } = props;
9
9
  const hasLazyLoad = !isNotLazyload && enableLazyLoadImage && !priority;
10
10
  const nextImageStyles = createStyle({
11
11
  ...style,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.553",
3
+ "version": "2.0.0-dev.554",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",