@scalar/nextjs-api-reference 0.8.8 → 0.8.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.
- package/CHANGELOG.md +21 -0
- package/README.md +1 -1
- package/dist/index.cjs +18 -16
- package/dist/index.js +18 -16
- package/dist/index.umd.cjs +18 -16
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @scalar/nextjs-api-reference
|
|
2
2
|
|
|
3
|
+
## 0.8.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @scalar/core@0.3.8
|
|
8
|
+
|
|
9
|
+
## 0.8.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [66347d4]
|
|
14
|
+
- @scalar/core@0.3.7
|
|
15
|
+
|
|
16
|
+
## 0.8.9
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 2d7f995: refactor: use more common straight apostrophe ' instead of the real apostrophe ’
|
|
21
|
+
- Updated dependencies [2d7f995]
|
|
22
|
+
- @scalar/core@0.3.6
|
|
23
|
+
|
|
3
24
|
## 0.8.8
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -51,26 +51,28 @@ const getHtmlDocument = (givenConfiguration, customTheme2 = "") => {
|
|
|
51
51
|
return content;
|
|
52
52
|
};
|
|
53
53
|
function getScriptTags(configuration, cdn) {
|
|
54
|
-
const
|
|
54
|
+
const restConfig = { ...configuration };
|
|
55
55
|
const functionProps = [];
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
const functionKeys = [
|
|
57
|
+
"tagsSorter",
|
|
58
|
+
"operationsSorter",
|
|
59
|
+
"generateHeadingSlug",
|
|
60
|
+
"generateModelSlug",
|
|
61
|
+
"generateTagSlug",
|
|
62
|
+
"generateOperationSlug",
|
|
63
|
+
"generateWebhookSlug",
|
|
64
|
+
"onLoaded",
|
|
65
|
+
"redirect",
|
|
66
|
+
"onSpecUpdate",
|
|
67
|
+
"onServerChange"
|
|
68
68
|
];
|
|
69
|
-
|
|
69
|
+
for (const key of functionKeys) {
|
|
70
|
+
const value = configuration[key];
|
|
70
71
|
if (value && typeof value === "function") {
|
|
71
|
-
functionProps.push(`"${
|
|
72
|
+
functionProps.push(`"${key}": ${value.toString()}`);
|
|
73
|
+
delete restConfig[key];
|
|
72
74
|
}
|
|
73
|
-
}
|
|
75
|
+
}
|
|
74
76
|
const configString = JSON.stringify(restConfig, null, 2).split("\n").map((line, index) => index === 0 ? line : " " + line).join("\n").replace(/\s*}$/, "");
|
|
75
77
|
const functionPropsString = functionProps.length ? `,
|
|
76
78
|
${functionProps.join(",\n ")}
|
package/dist/index.js
CHANGED
|
@@ -49,26 +49,28 @@ const getHtmlDocument = (givenConfiguration, customTheme2 = "") => {
|
|
|
49
49
|
return content;
|
|
50
50
|
};
|
|
51
51
|
function getScriptTags(configuration, cdn) {
|
|
52
|
-
const
|
|
52
|
+
const restConfig = { ...configuration };
|
|
53
53
|
const functionProps = [];
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
const functionKeys = [
|
|
55
|
+
"tagsSorter",
|
|
56
|
+
"operationsSorter",
|
|
57
|
+
"generateHeadingSlug",
|
|
58
|
+
"generateModelSlug",
|
|
59
|
+
"generateTagSlug",
|
|
60
|
+
"generateOperationSlug",
|
|
61
|
+
"generateWebhookSlug",
|
|
62
|
+
"onLoaded",
|
|
63
|
+
"redirect",
|
|
64
|
+
"onSpecUpdate",
|
|
65
|
+
"onServerChange"
|
|
66
66
|
];
|
|
67
|
-
|
|
67
|
+
for (const key of functionKeys) {
|
|
68
|
+
const value = configuration[key];
|
|
68
69
|
if (value && typeof value === "function") {
|
|
69
|
-
functionProps.push(`"${
|
|
70
|
+
functionProps.push(`"${key}": ${value.toString()}`);
|
|
71
|
+
delete restConfig[key];
|
|
70
72
|
}
|
|
71
|
-
}
|
|
73
|
+
}
|
|
72
74
|
const configString = JSON.stringify(restConfig, null, 2).split("\n").map((line, index) => index === 0 ? line : " " + line).join("\n").replace(/\s*}$/, "");
|
|
73
75
|
const functionPropsString = functionProps.length ? `,
|
|
74
76
|
${functionProps.join(",\n ")}
|
package/dist/index.umd.cjs
CHANGED
|
@@ -53,26 +53,28 @@
|
|
|
53
53
|
return content;
|
|
54
54
|
};
|
|
55
55
|
function getScriptTags(configuration, cdn) {
|
|
56
|
-
const
|
|
56
|
+
const restConfig = { ...configuration };
|
|
57
57
|
const functionProps = [];
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
const functionKeys = [
|
|
59
|
+
"tagsSorter",
|
|
60
|
+
"operationsSorter",
|
|
61
|
+
"generateHeadingSlug",
|
|
62
|
+
"generateModelSlug",
|
|
63
|
+
"generateTagSlug",
|
|
64
|
+
"generateOperationSlug",
|
|
65
|
+
"generateWebhookSlug",
|
|
66
|
+
"onLoaded",
|
|
67
|
+
"redirect",
|
|
68
|
+
"onSpecUpdate",
|
|
69
|
+
"onServerChange"
|
|
70
70
|
];
|
|
71
|
-
|
|
71
|
+
for (const key of functionKeys) {
|
|
72
|
+
const value = configuration[key];
|
|
72
73
|
if (value && typeof value === "function") {
|
|
73
|
-
functionProps.push(`"${
|
|
74
|
+
functionProps.push(`"${key}": ${value.toString()}`);
|
|
75
|
+
delete restConfig[key];
|
|
74
76
|
}
|
|
75
|
-
}
|
|
77
|
+
}
|
|
76
78
|
const configString = JSON.stringify(restConfig, null, 2).split("\n").map((line, index) => index === 0 ? line : " " + line).join("\n").replace(/\s*}$/, "");
|
|
77
79
|
const functionPropsString = functionProps.length ? `,
|
|
78
80
|
${functionProps.join(",\n ")}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"openapi",
|
|
19
19
|
"swagger"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.8.
|
|
21
|
+
"version": "0.8.11",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
],
|
|
36
36
|
"module": "./dist/index.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@scalar/core": "0.3.
|
|
38
|
+
"@scalar/core": "0.3.8"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.9.0",
|
|
42
42
|
"@types/react": "^19.0.1",
|
|
43
43
|
"@types/react-dom": "^19.0.2",
|
|
44
44
|
"@vitejs/plugin-react": "^4.3.4",
|
|
45
|
-
"next": "^15.
|
|
45
|
+
"next": "^15.3.3",
|
|
46
46
|
"react": "^19.0.0",
|
|
47
47
|
"react-dom": "^19.0.0",
|
|
48
48
|
"vite": "5.4.19",
|
|
49
49
|
"vite-plugin-dts": "^4.3.0",
|
|
50
|
-
"@scalar/api-reference": "1.32.
|
|
50
|
+
"@scalar/api-reference": "1.32.6"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"next": "^15.
|
|
53
|
+
"next": "^15.3.3",
|
|
54
54
|
"react": "^19.0.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|