timvir 0.2.10 → 0.2.12
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/blocks/Arbitrary/samples/basic.d.ts +1 -1
- package/blocks/Code/Code.d.ts +1 -2
- package/blocks/Code/index.js +2 -2
- package/blocks/Code/samples/basic.d.ts +1 -1
- package/blocks/Code/samples/toggle.d.ts +2 -1
- package/blocks/ColorBar/samples/basic.d.ts +2 -1
- package/blocks/ColorBook/samples/basic.d.ts +2 -1
- package/blocks/Cover/samples/basic.d.ts +2 -1
- package/blocks/Exhibit/samples/basic.d.ts +2 -1
- package/blocks/Font/samples/basic.d.ts +1 -1
- package/blocks/Font/samples/system.d.ts +2 -1
- package/blocks/Grid/samples/basic.d.ts +2 -1
- package/blocks/Icon/internal/Canvas.d.ts +1 -1
- package/blocks/Icon/samples/basic.d.ts +2 -1
- package/blocks/Message/samples/basic.d.ts +1 -1
- package/blocks/Swatch/samples/basic.d.ts +2 -1
- package/blocks/Viewport/internal/Caption.d.ts +1 -1
- package/blocks/Viewport/internal/Handle.d.ts +1 -1
- package/blocks/Viewport/internal/Ruler.d.ts +2 -1
- package/blocks/Viewport/samples/basic.d.ts +2 -1
- package/blocks/WebLink/samples/basic.d.ts +1 -1
- package/core/components/Commands/internal/Action.d.ts +1 -1
- package/core/components/Commands/internal/Dialog.d.ts +2 -1
- package/core/components/Footer/samples/basic.d.ts +1 -1
- package/core/components/NavigationFooter/samples/basic.d.ts +1 -1
- package/core/components/Page/Page.d.ts +2 -2
- package/core/components/Page/components.d.ts +17 -45
- package/core/components/Page/internal/Section.d.ts +2 -1
- package/core/components/Page/internal/Sidebar.d.ts +1 -1
- package/core/components/Page/samples/basic.d.ts +2 -1
- package/core/components/Page/samples/layout.d.ts +2 -1
- package/core/index.js +23 -10
- package/package.json +3 -3
- package/search/Search/internal/Highlight.d.ts +2 -1
- package/search/Search/samples/basic.d.ts +2 -1
- package/search/SearchBoxInput/samples/basic.d.ts +2 -1
- package/search/SearchBoxListItem/samples/basic.d.ts +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Arbitrary } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Arbitrary>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
package/blocks/Code/Code.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This is documentation for the Code component.
|
|
3
3
|
*/
|
|
4
|
-
import { Language } from "prism-react-renderer";
|
|
5
4
|
import * as React from "react";
|
|
6
5
|
/**
|
|
7
6
|
* The underlying DOM element which is rendered by this component.
|
|
@@ -17,7 +16,7 @@ interface Props extends React.ComponentPropsWithoutRef<typeof Root> {
|
|
|
17
16
|
*
|
|
18
17
|
* @default "markup"
|
|
19
18
|
*/
|
|
20
|
-
language?:
|
|
19
|
+
language?: string;
|
|
21
20
|
/**
|
|
22
21
|
* When set, the code block spans the full width. Note that the text itself
|
|
23
22
|
* is still aligned with the main column. Use this when you expect the text
|
package/blocks/Code/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Page from 'timvir/core';
|
|
2
2
|
import { useBlock } from 'timvir/core';
|
|
3
|
-
import
|
|
3
|
+
import { Highlight } from 'prism-react-renderer';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import * as Icons from 'react-feather';
|
|
6
6
|
import { useImmer } from 'use-immer';
|
|
@@ -40,6 +40,7 @@ var theme = "tac6gx6";
|
|
|
40
40
|
* This is documentation for the Code component.
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
|
+
|
|
43
44
|
/**
|
|
44
45
|
* The underlying DOM element which is rendered by this component.
|
|
45
46
|
*/
|
|
@@ -70,7 +71,6 @@ function Code(props, ref) {
|
|
|
70
71
|
className: cx_default(classes.root, fullWidth && Page.fullWidth),
|
|
71
72
|
...rest
|
|
72
73
|
}, /*#__PURE__*/React.createElement(Highlight, {
|
|
73
|
-
...defaultProps,
|
|
74
74
|
code: children.trim(),
|
|
75
75
|
language: language !== null && language !== void 0 ? language : "markup",
|
|
76
76
|
theme: nullTheme
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Code } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Code>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample({ language, children }: any): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Font } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Font>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Message } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Message>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -5,6 +5,6 @@ interface Props {
|
|
|
5
5
|
edge: "left" | "right";
|
|
6
6
|
iframeRef: React.RefObject<HTMLIFrameElement>;
|
|
7
7
|
}
|
|
8
|
-
declare function Handle(props: Props): JSX.Element;
|
|
8
|
+
declare function Handle(props: Props): React.JSX.Element;
|
|
9
9
|
declare const _default: React.MemoExoticComponent<typeof Handle>;
|
|
10
10
|
export default _default;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { WebLink } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof WebLink>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Footer } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof Footer>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { NavigationFooter } from "..";
|
|
3
3
|
type Props = Partial<React.ComponentPropsWithoutRef<typeof NavigationFooter>>;
|
|
4
|
-
export default function Sample(props: Props): JSX.Element;
|
|
4
|
+
export default function Sample(props: Props): React.JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MDXProvider } from "@mdx-js/react";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Value } from "timvir/context";
|
|
4
4
|
import { Node } from "./types";
|
|
@@ -24,7 +24,7 @@ interface Props extends React.ComponentProps<typeof Root> {
|
|
|
24
24
|
* highlighting. If you want to enable syntax highlighting in code blocks, use the
|
|
25
25
|
* '<Code>' component from 'timvir/blocks'.
|
|
26
26
|
*/
|
|
27
|
-
mdxComponents?:
|
|
27
|
+
mdxComponents?: React.ComponentPropsWithoutRef<typeof MDXProvider>['components'];
|
|
28
28
|
/**
|
|
29
29
|
* Search Configuration. When provided, then the Search menu will appear in the sidebar.
|
|
30
30
|
*/
|
|
@@ -1,46 +1,18 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare const h1: import("@linaria/react").
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
export declare const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
}>;
|
|
20
|
-
export declare const tbody: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLTableSectionElement> & React.HTMLAttributes<HTMLTableSectionElement> & Record<never, unknown> & {
|
|
21
|
-
as?: React.ElementType<any> | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export declare const tr: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLTableRowElement> & React.HTMLAttributes<HTMLTableRowElement> & Record<never, unknown> & {
|
|
24
|
-
as?: React.ElementType<any> | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export declare const th: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLTableHeaderCellElement> & React.ThHTMLAttributes<HTMLTableHeaderCellElement> & Record<never, unknown> & {
|
|
27
|
-
as?: React.ElementType<any> | undefined;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const td: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLTableDataCellElement> & React.TdHTMLAttributes<HTMLTableDataCellElement> & Record<never, unknown> & {
|
|
30
|
-
as?: React.ElementType<any> | undefined;
|
|
31
|
-
}>;
|
|
32
|
-
export declare const code: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & Record<never, unknown> & {
|
|
33
|
-
as?: React.ElementType<any> | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
export declare const a: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown> & {
|
|
36
|
-
as?: React.ElementType<any> | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const p: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLParagraphElement> & React.HTMLAttributes<HTMLParagraphElement> & Record<never, unknown> & {
|
|
39
|
-
as?: React.ElementType<any> | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
export declare const ul: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & Record<never, unknown> & {
|
|
42
|
-
as?: React.ElementType<any> | undefined;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const ol: import("@linaria/react").StyledMeta & React.FunctionComponent<React.ClassAttributes<HTMLOListElement> & React.OlHTMLAttributes<HTMLOListElement> & Record<never, unknown> & {
|
|
45
|
-
as?: React.ElementType<any> | undefined;
|
|
46
|
-
}>;
|
|
2
|
+
export declare const h1: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement> & Record<never, unknown>>;
|
|
3
|
+
export declare const h2: (props: React.HTMLAttributes<HTMLHeadingElement>) => React.JSX.Element;
|
|
4
|
+
export declare const h3: (props: React.HTMLAttributes<HTMLHeadingElement>) => React.JSX.Element;
|
|
5
|
+
export declare const h4: (props: React.HTMLAttributes<HTMLHeadingElement>) => React.JSX.Element;
|
|
6
|
+
export declare const blockquote: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLQuoteElement> & React.BlockquoteHTMLAttributes<HTMLQuoteElement> & Record<never, unknown>>;
|
|
7
|
+
export declare const hr: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLHRElement> & React.HTMLAttributes<HTMLHRElement> & Record<never, unknown>>;
|
|
8
|
+
export declare const table: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableElement> & React.TableHTMLAttributes<HTMLTableElement> & Record<never, unknown>>;
|
|
9
|
+
export declare const thead: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableSectionElement> & React.HTMLAttributes<HTMLTableSectionElement> & Record<never, unknown>>;
|
|
10
|
+
export declare const tbody: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableSectionElement> & React.HTMLAttributes<HTMLTableSectionElement> & Record<never, unknown>>;
|
|
11
|
+
export declare const tr: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableRowElement> & React.HTMLAttributes<HTMLTableRowElement> & Record<never, unknown>>;
|
|
12
|
+
export declare const th: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableHeaderCellElement> & React.ThHTMLAttributes<HTMLTableHeaderCellElement> & Record<never, unknown>>;
|
|
13
|
+
export declare const td: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLTableDataCellElement> & React.TdHTMLAttributes<HTMLTableDataCellElement> & Record<never, unknown>>;
|
|
14
|
+
export declare const code: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement> & Record<never, unknown>>;
|
|
15
|
+
export declare const a: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & Record<never, unknown>>;
|
|
16
|
+
export declare const p: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLParagraphElement> & React.HTMLAttributes<HTMLParagraphElement> & Record<never, unknown>>;
|
|
17
|
+
export declare const ul: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement> & Record<never, unknown>>;
|
|
18
|
+
export declare const ol: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLOListElement> & React.OlHTMLAttributes<HTMLOListElement> & Record<never, unknown>>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
package/core/index.js
CHANGED
|
@@ -407,7 +407,8 @@ function filterProps(asIs, props, omitKeys) {
|
|
|
407
407
|
}
|
|
408
408
|
var warnIfInvalid = (value, componentName) => {
|
|
409
409
|
if (process.env.NODE_ENV !== "production") {
|
|
410
|
-
if (typeof value === "string" ||
|
|
410
|
+
if (typeof value === "string" || // eslint-disable-next-line no-self-compare,no-restricted-globals
|
|
411
|
+
typeof value === "number" && isFinite(value)) {
|
|
411
412
|
return;
|
|
412
413
|
}
|
|
413
414
|
const stringified = typeof value === "object" ? JSON.stringify(value) : String(value);
|
|
@@ -416,9 +417,17 @@ var warnIfInvalid = (value, componentName) => {
|
|
|
416
417
|
);
|
|
417
418
|
}
|
|
418
419
|
};
|
|
420
|
+
var idx = 0;
|
|
419
421
|
function styled(tag) {
|
|
422
|
+
let mockedClass = "";
|
|
423
|
+
if (process.env.NODE_ENV === "test") {
|
|
424
|
+
mockedClass += `mocked-styled-${idx++}`;
|
|
425
|
+
if (tag && tag.__linaria && tag.__linaria.className) {
|
|
426
|
+
mockedClass += ` ${tag.__linaria.className}`;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
420
429
|
return (options) => {
|
|
421
|
-
if (process.env.NODE_ENV !== "production") {
|
|
430
|
+
if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test") {
|
|
422
431
|
if (Array.isArray(options)) {
|
|
423
432
|
throw new Error(
|
|
424
433
|
'Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup'
|
|
@@ -426,7 +435,7 @@ function styled(tag) {
|
|
|
426
435
|
}
|
|
427
436
|
}
|
|
428
437
|
const render = (props, ref) => {
|
|
429
|
-
const { as: component = tag, class: className } = props;
|
|
438
|
+
const { as: component = tag, class: className = mockedClass } = props;
|
|
430
439
|
const shouldKeepProps = options.propsAsIs === void 0 ? !(typeof component === "string" && component.indexOf("-") === -1 && !isCapital(component[0])) : options.propsAsIs;
|
|
431
440
|
const filteredProps = filterProps(shouldKeepProps, props, [
|
|
432
441
|
"as",
|
|
@@ -460,13 +469,17 @@ function styled(tag) {
|
|
|
460
469
|
}
|
|
461
470
|
return React__default.createElement(component, filteredProps);
|
|
462
471
|
};
|
|
463
|
-
const Result = React__default.forwardRef ? React__default.forwardRef(render) : (
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
472
|
+
const Result = React__default.forwardRef ? React__default.forwardRef(render) : (
|
|
473
|
+
// React.forwardRef won't available on older React versions and in Preact
|
|
474
|
+
// Fallback to a innerRef prop in that case
|
|
475
|
+
(props) => {
|
|
476
|
+
const rest = omit(props, ["innerRef"]);
|
|
477
|
+
return render(rest, props.innerRef);
|
|
478
|
+
}
|
|
479
|
+
);
|
|
467
480
|
Result.displayName = options.name;
|
|
468
481
|
Result.__linaria = {
|
|
469
|
-
className: options.class,
|
|
482
|
+
className: options.class || mockedClass,
|
|
470
483
|
extends: tag
|
|
471
484
|
};
|
|
472
485
|
return Result;
|
|
@@ -547,7 +560,7 @@ const tr = /*#__PURE__*/styled_default('tr')({
|
|
|
547
560
|
class: "twrwqj6",
|
|
548
561
|
propsAsIs: false
|
|
549
562
|
});
|
|
550
|
-
const _exp = () => props => props.align || "center";
|
|
563
|
+
const _exp = /*#__PURE__*/() => props => props.align || "center";
|
|
551
564
|
const th = /*#__PURE__*/styled_default('th')({
|
|
552
565
|
name: "th",
|
|
553
566
|
class: "t1fhygp",
|
|
@@ -556,7 +569,7 @@ const th = /*#__PURE__*/styled_default('th')({
|
|
|
556
569
|
"t1fhygp-0": [_exp()]
|
|
557
570
|
}
|
|
558
571
|
});
|
|
559
|
-
const _exp2 = () => props => props.align || "left";
|
|
572
|
+
const _exp2 = /*#__PURE__*/() => props => props.align || "left";
|
|
560
573
|
const td = /*#__PURE__*/styled_default('td')({
|
|
561
574
|
name: "td",
|
|
562
575
|
class: "t176v8uh",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "timvir",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.12",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"downshift": "^7",
|
|
20
20
|
"fuzzaldrin-plus": "^0.6.0",
|
|
21
21
|
"immer": "^9 || ^10",
|
|
22
|
-
"prism-react-renderer": "^
|
|
22
|
+
"prism-react-renderer": "^2",
|
|
23
23
|
"react-feather": "^2",
|
|
24
24
|
"use-immer": "^0.8.0 || ^0.8.1 || ^0.9.0",
|
|
25
25
|
"wonka": "^6"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@mdx-js/react": "^2",
|
|
28
|
+
"@mdx-js/react": "^2 || ^3",
|
|
29
29
|
"react": "^17 || ^18",
|
|
30
30
|
"react-dom": "^17 || ^18",
|
|
31
31
|
"react-hotkeys-hook": "^4"
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default function Sample(): React.JSX.Element;
|