schematex 0.8.3 → 0.9.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.
Files changed (51) hide show
  1. package/dist/ai/ai-sdk.cjs +9 -9
  2. package/dist/ai/ai-sdk.d.cts +2 -2
  3. package/dist/ai/ai-sdk.d.ts +2 -2
  4. package/dist/ai/ai-sdk.js +4 -4
  5. package/dist/ai/index.cjs +55 -16
  6. package/dist/ai/index.cjs.map +1 -1
  7. package/dist/ai/index.d.cts +37 -2
  8. package/dist/ai/index.d.ts +37 -2
  9. package/dist/ai/index.js +47 -4
  10. package/dist/ai/index.js.map +1 -1
  11. package/dist/browser.cjs +10 -10
  12. package/dist/browser.js +4 -4
  13. package/dist/{chunk-FQ4JUNTE.cjs → chunk-2R4UXKCT.cjs} +1014 -333
  14. package/dist/chunk-2R4UXKCT.cjs.map +1 -0
  15. package/dist/{chunk-DR3DDDQY.cjs → chunk-47SGK5R6.cjs} +56 -6
  16. package/dist/chunk-47SGK5R6.cjs.map +1 -0
  17. package/dist/{chunk-T3GV7OVF.js → chunk-EBX4KCYW.js} +19 -2
  18. package/dist/chunk-EBX4KCYW.js.map +1 -0
  19. package/dist/{chunk-JIJWGHRN.cjs → chunk-FJVQGBPU.cjs} +19 -2
  20. package/dist/chunk-FJVQGBPU.cjs.map +1 -0
  21. package/dist/{chunk-HPEAE3JM.js → chunk-J34HDRFY.js} +56 -6
  22. package/dist/chunk-J34HDRFY.js.map +1 -0
  23. package/dist/{chunk-UGB42BGK.cjs → chunk-QYC6WZEM.cjs} +7 -7
  24. package/dist/{chunk-UGB42BGK.cjs.map → chunk-QYC6WZEM.cjs.map} +1 -1
  25. package/dist/{chunk-LM5X7ZNR.js → chunk-VOJGLBE5.js} +4 -4
  26. package/dist/{chunk-LM5X7ZNR.js.map → chunk-VOJGLBE5.js.map} +1 -1
  27. package/dist/{chunk-S7GR77NY.js → chunk-Z5ML4QYG.js} +1012 -331
  28. package/dist/chunk-Z5ML4QYG.js.map +1 -0
  29. package/dist/diagrams/circuit/index.cjs +8 -8
  30. package/dist/diagrams/circuit/index.js +1 -1
  31. package/dist/diagrams/flowchart/index.cjs +7 -7
  32. package/dist/diagrams/flowchart/index.d.cts +1 -1
  33. package/dist/diagrams/flowchart/index.d.ts +1 -1
  34. package/dist/diagrams/flowchart/index.js +1 -1
  35. package/dist/{index-B0YO7rx8.d.cts → index-BiXWjQht.d.cts} +10 -4
  36. package/dist/{index-u3KZBdas.d.ts → index-Cq8y1aaa.d.ts} +10 -4
  37. package/dist/index.cjs +40 -40
  38. package/dist/index.d.cts +1 -1
  39. package/dist/index.d.ts +1 -1
  40. package/dist/index.js +6 -6
  41. package/dist/react.cjs +4 -4
  42. package/dist/react.js +3 -3
  43. package/dist/{tools-bqQ92FwC.d.ts → tools-BbTuTWs_.d.ts} +1 -1
  44. package/dist/{tools-CjW8usJE.d.cts → tools-D5dkAqNy.d.cts} +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-DR3DDDQY.cjs.map +0 -1
  47. package/dist/chunk-FQ4JUNTE.cjs.map +0 -1
  48. package/dist/chunk-HPEAE3JM.js.map +0 -1
  49. package/dist/chunk-JIJWGHRN.cjs.map +0 -1
  50. package/dist/chunk-S7GR77NY.js.map +0 -1
  51. package/dist/chunk-T3GV7OVF.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJIJWGHRN_cjs = require('../../chunk-JIJWGHRN.cjs');
3
+ var chunkFJVQGBPU_cjs = require('../../chunk-FJVQGBPU.cjs');
4
4
  require('../../chunk-NZT5P2XZ.cjs');
5
5
  require('../../chunk-VHDSPI6A.cjs');
6
6
  require('../../chunk-3WNW5Y7P.cjs');
@@ -9,31 +9,31 @@ require('../../chunk-3WNW5Y7P.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "circuit", {
11
11
  enumerable: true,
12
- get: function () { return chunkJIJWGHRN_cjs.circuit; }
12
+ get: function () { return chunkFJVQGBPU_cjs.circuit; }
13
13
  });
14
14
  Object.defineProperty(exports, "layoutCircuit", {
15
15
  enumerable: true,
16
- get: function () { return chunkJIJWGHRN_cjs.layoutCircuit; }
16
+ get: function () { return chunkFJVQGBPU_cjs.layoutCircuit; }
17
17
  });
18
18
  Object.defineProperty(exports, "layoutCircuitNetlist", {
19
19
  enumerable: true,
20
- get: function () { return chunkJIJWGHRN_cjs.layoutCircuitNetlist; }
20
+ get: function () { return chunkFJVQGBPU_cjs.layoutCircuitNetlist; }
21
21
  });
22
22
  Object.defineProperty(exports, "lintCircuit", {
23
23
  enumerable: true,
24
- get: function () { return chunkJIJWGHRN_cjs.lintCircuit; }
24
+ get: function () { return chunkFJVQGBPU_cjs.lintCircuit; }
25
25
  });
26
26
  Object.defineProperty(exports, "parseCircuit", {
27
27
  enumerable: true,
28
- get: function () { return chunkJIJWGHRN_cjs.parseCircuit; }
28
+ get: function () { return chunkFJVQGBPU_cjs.parseCircuit; }
29
29
  });
30
30
  Object.defineProperty(exports, "parseNetlist", {
31
31
  enumerable: true,
32
- get: function () { return chunkJIJWGHRN_cjs.parseNetlist; }
32
+ get: function () { return chunkFJVQGBPU_cjs.parseNetlist; }
33
33
  });
34
34
  Object.defineProperty(exports, "renderCircuit", {
35
35
  enumerable: true,
36
- get: function () { return chunkJIJWGHRN_cjs.renderCircuit; }
36
+ get: function () { return chunkFJVQGBPU_cjs.renderCircuit; }
37
37
  });
38
38
  //# sourceMappingURL=index.cjs.map
39
39
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-T3GV7OVF.js';
1
+ export { circuit, layoutCircuit, layoutCircuitNetlist, lintCircuit, parseCircuit, parseNetlist, renderCircuit } from '../../chunk-EBX4KCYW.js';
2
2
  import '../../chunk-UK6HF6PE.js';
3
3
  import '../../chunk-TO6PNBT3.js';
4
4
  import '../../chunk-SYYBKDL7.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkDR3DDDQY_cjs = require('../../chunk-DR3DDDQY.cjs');
3
+ var chunk47SGK5R6_cjs = require('../../chunk-47SGK5R6.cjs');
4
4
  require('../../chunk-3KRL2EGN.cjs');
5
5
  require('../../chunk-NZT5P2XZ.cjs');
6
6
  require('../../chunk-3WNW5Y7P.cjs');
@@ -9,27 +9,27 @@ require('../../chunk-3WNW5Y7P.cjs');
9
9
 
10
10
  Object.defineProperty(exports, "FC_CONST", {
11
11
  enumerable: true,
12
- get: function () { return chunkDR3DDDQY_cjs.FC_CONST; }
12
+ get: function () { return chunk47SGK5R6_cjs.FC_CONST; }
13
13
  });
14
14
  Object.defineProperty(exports, "flowchart", {
15
15
  enumerable: true,
16
- get: function () { return chunkDR3DDDQY_cjs.flowchart; }
16
+ get: function () { return chunk47SGK5R6_cjs.flowchart; }
17
17
  });
18
18
  Object.defineProperty(exports, "layoutFlowchart", {
19
19
  enumerable: true,
20
- get: function () { return chunkDR3DDDQY_cjs.layoutFlowchart; }
20
+ get: function () { return chunk47SGK5R6_cjs.layoutFlowchart; }
21
21
  });
22
22
  Object.defineProperty(exports, "parseFlowchart", {
23
23
  enumerable: true,
24
- get: function () { return chunkDR3DDDQY_cjs.parseFlowchart; }
24
+ get: function () { return chunk47SGK5R6_cjs.parseFlowchart; }
25
25
  });
26
26
  Object.defineProperty(exports, "renderFlowchart", {
27
27
  enumerable: true,
28
- get: function () { return chunkDR3DDDQY_cjs.renderFlowchart; }
28
+ get: function () { return chunk47SGK5R6_cjs.renderFlowchart; }
29
29
  });
30
30
  Object.defineProperty(exports, "renderFlowchartAST", {
31
31
  enumerable: true,
32
- get: function () { return chunkDR3DDDQY_cjs.renderFlowchartAST; }
32
+ get: function () { return chunk47SGK5R6_cjs.renderFlowchartAST; }
33
33
  });
34
34
  //# sourceMappingURL=index.cjs.map
35
35
  //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
1
  import '../../diagnostics-hObcaaFC.cjs';
2
- export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-B0YO7rx8.cjs';
2
+ export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-BiXWjQht.cjs';
@@ -1,2 +1,2 @@
1
1
  import '../../diagnostics-hObcaaFC.js';
2
- export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-u3KZBdas.js';
2
+ export { F as FC_CONST, j as flowchart, t as layoutFlowchart, u as parseFlowchart, v as renderFlowchart, w as renderFlowchartAST } from '../../index-Cq8y1aaa.js';
@@ -1,4 +1,4 @@
1
- export { FC_CONST, flowchart, layoutFlowchart, parseFlowchart, renderFlowchart, renderFlowchartAST } from '../../chunk-HPEAE3JM.js';
1
+ export { FC_CONST, flowchart, layoutFlowchart, parseFlowchart, renderFlowchart, renderFlowchartAST } from '../../chunk-J34HDRFY.js';
2
2
  import '../../chunk-2KTQ75LN.js';
3
3
  import '../../chunk-UK6HF6PE.js';
4
4
  import '../../chunk-SYYBKDL7.js';
@@ -73,12 +73,18 @@ declare const FC_CONST: {
73
73
  readonly labelHPad: 16;
74
74
  readonly minNodeWidth: 72;
75
75
  /**
76
- * Cap on per-line label width. Until line-wrapping lands, this clamp is
77
- * a soft contract: nodes never grow past this, and any overflow becomes
78
- * the caller's problem. Set generously so common CJK sentences (≤30
79
- * full-width chars) still fit without truncation or text overflow.
76
+ * Cap on per-line label width. Labels wider than `wrapLabelWidth` are
77
+ * auto-wrapped first (see `wrapLabel`), so this clamp only bites on
78
+ * unbreakable single tokens that survive wrapping (URLs, ids).
80
79
  */
81
80
  readonly maxLabelWidth: 420;
81
+ /**
82
+ * Auto-wrap target: a single-line label measuring wider than this is
83
+ * broken into multiple lines (preferring spaces, falling back to CJK
84
+ * char boundaries). ≈38 Latin chars / ≈20 full-width chars per line —
85
+ * keeps prose nodes near a readable 3:1 aspect instead of a 400px strip.
86
+ */
87
+ readonly wrapLabelWidth: 260;
82
88
  readonly crossingSweepIters: 24;
83
89
  };
84
90
  declare function layoutFlowchart(ast: FlowchartAST): FlowchartLayoutResult;
@@ -73,12 +73,18 @@ declare const FC_CONST: {
73
73
  readonly labelHPad: 16;
74
74
  readonly minNodeWidth: 72;
75
75
  /**
76
- * Cap on per-line label width. Until line-wrapping lands, this clamp is
77
- * a soft contract: nodes never grow past this, and any overflow becomes
78
- * the caller's problem. Set generously so common CJK sentences (≤30
79
- * full-width chars) still fit without truncation or text overflow.
76
+ * Cap on per-line label width. Labels wider than `wrapLabelWidth` are
77
+ * auto-wrapped first (see `wrapLabel`), so this clamp only bites on
78
+ * unbreakable single tokens that survive wrapping (URLs, ids).
80
79
  */
81
80
  readonly maxLabelWidth: 420;
81
+ /**
82
+ * Auto-wrap target: a single-line label measuring wider than this is
83
+ * broken into multiple lines (preferring spaces, falling back to CJK
84
+ * char boundaries). ≈38 Latin chars / ≈20 full-width chars per line —
85
+ * keeps prose nodes near a readable 3:1 aspect instead of a 400px strip.
86
+ */
87
+ readonly wrapLabelWidth: 260;
82
88
  readonly crossingSweepIters: 24;
83
89
  };
84
90
  declare function layoutFlowchart(ast: FlowchartAST): FlowchartLayoutResult;
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkUGB42BGK_cjs = require('./chunk-UGB42BGK.cjs');
3
+ var chunkQYC6WZEM_cjs = require('./chunk-QYC6WZEM.cjs');
4
4
  var chunkQ2YRJHFB_cjs = require('./chunk-Q2YRJHFB.cjs');
5
- var chunkJIJWGHRN_cjs = require('./chunk-JIJWGHRN.cjs');
5
+ var chunkFJVQGBPU_cjs = require('./chunk-FJVQGBPU.cjs');
6
6
  var chunk6L46VIXI_cjs = require('./chunk-6L46VIXI.cjs');
7
7
  var chunkJIUC4DRS_cjs = require('./chunk-JIUC4DRS.cjs');
8
8
  var chunkAJJYWXZB_cjs = require('./chunk-AJJYWXZB.cjs');
9
9
  var chunkLENRV7ZJ_cjs = require('./chunk-LENRV7ZJ.cjs');
10
10
  var chunkT5KHNJ67_cjs = require('./chunk-T5KHNJ67.cjs');
11
11
  var chunkYMFYPB5Y_cjs = require('./chunk-YMFYPB5Y.cjs');
12
- var chunkDR3DDDQY_cjs = require('./chunk-DR3DDDQY.cjs');
12
+ var chunk47SGK5R6_cjs = require('./chunk-47SGK5R6.cjs');
13
13
  var chunkNFZMNKOR_cjs = require('./chunk-NFZMNKOR.cjs');
14
14
  var chunk2SZJQVPN_cjs = require('./chunk-2SZJQVPN.cjs');
15
15
  var chunkKGOZBABH_cjs = require('./chunk-KGOZBABH.cjs');
@@ -34,8 +34,8 @@ function svgDoc(viewBox, css, inner) {
34
34
  var CIRCUIT_CSS = ".schematex-circuit-body{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linejoin:round;stroke-linecap:round}.schematex-circuit-fill{stroke:#0f172a;stroke-width:1.5;fill:#0f172a}.schematex-circuit-wire{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linecap:square}";
35
35
  function circuitCatalog() {
36
36
  const merged = {
37
- ...chunkJIJWGHRN_cjs.SYMBOLS,
38
- ...chunkJIJWGHRN_cjs.EXTRA_SYMBOLS
37
+ ...chunkFJVQGBPU_cjs.SYMBOLS,
38
+ ...chunkFJVQGBPU_cjs.EXTRA_SYMBOLS
39
39
  };
40
40
  const out = [];
41
41
  for (const [id, def] of Object.entries(merged)) {
@@ -111,10 +111,10 @@ var PID_CSS = ".lt-pid-equip{fill:#ffffff;stroke:#1d1d1d;stroke-width:1.6}.lt-pi
111
111
  function pidCatalog() {
112
112
  const out = [];
113
113
  const pad = 12;
114
- for (const [id, g] of Object.entries(chunkUGB42BGK_cjs.GEOMETRY)) {
114
+ for (const [id, g] of Object.entries(chunkQYC6WZEM_cjs.GEOMETRY)) {
115
115
  let inner;
116
116
  try {
117
- inner = chunkUGB42BGK_cjs.renderEquip(id, "");
117
+ inner = chunkQYC6WZEM_cjs.renderEquip(id, "");
118
118
  } catch {
119
119
  continue;
120
120
  }
@@ -132,10 +132,10 @@ function pidCatalog() {
132
132
  }
133
133
  var FC_ICON_CSS = ".sx-fc-icon{stroke:#0f172a;fill:none}.sx-fc-icon-fill{fill:#0f172a}";
134
134
  function flowchartIconCatalog() {
135
- return chunkDR3DDDQY_cjs.iconNames().map((name) => ({
135
+ return chunk47SGK5R6_cjs.iconNames().map((name) => ({
136
136
  id: name,
137
137
  label: humanize(name),
138
- svg: svgDoc("-13 -13 26 26", FC_ICON_CSS, chunkDR3DDDQY_cjs.renderIcon(name))
138
+ svg: svgDoc("-13 -13 26 26", FC_ICON_CSS, chunk47SGK5R6_cjs.renderIcon(name))
139
139
  })).sort((a, b) => a.label.localeCompare(b.label));
140
140
  }
141
141
  var LOGIC_CSS = ".schematex-logic-gate-body{fill:none;stroke:#0f172a;stroke-width:1.75;stroke-linejoin:round}.schematex-logic-bubble{fill:#ffffff;stroke:#0f172a;stroke-width:1.5}.schematex-logic-wire{stroke:#0f172a;stroke-width:1.5;fill:none;stroke-linecap:square}.schematex-logic-gate-iec-label{font:bold 13px sans-serif;fill:#0f172a}";
@@ -224,11 +224,11 @@ var NETWORK_KINDS = [
224
224
  function networkCatalog() {
225
225
  const out = [];
226
226
  for (const kind of NETWORK_KINDS) {
227
- const { w, h } = chunkUGB42BGK_cjs.iconSize(kind);
227
+ const { w, h } = chunkQYC6WZEM_cjs.iconSize(kind);
228
228
  const device = { id: kind, kind, label: humanize(kind), groups: [] };
229
229
  let inner;
230
230
  try {
231
- inner = chunkUGB42BGK_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
231
+ inner = chunkQYC6WZEM_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
232
232
  } catch {
233
233
  continue;
234
234
  }
@@ -286,111 +286,111 @@ function getSymbolCatalog(type) {
286
286
 
287
287
  Object.defineProperty(exports, "bowtie", {
288
288
  enumerable: true,
289
- get: function () { return chunkUGB42BGK_cjs.bowtie; }
289
+ get: function () { return chunkQYC6WZEM_cjs.bowtie; }
290
290
  });
291
291
  Object.defineProperty(exports, "causalloop", {
292
292
  enumerable: true,
293
- get: function () { return chunkUGB42BGK_cjs.causalloop; }
293
+ get: function () { return chunkQYC6WZEM_cjs.causalloop; }
294
294
  });
295
295
  Object.defineProperty(exports, "decisiontree", {
296
296
  enumerable: true,
297
- get: function () { return chunkUGB42BGK_cjs.decisiontree; }
297
+ get: function () { return chunkQYC6WZEM_cjs.decisiontree; }
298
298
  });
299
299
  Object.defineProperty(exports, "epc", {
300
300
  enumerable: true,
301
- get: function () { return chunkUGB42BGK_cjs.epc; }
301
+ get: function () { return chunkQYC6WZEM_cjs.epc; }
302
302
  });
303
303
  Object.defineProperty(exports, "eventtree", {
304
304
  enumerable: true,
305
- get: function () { return chunkUGB42BGK_cjs.eventtree; }
305
+ get: function () { return chunkQYC6WZEM_cjs.eventtree; }
306
306
  });
307
307
  Object.defineProperty(exports, "faulttree", {
308
308
  enumerable: true,
309
- get: function () { return chunkUGB42BGK_cjs.faulttree; }
309
+ get: function () { return chunkQYC6WZEM_cjs.faulttree; }
310
310
  });
311
311
  Object.defineProperty(exports, "fmea", {
312
312
  enumerable: true,
313
- get: function () { return chunkUGB42BGK_cjs.fmea; }
313
+ get: function () { return chunkQYC6WZEM_cjs.fmea; }
314
314
  });
315
315
  Object.defineProperty(exports, "gitgraph", {
316
316
  enumerable: true,
317
- get: function () { return chunkUGB42BGK_cjs.gitgraph; }
317
+ get: function () { return chunkQYC6WZEM_cjs.gitgraph; }
318
318
  });
319
319
  Object.defineProperty(exports, "idef0", {
320
320
  enumerable: true,
321
- get: function () { return chunkUGB42BGK_cjs.idef0; }
321
+ get: function () { return chunkQYC6WZEM_cjs.idef0; }
322
322
  });
323
323
  Object.defineProperty(exports, "markov", {
324
324
  enumerable: true,
325
- get: function () { return chunkUGB42BGK_cjs.markov; }
325
+ get: function () { return chunkQYC6WZEM_cjs.markov; }
326
326
  });
327
327
  Object.defineProperty(exports, "network", {
328
328
  enumerable: true,
329
- get: function () { return chunkUGB42BGK_cjs.network; }
329
+ get: function () { return chunkQYC6WZEM_cjs.network; }
330
330
  });
331
331
  Object.defineProperty(exports, "parse", {
332
332
  enumerable: true,
333
- get: function () { return chunkUGB42BGK_cjs.parse; }
333
+ get: function () { return chunkQYC6WZEM_cjs.parse; }
334
334
  });
335
335
  Object.defineProperty(exports, "parseResult", {
336
336
  enumerable: true,
337
- get: function () { return chunkUGB42BGK_cjs.parseResult; }
337
+ get: function () { return chunkQYC6WZEM_cjs.parseResult; }
338
338
  });
339
339
  Object.defineProperty(exports, "pert", {
340
340
  enumerable: true,
341
- get: function () { return chunkUGB42BGK_cjs.pert; }
341
+ get: function () { return chunkQYC6WZEM_cjs.pert; }
342
342
  });
343
343
  Object.defineProperty(exports, "petri", {
344
344
  enumerable: true,
345
- get: function () { return chunkUGB42BGK_cjs.petri; }
345
+ get: function () { return chunkQYC6WZEM_cjs.petri; }
346
346
  });
347
347
  Object.defineProperty(exports, "pid", {
348
348
  enumerable: true,
349
- get: function () { return chunkUGB42BGK_cjs.pid; }
349
+ get: function () { return chunkQYC6WZEM_cjs.pid; }
350
350
  });
351
351
  Object.defineProperty(exports, "prisma", {
352
352
  enumerable: true,
353
- get: function () { return chunkUGB42BGK_cjs.prisma; }
353
+ get: function () { return chunkQYC6WZEM_cjs.prisma; }
354
354
  });
355
355
  Object.defineProperty(exports, "render", {
356
356
  enumerable: true,
357
- get: function () { return chunkUGB42BGK_cjs.render; }
357
+ get: function () { return chunkQYC6WZEM_cjs.render; }
358
358
  });
359
359
  Object.defineProperty(exports, "renderPreview", {
360
360
  enumerable: true,
361
- get: function () { return chunkUGB42BGK_cjs.renderPreview; }
361
+ get: function () { return chunkQYC6WZEM_cjs.renderPreview; }
362
362
  });
363
363
  Object.defineProperty(exports, "renderResult", {
364
364
  enumerable: true,
365
- get: function () { return chunkUGB42BGK_cjs.renderResult; }
365
+ get: function () { return chunkQYC6WZEM_cjs.renderResult; }
366
366
  });
367
367
  Object.defineProperty(exports, "sequence", {
368
368
  enumerable: true,
369
- get: function () { return chunkUGB42BGK_cjs.sequence; }
369
+ get: function () { return chunkQYC6WZEM_cjs.sequence; }
370
370
  });
371
371
  Object.defineProperty(exports, "state", {
372
372
  enumerable: true,
373
- get: function () { return chunkUGB42BGK_cjs.state; }
373
+ get: function () { return chunkQYC6WZEM_cjs.state; }
374
374
  });
375
375
  Object.defineProperty(exports, "threatmodel", {
376
376
  enumerable: true,
377
- get: function () { return chunkUGB42BGK_cjs.threatmodel; }
377
+ get: function () { return chunkQYC6WZEM_cjs.threatmodel; }
378
378
  });
379
379
  Object.defineProperty(exports, "timeline", {
380
380
  enumerable: true,
381
- get: function () { return chunkUGB42BGK_cjs.timeline; }
381
+ get: function () { return chunkQYC6WZEM_cjs.timeline; }
382
382
  });
383
383
  Object.defineProperty(exports, "umlclass", {
384
384
  enumerable: true,
385
- get: function () { return chunkUGB42BGK_cjs.umlclass; }
385
+ get: function () { return chunkQYC6WZEM_cjs.umlclass; }
386
386
  });
387
387
  Object.defineProperty(exports, "usecase", {
388
388
  enumerable: true,
389
- get: function () { return chunkUGB42BGK_cjs.usecase; }
389
+ get: function () { return chunkQYC6WZEM_cjs.usecase; }
390
390
  });
391
391
  Object.defineProperty(exports, "welding", {
392
392
  enumerable: true,
393
- get: function () { return chunkUGB42BGK_cjs.welding; }
393
+ get: function () { return chunkQYC6WZEM_cjs.welding; }
394
394
  });
395
395
  Object.defineProperty(exports, "orgchart", {
396
396
  enumerable: true,
@@ -398,7 +398,7 @@ Object.defineProperty(exports, "orgchart", {
398
398
  });
399
399
  Object.defineProperty(exports, "circuit", {
400
400
  enumerable: true,
401
- get: function () { return chunkJIJWGHRN_cjs.circuit; }
401
+ get: function () { return chunkFJVQGBPU_cjs.circuit; }
402
402
  });
403
403
  Object.defineProperty(exports, "blockdiagram", {
404
404
  enumerable: true,
@@ -426,7 +426,7 @@ Object.defineProperty(exports, "venn", {
426
426
  });
427
427
  Object.defineProperty(exports, "flowchart", {
428
428
  enumerable: true,
429
- get: function () { return chunkDR3DDDQY_cjs.flowchart; }
429
+ get: function () { return chunk47SGK5R6_cjs.flowchart; }
430
430
  });
431
431
  Object.defineProperty(exports, "genogram", {
432
432
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.cjs';
15
15
  export { entity } from './diagrams/entity/index.cjs';
16
16
  export { fishbone } from './diagrams/fishbone/index.cjs';
17
17
  export { venn } from './diagrams/venn/index.cjs';
18
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-B0YO7rx8.cjs';
18
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-BiXWjQht.cjs';
19
19
  export { orgchart } from './diagrams/orgchart/index.cjs';
20
20
 
21
21
  declare const decisiontree: DiagramPlugin;
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.js';
15
15
  export { entity } from './diagrams/entity/index.js';
16
16
  export { fishbone } from './diagrams/fishbone/index.js';
17
17
  export { venn } from './diagrams/venn/index.js';
18
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-u3KZBdas.js';
18
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-Cq8y1aaa.js';
19
19
  export { orgchart } from './diagrams/orgchart/index.js';
20
20
 
21
21
  declare const decisiontree: DiagramPlugin;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-LM5X7ZNR.js';
2
- export { bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-LM5X7ZNR.js';
1
+ import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-VOJGLBE5.js';
2
+ export { bowtie, causalloop, decisiontree, epc, eventtree, faulttree, fmea, gitgraph, idef0, markov, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding } from './chunk-VOJGLBE5.js';
3
3
  export { orgchart } from './chunk-E3CAJGJM.js';
4
- import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-T3GV7OVF.js';
5
- export { circuit } from './chunk-T3GV7OVF.js';
4
+ import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-EBX4KCYW.js';
5
+ export { circuit } from './chunk-EBX4KCYW.js';
6
6
  export { blockdiagram } from './chunk-DX44TBFZ.js';
7
7
  export { ladder } from './chunk-JGCKW5RS.js';
8
8
  import { renderSymbol, geometryFor } from './chunk-KF3DFASA.js';
@@ -10,8 +10,8 @@ export { sld } from './chunk-KF3DFASA.js';
10
10
  export { entity } from './chunk-GDZNTILD.js';
11
11
  export { fishbone } from './chunk-YTGOLTLJ.js';
12
12
  export { venn } from './chunk-UOM3EDE6.js';
13
- import { iconNames, renderIcon } from './chunk-HPEAE3JM.js';
14
- export { flowchart } from './chunk-HPEAE3JM.js';
13
+ import { iconNames, renderIcon } from './chunk-J34HDRFY.js';
14
+ export { flowchart } from './chunk-J34HDRFY.js';
15
15
  export { genogram } from './chunk-6NUAGU6O.js';
16
16
  export { ecomap } from './chunk-K2D6VFLP.js';
17
17
  export { pedigree } from './chunk-JN6FHUC6.js';
package/dist/react.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkUGB42BGK_cjs = require('./chunk-UGB42BGK.cjs');
3
+ var chunkQYC6WZEM_cjs = require('./chunk-QYC6WZEM.cjs');
4
4
  require('./chunk-Q2YRJHFB.cjs');
5
- require('./chunk-JIJWGHRN.cjs');
5
+ require('./chunk-FJVQGBPU.cjs');
6
6
  require('./chunk-6L46VIXI.cjs');
7
7
  require('./chunk-JIUC4DRS.cjs');
8
8
  require('./chunk-AJJYWXZB.cjs');
9
9
  require('./chunk-LENRV7ZJ.cjs');
10
10
  require('./chunk-T5KHNJ67.cjs');
11
11
  require('./chunk-YMFYPB5Y.cjs');
12
- require('./chunk-DR3DDDQY.cjs');
12
+ require('./chunk-47SGK5R6.cjs');
13
13
  require('./chunk-NFZMNKOR.cjs');
14
14
  require('./chunk-2SZJQVPN.cjs');
15
15
  require('./chunk-KGOZBABH.cjs');
@@ -37,7 +37,7 @@ function SchematexDiagram({
37
37
  onError
38
38
  }) {
39
39
  const svg = react.useMemo(() => {
40
- const result = chunkUGB42BGK_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
40
+ const result = chunkQYC6WZEM_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
41
41
  if (!result.ok) {
42
42
  onError?.(new Error(result.diagnostics[0]?.message ?? "Schematex render failed"));
43
43
  }
package/dist/react.js CHANGED
@@ -1,13 +1,13 @@
1
- import { renderResult } from './chunk-LM5X7ZNR.js';
1
+ import { renderResult } from './chunk-VOJGLBE5.js';
2
2
  import './chunk-E3CAJGJM.js';
3
- import './chunk-T3GV7OVF.js';
3
+ import './chunk-EBX4KCYW.js';
4
4
  import './chunk-DX44TBFZ.js';
5
5
  import './chunk-JGCKW5RS.js';
6
6
  import './chunk-KF3DFASA.js';
7
7
  import './chunk-GDZNTILD.js';
8
8
  import './chunk-YTGOLTLJ.js';
9
9
  import './chunk-UOM3EDE6.js';
10
- import './chunk-HPEAE3JM.js';
10
+ import './chunk-J34HDRFY.js';
11
11
  import './chunk-6NUAGU6O.js';
12
12
  import './chunk-K2D6VFLP.js';
13
13
  import './chunk-JN6FHUC6.js';
@@ -184,4 +184,4 @@ type RenderDslResult = {
184
184
  };
185
185
  declare function renderDsl(type: string | undefined, dsl: string, options?: Omit<SchematexConfig, "type">): RenderDslResult;
186
186
 
187
- export { DIAGRAM_REGISTRY as D, type Example as E, type GetExamplesOptions as G, type RenderDslResult as R, type SchematexValidationError as S, type ValidateDslResult as V, DIAGRAM_SINCE as a, type DiagramCluster as b, type DiagramListItem as c, type DiagramMeta as d, type GetExamplesResult as e, type GetSyntaxOptions as f, type GetSyntaxResult as g, type SyntaxDetail as h, type SyntaxDoc as i, getAllDiagramTypes as j, getDiagramMeta as k, getDiagramSince as l, getExamples as m, getSyntax as n, listDiagrams as o, resolveDiagramType as p, renderDsl as r, validateDsl as v };
187
+ export { DIAGRAM_REGISTRY as D, type Example as E, type GetExamplesOptions as G, type RenderDslResult as R, type SyntaxDetail as S, type ValidateDslResult as V, DIAGRAM_SINCE as a, type DiagramCluster as b, type DiagramListItem as c, type DiagramMeta as d, type GetExamplesResult as e, type GetSyntaxOptions as f, type GetSyntaxResult as g, type SchematexValidationError as h, type SyntaxDoc as i, getAllDiagramTypes as j, getDiagramMeta as k, getDiagramSince as l, getExamples as m, getSyntax as n, listDiagrams as o, resolveDiagramType as p, renderDsl as r, validateDsl as v };
@@ -184,4 +184,4 @@ type RenderDslResult = {
184
184
  };
185
185
  declare function renderDsl(type: string | undefined, dsl: string, options?: Omit<SchematexConfig, "type">): RenderDslResult;
186
186
 
187
- export { DIAGRAM_REGISTRY as D, type Example as E, type GetExamplesOptions as G, type RenderDslResult as R, type SchematexValidationError as S, type ValidateDslResult as V, DIAGRAM_SINCE as a, type DiagramCluster as b, type DiagramListItem as c, type DiagramMeta as d, type GetExamplesResult as e, type GetSyntaxOptions as f, type GetSyntaxResult as g, type SyntaxDetail as h, type SyntaxDoc as i, getAllDiagramTypes as j, getDiagramMeta as k, getDiagramSince as l, getExamples as m, getSyntax as n, listDiagrams as o, resolveDiagramType as p, renderDsl as r, validateDsl as v };
187
+ export { DIAGRAM_REGISTRY as D, type Example as E, type GetExamplesOptions as G, type RenderDslResult as R, type SyntaxDetail as S, type ValidateDslResult as V, DIAGRAM_SINCE as a, type DiagramCluster as b, type DiagramListItem as c, type DiagramMeta as d, type GetExamplesResult as e, type GetSyntaxOptions as f, type GetSyntaxResult as g, type SchematexValidationError as h, type SyntaxDoc as i, getAllDiagramTypes as j, getDiagramMeta as k, getDiagramSince as l, getExamples as m, getSyntax as n, listDiagrams as o, resolveDiagramType as p, renderDsl as r, validateDsl as v };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schematex",
3
- "version": "0.8.3",
3
+ "version": "0.9.1",
4
4
  "description": "Every diagram a doctor, engineer, or lawyer would actually use. 36 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, FBD, SFC, P&ID, UML class, UML use case, UML sequence, fault tree, bowtie, PRISMA, phylo, fishbone, entity structure, ...) from a text DSL. Free, fully open source, made for AI. Pure SVG, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",