@scalar/api-reference 1.44.24 → 1.44.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +70 -0
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
- package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +7 -3
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts +2 -1
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts.map +1 -1
- package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +3 -1
- package/dist/browser/standalone.js +10494 -10489
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +1 -1
- package/dist/components/ApiReference.vue2.js +12 -10
- package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
- package/dist/components/ClassicHeader.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +6 -4
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +16 -5
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +4 -6
- package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/get-schema-type.js +1 -14
- package/dist/components/Content/Schema/helpers/schema-name.d.ts +0 -5
- package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
- package/dist/components/Content/Schema/helpers/schema-name.js +0 -36
- package/dist/style.css +45 -43
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# @scalar/api-reference
|
|
2
2
|
|
|
3
|
+
## 1.44.26
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
|
|
8
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
|
|
9
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): chore: correctly display header in classic layout
|
|
10
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: always show the schema type
|
|
11
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: nest description headings in the sidebar
|
|
12
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: add option to open first tag by default
|
|
13
|
+
|
|
14
|
+
#### Updated Dependencies
|
|
15
|
+
|
|
16
|
+
- **@scalar/workspace-store@0.34.3**
|
|
17
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
|
|
18
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: nest description headings in the sidebar
|
|
19
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): chore: map themeId to slug and add default operation to drafts
|
|
20
|
+
|
|
21
|
+
- **@scalar/oas-utils@0.6.47**
|
|
22
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
|
|
23
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: remove unnecessary property truncation in example generation
|
|
24
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): chore: map themeId to slug and add default operation to drafts
|
|
25
|
+
|
|
26
|
+
- **@scalar/helpers@0.2.16**
|
|
27
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
|
|
28
|
+
|
|
29
|
+
- **@scalar/code-highlight@0.2.4**
|
|
30
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
|
|
31
|
+
|
|
32
|
+
- **@scalar/components@0.19.9**
|
|
33
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
|
|
34
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: add optional chevron click handler for the sidebar
|
|
35
|
+
|
|
36
|
+
- **@scalar/api-client@2.29.3**
|
|
37
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: selecting multiply security schemes doesn't render Markdown in descriptions
|
|
38
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: remove unnecessary property truncation in example generation
|
|
39
|
+
|
|
40
|
+
- **@scalar/sidebar@0.7.40**
|
|
41
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): feat: add optional chevron click handler for the sidebar
|
|
42
|
+
|
|
43
|
+
- **@scalar/snippetz@0.6.16**
|
|
44
|
+
- [#8248](https://github.com/scalar/scalar/pull/8248): fix: duplicate http headers for PHP CURL
|
|
45
|
+
|
|
46
|
+
- **@scalar/agent-chat@0.5.17**
|
|
47
|
+
|
|
48
|
+
- **@scalar/openapi-parser@0.24.14**
|
|
49
|
+
|
|
50
|
+
- **@scalar/types@0.6.7**
|
|
51
|
+
|
|
52
|
+
## 1.44.25
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
#### Updated Dependencies
|
|
57
|
+
|
|
58
|
+
- **@scalar/workspace-store@0.34.2**
|
|
59
|
+
- [#8219](https://github.com/scalar/scalar/pull/8219): chore: default to proxy for web layout
|
|
60
|
+
|
|
61
|
+
- **@scalar/api-client@2.29.2**
|
|
62
|
+
- [#8219](https://github.com/scalar/scalar/pull/8219): chore: default to proxy for web layout
|
|
63
|
+
- [#8220](https://github.com/scalar/scalar/pull/8220): chore: add guards for team workspaces
|
|
64
|
+
|
|
65
|
+
- **@scalar/agent-chat@0.5.16**
|
|
66
|
+
|
|
67
|
+
- **@scalar/oas-utils@0.6.46**
|
|
68
|
+
|
|
69
|
+
- **@scalar/sidebar@0.7.39**
|
|
70
|
+
|
|
71
|
+
- **@scalar/components@0.19.8**
|
|
72
|
+
|
|
3
73
|
## 1.44.24
|
|
4
74
|
|
|
5
75
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoDescription.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-info-block/components/InfoDescription.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InfoDescription.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-info-block/components/InfoDescription.vue"],"names":[],"mappings":"AA4GA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAMvE,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;IAClC,oBAAoB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAA;IAClD,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAC;AAkHF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./InfoDescription.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const InfoDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const InfoDescription = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5065bb4a"]]);
|
|
5
5
|
export {
|
|
6
6
|
InfoDescription as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, createElementBlock, createCommentVNode, openBlock, Fragment, renderList, createBlock } from "vue";
|
|
2
|
-
import { splitContent, getHeadings } from "@scalar/code-highlight/markdown";
|
|
2
|
+
import { splitContent, getHeadings, isHeading, textFromNode } from "@scalar/code-highlight/markdown";
|
|
3
3
|
import GitHubSlugger from "github-slugger";
|
|
4
4
|
import _sfc_main$1 from "./InfoMarkdownSection.vue.js";
|
|
5
5
|
const _hoisted_1 = {
|
|
@@ -34,13 +34,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
return items;
|
|
35
35
|
});
|
|
36
36
|
const transformHeading = (node) => {
|
|
37
|
+
if (!isHeading(node)) {
|
|
38
|
+
return node;
|
|
39
|
+
}
|
|
37
40
|
const slugger = new GitHubSlugger();
|
|
41
|
+
const value = textFromNode(node);
|
|
38
42
|
node.data = {
|
|
39
43
|
hProperties: {
|
|
40
44
|
id: __props.headingSlugGenerator({
|
|
41
45
|
depth: node.depth,
|
|
42
|
-
value
|
|
43
|
-
slug: slugger.slug(
|
|
46
|
+
value,
|
|
47
|
+
slug: slugger.slug(value)
|
|
44
48
|
})
|
|
45
49
|
}
|
|
46
50
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { Node } from '@scalar/code-highlight';
|
|
1
2
|
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
id?: string;
|
|
4
5
|
content: string;
|
|
5
|
-
transformHeading: (node:
|
|
6
|
+
transformHeading: (node: Node) => Node;
|
|
6
7
|
eventBus: WorkspaceEventBus | null;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: 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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoMarkdownSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-info-block/components/InfoMarkdownSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InfoMarkdownSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-info-block/components/InfoMarkdownSection.vue"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAElD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAKvE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IACtC,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AAwDF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, createElementBlock, openBlock, createVNode, unref } from "vue";
|
|
2
2
|
import { ScalarMarkdown } from "@scalar/components";
|
|
3
3
|
import { useIntersection } from "../../../hooks/use-intersection.js";
|
|
4
|
+
const _hoisted_1 = ["id"];
|
|
4
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
6
|
__name: "InfoMarkdownSection",
|
|
6
7
|
props: {
|
|
@@ -17,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
);
|
|
18
19
|
return (_ctx, _cache) => {
|
|
19
20
|
return openBlock(), createElementBlock("div", {
|
|
21
|
+
id: __props.id,
|
|
20
22
|
ref_key: "element",
|
|
21
23
|
ref: element,
|
|
22
24
|
class: "introduction-description-heading scroll-mt-16"
|
|
@@ -27,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
29
|
value: __props.content,
|
|
28
30
|
withImages: ""
|
|
29
31
|
}, null, 8, ["transform", "value"])
|
|
30
|
-
],
|
|
32
|
+
], 8, _hoisted_1);
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
35
|
});
|