@hyvor/design 0.0.48 → 0.0.49

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.
@@ -3,7 +3,7 @@ import './hljs.scss';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  code: string;
6
- language?: ("css" | "ts" | "yaml" | "html" | "js" | "svelte" | "jsx") | undefined;
6
+ language?: ("css" | "ts" | "yaml" | "json" | "html" | "js" | "svelte" | "jsx") | undefined;
7
7
  };
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
@@ -4,11 +4,13 @@ import xml from 'highlight.js/lib/languages/xml';
4
4
  import css from 'highlight.js/lib/languages/css';
5
5
  import ts from 'highlight.js/lib/languages/typescript';
6
6
  import yaml from 'highlight.js/lib/languages/yaml';
7
+ import json from 'highlight.js/lib/languages/json';
7
8
  hljs.registerLanguage('javascript', javascript);
8
9
  hljs.registerLanguage('xml', xml);
9
10
  hljs.registerLanguage('css', css);
10
11
  hljs.registerLanguage('ts', ts);
11
12
  hljs.registerLanguage('yaml', yaml);
13
+ hljs.registerLanguage('json', json);
12
14
  export default function getCode(code, language) {
13
15
  let ret = code;
14
16
  // remove the first empty line
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyvor/design",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "scripts": {