@sitecore-jss/sitecore-jss-react 21.3.0-canary.3 → 21.3.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.
@@ -44,7 +44,7 @@ exports.FEAAS_COMPONENT_RENDERING_NAME = 'FEaaSComponent';
44
44
  * @param {FEaaSComponentProps} props component props
45
45
  */
46
46
  const FEaaSComponent = (props) => {
47
- var _a, _b, _c, _d, _e, _f;
47
+ var _a, _b, _c, _d, _e, _f, _g;
48
48
  const computedRevision = ((_a = props.params) === null || _a === void 0 ? void 0 : _a.ComponentRevision) || props.revisionFallback;
49
49
  if ((!props.lastModified || !props.template) &&
50
50
  (!props.params ||
@@ -73,7 +73,7 @@ const FEaaSComponent = (props) => {
73
73
  // FEaaS control would still be hydrated by client
74
74
  // we pass all the props as a workaround to avoid hydration error, until we convert all JSS components to server side
75
75
  // this also allows component to fall back to full client-side rendering when template or src is empty
76
- return (react_1.default.createElement(FEAAS.Component, { data: data, template: props.template || '', "last-modified": props.lastModified, cdn: (_c = props.params) === null || _c === void 0 ? void 0 : _c.ComponentHostName, library: (_d = props.params) === null || _d === void 0 ? void 0 : _d.LibraryId, version: (_e = props.params) === null || _e === void 0 ? void 0 : _e.ComponentVersion, component: (_f = props.params) === null || _f === void 0 ? void 0 : _f.ComponentId, revision: computedRevision }));
76
+ return (react_1.default.createElement(FEAAS.Component, { data: data, template: props.template || '', "last-modified": props.lastModified, cdn: (_c = props.params) === null || _c === void 0 ? void 0 : _c.ComponentHostName, library: (_d = props.params) === null || _d === void 0 ? void 0 : _d.LibraryId, version: (_e = props.params) === null || _e === void 0 ? void 0 : _e.ComponentVersion, component: (_f = props.params) === null || _f === void 0 ? void 0 : _f.ComponentId, instance: (_g = props.params) === null || _g === void 0 ? void 0 : _g.ComponentInstanceId, revision: computedRevision }));
77
77
  };
78
78
  exports.FEaaSComponent = FEaaSComponent;
79
79
  /**
@@ -15,7 +15,7 @@ export const FEAAS_COMPONENT_RENDERING_NAME = 'FEaaSComponent';
15
15
  * @param {FEaaSComponentProps} props component props
16
16
  */
17
17
  export const FEaaSComponent = (props) => {
18
- var _a, _b, _c, _d, _e, _f;
18
+ var _a, _b, _c, _d, _e, _f, _g;
19
19
  const computedRevision = ((_a = props.params) === null || _a === void 0 ? void 0 : _a.ComponentRevision) || props.revisionFallback;
20
20
  if ((!props.lastModified || !props.template) &&
21
21
  (!props.params ||
@@ -44,7 +44,7 @@ export const FEaaSComponent = (props) => {
44
44
  // FEaaS control would still be hydrated by client
45
45
  // we pass all the props as a workaround to avoid hydration error, until we convert all JSS components to server side
46
46
  // this also allows component to fall back to full client-side rendering when template or src is empty
47
- return (React.createElement(FEAAS.Component, { data: data, template: props.template || '', "last-modified": props.lastModified, cdn: (_c = props.params) === null || _c === void 0 ? void 0 : _c.ComponentHostName, library: (_d = props.params) === null || _d === void 0 ? void 0 : _d.LibraryId, version: (_e = props.params) === null || _e === void 0 ? void 0 : _e.ComponentVersion, component: (_f = props.params) === null || _f === void 0 ? void 0 : _f.ComponentId, revision: computedRevision }));
47
+ return (React.createElement(FEAAS.Component, { data: data, template: props.template || '', "last-modified": props.lastModified, cdn: (_c = props.params) === null || _c === void 0 ? void 0 : _c.ComponentHostName, library: (_d = props.params) === null || _d === void 0 ? void 0 : _d.LibraryId, version: (_e = props.params) === null || _e === void 0 ? void 0 : _e.ComponentVersion, component: (_f = props.params) === null || _f === void 0 ? void 0 : _f.ComponentId, instance: (_g = props.params) === null || _g === void 0 ? void 0 : _g.ComponentInstanceId, revision: computedRevision }));
48
48
  };
49
49
  /**
50
50
  * Fetches server component props required for server rendering, based on rendering params.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-jss/sitecore-jss-react",
3
- "version": "21.3.0-canary.3",
3
+ "version": "21.3.0-canary.5",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -62,14 +62,14 @@
62
62
  },
63
63
  "dependencies": {
64
64
  "@sitecore-feaas/clientside": "^0.3.0",
65
- "@sitecore-jss/sitecore-jss": "^21.3.0-canary.3",
65
+ "@sitecore-jss/sitecore-jss": "^21.3.0-canary.5",
66
66
  "deep-equal": "^2.1.0",
67
67
  "prop-types": "^15.8.1",
68
68
  "style-attr": "^1.3.0"
69
69
  },
70
70
  "description": "",
71
71
  "types": "types/index.d.ts",
72
- "gitHead": "19aa6b7a74267c4e48c4fd9600c57704776fd800",
72
+ "gitHead": "d4eb087a11e7be5765aab18bbf847e866847da45",
73
73
  "files": [
74
74
  "dist",
75
75
  "types"