markmap-lib 0.15.2-alpha.0 → 0.15.2-alpha.1

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.
@@ -1,4 +1,4 @@
1
- /*! markmap-lib v0.15.2-alpha.0+3e3da98 | MIT License */
1
+ /*! markmap-lib v0.15.2-alpha.1+6800b6d | 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) :
@@ -7687,7 +7687,7 @@ var remarkableKatex = rkatex;
7687
7687
  var remarkableKatex$1 = /*@__PURE__*/getDefaultExportFromCjs(remarkableKatex);
7688
7688
 
7689
7689
  const name$3 = 'katex';
7690
- const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
7690
+ const preloadScripts$1 = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
7691
7691
  const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
7692
7692
  webfontloader.data.defer = true;
7693
7693
  const styles$1 = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
@@ -7696,7 +7696,7 @@ const config$1 = {
7696
7696
  katex: "0.16.8" ,
7697
7697
  webfontloader: "1.6.28"
7698
7698
  },
7699
- preloadScripts,
7699
+ preloadScripts: preloadScripts$1,
7700
7700
  scripts: [{
7701
7701
  type: 'iife',
7702
7702
  data: {
@@ -11025,11 +11025,15 @@ var npmUrl = definePlugin({
11025
11025
  });
11026
11026
 
11027
11027
  const name = 'hljs';
11028
- const styles = [`highlight.js@${"11.8.0"}/styles/default.css`].map(path => buildCSSItem(path));
11028
+ const preloadScripts = [`@highlightjs/cdn-assets@${"11.8.0"}/highlight.min.js`].map(path => buildJSItem(path));
11029
+ const styles = [`@highlightjs/cdn-assets@${"11.8.0"}/styles/default.min.css`
11030
+ // `highlight.js@${"11.8.0"}/styles/default.css`,
11031
+ ].map(path => buildCSSItem(path));
11029
11032
  const config = {
11030
11033
  versions: {
11031
11034
  hljs: "11.8.0"
11032
11035
  },
11036
+ preloadScripts,
11033
11037
  styles
11034
11038
  };
11035
11039
 
@@ -11315,7 +11319,7 @@ class Transformer {
11315
11319
  }
11316
11320
 
11317
11321
  const transformerVersions = {
11318
- 'markmap-lib': '0.15.2-alpha.0+3e3da98',
11322
+ 'markmap-lib': '0.15.2-alpha.1+6800b6d',
11319
11323
  d3: "7.8.5"
11320
11324
  };
11321
11325
 
@@ -1,4 +1,4 @@
1
- /*! markmap-lib v0.15.2-alpha.0+3e3da98 | MIT License */
1
+ /*! markmap-lib v0.15.2-alpha.1+6800b6d | 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';
@@ -9,7 +9,7 @@ const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<me
9
9
  const baseJsPaths = [`d3@${"7.8.5"}/dist/d3.min.js`, `markmap-view@${"0.15.0"}/dist/browser/index.js`];
10
10
 
11
11
  const name$3 = 'katex';
12
- const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
12
+ const preloadScripts$1 = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
13
13
  const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
14
14
  webfontloader.data.defer = true;
15
15
  const styles$1 = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
@@ -18,7 +18,7 @@ const config$1 = {
18
18
  katex: "0.16.8" ,
19
19
  webfontloader: "1.6.28"
20
20
  },
21
- preloadScripts,
21
+ preloadScripts: preloadScripts$1,
22
22
  scripts: [{
23
23
  type: 'iife',
24
24
  data: {
@@ -236,11 +236,15 @@ var npmUrl = definePlugin({
236
236
  });
237
237
 
238
238
  const name = 'hljs';
239
- const styles = [`highlight.js@${"11.8.0"}/styles/default.css`].map(path => buildCSSItem(path));
239
+ const preloadScripts = [`@highlightjs/cdn-assets@${"11.8.0"}/highlight.min.js`].map(path => buildJSItem(path));
240
+ const styles = [`@highlightjs/cdn-assets@${"11.8.0"}/styles/default.min.css`
241
+ // `highlight.js@${"11.8.0"}/styles/default.css`,
242
+ ].map(path => buildCSSItem(path));
240
243
  const config = {
241
244
  versions: {
242
245
  hljs: "11.8.0"
243
246
  },
247
+ preloadScripts,
244
248
  styles
245
249
  };
246
250
 
@@ -526,7 +530,7 @@ class Transformer {
526
530
  }
527
531
 
528
532
  const transformerVersions = {
529
- 'markmap-lib': '0.15.2-alpha.0+3e3da98',
533
+ 'markmap-lib': '0.15.2-alpha.1+6800b6d',
530
534
  d3: "7.8.5"
531
535
  };
532
536
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-lib v0.15.2-alpha.0+3e3da98 | MIT License */
1
+ /*! markmap-lib v0.15.2-alpha.1+6800b6d | MIT License */
2
2
  'use strict';
3
3
 
4
4
  var _extends = require('@babel/runtime/helpers/extends');
@@ -12,7 +12,7 @@ const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<me
12
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
- const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => markmapCommon.buildJSItem(path));
15
+ const preloadScripts$1 = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => markmapCommon.buildJSItem(path));
16
16
  const webfontloader = markmapCommon.buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
17
17
  webfontloader.data.defer = true;
18
18
  const styles$1 = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => markmapCommon.buildCSSItem(path));
@@ -21,7 +21,7 @@ const config$1 = {
21
21
  katex: "0.16.8" ,
22
22
  webfontloader: "1.6.28"
23
23
  },
24
- preloadScripts,
24
+ preloadScripts: preloadScripts$1,
25
25
  scripts: [{
26
26
  type: 'iife',
27
27
  data: {
@@ -166,11 +166,15 @@ var npmUrl = definePlugin({
166
166
  });
167
167
 
168
168
  const name = 'hljs';
169
- const styles = [`highlight.js@${"11.8.0"}/styles/default.css`].map(path => markmapCommon.buildCSSItem(path));
169
+ const preloadScripts = [`@highlightjs/cdn-assets@${"11.8.0"}/highlight.min.js`].map(path => markmapCommon.buildJSItem(path));
170
+ const styles = [`@highlightjs/cdn-assets@${"11.8.0"}/styles/default.min.css`
171
+ // `highlight.js@${"11.8.0"}/styles/default.css`,
172
+ ].map(path => markmapCommon.buildCSSItem(path));
170
173
  const config = {
171
174
  versions: {
172
175
  hljs: "11.8.0"
173
176
  },
177
+ preloadScripts,
174
178
  styles
175
179
  };
176
180
 
@@ -462,7 +466,7 @@ class Transformer {
462
466
  }
463
467
 
464
468
  const transformerVersions = {
465
- 'markmap-lib': '0.15.2-alpha.0+3e3da98',
469
+ 'markmap-lib': '0.15.2-alpha.1+6800b6d',
466
470
  d3: "7.8.5"
467
471
  };
468
472
 
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-lib v0.15.2-alpha.0+3e3da98 | MIT License */
1
+ /*! markmap-lib v0.15.2-alpha.1+6800b6d | 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';
@@ -10,7 +10,7 @@ const template = "<!DOCTYPE html>\n<html>\n<head>\n<meta charset=\"UTF-8\">\n<me
10
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
- const preloadScripts = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
13
+ const preloadScripts$1 = [`katex@${"0.16.8"}/dist/katex.min.js`].map(path => buildJSItem(path));
14
14
  const webfontloader = buildJSItem(`webfontloader@${"1.6.28"}/webfontloader.js`);
15
15
  webfontloader.data.defer = true;
16
16
  const styles$1 = [`katex@${"0.16.8"}/dist/katex.min.css`].map(path => buildCSSItem(path));
@@ -19,7 +19,7 @@ const config$1 = {
19
19
  katex: "0.16.8" ,
20
20
  webfontloader: "1.6.28"
21
21
  },
22
- preloadScripts,
22
+ preloadScripts: preloadScripts$1,
23
23
  scripts: [{
24
24
  type: 'iife',
25
25
  data: {
@@ -164,11 +164,15 @@ var npmUrl = definePlugin({
164
164
  });
165
165
 
166
166
  const name = 'hljs';
167
- const styles = [`highlight.js@${"11.8.0"}/styles/default.css`].map(path => buildCSSItem(path));
167
+ const preloadScripts = [`@highlightjs/cdn-assets@${"11.8.0"}/highlight.min.js`].map(path => buildJSItem(path));
168
+ const styles = [`@highlightjs/cdn-assets@${"11.8.0"}/styles/default.min.css`
169
+ // `highlight.js@${"11.8.0"}/styles/default.css`,
170
+ ].map(path => buildCSSItem(path));
168
171
  const config = {
169
172
  versions: {
170
173
  hljs: "11.8.0"
171
174
  },
175
+ preloadScripts,
172
176
  styles
173
177
  };
174
178
 
@@ -460,7 +464,7 @@ class Transformer {
460
464
  }
461
465
 
462
466
  const transformerVersions = {
463
- 'markmap-lib': '0.15.2-alpha.0+3e3da98',
467
+ 'markmap-lib': '0.15.2-alpha.1+6800b6d',
464
468
  d3: "7.8.5"
465
469
  };
466
470
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-lib",
3
- "version": "0.15.2-alpha.0+3e3da98",
3
+ "version": "0.15.2-alpha.1+6800b6d",
4
4
  "description": "Visualize your Markdown as mindmaps with Markmap",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -47,6 +47,7 @@
47
47
  "url": "https://github.com/markmap/markmap/issues"
48
48
  },
49
49
  "devDependencies": {
50
+ "@highlightjs/cdn-assets": "^11.8.0",
50
51
  "@types/remarkable": "^2.0.3",
51
52
  "markmap-common": "0.15.0",
52
53
  "markmap-view": "0.15.0",
@@ -74,5 +75,5 @@
74
75
  ]
75
76
  }
76
77
  },
77
- "gitHead": "3e3da98311de8c23efd74f08919a960fa87956b8"
78
+ "gitHead": "6800b6db7cde4b2a27175091eeccc8abbf7fadba"
78
79
  }
@@ -3,5 +3,6 @@ export declare const config: {
3
3
  versions: {
4
4
  hljs: string;
5
5
  };
6
+ preloadScripts: import("markmap-common").JSScriptItem[];
6
7
  styles: import("markmap-common").CSSStylesheetItem[];
7
8
  };