@scalar/api-client 2.26.1 → 2.27.1

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 (158) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/components/Server/ServerSelector.vue.js +6 -6
  3. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +6 -6
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +1 -1
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +48 -43
  8. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  9. package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -10
  10. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  11. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +29 -25
  12. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
  13. package/dist/v2/blocks/operation-block/helpers/get-example.js +15 -15
  14. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts +10 -0
  15. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.d.ts.map +1 -0
  16. package/dist/v2/blocks/operation-block/helpers/get-selected-body-content-type.js +4 -0
  17. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts +1 -1
  18. package/dist/v2/blocks/operation-block/helpers/send-request.d.ts.map +1 -1
  19. package/dist/v2/blocks/operation-block/helpers/send-request.js +1 -1
  20. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +1 -1
  21. package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
  22. package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
  23. package/dist/v2/blocks/request-block/RequestBlock.vue2.js +101 -100
  24. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  25. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  26. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +62 -69
  27. package/dist/v2/blocks/request-block/components/RequestParams.vue.js +6 -6
  28. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +36 -2
  29. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  31. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +38 -3
  32. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  33. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  34. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts +1 -1
  35. package/dist/v2/blocks/response-block/ResponseBlock.vue.d.ts.map +1 -1
  36. package/dist/v2/blocks/response-block/ResponseBlock.vue.js +1 -1
  37. package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +68 -69
  38. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.d.ts.map +1 -1
  39. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue.js +1 -1
  40. package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +31 -40
  41. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -1
  42. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +35 -41
  43. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  44. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +37 -41
  45. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +3 -2
  46. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
  47. package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +107 -87
  48. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts +21 -0
  49. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.d.ts.map +1 -0
  50. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue.js +91 -0
  51. package/dist/v2/blocks/scalar-auth-selector-block/components/OpenIDConnect.vue2.js +4 -0
  52. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
  53. package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +107 -93
  54. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  55. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +87 -65
  56. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts +36 -0
  57. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.d.ts.map +1 -0
  58. package/dist/v2/blocks/scalar-auth-selector-block/helpers/fetch-openid-connect-discovery.js +35 -0
  59. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts +1 -1
  60. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.d.ts.map +1 -1
  61. package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-security.js +18 -10
  62. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts +5 -0
  63. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.d.ts.map +1 -0
  64. package/dist/v2/blocks/scalar-auth-selector-block/helpers/openid-discovery-to-flows.js +27 -0
  65. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts +3 -1
  66. package/dist/v2/blocks/scalar-auth-selector-block/helpers/secret-types.d.ts.map +1 -1
  67. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts +1 -2
  68. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
  69. package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +29 -37
  70. package/dist/v2/components/layout/CollapsibleSection.vue.js +1 -1
  71. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts +2 -2
  72. package/dist/v2/components/modals/ModalClientContainer.vue.d.ts.map +1 -1
  73. package/dist/v2/components/modals/ModalClientContainer.vue.js +1 -1
  74. package/dist/v2/components/modals/ModalClientContainer.vue2.js +45 -42
  75. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -0
  76. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  77. package/dist/v2/components/sidebar/Sidebar.vue.js +25 -24
  78. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -0
  79. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  80. package/dist/v2/components/sidebar/SidebarMenu.vue.js +30 -30
  81. package/dist/v2/features/app/App.vue.d.ts +6 -1
  82. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  83. package/dist/v2/features/app/App.vue.js +48 -46
  84. package/dist/v2/features/app/app-events.d.ts +1 -1
  85. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  86. package/dist/v2/features/app/app-events.js +95 -56
  87. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  88. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  89. package/dist/v2/features/app/components/AppSidebar.vue2.js +111 -105
  90. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +12 -2
  91. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  92. package/dist/v2/features/app/helpers/create-api-client-app.js +12 -10
  93. package/dist/v2/features/app/helpers/routes.d.ts +3 -1
  94. package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
  95. package/dist/v2/features/app/hooks/use-theme.d.ts +42 -0
  96. package/dist/v2/features/app/hooks/use-theme.d.ts.map +1 -0
  97. package/dist/v2/features/app/hooks/use-theme.js +34 -0
  98. package/dist/v2/features/app/index.d.ts +0 -1
  99. package/dist/v2/features/app/index.d.ts.map +1 -1
  100. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  101. package/dist/v2/features/collection/DocumentCollection.vue.js +27 -26
  102. package/dist/v2/features/collection/WorkspaceCollection.vue.js +13 -12
  103. package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
  104. package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
  105. package/dist/v2/features/collection/components/Authentication.vue2.js +49 -40
  106. package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
  107. package/dist/v2/features/collection/components/Cookies.vue.js +26 -13
  108. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  109. package/dist/v2/features/collection/components/Environment.vue.js +27 -15
  110. package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
  111. package/dist/v2/features/collection/components/Overview.vue.js +2 -2
  112. package/dist/v2/features/collection/components/Overview.vue2.js +68 -61
  113. package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
  114. package/dist/v2/features/collection/components/Servers.vue.js +93 -88
  115. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  116. package/dist/v2/features/collection/components/Settings.vue.js +19 -17
  117. package/dist/v2/features/environments/EnvironmentsList.vue.js +1 -1
  118. package/dist/v2/features/global-cookies/components/CookiesTable.vue.d.ts.map +1 -1
  119. package/dist/v2/features/global-cookies/components/CookiesTable.vue.js +2 -2
  120. package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +8 -8
  121. package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
  122. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  123. package/dist/v2/features/modal/Modal.vue.js +15 -15
  124. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +1 -1
  125. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  126. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  127. package/dist/v2/features/operation/Operation.vue.js +31 -34
  128. package/dist/v2/features/settings/CollectionSettings.vue.d.ts +10 -7
  129. package/dist/v2/features/settings/CollectionSettings.vue.d.ts.map +1 -1
  130. package/dist/v2/features/settings/CollectionSettings.vue.js +183 -149
  131. package/dist/v2/features/settings/DocumentSettings.vue.d.ts.map +1 -1
  132. package/dist/v2/features/settings/DocumentSettings.vue.js +88 -79
  133. package/dist/v2/features/settings/components/Section.vue.d.ts +2 -1
  134. package/dist/v2/features/settings/components/Section.vue.d.ts.map +1 -1
  135. package/dist/v2/features/settings/components/Section.vue.js +26 -15
  136. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts +4 -3
  137. package/dist/v2/features/settings/helpers/get-theme-colors.d.ts.map +1 -1
  138. package/dist/v2/features/settings/helpers/get-theme-colors.js +6 -7
  139. package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
  140. package/dist/v2/helpers/handle-hotkeys.js +2 -2
  141. package/dist/v2/helpers/index.d.ts +0 -1
  142. package/dist/v2/helpers/index.d.ts.map +1 -1
  143. package/dist/v2/hooks/use-global-hot-keys.d.ts +3 -1
  144. package/dist/v2/hooks/use-global-hot-keys.d.ts.map +1 -1
  145. package/dist/v2/hooks/use-global-hot-keys.js +8 -6
  146. package/dist/v2/workspace-events.d.ts.map +1 -1
  147. package/dist/v2/workspace-events.js +10 -0
  148. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  149. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  150. package/dist/views/Request/RequestSidebar.vue2.js +139 -155
  151. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  152. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  153. package/dist/views/Request/RequestSidebarItem.vue2.js +104 -101
  154. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  155. package/package.json +20 -18
  156. package/dist/v2/helpers/plugins.d.ts +0 -65
  157. package/dist/v2/helpers/plugins.d.ts.map +0 -1
  158. package/dist/v2/helpers/plugins.js +0 -11
@@ -17,9 +17,9 @@ const A = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
17
17
  },
18
18
  emits: ["upsert", "delete", "deleteAll"],
19
19
  setup(e, { emit: f }) {
20
- const a = f, w = R(() => e.rows.length > 1), p = (i, t) => {
21
- const { value: l, ...v } = t;
22
- l instanceof File || a("upsert", i, { ...v, value: l ?? "" });
20
+ const a = f, v = R(() => e.rows.length > 1), w = (i, t) => {
21
+ const { value: l, ...p } = t;
22
+ l instanceof File || a("upsert", i, { ...p, value: l ?? "" });
23
23
  };
24
24
  return (i, t) => (r(), s(n(C), {
25
25
  class: "group/params",
@@ -30,7 +30,7 @@ const A = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
30
30
  ]),
31
31
  actions: o(() => [
32
32
  d("div", A, [
33
- w.value ? (r(), s(n(b), {
33
+ v.value ? (r(), s(n(b), {
34
34
  key: 0,
35
35
  content: "Clear optional parameters",
36
36
  placement: "left"
@@ -65,8 +65,8 @@ const A = { class: "text-c-2 request-meta-buttons flex whitespace-nowrap opacity
65
65
  label: e.label,
66
66
  showAddRowPlaceholder: e.showAddRowPlaceholder,
67
67
  onDeleteRow: t[1] || (t[1] = (l) => a("delete", { index: l })),
68
- onNavigate: t[2] || (t[2] = (l) => e.eventBus.emit("ui:route:page", { name: l })),
69
- onUpsertRow: p
68
+ onNavigate: t[2] || (t[2] = (l) => e.eventBus.emit("ui:navigate", l)),
69
+ onUpsertRow: w
70
70
  }, null, 8, ["data", "environment", "exampleKey", "globalRoute", "invalidParams", "label", "showAddRowPlaceholder"])
71
71
  ]),
72
72
  _: 1
@@ -11,7 +11,24 @@ type __VLS_Props = {
11
11
  environment: XScalarEnvironment;
12
12
  };
13
13
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
- navigate: (route: string) => any;
14
+ navigate: (route: NonNullable<({
15
+ namespace?: string;
16
+ workspaceSlug?: string;
17
+ callback?: (status: "success" | "error") => void;
18
+ } & ({
19
+ page: "document";
20
+ path: "overview" | "servers" | "environment" | "authentication" | "cookies" | "settings";
21
+ documentSlug?: string;
22
+ } | {
23
+ page: "workspace";
24
+ path: "environment" | "cookies" | "settings";
25
+ } | {
26
+ page: "example";
27
+ documentSlug?: string;
28
+ path: string;
29
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
30
+ exampleName: string;
31
+ })) | undefined>) => any;
15
32
  deleteRow: (index: number) => any;
16
33
  uploadFile: (index: number) => any;
17
34
  removeFile: (index: number) => any;
@@ -21,7 +38,24 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
21
38
  isDisabled: boolean;
22
39
  }) => any;
23
40
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
24
- onNavigate?: ((route: string) => any) | undefined;
41
+ onNavigate?: ((route: NonNullable<({
42
+ namespace?: string;
43
+ workspaceSlug?: string;
44
+ callback?: (status: "success" | "error") => void;
45
+ } & ({
46
+ page: "document";
47
+ path: "overview" | "servers" | "environment" | "authentication" | "cookies" | "settings";
48
+ documentSlug?: string;
49
+ } | {
50
+ page: "workspace";
51
+ path: "environment" | "cookies" | "settings";
52
+ } | {
53
+ page: "example";
54
+ documentSlug?: string;
55
+ path: string;
56
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
57
+ exampleName: string;
58
+ })) | undefined>) => any) | undefined;
25
59
  onDeleteRow?: ((index: number) => any) | undefined;
26
60
  onUploadFile?: ((index: number) => any) | undefined;
27
61
  onRemoveFile?: ((index: number) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY;;;;;;cA1NN,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;kFA2NvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTable.vue"],"names":[],"mappings":"AA8IA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AAGnH,OAAwB,EACtB,KAAK,QAAQ,EACd,MAAM,0DAA0D,CAAA;AAOjE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;AA4OF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;cA1NN,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;cAFb,MAAM;eACL,MAAM,GAAG,IAAI,GAAG,SAAS;oBACpB,OAAO;;kFA2NvB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2dc74300"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-36811e28"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,3 +1,4 @@
1
+ import type { ApiReferenceEvents } from '@scalar/workspace-store/events';
1
2
  import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
2
3
  import type { ParameterObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
4
  export type TableRow = {
@@ -8,7 +9,7 @@ export type TableRow = {
8
9
  /** Optional description for the parameter */
9
10
  description?: string;
10
11
  /** Optional route for global parameters (e.g., cookies shared across workspace) */
11
- globalRoute?: string;
12
+ globalRoute?: ApiReferenceEvents['ui:navigate'];
12
13
  /** Whether the parameter is disabled/inactive */
13
14
  isDisabled?: boolean;
14
15
  /** OpenAPI schema object with type, validation rules, examples, etc. */
@@ -34,7 +35,24 @@ type __VLS_Props = {
34
35
  showUploadButton?: boolean;
35
36
  };
36
37
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
37
- navigate: (route: string) => any;
38
+ navigate: (route: NonNullable<({
39
+ namespace?: string;
40
+ workspaceSlug?: string;
41
+ callback?: (status: "success" | "error") => void;
42
+ } & ({
43
+ page: "document";
44
+ path: "overview" | "servers" | "environment" | "authentication" | "cookies" | "settings";
45
+ documentSlug?: string;
46
+ } | {
47
+ page: "workspace";
48
+ path: "environment" | "cookies" | "settings";
49
+ } | {
50
+ page: "example";
51
+ documentSlug?: string;
52
+ path: string;
53
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
54
+ exampleName: string;
55
+ })) | undefined>) => any;
38
56
  deleteRow: () => any;
39
57
  uploadFile: () => any;
40
58
  removeFile: () => any;
@@ -44,7 +62,24 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
44
62
  isDisabled: boolean;
45
63
  }) => any;
46
64
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
47
- onNavigate?: ((route: string) => any) | undefined;
65
+ onNavigate?: ((route: NonNullable<({
66
+ namespace?: string;
67
+ workspaceSlug?: string;
68
+ callback?: (status: "success" | "error") => void;
69
+ } & ({
70
+ page: "document";
71
+ path: "overview" | "servers" | "environment" | "authentication" | "cookies" | "settings";
72
+ documentSlug?: string;
73
+ } | {
74
+ page: "workspace";
75
+ path: "environment" | "cookies" | "settings";
76
+ } | {
77
+ page: "example";
78
+ documentSlug?: string;
79
+ path: string;
80
+ method: import("@scalar/helpers/http/http-methods").HttpMethod;
81
+ exampleName: string;
82
+ })) | undefined>) => any) | undefined;
48
83
  onDeleteRow?: (() => any) | undefined;
49
84
  onUploadFile?: (() => any) | undefined;
50
85
  onRemoveFile?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAkTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY;;;;;;cAtkBG,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;kFAykBpE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiTA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAGxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAcrE,MAAM,MAAM,QAAQ,GAAG;IACrB,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,0DAA0D;IAC1D,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mFAAmF;IACnF,WAAW,CAAC,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAA;IAC/C,iDAAiD;IACjD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,wCAAwC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,eAAe,CAAA;CACpC,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAmlBF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;cAtkBG,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;cAAjD,MAAM;eAAS,MAAM,GAAG,IAAI;oBAAc,OAAO;;kFAykBpE,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
2
2
  import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
3
3
  import { isElectron as u } from "../../../../libs/electron.js";
4
- const i = "2.26.1", m = "application/json", h = "*/*", c = (r, t, o) => ({
4
+ const i = "2.27.1", m = "application/json", h = "*/*", c = (r, t, o) => ({
5
5
  name: r,
6
6
  defaultValue: t,
7
7
  isOverridden: o.has(r.toLowerCase())
@@ -1,7 +1,7 @@
1
1
  import type { ResponseInstance } from '@scalar/oas-utils/entities/spec';
2
+ import type { ClientPlugin } from '@scalar/oas-utils/helpers';
2
3
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
3
4
  import type { ClientLayout } from '../../../hooks/index.js';
4
- import type { ClientPlugin } from '../../../v2/helpers/plugins.js';
5
5
  type __VLS_Props = {
6
6
  /** Preprocessed response */
7
7
  response: ResponseInstance | null;
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/response-block/ResponseBlock.vue"],"names":[],"mappings":"AAsRA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,KAAK,WAAW,GAAG;IACjB,4BAA4B;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACjC,gCAAgC;IAChC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,6BAA6B;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,0BAA0B;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AAwBF,QAAA,MAAM,gBAAgB,yCAA0C,CAAA;AAChE,KAAK,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAqZvD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;oPAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ResponseBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/response-block/ResponseBlock.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAKvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAY3C,KAAK,WAAW,GAAG;IACjB,4BAA4B;IAC5B,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAA;IACjC,gCAAgC;IAChC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,6BAA6B;IAC7B,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,0BAA0B;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;AAwBF,QAAA,MAAM,gBAAgB,yCAA0C,CAAA;AAChE,KAAK,MAAM,GAAG,KAAK,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAmZvD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;oPAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-03d3fde7"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9c1fd1c7"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as T, computed as i, ref as $, useId as S, createBlock as r, openBlock as o, withCtx as d, createElementVNode as c, normalizeClass as h, createElementBlock as p, createVNode as R, Fragment as y, createCommentVNode as u, createTextVNode as A, renderList as g, unref as I, withDirectives as E, resolveDynamicComponent as O, vShow as z } from "vue";
1
+ import { defineComponent as T, computed as i, ref as $, useId as S, createBlock as r, openBlock as o, withCtx as u, createElementVNode as c, normalizeClass as R, createElementBlock as p, createVNode as A, Fragment as y, createCommentVNode as d, createTextVNode as q, renderList as g, unref as I, withDirectives as P, resolveDynamicComponent as E, mergeProps as O, vShow as z } from "vue";
2
2
  import { ScalarErrorBoundary as N } from "@scalar/components";
3
- import { isDefined as P } from "@scalar/helpers/array/is-defined";
4
- import D from "../../../components/SectionFilter.vue.js";
5
- import L from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
3
+ import { isDefined as D } from "@scalar/helpers/array/is-defined";
4
+ import L from "../../../components/SectionFilter.vue.js";
5
+ import j from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
6
6
  import V from "./components/Headers.vue.js";
7
- import j from "./components/ResponseBody.vue.js";
8
- import w from "./components/ResponseBodyStreaming.vue.js";
9
- import F from "./components/ResponseBodyVirtual.vue.js";
7
+ import w from "./components/ResponseBody.vue.js";
8
+ import F from "./components/ResponseBodyStreaming.vue.js";
9
+ import U from "./components/ResponseBodyVirtual.vue.js";
10
10
  /* empty css */
11
- import U from "./components/ResponseCookies.vue.js";
12
- import K from "./components/ResponseEmpty.vue.js";
13
- import M from "./components/ResponseLoadingOverlay.vue.js";
14
- import Z from "./components/ResponseMetaInformation.vue.js";
15
- import { textMediaTypes as G } from "./helpers/media-types.js";
16
- import { parseSetCookie as J } from "./helpers/parse-set-cookie.js";
17
- const Q = { class: "flex h-8 flex-1 items-center" }, W = ["id", "role"], b = 2e5, ve = /* @__PURE__ */ T({
11
+ import K from "./components/ResponseCookies.vue.js";
12
+ import M from "./components/ResponseEmpty.vue.js";
13
+ import Z from "./components/ResponseLoadingOverlay.vue.js";
14
+ import G from "./components/ResponseMetaInformation.vue.js";
15
+ import { textMediaTypes as J } from "./helpers/media-types.js";
16
+ import { parseSetCookie as Q } from "./helpers/parse-set-cookie.js";
17
+ const W = { class: "flex h-8 flex-1 items-center" }, X = ["id", "role"], b = 2e5, ve = /* @__PURE__ */ T({
18
18
  __name: "ResponseBlock",
19
19
  props: {
20
20
  response: {},
@@ -27,125 +27,124 @@ const Q = { class: "flex h-8 flex-1 items-center" }, W = ["id", "role"], b = 2e5
27
27
  },
28
28
  setup(e, { expose: x }) {
29
29
  const m = i(() => {
30
- const t = e.response?.headers;
31
- return t ? Object.keys(t).map((s) => ({
32
- name: s,
33
- value: t[s] ?? ""
30
+ const s = e.response?.headers;
31
+ return s ? Object.keys(s).map((t) => ({
32
+ name: t,
33
+ value: s[t] ?? ""
34
34
  })) : [];
35
35
  }), k = i(
36
- () => e.response?.cookieHeaderKeys.map((t) => J(t)).filter(P) ?? []
37
- ), C = ["Cookies", "Headers", "Body"], n = $("All"), v = i(() => ["All", ...C]), a = i(
36
+ () => e.response?.cookieHeaderKeys.map((s) => Q(s)).filter(D) ?? []
37
+ ), C = ["Cookies", "Headers", "Body"], n = $("All"), f = i(() => ["All", ...C]), a = i(
38
38
  () => Object.fromEntries(
39
- v.value.map((t) => [t, S()])
39
+ f.value.map((s) => [s, S()])
40
40
  )
41
41
  ), B = i(() => {
42
42
  if (!e.response || !("size" in e.response))
43
43
  return !1;
44
- const t = e.response.headers?.["content-type"] || e.response.headers?.["Content-Type"];
45
- return !t || (e.response.size ?? 0) <= b || t.includes("text/html") ? !1 : G.some((l) => t.includes(l)) && (e.response.size ?? 0) > b;
46
- }), q = i(
47
- () => e.request?.headers ? [...e.request.headers].map((t) => ({
48
- name: t[0],
49
- value: t[1],
44
+ const s = e.response.headers?.["content-type"] || e.response.headers?.["Content-Type"];
45
+ return !s || (e.response.size ?? 0) <= b || s.includes("text/html") ? !1 : J.some((l) => s.includes(l)) && (e.response.size ?? 0) > b;
46
+ }), h = i(
47
+ () => e.request?.headers ? [...e.request.headers].map((s) => ({
48
+ name: s[0],
49
+ value: s[1],
50
50
  required: !1
51
51
  })) : []
52
- ), f = (t) => n.value === "All" || n.value === t;
52
+ ), v = (s) => n.value === "All" || n.value === s;
53
53
  return x({
54
54
  responseHeaders: m,
55
55
  responseCookies: k,
56
- requestHeaders: q,
56
+ requestHeaders: h,
57
57
  shouldVirtualize: B,
58
58
  activeFilter: n,
59
- filters: v
60
- }), (t, s) => (o(), r(L, { "aria-label": "Response" }, {
61
- title: d(() => [
62
- c("div", Q, [
59
+ filters: f
60
+ }), (s, t) => (o(), r(j, { "aria-label": "Response" }, {
61
+ title: u(() => [
62
+ c("div", W, [
63
63
  c("div", {
64
64
  "aria-live": "polite",
65
- class: h(["flex items-center", { "animate-response-heading": e.response }])
65
+ class: R(["flex items-center", { "animate-response-heading": e.response }])
66
66
  }, [
67
- s[4] || (s[4] = c("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
68
- e.response ? (o(), r(Z, {
67
+ t[4] || (t[4] = c("span", { class: "response-heading pointer-events-none absolute" }, " Response ", -1)),
68
+ e.response ? (o(), r(G, {
69
69
  key: 0,
70
70
  class: "animate-response-children",
71
71
  eventBus: e.eventBus,
72
72
  response: e.response
73
- }, null, 8, ["eventBus", "response"])) : u("", !0)
73
+ }, null, 8, ["eventBus", "response"])) : d("", !0)
74
74
  ], 2),
75
- R(D, {
75
+ A(L, {
76
76
  modelValue: n.value,
77
- "onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
77
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n.value = l),
78
78
  filterIds: a.value,
79
- filters: v.value
79
+ filters: f.value
80
80
  }, null, 8, ["modelValue", "filterIds", "filters"])
81
81
  ])
82
82
  ]),
83
- default: d(() => [
83
+ default: u(() => [
84
84
  c("div", {
85
85
  id: a.value.All,
86
- class: h(["custom-scroll response-section-content relative grid h-full justify-stretch", {
86
+ class: R(["custom-scroll response-section-content relative grid h-full justify-stretch", {
87
87
  "content-start": e.response
88
88
  }]),
89
89
  role: n.value === "All" && e.response ? "tabpanel" : "none"
90
90
  }, [
91
91
  e.response ? (o(), p(y, { key: 1 }, [
92
- f("Cookies") ? (o(), r(U, {
92
+ v("Cookies") ? (o(), r(K, {
93
93
  key: 0,
94
94
  id: a.value.Cookies,
95
95
  class: "response-section-content-cookies",
96
96
  cookies: k.value,
97
97
  role: n.value === "All" ? "none" : "tabpanel"
98
- }, null, 8, ["id", "cookies", "role"])) : u("", !0),
99
- f("Headers") ? (o(), r(V, {
98
+ }, null, 8, ["id", "cookies", "role"])) : d("", !0),
99
+ v("Headers") ? (o(), r(V, {
100
100
  key: 1,
101
101
  id: a.value.Headers,
102
102
  class: "response-section-content-headers",
103
- headers: q.value,
103
+ headers: h.value,
104
104
  role: n.value === "All" ? "none" : "tabpanel"
105
105
  }, {
106
- title: d(() => [...s[5] || (s[5] = [
107
- A("Request Headers", -1)
106
+ title: u(() => [...t[5] || (t[5] = [
107
+ q("Request Headers", -1)
108
108
  ])]),
109
109
  _: 1
110
- }, 8, ["id", "headers", "role"])) : u("", !0),
111
- f("Headers") ? (o(), r(V, {
110
+ }, 8, ["id", "headers", "role"])) : d("", !0),
111
+ v("Headers") ? (o(), r(V, {
112
112
  key: 2,
113
113
  id: a.value.Headers,
114
114
  class: "response-section-content-headers",
115
115
  headers: m.value,
116
116
  role: n.value === "All" ? "none" : "tabpanel"
117
117
  }, {
118
- title: d(() => [...s[6] || (s[6] = [
119
- A("Response Headers", -1)
118
+ title: u(() => [...t[6] || (t[6] = [
119
+ q("Response Headers", -1)
120
120
  ])]),
121
121
  _: 1
122
- }, 8, ["id", "headers", "role"])) : u("", !0),
122
+ }, 8, ["id", "headers", "role"])) : d("", !0),
123
123
  (o(!0), p(y, null, g(e.plugins, (l, H) => (o(), r(I(N), { key: H }, {
124
- default: d(() => [
125
- l.components?.response && e.request && e.response ? E((o(), r(O(l.components.response), {
124
+ default: u(() => [
125
+ l?.components?.response ? P((o(), r(E(l.components.response.component), O({
126
126
  key: 0,
127
- request: e.request,
128
- response: e.response
129
- }, null, 8, ["request", "response"])), [
127
+ ref_for: !0
128
+ }, l.components.response.additionalProps), null, 16)), [
130
129
  [z, n.value === "All"]
131
- ]) : u("", !0)
130
+ ]) : d("", !0)
132
131
  ]),
133
132
  _: 2
134
133
  }, 1024))), 128)),
135
134
  n.value === "All" || n.value === "Body" ? (o(), p(y, { key: 3 }, [
136
- "reader" in e.response ? (o(), r(w, {
135
+ "reader" in e.response ? (o(), r(F, {
137
136
  key: 0,
138
137
  id: a.value.Body,
139
138
  class: "response-section-content-body",
140
139
  reader: e.response.reader
141
- }, null, 8, ["id", "reader"])) : B.value && typeof e.response?.data == "string" ? (o(), r(F, {
140
+ }, null, 8, ["id", "reader"])) : B.value && typeof e.response?.data == "string" ? (o(), r(U, {
142
141
  key: 1,
143
142
  id: a.value.Body,
144
143
  content: e.response.data,
145
144
  data: e.response?.data,
146
145
  headers: m.value,
147
146
  role: n.value === "All" ? "none" : "tabpanel"
148
- }, null, 8, ["id", "content", "data", "headers", "role"])) : (o(), r(j, {
147
+ }, null, 8, ["id", "content", "data", "headers", "role"])) : (o(), r(w, {
149
148
  key: 2,
150
149
  id: a.value.Body,
151
150
  active: !0,
@@ -156,21 +155,21 @@ const Q = { class: "flex h-8 flex-1 items-center" }, W = ["id", "role"], b = 2e5
156
155
  role: n.value === "All" ? "none" : "tabpanel",
157
156
  title: "Body"
158
157
  }, null, 8, ["id", "data", "headers", "role"]))
159
- ], 64)) : u("", !0)
160
- ], 64)) : (o(), r(K, {
158
+ ], 64)) : d("", !0)
159
+ ], 64)) : (o(), r(M, {
161
160
  key: 0,
162
161
  appVersion: e.appVersion,
163
162
  layout: e.layout,
164
163
  totalPerformedRequests: e.totalPerformedRequests,
165
- onAddRequest: s[1] || (s[1] = (l) => e.eventBus.emit("ui:open:command-palette", {
164
+ onAddRequest: t[1] || (t[1] = (l) => e.eventBus.emit("ui:open:command-palette", {
166
165
  action: "create-request",
167
166
  payload: void 0
168
167
  })),
169
- onOpenCommandPalette: s[2] || (s[2] = (l) => e.eventBus.emit("ui:open:command-palette")),
170
- onSendRequest: s[3] || (s[3] = (l) => e.eventBus.emit("operation:send:request:hotkey"))
168
+ onOpenCommandPalette: t[2] || (t[2] = (l) => e.eventBus.emit("ui:open:command-palette")),
169
+ onSendRequest: t[3] || (t[3] = (l) => e.eventBus.emit("operation:send:request:hotkey"))
171
170
  }, null, 8, ["appVersion", "layout", "totalPerformedRequests"])),
172
- R(M, { eventBus: e.eventBus }, null, 8, ["eventBus"])
173
- ], 10, W)
171
+ A(Z, { eventBus: e.eventBus }, null, 8, ["eventBus"])
172
+ ], 10, X)
174
173
  ]),
175
174
  _: 1
176
175
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/ResponseEmpty.vue"],"names":[],"mappings":"AAqIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,KAAK,WAAW,GAAG;IACjB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AA4MF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/response-block/components/ResponseEmpty.vue"],"names":[],"mappings":"AA4HA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,KAAK,WAAW,GAAG;IACjB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,yCAAyC;IACzC,sBAAsB,EAAE,MAAM,CAAA;IAC9B,0BAA0B;IAC1B,UAAU,EAAE,MAAM,CAAA;CACnB,CAAC;AAuLF,QAAA,MAAM,YAAY;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseEmpty.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-651d0186"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-34b57d9d"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,12 +1,11 @@
1
- import { defineComponent as p, createElementBlock as a, openBlock as s, createElementVNode as o, createCommentVNode as r, normalizeClass as f, createVNode as l, createTextVNode as n, toDisplayString as y, unref as i } from "vue";
1
+ import { defineComponent as f, createElementBlock as s, openBlock as a, createElementVNode as o, normalizeClass as c, createCommentVNode as m, createVNode as l, createTextVNode as r, toDisplayString as y, unref as n } from "vue";
2
2
  import { ScalarHotkey as d } from "@scalar/components";
3
3
  import x from "../../../../assets/computer.ascii.js";
4
- import k from "../../../../components/EmptyState.vue.js";
5
- import b from "../../../../components/ScalarAsciiArt.vue.js";
6
- const v = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize" }, g = {
4
+ import k from "../../../../components/ScalarAsciiArt.vue.js";
5
+ const b = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitalize" }, g = {
7
6
  key: 0,
8
7
  class: "scalar-version-number"
9
- }, R = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, P = /* @__PURE__ */ p({
8
+ }, v = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, V = /* @__PURE__ */ f({
10
9
  __name: "ResponseEmpty",
11
10
  props: {
12
11
  layout: {},
@@ -14,75 +13,67 @@ const v = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
14
13
  appVersion: {}
15
14
  },
16
15
  emits: ["addRequest", "sendRequest", "openCommandPalette"],
17
- setup(t, { emit: c }) {
18
- const m = c;
19
- return (q, e) => (s(), a("div", v, [
16
+ setup(t, { emit: p }) {
17
+ const i = p;
18
+ return (R, e) => (a(), s("div", b, [
20
19
  o("div", {
21
- class: f(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
22
- "hidden opacity-0": t.totalPerformedRequests < 1 && t.layout !== "modal"
20
+ class: c(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
21
+ "hidden opacity-0": t.totalPerformedRequests > 0 && t.layout !== "modal"
23
22
  }])
24
23
  }, [
25
- t.layout !== "modal" ? (s(), a("div", g, [
26
- n(" Scalar App V" + y(t.appVersion) + " Beta ", 1),
24
+ t.layout !== "modal" ? (a(), s("div", g, [
25
+ r(" Scalar App V" + y(t.appVersion) + " Beta ", 1),
27
26
  e[3] || (e[3] = o("div", { class: "mt-2" }, [
28
27
  o("a", {
29
28
  href: "https://github.com/scalar/scalar/issues/2669",
30
29
  target: "_blank"
31
30
  }, " Roadmap ")
32
31
  ], -1))
33
- ])) : r("", !0),
32
+ ])) : m("", !0),
34
33
  e[4] || (e[4] = o("a", {
35
34
  class: "gitbook-show scalar-version-number",
36
35
  href: "https://www.scalar.com",
37
36
  target: "_blank"
38
37
  }, " Powered By Scalar.com ", -1)),
39
- l(b, {
40
- art: i(x),
38
+ l(k, {
39
+ art: n(x),
41
40
  class: "text-c-3"
42
41
  }, null, 8, ["art"])
43
42
  ], 2),
44
- t.layout !== "modal" ? (s(), a("div", {
45
- key: 0,
46
- class: f(["hidden h-[calc(100%_-_50px)] items-center justify-center pb-5", {
47
- "!flex opacity-100": t.totalPerformedRequests == 0
48
- }])
49
- }, [
50
- l(k)
51
- ], 2)) : r("", !0),
52
- o("div", R, [
53
- t.layout !== "modal" ? (s(), a("button", {
43
+ o("div", v, [
44
+ t.layout !== "modal" ? (a(), s("button", {
54
45
  key: 0,
55
46
  class: "flex items-center gap-1.5",
56
47
  type: "button",
57
- onClick: e[0] || (e[0] = (u) => m("openCommandPalette"))
48
+ onClick: e[0] || (e[0] = (u) => i("openCommandPalette"))
58
49
  }, [
59
- e[5] || (e[5] = n(" Get Started ", -1)),
60
- l(i(d), {
61
- hotkey: "p",
62
- modifier: ["default", "Shift"]
50
+ e[5] || (e[5] = r(" Get Started ", -1)),
51
+ l(n(d), {
52
+ hotkey: "k",
53
+ modifier: ["default"]
63
54
  })
64
- ])) : r("", !0),
65
- t.layout === "desktop" ? (s(), a("button", {
55
+ ])) : m("", !0),
56
+ t.layout === "desktop" ? (a(), s("button", {
66
57
  key: 1,
67
58
  class: "flex items-center gap-1.5",
68
59
  type: "button",
69
- onClick: e[1] || (e[1] = (u) => m("addRequest"))
60
+ onClick: e[1] || (e[1] = (u) => i("addRequest"))
70
61
  }, [
71
- e[6] || (e[6] = n(" New Request ", -1)),
72
- l(i(d), { hotkey: "N" })
73
- ])) : r("", !0),
62
+ e[6] || (e[6] = r(" New Request ", -1)),
63
+ l(n(d), { hotkey: "N" })
64
+ ])) : m("", !0),
74
65
  o("button", {
75
66
  class: "flex items-center gap-1.5",
76
67
  type: "button",
77
- onClick: e[2] || (e[2] = (u) => m("sendRequest"))
68
+ onClick: e[2] || (e[2] = (u) => i("sendRequest"))
78
69
  }, [
79
- e[7] || (e[7] = n(" Send Request ", -1)),
80
- l(i(d), { hotkey: "↵" })
70
+ e[7] || (e[7] = r(" Send Request ", -1)),
71
+ l(n(d), { hotkey: "↵" })
81
72
  ])
82
73
  ])
83
74
  ]));
84
75
  }
85
76
  });
86
77
  export {
87
- P as default
78
+ V as default
88
79
  };
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue"],"names":[],"mappings":"AA0LA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAC;AAsaF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue"],"names":[],"mappings":"AAqLA,KAAK,WAAW,GAAG;IACjB,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAC;AAyZF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}