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

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
@@ -2765,11 +2765,16 @@ function dereference(node, root, visited = new WeakSet(), depth = 0, maxDepth =
2765
2765
  return node;
2766
2766
  if (node.$ref || node['x-iata-$ref']) {
2767
2767
  let refPath = node.$ref || node['x-iata-$ref'];
2768
- if (refPath.includes('#/%24defs')) {
2769
- refPath = refPath.replace('#/%24defs', '$defs');
2768
+ try {
2769
+ if (refPath.includes('#/%24defs')) {
2770
+ refPath = refPath.replace('#/%24defs', '$defs');
2771
+ }
2772
+ else {
2773
+ refPath = refPath.replace('__bundled__', 'definitions');
2774
+ }
2770
2775
  }
2771
- else {
2772
- refPath = refPath.replace('__bundled__', 'definitions');
2776
+ catch (error) {
2777
+ return node;
2773
2778
  }
2774
2779
  if (visited.has(node))
2775
2780
  return { circular: true, $ref: refPath, title: node.title, type: 'any', description: node.description };
@@ -3127,7 +3132,6 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3127
3132
  return absolutePathsToHide;
3128
3133
  };
3129
3134
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3130
- console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3131
3135
  return (React.createElement(VStack, { spacing: 6 },
3132
3136
  React.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React.createElement(Flex, { flex: 1, justify: "end" },
3133
3137
  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" })))),
package/index.js CHANGED
@@ -2787,11 +2787,16 @@ function dereference(node, root, visited = new WeakSet(), depth = 0, maxDepth =
2787
2787
  return node;
2788
2788
  if (node.$ref || node['x-iata-$ref']) {
2789
2789
  let refPath = node.$ref || node['x-iata-$ref'];
2790
- if (refPath.includes('#/%24defs')) {
2791
- refPath = refPath.replace('#/%24defs', '$defs');
2790
+ try {
2791
+ if (refPath.includes('#/%24defs')) {
2792
+ refPath = refPath.replace('#/%24defs', '$defs');
2793
+ }
2794
+ else {
2795
+ refPath = refPath.replace('__bundled__', 'definitions');
2796
+ }
2792
2797
  }
2793
- else {
2794
- refPath = refPath.replace('__bundled__', 'definitions');
2798
+ catch (error) {
2799
+ return node;
2795
2800
  }
2796
2801
  if (visited.has(node))
2797
2802
  return { circular: true, $ref: refPath, title: node.title, type: 'any', description: node.description };
@@ -3149,7 +3154,6 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3149
3154
  return absolutePathsToHide;
3150
3155
  };
3151
3156
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3152
- console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3153
3157
  return (React__namespace.createElement(mosaic.VStack, { spacing: 6 },
3154
3158
  React__namespace.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React__namespace.createElement(mosaic.Flex, { flex: 1, justify: "end" },
3155
3159
  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" })))),
package/index.mjs CHANGED
@@ -2765,11 +2765,16 @@ function dereference(node, root, visited = new WeakSet(), depth = 0, maxDepth =
2765
2765
  return node;
2766
2766
  if (node.$ref || node['x-iata-$ref']) {
2767
2767
  let refPath = node.$ref || node['x-iata-$ref'];
2768
- if (refPath.includes('#/%24defs')) {
2769
- refPath = refPath.replace('#/%24defs', '$defs');
2768
+ try {
2769
+ if (refPath.includes('#/%24defs')) {
2770
+ refPath = refPath.replace('#/%24defs', '$defs');
2771
+ }
2772
+ else {
2773
+ refPath = refPath.replace('__bundled__', 'definitions');
2774
+ }
2770
2775
  }
2771
- else {
2772
- refPath = refPath.replace('__bundled__', 'definitions');
2776
+ catch (error) {
2777
+ return node;
2773
2778
  }
2774
2779
  if (visited.has(node))
2775
2780
  return { circular: true, $ref: refPath, title: node.title, type: 'any', description: node.description };
@@ -3127,7 +3132,6 @@ const Body = ({ body, onChange, isHttpWebhookOperation = false, disableProps })
3127
3132
  return absolutePathsToHide;
3128
3133
  };
3129
3134
  const shouldUseLazySchema = disableProps === null || disableProps === void 0 ? void 0 : disableProps.some(entry => entry.isComplex === true);
3130
- console.log('!!!!! shouldUseLazySchema body!!!!', shouldUseLazySchema);
3131
3135
  return (React.createElement(VStack, { spacing: 6 },
3132
3136
  React.createElement(SectionSubtitle, { title: "Body", id: "request-body" }, contents.length > 0 && (React.createElement(Flex, { flex: 1, justify: "end" },
3133
3137
  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" })))),
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.3",
4
4
  "main": "./index.js",
5
5
  "sideEffects": [
6
6
  "web-components.min.js",