@scalar/api-client 2.24.0 → 2.26.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 (81) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  3. package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
  6. package/dist/v2/blocks/operation-block/helpers/build-request-body.js +28 -19
  7. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
  8. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
  9. package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
  10. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
  11. package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
  14. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
  15. package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
  16. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
  17. package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +26 -26
  18. package/dist/v2/components/callout/Callout.vue.d.ts +17 -0
  19. package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
  20. package/dist/v2/components/callout/Callout.vue.js +7 -0
  21. package/dist/v2/components/callout/Callout.vue2.js +43 -0
  22. package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
  23. package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
  24. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
  25. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  26. package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
  27. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
  28. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  29. package/dist/v2/components/sidebar/SidebarMenu.vue.js +6 -6
  30. package/dist/v2/features/app/App.vue.d.ts +6 -3
  31. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/App.vue.js +87 -86
  33. package/dist/v2/features/app/app-events.d.ts +1 -1
  34. package/dist/v2/features/app/app-events.d.ts.map +1 -1
  35. package/dist/v2/features/app/app-events.js +10 -10
  36. package/dist/v2/features/app/app-state.d.ts +77 -96
  37. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  38. package/dist/v2/features/app/app-state.js +339 -322
  39. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
  40. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  41. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  42. package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
  43. package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
  44. package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
  45. package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
  46. package/dist/v2/features/app/helpers/create-api-client-app.js +9 -9
  47. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
  48. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
  49. package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
  50. package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
  51. package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
  52. package/dist/v2/features/app/helpers/get-route-param.js +9 -0
  53. package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
  54. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
  55. package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
  56. package/dist/v2/features/app/index.d.ts +1 -1
  57. package/dist/v2/features/app/index.d.ts.map +1 -1
  58. package/dist/v2/features/app/index.js +12 -12
  59. package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
  60. package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
  61. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +29 -2
  62. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  63. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
  64. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
  65. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
  66. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
  67. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
  68. package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
  69. package/dist/v2/features/command-palette/index.d.ts +1 -2
  70. package/dist/v2/features/command-palette/index.d.ts.map +1 -1
  71. package/dist/v2/features/command-palette/index.js +4 -6
  72. package/dist/v2/features/operation/Operation.vue.js +1 -1
  73. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  74. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
  75. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
  76. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  77. package/package.json +10 -10
  78. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
  79. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
  80. package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
  81. package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.24.0",
21
+ "version": "2.26.0",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -327,25 +327,25 @@
327
327
  "yaml": "^2.8.0",
328
328
  "zod": "^4.3.5",
329
329
  "@scalar/analytics-client": "1.0.1",
330
- "@scalar/components": "0.17.6",
330
+ "@scalar/components": "0.19.0",
331
331
  "@scalar/draggable": "0.3.0",
332
- "@scalar/json-magic": "0.10.0",
333
332
  "@scalar/helpers": "0.2.11",
334
- "@scalar/import": "0.4.48",
335
333
  "@scalar/icons": "0.5.2",
334
+ "@scalar/import": "0.4.48",
335
+ "@scalar/json-magic": "0.11.0",
336
+ "@scalar/oas-utils": "0.6.38",
336
337
  "@scalar/object-utils": "1.2.25",
337
- "@scalar/openapi-parser": "0.24.8",
338
- "@scalar/oas-utils": "0.6.36",
338
+ "@scalar/openapi-parser": "0.24.9",
339
339
  "@scalar/openapi-types": "0.5.3",
340
340
  "@scalar/postman-to-openapi": "0.4.3",
341
- "@scalar/sidebar": "0.7.29",
341
+ "@scalar/sidebar": "0.7.31",
342
342
  "@scalar/snippetz": "0.6.11",
343
343
  "@scalar/themes": "0.14.0",
344
344
  "@scalar/types": "0.6.2",
345
- "@scalar/use-codemirror": "0.13.33",
345
+ "@scalar/use-codemirror": "0.13.35",
346
+ "@scalar/use-hooks": "0.3.7",
346
347
  "@scalar/use-toasts": "0.9.1",
347
- "@scalar/workspace-store": "0.29.0",
348
- "@scalar/use-hooks": "0.3.7"
348
+ "@scalar/workspace-store": "0.31.0"
349
349
  },
350
350
  "devDependencies": {
351
351
  "@tailwindcss/vite": "^4.1.18",
@@ -1,41 +0,0 @@
1
- import type { ScalarListboxOption } from '@scalar/components';
2
- /**
3
- * The top nav on the web
4
- *
5
- * This no longer contains the links to cookies and environment but just holds the menu and download buttons
6
- */
7
- declare const _default: import("vue").DefineComponent<{
8
- /**
9
- * The currently active workspace.
10
- * This represents the workspace that the user is currently working in.
11
- */
12
- activeWorkspace: {
13
- id: string;
14
- };
15
- /**
16
- * The list of all available workspaces.
17
- * Used to render options for workspace switching and selection.
18
- */
19
- workspaces: ScalarListboxOption[];
20
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
- "create:workspace": () => any;
22
- "select:workspace": (id?: string | undefined) => any;
23
- }, string, import("vue").PublicProps, Readonly<{
24
- /**
25
- * The currently active workspace.
26
- * This represents the workspace that the user is currently working in.
27
- */
28
- activeWorkspace: {
29
- id: string;
30
- };
31
- /**
32
- * The list of all available workspaces.
33
- * Used to render options for workspace switching and selection.
34
- */
35
- workspaces: ScalarListboxOption[];
36
- }> & Readonly<{
37
- "onCreate:workspace"?: (() => any) | undefined;
38
- "onSelect:workspace"?: ((id?: string | undefined) => any) | undefined;
39
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
- export default _default;
41
- //# sourceMappingURL=WebTopNav.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebTopNav.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/app/components/WebTopNav.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAO7D;;;;GAIG;;IAGD;;;OAGG;qBACc;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IAC/B;;;OAGG;gBACS,mBAAmB,EAAE;;;;;IATjC;;;OAGG;qBACc;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE;IAC/B;;;OAGG;gBACS,mBAAmB,EAAE;;;;;AAXnC,wBAuGC"}
@@ -1,27 +0,0 @@
1
- import { defineComponent as c, createElementBlock as p, openBlock as n, createVNode as s, unref as i } from "vue";
2
- import k from "./DownloadAppButton.vue.js";
3
- import m from "../../../components/sidebar/SidebarMenu.vue.js";
4
- const l = { class: "flex h-12 items-center justify-between border-b p-2" }, w = {}, v = /* @__PURE__ */ c({
5
- ...w,
6
- __name: "WebTopNav",
7
- props: {
8
- activeWorkspace: {},
9
- workspaces: {}
10
- },
11
- emits: ["create:workspace", "select:workspace"],
12
- setup(o, { emit: a }) {
13
- const t = a;
14
- return (f, e) => (n(), p("nav", l, [
15
- s(i(m), {
16
- activeWorkspace: o.activeWorkspace,
17
- workspaces: o.workspaces,
18
- "onCreate:workspace": e[0] || (e[0] = (r) => t("create:workspace")),
19
- "onSelect:workspace": e[1] || (e[1] = (r) => t("select:workspace", r))
20
- }, null, 8, ["activeWorkspace", "workspaces"]),
21
- s(k)
22
- ]));
23
- }
24
- });
25
- export {
26
- v as default
27
- };
@@ -1,4 +0,0 @@
1
- import f from "./WebTopNav.vue.js";
2
- export {
3
- f as default
4
- };