@scalar/api-client 2.3.34 → 2.4.2

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 (97) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  3. package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
  4. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +74 -89
  6. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -0
  7. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  8. package/dist/components/Server/ServerVariablesForm.vue.d.ts +2 -0
  9. package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
  10. package/dist/components/Server/ServerVariablesForm.vue.js +19 -18
  11. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  12. package/dist/components/TopNav/TopNavItem.vue.js +3 -3
  13. package/dist/components/TopNav/TopNavItem.vue2.js +46 -54
  14. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  15. package/dist/hooks/useClientConfig.d.ts +72 -6
  16. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  17. package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
  18. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  19. package/dist/layouts/App/ApiClientApp.vue.js +45 -40
  20. package/dist/layouts/App/create-api-client-app.d.ts +72 -52
  21. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  22. package/dist/layouts/Modal/create-api-client-modal.d.ts +144 -104
  23. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  24. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  25. package/dist/layouts/Web/ApiClientWeb.vue.js +49 -44
  26. package/dist/layouts/Web/create-api-client-web.d.ts +72 -52
  27. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  28. package/dist/libs/create-client.d.ts +72 -52
  29. package/dist/libs/create-client.d.ts.map +1 -1
  30. package/dist/libs/create-client.js +53 -49
  31. package/dist/libs/electron.d.ts +5 -0
  32. package/dist/libs/electron.d.ts.map +1 -0
  33. package/dist/libs/electron.js +4 -0
  34. package/dist/libs/find-request.d.ts +2 -0
  35. package/dist/libs/find-request.d.ts.map +1 -1
  36. package/dist/libs/send-request/create-fetch-query-params.d.ts +10 -3
  37. package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
  38. package/dist/libs/send-request/create-fetch-query-params.js +28 -6
  39. package/dist/libs/send-request/create-request-operation.d.ts +3 -1
  40. package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
  41. package/dist/libs/send-request/create-request-operation.js +91 -87
  42. package/dist/libs/send-request/create-request-operation.test.d.ts +2 -0
  43. package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
  44. package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
  45. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
  46. package/dist/plugins/hooks/usePluginManager.js +10 -0
  47. package/dist/plugins/index.d.ts +3 -0
  48. package/dist/plugins/index.d.ts.map +1 -0
  49. package/dist/plugins/index.js +7 -0
  50. package/dist/plugins/plugin-manager.d.ts +28 -0
  51. package/dist/plugins/plugin-manager.d.ts.map +1 -0
  52. package/dist/plugins/plugin-manager.js +24 -0
  53. package/dist/store/active-entities.d.ts +2 -0
  54. package/dist/store/active-entities.d.ts.map +1 -1
  55. package/dist/store/collections.d.ts +4 -4
  56. package/dist/store/cookies.d.ts +4 -4
  57. package/dist/store/environment.d.ts +4 -4
  58. package/dist/store/request-example.d.ts +4 -4
  59. package/dist/store/requests.d.ts +26 -4
  60. package/dist/store/requests.d.ts.map +1 -1
  61. package/dist/store/security-schemes.d.ts +24 -24
  62. package/dist/store/store.d.ts +72 -52
  63. package/dist/store/store.d.ts.map +1 -1
  64. package/dist/store/tags.d.ts +4 -4
  65. package/dist/store/workspace.d.ts +4 -4
  66. package/dist/style.css +1 -1
  67. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  68. package/dist/views/Request/Request.vue.js +2 -2
  69. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  70. package/dist/views/Request/RequestRoot.vue.js +1 -1
  71. package/dist/views/Request/RequestRoot.vue2.js +47 -45
  72. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  74. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +37 -34
  75. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  76. package/dist/views/Request/RequestSection/RequestParams.vue.js +61 -70
  77. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  78. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  79. package/dist/views/Request/RequestSection/RequestSection.vue2.js +92 -77
  80. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestTable.vue.js +4 -4
  82. package/dist/views/Request/RequestSection/RequestTable.vue2.js +59 -65
  83. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  84. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  85. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +34 -35
  86. package/dist/views/Request/RequestSection/types/post-response.d.ts +7 -0
  87. package/dist/views/Request/RequestSection/types/post-response.d.ts.map +1 -0
  88. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  89. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  90. package/dist/views/Request/RequestSidebarItem.vue2.js +132 -134
  91. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  92. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  93. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  94. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +82 -70
  95. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  96. package/dist/views/Request/components/WorkspaceDropdown.vue.js +80 -114
  97. package/package.json +25 -20
@@ -1,8 +1,9 @@
1
- import { defineComponent as d, createBlock as a, openBlock as r, unref as t, withCtx as l, createVNode as o, createTextVNode as c, createCommentVNode as f, createElementVNode as m, normalizeClass as u, toDisplayString as g } from "vue";
2
- import { ScalarContextMenu as y, ScalarFloating as C, ScalarDropdownMenu as b, ScalarDropdownButton as p, ScalarIcon as n, ScalarDropdownDivider as v, ScalarTooltip as T } from "@scalar/components";
1
+ import { defineComponent as d, createBlock as c, openBlock as p, unref as t, withCtx as n, createVNode as o, createTextVNode as a, createElementVNode as r, normalizeClass as k, toDisplayString as u } from "vue";
2
+ import { ScalarContextMenu as b, ScalarFloating as v, ScalarDropdownMenu as C, ScalarDropdownButton as m, ScalarIcon as l, ScalarDropdownDivider as g, ScalarTooltip as y } from "@scalar/components";
3
3
  import { LibraryIcon as $ } from "@scalar/icons/library";
4
- import k from "../ScalarHotkey.vue.js";
5
- const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, z = { class: "custom-scroll nav-item-copy text-xs" }, V = /* @__PURE__ */ d({
4
+ import { isMacOS as T } from "@scalar/use-tooltip";
5
+ import f from "../ScalarHotkey.vue.js";
6
+ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, S = { class: "custom-scroll nav-item-copy text-xs" }, L = /* @__PURE__ */ d({
6
7
  __name: "TopNavItem",
7
8
  props: {
8
9
  hotkey: {},
@@ -12,122 +13,113 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
12
13
  isCollection: { type: Boolean }
13
14
  },
14
15
  emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
15
- setup(S) {
16
- return (s, e) => (r(), a(t(y), { triggerClass: "overflow-hidden w-full" }, {
17
- trigger: l(() => [
18
- o(t(T), {
19
- class: "scalar-client",
20
- delay: 500,
21
- disableClosingTrigger: !0,
22
- resize: "",
23
- sideOffset: 4
16
+ setup(z) {
17
+ return (s, e) => (p(), c(t(b), { triggerClass: "overflow-hidden w-full" }, {
18
+ trigger: n(() => [
19
+ o(t(y), {
20
+ content: `${t(T)() ? "" : "^"} ${s.hotkey}`,
21
+ placement: "bottom"
24
22
  }, {
25
- trigger: l(() => [
26
- m("div", {
27
- class: u(["nav-item app-no-drag-region", { "nav-item__active": s.active }]),
23
+ default: n(() => [
24
+ r("div", {
25
+ class: k(["nav-item app-no-drag-region", { "nav-item__active": s.active }]),
28
26
  onClick: e[1] || (e[1] = (i) => s.$emit("click"))
29
27
  }, [
30
- m("div", w, [
31
- s.isCollection ? (r(), a(t($), {
28
+ r("div", w, [
29
+ s.isCollection ? (p(), c(t($), {
32
30
  key: 0,
33
31
  class: "size-3.5 min-w-3.5 stroke-2",
34
32
  src: s.icon
35
- }, null, 8, ["src"])) : (r(), a(t(n), {
33
+ }, null, 8, ["src"])) : (p(), c(t(l), {
36
34
  key: 1,
37
35
  icon: s.icon,
38
36
  size: "xs",
39
37
  thickness: "2.5"
40
38
  }, null, 8, ["icon"])),
41
- m("span", z, g(s.label), 1)
39
+ r("span", S, u(s.label), 1)
42
40
  ]),
43
- m("button", {
41
+ r("button", {
44
42
  class: "nav-item-close",
45
43
  type: "button",
46
44
  onClick: e[0] || (e[0] = (i) => s.$emit("close"))
47
45
  }, [
48
- o(t(n), {
46
+ o(t(l), {
49
47
  icon: "Close",
50
48
  thickness: "1.75"
51
49
  })
52
50
  ])
53
51
  ], 2)
54
52
  ]),
55
- content: l(() => [
56
- s.hotkey ? (r(), a(k, {
57
- key: 0,
58
- hotkey: s.hotkey
59
- }, null, 8, ["hotkey"])) : f("", !0)
60
- ]),
61
53
  _: 1
62
- })
54
+ }, 8, ["content"])
63
55
  ]),
64
- content: l(() => [
65
- o(t(C), { placement: "right-start" }, {
66
- floating: l(() => [
67
- o(t(b), { class: "scalar-app scalar-client" }, {
68
- default: l(() => [
69
- o(t(p), {
56
+ content: n(() => [
57
+ o(t(v), { placement: "right-start" }, {
58
+ floating: n(() => [
59
+ o(t(C), { class: "scalar-app scalar-client" }, {
60
+ default: n(() => [
61
+ o(t(m), {
70
62
  class: "flex items-center gap-1.5",
71
63
  onClick: e[2] || (e[2] = (i) => s.$emit("newTab"))
72
64
  }, {
73
- default: l(() => [
74
- o(t(n), {
65
+ default: n(() => [
66
+ o(t(l), {
75
67
  icon: "AddTab",
76
68
  size: "sm",
77
69
  thickness: "1.5"
78
70
  }),
79
- e[6] || (e[6] = c(" New Tab ")),
80
- o(k, {
71
+ e[6] || (e[6] = a(" New Tab ")),
72
+ o(f, {
81
73
  class: "bg-b-2 ml-auto",
82
74
  hotkey: "T"
83
75
  })
84
76
  ]),
85
77
  _: 1
86
78
  }),
87
- o(t(p), {
79
+ o(t(m), {
88
80
  class: "flex items-center gap-1.5",
89
81
  onClick: e[3] || (e[3] = (i) => s.$emit("copyUrl"))
90
82
  }, {
91
- default: l(() => [
92
- o(t(n), {
83
+ default: n(() => [
84
+ o(t(l), {
93
85
  icon: "Link",
94
86
  size: "sm",
95
87
  thickness: "1.5"
96
88
  }),
97
- e[7] || (e[7] = c(" Copy URL "))
89
+ e[7] || (e[7] = a(" Copy URL "))
98
90
  ]),
99
91
  _: 1
100
92
  }),
101
- o(t(v)),
102
- o(t(p), {
93
+ o(t(g)),
94
+ o(t(m), {
103
95
  class: "flex items-center gap-1.5",
104
96
  onClick: e[4] || (e[4] = (i) => s.$emit("close"))
105
97
  }, {
106
- default: l(() => [
107
- o(t(n), {
98
+ default: n(() => [
99
+ o(t(l), {
108
100
  icon: "CloseTab",
109
101
  size: "sm",
110
102
  thickness: "1.5"
111
103
  }),
112
- e[8] || (e[8] = c(" Close Tab ")),
113
- o(k, {
104
+ e[8] || (e[8] = a(" Close Tab ")),
105
+ o(f, {
114
106
  class: "bg-b-2 ml-auto",
115
107
  hotkey: "W"
116
108
  })
117
109
  ]),
118
110
  _: 1
119
111
  }),
120
- o(t(p), {
112
+ o(t(m), {
121
113
  class: "flex items-center gap-1.5",
122
114
  onClick: e[5] || (e[5] = (i) => s.$emit("closeOtherTabs"))
123
115
  }, {
124
- default: l(() => [
125
- o(t(n), {
116
+ default: n(() => [
117
+ o(t(l), {
126
118
  icon: "CloseTabs",
127
119
  size: "sm",
128
120
  thickness: "1.5"
129
121
  }),
130
- e[9] || (e[9] = c(" Close Other Tabs "))
122
+ e[9] || (e[9] = a(" Close Other Tabs "))
131
123
  ]),
132
124
  _: 1
133
125
  })
@@ -143,5 +135,5 @@ const w = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
143
135
  }
144
136
  });
145
137
  export {
146
- V as default
138
+ L as default
147
139
  };
@@ -6,7 +6,7 @@ const _ = ["aria-labelledby"], k = { class: "text-c-1 flex flex-1 items-center g
6
6
  class: "sr-only"
7
7
  }, V = {
8
8
  key: 0,
9
- class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full border font-semibold"
9
+ class: "bg-b-2 text-c-2 inline-flex h-5 w-5 items-center justify-center rounded-full border text-xs font-semibold"
10
10
  }, $ = { class: "sr-only" }, D = {
11
11
  key: 0,
12
12
  class: "ui-not-open:invisible flex items-center gap-2 pr-2"
@@ -7,14 +7,14 @@ export declare const useClientConfig: () => Ref<{
7
7
  showSidebar: boolean;
8
8
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
9
9
  persistAuth: boolean;
10
+ title?: string | undefined;
10
11
  url?: string | undefined;
11
12
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
12
- title?: string | undefined;
13
13
  slug?: string | undefined;
14
14
  spec?: {
15
+ title?: string | undefined;
15
16
  url?: string | undefined;
16
17
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
17
- title?: string | undefined;
18
18
  slug?: string | undefined;
19
19
  } | undefined;
20
20
  authentication?: any;
@@ -24,19 +24,41 @@ export declare const useClientConfig: () => Ref<{
24
24
  servers?: any[] | undefined;
25
25
  _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
26
26
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
27
+ plugins?: ((...args: unknown[]) => {
28
+ name: string;
29
+ views: {
30
+ "request.section": {
31
+ title?: string | undefined;
32
+ component?: unknown;
33
+ props?: Record<string, any> | undefined;
34
+ }[];
35
+ "response.section": {
36
+ title?: string | undefined;
37
+ component?: unknown;
38
+ props?: Record<string, any> | undefined;
39
+ }[];
40
+ };
41
+ hooks: {
42
+ onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
43
+ onResponseReceived: (args_0: {
44
+ response: Response;
45
+ operation: Record<string, any>;
46
+ }, ...args: unknown[]) => void | Promise<void>;
47
+ };
48
+ })[] | undefined;
27
49
  }, {
28
50
  hideClientButton: boolean;
29
51
  showSidebar: boolean;
30
52
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
31
53
  persistAuth: boolean;
54
+ title?: string | undefined;
32
55
  url?: string | undefined;
33
56
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
34
- title?: string | undefined;
35
57
  slug?: string | undefined;
36
58
  spec?: {
59
+ title?: string | undefined;
37
60
  url?: string | undefined;
38
61
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
39
- title?: string | undefined;
40
62
  slug?: string | undefined;
41
63
  } | undefined;
42
64
  authentication?: any;
@@ -46,19 +68,41 @@ export declare const useClientConfig: () => Ref<{
46
68
  servers?: any[] | undefined;
47
69
  _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
48
70
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
71
+ plugins?: ((...args: unknown[]) => {
72
+ name: string;
73
+ views: {
74
+ "request.section": {
75
+ title?: string | undefined;
76
+ component?: unknown;
77
+ props?: Record<string, any> | undefined;
78
+ }[];
79
+ "response.section": {
80
+ title?: string | undefined;
81
+ component?: unknown;
82
+ props?: Record<string, any> | undefined;
83
+ }[];
84
+ };
85
+ hooks: {
86
+ onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
87
+ onResponseReceived: (args_0: {
88
+ response: Response;
89
+ operation: Record<string, any>;
90
+ }, ...args: unknown[]) => void | Promise<void>;
91
+ };
92
+ })[] | undefined;
49
93
  } | {
50
94
  hideClientButton: boolean;
51
95
  showSidebar: boolean;
52
96
  theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
53
97
  persistAuth: boolean;
98
+ title?: string | undefined;
54
99
  url?: string | undefined;
55
100
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
56
- title?: string | undefined;
57
101
  slug?: string | undefined;
58
102
  spec?: {
103
+ title?: string | undefined;
59
104
  url?: string | undefined;
60
105
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
61
- title?: string | undefined;
62
106
  slug?: string | undefined;
63
107
  } | undefined;
64
108
  authentication?: any;
@@ -68,5 +112,27 @@ export declare const useClientConfig: () => Ref<{
68
112
  servers?: any[] | undefined;
69
113
  _integration?: "go" | "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
70
114
  onRequestSent?: ((args_0: string, ...args: unknown[]) => void) | undefined;
115
+ plugins?: ((...args: unknown[]) => {
116
+ name: string;
117
+ views: {
118
+ "request.section": {
119
+ title?: string | undefined;
120
+ component?: unknown;
121
+ props?: Record<string, any> | undefined;
122
+ }[];
123
+ "response.section": {
124
+ title?: string | undefined;
125
+ component?: unknown;
126
+ props?: Record<string, any> | undefined;
127
+ }[];
128
+ };
129
+ hooks: {
130
+ onBeforeRequest: (...args: unknown[]) => void | Promise<void>;
131
+ onResponseReceived: (args_0: {
132
+ response: Response;
133
+ operation: Record<string, any>;
134
+ }, ...args: unknown[]) => void | Promise<void>;
135
+ };
136
+ })[] | undefined;
71
137
  }>;
72
138
  //# sourceMappingURL=useClientConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;+CAC0pP,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;;;;;;;+CAAn/B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAA6pB,GAAI;;;;;;;+CAAn/B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAA2wB,GAAI;EADpjR,CAAA"}
1
+ {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;;;+CAC0+Y,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;;;;;;;;+CAA3rD,GAAG;;;aAAsH,CAAC;WAAiC,CAAC;eAAqC,CAAC,mCAAmC,GAAG;YAAyE,CAAC;;;;;;;;sCAA6pB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;;;;;;;;+CAA3rD,GAAG;;;;;mDAAkO,GAAG;;;;;;;;;sCAAuuB,GAAI;gBAAuD,GAAG;;;;qBAAmH,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;qBAA2G,CAAC;yBAA+C,CAAC;qBAAgC,CAAC;;;;8BAA8G,GAAG;;;;eAAuL,GAAI;;;EAD5kc,CAAA"}
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
8
8
  name: string;
9
9
  uid: string;
10
10
  }) => any;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
12
  export default _default;
13
13
  //# sourceMappingURL=ApiClientApp.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAiK8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA0LjD,wBAOG"}
1
+ {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAyK8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAoMjD,wBAOG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as y, ref as T, onBeforeMount as v, onMounted as K, onBeforeUnmount as k, watch as C, computed as b, createElementBlock as E, openBlock as t, createElementVNode as S, createVNode as r, createBlock as a, createCommentVNode as H, unref as m, withCtx as d, KeepAlive as N, resolveDynamicComponent as A } from "vue";
2
- import { addScalarClassesToHeadless as B } from "@scalar/components";
1
+ import { defineComponent as y, ref as v, onBeforeMount as K, onMounted as C, onBeforeUnmount as S, watch as b, computed as k, createBlock as t, openBlock as n, unref as r, withCtx as m, createElementVNode as p, createVNode as s, createCommentVNode as E, KeepAlive as H, resolveDynamicComponent as N } from "vue";
2
+ import { addScalarClassesToHeadless as A, ScalarTeleportRoot as B } from "@scalar/components";
3
3
  import { getThemeStyles as D } from "@scalar/themes";
4
4
  import { useBreakpoints as L } from "@scalar/use-hooks/useBreakpoints";
5
5
  import { useColorMode as M } from "@scalar/use-hooks/useColorMode";
@@ -9,61 +9,66 @@ import V from "../../components/TopNav/TopNav.vue.js";
9
9
  import { useSidebar as O } from "../../hooks/useSidebar.js";
10
10
  import $ from "./MainLayout.vue.js";
11
11
  import { useActiveEntities as g } from "../../store/active-entities.js";
12
- import { APP_HOTKEYS as U } from "./hotkeys.js";
13
- import { handleHotKeyDown as W, DEFAULT_HOTKEYS as Y } from "../../libs/hot-keys.js";
14
- import { useWorkspace as F } from "../../store/store.js";
15
- const I = {
12
+ import { APP_HOTKEYS as R } from "./hotkeys.js";
13
+ import { handleHotKeyDown as U, DEFAULT_HOTKEYS as W } from "../../libs/hot-keys.js";
14
+ import { useWorkspace as Y } from "../../store/store.js";
15
+ const F = {
16
16
  id: "scalar-client-app",
17
17
  class: "contents"
18
- }, Q = ["innerHTML"], ie = /* @__PURE__ */ y({
18
+ }, I = ["innerHTML"], ie = /* @__PURE__ */ y({
19
19
  __name: "ApiClientApp",
20
20
  emits: ["newTab"],
21
- setup(R) {
22
- const p = { ...Y, ...U }, s = T(null), u = (e) => {
23
- s.value = e;
21
+ setup(Q) {
22
+ const u = { ...W, ...R }, i = v(null), f = (e) => {
23
+ i.value = e;
24
24
  };
25
25
  M();
26
- const { activeWorkspace: n } = g(), { events: o } = F();
27
- v(() => B());
28
- const i = (e) => W(e, o.hotKeys, { hotKeys: p }), l = (e) => {
26
+ const { activeWorkspace: a } = g(), { events: o } = Y();
27
+ K(() => A());
28
+ const l = (e) => U(e, o.hotKeys, { hotKeys: u }), c = (e) => {
29
29
  e && e.openCommandPalette && (e.openCommandPalette.preventDefault(), o.commandPalette.emit());
30
30
  };
31
- K(() => {
32
- window.addEventListener("keydown", i), o.hotKeys.on(l);
33
- }), k(() => {
34
- window.removeEventListener("keydown", i), o.hotKeys.off(l);
31
+ C(() => {
32
+ window.addEventListener("keydown", l), o.hotKeys.on(c);
33
+ }), S(() => {
34
+ window.removeEventListener("keydown", l), o.hotKeys.off(c);
35
35
  });
36
- const { mediaQueries: f } = L(), { setSidebarOpen: _ } = O();
37
- C(f.xl, _, {
36
+ const { mediaQueries: _ } = L(), { setSidebarOpen: w } = O();
37
+ b(_.xl, w, {
38
38
  immediate: !0
39
39
  });
40
- const w = b(
40
+ const h = k(
41
41
  () => {
42
42
  var e;
43
- return n.value && `<style>${D((e = n.value) == null ? void 0 : e.themeId)}</style>`;
43
+ return a.value && `<style>${D((e = a.value) == null ? void 0 : e.themeId)}</style>`;
44
44
  }
45
45
  );
46
- return (e, j) => {
47
- var c;
48
- return t(), E("div", I, [
49
- S("div", { innerHTML: w.value }, null, 8, Q),
50
- r(V, { openNewTab: s.value }, null, 8, ["openNewTab"]),
51
- (c = m(n)) != null && c.uid ? (t(), a($, { key: 0 }, {
52
- default: d(() => [
53
- r(m(x), { onNewTab: u }, {
54
- default: d(({ Component: h }) => [
55
- (t(), a(N, null, [
56
- (t(), a(A(h)))
57
- ], 1024))
46
+ return (e, j) => (n(), t(r(B), null, {
47
+ default: m(() => {
48
+ var d;
49
+ return [
50
+ p("div", F, [
51
+ p("div", { innerHTML: h.value }, null, 8, I),
52
+ s(V, { openNewTab: i.value }, null, 8, ["openNewTab"]),
53
+ (d = r(a)) != null && d.uid ? (n(), t($, { key: 0 }, {
54
+ default: m(() => [
55
+ s(r(x), { onNewTab: f }, {
56
+ default: m(({ Component: T }) => [
57
+ (n(), t(H, null, [
58
+ (n(), t(N(T)))
59
+ ], 1024))
60
+ ]),
61
+ _: 1
62
+ })
58
63
  ]),
59
64
  _: 1
60
- })
61
- ]),
62
- _: 1
63
- })) : H("", !0),
64
- r(m(P))
65
- ]);
66
- };
65
+ })) : E("", !0),
66
+ s(r(P))
67
+ ])
68
+ ];
69
+ }),
70
+ _: 1
71
+ }));
67
72
  }
68
73
  });
69
74
  export {