@docusaurus/theme-live-codeblock 4.0.0-canary-6877 → 4.0.0-canary-6881
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/lib/theme/CodeBlock/index.d.ts +1 -1
- package/lib/theme/CodeBlock/index.js +0 -1
- package/lib/theme/LiveCodeBlock/index.d.ts +1 -1
- package/lib/theme/LiveCodeBlock/index.js +0 -1
- package/lib/theme/Playground/Container/index.d.ts +1 -1
- package/lib/theme/Playground/Container/index.js +0 -1
- package/lib/theme/Playground/Editor/index.d.ts +1 -1
- package/lib/theme/Playground/Editor/index.js +0 -1
- package/lib/theme/Playground/Header/index.d.ts +1 -1
- package/lib/theme/Playground/Header/index.js +0 -1
- package/lib/theme/Playground/Layout/index.d.ts +1 -1
- package/lib/theme/Playground/Layout/index.js +0 -1
- package/lib/theme/Playground/Preview/index.d.ts +1 -1
- package/lib/theme/Playground/Preview/index.js +0 -1
- package/lib/theme/Playground/Provider/index.js +1 -1
- package/lib/theme/Playground/index.d.ts +1 -1
- package/lib/theme/Playground/index.js +0 -1
- package/package.json +9 -9
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/LiveCodeBlock/index.tsx +1 -1
- package/src/theme/Playground/Container/index.tsx +1 -1
- package/src/theme/Playground/Editor/index.tsx +1 -1
- package/src/theme/Playground/Header/index.tsx +1 -1
- package/src/theme/Playground/Layout/index.tsx +1 -1
- package/src/theme/Playground/Preview/index.tsx +1 -1
- package/src/theme/Playground/Provider/index.tsx +1 -1
- package/src/theme/Playground/index.tsx +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props as CodeBlockProps } from '@theme/CodeBlock';
|
|
9
9
|
declare module '@theme/CodeBlock' {
|
|
10
10
|
interface Props {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import OriginalCodeBlock from '@theme-init/CodeBlock';
|
|
9
8
|
import LiveCodeBlock from '@theme/LiveCodeBlock';
|
|
10
9
|
function isLiveCodeBlock(props) {
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/LiveCodeBlock';
|
|
9
9
|
export default function LiveCodeBlock(props: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import Playground from '@theme/Playground';
|
|
9
8
|
import ReactLiveScope from '@theme/ReactLiveScope';
|
|
10
9
|
export default function LiveCodeBlock(props) {
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/Playground/Container';
|
|
9
9
|
export default function PlaygroundContainer({ children }: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import styles from './styles.module.css';
|
|
9
8
|
export default function PlaygroundContainer({children}) {
|
|
10
9
|
return <div className={styles.playgroundContainer}>{children}</div>;
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
export default function PlaygroundEditor(): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import {LiveEditor} from 'react-live';
|
|
9
8
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
10
9
|
import Translate from '@docusaurus/Translate';
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/Playground/Header';
|
|
9
9
|
export default function PlaygroundHeader({ children, buttons, }: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import clsx from 'clsx';
|
|
9
8
|
import styles from './styles.module.css';
|
|
10
9
|
export default function PlaygroundHeader({children, buttons}) {
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/Playground/Layout';
|
|
9
9
|
export default function PlaygroundLayout(props: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
9
8
|
import PlaygroundPreview from '@theme/Playground/Preview';
|
|
10
9
|
import PlaygroundEditor from '@theme/Playground/Editor';
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
export default function PlaygroundPreview(): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import {LiveError, LivePreview} from 'react-live';
|
|
9
8
|
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
10
9
|
import {ErrorBoundaryErrorMessageFallback} from '@docusaurus/theme-common';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import {useCallback, useMemo, useState} from 'react';
|
|
8
8
|
import {LiveProvider} from 'react-live';
|
|
9
9
|
import {PlaygroundProvider as PlaygroundProviderComponent} from '@docusaurus/theme-live-codeblock/client';
|
|
10
10
|
import {usePrismTheme} from '@docusaurus/theme-common';
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import type { ReactNode } from 'react';
|
|
8
8
|
import type { Props } from '@theme/Playground';
|
|
9
9
|
export default function Playground({ children, transformCode, position, ...props }: Props): ReactNode;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
8
7
|
import PlaygroundProvider from '@theme/Playground/Provider';
|
|
9
8
|
import PlaygroundContainer from '@theme/Playground/Container';
|
|
10
9
|
import PlaygroundLayout from '@theme/Playground/Layout';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-live-codeblock",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6881",
|
|
4
4
|
"description": "Docusaurus live code block component.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-live-codeblock.d.ts",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
},
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
39
|
-
"@docusaurus/theme-classic": "4.0.0-canary-
|
|
40
|
-
"@docusaurus/theme-common": "4.0.0-canary-
|
|
41
|
-
"@docusaurus/theme-translations": "4.0.0-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
38
|
+
"@docusaurus/core": "4.0.0-canary-6881",
|
|
39
|
+
"@docusaurus/theme-classic": "4.0.0-canary-6881",
|
|
40
|
+
"@docusaurus/theme-common": "4.0.0-canary-6881",
|
|
41
|
+
"@docusaurus/theme-translations": "4.0.0-canary-6881",
|
|
42
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6881",
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"react-live": "^4.1.8",
|
|
45
45
|
"tslib": "^2.8.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
49
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
48
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6881",
|
|
49
|
+
"@docusaurus/types": "4.0.0-canary-6881"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": "^19.3.0",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=24.21"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "e430343b0caccec7c7db3553dca51f181d3d9c3b"
|
|
59
59
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import type {Props as CodeBlockProps} from '@theme/CodeBlock';
|
|
10
10
|
import OriginalCodeBlock from '@theme-init/CodeBlock';
|
|
11
11
|
import LiveCodeBlock from '@theme/LiveCodeBlock';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import Playground from '@theme/Playground';
|
|
10
10
|
import ReactLiveScope from '@theme/ReactLiveScope';
|
|
11
11
|
import type {Props} from '@theme/LiveCodeBlock';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import {LiveEditor} from 'react-live';
|
|
10
10
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
11
11
|
import Translate from '@docusaurus/Translate';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import PlaygroundPreview from '@theme/Playground/Preview';
|
|
11
11
|
import PlaygroundEditor from '@theme/Playground/Editor';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import {LiveError, LivePreview} from 'react-live';
|
|
10
10
|
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
11
11
|
import {ErrorBoundaryErrorMessageFallback} from '@docusaurus/theme-common';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import {type ReactNode, useCallback, useMemo, useState} from 'react';
|
|
9
9
|
import {LiveProvider} from 'react-live';
|
|
10
10
|
import {PlaygroundProvider as PlaygroundProviderComponent} from '@docusaurus/theme-live-codeblock/client';
|
|
11
11
|
import {usePrismTheme} from '@docusaurus/theme-common';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
8
|
+
import type {ReactNode} from 'react';
|
|
9
9
|
import PlaygroundProvider from '@theme/Playground/Provider';
|
|
10
10
|
import PlaygroundContainer from '@theme/Playground/Container';
|
|
11
11
|
import PlaygroundLayout from '@theme/Playground/Layout';
|