@gradio/code 0.13.2 → 0.14.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @gradio/code
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Features
6
+
7
+ - [#10982](https://github.com/gradio-app/gradio/pull/10982) [`a80b312`](https://github.com/gradio-app/gradio/commit/a80b312c081a03b5bd73477305e2f094da512b37) - Add latex to code component languages. Thanks @ginazhouhuiwu!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/upload@0.16.1
12
+ - @gradio/atoms@0.15.1
13
+ - @gradio/statustracker@0.10.8
14
+ - @gradio/icons@0.12.0
15
+
3
16
  ## 0.13.2
4
17
 
5
18
  ### Dependency updates
@@ -26,7 +26,8 @@ function get_ext_for_type(type) {
26
26
  shell: "sh",
27
27
  r: "r",
28
28
  c: "c",
29
- cpp: "cpp"
29
+ cpp: "cpp",
30
+ latex: "tex"
30
31
  };
31
32
  return exts[type] || "txt";
32
33
  }
@@ -26,6 +26,7 @@ const lang_map = {
26
26
  ]);
27
27
  return md.markdown({ extensions: [frontmatter.frontmatter] });
28
28
  },
29
+ latex: () => import("@codemirror/legacy-modes/mode/stex").then((m) => StreamLanguage.define(m.stex)),
29
30
  json: () => import("@codemirror/lang-json").then((m) => m.json()),
30
31
  html: () => import("@codemirror/lang-html").then((m) => m.html()),
31
32
  css: () => import("@codemirror/lang-css").then((m) => m.css()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradio/code",
3
- "version": "0.13.2",
3
+ "version": "0.14.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
@@ -27,12 +27,12 @@
27
27
  "cm6-theme-basic-dark": "^0.2.0",
28
28
  "cm6-theme-basic-light": "^0.2.0",
29
29
  "codemirror": "^6.0.1",
30
- "@gradio/atoms": "^0.15.0",
31
- "@gradio/icons": "^0.11.0",
32
- "@gradio/statustracker": "^0.10.7",
33
- "@gradio/upload": "^0.16.0",
30
+ "@gradio/atoms": "^0.15.1",
31
+ "@gradio/icons": "^0.12.0",
32
+ "@gradio/statustracker": "^0.10.8",
33
+ "@gradio/utils": "^0.10.1",
34
34
  "@gradio/wasm": "^0.18.1",
35
- "@gradio/utils": "^0.10.1"
35
+ "@gradio/upload": "^0.16.1"
36
36
  },
37
37
  "main_changeset": true,
38
38
  "main": "./Index.svelte",
@@ -29,7 +29,8 @@
29
29
  shell: "sh",
30
30
  r: "r",
31
31
  c: "c",
32
- cpp: "cpp"
32
+ cpp: "cpp",
33
+ latex: "tex"
33
34
  };
34
35
 
35
36
  return exts[type] || "txt";
@@ -35,6 +35,10 @@ const lang_map: Record<string, (() => Promise<Extension>) | undefined> = {
35
35
  ]);
36
36
  return md.markdown({ extensions: [frontmatter.frontmatter] });
37
37
  },
38
+ latex: () =>
39
+ import("@codemirror/legacy-modes/mode/stex").then((m) =>
40
+ StreamLanguage.define(m.stex)
41
+ ),
38
42
  json: () => import("@codemirror/lang-json").then((m) => m.json()),
39
43
  html: () => import("@codemirror/lang-html").then((m) => m.html()),
40
44
  css: () => import("@codemirror/lang-css").then((m) => m.css()),