@vonaffenfels/slate-editor 1.0.73 → 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.73",
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": "cb4ea09876ef521af49f2e751d2a9d18ea54ce6a",
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
@@ -130,9 +130,9 @@ const BlockComponent = ({
130
130
  "editor-mr-large": loadedAttributes?.margin?.right,
131
131
  "editor-mb-large": loadedAttributes?.margin?.bottom,
132
132
  "editor-ml-large": loadedAttributes?.margin?.left,
133
- "lg:!hidden": loadedAttributes?.hideOnDesktop && !isEditor,
134
- "sm:max-lg:!hidden": loadedAttributes?.hideOnTablet && !isEditor,
135
- "max-sm:!hidden": loadedAttributes?.hideOnSmartphone && !isEditor,
133
+ "lg:hidden": loadedAttributes?.hideOnDesktop && !isEditor,
134
+ "sm:max-lg:hidden": loadedAttributes?.hideOnTablet && !isEditor,
135
+ "max-sm:hidden": loadedAttributes?.hideOnSmartphone && !isEditor,
136
136
  })}><LoadedComponent {...loadedAttributes} /></span>;
137
137
  } else {
138
138
  return <LoadedComponent {...loadedAttributes} />;