@perses-dev/markdown-plugin 0.13.0-beta.4 → 0.13.0-beta.6
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/__mf/js/{Markdown.c29e8854.js → Markdown.2353f3e7.js} +2 -2
- package/__mf/js/async/{121.01d967ad.js → 121.5031d55f.js} +2 -2
- package/__mf/js/async/{192.bea61610.js → 192.b78f936a.js} +1 -1
- package/__mf/js/async/{235.69aef8df.js → 235.7202b6d7.js} +1 -1
- package/__mf/js/async/{274.24434e45.js → 274.3cbeb38c.js} +2 -2
- package/__mf/js/async/{356.fabbaa87.js → 356.d0587429.js} +1 -1
- package/__mf/js/async/{377.6c1f5388.js → 377.503deba1.js} +1 -1
- package/__mf/js/async/{392.5bb06cfb.js → 392.8ac7248c.js} +2 -2
- package/__mf/js/async/{43.834b02a4.js → 43.aa71dbdf.js} +2 -2
- package/__mf/js/async/{470.84ed2d0c.js → 470.2bcfb11f.js} +2 -2
- package/__mf/js/async/{496.7bd6871e.js → 496.c4276cfa.js} +1 -1
- package/__mf/js/async/{868.d3a0ef1c.js → 540.f4a271ef.js} +5 -5
- package/__mf/js/async/{555.d2c9d39e.js → 555.4c763e18.js} +1 -1
- package/__mf/js/async/{587.67dc8dc7.js → 587.36be7c2b.js} +1 -1
- package/__mf/js/async/{588.7f2da94d.js → 588.894b15a5.js} +1 -1
- package/__mf/js/async/{616.32f0b77a.js → 616.15c484c7.js} +1 -1
- package/__mf/js/async/{680.c5326ee5.js → 680.5b3b7dc3.js} +2 -2
- package/__mf/js/async/{71.1431bd3b.js → 71.a265a7c8.js} +1 -1
- package/__mf/js/async/{725.9321670a.js → 725.15493c5f.js} +1 -1
- package/__mf/js/async/{77.28089daa.js → 77.0ef8c92c.js} +1 -1
- package/__mf/js/async/{126.53916e5a.js → 839.c82522f9.js} +12 -12
- package/__mf/js/async/{854.1cd17418.js → 854.a1b16797.js} +1 -1
- package/__mf/js/async/{873.eda2b1f3.js → 873.0abd862c.js} +1 -1
- package/__mf/js/async/{936.ba4a8595.js → 936.531ff191.js} +1 -1
- package/__mf/js/async/{94.7446af3c.js → 94.9d4f2b41.js} +2 -2
- package/__mf/js/async/{941.c0697c06.js → 941.79a2b41b.js} +2 -2
- package/__mf/js/async/{968.356843c7.js → 968.11144231.js} +1 -1
- package/__mf/js/async/{978.3b3c259c.js → 978.ad38acce.js} +1 -1
- package/__mf/js/async/__federation_expose_Markdown.6c142cf7.js +1 -0
- package/__mf/js/async/{lib-router.6a5263c1.js → lib-router.3c291856.js} +2 -2
- package/__mf/js/{main.dbc21ca0.js → main.d66f9c76.js} +2 -2
- package/lib/MarkdownPanel.d.ts +1 -0
- package/lib/MarkdownPanel.d.ts.map +1 -1
- package/lib/MarkdownPanel.js +28 -2
- package/lib/MarkdownPanel.js.map +1 -1
- package/mf-manifest.json +36 -36
- package/mf-stats.json +36 -36
- package/package.json +4 -4
- package/__mf/js/async/__federation_expose_Markdown.5d981ce0.js +0 -1
- /package/__mf/css/async/{126.85c2cbf6.css → 839.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.01d967ad.js.LICENSE.txt → 121.5031d55f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{274.24434e45.js.LICENSE.txt → 274.3cbeb38c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.5bb06cfb.js.LICENSE.txt → 392.8ac7248c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{43.834b02a4.js.LICENSE.txt → 43.aa71dbdf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.84ed2d0c.js.LICENSE.txt → 470.2bcfb11f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{868.d3a0ef1c.js.LICENSE.txt → 540.f4a271ef.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{680.c5326ee5.js.LICENSE.txt → 680.5b3b7dc3.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{126.53916e5a.js.LICENSE.txt → 839.c82522f9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{94.7446af3c.js.LICENSE.txt → 94.9d4f2b41.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.c0697c06.js.LICENSE.txt → 941.79a2b41b.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.6a5263c1.js.LICENSE.txt → lib-router.3c291856.js.LICENSE.txt} +0 -0
package/lib/MarkdownPanel.js
CHANGED
|
@@ -17,6 +17,27 @@ import { useReplaceVariablesInString } from "@perses-dev/plugin-system";
|
|
|
17
17
|
import DOMPurify from "dompurify";
|
|
18
18
|
import { marked } from "marked";
|
|
19
19
|
import React, { useMemo } from "react";
|
|
20
|
+
// Isolated DOMPurify instance so afterSanitizeAttributes does not affect other plugins
|
|
21
|
+
// that import the default DOMPurify singleton (review: jgbernalp / shahrokni on #815).
|
|
22
|
+
// Default export is a factory: DOMPurify(window) returns a separate purifier.
|
|
23
|
+
const markdownPurifier = typeof window !== 'undefined' ? DOMPurify(window) : DOMPurify;
|
|
24
|
+
/**
|
|
25
|
+
* Ensure markdown links open safely (markdown plugin only):
|
|
26
|
+
* - absolute http(s) URLs → target=_blank + rel=noopener noreferrer
|
|
27
|
+
* - explicit target=_blank kept / reinforced
|
|
28
|
+
* - relative in-app paths (e.g. /explore) stay same-tab unless target=_blank was set
|
|
29
|
+
*/ markdownPurifier.addHook('afterSanitizeAttributes', (node)=>{
|
|
30
|
+
if (!(node instanceof Element) || node.tagName !== 'A') {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const href = node.getAttribute('href') ?? '';
|
|
34
|
+
const isAbsoluteHttp = /^https?:\/\//i.test(href) || href.startsWith('//');
|
|
35
|
+
const wantsBlank = node.getAttribute('target') === '_blank' || isAbsoluteHttp;
|
|
36
|
+
if (wantsBlank) {
|
|
37
|
+
node.setAttribute('target', '_blank');
|
|
38
|
+
node.setAttribute('rel', 'noopener noreferrer');
|
|
39
|
+
}
|
|
40
|
+
});
|
|
20
41
|
function createMarkdownPanelStyles(theme, chartsTheme) {
|
|
21
42
|
return {
|
|
22
43
|
padding: `${chartsTheme.container.padding.default}px`,
|
|
@@ -70,8 +91,13 @@ function markdownToHTML(text) {
|
|
|
70
91
|
});
|
|
71
92
|
}
|
|
72
93
|
// Prevent XSS attacks by removing the vectors for attacks
|
|
73
|
-
function sanitizeHTML(html) {
|
|
74
|
-
return
|
|
94
|
+
export function sanitizeHTML(html) {
|
|
95
|
+
return markdownPurifier.sanitize(html, {
|
|
96
|
+
ADD_ATTR: [
|
|
97
|
+
'target',
|
|
98
|
+
'rel'
|
|
99
|
+
]
|
|
100
|
+
});
|
|
75
101
|
}
|
|
76
102
|
export function MarkdownPanel(props) {
|
|
77
103
|
const { spec: { text } } = props;
|
package/lib/MarkdownPanel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/MarkdownPanel.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type { Theme } from '@mui/material';\nimport { Box } from '@mui/material';\nimport type { PersesChartsTheme } from '@perses-dev/components';\nimport { useChartsTheme } from '@perses-dev/components';\nimport type { PanelProps } from '@perses-dev/plugin-system';\nimport { useReplaceVariablesInString } from '@perses-dev/plugin-system';\nimport DOMPurify from 'dompurify';\nimport { marked } from 'marked';\nimport type { ReactElement } from 'react';\nimport React, { useMemo } from 'react';\n\nimport type { MarkdownPanelOptions } from './markdown-panel-model';\n\nexport type MarkdownPanelProps = PanelProps<MarkdownPanelOptions>;\n\nfunction createMarkdownPanelStyles(theme: Theme, chartsTheme: PersesChartsTheme): Record<string, unknown> {\n return {\n padding: `${chartsTheme.container.padding.default}px`,\n // Make the content scrollable\n height: '100%',\n overflowY: 'auto',\n // Ignore top margin on the first element.\n '& :first-of-type': {\n marginTop: 0,\n },\n // Styles for headers\n '& h1': {\n fontSize: '2em',\n },\n // Styles for <code>\n '& code': { fontSize: '0.85em' },\n '& :not(pre) code': {\n padding: '0.2em 0.4em',\n backgroundColor: theme.palette.grey[100],\n borderRadius: '4px',\n },\n '& pre': {\n padding: '1.2em',\n backgroundColor: theme.palette.grey[100],\n borderRadius: '4px',\n },\n // Styles for <table>\n '& table, & th, & td': {\n padding: '0.6em',\n border: `1px solid ${theme.palette.grey[300]}`,\n borderCollapse: 'collapse',\n },\n // Styles for <li>\n '& li + li': {\n marginTop: '0.25em',\n },\n // Styles for <a>\n '& a': {\n color: theme.palette.primary.main,\n },\n };\n}\n\n// Convert markdown to HTML\n// Supports original markdown and GitHub Flavored markdown\nfunction markdownToHTML(text: string): string {\n return marked.parse(text, { gfm: true, async: false });\n}\n\n// Prevent XSS attacks by removing the vectors for attacks\
|
|
1
|
+
{"version":3,"sources":["../../src/MarkdownPanel.tsx"],"sourcesContent":["// Copyright The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport type { Theme } from '@mui/material';\nimport { Box } from '@mui/material';\nimport type { PersesChartsTheme } from '@perses-dev/components';\nimport { useChartsTheme } from '@perses-dev/components';\nimport type { PanelProps } from '@perses-dev/plugin-system';\nimport { useReplaceVariablesInString } from '@perses-dev/plugin-system';\nimport DOMPurify from 'dompurify';\nimport { marked } from 'marked';\nimport type { ReactElement } from 'react';\nimport React, { useMemo } from 'react';\n\nimport type { MarkdownPanelOptions } from './markdown-panel-model';\n\nexport type MarkdownPanelProps = PanelProps<MarkdownPanelOptions>;\n\n// Isolated DOMPurify instance so afterSanitizeAttributes does not affect other plugins\n// that import the default DOMPurify singleton (review: jgbernalp / shahrokni on #815).\n// Default export is a factory: DOMPurify(window) returns a separate purifier.\nconst markdownPurifier = typeof window !== 'undefined' ? DOMPurify(window) : DOMPurify;\n\n/**\n * Ensure markdown links open safely (markdown plugin only):\n * - absolute http(s) URLs → target=_blank + rel=noopener noreferrer\n * - explicit target=_blank kept / reinforced\n * - relative in-app paths (e.g. /explore) stay same-tab unless target=_blank was set\n */\nmarkdownPurifier.addHook('afterSanitizeAttributes', (node) => {\n if (!(node instanceof Element) || node.tagName !== 'A') {\n return;\n }\n const href = node.getAttribute('href') ?? '';\n const isAbsoluteHttp = /^https?:\\/\\//i.test(href) || href.startsWith('//');\n const wantsBlank = node.getAttribute('target') === '_blank' || isAbsoluteHttp;\n if (wantsBlank) {\n node.setAttribute('target', '_blank');\n node.setAttribute('rel', 'noopener noreferrer');\n }\n});\n\nfunction createMarkdownPanelStyles(theme: Theme, chartsTheme: PersesChartsTheme): Record<string, unknown> {\n return {\n padding: `${chartsTheme.container.padding.default}px`,\n // Make the content scrollable\n height: '100%',\n overflowY: 'auto',\n // Ignore top margin on the first element.\n '& :first-of-type': {\n marginTop: 0,\n },\n // Styles for headers\n '& h1': {\n fontSize: '2em',\n },\n // Styles for <code>\n '& code': { fontSize: '0.85em' },\n '& :not(pre) code': {\n padding: '0.2em 0.4em',\n backgroundColor: theme.palette.grey[100],\n borderRadius: '4px',\n },\n '& pre': {\n padding: '1.2em',\n backgroundColor: theme.palette.grey[100],\n borderRadius: '4px',\n },\n // Styles for <table>\n '& table, & th, & td': {\n padding: '0.6em',\n border: `1px solid ${theme.palette.grey[300]}`,\n borderCollapse: 'collapse',\n },\n // Styles for <li>\n '& li + li': {\n marginTop: '0.25em',\n },\n // Styles for <a>\n '& a': {\n color: theme.palette.primary.main,\n },\n };\n}\n\n// Convert markdown to HTML\n// Supports original markdown and GitHub Flavored markdown\nfunction markdownToHTML(text: string): string {\n return marked.parse(text, { gfm: true, async: false });\n}\n\n// Prevent XSS attacks by removing the vectors for attacks\nexport function sanitizeHTML(html: string): string {\n return markdownPurifier.sanitize(html, {\n ADD_ATTR: ['target', 'rel'],\n });\n}\n\nexport function MarkdownPanel(props: MarkdownPanelProps): ReactElement {\n const {\n spec: { text },\n } = props;\n const chartsTheme = useChartsTheme();\n\n const textAfterVariableReplacement = useReplaceVariablesInString(text);\n\n const html = useMemo(() => markdownToHTML(textAfterVariableReplacement ?? ''), [textAfterVariableReplacement]);\n const sanitizedHTML = useMemo(() => sanitizeHTML(html), [html]);\n\n return (\n <Box\n sx={(theme) => createMarkdownPanelStyles(theme, chartsTheme)}\n dangerouslySetInnerHTML={{ __html: sanitizedHTML }}\n />\n );\n}\n"],"names":["Box","useChartsTheme","useReplaceVariablesInString","DOMPurify","marked","React","useMemo","markdownPurifier","window","addHook","node","Element","tagName","href","getAttribute","isAbsoluteHttp","test","startsWith","wantsBlank","setAttribute","createMarkdownPanelStyles","theme","chartsTheme","padding","container","default","height","overflowY","marginTop","fontSize","backgroundColor","palette","grey","borderRadius","border","borderCollapse","color","primary","main","markdownToHTML","text","parse","gfm","async","sanitizeHTML","html","sanitize","ADD_ATTR","MarkdownPanel","props","spec","textAfterVariableReplacement","sanitizedHTML","sx","dangerouslySetInnerHTML","__html"],"mappings":"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"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Markdown",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.13.0-beta.
|
|
8
|
+
"buildVersion": "0.13.0-beta.6",
|
|
9
9
|
"buildName": "@perses-dev/markdown-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Markdown.
|
|
12
|
+
"name": "__mf/js/Markdown.2353f3e7.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "Markdown_0_13_0_beta_6",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Markdown~0.13.0-beta.
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Markdown~0.13.0-beta.6/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"js": {
|
|
35
35
|
"async": [],
|
|
36
36
|
"sync": [
|
|
37
|
-
"__mf/js/async/274.
|
|
37
|
+
"__mf/js/async/274.3cbeb38c.js"
|
|
38
38
|
]
|
|
39
39
|
},
|
|
40
40
|
"css": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"js": {
|
|
55
55
|
"async": [],
|
|
56
56
|
"sync": [
|
|
57
|
-
"__mf/js/async/235.
|
|
58
|
-
"__mf/js/async/616.
|
|
59
|
-
"__mf/js/async/854.
|
|
57
|
+
"__mf/js/async/235.7202b6d7.js",
|
|
58
|
+
"__mf/js/async/616.15c484c7.js",
|
|
59
|
+
"__mf/js/async/854.a1b16797.js"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
"css": {
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"js": {
|
|
77
77
|
"async": [],
|
|
78
78
|
"sync": [
|
|
79
|
-
"__mf/js/async/587.
|
|
80
|
-
"__mf/js/async/968.
|
|
79
|
+
"__mf/js/async/587.36be7c2b.js",
|
|
80
|
+
"__mf/js/async/968.11144231.js"
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
"css": {
|
|
@@ -90,20 +90,20 @@
|
|
|
90
90
|
{
|
|
91
91
|
"id": "Markdown:@perses-dev/components",
|
|
92
92
|
"name": "@perses-dev/components",
|
|
93
|
-
"version": "0.55.0-beta.
|
|
93
|
+
"version": "0.55.0-beta.13",
|
|
94
94
|
"singleton": true,
|
|
95
|
-
"requiredVersion": "^0.55.0-beta.
|
|
95
|
+
"requiredVersion": "^0.55.0-beta.13",
|
|
96
96
|
"assets": {
|
|
97
97
|
"js": {
|
|
98
98
|
"async": [],
|
|
99
99
|
"sync": [
|
|
100
|
-
"__mf/js/async/
|
|
100
|
+
"__mf/js/async/839.c82522f9.js"
|
|
101
101
|
]
|
|
102
102
|
},
|
|
103
103
|
"css": {
|
|
104
104
|
"async": [],
|
|
105
105
|
"sync": [
|
|
106
|
-
"__mf/css/async/
|
|
106
|
+
"__mf/css/async/839.85c2cbf6.css"
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
{
|
|
113
113
|
"id": "Markdown:@perses-dev/plugin-system",
|
|
114
114
|
"name": "@perses-dev/plugin-system",
|
|
115
|
-
"version": "0.55.0-beta.
|
|
115
|
+
"version": "0.55.0-beta.13",
|
|
116
116
|
"singleton": true,
|
|
117
|
-
"requiredVersion": "^0.55.0-beta.
|
|
117
|
+
"requiredVersion": "^0.55.0-beta.13",
|
|
118
118
|
"assets": {
|
|
119
119
|
"js": {
|
|
120
120
|
"async": [],
|
|
121
121
|
"sync": [
|
|
122
|
-
"__mf/js/async/
|
|
122
|
+
"__mf/js/async/540.f4a271ef.js"
|
|
123
123
|
]
|
|
124
124
|
},
|
|
125
125
|
"css": {
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"js": {
|
|
140
140
|
"async": [],
|
|
141
141
|
"sync": [
|
|
142
|
-
"__mf/js/async/192.
|
|
142
|
+
"__mf/js/async/192.b78f936a.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
145
|
"css": {
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"js": {
|
|
160
160
|
"async": [],
|
|
161
161
|
"sync": [
|
|
162
|
-
"__mf/js/async/873.
|
|
162
|
+
"__mf/js/async/873.0abd862c.js"
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
"css": {
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"js": {
|
|
180
180
|
"async": [],
|
|
181
181
|
"sync": [
|
|
182
|
-
"__mf/js/async/392.
|
|
182
|
+
"__mf/js/async/392.8ac7248c.js"
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
"css": {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"js": {
|
|
200
200
|
"async": [],
|
|
201
201
|
"sync": [
|
|
202
|
-
"__mf/js/async/470.
|
|
202
|
+
"__mf/js/async/470.2bcfb11f.js"
|
|
203
203
|
]
|
|
204
204
|
},
|
|
205
205
|
"css": {
|
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"js": {
|
|
220
220
|
"async": [],
|
|
221
221
|
"sync": [
|
|
222
|
-
"__mf/js/async/121.
|
|
222
|
+
"__mf/js/async/121.5031d55f.js"
|
|
223
223
|
]
|
|
224
224
|
},
|
|
225
225
|
"css": {
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
"js": {
|
|
240
240
|
"async": [],
|
|
241
241
|
"sync": [
|
|
242
|
-
"__mf/js/async/978.
|
|
242
|
+
"__mf/js/async/978.ad38acce.js"
|
|
243
243
|
]
|
|
244
244
|
},
|
|
245
245
|
"css": {
|
|
@@ -258,26 +258,26 @@
|
|
|
258
258
|
"assets": {
|
|
259
259
|
"js": {
|
|
260
260
|
"sync": [
|
|
261
|
-
"__mf/js/async/94.
|
|
262
|
-
"__mf/js/async/680.
|
|
263
|
-
"__mf/js/async/__federation_expose_Markdown.
|
|
261
|
+
"__mf/js/async/94.9d4f2b41.js",
|
|
262
|
+
"__mf/js/async/680.5b3b7dc3.js",
|
|
263
|
+
"__mf/js/async/__federation_expose_Markdown.6c142cf7.js"
|
|
264
264
|
],
|
|
265
265
|
"async": [
|
|
266
|
-
"__mf/js/async/588.
|
|
267
|
-
"__mf/js/async/71.
|
|
268
|
-
"__mf/js/async/43.
|
|
269
|
-
"__mf/js/async/725.
|
|
270
|
-
"__mf/js/async/lib-router.
|
|
271
|
-
"__mf/js/async/356.
|
|
272
|
-
"__mf/js/async/936.
|
|
273
|
-
"__mf/js/async/77.
|
|
274
|
-
"__mf/js/async/496.
|
|
266
|
+
"__mf/js/async/588.894b15a5.js",
|
|
267
|
+
"__mf/js/async/71.a265a7c8.js",
|
|
268
|
+
"__mf/js/async/43.aa71dbdf.js",
|
|
269
|
+
"__mf/js/async/725.15493c5f.js",
|
|
270
|
+
"__mf/js/async/lib-router.3c291856.js",
|
|
271
|
+
"__mf/js/async/356.d0587429.js",
|
|
272
|
+
"__mf/js/async/936.531ff191.js",
|
|
273
|
+
"__mf/js/async/77.0ef8c92c.js",
|
|
274
|
+
"__mf/js/async/496.c4276cfa.js"
|
|
275
275
|
]
|
|
276
276
|
},
|
|
277
277
|
"css": {
|
|
278
278
|
"sync": [],
|
|
279
279
|
"async": [
|
|
280
|
-
"__mf/css/async/
|
|
280
|
+
"__mf/css/async/839.85c2cbf6.css"
|
|
281
281
|
]
|
|
282
282
|
}
|
|
283
283
|
},
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Markdown",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.13.0-beta.
|
|
8
|
+
"buildVersion": "0.13.0-beta.6",
|
|
9
9
|
"buildName": "@perses-dev/markdown-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Markdown.
|
|
12
|
+
"name": "__mf/js/Markdown.2353f3e7.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"zip": "",
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
|
-
"globalName": "
|
|
22
|
+
"globalName": "Markdown_0_13_0_beta_6",
|
|
23
23
|
"pluginVersion": "2.6.0",
|
|
24
|
-
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Markdown~0.13.0-beta.
|
|
24
|
+
"getPublicPath": "function() { const prefix = window.PERSES_PLUGIN_ASSETS_PATH || window.PERSES_APP_CONFIG?.api_prefix || \"\"; return prefix + \"/plugins/Markdown~0.13.0-beta.6/\"; }"
|
|
25
25
|
},
|
|
26
26
|
"shared": [
|
|
27
27
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"js": {
|
|
37
37
|
"async": [],
|
|
38
38
|
"sync": [
|
|
39
|
-
"__mf/js/async/274.
|
|
39
|
+
"__mf/js/async/274.3cbeb38c.js"
|
|
40
40
|
]
|
|
41
41
|
},
|
|
42
42
|
"css": {
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"js": {
|
|
61
61
|
"async": [],
|
|
62
62
|
"sync": [
|
|
63
|
-
"__mf/js/async/235.
|
|
64
|
-
"__mf/js/async/616.
|
|
65
|
-
"__mf/js/async/854.
|
|
63
|
+
"__mf/js/async/235.7202b6d7.js",
|
|
64
|
+
"__mf/js/async/616.15c484c7.js",
|
|
65
|
+
"__mf/js/async/854.a1b16797.js"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"css": {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"js": {
|
|
87
87
|
"async": [],
|
|
88
88
|
"sync": [
|
|
89
|
-
"__mf/js/async/587.
|
|
90
|
-
"__mf/js/async/968.
|
|
89
|
+
"__mf/js/async/587.36be7c2b.js",
|
|
90
|
+
"__mf/js/async/968.11144231.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
93
|
"css": {
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"singleton": true,
|
|
104
|
-
"requiredVersion": "^0.55.0-beta.
|
|
104
|
+
"requiredVersion": "^0.55.0-beta.13",
|
|
105
105
|
"shareScope": "default",
|
|
106
106
|
"name": "@perses-dev/components",
|
|
107
|
-
"version": "0.55.0-beta.
|
|
107
|
+
"version": "0.55.0-beta.13",
|
|
108
108
|
"eager": false,
|
|
109
109
|
"id": "Markdown:@perses-dev/components",
|
|
110
110
|
"assets": {
|
|
111
111
|
"js": {
|
|
112
112
|
"async": [],
|
|
113
113
|
"sync": [
|
|
114
|
-
"__mf/js/async/
|
|
114
|
+
"__mf/js/async/839.c82522f9.js"
|
|
115
115
|
]
|
|
116
116
|
},
|
|
117
117
|
"css": {
|
|
118
118
|
"async": [],
|
|
119
119
|
"sync": [
|
|
120
|
-
"__mf/css/async/
|
|
120
|
+
"__mf/css/async/839.85c2cbf6.css"
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -129,17 +129,17 @@
|
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"singleton": true,
|
|
132
|
-
"requiredVersion": "^0.55.0-beta.
|
|
132
|
+
"requiredVersion": "^0.55.0-beta.13",
|
|
133
133
|
"shareScope": "default",
|
|
134
134
|
"name": "@perses-dev/plugin-system",
|
|
135
|
-
"version": "0.55.0-beta.
|
|
135
|
+
"version": "0.55.0-beta.13",
|
|
136
136
|
"eager": false,
|
|
137
137
|
"id": "Markdown:@perses-dev/plugin-system",
|
|
138
138
|
"assets": {
|
|
139
139
|
"js": {
|
|
140
140
|
"async": [],
|
|
141
141
|
"sync": [
|
|
142
|
-
"__mf/js/async/
|
|
142
|
+
"__mf/js/async/540.f4a271ef.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
145
|
"css": {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"js": {
|
|
166
166
|
"async": [],
|
|
167
167
|
"sync": [
|
|
168
|
-
"__mf/js/async/192.
|
|
168
|
+
"__mf/js/async/192.b78f936a.js"
|
|
169
169
|
]
|
|
170
170
|
},
|
|
171
171
|
"css": {
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
"js": {
|
|
190
190
|
"async": [],
|
|
191
191
|
"sync": [
|
|
192
|
-
"__mf/js/async/873.
|
|
192
|
+
"__mf/js/async/873.0abd862c.js"
|
|
193
193
|
]
|
|
194
194
|
},
|
|
195
195
|
"css": {
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"js": {
|
|
214
214
|
"async": [],
|
|
215
215
|
"sync": [
|
|
216
|
-
"__mf/js/async/392.
|
|
216
|
+
"__mf/js/async/392.8ac7248c.js"
|
|
217
217
|
]
|
|
218
218
|
},
|
|
219
219
|
"css": {
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"js": {
|
|
238
238
|
"async": [],
|
|
239
239
|
"sync": [
|
|
240
|
-
"__mf/js/async/470.
|
|
240
|
+
"__mf/js/async/470.2bcfb11f.js"
|
|
241
241
|
]
|
|
242
242
|
},
|
|
243
243
|
"css": {
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
"js": {
|
|
262
262
|
"async": [],
|
|
263
263
|
"sync": [
|
|
264
|
-
"__mf/js/async/121.
|
|
264
|
+
"__mf/js/async/121.5031d55f.js"
|
|
265
265
|
]
|
|
266
266
|
},
|
|
267
267
|
"css": {
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"js": {
|
|
288
288
|
"async": [],
|
|
289
289
|
"sync": [
|
|
290
|
-
"__mf/js/async/978.
|
|
290
|
+
"__mf/js/async/978.ad38acce.js"
|
|
291
291
|
]
|
|
292
292
|
},
|
|
293
293
|
"css": {
|
|
@@ -315,26 +315,26 @@
|
|
|
315
315
|
"assets": {
|
|
316
316
|
"js": {
|
|
317
317
|
"sync": [
|
|
318
|
-
"__mf/js/async/94.
|
|
319
|
-
"__mf/js/async/680.
|
|
320
|
-
"__mf/js/async/__federation_expose_Markdown.
|
|
318
|
+
"__mf/js/async/94.9d4f2b41.js",
|
|
319
|
+
"__mf/js/async/680.5b3b7dc3.js",
|
|
320
|
+
"__mf/js/async/__federation_expose_Markdown.6c142cf7.js"
|
|
321
321
|
],
|
|
322
322
|
"async": [
|
|
323
|
-
"__mf/js/async/588.
|
|
324
|
-
"__mf/js/async/71.
|
|
325
|
-
"__mf/js/async/43.
|
|
326
|
-
"__mf/js/async/725.
|
|
327
|
-
"__mf/js/async/lib-router.
|
|
328
|
-
"__mf/js/async/356.
|
|
329
|
-
"__mf/js/async/936.
|
|
330
|
-
"__mf/js/async/77.
|
|
331
|
-
"__mf/js/async/496.
|
|
323
|
+
"__mf/js/async/588.894b15a5.js",
|
|
324
|
+
"__mf/js/async/71.a265a7c8.js",
|
|
325
|
+
"__mf/js/async/43.aa71dbdf.js",
|
|
326
|
+
"__mf/js/async/725.15493c5f.js",
|
|
327
|
+
"__mf/js/async/lib-router.3c291856.js",
|
|
328
|
+
"__mf/js/async/356.d0587429.js",
|
|
329
|
+
"__mf/js/async/936.531ff191.js",
|
|
330
|
+
"__mf/js/async/77.0ef8c92c.js",
|
|
331
|
+
"__mf/js/async/496.c4276cfa.js"
|
|
332
332
|
]
|
|
333
333
|
},
|
|
334
334
|
"css": {
|
|
335
335
|
"sync": [],
|
|
336
336
|
"async": [
|
|
337
|
-
"__mf/css/async/
|
|
337
|
+
"__mf/css/async/839.85c2cbf6.css"
|
|
338
338
|
]
|
|
339
339
|
}
|
|
340
340
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perses-dev/markdown-plugin",
|
|
3
|
-
"version": "0.13.0-beta.
|
|
3
|
+
"version": "0.13.0-beta.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://github.com/perses/plugins/blob/main/README.md",
|
|
6
6
|
"repository": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@emotion/react": "^11.7.1",
|
|
33
33
|
"@emotion/styled": "^11.6.0",
|
|
34
34
|
"@hookform/resolvers": "^5.9.1",
|
|
35
|
-
"@perses-dev/components": "^0.55.0-beta.
|
|
36
|
-
"@perses-dev/plugin-system": "^0.55.0-beta.
|
|
37
|
-
"@perses-dev/spec": "^0.3.0-beta.
|
|
35
|
+
"@perses-dev/components": "^0.55.0-beta.13",
|
|
36
|
+
"@perses-dev/plugin-system": "^0.55.0-beta.13",
|
|
37
|
+
"@perses-dev/spec": "^0.3.0-beta.9",
|
|
38
38
|
"date-fns": "^4.1.0",
|
|
39
39
|
"date-fns-tz": "^3.2.0",
|
|
40
40
|
"echarts": "5.5.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_Markdown_0_13_0_beta_4=self.chunk_Markdown_0_13_0_beta_4||[]).push([["360"],{11849(e,n,r){r.r(n),r.d(n,{Markdown:()=>g});var t=r(62540),a=r(74628),o=r(81315),l=r(98873),i=r(91264),d=r(19385),p=r(70451),s=r(315),u=r(57438),c=r(93648);let g={PanelComponent:function(e){let{spec:{text:n}}=e,r=(0,o.useChartsTheme)(),s=(0,l.useReplaceVariablesInString)(n),u=(0,p.useMemo)(()=>{var e;return e=s??"",d.xI.parse(e,{gfm:!0,async:!1})},[s]),c=(0,p.useMemo)(()=>i.A.sanitize(u),[u]);return(0,t.jsx)(a.A,{sx:e=>({padding:`${r.container.padding.default}px`,height:"100%",overflowY:"auto","& :first-of-type":{marginTop:0},"& h1":{fontSize:"2em"},"& code":{fontSize:"0.85em"},"& :not(pre) code":{padding:"0.2em 0.4em",backgroundColor:e.palette.grey[100],borderRadius:"4px"},"& pre":{padding:"1.2em",backgroundColor:e.palette.grey[100],borderRadius:"4px"},"& table, & th, & td":{padding:"0.6em",border:`1px solid ${e.palette.grey[300]}`,borderCollapse:"collapse"},"& li + li":{marginTop:"0.25em"},"& a":{color:e.palette.primary.main}}),dangerouslySetInnerHTML:{__html:c}})},supportedQueryTypes:[],panelOptionsEditorComponents:[{label:"Markdown",content:function(e){let{onChange:n,value:{text:r}}=e;return(0,t.jsxs)(s.A,{spacing:1,children:[(0,t.jsx)(u.A,{sx:{alignSelf:"end",textDecoration:"none"},href:"https://commonmark.org/help/",target:"_blank",rel:"noopener",children:"Markdown Guide"}),(0,t.jsx)(c.A,{label:"Text",multiline:!0,rows:20,value:r,onChange:e=>{n({text:e.target.value})}})]})}}],createInitialOptions:function(){return{text:""}},hideQueryEditor:!0}}}]);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/__mf/js/async/{lib-router.6a5263c1.js.LICENSE.txt → lib-router.3c291856.js.LICENSE.txt}
RENAMED
|
File without changes
|