@stainless-api/docs-ui 0.1.0-beta.84 → 0.1.0-beta.86
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/dist/breadcrumbs-DC2_z7nh.d.ts +25 -0
- package/dist/chunk-pbuEa-1d.js +13 -0
- package/dist/component-generics-DYxBWv1v.js +42 -0
- package/dist/component-generics-q-ujwX4P.d.ts +30 -0
- package/dist/components/MaskedInput.d.ts +1 -1
- package/dist/components/MaskedInput.js +2 -4
- package/dist/components/breadcrumbs.d.ts +1 -24
- package/dist/components/breadcrumbs.js +2 -4
- package/dist/components/icons.js +4 -6
- package/dist/components/index.d.ts +10 -16
- package/dist/components/index.js +3 -5
- package/dist/components/method.d.ts +1 -58
- package/dist/components/method.js +12 -14
- package/dist/components/overview.d.ts +1 -38
- package/dist/components/overview.js +6 -5
- package/dist/components/primitives.d.ts +1 -106
- package/dist/components/primitives.js +5 -7
- package/dist/components/properties.d.ts +1 -53
- package/dist/components/properties.js +17 -19
- package/dist/components/sdk-sidebar.d.ts +1 -14
- package/dist/components/sdk-sidebar.js +2 -4
- package/dist/components/sdk.d.ts +1 -127
- package/dist/components/sdk.js +17 -22
- package/dist/components/snippets.d.ts +1 -70
- package/dist/components/snippets.js +16 -16
- package/dist/components/stl-sidebar.d.ts +1 -57
- package/dist/components/stl-sidebar.js +2 -4
- package/dist/contexts/component-generics.d.ts +1 -29
- package/dist/contexts/component-generics.js +2 -33
- package/dist/contexts/component-types.d.ts +3 -5
- package/dist/contexts/component.d.ts +4 -5
- package/dist/contexts/component.js +2 -5
- package/dist/contexts/docs.d.ts +1 -61
- package/dist/contexts/docs.js +1 -3
- package/dist/contexts/index.d.ts +6 -13
- package/dist/contexts/index.js +3 -6
- package/dist/contexts/markdown.d.ts +1 -21
- package/dist/contexts/markdown.js +5 -7
- package/dist/contexts/navigation.d.ts +1 -28
- package/dist/contexts/navigation.js +9 -12
- package/dist/contexts/use-components.d.ts +1 -2
- package/dist/contexts/use-components.js +2 -5
- package/dist/docs-DSjdvCh5.d.ts +62 -0
- package/dist/index-HcWFtzlc.d.ts +464 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +2 -3
- package/dist/languages/cli.d.ts +2 -38
- package/dist/languages/cli.js +7 -9
- package/dist/languages/csharp.d.ts +2 -42
- package/dist/languages/csharp.js +5 -7
- package/dist/languages/go.d.ts +2 -40
- package/dist/languages/go.js +3 -5
- package/dist/languages/http.d.ts +2 -46
- package/dist/languages/http.js +7 -9
- package/dist/languages/index.d.ts +2 -51
- package/dist/languages/index.js +3 -5
- package/dist/languages/java.d.ts +2 -43
- package/dist/languages/java.js +3 -5
- package/dist/languages/php.d.ts +2 -40
- package/dist/languages/php.js +3 -5
- package/dist/languages/python.d.ts +2 -40
- package/dist/languages/python.js +4 -6
- package/dist/languages/ruby.d.ts +2 -40
- package/dist/languages/ruby.js +3 -5
- package/dist/languages/terraform.d.ts +2 -48
- package/dist/languages/terraform.js +25 -10
- package/dist/languages/typescript.d.ts +2 -40
- package/dist/languages/typescript.js +5 -7
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +10 -9
- package/dist/markdown/md.js +1 -3
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +3 -5
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/markdown/utils.js +2 -4
- package/dist/markdown-ClGRntP5.d.ts +22 -0
- package/dist/method-CNRMOUfn.d.ts +59 -0
- package/dist/navigation-C9ckAfpV.d.ts +29 -0
- package/dist/overview-CDvh184n.d.ts +39 -0
- package/dist/primitives-DFE_4MvV.d.ts +107 -0
- package/dist/properties-CVwrzWVa.d.ts +54 -0
- package/dist/routing-yTSG7nWM.d.ts +61 -0
- package/dist/routing.d.ts +2 -61
- package/dist/routing.js +2 -4
- package/dist/sdk-BkW3MDco.d.ts +128 -0
- package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +1 -3
- package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
- package/dist/style.js +1 -2
- package/dist/styles/main.css +320 -349
- package/dist/styles/primitives.css +133 -185
- package/dist/styles/resets.css +7 -14
- package/dist/styles/search.css +91 -96
- package/dist/styles/sidebar.css +44 -71
- package/dist/styles/variables.css +0 -5
- package/dist/styles.css +995 -1261
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -4
- package/package.json +7 -6
- package/dist/chunk-BYypO7fO.js +0 -18
- package/dist/styles/main.js +0 -0
- package/dist/styles/primitives.js +0 -0
- package/dist/styles/resets.js +0 -0
- package/dist/styles/search.js +0 -0
- package/dist/styles/sidebar.js +0 -0
- package/dist/styles/variables.js +0 -0
- package/dist/styles.mjs +0 -1
- package/dist/use-strict-context-L0c8JKg4.js +0 -16
- /package/dist/{index-pvh-w1xa.d.ts → index-DFr9Mesr.d.ts} +0 -0
package/dist/utils.d.ts
CHANGED
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
1
|
+
import { t as __exportAll } from "./chunk-pbuEa-1d.js";
|
|
2
2
|
import { parseStainlessPath } from "./routing.js";
|
|
3
|
-
|
|
4
3
|
//#region src/utils.ts
|
|
5
4
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
|
6
5
|
flatResources: () => flatResources,
|
|
@@ -49,6 +48,5 @@ function getBodyParams(decl) {
|
|
|
49
48
|
};
|
|
50
49
|
return null;
|
|
51
50
|
}
|
|
52
|
-
|
|
53
51
|
//#endregion
|
|
54
|
-
export { flatResources, getBodyParams, getResourceFromSpec, isResourceEmpty, utils_exports as t };
|
|
52
|
+
export { flatResources, getBodyParams, getResourceFromSpec, isResourceEmpty, utils_exports as t };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.86",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -14,20 +14,21 @@
|
|
|
14
14
|
"react-dom": ">=19.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@markdoc/markdoc": "^0.5.
|
|
17
|
+
"@markdoc/markdoc": "^0.5.6",
|
|
18
18
|
"clsx": "^2.1.1",
|
|
19
19
|
"htmlparser2": "^10.1.0",
|
|
20
20
|
"lucide-react": "^0.574.0",
|
|
21
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
21
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.50"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@
|
|
24
|
+
"@tsdown/css": "^0.21.4",
|
|
25
|
+
"@types/node": "24.12.0",
|
|
25
26
|
"@types/react": "19.2.14",
|
|
26
27
|
"@types/react-dom": "^19.2.3",
|
|
27
28
|
"dotenv": "17.3.1",
|
|
28
29
|
"react": "^19.2.4",
|
|
29
30
|
"react-dom": "^19.2.4",
|
|
30
|
-
"tsdown": "^0.
|
|
31
|
+
"tsdown": "^0.21.4",
|
|
31
32
|
"typescript": "5.9.3",
|
|
32
33
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
33
34
|
"@stainless/sdk-json": "^0.1.0-beta.9"
|
|
@@ -85,7 +86,7 @@
|
|
|
85
86
|
"scripts": {
|
|
86
87
|
"build": "tsdown",
|
|
87
88
|
"clean": "rm -rf dist",
|
|
88
|
-
"lint": "eslint .",
|
|
89
|
+
"lint": "eslint --flag unstable_native_nodejs_ts_config .",
|
|
89
90
|
"check:types": "tsc --noEmit"
|
|
90
91
|
}
|
|
91
92
|
}
|
package/dist/chunk-BYypO7fO.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __exportAll = (all, no_symbols) => {
|
|
4
|
-
let target = {};
|
|
5
|
-
for (var name in all) {
|
|
6
|
-
__defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
if (!no_symbols) {
|
|
12
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
13
|
-
}
|
|
14
|
-
return target;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { __exportAll as t };
|
package/dist/styles/main.js
DELETED
|
File without changes
|
|
File without changes
|
package/dist/styles/resets.js
DELETED
|
File without changes
|
package/dist/styles/search.js
DELETED
|
File without changes
|
package/dist/styles/sidebar.js
DELETED
|
File without changes
|
package/dist/styles/variables.js
DELETED
|
File without changes
|
package/dist/styles.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/hooks/use-strict-context.tsx
|
|
4
|
-
function createStrictContext(displayName) {
|
|
5
|
-
const Context = React.createContext(null);
|
|
6
|
-
Context.displayName = displayName;
|
|
7
|
-
function useStrictContext() {
|
|
8
|
-
const context = React.useContext(Context);
|
|
9
|
-
if (context === null) throw new Error(`use${displayName} must be used within a ${displayName}Provider`);
|
|
10
|
-
return context;
|
|
11
|
-
}
|
|
12
|
-
return [Context.Provider, useStrictContext];
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { createStrictContext as t };
|
|
File without changes
|