@vonaffenfels/slate-editor 1.0.74 → 1.0.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.0.74",
3
+ "version": "1.0.75",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -71,7 +71,7 @@
71
71
  "cssnano": "^5.0.1",
72
72
  "escape-html": "^1.0.3"
73
73
  },
74
- "gitHead": "f7b8272c77b9ad21a9f13a8a0c6308161e8c8a91",
74
+ "gitHead": "17d8a0c5e0f8ea45c9a9ea58e2fa15e4a70d2208",
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  }
@@ -110,8 +110,8 @@ const BlockComponent = ({
110
110
  LoadedComponent = EmptyBlock;
111
111
  } else {
112
112
  try {
113
- if (!LoadedComponent.displayName) {
114
- LoadedComponent.displayName = block;
113
+ if (LoadedComponent.render) {
114
+ LoadedComponent.render.displayName = block; // set displayname to block for better debug
115
115
  }
116
116
  } catch (e) {
117
117
  // this happens if we SSR a non ssr component, its a weird edge case of next/dynamic... so we just ignore it