@scalar/api-reference 1.32.6 → 1.32.8

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 (186) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/browser/standalone.js +16427 -16210
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Anchor/Anchor.vue2.js +2 -1
  5. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReference.vue.js +8 -8
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +164 -176
  10. package/dist/components/Badge/Badge.vue.js +1 -1
  11. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Content.vue.js +2 -2
  13. package/dist/components/Content/Content.vue2.js +20 -20
  14. package/dist/components/Content/Models/Models.vue2.js +5 -4
  15. package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
  16. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  18. package/dist/components/Content/Schema/Schema.vue2.js +99 -157
  19. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
  20. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
  22. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
  23. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
  26. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
  27. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
  29. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
  30. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
  31. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  33. package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
  34. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  35. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
  36. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +95 -104
  40. package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
  41. package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
  42. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
  43. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
  44. package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
  45. package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
  46. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  47. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  48. package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
  49. package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
  50. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  51. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  52. package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
  53. package/dist/components/Content/Tag/Tag.vue.js +2 -1
  54. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  55. package/dist/components/GettingStarted.vue2.js +8 -6
  56. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  57. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  58. package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
  59. package/dist/components/Section/SectionAccordion.vue.js +1 -1
  60. package/dist/components/Section/SectionAccordion.vue2.js +28 -29
  61. package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
  62. package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
  63. package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
  64. package/dist/features/Operation/Operation.vue.d.ts +6 -6
  65. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  66. package/dist/features/Operation/Operation.vue.js +50 -49
  67. package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
  68. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  69. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
  70. package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
  71. package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
  72. package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
  73. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
  74. package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
  75. package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
  76. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
  77. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  79. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
  80. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
  81. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  83. package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
  84. package/dist/features/Search/SearchButton.vue.js +2 -1
  85. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  86. package/dist/features/Search/SearchModal.vue.js +2 -2
  87. package/dist/features/Search/SearchModal.vue2.js +16 -16
  88. package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
  89. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  90. package/dist/features/download-link/DownloadLink.vue2.js +4 -2
  91. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  92. package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
  93. package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
  94. package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
  95. package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
  96. package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
  97. package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
  98. package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
  99. package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
  100. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  101. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  102. package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
  103. package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
  104. package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
  105. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  106. package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
  107. package/dist/helpers/convert-security-scheme.d.ts +9 -0
  108. package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
  109. package/dist/helpers/convert-security-scheme.js +23 -0
  110. package/dist/index.d.ts +0 -2
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +15 -29
  113. package/dist/style.css +1 -1
  114. package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
  115. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  116. package/dist/v2/ApiReferenceWorkspace.vue.js +114 -86
  117. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
  118. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  119. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
  120. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
  121. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
  122. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
  123. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
  124. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
  125. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  126. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +22 -0
  127. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
  128. package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
  129. package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
  130. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -1
  131. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
  132. package/dist/v2/events/definitions.d.ts +6 -6
  133. package/dist/v2/events/definitions.d.ts.map +1 -1
  134. package/dist/v2/events/definitions.js +7 -0
  135. package/dist/v2/events/index.d.ts +1 -1
  136. package/dist/v2/events/listeners.d.ts +1 -1
  137. package/dist/v2/hooks/useStore.d.ts +9 -0
  138. package/dist/v2/hooks/useStore.d.ts.map +1 -0
  139. package/dist/v2/hooks/useStore.js +14 -0
  140. package/package.json +24 -24
  141. package/dist/blocks/constants.js +0 -6
  142. package/dist/blocks/helpers/getPointer.js +0 -12
  143. package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
  144. package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
  145. package/dist/blocks/hooks/useBlockProps.js +0 -24
  146. package/dist/components/Card/Card.vue.d.ts +0 -18
  147. package/dist/components/Card/Card.vue.d.ts.map +0 -1
  148. package/dist/components/Card/Card.vue.js +0 -13
  149. package/dist/components/Card/CardContent.vue.d.ts +0 -19
  150. package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
  151. package/dist/components/Card/CardContent.vue.js +0 -7
  152. package/dist/components/Card/CardContent.vue2.js +0 -27
  153. package/dist/components/Card/CardFooter.vue.d.ts +0 -19
  154. package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
  155. package/dist/components/Card/CardFooter.vue.js +0 -7
  156. package/dist/components/Card/CardFooter.vue2.js +0 -24
  157. package/dist/components/Card/CardHeader.vue.d.ts +0 -20
  158. package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
  159. package/dist/components/Card/CardHeader.vue.js +0 -7
  160. package/dist/components/Card/CardHeader.vue2.js +0 -31
  161. package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
  162. package/dist/components/Card/CardTab.vue.js +0 -7
  163. package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
  164. package/dist/components/Card/CardTabHeader.vue.js +0 -7
  165. package/dist/components/Card/index.d.ts +0 -7
  166. package/dist/components/Card/index.d.ts.map +0 -1
  167. package/dist/components/Card/types.d.ts +0 -8
  168. package/dist/components/Card/types.d.ts.map +0 -1
  169. package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
  170. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
  171. package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
  172. package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
  173. package/dist/features/example-request/ExamplePicker.vue.js +0 -7
  174. package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
  175. package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
  176. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
  177. package/dist/features/example-request/ExampleRequest.vue.js +0 -7
  178. package/dist/features/example-request/ExampleRequest.vue2.js +0 -359
  179. package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
  180. package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
  181. package/dist/features/example-request/TextSelect.vue.js +0 -48
  182. package/dist/features/example-request/TextSelect.vue3.js +0 -5
  183. package/dist/features/example-request/index.d.ts +0 -3
  184. package/dist/features/example-request/index.d.ts.map +0 -1
  185. /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
  186. /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
@@ -0,0 +1,35 @@
1
+ import { snippetz as a } from "@scalar/snippetz";
2
+ import { capitalize as r } from "vue";
3
+ const f = (l) => `custom/${l.lang}`, u = (l, i) => {
4
+ const o = a().clients().flatMap((t) => {
5
+ const n = t.clients.flatMap((e) => {
6
+ const c = `${t.key}/${e.client}`;
7
+ return i && !i.includes(c) ? [] : {
8
+ id: c,
9
+ lang: e.client === "curl" ? "curl" : t.key,
10
+ title: `${r(t.title)} ${e.title}`,
11
+ label: e.title
12
+ };
13
+ });
14
+ return n.length === 0 ? [] : {
15
+ label: t.title,
16
+ options: n
17
+ };
18
+ }), s = l.map((t) => {
19
+ const n = f(t), e = t.label || t.lang || n;
20
+ return {
21
+ id: n,
22
+ lang: t.lang || "plaintext",
23
+ title: e,
24
+ label: e
25
+ };
26
+ });
27
+ return s.length > 0 && o.unshift({
28
+ label: "Code Examples",
29
+ options: s
30
+ }), o;
31
+ };
32
+ export {
33
+ u as generateClientOptions,
34
+ f as generateCustomId
35
+ };
@@ -0,0 +1,29 @@
1
+ import { operationToHar as u } from "@scalar/oas-utils/helpers/operation-to-har";
2
+ import { isReference as d } from "@scalar/workspace-store/schemas/v3.1/type-guard";
3
+ import { getSnippet as l } from "@scalar/api-client/views/Components/CodeSnippet";
4
+ const S = ({
5
+ clientId: t,
6
+ operation: e,
7
+ method: o,
8
+ path: n,
9
+ example: i,
10
+ contentType: p,
11
+ server: s,
12
+ securitySchemes: a
13
+ }) => {
14
+ if (d(e))
15
+ return "";
16
+ const c = u({
17
+ operation: e,
18
+ contentType: p,
19
+ method: o,
20
+ path: n,
21
+ server: s,
22
+ securitySchemes: a,
23
+ example: i
24
+ }), [m, f] = t.split("/"), [r, g] = l(m, f, c);
25
+ return r ? r.message ?? "Error generating code snippet" : g;
26
+ };
27
+ export {
28
+ S as generateCodeSnippet
29
+ };
@@ -0,0 +1,10 @@
1
+ import { isDefined as o } from "@scalar/helpers/array/is-defined";
2
+ const e = (t) => t.flatMap((r) => r.type === "apiKey" ? r["x-scalar-secret-token"] : (r == null ? void 0 : r.type) === "http" ? [
3
+ r["x-scalar-secret-token"],
4
+ r["x-scalar-secret-username"],
5
+ r["x-scalar-secret-password"],
6
+ btoa(`${r["x-scalar-secret-username"]}:${r["x-scalar-secret-password"]}`)
7
+ ] : r.type === "oauth2" ? Object.values(r.flows).map((a) => a["x-scalar-secret-token"]) : []).filter(o);
8
+ export {
9
+ e as getSecrets
10
+ };
@@ -1,2 +1,3 @@
1
- export { default as RequestExample } from './components/RequestExample.vue';
1
+ export { default as RequestExample } from './components/RequestExample.vue.js';
2
+ export { default as ExamplePicker } from './components/ExamplePicker.vue.js';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-request-example-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/scalar-request-example-block/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAA"}
@@ -6,27 +6,27 @@ import type { AvailableClients } from '@scalar/snippetz';
6
6
  */
7
7
  export type ApiReferenceEvents = {
8
8
  'scalar-update-sidebar': {
9
- data: {
9
+ detail: {
10
10
  value: boolean;
11
11
  };
12
12
  };
13
13
  'scalar-update-dark-mode': {
14
- data: {
14
+ detail: {
15
15
  value: boolean;
16
16
  };
17
17
  };
18
18
  'scalar-update-active-document': {
19
- data: {
19
+ detail: {
20
20
  value: string;
21
21
  };
22
22
  };
23
23
  /** Controls the selected client in our code example blocks */
24
24
  'scalar-update-selected-client': {
25
- data: AvailableClients[number];
25
+ detail: AvailableClients[number];
26
26
  };
27
27
  /** Controls the selected example key in our operation blocks + children */
28
28
  'scalar-update-selected-example': {
29
- data: string;
29
+ detail: string;
30
30
  };
31
31
  };
32
32
  export type ApiReferenceEvent = Prettify<keyof ApiReferenceEvents>;
@@ -35,7 +35,7 @@ export type ApiReferenceEvent = Prettify<keyof ApiReferenceEvents>;
35
35
  *
36
36
  * Event can include typed payloads using the `data` property. A target for the dispatch must be provided.
37
37
  */
38
- export declare function emitCustomEvent<E extends ApiReferenceEvent>(target: HTMLElement, event: E, data: ApiReferenceEvents[E]['data']): void;
38
+ export declare function emitCustomEvent<E extends ApiReferenceEvent>(target: HTMLElement, event: E, detail: ApiReferenceEvents[E]['detail']): void;
39
39
  /** Type helper for expanding complex types */
40
40
  type Prettify<T> = {
41
41
  [K in keyof T]: T[K];
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/v2/events/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uBAAuB,EAAE;QACvB,IAAI,EAAE;YACJ,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,yBAAyB,EAAE;QACzB,IAAI,EAAE;YACJ,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,+BAA+B,EAAE;QAC/B,IAAI,EAAE;YACJ,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,8DAA8D;IAC9D,+BAA+B,EAAE;QAC/B,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;KAC/B,CAAA;IACD,2EAA2E;IAC3E,gCAAgC,EAAE;QAChC,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,kBAAkB,CAAC,CAAA;AAElE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,iBAAiB,EACzD,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAKpC;AAED,8CAA8C;AAC9C,KAAK,QAAQ,CAAC,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/v2/events/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,uBAAuB,EAAE;QACvB,MAAM,EAAE;YACN,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,yBAAyB,EAAE;QACzB,MAAM,EAAE;YACN,KAAK,EAAE,OAAO,CAAA;SACf,CAAA;KACF,CAAA;IACD,+BAA+B,EAAE;QAC/B,MAAM,EAAE;YACN,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;KACF,CAAA;IACD,8DAA8D;IAC9D,+BAA+B,EAAE;QAC/B,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;KACjC,CAAA;IACD,2EAA2E;IAC3E,gCAAgC,EAAE;QAChC,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,kBAAkB,CAAC,CAAA;AAElE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,iBAAiB,EACzD,MAAM,EAAE,WAAW,EACnB,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,QAKxC;AAED,8CAA8C;AAC9C,KAAK,QAAQ,CAAC,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
@@ -0,0 +1,7 @@
1
+ function o(e, t, n) {
2
+ const c = new CustomEvent(t, { detail: n, bubbles: !0, composed: !0, cancelable: !0 });
3
+ e.dispatchEvent(c);
4
+ }
5
+ export {
6
+ o as emitCustomEvent
7
+ };
@@ -1,3 +1,3 @@
1
- export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions';
1
+ export { type ApiReferenceEvents, type ApiReferenceEvent, emitCustomEvent } from './definitions.js';
2
2
  export { onCustomEvent } from './listeners.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { ApiReferenceEvent, ApiReferenceEvents } from './definitions';
1
+ import type { ApiReferenceEvent, ApiReferenceEvents } from './definitions.js';
2
2
  import { type Ref } from 'vue';
3
3
  /**
4
4
  * Vue wrapper for attaching and removing event listeners
@@ -0,0 +1,9 @@
1
+ import type { WorkspaceStore } from '@scalar/workspace-store/client';
2
+ /**
3
+ * Composable for accessing the new workspace store
4
+ *
5
+ * When called with a store it provides that store
6
+ * When called without parameters, it returns the injected store
7
+ */
8
+ export declare const useStore: (store?: WorkspaceStore) => WorkspaceStore;
9
+ //# sourceMappingURL=useStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../../src/v2/hooks/useStore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,WAAY,cAAc,mBAe9C,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { provide as r, inject as n } from "vue";
2
+ const o = Symbol(), a = (e) => {
3
+ if (e)
4
+ return r(o, e), e;
5
+ const t = n(o);
6
+ if (!t)
7
+ throw new Error(
8
+ "useStore() was called without a store and no store instance was found. Make sure to call useStore(store) in a parent component first."
9
+ );
10
+ return t;
11
+ };
12
+ export {
13
+ a as useStore
14
+ };
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.32.6",
23
+ "version": "1.32.8",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -43,42 +43,42 @@
43
43
  },
44
44
  "module": "./dist/index.js",
45
45
  "dependencies": {
46
- "@floating-ui/vue": "^1.0.2",
47
- "@headlessui/vue": "^1.7.20",
48
- "@unhead/vue": "^1.11.11",
46
+ "@floating-ui/vue": "^1.1.7",
47
+ "@headlessui/vue": "^1.7.23",
48
+ "@unhead/vue": "^1.11.20",
49
49
  "@vueuse/core": "^10.10.0",
50
- "flatted": "^3.3.1",
51
- "fuse.js": "^7.0.0",
50
+ "flatted": "^3.3.3",
51
+ "fuse.js": "^7.1.0",
52
52
  "github-slugger": "^2.0.0",
53
- "microdiff": "^1.4.0",
53
+ "microdiff": "^1.5.0",
54
54
  "nanoid": "5.1.5",
55
- "vue": "^3.5.12",
55
+ "vue": "^3.5.17",
56
56
  "zod": "3.24.1",
57
- "@scalar/components": "0.14.17",
58
- "@scalar/api-client": "2.5.16",
59
- "@scalar/helpers": "0.0.6",
57
+ "@scalar/api-client": "2.5.18",
58
+ "@scalar/code-highlight": "0.1.8",
59
+ "@scalar/components": "0.14.19",
60
60
  "@scalar/icons": "0.4.6",
61
- "@scalar/oas-utils": "0.4.12",
62
61
  "@scalar/object-utils": "1.2.2",
62
+ "@scalar/oas-utils": "0.4.14",
63
+ "@scalar/helpers": "0.0.6",
64
+ "@scalar/openapi-types": "0.3.6",
65
+ "@scalar/snippetz": "0.4.2",
66
+ "@scalar/themes": "0.13.10",
63
67
  "@scalar/openapi-parser": "0.18.1",
64
- "@scalar/themes": "0.13.9",
65
- "@scalar/snippetz": "0.4.1",
66
- "@scalar/types": "0.2.8",
67
- "@scalar/openapi-types": "0.3.5",
68
- "@scalar/code-highlight": "0.1.6",
69
68
  "@scalar/use-hooks": "0.2.4",
70
69
  "@scalar/use-toasts": "0.8.0",
71
- "@scalar/workspace-store": "0.9.0"
70
+ "@scalar/workspace-store": "0.10.1",
71
+ "@scalar/types": "0.2.9"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@tailwindcss/vite": "^4.1.7",
75
- "@types/react": "^19.0.1",
76
- "@types/react-dom": "^19.0.2",
75
+ "@types/react": "^19.1.8",
76
+ "@types/react-dom": "^19.1.6",
77
77
  "@vitejs/plugin-vue": "^5.0.4",
78
- "@vue/server-renderer": "^3.5.13",
78
+ "@vue/server-renderer": "^3.5.17",
79
79
  "@vue/test-utils": "^2.4.1",
80
- "react": "^19.0.0",
81
- "react-dom": "^19.0.0",
80
+ "react": "^19.1.0",
81
+ "react-dom": "^19.1.0",
82
82
  "rollup-plugin-webpack-stats": "^0.2.5",
83
83
  "tailwindcss": "^4.1.7",
84
84
  "vite": "5.4.19",
@@ -86,7 +86,7 @@
86
86
  "vite-plugin-css-injected-by-js": "^3.4.0",
87
87
  "vitest": "^1.6.1",
88
88
  "@scalar/build-tooling": "0.2.4",
89
- "@scalar/galaxy": "0.5.3",
89
+ "@scalar/galaxy": "0.5.4",
90
90
  "@scalar/react-renderer": "0.2.1"
91
91
  },
92
92
  "scripts": {
@@ -1,6 +0,0 @@
1
- const t = {
2
- EMPTY_PATH: "Path cannot be empty. Please provide a path to the operation you want to display."
3
- };
4
- export {
5
- t as ERRORS
6
- };
@@ -1,12 +0,0 @@
1
- import { ERRORS as n } from "../constants.js";
2
- import { escapeJsonPointer as e } from "@scalar/openapi-parser";
3
- function m(o) {
4
- o.unshift("#");
5
- const r = o.map((t) => e(t.trim())).filter(Boolean).join("/");
6
- if (r === "#")
7
- throw new Error(n.EMPTY_PATH);
8
- return r;
9
- }
10
- export {
11
- m as getPointer
12
- };
@@ -1,31 +0,0 @@
1
- import type { createWorkspaceStore } from '@scalar/api-client/store';
2
- import type { Collection } from '@scalar/oas-utils/entities/spec';
3
- import type { Request as RequestEntity } from '@scalar/oas-utils/entities/spec';
4
- import { type ComputedRef } from 'vue';
5
- export type StoreContext = ReturnType<typeof createWorkspaceStore>;
6
- export type BlockProps = {
7
- /**
8
- * The store created by `createStore`
9
- */
10
- store: StoreContext | undefined;
11
- /**
12
- * The JSON pointer to the operation to use
13
- *
14
- * @example
15
- * ```
16
- * #/paths/test/get
17
- * ```
18
- */
19
- location: `#/${string}`;
20
- /**
21
- * The collection to use
22
- */
23
- collection: Collection;
24
- };
25
- /**
26
- * Provides computed properties for the block, based on the standardized interface of the `createStore` function.
27
- */
28
- export declare function useBlockProps({ store, location, collection }: BlockProps): {
29
- operation: ComputedRef<RequestEntity | undefined>;
30
- };
31
- //# sourceMappingURL=useBlockProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBlockProps.d.ts","sourceRoot":"","sources":["../../../src/blocks/hooks/useBlockProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/E,OAAO,EAAE,KAAK,WAAW,EAAY,MAAM,KAAK,CAAA;AAGhD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,YAAY,GAAG,SAAS,CAAA;IAC/B;;;;;;;OAOG;IACH,QAAQ,EAAE,KAAK,MAAM,EAAE,CAAA;IACvB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,UAAU,GAAG;IAC1E,SAAS,EAAE,WAAW,CAAC,aAAa,GAAG,SAAS,CAAC,CAAA;CAClD,CAgCA"}
@@ -1,24 +0,0 @@
1
- import { unescapeJsonPointer as a } from "@scalar/openapi-parser";
2
- import { computed as p } from "vue";
3
- function d({ store: t, location: e, collection: o }) {
4
- return {
5
- operation: p(() => {
6
- if (!(t != null && t.collections) || !t.requests)
7
- return;
8
- const n = Object.values(t.requests).filter(
9
- (s) => o.requests.includes(s.uid)
10
- );
11
- if (!e.startsWith("#/paths/") && !e.startsWith("#/webhooks/"))
12
- throw new Error(
13
- "Invalid location, try using #/paths/$YOUR_ENDPOINT/$HTTP_METHOD. You can use the getPointer helper to generate a valid location: getPointer(['paths', '/planets/{planetId}', 'get'])"
14
- );
15
- return n.find((s) => {
16
- const r = a(e.split("/")[2]), i = e.split("/")[3].toLocaleLowerCase();
17
- return s.method === i && s.path === r;
18
- });
19
- })
20
- };
21
- }
22
- export {
23
- d as useBlockProps
24
- };
@@ -1,18 +0,0 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: {
4
- default?(_: {}): any;
5
- };
6
- refs: {};
7
- rootEl: HTMLDivElement;
8
- };
9
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
11
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
- export default _default;
13
- type __VLS_WithTemplateSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
18
- //# sourceMappingURL=Card.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.vue"],"names":[],"mappings":"AA6CA,iBAAS,cAAc;WAwCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,13 +0,0 @@
1
- import { createElementBlock as r, openBlock as t, renderSlot as o } from "vue";
2
- /* empty css */
3
- import c from "../../_virtual/_plugin-vue_export-helper.js";
4
- const n = {}, s = { class: "scalar-card" };
5
- function a(e, d) {
6
- return t(), r("div", s, [
7
- o(e.$slots, "default", {}, void 0, !0)
8
- ]);
9
- }
10
- const i = /* @__PURE__ */ c(n, [["render", a], ["__scopeId", "data-v-b5be456e"]]);
11
- export {
12
- i as default
13
- };
@@ -1,19 +0,0 @@
1
- import type { CardContentProps } from './types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: HTMLDivElement;
9
- };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
- export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
19
- //# sourceMappingURL=CardContent.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardContent.vue"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA2DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./CardContent.vue2.js";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const d = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dd83e46e"]]);
5
- export {
6
- d as default
7
- };
@@ -1,27 +0,0 @@
1
- import { defineComponent as a, createElementBlock as r, openBlock as s, normalizeClass as o, renderSlot as t } from "vue";
2
- const d = /* @__PURE__ */ a({
3
- __name: "CardContent",
4
- props: {
5
- muted: { type: Boolean },
6
- contrast: { type: Boolean },
7
- frameless: { type: Boolean },
8
- transparent: { type: Boolean },
9
- borderless: { type: Boolean }
10
- },
11
- setup(n) {
12
- return (e, l) => (s(), r("div", {
13
- class: o(["scalar-card-content", {
14
- "scalar-card--muted": e.muted,
15
- "scalar-card--contrast": e.contrast,
16
- "scalar-card--frameless": e.frameless,
17
- "scalar-card--transparent": e.transparent,
18
- "scalar-card--borderless": e.borderless
19
- }])
20
- }, [
21
- t(e.$slots, "default", {}, void 0, !0)
22
- ], 2));
23
- }
24
- });
25
- export {
26
- d as default
27
- };
@@ -1,19 +0,0 @@
1
- import type { CardContentProps } from './types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- };
7
- refs: {};
8
- rootEl: HTMLDivElement;
9
- };
10
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
12
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
- export default _default;
14
- type __VLS_WithTemplateSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
19
- //# sourceMappingURL=CardFooter.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./CardFooter.vue2.js";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7621d1be"]]);
5
- export {
6
- m as default
7
- };
@@ -1,24 +0,0 @@
1
- import { defineComponent as r, createBlock as a, openBlock as n, normalizeProps as p, guardReactiveProps as s, withCtx as l, renderSlot as d } from "vue";
2
- import c from "./CardContent.vue.js";
3
- const i = /* @__PURE__ */ r({
4
- __name: "CardFooter",
5
- props: {
6
- muted: { type: Boolean },
7
- contrast: { type: Boolean },
8
- frameless: { type: Boolean },
9
- transparent: { type: Boolean },
10
- borderless: { type: Boolean }
11
- },
12
- setup(e) {
13
- const o = e;
14
- return (t, m) => (n(), a(c, p(s(o)), {
15
- default: l(() => [
16
- d(t.$slots, "default", {}, void 0, !0)
17
- ]),
18
- _: 3
19
- }, 16));
20
- }
21
- });
22
- export {
23
- i as default
24
- };
@@ -1,20 +0,0 @@
1
- import type { CardContentProps } from './types';
2
- declare function __VLS_template(): {
3
- attrs: Partial<{}>;
4
- slots: {
5
- default?(_: {}): any;
6
- actions?(_: {}): any;
7
- };
8
- refs: {};
9
- rootEl: HTMLDivElement;
10
- };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
- declare const __VLS_component: import("vue").DefineComponent<CardContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CardContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
- export default _default;
15
- type __VLS_WithTemplateSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
- };
20
- //# sourceMappingURL=CardHeader.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAmDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./CardHeader.vue2.js";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-34675578"]]);
5
- export {
6
- m as default
7
- };
@@ -1,31 +0,0 @@
1
- import { defineComponent as s, createBlock as d, openBlock as c, mergeProps as l, withCtx as n, createElementVNode as e, renderSlot as r } from "vue";
2
- import p from "./CardContent.vue.js";
3
- const i = { class: "scalar-card-header-slots" }, h = { class: "scalar-card-header-slot scalar-card-header-title" }, m = { class: "scalar-card-header-slot scalar-card-header-actions" }, B = /* @__PURE__ */ s({
4
- __name: "CardHeader",
5
- props: {
6
- muted: { type: Boolean },
7
- contrast: { type: Boolean },
8
- frameless: { type: Boolean },
9
- transparent: { type: Boolean },
10
- borderless: { type: Boolean }
11
- },
12
- setup(t) {
13
- const o = t;
14
- return (a, _) => (c(), d(p, l(o, { class: "scalar-card-header" }), {
15
- default: n(() => [
16
- e("div", i, [
17
- e("div", h, [
18
- r(a.$slots, "default", {}, void 0, !0)
19
- ]),
20
- e("div", m, [
21
- r(a.$slots, "actions", {}, void 0, !0)
22
- ])
23
- ])
24
- ]),
25
- _: 3
26
- }, 16));
27
- }
28
- });
29
- export {
30
- B as default
31
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardTab.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTab.vue"],"names":[],"mappings":"AAkFA,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import a from "./CardTab.vue2.js";
2
- /* empty css */
3
- import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(a, [["__scopeId", "data-v-faa0eb23"]]);
5
- export {
6
- m as default
7
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardTabHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardTabHeader.vue"],"names":[],"mappings":"AA+DA,iBAAS,cAAc;WAuFT,OAAO,IAA6B;;yBATpB,GAAG;yBACH,GAAG;;;;EAahC;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;4FAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./CardTabHeader.vue2.js";
2
- /* empty css */
3
- import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e70e2978"]]);
5
- export {
6
- m as default
7
- };
@@ -1,7 +0,0 @@
1
- export { default as Card } from './Card.vue.js';
2
- export { default as CardHeader } from './CardHeader.vue.js';
3
- export { default as CardContent } from './CardContent.vue.js';
4
- export { default as CardFooter } from './CardFooter.vue.js';
5
- export { default as CardTabHeader } from './CardTabHeader.vue.js';
6
- export { default as CardTab } from './CardTab.vue.js';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -1,8 +0,0 @@
1
- export type CardContentProps = {
2
- muted?: boolean;
3
- contrast?: boolean;
4
- frameless?: boolean;
5
- transparent?: boolean;
6
- borderless?: boolean;
7
- };
8
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Card/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA"}