schematex 0.3.0 → 0.3.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.
Files changed (185) hide show
  1. package/dist/ai/ai-sdk.cjs +25 -25
  2. package/dist/ai/ai-sdk.d.cts +1 -1
  3. package/dist/ai/ai-sdk.d.ts +1 -1
  4. package/dist/ai/ai-sdk.js +20 -20
  5. package/dist/ai/index.cjs +28 -28
  6. package/dist/ai/index.d.cts +1 -1
  7. package/dist/ai/index.d.ts +1 -1
  8. package/dist/ai/index.js +20 -20
  9. package/dist/browser.cjs +22 -22
  10. package/dist/browser.js +20 -20
  11. package/dist/{chunk-TYCHEOQX.js → chunk-2J2QWNGI.js} +26 -20
  12. package/dist/chunk-2J2QWNGI.js.map +1 -0
  13. package/dist/{chunk-MCFQAUQV.cjs → chunk-2UJAVPA4.cjs} +58 -39
  14. package/dist/chunk-2UJAVPA4.cjs.map +1 -0
  15. package/dist/{chunk-5AEN2PLB.cjs → chunk-3YXXZ4LT.cjs} +33 -33
  16. package/dist/{chunk-5AEN2PLB.cjs.map → chunk-3YXXZ4LT.cjs.map} +1 -1
  17. package/dist/{chunk-RP5UATRA.js → chunk-56LXBM45.js} +4 -4
  18. package/dist/{chunk-RP5UATRA.js.map → chunk-56LXBM45.js.map} +1 -1
  19. package/dist/{chunk-OC22GGQN.js → chunk-6BKUD5EJ.js} +54 -4
  20. package/dist/chunk-6BKUD5EJ.js.map +1 -0
  21. package/dist/{chunk-ULYRO2KY.cjs → chunk-75BMFCP5.cjs} +44 -44
  22. package/dist/{chunk-ULYRO2KY.cjs.map → chunk-75BMFCP5.cjs.map} +1 -1
  23. package/dist/{chunk-ZNDIGQJD.js → chunk-7BEJHG43.js} +3 -3
  24. package/dist/{chunk-ZNDIGQJD.js.map → chunk-7BEJHG43.js.map} +1 -1
  25. package/dist/{chunk-WYFXOXVK.cjs → chunk-7MVDN5UC.cjs} +35 -35
  26. package/dist/{chunk-WYFXOXVK.cjs.map → chunk-7MVDN5UC.cjs.map} +1 -1
  27. package/dist/{chunk-JDTB7IKL.js → chunk-BJ65PKDU.js} +3 -3
  28. package/dist/{chunk-JDTB7IKL.js.map → chunk-BJ65PKDU.js.map} +1 -1
  29. package/dist/{chunk-FE6GAUNW.js → chunk-BJWMPPEA.js} +5 -5
  30. package/dist/{chunk-FE6GAUNW.js.map → chunk-BJWMPPEA.js.map} +1 -1
  31. package/dist/{chunk-MJGDP3CS.cjs → chunk-BUN3CRMP.cjs} +488 -109
  32. package/dist/chunk-BUN3CRMP.cjs.map +1 -0
  33. package/dist/{chunk-COLTVQWR.cjs → chunk-C3IVD7DI.cjs} +25 -25
  34. package/dist/{chunk-COLTVQWR.cjs.map → chunk-C3IVD7DI.cjs.map} +1 -1
  35. package/dist/{chunk-3YZ6FPQW.cjs → chunk-EYHD7LV3.cjs} +131 -131
  36. package/dist/{chunk-3YZ6FPQW.cjs.map → chunk-EYHD7LV3.cjs.map} +1 -1
  37. package/dist/{chunk-UGCUNADI.js → chunk-F6OROIHS.js} +35 -16
  38. package/dist/chunk-F6OROIHS.js.map +1 -0
  39. package/dist/{chunk-3FKS4KQK.cjs → chunk-GYTWJ6VB.cjs} +65 -59
  40. package/dist/chunk-GYTWJ6VB.cjs.map +1 -0
  41. package/dist/{chunk-VLMK7MQK.js → chunk-H4CJTKEH.js} +23 -4
  42. package/dist/chunk-H4CJTKEH.js.map +1 -0
  43. package/dist/{chunk-45KP67RR.js → chunk-HIQPEAL7.js} +5 -5
  44. package/dist/chunk-HIQPEAL7.js.map +1 -0
  45. package/dist/{chunk-NB56L5QK.js → chunk-IT2TVXC7.js} +4 -4
  46. package/dist/{chunk-NB56L5QK.js.map → chunk-IT2TVXC7.js.map} +1 -1
  47. package/dist/{chunk-2JDVJRR3.cjs → chunk-K5QG53GT.cjs} +28 -28
  48. package/dist/chunk-K5QG53GT.cjs.map +1 -0
  49. package/dist/{chunk-B37IKTI7.cjs → chunk-KUXOHLGC.cjs} +97 -47
  50. package/dist/chunk-KUXOHLGC.cjs.map +1 -0
  51. package/dist/{chunk-A5D2IMOX.cjs → chunk-L2KUGWFR.cjs} +47 -47
  52. package/dist/{chunk-A5D2IMOX.cjs.map → chunk-L2KUGWFR.cjs.map} +1 -1
  53. package/dist/{chunk-HDKDQAEQ.cjs → chunk-LFZZ4NCP.cjs} +14 -2
  54. package/dist/chunk-LFZZ4NCP.cjs.map +1 -0
  55. package/dist/{chunk-U6L3FAML.js → chunk-M3R6RCXY.js} +3 -3
  56. package/dist/{chunk-U6L3FAML.js.map → chunk-M3R6RCXY.js.map} +1 -1
  57. package/dist/{chunk-5YYAYW67.js → chunk-M5ZC3LFJ.js} +3 -3
  58. package/dist/{chunk-5YYAYW67.js.map → chunk-M5ZC3LFJ.js.map} +1 -1
  59. package/dist/{chunk-B6INLQBU.cjs → chunk-MKKFIPKU.cjs} +46 -46
  60. package/dist/{chunk-B6INLQBU.cjs.map → chunk-MKKFIPKU.cjs.map} +1 -1
  61. package/dist/{chunk-M5B2UUNW.js → chunk-NFT6VW73.js} +4 -4
  62. package/dist/{chunk-M5B2UUNW.js.map → chunk-NFT6VW73.js.map} +1 -1
  63. package/dist/{chunk-X7RPFTTR.cjs → chunk-OK5RYX55.cjs} +26 -26
  64. package/dist/{chunk-X7RPFTTR.cjs.map → chunk-OK5RYX55.cjs.map} +1 -1
  65. package/dist/{chunk-NNU4RGT3.js → chunk-RNGYXGHS.js} +39 -27
  66. package/dist/chunk-RNGYXGHS.js.map +1 -0
  67. package/dist/{chunk-SQKLKBBK.cjs → chunk-RODV6PC4.cjs} +25 -6
  68. package/dist/chunk-RODV6PC4.cjs.map +1 -0
  69. package/dist/{chunk-H2OEUBPO.js → chunk-SE23X5OE.js} +441 -62
  70. package/dist/chunk-SE23X5OE.js.map +1 -0
  71. package/dist/{chunk-FCGHV6ZK.js → chunk-SFSZUOFT.js} +4 -4
  72. package/dist/{chunk-FCGHV6ZK.js.map → chunk-SFSZUOFT.js.map} +1 -1
  73. package/dist/{chunk-NZH4GWE6.cjs → chunk-UK7JF5QB.cjs} +37 -37
  74. package/dist/{chunk-NZH4GWE6.cjs.map → chunk-UK7JF5QB.cjs.map} +1 -1
  75. package/dist/{chunk-QSQX77S2.cjs → chunk-W7GIQTJV.cjs} +21 -21
  76. package/dist/{chunk-QSQX77S2.cjs.map → chunk-W7GIQTJV.cjs.map} +1 -1
  77. package/dist/{chunk-KLJEK547.js → chunk-WHJXRLFD.js} +14 -3
  78. package/dist/chunk-WHJXRLFD.js.map +1 -0
  79. package/dist/{chunk-YQANC7HQ.js → chunk-X4F6VVEJ.js} +3 -3
  80. package/dist/{chunk-YQANC7HQ.js.map → chunk-X4F6VVEJ.js.map} +1 -1
  81. package/dist/{chunk-ZNOD4VZT.cjs → chunk-XI6JOG76.cjs} +46 -46
  82. package/dist/{chunk-ZNOD4VZT.cjs.map → chunk-XI6JOG76.cjs.map} +1 -1
  83. package/dist/{chunk-K2SOC3XF.cjs → chunk-XUEROLSB.cjs} +70 -19
  84. package/dist/chunk-XUEROLSB.cjs.map +1 -0
  85. package/dist/{chunk-XTATRNUN.cjs → chunk-YTEEZV6J.cjs} +442 -430
  86. package/dist/chunk-YTEEZV6J.cjs.map +1 -0
  87. package/dist/{chunk-XZNPAD6E.js → chunk-ZNLEUL7T.js} +58 -7
  88. package/dist/chunk-ZNLEUL7T.js.map +1 -0
  89. package/dist/{chunk-DNZFOCV7.js → chunk-ZTSO3S4P.js} +3 -3
  90. package/dist/{chunk-DNZFOCV7.js.map → chunk-ZTSO3S4P.js.map} +1 -1
  91. package/dist/diagrams/blockdiagram/index.cjs +6 -6
  92. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  93. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  94. package/dist/diagrams/blockdiagram/index.js +2 -2
  95. package/dist/diagrams/circuit/index.cjs +8 -8
  96. package/dist/diagrams/circuit/index.d.cts +1 -1
  97. package/dist/diagrams/circuit/index.d.ts +1 -1
  98. package/dist/diagrams/circuit/index.js +2 -2
  99. package/dist/diagrams/ecomap/index.cjs +8 -8
  100. package/dist/diagrams/ecomap/index.d.cts +1 -1
  101. package/dist/diagrams/ecomap/index.d.ts +1 -1
  102. package/dist/diagrams/ecomap/index.js +3 -3
  103. package/dist/diagrams/entity/index.cjs +6 -6
  104. package/dist/diagrams/entity/index.d.cts +1 -1
  105. package/dist/diagrams/entity/index.d.ts +1 -1
  106. package/dist/diagrams/entity/index.js +2 -2
  107. package/dist/diagrams/fishbone/index.cjs +8 -8
  108. package/dist/diagrams/fishbone/index.d.cts +1 -1
  109. package/dist/diagrams/fishbone/index.d.ts +1 -1
  110. package/dist/diagrams/fishbone/index.js +2 -2
  111. package/dist/diagrams/flowchart/index.cjs +8 -8
  112. package/dist/diagrams/flowchart/index.d.cts +2 -2
  113. package/dist/diagrams/flowchart/index.d.ts +2 -2
  114. package/dist/diagrams/flowchart/index.js +2 -2
  115. package/dist/diagrams/genogram/index.cjs +10 -10
  116. package/dist/diagrams/genogram/index.d.cts +1 -1
  117. package/dist/diagrams/genogram/index.d.ts +1 -1
  118. package/dist/diagrams/genogram/index.js +3 -3
  119. package/dist/diagrams/ladder/index.cjs +6 -6
  120. package/dist/diagrams/ladder/index.d.cts +1 -1
  121. package/dist/diagrams/ladder/index.d.ts +1 -1
  122. package/dist/diagrams/ladder/index.js +2 -2
  123. package/dist/diagrams/logic/index.cjs +6 -6
  124. package/dist/diagrams/logic/index.d.cts +1 -1
  125. package/dist/diagrams/logic/index.d.ts +1 -1
  126. package/dist/diagrams/logic/index.js +2 -2
  127. package/dist/diagrams/orgchart/index.cjs +7 -7
  128. package/dist/diagrams/orgchart/index.d.cts +1 -1
  129. package/dist/diagrams/orgchart/index.d.ts +1 -1
  130. package/dist/diagrams/orgchart/index.js +2 -2
  131. package/dist/diagrams/pedigree/index.cjs +8 -8
  132. package/dist/diagrams/pedigree/index.d.cts +1 -1
  133. package/dist/diagrams/pedigree/index.d.ts +1 -1
  134. package/dist/diagrams/pedigree/index.js +3 -3
  135. package/dist/diagrams/phylo/index.cjs +7 -7
  136. package/dist/diagrams/phylo/index.d.cts +1 -1
  137. package/dist/diagrams/phylo/index.d.ts +1 -1
  138. package/dist/diagrams/phylo/index.js +2 -2
  139. package/dist/diagrams/sld/index.cjs +6 -6
  140. package/dist/diagrams/sld/index.d.cts +1 -1
  141. package/dist/diagrams/sld/index.d.ts +1 -1
  142. package/dist/diagrams/sld/index.js +2 -2
  143. package/dist/diagrams/sociogram/index.cjs +7 -7
  144. package/dist/diagrams/sociogram/index.d.cts +1 -1
  145. package/dist/diagrams/sociogram/index.d.ts +1 -1
  146. package/dist/diagrams/sociogram/index.js +3 -3
  147. package/dist/diagrams/timing/index.cjs +5 -5
  148. package/dist/diagrams/timing/index.d.cts +1 -1
  149. package/dist/diagrams/timing/index.d.ts +1 -1
  150. package/dist/diagrams/timing/index.js +2 -2
  151. package/dist/diagrams/venn/index.cjs +9 -9
  152. package/dist/diagrams/venn/index.d.cts +1 -1
  153. package/dist/diagrams/venn/index.d.ts +1 -1
  154. package/dist/diagrams/venn/index.js +2 -2
  155. package/dist/{index-ivhNGsyU.d.cts → index-BrLxEzSQ.d.cts} +1 -1
  156. package/dist/{index-CUwp4GXI.d.ts → index-dWDwG6BW.d.ts} +1 -1
  157. package/dist/index.cjs +41 -41
  158. package/dist/index.d.cts +2 -2
  159. package/dist/index.d.ts +2 -2
  160. package/dist/index.js +19 -19
  161. package/dist/react.cjs +20 -20
  162. package/dist/react.cjs.map +1 -1
  163. package/dist/react.js +19 -19
  164. package/dist/react.js.map +1 -1
  165. package/dist/{types-Bl-Pn7Wj.d.cts → types-BtiUg7Gx.d.cts} +24 -3
  166. package/dist/{types-Bl-Pn7Wj.d.ts → types-BtiUg7Gx.d.ts} +24 -3
  167. package/package.json +1 -1
  168. package/dist/chunk-2JDVJRR3.cjs.map +0 -1
  169. package/dist/chunk-3FKS4KQK.cjs.map +0 -1
  170. package/dist/chunk-45KP67RR.js.map +0 -1
  171. package/dist/chunk-B37IKTI7.cjs.map +0 -1
  172. package/dist/chunk-H2OEUBPO.js.map +0 -1
  173. package/dist/chunk-HDKDQAEQ.cjs.map +0 -1
  174. package/dist/chunk-K2SOC3XF.cjs.map +0 -1
  175. package/dist/chunk-KLJEK547.js.map +0 -1
  176. package/dist/chunk-MCFQAUQV.cjs.map +0 -1
  177. package/dist/chunk-MJGDP3CS.cjs.map +0 -1
  178. package/dist/chunk-NNU4RGT3.js.map +0 -1
  179. package/dist/chunk-OC22GGQN.js.map +0 -1
  180. package/dist/chunk-SQKLKBBK.cjs.map +0 -1
  181. package/dist/chunk-TYCHEOQX.js.map +0 -1
  182. package/dist/chunk-UGCUNADI.js.map +0 -1
  183. package/dist/chunk-VLMK7MQK.js.map +0 -1
  184. package/dist/chunk-XTATRNUN.cjs.map +0 -1
  185. package/dist/chunk-XZNPAD6E.js.map +0 -1
@@ -1,38 +1,38 @@
1
1
  'use strict';
2
2
 
3
- var chunkQSQX77S2_cjs = require('../../chunk-QSQX77S2.cjs');
3
+ var chunkW7GIQTJV_cjs = require('../../chunk-W7GIQTJV.cjs');
4
4
  require('../../chunk-D7EHZFK4.cjs');
5
- require('../../chunk-HDKDQAEQ.cjs');
5
+ require('../../chunk-LFZZ4NCP.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "VennParseError", {
10
10
  enumerable: true,
11
- get: function () { return chunkQSQX77S2_cjs.VennParseError; }
11
+ get: function () { return chunkW7GIQTJV_cjs.VennParseError; }
12
12
  });
13
13
  Object.defineProperty(exports, "layoutVenn", {
14
14
  enumerable: true,
15
- get: function () { return chunkQSQX77S2_cjs.layoutVenn; }
15
+ get: function () { return chunkW7GIQTJV_cjs.layoutVenn; }
16
16
  });
17
17
  Object.defineProperty(exports, "parseVennDSL", {
18
18
  enumerable: true,
19
- get: function () { return chunkQSQX77S2_cjs.parseVennDSL; }
19
+ get: function () { return chunkW7GIQTJV_cjs.parseVennDSL; }
20
20
  });
21
21
  Object.defineProperty(exports, "renderVenn", {
22
22
  enumerable: true,
23
- get: function () { return chunkQSQX77S2_cjs.renderVenn; }
23
+ get: function () { return chunkW7GIQTJV_cjs.renderVenn; }
24
24
  });
25
25
  Object.defineProperty(exports, "renderVennAST", {
26
26
  enumerable: true,
27
- get: function () { return chunkQSQX77S2_cjs.renderVennAST; }
27
+ get: function () { return chunkW7GIQTJV_cjs.renderVennAST; }
28
28
  });
29
29
  Object.defineProperty(exports, "renderVennLayout", {
30
30
  enumerable: true,
31
- get: function () { return chunkQSQX77S2_cjs.renderVennLayout; }
31
+ get: function () { return chunkW7GIQTJV_cjs.renderVennLayout; }
32
32
  });
33
33
  Object.defineProperty(exports, "venn", {
34
34
  enumerable: true,
35
- get: function () { return chunkQSQX77S2_cjs.venn; }
35
+ get: function () { return chunkW7GIQTJV_cjs.venn; }
36
36
  });
37
37
  //# sourceMappingURL=index.cjs.map
38
38
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- import { V as VennAST, l as VennLayoutResult, D as DiagramPlugin } from '../../types-Bl-Pn7Wj.cjs';
1
+ import { V as VennAST, l as VennLayoutResult, D as DiagramPlugin } from '../../types-BtiUg7Gx.cjs';
2
2
 
3
3
  /**
4
4
  * Venn / Euler DSL parser (hand-written recursive descent).
@@ -1,4 +1,4 @@
1
- import { V as VennAST, l as VennLayoutResult, D as DiagramPlugin } from '../../types-Bl-Pn7Wj.js';
1
+ import { V as VennAST, l as VennLayoutResult, D as DiagramPlugin } from '../../types-BtiUg7Gx.js';
2
2
 
3
3
  /**
4
4
  * Venn / Euler DSL parser (hand-written recursive descent).
@@ -1,5 +1,5 @@
1
- export { VennParseError, layoutVenn, parseVennDSL, renderVenn, renderVennAST, renderVennLayout, venn } from '../../chunk-JDTB7IKL.js';
1
+ export { VennParseError, layoutVenn, parseVennDSL, renderVenn, renderVennAST, renderVennLayout, venn } from '../../chunk-BJ65PKDU.js';
2
2
  import '../../chunk-2VNMKOUO.js';
3
- import '../../chunk-KLJEK547.js';
3
+ import '../../chunk-WHJXRLFD.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { n as FlowchartAST, o as FlowchartLayoutResult, D as DiagramPlugin } from './types-Bl-Pn7Wj.cjs';
1
+ import { n as FlowchartAST, o as FlowchartLayoutResult, D as DiagramPlugin } from './types-BtiUg7Gx.cjs';
2
2
 
3
3
  /**
4
4
  * Flowchart DSL parser.
@@ -1,4 +1,4 @@
1
- import { n as FlowchartAST, o as FlowchartLayoutResult, D as DiagramPlugin } from './types-Bl-Pn7Wj.js';
1
+ import { n as FlowchartAST, o as FlowchartLayoutResult, D as DiagramPlugin } from './types-BtiUg7Gx.js';
2
2
 
3
3
  /**
4
4
  * Flowchart DSL parser.
package/dist/index.cjs CHANGED
@@ -1,115 +1,115 @@
1
1
  'use strict';
2
2
 
3
- var chunkXTATRNUN_cjs = require('./chunk-XTATRNUN.cjs');
4
- var chunkA5D2IMOX_cjs = require('./chunk-A5D2IMOX.cjs');
5
- var chunkK2SOC3XF_cjs = require('./chunk-K2SOC3XF.cjs');
6
- var chunkMCFQAUQV_cjs = require('./chunk-MCFQAUQV.cjs');
7
- var chunkB6INLQBU_cjs = require('./chunk-B6INLQBU.cjs');
8
- var chunk3YZ6FPQW_cjs = require('./chunk-3YZ6FPQW.cjs');
9
- var chunkZNOD4VZT_cjs = require('./chunk-ZNOD4VZT.cjs');
10
- var chunk5AEN2PLB_cjs = require('./chunk-5AEN2PLB.cjs');
11
- var chunkQSQX77S2_cjs = require('./chunk-QSQX77S2.cjs');
12
- var chunk3FKS4KQK_cjs = require('./chunk-3FKS4KQK.cjs');
13
- var chunkMJGDP3CS_cjs = require('./chunk-MJGDP3CS.cjs');
14
- var chunkNZH4GWE6_cjs = require('./chunk-NZH4GWE6.cjs');
15
- var chunkB37IKTI7_cjs = require('./chunk-B37IKTI7.cjs');
16
- var chunkX7RPFTTR_cjs = require('./chunk-X7RPFTTR.cjs');
17
- var chunkCOLTVQWR_cjs = require('./chunk-COLTVQWR.cjs');
18
- require('./chunk-ULYRO2KY.cjs');
19
- var chunk2JDVJRR3_cjs = require('./chunk-2JDVJRR3.cjs');
20
- var chunkWYFXOXVK_cjs = require('./chunk-WYFXOXVK.cjs');
3
+ var chunkYTEEZV6J_cjs = require('./chunk-YTEEZV6J.cjs');
4
+ var chunkL2KUGWFR_cjs = require('./chunk-L2KUGWFR.cjs');
5
+ var chunkXUEROLSB_cjs = require('./chunk-XUEROLSB.cjs');
6
+ var chunk2UJAVPA4_cjs = require('./chunk-2UJAVPA4.cjs');
7
+ var chunkMKKFIPKU_cjs = require('./chunk-MKKFIPKU.cjs');
8
+ var chunkEYHD7LV3_cjs = require('./chunk-EYHD7LV3.cjs');
9
+ var chunkXI6JOG76_cjs = require('./chunk-XI6JOG76.cjs');
10
+ var chunk3YXXZ4LT_cjs = require('./chunk-3YXXZ4LT.cjs');
11
+ var chunkW7GIQTJV_cjs = require('./chunk-W7GIQTJV.cjs');
12
+ var chunkGYTWJ6VB_cjs = require('./chunk-GYTWJ6VB.cjs');
13
+ var chunkBUN3CRMP_cjs = require('./chunk-BUN3CRMP.cjs');
14
+ var chunkUK7JF5QB_cjs = require('./chunk-UK7JF5QB.cjs');
15
+ var chunkKUXOHLGC_cjs = require('./chunk-KUXOHLGC.cjs');
16
+ var chunkOK5RYX55_cjs = require('./chunk-OK5RYX55.cjs');
17
+ var chunkC3IVD7DI_cjs = require('./chunk-C3IVD7DI.cjs');
18
+ require('./chunk-75BMFCP5.cjs');
19
+ var chunkK5QG53GT_cjs = require('./chunk-K5QG53GT.cjs');
20
+ var chunk7MVDN5UC_cjs = require('./chunk-7MVDN5UC.cjs');
21
21
  var chunkD7EHZFK4_cjs = require('./chunk-D7EHZFK4.cjs');
22
- require('./chunk-HDKDQAEQ.cjs');
22
+ require('./chunk-LFZZ4NCP.cjs');
23
23
 
24
24
 
25
25
 
26
26
  Object.defineProperty(exports, "decisiontree", {
27
27
  enumerable: true,
28
- get: function () { return chunkXTATRNUN_cjs.decisiontree; }
28
+ get: function () { return chunkYTEEZV6J_cjs.decisiontree; }
29
29
  });
30
30
  Object.defineProperty(exports, "parse", {
31
31
  enumerable: true,
32
- get: function () { return chunkXTATRNUN_cjs.parse; }
32
+ get: function () { return chunkYTEEZV6J_cjs.parse; }
33
33
  });
34
34
  Object.defineProperty(exports, "pid", {
35
35
  enumerable: true,
36
- get: function () { return chunkXTATRNUN_cjs.pid; }
36
+ get: function () { return chunkYTEEZV6J_cjs.pid; }
37
37
  });
38
38
  Object.defineProperty(exports, "render", {
39
39
  enumerable: true,
40
- get: function () { return chunkXTATRNUN_cjs.render; }
40
+ get: function () { return chunkYTEEZV6J_cjs.render; }
41
41
  });
42
42
  Object.defineProperty(exports, "state", {
43
43
  enumerable: true,
44
- get: function () { return chunkXTATRNUN_cjs.state; }
44
+ get: function () { return chunkYTEEZV6J_cjs.state; }
45
45
  });
46
46
  Object.defineProperty(exports, "timeline", {
47
47
  enumerable: true,
48
- get: function () { return chunkXTATRNUN_cjs.timeline; }
48
+ get: function () { return chunkYTEEZV6J_cjs.timeline; }
49
49
  });
50
50
  Object.defineProperty(exports, "orgchart", {
51
51
  enumerable: true,
52
- get: function () { return chunkA5D2IMOX_cjs.orgchart; }
52
+ get: function () { return chunkL2KUGWFR_cjs.orgchart; }
53
53
  });
54
54
  Object.defineProperty(exports, "circuit", {
55
55
  enumerable: true,
56
- get: function () { return chunkK2SOC3XF_cjs.circuit; }
56
+ get: function () { return chunkXUEROLSB_cjs.circuit; }
57
57
  });
58
58
  Object.defineProperty(exports, "blockdiagram", {
59
59
  enumerable: true,
60
- get: function () { return chunkMCFQAUQV_cjs.blockdiagram; }
60
+ get: function () { return chunk2UJAVPA4_cjs.blockdiagram; }
61
61
  });
62
62
  Object.defineProperty(exports, "ladder", {
63
63
  enumerable: true,
64
- get: function () { return chunkB6INLQBU_cjs.ladder; }
64
+ get: function () { return chunkMKKFIPKU_cjs.ladder; }
65
65
  });
66
66
  Object.defineProperty(exports, "sld", {
67
67
  enumerable: true,
68
- get: function () { return chunk3YZ6FPQW_cjs.sld; }
68
+ get: function () { return chunkEYHD7LV3_cjs.sld; }
69
69
  });
70
70
  Object.defineProperty(exports, "entity", {
71
71
  enumerable: true,
72
- get: function () { return chunkZNOD4VZT_cjs.entity; }
72
+ get: function () { return chunkXI6JOG76_cjs.entity; }
73
73
  });
74
74
  Object.defineProperty(exports, "fishbone", {
75
75
  enumerable: true,
76
- get: function () { return chunk5AEN2PLB_cjs.fishbone; }
76
+ get: function () { return chunk3YXXZ4LT_cjs.fishbone; }
77
77
  });
78
78
  Object.defineProperty(exports, "venn", {
79
79
  enumerable: true,
80
- get: function () { return chunkQSQX77S2_cjs.venn; }
80
+ get: function () { return chunkW7GIQTJV_cjs.venn; }
81
81
  });
82
82
  Object.defineProperty(exports, "flowchart", {
83
83
  enumerable: true,
84
- get: function () { return chunk3FKS4KQK_cjs.flowchart; }
84
+ get: function () { return chunkGYTWJ6VB_cjs.flowchart; }
85
85
  });
86
86
  Object.defineProperty(exports, "genogram", {
87
87
  enumerable: true,
88
- get: function () { return chunkMJGDP3CS_cjs.genogram; }
88
+ get: function () { return chunkBUN3CRMP_cjs.genogram; }
89
89
  });
90
90
  Object.defineProperty(exports, "ecomap", {
91
91
  enumerable: true,
92
- get: function () { return chunkNZH4GWE6_cjs.ecomap; }
92
+ get: function () { return chunkUK7JF5QB_cjs.ecomap; }
93
93
  });
94
94
  Object.defineProperty(exports, "pedigree", {
95
95
  enumerable: true,
96
- get: function () { return chunkB37IKTI7_cjs.pedigree; }
96
+ get: function () { return chunkKUXOHLGC_cjs.pedigree; }
97
97
  });
98
98
  Object.defineProperty(exports, "phylo", {
99
99
  enumerable: true,
100
- get: function () { return chunkX7RPFTTR_cjs.phylo; }
100
+ get: function () { return chunkOK5RYX55_cjs.phylo; }
101
101
  });
102
102
  Object.defineProperty(exports, "sociogram", {
103
103
  enumerable: true,
104
- get: function () { return chunkCOLTVQWR_cjs.sociogram; }
104
+ get: function () { return chunkC3IVD7DI_cjs.sociogram; }
105
105
  });
106
106
  Object.defineProperty(exports, "timing", {
107
107
  enumerable: true,
108
- get: function () { return chunk2JDVJRR3_cjs.timing; }
108
+ get: function () { return chunkK5QG53GT_cjs.timing; }
109
109
  });
110
110
  Object.defineProperty(exports, "logic", {
111
111
  enumerable: true,
112
- get: function () { return chunkWYFXOXVK_cjs.logic; }
112
+ get: function () { return chunk7MVDN5UC_cjs.logic; }
113
113
  });
114
114
  Object.defineProperty(exports, "BASE_THEMES", {
115
115
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -13,9 +13,9 @@ export { sld } from './diagrams/sld/index.cjs';
13
13
  export { entity } from './diagrams/entity/index.cjs';
14
14
  export { fishbone } from './diagrams/fishbone/index.cjs';
15
15
  export { venn } from './diagrams/venn/index.cjs';
16
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-ivhNGsyU.cjs';
16
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-BrLxEzSQ.cjs';
17
17
  export { orgchart } from './diagrams/orgchart/index.cjs';
18
- import { D as DiagramPlugin } from './types-Bl-Pn7Wj.cjs';
18
+ import { D as DiagramPlugin } from './types-BtiUg7Gx.cjs';
19
19
 
20
20
  declare const decisiontree: DiagramPlugin;
21
21
 
package/dist/index.d.ts CHANGED
@@ -13,9 +13,9 @@ export { sld } from './diagrams/sld/index.js';
13
13
  export { entity } from './diagrams/entity/index.js';
14
14
  export { fishbone } from './diagrams/fishbone/index.js';
15
15
  export { venn } from './diagrams/venn/index.js';
16
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-CUwp4GXI.js';
16
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-dWDwG6BW.js';
17
17
  export { orgchart } from './diagrams/orgchart/index.js';
18
- import { D as DiagramPlugin } from './types-Bl-Pn7Wj.js';
18
+ import { D as DiagramPlugin } from './types-BtiUg7Gx.js';
19
19
 
20
20
  declare const decisiontree: DiagramPlugin;
21
21
 
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- export { decisiontree, parse, pid, render, state, timeline } from './chunk-NNU4RGT3.js';
2
- export { orgchart } from './chunk-FCGHV6ZK.js';
3
- export { circuit } from './chunk-XZNPAD6E.js';
4
- export { blockdiagram } from './chunk-UGCUNADI.js';
5
- export { ladder } from './chunk-U6L3FAML.js';
6
- export { sld } from './chunk-FE6GAUNW.js';
7
- export { entity } from './chunk-M5B2UUNW.js';
8
- export { fishbone } from './chunk-ZNDIGQJD.js';
9
- export { venn } from './chunk-JDTB7IKL.js';
10
- export { flowchart } from './chunk-TYCHEOQX.js';
11
- export { genogram } from './chunk-H2OEUBPO.js';
12
- export { ecomap } from './chunk-NB56L5QK.js';
13
- export { pedigree } from './chunk-OC22GGQN.js';
14
- export { phylo } from './chunk-YQANC7HQ.js';
15
- export { sociogram } from './chunk-RP5UATRA.js';
16
- import './chunk-DNZFOCV7.js';
17
- export { timing } from './chunk-45KP67RR.js';
18
- export { logic } from './chunk-5YYAYW67.js';
1
+ export { decisiontree, parse, pid, render, state, timeline } from './chunk-RNGYXGHS.js';
2
+ export { orgchart } from './chunk-SFSZUOFT.js';
3
+ export { circuit } from './chunk-ZNLEUL7T.js';
4
+ export { blockdiagram } from './chunk-F6OROIHS.js';
5
+ export { ladder } from './chunk-M3R6RCXY.js';
6
+ export { sld } from './chunk-BJWMPPEA.js';
7
+ export { entity } from './chunk-NFT6VW73.js';
8
+ export { fishbone } from './chunk-7BEJHG43.js';
9
+ export { venn } from './chunk-BJ65PKDU.js';
10
+ export { flowchart } from './chunk-2J2QWNGI.js';
11
+ export { genogram } from './chunk-SE23X5OE.js';
12
+ export { ecomap } from './chunk-IT2TVXC7.js';
13
+ export { pedigree } from './chunk-6BKUD5EJ.js';
14
+ export { phylo } from './chunk-X4F6VVEJ.js';
15
+ export { sociogram } from './chunk-56LXBM45.js';
16
+ import './chunk-ZTSO3S4P.js';
17
+ export { timing } from './chunk-HIQPEAL7.js';
18
+ export { logic } from './chunk-M5ZC3LFJ.js';
19
19
  export { BASE_THEMES, BIOLOGY_TOKENS, PERSON_TOKENS, VENN_TOKENS, resolveBaseTheme, resolveBiologyTheme, resolveFishboneTheme, resolveGenogramTheme, resolvePersonTheme, resolveTimelineTheme, resolveVennTheme } from './chunk-2VNMKOUO.js';
20
- import './chunk-KLJEK547.js';
20
+ import './chunk-WHJXRLFD.js';
21
21
  //# sourceMappingURL=index.js.map
22
22
  //# sourceMappingURL=index.js.map
package/dist/react.cjs CHANGED
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var chunkXTATRNUN_cjs = require('./chunk-XTATRNUN.cjs');
4
- require('./chunk-A5D2IMOX.cjs');
5
- require('./chunk-K2SOC3XF.cjs');
6
- require('./chunk-MCFQAUQV.cjs');
7
- require('./chunk-B6INLQBU.cjs');
8
- require('./chunk-3YZ6FPQW.cjs');
9
- require('./chunk-ZNOD4VZT.cjs');
10
- require('./chunk-5AEN2PLB.cjs');
11
- require('./chunk-QSQX77S2.cjs');
12
- require('./chunk-3FKS4KQK.cjs');
13
- require('./chunk-MJGDP3CS.cjs');
14
- require('./chunk-NZH4GWE6.cjs');
15
- require('./chunk-B37IKTI7.cjs');
16
- require('./chunk-X7RPFTTR.cjs');
17
- require('./chunk-COLTVQWR.cjs');
18
- require('./chunk-ULYRO2KY.cjs');
19
- require('./chunk-2JDVJRR3.cjs');
20
- require('./chunk-WYFXOXVK.cjs');
3
+ var chunkYTEEZV6J_cjs = require('./chunk-YTEEZV6J.cjs');
4
+ require('./chunk-L2KUGWFR.cjs');
5
+ require('./chunk-XUEROLSB.cjs');
6
+ require('./chunk-2UJAVPA4.cjs');
7
+ require('./chunk-MKKFIPKU.cjs');
8
+ require('./chunk-EYHD7LV3.cjs');
9
+ require('./chunk-XI6JOG76.cjs');
10
+ require('./chunk-3YXXZ4LT.cjs');
11
+ require('./chunk-W7GIQTJV.cjs');
12
+ require('./chunk-GYTWJ6VB.cjs');
13
+ require('./chunk-BUN3CRMP.cjs');
14
+ require('./chunk-UK7JF5QB.cjs');
15
+ require('./chunk-KUXOHLGC.cjs');
16
+ require('./chunk-OK5RYX55.cjs');
17
+ require('./chunk-C3IVD7DI.cjs');
18
+ require('./chunk-75BMFCP5.cjs');
19
+ require('./chunk-K5QG53GT.cjs');
20
+ require('./chunk-7MVDN5UC.cjs');
21
21
  require('./chunk-D7EHZFK4.cjs');
22
- require('./chunk-HDKDQAEQ.cjs');
22
+ require('./chunk-LFZZ4NCP.cjs');
23
23
  var react = require('react');
24
24
  var jsxRuntime = require('react/jsx-runtime');
25
25
 
@@ -35,7 +35,7 @@ function SchematexDiagram({
35
35
  }) {
36
36
  const svg = react.useMemo(() => {
37
37
  try {
38
- return chunkXTATRNUN_cjs.render(dsl, { type, theme, fontFamily, padding });
38
+ return chunkYTEEZV6J_cjs.render(dsl, { type, theme, fontFamily, padding });
39
39
  } catch (err) {
40
40
  const e = err instanceof Error ? err : new Error(String(err));
41
41
  onError?.(e);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react.tsx"],"names":["useMemo","render","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAA0B;AACxB,EAAA,MAAM,GAAA,GAAMA,cAAQ,MAAM;AACxB,IAAA,IAAI;AACF,MAAA,OAAOC,yBAAO,GAAA,EAAK,EAAE,MAAM,KAAA,EAAO,UAAA,EAAY,SAAS,CAAA;AAAA,IACzD,SAAS,GAAA,EAAK;AACZ,MAAA,MAAM,CAAA,GAAI,eAAe,KAAA,GAAQ,GAAA,GAAM,IAAI,KAAA,CAAM,MAAA,CAAO,GAAG,CAAC,CAAA;AAC5D,MAAA,OAAA,GAAU,CAAC,CAAA;AACX,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EAEF,GAAG,CAAC,GAAA,EAAK,MAAM,KAAA,EAAO,UAAA,EAAY,OAAO,CAAC,CAAA;AAE1C,EAAA,uBACEC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA;AAAA,MACA,KAAA;AAAA,MAEA,uBAAA,EAAyB,EAAE,MAAA,EAAQ,GAAA,IAAO,EAAA;AAAG;AAAA,GAC/C;AAEJ","file":"react.cjs","sourcesContent":["/**\n * React component for Schematex diagrams.\n *\n * @example\n * ```tsx\n * import { SchematexDiagram } from 'schematex/react';\n *\n * <SchematexDiagram\n * dsl=\"genogram\\n alice [female]\"\n * theme=\"monochrome\"\n * className=\"my-diagram\"\n * />\n * ```\n */\n\nimport { useMemo } from \"react\";\nimport { render, type SchematexConfig } from \"./core/api\";\n\nexport interface SchematexDiagramProps {\n /** DSL text to render */\n dsl: string;\n /** Diagram type override (auto-detected from DSL if omitted) */\n type?: SchematexConfig[\"type\"];\n /** Theme name: 'default' | 'monochrome' | 'dark' */\n theme?: string;\n /** Font family override */\n fontFamily?: string;\n /** Canvas padding in px */\n padding?: number;\n /** className for the wrapper div */\n className?: string;\n /** Inline style for the wrapper div */\n style?: React.CSSProperties;\n /** Called when render throws a parse/layout error */\n onError?: (error: Error) => void;\n}\n\nexport function SchematexDiagram({\n dsl,\n type,\n theme,\n fontFamily,\n padding,\n className,\n style,\n onError,\n}: SchematexDiagramProps) {\n const svg = useMemo(() => {\n try {\n return render(dsl, { type, theme, fontFamily, padding });\n } catch (err) {\n const e = err instanceof Error ? err : new Error(String(err));\n onError?.(e);\n return null;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dsl, type, theme, fontFamily, padding]);\n\n return (\n <div\n className={className}\n style={style}\n // SVG is generated by our own renderer — safe\n dangerouslySetInnerHTML={{ __html: svg ?? \"\" }}\n />\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/react.tsx"],"names":["useMemo","render","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAA0B;AACxB,EAAA,MAAM,GAAA,GAAMA,cAAQ,MAAM;AACxB,IAAA,IAAI;AACF,MAAA,OAAOC,yBAAO,GAAA,EAAK,EAAE,MAAM,KAAA,EAAO,UAAA,EAAY,SAAS,CAAA;AAAA,IACzD,SAAS,GAAA,EAAK;AACZ,MAAA,MAAM,CAAA,GAAI,eAAe,KAAA,GAAQ,GAAA,GAAM,IAAI,KAAA,CAAM,MAAA,CAAO,GAAG,CAAC,CAAA;AAC5D,MAAA,OAAA,GAAU,CAAC,CAAA;AACX,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EAEF,GAAG,CAAC,GAAA,EAAK,MAAM,KAAA,EAAO,UAAA,EAAY,OAAO,CAAC,CAAA;AAE1C,EAAA,uBACEC,cAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA;AAAA,MACA,KAAA;AAAA,MAEA,uBAAA,EAAyB,EAAE,MAAA,EAAQ,GAAA,IAAO,EAAA;AAAG;AAAA,GAC/C;AAEJ","file":"react.cjs","sourcesContent":["/**\n * React component for Schematex diagrams.\n *\n * @example\n * ```tsx\n * import { SchematexDiagram } from 'schematex/react';\n *\n * <SchematexDiagram\n * dsl=\"genogram\\n alice [female]\"\n * theme=\"monochrome\"\n * className=\"my-diagram\"\n * />\n * ```\n */\n\nimport { useMemo } from \"react\";\nimport { render, type SchematexConfig } from \"./core/api\";\n\nexport interface SchematexDiagramProps {\n /** DSL text to render */\n dsl: string;\n /** Diagram type override (auto-detected from DSL if omitted) */\n type?: SchematexConfig[\"type\"];\n /** Theme name: 'default' | 'monochrome' | 'dark' */\n theme?: string;\n /** Font family override */\n fontFamily?: string;\n /** Canvas padding in px */\n padding?: number;\n /** className for the wrapper div */\n className?: string;\n /** Inline style for the wrapper div */\n style?: React.CSSProperties;\n /** Called when render throws a parse/layout error */\n onError?: (error: Error) => void;\n}\n\nexport function SchematexDiagram({\n dsl,\n type,\n theme,\n fontFamily,\n padding,\n className,\n style,\n onError,\n}: SchematexDiagramProps) {\n const svg = useMemo(() => {\n try {\n return render(dsl, { type, theme, fontFamily, padding });\n } catch (err) {\n const e = err instanceof Error ? err : new Error(String(err));\n onError?.(e);\n return null;\n }\n // onError excluded — a fresh callback shouldn't bust the memo.\n }, [dsl, type, theme, fontFamily, padding]);\n\n return (\n <div\n className={className}\n style={style}\n // SVG is generated by our own renderer — safe\n dangerouslySetInnerHTML={{ __html: svg ?? \"\" }}\n />\n );\n}\n"]}
package/dist/react.js CHANGED
@@ -1,23 +1,23 @@
1
- import { render } from './chunk-NNU4RGT3.js';
2
- import './chunk-FCGHV6ZK.js';
3
- import './chunk-XZNPAD6E.js';
4
- import './chunk-UGCUNADI.js';
5
- import './chunk-U6L3FAML.js';
6
- import './chunk-FE6GAUNW.js';
7
- import './chunk-M5B2UUNW.js';
8
- import './chunk-ZNDIGQJD.js';
9
- import './chunk-JDTB7IKL.js';
10
- import './chunk-TYCHEOQX.js';
11
- import './chunk-H2OEUBPO.js';
12
- import './chunk-NB56L5QK.js';
13
- import './chunk-OC22GGQN.js';
14
- import './chunk-YQANC7HQ.js';
15
- import './chunk-RP5UATRA.js';
16
- import './chunk-DNZFOCV7.js';
17
- import './chunk-45KP67RR.js';
18
- import './chunk-5YYAYW67.js';
1
+ import { render } from './chunk-RNGYXGHS.js';
2
+ import './chunk-SFSZUOFT.js';
3
+ import './chunk-ZNLEUL7T.js';
4
+ import './chunk-F6OROIHS.js';
5
+ import './chunk-M3R6RCXY.js';
6
+ import './chunk-BJWMPPEA.js';
7
+ import './chunk-NFT6VW73.js';
8
+ import './chunk-7BEJHG43.js';
9
+ import './chunk-BJ65PKDU.js';
10
+ import './chunk-2J2QWNGI.js';
11
+ import './chunk-SE23X5OE.js';
12
+ import './chunk-IT2TVXC7.js';
13
+ import './chunk-6BKUD5EJ.js';
14
+ import './chunk-X4F6VVEJ.js';
15
+ import './chunk-56LXBM45.js';
16
+ import './chunk-ZTSO3S4P.js';
17
+ import './chunk-HIQPEAL7.js';
18
+ import './chunk-M5ZC3LFJ.js';
19
19
  import './chunk-2VNMKOUO.js';
20
- import './chunk-KLJEK547.js';
20
+ import './chunk-WHJXRLFD.js';
21
21
  import { useMemo } from 'react';
22
22
  import { jsx } from 'react/jsx-runtime';
23
23
 
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/react.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAA0B;AACxB,EAAA,MAAM,GAAA,GAAM,QAAQ,MAAM;AACxB,IAAA,IAAI;AACF,MAAA,OAAO,OAAO,GAAA,EAAK,EAAE,MAAM,KAAA,EAAO,UAAA,EAAY,SAAS,CAAA;AAAA,IACzD,SAAS,GAAA,EAAK;AACZ,MAAA,MAAM,CAAA,GAAI,eAAe,KAAA,GAAQ,GAAA,GAAM,IAAI,KAAA,CAAM,MAAA,CAAO,GAAG,CAAC,CAAA;AAC5D,MAAA,OAAA,GAAU,CAAC,CAAA;AACX,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EAEF,GAAG,CAAC,GAAA,EAAK,MAAM,KAAA,EAAO,UAAA,EAAY,OAAO,CAAC,CAAA;AAE1C,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA;AAAA,MACA,KAAA;AAAA,MAEA,uBAAA,EAAyB,EAAE,MAAA,EAAQ,GAAA,IAAO,EAAA;AAAG;AAAA,GAC/C;AAEJ","file":"react.js","sourcesContent":["/**\n * React component for Schematex diagrams.\n *\n * @example\n * ```tsx\n * import { SchematexDiagram } from 'schematex/react';\n *\n * <SchematexDiagram\n * dsl=\"genogram\\n alice [female]\"\n * theme=\"monochrome\"\n * className=\"my-diagram\"\n * />\n * ```\n */\n\nimport { useMemo } from \"react\";\nimport { render, type SchematexConfig } from \"./core/api\";\n\nexport interface SchematexDiagramProps {\n /** DSL text to render */\n dsl: string;\n /** Diagram type override (auto-detected from DSL if omitted) */\n type?: SchematexConfig[\"type\"];\n /** Theme name: 'default' | 'monochrome' | 'dark' */\n theme?: string;\n /** Font family override */\n fontFamily?: string;\n /** Canvas padding in px */\n padding?: number;\n /** className for the wrapper div */\n className?: string;\n /** Inline style for the wrapper div */\n style?: React.CSSProperties;\n /** Called when render throws a parse/layout error */\n onError?: (error: Error) => void;\n}\n\nexport function SchematexDiagram({\n dsl,\n type,\n theme,\n fontFamily,\n padding,\n className,\n style,\n onError,\n}: SchematexDiagramProps) {\n const svg = useMemo(() => {\n try {\n return render(dsl, { type, theme, fontFamily, padding });\n } catch (err) {\n const e = err instanceof Error ? err : new Error(String(err));\n onError?.(e);\n return null;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dsl, type, theme, fontFamily, padding]);\n\n return (\n <div\n className={className}\n style={style}\n // SVG is generated by our own renderer — safe\n dangerouslySetInnerHTML={{ __html: svg ?? \"\" }}\n />\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/react.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqCO,SAAS,gBAAA,CAAiB;AAAA,EAC/B,GAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,UAAA;AAAA,EACA,OAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAA,EAA0B;AACxB,EAAA,MAAM,GAAA,GAAM,QAAQ,MAAM;AACxB,IAAA,IAAI;AACF,MAAA,OAAO,OAAO,GAAA,EAAK,EAAE,MAAM,KAAA,EAAO,UAAA,EAAY,SAAS,CAAA;AAAA,IACzD,SAAS,GAAA,EAAK;AACZ,MAAA,MAAM,CAAA,GAAI,eAAe,KAAA,GAAQ,GAAA,GAAM,IAAI,KAAA,CAAM,MAAA,CAAO,GAAG,CAAC,CAAA;AAC5D,MAAA,OAAA,GAAU,CAAC,CAAA;AACX,MAAA,OAAO,IAAA;AAAA,IACT;AAAA,EAEF,GAAG,CAAC,GAAA,EAAK,MAAM,KAAA,EAAO,UAAA,EAAY,OAAO,CAAC,CAAA;AAE1C,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA;AAAA,MACA,KAAA;AAAA,MAEA,uBAAA,EAAyB,EAAE,MAAA,EAAQ,GAAA,IAAO,EAAA;AAAG;AAAA,GAC/C;AAEJ","file":"react.js","sourcesContent":["/**\n * React component for Schematex diagrams.\n *\n * @example\n * ```tsx\n * import { SchematexDiagram } from 'schematex/react';\n *\n * <SchematexDiagram\n * dsl=\"genogram\\n alice [female]\"\n * theme=\"monochrome\"\n * className=\"my-diagram\"\n * />\n * ```\n */\n\nimport { useMemo } from \"react\";\nimport { render, type SchematexConfig } from \"./core/api\";\n\nexport interface SchematexDiagramProps {\n /** DSL text to render */\n dsl: string;\n /** Diagram type override (auto-detected from DSL if omitted) */\n type?: SchematexConfig[\"type\"];\n /** Theme name: 'default' | 'monochrome' | 'dark' */\n theme?: string;\n /** Font family override */\n fontFamily?: string;\n /** Canvas padding in px */\n padding?: number;\n /** className for the wrapper div */\n className?: string;\n /** Inline style for the wrapper div */\n style?: React.CSSProperties;\n /** Called when render throws a parse/layout error */\n onError?: (error: Error) => void;\n}\n\nexport function SchematexDiagram({\n dsl,\n type,\n theme,\n fontFamily,\n padding,\n className,\n style,\n onError,\n}: SchematexDiagramProps) {\n const svg = useMemo(() => {\n try {\n return render(dsl, { type, theme, fontFamily, padding });\n } catch (err) {\n const e = err instanceof Error ? err : new Error(String(err));\n onError?.(e);\n return null;\n }\n // onError excluded — a fresh callback shouldn't bust the memo.\n }, [dsl, type, theme, fontFamily, padding]);\n\n return (\n <div\n className={className}\n style={style}\n // SVG is generated by our own renderer — safe\n dangerouslySetInnerHTML={{ __html: svg ?? \"\" }}\n />\n );\n}\n"]}
@@ -110,6 +110,20 @@ interface Individual {
110
110
  annotations?: Record<string, string>;
111
111
  /** Whether this individual is external/non-family (dashed border) */
112
112
  external?: boolean;
113
+ /**
114
+ * Optional shape override. By default the shape is derived from `sex`
115
+ * (male=square, female=circle, other=diamond). Some kinship/anthropology
116
+ * conventions use triangles for males, etc. This field lets the DSL request
117
+ * a specific shape regardless of sex.
118
+ */
119
+ shape?: "square" | "circle" | "diamond" | "triangle" | "triangle-down";
120
+ /**
121
+ * Pedigree convention for "known relative, unknown ancestry":
122
+ * id of another individual whose generation this person shares as a sibling.
123
+ * No phantom parents are synthesized — layout pins generation, renderer
124
+ * draws a dashed bracket between the two.
125
+ */
126
+ siblingOf?: string;
113
127
  /** Custom properties for extensibility */
114
128
  properties?: Record<string, string>;
115
129
  }
@@ -117,7 +131,7 @@ type Sex = "male" | "female" | "unknown" | "other" | "nonbinary" | "intersex";
117
131
  type IndividualStatus = "alive" | "deceased" | "stillborn" | "miscarriage" | "abortion" | "pregnancy" | "sab" | "tab" | "ectopic";
118
132
  type GeneticStatus = "unaffected" | "affected" | "carrier" | "carrier-x" | "obligate-carrier" | "presymptomatic";
119
133
  type ChildType = "biological" | "adopted" | "adopted-in" | "adopted-out" | "foster" | "step" | "surrogate" | "donor" | "donor-egg" | "donor-sperm" | "donor-embryo";
120
- type IndividualMarker = "proband" | "consultand" | "evaluated" | "index-person" | "transgender" | "no-children" | "infertile";
134
+ type IndividualMarker = "proband" | "consultand" | "evaluated" | "index-person" | "transgender" | "no-children" | "infertile" | "unknown-siblings";
121
135
  interface Condition {
122
136
  label: string;
123
137
  /** Fill pattern for condition display */
@@ -246,7 +260,7 @@ interface PhyloLayoutNode {
246
260
  /** Radius from center (for circular/unrooted layouts) */
247
261
  radius?: number;
248
262
  }
249
- type RelationshipType = "married" | "divorced" | "separated" | "engaged" | "cohabiting" | "domestic-partnership" | "consanguineous" | "parent-child" | "adopted" | "foster" | "twin-identical" | "twin-fraternal" | "harmony" | "close" | "bestfriends" | "love" | "inlove" | "friendship" | "hostile" | "conflict" | "enmity" | "distant-hostile" | "cutoff" | "close-hostile" | "fused" | "fused-hostile" | "distant" | "normal" | "nevermet" | "abuse" | "physical-abuse" | "emotional-abuse" | "sexual-abuse" | "neglect" | "manipulative" | "controlling" | "jealous" | "focused" | "focused-neg" | "distrust" | "admirer" | "limerence" | "strong" | "moderate" | "weak" | "stressful" | "stressful-strong" | "conflictual" | "broken" | "reciprocal";
263
+ type RelationshipType = "married" | "divorced" | "separated" | "engaged" | "cohabiting" | "cohabiting-ended" | "domestic-partnership" | "consanguineous" | "parent-child" | "adopted" | "foster" | "twin-identical" | "twin-fraternal" | "harmony" | "close" | "bestfriends" | "love" | "inlove" | "friendship" | "hostile" | "conflict" | "enmity" | "distant-hostile" | "cutoff" | "close-hostile" | "fused" | "fused-hostile" | "distant" | "normal" | "nevermet" | "abuse" | "physical-abuse" | "emotional-abuse" | "sexual-abuse" | "neglect" | "manipulative" | "controlling" | "jealous" | "focused" | "focused-neg" | "distrust" | "admirer" | "limerence" | "strong" | "moderate" | "weak" | "stressful" | "stressful-strong" | "conflictual" | "broken" | "reciprocal";
250
264
  interface Relationship {
251
265
  type: RelationshipType;
252
266
  from: string;
@@ -258,6 +272,13 @@ interface Relationship {
258
272
  weight?: number;
259
273
  /** For ecomap: energy flow direction */
260
274
  energyFlow?: "from" | "to" | "mutual" | "none";
275
+ /**
276
+ * Genogram parent-child only. When true, this link is data-true but
277
+ * does NOT dominate layout — used for foster/adopted/guardian "current
278
+ * caregiver" relationships when biological parents already claim the
279
+ * child structurally. Renderer draws it as a dotted line.
280
+ */
281
+ secondary?: boolean;
261
282
  }
262
283
  interface LayoutResult {
263
284
  width: number;
@@ -385,7 +406,7 @@ interface LogicGateAST {
385
406
  modules?: LogicGateModule[];
386
407
  metadata?: Record<string, string>;
387
408
  }
388
- type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
409
+ type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
389
410
  type CircuitDirection = "right" | "left" | "up" | "down";
390
411
  interface CircuitComponent {
391
412
  id: string;
@@ -110,6 +110,20 @@ interface Individual {
110
110
  annotations?: Record<string, string>;
111
111
  /** Whether this individual is external/non-family (dashed border) */
112
112
  external?: boolean;
113
+ /**
114
+ * Optional shape override. By default the shape is derived from `sex`
115
+ * (male=square, female=circle, other=diamond). Some kinship/anthropology
116
+ * conventions use triangles for males, etc. This field lets the DSL request
117
+ * a specific shape regardless of sex.
118
+ */
119
+ shape?: "square" | "circle" | "diamond" | "triangle" | "triangle-down";
120
+ /**
121
+ * Pedigree convention for "known relative, unknown ancestry":
122
+ * id of another individual whose generation this person shares as a sibling.
123
+ * No phantom parents are synthesized — layout pins generation, renderer
124
+ * draws a dashed bracket between the two.
125
+ */
126
+ siblingOf?: string;
113
127
  /** Custom properties for extensibility */
114
128
  properties?: Record<string, string>;
115
129
  }
@@ -117,7 +131,7 @@ type Sex = "male" | "female" | "unknown" | "other" | "nonbinary" | "intersex";
117
131
  type IndividualStatus = "alive" | "deceased" | "stillborn" | "miscarriage" | "abortion" | "pregnancy" | "sab" | "tab" | "ectopic";
118
132
  type GeneticStatus = "unaffected" | "affected" | "carrier" | "carrier-x" | "obligate-carrier" | "presymptomatic";
119
133
  type ChildType = "biological" | "adopted" | "adopted-in" | "adopted-out" | "foster" | "step" | "surrogate" | "donor" | "donor-egg" | "donor-sperm" | "donor-embryo";
120
- type IndividualMarker = "proband" | "consultand" | "evaluated" | "index-person" | "transgender" | "no-children" | "infertile";
134
+ type IndividualMarker = "proband" | "consultand" | "evaluated" | "index-person" | "transgender" | "no-children" | "infertile" | "unknown-siblings";
121
135
  interface Condition {
122
136
  label: string;
123
137
  /** Fill pattern for condition display */
@@ -246,7 +260,7 @@ interface PhyloLayoutNode {
246
260
  /** Radius from center (for circular/unrooted layouts) */
247
261
  radius?: number;
248
262
  }
249
- type RelationshipType = "married" | "divorced" | "separated" | "engaged" | "cohabiting" | "domestic-partnership" | "consanguineous" | "parent-child" | "adopted" | "foster" | "twin-identical" | "twin-fraternal" | "harmony" | "close" | "bestfriends" | "love" | "inlove" | "friendship" | "hostile" | "conflict" | "enmity" | "distant-hostile" | "cutoff" | "close-hostile" | "fused" | "fused-hostile" | "distant" | "normal" | "nevermet" | "abuse" | "physical-abuse" | "emotional-abuse" | "sexual-abuse" | "neglect" | "manipulative" | "controlling" | "jealous" | "focused" | "focused-neg" | "distrust" | "admirer" | "limerence" | "strong" | "moderate" | "weak" | "stressful" | "stressful-strong" | "conflictual" | "broken" | "reciprocal";
263
+ type RelationshipType = "married" | "divorced" | "separated" | "engaged" | "cohabiting" | "cohabiting-ended" | "domestic-partnership" | "consanguineous" | "parent-child" | "adopted" | "foster" | "twin-identical" | "twin-fraternal" | "harmony" | "close" | "bestfriends" | "love" | "inlove" | "friendship" | "hostile" | "conflict" | "enmity" | "distant-hostile" | "cutoff" | "close-hostile" | "fused" | "fused-hostile" | "distant" | "normal" | "nevermet" | "abuse" | "physical-abuse" | "emotional-abuse" | "sexual-abuse" | "neglect" | "manipulative" | "controlling" | "jealous" | "focused" | "focused-neg" | "distrust" | "admirer" | "limerence" | "strong" | "moderate" | "weak" | "stressful" | "stressful-strong" | "conflictual" | "broken" | "reciprocal";
250
264
  interface Relationship {
251
265
  type: RelationshipType;
252
266
  from: string;
@@ -258,6 +272,13 @@ interface Relationship {
258
272
  weight?: number;
259
273
  /** For ecomap: energy flow direction */
260
274
  energyFlow?: "from" | "to" | "mutual" | "none";
275
+ /**
276
+ * Genogram parent-child only. When true, this link is data-true but
277
+ * does NOT dominate layout — used for foster/adopted/guardian "current
278
+ * caregiver" relationships when biological parents already claim the
279
+ * child structurally. Renderer draws it as a dotted line.
280
+ */
281
+ secondary?: boolean;
261
282
  }
262
283
  interface LayoutResult {
263
284
  width: number;
@@ -385,7 +406,7 @@ interface LogicGateAST {
385
406
  modules?: LogicGateModule[];
386
407
  metadata?: Record<string, string>;
387
408
  }
388
- type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
409
+ type CircuitComponentType = "resistor" | "potentiometer" | "rheostat" | "thermistor_ntc" | "thermistor_ptc" | "ldr" | "varistor" | "fuse" | "fuse_slow" | "capacitor" | "electrolytic_cap" | "variable_cap" | "inductor" | "inductor_iron" | "inductor_ferrite" | "variable_inductor" | "ferrite_bead" | "crystal" | "transformer" | "diode" | "zener" | "schottky" | "led" | "photodiode" | "varactor" | "tvs_diode" | "bridge_rectifier" | "npn" | "pnp" | "darlington_npn" | "darlington_pnp" | "nmos" | "pmos" | "nmos_depletion" | "jfet_n" | "jfet_p" | "igbt" | "scr" | "triac" | "diac" | "phototransistor" | "optocoupler" | "opamp" | "comparator" | "schmitt_buffer" | "tri_state_buffer" | "instrumentation_amp" | "generic_ic" | "voltage_regulator" | "dc_dc_converter" | "555_timer" | "terminal_block" | "voltage_source" | "current_source" | "ac_source" | "battery" | "vcc" | "ground" | "gnd_signal" | "gnd_chassis" | "gnd_digital" | "switch_spst" | "switch_spdt" | "switch_dpdt" | "push_no" | "push_nc" | "relay_coil" | "relay_no" | "relay_nc" | "motor" | "speaker" | "microphone" | "buzzer" | "ammeter" | "voltmeter" | "wattmeter" | "oscilloscope" | "wire" | "dot" | "label" | "port" | "test_point" | "no_connect" | "antenna";
389
410
  type CircuitDirection = "right" | "left" | "up" | "down";
390
411
  interface CircuitComponent {
391
412
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schematex",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Every diagram a doctor, engineer, or lawyer would actually use. 22 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, P&ID, UML state diagram, 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",