@gem-sdk/core 1.47.0-dev.4 → 1.47.0-dev.5
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.
|
@@ -20,7 +20,6 @@ require('dayjs');
|
|
|
20
20
|
var composeAdvanceStyle = require('../helpers/compose-advance-style.js');
|
|
21
21
|
var convert = require('../helpers/convert.js');
|
|
22
22
|
var render = require('../helpers/render.js');
|
|
23
|
-
require('cssjson');
|
|
24
23
|
|
|
25
24
|
const componentsRenderWithParentId = [
|
|
26
25
|
'CarouselItem'
|
|
@@ -197,6 +196,20 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
197
196
|
};
|
|
198
197
|
}
|
|
199
198
|
};
|
|
199
|
+
// const isEmptyCSS = (cssString: string | undefined): boolean => {
|
|
200
|
+
// if (!cssString) return true;
|
|
201
|
+
// const cssJSON = toJSON(cssString);
|
|
202
|
+
// const isObjectEmpty = (obj: any): boolean => {
|
|
203
|
+
// if (typeof obj !== 'object' || obj === null) return true;
|
|
204
|
+
// return !Object.keys(obj).some((key) => {
|
|
205
|
+
// return (
|
|
206
|
+
// (key === 'attributes' && Object.keys(obj[key]).length > 0) ||
|
|
207
|
+
// (typeof obj[key] === 'object' && !isObjectEmpty(obj[key]))
|
|
208
|
+
// );
|
|
209
|
+
// });
|
|
210
|
+
// };
|
|
211
|
+
// return isObjectEmpty(cssJSON.children);
|
|
212
|
+
// };
|
|
200
213
|
const RenderCustomCode = (item)=>{
|
|
201
214
|
const { css, javascript, rootClassName } = item.advanced?.editorData || {};
|
|
202
215
|
const replacedCSS = css?.replaceAll(rootClassName, item.uid);
|
|
@@ -16,7 +16,6 @@ import 'dayjs';
|
|
|
16
16
|
import { composeAdvanceStyle } from '../helpers/compose-advance-style.js';
|
|
17
17
|
import { baseAssetURL, isLocalEnv } from '../helpers/convert.js';
|
|
18
18
|
import { RenderIf, template } from '../helpers/render.js';
|
|
19
|
-
import 'cssjson';
|
|
20
19
|
|
|
21
20
|
const componentsRenderWithParentId = [
|
|
22
21
|
'CarouselItem'
|
|
@@ -193,6 +192,20 @@ const Render = ({ uid, builder, components, parentId, extraFiles = {}, pageConte
|
|
|
193
192
|
};
|
|
194
193
|
}
|
|
195
194
|
};
|
|
195
|
+
// const isEmptyCSS = (cssString: string | undefined): boolean => {
|
|
196
|
+
// if (!cssString) return true;
|
|
197
|
+
// const cssJSON = toJSON(cssString);
|
|
198
|
+
// const isObjectEmpty = (obj: any): boolean => {
|
|
199
|
+
// if (typeof obj !== 'object' || obj === null) return true;
|
|
200
|
+
// return !Object.keys(obj).some((key) => {
|
|
201
|
+
// return (
|
|
202
|
+
// (key === 'attributes' && Object.keys(obj[key]).length > 0) ||
|
|
203
|
+
// (typeof obj[key] === 'object' && !isObjectEmpty(obj[key]))
|
|
204
|
+
// );
|
|
205
|
+
// });
|
|
206
|
+
// };
|
|
207
|
+
// return isObjectEmpty(cssJSON.children);
|
|
208
|
+
// };
|
|
196
209
|
const RenderCustomCode = (item)=>{
|
|
197
210
|
const { css, javascript, rootClassName } = item.advanced?.editorData || {};
|
|
198
211
|
const replacedCSS = css?.replaceAll(rootClassName, item.uid);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5433,6 +5433,9 @@ type PublishedThemePage$1 = {
|
|
|
5433
5433
|
themePageOnlineStoreData?: Maybe$1<Array<Maybe$1<PublishedThemePageOnlineStoreData$1>>>;
|
|
5434
5434
|
type: PublishedThemePageType$1;
|
|
5435
5435
|
updatedAt?: Maybe$1<Scalars$2['Time']>;
|
|
5436
|
+
publishedAt?: Maybe$1<Scalars$2['Time']>;
|
|
5437
|
+
isPlatformDefault?: boolean;
|
|
5438
|
+
platformOriginalTemplateContent?: string;
|
|
5436
5439
|
};
|
|
5437
5440
|
type PublishedThemePageCustomSection$1 = {
|
|
5438
5441
|
id: Scalars$2['ID'];
|