van-mdx 0.6.0 → 0.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "van-mdx",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Markdown preprocessor for Vanjs",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -16,24 +16,28 @@
16
16
  },
17
17
  "exports": {
18
18
  ".": "./src/index.js",
19
- "./*": "./src/loaders/*/index.js",
19
+ "./loaders/*": "./src/loaders/*/index.js",
20
+ "./components/*":"./src/components/*.js",
21
+ "./components":"./src/components/index.js",
22
+
20
23
  "./astro": "./src/bundlers/astro/index.js",
21
24
  "./astro/entry-client": "./src/bundlers/astro/entry-client.js",
22
25
  "./astro/entry-server": "./src/bundlers/astro/entry-server.js"
23
26
  },
24
- "repository": {
27
+ "repository": {
25
28
  "type": "git",
26
29
  "url": "git+https://github.com/zakarialaoui10/van-mdx.git"
27
30
  },
28
31
  "author": "zakaria elalaoui",
29
32
  "license": "MIT",
30
- "bugs": {
33
+ "bugs": {
31
34
  "url": "https://github.com/zakarialaoui10/van-mdx/issues"
32
35
  },
33
36
  "homepage": "https://github.com/zakarialaoui10/van-mdx#readme",
34
37
  "dependencies": {
35
- "mdzjs": "^0.15.1",
38
+ "mdzjs": "^0.17.0",
36
39
  "vanjs-core": "^1.6.0",
37
- "ziko": "^0.64.0"
40
+ "zextra": "^0.15.1",
41
+ "ziko": "^0.65.0"
38
42
  }
39
43
  }
@@ -0,0 +1 @@
1
+ export * from './table-of-contents.js'
@@ -0,0 +1,7 @@
1
+ import {TableOfContents as _TableOfContents} from 'zextra/nav'
2
+
3
+ export const TableOfContents = ({
4
+ depth = 6,
5
+ content = document.body,
6
+ labelFn
7
+ } = {}) => _TableOfContents({depth}).element