@gem-sdk/core 1.15.9 → 1.16.2
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,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
65
65
|
customProps
|
|
66
66
|
};
|
|
67
67
|
}),
|
|
68
|
-
children: WrapRenderChildren({
|
|
68
|
+
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
69
69
|
uid,
|
|
70
70
|
customProps
|
|
71
71
|
}, item.childrens.map((id)=>RenderChildren({
|
|
@@ -74,7 +74,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
74
74
|
components,
|
|
75
75
|
customProps,
|
|
76
76
|
parentTag: item.tag
|
|
77
|
-
})))
|
|
77
|
+
}))) : ''
|
|
78
78
|
});
|
|
79
79
|
}, ()=>{
|
|
80
80
|
return Component({
|
|
@@ -111,7 +111,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
111
111
|
customProps
|
|
112
112
|
};
|
|
113
113
|
}),
|
|
114
|
-
children: WrapRenderChildren({
|
|
114
|
+
children: !constant.customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
115
115
|
uid,
|
|
116
116
|
customProps
|
|
117
117
|
}, item.childrens.map((id)=>RenderChildren({
|
|
@@ -120,7 +120,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
120
120
|
components,
|
|
121
121
|
customProps,
|
|
122
122
|
parentTag: item.tag
|
|
123
|
-
})))
|
|
123
|
+
}))) : ''
|
|
124
124
|
});
|
|
125
125
|
}, ()=>{
|
|
126
126
|
return Component({
|
|
@@ -35,5 +35,13 @@ const disableWrap = [
|
|
|
35
35
|
'Product',
|
|
36
36
|
'ProductImages'
|
|
37
37
|
];
|
|
38
|
+
const customRenderChildren = [
|
|
39
|
+
"Accordion",
|
|
40
|
+
"AccordionItem",
|
|
41
|
+
"Row",
|
|
42
|
+
"IconList",
|
|
43
|
+
"Tabs"
|
|
44
|
+
];
|
|
38
45
|
|
|
46
|
+
exports.customRenderChildren = customRenderChildren;
|
|
39
47
|
exports.disableWrap = disableWrap;
|
|
@@ -3,7 +3,7 @@ import 'swr';
|
|
|
3
3
|
import { RenderIf, template } from '../helpers/render.js';
|
|
4
4
|
import '../helpers/convert.js';
|
|
5
5
|
import { composeAdvanceStyle } from '../helpers/compose-advance-style.js';
|
|
6
|
-
import { disableWrap } from './constant.js';
|
|
6
|
+
import { disableWrap, customRenderChildren } from './constant.js';
|
|
7
7
|
|
|
8
8
|
const componentsRenderWithParentId = [
|
|
9
9
|
'CarouselItem'
|
|
@@ -61,7 +61,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
61
61
|
customProps
|
|
62
62
|
};
|
|
63
63
|
}),
|
|
64
|
-
children: WrapRenderChildren({
|
|
64
|
+
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
65
65
|
uid,
|
|
66
66
|
customProps
|
|
67
67
|
}, item.childrens.map((id)=>RenderChildren({
|
|
@@ -70,7 +70,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
70
70
|
components,
|
|
71
71
|
customProps,
|
|
72
72
|
parentTag: item.tag
|
|
73
|
-
})))
|
|
73
|
+
}))) : ''
|
|
74
74
|
});
|
|
75
75
|
}, ()=>{
|
|
76
76
|
return Component({
|
|
@@ -107,7 +107,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
107
107
|
customProps
|
|
108
108
|
};
|
|
109
109
|
}),
|
|
110
|
-
children: WrapRenderChildren({
|
|
110
|
+
children: !customRenderChildren.includes(item.tag) ? WrapRenderChildren({
|
|
111
111
|
uid,
|
|
112
112
|
customProps
|
|
113
113
|
}, item.childrens.map((id)=>RenderChildren({
|
|
@@ -116,7 +116,7 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, ...passPr
|
|
|
116
116
|
components,
|
|
117
117
|
customProps,
|
|
118
118
|
parentTag: item.tag
|
|
119
|
-
})))
|
|
119
|
+
}))) : ''
|
|
120
120
|
});
|
|
121
121
|
}, ()=>{
|
|
122
122
|
return Component({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.12.0",
|
|
28
|
-
"@gem-sdk/styles": "1.
|
|
28
|
+
"@gem-sdk/styles": "1.15.12"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|