@scalar/api-client 2.1.18 → 2.1.20
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 +41 -0
- package/dist/components/AddressBar/AddressBar.vue.d.ts +5 -1
- package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBar.vue.js +2 -2
- package/dist/components/AddressBar/AddressBar.vue2.js +70 -69
- package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
- package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
- package/dist/components/AddressBar/AddressBarServer.vue.js +29 -29
- package/dist/components/CodeInput/CodeInput.vue.d.ts +6 -2
- package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
- package/dist/components/CodeInput/CodeInput.vue.js +2 -2
- package/dist/components/CodeInput/CodeInput.vue2.js +57 -49
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +62 -45
- package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts +1 -1
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +13 -7
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +87 -89
- package/dist/components/ContextBar.vue.d.ts.map +1 -1
- package/dist/components/ContextBar.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts +19 -3
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +27 -14
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +29 -32
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +39 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue.js +7 -0
- package/dist/components/ImportCurl/ImportCurlModal.vue2.js +88 -0
- package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNav.vue.js +1 -1
- package/dist/components/SideNav/SideNav.vue2.js +37 -26
- package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -2
- package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
- package/dist/components/SideNav/SideNavLink.vue.js +10 -11
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +1 -1
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts +24 -3
- package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +26 -22
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +4 -0
- package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +35 -32
- package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
- package/dist/components/TopNav/TopNav.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue2.js +41 -40
- package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +11 -11
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/hooks/useDarkModeState.d.ts +4 -3
- package/dist/hooks/useDarkModeState.d.ts.map +1 -1
- package/dist/hooks/useDarkModeState.js +36 -21
- package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +40 -44
- package/dist/layouts/App/create-api-client-app.d.ts +46 -36
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
- package/dist/layouts/Modal/ApiClientModal.vue2.js +17 -17
- package/dist/layouts/Modal/create-api-client-modal.d.ts +92 -72
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +30 -34
- package/dist/layouts/Web/create-api-client-web.d.ts +46 -36
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +46 -36
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/event-bus.d.ts +41 -0
- package/dist/libs/event-bus.d.ts.map +1 -0
- package/dist/libs/event-bus.js +32 -0
- package/dist/libs/{event-busses/hot-keys-bus.d.ts → hot-keys.d.ts} +6 -7
- package/dist/libs/hot-keys.d.ts.map +1 -0
- package/dist/libs/hot-keys.js +45 -0
- package/dist/libs/importers/curl.d.ts +3 -0
- package/dist/libs/importers/curl.d.ts.map +1 -0
- package/dist/libs/importers/curl.js +61 -0
- package/dist/libs/importers/index.d.ts +2 -0
- package/dist/libs/importers/index.d.ts.map +1 -0
- package/dist/libs/importers/index.js +4 -0
- package/dist/libs/index.d.ts +4 -1
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +31 -31
- package/dist/libs/parse-curl.d.ts +12 -0
- package/dist/libs/parse-curl.d.ts.map +1 -0
- package/dist/libs/parse-curl.js +70 -0
- package/dist/libs/send-request.d.ts +4 -1
- package/dist/libs/send-request.d.ts.map +1 -1
- package/dist/libs/send-request.js +103 -103
- package/dist/router.d.ts +2 -1
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +33 -24
- package/dist/store/collections.d.ts +4 -4
- package/dist/store/cookies.d.ts +4 -4
- package/dist/store/environment.d.ts +4 -4
- package/dist/store/events.d.ts +29 -0
- package/dist/store/events.d.ts.map +1 -0
- package/dist/store/events.js +31 -0
- package/dist/store/request-example.d.ts +4 -4
- package/dist/store/requests.d.ts +4 -4
- package/dist/store/router-params.d.ts +1 -0
- package/dist/store/router-params.d.ts.map +1 -1
- package/dist/store/router-params.js +2 -1
- package/dist/store/security-schemes.d.ts +4 -4
- package/dist/store/servers.d.ts +4 -4
- package/dist/store/store.d.ts +92 -72
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +138 -129
- package/dist/store/tags.d.ts +4 -4
- package/dist/store/workspace.d.ts +4 -4
- package/dist/style.css +1 -1
- package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +18 -18
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +9 -9
- package/dist/views/Request/Request.vue.d.ts.map +1 -1
- package/dist/views/Request/Request.vue.js +1 -1
- package/dist/views/Request/Request.vue2.js +148 -98
- 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 +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +4 -4
- package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue.js +3 -3
- package/dist/views/Request/RequestSidebar.vue2.js +101 -102
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +73 -73
- package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +33 -34
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts +2 -0
- package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue.js +4 -4
- package/dist/views/Request/RequestSubpageHeader.vue2.js +17 -15
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts +16 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +31 -0
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue3.js +5 -0
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -33
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +18 -19
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +20 -20
- package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue.js +68 -56
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +29 -30
- package/dist/views/Settings/Settings.vue.d.ts +4 -0
- package/dist/views/Settings/Settings.vue.d.ts.map +1 -0
- package/dist/views/Settings/Settings.vue.js +4 -0
- package/dist/views/Settings/Settings.vue2.js +59 -0
- package/dist/{components/DarkModeToggle/DarkModeIconToggle.vue.d.ts → views/Settings/SettingsGeneral.vue.d.ts} +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneral.vue.js +124 -0
- package/dist/views/Settings/SettingsGeneral.vue2.js +4 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts +3 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +1 -0
- package/dist/views/Settings/SettingsGeneralMode.vue.js +78 -0
- package/dist/views/Settings/SettingsGeneralMode.vue2.js +4 -0
- package/package.json +59 -35
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +0 -31
- package/dist/components/DarkModeToggle/DarkModeIconToggle.vue2.js +0 -4
- package/dist/components/DarkModeToggle/index.d.ts +0 -2
- package/dist/components/DarkModeToggle/index.d.ts.map +0 -1
- package/dist/components/DarkModeToggle/index.js +0 -4
- package/dist/components/ScreenReader.vue.js +0 -7
- package/dist/components/ScreenReader.vue2.js +0 -18
- package/dist/libs/event-busses/cancel-request-bus.d.ts +0 -2
- package/dist/libs/event-busses/cancel-request-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/cancel-request-bus.js +0 -5
- package/dist/libs/event-busses/command-palette-bus.d.ts +0 -14
- package/dist/libs/event-busses/command-palette-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/command-palette-bus.js +0 -5
- package/dist/libs/event-busses/execute-request-bus.d.ts +0 -2
- package/dist/libs/event-busses/execute-request-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/execute-request-bus.js +0 -5
- package/dist/libs/event-busses/hot-keys-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/hot-keys-bus.js +0 -47
- package/dist/libs/event-busses/index.d.ts +0 -6
- package/dist/libs/event-busses/index.d.ts.map +0 -1
- package/dist/libs/event-busses/index.js +0 -15
- package/dist/libs/event-busses/request-status-bus.d.ts +0 -5
- package/dist/libs/event-busses/request-status-bus.d.ts.map +0 -1
- package/dist/libs/event-busses/request-status-bus.js +0 -5
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"rest",
|
|
19
19
|
"testing"
|
|
20
20
|
],
|
|
21
|
-
"version": "2.1.
|
|
21
|
+
"version": "2.1.20",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=18"
|
|
24
24
|
},
|
|
@@ -27,91 +27,113 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
29
|
"import": "./dist/index.js",
|
|
30
|
-
"types": "./dist/index.d.ts"
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"default": "./dist/index.js"
|
|
31
32
|
},
|
|
32
33
|
"./views/Request/types": {
|
|
33
34
|
"import": "./dist/views/Request/types/index.js",
|
|
34
|
-
"types": "./dist/views/Request/types/index.d.ts"
|
|
35
|
+
"types": "./dist/views/Request/types/index.d.ts",
|
|
36
|
+
"default": "./dist/views/Request/types/index.js"
|
|
35
37
|
},
|
|
36
38
|
"./views/Request/libs": {
|
|
37
39
|
"import": "./dist/views/Request/libs/index.js",
|
|
38
|
-
"types": "./dist/views/Request/libs/index.d.ts"
|
|
40
|
+
"types": "./dist/views/Request/libs/index.d.ts",
|
|
41
|
+
"default": "./dist/views/Request/libs/index.js"
|
|
39
42
|
},
|
|
40
43
|
"./views/Request/consts": {
|
|
41
44
|
"import": "./dist/views/Request/consts/index.js",
|
|
42
|
-
"types": "./dist/views/Request/consts/index.d.ts"
|
|
45
|
+
"types": "./dist/views/Request/consts/index.d.ts",
|
|
46
|
+
"default": "./dist/views/Request/consts/index.js"
|
|
43
47
|
},
|
|
44
48
|
"./views/Request/components": {
|
|
45
49
|
"import": "./dist/views/Request/components/index.js",
|
|
46
|
-
"types": "./dist/views/Request/components/index.d.ts"
|
|
50
|
+
"types": "./dist/views/Request/components/index.d.ts",
|
|
51
|
+
"default": "./dist/views/Request/components/index.js"
|
|
47
52
|
},
|
|
48
53
|
"./store": {
|
|
49
54
|
"import": "./dist/store/index.js",
|
|
50
|
-
"types": "./dist/store/index.d.ts"
|
|
55
|
+
"types": "./dist/store/index.d.ts",
|
|
56
|
+
"default": "./dist/store/index.js"
|
|
51
57
|
},
|
|
52
58
|
"./libs": {
|
|
53
59
|
"import": "./dist/libs/index.js",
|
|
54
|
-
"types": "./dist/libs/index.d.ts"
|
|
60
|
+
"types": "./dist/libs/index.d.ts",
|
|
61
|
+
"default": "./dist/libs/index.js"
|
|
62
|
+
},
|
|
63
|
+
"./libs/importers": {
|
|
64
|
+
"import": "./dist/libs/importers/index.js",
|
|
65
|
+
"types": "./dist/libs/importers/index.d.ts",
|
|
66
|
+
"default": "./dist/libs/importers/index.js"
|
|
55
67
|
},
|
|
56
68
|
"./libs/event-busses": {
|
|
57
69
|
"import": "./dist/libs/event-busses/index.js",
|
|
58
|
-
"types": "./dist/libs/event-busses/index.d.ts"
|
|
70
|
+
"types": "./dist/libs/event-busses/index.d.ts",
|
|
71
|
+
"default": "./dist/libs/event-busses/index.js"
|
|
59
72
|
},
|
|
60
73
|
"./layouts/Web": {
|
|
61
74
|
"import": "./dist/layouts/Web/index.js",
|
|
62
|
-
"types": "./dist/layouts/Web/index.d.ts"
|
|
75
|
+
"types": "./dist/layouts/Web/index.d.ts",
|
|
76
|
+
"default": "./dist/layouts/Web/index.js"
|
|
63
77
|
},
|
|
64
78
|
"./layouts/Modal": {
|
|
65
79
|
"import": "./dist/layouts/Modal/index.js",
|
|
66
|
-
"types": "./dist/layouts/Modal/index.d.ts"
|
|
80
|
+
"types": "./dist/layouts/Modal/index.d.ts",
|
|
81
|
+
"default": "./dist/layouts/Modal/index.js"
|
|
67
82
|
},
|
|
68
83
|
"./layouts/App": {
|
|
69
84
|
"import": "./dist/layouts/App/index.js",
|
|
70
|
-
"types": "./dist/layouts/App/index.d.ts"
|
|
85
|
+
"types": "./dist/layouts/App/index.d.ts",
|
|
86
|
+
"default": "./dist/layouts/App/index.js"
|
|
71
87
|
},
|
|
72
88
|
"./hooks": {
|
|
73
89
|
"import": "./dist/hooks/index.js",
|
|
74
|
-
"types": "./dist/hooks/index.d.ts"
|
|
90
|
+
"types": "./dist/hooks/index.d.ts",
|
|
91
|
+
"default": "./dist/hooks/index.js"
|
|
75
92
|
},
|
|
76
93
|
"./components": {
|
|
77
94
|
"import": "./dist/components/index.js",
|
|
78
|
-
"types": "./dist/components/index.d.ts"
|
|
95
|
+
"types": "./dist/components/index.d.ts",
|
|
96
|
+
"default": "./dist/components/index.js"
|
|
79
97
|
},
|
|
80
98
|
"./components/Sidebar": {
|
|
81
99
|
"import": "./dist/components/Sidebar/index.js",
|
|
82
|
-
"types": "./dist/components/Sidebar/index.d.ts"
|
|
100
|
+
"types": "./dist/components/Sidebar/index.d.ts",
|
|
101
|
+
"default": "./dist/components/Sidebar/index.js"
|
|
83
102
|
},
|
|
84
103
|
"./components/ImportCollection": {
|
|
85
104
|
"import": "./dist/components/ImportCollection/index.js",
|
|
86
|
-
"types": "./dist/components/ImportCollection/index.d.ts"
|
|
105
|
+
"types": "./dist/components/ImportCollection/index.d.ts",
|
|
106
|
+
"default": "./dist/components/ImportCollection/index.js"
|
|
87
107
|
},
|
|
88
108
|
"./components/HttpMethod": {
|
|
89
109
|
"import": "./dist/components/HttpMethod/index.js",
|
|
90
|
-
"types": "./dist/components/HttpMethod/index.d.ts"
|
|
110
|
+
"types": "./dist/components/HttpMethod/index.d.ts",
|
|
111
|
+
"default": "./dist/components/HttpMethod/index.js"
|
|
91
112
|
},
|
|
92
113
|
"./components/DataTable": {
|
|
93
114
|
"import": "./dist/components/DataTable/index.js",
|
|
94
|
-
"types": "./dist/components/DataTable/index.d.ts"
|
|
95
|
-
|
|
96
|
-
"./components/DarkModeToggle": {
|
|
97
|
-
"import": "./dist/components/DarkModeToggle/index.js",
|
|
98
|
-
"types": "./dist/components/DarkModeToggle/index.d.ts"
|
|
115
|
+
"types": "./dist/components/DataTable/index.d.ts",
|
|
116
|
+
"default": "./dist/components/DataTable/index.js"
|
|
99
117
|
},
|
|
100
118
|
"./components/CommandPalette": {
|
|
101
119
|
"import": "./dist/components/CommandPalette/index.js",
|
|
102
|
-
"types": "./dist/components/CommandPalette/index.d.ts"
|
|
120
|
+
"types": "./dist/components/CommandPalette/index.d.ts",
|
|
121
|
+
"default": "./dist/components/CommandPalette/index.js"
|
|
103
122
|
},
|
|
104
123
|
"./components/AddressBar": {
|
|
105
124
|
"import": "./dist/components/AddressBar/index.js",
|
|
106
|
-
"types": "./dist/components/AddressBar/index.d.ts"
|
|
125
|
+
"types": "./dist/components/AddressBar/index.d.ts",
|
|
126
|
+
"default": "./dist/components/AddressBar/index.js"
|
|
107
127
|
},
|
|
108
128
|
"./css/*.css": {
|
|
109
129
|
"import": "./dist/css/*.css",
|
|
110
|
-
"require": "./dist/css/*.css"
|
|
130
|
+
"require": "./dist/css/*.css",
|
|
131
|
+
"default": "./dist/css/*.css"
|
|
111
132
|
},
|
|
112
133
|
"./*.css": {
|
|
113
134
|
"import": "./dist/*.css",
|
|
114
|
-
"require": "./dist/*.css"
|
|
135
|
+
"require": "./dist/*.css",
|
|
136
|
+
"default": "./dist/*.css"
|
|
115
137
|
}
|
|
116
138
|
},
|
|
117
139
|
"files": [
|
|
@@ -129,27 +151,29 @@
|
|
|
129
151
|
"nanoid": "^5.0.7",
|
|
130
152
|
"pretty-bytes": "^6.1.1",
|
|
131
153
|
"pretty-ms": "^8.0.0",
|
|
154
|
+
"shell-quote": "^1.8.1",
|
|
132
155
|
"vue": "^3.4.29",
|
|
133
156
|
"vue-router": "^4.3.0",
|
|
134
157
|
"whatwg-mimetype": "^4.0.0",
|
|
135
158
|
"yaml": "^2.4.5",
|
|
136
159
|
"zod": "^3.23.8",
|
|
137
|
-
"@scalar/components": "0.12.
|
|
160
|
+
"@scalar/components": "0.12.52",
|
|
138
161
|
"@scalar/draggable": "0.1.5",
|
|
139
|
-
"@scalar/oas-utils": "0.2.53",
|
|
140
162
|
"@scalar/icons": "0.1.0",
|
|
141
|
-
"@scalar/
|
|
142
|
-
"@scalar/
|
|
143
|
-
"@scalar/openapi-
|
|
144
|
-
"@scalar/
|
|
145
|
-
"@scalar/
|
|
146
|
-
"@scalar/
|
|
163
|
+
"@scalar/object-utils": "1.1.10",
|
|
164
|
+
"@scalar/oas-utils": "0.2.55",
|
|
165
|
+
"@scalar/openapi-parser": "0.8.6",
|
|
166
|
+
"@scalar/openapi-types": "0.1.2",
|
|
167
|
+
"@scalar/types": "0.0.14",
|
|
168
|
+
"@scalar/use-codemirror": "0.11.19",
|
|
169
|
+
"@scalar/themes": "0.9.36",
|
|
147
170
|
"@scalar/use-toasts": "0.7.6",
|
|
148
171
|
"@scalar/use-tooltip": "1.0.2"
|
|
149
172
|
},
|
|
150
173
|
"devDependencies": {
|
|
151
174
|
"@types/content-type": "^1.1.8",
|
|
152
175
|
"@types/js-cookie": "^3.0.6",
|
|
176
|
+
"@types/shell-quote": "^1.7.5",
|
|
153
177
|
"@types/whatwg-mimetype": "^3.0.2",
|
|
154
178
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
155
179
|
"@vue/test-utils": "^2.4.1",
|
|
@@ -162,7 +186,7 @@
|
|
|
162
186
|
"vite": "^5.2.10",
|
|
163
187
|
"vite-svg-loader": "^5.1.0",
|
|
164
188
|
"vitest": "^1.6.0",
|
|
165
|
-
"@scalar/build-tooling": "0.1.
|
|
189
|
+
"@scalar/build-tooling": "0.1.11"
|
|
166
190
|
},
|
|
167
191
|
"scripts": {
|
|
168
192
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DarkModeIconToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/DarkModeIconToggle.vue"],"names":[],"mappings":";AA6GA,wBAKG"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as l, createElementBlock as s, unref as e, createVNode as r, withCtx as i, createTextVNode as p, toDisplayString as d } from "vue";
|
|
2
|
-
import m from "../ScreenReader.vue.js";
|
|
3
|
-
import { ScalarIcon as u } from "@scalar/components";
|
|
4
|
-
import { useDarkModeState as f } from "../../hooks/useDarkModeState.js";
|
|
5
|
-
const w = /* @__PURE__ */ c({
|
|
6
|
-
__name: "DarkModeIconToggle",
|
|
7
|
-
setup(g) {
|
|
8
|
-
const { toggleDarkMode: t, isDark: a } = f();
|
|
9
|
-
return (k, o) => (l(), s("button", {
|
|
10
|
-
class: "min-w-[37px] max-w-[37px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
|
|
11
|
-
type: "button",
|
|
12
|
-
onClick: o[0] || (o[0] = //@ts-ignore
|
|
13
|
-
(...n) => e(t) && e(t)(...n))
|
|
14
|
-
}, [
|
|
15
|
-
r(e(u), {
|
|
16
|
-
class: "block h-6 w-6",
|
|
17
|
-
icon: "LightDarkModeToggle",
|
|
18
|
-
thickness: "1.5"
|
|
19
|
-
}),
|
|
20
|
-
r(m, null, {
|
|
21
|
-
default: i(() => [
|
|
22
|
-
p(" Switch to " + d(e(a) ? "Light" : "Dark") + " Mode ", 1)
|
|
23
|
-
]),
|
|
24
|
-
_: 1
|
|
25
|
-
})
|
|
26
|
-
]));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
w as default
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DarkModeToggle/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createElementBlock as n, renderSlot as o } from "vue";
|
|
2
|
-
const s = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "screenreader-only"
|
|
5
|
-
}, d = /* @__PURE__ */ r({
|
|
6
|
-
__name: "ScreenReader",
|
|
7
|
-
props: {
|
|
8
|
-
if: { type: Boolean, default: !0 }
|
|
9
|
-
},
|
|
10
|
-
setup(a) {
|
|
11
|
-
return (e, l) => e.$props.if ? (t(), n("span", s, [
|
|
12
|
-
o(e.$slots, "default", {}, void 0, !0)
|
|
13
|
-
])) : o(e.$slots, "default", { key: 1 }, void 0, !0);
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
d as default
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-request-bus.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/cancel-request-bus.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB,qDAAmC,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CommandNames } from '../../components/CommandPalette/TheCommandPalette.vue.js';
|
|
2
|
-
export type CommandPaletteEvent = {
|
|
3
|
-
/** The command name which matches with the command palette */
|
|
4
|
-
commandName?: CommandNames;
|
|
5
|
-
/** Any extra metadata we want to pass to the command palettes */
|
|
6
|
-
metaData?: Record<string, any>;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Event bus for controlling the Command Palette
|
|
10
|
-
*
|
|
11
|
-
* @param commandName - the command name you wish to execute, leave empty for the full palette
|
|
12
|
-
*/
|
|
13
|
-
export declare const commandPaletteBus: import("@vueuse/core").UseEventBusReturn<CommandPaletteEvent, any>;
|
|
14
|
-
//# sourceMappingURL=command-palette-bus.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-bus.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/command-palette-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mDAAmD,CAAA;AAGrF,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CAAA;AAGD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,oEAAiC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute-request-bus.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/execute-request-bus.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,iBAAiB,qDAAoC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hot-keys-bus.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/hot-keys-bus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EAChB,MAAM,sCAAsC,CAAA;AAI7C,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAA;AAG1E,6BAA6B;AAC7B,eAAO,MAAM,SAAS,6YAA4B,CAAA;AAyBlD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,YAI7B,CAAA;AAsBD,mDAAmD;AACnD,eAAO,MAAM,YAAY,cAAe,eAAe,sDAQtD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,OACvB,aAAa;;;;;;UA2BlB,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { isMacOS as f } from "@scalar/use-tooltip";
|
|
2
|
-
import { useEventBus as c } from "@vueuse/core";
|
|
3
|
-
const l = Symbol(), r = c(l), d = [
|
|
4
|
-
"Escape",
|
|
5
|
-
"ArrowDown",
|
|
6
|
-
"ArrowUp",
|
|
7
|
-
"Enter",
|
|
8
|
-
"F1",
|
|
9
|
-
"F2",
|
|
10
|
-
"F3",
|
|
11
|
-
"F4",
|
|
12
|
-
"F5",
|
|
13
|
-
"F6",
|
|
14
|
-
"F7",
|
|
15
|
-
"F8",
|
|
16
|
-
"F9",
|
|
17
|
-
"F10",
|
|
18
|
-
"F11",
|
|
19
|
-
"F12"
|
|
20
|
-
], m = {
|
|
21
|
-
Escape: { event: "closeModal" },
|
|
22
|
-
b: { event: "toggleSidebar", modifiers: ["default"] },
|
|
23
|
-
k: { event: "openCommandPalette", modifiers: ["default"] }
|
|
24
|
-
}, n = (e) => {
|
|
25
|
-
if (!(e.target instanceof HTMLElement)) return !1;
|
|
26
|
-
const t = e.target;
|
|
27
|
-
return t.tagName === "INPUT" ? !d.includes(e.key) : !!(t.tagName === "TEXTAREA" || t.getAttribute("contenteditable"));
|
|
28
|
-
}, u = {
|
|
29
|
-
Alt: "altKey",
|
|
30
|
-
Control: "ctrlKey",
|
|
31
|
-
Shift: "shiftKey",
|
|
32
|
-
Meta: "metaKey"
|
|
33
|
-
}, y = (e) => e.map(
|
|
34
|
-
(t) => t === "default" ? f() ? "metaKey" : "ctrlKey" : u[t]
|
|
35
|
-
), g = (e, {
|
|
36
|
-
hotKeys: t = m,
|
|
37
|
-
modifiers: i = ["default"]
|
|
38
|
-
} = {}) => {
|
|
39
|
-
const s = e.key === " " ? "Space" : e.key, o = t[s];
|
|
40
|
-
o && (s === "Escape" ? r.emit({ [o.event]: e }) : y(o.modifiers || i).every((a) => e[a] === !0) && !n(e) ? r.emit({ [o.event]: e }) : !n(e) && o.modifiers === void 0 && r.emit({ [o.event]: e }));
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
m as DEFAULT_HOTKEYS,
|
|
44
|
-
y as getModifiers,
|
|
45
|
-
g as handleHotKeyDown,
|
|
46
|
-
r as hotKeyBus
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { commandPaletteBus as o } from "./command-palette-bus.js";
|
|
2
|
-
import { DEFAULT_HOTKEYS as s, getModifiers as u, handleHotKeyDown as m, hotKeyBus as f } from "./hot-keys-bus.js";
|
|
3
|
-
import { executeRequestBus as a } from "./execute-request-bus.js";
|
|
4
|
-
import { cancelRequestBus as B } from "./cancel-request-bus.js";
|
|
5
|
-
import { requestStatusBus as n } from "./request-status-bus.js";
|
|
6
|
-
export {
|
|
7
|
-
s as DEFAULT_HOTKEYS,
|
|
8
|
-
B as cancelRequestBus,
|
|
9
|
-
o as commandPaletteBus,
|
|
10
|
-
a as executeRequestBus,
|
|
11
|
-
u as getModifiers,
|
|
12
|
-
m as handleHotKeyDown,
|
|
13
|
-
f as hotKeyBus,
|
|
14
|
-
n as requestStatusBus
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"request-status-bus.d.ts","sourceRoot":"","sources":["../../../src/libs/event-busses/request-status-bus.ts"],"names":[],"mappings":"AAEA,gCAAgC;AAChC,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;AAO/C,eAAO,MAAM,gBAAgB,8DAAkD,CAAA"}
|