@docusaurus/theme-live-codeblock 2.0.0-beta.14 → 2.0.0-beta.15

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.
@@ -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 { features as bubleFeatures, TransformOptions, TransformOutput } from '@philpl/buble';
7
+ import { features as bubleFeatures, type TransformOptions, type TransformOutput } from '@philpl/buble';
8
8
  export { bubleFeatures as features };
9
9
  export declare function transform(source: string, options: TransformOptions): TransformOutput;
package/lib/index.d.ts CHANGED
@@ -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 { DocusaurusContext, Plugin } from '@docusaurus/types';
7
+ import type { DocusaurusContext, Plugin } from '@docusaurus/types';
8
8
  export default function theme(context: DocusaurusContext): Plugin;
9
9
  export { validateThemeConfig } from './validateThemeConfig';
@@ -11,7 +11,7 @@ import clsx from 'clsx';
11
11
  import Translate from '@docusaurus/Translate';
12
12
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
13
13
  import BrowserOnly from '@docusaurus/BrowserOnly';
14
- import usePrismTheme from '@theme/hooks/usePrismTheme';
14
+ import {usePrismTheme} from '@docusaurus/theme-common';
15
15
  import styles from './styles.module.css';
16
16
  import useIsBrowser from '@docusaurus/useIsBrowser';
17
17
 
@@ -30,7 +30,7 @@
30
30
  .playgroundEditor {
31
31
  font: var(--ifm-code-font-size) / var(--ifm-pre-line-height)
32
32
  var(--ifm-font-family-monospace) !important;
33
- /*rtl:ignore*/
33
+ /* rtl:ignore */
34
34
  direction: ltr;
35
35
  }
36
36
 
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@docusaurus/theme-live-codeblock",
3
- "version": "2.0.0-beta.14",
3
+ "version": "2.0.0-beta.15",
4
4
  "description": "Docusaurus live code block component.",
5
5
  "main": "lib/index.js",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "scripts": {
10
- "build": "tsc && node copyUntypedFiles.js",
11
- "watch": "node copyUntypedFiles.js && tsc --watch"
10
+ "build": "tsc && node copyUntypedFiles.mjs",
11
+ "watch": "node copyUntypedFiles.mjs && tsc --watch"
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
- "@docusaurus/core": "2.0.0-beta.14",
21
- "@docusaurus/theme-translations": "2.0.0-beta.14",
22
- "@docusaurus/utils": "2.0.0-beta.14",
23
- "@docusaurus/utils-validation": "2.0.0-beta.14",
20
+ "@docusaurus/core": "2.0.0-beta.15",
21
+ "@docusaurus/theme-common": "2.0.0-beta.15",
22
+ "@docusaurus/theme-translations": "2.0.0-beta.15",
23
+ "@docusaurus/utils-validation": "2.0.0-beta.15",
24
24
  "@philpl/buble": "^0.19.7",
25
25
  "clsx": "^1.1.1",
26
26
  "fs-extra": "^10.0.0",
@@ -30,7 +30,7 @@
30
30
  "tslib": "^2.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@docusaurus/types": "2.0.0-beta.14",
33
+ "@docusaurus/types": "2.0.0-beta.15",
34
34
  "@types/buble": "^0.20.1"
35
35
  },
36
36
  "peerDependencies": {
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=14"
42
42
  },
43
- "gitHead": "c4824a8937d8f1aa0806667749cbc74058e2b294"
43
+ "gitHead": "6cfad16436c07d8d11e5c2e1486dc59afd483e33"
44
44
  }
@@ -11,8 +11,8 @@
11
11
  import {
12
12
  transform as bubleTransform,
13
13
  features as bubleFeatures,
14
- TransformOptions,
15
- TransformOutput,
14
+ type TransformOptions,
15
+ type TransformOutput,
16
16
  } from '@philpl/buble';
17
17
 
18
18
  // This file is designed to mimic what's written in
package/src/index.ts CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  import path from 'path';
9
9
  import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
10
- import {DocusaurusContext, Plugin} from '@docusaurus/types';
10
+ import type {DocusaurusContext, Plugin} from '@docusaurus/types';
11
11
 
12
12
  export default function theme(context: DocusaurusContext): Plugin {
13
13
  const {
@@ -11,7 +11,7 @@ import clsx from 'clsx';
11
11
  import Translate from '@docusaurus/Translate';
12
12
  import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
13
13
  import BrowserOnly from '@docusaurus/BrowserOnly';
14
- import usePrismTheme from '@theme/hooks/usePrismTheme';
14
+ import {usePrismTheme} from '@docusaurus/theme-common';
15
15
  import styles from './styles.module.css';
16
16
  import useIsBrowser from '@docusaurus/useIsBrowser';
17
17
 
@@ -30,7 +30,7 @@
30
30
  .playgroundEditor {
31
31
  font: var(--ifm-code-font-size) / var(--ifm-pre-line-height)
32
32
  var(--ifm-font-family-monospace) !important;
33
- /*rtl:ignore*/
33
+ /* rtl:ignore */
34
34
  direction: ltr;
35
35
  }
36
36