@scalar/api-client 2.18.0 → 2.18.3
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 +85 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +52 -52
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +15 -15
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts +0 -33
- package/dist/components/AddressBar/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/components/AddressBar/httpStatusCodeColors.js +0 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +112 -112
- package/dist/components/CommandPalette/CommandActionForm.vue.js +18 -18
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +25 -25
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +0 -1
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +14 -14
- package/dist/components/DataTable/DataTable.vue.js +17 -17
- package/dist/components/DataTable/DataTableCell.vue.js +9 -9
- package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
- package/dist/components/DataTable/DataTableInput.vue2.js +48 -48
- package/dist/components/DataTable/DataTableInputSelect.vue.js +35 -35
- package/dist/components/DataTable/DataTableText.vue.js +10 -10
- package/dist/components/Form/Form.vue.js +32 -32
- package/dist/components/Form/LabelInput.vue2.js +15 -15
- package/dist/components/HelpfulLink.vue.js +7 -7
- package/dist/components/HttpMethod/HttpMethod.vue2.js +22 -22
- package/dist/components/IconSelector.vue.js +16 -16
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +50 -50
- package/dist/components/ImportCollection/ImportNowButton.vue.js +23 -23
- package/dist/components/ImportCollection/PrefetchError.vue.js +8 -8
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +0 -7
- package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
- package/dist/components/ScalarAsciiArt.vue2.js +16 -16
- package/dist/components/SectionFilter.vue2.js +21 -21
- package/dist/components/SectionFilterButton.vue.js +7 -7
- package/dist/components/Server/ServerDropdown.vue.js +32 -32
- package/dist/components/Server/ServerDropdownItem.vue2.js +39 -39
- package/dist/components/Server/ServerSelector.vue.js +27 -27
- package/dist/components/Server/ServerVariablesForm.vue.js +26 -26
- package/dist/components/Server/ServerVariablesSelect.vue.js +21 -21
- package/dist/components/Server/ServerVariablesTextbox.vue.js +10 -10
- package/dist/components/Server/types.d.ts +2 -1
- package/dist/components/Server/types.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +18 -18
- package/dist/components/SideNav/SideNavRouterLink.vue.js +13 -13
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +11 -11
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +16 -16
- package/dist/components/Sidebar/Sidebar.vue2.js +28 -28
- package/dist/components/Sidebar/SidebarButton.vue.js +12 -12
- package/dist/components/Sidebar/SidebarListElement.vue2.js +34 -34
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +33 -33
- package/dist/components/TopNav/TopNavItem.vue2.js +41 -41
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +43 -43
- package/dist/data/httpHeaders.d.ts +2 -1
- package/dist/data/httpHeaders.d.ts.map +1 -1
- package/dist/hooks/useClientConfig.js +1 -1
- package/dist/hooks/useLayout.js +1 -1
- package/dist/hooks/useSidebar.js +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts +1 -1
- package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -1
- package/dist/plugins/hooks/usePluginManager.js +5 -5
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +5 -5
- package/dist/plugins/plugin-manager.d.ts +0 -2
- package/dist/plugins/plugin-manager.d.ts.map +1 -1
- package/dist/routes.d.ts +0 -10
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +0 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/store.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +44 -44
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +20 -20
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +14 -14
- package/dist/v2/blocks/operation-block/helpers/get-delimiter.js +0 -2
- package/dist/v2/blocks/operation-code-sample/components/HttpMethod.vue.js +12 -12
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +65 -65
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +2 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-example-from-schema.js +6 -6
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +4 -3
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.js +9 -7
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-body.js +40 -32
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts +1 -3
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +0 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +144 -149
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +25 -45
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +90 -139
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts +22 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue.js +77 -0
- package/dist/v2/blocks/request-block/components/RequestBodyForm.vue2.js +4 -0
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +34 -34
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +6 -6
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +30 -32
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +2 -2
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +64 -64
- package/dist/v2/blocks/request-block/components/RequestTableTooltip.vue2.js +29 -29
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +2 -2
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +12 -13
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts +8 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-form-body-rows.js +9 -0
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts +3 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-request-body-example.js +9 -8
- package/dist/v2/blocks/response-block/ResponseBlock.vue2.js +67 -67
- package/dist/v2/blocks/response-block/components/Headers.vue.js +35 -35
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyDownload.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseBodyPreview.vue2.js +24 -24
- package/dist/v2/blocks/response-block/components/ResponseBodyToggle.vue.js +10 -10
- package/dist/v2/blocks/response-block/components/ResponseCookies.vue.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseEmpty.vue2.js +14 -14
- package/dist/v2/blocks/response-block/components/ResponseLoadingOverlay.vue2.js +11 -11
- package/dist/v2/blocks/response-block/components/ResponseMetaInformation.vue.js +33 -33
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts +3 -6
- package/dist/v2/blocks/response-block/helpers/media-types.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/helpers/media-types.js +0 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +72 -72
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBarHistory.vue2.js +9 -9
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts +0 -33
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/httpStatusCodeColors.js +0 -1
- 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 +83 -82
- package/dist/v2/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +10 -10
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +121 -121
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesAddModal.vue2.js +13 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +33 -33
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +26 -26
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +130 -122
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +0 -21
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -3
- package/dist/v2/components/code-input/CodeInput.vue2.js +93 -93
- package/dist/v2/components/data-table/DataTable.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableCell.vue.js +9 -9
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +17 -17
- package/dist/v2/components/data-table/DataTableInput.vue2.js +48 -48
- package/dist/v2/components/data-table/DataTableInputSelect.vue.js +35 -35
- package/dist/v2/components/data-table/DataTableText.vue.js +10 -10
- package/dist/v2/components/forms/ConfirmationForm.vue.js +13 -13
- package/dist/v2/components/layout/CollapsibleSection.vue.js +42 -42
- package/dist/v2/components/modals/DeleteModal.vue.js +13 -13
- package/dist/v2/components/resize/Resize.vue2.js +11 -11
- package/dist/v2/components/server/ServerDropdown.vue.js +30 -30
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +27 -27
- package/dist/v2/components/sidebar/Sidebar.vue.js +32 -32
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +20 -20
- package/dist/v2/features/app/App.vue.js +25 -25
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +55 -61
- package/dist/v2/features/app/components/AppSidebar.vue2.js +97 -97
- package/dist/v2/features/app/components/CreateWorkspaceModal.vue.js +20 -20
- package/dist/v2/features/app/components/DesktopTab.vue2.js +59 -59
- package/dist/v2/features/app/components/DesktopTabs.vue.js +22 -22
- package/dist/v2/features/app/components/SidebarItemMenu.vue.js +6 -6
- package/dist/v2/features/app/components/WebTopNav.vue.js +9 -9
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -5
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +1 -2
- package/dist/v2/features/app/helpers/routes.d.ts +5 -1
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +31 -31
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +17 -17
- package/dist/v2/features/collection/components/Authentication.vue2.js +18 -18
- package/dist/v2/features/collection/components/Cookies.vue.js +10 -10
- package/dist/v2/features/collection/components/Environment.vue.js +10 -10
- package/dist/v2/features/collection/components/Form.vue.js +21 -21
- package/dist/v2/features/collection/components/Overview.vue2.js +25 -25
- package/dist/v2/features/collection/components/Servers.vue.js +37 -37
- package/dist/v2/features/collection/components/Settings.vue.js +22 -22
- package/dist/v2/features/collection/components/Tabs.vue.js +18 -18
- package/dist/v2/features/command-palette/components/CommandActionForm.vue.js +20 -20
- package/dist/v2/features/command-palette/components/CommandActionInput.vue.js +17 -17
- package/dist/v2/features/command-palette/components/TheCommandPalette.vue2.js +68 -68
- package/dist/v2/features/command-palette/components/WatchModeToggle.vue.js +11 -11
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-openapi-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts +2 -1
- package/dist/v2/features/command-palette/helpers/get-postman-document-details.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +3 -3
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.js +0 -1
- package/dist/v2/features/command-palette/types.d.ts +11 -10
- package/dist/v2/features/command-palette/types.d.ts.map +1 -1
- package/dist/v2/features/environments/EnvironmentsList.vue.js +36 -36
- package/dist/v2/features/environments/components/Environment.vue.js +16 -16
- package/dist/v2/features/environments/components/EnvironmentColors.vue.js +37 -37
- package/dist/v2/features/environments/components/EnvironmentCreateModal.vue.js +19 -19
- package/dist/v2/features/environments/components/EnvironmentDeleteModal.vue.js +14 -14
- package/dist/v2/features/environments/components/EnvironmentVariablesDropdown.vue.js +24 -24
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue2.js +58 -58
- package/dist/v2/features/global-cookies/components/CookiesTable.vue2.js +23 -23
- package/dist/v2/features/modal/Modal.vue.d.ts +1 -1
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +57 -56
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +5 -4
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +17 -21
- package/dist/v2/features/operation/Operation.vue.d.ts +5 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +41 -39
- package/dist/v2/features/search/components/SearchButton.vue.js +40 -40
- package/dist/v2/features/search/components/SearchModal.vue2.js +43 -43
- package/dist/v2/features/search/components/SearchResult.vue.js +34 -34
- package/dist/v2/features/search/types.d.ts +5 -4
- package/dist/v2/features/search/types.d.ts.map +1 -1
- package/dist/v2/features/settings/CollectionSettings.vue.js +51 -51
- package/dist/v2/features/settings/DocumentSettings.vue.js +25 -25
- package/dist/v2/features/settings/components/Appearance.vue.js +27 -27
- package/dist/v2/helpers/handle-hotkeys.d.ts +1 -12
- package/dist/v2/helpers/handle-hotkeys.d.ts.map +1 -1
- package/dist/v2/helpers/handle-hotkeys.js +0 -2
- package/dist/v2/helpers/plugins.d.ts +2 -2
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Collection/CollectionNavigation.vue.js +13 -13
- package/dist/views/Collection/components/EnvironmentForm.vue2.js +114 -114
- package/dist/views/Collection/components/MarkdownInput.vue2.js +31 -31
- package/dist/views/Cookies/CookieModal.vue2.js +26 -26
- package/dist/views/Environment/EnvironmentColorModal.vue.js +10 -10
- package/dist/views/Environment/EnvironmentColors.vue.js +56 -56
- package/dist/views/Environment/EnvironmentModal.vue.js +26 -26
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +24 -24
- package/dist/views/Request/Request.vue2.js +55 -55
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +17 -17
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +102 -102
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +27 -27
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +91 -91
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +36 -36
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +101 -101
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +154 -154
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +35 -35
- package/dist/views/Request/RequestSection/RequestParams.vue.js +81 -81
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +47 -47
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +90 -90
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +111 -111
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +29 -29
- package/dist/views/Request/RequestSection/index.d.ts +1 -1
- package/dist/views/Request/RequestSection/index.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/index.js +4 -4
- package/dist/views/Request/RequestSidebarItem.vue2.js +149 -149
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +79 -79
- package/dist/views/Request/RequestSubpageHeader.vue2.js +30 -30
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +29 -29
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +10 -10
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +16 -16
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +21 -21
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +30 -30
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +37 -37
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +61 -61
- package/package.json +24 -24
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts +0 -6
- package/dist/components/ImportCollection/OpenAppButton.vue.d.ts.map +0 -1
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts +0 -8
- package/dist/components/ImportCollection/OperationBadge.vue.d.ts.map +0 -1
- package/dist/components/ScreenReader.vue.d.ts +0 -20
- package/dist/components/ScreenReader.vue.d.ts.map +0 -1
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts +0 -9
- package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +0 -1
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts +0 -3
- package/dist/views/Components/RequestBodies/RequestBodies.vue.d.ts.map +0 -1
- package/dist/views/Request/RequestSection/types/post-response.d.ts +0 -7
- package/dist/views/Request/RequestSection/types/post-response.d.ts.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as K, computed as y, ref as Q, watch as L, createBlock as b, openBlock as f, withCtx as d, createVNode as
|
|
1
|
+
import { defineComponent as K, computed as y, ref as Q, watch as L, createBlock as b, openBlock as f, withCtx as d, createVNode as u, createCommentVNode as Z, unref as c, createElementVNode as h, toDisplayString as k, createElementBlock as V, Fragment as I, createTextVNode as M, nextTick as _ } from "vue";
|
|
2
2
|
import { ScalarListbox as W, ScalarButton as w, ScalarIcon as F } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as z } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { canMethodHaveBody as ee } from "@scalar/oas-utils/helpers";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import te from "../../../components/CodeInput/CodeInput.vue.js";
|
|
6
|
+
import ae from "../../../components/DataTable/DataTable.vue.js";
|
|
7
7
|
import ne from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
8
8
|
import R from "../../../components/DataTable/DataTableRow.vue.js";
|
|
9
9
|
import oe from "../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -26,14 +26,14 @@ const ie = {
|
|
|
26
26
|
workspace: {},
|
|
27
27
|
title: {}
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
29
|
+
setup(a) {
|
|
30
30
|
const { requestExampleMutators: i } = le(), $ = {
|
|
31
31
|
json: "json",
|
|
32
32
|
xml: "xml",
|
|
33
33
|
yaml: "yaml",
|
|
34
34
|
edn: "edn",
|
|
35
35
|
other: "html"
|
|
36
|
-
},
|
|
36
|
+
}, x = Object.entries({
|
|
37
37
|
multipartForm: "Multipart Form",
|
|
38
38
|
formUrlEncoded: "Form URL Encoded",
|
|
39
39
|
binaryFile: "Binary File",
|
|
@@ -43,78 +43,78 @@ const ie = {
|
|
|
43
43
|
edn: "EDN",
|
|
44
44
|
other: "Other",
|
|
45
45
|
none: "None"
|
|
46
|
-
}).map(([e,
|
|
46
|
+
}).map(([e, t]) => ({
|
|
47
47
|
id: e,
|
|
48
|
-
label:
|
|
48
|
+
label: t
|
|
49
49
|
})), B = y(() => {
|
|
50
|
-
const { activeBody: e, formData:
|
|
51
|
-
return e === "formData" ?
|
|
52
|
-
}),
|
|
53
|
-
get: () =>
|
|
50
|
+
const { activeBody: e, formData: t, raw: n } = a.example.body;
|
|
51
|
+
return e === "formData" ? t?.encoding === "urlencoded" ? "formUrlEncoded" : "multipartForm" : e === "binary" ? "binaryFile" : e === "raw" && n?.encoding ? n.encoding === "html" || n.encoding === "text" ? "other" : n.encoding : Object.keys(a.operation.requestBody?.content || {})[0] || "none";
|
|
52
|
+
}), s = y({
|
|
53
|
+
get: () => x.find(
|
|
54
54
|
(e) => e.id === B.value
|
|
55
|
-
) ??
|
|
55
|
+
) ?? x[x.length - 1] ?? x[0],
|
|
56
56
|
set: (e) => {
|
|
57
57
|
e?.id && N(e.id);
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
60
|
-
const e =
|
|
59
|
+
}), g = Q(null), H = y(() => {
|
|
60
|
+
const e = s.value?.id;
|
|
61
61
|
return $[e] ?? "plaintext";
|
|
62
62
|
}), C = (e) => {
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
63
|
+
const t = m.value;
|
|
64
|
+
if (t.length > e) {
|
|
65
|
+
const n = [...t];
|
|
66
|
+
n.splice(e, 1), i.edit(
|
|
67
|
+
a.example.uid,
|
|
68
68
|
"body.formData.value",
|
|
69
|
-
|
|
69
|
+
n
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
}, U = (e,
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
75
|
-
const
|
|
76
|
-
|
|
77
|
-
...
|
|
78
|
-
value:
|
|
79
|
-
key:
|
|
80
|
-
enabled:
|
|
81
|
-
[
|
|
82
|
-
}, (
|
|
83
|
-
|
|
72
|
+
}, U = (e, t, n) => {
|
|
73
|
+
const l = m.value;
|
|
74
|
+
if (l.length > e) {
|
|
75
|
+
const o = [...l];
|
|
76
|
+
o[e] = {
|
|
77
|
+
...o[e],
|
|
78
|
+
value: o[e]?.value || "",
|
|
79
|
+
key: o[e]?.key || "",
|
|
80
|
+
enabled: o[e]?.enabled ?? !1,
|
|
81
|
+
[t]: n || ""
|
|
82
|
+
}, (o[e]?.key !== "" || o[e]?.value !== "") && (o[e].enabled = !0), o[e]?.key === "" && o[e]?.value === "" && o.splice(e, 1), i.edit(
|
|
83
|
+
a.example.uid,
|
|
84
84
|
"body.formData.value",
|
|
85
|
-
|
|
85
|
+
o
|
|
86
86
|
);
|
|
87
87
|
} else {
|
|
88
|
-
const
|
|
89
|
-
i.edit(
|
|
90
|
-
if (!
|
|
88
|
+
const o = [z.parse({ [t]: n })];
|
|
89
|
+
i.edit(a.example.uid, "body.formData.value", o), _(() => {
|
|
90
|
+
if (!g.value)
|
|
91
91
|
return;
|
|
92
|
-
|
|
92
|
+
g.value.querySelectorAll("input")[t === "key" ? 0 : 1]?.focus();
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
e ===
|
|
96
|
-
}, m = y(() =>
|
|
95
|
+
e === l.length - 1 && j();
|
|
96
|
+
}, m = y(() => a.example.body.formData?.value ?? []), D = () => {
|
|
97
97
|
const e = m.value[m.value.length - 1];
|
|
98
98
|
(!e || e.key !== "" || e.value !== "") && j();
|
|
99
99
|
}, j = () => {
|
|
100
100
|
const e = z.parse({
|
|
101
101
|
enabled: !1
|
|
102
|
-
}),
|
|
103
|
-
|
|
104
|
-
value:
|
|
102
|
+
}), t = [...m.value, e];
|
|
103
|
+
a.example.body.formData ? i.edit(a.example.uid, "body.formData.value", t) : i.edit(a.example.uid, "body.formData", {
|
|
104
|
+
value: t,
|
|
105
105
|
encoding: "form-data"
|
|
106
106
|
});
|
|
107
|
-
}, E = (e,
|
|
108
|
-
const
|
|
109
|
-
if (
|
|
110
|
-
const
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
}, E = (e, t) => {
|
|
108
|
+
const n = m.value;
|
|
109
|
+
if (n.length > e) {
|
|
110
|
+
const l = [...n];
|
|
111
|
+
l[e] && (l[e].enabled = t), i.edit(
|
|
112
|
+
a.example.uid,
|
|
113
113
|
"body.formData.value",
|
|
114
|
-
|
|
114
|
+
l
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
|
-
}, P = (e) => i.edit(
|
|
117
|
+
}, P = (e) => i.edit(a.example.uid, "body.raw.value", e), O = (e) => {
|
|
118
118
|
if (e === "multipartForm")
|
|
119
119
|
return {
|
|
120
120
|
activeBody: "formData",
|
|
@@ -137,7 +137,7 @@ const ie = {
|
|
|
137
137
|
return {
|
|
138
138
|
activeBody: "raw",
|
|
139
139
|
encoding: "json",
|
|
140
|
-
header: Object.keys(
|
|
140
|
+
header: Object.keys(a.operation.requestBody?.content ?? {}).find((l) => l.includes("json") || l.endsWith("+json")) || "application/json"
|
|
141
141
|
};
|
|
142
142
|
if (e === "xml")
|
|
143
143
|
return {
|
|
@@ -158,62 +158,62 @@ const ie = {
|
|
|
158
158
|
header: "application/edn"
|
|
159
159
|
};
|
|
160
160
|
if (e === "other") {
|
|
161
|
-
const
|
|
161
|
+
const n = Object.keys(a.operation.requestBody?.content ?? {}).find((l) => l.startsWith("text/"));
|
|
162
162
|
return {
|
|
163
163
|
activeBody: "raw",
|
|
164
|
-
encoding:
|
|
165
|
-
header:
|
|
164
|
+
encoding: n ? "text" : "html",
|
|
165
|
+
header: n ?? "application/html"
|
|
166
166
|
};
|
|
167
167
|
}
|
|
168
168
|
return { activeBody: "raw", encoding: void 0, header: void 0 };
|
|
169
169
|
}, N = (e) => {
|
|
170
|
-
const { activeBody:
|
|
171
|
-
if (i.edit(
|
|
172
|
-
i.edit(
|
|
173
|
-
encoding:
|
|
174
|
-
value:
|
|
170
|
+
const { activeBody: t, encoding: n, header: l } = O(e);
|
|
171
|
+
if (i.edit(a.example.uid, "body.activeBody", t), n && t === "raw")
|
|
172
|
+
i.edit(a.example.uid, "body.raw", {
|
|
173
|
+
encoding: n,
|
|
174
|
+
value: a.example.body.raw?.value ?? ""
|
|
175
175
|
});
|
|
176
|
-
else if (
|
|
177
|
-
i.edit(
|
|
178
|
-
encoding:
|
|
179
|
-
value:
|
|
176
|
+
else if (n && t === "formData")
|
|
177
|
+
i.edit(a.example.uid, "body.formData", {
|
|
178
|
+
encoding: n,
|
|
179
|
+
value: a.example.body.formData?.value ?? []
|
|
180
180
|
});
|
|
181
|
-
else if (!
|
|
182
|
-
const { raw:
|
|
183
|
-
i.edit(
|
|
181
|
+
else if (!n && t !== "binary") {
|
|
182
|
+
const { raw: v, ...G } = a.example.body;
|
|
183
|
+
i.edit(a.example.uid, "body", G);
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
(
|
|
185
|
+
const o = [...a.example.parameters.headers], r = o.findIndex(
|
|
186
|
+
(v) => v.key.toLowerCase() === "content-type"
|
|
187
187
|
);
|
|
188
188
|
if (r >= 0)
|
|
189
|
-
|
|
190
|
-
else if (
|
|
191
|
-
const
|
|
192
|
-
|
|
189
|
+
l && o[r] ? o[r].value = l : o[r] && (t !== "raw" || e === "none") && o.splice(r, 1);
|
|
190
|
+
else if (l) {
|
|
191
|
+
const v = o[o.length - 1];
|
|
192
|
+
v && v.key === "" && v.value === "" ? o.splice(o.length - 1, 0, {
|
|
193
193
|
key: "Content-Type",
|
|
194
|
-
value:
|
|
194
|
+
value: l,
|
|
195
195
|
enabled: !0
|
|
196
|
-
}) :
|
|
196
|
+
}) : o.push({
|
|
197
197
|
key: "Content-Type",
|
|
198
|
-
value:
|
|
198
|
+
value: l,
|
|
199
199
|
enabled: !0
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
i.edit(
|
|
202
|
+
i.edit(a.example.uid, "parameters.headers", o);
|
|
203
203
|
}, S = (e) => {
|
|
204
|
-
const { open:
|
|
205
|
-
onChange: (
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
204
|
+
const { open: t } = A({
|
|
205
|
+
onChange: (n) => {
|
|
206
|
+
const l = n?.[0];
|
|
207
|
+
if (l) {
|
|
208
208
|
const r = [...m.value];
|
|
209
209
|
r[e] = {
|
|
210
210
|
...r[e],
|
|
211
|
-
file:
|
|
212
|
-
value: r[e]?.value ||
|
|
213
|
-
key: r[e]?.key ||
|
|
211
|
+
file: l,
|
|
212
|
+
value: r[e]?.value || l.name,
|
|
213
|
+
key: r[e]?.key || l.name,
|
|
214
214
|
enabled: !0
|
|
215
215
|
}, i.edit(
|
|
216
|
-
|
|
216
|
+
a.example.uid,
|
|
217
217
|
"body.formData.value",
|
|
218
218
|
r
|
|
219
219
|
), D();
|
|
@@ -222,17 +222,17 @@ const ie = {
|
|
|
222
222
|
multiple: !1,
|
|
223
223
|
accept: "*/*"
|
|
224
224
|
});
|
|
225
|
-
|
|
226
|
-
}, X = () => i.edit(
|
|
225
|
+
t();
|
|
226
|
+
}, X = () => i.edit(a.example.uid, "body.binary", void 0);
|
|
227
227
|
function q(e) {
|
|
228
|
-
const
|
|
229
|
-
|
|
228
|
+
const t = m.value, n = [...t], l = t[e], o = l?.file;
|
|
229
|
+
t.length > 1 && (!l?.key && !l?.value || o && l?.key === o.name && l?.value === o.name) ? n.splice(e, 1) : n[e] && (n[e].file = void 0), i.edit(a.example.uid, "body.formData.value", n);
|
|
230
230
|
}
|
|
231
231
|
function Y() {
|
|
232
232
|
const { open: e } = A({
|
|
233
|
-
onChange: (
|
|
234
|
-
const
|
|
235
|
-
|
|
233
|
+
onChange: (t) => {
|
|
234
|
+
const n = t?.[0];
|
|
235
|
+
n && i.edit(a.example.uid, "body.binary", n);
|
|
236
236
|
},
|
|
237
237
|
multiple: !1,
|
|
238
238
|
accept: "*/*"
|
|
@@ -240,78 +240,78 @@ const ie = {
|
|
|
240
240
|
e();
|
|
241
241
|
}
|
|
242
242
|
L(
|
|
243
|
-
|
|
243
|
+
s,
|
|
244
244
|
(e) => {
|
|
245
245
|
["multipartForm", "formUrlEncoded"].includes(e?.id || "") && D();
|
|
246
246
|
},
|
|
247
247
|
{ immediate: !0 }
|
|
248
248
|
), L(
|
|
249
|
-
() =>
|
|
249
|
+
() => a.example.uid,
|
|
250
250
|
() => {
|
|
251
|
-
|
|
251
|
+
a.operation.method && ee(a.operation.method) && N(B.value), ["multipartForm", "formUrlEncoded"].includes(
|
|
252
252
|
B.value
|
|
253
253
|
) && D();
|
|
254
254
|
},
|
|
255
255
|
{ immediate: !0 }
|
|
256
256
|
);
|
|
257
|
-
const
|
|
258
|
-
const e =
|
|
259
|
-
return Object.entries(
|
|
260
|
-
id:
|
|
261
|
-
label:
|
|
257
|
+
const p = y(() => {
|
|
258
|
+
const e = s.value?.id, { header: t } = O(e), n = a.operation.requestBody?.content || {}, l = t ? n[t]?.examples || {} : {};
|
|
259
|
+
return Object.entries(l).map(([o, r]) => ({
|
|
260
|
+
id: o,
|
|
261
|
+
label: o,
|
|
262
262
|
value: r
|
|
263
263
|
}));
|
|
264
264
|
}), T = y({
|
|
265
265
|
get: () => {
|
|
266
|
-
const e =
|
|
266
|
+
const e = a.example.body.raw?.value ?? "{}";
|
|
267
267
|
try {
|
|
268
|
-
const
|
|
269
|
-
return
|
|
270
|
-
const
|
|
271
|
-
return JSON.stringify(
|
|
272
|
-
}) ??
|
|
268
|
+
const t = JSON.parse(e);
|
|
269
|
+
return p.value.find((l) => {
|
|
270
|
+
const o = l.value;
|
|
271
|
+
return JSON.stringify(o.value) === JSON.stringify(t);
|
|
272
|
+
}) ?? p.value[0];
|
|
273
273
|
} catch {
|
|
274
|
-
return
|
|
274
|
+
return p.value[0];
|
|
275
275
|
}
|
|
276
276
|
},
|
|
277
277
|
set: (e) => {
|
|
278
278
|
if (e?.id) {
|
|
279
|
-
const
|
|
280
|
-
if (
|
|
281
|
-
const
|
|
282
|
-
P(JSON.stringify(
|
|
279
|
+
const t = p.value.find((n) => n.id === e.id);
|
|
280
|
+
if (t) {
|
|
281
|
+
const n = t.value;
|
|
282
|
+
P(JSON.stringify(n.value, null, 2));
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
|
-
return (e,
|
|
287
|
+
return (e, t) => (f(), b(oe, null, {
|
|
288
288
|
title: d(() => [
|
|
289
|
-
M(k(
|
|
289
|
+
M(k(a.title), 1)
|
|
290
290
|
]),
|
|
291
291
|
default: d(() => [
|
|
292
|
-
|
|
292
|
+
u(ae, {
|
|
293
293
|
columns: [""],
|
|
294
294
|
presentational: ""
|
|
295
295
|
}, {
|
|
296
296
|
default: d(() => [
|
|
297
|
-
|
|
297
|
+
u(R, null, {
|
|
298
298
|
default: d(() => [
|
|
299
|
-
|
|
299
|
+
u(ne, { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between !p-0" }, {
|
|
300
300
|
default: d(() => [
|
|
301
|
-
|
|
302
|
-
modelValue:
|
|
303
|
-
"onUpdate:modelValue":
|
|
304
|
-
options: c(
|
|
301
|
+
u(c(W), {
|
|
302
|
+
modelValue: s.value,
|
|
303
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => s.value = n),
|
|
304
|
+
options: c(x),
|
|
305
305
|
teleport: ""
|
|
306
306
|
}, {
|
|
307
307
|
default: d(() => [
|
|
308
|
-
|
|
308
|
+
u(c(w), {
|
|
309
309
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
|
|
310
310
|
variant: "ghost"
|
|
311
311
|
}, {
|
|
312
312
|
default: d(() => [
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
h("span", null, k(s.value?.label), 1),
|
|
314
|
+
u(c(F), {
|
|
315
315
|
icon: "ChevronDown",
|
|
316
316
|
size: "md"
|
|
317
317
|
})
|
|
@@ -321,23 +321,23 @@ const ie = {
|
|
|
321
321
|
]),
|
|
322
322
|
_: 1
|
|
323
323
|
}, 8, ["modelValue", "options"]),
|
|
324
|
-
|
|
324
|
+
p.value.length > 0 ? (f(), b(c(W), {
|
|
325
325
|
key: 0,
|
|
326
326
|
modelValue: T.value,
|
|
327
|
-
"onUpdate:modelValue":
|
|
328
|
-
options:
|
|
327
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => T.value = n),
|
|
328
|
+
options: p.value,
|
|
329
329
|
side: "left",
|
|
330
330
|
teleport: ""
|
|
331
331
|
}, {
|
|
332
332
|
default: d(() => [
|
|
333
|
-
|
|
333
|
+
u(c(w), {
|
|
334
334
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-2 font-normal",
|
|
335
335
|
fullWidth: "",
|
|
336
336
|
variant: "ghost"
|
|
337
337
|
}, {
|
|
338
338
|
default: d(() => [
|
|
339
|
-
|
|
340
|
-
|
|
339
|
+
h("span", null, k(T.value?.label), 1),
|
|
340
|
+
u(c(F), {
|
|
341
341
|
icon: "ChevronDown",
|
|
342
342
|
size: "md"
|
|
343
343
|
})
|
|
@@ -353,20 +353,20 @@ const ie = {
|
|
|
353
353
|
]),
|
|
354
354
|
_: 1
|
|
355
355
|
}),
|
|
356
|
-
|
|
356
|
+
u(R, null, {
|
|
357
357
|
default: d(() => [
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
])])) :
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
358
|
+
s.value?.id === "none" ? (f(), V("div", ie, [...t[2] || (t[2] = [
|
|
359
|
+
h("span", null, "No Body", -1)
|
|
360
|
+
])])) : s.value?.id === "binaryFile" ? (f(), V("div", re, [
|
|
361
|
+
a.example.body.binary ? (f(), V(I, { key: 0 }, [
|
|
362
|
+
h("span", de, k(a.example.body.binary.name), 1),
|
|
363
|
+
u(c(w), {
|
|
364
364
|
class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
|
|
365
365
|
size: "sm",
|
|
366
366
|
variant: "outlined",
|
|
367
367
|
onClick: X
|
|
368
368
|
}, {
|
|
369
|
-
default: d(() => [...
|
|
369
|
+
default: d(() => [...t[3] || (t[3] = [
|
|
370
370
|
M(" Delete ", -1)
|
|
371
371
|
])]),
|
|
372
372
|
_: 1
|
|
@@ -379,8 +379,8 @@ const ie = {
|
|
|
379
379
|
onClick: Y
|
|
380
380
|
}, {
|
|
381
381
|
default: d(() => [
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
t[4] || (t[4] = h("span", null, "Upload File", -1)),
|
|
383
|
+
u(c(F), {
|
|
384
384
|
class: "ml-1",
|
|
385
385
|
icon: "Upload",
|
|
386
386
|
size: "xs",
|
|
@@ -389,55 +389,55 @@ const ie = {
|
|
|
389
389
|
]),
|
|
390
390
|
_: 1
|
|
391
391
|
}))
|
|
392
|
-
])) :
|
|
392
|
+
])) : s.value?.id == "multipartForm" ? (f(), b(J, {
|
|
393
393
|
key: 2,
|
|
394
394
|
ref_key: "tableWrapperRef",
|
|
395
|
-
ref:
|
|
395
|
+
ref: g,
|
|
396
396
|
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
397
397
|
columns: ["32px", "", "", "104px"],
|
|
398
|
-
envVariables:
|
|
399
|
-
environment:
|
|
398
|
+
envVariables: a.envVariables,
|
|
399
|
+
environment: a.environment,
|
|
400
400
|
items: m.value,
|
|
401
401
|
showUploadButton: "",
|
|
402
|
-
workspace:
|
|
402
|
+
workspace: a.workspace,
|
|
403
403
|
onDeleteRow: C,
|
|
404
404
|
onRemoveFile: q,
|
|
405
405
|
onToggleRow: E,
|
|
406
406
|
onUpdateRow: U,
|
|
407
407
|
onUploadFile: S
|
|
408
|
-
}, null, 8, ["envVariables", "environment", "items", "workspace"])) :
|
|
408
|
+
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : s.value?.id == "formUrlEncoded" ? (f(), b(J, {
|
|
409
409
|
key: 3,
|
|
410
410
|
ref_key: "tableWrapperRef",
|
|
411
|
-
ref:
|
|
411
|
+
ref: g,
|
|
412
412
|
class: "!m-0 rounded-t-none border-t-0 border-r-0 border-b-0 border-l-0 shadow-none",
|
|
413
413
|
columns: ["32px", "", "", "104px"],
|
|
414
|
-
envVariables:
|
|
415
|
-
environment:
|
|
414
|
+
envVariables: a.envVariables,
|
|
415
|
+
environment: a.environment,
|
|
416
416
|
items: m.value,
|
|
417
417
|
showUploadButton: "",
|
|
418
|
-
workspace:
|
|
418
|
+
workspace: a.workspace,
|
|
419
419
|
onDeleteRow: C,
|
|
420
420
|
onRemoveFile: q,
|
|
421
421
|
onToggleRow: E,
|
|
422
422
|
onUpdateRow: U,
|
|
423
423
|
onUploadFile: S
|
|
424
|
-
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), b(
|
|
424
|
+
}, null, 8, ["envVariables", "environment", "items", "workspace"])) : (f(), b(te, {
|
|
425
425
|
key: 4,
|
|
426
426
|
class: "border-t px-3",
|
|
427
427
|
content: "",
|
|
428
|
-
envVariables:
|
|
429
|
-
environment:
|
|
428
|
+
envVariables: a.envVariables,
|
|
429
|
+
environment: a.environment,
|
|
430
430
|
language: H.value,
|
|
431
431
|
lineNumbers: "",
|
|
432
432
|
lint: "",
|
|
433
|
-
modelValue:
|
|
434
|
-
workspace:
|
|
433
|
+
modelValue: a.example.body?.raw?.value ?? "",
|
|
434
|
+
workspace: a.workspace,
|
|
435
435
|
"onUpdate:modelValue": P
|
|
436
436
|
}, null, 8, ["envVariables", "environment", "language", "modelValue", "workspace"]))
|
|
437
437
|
]),
|
|
438
438
|
_: 1
|
|
439
439
|
}),
|
|
440
|
-
|
|
440
|
+
u(R)
|
|
441
441
|
]),
|
|
442
442
|
_: 1
|
|
443
443
|
})
|