@gem-sdk/core 1.23.0-staging.227 → 1.23.0-staging.228
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.
|
@@ -212,6 +212,12 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
212
212
|
}
|
|
213
213
|
return false;
|
|
214
214
|
};
|
|
215
|
+
const getSectionName = ()=>{
|
|
216
|
+
if (props.name && props.name === `Section ${props.uid}`) {
|
|
217
|
+
return `Section ${getIndexSection() + 1}${getSectionNumber() >= SECTION_LIMIT - 5 ? `/${SECTION_LIMIT}` : ''}`;
|
|
218
|
+
}
|
|
219
|
+
return props.name;
|
|
220
|
+
};
|
|
215
221
|
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
216
222
|
children: [
|
|
217
223
|
!(props.tag == 'Section' && isThemeSectionEditor) && /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
@@ -262,7 +268,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
262
268
|
}),
|
|
263
269
|
props.tag == 'Section' ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
264
270
|
"data-toolbar-name": true,
|
|
265
|
-
children:
|
|
271
|
+
children: getSectionName()
|
|
266
272
|
}) : /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
267
273
|
"data-toolbar-name": true,
|
|
268
274
|
children: toolbarName()
|
|
@@ -210,6 +210,12 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
210
210
|
}
|
|
211
211
|
return false;
|
|
212
212
|
};
|
|
213
|
+
const getSectionName = ()=>{
|
|
214
|
+
if (props.name && props.name === `Section ${props.uid}`) {
|
|
215
|
+
return `Section ${getIndexSection() + 1}${getSectionNumber() >= SECTION_LIMIT - 5 ? `/${SECTION_LIMIT}` : ''}`;
|
|
216
|
+
}
|
|
217
|
+
return props.name;
|
|
218
|
+
};
|
|
213
219
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
214
220
|
children: [
|
|
215
221
|
!(props.tag == 'Section' && isThemeSectionEditor) && /*#__PURE__*/ jsxs("div", {
|
|
@@ -260,7 +266,7 @@ const ComponentToolbarPreview = ({ ...props })=>{
|
|
|
260
266
|
}),
|
|
261
267
|
props.tag == 'Section' ? /*#__PURE__*/ jsx("div", {
|
|
262
268
|
"data-toolbar-name": true,
|
|
263
|
-
children:
|
|
269
|
+
children: getSectionName()
|
|
264
270
|
}) : /*#__PURE__*/ jsx("div", {
|
|
265
271
|
"data-toolbar-name": true,
|
|
266
272
|
children: toolbarName()
|