@gem-sdk/components 2.0.0-dev.580 → 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.
@@ -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
  },
@@ -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.580",
3
+ "version": "2.0.0-dev.581",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",