@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.
- package/dist/cjs/collection/setting/collection-paginator/configs/settings.js +2 -1
- package/dist/cjs/estimate-delivery/components/common/getNewSetting.js +1 -1
- package/dist/cjs/line/setting/configs/settings.js +1 -1
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +2 -0
- package/dist/esm/collection/setting/collection-paginator/configs/settings.js +2 -1
- package/dist/esm/estimate-delivery/components/common/getNewSetting.js +1 -1
- package/dist/esm/line/setting/configs/settings.js +1 -1
- package/dist/esm/product/setting/product-button/configs/uiV2.js +2 -0
- package/package.json +1 -1
|
@@ -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 || '',
|
|
@@ -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'
|
|
@@ -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 || '',
|
|
@@ -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'
|