Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markmap-toolbar

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markmap-toolbar - npm Package Compare versions

Comparing version 0.14.4 to 0.14.5-alpha.13

dist/index.js

26

package.json
{
"name": "markmap-toolbar",
"version": "0.14.4",
"version": "0.14.5-alpha.13+50ca560",
"description": "Extensible toolbar for markmap",

@@ -13,6 +13,6 @@ "author": "Gerald <gera2ld@live.com>",

},
"main": "dist/index.umd.js",
"module": "dist/index.esm.js",
"unpkg": "dist/index.umd.min.js",
"jsdelivr": "dist/index.umd.min.js",
"main": "dist/index.js",
"module": "dist/index.mjs",
"unpkg": "dist/index.js",
"jsdelivr": "dist/index.js",
"files": [

@@ -26,5 +26,17 @@ "dist",

},
"homepage": "https://github.com/markmap/markmap/packages/markmap-toolbar#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/markmap/markmap.git"
},
"bugs": {
"url": "https://github.com/markmap/markmap/issues"
},
"typings": "types/index.d.ts",
"peerDependencies": {
"markmap-common": "*"
},
"devDependencies": {
"markmap-view": "^0.14.4"
"markmap-common": "0.14.5-alpha.13+50ca560",
"markmap-view": "0.14.5-alpha.13+50ca560"
},

@@ -35,3 +47,3 @@ "dependencies": {

},
"gitHead": "8eb2fa223ab85d1a7699d2c9660fdb5fac24acd1"
"gitHead": "50ca5603019498f93dba6485c96d0a5630b221e5"
}

@@ -18,3 +18,3 @@ # markmap-toolbar

const el = Toolbar.create(mm);
const { el } = Toolbar.create(mm);
el.style.position = 'absolute';

@@ -21,0 +21,0 @@ el.style.bottom = '0.5rem';

import { VChildren } from '@gera2ld/jsx-dom';
import type { Markmap } from 'markmap-view';
import './style.css';
interface IToolbarItem {
export interface IToolbarItem {
id?: string;

@@ -15,7 +15,8 @@ title?: string;

static defaultItems: (string | IToolbarItem)[];
el: HTMLDivElement;
items: (string | IToolbarItem)[];
static create(mm: Markmap): Node;
static create(mm: Markmap): Toolbar;
static icon(path: string, attrs?: {}): import("@gera2ld/jsx-dom").VNode;
constructor();
setBrand(show: boolean): void;
setBrand(show: boolean): HTMLDivElement;
register(data: IToolbarItem & {

@@ -25,7 +26,5 @@ id: string;

getHandler(handle: (mm: Markmap) => Promise<void>): () => void;
setItems(items: (string | IToolbarItem)[]): void;
setItems(items: (string | IToolbarItem)[]): HTMLDivElement;
attach(mm: Markmap): void;
handleRecurse(active: boolean, reset: () => void): void;
render(): Node;
render(): HTMLDivElement;
}
export {};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc