@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
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.
|
|
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
|