@scalar/api-client 2.23.4 → 2.25.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 (103) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  3. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  4. package/dist/style.css +1 -1
  5. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +8 -0
  6. package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
  7. package/dist/v2/blocks/operation-block/OperationBlock.vue.js +33 -29
  8. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +6 -0
  9. package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
  10. package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
  11. package/dist/v2/blocks/operation-block/components/Header.vue2.js +46 -29
  12. package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
  13. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts +15 -0
  14. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.d.ts.map +1 -0
  15. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue.js +125 -0
  16. package/dist/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.vue2.js +4 -0
  17. package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
  18. package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
  19. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
  20. package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
  21. package/dist/v2/features/app/App.vue.d.ts +8 -0
  22. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  23. package/dist/v2/features/app/App.vue.js +95 -108
  24. package/dist/v2/features/app/app-state.d.ts +46 -16
  25. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  26. package/dist/v2/features/app/app-state.js +174 -161
  27. package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
  28. package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
  29. package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
  30. package/dist/v2/features/app/components/WebTopNav.vue.d.ts +3 -3
  31. package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +1 -1
  32. package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
  33. package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
  34. package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
  35. package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
  36. package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
  37. package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
  38. package/dist/v2/features/app/hooks/use-document-watcher.js +8 -8
  39. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  40. package/dist/v2/features/collection/components/Environment.vue.js +12 -11
  41. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  42. package/dist/v2/features/collection/components/Settings.vue.js +17 -25
  43. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +1 -1
  44. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  45. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +115 -118
  46. package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts.map +1 -1
  47. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +14 -4
  48. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -1
  49. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +5 -6
  50. package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts.map +1 -1
  51. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +16 -0
  52. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -0
  53. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +34 -0
  54. package/dist/v2/features/command-palette/index.d.ts +4 -0
  55. package/dist/v2/features/command-palette/index.d.ts.map +1 -0
  56. package/dist/v2/features/command-palette/index.js +8 -0
  57. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +4 -0
  58. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
  59. package/dist/v2/features/environments/EnvironmentsList.vue.js +29 -27
  60. package/dist/v2/features/environments/components/Environment.vue.d.ts +1 -0
  61. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
  62. package/dist/v2/features/environments/components/Environment.vue.js +37 -24
  63. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  64. package/dist/v2/features/modal/Modal.vue.js +2 -2
  65. package/dist/v2/features/modal/Modal.vue2.js +39 -38
  66. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  67. package/dist/v2/features/operation/Operation.vue.js +35 -26
  68. package/dist/v2/workspace-events.d.ts.map +1 -1
  69. package/dist/v2/workspace-events.js +7 -0
  70. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  71. package/package.json +15 -15
  72. package/dist/v2/features/import-listener/ImportListener.vue.d.ts +0 -52
  73. package/dist/v2/features/import-listener/ImportListener.vue.d.ts.map +0 -1
  74. package/dist/v2/features/import-listener/ImportListener.vue.js +0 -91
  75. package/dist/v2/features/import-listener/ImportListener.vue2.js +0 -4
  76. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts +0 -7
  77. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts.map +0 -1
  78. package/dist/v2/features/import-listener/components/DropEventListener.vue.js +0 -81
  79. package/dist/v2/features/import-listener/components/DropEventListener.vue2.js +0 -4
  80. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts +0 -40
  81. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts.map +0 -1
  82. package/dist/v2/features/import-listener/components/ImportModal.vue.js +0 -170
  83. package/dist/v2/features/import-listener/components/ImportModal.vue3.js +0 -5
  84. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts +0 -29
  85. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts.map +0 -1
  86. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.js +0 -83
  87. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue2.js +0 -4
  88. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts +0 -8
  89. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts.map +0 -1
  90. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.js +0 -4
  91. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts +0 -15
  92. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts.map +0 -1
  93. package/dist/v2/features/import-listener/helpers/load-document-from-source.js +0 -28
  94. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts +0 -15
  95. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts.map +0 -1
  96. package/dist/v2/features/import-listener/helpers/wait-for-condition.js +0 -16
  97. package/dist/v2/features/import-listener/index.d.ts +0 -2
  98. package/dist/v2/features/import-listener/index.d.ts.map +0 -1
  99. package/dist/v2/features/import-listener/index.js +0 -4
  100. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts +0 -0
  101. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.js +0 -0
  102. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts +0 -0
  103. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#8077](https://github.com/scalar/scalar/pull/8077): feat: support team workspaces
8
+
9
+ ### Patch Changes
10
+
11
+ #### Updated Dependencies
12
+
13
+ - **@scalar/workspace-store@0.30.0**
14
+ - [#8077](https://github.com/scalar/scalar/pull/8077): feat: support team workspaces
15
+
16
+ - **@scalar/components@0.18.0**
17
+ - [#8077](https://github.com/scalar/scalar/pull/8077): feat: support team workspaces
18
+
19
+ - **@scalar/oas-utils@0.6.37**
20
+
21
+ - **@scalar/sidebar@0.7.30**
22
+
23
+ - **@scalar/use-codemirror@0.13.34**
24
+
25
+ ## 2.24.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#8045](https://github.com/scalar/scalar/pull/8045): feat: manage active environments
30
+
31
+ ### Patch Changes
32
+
33
+ - [#7989](https://github.com/scalar/scalar/pull/7989): fix: prevent API client modal from disappearing on reopen in Safari
34
+ - [#8049](https://github.com/scalar/scalar/pull/8049): fix: gracefully handle import errors when importing from command palette
35
+ - [#8061](https://github.com/scalar/scalar/pull/8061): fix: correctly display watch mode toggle state
36
+ - [#8062](https://github.com/scalar/scalar/pull/8062): fix: correctly handle redirect after the document deletion
37
+ - [#8070](https://github.com/scalar/scalar/pull/8070): chore: remove the import modal and change the workspace picker to support groups
38
+
39
+ #### Updated Dependencies
40
+
41
+ - **@scalar/json-magic@0.10.0**
42
+ - [#8052](https://github.com/scalar/scalar/pull/8052): feat: allow custom LoaderPlugin plugins in dereference
43
+
44
+ - **@scalar/workspace-store@0.29.0**
45
+ - [#8061](https://github.com/scalar/scalar/pull/8061): fix: do not throw when try to update a non existent document metadata
46
+ - [#8045](https://github.com/scalar/scalar/pull/8045): feat: manage active environments
47
+
48
+ - **@scalar/oas-utils@0.6.36**
49
+ - [#8037](https://github.com/scalar/scalar/pull/8037): Improve error message when running oas-utils tests while test-servers are not running
50
+
51
+ - **@scalar/components@0.17.6**
52
+ - [#8070](https://github.com/scalar/scalar/pull/8070): chore: remove the import modal and change the workspace picker to support groups
53
+
54
+ - **@scalar/openapi-parser@0.24.8**
55
+
56
+ - **@scalar/sidebar@0.7.29**
57
+
58
+ - **@scalar/use-codemirror@0.13.33**
59
+
3
60
  ## 2.23.4
4
61
 
5
62
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AA+ZA,wBAKG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AA4WA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ApiClientModal.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-45e9730e"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9286c4f4"]]);
5
5
  export {
6
- a as default
6
+ f as default
7
7
  };