@scalar/api-reference 1.44.26 → 1.46.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 (117) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -1
  3. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +8 -2
  4. package/dist/browser/standalone.js +14104 -14015
  5. package/dist/browser/webpack-stats.json +1 -1
  6. package/dist/components/AgentScalar/AgentScalarChatInterface.vue.d.ts.map +1 -1
  7. package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +2 -1
  8. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  9. package/dist/components/ApiReference.vue.js +1 -1
  10. package/dist/components/ApiReference.vue2.js +2 -2
  11. package/dist/components/Content/Content.vue.js +1 -1
  12. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts +7 -0
  13. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts.map +1 -0
  14. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +7 -0
  15. package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +45 -0
  16. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  18. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +8 -35
  19. package/dist/components/Content/Schema/helpers/format-value.d.ts +5 -0
  20. package/dist/components/Content/Schema/helpers/format-value.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/helpers/format-value.js +35 -0
  22. package/dist/features/Operation/helpers/filter-selected-security.d.ts.map +1 -1
  23. package/dist/features/Operation/helpers/filter-selected-security.js +6 -2
  24. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  25. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  26. package/dist/features/Operation/layouts/ModernLayout.vue2.js +12 -9
  27. package/dist/features/ask-agent-button/AskAgentButton.vue.d.ts.map +1 -1
  28. package/dist/features/ask-agent-button/AskAgentButton.vue.js +1 -1
  29. package/dist/features/{toolbar/ApiReferenceToolbar.vue.d.ts → developer-tools/DeveloperTools.vue.d.ts} +1 -1
  30. package/dist/features/developer-tools/DeveloperTools.vue.d.ts.map +1 -0
  31. package/dist/features/{toolbar/ApiReferenceToolbar.vue.js → developer-tools/DeveloperTools.vue.js} +11 -11
  32. package/dist/features/developer-tools/DeveloperTools.vue2.js +4 -0
  33. package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
  34. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.js +1 -1
  35. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
  36. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +2 -0
  37. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
  38. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.js +35 -17
  39. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
  40. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
  41. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
  42. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.js +2 -2
  43. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
  44. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.js +12 -8
  45. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
  46. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +73 -0
  47. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
  48. package/dist/features/{toolbar/ApiReferenceToolbarSdks.vue.d.ts → developer-tools/components/DeployApiReference.vue.d.ts} +1 -1
  49. package/dist/features/developer-tools/components/DeployApiReference.vue.d.ts.map +1 -0
  50. package/dist/features/developer-tools/components/DeployApiReference.vue.js +35 -0
  51. package/dist/features/developer-tools/components/DeployApiReference.vue2.js +4 -0
  52. package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.d.ts → developer-tools/components/ModifyConfiguration.vue.d.ts} +1 -1
  53. package/dist/features/developer-tools/components/ModifyConfiguration.vue.d.ts.map +1 -0
  54. package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.js → developer-tools/components/ModifyConfiguration.vue.js} +1 -1
  55. package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +4 -0
  56. package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.d.ts → developer-tools/components/ShareApiReference.vue.d.ts} +1 -1
  57. package/dist/features/developer-tools/components/ShareApiReference.vue.d.ts.map +1 -0
  58. package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.js → developer-tools/components/ShareApiReference.vue.js} +4 -13
  59. package/dist/features/developer-tools/components/ShareApiReference.vue2.js +4 -0
  60. package/dist/features/developer-tools/index.d.ts +2 -0
  61. package/dist/features/developer-tools/index.d.ts.map +1 -0
  62. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  63. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  64. package/dist/features/example-responses/ExampleResponse.vue2.js +17 -15
  65. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  66. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  67. package/dist/features/example-responses/ExampleResponses.vue2.js +14 -7
  68. package/dist/features/example-responses/ExampleSchema.vue.d.ts +8 -0
  69. package/dist/features/example-responses/ExampleSchema.vue.d.ts.map +1 -0
  70. package/dist/features/example-responses/ExampleSchema.vue.js +34 -0
  71. package/dist/features/example-responses/ExampleSchema.vue2.js +4 -0
  72. package/dist/features/index.d.ts +0 -1
  73. package/dist/features/index.d.ts.map +1 -1
  74. package/dist/features/index.js +2 -4
  75. package/dist/helpers/lazy-bus.d.ts.map +1 -1
  76. package/dist/helpers/lazy-bus.js +2 -1
  77. package/dist/style.css +226 -153
  78. package/package.json +13 -13
  79. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +0 -1
  80. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +0 -4
  81. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +0 -1
  82. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +0 -1
  83. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +0 -4
  84. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +0 -1
  85. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +0 -1
  86. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +0 -1
  87. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +0 -1
  88. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +0 -1
  89. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +0 -1
  90. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +0 -89
  91. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +0 -4
  92. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +0 -1
  93. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +0 -4
  94. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +0 -1
  95. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +0 -1
  96. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +0 -90
  97. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +0 -1
  98. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.d.ts +0 -0
  99. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.d.ts +0 -0
  100. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.js +0 -0
  101. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue2.js +0 -0
  102. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -0
  103. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.d.ts +0 -0
  104. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.js +0 -0
  105. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue2.js +0 -0
  106. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.d.ts +0 -0
  107. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.js +0 -0
  108. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue2.js +0 -0
  109. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.d.ts +0 -0
  110. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue2.js +0 -0
  111. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.d.ts +0 -0
  112. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue2.js +0 -0
  113. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue.d.ts +0 -0
  114. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue2.js +0 -0
  115. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.d.ts +0 -0
  116. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.js +0 -0
  117. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue2.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarPopover.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarPopover.vue"],"names":[],"mappings":"AA0LA,QAAA,IAAI,OAAO;;CAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ;;;CAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC5G,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAG9C,QAAA,MAAM,UAAU,+QACd,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarRegisterButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAMpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB,CAAC;AAyDF,KAAK,gBAAgB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiDxD,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAKhD,QAAA,MAAM,UAAU;;;;kFAGd,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,8 +1,8 @@
1
1
  import { defineComponent, mergeModels, useModel, createBlock, openBlock, unref, withCtx, renderSlot, createTextVNode, nextTick } from "vue";
2
2
  import { useLoadingState, ScalarButton } from "@scalar/components";
3
3
  import { useToasts } from "@scalar/use-toasts";
4
- import { DASHBOARD_REGISTER_URL } from "../../consts/urls.js";
5
- import { uploadTempDocument } from "../../helpers/upload-temp-document.js";
4
+ import { DASHBOARD_REGISTER_URL } from "../../../consts/urls.js";
5
+ import { uploadTempDocument } from "../../../helpers/upload-temp-document.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "ApiReferenceToolbarRegisterButton",
8
8
  props: /* @__PURE__ */ mergeModels({
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShareRegister.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAkGF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, createElementVNode, createVNode, renderList, createBlock, createTextVNode, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
2
- import { ScalarIconGlobeSimple, ScalarIconGitBranch, ScalarIconFileMd, ScalarIconLockSimple, ScalarIconWarningOctagon, ScalarIconBracketsCurly } from "@scalar/icons";
2
+ import { ScalarIconLockSimple, ScalarIconGlobeSimple, ScalarIconBookOpen, ScalarIconCloud, ScalarIconGitBranch, ScalarIconFileMd, ScalarIconWarningOctagon, ScalarIconBracketsCurly } from "@scalar/icons";
3
3
  import ApiReferenceToolbarBlurb from "./ApiReferenceToolbarBlurb.vue.js";
4
4
  import _sfc_main$1 from "./ApiReferenceToolbarRegisterButton.vue.js";
5
- const _hoisted_1 = { class: "text-c-2 grid grid-cols-2 gap-2.5 font-medium" };
5
+ const _hoisted_1 = { class: "text-c-2 mb-2 grid grid-cols-2 gap-2.5 font-medium" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "ApiReferenceToolbarShareRegister",
8
8
  props: {
@@ -10,12 +10,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  },
11
11
  setup(__props) {
12
12
  const FEATURES = [
13
+ { icon: ScalarIconLockSimple, label: "Password Protection" },
13
14
  { icon: ScalarIconGlobeSimple, label: "Custom Domains" },
14
- { icon: ScalarIconGitBranch, label: "GitHub Sync" },
15
+ { icon: ScalarIconBookOpen, label: "Free-form content" },
16
+ { icon: ScalarIconCloud, label: "CDN Infrastructure" },
17
+ { icon: ScalarIconGitBranch, label: "Pull from GitHub" },
15
18
  { icon: ScalarIconFileMd, label: "Markdown/MDX" },
16
- { icon: ScalarIconLockSimple, label: "Password Protection" },
17
19
  { icon: ScalarIconWarningOctagon, label: "Spectral Linting" },
18
- { icon: ScalarIconBracketsCurly, label: "JSON Schema Support" }
20
+ { icon: ScalarIconBracketsCurly, label: "JSON Schema Hosting" }
19
21
  ];
20
22
  return (_ctx, _cache) => {
21
23
  return openBlock(), createElementBlock(Fragment, null, [
@@ -41,11 +43,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
43
  }, 8, ["workspace"]),
42
44
  createVNode(ApiReferenceToolbarBlurb, null, {
43
45
  default: withCtx(() => [..._cache[1] || (_cache[1] = [
44
- createTextVNode(" Uploading documents to the Scalar Registry is a Premium feature. See what else is included in our ", -1),
46
+ createTextVNode(" Deploy your documentation for free. ", -1),
47
+ createElementVNode("br", null, null, -1),
48
+ createTextVNode(" Additional features might require ", -1),
45
49
  createElementVNode("a", {
46
- href: "https://scalar.com/",
50
+ href: "https://scalar.com/products/docs/getting-started",
47
51
  target: "_blank"
48
- }, " guides", -1),
52
+ }, "Scalar Pro", -1),
49
53
  createTextVNode(". ", -1)
50
54
  ])]),
51
55
  _: 1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarShareTemporary.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue"],"names":[],"mappings":"AAiFA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAOpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAqCF,KAAK,gBAAgB,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAqFxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,73 @@
1
+ import { defineComponent, mergeModels, useModel, createElementBlock, openBlock, Fragment, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
2
+ import { useLoadingState, ScalarTextInputCopy, ScalarButton } from "@scalar/components";
3
+ import { useToasts } from "@scalar/use-toasts";
4
+ import { REGISTRY_SHARE_URL } from "../../../consts/urls.js";
5
+ import { uploadTempDocument } from "../../../helpers/upload-temp-document.js";
6
+ import ApiReferenceToolbarBlurb from "./ApiReferenceToolbarBlurb.vue.js";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "ApiReferenceToolbarShareTemporary",
9
+ props: /* @__PURE__ */ mergeModels({
10
+ workspace: {}
11
+ }, {
12
+ "url": {},
13
+ "urlModifiers": {}
14
+ }),
15
+ emits: ["update:url"],
16
+ setup(__props) {
17
+ const { toast } = useToasts();
18
+ const loader = useLoadingState();
19
+ const tempDocUrl = useModel(__props, "url");
20
+ async function generateTemporaryLink() {
21
+ if (loader.isLoading || !__props.workspace || !!tempDocUrl.value) {
22
+ return;
23
+ }
24
+ loader.start();
25
+ const document = __props.workspace.exportActiveDocument("json");
26
+ if (!document) {
27
+ toast("Unable to export active document", "error");
28
+ await loader.invalidate();
29
+ return;
30
+ }
31
+ try {
32
+ const url = await uploadTempDocument(document);
33
+ await loader.validate({ duration: 900, persist: true });
34
+ tempDocUrl.value = url;
35
+ } catch (error) {
36
+ const message = error instanceof Error ? error.message : "An unknown error occurred";
37
+ toast(message, "error");
38
+ await loader.invalidate();
39
+ }
40
+ }
41
+ return (_ctx, _cache) => {
42
+ return openBlock(), createElementBlock(Fragment, null, [
43
+ tempDocUrl.value ? (openBlock(), createBlock(unref(ScalarTextInputCopy), {
44
+ key: 0,
45
+ immediate: "",
46
+ modelValue: tempDocUrl.value,
47
+ name: "temporary-link",
48
+ placeholder: `${unref(REGISTRY_SHARE_URL)}/apis/…`
49
+ }, null, 8, ["modelValue", "placeholder"])) : (openBlock(), createBlock(unref(ScalarButton), {
50
+ key: 1,
51
+ class: "h-auto p-2.5",
52
+ loader: unref(loader),
53
+ variant: "gradient",
54
+ onClick: generateTemporaryLink
55
+ }, {
56
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
57
+ createTextVNode(" Upload Document ", -1)
58
+ ])]),
59
+ _: 1
60
+ }, 8, ["loader"])),
61
+ createVNode(ApiReferenceToolbarBlurb, { class: "-mt-1" }, {
62
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
63
+ createTextVNode(" Your document will automatically be deleted after 7 days. ", -1)
64
+ ])]),
65
+ _: 1
66
+ })
67
+ ], 64);
68
+ };
69
+ }
70
+ });
71
+ export {
72
+ _sfc_main as default
73
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarTitle.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarTitle.vue"],"names":[],"mappings":"AA+LA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -5,4 +5,4 @@ type __VLS_Props = {
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- //# sourceMappingURL=ApiReferenceToolbarSdks.vue.d.ts.map
8
+ //# sourceMappingURL=DeployApiReference.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeployApiReference.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/DeployApiReference.vue"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAiEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,35 @@
1
+ import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createTextVNode } from "vue";
2
+ import { ScalarFormSection } from "@scalar/components";
3
+ import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
4
+ import _sfc_main$2 from "./ApiReferenceToolbarShareRegister.vue.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "DeployApiReference",
7
+ props: {
8
+ workspace: {}
9
+ },
10
+ setup(__props) {
11
+ return (_ctx, _cache) => {
12
+ return openBlock(), createBlock(_sfc_main$1, { class: "w-120" }, {
13
+ label: withCtx(() => [..._cache[0] || (_cache[0] = [
14
+ createTextVNode("Deploy", -1)
15
+ ])]),
16
+ default: withCtx(() => [
17
+ createVNode(unref(ScalarFormSection), null, {
18
+ label: withCtx(() => [..._cache[1] || (_cache[1] = [
19
+ createTextVNode("Scalar Docs", -1)
20
+ ])]),
21
+ default: withCtx(() => [
22
+ _cache[2] || (_cache[2] = createElementVNode("p", { class: "text-c-2 mb-2 leading-normal" }, " Deploy your documentation on Scalar, the modern documentation platform for your API and everything else. ", -1)),
23
+ createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"])
24
+ ]),
25
+ _: 1
26
+ })
27
+ ]),
28
+ _: 1
29
+ });
30
+ };
31
+ }
32
+ });
33
+ export {
34
+ _sfc_main as default
35
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./DeployApiReference.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -13,4 +13,4 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- //# sourceMappingURL=ApiReferenceToolbarConfig.vue.d.ts.map
16
+ //# sourceMappingURL=ModifyConfiguration.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModifyConfiguration.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ModifyConfiguration.vue"],"names":[],"mappings":"AA8EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAQ5E,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AAyBF,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAsKxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -7,7 +7,7 @@ import _sfc_main$2 from "./ApiReferenceToolbarConfigTheme.vue.js";
7
7
  import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
8
8
  const _hoisted_1 = { class: "flex flex-col gap-4" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "ApiReferenceToolbarConfig",
10
+ __name: "ModifyConfiguration",
11
11
  props: /* @__PURE__ */ mergeModels({
12
12
  configuration: {}
13
13
  }, {
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./ModifyConfiguration.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -5,4 +5,4 @@ type __VLS_Props = {
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- //# sourceMappingURL=ApiReferenceToolbarShare.vue.d.ts.map
8
+ //# sourceMappingURL=ShareApiReference.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShareApiReference.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ShareApiReference.vue"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,cAAc,CAAA;CAC1B,CAAC;AAiEF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,10 +1,9 @@
1
- import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, createTextVNode } from "vue";
1
+ import { defineComponent, createBlock, openBlock, withCtx, createVNode, unref, createElementVNode, createTextVNode } from "vue";
2
2
  import { ScalarFormSection } from "@scalar/components";
3
3
  import _sfc_main$1 from "./ApiReferenceToolbarPopover.vue.js";
4
- import _sfc_main$3 from "./ApiReferenceToolbarShareRegister.vue.js";
5
4
  import _sfc_main$2 from "./ApiReferenceToolbarShareTemporary.vue.js";
6
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
- __name: "ApiReferenceToolbarShare",
6
+ __name: "ShareApiReference",
8
7
  props: {
9
8
  workspace: {}
10
9
  },
@@ -17,21 +16,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
16
  default: withCtx(() => [
18
17
  createVNode(unref(ScalarFormSection), null, {
19
18
  label: withCtx(() => [..._cache[1] || (_cache[1] = [
20
- createTextVNode("Temporary Link", -1)
19
+ createTextVNode("Share your API Reference", -1)
21
20
  ])]),
22
21
  default: withCtx(() => [
22
+ _cache[2] || (_cache[2] = createElementVNode("p", { class: "text-c-2 mb-2 leading-normal" }, " Upload your OpenAPI document to share your API Reference with others. As easy as pressing a button. ", -1)),
23
23
  createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"])
24
24
  ]),
25
25
  _: 1
26
- }),
27
- createVNode(unref(ScalarFormSection), null, {
28
- label: withCtx(() => [..._cache[2] || (_cache[2] = [
29
- createTextVNode("Cloud Hosting", -1)
30
- ])]),
31
- default: withCtx(() => [
32
- createVNode(_sfc_main$3, { workspace: __props.workspace }, null, 8, ["workspace"])
33
- ]),
34
- _: 1
35
26
  })
36
27
  ]),
37
28
  _: 1
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./ShareApiReference.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DeveloperTools } from './DeveloperTools.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/developer-tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AAgJA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAGrE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAA;IACrC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CACnC,CAAC;AAkIF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponse.vue"],"names":[],"mappings":"AAgJA,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAGrE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,eAAe,GAAG,SAAS,CAAA;IACrC,OAAO,EAAE,aAAa,GAAG,SAAS,CAAA;CACnC,CAAC;AAqHF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ExampleResponse.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-431974da"]]);
4
+ const ExampleResponse = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fa0d0b45"]]);
5
5
  export {
6
6
  ExampleResponse as default
7
7
  };
@@ -4,7 +4,7 @@ import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
4
4
  import { prettyPrintJson } from "@scalar/oas-utils/helpers";
5
5
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
6
6
  const _hoisted_1 = {
7
- key: 3,
7
+ key: 2,
8
8
  class: "empty-state"
9
9
  };
10
10
  const VIRTUALIZATION_THRESHOLD = 2e4;
@@ -25,27 +25,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  mode: "read"
26
26
  });
27
27
  }
28
- return "";
28
+ return void 0;
29
29
  };
30
- const shouldVirtualize = computed(
31
- () => prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD
32
- );
33
- const prettyPrintedContent = computed(
34
- () => prettyPrintJson(getContent())
35
- );
30
+ const prettyPrintedContent = computed(() => {
31
+ const content = getContent();
32
+ if (content === void 0) {
33
+ return void 0;
34
+ }
35
+ return prettyPrintJson(content);
36
+ });
37
+ const shouldVirtualize = computed(() => {
38
+ if (prettyPrintedContent.value === void 0) {
39
+ return false;
40
+ }
41
+ return prettyPrintedContent.value.length > VIRTUALIZATION_THRESHOLD;
42
+ });
36
43
  return (_ctx, _cache) => {
37
- return __props.example !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
44
+ return prettyPrintedContent.value !== void 0 && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
38
45
  key: 0,
39
46
  class: "bg-b-2",
40
47
  lang: "json",
41
48
  prettyPrintedContent: prettyPrintedContent.value
42
- }, null, 8, ["prettyPrintedContent"])) : __props.response?.schema && !shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
49
+ }, null, 8, ["prettyPrintedContent"])) : prettyPrintedContent.value !== void 0 && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
43
50
  key: 1,
44
- class: "bg-b-2",
45
- lang: "json",
46
- prettyPrintedContent: prettyPrintedContent.value
47
- }, null, 8, ["prettyPrintedContent"])) : (__props.example !== void 0 || __props.response?.schema) && shouldVirtualize.value ? (openBlock(), createBlock(unref(ScalarVirtualText), {
48
- key: 2,
49
51
  containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
50
52
  contentClass: "language-plaintext whitespace-pre font-code text-base",
51
53
  lineHeight: 20,
@@ -1 +1 @@
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
+ {"version":3,"file":"ExampleResponses.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleResponses.vue"],"names":[],"mappings":"AAgYA,OAAO,KAAK,EAEV,eAAe,EAChB,MAAM,8DAA8D,CAAA;AAWrE;;GAEG;AAEH,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,eAAe,CAAA;CAC3B,CAAC;AA+XF,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-4f7e7d02"]]);
4
+ const ExampleResponses = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-557aa19c"]]);
5
5
  export {
6
6
  ExampleResponses as default
7
7
  };
@@ -1,11 +1,12 @@
1
1
  import { defineComponent, useId, computed, ref, watch, toValue, createBlock, createCommentVNode, openBlock, unref, withCtx, createVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, withDirectives, createElementVNode, vModelCheckbox } from "vue";
2
2
  import { getExample } from "@scalar/api-client/v2/blocks/operation-block";
3
3
  import { getResolvedRefDeep, ExamplePicker } from "@scalar/api-client/v2/blocks/operation-code-sample";
4
- import { ScalarCard, ScalarIcon, ScalarCardSection, ScalarCodeBlock, ScalarCardFooter, ScalarMarkdown } from "@scalar/components";
5
- import { normalizeMimeTypeObject, getObjectKeys } from "@scalar/oas-utils/helpers";
4
+ import { ScalarCard, ScalarIcon, ScalarCardSection, ScalarCardFooter, ScalarMarkdown } from "@scalar/components";
5
+ import { normalizeMimeTypeObject, getObjectKeys, prettyPrintJson } from "@scalar/oas-utils/helpers";
6
6
  import { useClipboard } from "@scalar/use-hooks/useClipboard";
7
7
  import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
8
8
  import ScreenReader from "../../components/ScreenReader.vue.js";
9
+ import _sfc_main$1 from "./ExampleSchema.vue.js";
9
10
  import ExampleResponse from "./ExampleResponse.vue.js";
10
11
  import ExampleResponseTab from "./ExampleResponseTab.vue.js";
11
12
  import ExampleResponseTabList from "./ExampleResponseTabList.vue.js";
@@ -79,6 +80,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
80
  selectedResponseIndex.value = index;
80
81
  selectedExampleKey.value = "";
81
82
  };
83
+ const schemaContent = computed(() => {
84
+ if (!currentResponseContent.value?.schema) {
85
+ return void 0;
86
+ }
87
+ return prettyPrintJson(
88
+ getResolvedRefDeep(currentResponseContent.value?.schema)
89
+ );
90
+ });
82
91
  const showSchema = ref(false);
83
92
  return (_ctx, _cache) => {
84
93
  return statusCodesWithContent.value.length ? (openBlock(), createBlock(unref(ScalarCard), {
@@ -137,13 +146,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
137
146
  }),
138
147
  createVNode(unref(ScalarCardSection), { class: "grid flex-1" }, {
139
148
  default: withCtx(() => [
140
- showSchema.value && currentResponseContent.value?.schema ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
149
+ schemaContent.value !== void 0 && showSchema.value ? (openBlock(), createBlock(_sfc_main$1, {
141
150
  key: 0,
142
151
  id: unref(id),
143
- content: unref(getResolvedRefDeep)(currentResponseContent.value?.schema),
144
- class: "bg-b-2",
145
- lang: "json"
146
- }, null, 8, ["id", "content"])) : (openBlock(), createBlock(ExampleResponse, {
152
+ schemaContent: schemaContent.value
153
+ }, null, 8, ["id", "schemaContent"])) : (openBlock(), createBlock(ExampleResponse, {
147
154
  key: 1,
148
155
  id: unref(id),
149
156
  example: currentExample.value,
@@ -0,0 +1,8 @@
1
+ type __VLS_Props = {
2
+ id: string;
3
+ schemaContent: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
8
+ //# sourceMappingURL=ExampleSchema.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExampleSchema.vue.d.ts","sourceRoot":"","sources":["../../../src/features/example-responses/ExampleSchema.vue"],"names":[],"mappings":"AAoCA,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;AA4EF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,34 @@
1
+ import { defineComponent, computed, createBlock, openBlock, unref } from "vue";
2
+ import { ScalarCodeBlock, ScalarVirtualText } from "@scalar/components";
3
+ const VIRTUALIZATION_THRESHOLD = 2e4;
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "ExampleSchema",
6
+ props: {
7
+ id: {},
8
+ schemaContent: {}
9
+ },
10
+ setup(__props) {
11
+ const shouldVirtualizeSchema = computed(() => {
12
+ return __props.schemaContent.length > VIRTUALIZATION_THRESHOLD;
13
+ });
14
+ return (_ctx, _cache) => {
15
+ return !shouldVirtualizeSchema.value ? (openBlock(), createBlock(unref(ScalarCodeBlock), {
16
+ key: 0,
17
+ id: __props.id,
18
+ class: "bg-b-2",
19
+ lang: "json",
20
+ prettyPrintedContent: __props.schemaContent
21
+ }, null, 8, ["id", "prettyPrintedContent"])) : (openBlock(), createBlock(unref(ScalarVirtualText), {
22
+ key: 1,
23
+ id: __props.id,
24
+ containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
25
+ contentClass: "language-plaintext whitespace-pre font-code text-base",
26
+ lineHeight: 20,
27
+ text: __props.schemaContent
28
+ }, null, 8, ["id", "text"]));
29
+ };
30
+ }
31
+ });
32
+ export {
33
+ _sfc_main as default
34
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./ExampleSchema.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -2,5 +2,4 @@ export { default as DocumentSelector } from './multiple-documents/DocumentSelect
2
2
  export { Operation } from './Operation';
3
3
  export { default as SearchButton } from './Search/components/SearchButton.vue.js';
4
4
  export { getXKeysFromObject } from './specification-extension';
5
- export { default as ApiReferenceToolbar } from './toolbar/ApiReferenceToolbar.vue.js';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mCAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA"}
@@ -1,12 +1,10 @@
1
1
  import { default as default2 } from "./multiple-documents/DocumentSelector.vue.js";
2
2
  import { default as default3 } from "./Search/components/SearchButton.vue.js";
3
- import { default as default4 } from "./toolbar/ApiReferenceToolbar.vue.js";
4
- import { default as default5 } from "./Operation/Operation.vue.js";
3
+ import { default as default4 } from "./Operation/Operation.vue.js";
5
4
  import { getXKeysFromObject } from "./specification-extension/helpers.js";
6
5
  export {
7
- default4 as ApiReferenceToolbar,
8
6
  default2 as DocumentSelector,
9
- default5 as Operation,
7
+ default4 as Operation,
10
8
  default3 as SearchButton,
11
9
  getXKeysFromObject
12
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAc/C,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AAkGlF;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAUpC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SA2D/G,CAAA"}
1
+ {"version":3,"file":"lazy-bus.d.ts","sourceRoot":"","sources":["../../src/helpers/lazy-bus.ts"],"names":[],"mappings":"AAwBA;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qCAAa,CAAA;AAc/C,KAAK,SAAS,GAAG,MAAM,IAAI,CAAA;AAE3B;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAAO,SAMpC,CAAA;AAED,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,oCAAkD,CAAA;AAkGlF;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM;;EAUpC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GACvB,IAAI,MAAM,EACV,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,EACjD,cAAc,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IAAC,QAAQ,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,GAAG,SAAS,SA2D/G,CAAA"}
@@ -6,6 +6,7 @@ const priorityQueue = reactive(/* @__PURE__ */ new Set());
6
6
  const pendingQueue = reactive(/* @__PURE__ */ new Set());
7
7
  const readyQueue = reactive(/* @__PURE__ */ new Set());
8
8
  const isRunning = ref(false);
9
+ const SCROLL_RETRY_MS = 3e3;
9
10
  const firstLazyLoadComplete = ref(false);
10
11
  const intersectionBlockers = reactive(/* @__PURE__ */ new Set());
11
12
  const onRenderComplete = /* @__PURE__ */ new Set();
@@ -105,7 +106,7 @@ const scrollToLazy = (id, setExpanded, getEntryById) => {
105
106
  });
106
107
  }
107
108
  }
108
- tryScroll(id, Date.now() + 1e3, unblock, unfreeze);
109
+ tryScroll(id, Date.now() + SCROLL_RETRY_MS, unblock, unfreeze);
109
110
  setExpanded(rawId, true);
110
111
  const addParents = (currentId) => {
111
112
  const parent = getEntryById(currentId)?.parent;