@vonaffenfels/slate-editor 1.1.52 → 1.1.60

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.52",
3
+ "version": "1.1.60",
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": "88c7407b7b42841eb1d38405a5c24c78bc5e6b7d",
75
+ "gitHead": "bf2b6e33737a0ebe24e02368b7b218a218b39a51",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -97,12 +97,6 @@ export default function BlockEditor({
97
97
  loadStories();
98
98
  }, []);
99
99
 
100
- const resetEditor = () => {
101
- if (confirm("This action will delete all data in the editor, are you sure?")) {
102
- onChange(emptyValue);
103
- }
104
- };
105
-
106
100
  const fixValue = (newValue) => {
107
101
  const fixedValue = [...(newValue || [])];
108
102
 
@@ -135,5 +135,5 @@ const BlockComponent = ({
135
135
  return <LoadedComponent {...loadedAttributes} />;
136
136
  }
137
137
 
138
- return <WrapperTag className={wrapperClassName}><LoadedComponent {...loadedAttributes} /></WrapperTag>;
138
+ return <WrapperTag className={wrapperClassName} id={loadedAttributes?.id}><LoadedComponent {...loadedAttributes} /></WrapperTag>;
139
139
  };
@@ -126,7 +126,6 @@ export function Serializer({
126
126
  };
127
127
 
128
128
  return <ErrorBoundary><Wrapper
129
- id={props?.attributes?.id}
130
129
  type={props.type}
131
130
  block={props.block}><StorybookDisplay {...storyProps} /></Wrapper></ErrorBoundary>;
132
131
  }