@arach/arc 0.2.5 → 0.3.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.
@@ -5,14 +5,20 @@ import { ArcDiagramData } from './components/ArcDiagram';
5
5
  import { default as ArcDiagramIsometric } from './player/ArcDiagram';
6
6
  import { NodeData as ArcNodeData } from './components/ArcDiagram';
7
7
  import { NodePosition as ArcNodePosition } from './components/ArcDiagram';
8
+ import { ColorPalette } from './utils/themes';
8
9
  import { configToYaml } from './utils/yamlConfig';
9
10
  import { default as DiagramCanvas } from './components/editor/DiagramCanvas';
10
11
  import { DiagramColor } from './components/ArcDiagram';
11
12
  import { default as DiagramEditor } from './components/editor/DiagramEditor';
13
+ import { DiagramGroup } from './components/ArcDiagram';
12
14
  import { DiagramLayout } from './components/ArcDiagram';
13
15
  import { DiagramMode } from './components/ArcDiagram';
14
16
  import { EditorProvider } from './components/editor/EditorProvider';
15
17
  import { getColorShading } from './utils/isometric';
18
+ import { getTheme } from './utils/themes';
19
+ import { getThemeList } from './utils/themes';
20
+ import { GroupLabelAnchor } from './components/ArcDiagram';
21
+ import { GroupLabelPlacement } from './components/ArcDiagram';
16
22
  import { ISO_COLORS } from './utils/isometric';
17
23
  import { isoBoundingBox } from './utils/isometric';
18
24
  import { isoBox } from './utils/isometric';
@@ -23,6 +29,9 @@ import { parseYamlConfig } from './utils/yamlConfig';
23
29
  import { renderToElement } from './player/vanilla';
24
30
  import { renderToString } from './player/vanilla';
25
31
  import { screenToIsoFloor } from './utils/isometric';
32
+ import { Theme } from './utils/themes';
33
+ import { ThemeId } from './components/ArcDiagram';
34
+ import { THEMES } from './utils/themes';
26
35
  import { useDiagram } from './components/editor/EditorProvider';
27
36
  import { useEditor } from './components/editor/EditorProvider';
28
37
  import { useEditorState } from './components/editor/EditorProvider';
@@ -42,6 +51,8 @@ export { ArcNodeData }
42
51
 
43
52
  export { ArcNodePosition }
44
53
 
54
+ export { ColorPalette }
55
+
45
56
  export { configToYaml }
46
57
 
47
58
  export declare interface ConnectorStyle {
@@ -89,6 +100,8 @@ export declare interface DiagramConfig {
89
100
 
90
101
  export { DiagramEditor }
91
102
 
103
+ export { DiagramGroup }
104
+
92
105
  export { DiagramLayout }
93
106
 
94
107
  export { DiagramMode }
@@ -123,6 +136,14 @@ export declare interface EmbedConfig {
123
136
 
124
137
  export { getColorShading }
125
138
 
139
+ export { getTheme }
140
+
141
+ export { getThemeList }
142
+
143
+ export { GroupLabelAnchor }
144
+
145
+ export { GroupLabelPlacement }
146
+
126
147
  export { ISO_COLORS }
127
148
 
128
149
  export { isoBoundingBox }
@@ -156,6 +177,12 @@ export { renderToString }
156
177
 
157
178
  export { screenToIsoFloor }
158
179
 
180
+ export { Theme }
181
+
182
+ export { ThemeId }
183
+
184
+ export { THEMES }
185
+
159
186
  /**
160
187
  * Arc Player Types
161
188
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arach/arc",
3
- "version": "0.2.5",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "description": "Visual diagram editor for creating architecture diagrams",
6
6
  "author": "Arach Tchoupani",
@@ -18,24 +18,24 @@
18
18
  "isometric"
19
19
  ],
20
20
  "files": [
21
- "dist/arc.es.js",
22
- "dist/arc.umd.js",
23
- "dist/index.d.ts"
21
+ "lib/arc.es.js",
22
+ "lib/arc.umd.js",
23
+ "lib/index.d.ts"
24
24
  ],
25
- "main": "./dist/arc.umd.js",
26
- "module": "./dist/arc.es.js",
27
- "types": "./dist/index.d.ts",
25
+ "main": "./lib/arc.umd.js",
26
+ "module": "./lib/arc.es.js",
27
+ "types": "./lib/index.d.ts",
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/index.d.ts",
31
- "import": "./dist/arc.es.js",
32
- "require": "./dist/arc.umd.js"
30
+ "types": "./lib/index.d.ts",
31
+ "import": "./lib/arc.es.js",
32
+ "require": "./lib/arc.umd.js"
33
33
  }
34
34
  },
35
35
  "sideEffects": false,
36
36
  "scripts": {
37
37
  "dev": "vite",
38
- "build": "tsc && vite build",
38
+ "build": "tsc && vite build && node scripts/generate-docs-html.js",
39
39
  "build:lib": "vite build --config vite.config.lib.js",
40
40
  "build:player": "vite build --config vite.config.player.js && vite build --config vite.config.player-slim.js",
41
41
  "lint": "eslint .",
@@ -46,17 +46,16 @@
46
46
  },
47
47
  "peerDependencies": {
48
48
  "react": "^18.0.0 || ^19.0.0",
49
- "react-dom": "^18.0.0 || ^19.0.0"
49
+ "react-dom": "^18.0.0 || ^19.0.0",
50
+ "lucide-react": ">=0.400.0"
50
51
  },
51
52
  "dependencies": {
52
53
  "@arach/dewey": "^0.2.0",
53
54
  "@base-ui/react": "^1.0.0",
54
- "@types/three": "^0.182.0",
55
55
  "js-yaml": "^4.1.1",
56
56
  "react": "^19.2.0",
57
57
  "react-dom": "^19.2.0",
58
- "react-router-dom": "^7.12.0",
59
- "three": "^0.182.0"
58
+ "react-router-dom": "^7.12.0"
60
59
  },
61
60
  "devDependencies": {
62
61
  "@eslint/js": "^9.39.1",
@@ -64,6 +63,7 @@
64
63
  "@types/js-yaml": "^4.0.9",
65
64
  "@types/react": "^19.2.5",
66
65
  "@types/react-dom": "^19.2.3",
66
+ "@types/three": "^0.182.0",
67
67
  "@vitejs/plugin-react": "^5.1.1",
68
68
  "eslint": "^9.39.1",
69
69
  "eslint-plugin-react-hooks": "^7.0.1",
@@ -75,6 +75,7 @@
75
75
  "satori": "^0.18.3",
76
76
  "sharp": "^0.34.5",
77
77
  "tailwindcss": "^4.1.18",
78
+ "three": "^0.182.0",
78
79
  "typescript": "^5.9.3",
79
80
  "vite": "^7.2.4",
80
81
  "vite-plugin-dts": "^4.5.4"