@scalar/docusaurus 0.8.39 → 0.8.41

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,13 @@
1
1
  # @scalar/docusaurus
2
2
 
3
+ ## 0.8.41
4
+
5
+ ## 0.8.40
6
+
7
+ ### Patch Changes
8
+
9
+ - [#10139](https://github.com/scalar/scalar/pull/10139): Use the Docusaurus route type for the API reference configuration.
10
+
3
11
  ## 0.8.39
4
12
 
5
13
  ## 0.8.38
@@ -1,16 +1,15 @@
1
+ import type { RouteConfig } from '@docusaurus/types';
1
2
  import type { CreateApiReference } from '@scalar/types';
2
3
  import React from 'react';
3
4
  import './theme.css';
4
5
  type Props = {
5
- route: {
6
+ route: RouteConfig & {
6
7
  /**
7
8
  * The API reference configuration, pre-serialized in the plugin (Node) to a JavaScript object
8
9
  * literal string. We cannot receive it as a plain object because Docusaurus JSON-serializes route
9
10
  * props, which drops function-valued options like `onBeforeRequest`. See issue #6933.
10
11
  */
11
12
  configuration: string;
12
- /** Not sure where the route type is for docusaurus, couldn't find one with an ID, TODO: replace with that */
13
- id: string;
14
13
  };
15
14
  };
16
15
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"ScalarDocusaurus.d.ts","sourceRoot":"","sources":["../src/ScalarDocusaurus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,KAAmC,MAAM,OAAO,CAAA;AAEvD,OAAO,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE;QACL;;;;WAIG;QACH,aAAa,EAAE,MAAM,CAAA;QACrB,6GAA6G;QAC7G,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;CACF,CAAA;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE;YACN,kBAAkB,EAAE,kBAAkB,CAAA;SACvC,CAAA;KACF;CACF;AAED,eAAO,MAAM,gBAAgB,GAAI,WAAW,KAAK,sBA6BhD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"ScalarDocusaurus.d.ts","sourceRoot":"","sources":["../src/ScalarDocusaurus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,OAAO,KAAmC,MAAM,OAAO,CAAA;AAEvD,OAAO,aAAa,CAAA;AAEpB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,WAAW,GAAG;QACnB;;;;WAIG;QACH,aAAa,EAAE,MAAM,CAAA;KACtB,CAAA;CACF,CAAA;AAGD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE;YACN,kBAAkB,EAAE,kBAAkB,CAAA;SACvC,CAAA;KACF;CACF;AAED,eAAO,MAAM,gBAAgB,GAAI,WAAW,KAAK,sBA6BhD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "testing",
20
20
  "react"
21
21
  ],
22
- "version": "0.8.39",
22
+ "version": "0.8.41",
23
23
  "engines": {
24
24
  "node": ">=22"
25
25
  },
@@ -48,8 +48,8 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@scalar/types": "0.19.0",
52
- "@scalar/client-side-rendering": "0.4.0"
51
+ "@scalar/client-side-rendering": "0.4.2",
52
+ "@scalar/types": "0.20.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@docusaurus/core": "^3.9.2",