@blokkli/editor 1.1.2 → 1.1.3

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "blokkli",
3
3
  "configKey": "blokkli",
4
- "version": "1.1.2",
4
+ "version": "1.1.3",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.12.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -7,7 +7,7 @@ import MagicString from 'magic-string';
7
7
  import { walk } from 'estree-walker-ts';
8
8
  import { BK_VISIBLE_LANGUAGES, BK_HIDDEN_GLOBALLY } from '../dist/runtime/helpers/symbols.js';
9
9
 
10
- const version = "1.1.2";
10
+ const version = "1.1.3";
11
11
 
12
12
  function sortObjectKeys(obj) {
13
13
  if (Array.isArray(obj)) {
@@ -98,6 +98,15 @@ const definition = getDefinition(
98
98
  )
99
99
 
100
100
  const fieldLayout = computed<FieldConfig[][]>(() => {
101
+ // Currently structure view does not work for reusable blocks with
102
+ // nested blocks. As a workaround no fields are displayed. Since the fields
103
+ // Are not editable anyway this is not that big of a problem. However, the
104
+ // proxy block will just display the name of the block with no context.
105
+ // @TOOD: Figure out how to render a non-editable structure view of reusable
106
+ // blocks.
107
+ if (libraryItemProps.value) {
108
+ return []
109
+ }
101
110
  if (definition?.editor?.fieldLayout) {
102
111
  return definition.editor.fieldLayout.map((row) => {
103
112
  return row
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blokkli/editor",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Interactive page building experience for Nuxt",
5
5
  "repository": "blokkli/editor",
6
6
  "type": "module",