@scalar/api-reference 1.44.25 → 1.44.27

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 (111) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.d.ts.map +1 -1
  3. package/dist/blocks/scalar-info-block/components/InfoDescription.vue.js +1 -1
  4. package/dist/blocks/scalar-info-block/components/InfoDescription.vue2.js +7 -3
  5. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts +2 -1
  6. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.d.ts.map +1 -1
  7. package/dist/blocks/scalar-info-block/components/InfoMarkdownSection.vue.js +3 -1
  8. package/dist/browser/standalone.js +13967 -13903
  9. package/dist/browser/webpack-stats.json +1 -1
  10. package/dist/components/AgentScalar/AgentScalarChatInterface.vue.d.ts.map +1 -1
  11. package/dist/components/AgentScalar/AgentScalarChatInterface.vue2.js +2 -1
  12. package/dist/components/ApiReference.vue.d.ts.map +1 -1
  13. package/dist/components/ApiReference.vue.js +1 -1
  14. package/dist/components/ApiReference.vue2.js +14 -12
  15. package/dist/components/ClassicHeader.vue.d.ts.map +1 -1
  16. package/dist/components/ClassicHeader.vue.js +1 -1
  17. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Schema/SchemaComposition.vue.js +6 -4
  19. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts +7 -0
  20. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.d.ts.map +1 -0
  21. package/dist/components/Content/Schema/SchemaPropertyDefault.vue.js +7 -0
  22. package/dist/components/Content/Schema/SchemaPropertyDefault.vue2.js +45 -0
  23. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +24 -40
  26. package/dist/components/Content/Schema/helpers/format-value.d.ts +5 -0
  27. package/dist/components/Content/Schema/helpers/format-value.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/helpers/format-value.js +35 -0
  29. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +4 -6
  30. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/helpers/get-schema-type.js +1 -14
  32. package/dist/components/Content/Schema/helpers/schema-name.d.ts +0 -5
  33. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/helpers/schema-name.js +0 -36
  35. package/dist/features/{toolbar/ApiReferenceToolbar.vue.d.ts → developer-tools/DeveloperTools.vue.d.ts} +1 -1
  36. package/dist/features/developer-tools/DeveloperTools.vue.d.ts.map +1 -0
  37. package/dist/features/{toolbar/ApiReferenceToolbar.vue.js → developer-tools/DeveloperTools.vue.js} +11 -11
  38. package/dist/features/developer-tools/DeveloperTools.vue2.js +4 -0
  39. package/dist/features/developer-tools/components/ApiReferenceToolbarBlurb.vue.d.ts.map +1 -0
  40. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.js +1 -1
  41. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayout.vue.d.ts.map +1 -0
  42. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts +2 -0
  43. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +1 -0
  44. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue.js +35 -17
  45. package/dist/features/developer-tools/components/ApiReferenceToolbarConfigTheme.vue.d.ts.map +1 -0
  46. package/dist/features/developer-tools/components/ApiReferenceToolbarPopover.vue.d.ts.map +1 -0
  47. package/dist/features/developer-tools/components/ApiReferenceToolbarRegisterButton.vue.d.ts.map +1 -0
  48. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.js +2 -2
  49. package/dist/features/developer-tools/components/ApiReferenceToolbarShareRegister.vue.d.ts.map +1 -0
  50. package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.js +12 -8
  51. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.d.ts.map +1 -0
  52. package/dist/features/developer-tools/components/ApiReferenceToolbarShareTemporary.vue.js +73 -0
  53. package/dist/features/developer-tools/components/ApiReferenceToolbarTitle.vue.d.ts.map +1 -0
  54. package/dist/features/{toolbar/ApiReferenceToolbarSdks.vue.d.ts → developer-tools/components/DeployApiReference.vue.d.ts} +1 -1
  55. package/dist/features/developer-tools/components/DeployApiReference.vue.d.ts.map +1 -0
  56. package/dist/features/developer-tools/components/DeployApiReference.vue.js +35 -0
  57. package/dist/features/developer-tools/components/DeployApiReference.vue2.js +4 -0
  58. package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.d.ts → developer-tools/components/ModifyConfiguration.vue.d.ts} +1 -1
  59. package/dist/features/developer-tools/components/ModifyConfiguration.vue.d.ts.map +1 -0
  60. package/dist/features/{toolbar/ApiReferenceToolbarConfig.vue.js → developer-tools/components/ModifyConfiguration.vue.js} +1 -1
  61. package/dist/features/developer-tools/components/ModifyConfiguration.vue2.js +4 -0
  62. package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.d.ts → developer-tools/components/ShareApiReference.vue.d.ts} +1 -1
  63. package/dist/features/developer-tools/components/ShareApiReference.vue.d.ts.map +1 -0
  64. package/dist/features/{toolbar/ApiReferenceToolbarShare.vue.js → developer-tools/components/ShareApiReference.vue.js} +4 -13
  65. package/dist/features/developer-tools/components/ShareApiReference.vue2.js +4 -0
  66. package/dist/features/developer-tools/index.d.ts +2 -0
  67. package/dist/features/developer-tools/index.d.ts.map +1 -0
  68. package/dist/features/index.d.ts +0 -1
  69. package/dist/features/index.d.ts.map +1 -1
  70. package/dist/features/index.js +2 -4
  71. package/dist/style.css +115 -45
  72. package/package.json +19 -19
  73. package/dist/features/toolbar/ApiReferenceToolbar.vue.d.ts.map +0 -1
  74. package/dist/features/toolbar/ApiReferenceToolbar.vue2.js +0 -4
  75. package/dist/features/toolbar/ApiReferenceToolbarBlurb.vue.d.ts.map +0 -1
  76. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue.d.ts.map +0 -1
  77. package/dist/features/toolbar/ApiReferenceToolbarConfig.vue2.js +0 -4
  78. package/dist/features/toolbar/ApiReferenceToolbarConfigLayout.vue.d.ts.map +0 -1
  79. package/dist/features/toolbar/ApiReferenceToolbarConfigLayoutOptions.vue.d.ts.map +0 -1
  80. package/dist/features/toolbar/ApiReferenceToolbarConfigTheme.vue.d.ts.map +0 -1
  81. package/dist/features/toolbar/ApiReferenceToolbarPopover.vue.d.ts.map +0 -1
  82. package/dist/features/toolbar/ApiReferenceToolbarRegisterButton.vue.d.ts.map +0 -1
  83. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.d.ts.map +0 -1
  84. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue.js +0 -89
  85. package/dist/features/toolbar/ApiReferenceToolbarSdks.vue2.js +0 -4
  86. package/dist/features/toolbar/ApiReferenceToolbarShare.vue.d.ts.map +0 -1
  87. package/dist/features/toolbar/ApiReferenceToolbarShare.vue2.js +0 -4
  88. package/dist/features/toolbar/ApiReferenceToolbarShareRegister.vue.d.ts.map +0 -1
  89. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.d.ts.map +0 -1
  90. package/dist/features/toolbar/ApiReferenceToolbarShareTemporary.vue.js +0 -90
  91. package/dist/features/toolbar/ApiReferenceToolbarTitle.vue.d.ts.map +0 -1
  92. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarBlurb.vue.d.ts +0 -0
  93. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.d.ts +0 -0
  94. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue.js +0 -0
  95. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayout.vue2.js +0 -0
  96. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigLayoutOptions.vue2.js +0 -0
  97. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.d.ts +0 -0
  98. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue.js +0 -0
  99. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarConfigTheme.vue2.js +0 -0
  100. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.d.ts +0 -0
  101. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue.js +0 -0
  102. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarPopover.vue2.js +0 -0
  103. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue.d.ts +0 -0
  104. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarRegisterButton.vue2.js +0 -0
  105. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue.d.ts +0 -0
  106. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareRegister.vue2.js +0 -0
  107. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue.d.ts +0 -0
  108. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarShareTemporary.vue2.js +0 -0
  109. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.d.ts +0 -0
  110. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue.js +0 -0
  111. /package/dist/features/{toolbar → developer-tools/components}/ApiReferenceToolbarTitle.vue2.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,83 @@
1
1
  # @scalar/api-reference
2
2
 
3
+ ## 1.44.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8274](https://github.com/scalar/scalar/pull/8274): feat(agent): add config to hide search api
8
+ - [#8260](https://github.com/scalar/scalar/pull/8260): feat: update developer tools
9
+
10
+ #### Updated Dependencies
11
+
12
+ - **@scalar/agent-chat@0.5.18**
13
+ - [#8274](https://github.com/scalar/scalar/pull/8274): feat(agent): add config to hide search api
14
+
15
+ - **@scalar/types@0.6.8**
16
+ - [#8274](https://github.com/scalar/scalar/pull/8274): feat(agent): add config to hide search api
17
+
18
+ - **@scalar/api-client@2.29.4**
19
+
20
+ - **@scalar/oas-utils@0.6.48**
21
+
22
+ - **@scalar/openapi-parser@0.24.15**
23
+
24
+ - **@scalar/snippetz@0.6.17**
25
+
26
+ - **@scalar/workspace-store@0.34.4**
27
+
28
+ - **@scalar/components@0.19.10**
29
+
30
+ - **@scalar/sidebar@0.7.41**
31
+
32
+ ## 1.44.26
33
+
34
+ ### Patch Changes
35
+
36
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
37
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
38
+ - [#8248](https://github.com/scalar/scalar/pull/8248): chore: correctly display header in classic layout
39
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: always show the schema type
40
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: nest description headings in the sidebar
41
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: add option to open first tag by default
42
+
43
+ #### Updated Dependencies
44
+
45
+ - **@scalar/workspace-store@0.34.3**
46
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
47
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: nest description headings in the sidebar
48
+ - [#8248](https://github.com/scalar/scalar/pull/8248): chore: map themeId to slug and add default operation to drafts
49
+
50
+ - **@scalar/oas-utils@0.6.47**
51
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
52
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: remove unnecessary property truncation in example generation
53
+ - [#8248](https://github.com/scalar/scalar/pull/8248): chore: map themeId to slug and add default operation to drafts
54
+
55
+ - **@scalar/helpers@0.2.16**
56
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: local storage migration script
57
+
58
+ - **@scalar/code-highlight@0.2.4**
59
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
60
+
61
+ - **@scalar/components@0.19.9**
62
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: slugs for headings with nested content
63
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: add optional chevron click handler for the sidebar
64
+
65
+ - **@scalar/api-client@2.29.3**
66
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: selecting multiply security schemes doesn't render Markdown in descriptions
67
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: remove unnecessary property truncation in example generation
68
+
69
+ - **@scalar/sidebar@0.7.40**
70
+ - [#8248](https://github.com/scalar/scalar/pull/8248): feat: add optional chevron click handler for the sidebar
71
+
72
+ - **@scalar/snippetz@0.6.16**
73
+ - [#8248](https://github.com/scalar/scalar/pull/8248): fix: duplicate http headers for PHP CURL
74
+
75
+ - **@scalar/agent-chat@0.5.17**
76
+
77
+ - **@scalar/openapi-parser@0.24.14**
78
+
79
+ - **@scalar/types@0.6.7**
80
+
3
81
  ## 1.44.25
4
82
 
5
83
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"InfoDescription.vue.d.ts","sourceRoot":"","sources":["../../../../src/blocks/scalar-info-block/components/InfoDescription.vue"],"names":[],"mappings":"AA0FA,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;AA4GF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
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-fe80002d"]]);
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: node.children[0].value,
43
- slug: slugger.slug(node.children[0].value)
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: Record<string, any>) => Record<string, any>;
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":"AAoCA,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,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACpE,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAA;CACnC,CAAC;AAuDF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
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
- ], 512);
32
+ ], 8, _hoisted_1);
31
33
  };
32
34
  }
33
35
  });