@scalar/api-reference 0.1.7 → 0.1.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ReferenceEndpoint.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHvE,wBAAkD"}
1
+ {"version":3,"file":"ReferenceEndpoint.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/ReferenceEndpoint/ReferenceEndpoint.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GvE,wBAAkD"}
package/dist/index.js CHANGED
@@ -39640,7 +39640,7 @@ Component that was made reactive: `, type2);
39640
39640
  const _hoisted_2$m = {
39641
39641
  class: "scalar-api-client__main__content"
39642
39642
  };
39643
- const _hoisted_3$f = createElementVNode("label", null, "Response", -1);
39643
+ const _hoisted_3$e = createElementVNode("label", null, "Response", -1);
39644
39644
  const _hoisted_4$a = {
39645
39645
  class: "meta"
39646
39646
  };
@@ -39704,7 +39704,7 @@ Component that was made reactive: `, type2);
39704
39704
  return (_ctx, _cache) => {
39705
39705
  return openBlock(), createElementBlock("div", _hoisted_1$1$1, [
39706
39706
  createElementVNode("div", _hoisted_2$m, [
39707
- _hoisted_3$f,
39707
+ _hoisted_3$e,
39708
39708
  createElementVNode("div", _hoisted_4$a, [
39709
39709
  unref(activeRequestId2) && unref(activeResponse2) ? (openBlock(), createBlock(_sfc_main$2$1, {
39710
39710
  key: 0,
@@ -44145,7 +44145,7 @@ ${closingBraceIndent}]`;
44145
44145
  key: 0,
44146
44146
  class: "flow-button-decorator"
44147
44147
  };
44148
- const _hoisted_3$e = {
44148
+ const _hoisted_3$d = {
44149
44149
  class: "flow-button-loader"
44150
44150
  };
44151
44151
  const _sfc_main$t = defineComponent({
@@ -44186,7 +44186,7 @@ ${closingBraceIndent}]`;
44186
44186
  "sr-only": _ctx.icon
44187
44187
  })
44188
44188
  }, toDisplayString(_ctx.label), 3),
44189
- createElementVNode("div", _hoisted_3$e, [
44189
+ createElementVNode("div", _hoisted_3$d, [
44190
44190
  _ctx.loaderState ? (openBlock(), createBlock(FlowLoader, {
44191
44191
  key: 0,
44192
44192
  loaderState: _ctx.loaderState
@@ -45218,7 +45218,7 @@ ${closingBraceIndent}]`;
45218
45218
  const _hoisted_2$g = {
45219
45219
  class: "scalar-api-client__overlay"
45220
45220
  };
45221
- const _hoisted_3$d = {
45221
+ const _hoisted_3$c = {
45222
45222
  class: "scalar-api-client__container"
45223
45223
  };
45224
45224
  const _hoisted_4$9 = {
@@ -45237,7 +45237,7 @@ ${closingBraceIndent}]`;
45237
45237
  return openBlock(), createElementBlock(Fragment$1, null, [
45238
45238
  unref(state2).showApiClient ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
45239
45239
  createElementVNode("div", _hoisted_2$g, [
45240
- createElementVNode("div", _hoisted_3$d, [
45240
+ createElementVNode("div", _hoisted_3$c, [
45241
45241
  createElementVNode("div", _hoisted_4$9, [
45242
45242
  withDirectives(createVNode$1(_sfc_main$o, {
45243
45243
  spec: _ctx.spec
@@ -45340,7 +45340,7 @@ ${closingBraceIndent}]`;
45340
45340
  const _hoisted_2$f = {
45341
45341
  class: "card-header-slot card-header-title"
45342
45342
  };
45343
- const _hoisted_3$c = {
45343
+ const _hoisted_3$b = {
45344
45344
  class: "card-header-slot card-header-actions"
45345
45345
  };
45346
45346
  const _sfc_main$k = defineComponent({
@@ -45355,7 +45355,7 @@ ${closingBraceIndent}]`;
45355
45355
  createElementVNode("div", _hoisted_2$f, [
45356
45356
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
45357
45357
  ]),
45358
- createElementVNode("div", _hoisted_3$c, [
45358
+ createElementVNode("div", _hoisted_3$b, [
45359
45359
  renderSlot(_ctx.$slots, "actions", {}, void 0, true)
45360
45360
  ])
45361
45361
  ])
@@ -46391,7 +46391,7 @@ ${closingBraceIndent}]`;
46391
46391
  const _hoisted_2$e = [
46392
46392
  "onClick"
46393
46393
  ];
46394
- const _hoisted_3$b = {
46394
+ const _hoisted_3$a = {
46395
46395
  class: "code-languages code-languages__select"
46396
46396
  };
46397
46397
  const _hoisted_4$8 = [
@@ -46517,7 +46517,7 @@ ${closingBraceIndent}]`;
46517
46517
  createElementVNode("span", null, toDisplayString(language2.title), 1)
46518
46518
  ], 10, _hoisted_2$e);
46519
46519
  }), 128)),
46520
- createElementVNode("div", _hoisted_3$b, [
46520
+ createElementVNode("div", _hoisted_3$a, [
46521
46521
  createElementVNode("select", {
46522
46522
  value: unref(state2).preferredLanguage,
46523
46523
  onInput: _cache[0] || (_cache[0] = ($event) => selectLanguage($event.target.value))
@@ -46550,7 +46550,7 @@ ${closingBraceIndent}]`;
46550
46550
  const _hoisted_2$d = {
46551
46551
  class: "reference-container"
46552
46552
  };
46553
- const _hoisted_3$a = {
46553
+ const _hoisted_3$9 = {
46554
46554
  class: "copy"
46555
46555
  };
46556
46556
  const _hoisted_4$7 = {
@@ -46598,7 +46598,7 @@ ${closingBraceIndent}]`;
46598
46598
  return (_ctx, _cache) => {
46599
46599
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
46600
46600
  createElementVNode("div", _hoisted_2$d, [
46601
- createElementVNode("div", _hoisted_3$a, [
46601
+ createElementVNode("div", _hoisted_3$9, [
46602
46602
  createElementVNode("div", _hoisted_4$7, [
46603
46603
  createElementVNode("h1", {
46604
46604
  class: normalizeClass$1([
@@ -46749,7 +46749,7 @@ ${closingBraceIndent}]`;
46749
46749
  const _hoisted_2$b = {
46750
46750
  class: "endpoint-title"
46751
46751
  };
46752
- const _hoisted_3$9 = {
46752
+ const _hoisted_3$8 = {
46753
46753
  class: "title"
46754
46754
  };
46755
46755
  const _hoisted_4$6 = {
@@ -46766,7 +46766,7 @@ ${closingBraceIndent}]`;
46766
46766
  var _a2;
46767
46767
  return ((_a2 = _ctx.parameters) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_1$b, [
46768
46768
  createElementVNode("div", _hoisted_2$b, [
46769
- createElementVNode("h5", _hoisted_3$9, toDisplayString(_ctx.title), 1)
46769
+ createElementVNode("h5", _hoisted_3$8, toDisplayString(_ctx.title), 1)
46770
46770
  ]),
46771
46771
  createElementVNode("ul", _hoisted_4$6, [
46772
46772
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.parameters, (item) => {
@@ -46788,7 +46788,7 @@ ${closingBraceIndent}]`;
46788
46788
  const _hoisted_2$a = {
46789
46789
  class: "param-editor-flex"
46790
46790
  };
46791
- const _hoisted_3$8 = {
46791
+ const _hoisted_3$7 = {
46792
46792
  class: "parameter-name"
46793
46793
  };
46794
46794
  const _hoisted_4$5 = {
@@ -46835,7 +46835,7 @@ ${closingBraceIndent}]`;
46835
46835
  }, [
46836
46836
  createElementVNode("div", _hoisted_1$a, [
46837
46837
  createElementVNode("div", _hoisted_2$a, [
46838
- createElementVNode("span", _hoisted_3$8, toDisplayString(key), 1),
46838
+ createElementVNode("span", _hoisted_3$7, toDisplayString(key), 1),
46839
46839
  createElementVNode("span", _hoisted_4$5, toDisplayString(value.type), 1)
46840
46840
  ]),
46841
46841
  value.description ? (openBlock(), createElementBlock("p", _hoisted_5$4, toDisplayString(value.description), 1)) : createCommentVNode("", true),
@@ -46852,7 +46852,7 @@ ${closingBraceIndent}]`;
46852
46852
  const _hoisted_2$9 = {
46853
46853
  class: "parameter-type"
46854
46854
  };
46855
- const _hoisted_3$7 = {
46855
+ const _hoisted_3$6 = {
46856
46856
  key: 0,
46857
46857
  class: "parameter-description"
46858
46858
  };
@@ -46898,7 +46898,7 @@ ${closingBraceIndent}]`;
46898
46898
  ])
46899
46899
  }, toDisplayString(((_b = _ctx.required) == null ? void 0 : _b.includes(name2)) ? "required" : "optional"), 3),
46900
46900
  createElementVNode("span", _hoisted_2$9, toDisplayString(_ctx.contentProperties[name2].type), 1),
46901
- _ctx.contentProperties[name2].description ? (openBlock(), createElementBlock("p", _hoisted_3$7, " description ")) : createCommentVNode("", true),
46901
+ _ctx.contentProperties[name2].description ? (openBlock(), createElementBlock("p", _hoisted_3$6, " description ")) : createCommentVNode("", true),
46902
46902
  Object.keys(_ctx.contentProperties[name2].properties || {}).length > 0 ? (openBlock(), createElementBlock("div", {
46903
46903
  key: 1,
46904
46904
  class: normalizeClass$1([
@@ -46941,7 +46941,7 @@ ${closingBraceIndent}]`;
46941
46941
  class: "title"
46942
46942
  }, "Body")
46943
46943
  ], -1);
46944
- const _hoisted_3$6 = {
46944
+ const _hoisted_3$5 = {
46945
46945
  key: 0,
46946
46946
  class: "parameter"
46947
46947
  };
@@ -46954,7 +46954,7 @@ ${closingBraceIndent}]`;
46954
46954
  return (_ctx, _cache) => {
46955
46955
  return _ctx.requestBody && _ctx.requestBody.content["application/json"] ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
46956
46956
  _hoisted_2$8,
46957
- _ctx.requestBody.content["application/json"] ? (openBlock(), createElementBlock("ul", _hoisted_3$6, [
46957
+ _ctx.requestBody.content["application/json"] ? (openBlock(), createElementBlock("ul", _hoisted_3$5, [
46958
46958
  createVNode$1(_sfc_main$9, {
46959
46959
  contentProperties: _ctx.requestBody.content["application/json"].schema.properties || {},
46960
46960
  required: _ctx.requestBody.content["application/json"].schema.required || []
@@ -46974,7 +46974,7 @@ ${closingBraceIndent}]`;
46974
46974
  const _hoisted_2$7 = {
46975
46975
  class: "editor-heading"
46976
46976
  };
46977
- const _hoisted_3$5 = {
46977
+ const _hoisted_3$4 = {
46978
46978
  class: "tag-description"
46979
46979
  };
46980
46980
  const _sfc_main$7 = defineComponent({
@@ -47027,7 +47027,7 @@ ${closingBraceIndent}]`;
47027
47027
  }, toDisplayString(_ctx.operation.name), 513)
47028
47028
  ]),
47029
47029
  createElementVNode("div", null, [
47030
- createElementVNode("p", _hoisted_3$5, toDisplayString(_ctx.operation.description), 1)
47030
+ createElementVNode("p", _hoisted_3$4, toDisplayString(_ctx.operation.description), 1)
47031
47031
  ]),
47032
47032
  createVNode$1(_sfc_main$b, {
47033
47033
  parameters: unref(parameterMap).path,
@@ -47897,7 +47897,7 @@ ${closingBraceIndent}]`;
47897
47897
  const _hoisted_2$6 = {
47898
47898
  class: "language-select"
47899
47899
  };
47900
- const _hoisted_3$4 = [
47900
+ const _hoisted_3$3 = [
47901
47901
  "value"
47902
47902
  ];
47903
47903
  const _hoisted_4$3 = [
@@ -48006,7 +48006,7 @@ ${closingBraceIndent}]`;
48006
48006
  value: lang.key
48007
48007
  }, toDisplayString(lang.title), 9, _hoisted_4$3);
48008
48008
  }), 128))
48009
- ], 40, _hoisted_3$4)
48009
+ ], 40, _hoisted_3$3)
48010
48010
  ]),
48011
48011
  createElementVNode("button", {
48012
48012
  class: "copy-button",
@@ -48200,9 +48200,6 @@ ${closingBraceIndent}]`;
48200
48200
  const _hoisted_2$4 = {
48201
48201
  class: "example"
48202
48202
  };
48203
- const _hoisted_3$3 = {
48204
- class: "example"
48205
- };
48206
48203
  const _sfc_main$4 = defineComponent({
48207
48204
  __name: "ReferenceEndpoint",
48208
48205
  props: {
@@ -48230,10 +48227,11 @@ ${closingBraceIndent}]`;
48230
48227
  }, null, 8, [
48231
48228
  "operation",
48232
48229
  "server"
48233
- ])
48234
- ]),
48235
- createElementVNode("div", _hoisted_3$3, [
48230
+ ]),
48236
48231
  createVNode$1(ExampleResponses, {
48232
+ style: {
48233
+ "margin-top": "12px"
48234
+ },
48237
48235
  operation: _ctx.operation
48238
48236
  }, null, 8, [
48239
48237
  "operation"
package/dist/style.css CHANGED
@@ -1558,7 +1558,7 @@ to {
1558
1558
  .reference:not(:last-of-type) {
1559
1559
  border-bottom: var(--scalar-api-reference-border);
1560
1560
  }
1561
- .reference-container {
1561
+ .reference .reference-container {
1562
1562
  position: relative;
1563
1563
  display: flex;
1564
1564
  gap: 48px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalar/api-reference",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "author": "Scalar",
5
5
  "license": "UNLICENSED",
6
6
  "engines": {
@@ -43,9 +43,9 @@
43
43
  "unified": "10.1.2",
44
44
  "xmldom": "0.6.0",
45
45
  "@scalar/api-client": "0.1.6",
46
- "@scalar/use-clipboard": "0.1.4",
47
46
  "@scalar/swagger-editor": "0.1.6",
48
- "@scalar/use-tooltip": "0.1.4"
47
+ "@scalar/use-tooltip": "0.1.4",
48
+ "@scalar/use-clipboard": "0.1.4"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@vitejs/plugin-vue": "4.2.3",