markmap-lib 0.14.5-alpha.24 → 0.15.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/dist/browser/index.js +3 -3
- package/dist/browser/index.mjs +3 -3
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +16 -5
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.
|
|
1
|
+
/*! markmap-lib v0.15.0 | MIT License */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('markmap-common'), require('katex'), require('highlight.js')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'markmap-common', 'katex', 'highlight.js'], factory) :
|
|
@@ -6,7 +6,7 @@ typeof define === 'function' && define.amd ? define(['exports', 'markmap-common'
|
|
|
6
6
|
})(this, (function (exports, markmapCommon, require$$0, hljs) { 'use strict';
|
|
7
7
|
|
|
8
8
|
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" ;
|
|
9
|
-
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.
|
|
9
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.15.0"}/dist/browser/index.js`];
|
|
10
10
|
|
|
11
11
|
function _extends() {
|
|
12
12
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -10896,7 +10896,7 @@ class Transformer {
|
|
|
10896
10896
|
}
|
|
10897
10897
|
|
|
10898
10898
|
const transformerVersions = {
|
|
10899
|
-
'markmap-lib': '0.
|
|
10899
|
+
'markmap-lib': '0.15.0',
|
|
10900
10900
|
d3: "7.8.5"
|
|
10901
10901
|
};
|
|
10902
10902
|
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.
|
|
1
|
+
/*! markmap-lib v0.15.0 | MIT License */
|
|
2
2
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
3
3
|
import { Remarkable } from 'remarkable';
|
|
4
4
|
import { buildJSItem, buildCSSItem, Hook, noop, loadJS, UrlBuilder, wrapFunction, persistCSS, persistJS } from 'markmap-common';
|
|
@@ -7,7 +7,7 @@ import yaml from 'js-yaml';
|
|
|
7
7
|
import hljs from 'highlight.js';
|
|
8
8
|
|
|
9
9
|
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" ;
|
|
10
|
-
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.
|
|
10
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.15.0"}/dist/browser/index.js`];
|
|
11
11
|
|
|
12
12
|
const name$3 = 'katex';
|
|
13
13
|
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
|
|
@@ -511,7 +511,7 @@ class Transformer {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
const transformerVersions = {
|
|
514
|
-
'markmap-lib': '0.
|
|
514
|
+
'markmap-lib': '0.15.0',
|
|
515
515
|
d3: "7.8.5"
|
|
516
516
|
};
|
|
517
517
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.
|
|
1
|
+
/*! markmap-lib v0.15.0 | MIT License */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
@@ -9,7 +9,7 @@ var yaml = require('js-yaml');
|
|
|
9
9
|
var hljs = require('highlight.js');
|
|
10
10
|
|
|
11
11
|
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" ;
|
|
12
|
-
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.
|
|
12
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.15.0"}/dist/browser/index.js`];
|
|
13
13
|
|
|
14
14
|
const name$3 = 'katex';
|
|
15
15
|
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => markmapCommon.buildJSItem(path));
|
|
@@ -461,7 +461,7 @@ class Transformer {
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
const transformerVersions = {
|
|
464
|
-
'markmap-lib': '0.
|
|
464
|
+
'markmap-lib': '0.15.0',
|
|
465
465
|
d3: "7.8.5"
|
|
466
466
|
};
|
|
467
467
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.
|
|
1
|
+
/*! markmap-lib v0.15.0 | MIT License */
|
|
2
2
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
3
3
|
import { Remarkable } from 'remarkable';
|
|
4
4
|
import { buildJSItem, buildCSSItem, Hook, wrapFunction, noop, UrlBuilder, persistCSS, persistJS } from 'markmap-common';
|
|
@@ -7,7 +7,7 @@ import yaml from 'js-yaml';
|
|
|
7
7
|
import hljs from 'highlight.js';
|
|
8
8
|
|
|
9
9
|
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" ;
|
|
10
|
-
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.
|
|
10
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.15.0"}/dist/browser/index.js`];
|
|
11
11
|
|
|
12
12
|
const name$3 = 'katex';
|
|
13
13
|
const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
|
|
@@ -459,7 +459,7 @@ class Transformer {
|
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
const transformerVersions = {
|
|
462
|
-
'markmap-lib': '0.
|
|
462
|
+
'markmap-lib': '0.15.0',
|
|
463
463
|
d3: "7.8.5"
|
|
464
464
|
};
|
|
465
465
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Visualize your Markdown as mindmaps with Markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,8 @@
|
|
|
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
|
+
"test": "jest test"
|
|
12
13
|
},
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public",
|
|
@@ -47,8 +48,8 @@
|
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/remarkable": "^2.0.3",
|
|
50
|
-
"markmap-common": "0.
|
|
51
|
-
"markmap-view": "0.
|
|
51
|
+
"markmap-common": "0.15.0",
|
|
52
|
+
"markmap-view": "0.15.0",
|
|
52
53
|
"webfontloader": "^1.6.28"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
@@ -63,5 +64,15 @@
|
|
|
63
64
|
"peerDependencies": {
|
|
64
65
|
"markmap-common": "*"
|
|
65
66
|
},
|
|
66
|
-
"
|
|
67
|
+
"jest": {
|
|
68
|
+
"transform": {
|
|
69
|
+
"\\.ts$": [
|
|
70
|
+
"babel-jest",
|
|
71
|
+
{
|
|
72
|
+
"rootMode": "upward"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"gitHead": "9c13bae5e28346ec613362046a023839ef64538b"
|
|
67
78
|
}
|