@blokkli/editor 2.0.0-alpha.7 → 2.0.0-alpha.8
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
|
@@ -13,7 +13,7 @@ import { BK_VISIBLE_LANGUAGES, BK_HIDDEN_GLOBALLY } from '../dist/runtime/helper
|
|
|
13
13
|
import fs from 'node:fs';
|
|
14
14
|
import { defu, createDefu } from 'defu';
|
|
15
15
|
|
|
16
|
-
const version = "2.0.0-alpha.
|
|
16
|
+
const version = "2.0.0-alpha.8";
|
|
17
17
|
|
|
18
18
|
function sortObjectKeys(obj) {
|
|
19
19
|
if (Array.isArray(obj)) {
|
|
@@ -152,11 +152,12 @@ function filterVisible(item) {
|
|
|
152
152
|
const filteredList = computed(() => {
|
|
153
153
|
if (mutatedFields && !isInReusable && editContext && fieldKey.value && (isPreview?.value || isEditing)) {
|
|
154
154
|
return ((mutatedFields[fieldKey.value] || {}).list || []).map((v) => {
|
|
155
|
+
const mutatedOptions = editContext.mutatedOptions[v.uuid] || {};
|
|
155
156
|
return {
|
|
156
157
|
...v,
|
|
157
158
|
options: {
|
|
158
|
-
...v.options
|
|
159
|
-
|
|
159
|
+
...v.options,
|
|
160
|
+
...mutatedOptions
|
|
160
161
|
}
|
|
161
162
|
};
|
|
162
163
|
});
|