@gem-sdk/components 2.0.0-dev.332 → 2.0.0-dev.333

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.
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ const productFeatureImageUI = [
4
+ {
5
+ type: 'control',
6
+ setting: {
7
+ id: 'ftAspectRatio'
8
+ },
9
+ label: {
10
+ en: 'Shape'
11
+ }
12
+ },
13
+ {
14
+ type: 'control',
15
+ setting: {
16
+ id: 'ftWidth'
17
+ },
18
+ label: {
19
+ en: 'Width'
20
+ }
21
+ },
22
+ {
23
+ type: 'control',
24
+ label: {
25
+ en: 'Image scale'
26
+ },
27
+ setting: {
28
+ id: 'ftObjectFit'
29
+ }
30
+ }
31
+ ];
32
+
33
+ exports.productFeatureImageUI = productFeatureImageUI;
@@ -0,0 +1,85 @@
1
+ 'use strict';
2
+
3
+ const productGalleryImageUI = [
4
+ {
5
+ type: 'control',
6
+ label: {
7
+ en: 'Display type'
8
+ },
9
+ condition: 'layoutType === "bottom-center"',
10
+ setting: {
11
+ id: 'displayType'
12
+ }
13
+ },
14
+ {
15
+ type: 'control',
16
+ label: {
17
+ en: 'Item per slide'
18
+ },
19
+ condition: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
20
+ setting: {
21
+ id: 'ilItemPerSlide'
22
+ }
23
+ },
24
+ {
25
+ type: 'control',
26
+ label: {
27
+ en: 'Item per line'
28
+ },
29
+ condition: 'displayType === "grid" && layoutType === "bottom-center"',
30
+ setting: {
31
+ id: 'ilNumberPerRow'
32
+ }
33
+ },
34
+ {
35
+ type: 'control',
36
+ label: {
37
+ en: 'Shape'
38
+ },
39
+ setting: {
40
+ id: 'ilAspectRatio'
41
+ }
42
+ },
43
+ {
44
+ type: 'control',
45
+ label: {
46
+ en: 'Image scale'
47
+ },
48
+ setting: {
49
+ id: 'ilObjectFit'
50
+ }
51
+ },
52
+ {
53
+ type: 'control',
54
+ label: {
55
+ en: 'Active border'
56
+ },
57
+ setting: {
58
+ id: 'ilBorder'
59
+ },
60
+ isMoreSetting: true
61
+ },
62
+ {
63
+ type: 'control',
64
+ label: {
65
+ en: 'Spacing'
66
+ },
67
+ setting: {
68
+ id: 'ilSpacing'
69
+ },
70
+ isMoreSetting: true
71
+ },
72
+ {
73
+ type: 'control',
74
+ label: {
75
+ en: 'Navigation'
76
+ },
77
+ setting: {
78
+ id: 'ilNavigation'
79
+ },
80
+ layout: 'vertical',
81
+ isMoreSetting: true
82
+ }
83
+ ];
84
+
85
+ exports.productGalleryImageUI = productGalleryImageUI;
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ const productLayoutUI = [
4
+ {
5
+ type: 'control',
6
+ label: {
7
+ en: ''
8
+ },
9
+ setting: {
10
+ id: 'layoutType'
11
+ },
12
+ layout: 'vertical'
13
+ },
14
+ {
15
+ type: 'control',
16
+ label: {
17
+ en: 'Ratio'
18
+ },
19
+ setting: {
20
+ id: 'ratioLayoutLeft'
21
+ },
22
+ layout: 'vertical',
23
+ condition: "layoutType === 'left'"
24
+ },
25
+ {
26
+ type: 'control',
27
+ label: {
28
+ en: 'Ratio'
29
+ },
30
+ setting: {
31
+ id: 'ratioLayoutRight'
32
+ },
33
+ layout: 'vertical',
34
+ condition: "layoutType === 'right'"
35
+ },
36
+ {
37
+ type: 'control',
38
+ label: {
39
+ en: 'Spacing'
40
+ },
41
+ setting: {
42
+ id: 'spacingHoz'
43
+ },
44
+ condition: "layoutType === 'left' || layoutType === 'right'",
45
+ isMoreSetting: true
46
+ },
47
+ {
48
+ type: 'control',
49
+ label: {
50
+ en: 'Spacing'
51
+ },
52
+ setting: {
53
+ id: 'spacingVertical'
54
+ },
55
+ condition: "layoutType === 'bottom-center'"
56
+ },
57
+ {
58
+ type: 'control',
59
+ label: {
60
+ en: 'Spacing'
61
+ },
62
+ setting: {
63
+ id: 'ilSpacing'
64
+ },
65
+ condition: "layoutType === 'two-col' || layoutType === 'one-col'"
66
+ }
67
+ ];
68
+
69
+ exports.productLayoutUI = productLayoutUI;
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var uiV2 = require('./uiV2.js');
6
6
  var settingV2 = require('./setting-v2.js');
7
+ var uiV1 = require('./uiV1.js');
7
8
 
8
9
  const config = {
9
10
  tag: 'PostPurchaseProductImages',
@@ -14,6 +15,7 @@ const config = {
14
15
  </svg>
15
16
  `,
16
17
  settings: settingV2.SettingV2,
18
+ ui: uiV1.SettingUIV1,
17
19
  uiV2: uiV2.SettingUIV2,
18
20
  editorConfigs: {
19
21
  placeholder: {
@@ -36,7 +38,7 @@ const config = {
36
38
  <rect x="10" y="24" width="10" height="10" rx="3" transform="rotate(90 10 24)" fill="#494949"/>
37
39
  <rect x="14" width="56" height="48" rx="3" fill="#494949"/>
38
40
  <path d="M34.5 18.766L39.495 17.0288C39.495 17.0288 40.1024 18.4454 42.005 18.4454C43.9076 18.4454 44.5083 17 44.5083 17L49.5 18.766L48.6692 23.1222H46.1642V31H37.825V23.1196H35.3325L34.5 18.766Z" fill="#D6D6D6"/>
39
- </svg>
41
+ </svg>
40
42
  `
41
43
  },
42
44
  components: [
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var ProductImageLayoutSetting = require('./ProductImageLayoutSetting.js');
4
+ var ProductFeatureImage = require('./ProductFeatureImage.js');
5
+ var ProductGalleryImage = require('./ProductGalleryImage.js');
6
+
7
+ const SettingUIV1 = [
8
+ {
9
+ type: 'group',
10
+ label: {
11
+ en: 'Layout'
12
+ },
13
+ controls: ProductImageLayoutSetting.productLayoutUI
14
+ },
15
+ {
16
+ type: 'group',
17
+ label: {
18
+ en: 'Featured image'
19
+ },
20
+ condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
21
+ controls: ProductFeatureImage.productFeatureImageUI
22
+ },
23
+ {
24
+ type: 'group',
25
+ label: {
26
+ en: 'Image list'
27
+ },
28
+ condition: "layoutType !== 'only-feature'",
29
+ controls: ProductGalleryImage.productGalleryImageUI
30
+ },
31
+ {
32
+ type: 'control',
33
+ setting: {
34
+ id: 'align'
35
+ },
36
+ label: {
37
+ en: 'Align'
38
+ }
39
+ }
40
+ ];
41
+
42
+ exports.SettingUIV1 = SettingUIV1;
@@ -0,0 +1,31 @@
1
+ const productFeatureImageUI = [
2
+ {
3
+ type: 'control',
4
+ setting: {
5
+ id: 'ftAspectRatio'
6
+ },
7
+ label: {
8
+ en: 'Shape'
9
+ }
10
+ },
11
+ {
12
+ type: 'control',
13
+ setting: {
14
+ id: 'ftWidth'
15
+ },
16
+ label: {
17
+ en: 'Width'
18
+ }
19
+ },
20
+ {
21
+ type: 'control',
22
+ label: {
23
+ en: 'Image scale'
24
+ },
25
+ setting: {
26
+ id: 'ftObjectFit'
27
+ }
28
+ }
29
+ ];
30
+
31
+ export { productFeatureImageUI };
@@ -0,0 +1,83 @@
1
+ const productGalleryImageUI = [
2
+ {
3
+ type: 'control',
4
+ label: {
5
+ en: 'Display type'
6
+ },
7
+ condition: 'layoutType === "bottom-center"',
8
+ setting: {
9
+ id: 'displayType'
10
+ }
11
+ },
12
+ {
13
+ type: 'control',
14
+ label: {
15
+ en: 'Item per slide'
16
+ },
17
+ condition: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
18
+ setting: {
19
+ id: 'ilItemPerSlide'
20
+ }
21
+ },
22
+ {
23
+ type: 'control',
24
+ label: {
25
+ en: 'Item per line'
26
+ },
27
+ condition: 'displayType === "grid" && layoutType === "bottom-center"',
28
+ setting: {
29
+ id: 'ilNumberPerRow'
30
+ }
31
+ },
32
+ {
33
+ type: 'control',
34
+ label: {
35
+ en: 'Shape'
36
+ },
37
+ setting: {
38
+ id: 'ilAspectRatio'
39
+ }
40
+ },
41
+ {
42
+ type: 'control',
43
+ label: {
44
+ en: 'Image scale'
45
+ },
46
+ setting: {
47
+ id: 'ilObjectFit'
48
+ }
49
+ },
50
+ {
51
+ type: 'control',
52
+ label: {
53
+ en: 'Active border'
54
+ },
55
+ setting: {
56
+ id: 'ilBorder'
57
+ },
58
+ isMoreSetting: true
59
+ },
60
+ {
61
+ type: 'control',
62
+ label: {
63
+ en: 'Spacing'
64
+ },
65
+ setting: {
66
+ id: 'ilSpacing'
67
+ },
68
+ isMoreSetting: true
69
+ },
70
+ {
71
+ type: 'control',
72
+ label: {
73
+ en: 'Navigation'
74
+ },
75
+ setting: {
76
+ id: 'ilNavigation'
77
+ },
78
+ layout: 'vertical',
79
+ isMoreSetting: true
80
+ }
81
+ ];
82
+
83
+ export { productGalleryImageUI };
@@ -0,0 +1,67 @@
1
+ const productLayoutUI = [
2
+ {
3
+ type: 'control',
4
+ label: {
5
+ en: ''
6
+ },
7
+ setting: {
8
+ id: 'layoutType'
9
+ },
10
+ layout: 'vertical'
11
+ },
12
+ {
13
+ type: 'control',
14
+ label: {
15
+ en: 'Ratio'
16
+ },
17
+ setting: {
18
+ id: 'ratioLayoutLeft'
19
+ },
20
+ layout: 'vertical',
21
+ condition: "layoutType === 'left'"
22
+ },
23
+ {
24
+ type: 'control',
25
+ label: {
26
+ en: 'Ratio'
27
+ },
28
+ setting: {
29
+ id: 'ratioLayoutRight'
30
+ },
31
+ layout: 'vertical',
32
+ condition: "layoutType === 'right'"
33
+ },
34
+ {
35
+ type: 'control',
36
+ label: {
37
+ en: 'Spacing'
38
+ },
39
+ setting: {
40
+ id: 'spacingHoz'
41
+ },
42
+ condition: "layoutType === 'left' || layoutType === 'right'",
43
+ isMoreSetting: true
44
+ },
45
+ {
46
+ type: 'control',
47
+ label: {
48
+ en: 'Spacing'
49
+ },
50
+ setting: {
51
+ id: 'spacingVertical'
52
+ },
53
+ condition: "layoutType === 'bottom-center'"
54
+ },
55
+ {
56
+ type: 'control',
57
+ label: {
58
+ en: 'Spacing'
59
+ },
60
+ setting: {
61
+ id: 'ilSpacing'
62
+ },
63
+ condition: "layoutType === 'two-col' || layoutType === 'one-col'"
64
+ }
65
+ ];
66
+
67
+ export { productLayoutUI };
@@ -1,5 +1,6 @@
1
1
  import { SettingUIV2 } from './uiV2.js';
2
2
  import { SettingV2 } from './setting-v2.js';
3
+ import { SettingUIV1 } from './uiV1.js';
3
4
 
4
5
  const config = {
5
6
  tag: 'PostPurchaseProductImages',
@@ -10,6 +11,7 @@ const config = {
10
11
  </svg>
11
12
  `,
12
13
  settings: SettingV2,
14
+ ui: SettingUIV1,
13
15
  uiV2: SettingUIV2,
14
16
  editorConfigs: {
15
17
  placeholder: {
@@ -32,7 +34,7 @@ const config = {
32
34
  <rect x="10" y="24" width="10" height="10" rx="3" transform="rotate(90 10 24)" fill="#494949"/>
33
35
  <rect x="14" width="56" height="48" rx="3" fill="#494949"/>
34
36
  <path d="M34.5 18.766L39.495 17.0288C39.495 17.0288 40.1024 18.4454 42.005 18.4454C43.9076 18.4454 44.5083 17 44.5083 17L49.5 18.766L48.6692 23.1222H46.1642V31H37.825V23.1196H35.3325L34.5 18.766Z" fill="#D6D6D6"/>
35
- </svg>
37
+ </svg>
36
38
  `
37
39
  },
38
40
  components: [
@@ -0,0 +1,40 @@
1
+ import { productLayoutUI } from './ProductImageLayoutSetting.js';
2
+ import { productFeatureImageUI } from './ProductFeatureImage.js';
3
+ import { productGalleryImageUI } from './ProductGalleryImage.js';
4
+
5
+ const SettingUIV1 = [
6
+ {
7
+ type: 'group',
8
+ label: {
9
+ en: 'Layout'
10
+ },
11
+ controls: productLayoutUI
12
+ },
13
+ {
14
+ type: 'group',
15
+ label: {
16
+ en: 'Featured image'
17
+ },
18
+ condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
19
+ controls: productFeatureImageUI
20
+ },
21
+ {
22
+ type: 'group',
23
+ label: {
24
+ en: 'Image list'
25
+ },
26
+ condition: "layoutType !== 'only-feature'",
27
+ controls: productGalleryImageUI
28
+ },
29
+ {
30
+ type: 'control',
31
+ setting: {
32
+ id: 'align'
33
+ },
34
+ label: {
35
+ en: 'Align'
36
+ }
37
+ }
38
+ ];
39
+
40
+ export { SettingUIV1 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.332",
3
+ "version": "2.0.0-dev.333",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",