@scalar/docusaurus 0.7.20 → 0.7.22

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 CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scalar/docusaurus
2
2
 
3
+ ## 0.7.22
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`44aeef0`](https://github.com/scalar/scalar/commit/44aeef01073801165e339163462378b7b62ff68d), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47), [`cbedfab`](https://github.com/scalar/scalar/commit/cbedfab576502069be27ceacbea145a917214e47)]:
8
+ - @scalar/types@0.5.0
9
+
10
+ ## 0.7.21
11
+
12
+ ### Patch Changes
13
+
14
+ - [#7129](https://github.com/scalar/scalar/pull/7129) [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a) Thanks [@geoffgscott](https://github.com/geoffgscott)! - Simplify ApiReferences state management and migrate to new shared sidebar component. Eliminates the useSidebar and useNav hooks in favour of event bubbling and centralized state management in ApiReference.vue
15
+
16
+ - Updated dependencies [[`eb022f2`](https://github.com/scalar/scalar/commit/eb022f2c8f93c84a04c0093fefe8a1e05d6ec80d), [`6ec8c29`](https://github.com/scalar/scalar/commit/6ec8c299d912111b029e8058979d00968b70691a), [`eba18d0`](https://github.com/scalar/scalar/commit/eba18d06267a163a8f91396a66f817100ee59461)]:
17
+ - @scalar/types@0.4.0
18
+
3
19
  ## 0.7.20
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -1,19 +1,32 @@
1
+ <!--
2
+ This file is auto-generated by the Scalar README generator.
3
+ Command: pnpm --filter @scalar-internal/build-scripts start generate-readme
4
+
5
+ Do not edit this file manually. Changes will be lost when the file is regenerated.
6
+ -->
7
+
1
8
  # Scalar API Reference Plugin for Docusaurus
2
9
 
3
- [![Version](https://img.shields.io/npm/v/%40scalar/docusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
4
- [![Downloads](https://img.shields.io/npm/dm/%40scalar/docusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
5
- [![License](https://img.shields.io/npm/l/%40scalar%2Fdocusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
6
- [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/8HeZcRGPFS)
10
+ [![Version](https://img.shields.io/npm/v/@scalar/docusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
11
+ [![Downloads](https://img.shields.io/npm/dm/@scalar/docusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
12
+ [![License](https://img.shields.io/npm/l/@scalar/docusaurus)](https://www.npmjs.com/package/@scalar/docusaurus)
13
+ [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/scalar)
14
+
15
+ Docusaurus plugin to embed beautiful, interactive API documentation from OpenAPI/Swagger documents.
7
16
 
8
- ![scalasaurus](docusaurus.png)
17
+ ![Screenshot of the Docusaurus integration](https://github.com/scalar/scalar/blob/main/integrations/docusaurus/docusaurus.png?raw=true)
9
18
 
10
19
  ## Documentation
11
20
 
12
21
  [Read the documentation here](https://guides.scalar.com/scalar/scalar-api-references/integrations/docusaurus)
13
22
 
23
+ ## Changelog
24
+
25
+ See [CHANGELOG.md](https://github.com/scalar/scalar/blob/main/integrations/docusaurus/CHANGELOG.md) for a list of changes.
26
+
14
27
  ## Community
15
28
 
16
- We are API nerds. You too? Let's chat on Discord: <https://discord.gg/scalar>
29
+ We are API nerds. You too? Lets chat on Discord: <https://discord.gg/scalar>
17
30
 
18
31
  ## License
19
32
 
@@ -37,8 +37,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ScalarDocusaurus = void 0;
40
- const react_1 = __importStar(require("react"));
41
40
  const Layout_1 = __importDefault(require("@theme/Layout"));
41
+ const react_1 = __importStar(require("react"));
42
42
  require("./theme.css");
43
43
  const ScalarDocusaurus = ({ route }) => {
44
44
  const ref = (0, react_1.useRef)(null);
package/dist/index.js CHANGED
@@ -41,10 +41,10 @@ const ScalarDocusaurus = (context, options) => {
41
41
  ],
42
42
  };
43
43
  },
44
- async loadContent() {
44
+ loadContent() {
45
45
  return defaultOptions;
46
46
  },
47
- async contentLoaded({ content, actions }) {
47
+ contentLoaded({ content, actions }) {
48
48
  const { addRoute } = actions;
49
49
  // If showNavLink is true, add a link to the navbar
50
50
  if (defaultOptions.showNavLink) {
package/dist/theme.css CHANGED
@@ -153,9 +153,7 @@ html[data-theme="light"] body .api-client-drawer {
153
153
  overflow: initial !important;
154
154
  grid-template-rows: 0 repeat(2, auto) !important;
155
155
  }
156
- .references-navigation-list {
157
- height: 100% !important;
158
- }
156
+
159
157
  .section-column:nth-of-type(2) {
160
158
  max-height: calc(100dvh - var(--ifm-navbar-height));
161
159
  }
@@ -217,10 +215,6 @@ html[data-theme="light"] body .api-client-drawer {
217
215
  html[data-theme="light"] body .sidebar {
218
216
  backdrop-filter: blur(50px);
219
217
  }
220
- .references-navigation-list {
221
- border: 1px solid var(--scalar-border-color) !important;
222
- border-radius: 12px;
223
- }
224
218
  }
225
219
 
226
220
  /** Hide credentials */