@uniformdev/canvas-next-rsc 19.197.1-alpha.1 → 19.198.0

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/index.esm.js CHANGED
@@ -981,20 +981,22 @@ var resolveComponents = ({
981
981
  elements.push(tagElement);
982
982
  }
983
983
  const isPlaceholder = isComponentPlaceholderId(component == null ? void 0 : component._id);
984
- childNode = createElement3(
985
- PureContextualEditingComponentWrapper,
986
- {
987
- key: `${slotName}-${componentIndex}-wrapper`,
988
- isPlaceholder,
989
- parentComponent: parent,
990
- component,
991
- slotName,
992
- indexInSlot: componentIndex,
993
- slotChildrenCount: components.length,
994
- isReadOnly: "false"
995
- },
996
- elements
997
- );
984
+ if (!isPlaceholder || compositionContext.previewMode === "editor") {
985
+ childNode = createElement3(
986
+ PureContextualEditingComponentWrapper,
987
+ {
988
+ key: `${slotName}-${componentIndex}-wrapper`,
989
+ isPlaceholder,
990
+ parentComponent: parent,
991
+ component,
992
+ slotName,
993
+ indexInSlot: componentIndex,
994
+ slotChildrenCount: components.length,
995
+ isReadOnly: "false"
996
+ },
997
+ elements
998
+ );
999
+ }
998
1000
  } else if (mode === "static") {
999
1001
  const elements = [element];
1000
1002
  if (tagElement) {
package/dist/index.js CHANGED
@@ -1011,20 +1011,22 @@ var resolveComponents = ({
1011
1011
  elements.push(tagElement);
1012
1012
  }
1013
1013
  const isPlaceholder = (0, import_canvas8.isComponentPlaceholderId)(component == null ? void 0 : component._id);
1014
- childNode = (0, import_react9.createElement)(
1015
- import_core.PureContextualEditingComponentWrapper,
1016
- {
1017
- key: `${slotName}-${componentIndex}-wrapper`,
1018
- isPlaceholder,
1019
- parentComponent: parent,
1020
- component,
1021
- slotName,
1022
- indexInSlot: componentIndex,
1023
- slotChildrenCount: components.length,
1024
- isReadOnly: "false"
1025
- },
1026
- elements
1027
- );
1014
+ if (!isPlaceholder || compositionContext.previewMode === "editor") {
1015
+ childNode = (0, import_react9.createElement)(
1016
+ import_core.PureContextualEditingComponentWrapper,
1017
+ {
1018
+ key: `${slotName}-${componentIndex}-wrapper`,
1019
+ isPlaceholder,
1020
+ parentComponent: parent,
1021
+ component,
1022
+ slotName,
1023
+ indexInSlot: componentIndex,
1024
+ slotChildrenCount: components.length,
1025
+ isReadOnly: "false"
1026
+ },
1027
+ elements
1028
+ );
1029
+ }
1028
1030
  } else if (mode === "static") {
1029
1031
  const elements = [element];
1030
1032
  if (tagElement) {
package/dist/index.mjs CHANGED
@@ -981,20 +981,22 @@ var resolveComponents = ({
981
981
  elements.push(tagElement);
982
982
  }
983
983
  const isPlaceholder = isComponentPlaceholderId(component == null ? void 0 : component._id);
984
- childNode = createElement3(
985
- PureContextualEditingComponentWrapper,
986
- {
987
- key: `${slotName}-${componentIndex}-wrapper`,
988
- isPlaceholder,
989
- parentComponent: parent,
990
- component,
991
- slotName,
992
- indexInSlot: componentIndex,
993
- slotChildrenCount: components.length,
994
- isReadOnly: "false"
995
- },
996
- elements
997
- );
984
+ if (!isPlaceholder || compositionContext.previewMode === "editor") {
985
+ childNode = createElement3(
986
+ PureContextualEditingComponentWrapper,
987
+ {
988
+ key: `${slotName}-${componentIndex}-wrapper`,
989
+ isPlaceholder,
990
+ parentComponent: parent,
991
+ component,
992
+ slotName,
993
+ indexInSlot: componentIndex,
994
+ slotChildrenCount: components.length,
995
+ isReadOnly: "false"
996
+ },
997
+ elements
998
+ );
999
+ }
998
1000
  } else if (mode === "static") {
999
1001
  const elements = [element];
1000
1002
  if (tagElement) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas-next-rsc",
3
- "version": "19.197.1-alpha.1+121ba80f7d",
3
+ "version": "19.198.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -61,15 +61,15 @@
61
61
  "react-dom": "18.3.1"
62
62
  },
63
63
  "dependencies": {
64
- "@uniformdev/canvas": "19.197.1-alpha.1+121ba80f7d",
65
- "@uniformdev/canvas-next-rsc-client": "^19.197.1-alpha.1+121ba80f7d",
66
- "@uniformdev/canvas-next-rsc-shared": "^19.197.1-alpha.1+121ba80f7d",
67
- "@uniformdev/canvas-react": "19.197.1-alpha.1+121ba80f7d",
68
- "@uniformdev/context": "19.197.1-alpha.1+121ba80f7d",
69
- "@uniformdev/project-map": "19.197.1-alpha.1+121ba80f7d",
70
- "@uniformdev/redirect": "19.197.1-alpha.1+121ba80f7d",
71
- "@uniformdev/richtext": "19.197.1-alpha.1+121ba80f7d",
72
- "@uniformdev/webhooks": "19.197.1-alpha.1+121ba80f7d",
64
+ "@uniformdev/canvas": "19.198.0",
65
+ "@uniformdev/canvas-next-rsc-client": "^19.198.0",
66
+ "@uniformdev/canvas-next-rsc-shared": "^19.198.0",
67
+ "@uniformdev/canvas-react": "19.198.0",
68
+ "@uniformdev/context": "19.198.0",
69
+ "@uniformdev/project-map": "19.198.0",
70
+ "@uniformdev/redirect": "19.198.0",
71
+ "@uniformdev/richtext": "19.198.0",
72
+ "@uniformdev/webhooks": "19.198.0",
73
73
  "@vercel/edge-config": "^0.4.0",
74
74
  "encoding": "^0.1.13",
75
75
  "server-only": "^0.0.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "121ba80f7deb449ef8cb6ef74c6088f9e2d89112"
89
+ "gitHead": "8baf8f6fe2bb8ae6787cf79985d8d200d1640e50"
90
90
  }