@scalar/api-reference 1.25.9 → 1.25.11

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 (122) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/browser/standalone.js +14512 -14482
  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 +43 -42
  6. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  8. package/dist/components/ApiReferenceLayout.vue2.js +51 -48
  9. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Models/Models.vue.js +2 -2
  11. package/dist/components/Content/Models/Models.vue2.js +46 -48
  12. package/dist/components/Content/Operation/Operation.vue.js +2 -2
  13. package/dist/components/Content/Operation/Operation.vue2.js +14 -14
  14. package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +1 -1
  15. package/dist/components/Content/Operation/OperationAccordion.vue.js +2 -2
  16. package/dist/components/Content/Operation/OperationAccordion.vue2.js +53 -49
  17. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts +21 -0
  18. package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +1 -0
  19. package/dist/components/Content/Operation/ParameterHeaders.vue.js +7 -0
  20. package/dist/components/Content/Operation/ParameterHeaders.vue2.js +62 -0
  21. package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +1 -1
  22. package/dist/components/Content/Operation/ParameterItem.vue.js +2 -2
  23. package/dist/components/Content/Operation/ParameterItem.vue2.js +34 -30
  24. package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +1 -1
  25. package/dist/components/Content/Operation/TestRequestButton.vue.js +1 -1
  26. package/dist/components/Content/Operation/TestRequestButton.vue2.js +30 -22
  27. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  28. package/dist/components/Content/Tag/Endpoints.vue.d.ts +2 -0
  29. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  31. package/dist/components/Content/Tag/Endpoints.vue2.js +29 -25
  32. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  33. package/dist/components/Content/Tag/Tag.vue.js +2 -2
  34. package/dist/components/Content/Tag/Tag.vue2.js +15 -14
  35. package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +1 -1
  36. package/dist/components/Content/Webhooks/Webhooks.vue.js +2 -2
  37. package/dist/components/Content/Webhooks/Webhooks.vue2.js +43 -45
  38. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  39. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +3 -3
  40. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  41. package/dist/components/Layouts/ClassicLayout.vue.js +18 -17
  42. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  43. package/dist/components/Layouts/ModernLayout.vue.js +2 -2
  44. package/dist/components/Layouts/ModernLayout.vue2.js +31 -28
  45. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  46. package/dist/components/Section/CompactSection.vue.js +2 -2
  47. package/dist/{components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts → embeds/ExampleResponses/ExampleResponses.vue.d.ts} +4 -9
  48. package/dist/embeds/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  49. package/dist/embeds/ExampleResponses/index.d.ts +2 -0
  50. package/dist/embeds/ExampleResponses/index.d.ts.map +1 -0
  51. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts +8 -1
  52. package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
  53. package/dist/embeds/index.d.ts +1 -0
  54. package/dist/embeds/index.d.ts.map +1 -1
  55. package/dist/features/BaseUrl/ServerForm.vue.d.ts.map +1 -1
  56. package/dist/features/BaseUrl/ServerForm.vue.js +2 -2
  57. package/dist/features/BaseUrl/ServerForm.vue2.js +5 -5
  58. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  59. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  60. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +118 -129
  61. package/dist/{components/Content/Operation/PathResponses/Headers.vue.d.ts → features/ExampleResponses/ExampleResponse.vue.d.ts} +4 -4
  62. package/dist/features/ExampleResponses/ExampleResponse.vue.d.ts.map +1 -0
  63. package/dist/features/ExampleResponses/ExampleResponse.vue.js +7 -0
  64. package/dist/features/ExampleResponses/ExampleResponse.vue2.js +37 -0
  65. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue.d.ts → features/ExampleResponses/ExampleResponses.vue.d.ts} +1 -1
  66. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -0
  67. package/dist/features/ExampleResponses/ExampleResponses.vue.js +7 -0
  68. package/dist/{components/Content/Operation/PathResponses/PathResponses.vue2.js → features/ExampleResponses/ExampleResponses.vue2.js} +18 -18
  69. package/dist/features/ExampleResponses/index.d.ts +2 -0
  70. package/dist/features/ExampleResponses/index.d.ts.map +1 -0
  71. package/dist/helpers/createRequest.d.ts +6 -0
  72. package/dist/helpers/createRequest.d.ts.map +1 -0
  73. package/dist/helpers/createRequest.js +16 -0
  74. package/dist/helpers/getExampleCode.d.ts +9 -0
  75. package/dist/helpers/getExampleCode.d.ts.map +1 -0
  76. package/dist/helpers/getExampleCode.js +27 -0
  77. package/dist/helpers/index.d.ts +2 -0
  78. package/dist/helpers/index.d.ts.map +1 -1
  79. package/dist/helpers/mergeAllObjects.d.ts +3 -0
  80. package/dist/helpers/mergeAllObjects.d.ts.map +1 -1
  81. package/dist/helpers/provideSymbols.d.ts +1 -0
  82. package/dist/helpers/provideSymbols.d.ts.map +1 -1
  83. package/dist/helpers/provideSymbols.js +4 -3
  84. package/dist/hooks/useReactiveSpec.d.ts +7 -1
  85. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  86. package/dist/hooks/useResponses.d.ts +4 -0
  87. package/dist/hooks/useResponses.d.ts.map +1 -1
  88. package/dist/hooks/useResponses.js +11 -10
  89. package/dist/index.js +95 -90
  90. package/dist/legacy/helpers/index.d.ts +1 -0
  91. package/dist/legacy/helpers/index.d.ts.map +1 -1
  92. package/dist/legacy/helpers/normalizeHeaderName.d.ts +5 -0
  93. package/dist/legacy/helpers/normalizeHeaderName.d.ts.map +1 -0
  94. package/dist/legacy/helpers/normalizeHeaderName.js +6 -0
  95. package/dist/legacy/helpers/normalizeHeaders.d.ts.map +1 -1
  96. package/dist/legacy/helpers/normalizeHeaders.js +15 -17
  97. package/dist/legacy/stores/useOpenApiStore.d.ts +7 -1
  98. package/dist/legacy/stores/useOpenApiStore.d.ts.map +1 -1
  99. package/dist/style.css +1 -1
  100. package/dist/types.d.ts +0 -8
  101. package/dist/types.d.ts.map +1 -1
  102. package/package.json +12 -12
  103. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.d.ts.map +0 -1
  104. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue.js +0 -7
  105. package/dist/components/Content/Operation/PathResponses/ExampleResponse.vue2.js +0 -101
  106. package/dist/components/Content/Operation/PathResponses/Headers.vue.d.ts.map +0 -1
  107. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.d.ts.map +0 -1
  108. package/dist/components/Content/Operation/PathResponses/PathResponses.vue.js +0 -7
  109. package/dist/components/Content/Operation/PathResponses/index.d.ts +0 -2
  110. package/dist/components/Content/Operation/PathResponses/index.d.ts.map +0 -1
  111. package/dist/components/SimpleTable/SimpleCell.vue.d.ts +0 -50
  112. package/dist/components/SimpleTable/SimpleCell.vue.d.ts.map +0 -1
  113. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts +0 -12
  114. package/dist/components/SimpleTable/SimpleHeader.vue.d.ts.map +0 -1
  115. package/dist/components/SimpleTable/SimpleRow.vue.d.ts +0 -12
  116. package/dist/components/SimpleTable/SimpleRow.vue.d.ts.map +0 -1
  117. package/dist/components/SimpleTable/SimpleTable.stories.d.ts +0 -7
  118. package/dist/components/SimpleTable/SimpleTable.stories.d.ts.map +0 -1
  119. package/dist/components/SimpleTable/SimpleTable.vue.d.ts +0 -12
  120. package/dist/components/SimpleTable/SimpleTable.vue.d.ts.map +0 -1
  121. package/dist/components/SimpleTable/index.d.ts +0 -5
  122. package/dist/components/SimpleTable/index.d.ts.map +0 -1
package/dist/types.d.ts CHANGED
@@ -19,14 +19,6 @@ export type PathRouting = {
19
19
  basePath: string;
20
20
  };
21
21
  export type GettingStartedExamples = 'Petstore' | 'CoinMarketCap';
22
- export type ExampleResponseHeaders = Record<string, {
23
- description: string;
24
- schema: {
25
- type: string;
26
- format?: string;
27
- example?: string;
28
- };
29
- }>;
30
22
  export type Parameter = {
31
23
  name: string;
32
24
  required: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,IAAI,EACJ,UAAU,EACX,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAE/B,YAAY,EAAE,sBAAsB,EAAE,CAAA;AAEtC,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,OAAO,EAAE,UAAU,EAAE,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,aAAa,CAAC,EAAE,sBAAsB,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,aAAa,EAAE,sBAAsB,CAAA;IACrC,UAAU,EAAE,IAAI,CAAA;IAChB,OAAO,EAAE,MAAM,CA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CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAClD,CAAA;AAED,2DAA2D;AAC3D,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,aAAa,GACb,eAAe,GACf,aAAa,CAAA;AAEjB,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,mBAAmB,GAAG,CAAC,KAAK,EAAE,kBAAkB,KAAK,GAAG;CAC/D,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,IAAI,CAAA;IACV,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,CAAC,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IACxC,CAAC,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACzC,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAC5B,CAAC,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC5B,CAAA"}
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "vue",
21
21
  "vue3"
22
22
  ],
23
- "version": "1.25.9",
23
+ "version": "1.25.11",
24
24
  "engines": {
25
25
  "node": ">=18"
26
26
  },
@@ -56,16 +56,16 @@
56
56
  "unhead": "^1.8.3",
57
57
  "unified": "^11.0.4",
58
58
  "vue": "^3.4.29",
59
- "@scalar/api-client": "2.0.62",
60
- "@scalar/components": "0.12.42",
61
- "@scalar/oas-utils": "0.2.41",
59
+ "@scalar/api-client": "2.0.64",
62
60
  "@scalar/code-highlight": "0.0.11",
63
- "@scalar/openapi-types": "0.1.0",
64
- "@scalar/openapi-parser": "0.8.1",
65
- "@scalar/themes": "0.9.28",
66
- "@scalar/types": "0.0.6",
67
- "@scalar/use-toasts": "0.7.5",
68
- "@scalar/snippetz": "0.2.2",
61
+ "@scalar/components": "0.12.44",
62
+ "@scalar/oas-utils": "0.2.43",
63
+ "@scalar/openapi-parser": "0.8.2",
64
+ "@scalar/openapi-types": "0.1.1",
65
+ "@scalar/snippetz": "0.2.3",
66
+ "@scalar/themes": "0.9.29",
67
+ "@scalar/types": "0.0.8",
68
+ "@scalar/use-toasts": "0.7.6",
69
69
  "@scalar/use-tooltip": "1.0.2"
70
70
  },
71
71
  "devDependencies": {
@@ -90,8 +90,8 @@
90
90
  "vite-plugin-css-injected-by-js": "^3.4.0",
91
91
  "vitest": "^1.6.0",
92
92
  "vitest-matchmedia-mock": "^1.0.5",
93
- "@scalar/galaxy": "0.2.7",
94
- "@scalar/build-tooling": "0.1.10"
93
+ "@scalar/build-tooling": "0.1.10",
94
+ "@scalar/galaxy": "0.2.7"
95
95
  },
96
96
  "scripts": {
97
97
  "analyze:default": "pnpm dlx vite-bundle-visualizer",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExampleResponse.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/ExampleResponse.vue"],"names":[],"mappings":";cAkMM,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;cAJD,SAAS,GACT;QACE,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,MAAM,CAAC,EAAE,GAAG,CAAA;KACb;;AAuSP,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./ExampleResponse.vue2.js";
2
- /* empty css */
3
- import p from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ p(o, [["__scopeId", "data-v-65d90380"]]);
5
- export {
6
- r as default
7
- };
@@ -1,101 +0,0 @@
1
- import { defineComponent as D, openBlock as o, createBlock as a, unref as s, createElementBlock as t, Fragment as c, renderList as v, createElementVNode as C, toDisplayString as J, createVNode as L, createCommentVNode as P } from "vue";
2
- import { ScalarCodeBlock as r } from "@scalar/components";
3
- import { prettyPrintJson as V } from "@scalar/oas-utils/helpers";
4
- import { getExampleFromSchema as l } from "@scalar/oas-utils/spec-getters";
5
- const R = {
6
- key: 0,
7
- class: "rule"
8
- }, q = { class: "rule-title" }, w = { class: "rule-items" }, z = {
9
- key: 2,
10
- class: "empty-state"
11
- }, Q = /* @__PURE__ */ D({
12
- __name: "ExampleResponse",
13
- props: {
14
- response: {}
15
- },
16
- setup(G) {
17
- const F = ["oneOf", "anyOf", "not"], p = (e) => e.reduce((i, m) => ({
18
- ...i,
19
- ...m
20
- }), {});
21
- return (e, i) => {
22
- var m, d, g, h, y, u, f, k, b;
23
- return (m = e.response) != null && m.example ? (o(), a(s(r), {
24
- key: 0,
25
- class: "bg-b-2",
26
- content: s(V)((d = e.response) == null ? void 0 : d.example),
27
- lang: "json"
28
- }, null, 8, ["content"])) : (g = e.response) != null && g.schema ? (o(), t(c, { key: 1 }, [
29
- (o(), t(c, null, v(F, (n) => {
30
- var S, j, O, B, E, N;
31
- return o(), t(c, { key: n }, [
32
- (S = e.response) != null && S.schema[n] && (((j = e.response) == null ? void 0 : j.schema[n].length) > 1 || n === "not") ? (o(), t("div", R, [
33
- C("div", q, J(n), 1),
34
- C("ol", w, [
35
- (o(!0), t(c, null, v((O = e.response) == null ? void 0 : O.schema[n], (_, A) => (o(), t("li", {
36
- key: A,
37
- class: "rule-item"
38
- }, [
39
- L(s(r), {
40
- class: "bg-b-2",
41
- content: s(l)(_, {
42
- emptyString: "…",
43
- mode: "read"
44
- }),
45
- lang: "json"
46
- }, null, 8, ["content"])
47
- ]))), 128))
48
- ])
49
- ])) : (B = e.response) != null && B.schema[n] && ((E = e.response) == null ? void 0 : E.schema[n].length) === 1 ? (o(), a(s(r), {
50
- key: 1,
51
- class: "bg-b-2",
52
- content: s(l)((N = e.response) == null ? void 0 : N.schema[n][0], {
53
- emptyString: "…",
54
- mode: "read"
55
- }),
56
- lang: "json"
57
- }, null, 8, ["content"])) : P("", !0)
58
- ], 64);
59
- }), 64)),
60
- (h = e.response) != null && h.schema.allOf ? (o(), a(s(r), {
61
- key: 0,
62
- class: "bg-b-2",
63
- content: p(
64
- (y = e.response) == null ? void 0 : y.schema.allOf.map(
65
- (n) => s(l)(n, {
66
- emptyString: "…",
67
- mode: "read"
68
- })
69
- )
70
- ),
71
- lang: "json"
72
- }, null, 8, ["content"])) : (f = (u = e.response) == null ? void 0 : u.schema.items) != null && f.allOf ? (o(), a(s(r), {
73
- key: 1,
74
- class: "bg-b-2",
75
- content: p(
76
- (k = e.response) == null ? void 0 : k.schema.items.allOf.map(
77
- (n) => s(l)(n, {
78
- emptyString: "…",
79
- mode: "read"
80
- })
81
- )
82
- ),
83
- lang: "json"
84
- }, null, 8, ["content"])) : (o(), a(s(r), {
85
- key: 2,
86
- class: "bg-b-2",
87
- content: s(V)(
88
- s(l)((b = e.response) == null ? void 0 : b.schema, {
89
- emptyString: "…",
90
- mode: "read"
91
- })
92
- ),
93
- lang: "json"
94
- }, null, 8, ["content"]))
95
- ], 64)) : (o(), t("div", z, " No Body "));
96
- };
97
- }
98
- });
99
- export {
100
- Q as default
101
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/Headers.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;;aAWpD,sBAAsB;;aAAtB,sBAAsB;;AAgPjC,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"PathResponses.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/PathResponses.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;;eAsB7B,oBAAoB;;eAApB,oBAAoB;;AAoXvD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,7 +0,0 @@
1
- import o from "./PathResponses.vue2.js";
2
- /* empty css */
3
- import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f7baab98"]]);
5
- export {
6
- r as default
7
- };
@@ -1,2 +0,0 @@
1
- export { default as PathResponses } from './PathResponses.vue.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Operation/PathResponses/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,50 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- default?(_: {}): any;
4
- };
5
- declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
- wrap?: boolean;
7
- strong?: boolean;
8
- href?: string | null;
9
- }>, {
10
- wrap: boolean;
11
- strong: boolean;
12
- href: null;
13
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
14
- wrap?: boolean;
15
- strong?: boolean;
16
- href?: string | null;
17
- }>, {
18
- wrap: boolean;
19
- strong: boolean;
20
- href: null;
21
- }>>>, {
22
- strong: boolean;
23
- href: string | null;
24
- wrap: boolean;
25
- }, {}>;
26
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
27
- export default _default;
28
- type __VLS_WithDefaults<P, D> = {
29
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
30
- default: D[K];
31
- }> : P[K];
32
- };
33
- type __VLS_Prettify<T> = {
34
- [K in keyof T]: T[K];
35
- } & {};
36
- type __VLS_WithTemplateSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToOption<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
50
- //# sourceMappingURL=SimpleCell.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleCell.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleCell.vue"],"names":[],"mappings":"AA2EA,iBAAS,cAAc;qBA2CM,GAAG;qBACH,GAAG;EAe/B;AACD,QAAA,MAAM,eAAe;WAhFU,OAAO;aAAW,OAAO;WAAS,MAAM,GAAG,IAAI;;;;;;WAA/C,OAAO;aAAW,OAAO;WAAS,MAAM,GAAG,IAAI;;;;;;YAA7B,OAAO;UAAS,MAAM,GAAG,IAAI;UAA/C,OAAO;MAsFpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,12 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
- export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
12
- //# sourceMappingURL=SimpleHeader.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleHeader.vue"],"names":[],"mappings":"AA4BA,iBAAS,cAAc;qBA4BM,GAAG;EAc/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
- export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
12
- //# sourceMappingURL=SimpleRow.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleRow.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAkBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/vue3';
2
- import { SimpleTable } from '.';
3
- declare const meta: Meta<typeof SimpleTable>;
4
- export default meta;
5
- type Story = StoryObj<typeof SimpleTable>;
6
- export declare const Primary: Story;
7
- //# sourceMappingURL=SimpleTable.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleTable.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleTable.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,EAAuC,WAAW,EAAE,MAAM,GAAG,CAAA;AAEpE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAIlC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAA;AAEzC,eAAO,MAAM,OAAO,EAAE,KA6BrB,CAAA"}
@@ -1,12 +0,0 @@
1
- declare function __VLS_template(): {
2
- default?(_: {}): any;
3
- };
4
- declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
5
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
- export default _default;
7
- type __VLS_WithTemplateSlots<T, S> = T & {
8
- new (): {
9
- $slots: S;
10
- };
11
- };
12
- //# sourceMappingURL=SimpleTable.vue.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SimpleTable.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/SimpleTable.vue"],"names":[],"mappings":"AAuBA,iBAAS,cAAc;qBAqBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,5 +0,0 @@
1
- export { default as SimpleCell } from './SimpleCell.vue';
2
- export { default as SimpleHeader } from './SimpleHeader.vue';
3
- export { default as SimpleRow } from './SimpleRow.vue';
4
- export { default as SimpleTable } from './SimpleTable.vue';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAA"}