@sitecore-content-sdk/react 1.2.0-canary.17 → 1.2.0-canary.19
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.
|
@@ -52,6 +52,7 @@ const layout_1 = require("@sitecore-content-sdk/core/layout");
|
|
|
52
52
|
const editing_1 = require("@sitecore-content-sdk/core/editing");
|
|
53
53
|
const codegen = __importStar(require("@sitecore-content-sdk/core/codegen"));
|
|
54
54
|
const withSitecore_1 = require("../enhancers/withSitecore");
|
|
55
|
+
const PlaceholderMetadata_1 = require("./PlaceholderMetadata");
|
|
55
56
|
let { getDesignLibraryImportMapEvent, getDesignLibraryComponentPropsEvent, addComponentPreviewHandler, } = codegen;
|
|
56
57
|
const __mockDependencies = (mocks) => {
|
|
57
58
|
addComponentPreviewHandler = mocks.addComponentPreviewHandler;
|
|
@@ -195,6 +196,7 @@ const DesignLibrary = ({ loadImportMap }) => {
|
|
|
195
196
|
};
|
|
196
197
|
}, [isVariantGeneration, rendering]);
|
|
197
198
|
return (react_1.default.createElement("main", null, isGeneratedComponentActive ? (react_1.default.createElement(ErrorBoundary, { uid: rendering.uid, renderKey: renderKey },
|
|
198
|
-
react_1.default.createElement(
|
|
199
|
+
react_1.default.createElement(PlaceholderMetadata_1.PlaceholderMetadata, { rendering: rendering },
|
|
200
|
+
react_1.default.createElement(Component, { fields: propsState.fields, params: propsState.params, key: renderKey })))) : (react_1.default.createElement("div", { id: layout_1.EDITING_COMPONENT_ID }, route && (react_1.default.createElement(Placeholder_1.Placeholder, { name: layout_1.EDITING_COMPONENT_PLACEHOLDER, rendering: route, key: renderKey }))))));
|
|
199
201
|
};
|
|
200
202
|
exports.DesignLibrary = DesignLibrary;
|
|
@@ -16,6 +16,7 @@ import { EDITING_COMPONENT_ID, EDITING_COMPONENT_PLACEHOLDER, } from '@sitecore-
|
|
|
16
16
|
import { DesignLibraryStatus, getDesignLibraryStatusEvent, addComponentUpdateHandler, } from '@sitecore-content-sdk/core/editing';
|
|
17
17
|
import * as codegen from '@sitecore-content-sdk/core/codegen';
|
|
18
18
|
import { useSitecore } from '../enhancers/withSitecore';
|
|
19
|
+
import { PlaceholderMetadata } from './PlaceholderMetadata';
|
|
19
20
|
let { getDesignLibraryImportMapEvent, getDesignLibraryComponentPropsEvent, addComponentPreviewHandler, } = codegen;
|
|
20
21
|
export const __mockDependencies = (mocks) => {
|
|
21
22
|
addComponentPreviewHandler = mocks.addComponentPreviewHandler;
|
|
@@ -158,5 +159,6 @@ export const DesignLibrary = ({ loadImportMap }) => {
|
|
|
158
159
|
};
|
|
159
160
|
}, [isVariantGeneration, rendering]);
|
|
160
161
|
return (React.createElement("main", null, isGeneratedComponentActive ? (React.createElement(ErrorBoundary, { uid: rendering.uid, renderKey: renderKey },
|
|
161
|
-
React.createElement(
|
|
162
|
+
React.createElement(PlaceholderMetadata, { rendering: rendering },
|
|
163
|
+
React.createElement(Component, { fields: propsState.fields, params: propsState.params, key: renderKey })))) : (React.createElement("div", { id: EDITING_COMPONENT_ID }, route && (React.createElement(Placeholder, { name: EDITING_COMPONENT_PLACEHOLDER, rendering: route, key: renderKey }))))));
|
|
162
164
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-content-sdk/react",
|
|
3
|
-
"version": "1.2.0-canary.
|
|
3
|
+
"version": "1.2.0-canary.19",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -72,12 +72,12 @@
|
|
|
72
72
|
"react-dom": "^19.1.0"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@sitecore-content-sdk/core": "1.2.0-canary.
|
|
75
|
+
"@sitecore-content-sdk/core": "1.2.0-canary.19",
|
|
76
76
|
"fast-deep-equal": "^3.1.3"
|
|
77
77
|
},
|
|
78
78
|
"description": "",
|
|
79
79
|
"types": "types/index.d.ts",
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "f6ad55c5c2eba9db91bc980acb7658d1e6d86aa8",
|
|
81
81
|
"files": [
|
|
82
82
|
"dist",
|
|
83
83
|
"types"
|