@gem-sdk/components 2.0.0-dev.411 → 2.0.0-dev.412

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.
@@ -330,8 +330,7 @@ const ButtonSettings = [
330
330
  devices: {
331
331
  desktop: {
332
332
  default: {
333
- normal: {},
334
- hover: {}
333
+ normal: {}
335
334
  }
336
335
  }
337
336
  },
@@ -26,7 +26,7 @@ const getClass = (props)=>{
26
26
  'gp-mx-auto gp-max-w-full [&_*]:gp-max-w-full': true
27
27
  });
28
28
  const wrapperYoutubeClasses = system.createClass({
29
- 'gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none': true
29
+ 'gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none gp-background-article': true
30
30
  });
31
31
  const iframeYoutubeClasses = system.createClass({
32
32
  '!gp-w-[500%] !gp-ml-[-200%] !gp-h-full !gp-max-w-none gp-scale-[104%]': true
@@ -13,7 +13,7 @@ const useRowSettings = (rowProps)=>{
13
13
  const [cacheHeightOutViewport, setCacheHeightOutViewport] = React.useState(500);
14
14
  const mode = core.useEditorMode();
15
15
  const pageType = core.usePageType();
16
- const bgVideo = core.getValueByDevice(background, currentDevice);
16
+ const bgVideo = core.getBgVideoByDevice(background, currentDevice);
17
17
  const isRowEmpty = React.useMemo(()=>{
18
18
  return core.isEmptyChildren(children);
19
19
  }, [
@@ -237,22 +237,7 @@ const RowSettings = [
237
237
  showVideo: true,
238
238
  devices: {
239
239
  desktop: {
240
- default: {
241
- type: 'color',
242
- color: 'transparent',
243
- image: {
244
- src: '',
245
- width: 0,
246
- height: 0
247
- },
248
- size: 'cover',
249
- position: {
250
- x: 50,
251
- y: 50
252
- },
253
- repeat: 'no-repeat',
254
- attachment: 'scroll'
255
- }
240
+ default: undefined
256
241
  }
257
242
  },
258
243
  compoDefaultValue: {
@@ -328,8 +328,7 @@ const ButtonSettings = [
328
328
  devices: {
329
329
  desktop: {
330
330
  default: {
331
- normal: {},
332
- hover: {}
331
+ normal: {}
333
332
  }
334
333
  }
335
334
  },
@@ -24,7 +24,7 @@ const getClass = (props)=>{
24
24
  'gp-mx-auto gp-max-w-full [&_*]:gp-max-w-full': true
25
25
  });
26
26
  const wrapperYoutubeClasses = createClass({
27
- 'gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none': true
27
+ 'gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none gp-background-article': true
28
28
  });
29
29
  const iframeYoutubeClasses = createClass({
30
30
  '!gp-w-[500%] !gp-ml-[-200%] !gp-h-full !gp-max-w-none gp-scale-[104%]': true
@@ -1,5 +1,5 @@
1
1
  import { useState, useMemo } from 'react';
2
- import { useCurrentDevice, useEditorMode, usePageType, getValueByDevice, isEmptyChildren, getResponsiveValue } from '@gem-sdk/core';
2
+ import { useCurrentDevice, useEditorMode, usePageType, getBgVideoByDevice, isEmptyChildren, getResponsiveValue } from '@gem-sdk/core';
3
3
  import { createClass } from '@gem-sdk/system';
4
4
  import { useInView } from '../../../intersection-observer/useInView.js';
5
5
 
@@ -11,7 +11,7 @@ const useRowSettings = (rowProps)=>{
11
11
  const [cacheHeightOutViewport, setCacheHeightOutViewport] = useState(500);
12
12
  const mode = useEditorMode();
13
13
  const pageType = usePageType();
14
- const bgVideo = getValueByDevice(background, currentDevice);
14
+ const bgVideo = getBgVideoByDevice(background, currentDevice);
15
15
  const isRowEmpty = useMemo(()=>{
16
16
  return isEmptyChildren(children);
17
17
  }, [
@@ -235,22 +235,7 @@ const RowSettings = [
235
235
  showVideo: true,
236
236
  devices: {
237
237
  desktop: {
238
- default: {
239
- type: 'color',
240
- color: 'transparent',
241
- image: {
242
- src: '',
243
- width: 0,
244
- height: 0
245
- },
246
- size: 'cover',
247
- position: {
248
- x: 50,
249
- y: 50
250
- },
251
- repeat: 'no-repeat',
252
- attachment: 'scroll'
253
- }
238
+ default: undefined
254
239
  }
255
240
  },
256
241
  compoDefaultValue: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.411",
3
+ "version": "2.0.0-dev.412",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  "update-img-src-3rd": "node ./scripts/update-img-src-3rd.js"
24
24
  },
25
25
  "devDependencies": {
26
- "@gem-sdk/core": "2.0.0-dev.403",
26
+ "@gem-sdk/core": "2.0.0-dev.412",
27
27
  "@gem-sdk/styles": "2.0.0-dev.381",
28
28
  "@gem-sdk/system": "2.0.0-dev.371",
29
29
  "@types/react-transition-group": "^4.4.5"