markmap-toolbar 0.14.5-alpha.19 → 0.14.5-alpha.22

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-toolbar v0.14.5-alpha.19+5323905 | MIT License */
1
+ /*! markmap-toolbar v0.14.5-alpha.22+04afb38 | MIT License */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
4
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
@@ -205,7 +205,6 @@ class Toolbar {
205
205
  static create(mm) {
206
206
  const toolbar = new Toolbar();
207
207
  toolbar.attach(mm);
208
- toolbar.render();
209
208
  return toolbar;
210
209
  }
211
210
  static icon(path, attrs = {}) {
@@ -229,6 +228,7 @@ class Toolbar {
229
228
  this.el = mountDom(jsx("div", {
230
229
  className: "mm-toolbar"
231
230
  }));
231
+ this.items = [...Toolbar.defaultItems];
232
232
  this.register({
233
233
  id: 'zoomIn',
234
234
  title: 'Zoom in',
@@ -260,7 +260,7 @@ class Toolbar {
260
260
  });
261
261
  }
262
262
  });
263
- this.items = Toolbar.defaultItems;
263
+ this.render();
264
264
  }
265
265
  setBrand(show) {
266
266
  this.showBrand = show;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-toolbar v0.14.5-alpha.19+5323905 | MIT License */
1
+ /*! markmap-toolbar v0.14.5-alpha.22+04afb38 | MIT License */
2
2
  import { mountDom } from '@gera2ld/jsx-dom';
3
3
  import { jsx, jsxs, Fragment } from '@gera2ld/jsx-dom/jsx-runtime';
4
4
 
@@ -59,7 +59,6 @@ class Toolbar {
59
59
  static create(mm) {
60
60
  const toolbar = new Toolbar();
61
61
  toolbar.attach(mm);
62
- toolbar.render();
63
62
  return toolbar;
64
63
  }
65
64
  static icon(path, attrs = {}) {
@@ -83,6 +82,7 @@ class Toolbar {
83
82
  this.el = mountDom(jsx("div", {
84
83
  className: "mm-toolbar"
85
84
  }));
85
+ this.items = [...Toolbar.defaultItems];
86
86
  this.register({
87
87
  id: 'zoomIn',
88
88
  title: 'Zoom in',
@@ -114,7 +114,7 @@ class Toolbar {
114
114
  });
115
115
  }
116
116
  });
117
- this.items = Toolbar.defaultItems;
117
+ this.render();
118
118
  }
119
119
  setBrand(show) {
120
120
  this.showBrand = show;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-toolbar",
3
- "version": "0.14.5-alpha.19+5323905",
3
+ "version": "0.14.5-alpha.22+04afb38",
4
4
  "description": "Extensible toolbar for markmap",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -35,12 +35,12 @@
35
35
  "markmap-common": "*"
36
36
  },
37
37
  "devDependencies": {
38
- "markmap-common": "0.14.5-alpha.19+5323905",
39
- "markmap-view": "0.14.5-alpha.19+5323905"
38
+ "markmap-common": "0.14.5-alpha.22+04afb38",
39
+ "markmap-view": "0.14.5-alpha.22+04afb38"
40
40
  },
41
41
  "dependencies": {
42
42
  "@babel/runtime": "^7.22.6",
43
43
  "@gera2ld/jsx-dom": "^2.2.2"
44
44
  },
45
- "gitHead": "532390588885518c11fa50b8a77c0694821cfecf"
45
+ "gitHead": "04afb38dd0a6f3b5e8eaffde3c29e9e38b215c35"
46
46
  }