@sitecore-jss/sitecore-jss-react 22.1.0-canary.62 → 22.1.0-canary.64
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.
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.HiddenRendering = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styles = {
|
|
9
9
|
height: '100px',
|
|
@@ -12,4 +12,3 @@ const styles = {
|
|
|
12
12
|
};
|
|
13
13
|
const HiddenRendering = () => react_1.default.createElement("div", { style: styles });
|
|
14
14
|
exports.HiddenRendering = HiddenRendering;
|
|
15
|
-
exports.HIDDEN_RENDERING_NAME = 'Hidden Rendering';
|
|
@@ -19,6 +19,7 @@ const react_1 = __importDefault(require("react"));
|
|
|
19
19
|
const prop_types_1 = __importDefault(require("prop-types"));
|
|
20
20
|
const MissingComponent_1 = require("./MissingComponent");
|
|
21
21
|
const layout_1 = require("@sitecore-jss/sitecore-jss/layout");
|
|
22
|
+
const sitecore_jss_1 = require("@sitecore-jss/sitecore-jss");
|
|
22
23
|
const utils_1 = require("../utils");
|
|
23
24
|
const HiddenRendering_1 = require("./HiddenRendering");
|
|
24
25
|
const FEaaSComponent_1 = require("./FEaaSComponent");
|
|
@@ -122,7 +123,7 @@ class PlaceholderCommon extends react_1.default.Component {
|
|
|
122
123
|
}
|
|
123
124
|
const componentRendering = rendering;
|
|
124
125
|
let component;
|
|
125
|
-
if (componentRendering.componentName ===
|
|
126
|
+
if (componentRendering.componentName === sitecore_jss_1.constants.HIDDEN_RENDERING_NAME) {
|
|
126
127
|
component = hiddenRenderingComponent !== null && hiddenRenderingComponent !== void 0 ? hiddenRenderingComponent : HiddenRendering_1.HiddenRendering;
|
|
127
128
|
isEmpty = true;
|
|
128
129
|
}
|
|
@@ -13,8 +13,9 @@ import React from 'react';
|
|
|
13
13
|
import PropTypes from 'prop-types';
|
|
14
14
|
import { MissingComponent } from './MissingComponent';
|
|
15
15
|
import { EditMode, } from '@sitecore-jss/sitecore-jss/layout';
|
|
16
|
+
import { constants } from '@sitecore-jss/sitecore-jss';
|
|
16
17
|
import { convertAttributesToReactProps } from '../utils';
|
|
17
|
-
import { HiddenRendering
|
|
18
|
+
import { HiddenRendering } from './HiddenRendering';
|
|
18
19
|
import { FEaaSComponent, FEAAS_COMPONENT_RENDERING_NAME } from './FEaaSComponent';
|
|
19
20
|
import { FEaaSWrapper, FEAAS_WRAPPER_RENDERING_NAME } from './FEaaSWrapper';
|
|
20
21
|
import { BYOCComponent, BYOC_COMPONENT_RENDERING_NAME } from './BYOCComponent';
|
|
@@ -114,7 +115,7 @@ export class PlaceholderCommon extends React.Component {
|
|
|
114
115
|
}
|
|
115
116
|
const componentRendering = rendering;
|
|
116
117
|
let component;
|
|
117
|
-
if (componentRendering.componentName === HIDDEN_RENDERING_NAME) {
|
|
118
|
+
if (componentRendering.componentName === constants.HIDDEN_RENDERING_NAME) {
|
|
118
119
|
component = hiddenRenderingComponent !== null && hiddenRenderingComponent !== void 0 ? hiddenRenderingComponent : HiddenRendering;
|
|
119
120
|
isEmpty = true;
|
|
120
121
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-jss/sitecore-jss-react",
|
|
3
|
-
"version": "22.1.0-canary.
|
|
3
|
+
"version": "22.1.0-canary.64",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@sitecore-jss/sitecore-jss": "^22.1.0-canary.
|
|
64
|
+
"@sitecore-jss/sitecore-jss": "^22.1.0-canary.64",
|
|
65
65
|
"fast-deep-equal": "^3.1.3",
|
|
66
66
|
"prop-types": "^15.8.1",
|
|
67
67
|
"style-attr": "^1.3.0"
|
|
68
68
|
},
|
|
69
69
|
"description": "",
|
|
70
70
|
"types": "types/index.d.ts",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "74010c410d7586498a18c06c37435e0e27c3d1c1",
|
|
72
72
|
"files": [
|
|
73
73
|
"dist",
|
|
74
74
|
"types"
|