@scalar/api-reference 1.44.18 → 1.44.23

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 (31) hide show
  1. package/CHANGELOG.md +195 -0
  2. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  3. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +2 -2
  4. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +3 -3
  5. package/dist/browser/standalone.js +18051 -17957
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReference.vue.js +1 -1
  9. package/dist/components/ApiReference.vue2.js +19 -2
  10. package/dist/components/Content/Auth/Auth.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Auth/Auth.vue.js +2 -1
  12. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  13. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  14. package/dist/features/Operation/components/ParameterListItem.vue2.js +1 -3
  15. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  16. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  17. package/dist/features/example-responses/ExampleResponseTab.vue.js +1 -1
  18. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  19. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  20. package/dist/features/example-responses/ExampleResponses.vue2.js +1 -0
  21. package/dist/helpers/index.d.ts +2 -0
  22. package/dist/helpers/index.d.ts.map +1 -1
  23. package/dist/helpers/index.js +5 -0
  24. package/dist/helpers/storage.d.ts +133 -15
  25. package/dist/helpers/storage.d.ts.map +1 -1
  26. package/dist/plugins/index.d.ts +1 -0
  27. package/dist/plugins/index.d.ts.map +1 -1
  28. package/dist/plugins/index.js +2 -0
  29. package/dist/standalone/lib/html-api.js +1 -1
  30. package/dist/style.css +227 -196
  31. package/package.json +15 -15
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AAitCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAkBnD,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AA4xCF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA0uCA,OAAO,EAEL,KAAK,4BAA4B,EAGlC,MAAM,6BAA6B,CAAA;AAOpC,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4CAA4C,CAAA;AAkBnD,OAAO,8BAA8B,CAAA;AAiCrC,KAAK,WAAW,GAAG;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,4BAA4B,CAAA;CAC7C,CAAC;AAGF,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,eAAe,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC1C,aAAa,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IACxC,oBAAoB,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,MAAM,CAAC,IAAI;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAC;AAqzCF,QAAA,MAAM,UAAU;;;;oPAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -4,7 +4,7 @@ import _sfc_main from "./ApiReference.vue2.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
7
- const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-dfeddcdf"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a5231c6"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, watch, useId, provide, onServerPrefetch
2
2
  import { provideUseId } from "@headlessui/vue";
3
3
  import { OpenApiClientButton } from "@scalar/api-client/components";
4
4
  import { createApiClientModal } from "@scalar/api-client/v2/features/modal";
5
- import { getActiveEnvironment } from "@scalar/api-client/v2/helpers";
5
+ import { getActiveEnvironment, getServers } from "@scalar/api-client/v2/helpers";
6
6
  import { addScalarClassesToHeadless, ScalarSidebarFooter, ScalarColorModeToggleButton, ScalarColorModeToggleIcon } from "@scalar/components";
7
7
  import { redirectToProxy } from "@scalar/helpers/url/redirect-to-proxy";
8
8
  import { createSidebarState, scrollSidebarToTop, ScalarSidebar } from "@scalar/sidebar";
@@ -286,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
286
  });
287
287
  const isFirstLoad = !workspaceStore.workspace.documents[slug];
288
288
  if (isFirstLoad) {
289
- await workspaceStore.addDocument(
289
+ const result = await workspaceStore.addDocument(
290
290
  normalized.source.url ? {
291
291
  name: slug,
292
292
  url: normalized.source.url,
@@ -297,6 +297,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
297
297
  },
298
298
  config
299
299
  );
300
+ const document2 = workspaceStore.workspace.documents[slug];
301
+ if (result === true && document2 !== void 0 && document2["x-scalar-selected-server"] === void 0) {
302
+ const servers = getServers(
303
+ normalized.config.servers ?? document2.servers,
304
+ {
305
+ baseServerUrl: mergedConfig.value.baseServerURL,
306
+ documentUrl: normalized.source.url
307
+ }
308
+ );
309
+ if (servers.length > 0) {
310
+ workspaceStore.updateDocument(
311
+ slug,
312
+ "x-scalar-selected-server",
313
+ servers[0].url
314
+ );
315
+ }
316
+ }
300
317
  }
301
318
  workspaceStore.update("x-scalar-active-document", slug);
302
319
  if (config.persistAuth) {
@@ -1 +1 @@
1
- {"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Auth/Auth.vue"],"names":[],"mappings":"AAoGA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yDAAyD,CAAA;AAKhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAKlF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,gBAAgB,GAAG,aAAa,GAAG,UAAU,CAC9C,CAAA;IACD,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AAgHJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"Auth.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Auth/Auth.vue"],"names":[],"mappings":"AAqGA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,yDAAyD,CAAA;AAKhE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAA;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAChG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAA;AAKlF,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,gBAAgB,GAAG,aAAa,GAAG,UAAU,CAC9C,CAAA;IACD,SAAS,EAAE,SAAS,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,eAAe,EAAE,qBAAqB,CAAA;IACtC,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AAkHJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -57,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
57
  key: 0,
58
58
  environment: __props.environment,
59
59
  eventBus: __props.eventBus,
60
+ createAnySecurityScheme: __props.options.authentication?.createAnySecurityScheme,
60
61
  isStatic: "",
61
62
  layout: "reference",
62
63
  meta: { type: "document" },
@@ -67,7 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
68
  selectedSecurity: selectedSecurity.value,
68
69
  server: __props.selectedServer,
69
70
  title: "Authentication"
70
- }, null, 8, ["environment", "eventBus", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
71
+ }, null, 8, ["environment", "eventBus", "createAnySecurityScheme", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
71
72
  };
72
73
  }
73
74
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AAySA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAIrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAKxE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,IAAI,CACX,cAAc,CAAC,SAAS,CAAC,EACzB,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;AAqWF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ParameterListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/components/ParameterListItem.vue"],"names":[],"mappings":"AA2SA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EAEf,MAAM,8DAA8D,CAAA;AAIrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAKxE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,GAAG,cAAc,CAAA;IAC3C,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,OAAO,EAAE,IAAI,CACX,cAAc,CAAC,SAAS,CAAC,EACzB,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;AAyWF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b97d19d9"]]);
4
+ const ParameterListItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-be55ce3a"]]);
5
5
  export {
6
6
  ParameterListItem as default
7
7
  };
@@ -1,7 +1,6 @@
1
1
  import { defineComponent, computed, ref, createElementBlock, openBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, normalizeClass, createElementVNode } from "vue";
2
2
  import { Disclosure, DisclosureButton, DisclosurePanel } from "@headlessui/vue";
3
3
  import { ScalarWrappingText, ScalarMarkdownSummary, ScalarMarkdown } from "@scalar/components";
4
- import { isDefined } from "@scalar/helpers/array/is-defined";
5
4
  import { ScalarIconCaretRight } from "@scalar/icons";
6
5
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
7
6
  import SchemaProperty from "../../../components/Content/Schema/SchemaProperty.vue.js";
@@ -40,16 +39,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
39
  const baseSchema = content.value ? content.value?.[selectedContentType.value]?.schema : schema.value;
41
40
  const deprecated = "deprecated" in __props.parameter ? __props.parameter.deprecated : schema.value?.deprecated;
42
41
  const paramExamples = "examples" in __props.parameter ? __props.parameter.examples : {};
43
- const arrayExamples = schema.value?.examples ?? [];
44
42
  const recordExamples = Object.values({
45
43
  ...paramExamples,
46
44
  ...content.value?.[selectedContentType.value]?.examples
47
45
  });
46
+ const arrayExamples = schema.value?.examples ?? (recordExamples.length === 0 && "example" in __props.parameter ? [__props.parameter.example] : []);
48
47
  const examples = [...recordExamples, ...arrayExamples];
49
48
  return {
50
49
  ...getResolvedRef(baseSchema),
51
50
  deprecated,
52
- ..."example" in __props.parameter && isDefined(__props.parameter.example) && { example: __props.parameter.example },
53
51
  examples
54
52
  };
55
53
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA0PA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAA;AASzG,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAqBrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAMxE,KAAK,WAAW,GAAG,IAAI,CACnB,cAAc,EACZ,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,WAAW,CACd,GAAG;IACF,wCAAwC;IACxC,SAAS,EAAE,eAAe,CAAA;IAC1B,4CAA4C;IAC5C,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,sDAAsD;IACtD,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;CACtD,CAAC;AA8iBJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AA8PA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yDAAyD,CAAA;AASzG,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAqBrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAA;AAMxE,KAAK,WAAW,GAAG,IAAI,CACnB,cAAc,EACZ,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,iBAAiB,GACjB,WAAW,CACd,GAAG;IACF,wCAAwC;IACxC,SAAS,EAAE,eAAe,CAAA;IAC1B,4CAA4C;IAC5C,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,sDAAsD;IACtD,uBAAuB,EAAE,0BAA0B,EAAE,CAAA;CACtD,CAAC;AA+iBJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a892a6ae"]]);
4
+ const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d5291d61"]]);
5
5
  export {
6
6
  ModernLayout as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ExampleResponseTab.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponseTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c8207e48"]]);
4
+ const ExampleResponseTab = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-804dba49"]]);
5
5
  export {
6
6
  ExampleResponseTab as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAUrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AA2XF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAwXA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAUrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AA8XF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ExampleResponses.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49cbbee3"]]);
4
+ const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4f7e7d02"]]);
5
5
  export {
6
6
  ExampleResponses as default
7
7
  };
@@ -141,6 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
141
141
  key: 0,
142
142
  id: unref(id),
143
143
  content: unref(getResolvedRefDeep)(currentResponseContent.value?.schema),
144
+ class: "bg-b-2",
144
145
  lang: "json"
145
146
  }, null, 8, ["id", "content"])) : (openBlock(), createBlock(ExampleResponse, {
146
147
  key: 1,
@@ -2,6 +2,8 @@ export { getSystemModePreference } from './color-mode.js';
2
2
  export { downloadDocument } from './download.js';
3
3
  export { getIdFromUrl, makeUrlFromId } from './id-routing.js';
4
4
  export { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from './lazy-bus.js';
5
+ export { loadAuthFromStorage, loadClientFromStorage } from './load-from-perssistance.js';
6
+ export { mapConfigPlugins } from './map-config-plugins.js';
5
7
  export { mapConfigToWorkspaceStore } from './map-config-to-workspace-store.js';
6
8
  export { type NormalizedConfiguration, normalizeConfigurations } from './normalize-configurations.js';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,KAAK,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACxG,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AACrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,KAAK,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA"}
@@ -2,6 +2,8 @@ import { getSystemModePreference } from "./color-mode.js";
2
2
  import { downloadDocument } from "./download.js";
3
3
  import { getIdFromUrl, makeUrlFromId } from "./id-routing.js";
4
4
  import { blockIntersection, firstLazyLoadComplete, intersectionEnabled, scrollToLazy } from "./lazy-bus.js";
5
+ import { loadAuthFromStorage, loadClientFromStorage } from "./load-from-perssistance.js";
6
+ import { mapConfigPlugins } from "./map-config-plugins.js";
5
7
  import { mapConfigToWorkspaceStore } from "./map-config-to-workspace-store.js";
6
8
  import { normalizeConfigurations } from "./normalize-configurations.js";
7
9
  export {
@@ -11,7 +13,10 @@ export {
11
13
  getIdFromUrl,
12
14
  getSystemModePreference,
13
15
  intersectionEnabled,
16
+ loadAuthFromStorage,
17
+ loadClientFromStorage,
14
18
  makeUrlFromId,
19
+ mapConfigPlugins,
15
20
  mapConfigToWorkspaceStore,
16
21
  normalizeConfigurations,
17
22
  scrollToLazy
@@ -24,20 +24,6 @@ export declare const authStorage: () => {
24
24
  * Retrieves and coerces the authentication schemes stored in local storage.
25
25
  */
26
26
  getAuth: (slug: string) => {
27
- selected: {
28
- path?: {
29
- [x: string]: {
30
- [x: string]: {
31
- selectedIndex: number;
32
- selectedSchemes: {}[];
33
- };
34
- };
35
- } | undefined;
36
- document?: {
37
- selectedIndex: number;
38
- selectedSchemes: {}[];
39
- } | undefined;
40
- };
41
27
  secrets: {
42
28
  [x: string]: ({
43
29
  type: "apiKey";
@@ -92,7 +78,139 @@ export declare const authStorage: () => {
92
78
  } & {
93
79
  'x-scalar-credentials-location'?: "body" | "header" | undefined;
94
80
  }) | undefined;
95
- });
81
+ }) | {
82
+ implicit?: ({
83
+ refreshUrl: string;
84
+ scopes: {
85
+ [x: string]: string;
86
+ };
87
+ } & {
88
+ 'x-scalar-security-query'?: {
89
+ [x: string]: string;
90
+ } | undefined;
91
+ } & {
92
+ 'x-scalar-security-body'?: {
93
+ [x: string]: string;
94
+ } | undefined;
95
+ } & {
96
+ 'x-tokenName'?: string | undefined;
97
+ } & {
98
+ authorizationUrl: string;
99
+ } & {
100
+ 'x-scalar-secret-client-id': string;
101
+ } & {
102
+ 'x-scalar-secret-token': string;
103
+ } & {
104
+ 'x-scalar-secret-redirect-uri': string;
105
+ }) | undefined;
106
+ password?: ({
107
+ refreshUrl: string;
108
+ scopes: {
109
+ [x: string]: string;
110
+ };
111
+ } & {
112
+ 'x-scalar-security-query'?: {
113
+ [x: string]: string;
114
+ } | undefined;
115
+ } & {
116
+ 'x-scalar-security-body'?: {
117
+ [x: string]: string;
118
+ } | undefined;
119
+ } & {
120
+ 'x-tokenName'?: string | undefined;
121
+ } & {
122
+ tokenUrl: string;
123
+ } & {
124
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
125
+ } & {
126
+ 'x-scalar-secret-client-id': string;
127
+ } & {
128
+ 'x-scalar-secret-token': string;
129
+ } & {
130
+ 'x-scalar-secret-username': string;
131
+ 'x-scalar-secret-password': string;
132
+ } & {
133
+ 'x-scalar-secret-client-secret': string;
134
+ } & {
135
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
136
+ }) | undefined;
137
+ clientCredentials?: ({
138
+ refreshUrl: string;
139
+ scopes: {
140
+ [x: string]: string;
141
+ };
142
+ } & {
143
+ 'x-scalar-security-query'?: {
144
+ [x: string]: string;
145
+ } | undefined;
146
+ } & {
147
+ 'x-scalar-security-body'?: {
148
+ [x: string]: string;
149
+ } | undefined;
150
+ } & {
151
+ 'x-tokenName'?: string | undefined;
152
+ } & {
153
+ tokenUrl: string;
154
+ } & {
155
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
156
+ } & {
157
+ 'x-scalar-secret-client-id': string;
158
+ } & {
159
+ 'x-scalar-secret-token': string;
160
+ } & {
161
+ 'x-scalar-secret-client-secret': string;
162
+ } & {
163
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
164
+ }) | undefined;
165
+ authorizationCode?: ({
166
+ refreshUrl: string;
167
+ scopes: {
168
+ [x: string]: string;
169
+ };
170
+ } & {
171
+ 'x-scalar-security-query'?: {
172
+ [x: string]: string;
173
+ } | undefined;
174
+ } & {
175
+ 'x-scalar-security-body'?: {
176
+ [x: string]: string;
177
+ } | undefined;
178
+ } & {
179
+ 'x-tokenName'?: string | undefined;
180
+ } & {
181
+ tokenUrl: string;
182
+ authorizationUrl: string;
183
+ } & {
184
+ 'x-usePkce': "SHA-256" | "plain" | "no";
185
+ } & {
186
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
187
+ } & {
188
+ 'x-scalar-secret-client-id': string;
189
+ } & {
190
+ 'x-scalar-secret-token': string;
191
+ } & {
192
+ 'x-scalar-secret-client-secret': string;
193
+ } & {
194
+ 'x-scalar-secret-redirect-uri': string;
195
+ } & {
196
+ 'x-scalar-credentials-location'?: "body" | "header" | undefined;
197
+ }) | undefined;
198
+ type: "openIdConnect";
199
+ };
200
+ };
201
+ selected: {
202
+ path?: {
203
+ [x: string]: {
204
+ [x: string]: {
205
+ selectedIndex: number;
206
+ selectedSchemes: {}[];
207
+ };
208
+ };
209
+ } | undefined;
210
+ document?: {
211
+ selectedIndex: number;
212
+ selectedSchemes: {}[];
213
+ } | undefined;
96
214
  };
97
215
  };
98
216
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/helpers/storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,uCAAuC,CAAA;AAM7E;;;GAGG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;IAIH;;;OAGG;iBACU,MAAM;CAItB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;IAMpB;;OAEG;oBACa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAItB;;;OAGG;oBACa,MAAM,SAAS,IAAI;CAItC,CAAA"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/helpers/storage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,uCAAuC,CAAA;AAM7E;;;GAGG;AACH,eAAO,MAAM,aAAa;IAGtB;;OAEG;;IAIH;;;OAGG;iBACU,MAAM;CAItB,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW;IAMpB;;OAEG;oBACa,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAItB;;;OAGG;oBACa,MAAM,SAAS,IAAI;CAItC,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export { PLUGIN_MANAGER_SYMBOL, usePluginManager } from '../plugins/hooks/usePluginManager.js';
2
2
  export { type ApiReferencePlugin, type PluginManager, createPluginManager, } from '../plugins/plugin-manager.js';
3
+ export { persistencePlugin } from './persistance-plugin.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAC1F,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,mBAAmB,GACpB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1,7 +1,9 @@
1
1
  import { PLUGIN_MANAGER_SYMBOL, usePluginManager } from "./hooks/usePluginManager.js";
2
2
  import { createPluginManager } from "./plugin-manager.js";
3
+ import { persistencePlugin } from "./persistance-plugin.js";
3
4
  export {
4
5
  PLUGIN_MANAGER_SYMBOL,
5
6
  createPluginManager,
7
+ persistencePlugin,
6
8
  usePluginManager
7
9
  };
@@ -1,4 +1,4 @@
1
- import { createHead } from "@unhead/vue";
1
+ import { createHead } from "@unhead/vue/client";
2
2
  import { reactive, createApp, h } from "vue";
3
3
  import ApiReference from "../../components/ApiReference.vue.js";
4
4
  const createApiReference = (elementOrSelectorOrConfig, optionalConfiguration) => {