@gem-sdk/components 2.0.0-dev.579 → 2.0.0-dev.581

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.
@@ -20,7 +20,7 @@ const ArticleImage = ({ className, setting = {}, styles = {}, advanced, builderP
20
20
  article
21
21
  ]);
22
22
  return /*#__PURE__*/ jsxRuntime.jsx("div", {
23
- className: core.cls('gp-text-center gp-overflow-hidden', className),
23
+ className: core.cls('gp-text-center', className),
24
24
  style: {
25
25
  borderRadius: 'inherit'
26
26
  },
@@ -12,7 +12,7 @@ const ArticleImage = (props)=>{
12
12
  const { builderProps } = props;
13
13
  const target = setting?.openNewTab ? '_blank' : '_self';
14
14
  return core.template`
15
- <div class="${core.cls('gp-text-center gp-overflow-hidden', props?.className)}" style="border-radius: inherit">
15
+ <div class="${core.cls('gp-text-center', props?.className)}" style="border-radius: inherit">
16
16
  ${setting?.linkArticle ? `
17
17
  <a href="${helpers.getLinkArticle(setting.linkArticle, setting.customURL)}" target="${target}" title="{{article.title}}">
18
18
  ${Image_liquid.default({
@@ -254,7 +254,7 @@ const ArticleListSettings = [
254
254
  distance: '4px',
255
255
  blur: '4px',
256
256
  spread: '0px',
257
- color: 'rgba(18, 18, 18, 0.77)',
257
+ color: '#212121',
258
258
  angle: 45,
259
259
  enable: true
260
260
  }
@@ -33,7 +33,7 @@ const ImageSettings = [
33
33
  controls: [
34
34
  {
35
35
  id: 'image',
36
- type: 'image',
36
+ type: 'image-select',
37
37
  label: 'Pick Image',
38
38
  default: {
39
39
  src: 'https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/',
@@ -93,6 +93,64 @@ const SettingUIV2 = [
93
93
  },
94
94
  controls: [
95
95
  {
96
+ conditionDisplay: 'isAdaptive === false',
97
+ setting: {
98
+ id: 'image'
99
+ },
100
+ layout: 'vertical',
101
+ options: {
102
+ updateFields: [
103
+ {
104
+ field: 'preload',
105
+ settingId: 'priority'
106
+ },
107
+ {
108
+ field: 'altText',
109
+ settingId: 'alt'
110
+ },
111
+ {
112
+ field: 'imageTitle',
113
+ settingId: 'title'
114
+ }
115
+ ]
116
+ },
117
+ controlChangeTrigger: {
118
+ settings: [
119
+ {
120
+ action: {
121
+ controlId: 'priority',
122
+ valueFromField: 'preload',
123
+ groupType: 'setting',
124
+ controlType: 'setting',
125
+ removeDevice: true
126
+ }
127
+ },
128
+ {
129
+ action: {
130
+ controlId: 'alt',
131
+ valueFromField: 'altText',
132
+ groupType: 'setting',
133
+ controlType: 'setting',
134
+ removeDevice: true
135
+ }
136
+ },
137
+ {
138
+ action: {
139
+ controlId: 'title',
140
+ valueFromField: 'imageTitle',
141
+ groupType: 'setting',
142
+ controlType: 'setting',
143
+ removeDevice: true
144
+ }
145
+ }
146
+ ],
147
+ options: {
148
+ noRecordHistory: true
149
+ }
150
+ }
151
+ },
152
+ {
153
+ conditionDisplay: 'isAdaptive === true',
96
154
  setting: {
97
155
  id: 'srcSet'
98
156
  },
@@ -16,7 +16,7 @@ const ArticleImage = ({ className, setting = {}, styles = {}, advanced, builderP
16
16
  article
17
17
  ]);
18
18
  return /*#__PURE__*/ jsx("div", {
19
- className: cls('gp-text-center gp-overflow-hidden', className),
19
+ className: cls('gp-text-center', className),
20
20
  style: {
21
21
  borderRadius: 'inherit'
22
22
  },
@@ -8,7 +8,7 @@ const ArticleImage = (props)=>{
8
8
  const { builderProps } = props;
9
9
  const target = setting?.openNewTab ? '_blank' : '_self';
10
10
  return template`
11
- <div class="${cls('gp-text-center gp-overflow-hidden', props?.className)}" style="border-radius: inherit">
11
+ <div class="${cls('gp-text-center', props?.className)}" style="border-radius: inherit">
12
12
  ${setting?.linkArticle ? `
13
13
  <a href="${getLinkArticle(setting.linkArticle, setting.customURL)}" target="${target}" title="{{article.title}}">
14
14
  ${Image({
@@ -252,7 +252,7 @@ const ArticleListSettings = [
252
252
  distance: '4px',
253
253
  blur: '4px',
254
254
  spread: '0px',
255
- color: 'rgba(18, 18, 18, 0.77)',
255
+ color: '#212121',
256
256
  angle: 45,
257
257
  enable: true
258
258
  }
@@ -31,7 +31,7 @@ const ImageSettings = [
31
31
  controls: [
32
32
  {
33
33
  id: 'image',
34
- type: 'image',
34
+ type: 'image-select',
35
35
  label: 'Pick Image',
36
36
  default: {
37
37
  src: 'https://ucarecdn.com/ee6d5074-1640-4cc7-8933-47c8589c3dee/-/format/auto/',
@@ -91,6 +91,64 @@ const SettingUIV2 = [
91
91
  },
92
92
  controls: [
93
93
  {
94
+ conditionDisplay: 'isAdaptive === false',
95
+ setting: {
96
+ id: 'image'
97
+ },
98
+ layout: 'vertical',
99
+ options: {
100
+ updateFields: [
101
+ {
102
+ field: 'preload',
103
+ settingId: 'priority'
104
+ },
105
+ {
106
+ field: 'altText',
107
+ settingId: 'alt'
108
+ },
109
+ {
110
+ field: 'imageTitle',
111
+ settingId: 'title'
112
+ }
113
+ ]
114
+ },
115
+ controlChangeTrigger: {
116
+ settings: [
117
+ {
118
+ action: {
119
+ controlId: 'priority',
120
+ valueFromField: 'preload',
121
+ groupType: 'setting',
122
+ controlType: 'setting',
123
+ removeDevice: true
124
+ }
125
+ },
126
+ {
127
+ action: {
128
+ controlId: 'alt',
129
+ valueFromField: 'altText',
130
+ groupType: 'setting',
131
+ controlType: 'setting',
132
+ removeDevice: true
133
+ }
134
+ },
135
+ {
136
+ action: {
137
+ controlId: 'title',
138
+ valueFromField: 'imageTitle',
139
+ groupType: 'setting',
140
+ controlType: 'setting',
141
+ removeDevice: true
142
+ }
143
+ }
144
+ ],
145
+ options: {
146
+ noRecordHistory: true
147
+ }
148
+ }
149
+ },
150
+ {
151
+ conditionDisplay: 'isAdaptive === true',
94
152
  setting: {
95
153
  id: 'srcSet'
96
154
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.579",
3
+ "version": "2.0.0-dev.581",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",