@scalar/api-reference 1.43.16 → 1.44.0

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/browser/standalone.js +17371 -15650
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/AgentChat.vue.d.ts +9 -0
  5. package/dist/components/AgentChat.vue.d.ts.map +1 -0
  6. package/dist/components/AgentChat.vue.js +4 -0
  7. package/dist/components/AgentChat.vue2.js +26 -0
  8. package/dist/components/ApiReference.vue.d.ts +1 -0
  9. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  10. package/dist/components/ApiReference.vue.js +1 -1
  11. package/dist/components/ApiReference.vue2.js +83 -26
  12. package/dist/components/LinkList/LinkList.vue.js +1 -1
  13. package/dist/components/LinkList/LinkList.vue2.js +1 -1
  14. package/dist/components/MobileHeader.vue.d.ts.map +1 -1
  15. package/dist/components/MobileHeader.vue.js +6 -4
  16. package/dist/consts/urls.d.ts +7 -11
  17. package/dist/consts/urls.d.ts.map +1 -1
  18. package/dist/consts/urls.js +9 -3
  19. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  20. package/dist/features/Operation/components/ContentTypeSelect.vue.js +14 -12
  21. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  22. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  23. package/dist/features/Operation/components/ParameterListItem.vue2.js +4 -4
  24. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  25. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  26. package/dist/features/example-responses/ExampleResponses.vue2.js +7 -12
  27. package/dist/features/multiple-documents/DocumentSelector.vue.d.ts.map +1 -1
  28. package/dist/features/multiple-documents/DocumentSelector.vue.js +11 -8
  29. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +1 -1
  30. package/dist/features/toolbar/ApiReferenceToolbar.vue.js +1 -1
  31. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.js +1 -1
  32. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +1 -1
  33. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.js +3 -3
  34. package/dist/helpers/normalize-configurations.d.ts +2 -1
  35. package/dist/helpers/normalize-configurations.d.ts.map +1 -1
  36. package/dist/helpers/normalize-configurations.js +1 -0
  37. package/dist/style.css +407 -204
  38. package/package.json +15 -14
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbar.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAyBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AAoGF,wBAOG"}
1
+ {"version":3,"file":"ApiReferenceToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbar.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAQpE,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,cAAc,CAAA;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAyBF,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;;;;;;AAkGF,wBAOG"}
@@ -7,7 +7,7 @@ import _sfc_main$1 from "./ApiReferenceToolbarTitle.vue.js";
7
7
  const _hoisted_1 = {
8
8
  key: 0,
9
9
  "aria-label": "Developer Tools",
10
- class: "api-reference-toolbar h-header bg-b-1 sticky top-0 z-10 flex justify-center border-b px-15"
10
+ class: "api-reference-toolbar bg-b-1 z-10 flex h-10 justify-center border-b px-15"
11
11
  };
12
12
  const _hoisted_2 = { class: "-mx-2 flex max-w-(--refs-content-max-width) flex-1 items-center" };
13
13
  const _hoisted_3 = { class: "flex flex-1 items-center" };
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  createElementVNode("button", _hoisted_1, [
22
22
  renderSlot(_ctx.$slots, "label"),
23
23
  createVNode(unref(ScalarIconCaretDown), {
24
- class: normalizeClass(["transition-transform", { "rotate-180": open }])
24
+ class: normalizeClass(["size-3", { "rotate-180": open }])
25
25
  }, null, 8, ["class"])
26
26
  ])
27
27
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceToolbarTitle.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarTitle.vue"],"names":[],"mappings":";AA+LA,wBAKG"}
1
+ {"version":3,"file":"ApiReferenceToolbarTitle.vue.d.ts","sourceRoot":"","sources":["../../../src/features/toolbar/ApiReferenceToolbarTitle.vue"],"names":[],"mappings":";AAgMA,wBAKG"}
@@ -4,7 +4,7 @@ import { ScalarIconCopy, ScalarIconInfo } from "@scalar/icons";
4
4
  import { useClipboard } from "@scalar/use-hooks/useClipboard";
5
5
  import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
6
6
  const _hoisted_1 = {
7
- class: "text-c-2 hover:text-c-1 hover:bg-b-2 flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none",
7
+ class: "text-c-2 hover:text-c-1 hover:bg-b-2 ml-auto flex items-center gap-1 rounded px-2 py-2.25 text-base leading-none",
8
8
  type: "button"
9
9
  };
10
10
  const _hoisted_2 = { class: "-m-2 flex flex-col gap-2 leading-relaxed" };
@@ -21,8 +21,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  }, {
22
22
  button: withCtx(() => [
23
23
  createElementVNode("button", _hoisted_1, [
24
- _cache[1] || (_cache[1] = createTextVNode(" Developer Tools ", -1)),
25
- createVNode(unref(ScalarIconInfo))
24
+ createVNode(unref(ScalarIconInfo)),
25
+ _cache[1] || (_cache[1] = createTextVNode(" Developer Tools ", -1))
26
26
  ])
27
27
  ]),
28
28
  info: withCtx(() => [..._cache[5] || (_cache[5] = [
@@ -1,4 +1,4 @@
1
- import { type AnyApiReferenceConfiguration, type ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
1
+ import { type AnyApiReferenceConfiguration, type ApiReferenceConfigurationRaw, type ApiReferenceConfigurationWithSource } from '@scalar/types/api-reference';
2
2
  /** Processed API Reference Configuration
3
3
  *
4
4
  * Creates the required title and slug for the API Reference.
@@ -10,6 +10,7 @@ export type NormalizedConfiguration = {
10
10
  slug: string;
11
11
  config: ApiReferenceConfigurationRaw;
12
12
  default: boolean;
13
+ agent: ApiReferenceConfigurationWithSource['agent'];
13
14
  source: {
14
15
  url: string;
15
16
  content?: never;
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-configurations.d.ts","sourceRoot":"","sources":["../../src/helpers/normalize-configurations.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAIlC,MAAM,6BAA6B,CAAA;AAGpC;;;;;GAKG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,4BAA4B,CAAA;IACpC,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,KAAK,CA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KvE;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAClC,eAAe,4BAA4B,GAAG,SAAS,KACtD,wBAoDF,CAAA;AAED,wEAAwE;AACxE,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KACnF,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAc5B,CAAA"}
@@ -24,6 +24,7 @@ const normalizeConfigurations = (configuration) => {
24
24
  title: c.title,
25
25
  slug: c.slug,
26
26
  default: !!c?.default,
27
+ agent: c.agent,
27
28
  source: content ? { content: normalizeContent(content) ?? {} } : { url }
28
29
  };
29
30
  });