@datagouv/components-next 0.0.12 → 0.0.13
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/dist/{JsonPreview.client-DIkmdH2M.js → JsonPreview.client-B02h-wXN.js} +2 -2
- package/dist/{MapContainer.client-C_ziilUT.js → MapContainer.client-DPN0WBuA.js} +1 -1
- package/dist/{PdfPreview.client-ClQF3S8E.js → PdfPreview.client-E2yon-e5.js} +2 -2
- package/dist/{Pmtiles.client-FkdZAUG-.js → Pmtiles.client-D3ar7TqV.js} +1 -1
- package/dist/Swagger.client-FFfBn3xr.js +4 -0
- package/dist/{XmlPreview.client-DfHUWkih.js → XmlPreview.client-GLR3L2Ub.js} +2 -2
- package/dist/components-next.js +1 -1
- package/dist/main-BpD9swJ2.js +101023 -0
- package/dist/{pdf-vue3-DFzYx_2k.js → pdf-vue3-BxkITVfK.js} +1 -1
- package/dist/{text-clamp.esm-pQ8Iya95.js → text-clamp.esm-Cj58jMQJ.js} +1 -1
- package/dist/{vue3-json-viewer-AGKmPmT9.js → vue3-json-viewer-CjJTUwus.js} +1 -1
- package/dist/{vue3-xml-viewer.common-CntqATO7.js → vue3-xml-viewer.common-yvwmMyER.js} +1 -1
- package/package.json +5 -2
- package/src/components/ResourceAccordion/Swagger.client.vue +2 -2
- package/src/functions/markdown.ts +4 -0
- package/dist/Swagger.client-QQlOMFC1.js +0 -4
- package/dist/main-D4D0CyPW.js +0 -128570
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Zl, r as c, c as bl, J as dl, L as Wl, w as J, o as cl, b as X, f as M, g as s, y as Q, i as u, M as Gl, N as ml, h as H, u as g, t as f } from "./main-
|
|
1
|
+
import { d as Zl, r as c, c as bl, J as dl, L as Wl, w as J, o as cl, b as X, f as M, g as s, y as Q, i as u, M as Gl, N as ml, h as H, u as g, t as f } from "./main-BpD9swJ2.js";
|
|
2
2
|
const Nl = {
|
|
3
3
|
class: "pdf-vue3-main",
|
|
4
4
|
style: { height: "100%", position: "relative", "min-height": "10px" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as K, r as C, a as P, c as z, w as g, b as Q, n as W, o as X, e as Y, f as Z, g as $, h as B, u as L, i as ee } from "./main-
|
|
1
|
+
import { d as K, r as C, a as P, c as z, w as g, b as Q, n as W, o as X, e as Y, f as Z, g as $, h as B, u as L, i as ee } from "./main-BpD9swJ2.js";
|
|
2
2
|
var H = null;
|
|
3
3
|
function te(e) {
|
|
4
4
|
return H || (H = (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(r) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as T, D as ce, b as _, f as N, y as Y, g as P, E as S, h as pe, A as fe, t as O, q as de, r as k, G as z, c as A, w as J, e as I, H, I as g, n as ve } from "./main-
|
|
1
|
+
import { d as T, D as ce, b as _, f as N, y as Y, g as P, E as S, h as pe, A as fe, t as O, q as de, r as k, G as z, c as A, w as J, e as I, H, I as g, n as ve } from "./main-BpD9swJ2.js";
|
|
2
2
|
const ye = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/, G = T({
|
|
3
3
|
name: "JsonString",
|
|
4
4
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as et, P as ge, Q as j, R as ut, S as tn, T as cn, U as _i, V as pi, W as ds, X as Ce, Y as ui, Z as fs, $ as di, a0 as he, a1 as Un, a2 as Et, a3 as fi, a4 as hi, a5 as mi, a6 as Ei, a7 as vi, a8 as Mt, a9 as Ni, aa as _n, ab as gi, ac as Si, k as Ti } from "./main-
|
|
1
|
+
import { O as et, P as ge, Q as j, R as ut, S as tn, T as cn, U as _i, V as pi, W as ds, X as Ce, Y as ui, Z as fs, $ as di, a0 as he, a1 as Un, a2 as Et, a3 as fi, a4 as hi, a5 as mi, a6 as Ei, a7 as vi, a8 as Mt, a9 as Ni, aa as _n, ab as gi, ac as Si, k as Ti } from "./main-BpD9swJ2.js";
|
|
2
2
|
function yi(e, t) {
|
|
3
3
|
for (var n = 0; n < t.length; n++) {
|
|
4
4
|
const r = t[n];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datagouv/components-next",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/main.ts",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"remark-parse": "^11.0.0",
|
|
46
46
|
"remark-rehype": "^11.1.2",
|
|
47
47
|
"strip-markdown": "^6.0.0",
|
|
48
|
-
"swagger-ui": "^5.
|
|
48
|
+
"swagger-ui-dist": "^5.27.1",
|
|
49
49
|
"unified": "^11.0.5",
|
|
50
50
|
"unist-util-visit": "^5.0.0",
|
|
51
51
|
"vue": "^3.5.13",
|
|
@@ -79,6 +79,9 @@
|
|
|
79
79
|
"vite-plugin-vue-devtools": "^7.7.1",
|
|
80
80
|
"vue-tsc": "^2.2.0"
|
|
81
81
|
},
|
|
82
|
+
"scarfSettings": {
|
|
83
|
+
"enabled": false
|
|
84
|
+
},
|
|
82
85
|
"author": {
|
|
83
86
|
"name": "DINUM"
|
|
84
87
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
6
|
import { onMounted } from 'vue'
|
|
7
|
-
import
|
|
7
|
+
import { SwaggerUIBundle } from 'swagger-ui-dist'
|
|
8
8
|
import 'swagger-ui/dist/swagger-ui.css'
|
|
9
9
|
import '../../../assets/swagger-themes/newspaper.css'
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ const props = defineProps<{
|
|
|
13
13
|
}>()
|
|
14
14
|
|
|
15
15
|
onMounted(async () => {
|
|
16
|
-
|
|
16
|
+
SwaggerUIBundle({
|
|
17
17
|
dom_id: '#swagger-ui',
|
|
18
18
|
url: props.url,
|
|
19
19
|
})
|
|
@@ -4,6 +4,7 @@ import remarkBreaks from 'remark-breaks'
|
|
|
4
4
|
import rehypeHighlight from 'rehype-highlight'
|
|
5
5
|
import remarkParse from 'remark-parse'
|
|
6
6
|
import remarkRehype from 'remark-rehype'
|
|
7
|
+
import remarkStringify from 'remark-stringify'
|
|
7
8
|
import rehypeRaw from 'rehype-raw'
|
|
8
9
|
import rehypeSanitize from 'rehype-sanitize'
|
|
9
10
|
import rehypeSlug from 'rehype-slug'
|
|
@@ -63,8 +64,11 @@ export function formatMarkdown(md: string, minDepth = 3) {
|
|
|
63
64
|
|
|
64
65
|
export async function removeMarkdown(text: string) {
|
|
65
66
|
const file = await unified()
|
|
67
|
+
// Take Markdown as input and turn it into MD syntax tree
|
|
68
|
+
.use(remarkParse, { fragment: true })
|
|
66
69
|
.use(remarkGfm)
|
|
67
70
|
.use(strip)
|
|
71
|
+
.use(remarkStringify)
|
|
68
72
|
.process(text)
|
|
69
73
|
return String(file)
|
|
70
74
|
}
|