shumoku 0.1.0 → 0.1.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.
package/README.md CHANGED
@@ -8,10 +8,12 @@ Modern network topology visualization library for TypeScript/JavaScript.
8
8
  npm install shumoku
9
9
  ```
10
10
 
11
- For vendor icons (Yamaha, Aruba, AWS, Juniper):
11
+ This includes all core functionality plus 900+ vendor icons (Yamaha, Aruba, AWS, Juniper).
12
+
13
+ For NetBox integration (optional):
12
14
 
13
15
  ```bash
14
- npm install shumoku @shumoku/icons
16
+ npm install @shumoku/netbox
15
17
  ```
16
18
 
17
19
  ## Quick Start
@@ -26,6 +28,8 @@ nodes:
26
28
  - id: router
27
29
  label: "Core Router"
28
30
  type: router
31
+ vendor: yamaha
32
+ model: rtx3510
29
33
 
30
34
  - id: switch
31
35
  label: "Main Switch"
@@ -54,20 +58,17 @@ const svg = renderer.render(layout)
54
58
 
55
59
  - **YAML-based definitions** - Simple, readable network topology definitions
56
60
  - **Automatic layout** - Hierarchical layout powered by ELK.js
57
- - **Vendor icons** - Built-in icons for Yamaha, Aruba, AWS, Juniper (500+ icons)
61
+ - **Vendor icons** - Built-in icons for Yamaha, Aruba, AWS, Juniper (900+ icons)
58
62
  - **SVG export** - High-quality vector output
59
63
  - **TypeScript** - Full type safety
60
64
 
61
- ## Packages
65
+ ## Included Packages
62
66
 
63
67
  This package bundles:
64
68
 
65
69
  - [`@shumoku/core`](https://www.npmjs.com/package/@shumoku/core) - Core library (models, layout, renderer)
66
70
  - [`@shumoku/parser-yaml`](https://www.npmjs.com/package/@shumoku/parser-yaml) - YAML parser
67
-
68
- Optional:
69
-
70
- - [`@shumoku/icons`](https://www.npmjs.com/package/@shumoku/icons) - Vendor-specific icons
71
+ - [`@shumoku/icons`](https://www.npmjs.com/package/@shumoku/icons) - Vendor-specific icons (900+)
71
72
 
72
73
  ## Documentation
73
74
 
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
1
  export * from '@shumoku/core';
2
2
  export * from '@shumoku/parser-yaml';
3
+ import '@shumoku/icons';
4
+ export { vendorIconSets } from '@shumoku/icons';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAG7B,cAAc,sBAAsB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAG7B,cAAc,sBAAsB,CAAA;AAIpC,OAAO,gBAAgB,CAAA;AAGvB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -2,12 +2,9 @@
2
2
  export * from '@shumoku/core';
3
3
  // Re-export parser
4
4
  export * from '@shumoku/parser-yaml';
5
- // Optional: Try to load and register vendor icons if available
6
- try {
7
- const icons = await import('@shumoku/icons');
8
- icons.registerAllIcons();
9
- }
10
- catch {
11
- // @shumoku/icons is optional, ignore if not installed
12
- }
5
+ // Import icons for side effects (auto-registration)
6
+ // Note: Icon types are already exported from @shumoku/core
7
+ import '@shumoku/icons';
8
+ // Re-export only the vendorIconSets from icons (not conflicting exports)
9
+ export { vendorIconSets } from '@shumoku/icons';
13
10
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,eAAe,CAAA;AAE7B,mBAAmB;AACnB,cAAc,sBAAsB,CAAA;AAEpC,+DAA+D;AAC/D,IAAI,CAAC;IACH,MAAM,KAAK,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,CAAA;IAC5C,KAAK,CAAC,gBAAgB,EAAE,CAAA;AAC1B,CAAC;AAAC,MAAM,CAAC;IACP,sDAAsD;AACxD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,eAAe,CAAA;AAE7B,mBAAmB;AACnB,cAAc,sBAAsB,CAAA;AAEpC,oDAAoD;AACpD,2DAA2D;AAC3D,OAAO,gBAAgB,CAAA;AAEvB,yEAAyE;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shumoku",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Modern network topology visualization library for TypeScript/JavaScript",
5
5
  "license": "MIT",
6
6
  "author": "konoe-akitoshi",
@@ -41,9 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@shumoku/core": "^0.1.1",
44
+ "@shumoku/icons": "^0.1.1",
44
45
  "@shumoku/parser-yaml": "^0.1.1"
45
- },
46
- "optionalDependencies": {
47
- "@shumoku/icons": "^0.1.1"
48
46
  }
49
47
  }