schematex 0.2.5 → 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 (194) hide show
  1. package/README.md +4 -3
  2. package/dist/ai/ai-sdk.cjs +25 -25
  3. package/dist/ai/ai-sdk.d.cts +2 -2
  4. package/dist/ai/ai-sdk.d.ts +2 -2
  5. package/dist/ai/ai-sdk.js +20 -20
  6. package/dist/ai/index.cjs +28 -28
  7. package/dist/ai/index.d.cts +3 -3
  8. package/dist/ai/index.d.ts +3 -3
  9. package/dist/ai/index.js +20 -20
  10. package/dist/{api-bQZ98gkJ.d.cts → api-BuFilDQB.d.cts} +1 -1
  11. package/dist/{api-bQZ98gkJ.d.ts → api-BuFilDQB.d.ts} +1 -1
  12. package/dist/browser.cjs +22 -22
  13. package/dist/browser.d.cts +2 -2
  14. package/dist/browser.d.ts +2 -2
  15. package/dist/browser.js +20 -20
  16. package/dist/{chunk-J2LVOWVY.js → chunk-2J2QWNGI.js} +46 -24
  17. package/dist/chunk-2J2QWNGI.js.map +1 -0
  18. package/dist/{chunk-MCFQAUQV.cjs → chunk-2UJAVPA4.cjs} +58 -39
  19. package/dist/chunk-2UJAVPA4.cjs.map +1 -0
  20. package/dist/{chunk-5AEN2PLB.cjs → chunk-3YXXZ4LT.cjs} +33 -33
  21. package/dist/{chunk-5AEN2PLB.cjs.map → chunk-3YXXZ4LT.cjs.map} +1 -1
  22. package/dist/{chunk-RP5UATRA.js → chunk-56LXBM45.js} +4 -4
  23. package/dist/{chunk-RP5UATRA.js.map → chunk-56LXBM45.js.map} +1 -1
  24. package/dist/{chunk-OC22GGQN.js → chunk-6BKUD5EJ.js} +54 -4
  25. package/dist/chunk-6BKUD5EJ.js.map +1 -0
  26. package/dist/{chunk-ULYRO2KY.cjs → chunk-75BMFCP5.cjs} +44 -44
  27. package/dist/{chunk-ULYRO2KY.cjs.map → chunk-75BMFCP5.cjs.map} +1 -1
  28. package/dist/{chunk-ZNDIGQJD.js → chunk-7BEJHG43.js} +3 -3
  29. package/dist/{chunk-ZNDIGQJD.js.map → chunk-7BEJHG43.js.map} +1 -1
  30. package/dist/{chunk-WYFXOXVK.cjs → chunk-7MVDN5UC.cjs} +35 -35
  31. package/dist/{chunk-WYFXOXVK.cjs.map → chunk-7MVDN5UC.cjs.map} +1 -1
  32. package/dist/{chunk-JDTB7IKL.js → chunk-BJ65PKDU.js} +3 -3
  33. package/dist/{chunk-JDTB7IKL.js.map → chunk-BJ65PKDU.js.map} +1 -1
  34. package/dist/{chunk-FE6GAUNW.js → chunk-BJWMPPEA.js} +5 -5
  35. package/dist/{chunk-FE6GAUNW.js.map → chunk-BJWMPPEA.js.map} +1 -1
  36. package/dist/{chunk-MJGDP3CS.cjs → chunk-BUN3CRMP.cjs} +488 -109
  37. package/dist/chunk-BUN3CRMP.cjs.map +1 -0
  38. package/dist/{chunk-COLTVQWR.cjs → chunk-C3IVD7DI.cjs} +25 -25
  39. package/dist/{chunk-COLTVQWR.cjs.map → chunk-C3IVD7DI.cjs.map} +1 -1
  40. package/dist/{chunk-3YZ6FPQW.cjs → chunk-EYHD7LV3.cjs} +131 -131
  41. package/dist/{chunk-3YZ6FPQW.cjs.map → chunk-EYHD7LV3.cjs.map} +1 -1
  42. package/dist/{chunk-UGCUNADI.js → chunk-F6OROIHS.js} +35 -16
  43. package/dist/chunk-F6OROIHS.js.map +1 -0
  44. package/dist/{chunk-UAGSCTYI.cjs → chunk-GYTWJ6VB.cjs} +85 -63
  45. package/dist/chunk-GYTWJ6VB.cjs.map +1 -0
  46. package/dist/{chunk-MR5HU5WU.js → chunk-H4CJTKEH.js} +50 -4
  47. package/dist/chunk-H4CJTKEH.js.map +1 -0
  48. package/dist/{chunk-45KP67RR.js → chunk-HIQPEAL7.js} +5 -5
  49. package/dist/chunk-HIQPEAL7.js.map +1 -0
  50. package/dist/{chunk-LR4X4ZRG.js → chunk-IT2TVXC7.js} +20 -16
  51. package/dist/chunk-IT2TVXC7.js.map +1 -0
  52. package/dist/{chunk-2JDVJRR3.cjs → chunk-K5QG53GT.cjs} +28 -28
  53. package/dist/chunk-K5QG53GT.cjs.map +1 -0
  54. package/dist/{chunk-B37IKTI7.cjs → chunk-KUXOHLGC.cjs} +97 -47
  55. package/dist/chunk-KUXOHLGC.cjs.map +1 -0
  56. package/dist/{chunk-A5D2IMOX.cjs → chunk-L2KUGWFR.cjs} +47 -47
  57. package/dist/{chunk-A5D2IMOX.cjs.map → chunk-L2KUGWFR.cjs.map} +1 -1
  58. package/dist/{chunk-HDKDQAEQ.cjs → chunk-LFZZ4NCP.cjs} +14 -2
  59. package/dist/chunk-LFZZ4NCP.cjs.map +1 -0
  60. package/dist/{chunk-U6L3FAML.js → chunk-M3R6RCXY.js} +3 -3
  61. package/dist/{chunk-U6L3FAML.js.map → chunk-M3R6RCXY.js.map} +1 -1
  62. package/dist/{chunk-5YYAYW67.js → chunk-M5ZC3LFJ.js} +3 -3
  63. package/dist/{chunk-5YYAYW67.js.map → chunk-M5ZC3LFJ.js.map} +1 -1
  64. package/dist/{chunk-B6INLQBU.cjs → chunk-MKKFIPKU.cjs} +46 -46
  65. package/dist/{chunk-B6INLQBU.cjs.map → chunk-MKKFIPKU.cjs.map} +1 -1
  66. package/dist/{chunk-M5B2UUNW.js → chunk-NFT6VW73.js} +4 -4
  67. package/dist/{chunk-M5B2UUNW.js.map → chunk-NFT6VW73.js.map} +1 -1
  68. package/dist/{chunk-X7RPFTTR.cjs → chunk-OK5RYX55.cjs} +26 -26
  69. package/dist/{chunk-X7RPFTTR.cjs.map → chunk-OK5RYX55.cjs.map} +1 -1
  70. package/dist/{chunk-VPKCW4PB.js → chunk-RNGYXGHS.js} +2854 -42
  71. package/dist/chunk-RNGYXGHS.js.map +1 -0
  72. package/dist/{chunk-DPQYGWCT.cjs → chunk-RODV6PC4.cjs} +52 -6
  73. package/dist/chunk-RODV6PC4.cjs.map +1 -0
  74. package/dist/{chunk-H2OEUBPO.js → chunk-SE23X5OE.js} +441 -62
  75. package/dist/chunk-SE23X5OE.js.map +1 -0
  76. package/dist/{chunk-FCGHV6ZK.js → chunk-SFSZUOFT.js} +4 -4
  77. package/dist/{chunk-FCGHV6ZK.js.map → chunk-SFSZUOFT.js.map} +1 -1
  78. package/dist/{chunk-E65ITQXV.cjs → chunk-UK7JF5QB.cjs} +52 -48
  79. package/dist/chunk-UK7JF5QB.cjs.map +1 -0
  80. package/dist/{chunk-QSQX77S2.cjs → chunk-W7GIQTJV.cjs} +21 -21
  81. package/dist/{chunk-QSQX77S2.cjs.map → chunk-W7GIQTJV.cjs.map} +1 -1
  82. package/dist/{chunk-KLJEK547.js → chunk-WHJXRLFD.js} +14 -3
  83. package/dist/chunk-WHJXRLFD.js.map +1 -0
  84. package/dist/{chunk-YQANC7HQ.js → chunk-X4F6VVEJ.js} +3 -3
  85. package/dist/{chunk-YQANC7HQ.js.map → chunk-X4F6VVEJ.js.map} +1 -1
  86. package/dist/{chunk-ZNOD4VZT.cjs → chunk-XI6JOG76.cjs} +46 -46
  87. package/dist/{chunk-ZNOD4VZT.cjs.map → chunk-XI6JOG76.cjs.map} +1 -1
  88. package/dist/{chunk-4S2WILLW.cjs → chunk-XUEROLSB.cjs} +72 -19
  89. package/dist/chunk-XUEROLSB.cjs.map +1 -0
  90. package/dist/{chunk-MSYBSOU2.cjs → chunk-YTEEZV6J.cjs} +3055 -241
  91. package/dist/chunk-YTEEZV6J.cjs.map +1 -0
  92. package/dist/{chunk-PGALHQFF.js → chunk-ZNLEUL7T.js} +60 -7
  93. package/dist/chunk-ZNLEUL7T.js.map +1 -0
  94. package/dist/{chunk-DNZFOCV7.js → chunk-ZTSO3S4P.js} +3 -3
  95. package/dist/{chunk-DNZFOCV7.js.map → chunk-ZTSO3S4P.js.map} +1 -1
  96. package/dist/diagrams/blockdiagram/index.cjs +6 -6
  97. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  98. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  99. package/dist/diagrams/blockdiagram/index.js +2 -2
  100. package/dist/diagrams/circuit/index.cjs +8 -8
  101. package/dist/diagrams/circuit/index.d.cts +1 -1
  102. package/dist/diagrams/circuit/index.d.ts +1 -1
  103. package/dist/diagrams/circuit/index.js +2 -2
  104. package/dist/diagrams/ecomap/index.cjs +8 -8
  105. package/dist/diagrams/ecomap/index.d.cts +1 -1
  106. package/dist/diagrams/ecomap/index.d.ts +1 -1
  107. package/dist/diagrams/ecomap/index.js +3 -3
  108. package/dist/diagrams/entity/index.cjs +6 -6
  109. package/dist/diagrams/entity/index.d.cts +1 -1
  110. package/dist/diagrams/entity/index.d.ts +1 -1
  111. package/dist/diagrams/entity/index.js +2 -2
  112. package/dist/diagrams/fishbone/index.cjs +8 -8
  113. package/dist/diagrams/fishbone/index.d.cts +1 -1
  114. package/dist/diagrams/fishbone/index.d.ts +1 -1
  115. package/dist/diagrams/fishbone/index.js +2 -2
  116. package/dist/diagrams/flowchart/index.cjs +8 -8
  117. package/dist/diagrams/flowchart/index.d.cts +2 -2
  118. package/dist/diagrams/flowchart/index.d.ts +2 -2
  119. package/dist/diagrams/flowchart/index.js +2 -2
  120. package/dist/diagrams/genogram/index.cjs +10 -10
  121. package/dist/diagrams/genogram/index.d.cts +1 -1
  122. package/dist/diagrams/genogram/index.d.ts +1 -1
  123. package/dist/diagrams/genogram/index.js +3 -3
  124. package/dist/diagrams/ladder/index.cjs +6 -6
  125. package/dist/diagrams/ladder/index.d.cts +1 -1
  126. package/dist/diagrams/ladder/index.d.ts +1 -1
  127. package/dist/diagrams/ladder/index.js +2 -2
  128. package/dist/diagrams/logic/index.cjs +6 -6
  129. package/dist/diagrams/logic/index.d.cts +1 -1
  130. package/dist/diagrams/logic/index.d.ts +1 -1
  131. package/dist/diagrams/logic/index.js +2 -2
  132. package/dist/diagrams/orgchart/index.cjs +7 -7
  133. package/dist/diagrams/orgchart/index.d.cts +1 -1
  134. package/dist/diagrams/orgchart/index.d.ts +1 -1
  135. package/dist/diagrams/orgchart/index.js +2 -2
  136. package/dist/diagrams/pedigree/index.cjs +8 -8
  137. package/dist/diagrams/pedigree/index.d.cts +1 -1
  138. package/dist/diagrams/pedigree/index.d.ts +1 -1
  139. package/dist/diagrams/pedigree/index.js +3 -3
  140. package/dist/diagrams/phylo/index.cjs +7 -7
  141. package/dist/diagrams/phylo/index.d.cts +1 -1
  142. package/dist/diagrams/phylo/index.d.ts +1 -1
  143. package/dist/diagrams/phylo/index.js +2 -2
  144. package/dist/diagrams/sld/index.cjs +6 -6
  145. package/dist/diagrams/sld/index.d.cts +1 -1
  146. package/dist/diagrams/sld/index.d.ts +1 -1
  147. package/dist/diagrams/sld/index.js +2 -2
  148. package/dist/diagrams/sociogram/index.cjs +7 -7
  149. package/dist/diagrams/sociogram/index.d.cts +1 -1
  150. package/dist/diagrams/sociogram/index.d.ts +1 -1
  151. package/dist/diagrams/sociogram/index.js +3 -3
  152. package/dist/diagrams/timing/index.cjs +5 -5
  153. package/dist/diagrams/timing/index.d.cts +1 -1
  154. package/dist/diagrams/timing/index.d.ts +1 -1
  155. package/dist/diagrams/timing/index.js +2 -2
  156. package/dist/diagrams/venn/index.cjs +9 -9
  157. package/dist/diagrams/venn/index.d.cts +1 -1
  158. package/dist/diagrams/venn/index.d.ts +1 -1
  159. package/dist/diagrams/venn/index.js +2 -2
  160. package/dist/{index-BTZEka65.d.cts → index-BrLxEzSQ.d.cts} +1 -1
  161. package/dist/{index-DcU88F9i.d.ts → index-dWDwG6BW.d.ts} +1 -1
  162. package/dist/index.cjs +47 -39
  163. package/dist/index.d.cts +8 -4
  164. package/dist/index.d.ts +8 -4
  165. package/dist/index.js +19 -19
  166. package/dist/react.cjs +20 -20
  167. package/dist/react.cjs.map +1 -1
  168. package/dist/react.d.cts +1 -1
  169. package/dist/react.d.ts +1 -1
  170. package/dist/react.js +19 -19
  171. package/dist/react.js.map +1 -1
  172. package/dist/{types-C4LnMEcB.d.cts → types-BtiUg7Gx.d.cts} +25 -4
  173. package/dist/{types-C4LnMEcB.d.ts → types-BtiUg7Gx.d.ts} +25 -4
  174. package/package.json +2 -2
  175. package/dist/chunk-2JDVJRR3.cjs.map +0 -1
  176. package/dist/chunk-45KP67RR.js.map +0 -1
  177. package/dist/chunk-4S2WILLW.cjs.map +0 -1
  178. package/dist/chunk-B37IKTI7.cjs.map +0 -1
  179. package/dist/chunk-DPQYGWCT.cjs.map +0 -1
  180. package/dist/chunk-E65ITQXV.cjs.map +0 -1
  181. package/dist/chunk-H2OEUBPO.js.map +0 -1
  182. package/dist/chunk-HDKDQAEQ.cjs.map +0 -1
  183. package/dist/chunk-J2LVOWVY.js.map +0 -1
  184. package/dist/chunk-KLJEK547.js.map +0 -1
  185. package/dist/chunk-LR4X4ZRG.js.map +0 -1
  186. package/dist/chunk-MCFQAUQV.cjs.map +0 -1
  187. package/dist/chunk-MJGDP3CS.cjs.map +0 -1
  188. package/dist/chunk-MR5HU5WU.js.map +0 -1
  189. package/dist/chunk-MSYBSOU2.cjs.map +0 -1
  190. package/dist/chunk-OC22GGQN.js.map +0 -1
  191. package/dist/chunk-PGALHQFF.js.map +0 -1
  192. package/dist/chunk-UAGSCTYI.cjs.map +0 -1
  193. package/dist/chunk-UGCUNADI.js.map +0 -1
  194. package/dist/chunk-VPKCW4PB.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-C4LnMEcB.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-C4LnMEcB.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-C4LnMEcB.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-C4LnMEcB.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,107 +1,115 @@
1
1
  'use strict';
2
2
 
3
- var chunkMSYBSOU2_cjs = require('./chunk-MSYBSOU2.cjs');
4
- var chunkA5D2IMOX_cjs = require('./chunk-A5D2IMOX.cjs');
5
- var chunk4S2WILLW_cjs = require('./chunk-4S2WILLW.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 chunkUAGSCTYI_cjs = require('./chunk-UAGSCTYI.cjs');
13
- var chunkMJGDP3CS_cjs = require('./chunk-MJGDP3CS.cjs');
14
- var chunkE65ITQXV_cjs = require('./chunk-E65ITQXV.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 chunkMSYBSOU2_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 chunkMSYBSOU2_cjs.parse; }
32
+ get: function () { return chunkYTEEZV6J_cjs.parse; }
33
+ });
34
+ Object.defineProperty(exports, "pid", {
35
+ enumerable: true,
36
+ get: function () { return chunkYTEEZV6J_cjs.pid; }
33
37
  });
34
38
  Object.defineProperty(exports, "render", {
35
39
  enumerable: true,
36
- get: function () { return chunkMSYBSOU2_cjs.render; }
40
+ get: function () { return chunkYTEEZV6J_cjs.render; }
41
+ });
42
+ Object.defineProperty(exports, "state", {
43
+ enumerable: true,
44
+ get: function () { return chunkYTEEZV6J_cjs.state; }
37
45
  });
38
46
  Object.defineProperty(exports, "timeline", {
39
47
  enumerable: true,
40
- get: function () { return chunkMSYBSOU2_cjs.timeline; }
48
+ get: function () { return chunkYTEEZV6J_cjs.timeline; }
41
49
  });
42
50
  Object.defineProperty(exports, "orgchart", {
43
51
  enumerable: true,
44
- get: function () { return chunkA5D2IMOX_cjs.orgchart; }
52
+ get: function () { return chunkL2KUGWFR_cjs.orgchart; }
45
53
  });
46
54
  Object.defineProperty(exports, "circuit", {
47
55
  enumerable: true,
48
- get: function () { return chunk4S2WILLW_cjs.circuit; }
56
+ get: function () { return chunkXUEROLSB_cjs.circuit; }
49
57
  });
50
58
  Object.defineProperty(exports, "blockdiagram", {
51
59
  enumerable: true,
52
- get: function () { return chunkMCFQAUQV_cjs.blockdiagram; }
60
+ get: function () { return chunk2UJAVPA4_cjs.blockdiagram; }
53
61
  });
54
62
  Object.defineProperty(exports, "ladder", {
55
63
  enumerable: true,
56
- get: function () { return chunkB6INLQBU_cjs.ladder; }
64
+ get: function () { return chunkMKKFIPKU_cjs.ladder; }
57
65
  });
58
66
  Object.defineProperty(exports, "sld", {
59
67
  enumerable: true,
60
- get: function () { return chunk3YZ6FPQW_cjs.sld; }
68
+ get: function () { return chunkEYHD7LV3_cjs.sld; }
61
69
  });
62
70
  Object.defineProperty(exports, "entity", {
63
71
  enumerable: true,
64
- get: function () { return chunkZNOD4VZT_cjs.entity; }
72
+ get: function () { return chunkXI6JOG76_cjs.entity; }
65
73
  });
66
74
  Object.defineProperty(exports, "fishbone", {
67
75
  enumerable: true,
68
- get: function () { return chunk5AEN2PLB_cjs.fishbone; }
76
+ get: function () { return chunk3YXXZ4LT_cjs.fishbone; }
69
77
  });
70
78
  Object.defineProperty(exports, "venn", {
71
79
  enumerable: true,
72
- get: function () { return chunkQSQX77S2_cjs.venn; }
80
+ get: function () { return chunkW7GIQTJV_cjs.venn; }
73
81
  });
74
82
  Object.defineProperty(exports, "flowchart", {
75
83
  enumerable: true,
76
- get: function () { return chunkUAGSCTYI_cjs.flowchart; }
84
+ get: function () { return chunkGYTWJ6VB_cjs.flowchart; }
77
85
  });
78
86
  Object.defineProperty(exports, "genogram", {
79
87
  enumerable: true,
80
- get: function () { return chunkMJGDP3CS_cjs.genogram; }
88
+ get: function () { return chunkBUN3CRMP_cjs.genogram; }
81
89
  });
82
90
  Object.defineProperty(exports, "ecomap", {
83
91
  enumerable: true,
84
- get: function () { return chunkE65ITQXV_cjs.ecomap; }
92
+ get: function () { return chunkUK7JF5QB_cjs.ecomap; }
85
93
  });
86
94
  Object.defineProperty(exports, "pedigree", {
87
95
  enumerable: true,
88
- get: function () { return chunkB37IKTI7_cjs.pedigree; }
96
+ get: function () { return chunkKUXOHLGC_cjs.pedigree; }
89
97
  });
90
98
  Object.defineProperty(exports, "phylo", {
91
99
  enumerable: true,
92
- get: function () { return chunkX7RPFTTR_cjs.phylo; }
100
+ get: function () { return chunkOK5RYX55_cjs.phylo; }
93
101
  });
94
102
  Object.defineProperty(exports, "sociogram", {
95
103
  enumerable: true,
96
- get: function () { return chunkCOLTVQWR_cjs.sociogram; }
104
+ get: function () { return chunkC3IVD7DI_cjs.sociogram; }
97
105
  });
98
106
  Object.defineProperty(exports, "timing", {
99
107
  enumerable: true,
100
- get: function () { return chunk2JDVJRR3_cjs.timing; }
108
+ get: function () { return chunkK5QG53GT_cjs.timing; }
101
109
  });
102
110
  Object.defineProperty(exports, "logic", {
103
111
  enumerable: true,
104
- get: function () { return chunkWYFXOXVK_cjs.logic; }
112
+ get: function () { return chunk7MVDN5UC_cjs.logic; }
105
113
  });
106
114
  Object.defineProperty(exports, "BASE_THEMES", {
107
115
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { S as SchematexConfig, p as parse, r as render } from './api-bQZ98gkJ.cjs';
1
+ export { S as SchematexConfig, p as parse, r as render } from './api-BuFilDQB.cjs';
2
2
  export { genogram } from './diagrams/genogram/index.cjs';
3
3
  export { ecomap } from './diagrams/ecomap/index.cjs';
4
4
  export { pedigree } from './diagrams/pedigree/index.cjs';
@@ -13,12 +13,16 @@ 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-BTZEka65.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-C4LnMEcB.cjs';
18
+ import { D as DiagramPlugin } from './types-BtiUg7Gx.cjs';
19
19
 
20
20
  declare const decisiontree: DiagramPlugin;
21
21
 
22
22
  declare const timeline: DiagramPlugin;
23
23
 
24
- export { decisiontree, timeline };
24
+ declare const state: DiagramPlugin;
25
+
26
+ declare const pid: DiagramPlugin;
27
+
28
+ export { decisiontree, pid, state, timeline };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { S as SchematexConfig, p as parse, r as render } from './api-bQZ98gkJ.js';
1
+ export { S as SchematexConfig, p as parse, r as render } from './api-BuFilDQB.js';
2
2
  export { genogram } from './diagrams/genogram/index.js';
3
3
  export { ecomap } from './diagrams/ecomap/index.js';
4
4
  export { pedigree } from './diagrams/pedigree/index.js';
@@ -13,12 +13,16 @@ 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-DcU88F9i.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-C4LnMEcB.js';
18
+ import { D as DiagramPlugin } from './types-BtiUg7Gx.js';
19
19
 
20
20
  declare const decisiontree: DiagramPlugin;
21
21
 
22
22
  declare const timeline: DiagramPlugin;
23
23
 
24
- export { decisiontree, timeline };
24
+ declare const state: DiagramPlugin;
25
+
26
+ declare const pid: DiagramPlugin;
27
+
28
+ export { decisiontree, pid, state, timeline };
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
- export { decisiontree, parse, render, timeline } from './chunk-VPKCW4PB.js';
2
- export { orgchart } from './chunk-FCGHV6ZK.js';
3
- export { circuit } from './chunk-PGALHQFF.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-J2LVOWVY.js';
11
- export { genogram } from './chunk-H2OEUBPO.js';
12
- export { ecomap } from './chunk-LR4X4ZRG.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 chunkMSYBSOU2_cjs = require('./chunk-MSYBSOU2.cjs');
4
- require('./chunk-A5D2IMOX.cjs');
5
- require('./chunk-4S2WILLW.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-UAGSCTYI.cjs');
13
- require('./chunk-MJGDP3CS.cjs');
14
- require('./chunk-E65ITQXV.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 chunkMSYBSOU2_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.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SchematexConfig } from './api-bQZ98gkJ.cjs';
2
+ import { S as SchematexConfig } from './api-BuFilDQB.cjs';
3
3
 
4
4
  interface SchematexDiagramProps {
5
5
  /** DSL text to render */
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SchematexConfig } from './api-bQZ98gkJ.js';
2
+ import { S as SchematexConfig } from './api-BuFilDQB.js';
3
3
 
4
4
  interface SchematexDiagramProps {
5
5
  /** DSL text to render */
package/dist/react.js CHANGED
@@ -1,23 +1,23 @@
1
- import { render } from './chunk-VPKCW4PB.js';
2
- import './chunk-FCGHV6ZK.js';
3
- import './chunk-PGALHQFF.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-J2LVOWVY.js';
11
- import './chunk-H2OEUBPO.js';
12
- import './chunk-LR4X4ZRG.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"]}
@@ -8,7 +8,7 @@
8
8
  * - Layout: DiagramAST → LayoutResult
9
9
  * - Renderer: LayoutResult → SVG string
10
10
  */
11
- type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline";
11
+ type DiagramType = "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid";
12
12
  type GenogramMode = "medical" | "heritage";
13
13
  /**
14
14
  * Standard legend positions:
@@ -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;