@scalar/api-reference 1.41.1 → 1.42.0

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.
Files changed (202) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/blocks/index.d.ts +0 -1
  3. package/dist/blocks/index.d.ts.map +1 -1
  4. package/dist/blocks/index.js +4 -6
  5. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts +4 -1
  6. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.d.ts.map +1 -1
  7. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue.js +1 -1
  8. package/dist/blocks/scalar-client-selector-block/components/ClientDropdown.vue2.js +9 -13
  9. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts +4 -1
  10. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.d.ts.map +1 -1
  11. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue.js +1 -1
  12. package/dist/blocks/scalar-client-selector-block/components/ClientSelector.vue2.js +10 -9
  13. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts +4 -0
  14. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.d.ts.map +1 -1
  15. package/dist/blocks/scalar-info-block/components/DownloadLink.vue.js +1 -1
  16. package/dist/blocks/scalar-info-block/components/DownloadLink.vue2.js +4 -7
  17. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts +7 -9
  18. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.d.ts.map +1 -1
  19. package/dist/blocks/scalar-info-block/components/InfoBlock.vue.js +9 -6
  20. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts +2 -9
  21. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.d.ts.map +1 -1
  22. package/dist/blocks/scalar-server-selector-block/components/Selector.vue.js +13 -25
  23. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts +8 -4
  24. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.d.ts.map +1 -1
  25. package/dist/blocks/scalar-server-selector-block/components/ServerSelector.vue.js +18 -41
  26. package/dist/browser/standalone.js +20335 -23246
  27. package/dist/browser/webpack-stats.json +1 -1
  28. package/dist/components/ApiReference.vue.d.ts +2 -254
  29. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  30. package/dist/components/ApiReference.vue.js +1 -1
  31. package/dist/components/ApiReference.vue2.js +71 -83
  32. package/dist/components/Content/Auth/Auth.vue.d.ts +17 -0
  33. package/dist/components/Content/Auth/Auth.vue.d.ts.map +1 -0
  34. package/dist/components/Content/Auth/Auth.vue.js +70 -0
  35. package/dist/components/Content/Auth/Auth.vue2.js +4 -0
  36. package/dist/components/Content/Auth/helpers/get-default-security.d.ts +18 -0
  37. package/dist/components/Content/Auth/helpers/get-default-security.d.ts.map +1 -0
  38. package/dist/components/Content/Auth/helpers/get-default-security.js +43 -0
  39. package/dist/components/Content/Auth/index.d.ts +2 -0
  40. package/dist/components/Content/Auth/index.d.ts.map +1 -0
  41. package/dist/components/Content/Content.vue.d.ts +9 -19
  42. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Content.vue.js +46 -47
  44. package/dist/components/Content/Models/Model.vue.d.ts +3 -6
  45. package/dist/components/Content/Models/Model.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Models/Model.vue.js +2 -2
  47. package/dist/components/Content/Models/ModelTag.vue.d.ts +2 -7
  48. package/dist/components/Content/Models/ModelTag.vue.d.ts.map +1 -1
  49. package/dist/components/Content/Models/ModelTag.vue.js +3 -3
  50. package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts +3 -5
  51. package/dist/components/Content/Models/components/ClassicLayout.vue.d.ts.map +1 -1
  52. package/dist/components/Content/Models/components/ClassicLayout.vue.js +1 -1
  53. package/dist/components/Content/Models/components/ClassicLayout.vue2.js +2 -8
  54. package/dist/components/Content/Models/components/ModernLayout.vue.d.ts +1 -1
  55. package/dist/components/Content/Models/components/ModernLayout.vue.d.ts.map +1 -1
  56. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts +20 -25
  57. package/dist/components/Content/Operations/TraversedEntry.vue.d.ts.map +1 -1
  58. package/dist/components/Content/Operations/TraversedEntry.vue.js +38 -56
  59. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -1
  60. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  61. package/dist/components/Content/index.d.ts +0 -1
  62. package/dist/components/Content/index.d.ts.map +1 -1
  63. package/dist/components/ShowMoreButton.vue.d.ts +1 -4
  64. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  65. package/dist/components/ShowMoreButton.vue.js +1 -1
  66. package/dist/components/ShowMoreButton.vue2.js +7 -17
  67. package/dist/components/index.d.ts +1 -1
  68. package/dist/components/index.d.ts.map +1 -1
  69. package/dist/components/index.js +12 -14
  70. package/dist/features/Operation/Operation.vue.d.ts +23 -25
  71. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  72. package/dist/features/Operation/Operation.vue.js +28 -19
  73. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -4
  74. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/components/OperationParameters.vue.js +17 -6
  76. package/dist/features/Operation/components/OperationResponses.vue.d.ts +3 -5
  77. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/components/OperationResponses.vue.js +3 -1
  79. package/dist/features/Operation/components/ParameterList.vue.d.ts +3 -6
  80. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  81. package/dist/features/Operation/components/ParameterList.vue.js +6 -8
  82. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +3 -6
  83. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  85. package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -8
  86. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +2 -4
  87. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  89. package/dist/features/Operation/components/callbacks/Callback.vue2.js +1 -5
  90. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +2 -8
  91. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  92. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +35 -24
  93. package/dist/features/Operation/helpers/filter-selected-security.d.ts +9 -0
  94. package/dist/features/Operation/helpers/filter-selected-security.d.ts.map +1 -0
  95. package/dist/features/Operation/helpers/filter-selected-security.js +27 -0
  96. package/dist/features/Operation/helpers/get-first-server.d.ts +1 -1
  97. package/dist/features/Operation/helpers/get-first-server.d.ts.map +1 -1
  98. package/dist/features/Operation/helpers/get-first-server.js +3 -3
  99. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -23
  100. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  101. package/dist/features/Operation/layouts/ClassicLayout.vue.js +1 -1
  102. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +24 -23
  103. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +7 -23
  104. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  106. package/dist/features/Operation/layouts/ModernLayout.vue2.js +25 -27
  107. package/dist/features/example-responses/ExampleResponse.vue.d.ts.map +1 -1
  108. package/dist/features/example-responses/ExampleResponse.vue.js +1 -1
  109. package/dist/features/example-responses/ExampleResponse.vue2.js +1 -2
  110. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  111. package/dist/features/example-responses/ExampleResponses.vue.js +1 -1
  112. package/dist/features/example-responses/ExampleResponses.vue2.js +1 -2
  113. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -0
  114. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  115. package/dist/features/test-request-button/TestRequestButton.vue.js +1 -1
  116. package/dist/features/test-request-button/TestRequestButton.vue2.js +5 -9
  117. package/dist/helpers/index.d.ts +0 -4
  118. package/dist/helpers/index.d.ts.map +1 -1
  119. package/dist/helpers/index.js +1 -9
  120. package/dist/helpers/map-config-plugins.d.ts +5 -0
  121. package/dist/helpers/map-config-plugins.d.ts.map +1 -0
  122. package/dist/helpers/map-config-plugins.js +29 -0
  123. package/dist/helpers/map-config-to-workspace-store.d.ts.map +1 -1
  124. package/dist/helpers/map-config-to-workspace-store.js +5 -0
  125. package/dist/helpers/map-configuration.d.ts +2 -2
  126. package/dist/helpers/storage.d.ts +347 -0
  127. package/dist/helpers/storage.d.ts.map +1 -0
  128. package/dist/helpers/storage.js +61 -0
  129. package/dist/hooks/index.d.ts +0 -2
  130. package/dist/hooks/index.d.ts.map +1 -1
  131. package/dist/hooks/index.js +1 -5
  132. package/dist/index.d.ts +0 -1
  133. package/dist/index.d.ts.map +1 -1
  134. package/dist/index.js +1 -3
  135. package/dist/plugins/persistance-plugin.d.ts +16 -0
  136. package/dist/plugins/persistance-plugin.d.ts.map +1 -0
  137. package/dist/plugins/persistance-plugin.js +54 -0
  138. package/dist/style.css +220 -542
  139. package/package.json +15 -15
  140. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +0 -11
  141. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +0 -1
  142. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +0 -7
  143. package/dist/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +0 -259
  144. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts +0 -21
  145. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.d.ts.map +0 -1
  146. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue.js +0 -66
  147. package/dist/blocks/scalar-auth-selector-block/components/DeleteRequestAuthModal.vue2.js +0 -4
  148. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -17
  149. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
  150. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +0 -273
  151. package/dist/blocks/scalar-auth-selector-block/components/OAuth2.vue2.js +0 -4
  152. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +0 -9
  153. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts.map +0 -1
  154. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.js +0 -150
  155. package/dist/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue2.js +0 -4
  156. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +0 -20
  157. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +0 -1
  158. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.js +0 -7
  159. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +0 -116
  160. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +0 -50
  161. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +0 -1
  162. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +0 -55
  163. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue2.js +0 -4
  164. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -17
  165. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
  166. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +0 -288
  167. package/dist/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue2.js +0 -4
  168. package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts +0 -6
  169. package/dist/blocks/scalar-auth-selector-block/helpers/filter-security-requirements.d.ts.map +0 -1
  170. package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts +0 -8
  171. package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.d.ts.map +0 -1
  172. package/dist/blocks/scalar-auth-selector-block/helpers/update-scheme.js +0 -26
  173. package/dist/blocks/scalar-auth-selector-block/index.d.ts +0 -2
  174. package/dist/blocks/scalar-auth-selector-block/index.d.ts.map +0 -1
  175. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts +0 -16
  176. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +0 -1
  177. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +0 -7
  178. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +0 -142
  179. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts +0 -13
  180. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +0 -1
  181. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +0 -7
  182. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +0 -125
  183. package/dist/components/Content/ClientLibraries/featured-clients.d.ts +0 -11
  184. package/dist/components/Content/ClientLibraries/featured-clients.d.ts.map +0 -1
  185. package/dist/components/Content/ClientLibraries/featured-clients.js +0 -24
  186. package/dist/components/Content/ClientLibraries/index.d.ts +0 -2
  187. package/dist/components/Content/ClientLibraries/index.d.ts.map +0 -1
  188. package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts +0 -26
  189. package/dist/features/example-responses/helpers/get-resolved-ref-deep.d.ts.map +0 -1
  190. package/dist/features/example-responses/helpers/get-resolved-ref-deep.js +0 -39
  191. package/dist/helpers/convert-security-scheme.d.ts +0 -9
  192. package/dist/helpers/convert-security-scheme.d.ts.map +0 -1
  193. package/dist/helpers/convert-security-scheme.js +0 -34
  194. package/dist/helpers/map-config-to-client-store.d.ts +0 -72
  195. package/dist/helpers/map-config-to-client-store.d.ts.map +0 -1
  196. package/dist/helpers/map-config-to-client-store.js +0 -146
  197. package/dist/hooks/use-legacy-store-events.d.ts +0 -14
  198. package/dist/hooks/use-legacy-store-events.d.ts.map +0 -1
  199. package/dist/hooks/use-legacy-store-events.js +0 -91
  200. package/dist/hooks/use-workspace-store-events.d.ts +0 -4
  201. package/dist/hooks/use-workspace-store-events.d.ts.map +0 -1
  202. package/dist/hooks/use-workspace-store-events.js +0 -68
@@ -0,0 +1,70 @@
1
+ import { defineComponent, computed, watch, createBlock, createCommentVNode, openBlock, unref } from "vue";
2
+ import { AuthSelector } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
3
+ import { getSecurityRequirements, getSelectedSecurity } from "@scalar/api-client/v2/features/operation";
4
+ import { getDefaultSecurity } from "./helpers/get-default-security.js";
5
+ const _sfc_main = /* @__PURE__ */ defineComponent({
6
+ __name: "Auth",
7
+ props: {
8
+ options: {},
9
+ document: {},
10
+ eventBus: {},
11
+ securitySchemes: {},
12
+ selectedServer: {},
13
+ environment: {}
14
+ },
15
+ setup(__props) {
16
+ const securityRequirements = computed(
17
+ () => getSecurityRequirements(__props.document?.security)
18
+ );
19
+ const selectedSecurity = computed(
20
+ () => getSelectedSecurity(
21
+ __props.document?.["x-scalar-selected-security"],
22
+ void 0,
23
+ securityRequirements.value
24
+ )
25
+ );
26
+ watch(
27
+ () => __props.document?.["x-scalar-selected-security"],
28
+ (documentSelectedSecurity) => {
29
+ if (typeof documentSelectedSecurity !== "undefined") {
30
+ return;
31
+ }
32
+ const defaultSecurity = getDefaultSecurity(
33
+ securityRequirements.value,
34
+ __props.options.authentication?.preferredSecurityScheme,
35
+ __props.securitySchemes
36
+ );
37
+ if (!defaultSecurity) {
38
+ return;
39
+ }
40
+ __props.eventBus.emit("auth:update:selected-security-schemes", {
41
+ selectedRequirements: [defaultSecurity],
42
+ newSchemes: [],
43
+ meta: { type: "document" }
44
+ });
45
+ },
46
+ { immediate: true }
47
+ );
48
+ return (_ctx, _cache) => {
49
+ return Object.keys(_ctx.securitySchemes).length ? (openBlock(), createBlock(unref(AuthSelector), {
50
+ key: 0,
51
+ environment: _ctx.environment,
52
+ eventBus: _ctx.eventBus,
53
+ isReadOnly: "",
54
+ isStatic: "",
55
+ layout: "reference",
56
+ meta: { type: "document" },
57
+ persistAuth: _ctx.options.persistAuth,
58
+ proxyUrl: _ctx.options.proxyUrl ?? "",
59
+ securityRequirements: securityRequirements.value,
60
+ securitySchemes: _ctx.securitySchemes,
61
+ selectedSecurity: selectedSecurity.value,
62
+ server: _ctx.selectedServer,
63
+ title: "Authentication"
64
+ }, null, 8, ["environment", "eventBus", "persistAuth", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"])) : createCommentVNode("", true);
65
+ };
66
+ }
67
+ });
68
+ export {
69
+ _sfc_main as default
70
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./Auth.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -0,0 +1,18 @@
1
+ import type { MergedSecuritySchemes } from '@scalar/api-client/v2/blocks/scalar-auth-selector-block';
2
+ import type { AuthenticationConfiguration } from '@scalar/types/api-reference';
3
+ import type { SecurityRequirementObject, SecuritySchemeObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
4
+ /**
5
+ * Extracts the default scopes for a security scheme.
6
+ * Only OAuth2 schemes can have default scopes via the x-default-scopes extension.
7
+ */
8
+ export declare const getDefaultScopes: (scheme: SecuritySchemeObject | undefined) => string[];
9
+ /**
10
+ * Determines the default security scheme to use for an operation.
11
+ *
12
+ * Priority order:
13
+ * 1. User-configured preferred security scheme (if provided)
14
+ * 2. First security requirement from the OpenAPI spec
15
+ * 3. null (no security required)
16
+ */
17
+ export declare const getDefaultSecurity: (securityRequirements: SecurityRequirementObject[], preferredSecurityScheme: AuthenticationConfiguration["preferredSecurityScheme"], securitySchemes: MergedSecuritySchemes) => SecurityRequirementObject | null;
18
+ //# sourceMappingURL=get-default-security.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-default-security.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Auth/helpers/get-default-security.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAA;AACpG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAG9E,OAAO,KAAK,EACV,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,8DAA8D,CAAA;AAErE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,oBAAoB,GAAG,SAAS,KAAG,MAAM,EAMjF,CAAA;AA2CD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAC7B,sBAAsB,yBAAyB,EAAE,EACjD,yBAAyB,2BAA2B,CAAC,yBAAyB,CAAC,EAC/E,iBAAiB,qBAAqB,KACrC,yBAAyB,GAAG,IAW9B,CAAA"}
@@ -0,0 +1,43 @@
1
+ import { getResolvedRef } from "@scalar/workspace-store/helpers/get-resolved-ref";
2
+ import { unpackProxyObject } from "@scalar/workspace-store/helpers/unpack-proxy";
3
+ const getDefaultScopes = (scheme) => {
4
+ if (!scheme || scheme.type !== "oauth2") {
5
+ return [];
6
+ }
7
+ return scheme["x-default-scopes"] ?? [];
8
+ };
9
+ const addSchemeToRequirement = (acc, schemeName, securitySchemes) => {
10
+ const scheme = getResolvedRef(securitySchemes[schemeName]);
11
+ acc[schemeName] = getDefaultScopes(scheme);
12
+ };
13
+ const buildSecurityRequirementFromPreferred = (preferredSecurityScheme, securitySchemes) => {
14
+ if (!Array.isArray(preferredSecurityScheme)) {
15
+ const scheme = getResolvedRef(securitySchemes[preferredSecurityScheme]);
16
+ return { [preferredSecurityScheme]: getDefaultScopes(scheme) };
17
+ }
18
+ const requirement = {};
19
+ for (const item of preferredSecurityScheme) {
20
+ if (Array.isArray(item)) {
21
+ for (const schemeName of item) {
22
+ addSchemeToRequirement(requirement, schemeName, securitySchemes);
23
+ }
24
+ } else {
25
+ addSchemeToRequirement(requirement, item, securitySchemes);
26
+ }
27
+ }
28
+ return requirement;
29
+ };
30
+ const getDefaultSecurity = (securityRequirements, preferredSecurityScheme, securitySchemes) => {
31
+ if (preferredSecurityScheme) {
32
+ return buildSecurityRequirementFromPreferred(preferredSecurityScheme, securitySchemes);
33
+ }
34
+ const firstRequirement = securityRequirements[0];
35
+ if (firstRequirement) {
36
+ return unpackProxyObject(firstRequirement, { depth: 1 });
37
+ }
38
+ return null;
39
+ };
40
+ export {
41
+ getDefaultScopes,
42
+ getDefaultSecurity
43
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Auth } from './Auth.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Auth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA"}
@@ -1,33 +1,23 @@
1
- import type { Server } from '@scalar/oas-utils/entities/spec';
2
- import type { AvailableClients } from '@scalar/snippetz';
3
- import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
1
+ import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
4
2
  import type { Heading } from '@scalar/types/legacy';
3
+ import type { AvailableClients } from '@scalar/types/snippetz';
5
4
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
5
+ import type { XScalarEnvironment } from '@scalar/workspace-store/schemas/extensions/document/x-scalar-environments';
6
6
  import type { TraversedEntry as TraversedEntryType } from '@scalar/workspace-store/schemas/navigation';
7
7
  import type { Workspace, WorkspaceDocument } from '@scalar/workspace-store/schemas/workspace';
8
- import type { SecuritySchemeGetter } from '../../helpers/map-config-to-client-store.js';
9
8
  type __VLS_Props = {
10
- activeServer: Server | undefined;
11
9
  infoSectionId: string;
10
+ /** The subset of the configuration object required for the content component */
11
+ options: Pick<ApiReferenceConfigurationRaw, 'authentication' | 'documentDownloadType' | 'expandAllResponses' | 'hideTestRequestButton' | 'layout' | 'orderRequiredPropertiesFirst' | 'orderSchemaPropertiesBy' | 'persistAuth' | 'proxyUrl' | 'showOperationId'>;
12
12
  document: WorkspaceDocument | undefined;
13
+ httpClients: AvailableClients;
13
14
  xScalarDefaultClient: Workspace['x-scalar-default-client'];
14
- getSecuritySchemes: SecuritySchemeGetter;
15
15
  items: TraversedEntryType[];
16
16
  expandedItems: Record<string, boolean>;
17
17
  eventBus: WorkspaceEventBus;
18
- options: {
19
- httpClients: AvailableClients;
20
- layout: 'modern' | 'classic';
21
- persistAuth: boolean;
22
- showOperationId?: boolean | undefined;
23
- hideTestRequestButton: boolean | undefined;
24
- expandAllResponses?: boolean;
25
- expandAllModelSections: boolean | undefined;
26
- orderRequiredPropertiesFirst: boolean | undefined;
27
- orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
28
- documentDownloadType: ApiReferenceConfiguration['documentDownloadType'];
29
- headingSlugGenerator: (heading: Heading) => string;
30
- };
18
+ environment: XScalarEnvironment;
19
+ /** Heading id generator for Markdown headings */
20
+ headingSlugGenerator: (heading: Heading) => string;
31
21
  };
32
22
  declare var __VLS_5: {}, __VLS_50: {}, __VLS_59: {};
33
23
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAmLA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2CAA2C,CAAA;AAclD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC1D,kBAAkB,EAAE,oBAAoB,CAAA;IACxC,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,OAAO,EAAE;QACP,WAAW,EAAE,gBAAgB,CAAA;QAC7B,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAA;QAC5B,WAAW,EAAE,OAAO,CAAA;QACpB,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;QACrC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,CAAC,EAAE,OAAO,CAAA;QAC5B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;QACzD,oBAAoB,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;QACvE,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;KACnD,CAAA;CACF,CAAC;AA8RF,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA2LA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACtG,OAAO,KAAK,EACV,SAAS,EACT,iBAAiB,EAClB,MAAM,2CAA2C,CAAA;AAelD,KAAK,WAAW,GAAG;IACf,aAAa,EAAE,MAAM,CAAA;IACrB,gFAAgF;IAChF,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC1B,gBAAgB,GAChB,sBAAsB,GACtB,oBAAoB,GACpB,uBAAuB,GACvB,QAAQ,GACR,8BAA8B,GAC9B,yBAAyB,GACzB,aAAa,GACb,UAAU,GACV,iBAAiB,CACpB,CAAA;IACD,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAA;IACvC,WAAW,EAAE,gBAAgB,CAAA;IAC7B,oBAAoB,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAA;IAC1D,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,WAAW,EAAE,kBAAkB,CAAA;IAC/B,iDAAiD;IACjD,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;CACnD,CAAC;AAiRJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GACnD;IAAE,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAkC5C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +1,9 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, Fragment, createVNode, createElementVNode, unref, renderSlot, createBlock, createCommentVNode, withCtx } from "vue";
2
2
  import { generateClientOptions } from "@scalar/api-client/v2/blocks/operation-code-sample";
3
+ import { mergeAuthConfig } from "@scalar/api-client/v2/blocks/scalar-auth-selector-block";
4
+ import { getSelectedServer } from "@scalar/api-client/v2/features/operation";
3
5
  import { ScalarErrorBoundary } from "@scalar/components";
4
- import _sfc_main$4 from "./Operations/TraversedEntry.vue.js";
6
+ import _sfc_main$5 from "./Operations/TraversedEntry.vue.js";
5
7
  import _sfc_main$1 from "../Lazy/Lazy.vue.js";
6
8
  import { firstLazyLoadComplete } from "../../helpers/lazy-bus.js";
7
9
  import { getXKeysFromObject } from "../../features/specification-extension/helpers.js";
@@ -9,9 +11,9 @@ import SectionFlare from "../SectionFlare/SectionFlare.vue.js";
9
11
  import _sfc_main$2 from "../../blocks/scalar-info-block/components/InfoBlock.vue.js";
10
12
  import IntroductionCardItem from "../../blocks/scalar-info-block/components/IntroductionCardItem.vue.js";
11
13
  import _sfc_main$3 from "../../blocks/scalar-server-selector-block/components/ServerSelector.vue.js";
12
- import AuthSelector from "../../blocks/scalar-auth-selector-block/components/AuthSelector.vue.js";
14
+ import _sfc_main$4 from "./Auth/Auth.vue.js";
13
15
  import ClientSelector from "../../blocks/scalar-client-selector-block/components/ClientSelector.vue.js";
14
- import _sfc_main$5 from "../RenderPlugins/RenderPlugins.vue.js";
16
+ import _sfc_main$6 from "../RenderPlugins/RenderPlugins.vue.js";
15
17
  const _hoisted_1 = { class: "narrow-references-container" };
16
18
  const _hoisted_2 = {
17
19
  key: 1,
@@ -20,20 +22,28 @@ const _hoisted_2 = {
20
22
  const _sfc_main = /* @__PURE__ */ defineComponent({
21
23
  __name: "Content",
22
24
  props: {
23
- activeServer: {},
24
25
  infoSectionId: {},
26
+ options: {},
25
27
  document: {},
28
+ httpClients: {},
26
29
  xScalarDefaultClient: {},
27
- getSecuritySchemes: { type: Function },
28
30
  items: {},
29
31
  expandedItems: {},
30
32
  eventBus: {},
31
- options: {}
33
+ environment: {},
34
+ headingSlugGenerator: { type: Function }
32
35
  },
33
36
  setup(__props) {
34
- const clientOptions = computed(() => generateClientOptions(__props.options.httpClients));
37
+ const clientOptions = computed(() => generateClientOptions(__props.httpClients));
35
38
  const documentExtensions = computed(() => getXKeysFromObject(__props.document));
36
39
  const infoExtensions = computed(() => getXKeysFromObject(__props.document?.info));
40
+ const selectedServer = computed(() => getSelectedServer(__props.document ?? null));
41
+ const securitySchemes = computed(
42
+ () => mergeAuthConfig(
43
+ __props.document?.components?.securitySchemes,
44
+ __props.options.authentication?.securitySchemes
45
+ )
46
+ );
37
47
  return (_ctx, _cache) => {
38
48
  return openBlock(), createElementBlock(Fragment, null, [
39
49
  createVNode(unref(SectionFlare)),
@@ -46,18 +56,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
56
  default: withCtx(() => [
47
57
  createVNode(unref(_sfc_main$2), {
48
58
  id: _ctx.infoSectionId,
59
+ documentDownloadType: _ctx.options.documentDownloadType,
49
60
  documentExtensions: documentExtensions.value,
50
61
  eventBus: _ctx.eventBus,
51
62
  externalDocs: _ctx.document?.externalDocs,
63
+ headingSlugGenerator: _ctx.headingSlugGenerator,
52
64
  info: _ctx.document?.info,
53
65
  infoExtensions: infoExtensions.value,
54
66
  layout: _ctx.options.layout,
55
- oasVersion: _ctx.document?.["x-original-oas-version"],
56
- options: {
57
- headingSlugGenerator: _ctx.options.headingSlugGenerator,
58
- documentDownloadType: _ctx.options.documentDownloadType,
59
- layout: _ctx.options.layout
60
- }
67
+ oasVersion: _ctx.document?.["x-original-oas-version"]
61
68
  }, {
62
69
  selectors: withCtx(() => [
63
70
  createVNode(unref(ScalarErrorBoundary), null, {
@@ -68,9 +75,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
75
  }, {
69
76
  default: withCtx(() => [
70
77
  createVNode(unref(_sfc_main$3), {
71
- servers: _ctx.document?.servers ?? [],
72
- xSelectedServer: _ctx.document?.["x-scalar-active-server"]
73
- }, null, 8, ["servers", "xSelectedServer"])
78
+ eventBus: _ctx.eventBus,
79
+ selectedServer: selectedServer.value,
80
+ servers: _ctx.document?.servers ?? []
81
+ }, null, 8, ["eventBus", "selectedServer", "servers"])
74
82
  ]),
75
83
  _: 1
76
84
  })) : createCommentVNode("", true)
@@ -84,13 +92,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
92
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
85
93
  }, {
86
94
  default: withCtx(() => [
87
- Object.keys(_ctx.document?.components?.securitySchemes ?? {}).length ? (openBlock(), createBlock(unref(AuthSelector), {
88
- key: 0,
89
- layout: "reference",
90
- persistAuth: _ctx.options.persistAuth,
91
- server: _ctx.activeServer,
92
- title: "Authentication"
93
- }, null, 8, ["persistAuth", "server"])) : createCommentVNode("", true)
95
+ createVNode(unref(_sfc_main$4), {
96
+ document: _ctx.document,
97
+ environment: _ctx.environment,
98
+ eventBus: _ctx.eventBus,
99
+ options: _ctx.options,
100
+ securitySchemes: securitySchemes.value,
101
+ selectedServer: selectedServer.value
102
+ }, null, 8, ["document", "environment", "eventBus", "options", "securitySchemes", "selectedServer"])
94
103
  ]),
95
104
  _: 1
96
105
  })) : createCommentVNode("", true)
@@ -107,9 +116,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
107
116
  createVNode(unref(ClientSelector), {
108
117
  class: "introduction-card-item scalar-reference-intro-clients",
109
118
  clientOptions: clientOptions.value,
110
- xScalarSdkInstallation: _ctx.document?.info?.["x-scalar-sdk-installation"],
111
- xSelectedClient: _ctx.xScalarDefaultClient
112
- }, null, 8, ["clientOptions", "xScalarSdkInstallation", "xSelectedClient"])
119
+ eventBus: _ctx.eventBus,
120
+ selectedClient: _ctx.xScalarDefaultClient,
121
+ xScalarSdkInstallation: _ctx.document?.info?.["x-scalar-sdk-installation"]
122
+ }, null, 8, ["clientOptions", "eventBus", "selectedClient", "xScalarSdkInstallation"])
113
123
  ]),
114
124
  _: 1
115
125
  })) : createCommentVNode("", true)
@@ -118,34 +128,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
128
  })
119
129
  ]),
120
130
  _: 1
121
- }, 8, ["id", "documentExtensions", "eventBus", "externalDocs", "info", "infoExtensions", "layout", "oasVersion", "options"])
131
+ }, 8, ["id", "documentDownloadType", "documentExtensions", "eventBus", "externalDocs", "headingSlugGenerator", "info", "infoExtensions", "layout", "oasVersion"])
122
132
  ]),
123
133
  _: 3
124
134
  }, 8, ["id"]),
125
- _ctx.items.length ? (openBlock(), createBlock(_sfc_main$4, {
135
+ _ctx.items.length && _ctx.document ? (openBlock(), createBlock(_sfc_main$5, {
126
136
  key: 0,
127
- activeServer: _ctx.activeServer,
137
+ clientOptions: clientOptions.value,
138
+ document: _ctx.document,
128
139
  entries: _ctx.items,
129
140
  eventBus: _ctx.eventBus,
130
141
  expandedItems: _ctx.expandedItems,
131
- getSecuritySchemes: _ctx.getSecuritySchemes,
132
- options: {
133
- layout: _ctx.options.layout ?? "modern",
134
- showOperationId: _ctx.options.showOperationId,
135
- hideTestRequestButton: _ctx.options.hideTestRequestButton,
136
- expandAllResponses: _ctx.options.expandAllResponses,
137
- clientOptions: clientOptions.value,
138
- orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
139
- orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy,
140
- expandAllModelSections: _ctx.options.expandAllModelSections
141
- },
142
- paths: _ctx.document?.paths ?? {},
143
- schemas: _ctx.document?.components?.schemas ?? {},
144
- security: _ctx.document?.security,
145
- webhooks: _ctx.document?.webhooks ?? {},
146
- xScalarDefaultClient: _ctx.xScalarDefaultClient
147
- }, null, 8, ["activeServer", "entries", "eventBus", "expandedItems", "getSecuritySchemes", "options", "paths", "schemas", "security", "webhooks", "xScalarDefaultClient"])) : createCommentVNode("", true),
148
- createVNode(unref(_sfc_main$5), {
142
+ options: _ctx.options,
143
+ securitySchemes: securitySchemes.value,
144
+ selectedClient: _ctx.xScalarDefaultClient,
145
+ selectedServer: selectedServer.value
146
+ }, null, 8, ["clientOptions", "document", "entries", "eventBus", "expandedItems", "options", "securitySchemes", "selectedClient", "selectedServer"])) : createCommentVNode("", true),
147
+ createVNode(unref(_sfc_main$6), {
149
148
  options: _ctx.options,
150
149
  viewName: "content.end"
151
150
  }, null, 8, ["options"]),
@@ -1,16 +1,13 @@
1
+ import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
1
2
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
3
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
4
  type __VLS_Props = {
4
5
  id: string;
5
6
  name: string;
7
+ options: Pick<ApiReferenceConfigurationRaw, 'layout' | 'orderRequiredPropertiesFirst' | 'orderSchemaPropertiesBy'>;
6
8
  schema: SchemaObject | undefined;
7
9
  isCollapsed: boolean;
8
- eventBus: WorkspaceEventBus | null;
9
- options: {
10
- layout: 'classic' | 'modern';
11
- orderRequiredPropertiesFirst: boolean | undefined;
12
- orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
13
- };
10
+ eventBus: WorkspaceEventBus;
14
11
  };
15
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
13
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Model.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Model.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAQhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAoFF,wBAMG"}
1
+ {"version":3,"file":"Model.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Model.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAQhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,QAAQ,GAAG,8BAA8B,GAAG,yBAAyB,CACtE,CAAA;IACD,MAAM,EAAE,YAAY,GAAG,SAAS,CAAA;IAChC,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;AAoFF,wBAMG"}
@@ -7,10 +7,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  props: {
8
8
  id: {},
9
9
  name: {},
10
+ options: {},
10
11
  schema: {},
11
12
  isCollapsed: { type: Boolean },
12
- eventBus: {},
13
- options: {}
13
+ eventBus: {}
14
14
  },
15
15
  setup(__props) {
16
16
  const section = useTemplateRef("section");
@@ -2,13 +2,8 @@ import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
2
  type __VLS_Props = {
3
3
  id: string;
4
4
  isCollapsed: boolean;
5
- eventBus: WorkspaceEventBus | null;
6
- options: {
7
- layout: 'classic' | 'modern';
8
- expandAllModelSections: boolean | undefined;
9
- orderRequiredPropertiesFirst: boolean | undefined;
10
- orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
11
- };
5
+ eventBus: WorkspaceEventBus;
6
+ layout: 'classic' | 'modern';
12
7
  };
13
8
  declare var __VLS_23: {}, __VLS_43: {};
14
9
  type __VLS_Slots = {} & {
@@ -1 +1 @@
1
- {"version":3,"file":"ModelTag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelTag.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;AA+IF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ModelTag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelTag.vue"],"names":[],"mappings":"AA4DA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AASvE,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;CAC7B,CAAC;AA6IF,QAAA,IAAI,QAAQ,IAAW,EAAE,QAAQ,IAAY,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA0BhD,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -12,13 +12,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  id: {},
13
13
  isCollapsed: { type: Boolean },
14
14
  eventBus: {},
15
- options: {}
15
+ layout: {}
16
16
  },
17
17
  setup(__props) {
18
18
  return (_ctx, _cache) => {
19
19
  return openBlock(), createBlock(_sfc_main$1, { id: "models" }, {
20
20
  default: withCtx(() => [
21
- _ctx.options.layout === "modern" ? (openBlock(), createBlock(SectionContainer, {
21
+ _ctx.layout === "modern" ? (openBlock(), createBlock(SectionContainer, {
22
22
  key: 0,
23
23
  id: "model"
24
24
  }, {
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  key: 1,
45
45
  id: _ctx.id,
46
46
  class: "top-0",
47
- onClick: _cache[0] || (_cache[0] = () => _ctx.eventBus?.emit("toggle:nav-item", { id: _ctx.id, open: true }))
47
+ onClick: _cache[0] || (_cache[0] = () => _ctx.eventBus.emit("toggle:nav-item", { id: _ctx.id, open: true }))
48
48
  }, null, 8, ["id"]))
49
49
  ]),
50
50
  _: 3
@@ -1,3 +1,4 @@
1
+ import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
1
2
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
2
3
  import type { SchemaObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
3
4
  type __VLS_Props = {
@@ -5,11 +6,8 @@ type __VLS_Props = {
5
6
  name: string;
6
7
  schema: SchemaObject;
7
8
  isCollapsed: boolean;
8
- eventBus: WorkspaceEventBus | null;
9
- options: {
10
- orderRequiredPropertiesFirst: boolean | undefined;
11
- orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
12
- };
9
+ eventBus: WorkspaceEventBus;
10
+ options: Pick<ApiReferenceConfigurationRaw, 'orderRequiredPropertiesFirst' | 'orderSchemaPropertiesBy'>;
13
11
  };
14
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
13
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Models/components/ClassicLayout.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA0KF,wBAMG"}
1
+ {"version":3,"file":"ClassicLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Models/components/ClassicLayout.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAOhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC5B,8BAA8B,GAAG,yBAAyB,CAC3D,CAAA;CACF,CAAC;;AA8JF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./ClassicLayout.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e9f2f7bc"]]);
4
+ const ClassicLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-161968a4"]]);
5
5
  export {
6
6
  ClassicLayout as default
7
7
  };
@@ -55,10 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  key: property,
56
56
  eventBus: _ctx.eventBus,
57
57
  name: property,
58
- options: {
59
- orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
60
- orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
61
- },
58
+ options: _ctx.options,
62
59
  required: _ctx.schema.required?.includes(property),
63
60
  schema: unref(getResolvedRef)(value)
64
61
  }, null, 8, ["eventBus", "name", "options", "required", "schema"]);
@@ -66,10 +63,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
63
  ])) : (openBlock(), createElementBlock("div", _hoisted_2, [
67
64
  createVNode(unref(SchemaProperty), {
68
65
  eventBus: _ctx.eventBus,
69
- options: {
70
- orderRequiredPropertiesFirst: _ctx.options.orderRequiredPropertiesFirst,
71
- orderSchemaPropertiesBy: _ctx.options.orderSchemaPropertiesBy
72
- },
66
+ options: _ctx.options,
73
67
  schema: _ctx.schema
74
68
  }, null, 8, ["eventBus", "options", "schema"])
75
69
  ]))
@@ -5,7 +5,7 @@ type __VLS_Props = {
5
5
  name: string;
6
6
  schema: SchemaObject;
7
7
  isCollapsed: boolean;
8
- eventBus: WorkspaceEventBus | null;
8
+ eventBus: WorkspaceEventBus;
9
9
  options: {
10
10
  orderRequiredPropertiesFirst: boolean | undefined;
11
11
  orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Models/components/ModernLayout.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAyHF,wBAMG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Models/components/ModernLayout.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAMhG,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,YAAY,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,OAAO,EAAE;QACP,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AAyHF,wBAMG"}
@@ -1,37 +1,32 @@
1
1
  import type { ClientOptionGroup } from '@scalar/api-client/v2/blocks/operation-code-sample';
2
- import type { Server } from '@scalar/oas-utils/entities/spec';
2
+ import type { MergedSecuritySchemes } from '@scalar/api-client/v2/blocks/scalar-auth-selector-block';
3
+ import type { ApiReferenceConfigurationRaw } from '@scalar/types/api-reference';
3
4
  import type { WorkspaceStore } from '@scalar/workspace-store/client';
4
5
  import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
6
+ import type { WorkspaceDocument } from '@scalar/workspace-store/schemas';
5
7
  import type { TraversedEntry } from '@scalar/workspace-store/schemas/navigation';
6
- import type { ComponentsObject, PathsObject, SecurityRequirementObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
7
- import type { SecuritySchemeGetter } from '../../../helpers/map-config-to-client-store.js';
8
+ import type { ServerObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
8
9
  type __VLS_Props = {
10
+ /** The level of depth */
9
11
  level?: number;
12
+ /** Traversed entries to render */
10
13
  entries: TraversedEntry[];
11
- /** The path entries from the document `document.paths` */
12
- paths: PathsObject;
13
- /** The webhook path entries from the document `document.webhooks` */
14
- webhooks: PathsObject;
15
- /** The schema entries from the document `document.components.schemas` */
16
- schemas: ComponentsObject['schemas'];
17
- /** The security requirements from the document `document.security` */
18
- security: SecurityRequirementObject[] | undefined;
19
- activeServer: Server | undefined;
20
- getSecuritySchemes: SecuritySchemeGetter;
21
- xScalarDefaultClient: WorkspaceStore['workspace']['x-scalar-default-client'];
14
+ /** The document object */
15
+ document: WorkspaceDocument;
16
+ /** The http client options for the dropdown */
17
+ clientOptions: ClientOptionGroup[];
18
+ /** The subset of the configuration object required for the operation component */
19
+ options: Pick<ApiReferenceConfigurationRaw, 'expandAllResponses' | 'hideTestRequestButton' | 'layout' | 'orderRequiredPropertiesFirst' | 'orderSchemaPropertiesBy' | 'showOperationId'>;
20
+ /** Currently selected server for the document */
21
+ selectedServer: ServerObject | null;
22
+ /** The merged security schemes for the document and the authentication configuration */
23
+ securitySchemes: MergedSecuritySchemes;
24
+ /** Currently selected http client for the document */
25
+ selectedClient: WorkspaceStore['workspace']['x-scalar-default-client'];
22
26
  /** Used to determine if an entry is collapsed */
23
27
  expandedItems: Record<string, boolean>;
24
- eventBus: WorkspaceEventBus | null;
25
- options: {
26
- layout: 'classic' | 'modern';
27
- showOperationId: boolean | undefined;
28
- hideTestRequestButton: boolean | undefined;
29
- expandAllResponses: boolean | undefined;
30
- expandAllModelSections: boolean | undefined;
31
- clientOptions: ClientOptionGroup[];
32
- orderRequiredPropertiesFirst: boolean | undefined;
33
- orderSchemaPropertiesBy: 'alpha' | 'preserve' | undefined;
34
- };
28
+ /** The event bus for the handling all events. */
29
+ eventBus: WorkspaceEventBus;
35
30
  };
36
31
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
32
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EACV,cAAc,EAMf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,yBAAyB,EAC1B,MAAM,8DAA8D,CAAA;AAQrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEhF,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0DAA0D;IAC1D,KAAK,EAAE,WAAW,CAAA;IAClB,qEAAqE;IACrE,QAAQ,EAAE,WAAW,CAAA;IACrB,yEAAyE;IACzE,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAA;IACpC,sEAAsE;IACtE,QAAQ,EAAE,yBAAyB,EAAE,GAAG,SAAS,CAAA;IACjD,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,kBAAkB,EAAE,oBAAoB,CAAA;IACxC,oBAAoB,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IAC5E,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,OAAO,EAAE;QACP,MAAM,EAAE,SAAS,GAAG,QAAQ,CAAA;QAC5B,eAAe,EAAE,OAAO,GAAG,SAAS,CAAA;QACpC,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC1C,kBAAkB,EAAE,OAAO,GAAG,SAAS,CAAA;QACvC,sBAAsB,EAAE,OAAO,GAAG,SAAS,CAAA;QAC3C,aAAa,EAAE,iBAAiB,EAAE,CAAA;QAClC,4BAA4B,EAAE,OAAO,GAAG,SAAS,CAAA;QACjD,uBAAuB,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAA;KAC1D,CAAA;CACF,CAAC;;AA6TF,wBAMG"}
1
+ {"version":3,"file":"TraversedEntry.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operations/TraversedEntry.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAC3F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAA;AACpG,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAA;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EACV,cAAc,EAMf,MAAM,4CAA4C,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAShG,KAAK,WAAW,GAAG;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kCAAkC;IAClC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,0BAA0B;IAC1B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,+CAA+C;IAC/C,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,kFAAkF;IAClF,OAAO,EAAE,IAAI,CACX,4BAA4B,EAC1B,oBAAoB,GACpB,uBAAuB,GACvB,QAAQ,GACR,8BAA8B,GAC9B,yBAAyB,GACzB,iBAAiB,CACpB,CAAA;IACD,iDAAiD;IACjD,cAAc,EAAE,YAAY,GAAG,IAAI,CAAA;IACnC,wFAAwF;IACxF,eAAe,EAAE,qBAAqB,CAAA;IACtC,sDAAsD;IACtD,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACtC,iDAAiD;IACjD,QAAQ,EAAE,iBAAiB,CAAA;CAC5B,CAAC;;AA8RF,wBAMG"}