@arach/arc 0.4.0 → 0.4.2
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 +99 -11
- package/bin/arc-ascii.mjs +118 -0
- package/lib/arc.es.js +13987 -13720
- package/lib/arc.umd.js +76 -76
- package/lib/index.d.ts +4 -4
- package/package.json +22 -13
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ConnectorStyle as ArcConnectorStyle } from './components/ArcDiagram';
|
|
|
3
3
|
import { default as ArcDiagram } from './components/ArcDiagram';
|
|
4
4
|
import { ArcDiagramData } from './components/ArcDiagram';
|
|
5
5
|
import { ArcDiagramData as ArcDiagramData_2 } from '../components/ArcDiagram';
|
|
6
|
-
import { default as ArcDiagramIsometric } from './
|
|
6
|
+
import { default as ArcDiagramIsometric } from './iso/ArcDiagram';
|
|
7
7
|
import { NodeData as ArcNodeData } from './components/ArcDiagram';
|
|
8
8
|
import { NodePosition as ArcNodePosition } from './components/ArcDiagram';
|
|
9
9
|
import { AutoDiagramInput } from './utils/autoLayout';
|
|
@@ -33,8 +33,8 @@ import { listDiagramSessions } from './utils/sessionStorage';
|
|
|
33
33
|
import { loadDiagramSession } from './utils/sessionStorage';
|
|
34
34
|
import { NodeSize } from './components/ArcDiagram';
|
|
35
35
|
import { parseYamlConfig } from './utils/yamlConfig';
|
|
36
|
-
import { renderToElement } from './
|
|
37
|
-
import { renderToString } from './
|
|
36
|
+
import { renderToElement } from './iso/vanilla';
|
|
37
|
+
import { renderToString } from './iso/vanilla';
|
|
38
38
|
import { saveDiagramSession } from './utils/sessionStorage';
|
|
39
39
|
import { screenToIsoFloor } from './utils/isometric';
|
|
40
40
|
import { Theme } from './utils/themes';
|
|
@@ -237,7 +237,7 @@ export { ThemeId }
|
|
|
237
237
|
export { THEMES }
|
|
238
238
|
|
|
239
239
|
/**
|
|
240
|
-
* Arc
|
|
240
|
+
* Arc Isometric Types
|
|
241
241
|
*/
|
|
242
242
|
export declare interface TierConfig {
|
|
243
243
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arach/arc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"packageManager": "bun@1.3.11",
|
|
6
|
+
"workspaces": [
|
|
7
|
+
"packages/*"
|
|
8
|
+
],
|
|
5
9
|
"description": "Visual diagram editor for creating architecture diagrams",
|
|
6
10
|
"author": "Arach Tchoupani",
|
|
7
11
|
"license": "MIT",
|
|
@@ -17,10 +21,14 @@
|
|
|
17
21
|
"react",
|
|
18
22
|
"isometric"
|
|
19
23
|
],
|
|
24
|
+
"bin": {
|
|
25
|
+
"arc-ascii": "./bin/arc-ascii.mjs"
|
|
26
|
+
},
|
|
20
27
|
"files": [
|
|
21
28
|
"lib/arc.es.js",
|
|
22
29
|
"lib/arc.umd.js",
|
|
23
|
-
"lib/index.d.ts"
|
|
30
|
+
"lib/index.d.ts",
|
|
31
|
+
"bin/arc-ascii.mjs"
|
|
24
32
|
],
|
|
25
33
|
"main": "./lib/arc.umd.js",
|
|
26
34
|
"module": "./lib/arc.es.js",
|
|
@@ -33,6 +41,17 @@
|
|
|
33
41
|
}
|
|
34
42
|
},
|
|
35
43
|
"sideEffects": false,
|
|
44
|
+
"scripts": {
|
|
45
|
+
"dev": "vite",
|
|
46
|
+
"build": "tsc && vite build && node scripts/generate-docs-html.js",
|
|
47
|
+
"build:lib": "vite build --config vite.config.lib.js",
|
|
48
|
+
"build:iso": "vite build --config vite.config.iso.js && vite build --config vite.config.iso-slim.js",
|
|
49
|
+
"lint": "eslint .",
|
|
50
|
+
"typecheck": "tsc --noEmit",
|
|
51
|
+
"preview": "vite preview",
|
|
52
|
+
"generate-og": "node scripts/generate-og.js",
|
|
53
|
+
"prepublishOnly": "bun run build:lib"
|
|
54
|
+
},
|
|
36
55
|
"peerDependencies": {
|
|
37
56
|
"react": "^18.0.0 || ^19.0.0",
|
|
38
57
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
@@ -68,15 +87,5 @@
|
|
|
68
87
|
"typescript": "^5.9.3",
|
|
69
88
|
"vite": "^7.2.4",
|
|
70
89
|
"vite-plugin-dts": "^4.5.4"
|
|
71
|
-
},
|
|
72
|
-
"scripts": {
|
|
73
|
-
"dev": "vite",
|
|
74
|
-
"build": "tsc && vite build && node scripts/generate-docs-html.js",
|
|
75
|
-
"build:lib": "vite build --config vite.config.lib.js",
|
|
76
|
-
"build:player": "vite build --config vite.config.player.js && vite build --config vite.config.player-slim.js",
|
|
77
|
-
"lint": "eslint .",
|
|
78
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
-
"preview": "vite preview",
|
|
80
|
-
"generate-og": "node scripts/generate-og.js"
|
|
81
90
|
}
|
|
82
|
-
}
|
|
91
|
+
}
|