markmap-lib 0.15.5 → 0.15.6

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.
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Find NPM paths and resolve them to full URLs with the same package version as in this library.
3
+ */
4
+ export declare function addDefaultVersions(paths: string[], name: string, version: string): string[];
package/dist/util.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { CSSItem, JSItem, UrlBuilder } from 'markmap-common';
2
+ export declare function patchJSItem(urlBuilder: UrlBuilder, item: JSItem): JSItem;
3
+ export declare function patchCSSItem(urlBuilder: UrlBuilder, item: CSSItem): CSSItem;
package/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "markmap-lib",
3
- "version": "0.15.5",
3
+ "version": "0.15.6",
4
4
  "description": "Visualize your Markdown as mindmaps with Markmap",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
7
7
  "scripts": {
8
- "dev": "rollup -wc rollup.conf.js",
9
- "clean": "del-cli dist types",
8
+ "clean": "del-cli dist",
10
9
  "build:types": "tsc",
11
- "build:js": "rollup -c",
10
+ "build:js": "vite build && TARGET=browserEs vite build --emptyOutDir=false && TARGET=browserJs vite build --emptyOutDir=false",
12
11
  "test": "jest test"
13
12
  },
14
13
  "publishConfig": {
@@ -17,21 +16,20 @@
17
16
  },
18
17
  "main": "dist/index.js",
19
18
  "module": "dist/index.mjs",
20
- "unpkg": "dist/browser/index.js",
21
- "jsdelivr": "dist/browser/index.js",
19
+ "unpkg": "dist/browser/index.iife.js",
20
+ "jsdelivr": "dist/browser/index.iife.js",
22
21
  "exports": {
23
22
  ".": {
24
- "types": "./types/index.d.ts",
23
+ "types": "./dist/index.d.ts",
25
24
  "browser": "./dist/browser/index.mjs",
26
25
  "require": "./dist/index.js",
27
26
  "default": "./dist/index.mjs"
28
27
  },
29
28
  "./package.json": "./package.json"
30
29
  },
31
- "types": "types/index.d.ts",
30
+ "types": "dist/index.d.ts",
32
31
  "files": [
33
- "dist",
34
- "types"
32
+ "dist"
35
33
  ],
36
34
  "keywords": [
37
35
  "markdown",
@@ -49,8 +47,8 @@
49
47
  "devDependencies": {
50
48
  "@highlightjs/cdn-assets": "^11.8.0",
51
49
  "@types/remarkable": "^2.0.3",
52
- "markmap-common": "0.15.5",
53
- "markmap-view": "0.15.5",
50
+ "markmap-common": "0.15.6",
51
+ "markmap-view": "0.15.6",
54
52
  "webfontloader": "^1.6.28"
55
53
  },
56
54
  "dependencies": {
@@ -75,5 +73,5 @@
75
73
  ]
76
74
  }
77
75
  },
78
- "gitHead": "f7bda12b219cba3833dec1dae1daad14c3b53db6"
76
+ "gitHead": "7309ee74a3fed2c40a2fc37f1b5df208f25f3c3a"
79
77
  }