@dxos/react-ui-syntax-highlighter 0.8.4-main.f9ba587 → 0.8.4-main.fd6878d

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-ui-syntax-highlighter",
3
- "version": "0.8.4-main.f9ba587",
3
+ "version": "0.8.4-main.fd6878d",
4
4
  "description": "A syntax highlighter wrapper.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -10,6 +10,7 @@
10
10
  "type": "module",
11
11
  "exports": {
12
12
  ".": {
13
+ "source": "./src/index.ts",
13
14
  "types": "./dist/types/src/index.d.ts",
14
15
  "browser": "./dist/lib/browser/index.mjs",
15
16
  "node": "./dist/lib/node-esm/index.mjs"
@@ -26,7 +27,7 @@
26
27
  "dependencies": {
27
28
  "@preact-signals/safe-react": "^0.9.0",
28
29
  "jsonpath": "^1.1.1",
29
- "react-syntax-highlighter": "^15.5.0"
30
+ "react-syntax-highlighter": "^15.6.1"
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/jsonpath": "^0.2.4",
@@ -36,15 +37,15 @@
36
37
  "react": "~18.2.0",
37
38
  "react-dom": "~18.2.0",
38
39
  "vite": "5.4.7",
39
- "@dxos/react-ui": "0.8.4-main.f9ba587",
40
- "@dxos/react-ui-theme": "0.8.4-main.f9ba587",
41
- "@dxos/storybook-utils": "0.8.4-main.f9ba587"
40
+ "@dxos/react-ui": "0.8.4-main.fd6878d",
41
+ "@dxos/react-ui-theme": "0.8.4-main.fd6878d",
42
+ "@dxos/storybook-utils": "0.8.4-main.fd6878d"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "react": "~18.2.0",
45
46
  "react-dom": "~18.2.0",
46
- "@dxos/react-ui": "0.8.4-main.f9ba587",
47
- "@dxos/react-ui-theme": "0.8.4-main.f9ba587"
47
+ "@dxos/react-ui": "0.8.4-main.fd6878d",
48
+ "@dxos/react-ui-theme": "0.8.4-main.fd6878d"
48
49
  },
49
50
  "publishConfig": {
50
51
  "access": "public"
package/src/Json/Json.tsx CHANGED
@@ -7,7 +7,6 @@ import jp from 'jsonpath';
7
7
  import React, { useEffect, useState } from 'react';
8
8
 
9
9
  import { Input, type ThemedClassName } from '@dxos/react-ui';
10
- import { mx } from '@dxos/react-ui-theme';
11
10
 
12
11
  import { SyntaxHighlighter } from '../SyntaxHighlighter';
13
12
 
@@ -43,14 +42,14 @@ export const JsonFilter = ({ data: initialData, classNames, testId }: JsonProps)
43
42
  <div className='flex flex-col grow overflow-hidden'>
44
43
  <Input.Root validationValence={error ? 'error' : 'success'}>
45
44
  <Input.TextInput
46
- classNames={mx('p-1 px-2 font-mono', error && 'border-red-500')}
45
+ classNames={['p-1 px-2 font-mono', error && 'border-red-500']}
47
46
  variant='subdued'
48
47
  value={text}
49
48
  onChange={(event) => setText(event.target.value)}
50
49
  placeholder='JSONPath (e.g., $.graph.nodes)'
51
50
  />
52
51
  </Input.Root>
53
- <SyntaxHighlighter language='json' classNames={mx('grow overflow-y-auto', classNames)} data-testid={testId}>
52
+ <SyntaxHighlighter language='json' classNames={['grow overflow-y-auto', classNames]} data-testid={testId}>
54
53
  {JSON.stringify(data, null, 2)}
55
54
  </SyntaxHighlighter>
56
55
  </div>
@@ -9,7 +9,7 @@ import { type SyntaxHighlighterProps as NativeSyntaxHighlighterProps } from 'rea
9
9
  // eslint-disable-next-line no-restricted-imports
10
10
  import NativeSyntaxHighlighter from 'react-syntax-highlighter/dist/esm/light-async';
11
11
  // eslint-disable-next-line no-restricted-imports
12
- import { github as light, a11yDark as dark } from 'react-syntax-highlighter/dist/esm/styles/hljs';
12
+ import { a11yDark as dark, github as light } from 'react-syntax-highlighter/dist/esm/styles/hljs';
13
13
 
14
14
  import { type ThemedClassName, useThemeContext } from '@dxos/react-ui';
15
15
  import { mx } from '@dxos/react-ui-theme';