@gem-sdk/components 2.0.0-dev.625 → 2.0.0-dev.627

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.
@@ -65,7 +65,8 @@ const CollectionPaginatorSettings = [
65
65
  ],
66
66
  step: 1,
67
67
  max: 40,
68
- default: '12px'
68
+ default: '12px',
69
+ ignoreMax: true
69
70
  },
70
71
  {
71
72
  id: 'text',
@@ -61,7 +61,7 @@ const getTextContent = ({ type, styles, setting, builderProps, pageContext })=>{
61
61
  const estimateClasses = system.createClass({
62
62
  'estimate-date-main': true
63
63
  });
64
- const textWithTranslate = isReact ? setting?.customText : helpers.getDynamicSourceLocales({
64
+ const textWithTranslate = isReact || pageContext?.isPreviewing ? setting?.customText : helpers.getDynamicSourceLocales({
65
65
  val: setting?.customText,
66
66
  uid: builderProps?.uid,
67
67
  settingId: setting?.translate || '',
@@ -212,7 +212,7 @@ const LineSettings = [
212
212
  ],
213
213
  devices: {
214
214
  desktop: {
215
- default: 'left'
215
+ default: 'center'
216
216
  }
217
217
  }
218
218
  },
@@ -896,6 +896,7 @@ const SettingUIV2 = [
896
896
  conditionDisplay: "enableMessage === true && actionEffect === 'continue-shopping'",
897
897
  type: 'combo',
898
898
  getValueFromSettingID: 'successMessage',
899
+ compoDefaultValue: 'Add product to cart successfully',
899
900
  iconName: 'polaris-check-circle',
900
901
  isHideClear: true,
901
902
  popoverLabel: {
@@ -927,6 +928,7 @@ const SettingUIV2 = [
927
928
  fixedValue: 'Edit',
928
929
  iconName: 'polaris-alert-bubble',
929
930
  getValueFromSettingID: 'errorMessage',
931
+ compoDefaultValue: 'Cannot add product to cart',
930
932
  isHideClear: true,
931
933
  popoverLabel: {
932
934
  en: 'Error message'
@@ -63,7 +63,8 @@ const CollectionPaginatorSettings = [
63
63
  ],
64
64
  step: 1,
65
65
  max: 40,
66
- default: '12px'
66
+ default: '12px',
67
+ ignoreMax: true
67
68
  },
68
69
  {
69
70
  id: 'text',
@@ -59,7 +59,7 @@ const getTextContent = ({ type, styles, setting, builderProps, pageContext })=>{
59
59
  const estimateClasses = createClass({
60
60
  'estimate-date-main': true
61
61
  });
62
- const textWithTranslate = isReact ? setting?.customText : getDynamicSourceLocales({
62
+ const textWithTranslate = isReact || pageContext?.isPreviewing ? setting?.customText : getDynamicSourceLocales({
63
63
  val: setting?.customText,
64
64
  uid: builderProps?.uid,
65
65
  settingId: setting?.translate || '',
@@ -210,7 +210,7 @@ const LineSettings = [
210
210
  ],
211
211
  devices: {
212
212
  desktop: {
213
- default: 'left'
213
+ default: 'center'
214
214
  }
215
215
  }
216
216
  },
@@ -894,6 +894,7 @@ const SettingUIV2 = [
894
894
  conditionDisplay: "enableMessage === true && actionEffect === 'continue-shopping'",
895
895
  type: 'combo',
896
896
  getValueFromSettingID: 'successMessage',
897
+ compoDefaultValue: 'Add product to cart successfully',
897
898
  iconName: 'polaris-check-circle',
898
899
  isHideClear: true,
899
900
  popoverLabel: {
@@ -925,6 +926,7 @@ const SettingUIV2 = [
925
926
  fixedValue: 'Edit',
926
927
  iconName: 'polaris-alert-bubble',
927
928
  getValueFromSettingID: 'errorMessage',
929
+ compoDefaultValue: 'Cannot add product to cart',
928
930
  isHideClear: true,
929
931
  popoverLabel: {
930
932
  en: 'Error message'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.625",
3
+ "version": "2.0.0-dev.627",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",