@vonaffenfels/slate-editor 1.1.22 → 1.1.26

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.1.22",
3
+ "version": "1.1.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "29d6407ce7e95ad96748b41f402b961a54881d4b",
75
+ "gitHead": "5f0d00b0e64e0c1e25ade668bbabdebf85eafe02",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -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
+ "block-hide-on-desktop": loadedAttributes?.hideOnDesktop && !isEditor,
134
+ "block-hide-on-tablet": loadedAttributes?.hideOnTablet && !isEditor,
135
+ "block-hide-on-smartphone": loadedAttributes?.hideOnSmartphone && !isEditor,
136
136
  });
137
137
 
138
138
  if (!wrapperClassName) {
@@ -266,6 +266,7 @@ const SidebarEditor = ({
266
266
  return <SidebarEditorField
267
267
  sdk={sdk}
268
268
  value={storybookElement?.attributes?.[key]}
269
+ storybookElement={storybookElement}
269
270
  key={key}
270
271
  fieldKey={key}
271
272
  story={storybookElement}