@sitecore-content-sdk/react 1.4.0-canary.3 → 1.4.0-canary.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.
- package/dist/cjs/components/DesignLibrary/DesignLibraryClientEvents.js +5 -0
- package/dist/cjs/components/DesignLibrary/DesignLibraryServer.js +3 -1
- package/dist/esm/components/DesignLibrary/DesignLibraryClientEvents.js +5 -0
- package/dist/esm/components/DesignLibrary/DesignLibraryServer.js +3 -1
- package/package.json +4 -4
- package/types/components/DesignLibrary/DesignLibraryClientEvents.d.ts.map +1 -1
- package/types/components/DesignLibrary/DesignLibraryServer.d.ts.map +1 -1
|
@@ -68,8 +68,13 @@ const DesignLibraryPreviewEvents = ({ designLibraryStatus, component, }) => {
|
|
|
68
68
|
const unsubUpdate = addComponentUpdateHandler(component, (updated) => {
|
|
69
69
|
_updateServerComponentAction({ uid: updated.uid, updatedComponent: updated });
|
|
70
70
|
});
|
|
71
|
+
// eslint-disable-next-line no-unused-vars
|
|
72
|
+
const unsubPreview = addServerComponentPreviewHandler((_eventArgs) => {
|
|
73
|
+
console.error('Component Library variant generation for server components is temporarily disabled.');
|
|
74
|
+
});
|
|
71
75
|
return () => {
|
|
72
76
|
unsubUpdate && unsubUpdate();
|
|
77
|
+
unsubPreview && unsubPreview();
|
|
73
78
|
};
|
|
74
79
|
}, [component, designLibraryStatus]);
|
|
75
80
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
@@ -79,7 +79,9 @@ const DesignLibraryServer = async ({ page, componentMap, rendering, loadServerIm
|
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
81
81
|
const isVariantGeneration = (_a = page.mode.designLibrary) === null || _a === void 0 ? void 0 : _a.isVariantGeneration;
|
|
82
|
-
|
|
82
|
+
// Temporarily disable server side variant generation due to potential security vulerability
|
|
83
|
+
// eslint-disable-next-line no-constant-condition
|
|
84
|
+
if (isVariantGeneration && false) {
|
|
83
85
|
return (react_1.default.createElement(exports.DesignLibraryServerVariantGeneration, { page: page, rendering: rendering, loadServerImportMap: loadServerImportMap, componentMap: componentMap }));
|
|
84
86
|
}
|
|
85
87
|
return (react_1.default.createElement(exports.DesignLibraryServerPreview, { page: page, rendering: rendering, componentMap: componentMap }));
|
|
@@ -31,8 +31,13 @@ export const DesignLibraryPreviewEvents = ({ designLibraryStatus, component, })
|
|
|
31
31
|
const unsubUpdate = addComponentUpdateHandler(component, (updated) => {
|
|
32
32
|
_updateServerComponentAction({ uid: updated.uid, updatedComponent: updated });
|
|
33
33
|
});
|
|
34
|
+
// eslint-disable-next-line no-unused-vars
|
|
35
|
+
const unsubPreview = addServerComponentPreviewHandler((_eventArgs) => {
|
|
36
|
+
console.error('Component Library variant generation for server components is temporarily disabled.');
|
|
37
|
+
});
|
|
34
38
|
return () => {
|
|
35
39
|
unsubUpdate && unsubUpdate();
|
|
40
|
+
unsubPreview && unsubPreview();
|
|
36
41
|
};
|
|
37
42
|
}, [component, designLibraryStatus]);
|
|
38
43
|
return React.createElement(React.Fragment, null);
|
|
@@ -39,7 +39,9 @@ export const DesignLibraryServer = async ({ page, componentMap, rendering, loadS
|
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
41
|
const isVariantGeneration = (_a = page.mode.designLibrary) === null || _a === void 0 ? void 0 : _a.isVariantGeneration;
|
|
42
|
-
|
|
42
|
+
// Temporarily disable server side variant generation due to potential security vulerability
|
|
43
|
+
// eslint-disable-next-line no-constant-condition
|
|
44
|
+
if (isVariantGeneration && false) {
|
|
43
45
|
return (React.createElement(DesignLibraryServerVariantGeneration, { page: page, rendering: rendering, loadServerImportMap: loadServerImportMap, componentMap: componentMap }));
|
|
44
46
|
}
|
|
45
47
|
return (React.createElement(DesignLibraryServerPreview, { page: page, rendering: rendering, componentMap: componentMap }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-content-sdk/react",
|
|
3
|
-
"version": "1.4.0-canary.
|
|
3
|
+
"version": "1.4.0-canary.5",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"react-dom": "^19.2.1"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"@sitecore-content-sdk/core": "1.4.0-canary.
|
|
80
|
-
"@sitecore-content-sdk/search": "1.4.0-canary.
|
|
79
|
+
"@sitecore-content-sdk/core": "1.4.0-canary.5",
|
|
80
|
+
"@sitecore-content-sdk/search": "1.4.0-canary.5",
|
|
81
81
|
"fast-deep-equal": "^3.1.3"
|
|
82
82
|
},
|
|
83
83
|
"description": "",
|
|
84
84
|
"types": "types/index.d.ts",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "2f328c84d2853eb84270855b550a91e0e7281d27",
|
|
86
86
|
"files": [
|
|
87
87
|
"dist",
|
|
88
88
|
"types",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignLibraryClientEvents.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibraryClientEvents.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EACL,+BAA+B,EAC/B,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,SAS5C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GAAI,qCAGxC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"DesignLibraryClientEvents.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibraryClientEvents.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAIzC,OAAO,EACL,+BAA+B,EAC/B,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAYlB,eAAO,MAAM,kBAAkB,GAAI,OAAO,GAAG,SAS5C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GAAI,qCAGxC,+BAA+B,sBAwBjC,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,oCAAoC,GAAI,sFAMlD,yCAAyC,sBA6C3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignLibraryServer.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibraryServer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,OAAO,EAEL,wBAAwB,EACxB,+BAA+B,EAC/B,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAOlB,eAAO,MAAM,kBAAkB,GAAU,OAAO,GAAG,kBAUlD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAU,yDAKvC,wBAAwB,
|
|
1
|
+
{"version":3,"file":"DesignLibraryServer.d.ts","sourceRoot":"","sources":["../../../src/components/DesignLibrary/DesignLibraryServer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAiB1B,OAAO,EAEL,wBAAwB,EACxB,+BAA+B,EAC/B,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAOlB,eAAO,MAAM,kBAAkB,GAAU,OAAO,GAAG,kBAUlD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAU,yDAKvC,wBAAwB,sCAuB1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC,GAAU,yDAKxD,yCAAyC,+BA4F3C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GAAU,oCAI9C,+BAA+B,+BAyCjC,CAAC"}
|