react-lib-tools 0.0.13 → 0.0.16
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/{GettingStartedRoute-Bea34m1X.js → GettingStartedRoute-CEUe6r9y.js} +2 -2
- package/dist/{GettingStartedRoute-Bea34m1X.js.map → GettingStartedRoute-CEUe6r9y.js.map} +1 -1
- package/dist/{GettingStartedRoute-BJh6Q9Fv.cjs → GettingStartedRoute-CfzB3Nvh.cjs} +2 -2
- package/dist/{GettingStartedRoute-BJh6Q9Fv.cjs.map → GettingStartedRoute-CfzB3Nvh.cjs.map} +1 -1
- package/dist/{PageNotFound-CrHjMQNv.cjs → PageNotFound-DFuXJCTh.cjs} +2 -2
- package/dist/{PageNotFound-CrHjMQNv.cjs.map → PageNotFound-DFuXJCTh.cjs.map} +1 -1
- package/dist/{PageNotFound-DE5Z0RR6.js → PageNotFound-DPz5PSvL.js} +2 -2
- package/dist/{PageNotFound-DE5Z0RR6.js.map → PageNotFound-DPz5PSvL.js.map} +1 -1
- package/dist/{SupportRoute-Bww0QSix.cjs → SupportRoute-BNyX9bXT.cjs} +2 -2
- package/dist/{SupportRoute-Bww0QSix.cjs.map → SupportRoute-BNyX9bXT.cjs.map} +1 -1
- package/dist/{SupportRoute-DPlYEYJn.js → SupportRoute-CwdgvBKD.js} +2 -2
- package/dist/{SupportRoute-DPlYEYJn.js.map → SupportRoute-CwdgvBKD.js.map} +1 -1
- package/dist/VersionsRoute-DIBb1iS1.js +59 -0
- package/dist/VersionsRoute-DIBb1iS1.js.map +1 -0
- package/dist/VersionsRoute-WwJGbKHn.cjs +2 -0
- package/dist/VersionsRoute-WwJGbKHn.cjs.map +1 -0
- package/dist/{index-DdaUFzS-.js → index-BGQ7Uo9T.js} +218 -216
- package/dist/index-BGQ7Uo9T.js.map +1 -0
- package/dist/{index-BpfFWZm4.cjs → index-Dishg8MY.cjs} +5 -5
- package/dist/index-Dishg8MY.cjs.map +1 -0
- package/dist/react-lib-tools.cjs +1 -1
- package/dist/react-lib-tools.d.ts +11 -2
- package/dist/react-lib-tools.js +4 -4
- package/package.json +1 -1
- package/scripts/utils/docs/parseDescription.ts +3 -0
- package/dist/index-BpfFWZm4.cjs.map +0 -1
- package/dist/index-DdaUFzS-.js.map +0 -1
package/dist/react-lib-tools.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Dishg8MY.cjs");exports.AppRoot=e.AppRoot;exports.Block=e.Block;exports.Box=e.Box;exports.Button=e.Button;exports.Callout=e.Callout;exports.Checkbox=e.Checkbox;exports.Code=e.Code;exports.ComponentProps=e.ComponentProps;exports.ComponentPropsSection=e.ComponentPropsSection;exports.DocsSection=e.DocsSection;exports.ErrorBoundary=e.ErrorBoundary;exports.ExternalLink=e.ExternalLink;exports.Header=e.Header;exports.ImperativeHandle=e.ImperativeHandle;exports.Input=e.Input;exports.Link=e.Link;exports.LoadingSpinner=e.LoadingSpinner;exports.NavLink=e.NavLink;exports.NavSection=e.NavSection;exports.Radio=e.Radio;exports.Select=e.Select;exports.assert=e.assert;exports.cn=e.cn;exports.getIntentClassNames=e.getIntentClassNames;
|
|
2
2
|
//# sourceMappingURL=react-lib-tools.cjs.map
|
|
@@ -11,14 +11,14 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
|
11
11
|
import { PropsWithChildren } from 'react';
|
|
12
12
|
import { ReactNode } from 'react';
|
|
13
13
|
|
|
14
|
-
export declare function AppRoot({
|
|
15
|
-
hideVersions?: boolean | undefined;
|
|
14
|
+
export declare function AppRoot({ navLinks, overview, packageDescription, packageName, routes, showOpenCollectLink, versions }: {
|
|
16
15
|
navLinks: ReactNode;
|
|
17
16
|
overview?: ReactNode | undefined;
|
|
18
17
|
packageDescription: ReactNode;
|
|
19
18
|
packageName: string;
|
|
20
19
|
routes: Record<string, LazyExoticComponent<ComponentType<unknown>>>;
|
|
21
20
|
showOpenCollectLink?: boolean | undefined;
|
|
21
|
+
versions?: Versions | undefined;
|
|
22
22
|
}): JSX.Element;
|
|
23
23
|
|
|
24
24
|
export declare function assert(expectedCondition: unknown, message?: string): asserts expectedCondition;
|
|
@@ -185,6 +185,7 @@ declare const routes: {
|
|
|
185
185
|
"*": LazyExoticComponent<PageNotFoundRoute>;
|
|
186
186
|
"/": LazyExoticComponent<GettingStartedRoute>;
|
|
187
187
|
"/support": LazyExoticComponent<SupportRoute>;
|
|
188
|
+
"/versions": LazyExoticComponent<VersionsRoute>;
|
|
188
189
|
};
|
|
189
190
|
|
|
190
191
|
export declare type Section = {
|
|
@@ -203,4 +204,12 @@ export declare function Select<Value extends string>({ className, defaultValue,
|
|
|
203
204
|
|
|
204
205
|
declare function SupportRoute(): JSX.Element;
|
|
205
206
|
|
|
207
|
+
declare type Versions = {
|
|
208
|
+
[major: string]: {
|
|
209
|
+
[fullVersion: string]: string;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
declare function VersionsRoute(): JSX.Element;
|
|
214
|
+
|
|
206
215
|
export { }
|
package/dist/react-lib-tools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as o, a as e, B as n, b as t, C as r, c as i, d as p, i as c, j as l, D as d, e as C, E as k, H as m, I as
|
|
1
|
+
import { A as o, a as e, B as n, b as t, C as r, c as i, d as p, i as c, j as l, D as d, e as C, E as k, H as m, I as B, f as L, L as S, g as u, N as x, h as I, R as N, k as g, l as v, m as E, n as H } from "./index-BGQ7Uo9T.js";
|
|
2
2
|
export {
|
|
3
3
|
o as AppRoot,
|
|
4
4
|
e as Block,
|
|
@@ -13,9 +13,9 @@ export {
|
|
|
13
13
|
C as ErrorBoundary,
|
|
14
14
|
k as ExternalLink,
|
|
15
15
|
m as Header,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
B as ImperativeHandle,
|
|
17
|
+
L as Input,
|
|
18
|
+
S as Link,
|
|
19
19
|
u as LoadingSpinner,
|
|
20
20
|
x as NavLink,
|
|
21
21
|
I as NavSection,
|
package/package.json
CHANGED
|
@@ -7,6 +7,9 @@ export async function parseDescription(rawText: string) {
|
|
|
7
7
|
|
|
8
8
|
// Paper over differences between "@ts-ast-parser/core" and "react-docgen-typescript"
|
|
9
9
|
let text = rawText;
|
|
10
|
+
|
|
11
|
+
text = text.replace("@deprecated", "❌ This prop has been deprecated.");
|
|
12
|
+
|
|
10
13
|
Object.keys(INTENT_FLAGS).forEach((flag) => {
|
|
11
14
|
text = text
|
|
12
15
|
.split(`\n${flag}`)
|