@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
@@ -1 +1 @@
1
- {"version":3,"file":"AgentScalarChatInterface.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarChatInterface.vue"],"names":[],"mappings":"AAmCA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAI9B,KAAK,WAAW,GAAG;IACf,wBAAwB,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACtE,cAAc,EAAE,cAAc,CAAA;IAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC/B,CAAC;AA+DJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"AgentScalarChatInterface.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AgentScalar/AgentScalarChatInterface.vue"],"names":[],"mappings":"AAoCA,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,6BAA6B,CAAA;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAI9B,KAAK,WAAW,GAAG;IACf,wBAAwB,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACtE,cAAc,EAAE,cAAc,CAAA;IAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC/B,CAAC;AAiEJ,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -15,11 +15,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  dashboardUrl: unref(DASHBOARD_URL),
16
16
  getActiveDocumentJson: () => __props.workspaceStore.exportActiveDocument("json"),
17
17
  getAgentKey: __props.agentScalarConfiguration?.key ? () => __props.agentScalarConfiguration?.key ?? "" : void 0,
18
+ hideAddApi: __props.agentScalarConfiguration?.hideAddApi,
18
19
  mode: __props.agentScalarConfiguration?.key ? "full" : "preview",
19
20
  prefilledMessage: __props.prefilledMessage,
20
21
  registryDocuments: [],
21
22
  registryUrl: unref(REGISTRY_URL)
22
- }, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "mode", "prefilledMessage", "registryUrl"]);
23
+ }, null, 8, ["baseUrl", "dashboardUrl", "getActiveDocumentJson", "getAgentKey", "hideAddApi", "mode", "prefilledMessage", "registryUrl"]);
23
24
  };
24
25
  }
25
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReference.vue"],"names":[],"mappings":"AA4vCA,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;AA20CF,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":"AA4vCA,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;AA80CF,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-9cc2ab84"]]);
7
+ const ApiReference = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-94d6fca6"]]);
8
8
  export {
9
9
  ApiReference as default
10
10
  };
@@ -25,7 +25,6 @@ import _sfc_main$5 from "./Content/Content.vue.js";
25
25
  import _sfc_main$1 from "./MobileHeader.vue.js";
26
26
  import _sfc_main$2 from "../features/multiple-documents/DocumentSelector.vue.js";
27
27
  import _sfc_main$3 from "../features/Search/components/SearchButton.vue.js";
28
- import _sfc_main$6 from "../features/toolbar/ApiReferenceToolbar.vue.js";
29
28
  import { getSystemModePreference } from "../helpers/color-mode.js";
30
29
  import { downloadDocument } from "../helpers/download.js";
31
30
  import { getIdFromUrl, makeUrlFromId } from "../helpers/id-routing.js";
@@ -40,6 +39,7 @@ import { PLUGIN_MANAGER_SYMBOL } from "../plugins/hooks/usePluginManager.js";
40
39
  import { createPluginManager } from "../plugins/plugin-manager.js";
41
40
  import AgentScalarDrawer from "./AgentScalar/AgentScalarDrawer.vue.js";
42
41
  import _sfc_main$4 from "./AgentScalar/AgentScalarButton.vue.js";
42
+ import _sfc_main$6 from "../features/developer-tools/DeveloperTools.vue.js";
43
43
  const _hoisted_1 = {
44
44
  key: 1,
45
45
  class: "flex gap-1.5 px-3 pt-3"
@@ -653,7 +653,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
653
653
  xScalarDefaultClient: unref(workspaceStore).workspace["x-scalar-default-client"]
654
654
  }, createSlots({
655
655
  start: withCtx(() => [
656
- unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(_sfc_main$6, {
656
+ unref(workspaceStore).workspace.activeDocument && unref(mediaQueries).lg.value ? (openBlock(), createBlock(unref(_sfc_main$6), {
657
657
  key: 0,
658
658
  overrides: configurationOverrides.value,
659
659
  "onUpdate:overrides": _cache[4] || (_cache[4] = ($event) => configurationOverrides.value = $event),
@@ -48,7 +48,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
48
  })
49
49
  );
50
50
  const selectedServer = computed(
51
- () => getSelectedServer(__props.document ?? null, servers.value)
51
+ () => getSelectedServer(servers.value, __props.document?.["x-scalar-selected-server"])
52
52
  );
53
53
  const securitySchemes = computed(
54
54
  () => mergeSecurity(
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ value?: unknown;
3
+ };
4
+ 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>;
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ //# sourceMappingURL=SchemaPropertyDefault.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaPropertyDefault.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyDefault.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;AA+FF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./SchemaPropertyDefault.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const SchemaPropertyDefault = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-4da5c70a"]]);
5
+ export {
6
+ SchemaPropertyDefault as default
7
+ };
@@ -0,0 +1,45 @@
1
+ import { defineComponent, createElementBlock, createCommentVNode, openBlock, createElementVNode, unref, createVNode, toDisplayString } from "vue";
2
+ import { ScalarIcon } from "@scalar/components";
3
+ import { useClipboard } from "@scalar/use-hooks/useClipboard";
4
+ import { formatValue } from "./helpers/format-value.js";
5
+ const _hoisted_1 = {
6
+ key: 0,
7
+ class: "property-default"
8
+ };
9
+ const _hoisted_2 = { class: "property-default-value-list" };
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "SchemaPropertyDefault",
12
+ props: {
13
+ value: {}
14
+ },
15
+ setup(__props) {
16
+ const { copyToClipboard } = useClipboard();
17
+ return (_ctx, _cache) => {
18
+ return __props.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_1, [
19
+ _cache[1] || (_cache[1] = createElementVNode("button", {
20
+ class: "property-default-label",
21
+ type: "button"
22
+ }, [
23
+ createElementVNode("span", null, "Default")
24
+ ], -1)),
25
+ createElementVNode("div", _hoisted_2, [
26
+ createElementVNode("button", {
27
+ class: "property-default-value group",
28
+ type: "button",
29
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(copyToClipboard)(unref(formatValue)(__props.value)))
30
+ }, [
31
+ createElementVNode("span", null, toDisplayString(unref(formatValue)(__props.value)), 1),
32
+ createVNode(unref(ScalarIcon), {
33
+ class: "group-hover:text-c-1 text-c-3 ml-auto min-h-3 min-w-3",
34
+ icon: "Clipboard",
35
+ size: "xs"
36
+ })
37
+ ])
38
+ ])
39
+ ])) : createCommentVNode("", true);
40
+ };
41
+ }
42
+ });
43
+ export {
44
+ _sfc_main as default
45
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAocA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAiBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AAuhBJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK5C,QAAA,MAAM,UAAU;cAliBD,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAmiBxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAiaA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAkBhG,KAAK,WAAW,GAAG;IACf,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6eJ,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK5C,QAAA,MAAM,UAAU;cAxfD,OAAO;oBAGD,OAAO;qBAJN,OAAO;kBAGV,OAAO;6EAyfxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0bec998b"]]);
4
+ const SchemaPropertyHeading = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b69e3089"]]);
5
5
  export {
6
6
  SchemaPropertyHeading as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx, createVNode, createTextVNode, toDisplayString, renderList, createSlots, unref } from "vue";
1
+ import { defineComponent, toRef, computed, createElementBlock, openBlock, createCommentVNode, createVNode, createBlock, normalizeClass, renderSlot, Fragment, withCtx, createTextVNode, toDisplayString, renderList, createSlots, unref } from "vue";
2
2
  import { isDefined } from "@scalar/helpers/array/is-defined";
3
3
  import { resolve } from "@scalar/workspace-store/resolve";
4
4
  import { isArraySchema, isStringSchema, isNumberSchema } from "@scalar/workspace-store/schemas/v3.1/strict/type-guards";
@@ -6,6 +6,7 @@ import ScreenReader from "../../ScreenReader.vue.js";
6
6
  import { getSchemaType } from "./helpers/get-schema-type.js";
7
7
  import { getModelNameFromSchema } from "./helpers/schema-name.js";
8
8
  import _sfc_main$1 from "./RenderString.vue.js";
9
+ import SchemaPropertyDefault from "./SchemaPropertyDefault.vue.js";
9
10
  import SchemaPropertyDetail from "./SchemaPropertyDetail.vue.js";
10
11
  import SchemaPropertyExamples from "./SchemaPropertyExamples.vue.js";
11
12
  import Badge from "../../Badge/Badge.vue.js";
@@ -198,25 +199,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
198
199
  }
199
200
  return getSchemaType(props.value);
200
201
  });
201
- const flattenedDefaultValue = computed(() => {
202
- const value = props.value;
203
- if (value?.default === null) {
204
- return "null";
205
- }
206
- if (Array.isArray(value?.default) && value?.default.length === 1) {
207
- return String(value?.default[0]);
208
- }
209
- if (typeof value?.default === "string") {
210
- return JSON.stringify(value.default);
211
- }
212
- if (Array.isArray(value?.default)) {
213
- return JSON.stringify(value?.default);
214
- }
215
- if (typeof value?.default === "object") {
216
- return JSON.stringify(value?.default);
217
- }
218
- return value?.default;
219
- });
220
202
  return (_ctx, _cache) => {
221
203
  return openBlock(), createElementBlock("div", _hoisted_1, [
222
204
  _ctx.$slots.name ? (openBlock(), createElementBlock("div", {
@@ -278,18 +260,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
278
260
  createTextVNode("enum", -1)
279
261
  ])]),
280
262
  _: 1
281
- })) : createCommentVNode("", true),
282
- flattenedDefaultValue.value !== void 0 ? (openBlock(), createBlock(SchemaPropertyDetail, {
283
- key: 2,
284
- truncate: ""
285
- }, {
286
- prefix: withCtx(() => [..._cache[4] || (_cache[4] = [
287
- createTextVNode("default:", -1)
288
- ])]),
289
- default: withCtx(() => [
290
- createTextVNode(toDisplayString(flattenedDefaultValue.value), 1)
291
- ]),
292
- _: 1
293
263
  })) : createCommentVNode("", true)
294
264
  ], 64)) : createCommentVNode("", true),
295
265
  props.additional ? (openBlock(), createElementBlock("div", _hoisted_3, [
@@ -301,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
301
271
  ])) : createCommentVNode("", true),
302
272
  props.value?.deprecated ? (openBlock(), createElementBlock("div", _hoisted_4, [
303
273
  createVNode(unref(Badge), null, {
304
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
274
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
305
275
  createTextVNode("deprecated", -1)
306
276
  ])]),
307
277
  _: 1
@@ -309,7 +279,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
309
279
  ])) : createCommentVNode("", true),
310
280
  constValue.value !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
311
281
  createVNode(SchemaPropertyDetail, { truncate: "" }, {
312
- prefix: withCtx(() => [..._cache[6] || (_cache[6] = [
282
+ prefix: withCtx(() => [..._cache[5] || (_cache[5] = [
313
283
  createTextVNode("const: ", -1)
314
284
  ])]),
315
285
  default: withCtx(() => [
@@ -319,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
319
289
  })
320
290
  ])) : (openBlock(), createElementBlock(Fragment, { key: 6 }, [
321
291
  props.value?.nullable === true ? (openBlock(), createBlock(SchemaPropertyDetail, { key: 0 }, {
322
- default: withCtx(() => [..._cache[7] || (_cache[7] = [
292
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
323
293
  createTextVNode(" nullable ", -1)
324
294
  ])]),
325
295
  _: 1
@@ -327,6 +297,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
327
297
  ], 64)),
328
298
  props.value?.writeOnly ? (openBlock(), createElementBlock("div", _hoisted_6, " write-only ")) : props.value?.readOnly ? (openBlock(), createElementBlock("div", _hoisted_7, " read-only ")) : createCommentVNode("", true),
329
299
  props.required ? (openBlock(), createElementBlock("div", _hoisted_8, " required ")) : createCommentVNode("", true),
300
+ createVNode(SchemaPropertyDefault, {
301
+ value: props.value?.default
302
+ }, null, 8, ["value"]),
330
303
  props.withExamples ? (openBlock(), createBlock(SchemaPropertyExamples, {
331
304
  key: 10,
332
305
  example: props.value?.example || props.value && unref(isArraySchema)(props.value) && unref(resolve).schema(props.value?.items)?.example,
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Converts a value to a string that can be displayed in the UI.
3
+ */
4
+ export declare function formatValue(value: unknown): string | number;
5
+ //# sourceMappingURL=format-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format-value.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/format-value.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CA0C3D"}
@@ -0,0 +1,35 @@
1
+ function formatValue(value) {
2
+ if (Array.isArray(value)) {
3
+ return `[${value.map((item) => {
4
+ if (typeof item === "string") {
5
+ return `"${item.toString().trim()}"`;
6
+ }
7
+ if (typeof item === "object") {
8
+ return JSON.stringify(item);
9
+ }
10
+ if (item === void 0) {
11
+ return "undefined";
12
+ }
13
+ if (item === null) {
14
+ return "null";
15
+ }
16
+ return item;
17
+ }).join(", ")}]`;
18
+ }
19
+ if (value === null) {
20
+ return "null";
21
+ }
22
+ if (typeof value === "object") {
23
+ return JSON.stringify(value);
24
+ }
25
+ if (value === void 0) {
26
+ return "undefined";
27
+ }
28
+ if (typeof value === "string") {
29
+ return value.trim();
30
+ }
31
+ return value.toString().trim();
32
+ }
33
+ export {
34
+ formatValue
35
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"filter-selected-security.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/filter-selected-security.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAKrE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,eAAe,EACzB,WAAW,eAAe,GAAG,IAAI,EACjC,2BAA2B,gBAAgB,EAC3C,4BAA4B,gBAAgB,EAC5C,kBAAiB,qBAA0B,KAC1C,0BAA0B,EA+B5B,CAAA"}
1
+ {"version":3,"file":"filter-selected-security.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/helpers/filter-selected-security.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,yDAAyD,CAAA;AAEhE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EAEhB,MAAM,8DAA8D,CAAA;AAKrE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,eAAe,EACzB,WAAW,eAAe,GAAG,IAAI,EACjC,2BAA2B,gBAAgB,EAC3C,4BAA4B,gBAAgB,EAC5C,kBAAiB,qBAA0B,KAC1C,0BAA0B,EAmC5B,CAAA"}
@@ -3,7 +3,11 @@ import { getSelectedSecurity } from "@scalar/api-client/v2/features/operation";
3
3
  const getKey = (requirement) => Object.keys(requirement).sort().join(",");
4
4
  const filterSelectedSecurity = (document, operation, selectedSecurityDocument, selectedSecurityOperation, securitySchemes = {}) => {
5
5
  const securityRequirements = operation?.security ?? document.security ?? [];
6
- const selectedSecurity = getSelectedSecurity(selectedSecurityDocument, selectedSecurityOperation);
6
+ const selectedSecurity = getSelectedSecurity(
7
+ selectedSecurityDocument,
8
+ selectedSecurityOperation,
9
+ securityRequirements
10
+ );
7
11
  const requirementSet = new Set(securityRequirements.map((r) => getKey(r)));
8
12
  const selectedRequirement = selectedSecurity.selectedSchemes[selectedSecurity.selectedIndex];
9
13
  if (selectedRequirement && requirementSet.has(getKey(selectedRequirement))) {
@@ -14,7 +18,7 @@ const filterSelectedSecurity = (document, operation, selectedSecurityDocument, s
14
18
  return getSecuritySchemes(securitySchemes, [selected]);
15
19
  }
16
20
  }
17
- if (operation?.security?.length && !document?.["x-scalar-set-operation-security"]) {
21
+ if (operation?.security?.length) {
18
22
  return getSecuritySchemes(securitySchemes, securityRequirements.slice(0, 1));
19
23
  }
20
24
  return [];
@@ -1 +1 @@
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
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAgQA,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;AAmjBJ,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-d5291d61"]]);
4
+ const ModernLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c3c5405"]]);
5
5
  export {
6
6
  ModernLayout as default
7
7
  };
@@ -29,6 +29,7 @@ const _hoisted_2 = { class: "flex gap-1" };
29
29
  const _hoisted_3 = { class: "flex gap-1" };
30
30
  const _hoisted_4 = { class: "operation-details" };
31
31
  const _hoisted_5 = { class: "examples" };
32
+ const _hoisted_6 = { class: "flex" };
32
33
  const _sfc_main = /* @__PURE__ */ defineComponent({
33
34
  __name: "ModernLayout",
34
35
  props: {
@@ -206,15 +207,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
206
207
  !__props.isWebhook ? {
207
208
  name: "footer",
208
209
  fn: withCtx(({ exampleName }) => [
209
- createVNode(AskAgentButton),
210
- !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
211
- key: 0,
212
- id: __props.id,
213
- eventBus: __props.eventBus,
214
- exampleName,
215
- method: __props.method,
216
- path: __props.path
217
- }, null, 8, ["id", "eventBus", "exampleName", "method", "path"])) : createCommentVNode("", true)
210
+ createElementVNode("div", _hoisted_6, [
211
+ createVNode(AskAgentButton),
212
+ !__props.options.hideTestRequestButton ? (openBlock(), createBlock(unref(TestRequestButton), {
213
+ key: 0,
214
+ id: __props.id,
215
+ eventBus: __props.eventBus,
216
+ exampleName,
217
+ method: __props.method,
218
+ path: __props.path
219
+ }, null, 8, ["id", "eventBus", "exampleName", "method", "path"])) : createCommentVNode("", true)
220
+ ])
218
221
  ]),
219
222
  key: "0"
220
223
  } : void 0
@@ -1 +1 @@
1
- {"version":3,"file":"AskAgentButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ask-agent-button/AskAgentButton.vue"],"names":[],"mappings":"AA6OA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"AskAgentButton.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ask-agent-button/AskAgentButton.vue"],"names":[],"mappings":"AAgPA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./AskAgentButton.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const AskAgentButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b5a61e43"]]);
4
+ const AskAgentButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f43e32ab"]]);
5
5
  export {
6
6
  AskAgentButton as default
7
7
  };
@@ -15,4 +15,4 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  export default _default;
18
- //# sourceMappingURL=ApiReferenceToolbar.vue.d.ts.map
18
+ //# sourceMappingURL=DeveloperTools.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeveloperTools.vue.d.ts","sourceRoot":"","sources":["../../../src/features/developer-tools/DeveloperTools.vue"],"names":[],"mappings":"AA0DA,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;AAuBF,KAAK,gBAAgB,GAAG;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAC;CAChD,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAsFxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, mergeModels, useModel, computed, createElementBlock, createCommentVNode, openBlock, createElementVNode, createVNode, Fragment } from "vue";
2
2
  import { isLocalUrl } from "@scalar/helpers/url/is-local-url";
3
- import _sfc_main$4 from "./ApiReferenceToolbarConfig.vue.js";
4
- import _sfc_main$3 from "./ApiReferenceToolbarSdks.vue.js";
5
- import _sfc_main$2 from "./ApiReferenceToolbarShare.vue.js";
6
- import _sfc_main$1 from "./ApiReferenceToolbarTitle.vue.js";
3
+ import _sfc_main$1 from "./components/ApiReferenceToolbarTitle.vue.js";
4
+ import _sfc_main$4 from "./components/DeployApiReference.vue.js";
5
+ import _sfc_main$2 from "./components/ModifyConfiguration.vue.js";
6
+ import _sfc_main$3 from "./components/ShareApiReference.vue.js";
7
7
  const _hoisted_1 = {
8
8
  key: 0,
9
9
  "aria-label": "Developer Tools",
@@ -12,7 +12,7 @@ const _hoisted_1 = {
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" };
14
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
15
- __name: "ApiReferenceToolbar",
15
+ __name: "DeveloperTools",
16
16
  props: /* @__PURE__ */ mergeModels({
17
17
  workspace: {},
18
18
  configuration: {}
@@ -41,15 +41,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  createElementVNode("div", _hoisted_3, [
42
42
  createVNode(_sfc_main$1)
43
43
  ]),
44
- __props.workspace ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
45
- createVNode(_sfc_main$2, { workspace: __props.workspace }, null, 8, ["workspace"]),
46
- createVNode(_sfc_main$3, { workspace: __props.workspace }, null, 8, ["workspace"])
47
- ], 64)) : createCommentVNode("", true),
48
- createVNode(_sfc_main$4, {
44
+ createVNode(_sfc_main$2, {
49
45
  overrides: overrides.value,
50
46
  "onUpdate:overrides": _cache[0] || (_cache[0] = ($event) => overrides.value = $event),
51
47
  configuration: __props.configuration
52
- }, null, 8, ["overrides", "configuration"])
48
+ }, null, 8, ["overrides", "configuration"]),
49
+ __props.workspace ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
50
+ createVNode(_sfc_main$3, { workspace: __props.workspace }, null, 8, ["workspace"]),
51
+ createVNode(_sfc_main$4, { workspace: __props.workspace }, null, 8, ["workspace"])
52
+ ], 64)) : createCommentVNode("", true)
53
53
  ])
54
54
  ])) : createCommentVNode("", true);
55
55
  };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./DeveloperTools.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarBlurb.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarBlurb.vue"],"names":[],"mappings":"AA8BA,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,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"}
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock, openBlock, renderSlot } from "vue";
2
- import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
2
+ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
3
3
  const _sfc_main = {};
4
4
  const _hoisted_1 = { class: "text-c-3 [&_code]:font-code [&_a:hover]:text-c-1 text-center leading-normal [&_a]:underline" };
5
5
  function _sfc_render(_ctx, _cache) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue"],"names":[],"mappings":"AAoDA,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CACjC,CAAC;AA2CF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,6 +1,7 @@
1
1
  import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type LayoutOptions = {
3
3
  showSidebar?: boolean;
4
+ defaultOpenFirstTag?: boolean;
4
5
  defaultOpenAllTags?: boolean;
5
6
  expandAllModelSections?: boolean;
6
7
  expandAllResponses?: boolean;
@@ -9,6 +10,7 @@ type LayoutOptions = {
9
10
  hideModels?: boolean;
10
11
  hideSearch?: boolean;
11
12
  hideTestRequestButton?: boolean;
13
+ showOperationId?: boolean;
12
14
  };
13
15
  type __VLS_Props = {
14
16
  configuration?: Partial<ApiReferenceConfiguration>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigLayoutOptions.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAE5E,KAAK,aAAa,GAAG;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CACnD,CAAC;AA8BF,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA6QxD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -32,79 +32,97 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  modelValue: getValue("showSidebar", true),
33
33
  "onUpdate:modelValue": _cache[0] || (_cache[0] = (v) => setValue("showSidebar", !!v, true))
34
34
  }, {
35
- default: withCtx(() => [..._cache[9] || (_cache[9] = [
35
+ default: withCtx(() => [..._cache[11] || (_cache[11] = [
36
36
  createTextVNode(" Show Sidebar ", -1)
37
37
  ])]),
38
38
  _: 1
39
39
  }, 8, ["modelValue"]),
40
+ createVNode(unref(ScalarToggleInput), {
41
+ modelValue: getValue("defaultOpenFirstTag", true),
42
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => setValue("defaultOpenFirstTag", !!v, true))
43
+ }, {
44
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
45
+ createTextVNode(" Default Open First Tag ", -1)
46
+ ])]),
47
+ _: 1
48
+ }, 8, ["modelValue"]),
40
49
  createVNode(unref(ScalarToggleInput), {
41
50
  modelValue: getValue("defaultOpenAllTags"),
42
- "onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => setValue("defaultOpenAllTags", !!v))
51
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = (v) => setValue("defaultOpenAllTags", !!v))
43
52
  }, {
44
- default: withCtx(() => [..._cache[10] || (_cache[10] = [
53
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
45
54
  createTextVNode(" Default Open All Tags ", -1)
46
55
  ])]),
47
56
  _: 1
48
57
  }, 8, ["modelValue"]),
49
58
  createVNode(unref(ScalarToggleInput), {
50
59
  modelValue: getValue("expandAllModelSections"),
51
- "onUpdate:modelValue": _cache[2] || (_cache[2] = (v) => setValue("expandAllModelSections", !!v))
60
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = (v) => setValue("expandAllModelSections", !!v))
52
61
  }, {
53
- default: withCtx(() => [..._cache[11] || (_cache[11] = [
62
+ default: withCtx(() => [..._cache[14] || (_cache[14] = [
54
63
  createTextVNode(" Expand All Model Sections ", -1)
55
64
  ])]),
56
65
  _: 1
57
66
  }, 8, ["modelValue"]),
58
67
  createVNode(unref(ScalarToggleInput), {
59
68
  modelValue: getValue("expandAllResponses"),
60
- "onUpdate:modelValue": _cache[3] || (_cache[3] = (v) => setValue("expandAllResponses", !!v))
69
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = (v) => setValue("expandAllResponses", !!v))
61
70
  }, {
62
- default: withCtx(() => [..._cache[12] || (_cache[12] = [
71
+ default: withCtx(() => [..._cache[15] || (_cache[15] = [
63
72
  createTextVNode(" Expand All Responses ", -1)
64
73
  ])]),
65
74
  _: 1
66
75
  }, 8, ["modelValue"]),
67
76
  createVNode(unref(ScalarToggleInput), {
68
77
  modelValue: getValue("hideClientButton"),
69
- "onUpdate:modelValue": _cache[4] || (_cache[4] = (v) => setValue("hideClientButton", !!v))
78
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = (v) => setValue("hideClientButton", !!v))
70
79
  }, {
71
- default: withCtx(() => [..._cache[13] || (_cache[13] = [
80
+ default: withCtx(() => [..._cache[16] || (_cache[16] = [
72
81
  createTextVNode(" Hide Client Button ", -1)
73
82
  ])]),
74
83
  _: 1
75
84
  }, 8, ["modelValue"]),
76
85
  createVNode(unref(ScalarToggleInput), {
77
86
  modelValue: getValue("hideDarkModeToggle"),
78
- "onUpdate:modelValue": _cache[5] || (_cache[5] = (v) => setValue("hideDarkModeToggle", !!v))
87
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = (v) => setValue("hideDarkModeToggle", !!v))
79
88
  }, {
80
- default: withCtx(() => [..._cache[14] || (_cache[14] = [
89
+ default: withCtx(() => [..._cache[17] || (_cache[17] = [
81
90
  createTextVNode(" Hide Dark Mode Toggle ", -1)
82
91
  ])]),
83
92
  _: 1
84
93
  }, 8, ["modelValue"]),
85
94
  createVNode(unref(ScalarToggleInput), {
86
95
  modelValue: getValue("hideModels"),
87
- "onUpdate:modelValue": _cache[6] || (_cache[6] = (v) => setValue("hideModels", !!v))
96
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = (v) => setValue("hideModels", !!v))
88
97
  }, {
89
- default: withCtx(() => [..._cache[15] || (_cache[15] = [
98
+ default: withCtx(() => [..._cache[18] || (_cache[18] = [
90
99
  createTextVNode(" Hide Models ", -1)
91
100
  ])]),
92
101
  _: 1
93
102
  }, 8, ["modelValue"]),
94
103
  createVNode(unref(ScalarToggleInput), {
95
104
  modelValue: getValue("hideSearch"),
96
- "onUpdate:modelValue": _cache[7] || (_cache[7] = (v) => setValue("hideSearch", !!v))
105
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = (v) => setValue("hideSearch", !!v))
97
106
  }, {
98
- default: withCtx(() => [..._cache[16] || (_cache[16] = [
107
+ default: withCtx(() => [..._cache[19] || (_cache[19] = [
99
108
  createTextVNode(" Hide Search ", -1)
100
109
  ])]),
101
110
  _: 1
102
111
  }, 8, ["modelValue"]),
112
+ createVNode(unref(ScalarToggleInput), {
113
+ modelValue: getValue("showOperationId"),
114
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = (v) => setValue("showOperationId", !!v))
115
+ }, {
116
+ default: withCtx(() => [..._cache[20] || (_cache[20] = [
117
+ createTextVNode(" Show Operation ID ", -1)
118
+ ])]),
119
+ _: 1
120
+ }, 8, ["modelValue"]),
103
121
  createVNode(unref(ScalarToggleInput), {
104
122
  modelValue: getValue("hideTestRequestButton"),
105
- "onUpdate:modelValue": _cache[8] || (_cache[8] = (v) => setValue("hideTestRequestButton", !!v))
123
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = (v) => setValue("hideTestRequestButton", !!v))
106
124
  }, {
107
- default: withCtx(() => [..._cache[17] || (_cache[17] = [
125
+ default: withCtx(() => [..._cache[21] || (_cache[21] = [
108
126
  createTextVNode(" Hide Test Request Button ", -1)
109
127
  ])]),
110
128
  _: 1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApiReferenceToolbarConfigTheme.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue"],"names":[],"mappings":"AA4EA,OAAO,EAAkC,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAgC7E,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AA6IF,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}