flowfig 0.11.0 → 0.12.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": "flowfig",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Your coding agent draws animated diagrams from your code, and flowfig checks each box and arrow against that code. CI fails when a diagram drifts from the code. The output is one animated SVG with no script, for a README, PR or issue. Works with Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Windsurf and Kiro.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,6 +50,10 @@
50
50
  "types": "./dist/svg.d.ts",
51
51
  "default": "./dist/svg.js"
52
52
  },
53
+ "./element": {
54
+ "types": "./dist/element.d.ts",
55
+ "default": "./dist/element.js"
56
+ },
53
57
  "./verify": {
54
58
  "types": "./dist/verify.d.ts",
55
59
  "default": "./dist/verify.js"
@@ -58,9 +62,11 @@
58
62
  "bin": {
59
63
  "flowfig": "dist/cli.js"
60
64
  },
61
- "sideEffects": false,
65
+ "sideEffects": [
66
+ "./dist/element.js"
67
+ ],
62
68
  "scripts": {
63
- "build": "rm -rf dist && tsc -p tsconfig.build.json && chmod +x dist/cli.js",
69
+ "build": "rm -rf dist && tsc -p tsconfig.build.json && vite build --logLevel warn && chmod +x dist/cli.js",
64
70
  "prepack": "npm run build",
65
71
  "dev": "vite --open",
66
72
  "export": "node scripts/export.mjs",