@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 +13 -0
- package/dist/shared/Download.svelte +2 -1
- package/dist/shared/language.js +1 -0
- package/package.json +6 -6
- package/shared/Download.svelte +2 -1
- package/shared/language.ts +4 -0
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
|
package/dist/shared/language.js
CHANGED
@@ -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.
|
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.
|
31
|
-
"@gradio/icons": "^0.
|
32
|
-
"@gradio/statustracker": "^0.10.
|
33
|
-
"@gradio/
|
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/
|
35
|
+
"@gradio/upload": "^0.16.1"
|
36
36
|
},
|
37
37
|
"main_changeset": true,
|
38
38
|
"main": "./Index.svelte",
|
package/shared/Download.svelte
CHANGED
package/shared/language.ts
CHANGED
@@ -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()),
|