@gem-sdk/components 2.0.0-dev.456 → 2.0.0-dev.457

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.
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  'use strict';
2
3
 
3
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -4,14 +4,29 @@ const SettingCode = [
4
4
  {
5
5
  id: 'setting',
6
6
  controls: [
7
+ {
8
+ id: 'contentBanner',
9
+ type: 'banner',
10
+ message: `You can insert HTML, CSS, JavaScript or Liquid code <a class="no-underline text-primary-250" target="_blank" href="https://help.gempages.net/articles/custom-code-element?utm_source=element-setting-tips#custom-code">Learn more</a>`,
11
+ closable: true
12
+ },
13
+ {
14
+ id: 'name',
15
+ type: 'input',
16
+ default: 'Custom code'
17
+ },
7
18
  {
8
19
  id: 'editorData',
9
20
  type: 'customCodeEditor'
10
21
  },
22
+ {
23
+ id: 'speedParallax',
24
+ type: 'customCodeEditor'
25
+ },
11
26
  {
12
27
  id: 'background',
13
- type: 'background',
14
- label: 'Background',
28
+ type: 'background-media',
29
+ ignoreReRender: true,
15
30
  devices: {
16
31
  desktop: {
17
32
  default: {
@@ -31,6 +46,27 @@ const SettingCode = [
31
46
  attachment: 'scroll'
32
47
  }
33
48
  }
49
+ },
50
+ compoDefaultValue: {
51
+ desktop: {
52
+ default: {
53
+ type: 'color',
54
+ color: '#DDDDDD',
55
+ image: {
56
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
57
+ width: 1200,
58
+ height: 480
59
+ },
60
+ size: 'cover',
61
+ position: {
62
+ x: 50,
63
+ y: 50
64
+ },
65
+ repeat: 'no-repeat',
66
+ attachment: 'scroll',
67
+ preload: false
68
+ }
69
+ }
34
70
  }
35
71
  },
36
72
  {
@@ -2,21 +2,27 @@
2
2
 
3
3
  const SettingUIV2 = [
4
4
  {
5
- messageConfig: {
6
- type: 'info',
7
- message: 'You can insert HTML, CSS, JavaScript or Liquid code.',
8
- link: {
9
- label: 'Learn more',
10
- url: 'https://help.gempages.net/articles/custom-code-element?utm_source=element-setting-tips#custom-code'
5
+ controls: [
6
+ {
7
+ setting: {
8
+ id: 'contentBanner'
9
+ },
10
+ layout: 'vertical'
11
11
  }
12
+ ]
13
+ },
14
+ {
15
+ label: {
16
+ en: 'Custom code'
12
17
  },
13
18
  controls: [
14
19
  {
15
- type: 'control',
16
20
  setting: {
17
21
  id: 'editorData'
18
22
  },
19
- layout: 'vertical'
23
+ label: {
24
+ en: 'Code'
25
+ }
20
26
  }
21
27
  ]
22
28
  },
@@ -44,6 +50,22 @@ const SettingUIV2 = [
44
50
  }
45
51
  ]
46
52
  },
53
+ {
54
+ label: {
55
+ en: 'Configuration'
56
+ },
57
+ controls: [
58
+ {
59
+ type: 'control',
60
+ setting: {
61
+ id: 'name'
62
+ },
63
+ label: {
64
+ en: 'Name'
65
+ }
66
+ }
67
+ ]
68
+ },
47
69
  {
48
70
  controls: [
49
71
  {
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
3
  import Head from 'next/head';
3
4
  import useCSSCode from '../hooks/useCSSCode.js';
@@ -2,14 +2,29 @@ const SettingCode = [
2
2
  {
3
3
  id: 'setting',
4
4
  controls: [
5
+ {
6
+ id: 'contentBanner',
7
+ type: 'banner',
8
+ message: `You can insert HTML, CSS, JavaScript or Liquid code <a class="no-underline text-primary-250" target="_blank" href="https://help.gempages.net/articles/custom-code-element?utm_source=element-setting-tips#custom-code">Learn more</a>`,
9
+ closable: true
10
+ },
11
+ {
12
+ id: 'name',
13
+ type: 'input',
14
+ default: 'Custom code'
15
+ },
5
16
  {
6
17
  id: 'editorData',
7
18
  type: 'customCodeEditor'
8
19
  },
20
+ {
21
+ id: 'speedParallax',
22
+ type: 'customCodeEditor'
23
+ },
9
24
  {
10
25
  id: 'background',
11
- type: 'background',
12
- label: 'Background',
26
+ type: 'background-media',
27
+ ignoreReRender: true,
13
28
  devices: {
14
29
  desktop: {
15
30
  default: {
@@ -29,6 +44,27 @@ const SettingCode = [
29
44
  attachment: 'scroll'
30
45
  }
31
46
  }
47
+ },
48
+ compoDefaultValue: {
49
+ desktop: {
50
+ default: {
51
+ type: 'color',
52
+ color: '#DDDDDD',
53
+ image: {
54
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
55
+ width: 1200,
56
+ height: 480
57
+ },
58
+ size: 'cover',
59
+ position: {
60
+ x: 50,
61
+ y: 50
62
+ },
63
+ repeat: 'no-repeat',
64
+ attachment: 'scroll',
65
+ preload: false
66
+ }
67
+ }
32
68
  }
33
69
  },
34
70
  {
@@ -1,20 +1,26 @@
1
1
  const SettingUIV2 = [
2
2
  {
3
- messageConfig: {
4
- type: 'info',
5
- message: 'You can insert HTML, CSS, JavaScript or Liquid code.',
6
- link: {
7
- label: 'Learn more',
8
- url: 'https://help.gempages.net/articles/custom-code-element?utm_source=element-setting-tips#custom-code'
3
+ controls: [
4
+ {
5
+ setting: {
6
+ id: 'contentBanner'
7
+ },
8
+ layout: 'vertical'
9
9
  }
10
+ ]
11
+ },
12
+ {
13
+ label: {
14
+ en: 'Custom code'
10
15
  },
11
16
  controls: [
12
17
  {
13
- type: 'control',
14
18
  setting: {
15
19
  id: 'editorData'
16
20
  },
17
- layout: 'vertical'
21
+ label: {
22
+ en: 'Code'
23
+ }
18
24
  }
19
25
  ]
20
26
  },
@@ -42,6 +48,22 @@ const SettingUIV2 = [
42
48
  }
43
49
  ]
44
50
  },
51
+ {
52
+ label: {
53
+ en: 'Configuration'
54
+ },
55
+ controls: [
56
+ {
57
+ type: 'control',
58
+ setting: {
59
+ id: 'name'
60
+ },
61
+ label: {
62
+ en: 'Name'
63
+ }
64
+ }
65
+ ]
66
+ },
45
67
  {
46
68
  controls: [
47
69
  {
@@ -1201,9 +1201,12 @@ type CSSCodeProps = BasePropsWrap<{
1201
1201
  javascript?: string;
1202
1202
  cssPlaceholder?: string;
1203
1203
  };
1204
- background?: ObjectDevices$1<Background>;
1204
+ background?: ObjectDevices$1<BackgroundMedia>;
1205
1205
  preloadBgImage?: boolean;
1206
1206
  align?: ObjectDevices$1<AlignProp>;
1207
+ name?: string;
1208
+ speedParallax?: any;
1209
+ contentBanner?: string;
1207
1210
  }> & {
1208
1211
  advanced?: any;
1209
1212
  children?: React.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.456",
3
+ "version": "2.0.0-dev.457",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",