@umbraco-cms/backoffice 16.4.0-rc → 16.4.0
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-cms/assets/lang/en.js +25 -2
- package/dist-cms/assets/lang/vi.js +0 -30
- package/dist-cms/external/openid/src/xhr.js +1 -0
- package/dist-cms/packages/block/block-grid/property-editors/block-grid-editor/property-editor-ui-block-grid.element.js +9 -2
- package/dist-cms/packages/block/block-list/property-editors/block-list-editor/property-editor-ui-block-list.element.js +9 -2
- package/dist-cms/packages/core/auth/auth-flow.js +2 -0
- package/dist-cms/packages/core/http-client/index.d.ts +2 -1
- package/dist-cms/packages/core/http-client/index.js +12 -1
- package/dist-cms/packages/core/localization/manifests.js +166 -112
- package/dist-cms/packages/core/resources/try-execute/tryXhrRequest.function.js +1 -0
- package/dist-cms/packages/core/resources/types.d.ts +1 -0
- package/dist-cms/packages/documents/documents/user-permissions/document/repository/document-permission.server.data.js +1 -0
- package/dist-cms/packages/rte/components/rte-base.element.js +14 -3
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package.json +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { UMB_BLOCK_RTE_PROPERTY_EDITOR_SCHEMA_ALIAS } from '../constants.js';
|
|
8
|
-
import { observeMultiple } from '../../../libs/observable-api/index.js';
|
|
8
|
+
import { jsonStringComparison, observeMultiple } from '../../../libs/observable-api/index.js';
|
|
9
9
|
import { property, state } from '../../../external/lit/index.js';
|
|
10
10
|
import { UmbBlockRteEntriesContext, UmbBlockRteManagerContext } from '../../block/block-rte/index.js';
|
|
11
11
|
import { UmbChangeEvent } from '../../core/event/index.js';
|
|
@@ -172,10 +172,13 @@ export class UmbPropertyEditorUiRteElementBase extends UmbFormControlMixin(UmbLi
|
|
|
172
172
|
]), ([layouts, contents, settings, exposes]) => {
|
|
173
173
|
if (layouts.length === 0) {
|
|
174
174
|
if (super.value?.markup === undefined) {
|
|
175
|
+
if (this.value === undefined) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
175
178
|
super.value = undefined;
|
|
176
179
|
}
|
|
177
180
|
else {
|
|
178
|
-
|
|
181
|
+
const newValue = {
|
|
179
182
|
...super.value,
|
|
180
183
|
blocks: {
|
|
181
184
|
layout: {},
|
|
@@ -184,10 +187,14 @@ export class UmbPropertyEditorUiRteElementBase extends UmbFormControlMixin(UmbLi
|
|
|
184
187
|
expose: [],
|
|
185
188
|
},
|
|
186
189
|
};
|
|
190
|
+
if (jsonStringComparison(this.value, newValue)) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
super.value = newValue;
|
|
187
194
|
}
|
|
188
195
|
}
|
|
189
196
|
else {
|
|
190
|
-
|
|
197
|
+
const newValue = {
|
|
191
198
|
markup: this._markup,
|
|
192
199
|
blocks: {
|
|
193
200
|
layout: { [UMB_BLOCK_RTE_PROPERTY_EDITOR_SCHEMA_ALIAS]: layouts },
|
|
@@ -196,6 +203,10 @@ export class UmbPropertyEditorUiRteElementBase extends UmbFormControlMixin(UmbLi
|
|
|
196
203
|
expose: exposes,
|
|
197
204
|
},
|
|
198
205
|
};
|
|
206
|
+
if (jsonStringComparison(this.value, newValue)) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
super.value = newValue;
|
|
199
210
|
}
|
|
200
211
|
// If we don't have a value set from the outside or an internal value, we don't want to set the value.
|
|
201
212
|
// This is added to prevent the block list from setting an empty value on startup.
|