@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/index.esm.js
CHANGED
@@ -13091,12 +13091,12 @@ const getValueType = (value) => {
|
|
13091
13091
|
};
|
13092
13092
|
|
13093
13093
|
const renderCodeSnippet = (value, lang) =>
|
13094
|
-
`<descope-code-snippet lang="${lang}" class="row-details__value code">${value}</descope-code-snippet>`;
|
13094
|
+
`<descope-code-snippet lang="${lang}" class="row-details__value code">${escapeXML(value)}</descope-code-snippet>`;
|
13095
13095
|
|
13096
13096
|
const renderText = (text) =>
|
13097
|
-
`<div class="row-details__value text" title="${text}">${text}</div>`;
|
13098
|
-
const renderJson = (value) => renderCodeSnippet(
|
13099
|
-
const renderXml = (value) => renderCodeSnippet(
|
13097
|
+
`<div class="row-details__value text" title="${text}">${escapeXML(text)}</div>`;
|
13098
|
+
const renderJson = (value) => renderCodeSnippet(JSON.stringify(value, null, 2), 'json');
|
13099
|
+
const renderXml = (value) => renderCodeSnippet(value, 'xml');
|
13100
13100
|
|
13101
13101
|
const defaultRowDetailsValueRenderer = (value) => {
|
13102
13102
|
const valueType = getValueType(value);
|