@scalar/api-client 2.7.0 → 2.8.1
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.
- package/CHANGELOG.md +67 -0
- package/README.md +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +4 -4
- package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableInputSelect.vue.js +21 -22
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +4 -5
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +13 -14
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +0 -1
- package/dist/hooks/useClientConfig.d.ts +36 -42
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +6 -6
- package/dist/layouts/App/create-api-client-app.d.ts +36 -36
- package/dist/layouts/Modal/create-api-client-modal.d.ts +72 -72
- package/dist/layouts/Web/create-api-client-web.d.ts +36 -36
- package/dist/libs/create-client.d.ts +39 -39
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/create-client.js +23 -23
- package/dist/libs/find-request.d.ts +2 -2
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.d.ts +2 -2
- package/dist/libs/send-request/create-request-operation.d.ts.map +1 -1
- package/dist/libs/send-request/create-request-operation.js +27 -27
- package/dist/libs/send-request/create-request-operation.test.d.ts +2 -2
- package/dist/plugins/plugin-manager.d.ts +3 -3
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +3 -3
- package/dist/store/requests.d.ts +22 -22
- package/dist/store/store.d.ts +36 -36
- package/dist/store/workspace.d.ts +12 -12
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +2 -3
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +2 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +70 -71
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +8 -6
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +31 -32
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +39 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +226 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +66 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +200 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +51 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +89 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +46 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +85 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +43 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +193 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue2.js +4 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableTooltip.vue2.js +62 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/file.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/files.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts +8 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.js +9 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-content.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.js +12 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-example.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.js +6 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-parameter-schema.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts +3 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/get-request-body-example.js +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts +5 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.js +7 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/group-by.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts +11 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.js +32 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/helpers/validate-parameter.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-operation-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-operation-block/index.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +98 -0
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts +47 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBlock.vue2.js +182 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts +12 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue.js +36 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyDownload.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts +13 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyInfo.vue.js +14 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyPreview.vue2.js +64 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyRaw.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts +6 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +74 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue.js +25 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyToggle.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts +11 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +52 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue3.js +5 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts +9 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +54 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts +23 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseEmpty.vue2.js +88 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts +8 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue.js +7 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseLoadingOverlay.vue2.js +41 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts +10 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue.js +61 -0
- package/dist/v2/blocks/scalar-response-block/components/ResponseMetaInformation.vue2.js +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts +5 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.js +18 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/extract-filename.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts +4 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.js +12 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/get-content-length.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts +20 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.js +127 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/media-types.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts +17 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.js +16 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/helpers/process-response-body.test.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts +2 -0
- package/dist/v2/blocks/scalar-response-block/index.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-response-block/index.js +4 -0
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +31 -32
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +0 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +13 -14
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +5 -6
- package/package.json +39 -19
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 2.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 577150c: fix(api-client): create-request-operation - await from pluginManager onResponseReceived executeHook
|
|
8
|
+
- f3e17d8: fix(api-client): create-request-operation - await Promise from pluginManager.executeHook
|
|
9
|
+
- 8e4c8c0: feat: export all blocks
|
|
10
|
+
- f8efecd: feat: use new schema example generation in the response
|
|
11
|
+
- Updated dependencies [f8efecd]
|
|
12
|
+
- Updated dependencies [3f6d0b9]
|
|
13
|
+
- Updated dependencies [2089748]
|
|
14
|
+
- Updated dependencies [f3e17d8]
|
|
15
|
+
- Updated dependencies [f8efecd]
|
|
16
|
+
- Updated dependencies [8a7fb2a]
|
|
17
|
+
- Updated dependencies [1335923]
|
|
18
|
+
- Updated dependencies [07397c8]
|
|
19
|
+
- Updated dependencies [f69e7cc]
|
|
20
|
+
- @scalar/components@0.15.1
|
|
21
|
+
- @scalar/helpers@0.0.12
|
|
22
|
+
- @scalar/json-magic@0.6.1
|
|
23
|
+
- @scalar/types@0.3.2
|
|
24
|
+
- @scalar/oas-utils@0.5.2
|
|
25
|
+
- @scalar/workspace-store@0.17.1
|
|
26
|
+
- @scalar/openapi-types@0.5.0
|
|
27
|
+
- @scalar/use-codemirror@0.12.43
|
|
28
|
+
- @scalar/import@0.4.31
|
|
29
|
+
- @scalar/object-utils@1.2.8
|
|
30
|
+
- @scalar/postman-to-openapi@0.3.40
|
|
31
|
+
- @scalar/openapi-parser@0.22.3
|
|
32
|
+
- @scalar/snippetz@0.5.1
|
|
33
|
+
- @scalar/themes@0.13.22
|
|
34
|
+
|
|
35
|
+
## 2.8.0
|
|
36
|
+
|
|
37
|
+
### Minor Changes
|
|
38
|
+
|
|
39
|
+
- 63ff417: feat: sidebar package
|
|
40
|
+
- 5d99cad: feat: operation block
|
|
41
|
+
- b998d57: feat: response block
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- debdcf6: Correctly handle additionalProperties when set to false
|
|
46
|
+
- a747da6: feat(components): overhaul and polish ScalarButton ✨
|
|
47
|
+
- 1e01464: Adds a new ApiReferenceConfigWithSource type and make the base ApiReferenceConfig type agnostic of any document sources.
|
|
48
|
+
- Updated dependencies [15c4240]
|
|
49
|
+
- Updated dependencies [debdcf6]
|
|
50
|
+
- Updated dependencies [13dcd89]
|
|
51
|
+
- Updated dependencies [63ff417]
|
|
52
|
+
- Updated dependencies [5d99cad]
|
|
53
|
+
- Updated dependencies [e0cdd9a]
|
|
54
|
+
- Updated dependencies [a747da6]
|
|
55
|
+
- Updated dependencies [1e01464]
|
|
56
|
+
- Updated dependencies [c69cb71]
|
|
57
|
+
- Updated dependencies [90d54b6]
|
|
58
|
+
- @scalar/openapi-types@0.4.1
|
|
59
|
+
- @scalar/oas-utils@0.5.1
|
|
60
|
+
- @scalar/themes@0.13.21
|
|
61
|
+
- @scalar/workspace-store@0.17.0
|
|
62
|
+
- @scalar/components@0.15.0
|
|
63
|
+
- @scalar/snippetz@0.5.0
|
|
64
|
+
- @scalar/types@0.3.1
|
|
65
|
+
- @scalar/openapi-parser@0.22.2
|
|
66
|
+
- @scalar/postman-to-openapi@0.3.39
|
|
67
|
+
- @scalar/use-codemirror@0.12.42
|
|
68
|
+
- @scalar/import@0.4.30
|
|
69
|
+
|
|
3
70
|
## 2.7.0
|
|
4
71
|
|
|
5
72
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -97,7 +97,7 @@ open()
|
|
|
97
97
|
/** Configuration options for the Scalar API client */
|
|
98
98
|
export type ClientConfiguration = {
|
|
99
99
|
/** The Swagger/OpenAPI document to render */
|
|
100
|
-
spec:
|
|
100
|
+
spec: SourceConfiguration
|
|
101
101
|
/** Pass in a proxy to the API client */
|
|
102
102
|
proxyUrl?: string
|
|
103
103
|
/** Pass in a theme API client */
|
|
@@ -91,7 +91,7 @@ export declare const PaletteComponents: {
|
|
|
91
91
|
deprecated?: boolean | undefined;
|
|
92
92
|
schema?: unknown;
|
|
93
93
|
content?: unknown;
|
|
94
|
-
style?: "matrix" | "
|
|
94
|
+
style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
95
95
|
explode?: boolean | undefined;
|
|
96
96
|
example?: unknown;
|
|
97
97
|
examples?: Record<string, {
|
|
@@ -121,7 +121,7 @@ export declare const PaletteComponents: {
|
|
|
121
121
|
type?: "request" | undefined;
|
|
122
122
|
uid?: string | undefined;
|
|
123
123
|
path?: string | undefined;
|
|
124
|
-
method?: "delete" | "get" | "
|
|
124
|
+
method?: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
|
|
125
125
|
servers?: string[] | undefined;
|
|
126
126
|
selectedServerUid?: string | null | undefined;
|
|
127
127
|
examples?: string[] | undefined;
|
|
@@ -159,7 +159,7 @@ export declare const PaletteComponents: {
|
|
|
159
159
|
deprecated?: boolean | undefined;
|
|
160
160
|
schema?: unknown;
|
|
161
161
|
content?: unknown;
|
|
162
|
-
style?: "matrix" | "
|
|
162
|
+
style?: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject" | undefined;
|
|
163
163
|
explode?: boolean | undefined;
|
|
164
164
|
example?: unknown;
|
|
165
165
|
examples?: Record<string, {
|
|
@@ -189,7 +189,7 @@ export declare const PaletteComponents: {
|
|
|
189
189
|
type?: "request" | undefined;
|
|
190
190
|
uid?: string | undefined;
|
|
191
191
|
path?: string | undefined;
|
|
192
|
-
method?: "delete" | "get" | "
|
|
192
|
+
method?: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace" | undefined;
|
|
193
193
|
servers?: string[] | undefined;
|
|
194
194
|
selectedServerUid?: string | null | undefined;
|
|
195
195
|
examples?: string[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableInputSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInputSelect.vue"],"names":[],"mappings":"AA4LA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC1B,CAAC;;;;;;uBAFoB,OAAO;;AA2Z/B,wBAQG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as
|
|
2
|
-
import { ScalarComboboxMultiselect as
|
|
1
|
+
import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as n, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as S, Fragment as C, renderList as U, normalizeClass as $ } from "vue";
|
|
2
|
+
import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as W } from "@scalar/components";
|
|
3
3
|
const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
|
|
4
4
|
__name: "DataTableInputSelect",
|
|
5
5
|
props: {
|
|
@@ -10,25 +10,25 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
10
10
|
type: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["update:modelValue"],
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
13
|
+
setup(z, { emit: B }) {
|
|
14
|
+
const u = z, c = B, p = m(() => u.value ?? []), d = V(!1), r = V(""), x = V(null);
|
|
15
15
|
_(r, (e) => {
|
|
16
16
|
c("update:modelValue", e);
|
|
17
17
|
});
|
|
18
18
|
const g = (e) => {
|
|
19
19
|
c("update:modelValue", e), d.value = !1;
|
|
20
|
-
},
|
|
20
|
+
}, j = () => {
|
|
21
21
|
r.value.trim() && g(r.value);
|
|
22
22
|
}, A = () => {
|
|
23
23
|
r.value.trim() || c("update:modelValue", ""), d.value = !1;
|
|
24
|
-
}, I = (e) =>
|
|
24
|
+
}, I = (e) => u.modelValue.toString() === e;
|
|
25
25
|
_(d, (e) => {
|
|
26
26
|
e && E(() => {
|
|
27
27
|
x.value?.focus();
|
|
28
28
|
});
|
|
29
29
|
});
|
|
30
|
-
const k = m(() =>
|
|
31
|
-
const e = new Set(
|
|
30
|
+
const k = m(() => u.modelValue !== void 0 ? u.modelValue : u.default), w = m(() => {
|
|
31
|
+
const e = new Set(u.modelValue.toString().split(", "));
|
|
32
32
|
return p.value.filter((l) => e.has(l)).map((l) => ({ id: l, label: l, value: l }));
|
|
33
33
|
}), N = m(
|
|
34
34
|
() => p.value.map((e) => ({ id: e, label: e, value: e }))
|
|
@@ -37,21 +37,21 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
37
37
|
c("update:modelValue", l.join(", "));
|
|
38
38
|
};
|
|
39
39
|
return (e, l) => (o(), f("div", q, [
|
|
40
|
-
e.type === "array" ? (o(), v(a(
|
|
40
|
+
e.type === "array" ? (o(), v(a(F), {
|
|
41
41
|
key: 0,
|
|
42
42
|
modelValue: w.value,
|
|
43
43
|
options: N.value,
|
|
44
44
|
"onUpdate:modelValue": O
|
|
45
45
|
}, {
|
|
46
46
|
default: s(() => [
|
|
47
|
-
|
|
47
|
+
n(a(b), {
|
|
48
48
|
class: "custom-scroll h-full justify-start gap-1.5 px-2 py-1.5 pr-6 font-normal outline-none",
|
|
49
49
|
fullWidth: "",
|
|
50
50
|
variant: "ghost"
|
|
51
51
|
}, {
|
|
52
52
|
default: s(() => [
|
|
53
53
|
i("span", G, y(w.value.length > 0 ? w.value.map((t) => t.label).join(", ") : "Select a value"), 1),
|
|
54
|
-
|
|
54
|
+
n(a(h), {
|
|
55
55
|
icon: "ChevronDown",
|
|
56
56
|
size: "md",
|
|
57
57
|
class: "min-w-4"
|
|
@@ -70,10 +70,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
70
70
|
placeholder: "Value",
|
|
71
71
|
type: "text",
|
|
72
72
|
onBlur: A,
|
|
73
|
-
onKeyup: M(
|
|
73
|
+
onKeyup: M(j, ["enter"])
|
|
74
74
|
}, null, 544)), [
|
|
75
75
|
[R, r.value]
|
|
76
|
-
]) : (o(), v(a(
|
|
76
|
+
]) : (o(), v(a(L), {
|
|
77
77
|
key: 2,
|
|
78
78
|
resize: "",
|
|
79
79
|
value: k.value
|
|
@@ -87,12 +87,12 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
87
87
|
}, {
|
|
88
88
|
default: s(() => [
|
|
89
89
|
i("div", {
|
|
90
|
-
class:
|
|
90
|
+
class: $([
|
|
91
91
|
"flex h-4 w-4 items-center justify-center rounded-full p-[3px]",
|
|
92
92
|
I(t) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
|
|
93
93
|
])
|
|
94
94
|
}, [
|
|
95
|
-
|
|
95
|
+
n(a(h), {
|
|
96
96
|
class: "size-2.5",
|
|
97
97
|
icon: "Checkmark",
|
|
98
98
|
thickness: "3"
|
|
@@ -103,14 +103,14 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
103
103
|
_: 2
|
|
104
104
|
}, 1032, ["value", "onClick"]))), 128)),
|
|
105
105
|
e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
|
|
106
|
-
p.value.length ? (o(), v(a(
|
|
107
|
-
|
|
106
|
+
p.value.length ? (o(), v(a(W), { key: 0 })) : S("", !0),
|
|
107
|
+
n(a(D), {
|
|
108
108
|
class: "flex items-center gap-1.5",
|
|
109
109
|
onClick: l[1] || (l[1] = (t) => d.value = !0)
|
|
110
110
|
}, {
|
|
111
111
|
default: s(() => [
|
|
112
112
|
i("div", P, [
|
|
113
|
-
|
|
113
|
+
n(a(h), {
|
|
114
114
|
icon: "Add",
|
|
115
115
|
size: "sm"
|
|
116
116
|
})
|
|
@@ -123,14 +123,13 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
|
|
|
123
123
|
], 64)) : S("", !0)
|
|
124
124
|
]),
|
|
125
125
|
default: s(() => [
|
|
126
|
-
|
|
127
|
-
class: "
|
|
128
|
-
fullWidth: "",
|
|
126
|
+
n(a(b), {
|
|
127
|
+
class: "size-full justify-start gap-1.5 overflow-auto px-2 py-1.5 font-normal whitespace-nowrap outline-none",
|
|
129
128
|
variant: "ghost"
|
|
130
129
|
}, {
|
|
131
130
|
default: s(() => [
|
|
132
131
|
i("span", H, y(k.value || "Select a value"), 1),
|
|
133
|
-
|
|
132
|
+
n(a(h), {
|
|
134
133
|
icon: "ChevronDown",
|
|
135
134
|
size: "md"
|
|
136
135
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA2eA,wBAKG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as
|
|
2
|
-
import { ScalarDropdown as
|
|
1
|
+
import { defineComponent as B, computed as E, watch as h, onMounted as D, createBlock as v, openBlock as s, unref as n, withCtx as r, createVNode as l, createElementVNode as d, toDisplayString as g, createElementBlock as L, createCommentVNode as M, Fragment as V, renderList as j, withModifiers as w, createTextVNode as _ } from "vue";
|
|
2
|
+
import { ScalarDropdown as W, ScalarButton as T, ScalarDropdownItem as p, ScalarListboxCheckbox as k, ScalarDropdownDivider as $, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useRouter as A } from "vue-router";
|
|
4
4
|
import { PathId as F } from "../../routes.js";
|
|
5
5
|
import { useActiveEntities as O } from "../../store/active-entities.js";
|
|
@@ -48,9 +48,9 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
48
48
|
(t) => t && f(t)
|
|
49
49
|
), D(() => {
|
|
50
50
|
o.value && f(o.value);
|
|
51
|
-
}), (t, e) => (s(), v(n(
|
|
51
|
+
}), (t, e) => (s(), v(n(W), { teleport: "" }, {
|
|
52
52
|
items: r(() => [
|
|
53
|
-
(s(!0), L(V, null,
|
|
53
|
+
(s(!0), L(V, null, j(u.value, (a) => (s(), v(n(p), {
|
|
54
54
|
key: a.uid,
|
|
55
55
|
class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
56
56
|
onClick: w((x) => m(a.uid), ["stop"])
|
|
@@ -98,7 +98,6 @@ const q = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
|
|
|
98
98
|
default: r(() => [
|
|
99
99
|
l(n(T), {
|
|
100
100
|
class: "text-c-1 hover:bg-b-2 line-clamp-1 h-auto w-fit justify-start px-1.5 py-1.5 font-normal",
|
|
101
|
-
fullWidth: "",
|
|
102
101
|
variant: "ghost"
|
|
103
102
|
}, {
|
|
104
103
|
default: r(() => [
|
|
@@ -4,9 +4,9 @@ type __VLS_Props = {
|
|
|
4
4
|
isEditable?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
-
change: (value: "delete" | "get" | "
|
|
7
|
+
change: (value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
|
|
8
8
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
-
onChange?: ((value: "delete" | "get" | "
|
|
9
|
+
onChange?: ((value: "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
|
|
10
10
|
}>, {
|
|
11
11
|
isEditable: boolean;
|
|
12
12
|
isSquare: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"WorkspaceSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/WorkspaceSelector.vue"],"names":[],"mappings":";AAseA,wBAKG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
1
|
+
import { defineComponent as S, ref as D, createElementBlock as x, openBlock as d, Fragment as w, createElementVNode as t, createVNode as s, unref as e, withCtx as o, toDisplayString as k, renderList as W, createBlock as z, withModifiers as v, normalizeClass as N, withDirectives as M, vModelText as B, createTextVNode as V } from "vue";
|
|
2
2
|
import { useModal as j, ScalarDropdown as E, ScalarButton as h, ScalarIcon as m, ScalarDropdownItem as _, ScalarDropdownDivider as T, ScalarModal as $ } from "@scalar/components";
|
|
3
3
|
import { useToasts as A } from "@scalar/use-toasts";
|
|
4
4
|
import { useRouter as I } from "vue-router";
|
|
@@ -7,11 +7,11 @@ import { useWorkspace as L } from "../../store/store.js";
|
|
|
7
7
|
const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-0 flex items-center gap-1 text-sm font-medium" }, U = { class: "line-clamp-1 w-[calc(100%-10px)] text-left text-xs" }, q = { class: "overflow-hidden text-ellipsis" }, G = { class: "flex h-4 w-4 items-center justify-center" }, ee = /* @__PURE__ */ S({
|
|
8
8
|
__name: "WorkspaceSelector",
|
|
9
9
|
setup(H) {
|
|
10
|
-
const { activeWorkspace: i } = F(), { workspaces: b, workspaceMutators: g } = L(), { push: u } = I(), c = j(), { toast: f } = A(), r =
|
|
11
|
-
|
|
10
|
+
const { activeWorkspace: i } = F(), { workspaces: b, workspaceMutators: g } = L(), { push: u } = I(), c = j(), { toast: f } = A(), r = D(""), C = (n) => {
|
|
11
|
+
n !== i.value?.uid && u({
|
|
12
12
|
name: "workspace",
|
|
13
13
|
params: {
|
|
14
|
-
workspace:
|
|
14
|
+
workspace: n
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
}, y = () => {
|
|
@@ -19,21 +19,21 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
19
19
|
f("Please enter a name before creating a workspace.", "error");
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const n = g.add({
|
|
23
23
|
name: r.value
|
|
24
24
|
});
|
|
25
|
-
f(`Created new workspace '${
|
|
25
|
+
f(`Created new workspace '${n.name}'`), u({
|
|
26
26
|
name: "workspace",
|
|
27
27
|
params: {
|
|
28
|
-
workspace:
|
|
28
|
+
workspace: n.uid
|
|
29
29
|
}
|
|
30
30
|
}), r.value = "", c.hide();
|
|
31
31
|
};
|
|
32
|
-
return (
|
|
32
|
+
return (n, a) => (d(), x(w, null, [
|
|
33
33
|
t("div", P, [
|
|
34
34
|
s(e(E), null, {
|
|
35
35
|
items: o(() => [
|
|
36
|
-
(d(!0), x(w, null,
|
|
36
|
+
(d(!0), x(w, null, W(e(b), (l, p) => (d(), z(e(_), {
|
|
37
37
|
key: p,
|
|
38
38
|
class: "group/item flex w-full items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
|
|
39
39
|
onClick: v((J) => C(p), ["stop"])
|
|
@@ -51,14 +51,14 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
51
51
|
thickness: "3"
|
|
52
52
|
})
|
|
53
53
|
], 2),
|
|
54
|
-
t("span", q, k(
|
|
54
|
+
t("span", q, k(l.name), 1)
|
|
55
55
|
]),
|
|
56
56
|
_: 2
|
|
57
57
|
}, 1032, ["onClick"]))), 128)),
|
|
58
58
|
s(e(T)),
|
|
59
59
|
s(e(_), {
|
|
60
60
|
class: "flex items-center gap-1.5",
|
|
61
|
-
onClick: a[0] || (a[0] = (
|
|
61
|
+
onClick: a[0] || (a[0] = (l) => e(c).show())
|
|
62
62
|
}, {
|
|
63
63
|
default: o(() => [
|
|
64
64
|
t("div", G, [
|
|
@@ -75,8 +75,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
75
75
|
]),
|
|
76
76
|
default: o(() => [
|
|
77
77
|
s(e(h), {
|
|
78
|
-
class: "
|
|
79
|
-
fullWidth: "",
|
|
78
|
+
class: "hover:bg-b-2 text-c-3 line-clamp-1 h-full w-fit justify-start px-1.5 py-1 font-normal",
|
|
80
79
|
variant: "ghost"
|
|
81
80
|
}, {
|
|
82
81
|
default: o(() => [
|
|
@@ -107,7 +106,7 @@ const P = { class: "flex w-[inherit] items-center text-base" }, R = { class: "m-
|
|
|
107
106
|
onSubmit: v(y, ["prevent"])
|
|
108
107
|
}, [
|
|
109
108
|
M(t("input", {
|
|
110
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
109
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => r.value = l),
|
|
111
110
|
class: "min-h-8 w-full flex-1 border-none p-1.5 text-sm outline-none",
|
|
112
111
|
placeholder: "New Workspace",
|
|
113
112
|
type: "text"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarButton.vue"],"names":[],"mappings":"AAkCA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;AAyEF,QAAA,IAAI,QAAQ,IAAW,CAAE;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB9C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -10,22 +10,12 @@ export declare const useClientConfig: () => Ref<{
|
|
|
10
10
|
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
11
11
|
persistAuth: boolean;
|
|
12
12
|
telemetry: boolean;
|
|
13
|
-
url?: string | undefined;
|
|
14
|
-
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
15
|
-
title?: string | undefined;
|
|
16
|
-
slug?: string | undefined;
|
|
17
|
-
spec?: {
|
|
18
|
-
url?: string | undefined;
|
|
19
|
-
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
20
|
-
title?: string | undefined;
|
|
21
|
-
slug?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
13
|
authentication?: any;
|
|
24
14
|
baseServerURL?: string | undefined;
|
|
25
15
|
proxyUrl?: string | undefined;
|
|
26
|
-
searchHotKey?: "
|
|
16
|
+
searchHotKey?: "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
27
17
|
servers?: any[] | undefined;
|
|
28
|
-
_integration?: "elysiajs" | "fastify" | "
|
|
18
|
+
_integration?: "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "go" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
29
19
|
onRequestSent?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodString], null>, import("zod").ZodVoid> | undefined;
|
|
30
20
|
plugins?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodObject<{
|
|
31
21
|
name: import("zod").ZodString;
|
|
@@ -44,21 +34,13 @@ export declare const useClientConfig: () => Ref<{
|
|
|
44
34
|
hooks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
45
35
|
onBeforeRequest: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
46
36
|
request: import("zod").ZodCustom<Request, Request>;
|
|
47
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
37
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
48
38
|
onResponseReceived: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
49
39
|
response: import("zod").ZodCustom<Response, Response>;
|
|
50
40
|
operation: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
51
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
41
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
52
42
|
}, import("zod/v4/core").$strip>>;
|
|
53
43
|
}, import("zod/v4/core").$strip>>[] | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
hideClientButton: boolean;
|
|
56
|
-
showSidebar: boolean;
|
|
57
|
-
showToolbar: "never" | "always" | "localhost";
|
|
58
|
-
operationTitleSource: "summary" | "path";
|
|
59
|
-
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
60
|
-
persistAuth: boolean;
|
|
61
|
-
telemetry: boolean;
|
|
62
44
|
url?: string | undefined;
|
|
63
45
|
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
64
46
|
title?: string | undefined;
|
|
@@ -66,15 +48,21 @@ export declare const useClientConfig: () => Ref<{
|
|
|
66
48
|
spec?: {
|
|
67
49
|
url?: string | undefined;
|
|
68
50
|
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
69
|
-
title?: string | undefined;
|
|
70
|
-
slug?: string | undefined;
|
|
71
51
|
} | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
hideClientButton: boolean;
|
|
54
|
+
showSidebar: boolean;
|
|
55
|
+
showToolbar: "never" | "always" | "localhost";
|
|
56
|
+
operationTitleSource: "summary" | "path";
|
|
57
|
+
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
58
|
+
persistAuth: boolean;
|
|
59
|
+
telemetry: boolean;
|
|
72
60
|
authentication?: any;
|
|
73
61
|
baseServerURL?: string | undefined;
|
|
74
62
|
proxyUrl?: string | undefined;
|
|
75
|
-
searchHotKey?: "
|
|
63
|
+
searchHotKey?: "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
76
64
|
servers?: any[] | undefined;
|
|
77
|
-
_integration?: "elysiajs" | "fastify" | "
|
|
65
|
+
_integration?: "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "go" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
78
66
|
onRequestSent?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodString], null>, import("zod").ZodVoid> | undefined;
|
|
79
67
|
plugins?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodObject<{
|
|
80
68
|
name: import("zod").ZodString;
|
|
@@ -93,21 +81,13 @@ export declare const useClientConfig: () => Ref<{
|
|
|
93
81
|
hooks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
94
82
|
onBeforeRequest: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
95
83
|
request: import("zod").ZodCustom<Request, Request>;
|
|
96
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
84
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
97
85
|
onResponseReceived: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
98
86
|
response: import("zod").ZodCustom<Response, Response>;
|
|
99
87
|
operation: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
100
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
88
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
101
89
|
}, import("zod/v4/core").$strip>>;
|
|
102
90
|
}, import("zod/v4/core").$strip>>[] | undefined;
|
|
103
|
-
} | {
|
|
104
|
-
hideClientButton: boolean;
|
|
105
|
-
showSidebar: boolean;
|
|
106
|
-
showToolbar: "never" | "always" | "localhost";
|
|
107
|
-
operationTitleSource: "summary" | "path";
|
|
108
|
-
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
109
|
-
persistAuth: boolean;
|
|
110
|
-
telemetry: boolean;
|
|
111
91
|
url?: string | undefined;
|
|
112
92
|
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
113
93
|
title?: string | undefined;
|
|
@@ -115,15 +95,21 @@ export declare const useClientConfig: () => Ref<{
|
|
|
115
95
|
spec?: {
|
|
116
96
|
url?: string | undefined;
|
|
117
97
|
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
118
|
-
title?: string | undefined;
|
|
119
|
-
slug?: string | undefined;
|
|
120
98
|
} | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
hideClientButton: boolean;
|
|
101
|
+
showSidebar: boolean;
|
|
102
|
+
showToolbar: "never" | "always" | "localhost";
|
|
103
|
+
operationTitleSource: "summary" | "path";
|
|
104
|
+
theme: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
|
|
105
|
+
persistAuth: boolean;
|
|
106
|
+
telemetry: boolean;
|
|
121
107
|
authentication?: any;
|
|
122
108
|
baseServerURL?: string | undefined;
|
|
123
109
|
proxyUrl?: string | undefined;
|
|
124
|
-
searchHotKey?: "
|
|
110
|
+
searchHotKey?: "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | undefined;
|
|
125
111
|
servers?: any[] | undefined;
|
|
126
|
-
_integration?: "elysiajs" | "fastify" | "
|
|
112
|
+
_integration?: "elysiajs" | "fastify" | "adonisjs" | "docusaurus" | "dotnet" | "express" | "fastapi" | "go" | "hono" | "html" | "laravel" | "litestar" | "nestjs" | "nextjs" | "nitro" | "nuxt" | "platformatic" | "react" | "rust" | "svelte" | "vue" | null | undefined;
|
|
127
113
|
onRequestSent?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [import("zod").ZodString], null>, import("zod").ZodVoid> | undefined;
|
|
128
114
|
plugins?: import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodObject<{
|
|
129
115
|
name: import("zod").ZodString;
|
|
@@ -142,12 +128,20 @@ export declare const useClientConfig: () => Ref<{
|
|
|
142
128
|
hooks: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
143
129
|
onBeforeRequest: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
144
130
|
request: import("zod").ZodCustom<Request, Request>;
|
|
145
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
131
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
146
132
|
onResponseReceived: import("zod").ZodOptional<import("zod").ZodFunction<import("zod").ZodTuple<readonly [import("zod").ZodObject<{
|
|
147
133
|
response: import("zod").ZodCustom<Response, Response>;
|
|
148
134
|
operation: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
149
|
-
}, import("zod/v4/core").$strip>], null>, import("zod")
|
|
135
|
+
}, import("zod/v4/core").$strip>], null>, import("zod/v4/core").$ZodFunctionOut>>;
|
|
150
136
|
}, import("zod/v4/core").$strip>>;
|
|
151
137
|
}, import("zod/v4/core").$strip>>[] | undefined;
|
|
138
|
+
url?: string | undefined;
|
|
139
|
+
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
140
|
+
title?: string | undefined;
|
|
141
|
+
slug?: string | undefined;
|
|
142
|
+
spec?: {
|
|
143
|
+
url?: string | undefined;
|
|
144
|
+
content?: string | Record<string, any> | import("zod/v4/core").$InferOuterFunctionType<import("zod").ZodTuple<readonly [], null>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>> | null | undefined;
|
|
145
|
+
} | undefined;
|
|
152
146
|
}>;
|
|
153
147
|
//# sourceMappingURL=useClientConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAgC,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
|
|
1
|
+
{"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,sBAAsB,EAAgC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyF,CAAA"}
|
|
@@ -2,18 +2,18 @@ import { extractFilename as f } from "../libs/extractAttachmentFilename.js";
|
|
|
2
2
|
import { computed as n, isRef as c } from "vue";
|
|
3
3
|
import v from "whatwg-mimetype";
|
|
4
4
|
function R(t) {
|
|
5
|
-
const i = (a) => a instanceof Blob, e = n(() => c(t.data) ? t.data.value : t.data), u = n(() => c(t.headers) ? t.headers.value : t.headers),
|
|
6
|
-
const a = u.value.find((
|
|
5
|
+
const i = (a) => a instanceof Blob, e = n(() => c(t.data) ? t.data.value : t.data), u = n(() => c(t.headers) ? t.headers.value : t.headers), o = n(() => {
|
|
6
|
+
const a = u.value.find((r) => r.name.toLowerCase() === "content-type")?.value ?? "";
|
|
7
7
|
return new v(a);
|
|
8
8
|
}), l = n(() => {
|
|
9
|
-
const a = u.value.find((
|
|
9
|
+
const a = u.value.find((r) => r.name.toLowerCase() === "content-disposition")?.value ?? "";
|
|
10
10
|
return f(a);
|
|
11
|
-
}), s = n(() => i(e.value) ? URL.createObjectURL(e.value) : typeof e.value == "string" ? URL.createObjectURL(new Blob([e.value], { type:
|
|
11
|
+
}), s = n(() => i(e.value) ? URL.createObjectURL(e.value) : typeof e.value == "string" ? URL.createObjectURL(new Blob([e.value], { type: o.value.toString() })) : e.value instanceof Object && Object.keys(e.value).length ? URL.createObjectURL(
|
|
12
12
|
new Blob([JSON.stringify(e.value)], {
|
|
13
|
-
type:
|
|
13
|
+
type: o.value.toString()
|
|
14
14
|
})
|
|
15
15
|
) : "");
|
|
16
|
-
return { mimeType:
|
|
16
|
+
return { mimeType: o, attachmentFilename: l, dataUrl: s };
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
19
|
R as useResponseBody
|