@vonaffenfels/slate-editor 1.0.24 → 1.0.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.0.24",
3
+ "version": "1.0.26",
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": "578a983fe7b1e926b38ede91fa16ec56c58106a4",
74
+ "gitHead": "7089b60e41691c2c382e25c8447f74d0bd031aaa",
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  }
@@ -36,6 +36,10 @@ export const SidebarEditorField = ({
36
36
  };
37
37
 
38
38
  const renderFieldSelectOptions = field => {
39
+ if (field?.control?.labels) {
40
+ field.control.options = field.control.labels;
41
+ }
42
+
39
43
  if (!field?.control?.options) {
40
44
  return;
41
45
  }
@@ -377,6 +377,10 @@ const BlockSelect = ({
377
377
  return;
378
378
  }
379
379
 
380
+ if (item.storyContext === "development" || (Array.isArray(item.storyContext) && item.storyContext.includes("development"))) {
381
+ return;
382
+ }
383
+
380
384
  const parts = item.title.split('/');
381
385
  let currentLevel = result;
382
386