@stoplight/elements-core 9.0.13-beta-0.1 → 9.0.13-beta-0.2

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 CHANGED
@@ -2859,6 +2859,8 @@ const LazySchemaTreePreviewer = ({ schema, root = schema, title, level = 1, path
2859
2859
  const [showSchemaDropdown, setShowSchemaDropdown] = useState(false);
2860
2860
  const [isHoveringSelector, setIsHoveringSelector] = useState(false);
2861
2861
  const isRoot = level === 1 && (title === undefined || path === '');
2862
+ if (isRoot)
2863
+ console.log('LazySchemaTreePreviewer 9.0.13-beta-0.2----------', schema);
2862
2864
  useEffect(() => {
2863
2865
  setSelectedSchemaIndex(0);
2864
2866
  }, [schema === null || schema === void 0 ? void 0 : schema.anyOf, schema === null || schema === void 0 ? void 0 : schema.oneOf]);
@@ -3128,6 +3130,7 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3128
3130
  };
3129
3131
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3130
3132
  console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3133
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3131
3134
  return (React.createElement(VStack, { spacing: 6 },
3132
3135
  React.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React.createElement(Flex, { flex: 1, justify: "end" },
3133
3136
  React.createElement(Select, { "aria-label": "Request Body Content Type", value: String(chosenContent), onChange: value => setChosenContent(parseInt(String(value), 10)), options: contents.map((content, index) => ({ label: content.mediaType, value: index })), size: "sm" })))),
@@ -3332,6 +3335,7 @@ const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) =>
3332
3335
  return absolutePathsToHide;
3333
3336
  };
3334
3337
  const shouldUseLazySchema = (_b = (statusCode && ((_a = disableProps === null || disableProps === void 0 ? void 0 : disableProps[statusCode]) === null || _a === void 0 ? void 0 : _a.some(entry => entry.isComplex)))) !== null && _b !== void 0 ? _b : false;
3338
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3335
3339
  return (React.createElement(VStack, { spacing: 8, pt: 8 },
3336
3340
  description && (React.createElement(Box, { pos: "relative" },
3337
3341
  React.createElement(MarkdownViewer, { markdown: description }),
@@ -3405,6 +3409,7 @@ const HttpOperationComponent = React.memo(({ className, data: unresolvedData, la
3405
3409
  const [requestBodyIndex, setTextRequestBodyIndex] = React.useState(0);
3406
3410
  const prettyName = (data.summary || data.iid || '').trim();
3407
3411
  const hasBadges = isDeprecated || isInternal;
3412
+ console.log("HttpOperationComponent 9.0.13-beta-0.2----", disableProps);
3408
3413
  let path;
3409
3414
  if (isHttpOperation(data)) {
3410
3415
  path = data.path;
@@ -3689,6 +3694,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
3689
3694
  const isDeprecated = !!data['deprecated'];
3690
3695
  const isInternal = !!data['x-internal'];
3691
3696
  const shouldDisplayHeader = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.noHeading) && (title !== undefined || (exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport)));
3697
+ console.log("ModelComponent 9.0.13-beta-0.2----", disableProps);
3692
3698
  const titleChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: ['title', 'internal'] });
3693
3699
  const header = (shouldDisplayHeader || isInternal || isDeprecated) && (React.createElement(Flex, { justifyContent: "between", alignItems: "center" },
3694
3700
  React.createElement(Box, { pos: "relative" },
@@ -3781,6 +3787,7 @@ const getTryItVisibility = (disableProps) => {
3781
3787
  const ParsedDocs = (_a) => {
3782
3788
  var { node, nodeUnsupported, disableProps } = _a, commonProps = __rest(_a, ["node", "nodeUnsupported", "disableProps"]);
3783
3789
  const { hideOperationTryIt, hideModelTryIt } = getTryItVisibility(disableProps);
3790
+ console.log("Parsed Docs 9.0.13-beta-0.2----", disableProps);
3784
3791
  switch (node.type) {
3785
3792
  case 'article':
3786
3793
  return React.createElement(Article, Object.assign({ data: node.data }, commonProps));
package/index.js CHANGED
@@ -2881,6 +2881,8 @@ const LazySchemaTreePreviewer = ({ schema, root = schema, title, level = 1, path
2881
2881
  const [showSchemaDropdown, setShowSchemaDropdown] = React.useState(false);
2882
2882
  const [isHoveringSelector, setIsHoveringSelector] = React.useState(false);
2883
2883
  const isRoot = level === 1 && (title === undefined || path === '');
2884
+ if (isRoot)
2885
+ console.log('LazySchemaTreePreviewer 9.0.13-beta-0.2----------', schema);
2884
2886
  React.useEffect(() => {
2885
2887
  setSelectedSchemaIndex(0);
2886
2888
  }, [schema === null || schema === void 0 ? void 0 : schema.anyOf, schema === null || schema === void 0 ? void 0 : schema.oneOf]);
@@ -3150,6 +3152,7 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3150
3152
  };
3151
3153
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3152
3154
  console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3155
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3153
3156
  return (React__namespace.createElement(mosaic.VStack, { spacing: 6 },
3154
3157
  React__namespace.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React__namespace.createElement(mosaic.Flex, { flex: 1, justify: "end" },
3155
3158
  React__namespace.createElement(mosaic.Select, { "aria-label": "Request Body Content Type", value: String(chosenContent), onChange: value => setChosenContent(parseInt(String(value), 10)), options: contents.map((content, index) => ({ label: content.mediaType, value: index })), size: "sm" })))),
@@ -3354,6 +3357,7 @@ const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) =>
3354
3357
  return absolutePathsToHide;
3355
3358
  };
3356
3359
  const shouldUseLazySchema = (_b = (statusCode && ((_a = disableProps === null || disableProps === void 0 ? void 0 : disableProps[statusCode]) === null || _a === void 0 ? void 0 : _a.some(entry => entry.isComplex)))) !== null && _b !== void 0 ? _b : false;
3360
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3357
3361
  return (React__namespace.createElement(mosaic.VStack, { spacing: 8, pt: 8 },
3358
3362
  description && (React__namespace.createElement(mosaic.Box, { pos: "relative" },
3359
3363
  React__namespace.createElement(MarkdownViewer, { markdown: description }),
@@ -3427,6 +3431,7 @@ const HttpOperationComponent = React__namespace.memo(({ className, data: unresol
3427
3431
  const [requestBodyIndex, setTextRequestBodyIndex] = React__namespace.useState(0);
3428
3432
  const prettyName = (data.summary || data.iid || '').trim();
3429
3433
  const hasBadges = isDeprecated || isInternal;
3434
+ console.log("HttpOperationComponent 9.0.13-beta-0.2----", disableProps);
3430
3435
  let path;
3431
3436
  if (isHttpOperation(data)) {
3432
3437
  path = data.path;
@@ -3711,6 +3716,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
3711
3716
  const isDeprecated = !!data['deprecated'];
3712
3717
  const isInternal = !!data['x-internal'];
3713
3718
  const shouldDisplayHeader = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.noHeading) && (title !== undefined || (exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport)));
3719
+ console.log("ModelComponent 9.0.13-beta-0.2----", disableProps);
3714
3720
  const titleChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: ['title', 'internal'] });
3715
3721
  const header = (shouldDisplayHeader || isInternal || isDeprecated) && (React__namespace.createElement(mosaic.Flex, { justifyContent: "between", alignItems: "center" },
3716
3722
  React__namespace.createElement(mosaic.Box, { pos: "relative" },
@@ -3803,6 +3809,7 @@ const getTryItVisibility = (disableProps) => {
3803
3809
  const ParsedDocs = (_a) => {
3804
3810
  var { node, nodeUnsupported, disableProps } = _a, commonProps = tslib.__rest(_a, ["node", "nodeUnsupported", "disableProps"]);
3805
3811
  const { hideOperationTryIt, hideModelTryIt } = getTryItVisibility(disableProps);
3812
+ console.log("Parsed Docs 9.0.13-beta-0.2----", disableProps);
3806
3813
  switch (node.type) {
3807
3814
  case 'article':
3808
3815
  return React__namespace.createElement(Article, Object.assign({ data: node.data }, commonProps));
package/index.mjs CHANGED
@@ -2859,6 +2859,8 @@ const LazySchemaTreePreviewer = ({ schema, root = schema, title, level = 1, path
2859
2859
  const [showSchemaDropdown, setShowSchemaDropdown] = useState(false);
2860
2860
  const [isHoveringSelector, setIsHoveringSelector] = useState(false);
2861
2861
  const isRoot = level === 1 && (title === undefined || path === '');
2862
+ if (isRoot)
2863
+ console.log('LazySchemaTreePreviewer 9.0.13-beta-0.2----------', schema);
2862
2864
  useEffect(() => {
2863
2865
  setSelectedSchemaIndex(0);
2864
2866
  }, [schema === null || schema === void 0 ? void 0 : schema.anyOf, schema === null || schema === void 0 ? void 0 : schema.oneOf]);
@@ -3128,6 +3130,7 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3128
3130
  };
3129
3131
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3130
3132
  console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3133
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3131
3134
  return (React.createElement(VStack, { spacing: 6 },
3132
3135
  React.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React.createElement(Flex, { flex: 1, justify: "end" },
3133
3136
  React.createElement(Select, { "aria-label": "Request Body Content Type", value: String(chosenContent), onChange: value => setChosenContent(parseInt(String(value), 10)), options: contents.map((content, index) => ({ label: content.mediaType, value: index })), size: "sm" })))),
@@ -3332,6 +3335,7 @@ const Response = ({ response, onMediaTypeChange, disableProps, statusCode }) =>
3332
3335
  return absolutePathsToHide;
3333
3336
  };
3334
3337
  const shouldUseLazySchema = (_b = (statusCode && ((_a = disableProps === null || disableProps === void 0 ? void 0 : disableProps[statusCode]) === null || _a === void 0 ? void 0 : _a.some(entry => entry.isComplex)))) !== null && _b !== void 0 ? _b : false;
3338
+ console.log("Responses 9.0.13-beta-0.2----", disableProps);
3335
3339
  return (React.createElement(VStack, { spacing: 8, pt: 8 },
3336
3340
  description && (React.createElement(Box, { pos: "relative" },
3337
3341
  React.createElement(MarkdownViewer, { markdown: description }),
@@ -3405,6 +3409,7 @@ const HttpOperationComponent = React.memo(({ className, data: unresolvedData, la
3405
3409
  const [requestBodyIndex, setTextRequestBodyIndex] = React.useState(0);
3406
3410
  const prettyName = (data.summary || data.iid || '').trim();
3407
3411
  const hasBadges = isDeprecated || isInternal;
3412
+ console.log("HttpOperationComponent 9.0.13-beta-0.2----", disableProps);
3408
3413
  let path;
3409
3414
  if (isHttpOperation(data)) {
3410
3415
  path = data.path;
@@ -3689,6 +3694,7 @@ const ModelComponent = ({ data: unresolvedData, className, nodeTitle, layoutOpti
3689
3694
  const isDeprecated = !!data['deprecated'];
3690
3695
  const isInternal = !!data['x-internal'];
3691
3696
  const shouldDisplayHeader = !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.noHeading) && (title !== undefined || (exportProps && !(layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.hideExport)));
3697
+ console.log("ModelComponent 9.0.13-beta-0.2----", disableProps);
3692
3698
  const titleChanged = nodeHasChanged === null || nodeHasChanged === void 0 ? void 0 : nodeHasChanged({ nodeId, attr: ['title', 'internal'] });
3693
3699
  const header = (shouldDisplayHeader || isInternal || isDeprecated) && (React.createElement(Flex, { justifyContent: "between", alignItems: "center" },
3694
3700
  React.createElement(Box, { pos: "relative" },
@@ -3781,6 +3787,7 @@ const getTryItVisibility = (disableProps) => {
3781
3787
  const ParsedDocs = (_a) => {
3782
3788
  var { node, nodeUnsupported, disableProps } = _a, commonProps = __rest(_a, ["node", "nodeUnsupported", "disableProps"]);
3783
3789
  const { hideOperationTryIt, hideModelTryIt } = getTryItVisibility(disableProps);
3790
+ console.log("Parsed Docs 9.0.13-beta-0.2----", disableProps);
3784
3791
  switch (node.type) {
3785
3792
  case 'article':
3786
3793
  return React.createElement(Article, Object.assign({ data: node.data }, commonProps));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/elements-core",
3
- "version": "9.0.13-beta-0.1",
3
+ "version": "9.0.13-beta-0.2",
4
4
  "main": "./index.js",
5
5
  "sideEffects": [
6
6
  "web-components.min.js",