@scalar/api-client 2.23.3 → 2.24.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 (97) hide show
  1. package/CHANGELOG.md +55 -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/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts +5 -1
  18. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.d.ts.map +1 -1
  19. package/dist/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.js +61 -61
  20. package/dist/v2/components/sidebar/SidebarMenu.vue.js +6 -6
  21. package/dist/v2/features/app/App.vue.d.ts +5 -0
  22. package/dist/v2/features/app/App.vue.d.ts.map +1 -1
  23. package/dist/v2/features/app/App.vue.js +89 -108
  24. package/dist/v2/features/app/app-state.d.ts +5 -7
  25. package/dist/v2/features/app/app-state.d.ts.map +1 -1
  26. package/dist/v2/features/app/app-state.js +210 -205
  27. package/dist/v2/features/app/hooks/use-document-watcher.js +8 -8
  28. package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
  29. package/dist/v2/features/collection/components/Environment.vue.js +12 -11
  30. package/dist/v2/features/collection/components/Settings.vue.d.ts.map +1 -1
  31. package/dist/v2/features/collection/components/Settings.vue.js +17 -25
  32. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +1 -1
  33. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
  34. package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +115 -118
  35. package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts.map +1 -1
  36. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts +14 -4
  37. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.d.ts.map +1 -1
  38. package/dist/v2/features/command-palette/helpers/get-openapi-from-postman.js +5 -6
  39. package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts.map +1 -1
  40. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +16 -0
  41. package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -0
  42. package/dist/v2/features/command-palette/helpers/load-document-from-source.js +34 -0
  43. package/dist/v2/features/command-palette/index.d.ts +4 -0
  44. package/dist/v2/features/command-palette/index.d.ts.map +1 -0
  45. package/dist/v2/features/command-palette/index.js +8 -0
  46. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts +4 -0
  47. package/dist/v2/features/environments/EnvironmentsList.vue.d.ts.map +1 -1
  48. package/dist/v2/features/environments/EnvironmentsList.vue.js +29 -27
  49. package/dist/v2/features/environments/components/Environment.vue.d.ts +1 -0
  50. package/dist/v2/features/environments/components/Environment.vue.d.ts.map +1 -1
  51. package/dist/v2/features/environments/components/Environment.vue.js +37 -24
  52. package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
  53. package/dist/v2/features/modal/Modal.vue.js +1 -1
  54. package/dist/v2/features/modal/Modal.vue2.js +35 -36
  55. package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
  56. package/dist/v2/features/modal/helpers/create-api-client-modal.js +58 -41
  57. package/dist/v2/features/modal/helpers/restore-workspace-state.d.ts +18 -0
  58. package/dist/v2/features/modal/helpers/restore-workspace-state.d.ts.map +1 -0
  59. package/dist/v2/features/modal/helpers/restore-workspace-state.js +36 -0
  60. package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
  61. package/dist/v2/features/operation/Operation.vue.js +35 -26
  62. package/dist/v2/workspace-events.d.ts.map +1 -1
  63. package/dist/v2/workspace-events.js +7 -0
  64. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  65. package/package.json +20 -20
  66. package/dist/v2/features/import-listener/ImportListener.vue.d.ts +0 -52
  67. package/dist/v2/features/import-listener/ImportListener.vue.d.ts.map +0 -1
  68. package/dist/v2/features/import-listener/ImportListener.vue.js +0 -91
  69. package/dist/v2/features/import-listener/ImportListener.vue2.js +0 -4
  70. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts +0 -7
  71. package/dist/v2/features/import-listener/components/DropEventListener.vue.d.ts.map +0 -1
  72. package/dist/v2/features/import-listener/components/DropEventListener.vue.js +0 -81
  73. package/dist/v2/features/import-listener/components/DropEventListener.vue2.js +0 -4
  74. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts +0 -40
  75. package/dist/v2/features/import-listener/components/ImportModal.vue.d.ts.map +0 -1
  76. package/dist/v2/features/import-listener/components/ImportModal.vue.js +0 -170
  77. package/dist/v2/features/import-listener/components/ImportModal.vue3.js +0 -5
  78. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts +0 -29
  79. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.d.ts.map +0 -1
  80. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue.js +0 -83
  81. package/dist/v2/features/import-listener/components/WorkspaceSelector.vue2.js +0 -4
  82. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts +0 -8
  83. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.d.ts.map +0 -1
  84. package/dist/v2/features/import-listener/helpers/get-url-query-parameter.js +0 -4
  85. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts +0 -15
  86. package/dist/v2/features/import-listener/helpers/load-document-from-source.d.ts.map +0 -1
  87. package/dist/v2/features/import-listener/helpers/load-document-from-source.js +0 -28
  88. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts +0 -15
  89. package/dist/v2/features/import-listener/helpers/wait-for-condition.d.ts.map +0 -1
  90. package/dist/v2/features/import-listener/helpers/wait-for-condition.js +0 -16
  91. package/dist/v2/features/import-listener/index.d.ts +0 -2
  92. package/dist/v2/features/import-listener/index.d.ts.map +0 -1
  93. package/dist/v2/features/import-listener/index.js +0 -4
  94. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.d.ts +0 -0
  95. /package/dist/v2/features/{import-listener → command-palette}/helpers/generate-unique-slug.js +0 -0
  96. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.d.ts +0 -0
  97. /package/dist/v2/features/{import-listener → command-palette}/helpers/import-document-to-workspace.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#8045](https://github.com/scalar/scalar/pull/8045): feat: manage active environments
8
+
9
+ ### Patch Changes
10
+
11
+ - [#7989](https://github.com/scalar/scalar/pull/7989): fix: prevent API client modal from disappearing on reopen in Safari
12
+ - [#8049](https://github.com/scalar/scalar/pull/8049): fix: gracefully handle import errors when importing from command palette
13
+ - [#8061](https://github.com/scalar/scalar/pull/8061): fix: correctly display watch mode toggle state
14
+ - [#8062](https://github.com/scalar/scalar/pull/8062): fix: correctly handle redirect after the document deletion
15
+ - [#8070](https://github.com/scalar/scalar/pull/8070): chore: remove the import modal and change the workspace picker to support groups
16
+
17
+ #### Updated Dependencies
18
+
19
+ - **@scalar/json-magic@0.10.0**
20
+ - [#8052](https://github.com/scalar/scalar/pull/8052): feat: allow custom LoaderPlugin plugins in dereference
21
+
22
+ - **@scalar/workspace-store@0.29.0**
23
+ - [#8061](https://github.com/scalar/scalar/pull/8061): fix: do not throw when try to update a non existent document metadata
24
+ - [#8045](https://github.com/scalar/scalar/pull/8045): feat: manage active environments
25
+
26
+ - **@scalar/oas-utils@0.6.36**
27
+ - [#8037](https://github.com/scalar/scalar/pull/8037): Improve error message when running oas-utils tests while test-servers are not running
28
+
29
+ - **@scalar/components@0.17.6**
30
+ - [#8070](https://github.com/scalar/scalar/pull/8070): chore: remove the import modal and change the workspace picker to support groups
31
+
32
+ - **@scalar/openapi-parser@0.24.8**
33
+
34
+ - **@scalar/sidebar@0.7.29**
35
+
36
+ - **@scalar/use-codemirror@0.13.33**
37
+
38
+ ## 2.23.4
39
+
40
+ ### Patch Changes
41
+
42
+ - [#8058](https://github.com/scalar/scalar/pull/8058): fix: correctly drop changes when modal closes
43
+ - [#8059](https://github.com/scalar/scalar/pull/8059): fix: harden auth secret extraction plus tests
44
+
45
+ #### Updated Dependencies
46
+
47
+ - **@scalar/workspace-store@0.28.4**
48
+ - [#8047](https://github.com/scalar/scalar/pull/8047): fix: unpack proxy when update an environment
49
+
50
+ - **@scalar/oas-utils@0.6.35**
51
+
52
+ - **@scalar/sidebar@0.7.28**
53
+
54
+ - **@scalar/components@0.17.5**
55
+
56
+ - **@scalar/use-codemirror@0.13.32**
57
+
3
58
  ## 2.23.3
4
59
 
5
60
  ### 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
  };