markmap-lib 0.14.5-alpha.18 → 0.14.5-alpha.19
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/browser/index.js +11 -11
- package/dist/browser/index.mjs +11 -11
- package/dist/index.js +10 -10
- package/dist/index.mjs +10 -10
- package/package.json +8 -8
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.19+5323905 | MIT License */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('katex')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'katex'], factory) :
|
|
@@ -20,7 +20,7 @@ function _extends$1() {
|
|
|
20
20
|
return _extends$1.apply(this, arguments);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/*! markmap-common v0.14.5-alpha.
|
|
23
|
+
/*! markmap-common v0.14.5-alpha.19+5323905 | MIT License */
|
|
24
24
|
class Hook {
|
|
25
25
|
constructor() {
|
|
26
26
|
this.listeners = [];
|
|
@@ -391,7 +391,7 @@ function buildCSSItem(path, overrideProvider) {
|
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
394
|
-
const baseJsPaths = [`d3@${"
|
|
394
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.19"}/dist/browser/index.js`];
|
|
395
395
|
function fillTemplate(root, assets, extra) {
|
|
396
396
|
var _extra, _extra$baseJs;
|
|
397
397
|
extra = _extends$1({}, extra);
|
|
@@ -7689,13 +7689,13 @@ var remarkableKatex = rkatex;
|
|
|
7689
7689
|
var remarkableKatex$1 = /*@__PURE__*/getDefaultExportFromCjs(remarkableKatex);
|
|
7690
7690
|
|
|
7691
7691
|
function getConfig$1() {
|
|
7692
|
-
const preloadScripts = [`katex@${"0.16.
|
|
7692
|
+
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
|
|
7693
7693
|
const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
|
|
7694
7694
|
webfontloader.data.defer = true;
|
|
7695
|
-
const styles = [`katex@${"0.16.
|
|
7695
|
+
const styles = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
|
|
7696
7696
|
return {
|
|
7697
7697
|
versions: {
|
|
7698
|
-
katex: "0.16.
|
|
7698
|
+
katex: "0.16.8" ,
|
|
7699
7699
|
webfontloader: "1.6.28"
|
|
7700
7700
|
},
|
|
7701
7701
|
preloadScripts,
|
|
@@ -7820,11 +7820,11 @@ var katex = definePlugin(() => {
|
|
|
7820
7820
|
});
|
|
7821
7821
|
|
|
7822
7822
|
function getConfig() {
|
|
7823
|
-
const preloadScripts = [`prismjs@${"1.
|
|
7824
|
-
const styles = [`prismjs@${"1.
|
|
7823
|
+
const preloadScripts = [`prismjs@${"1.29.0"}/components/prism-core.min.js`, `prismjs@${"1.29.0"}/plugins/autoloader/prism-autoloader.min.js`].map(path => buildJSItem(path));
|
|
7824
|
+
const styles = [`prismjs@${"1.29.0"}/themes/prism.css`].map(path => buildCSSItem(path));
|
|
7825
7825
|
return {
|
|
7826
7826
|
versions: {
|
|
7827
|
-
prismjs: "1.
|
|
7827
|
+
prismjs: "1.29.0"
|
|
7828
7828
|
},
|
|
7829
7829
|
preloadScripts,
|
|
7830
7830
|
styles
|
|
@@ -11277,8 +11277,8 @@ class Transformer {
|
|
|
11277
11277
|
}
|
|
11278
11278
|
|
|
11279
11279
|
const transformerVersions = {
|
|
11280
|
-
'markmap-lib': '0.14.5-alpha.
|
|
11281
|
-
d3: "
|
|
11280
|
+
'markmap-lib': '0.14.5-alpha.19+5323905',
|
|
11281
|
+
d3: "7.8.5"
|
|
11282
11282
|
};
|
|
11283
11283
|
|
|
11284
11284
|
exports.Transformer = Transformer;
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.19+5323905 | MIT License */
|
|
2
2
|
import require$$0 from 'katex';
|
|
3
3
|
|
|
4
4
|
function _extends$1() {
|
|
@@ -16,7 +16,7 @@ function _extends$1() {
|
|
|
16
16
|
return _extends$1.apply(this, arguments);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/*! markmap-common v0.14.5-alpha.
|
|
19
|
+
/*! markmap-common v0.14.5-alpha.19+5323905 | MIT License */
|
|
20
20
|
class Hook {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.listeners = [];
|
|
@@ -387,7 +387,7 @@ function buildCSSItem(path, overrideProvider) {
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
390
|
-
const baseJsPaths = [`d3@${"
|
|
390
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.19"}/dist/browser/index.js`];
|
|
391
391
|
function fillTemplate(root, assets, extra) {
|
|
392
392
|
var _extra, _extra$baseJs;
|
|
393
393
|
extra = _extends$1({}, extra);
|
|
@@ -7685,13 +7685,13 @@ var remarkableKatex = rkatex;
|
|
|
7685
7685
|
var remarkableKatex$1 = /*@__PURE__*/getDefaultExportFromCjs(remarkableKatex);
|
|
7686
7686
|
|
|
7687
7687
|
function getConfig$1() {
|
|
7688
|
-
const preloadScripts = [`katex@${"0.16.
|
|
7688
|
+
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
|
|
7689
7689
|
const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
|
|
7690
7690
|
webfontloader.data.defer = true;
|
|
7691
|
-
const styles = [`katex@${"0.16.
|
|
7691
|
+
const styles = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
|
|
7692
7692
|
return {
|
|
7693
7693
|
versions: {
|
|
7694
|
-
katex: "0.16.
|
|
7694
|
+
katex: "0.16.8" ,
|
|
7695
7695
|
webfontloader: "1.6.28"
|
|
7696
7696
|
},
|
|
7697
7697
|
preloadScripts,
|
|
@@ -7816,11 +7816,11 @@ var katex = definePlugin(() => {
|
|
|
7816
7816
|
});
|
|
7817
7817
|
|
|
7818
7818
|
function getConfig() {
|
|
7819
|
-
const preloadScripts = [`prismjs@${"1.
|
|
7820
|
-
const styles = [`prismjs@${"1.
|
|
7819
|
+
const preloadScripts = [`prismjs@${"1.29.0"}/components/prism-core.min.js`, `prismjs@${"1.29.0"}/plugins/autoloader/prism-autoloader.min.js`].map(path => buildJSItem(path));
|
|
7820
|
+
const styles = [`prismjs@${"1.29.0"}/themes/prism.css`].map(path => buildCSSItem(path));
|
|
7821
7821
|
return {
|
|
7822
7822
|
versions: {
|
|
7823
|
-
prismjs: "1.
|
|
7823
|
+
prismjs: "1.29.0"
|
|
7824
7824
|
},
|
|
7825
7825
|
preloadScripts,
|
|
7826
7826
|
styles
|
|
@@ -11273,8 +11273,8 @@ class Transformer {
|
|
|
11273
11273
|
}
|
|
11274
11274
|
|
|
11275
11275
|
const transformerVersions = {
|
|
11276
|
-
'markmap-lib': '0.14.5-alpha.
|
|
11277
|
-
d3: "
|
|
11276
|
+
'markmap-lib': '0.14.5-alpha.19+5323905',
|
|
11277
|
+
d3: "7.8.5"
|
|
11278
11278
|
};
|
|
11279
11279
|
|
|
11280
11280
|
export { Transformer, baseJsPaths, plugins as builtInPlugins, fillTemplate, transformerVersions };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.19+5323905 | MIT License */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
@@ -10,7 +10,7 @@ var loadLanguages = require('prismjs/components/index.js');
|
|
|
10
10
|
var yaml = require('js-yaml');
|
|
11
11
|
|
|
12
12
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
13
|
-
const baseJsPaths = [`d3@${"
|
|
13
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.19"}/dist/browser/index.js`];
|
|
14
14
|
function fillTemplate(root, assets, extra) {
|
|
15
15
|
var _extra, _extra$baseJs;
|
|
16
16
|
extra = _extends({}, extra);
|
|
@@ -48,13 +48,13 @@ function fillTemplate(root, assets, extra) {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function getConfig$1() {
|
|
51
|
-
const preloadScripts = [`katex@${"0.16.
|
|
51
|
+
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => markmapCommon.buildJSItem(path));
|
|
52
52
|
const webfontloader = markmapCommon.buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
|
|
53
53
|
webfontloader.data.defer = true;
|
|
54
|
-
const styles = [`katex@${"0.16.
|
|
54
|
+
const styles = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => markmapCommon.buildCSSItem(path));
|
|
55
55
|
return {
|
|
56
56
|
versions: {
|
|
57
|
-
katex: "0.16.
|
|
57
|
+
katex: "0.16.8" ,
|
|
58
58
|
webfontloader: "1.6.28"
|
|
59
59
|
},
|
|
60
60
|
preloadScripts,
|
|
@@ -128,11 +128,11 @@ var katex = definePlugin(() => {
|
|
|
128
128
|
});
|
|
129
129
|
|
|
130
130
|
function getConfig() {
|
|
131
|
-
const preloadScripts = [`prismjs@${"1.
|
|
132
|
-
const styles = [`prismjs@${"1.
|
|
131
|
+
const preloadScripts = [`prismjs@${"1.29.0"}/components/prism-core.min.js`, `prismjs@${"1.29.0"}/plugins/autoloader/prism-autoloader.min.js`].map(path => markmapCommon.buildJSItem(path));
|
|
132
|
+
const styles = [`prismjs@${"1.29.0"}/themes/prism.css`].map(path => markmapCommon.buildCSSItem(path));
|
|
133
133
|
return {
|
|
134
134
|
versions: {
|
|
135
|
-
prismjs: "1.
|
|
135
|
+
prismjs: "1.29.0"
|
|
136
136
|
},
|
|
137
137
|
preloadScripts,
|
|
138
138
|
styles
|
|
@@ -461,8 +461,8 @@ class Transformer {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
const transformerVersions = {
|
|
464
|
-
'markmap-lib': '0.14.5-alpha.
|
|
465
|
-
d3: "
|
|
464
|
+
'markmap-lib': '0.14.5-alpha.19+5323905',
|
|
465
|
+
d3: "7.8.5"
|
|
466
466
|
};
|
|
467
467
|
|
|
468
468
|
exports.Transformer = Transformer;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.19+5323905 | MIT License */
|
|
2
2
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
3
3
|
import { buildJSItem, persistCSS, persistJS, buildCSSItem, Hook, wrapFunction, noop, getFullUrl } from 'markmap-common';
|
|
4
4
|
import { Remarkable } from 'remarkable';
|
|
@@ -8,7 +8,7 @@ import loadLanguages from 'prismjs/components/index.js';
|
|
|
8
8
|
import yaml from 'js-yaml';
|
|
9
9
|
|
|
10
10
|
const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">\n<title>Markmap</title>\n<style>\n* {\n margin: 0;\n padding: 0;\n}\n#mindmap {\n display: block;\n width: 100vw;\n height: 100vh;\n}\n</style>\n<!--CSS-->\n</head>\n<body>\n<svg id=\"mindmap\"></svg>\n<!--JS-->\n</body>\n</html>\n" ;
|
|
11
|
-
const baseJsPaths = [`d3@${"
|
|
11
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.19"}/dist/browser/index.js`];
|
|
12
12
|
function fillTemplate(root, assets, extra) {
|
|
13
13
|
var _extra, _extra$baseJs;
|
|
14
14
|
extra = _extends({}, extra);
|
|
@@ -46,13 +46,13 @@ function fillTemplate(root, assets, extra) {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
function getConfig$1() {
|
|
49
|
-
const preloadScripts = [`katex@${"0.16.
|
|
49
|
+
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
|
|
50
50
|
const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
|
|
51
51
|
webfontloader.data.defer = true;
|
|
52
|
-
const styles = [`katex@${"0.16.
|
|
52
|
+
const styles = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
|
|
53
53
|
return {
|
|
54
54
|
versions: {
|
|
55
|
-
katex: "0.16.
|
|
55
|
+
katex: "0.16.8" ,
|
|
56
56
|
webfontloader: "1.6.28"
|
|
57
57
|
},
|
|
58
58
|
preloadScripts,
|
|
@@ -126,11 +126,11 @@ var katex = definePlugin(() => {
|
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
function getConfig() {
|
|
129
|
-
const preloadScripts = [`prismjs@${"1.
|
|
130
|
-
const styles = [`prismjs@${"1.
|
|
129
|
+
const preloadScripts = [`prismjs@${"1.29.0"}/components/prism-core.min.js`, `prismjs@${"1.29.0"}/plugins/autoloader/prism-autoloader.min.js`].map(path => buildJSItem(path));
|
|
130
|
+
const styles = [`prismjs@${"1.29.0"}/themes/prism.css`].map(path => buildCSSItem(path));
|
|
131
131
|
return {
|
|
132
132
|
versions: {
|
|
133
|
-
prismjs: "1.
|
|
133
|
+
prismjs: "1.29.0"
|
|
134
134
|
},
|
|
135
135
|
preloadScripts,
|
|
136
136
|
styles
|
|
@@ -459,8 +459,8 @@ class Transformer {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
const transformerVersions = {
|
|
462
|
-
'markmap-lib': '0.14.5-alpha.
|
|
463
|
-
d3: "
|
|
462
|
+
'markmap-lib': '0.14.5-alpha.19+5323905',
|
|
463
|
+
d3: "7.8.5"
|
|
464
464
|
};
|
|
465
465
|
|
|
466
466
|
export { Transformer, baseJsPaths, plugins as builtInPlugins, fillTemplate, transformerVersions };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-lib",
|
|
3
|
-
"version": "0.14.5-alpha.
|
|
3
|
+
"version": "0.14.5-alpha.19+5323905",
|
|
4
4
|
"description": "Visualize your Markdown as mindmaps with Markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dev": "rollup -wc rollup.conf.js",
|
|
9
9
|
"clean": "del-cli dist types",
|
|
10
10
|
"build:types": "tsc",
|
|
11
|
-
"build:js": "rollup -c
|
|
11
|
+
"build:js": "rollup -c"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public",
|
|
@@ -47,20 +47,20 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/remarkable": "^2.0.3",
|
|
50
|
-
"markmap-common": "0.14.5-alpha.
|
|
51
|
-
"markmap-view": "0.14.5-alpha.
|
|
50
|
+
"markmap-common": "0.14.5-alpha.19+5323905",
|
|
51
|
+
"markmap-view": "0.14.5-alpha.19+5323905",
|
|
52
52
|
"webfontloader": "^1.6.28"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@babel/runtime": "^7.
|
|
55
|
+
"@babel/runtime": "^7.22.6",
|
|
56
56
|
"js-yaml": "^4.1.0",
|
|
57
|
-
"katex": "^0.16.
|
|
58
|
-
"prismjs": "^1.
|
|
57
|
+
"katex": "^0.16.8",
|
|
58
|
+
"prismjs": "^1.29.0",
|
|
59
59
|
"remarkable": "^2.0.1",
|
|
60
60
|
"remarkable-katex": "^1.2.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"markmap-common": "*"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "532390588885518c11fa50b8a77c0694821cfecf"
|
|
66
66
|
}
|