@scalar/api-client 2.14.0 → 2.15.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 (79) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/libs/string-template.d.ts +2 -0
  3. package/dist/libs/string-template.d.ts.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +28 -51
  7. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +0 -12
  8. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  9. package/dist/v2/blocks/operation-block/components/Header.vue.js +3 -3
  10. package/dist/v2/blocks/operation-block/components/Header.vue2.js +26 -28
  11. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts +33 -0
  12. package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -0
  13. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +18 -0
  14. package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -0
  15. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts +7 -0
  16. package/dist/v2/blocks/operation-block/helpers/decode-buffer.d.ts.map +1 -0
  17. package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts +8 -0
  18. package/dist/v2/blocks/operation-block/helpers/get-delimiter.d.ts.map +1 -0
  19. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts +4 -0
  20. package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -0
  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 +134 -125
  24. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +2 -0
  25. package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
  26. package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
  27. package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +11 -10
  28. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +2 -2
  29. package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
  30. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +2 -4
  31. package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
  32. package/dist/v2/blocks/request-block/components/RequestTable.vue.js +1 -1
  33. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
  34. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
  35. package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +10 -10
  36. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +1 -1
  37. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
  38. package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +21 -15
  39. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +4 -13
  40. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
  41. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
  42. package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +106 -70
  43. package/dist/v2/components/code-input/CodeInput.vue.d.ts +10 -1
  44. package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
  45. package/dist/v2/components/code-input/CodeInput.vue.js +1 -1
  46. package/dist/v2/components/code-input/CodeInput.vue2.js +65 -51
  47. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +4 -0
  48. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  49. package/dist/v2/components/sidebar/Sidebar.vue.js +42 -39
  50. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  51. package/dist/v2/features/app/App.vue.js +64 -66
  52. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  53. package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
  54. package/dist/v2/features/app/components/AppSidebar.vue2.js +193 -106
  55. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts +22 -0
  56. package/dist/v2/features/app/components/ItemDecorator.vue.d.ts.map +1 -0
  57. package/dist/v2/features/app/components/ItemDecorator.vue.js +138 -0
  58. package/dist/v2/features/app/components/ItemDecorator.vue2.js +4 -0
  59. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts +8 -0
  60. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.d.ts.map +1 -1
  61. package/dist/v2/features/command-palette/components/CommandPaletteExample.vue.js +76 -68
  62. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts +8 -0
  63. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.d.ts.map +1 -1
  64. package/dist/v2/features/command-palette/components/CommandPaletteRequest.vue.js +83 -75
  65. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts +4 -0
  66. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.d.ts.map +1 -1
  67. package/dist/v2/features/command-palette/components/CommandPaletteTag.vue.js +32 -34
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +16 -0
  69. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  70. package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +24 -21
  71. package/dist/v2/features/operation/Operation.vue.js +1 -1
  72. package/dist/v2/features/settings/DocumentSettings.vue.js +2 -2
  73. package/dist/v2/features/settings/DocumentSettings.vue2.js +1 -1
  74. package/dist/v2/helpers/storage.d.ts.map +1 -1
  75. package/dist/v2/helpers/storage.js +5 -5
  76. package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
  77. package/dist/v2/hooks/use-workspace-client-events.js +102 -61
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  79. package/package.json +21 -21
@@ -1 +1 @@
1
- {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAI5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAKhD;;;;;;;;;;;;GAYG;;cAGS,iBAAiB;IAC3B,0BAA0B;gBACd,MAAM;IAClB,2BAA2B;UACrB,MAAM;IACZ,6BAA6B;YACrB,cAAc;IACtB,oBAAoB;YACZ,YAAY;IACpB,gCAAgC;YACxB,YAAY,GAAG,IAAI;IAC3B,mDAAmD;aAC1C,YAAY,EAAE;IACvB,8BAA8B;aACrB,OAAO,EAAE;IAClB;;;;;OAKG;+BACwB,MAAM;IACjC,4BAA4B;eACjB,gBAAgB;IAC3B,gCAAgC;cACtB,OAAO;IACjB,yCAAyC;4BACjB,MAAM;IAC9B,yBAAyB;oBACT,OAAO;IACvB,kCAAkC;kBACpB,OAAO;IACrB,4CAA4C;uBACzB,OAAO;IAC1B,0BAA0B;kBACZ,MAAM,GAAG,IAAI;IAC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C;iBACjC,kBAAkB;;;;AAzDjC,wBAuTC"}
1
+ {"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"AA0KA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AACrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uDAAuD,CAAA;AAI5F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAI3C,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAKhD;;;;;;;;;;;;GAYG;;cAGS,iBAAiB;IAC3B,0BAA0B;gBACd,MAAM;IAClB,2BAA2B;UACrB,MAAM;IACZ,6BAA6B;YACrB,cAAc;IACtB,oBAAoB;YACZ,YAAY;IACpB,gCAAgC;YACxB,YAAY,GAAG,IAAI;IAC3B,mDAAmD;aAC1C,YAAY,EAAE;IACvB,8BAA8B;aACrB,OAAO,EAAE;IAClB;;;;;OAKG;+BACwB,MAAM;IACjC,4BAA4B;eACjB,gBAAgB;IAC3B,gCAAgC;cACtB,OAAO;IACjB,yCAAyC;4BACjB,MAAM;IAC9B,yBAAyB;oBACT,OAAO;IACvB,kCAAkC;kBACpB,OAAO;IACrB,4CAA4C;uBACzB,OAAO;IAC1B,0BAA0B;kBACZ,MAAM,GAAG,IAAI;IAC3B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iBACjC,kBAAkB;;;;AAzDjC,wBAgRC"}
@@ -1,14 +1,14 @@
1
- import { defineComponent as m, createElementBlock as p, openBlock as h, createElementVNode as y, createVNode as o, withCtx as s, unref as n } from "vue";
2
- import v from "../../../components/ViewLayout/ViewLayout.vue.js";
3
- import f from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
4
- import { createStoreEvents as c } from "../../../store/events.js";
5
- import B from "./components/Header.vue.js";
6
- import g from "../request-block/RequestBlock.vue.js";
7
- import S from "../response-block/ResponseBlock.vue.js";
8
- const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-1" }, K = {
1
+ import { defineComponent as l, createElementBlock as p, openBlock as m, createElementVNode as d, createVNode as t, withCtx as i, unref as n } from "vue";
2
+ import h from "../../../components/ViewLayout/ViewLayout.vue.js";
3
+ import y from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
4
+ import { createStoreEvents as v } from "../../../store/events.js";
5
+ import f from "./components/Header.vue.js";
6
+ import B from "../request-block/RequestBlock.vue.js";
7
+ import c from "../response-block/ResponseBlock.vue.js";
8
+ const g = { class: "bg-b-1 flex h-full flex-col" }, S = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-1" }, q = {
9
9
  name: "OperationBlock"
10
- }, M = /* @__PURE__ */ m({
11
- ...K,
10
+ }, E = /* @__PURE__ */ l({
11
+ ...q,
12
12
  props: {
13
13
  eventBus: {},
14
14
  appVersion: {},
@@ -38,34 +38,13 @@ const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-heade
38
38
  environment: {}
39
39
  },
40
40
  emits: ["update:servers"],
41
- setup(t, { emit: i }) {
42
- const u = i, a = () => t.eventBus.emit("operation:send:request", {
43
- meta: { path: t.path, method: t.method, exampleKey: t.exampleKey }
44
- }), l = (e) => t.eventBus.emit("operation:update:method", {
45
- meta: {
46
- method: t.method,
47
- path: t.path,
48
- exampleKey: t.exampleKey
49
- },
50
- payload: {
51
- method: e.value
52
- }
53
- }), d = (e) => t.eventBus.emit(
54
- "operation:update:path",
55
- {
56
- meta: {
57
- method: t.method,
58
- path: t.path
59
- },
60
- payload: {
61
- path: e.value
62
- }
63
- },
64
- { debounceKey: "operation-update-path" }
65
- );
66
- return (e, r) => (h(), p("div", q, [
67
- y("div", b, [
68
- o(B, {
41
+ setup(r, { emit: a }) {
42
+ const u = a, o = () => r.eventBus.emit("operation:send:request", {
43
+ meta: { path: r.path, method: r.method, exampleKey: r.exampleKey }
44
+ });
45
+ return (e, s) => (m(), p("div", g, [
46
+ d("div", S, [
47
+ t(f, {
69
48
  documentUrl: e.documentUrl,
70
49
  environment: e.environment,
71
50
  eventBus: e.eventBus,
@@ -81,17 +60,15 @@ const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-heade
81
60
  servers: e.servers,
82
61
  showSidebar: e.showSidebar,
83
62
  source: e.source,
84
- onExecute: a,
85
- "onUpdate:method": l,
86
- "onUpdate:path": d,
87
- "onUpdate:servers": r[0] || (r[0] = (U) => u("update:servers"))
63
+ onExecute: o,
64
+ "onUpdate:servers": s[0] || (s[0] = (b) => u("update:servers"))
88
65
  }, null, 8, ["documentUrl", "environment", "eventBus", "hideClientButton", "history", "integration", "isSidebarOpen", "layout", "method", "path", "percentage", "server", "servers", "showSidebar", "source"])
89
66
  ]),
90
- o(v, null, {
91
- default: s(() => [
92
- o(f, { class: "flex flex-1" }, {
93
- default: s(() => [
94
- o(n(g), {
67
+ t(h, null, {
68
+ default: i(() => [
69
+ t(y, { class: "flex flex-1" }, {
70
+ default: i(() => [
71
+ t(n(B), {
95
72
  authMeta: e.authMeta,
96
73
  environment: e.environment,
97
74
  eventBus: e.eventBus,
@@ -105,16 +82,16 @@ const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-heade
105
82
  securitySchemes: e.securitySchemes,
106
83
  selectedSecurity: e.selectedSecurity
107
84
  }, null, 8, ["authMeta", "environment", "eventBus", "exampleKey", "layout", "method", "operation", "path", "plugins", "security", "securitySchemes", "selectedSecurity"]),
108
- o(n(S), {
85
+ t(n(c), {
109
86
  appVersion: e.appVersion,
110
87
  eventBus: e.eventBus,
111
- events: n(c)(),
88
+ events: n(v)(),
112
89
  layout: e.layout,
113
90
  plugins: e.plugins,
114
91
  request: e.request,
115
92
  response: e.response,
116
93
  totalPerformedRequests: e.totalPerformedRequests,
117
- onSendRequest: a
94
+ onSendRequest: o
118
95
  }, null, 8, ["appVersion", "eventBus", "events", "layout", "plugins", "request", "response", "totalPerformedRequests"])
119
96
  ]),
120
97
  _: 1
@@ -126,5 +103,5 @@ const q = { class: "bg-b-1 flex h-full flex-col" }, b = { class: "lg:min-h-heade
126
103
  }
127
104
  });
128
105
  export {
129
- M as default
106
+ E as default
130
107
  };
@@ -43,21 +43,9 @@ type __VLS_Props = {
43
43
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
44
44
  execute: () => any;
45
45
  "update:servers": () => any;
46
- "update:path": (payload: {
47
- value: string;
48
- }) => any;
49
- "update:method": (payload: {
50
- value: HttpMethod;
51
- }) => any;
52
46
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
53
47
  onExecute?: (() => any) | undefined;
54
48
  "onUpdate:servers"?: (() => any) | undefined;
55
- "onUpdate:path"?: ((payload: {
56
- value: string;
57
- }) => any) | undefined;
58
- "onUpdate:method"?: ((payload: {
59
- value: HttpMethod;
60
- }) => any) | undefined;
61
49
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
62
50
  export default _default;
63
51
  //# sourceMappingURL=Header.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AA+JA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,m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+1,7 @@
1
1
  import o from "./Header.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-e6a4ba62"]]);
3
+ import r from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d30bcf30"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as m, createElementBlock as s, openBlock as n, createElementVNode as l, createVNode as u, createCommentVNode as i, normalizeClass as v, unref as a, createBlock as g } from "vue";
1
+ import { defineComponent as p, createElementBlock as r, openBlock as o, createElementVNode as n, createVNode as a, createCommentVNode as s, normalizeClass as v, unref as l, createBlock as g } from "vue";
2
2
  import { ScalarIcon as d } from "@scalar/components";
3
3
  import f from "../../scalar-address-bar-block/components/AddressBar.vue.js";
4
4
  import y from "../../../../components/OpenApiClientButton.vue.js";
5
- const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, h = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, B = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, U = /* @__PURE__ */ m({
5
+ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center border-b p-2 pt-2 lg:p-1 lg:pt-1" }, h = { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, B = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-1 lg:mb-0 lg:flex-1 lg:px-2.5" }, S = /* @__PURE__ */ p({
6
6
  __name: "Header",
7
7
  props: {
8
8
  path: {},
@@ -21,17 +21,17 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
21
21
  eventBus: {},
22
22
  environment: {}
23
23
  },
24
- emits: ["execute", "update:path", "update:method", "update:servers"],
25
- setup(C, { emit: p }) {
26
- const r = p;
27
- return (e, t) => (n(), s("div", b, [
28
- l("div", h, [
29
- e.showSidebar ? (n(), s("div", {
24
+ emits: ["execute", "update:servers"],
25
+ setup(C, { emit: m }) {
26
+ const u = m;
27
+ return (e, t) => (o(), r("div", b, [
28
+ n("div", h, [
29
+ e.showSidebar ? (o(), r("div", {
30
30
  key: 0,
31
31
  class: v(["size-8", { hidden: e.layout === "modal" && !e.isSidebarOpen }])
32
- }, null, 2)) : i("", !0)
32
+ }, null, 2)) : s("", !0)
33
33
  ]),
34
- u(a(f), {
34
+ a(l(f), {
35
35
  environment: e.environment,
36
36
  eventBus: e.eventBus,
37
37
  history: e.history,
@@ -41,50 +41,48 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
41
41
  percentage: e.requestLoadingPercentage,
42
42
  server: e.server,
43
43
  servers: e.servers,
44
- onExecute: t[0] || (t[0] = (o) => r("execute")),
45
- "onUpdate:method": t[1] || (t[1] = (o) => r("update:method", o)),
46
- "onUpdate:path": t[2] || (t[2] = (o) => r("update:path", o)),
47
- "onUpdate:servers": t[3] || (t[3] = (o) => r("update:servers"))
44
+ onExecute: t[0] || (t[0] = (i) => u("execute")),
45
+ "onUpdate:servers": t[1] || (t[1] = (i) => u("update:servers"))
48
46
  }, null, 8, ["environment", "eventBus", "history", "layout", "method", "path", "percentage", "server", "servers"]),
49
- l("div", B, [
50
- e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (n(), g(a(y), {
47
+ n("div", B, [
48
+ e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(), g(l(y), {
51
49
  key: 0,
52
50
  buttonSource: "modal",
53
51
  class: "!w-fit lg:-mr-1",
54
52
  integration: e.integration ?? null,
55
53
  source: e.source ?? "api-reference",
56
54
  url: e.documentUrl
57
- }, null, 8, ["integration", "source", "url"])) : i("", !0),
58
- e.layout === "modal" && e.source !== "gitbook" ? (n(), s("button", {
55
+ }, null, 8, ["integration", "source", "url"])) : s("", !0),
56
+ e.layout === "modal" && e.source !== "gitbook" ? (o(), r("button", {
59
57
  key: 1,
60
58
  class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
61
59
  type: "button",
62
- onClick: t[4] || (t[4] = (o) => e.eventBus.emit("hide:modal"))
60
+ onClick: t[2] || (t[2] = (i) => e.eventBus.emit("hide:modal"))
63
61
  }, [
64
- u(a(d), {
62
+ a(l(d), {
65
63
  icon: "Close",
66
64
  size: "lg",
67
65
  thickness: "2"
68
66
  }),
69
- t[6] || (t[6] = l("span", { class: "sr-only" }, "Close Client", -1))
70
- ])) : i("", !0),
71
- e.layout === "modal" && e.source === "gitbook" ? (n(), s("button", {
67
+ t[4] || (t[4] = n("span", { class: "sr-only" }, "Close Client", -1))
68
+ ])) : s("", !0),
69
+ e.layout === "modal" && e.source === "gitbook" ? (o(), r("button", {
72
70
  key: 2,
73
71
  class: "text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2",
74
72
  type: "button",
75
- onClick: t[5] || (t[5] = (o) => e.eventBus.emit("hide:modal"))
73
+ onClick: t[3] || (t[3] = (i) => e.eventBus.emit("hide:modal"))
76
74
  }, [
77
- u(a(d), {
75
+ a(l(d), {
78
76
  icon: "Close",
79
77
  size: "md",
80
78
  thickness: "1.75"
81
79
  }),
82
- t[7] || (t[7] = l("span", { class: "sr-only" }, "Close Client", -1))
83
- ])) : i("", !0)
80
+ t[5] || (t[5] = n("span", { class: "sr-only" }, "Close Client", -1))
81
+ ])) : s("", !0)
84
82
  ])
85
83
  ]));
86
84
  }
87
85
  });
88
86
  export {
89
- U as default
87
+ S as default
90
88
  };
@@ -0,0 +1,33 @@
1
+ import { type XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
2
+ import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ /**
4
+ * Converts the parameters into a set of headers, cookies and url params while
5
+ * replacing environment variables and extracting example values. Also builds up a record of the path
6
+ * parameters which can then be used to replace variables in the path.
7
+ * Also handles both content based and schema based parameters.
8
+ *
9
+ * @param parameters - Unfiltered parameters
10
+ * @param env - Environment variables flattened into a key-value object
11
+ * @param exampleKey - The key of the current example
12
+ * @param contentType - Content type for content based parameters
13
+ * @returns A set of headers, cookies and url params
14
+ */
15
+ export declare const buildRequestParameters: (
16
+ /** All parameters */
17
+ parameters?: ParameterObject[],
18
+ /** Environment variables flattened into a key-value object */
19
+ env?: Record<string, string>,
20
+ /** The key of the current example */
21
+ exampleKey?: string,
22
+ /**
23
+ * Content type for content based parameters
24
+ *
25
+ * @see https://spec.openapis.org/oas/latest.html#fixed-fields-for-use-with-content
26
+ */
27
+ contentType?: string) => {
28
+ cookies: XScalarCookie[];
29
+ headers: Record<string, string>;
30
+ pathVariables: Record<string, string>;
31
+ urlParams: URLSearchParams;
32
+ };
33
+ //# sourceMappingURL=build-request-parameters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-request-parameters.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-parameters.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAKnG;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;AACjC,qBAAqB;AACrB,aAAY,eAAe,EAAO;AAClC,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qCAAqC;AACrC,aAAY,MAAkB;AAC9B;;;;GAIG;AACH,cAAa,MAA2B,KACvC;IACD,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,SAAS,EAAE,eAAe,CAAA;CAkFzB,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { type XScalarCookie } from '@scalar/workspace-store/schemas/extensions/general/x-scalar-cookies';
2
+ import type { SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
+ /**
4
+ * Generates the headers, cookies and query params for selected security schemes
5
+ * In the future we can add customization for where the security is applied
6
+ */
7
+ export declare const buildRequestSecurity: (
8
+ /** Applicable security schemes */
9
+ securitySchemes?: SecuritySchemeObject[],
10
+ /** Environment variables flattened into a key-value object */
11
+ env?: Record<string, string>,
12
+ /** Include this parameter to set the placeholder for empty tokens */
13
+ emptyTokenPlaceholder?: string) => {
14
+ headers: Record<string, string>;
15
+ cookies: XScalarCookie[];
16
+ urlParams: URLSearchParams;
17
+ };
18
+ //# sourceMappingURL=build-request-security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-request-security.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/build-request-security.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,qEAAqE,CAAA;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8DAA8D,CAAA;AAGxG;;;GAGG;AACH,eAAO,MAAM,oBAAoB;AAC/B,kCAAkC;AAClC,kBAAiB,oBAAoB,EAAO;AAC5C,8DAA8D;AAC9D,MAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;AAChC,qEAAqE;AACrE,8BAA0B,KACzB;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAmDzF,CAAA"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Decode the buffer according to its content-type
3
+ *
4
+ * @returns The decoded string or Blob
5
+ */
6
+ export declare const decodeBuffer: (buffer: ArrayBuffer, contentType: string) => string | Blob;
7
+ //# sourceMappingURL=decode-buffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decode-buffer.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/decode-buffer.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,WAAW,EAAE,aAAa,MAAM,KAAG,MAAM,GAAG,IAWhF,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Gets the delimiter for the given parameter style
3
+ *
4
+ * @param style - The style of the parameter
5
+ * @returns The delimiter for the given style
6
+ */
7
+ export declare const getDelimiter: (style: string) => string;
8
+ //# sourceMappingURL=get-delimiter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-delimiter.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-delimiter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAa5C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
2
+ /** Grabs the example from both schema based and content based parameters */
3
+ export declare const getExample: (param: ParameterObject, exampleKey: string, contentType: string) => import("@scalar/workspace-store/schemas/v3.1/strict/example").ExampleObject | undefined;
4
+ //# sourceMappingURL=get-example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-example.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/helpers/get-example.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAEnG,4EAA4E;AAC5E,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,EAAE,YAAY,MAAM,EAAE,aAAa,MAAM,4FAQzF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAwYA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAWhD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,eAAe,CAAA;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,MAAM,EAAE,YAAY,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;AAkgBF,wBAMG"}
1
+ {"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AAoZA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAWhD,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,eAAe,CAAA;IAC1B,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACrC,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,MAAM,EAAE,YAAY,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;AAohBF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestBlock.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-3e0789a9"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-753ab733"]]);
5
5
  export {
6
6
  m as default
7
7
  };