@scalar/api-client 2.29.4 → 2.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -0
- package/dist/components/DataTable/DataTableCell.vue.js +1 -1
- package/dist/components/Server/ServerSelector.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerSelector.vue.js +5 -5
- package/dist/components/Sidebar/Sidebar.vue.js +3 -3
- package/dist/components/Sidebar/Sidebar.vue2.js +1 -1
- package/dist/components/ViewLayout/ViewLayout.vue.js +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +9 -69
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +74 -76
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +15 -8
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +29 -28
- package/dist/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.d.ts +1 -1
- 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 +18 -21
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +22 -21
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +12 -0
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBody.vue2.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyStreaming.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +13 -8
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +97 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +7 -7
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/security-scheme.js +7 -7
- package/dist/v2/components/data-table/DataTableCell.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +16 -5
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +27 -24
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +29 -14
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +57 -57
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue2.js +171 -148
- package/dist/v2/features/app/components/DownloadAppButton.vue.js +1 -1
- package/dist/v2/features/app/components/DownloadAppButton.vue2.js +1 -1
- package/dist/v2/features/app/helpers/routes.d.ts +42 -12
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/routes.js +57 -26
- package/dist/v2/features/collection/OperationCollection.vue.d.ts +6 -0
- package/dist/v2/features/collection/OperationCollection.vue.d.ts.map +1 -0
- package/dist/v2/features/collection/OperationCollection.vue.js +83 -0
- package/dist/v2/features/collection/OperationCollection.vue2.js +4 -0
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +100 -49
- package/dist/v2/features/collection/components/Cookies.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Cookies.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Cookies.vue.js +12 -10
- package/dist/v2/features/collection/components/Environment.vue.d.ts +9 -4
- package/dist/v2/features/collection/components/Environment.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Environment.vue.js +18 -16
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts +6 -2
- package/dist/v2/features/collection/components/LabelInput.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/LabelInput.vue.js +2 -2
- package/dist/v2/features/collection/components/LabelInput.vue2.js +20 -18
- package/dist/v2/features/collection/components/Overview.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Overview.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Overview.vue.js +1 -1
- package/dist/v2/features/collection/components/Overview.vue2.js +177 -75
- package/dist/v2/features/collection/components/Servers.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue.js +154 -98
- package/dist/v2/features/collection/components/Settings.vue.d.ts +2 -2
- package/dist/v2/features/collection/components/Tabs.vue.d.ts +2 -1
- package/dist/v2/features/collection/components/Tabs.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Tabs.vue.js +25 -27
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts +12 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.d.ts.map +1 -0
- package/dist/v2/features/collection/helpers/get-default-operation-security-toggle.js +13 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +61 -63
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -3
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.js +7 -8
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts +8 -6
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-server.js +2 -2
- package/dist/v2/helpers/drag-handle-factory.d.ts.map +1 -1
- package/dist/v2/helpers/drag-handle-factory.js +41 -41
- package/dist/v2/workspace-events.d.ts.map +1 -1
- package/dist/v2/workspace-events.js +25 -15
- package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
- package/dist/views/Request/RequestSidebarItem.vue2.js +24 -24
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/helpers/remove-circular.d.ts +0 -15
- package/dist/v2/helpers/remove-circular.d.ts.map +0 -1
- package/dist/v2/helpers/remove-circular.js +0 -18
|
@@ -4,7 +4,7 @@ import { type AvailableClients } from '@scalar/types/snippetz';
|
|
|
4
4
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
5
5
|
import type { SelectedSecurity } from '@scalar/workspace-store/entities/auth';
|
|
6
6
|
import type { HistoryEntry } from '@scalar/workspace-store/entities/history/schema';
|
|
7
|
-
import type { AuthMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
7
|
+
import type { AuthMeta, ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
8
8
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
9
9
|
import type { OpenApiDocument, ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
10
10
|
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/operation';
|
|
@@ -26,11 +26,11 @@ import type { MergedSecuritySchemes } from '../../../v2/blocks/scalar-auth-selec
|
|
|
26
26
|
*/
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
export default _default;
|
|
29
|
-
|
|
29
|
+
export type OperationBlockProps = {
|
|
30
30
|
/** Event bus */
|
|
31
31
|
eventBus: WorkspaceEventBus;
|
|
32
32
|
/** Document defined security */
|
|
33
|
-
documentSecurity: OpenApiDocument[
|
|
33
|
+
documentSecurity: OpenApiDocument['security'];
|
|
34
34
|
/** Document selected security */
|
|
35
35
|
documentSelectedSecurity: SelectedSecurity | undefined;
|
|
36
36
|
/** Application version */
|
|
@@ -50,9 +50,11 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
50
50
|
/** Currently selected server */
|
|
51
51
|
server: ServerObject | null;
|
|
52
52
|
/** Currently selected client */
|
|
53
|
-
selectedClient: WorkspaceStore[
|
|
53
|
+
selectedClient: WorkspaceStore['workspace']['x-scalar-default-client'];
|
|
54
54
|
/** Server list available for operation/document */
|
|
55
55
|
servers: ServerObject[];
|
|
56
|
+
/** Meta information for the server */
|
|
57
|
+
serverMeta: ServerMeta;
|
|
56
58
|
/** Hides the client button on the header */
|
|
57
59
|
hideClientButton?: boolean;
|
|
58
60
|
/** Client integration */
|
|
@@ -60,13 +62,11 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
60
62
|
/** Openapi document url for `modal` mode to open the client app */
|
|
61
63
|
documentUrl?: string;
|
|
62
64
|
/** Client source */
|
|
63
|
-
source?:
|
|
65
|
+
source?: 'gitbook' | 'api-reference';
|
|
64
66
|
/** Operation object */
|
|
65
67
|
operation: OperationObject;
|
|
66
68
|
/** Operation selected security */
|
|
67
69
|
operationSelectedSecurity: SelectedSecurity | undefined;
|
|
68
|
-
/** Whether to set security at the operation level */
|
|
69
|
-
setOperationSecurity: boolean;
|
|
70
70
|
/** Currently selected example key for the current operation */
|
|
71
71
|
exampleKey: string;
|
|
72
72
|
/** Meta information for the auth update */
|
|
@@ -83,66 +83,6 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
83
83
|
environment: XScalarEnvironment;
|
|
84
84
|
/** The proxy URL for sending requests */
|
|
85
85
|
proxyUrl: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
89
|
-
/** Event bus */
|
|
90
|
-
eventBus: WorkspaceEventBus;
|
|
91
|
-
/** Document defined security */
|
|
92
|
-
documentSecurity: OpenApiDocument["security"];
|
|
93
|
-
/** Document selected security */
|
|
94
|
-
documentSelectedSecurity: SelectedSecurity | undefined;
|
|
95
|
-
/** Application version */
|
|
96
|
-
appVersion: string;
|
|
97
|
-
/** Workspace/document cookies */
|
|
98
|
-
globalCookies: ExtendedScalarCookie[];
|
|
99
|
-
/** Current request path */
|
|
100
|
-
path: string;
|
|
101
|
-
/** Current request method */
|
|
102
|
-
method: HttpMethodType;
|
|
103
|
-
/** HTTP clients */
|
|
104
|
-
httpClients: AvailableClients;
|
|
105
|
-
/** The history for the operation */
|
|
106
|
-
history?: HistoryEntry[];
|
|
107
|
-
/** Client layout */
|
|
108
|
-
layout: ClientLayout;
|
|
109
|
-
/** Currently selected server */
|
|
110
|
-
server: ServerObject | null;
|
|
111
|
-
/** Currently selected client */
|
|
112
|
-
selectedClient: WorkspaceStore["workspace"]["x-scalar-default-client"];
|
|
113
|
-
/** Server list available for operation/document */
|
|
114
|
-
servers: ServerObject[];
|
|
115
|
-
/** Hides the client button on the header */
|
|
116
|
-
hideClientButton?: boolean;
|
|
117
|
-
/** Client integration */
|
|
118
|
-
integration?: string | null;
|
|
119
|
-
/** Openapi document url for `modal` mode to open the client app */
|
|
120
|
-
documentUrl?: string;
|
|
121
|
-
/** Client source */
|
|
122
|
-
source?: "gitbook" | "api-reference";
|
|
123
|
-
/** Operation object */
|
|
124
|
-
operation: OperationObject;
|
|
125
|
-
/** Operation selected security */
|
|
126
|
-
operationSelectedSecurity: SelectedSecurity | undefined;
|
|
127
|
-
/** Whether to set security at the operation level */
|
|
128
|
-
setOperationSecurity: boolean;
|
|
129
|
-
/** Currently selected example key for the current operation */
|
|
130
|
-
exampleKey: string;
|
|
131
|
-
/** Meta information for the auth update */
|
|
132
|
-
authMeta: AuthMeta;
|
|
133
|
-
/** Document defined security schemes */
|
|
134
|
-
securitySchemes: MergedSecuritySchemes;
|
|
135
|
-
/** Client plugins */
|
|
136
|
-
plugins: ClientPlugin[];
|
|
137
|
-
/** Environment list */
|
|
138
|
-
environments?: string[];
|
|
139
|
-
/** Currently selected environment */
|
|
140
|
-
activeEnvironment?: string;
|
|
141
|
-
/** For environment variables in the inputs */
|
|
142
|
-
environment: XScalarEnvironment;
|
|
143
|
-
/** The proxy URL for sending requests */
|
|
144
|
-
proxyUrl: string;
|
|
145
|
-
}> & Readonly<{
|
|
146
|
-
"onUpdate:servers"?: (() => any) | undefined;
|
|
147
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
86
|
+
};
|
|
87
|
+
declare const __VLS_export: import("vue").DefineComponent<OperationBlockProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OperationBlockProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
148
88
|
//# sourceMappingURL=OperationBlock.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/operation-block/OperationBlock.vue"],"names":[],"mappings":"AAmZA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCA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3
|
-
import { useToasts as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { ERRORS as
|
|
7
|
-
import { buildRequest as
|
|
8
|
-
import { getSecuritySchemes as
|
|
9
|
-
import { harToFetchRequest as
|
|
10
|
-
import { harToFetchResponse as
|
|
11
|
-
import { sendRequest as
|
|
12
|
-
import
|
|
13
|
-
import { generateClientOptions as
|
|
14
|
-
import { getSecurityRequirements as
|
|
15
|
-
import { getSelectedSecurity as
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
1
|
+
import { defineComponent as b, computed as i, ref as m, onMounted as U, onBeforeUnmount as g, watch as K, createElementBlock as M, openBlock as V, createElementVNode as O, createVNode as l, withCtx as x, unref as q } from "vue";
|
|
2
|
+
import { AVAILABLE_CLIENTS as w } from "@scalar/types/snippetz";
|
|
3
|
+
import { useToasts as T } from "@scalar/use-toasts";
|
|
4
|
+
import I from "../../../components/ViewLayout/ViewLayout.vue.js";
|
|
5
|
+
import A from "../../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
6
|
+
import { ERRORS as L } from "../../../libs/errors.js";
|
|
7
|
+
import { buildRequest as N } from "./helpers/build-request.js";
|
|
8
|
+
import { getSecuritySchemes as P } from "./helpers/build-request-security.js";
|
|
9
|
+
import { harToFetchRequest as H } from "./helpers/har-to-fetch-request.js";
|
|
10
|
+
import { harToFetchResponse as F } from "./helpers/har-to-fetch-response.js";
|
|
11
|
+
import { sendRequest as j } from "./helpers/send-request.js";
|
|
12
|
+
import D from "./components/Header.vue.js";
|
|
13
|
+
import { generateClientOptions as Q } from "../operation-code-sample/helpers/generate-client-options.js";
|
|
14
|
+
import { getSecurityRequirements as $ } from "../../features/operation/helpers/get-security-requirements.js";
|
|
15
|
+
import { getSelectedSecurity as z } from "../../features/operation/helpers/get-selected-security.js";
|
|
16
|
+
import G from "../request-block/RequestBlock.vue.js";
|
|
17
|
+
import J from "../response-block/ResponseBlock.vue.js";
|
|
18
|
+
const W = { class: "bg-b-1 flex h-full flex-col" }, X = { class: "lg:min-h-header flex w-full flex-wrap items-center justify-center p-2 lg:p-0" }, Y = {
|
|
19
19
|
name: "OperationBlock"
|
|
20
|
-
},
|
|
21
|
-
...
|
|
20
|
+
}, ve = /* @__PURE__ */ b({
|
|
21
|
+
...Y,
|
|
22
22
|
props: {
|
|
23
23
|
eventBus: {},
|
|
24
24
|
documentSecurity: {},
|
|
@@ -27,19 +27,19 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
27
27
|
globalCookies: { default: () => [] },
|
|
28
28
|
path: {},
|
|
29
29
|
method: {},
|
|
30
|
-
httpClients: { default: () =>
|
|
30
|
+
httpClients: { default: () => w },
|
|
31
31
|
history: { default: () => [] },
|
|
32
32
|
layout: {},
|
|
33
33
|
server: {},
|
|
34
34
|
selectedClient: {},
|
|
35
35
|
servers: {},
|
|
36
|
+
serverMeta: {},
|
|
36
37
|
hideClientButton: { type: Boolean },
|
|
37
38
|
integration: {},
|
|
38
39
|
documentUrl: {},
|
|
39
40
|
source: {},
|
|
40
41
|
operation: {},
|
|
41
42
|
operationSelectedSecurity: {},
|
|
42
|
-
setOperationSecurity: { type: Boolean },
|
|
43
43
|
exampleKey: {},
|
|
44
44
|
authMeta: {},
|
|
45
45
|
securitySchemes: {},
|
|
@@ -49,21 +49,19 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
49
49
|
environment: {},
|
|
50
50
|
proxyUrl: {}
|
|
51
51
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
() => J(
|
|
52
|
+
setup(e) {
|
|
53
|
+
const B = i(() => Q(e.httpClients)), h = i(
|
|
54
|
+
() => $(e.documentSecurity, e.operation.security)
|
|
55
|
+
), d = i(
|
|
56
|
+
() => z(
|
|
58
57
|
e.documentSelectedSecurity,
|
|
59
58
|
e.operationSelectedSecurity,
|
|
60
|
-
|
|
61
|
-
e.setOperationSecurity
|
|
59
|
+
h.value
|
|
62
60
|
)
|
|
63
|
-
), v =
|
|
64
|
-
() =>
|
|
65
|
-
), { toast: y } =
|
|
66
|
-
const [t,
|
|
61
|
+
), v = i(
|
|
62
|
+
() => P(e.securitySchemes, d.value.selectedSchemes)
|
|
63
|
+
), { toast: y } = T(), f = m(null), r = m(null), u = m(null), s = () => f.value?.abort(L.REQUEST_ABORTED), c = async () => {
|
|
64
|
+
const [t, a] = N({
|
|
67
65
|
environment: e.environment,
|
|
68
66
|
exampleKey: e.exampleKey,
|
|
69
67
|
globalCookies: e.globalCookies,
|
|
@@ -78,25 +76,25 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
78
76
|
y(t.message, "error");
|
|
79
77
|
return;
|
|
80
78
|
}
|
|
81
|
-
f.value =
|
|
79
|
+
f.value = a.controller, r.value && "reader" in r.value && r.value.reader.cancel(), e.eventBus.emit("hooks:on:request:sent", {
|
|
82
80
|
meta: {
|
|
83
81
|
method: e.method,
|
|
84
82
|
path: e.path,
|
|
85
83
|
exampleKey: e.exampleKey
|
|
86
84
|
}
|
|
87
85
|
});
|
|
88
|
-
const [o,
|
|
89
|
-
isUsingProxy:
|
|
86
|
+
const [o, n] = await j({
|
|
87
|
+
isUsingProxy: a.isUsingProxy,
|
|
90
88
|
operation: e.operation,
|
|
91
89
|
plugins: e.plugins,
|
|
92
|
-
request:
|
|
90
|
+
request: a.request
|
|
93
91
|
});
|
|
94
92
|
if (e.eventBus.emit("hooks:on:request:complete", {
|
|
95
|
-
payload:
|
|
96
|
-
response:
|
|
97
|
-
request:
|
|
98
|
-
duration:
|
|
99
|
-
timestamp:
|
|
93
|
+
payload: n ? {
|
|
94
|
+
response: n.originalResponse,
|
|
95
|
+
request: n.request.clone(),
|
|
96
|
+
duration: n.response.duration,
|
|
97
|
+
timestamp: n.timestamp
|
|
100
98
|
} : void 0,
|
|
101
99
|
meta: {
|
|
102
100
|
method: e.method,
|
|
@@ -107,42 +105,42 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
107
105
|
y(o.message, "error");
|
|
108
106
|
return;
|
|
109
107
|
}
|
|
110
|
-
|
|
108
|
+
r.value = n.response, u.value = n.request;
|
|
111
109
|
};
|
|
112
|
-
|
|
113
|
-
e.eventBus.on("operation:send:request:hotkey",
|
|
110
|
+
U(() => {
|
|
111
|
+
e.eventBus.on("operation:send:request:hotkey", c), e.eventBus.on("operation:cancel:request", s);
|
|
114
112
|
}), g(() => {
|
|
115
|
-
e.eventBus.off("operation:send:request:hotkey",
|
|
113
|
+
e.eventBus.off("operation:send:request:hotkey", c), e.eventBus.off("operation:cancel:request", s);
|
|
116
114
|
});
|
|
117
|
-
const S =
|
|
115
|
+
const S = i(
|
|
118
116
|
() => e.history.map((t) => ({
|
|
119
117
|
method: t.request.method,
|
|
120
118
|
path: t.request.url,
|
|
121
119
|
duration: t.time,
|
|
122
120
|
status: t.response.status
|
|
123
121
|
})).reverse()
|
|
124
|
-
),
|
|
125
|
-
const
|
|
122
|
+
), R = ({ index: t }) => {
|
|
123
|
+
const a = (e.history.length ?? 0) - t - 1, o = e.history[a];
|
|
126
124
|
if (!o)
|
|
127
125
|
return;
|
|
128
|
-
const
|
|
126
|
+
const n = () => e.eventBus.emit("ui:navigate", {
|
|
129
127
|
page: "example",
|
|
130
128
|
method: e.method,
|
|
131
129
|
path: e.path,
|
|
132
130
|
exampleName: "draft",
|
|
133
|
-
callback: (
|
|
134
|
-
if (
|
|
131
|
+
callback: (C) => {
|
|
132
|
+
if (C !== "success")
|
|
135
133
|
return;
|
|
136
|
-
const
|
|
134
|
+
const k = F({
|
|
137
135
|
harResponse: o.response,
|
|
138
136
|
url: o.request.url,
|
|
139
137
|
method: e.method,
|
|
140
138
|
path: e.path,
|
|
141
139
|
duration: o.time
|
|
142
|
-
}),
|
|
140
|
+
}), E = H({
|
|
143
141
|
harRequest: o.request
|
|
144
142
|
});
|
|
145
|
-
|
|
143
|
+
r.value = k, u.value = E;
|
|
146
144
|
}
|
|
147
145
|
});
|
|
148
146
|
e.eventBus.emit("operation:reload:history", {
|
|
@@ -150,17 +148,17 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
150
148
|
path: e.path,
|
|
151
149
|
method: e.method
|
|
152
150
|
},
|
|
153
|
-
index:
|
|
154
|
-
callback:
|
|
151
|
+
index: a,
|
|
152
|
+
callback: n
|
|
155
153
|
});
|
|
156
154
|
};
|
|
157
|
-
return
|
|
158
|
-
|
|
155
|
+
return K([() => e.path, () => e.method, () => e.exampleKey], () => {
|
|
156
|
+
r.value = null, u.value = null, s();
|
|
159
157
|
}), g(() => {
|
|
160
158
|
s();
|
|
161
|
-
}), (t,
|
|
162
|
-
|
|
163
|
-
l(
|
|
159
|
+
}), (t, a) => (V(), M("div", W, [
|
|
160
|
+
O("div", X, [
|
|
161
|
+
l(D, {
|
|
164
162
|
activeEnvironment: e.activeEnvironment,
|
|
165
163
|
documentUrl: e.documentUrl,
|
|
166
164
|
environment: e.environment,
|
|
@@ -173,20 +171,20 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
173
171
|
method: e.method,
|
|
174
172
|
path: e.path,
|
|
175
173
|
server: e.server,
|
|
174
|
+
serverMeta: e.serverMeta,
|
|
176
175
|
servers: e.servers,
|
|
177
176
|
source: e.source,
|
|
178
|
-
onExecute:
|
|
179
|
-
"onSelect:history:item":
|
|
180
|
-
|
|
181
|
-
}, null, 8, ["activeEnvironment", "documentUrl", "environment", "environments", "eventBus", "hideClientButton", "history", "integration", "layout", "method", "path", "server", "servers", "source"])
|
|
177
|
+
onExecute: c,
|
|
178
|
+
"onSelect:history:item": R
|
|
179
|
+
}, null, 8, ["activeEnvironment", "documentUrl", "environment", "environments", "eventBus", "hideClientButton", "history", "integration", "layout", "method", "path", "server", "serverMeta", "servers", "source"])
|
|
182
180
|
]),
|
|
183
|
-
l(
|
|
181
|
+
l(I, { class: "border-t" }, {
|
|
184
182
|
default: x(() => [
|
|
185
|
-
l(
|
|
183
|
+
l(A, { class: "flex-1" }, {
|
|
186
184
|
default: x(() => [
|
|
187
|
-
l(
|
|
185
|
+
l(q(G), {
|
|
188
186
|
authMeta: e.authMeta,
|
|
189
|
-
clientOptions:
|
|
187
|
+
clientOptions: B.value,
|
|
190
188
|
environment: e.environment,
|
|
191
189
|
eventBus: e.eventBus,
|
|
192
190
|
exampleKey: e.exampleKey,
|
|
@@ -197,20 +195,20 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
197
195
|
path: e.path,
|
|
198
196
|
plugins: e.plugins,
|
|
199
197
|
proxyUrl: e.proxyUrl,
|
|
200
|
-
securityRequirements:
|
|
198
|
+
securityRequirements: h.value,
|
|
201
199
|
securitySchemes: e.securitySchemes,
|
|
202
200
|
selectedClient: e.selectedClient,
|
|
203
|
-
selectedSecurity:
|
|
201
|
+
selectedSecurity: d.value,
|
|
204
202
|
selectedSecuritySchemes: v.value,
|
|
205
203
|
server: e.server
|
|
206
204
|
}, null, 8, ["authMeta", "clientOptions", "environment", "eventBus", "exampleKey", "globalCookies", "layout", "method", "operation", "path", "plugins", "proxyUrl", "securityRequirements", "securitySchemes", "selectedClient", "selectedSecurity", "selectedSecuritySchemes", "server"]),
|
|
207
|
-
l(
|
|
205
|
+
l(q(J), {
|
|
208
206
|
appVersion: e.appVersion,
|
|
209
207
|
eventBus: e.eventBus,
|
|
210
208
|
layout: e.layout,
|
|
211
209
|
plugins: e.plugins,
|
|
212
210
|
request: u.value,
|
|
213
|
-
response:
|
|
211
|
+
response: r.value,
|
|
214
212
|
totalPerformedRequests: S.value.length
|
|
215
213
|
}, null, 8, ["appVersion", "eventBus", "layout", "plugins", "request", "response", "totalPerformedRequests"])
|
|
216
214
|
]),
|
|
@@ -223,5 +221,5 @@ const Y = { class: "bg-b-1 flex h-full flex-col" }, Z = { class: "lg:min-h-heade
|
|
|
223
221
|
}
|
|
224
222
|
});
|
|
225
223
|
export {
|
|
226
|
-
|
|
224
|
+
ve as default
|
|
227
225
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { ServerMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
3
3
|
import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
|
|
4
4
|
import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
5
5
|
import type { ClientLayout } from '../../../../hooks/index.js';
|
|
6
6
|
import { type History } from '../../../../v2/blocks/scalar-address-bar-block/index.js';
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
Operation block header: address bar, environment selector, and modal controls.
|
|
9
|
+
|
|
10
|
+
Renders the top bar for the API client operation view: URL/method (AddressBar),
|
|
11
|
+
optional environment selector, optional "Open API Client" button in modal layout,
|
|
12
|
+
and close button for modal. Layout and visibility depend on `layout` and `source` props.
|
|
13
|
+
*/
|
|
14
|
+
export type HeaderProps = {
|
|
8
15
|
/** Current request path */
|
|
9
16
|
path: string;
|
|
10
17
|
/** Current request method */
|
|
@@ -33,22 +40,22 @@ type __VLS_Props = {
|
|
|
33
40
|
activeEnvironment?: string;
|
|
34
41
|
/** Environment variables */
|
|
35
42
|
environment: XScalarEnvironment;
|
|
43
|
+
/** Meta information for the server */
|
|
44
|
+
serverMeta: ServerMeta;
|
|
36
45
|
};
|
|
37
|
-
declare const
|
|
46
|
+
declare const _default: typeof __VLS_export;
|
|
47
|
+
export default _default;
|
|
48
|
+
declare const __VLS_export: import("vue").DefineComponent<HeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
38
49
|
execute: () => any;
|
|
39
|
-
"update:servers": () => any;
|
|
40
50
|
"select:history:item": (payload: {
|
|
41
51
|
index: number;
|
|
42
52
|
}) => any;
|
|
43
53
|
"add:environment": () => any;
|
|
44
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<HeaderProps> & Readonly<{
|
|
45
55
|
onExecute?: (() => any) | undefined;
|
|
46
|
-
"onUpdate:servers"?: (() => any) | undefined;
|
|
47
56
|
"onSelect:history:item"?: ((payload: {
|
|
48
57
|
index: number;
|
|
49
58
|
}) => any) | undefined;
|
|
50
59
|
"onAdd:environment"?: (() => any) | undefined;
|
|
51
60
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
-
declare const _default: typeof __VLS_export;
|
|
53
|
-
export default _default;
|
|
54
61
|
//# sourceMappingURL=Header.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-block/components/Header.vue"],"names":[],"mappings":"AAqLA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAGhG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAc,KAAK,OAAO,EAAE,MAAM,sCAAsC,CAAA;AAI/E;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,UAAU,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,0BAA0B;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oBAAoB;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,eAAe,CAAA;IACpC,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,uBAAuB;IACvB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;IACvB,qCAAqC;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,4BAA4B;IAC5B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,sCAAsC;IACtC,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;wBACoB,OAAO,YAAY;AAAxC,wBAAyC;AACzC,QAAA,MAAM,YAAY;;;eAS6B,MAAM;;;;;;eAAN,MAAM;;;kFA+QjD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Header.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-192fe698"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as g, createElementBlock as s, openBlock as o, createElementVNode as i, createVNode as a, unref as
|
|
1
|
+
import { defineComponent as g, createElementBlock as s, openBlock as o, createElementVNode as i, createVNode as a, unref as r, createBlock as u, createCommentVNode as l } from "vue";
|
|
2
2
|
import { ScalarIcon as d } from "@scalar/components";
|
|
3
3
|
import x from "../../scalar-address-bar-block/components/EnvironmentSelector.vue.js";
|
|
4
4
|
import B from "../../scalar-address-bar-block/components/AddressBar.vue.js";
|
|
5
5
|
import k from "../../../../components/OpenApiClientButton.vue.js";
|
|
6
|
-
const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1" },
|
|
6
|
+
const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap items-center justify-center p-2 pt-2 lg:p-1 lg:pt-1" }, h = { class: "mb-2 flex w-1/2 flex-row items-center justify-end gap-2 lg:mb-0 lg:flex-1 lg:px-2.5" }, S = /* @__PURE__ */ g({
|
|
7
7
|
__name: "Header",
|
|
8
8
|
props: {
|
|
9
9
|
path: {},
|
|
@@ -19,20 +19,21 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
19
19
|
eventBus: {},
|
|
20
20
|
environments: {},
|
|
21
21
|
activeEnvironment: {},
|
|
22
|
-
environment: {}
|
|
22
|
+
environment: {},
|
|
23
|
+
serverMeta: {}
|
|
23
24
|
},
|
|
24
|
-
emits: ["execute", "
|
|
25
|
+
emits: ["execute", "select:history:item", "add:environment"],
|
|
25
26
|
setup(e, { emit: c }) {
|
|
26
|
-
const
|
|
27
|
-
e.eventBus.emit("workspace:update:active-environment",
|
|
27
|
+
const m = c, f = (v) => {
|
|
28
|
+
e.eventBus.emit("workspace:update:active-environment", v);
|
|
28
29
|
}, y = () => {
|
|
29
30
|
e.eventBus.emit("ui:navigate", { page: "workspace", path: "environment" });
|
|
30
31
|
};
|
|
31
|
-
return (
|
|
32
|
-
t[
|
|
32
|
+
return (v, t) => (o(), s("div", b, [
|
|
33
|
+
t[7] || (t[7] = i("div", { class: "mb-2 flex w-1/2 flex-row items-center gap-1 lg:mb-0 lg:flex-1 lg:px-1" }, [
|
|
33
34
|
i("div", { class: "size-8" })
|
|
34
35
|
], -1)),
|
|
35
|
-
a(
|
|
36
|
+
a(r(B), {
|
|
36
37
|
activeEnvironment: e.activeEnvironment,
|
|
37
38
|
environment: e.environment,
|
|
38
39
|
environments: e.environments,
|
|
@@ -42,58 +43,58 @@ const b = { class: "lg:min-h-header t-app__top-container flex w-full flex-wrap i
|
|
|
42
43
|
method: e.method,
|
|
43
44
|
path: e.path,
|
|
44
45
|
server: e.server,
|
|
46
|
+
serverMeta: e.serverMeta,
|
|
45
47
|
servers: e.servers,
|
|
46
|
-
"onAdd:environment": t[0] || (t[0] = (n) =>
|
|
47
|
-
onExecute: t[1] || (t[1] = (n) =>
|
|
48
|
-
"onSelect:history:item": t[2] || (t[2] = (n) =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
e.layout !== "modal" ? (o(), v(x, {
|
|
48
|
+
"onAdd:environment": t[0] || (t[0] = (n) => m("add:environment")),
|
|
49
|
+
onExecute: t[1] || (t[1] = (n) => m("execute")),
|
|
50
|
+
"onSelect:history:item": t[2] || (t[2] = (n) => m("select:history:item", n))
|
|
51
|
+
}, null, 8, ["activeEnvironment", "environment", "environments", "eventBus", "history", "layout", "method", "path", "server", "serverMeta", "servers"]),
|
|
52
|
+
i("div", h, [
|
|
53
|
+
e.layout !== "modal" ? (o(), u(x, {
|
|
53
54
|
key: 0,
|
|
54
55
|
activeEnvironment: e.activeEnvironment,
|
|
55
56
|
environments: e.environments,
|
|
56
57
|
"onAdd:environment": y,
|
|
57
58
|
"onSelect:environment": f
|
|
58
|
-
}, null, 8, ["activeEnvironment", "environments"])) :
|
|
59
|
-
e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(),
|
|
59
|
+
}, null, 8, ["activeEnvironment", "environments"])) : l("", !0),
|
|
60
|
+
e.layout === "modal" && e.documentUrl && !e.hideClientButton ? (o(), u(r(k), {
|
|
60
61
|
key: 1,
|
|
61
62
|
buttonSource: "modal",
|
|
62
63
|
class: "!w-fit lg:-mr-1",
|
|
63
64
|
integration: e.integration ?? null,
|
|
64
65
|
source: e.source ?? "api-reference",
|
|
65
66
|
url: e.documentUrl
|
|
66
|
-
}, null, 8, ["integration", "source", "url"])) :
|
|
67
|
+
}, null, 8, ["integration", "source", "url"])) : l("", !0),
|
|
67
68
|
e.layout === "modal" && e.source !== "gitbook" ? (o(), s("button", {
|
|
68
69
|
key: 2,
|
|
69
70
|
class: "app-exit-button zoomed:static zoomed:p-1 fixed top-2 right-2 rounded-full p-2",
|
|
70
71
|
type: "button",
|
|
71
|
-
onClick: t[
|
|
72
|
+
onClick: t[3] || (t[3] = (n) => e.eventBus.emit("ui:close:client-modal"))
|
|
72
73
|
}, [
|
|
73
|
-
a(
|
|
74
|
+
a(r(d), {
|
|
74
75
|
icon: "Close",
|
|
75
76
|
size: "lg",
|
|
76
77
|
thickness: "2"
|
|
77
78
|
}),
|
|
78
|
-
t[
|
|
79
|
-
])) :
|
|
79
|
+
t[5] || (t[5] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
80
|
+
])) : l("", !0),
|
|
80
81
|
e.layout === "modal" && e.source === "gitbook" ? (o(), s("button", {
|
|
81
82
|
key: 3,
|
|
82
83
|
class: "text-c-1 hover:bg-b-2 active:text-c-1 -mr-1.5 rounded p-2",
|
|
83
84
|
type: "button",
|
|
84
|
-
onClick: t[
|
|
85
|
+
onClick: t[4] || (t[4] = (n) => e.eventBus.emit("ui:close:client-modal"))
|
|
85
86
|
}, [
|
|
86
|
-
a(
|
|
87
|
+
a(r(d), {
|
|
87
88
|
icon: "Close",
|
|
88
89
|
size: "md",
|
|
89
90
|
thickness: "1.75"
|
|
90
91
|
}),
|
|
91
|
-
t[
|
|
92
|
-
])) :
|
|
92
|
+
t[6] || (t[6] = i("span", { class: "sr-only" }, "Close Client", -1))
|
|
93
|
+
])) : l("", !0)
|
|
93
94
|
])
|
|
94
95
|
]));
|
|
95
96
|
}
|
|
96
97
|
});
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
S as default
|
|
99
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-resolved-ref-deep.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"get-resolved-ref-deep.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/operation-code-sample/helpers/get-resolved-ref-deep.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kDAAkD,CAAA;AAGnG,KAAK,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAA;AACzF,KAAK,SAAS,CAAC,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3C;;;;GAIG;AACH,KAAK,eAAe,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,GAC9C,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,GAC5B,eAAe,CAAC,CAAC,CAAC,EAAE,GACpB,CAAC,SAAS,MAAM,GACd;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,OAAO,CAAC,GAAG,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAC5G,CAAC,GACL,WAAW,CAAC,CAAC,CAAC,SAAS,MAAM,GAC3B;KACG,CAAC,IAAI,MAAM,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAA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