@stoplight/elements-core 7.5.10 → 7.5.11
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/index.esm.js +2 -2
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
package/index.esm.js
CHANGED
|
@@ -2350,8 +2350,8 @@ const SchemaAndDescription = ({ title: titleProp, schema }) => {
|
|
|
2350
2350
|
React__default.createElement(JsonSchemaViewer, { resolveRef: resolveRef, schema: getOriginalObject(schema) })));
|
|
2351
2351
|
};
|
|
2352
2352
|
const CodeComponent = props => {
|
|
2353
|
-
const { title, jsonSchema, http, children } = props;
|
|
2354
|
-
const value = String(Array.isArray(children) ? children[0] : children);
|
|
2353
|
+
const { title, jsonSchema, http, resolved, children } = props;
|
|
2354
|
+
const value = resolved || String(Array.isArray(children) ? children[0] : children);
|
|
2355
2355
|
const parsedValue = useParsedValue(value);
|
|
2356
2356
|
if (jsonSchema) {
|
|
2357
2357
|
if (!isJSONSchema(parsedValue)) {
|
package/index.js
CHANGED
|
@@ -2404,8 +2404,8 @@ const SchemaAndDescription = ({ title: titleProp, schema }) => {
|
|
|
2404
2404
|
React__default["default"].createElement(jsonSchemaViewer.JsonSchemaViewer, { resolveRef: resolveRef, schema: getOriginalObject(schema) })));
|
|
2405
2405
|
};
|
|
2406
2406
|
const CodeComponent = props => {
|
|
2407
|
-
const { title, jsonSchema, http, children } = props;
|
|
2408
|
-
const value = String(Array.isArray(children) ? children[0] : children);
|
|
2407
|
+
const { title, jsonSchema, http, resolved, children } = props;
|
|
2408
|
+
const value = resolved || String(Array.isArray(children) ? children[0] : children);
|
|
2409
2409
|
const parsedValue = useParsedValue(value);
|
|
2410
2410
|
if (jsonSchema) {
|
|
2411
2411
|
if (!isJSONSchema(parsedValue)) {
|
package/index.mjs
CHANGED
|
@@ -2350,8 +2350,8 @@ const SchemaAndDescription = ({ title: titleProp, schema }) => {
|
|
|
2350
2350
|
React__default.createElement(JsonSchemaViewer, { resolveRef: resolveRef, schema: getOriginalObject(schema) })));
|
|
2351
2351
|
};
|
|
2352
2352
|
const CodeComponent = props => {
|
|
2353
|
-
const { title, jsonSchema, http, children } = props;
|
|
2354
|
-
const value = String(Array.isArray(children) ? children[0] : children);
|
|
2353
|
+
const { title, jsonSchema, http, resolved, children } = props;
|
|
2354
|
+
const value = resolved || String(Array.isArray(children) ? children[0] : children);
|
|
2355
2355
|
const parsedValue = useParsedValue(value);
|
|
2356
2356
|
if (jsonSchema) {
|
|
2357
2357
|
if (!isJSONSchema(parsedValue)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoplight/elements-core",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.11",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"web-components.min.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@stoplight/json-schema-ref-parser": "^9.0.5",
|
|
30
30
|
"@stoplight/json-schema-sampler": "0.2.2",
|
|
31
31
|
"@stoplight/json-schema-viewer": "^4.5.0",
|
|
32
|
-
"@stoplight/markdown-viewer": "^5.4.
|
|
32
|
+
"@stoplight/markdown-viewer": "^5.4.2",
|
|
33
33
|
"@stoplight/mosaic": "^1.15.2",
|
|
34
34
|
"@stoplight/mosaic-code-editor": "^1.15.2",
|
|
35
35
|
"@stoplight/mosaic-code-viewer": "^1.15.2",
|