@sitecore-content-sdk/react 1.3.0-canary.26 → 1.3.0-canary.28

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.
@@ -143,7 +143,7 @@ const DesignLibraryServerVariantGeneration = async ({ page, rendering, loadServe
143
143
  return (react_1.default.createElement(react_1.default.Fragment, null,
144
144
  Component ? (react_1.default.createElement(DesignLibraryErrorBoundary_1.DesignLibraryErrorBoundary, { uid: componentToUpdate.uid },
145
145
  react_1.default.createElement(Placeholder_1.PlaceholderMetadata, { rendering: componentToUpdate },
146
- react_1.default.createElement(Component, { fields: componentToUpdate.fields, params: componentToUpdate.params })))) : (react_1.default.createElement(Placeholder_1.AppPlaceholder, { name: layout_1.EDITING_COMPONENT_PLACEHOLDER, page: page, rendering: rendering, componentMap: componentMap })),
146
+ react_1.default.createElement(Component, { fields: componentToUpdate.fields, params: componentToUpdate.params, key: Date.now() })))) : (react_1.default.createElement(Placeholder_1.AppPlaceholder, { name: layout_1.EDITING_COMPONENT_PLACEHOLDER, page: page, rendering: rendering, componentMap: componentMap, key: Date.now() })),
147
147
  react_1.default.createElement(DesignLibraryClientEvents_1.DesignLibraryVariantGenerationEvents, { designLibraryStatus: designLibraryStatus, importMap: importMapInfo,
148
148
  // pass a new object since we have mutated the original which leads to old reference passed to the client
149
149
  component: Object.assign({}, componentToUpdate), importMapError: importMapError, previewComponentData: previewComponentData })));
@@ -102,7 +102,7 @@ export const DesignLibraryServerVariantGeneration = async ({ page, rendering, lo
102
102
  return (React.createElement(React.Fragment, null,
103
103
  Component ? (React.createElement(DesignLibraryErrorBoundary, { uid: componentToUpdate.uid },
104
104
  React.createElement(PlaceholderMetadata, { rendering: componentToUpdate },
105
- React.createElement(Component, { fields: componentToUpdate.fields, params: componentToUpdate.params })))) : (React.createElement(AppPlaceholder, { name: EDITING_COMPONENT_PLACEHOLDER, page: page, rendering: rendering, componentMap: componentMap })),
105
+ React.createElement(Component, { fields: componentToUpdate.fields, params: componentToUpdate.params, key: Date.now() })))) : (React.createElement(AppPlaceholder, { name: EDITING_COMPONENT_PLACEHOLDER, page: page, rendering: rendering, componentMap: componentMap, key: Date.now() })),
106
106
  React.createElement(DesignLibraryVariantGenerationEvents, { designLibraryStatus: designLibraryStatus, importMap: importMapInfo,
107
107
  // pass a new object since we have mutated the original which leads to old reference passed to the client
108
108
  component: Object.assign({}, componentToUpdate), importMapError: importMapError, previewComponentData: previewComponentData })));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/react",
3
- "version": "1.3.0-canary.26",
3
+ "version": "1.3.0-canary.28",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "sideEffects": false,
@@ -76,12 +76,12 @@
76
76
  "react-dom": "^19.1.0"
77
77
  },
78
78
  "dependencies": {
79
- "@sitecore-content-sdk/core": "1.3.0-canary.26",
79
+ "@sitecore-content-sdk/core": "1.3.0-canary.28",
80
80
  "fast-deep-equal": "^3.1.3"
81
81
  },
82
82
  "description": "",
83
83
  "types": "types/index.d.ts",
84
- "gitHead": "cd6e383be239c4b7f6cd16a74afa5777a4605ea1",
84
+ "gitHead": "959dae3bb460147287d64c0cc01dbb4345cff8b7",
85
85
  "files": [
86
86
  "dist",
87
87
  "types"
@@ -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;AAMlB,eAAO,MAAM,kBAAkB,GAAU,OAAO,GAAG,kBAUlD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAU,yDAKvC,wBAAwB,+BAqB1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC,GAAU,yDAKxD,yCAAyC,+BAiF3C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GAAU,oCAI9C,+BAA+B,+BAqCjC,CAAC"}
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;AAMlB,eAAO,MAAM,kBAAkB,GAAU,OAAO,GAAG,kBAUlD,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,mBAAmB,GAAU,yDAKvC,wBAAwB,+BAqB1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oCAAoC,GAAU,yDAKxD,yCAAyC,+BAsF3C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GAAU,oCAI9C,+BAA+B,+BAqCjC,CAAC"}