@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,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
3
|
-
import { canMethodHaveBody as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { matchesDomain as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { usePluginManager as
|
|
13
|
-
import { useWorkspace as
|
|
14
|
-
import { useLayout as
|
|
15
|
-
const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ee = ["for"], ae = ["id", "placeholder", "value"],
|
|
1
|
+
import { defineComponent as U, computed as v, useId as q, ref as D, watch as g, createBlock as d, openBlock as n, withCtx as f, createElementVNode as k, withDirectives as s, createCommentVNode as b, createElementBlock as h, createVNode as i, unref as l, vShow as m, Fragment as M, renderList as K, resolveDynamicComponent as L, toDisplayString as Q } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as S } from "@scalar/components";
|
|
3
|
+
import { canMethodHaveBody as p, isDefined as $, REGEX as C } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import j from "../../../components/SectionFilter.vue.js";
|
|
5
|
+
import F from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
6
|
+
import { matchesDomain as T } from "../../../libs/send-request/set-request-cookies.js";
|
|
7
|
+
import W from "./RequestBody.vue.js";
|
|
8
|
+
import x from "./RequestParams.vue.js";
|
|
9
|
+
import z from "./RequestPathParams.vue.js";
|
|
10
|
+
import G from "./RequestAuth/RequestAuth.vue.js";
|
|
11
|
+
import X from "./RequestCodeExample.vue.js";
|
|
12
|
+
import { usePluginManager as J } from "../../../plugins/hooks/usePluginManager.js";
|
|
13
|
+
import { useWorkspace as Y } from "../../../store/store.js";
|
|
14
|
+
import { useLayout as Z } from "../../../hooks/useLayout.js";
|
|
15
|
+
const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ee = ["for"], ae = ["id", "placeholder", "value"], te = {
|
|
16
16
|
key: 2,
|
|
17
17
|
class: "text-c-1 flex h-8 items-center"
|
|
18
|
-
}, le = ["id", "role"],
|
|
18
|
+
}, le = ["id", "role"], pe = /* @__PURE__ */ U({
|
|
19
19
|
__name: "RequestSection",
|
|
20
20
|
props: {
|
|
21
21
|
collection: {},
|
|
@@ -28,8 +28,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
28
28
|
server: {},
|
|
29
29
|
workspace: {}
|
|
30
30
|
},
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
31
|
+
setup(e) {
|
|
32
|
+
const R = [
|
|
33
33
|
"Auth",
|
|
34
34
|
"Path Parameters",
|
|
35
35
|
"Cookies",
|
|
@@ -37,80 +37,80 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
37
37
|
"Query",
|
|
38
38
|
"Body"
|
|
39
39
|
// 'Scripts',
|
|
40
|
-
], { requestMutators:
|
|
41
|
-
const
|
|
42
|
-
return
|
|
43
|
-
}),
|
|
40
|
+
], { requestMutators: w, cookies: O, securitySchemes: P } = Y(), { layout: u } = Z(), V = v(() => {
|
|
41
|
+
const t = /* @__PURE__ */ new Set(["All", ...R]);
|
|
42
|
+
return e.example.parameters.path.length || t.delete("Path Parameters"), p(e.operation.method ?? "get") || t.delete("Body"), y.value && t.delete("Auth"), [...t];
|
|
43
|
+
}), o = v(
|
|
44
44
|
() => Object.fromEntries(
|
|
45
|
-
|
|
45
|
+
V.value.map((t) => [t, q()])
|
|
46
46
|
)
|
|
47
|
-
),
|
|
48
|
-
() => u === "modal" && !
|
|
49
|
-
), a =
|
|
50
|
-
|
|
51
|
-
() =>
|
|
52
|
-
(
|
|
53
|
-
a.value === "Body" &&
|
|
47
|
+
), y = v(
|
|
48
|
+
() => u === "modal" && !e.operation.security && !Object.keys(P ?? {}).length
|
|
49
|
+
), a = D("All");
|
|
50
|
+
g(
|
|
51
|
+
() => e.operation,
|
|
52
|
+
(t) => {
|
|
53
|
+
a.value === "Body" && t && !p(t.method) && (a.value = "All");
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
() => (
|
|
61
|
-
(
|
|
62
|
-
).map((
|
|
63
|
-
key:
|
|
64
|
-
value:
|
|
56
|
+
const B = (t) => {
|
|
57
|
+
const r = t.target;
|
|
58
|
+
w.edit(e.operation.uid, "summary", r.value);
|
|
59
|
+
}, E = v(
|
|
60
|
+
() => (e.workspace.cookies ?? []).map((t) => O[t]).filter($).filter((t) => t.name).filter(
|
|
61
|
+
(t) => T(e.server?.url || e.operation.path, t.domain)
|
|
62
|
+
).map((t) => ({
|
|
63
|
+
key: t.name,
|
|
64
|
+
value: t.value,
|
|
65
65
|
route: {
|
|
66
66
|
name: "cookies",
|
|
67
67
|
params: {
|
|
68
|
-
cookies:
|
|
68
|
+
cookies: t.uid
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
enabled: !0
|
|
72
72
|
}))
|
|
73
|
-
),
|
|
74
|
-
return
|
|
75
|
-
() =>
|
|
76
|
-
(
|
|
77
|
-
|
|
73
|
+
), H = () => e.operation.summary ? e.operation.summary : e.operation.path.replace(C.PROTOCOL, "") ? e.operation.path.replace(C.PROTOCOL, "") : "Request Name", A = q(), N = J().getViewComponents("request.section"), I = (t, r) => w.edit(e.operation.uid, t, r);
|
|
74
|
+
return g(
|
|
75
|
+
() => y.value,
|
|
76
|
+
(t) => {
|
|
77
|
+
t && a.value === "Auth" && (a.value = "All");
|
|
78
78
|
}
|
|
79
|
-
), (
|
|
79
|
+
), (t, r) => (n(), d(F, {
|
|
80
80
|
"aria-label": `Request: ${e.operation.summary}`
|
|
81
81
|
}, {
|
|
82
|
-
title:
|
|
83
|
-
|
|
84
|
-
l(u) !== "modal" ? (
|
|
82
|
+
title: f(() => [
|
|
83
|
+
k("div", _, [
|
|
84
|
+
l(u) !== "modal" ? (n(), h("label", {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
87
|
-
for: l(
|
|
88
|
-
}, null, 8, ee)) :
|
|
89
|
-
l(u) !== "modal" ? (
|
|
87
|
+
for: l(A)
|
|
88
|
+
}, null, 8, ee)) : b("", !0),
|
|
89
|
+
l(u) !== "modal" ? (n(), h("input", {
|
|
90
90
|
key: 1,
|
|
91
|
-
id: l(
|
|
91
|
+
id: l(A),
|
|
92
92
|
class: "text-c-1 group-hover-input pointer-events-auto relative z-10 -ml-0.5 h-8 w-full rounded pl-1.25 has-[:focus-visible]:outline md:-ml-1.25",
|
|
93
|
-
placeholder:
|
|
93
|
+
placeholder: H(),
|
|
94
94
|
value: e.operation.summary,
|
|
95
|
-
onInput:
|
|
96
|
-
}, null, 40, ae)) : (
|
|
95
|
+
onInput: B
|
|
96
|
+
}, null, 40, ae)) : (n(), h("span", te, Q(e.operation.summary), 1))
|
|
97
97
|
]),
|
|
98
|
-
i(
|
|
98
|
+
i(j, {
|
|
99
99
|
modelValue: a.value,
|
|
100
|
-
"onUpdate:modelValue":
|
|
101
|
-
filterIds:
|
|
102
|
-
filters:
|
|
100
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => a.value = c),
|
|
101
|
+
filterIds: o.value,
|
|
102
|
+
filters: V.value
|
|
103
103
|
}, null, 8, ["modelValue", "filterIds", "filters"])
|
|
104
104
|
]),
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
-
id:
|
|
105
|
+
default: f(() => [
|
|
106
|
+
k("div", {
|
|
107
|
+
id: o.value.All,
|
|
108
108
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col",
|
|
109
109
|
role: a.value === "All" ? "tabpanel" : "none"
|
|
110
110
|
}, [
|
|
111
|
-
e.collection && e.workspace && (l(u) !== "modal" || Object.keys(l(
|
|
111
|
+
e.collection && e.workspace && (l(u) !== "modal" || Object.keys(l(P) ?? {}).length) ? s((n(), d(G, {
|
|
112
112
|
key: 0,
|
|
113
|
-
id:
|
|
113
|
+
id: o.value.Auth,
|
|
114
114
|
class: "request-section-content-auth",
|
|
115
115
|
collection: e.collection,
|
|
116
116
|
envVariables: e.envVariables,
|
|
@@ -126,11 +126,11 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
126
126
|
}, null, 8, ["id", "collection", "envVariables", "environment", "isReadOnly", "operation", "role", "selectedSecuritySchemeUids", "server", "workspace"])), [
|
|
127
127
|
[
|
|
128
128
|
m,
|
|
129
|
-
!
|
|
129
|
+
!y.value && (a.value === "All" || a.value === "Auth")
|
|
130
130
|
]
|
|
131
|
-
]) :
|
|
132
|
-
s(i(
|
|
133
|
-
id:
|
|
131
|
+
]) : b("", !0),
|
|
132
|
+
s(i(z, {
|
|
133
|
+
id: o.value["Path Parameters"],
|
|
134
134
|
class: "request-section-content-path-params",
|
|
135
135
|
envVariables: e.envVariables,
|
|
136
136
|
environment: e.environment,
|
|
@@ -147,8 +147,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
147
147
|
(a.value === "All" || a.value === "Path Parameters") && e.example.parameters.path.length
|
|
148
148
|
]
|
|
149
149
|
]),
|
|
150
|
-
s(i(
|
|
151
|
-
id:
|
|
150
|
+
s(i(x, {
|
|
151
|
+
id: o.value.Cookies,
|
|
152
152
|
class: "request-section-content-cookies",
|
|
153
153
|
envVariables: e.envVariables,
|
|
154
154
|
environment: e.environment,
|
|
@@ -157,15 +157,15 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
157
157
|
label: "Cookie",
|
|
158
158
|
operation: e.operation,
|
|
159
159
|
paramKey: "cookies",
|
|
160
|
-
readOnlyEntries:
|
|
160
|
+
readOnlyEntries: E.value,
|
|
161
161
|
role: a.value === "All" ? "none" : "tabpanel",
|
|
162
162
|
title: "Cookies",
|
|
163
163
|
workspace: e.workspace
|
|
164
164
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "readOnlyEntries", "role", "workspace"]), [
|
|
165
165
|
[m, a.value === "All" || a.value === "Cookies"]
|
|
166
166
|
]),
|
|
167
|
-
s(i(
|
|
168
|
-
id:
|
|
167
|
+
s(i(x, {
|
|
168
|
+
id: o.value.Headers,
|
|
169
169
|
class: "request-section-content-headers",
|
|
170
170
|
envVariables: e.envVariables,
|
|
171
171
|
environment: e.environment,
|
|
@@ -180,8 +180,8 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
180
180
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
181
181
|
[m, a.value === "All" || a.value === "Headers"]
|
|
182
182
|
]),
|
|
183
|
-
s(i(
|
|
184
|
-
id:
|
|
183
|
+
s(i(x, {
|
|
184
|
+
id: o.value.Query,
|
|
185
185
|
class: "request-section-content-query",
|
|
186
186
|
envVariables: e.envVariables,
|
|
187
187
|
environment: e.environment,
|
|
@@ -196,9 +196,9 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
196
196
|
}, null, 8, ["id", "envVariables", "environment", "example", "invalidParams", "operation", "role", "workspace"]), [
|
|
197
197
|
[m, a.value === "All" || a.value === "Query"]
|
|
198
198
|
]),
|
|
199
|
-
e.operation.method && (a.value === "All" || a.value === "Body") && l(
|
|
199
|
+
e.operation.method && (a.value === "All" || a.value === "Body") && l(p)(e.operation.method) ? (n(), d(W, {
|
|
200
200
|
key: 1,
|
|
201
|
-
id:
|
|
201
|
+
id: o.value.Body,
|
|
202
202
|
class: "request-section-content-body",
|
|
203
203
|
envVariables: e.envVariables,
|
|
204
204
|
environment: e.environment,
|
|
@@ -207,24 +207,24 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
207
207
|
role: a.value === "All" ? "none" : "tabpanel",
|
|
208
208
|
title: "Body",
|
|
209
209
|
workspace: e.workspace
|
|
210
|
-
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) :
|
|
211
|
-
(
|
|
212
|
-
key:
|
|
210
|
+
}, null, 8, ["id", "envVariables", "environment", "example", "operation", "role", "workspace"])) : b("", !0),
|
|
211
|
+
(n(!0), h(M, null, K(l(N), (c) => (n(), d(l(S), {
|
|
212
|
+
key: c.component
|
|
213
213
|
}, {
|
|
214
|
-
default:
|
|
215
|
-
s((
|
|
214
|
+
default: f(() => [
|
|
215
|
+
s((n(), d(L(c.component), {
|
|
216
216
|
operation: e.operation,
|
|
217
|
-
"onUpdate:operation":
|
|
217
|
+
"onUpdate:operation": I
|
|
218
218
|
}, null, 40, ["operation"])), [
|
|
219
|
-
[m, a.value === "All" || a.value ===
|
|
219
|
+
[m, a.value === "All" || a.value === c.title]
|
|
220
220
|
])
|
|
221
221
|
]),
|
|
222
222
|
_: 2
|
|
223
223
|
}, 1024))), 128)),
|
|
224
|
-
|
|
225
|
-
i(l(
|
|
226
|
-
default:
|
|
227
|
-
i(
|
|
224
|
+
r[1] || (r[1] = k("div", { class: "flex flex-grow" }, null, -1)),
|
|
225
|
+
i(l(S), null, {
|
|
226
|
+
default: f(() => [
|
|
227
|
+
i(X, {
|
|
228
228
|
class: "request-section-content-code-example -mt-1/2 border-t",
|
|
229
229
|
collection: e.collection,
|
|
230
230
|
environment: e.envVariables,
|
|
@@ -243,5 +243,5 @@ const _ = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
export {
|
|
246
|
-
|
|
246
|
+
pe as default
|
|
247
247
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarTooltip as
|
|
3
|
-
import { ScalarIconTrash as
|
|
4
|
-
import { RouterLink as
|
|
1
|
+
import { defineComponent as z, createBlock as c, openBlock as d, withCtx as t, createVNode as n, createElementBlock as f, createTextVNode as v, toDisplayString as p, Fragment as g, renderList as q, normalizeClass as k, unref as u, createCommentVNode as y, createElementVNode as m } from "vue";
|
|
2
|
+
import { ScalarTooltip as D, ScalarIcon as B, ScalarButton as R } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
|
+
import { RouterLink as G } from "vue-router";
|
|
5
5
|
import C from "../../../components/CodeInput/CodeInput.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import N from "../../../components/DataTable/DataTable.vue.js";
|
|
7
|
+
import V from "../../../components/DataTable/DataTableCell.vue.js";
|
|
8
|
+
import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
|
|
9
|
+
import h from "../../../components/DataTable/DataTableHeader.vue.js";
|
|
10
10
|
import $ from "../../../components/DataTable/DataTableRow.vue.js";
|
|
11
|
-
import { parameterIsInvalid as
|
|
12
|
-
import
|
|
13
|
-
const
|
|
11
|
+
import { parameterIsInvalid as j, hasItemProperties as w } from "../libs/request.js";
|
|
12
|
+
import K from "./RequestTableTooltip.vue.js";
|
|
13
|
+
const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, A = ["onClick"], L = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "p-0.5"
|
|
16
|
-
}, oe = /* @__PURE__ */
|
|
16
|
+
}, oe = /* @__PURE__ */ z({
|
|
17
17
|
__name: "RequestTable",
|
|
18
18
|
props: {
|
|
19
19
|
items: {},
|
|
@@ -28,62 +28,62 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
28
28
|
label: {}
|
|
29
29
|
},
|
|
30
30
|
emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
}, S = (
|
|
35
|
-
|
|
36
|
-
}, T = (
|
|
37
|
-
return (
|
|
31
|
+
setup(l, { emit: F }) {
|
|
32
|
+
const b = l, s = F, U = ["", "", "36px"], x = (r, o, e) => {
|
|
33
|
+
s("updateRow", r, o, e);
|
|
34
|
+
}, S = (r) => {
|
|
35
|
+
s("uploadFile", r);
|
|
36
|
+
}, T = (r) => Array.isArray(r.default) && r.default.length === 1 ? r.default[0] : r.default, I = (r) => !!(r.key || r.value);
|
|
37
|
+
return (r, o) => (d(), c(N, {
|
|
38
38
|
class: "group/table flex-1",
|
|
39
39
|
columns: U
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
43
|
-
default:
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
|
|
41
|
+
default: t(() => [
|
|
42
|
+
n($, { class: "sr-only !block" }, {
|
|
43
|
+
default: t(() => [
|
|
44
|
+
n(h, null, {
|
|
45
|
+
default: t(() => [
|
|
46
|
+
v(p(l.label) + " Enabled", 1)
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
49
49
|
}),
|
|
50
|
-
|
|
51
|
-
default:
|
|
52
|
-
|
|
50
|
+
n(h, null, {
|
|
51
|
+
default: t(() => [
|
|
52
|
+
v(p(l.label) + " Key", 1)
|
|
53
53
|
]),
|
|
54
54
|
_: 1
|
|
55
55
|
}),
|
|
56
|
-
|
|
57
|
-
default:
|
|
58
|
-
|
|
56
|
+
n(h, null, {
|
|
57
|
+
default: t(() => [
|
|
58
|
+
v(p(l.label) + " Value", 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
61
|
})
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}),
|
|
65
|
-
(
|
|
66
|
-
id:
|
|
67
|
-
key:
|
|
68
|
-
class:
|
|
69
|
-
alert:
|
|
70
|
-
error:
|
|
65
|
+
(d(!0), f(g, null, q(l.items, (e, i) => (d(), c($, {
|
|
66
|
+
id: e.key,
|
|
67
|
+
key: i,
|
|
68
|
+
class: k({
|
|
69
|
+
alert: u(j)(e).value,
|
|
70
|
+
error: l.invalidParams && l.invalidParams.has(e.key)
|
|
71
71
|
})
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
|
|
73
|
+
default: t(() => [
|
|
74
|
+
l.isGlobal ? (d(), c(u(G), {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: "text-c-2 flex items-center justify-center border-t !border-r",
|
|
77
|
-
to:
|
|
77
|
+
to: e.route ?? {}
|
|
78
78
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
o[4] || (o[4] =
|
|
81
|
-
|
|
79
|
+
default: t(() => [
|
|
80
|
+
o[4] || (o[4] = m("span", { class: "sr-only" }, "Global", -1)),
|
|
81
|
+
n(u(D), {
|
|
82
82
|
content: "Global cookies are shared across the whole workspace.",
|
|
83
83
|
placement: "top"
|
|
84
84
|
}, {
|
|
85
|
-
default:
|
|
86
|
-
|
|
85
|
+
default: t(() => [
|
|
86
|
+
n(u(B), {
|
|
87
87
|
tabindex: "0",
|
|
88
88
|
class: "text-c-1",
|
|
89
89
|
icon: "Globe",
|
|
@@ -94,114 +94,114 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
94
94
|
})
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
|
-
}, 8, ["to"])) : (
|
|
97
|
+
}, 8, ["to"])) : (d(), c(P, {
|
|
98
98
|
key: 1,
|
|
99
99
|
class: "!border-r",
|
|
100
|
-
disabled:
|
|
101
|
-
modelValue:
|
|
102
|
-
"onUpdate:modelValue": (a) =>
|
|
100
|
+
disabled: b.hasCheckboxDisabled,
|
|
101
|
+
modelValue: e.enabled,
|
|
102
|
+
"onUpdate:modelValue": (a) => s("toggleRow", i, a)
|
|
103
103
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
|
|
104
|
-
|
|
105
|
-
default:
|
|
106
|
-
|
|
107
|
-
"aria-label": `${
|
|
104
|
+
n(V, null, {
|
|
105
|
+
default: t(() => [
|
|
106
|
+
n(C, {
|
|
107
|
+
"aria-label": `${l.label} Key`,
|
|
108
108
|
disableCloseBrackets: "",
|
|
109
|
-
disabled:
|
|
109
|
+
disabled: b.isReadOnly,
|
|
110
110
|
disableEnter: "",
|
|
111
111
|
disableTabIndent: "",
|
|
112
112
|
lineWrapping: "",
|
|
113
|
-
envVariables:
|
|
114
|
-
environment:
|
|
115
|
-
modelValue:
|
|
113
|
+
envVariables: l.envVariables,
|
|
114
|
+
environment: l.environment,
|
|
115
|
+
modelValue: e.key,
|
|
116
116
|
placeholder: "Key",
|
|
117
|
-
required: !!
|
|
118
|
-
workspace:
|
|
119
|
-
onBlur: o[0] || (o[0] = (a) =>
|
|
120
|
-
onFocus: o[1] || (o[1] = (a) =>
|
|
121
|
-
onSelectVariable: (a) =>
|
|
122
|
-
"onUpdate:modelValue": (a) =>
|
|
117
|
+
required: !!e.required,
|
|
118
|
+
workspace: l.workspace,
|
|
119
|
+
onBlur: o[0] || (o[0] = (a) => s("inputBlur")),
|
|
120
|
+
onFocus: o[1] || (o[1] = (a) => s("inputFocus")),
|
|
121
|
+
onSelectVariable: (a) => x(i, "key", a),
|
|
122
|
+
"onUpdate:modelValue": (a) => s("updateRow", i, "key", a)
|
|
123
123
|
}, null, 8, ["aria-label", "disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
124
124
|
]),
|
|
125
125
|
_: 2
|
|
126
126
|
}, 1024),
|
|
127
|
-
|
|
128
|
-
default:
|
|
129
|
-
|
|
130
|
-
"aria-label": `${
|
|
131
|
-
class:
|
|
132
|
-
|
|
127
|
+
n(V, null, {
|
|
128
|
+
default: t(() => [
|
|
129
|
+
n(C, {
|
|
130
|
+
"aria-label": `${l.label} Value`,
|
|
131
|
+
class: k(
|
|
132
|
+
u(w)(e) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
|
|
133
133
|
),
|
|
134
|
-
default:
|
|
134
|
+
default: e.default,
|
|
135
135
|
disableCloseBrackets: "",
|
|
136
|
-
disabled:
|
|
136
|
+
disabled: b.isReadOnly,
|
|
137
137
|
disableEnter: "",
|
|
138
138
|
disableTabIndent: "",
|
|
139
139
|
lineWrapping: "",
|
|
140
|
-
enum:
|
|
141
|
-
envVariables:
|
|
142
|
-
environment:
|
|
143
|
-
examples:
|
|
144
|
-
max:
|
|
145
|
-
min:
|
|
146
|
-
modelValue:
|
|
147
|
-
nullable: !!
|
|
140
|
+
enum: e.enum ?? [],
|
|
141
|
+
envVariables: l.envVariables,
|
|
142
|
+
environment: l.environment,
|
|
143
|
+
examples: e.examples ?? [],
|
|
144
|
+
max: e.maximum,
|
|
145
|
+
min: e.minimum,
|
|
146
|
+
modelValue: e.value,
|
|
147
|
+
nullable: !!e.nullable,
|
|
148
148
|
placeholder: "Value",
|
|
149
|
-
type:
|
|
150
|
-
workspace:
|
|
151
|
-
onBlur: o[2] || (o[2] = (a) =>
|
|
152
|
-
onFocus: o[3] || (o[3] = (a) =>
|
|
153
|
-
onSelectVariable: (a) =>
|
|
154
|
-
"onUpdate:modelValue": (a) =>
|
|
149
|
+
type: e.type,
|
|
150
|
+
workspace: l.workspace,
|
|
151
|
+
onBlur: o[2] || (o[2] = (a) => s("inputBlur")),
|
|
152
|
+
onFocus: o[3] || (o[3] = (a) => s("inputFocus")),
|
|
153
|
+
onSelectVariable: (a) => x(i, "value", a),
|
|
154
|
+
"onUpdate:modelValue": (a) => s("updateRow", i, "value", a)
|
|
155
155
|
}, {
|
|
156
|
-
icon:
|
|
157
|
-
I(
|
|
156
|
+
icon: t(() => [
|
|
157
|
+
I(e) && !e.required ? (d(), c(u(R), {
|
|
158
158
|
key: 0,
|
|
159
|
-
class:
|
|
160
|
-
"-mr-0.5":
|
|
159
|
+
class: k([{
|
|
160
|
+
"-mr-0.5": u(w)(e)
|
|
161
161
|
}, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
|
|
162
162
|
size: "sm",
|
|
163
163
|
variant: "ghost",
|
|
164
|
-
onClick: (a) =>
|
|
164
|
+
onClick: (a) => s("deleteRow", i)
|
|
165
165
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
166
|
+
default: t(() => [
|
|
167
|
+
n(u(E), { class: "size-3.5" })
|
|
168
168
|
]),
|
|
169
169
|
_: 1
|
|
170
|
-
}, 8, ["class", "onClick"])) :
|
|
171
|
-
|
|
170
|
+
}, 8, ["class", "onClick"])) : y("", !0),
|
|
171
|
+
u(w)(e) ? (d(), c(K, {
|
|
172
172
|
key: 1,
|
|
173
|
-
item: { ...
|
|
174
|
-
}, null, 8, ["item"])) :
|
|
173
|
+
item: { ...e, default: T(e) }
|
|
174
|
+
}, null, 8, ["item"])) : y("", !0)
|
|
175
175
|
]),
|
|
176
176
|
_: 2
|
|
177
177
|
}, 1032, ["aria-label", "class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
|
|
178
178
|
]),
|
|
179
179
|
_: 2
|
|
180
180
|
}, 1024),
|
|
181
|
-
|
|
181
|
+
l.showUploadButton ? (d(), c(V, {
|
|
182
182
|
key: 2,
|
|
183
183
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
184
184
|
}, {
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
default: t(() => [
|
|
186
|
+
e.file ? (d(), f(g, { key: 0 }, [
|
|
187
|
+
m("div", O, [
|
|
188
|
+
m("span", null, p(e.file?.name), 1)
|
|
189
189
|
]),
|
|
190
|
-
|
|
190
|
+
m("button", {
|
|
191
191
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
192
192
|
type: "button",
|
|
193
|
-
onClick: (a) =>
|
|
194
|
-
}, " Delete ", 8,
|
|
195
|
-
], 64)) : (
|
|
196
|
-
|
|
193
|
+
onClick: (a) => s("removeFile", i)
|
|
194
|
+
}, " Delete ", 8, A)
|
|
195
|
+
], 64)) : (d(), f("div", L, [
|
|
196
|
+
n(u(R), {
|
|
197
197
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
198
198
|
size: "sm",
|
|
199
199
|
variant: "outlined",
|
|
200
|
-
onClick: (a) => S(
|
|
200
|
+
onClick: (a) => S(i)
|
|
201
201
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
o[5] || (o[5] =
|
|
204
|
-
|
|
202
|
+
default: t(() => [
|
|
203
|
+
o[5] || (o[5] = m("span", null, "Upload File", -1)),
|
|
204
|
+
n(u(B), {
|
|
205
205
|
class: "ml-1",
|
|
206
206
|
icon: "Upload",
|
|
207
207
|
size: "xs",
|
|
@@ -213,7 +213,7 @@ const K = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
|
|
|
213
213
|
]))
|
|
214
214
|
]),
|
|
215
215
|
_: 2
|
|
216
|
-
}, 1024)) :
|
|
216
|
+
}, 1024)) : y("", !0)
|
|
217
217
|
]),
|
|
218
218
|
_: 2
|
|
219
219
|
}, 1032, ["id", "class"]))), 128))
|