@scalar/api-reference 1.32.6 → 1.32.7

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 (67) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/browser/standalone.js +1813 -1790
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReference.vue.js +8 -8
  6. package/dist/components/Badge/Badge.vue.js +1 -1
  7. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  9. package/dist/components/Content/Schema/Schema.vue2.js +97 -156
  10. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
  11. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
  12. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
  13. package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
  14. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
  16. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
  17. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
  18. package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
  19. package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
  20. package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
  21. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
  22. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  24. package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
  25. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
  26. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
  28. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  30. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +81 -97
  31. package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
  32. package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
  33. package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
  34. package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
  35. package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
  36. package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
  37. package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
  38. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  39. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  40. package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
  41. package/dist/features/example-request/ExampleRequest.vue.d.ts.map +1 -1
  42. package/dist/features/example-request/ExampleRequest.vue.js +1 -1
  43. package/dist/features/example-request/ExampleRequest.vue2.js +126 -124
  44. package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
  45. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  46. package/dist/helpers/convert-security-scheme.d.ts +9 -0
  47. package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
  48. package/dist/index.js +1 -1
  49. package/dist/style.css +1 -1
  50. package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
  51. package/dist/v2/ApiReferenceWorkspace.vue.js +18 -17
  52. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
  53. package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
  54. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
  55. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
  56. package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +5 -0
  57. package/dist/v2/blocks/scalar-request-example-block/index.d.ts +1 -0
  58. package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
  59. package/dist/v2/events/definitions.d.ts +6 -6
  60. package/dist/v2/events/definitions.d.ts.map +1 -1
  61. package/dist/v2/hooks/useStore.d.ts +9 -0
  62. package/dist/v2/hooks/useStore.d.ts.map +1 -0
  63. package/package.json +11 -11
  64. package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
  65. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
  66. /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
  67. /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAoUA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAyBpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,iBAAiB,EAAE,MAAM,cAAc,CAAA;CACxC,CAAC;AAuNF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;iCACM,GAAG;;;;EAaxC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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
+ {"version":3,"file":"ApiReferenceWorkspace.vue.d.ts","sourceRoot":"","sources":["../../src/v2/ApiReferenceWorkspace.vue"],"names":[],"mappings":"AAqUA,OAAO,KAAK,EACV,4BAA4B,EAE7B,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAA;AA0BpE,KAAK,WAAW,GAAG;IACjB,aAAa,CAAC,EAAE,4BAA4B,CAAA;IAC5C,iBAAiB,EAAE,MAAM,cAAc,CAAA;CACxC,CAAC;AAuNF,iBAAS,cAAc;WA0GT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;iCACM,GAAG;;;;EAaxC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,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"}
@@ -6,10 +6,11 @@ import { useSeoMeta as z } from "@unhead/vue";
6
6
  import { useFavicon as G } from "@vueuse/core";
7
7
  import H from "../components/ApiReferenceLayout.vue.js";
8
8
  import { NAV_STATE_SYMBOL as Q } from "../hooks/useNavState.js";
9
- import { useMultipleDocuments as X } from "../features/multiple-documents/useMultipleDocuments.js";
9
+ import { isClient as X } from "./blocks/scalar-request-example-block/helpers/find-client.js";
10
+ import { useMultipleDocuments as Z } from "../features/multiple-documents/useMultipleDocuments.js";
10
11
  import { onCustomEvent as v } from "./events/listeners.js";
11
- import Z from "../features/multiple-documents/DocumentSelector.vue.js";
12
- const ie = /* @__PURE__ */ V({
12
+ import ee from "../features/multiple-documents/DocumentSelector.vue.js";
13
+ const fe = /* @__PURE__ */ V({
13
14
  __name: "ApiReferenceWorkspace",
14
15
  props: {
15
16
  configuration: {},
@@ -23,7 +24,7 @@ const ie = /* @__PURE__ */ V({
23
24
  isIntersectionEnabled: g,
24
25
  hash: y,
25
26
  hashPrefix: T
26
- } = X({
27
+ } = Z({
27
28
  configuration: b(k, "configuration"),
28
29
  isIntersectionEnabled: f(!1),
29
30
  hash: f(""),
@@ -33,7 +34,7 @@ const ie = /* @__PURE__ */ V({
33
34
  t
34
35
  );
35
36
  _(Q, { isIntersectionEnabled: g, hash: y, hashPrefix: T });
36
- const c = w(null), o = k.getWorkspaceStore(), i = l, u = (e) => {
37
+ const i = w(null), o = k.getWorkspaceStore(), c = l, u = (e) => {
37
38
  if (o.workspace.documents[e.slug ?? "default"] === void 0) {
38
39
  if (e.content) {
39
40
  const t = typeof e.content == "string" ? J(e.content) : e.content;
@@ -50,27 +51,27 @@ const ie = /* @__PURE__ */ V({
50
51
  });
51
52
  }
52
53
  };
53
- i.value.forEach((e) => {
54
+ c.value.forEach((e) => {
54
55
  e.content && u(e);
55
56
  }), $(() => {
56
- i.value.forEach((e) => {
57
+ c.value.forEach((e) => {
57
58
  e.url && u(e);
58
59
  });
59
60
  }), C(() => {
60
- i.value.forEach((e) => {
61
+ c.value.forEach((e) => {
61
62
  e.url && u(e);
62
63
  });
63
- }), v(c, "scalar-update-dark-mode", (e) => {
64
- o.update("x-scalar-dark-mode", e.data.value);
65
- }), v(c, "scalar-update-active-document", (e) => {
66
- o.update("x-scalar-active-document", e.data.value);
67
- }), v(c, "scalar-update-selected-client", (e) => {
68
- o.update("x-scalar-default-client", e.data), x().setItem(h.SELECTED_CLIENT, e.data);
64
+ }), v(i, "scalar-update-dark-mode", (e) => {
65
+ o.update("x-scalar-dark-mode", e.detail.value);
66
+ }), v(i, "scalar-update-active-document", (e) => {
67
+ o.update("x-scalar-active-document", e.detail.value);
68
+ }), v(i, "scalar-update-selected-client", (e) => {
69
+ o.update("x-scalar-default-client", e.detail), x().setItem(h.SELECTED_CLIENT, e.detail);
69
70
  }), C(() => {
70
71
  const e = x().getItem(
71
72
  h.SELECTED_CLIENT
72
73
  );
73
- e && o.update("x-scalar-default-client", e);
74
+ X(e) && o.update("x-scalar-default-client", e);
74
75
  });
75
76
  const { toggleColorMode: I, isDarkMode: N } = q({
76
77
  initialColorMode: a.value.darkMode ? "dark" : void 0,
@@ -122,7 +123,7 @@ const ie = /* @__PURE__ */ V({
122
123
  p(e.$slots, "footer")
123
124
  ]),
124
125
  "document-selector": n(() => [
125
- S(r(Z), {
126
+ S(r(ee), {
126
127
  modelValue: r(s),
127
128
  "onUpdate:modelValue": t[0] || (t[0] = (m) => j(s) ? s.value = m : null),
128
129
  options: r(l)
@@ -138,5 +139,5 @@ const ie = /* @__PURE__ */ V({
138
139
  }
139
140
  });
140
141
  export {
141
- ie as default
142
+ fe as default
142
143
  };
@@ -1,3 +1,4 @@
1
+ import { type ScalarComboboxOption } from '@scalar/components';
1
2
  import type { ExampleObject } from '@scalar/workspace-store/schemas/v3.1/strict/example';
2
3
  type __VLS_Props = {
3
4
  examples: Record<string, ExampleObject>;
@@ -5,7 +6,11 @@ type __VLS_Props = {
5
6
  type __VLS_PublicProps = {
6
7
  modelValue: string;
7
8
  } & __VLS_Props;
8
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
10
+ getLabel: (key: string | null) => string;
11
+ selectedExample: import("vue").ComputedRef<ScalarComboboxOption>;
12
+ selectedExampleKey: import("vue").ModelRef<string, string, string, string>;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
14
  "update:modelValue": (value: string) => any;
10
15
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
16
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAA;AAKxF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CACxC,CAAC;AA2CF,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;CAClB,GAAG,WAAW,CAAC;;;;;;AAyGhB,wBAQG"}
1
+ {"version":3,"file":"ExamplePicker.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue"],"names":[],"mappings":"AA2EA,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAA;AAKxF,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;CACxC,CAAC;AAuDF,KAAK,iBAAiB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;CAClB,GAAG,WAAW,CAAC;;oBAnCO,MAAM,GAAG,IAAI;;;;;;;;AA4IpC,wBASG"}
@@ -1,5 +1,7 @@
1
1
  import type { ClientOption, ClientOptionGroup } from '../../../../v2/blocks/scalar-request-example-block/types';
2
- import type { AvailableClients } from '@scalar/snippetz';
2
+ import { type AvailableClients } from '@scalar/snippetz';
3
+ /** Type guard to check if a string is a valid client id */
4
+ export declare const isClient: (id: any) => id is AvailableClients[number];
3
5
  /**
4
6
  * Finds and returns the appropriate client option from a list of client option groups.
5
7
  *
@@ -1 +1 @@
1
- {"version":3,"file":"find-client.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/find-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AACrG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAIxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,UAAU,iBACP,iBAAiB,EAAE,aACtB,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,KAC9C,YAwBF,CAAA"}
1
+ {"version":3,"file":"find-client.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-request-example-block/helpers/find-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAA;AACrG,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAI3E,2DAA2D;AAC3D,eAAO,MAAM,QAAQ,OAAQ,GAAG,KAAG,EAAE,IAAI,gBAAgB,CAAC,MAAM,CAAmC,CAAA;AAEnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,UAAU,iBACP,iBAAiB,EAAE,aACtB,gBAAgB,CAAC,MAAM,CAAC,GAAG,SAAS,KAC9C,YAwBF,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { AVAILABLE_CLIENTS as o } from "@scalar/snippetz";
2
+ const e = (i) => o.includes(i);
3
+ export {
4
+ e as isClient
5
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as RequestExample } from './components/RequestExample.vue';
2
+ export { default as ExamplePicker } from './components/ExamplePicker.vue';
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,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"}
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.7",
24
24
  "engines": {
25
25
  "node": ">=20"
26
26
  },
@@ -54,21 +54,21 @@
54
54
  "nanoid": "5.1.5",
55
55
  "vue": "^3.5.12",
56
56
  "zod": "3.24.1",
57
- "@scalar/components": "0.14.17",
58
- "@scalar/api-client": "2.5.16",
57
+ "@scalar/api-client": "2.5.17",
58
+ "@scalar/code-highlight": "0.1.7",
59
59
  "@scalar/helpers": "0.0.6",
60
- "@scalar/icons": "0.4.6",
61
- "@scalar/oas-utils": "0.4.12",
60
+ "@scalar/components": "0.14.18",
61
+ "@scalar/oas-utils": "0.4.13",
62
62
  "@scalar/object-utils": "1.2.2",
63
+ "@scalar/icons": "0.4.6",
63
64
  "@scalar/openapi-parser": "0.18.1",
64
- "@scalar/themes": "0.13.9",
65
+ "@scalar/openapi-types": "0.3.5",
65
66
  "@scalar/snippetz": "0.4.1",
67
+ "@scalar/themes": "0.13.9",
66
68
  "@scalar/types": "0.2.8",
67
- "@scalar/openapi-types": "0.3.5",
68
- "@scalar/code-highlight": "0.1.6",
69
69
  "@scalar/use-hooks": "0.2.4",
70
70
  "@scalar/use-toasts": "0.8.0",
71
- "@scalar/workspace-store": "0.9.0"
71
+ "@scalar/workspace-store": "0.10.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@tailwindcss/vite": "^4.1.7",
@@ -86,8 +86,8 @@
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",
90
- "@scalar/react-renderer": "0.2.1"
89
+ "@scalar/react-renderer": "0.2.1",
90
+ "@scalar/galaxy": "0.5.3"
91
91
  },
92
92
  "scripts": {
93
93
  "build": "pnpm build:default && pnpm build:standalone && pnpm types:build && tsc-alias -p tsconfig.build.json",
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatExample.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/formatExample.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAkD/D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}