@stoplight/elements-core 9.0.15 → 9.0.16
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 +3 -3
- package/index.js +3 -3
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -3326,7 +3326,7 @@ const HttpServiceComponent = React.memo(({ data: unresolvedData, location = {},
|
|
|
3326
3326
|
var _a, _b, _c, _d;
|
|
3327
3327
|
const { nodeHasChanged } = useOptionsCtx();
|
|
3328
3328
|
const data = useResolvedObject(unresolvedData);
|
|
3329
|
-
const { ref: layoutRef
|
|
3329
|
+
const { ref: layoutRef } = useIsCompact(layoutOptions);
|
|
3330
3330
|
const { search, pathname } = location;
|
|
3331
3331
|
const mocking = React.useContext(MockingContext);
|
|
3332
3332
|
const query = new URLSearchParams(search);
|
|
@@ -3338,7 +3338,7 @@ const HttpServiceComponent = React.memo(({ data: unresolvedData, location = {},
|
|
|
3338
3338
|
React.createElement(Box, { pos: "relative" },
|
|
3339
3339
|
React.createElement(Heading, { size: 1, mb: 4, fontWeight: "semibold" }, data.name),
|
|
3340
3340
|
React.createElement(NodeAnnotation, { change: nameChanged })),
|
|
3341
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3341
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React.createElement(ExportButton, Object.assign({}, exportProps)))),
|
|
3342
3342
|
data.version && (React.createElement(Box, { mb: 5, pos: "relative" },
|
|
3343
3343
|
React.createElement(VersionBadge, { value: data.version }),
|
|
3344
3344
|
React.createElement(NodeAnnotation, { change: versionChanged }))),
|
|
@@ -3374,7 +3374,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
|
|
|
3374
3374
|
isDeprecated && React.createElement(DeprecatedBadge, null),
|
|
3375
3375
|
isInternal && React.createElement(InternalBadge, null))),
|
|
3376
3376
|
React.createElement(NodeAnnotation, { change: titleChanged })),
|
|
3377
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3377
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React.createElement(ExportButton, Object.assign({}, exportProps))));
|
|
3378
3378
|
const modelExamples = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideModelExamples) && React.createElement(ModelExamples, { data: data, isCollapsible: isCompact });
|
|
3379
3379
|
const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: 'description' });
|
|
3380
3380
|
const description = (React.createElement(VStack, { spacing: 10 },
|
package/index.js
CHANGED
|
@@ -3347,7 +3347,7 @@ const HttpServiceComponent = React__namespace.memo(({ data: unresolvedData, loca
|
|
|
3347
3347
|
var _a, _b, _c, _d;
|
|
3348
3348
|
const { nodeHasChanged } = useOptionsCtx();
|
|
3349
3349
|
const data = useResolvedObject(unresolvedData);
|
|
3350
|
-
const { ref: layoutRef
|
|
3350
|
+
const { ref: layoutRef } = useIsCompact(layoutOptions);
|
|
3351
3351
|
const { search, pathname } = location;
|
|
3352
3352
|
const mocking = React__namespace.useContext(MockingContext);
|
|
3353
3353
|
const query = new URLSearchParams(search);
|
|
@@ -3359,7 +3359,7 @@ const HttpServiceComponent = React__namespace.memo(({ data: unresolvedData, loca
|
|
|
3359
3359
|
React__namespace.createElement(mosaic.Box, { pos: "relative" },
|
|
3360
3360
|
React__namespace.createElement(mosaic.Heading, { size: 1, mb: 4, fontWeight: "semibold" }, data.name),
|
|
3361
3361
|
React__namespace.createElement(mosaic.NodeAnnotation, { change: nameChanged })),
|
|
3362
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3362
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React__namespace.createElement(ExportButton, Object.assign({}, exportProps)))),
|
|
3363
3363
|
data.version && (React__namespace.createElement(mosaic.Box, { mb: 5, pos: "relative" },
|
|
3364
3364
|
React__namespace.createElement(VersionBadge, { value: data.version }),
|
|
3365
3365
|
React__namespace.createElement(mosaic.NodeAnnotation, { change: versionChanged }))),
|
|
@@ -3395,7 +3395,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
|
|
|
3395
3395
|
isDeprecated && React__namespace.createElement(DeprecatedBadge, null),
|
|
3396
3396
|
isInternal && React__namespace.createElement(InternalBadge, null))),
|
|
3397
3397
|
React__namespace.createElement(mosaic.NodeAnnotation, { change: titleChanged })),
|
|
3398
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3398
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React__namespace.createElement(ExportButton, Object.assign({}, exportProps))));
|
|
3399
3399
|
const modelExamples = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideModelExamples) && React__namespace.createElement(ModelExamples, { data: data, isCollapsible: isCompact });
|
|
3400
3400
|
const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: 'description' });
|
|
3401
3401
|
const description = (React__namespace.createElement(mosaic.VStack, { spacing: 10 },
|
package/index.mjs
CHANGED
|
@@ -3326,7 +3326,7 @@ const HttpServiceComponent = React.memo(({ data: unresolvedData, location = {},
|
|
|
3326
3326
|
var _a, _b, _c, _d;
|
|
3327
3327
|
const { nodeHasChanged } = useOptionsCtx();
|
|
3328
3328
|
const data = useResolvedObject(unresolvedData);
|
|
3329
|
-
const { ref: layoutRef
|
|
3329
|
+
const { ref: layoutRef } = useIsCompact(layoutOptions);
|
|
3330
3330
|
const { search, pathname } = location;
|
|
3331
3331
|
const mocking = React.useContext(MockingContext);
|
|
3332
3332
|
const query = new URLSearchParams(search);
|
|
@@ -3338,7 +3338,7 @@ const HttpServiceComponent = React.memo(({ data: unresolvedData, location = {},
|
|
|
3338
3338
|
React.createElement(Box, { pos: "relative" },
|
|
3339
3339
|
React.createElement(Heading, { size: 1, mb: 4, fontWeight: "semibold" }, data.name),
|
|
3340
3340
|
React.createElement(NodeAnnotation, { change: nameChanged })),
|
|
3341
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3341
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React.createElement(ExportButton, Object.assign({}, exportProps)))),
|
|
3342
3342
|
data.version && (React.createElement(Box, { mb: 5, pos: "relative" },
|
|
3343
3343
|
React.createElement(VersionBadge, { value: data.version }),
|
|
3344
3344
|
React.createElement(NodeAnnotation, { change: versionChanged }))),
|
|
@@ -3374,7 +3374,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
|
|
|
3374
3374
|
isDeprecated && React.createElement(DeprecatedBadge, null),
|
|
3375
3375
|
isInternal && React.createElement(InternalBadge, null))),
|
|
3376
3376
|
React.createElement(NodeAnnotation, { change: titleChanged })),
|
|
3377
|
-
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) &&
|
|
3377
|
+
exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport) && React.createElement(ExportButton, Object.assign({}, exportProps))));
|
|
3378
3378
|
const modelExamples = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideModelExamples) && React.createElement(ModelExamples, { data: data, isCollapsible: isCompact });
|
|
3379
3379
|
const descriptionChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: 'description' });
|
|
3380
3380
|
const description = (React.createElement(VStack, { spacing: 10 },
|