@descope/web-components-ui 1.0.436 → 1.2.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/cjs/index.cjs.js +4 -4
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/DescopeDev.js +1 -1
- package/dist/umd/descope-grid-index-js.js +1 -1
- package/dist/umd/index.js +1 -1
- package/package.json +1 -1
- package/src/components/descope-grid/helpers.js +4 -4
package/dist/cjs/index.cjs.js
CHANGED
@@ -11792,12 +11792,12 @@ const getValueType = (value) => {
|
|
11792
11792
|
};
|
11793
11793
|
|
11794
11794
|
const renderCodeSnippet = (value, lang) =>
|
11795
|
-
`<descope-code-snippet lang="${lang}" class="row-details__value code">${value}</descope-code-snippet>`;
|
11795
|
+
`<descope-code-snippet lang="${lang}" class="row-details__value code">${escapeXML(value)}</descope-code-snippet>`;
|
11796
11796
|
|
11797
11797
|
const renderText = (text) =>
|
11798
|
-
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
11799
|
-
const renderJson = (value) => renderCodeSnippet(
|
11800
|
-
const renderXml = (value) => renderCodeSnippet(
|
11798
|
+
`<div class="row-details__value text" title="${text}">${escapeXML(text)}</div>`;
|
11799
|
+
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
11800
|
+
const renderXml = (value) => renderCodeSnippet(value, 'xml');
|
11801
11801
|
|
11802
11802
|
const defaultRowDetailsValueRenderer = (value) => {
|
11803
11803
|
const valueType = getValueType(value);
|