markmap-lib 0.14.5-alpha.22 → 0.14.5-alpha.24
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 +6 -6
- package/dist/browser/index.mjs +6 -6
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +4 -4
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.24+08dd40c | 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.14.5-alpha.
|
|
9
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.24"}/dist/browser/index.js`];
|
|
10
10
|
|
|
11
11
|
function _extends() {
|
|
12
12
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -7377,11 +7377,11 @@ const plugin$1 = definePlugin({
|
|
|
7377
7377
|
name: name$3,
|
|
7378
7378
|
config: config$1,
|
|
7379
7379
|
transform(transformHooks) {
|
|
7380
|
-
var _plugin$config3, _plugin$config4;
|
|
7380
|
+
var _plugin$config, _plugin$config3, _plugin$config4;
|
|
7381
7381
|
let loading;
|
|
7382
|
+
const preloadScripts = ((_plugin$config = plugin$1.config) == null || (_plugin$config = _plugin$config.preloadScripts) == null ? void 0 : _plugin$config.map(item => patchJSItem(transformHooks.transformer, item))) || [];
|
|
7382
7383
|
const autoload = () => {
|
|
7383
|
-
|
|
7384
|
-
loading || (loading = markmapCommon.loadJS(((_plugin$config = plugin$1.config) == null ? void 0 : _plugin$config.preloadScripts) || []));
|
|
7384
|
+
loading || (loading = markmapCommon.loadJS(preloadScripts));
|
|
7385
7385
|
return loading;
|
|
7386
7386
|
};
|
|
7387
7387
|
const renderKatex = (source, displayMode) => {
|
|
@@ -10896,7 +10896,7 @@ class Transformer {
|
|
|
10896
10896
|
}
|
|
10897
10897
|
|
|
10898
10898
|
const transformerVersions = {
|
|
10899
|
-
'markmap-lib': '0.14.5-alpha.
|
|
10899
|
+
'markmap-lib': '0.14.5-alpha.24+08dd40c',
|
|
10900
10900
|
d3: "7.8.5"
|
|
10901
10901
|
};
|
|
10902
10902
|
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.24+08dd40c | 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.14.5-alpha.
|
|
10
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.24"}/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));
|
|
@@ -103,11 +103,11 @@ const plugin$1 = definePlugin({
|
|
|
103
103
|
name: name$3,
|
|
104
104
|
config: config$1,
|
|
105
105
|
transform(transformHooks) {
|
|
106
|
-
var _plugin$config3, _plugin$config4;
|
|
106
|
+
var _plugin$config, _plugin$config3, _plugin$config4;
|
|
107
107
|
let loading;
|
|
108
|
+
const preloadScripts = ((_plugin$config = plugin$1.config) == null || (_plugin$config = _plugin$config.preloadScripts) == null ? void 0 : _plugin$config.map(item => patchJSItem(transformHooks.transformer, item))) || [];
|
|
108
109
|
const autoload = () => {
|
|
109
|
-
|
|
110
|
-
loading || (loading = loadJS(((_plugin$config = plugin$1.config) == null ? void 0 : _plugin$config.preloadScripts) || []));
|
|
110
|
+
loading || (loading = loadJS(preloadScripts));
|
|
111
111
|
return loading;
|
|
112
112
|
};
|
|
113
113
|
const renderKatex = (source, displayMode) => {
|
|
@@ -511,7 +511,7 @@ class Transformer {
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
const transformerVersions = {
|
|
514
|
-
'markmap-lib': '0.14.5-alpha.
|
|
514
|
+
'markmap-lib': '0.14.5-alpha.24+08dd40c',
|
|
515
515
|
d3: "7.8.5"
|
|
516
516
|
};
|
|
517
517
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.24+08dd40c | 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.14.5-alpha.
|
|
12
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.24"}/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.14.5-alpha.
|
|
464
|
+
'markmap-lib': '0.14.5-alpha.24+08dd40c',
|
|
465
465
|
d3: "7.8.5"
|
|
466
466
|
};
|
|
467
467
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-lib v0.14.5-alpha.
|
|
1
|
+
/*! markmap-lib v0.14.5-alpha.24+08dd40c | 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.14.5-alpha.
|
|
10
|
+
const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.14.5-alpha.24"}/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.14.5-alpha.
|
|
462
|
+
'markmap-lib': '0.14.5-alpha.24+08dd40c',
|
|
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.14.5-alpha.
|
|
3
|
+
"version": "0.14.5-alpha.24+08dd40c",
|
|
4
4
|
"description": "Visualize your Markdown as mindmaps with Markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,8 +47,8 @@
|
|
|
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.24+08dd40c",
|
|
51
|
+
"markmap-view": "0.14.5-alpha.24+08dd40c",
|
|
52
52
|
"webfontloader": "^1.6.28"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"markmap-common": "*"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "08dd40c9353058928a148f6b97d11e98ec1d328b"
|
|
67
67
|
}
|