@dxos/react-ui-syntax-highlighter 0.8.4-main.84f28bd → 0.8.4-main.b97322e

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.84f28bd",
3
+ "version": "0.8.4-main.b97322e",
4
4
  "description": "A syntax highlighter wrapper.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -36,15 +36,15 @@
36
36
  "react": "~18.2.0",
37
37
  "react-dom": "~18.2.0",
38
38
  "vite": "5.4.7",
39
- "@dxos/react-ui": "0.8.4-main.84f28bd",
40
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd",
41
- "@dxos/storybook-utils": "0.8.4-main.84f28bd"
39
+ "@dxos/react-ui": "0.8.4-main.b97322e",
40
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e",
41
+ "@dxos/storybook-utils": "0.8.4-main.b97322e"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "react": "~18.2.0",
45
45
  "react-dom": "~18.2.0",
46
- "@dxos/react-ui": "0.8.4-main.84f28bd",
47
- "@dxos/react-ui-theme": "0.8.4-main.84f28bd"
46
+ "@dxos/react-ui": "0.8.4-main.b97322e",
47
+ "@dxos/react-ui-theme": "0.8.4-main.b97322e"
48
48
  },
49
49
  "publishConfig": {
50
50
  "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>