Skip to content

A platform for community discussion. Free, open, simple.

DEPS: Bump @json-editor/json-editor from 2.15.2 to 2.17.2 (#43096)

dependabot[bot]cb89042cf4ee
diff --git a/frontend/discourse/app/components/modal/json-schema-editor.gjs b/frontend/discourse/app/components/modal/json-schema-editor.gjs
index b26ec48ab85..d3b438ba7de 100644
--- a/frontend/discourse/app/components/modal/json-schema-editor.gjs
+++ b/frontend/discourse/app/components/modal/json-schema-editor.gjs
@@ -51,6 +51,9 @@ export default class JsonSchemaEditorModal extends Component {
};
JSONEditor.defaults.options.iconlib = "discourseIcons";
+ // Theme settings may hold HTML; keep string values as typed.
+ JSONEditor.AbstractEditor.prototype.purify = (value) => value;
+
this.editor = new JSONEditor(element, {
schema: this.args.model.jsonSchema,
disable_array_delete_all_rows: true,
diff --git a/frontend/discourse/package.json b/frontend/discourse/package.json
index b17b4856de7..80ff79e6258 100644
--- a/frontend/discourse/package.json
+++ b/frontend/discourse/package.json
@@ -53,7 +53,7 @@
"@glint/ember-tsc": "^1.8.11",
"@glint/template": "^1.7.8",
"@highlightjs/cdn-assets": "11.12.0",
- "@json-editor/json-editor": "2.15.2",
+ "@json-editor/json-editor": "2.17.2",
"@lezer/common": "^1.5.2",
"@lezer/highlight": "^1.2.3",
"@lezer/javascript": "^1.5.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index d56a53a36ea..a5fe51cf6bd 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -289,8 +289,8 @@ importers:
specifier: 11.12.0
version: 11.12.0
'@json-editor/json-editor':
- specifier: 2.15.2
- version: 2.15.2
+ specifier: 2.17.2
+ version: 2.17.2
'@lezer/common':
specifier: ^1.5.2
version: 1.5.2
@@ -2383,8 +2383,8 @@ packages:
resolution: {integrity: sha512-yYxMVH7Dqw6nO0d5NIV8OQWnitU8k6vXH8NtgqAfIa/IUqRMxRv/NUJJ08VEKbAakwxlgBl5PJdrU0dMPStsnw==}
engines: {node: '>=v12.0.0'}
- '@json-editor/[email protected]':
- resolution: {integrity: sha512-vUQ7Oy+7VfNIzu6irtPz5qfHbMNTlQWUbHJ7eunxFza+SBwUXfq2Uh5QYD2d6hLDhF22sYh8DPpLWFixQrt1+Q==}
+ '@json-editor/[email protected]':
+ resolution: {integrity: sha512-np0V7s3wSxMq76/GA4S9yDO7iPpX7rFbuCW1C8VqJ3uOZmwatFTV9tirFWKl0rn05PQrnU9MPGo6sP6LUt+kGw==}
engines: {node: '>= 0.8.0'}
'@jspreadsheet/[email protected]':
@@ -10375,7 +10375,7 @@ snapshots:
dependencies:
lodash: 4.18.1
- '@json-editor/[email protected]':
+ '@json-editor/[email protected]':
dependencies:
core-js: 3.50.0