schematex 0.6.6 → 0.6.8

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 (105) hide show
  1. package/README.md +115 -3
  2. package/README.zh-CN.md +783 -0
  3. package/dist/ai/ai-sdk.cjs +11 -11
  4. package/dist/ai/ai-sdk.d.cts +4 -4
  5. package/dist/ai/ai-sdk.d.ts +4 -4
  6. package/dist/ai/ai-sdk.js +6 -6
  7. package/dist/ai/index.cjs +17 -17
  8. package/dist/ai/index.d.cts +3 -3
  9. package/dist/ai/index.d.ts +3 -3
  10. package/dist/ai/index.js +6 -6
  11. package/dist/{api-QFMTlIi7.d.ts → api-DIJM_mqp.d.ts} +1 -1
  12. package/dist/{api-DA4-U-jn.d.cts → api-JaBtsUT8.d.cts} +1 -1
  13. package/dist/browser.cjs +12 -12
  14. package/dist/browser.d.cts +3 -3
  15. package/dist/browser.d.ts +3 -3
  16. package/dist/browser.js +6 -6
  17. package/dist/{chunk-KJZCRHNR.js → chunk-2TUZ3QJA.js} +623 -9
  18. package/dist/chunk-2TUZ3QJA.js.map +1 -0
  19. package/dist/{chunk-EUVUO3CL.cjs → chunk-34O3C6OC.cjs} +2 -2
  20. package/dist/{chunk-EUVUO3CL.cjs.map → chunk-34O3C6OC.cjs.map} +1 -1
  21. package/dist/{chunk-MLLARXOI.cjs → chunk-AGBY7KLL.cjs} +131 -27
  22. package/dist/chunk-AGBY7KLL.cjs.map +1 -0
  23. package/dist/{chunk-EPKIJEH7.js → chunk-C7V57V6O.js} +54 -8
  24. package/dist/chunk-C7V57V6O.js.map +1 -0
  25. package/dist/{chunk-CMZKAASF.cjs → chunk-EDXDFKYO.cjs} +16 -8
  26. package/dist/chunk-EDXDFKYO.cjs.map +1 -0
  27. package/dist/{chunk-FOPOOV2P.js → chunk-J2TT7PGI.js} +127 -23
  28. package/dist/chunk-J2TT7PGI.js.map +1 -0
  29. package/dist/{chunk-DO2DDHTQ.cjs → chunk-J3EPFZPX.cjs} +623 -8
  30. package/dist/chunk-J3EPFZPX.cjs.map +1 -0
  31. package/dist/{chunk-KCHUQXS3.js → chunk-JTGTWBAD.js} +2 -2
  32. package/dist/{chunk-KCHUQXS3.js.map → chunk-JTGTWBAD.js.map} +1 -1
  33. package/dist/{chunk-7DAIEDQP.js → chunk-MPCSWRZC.js} +75 -13
  34. package/dist/chunk-MPCSWRZC.js.map +1 -0
  35. package/dist/{chunk-3HZW6K5I.js → chunk-QZ2OBNAS.js} +14 -6
  36. package/dist/chunk-QZ2OBNAS.js.map +1 -0
  37. package/dist/{chunk-SUIDD2C5.cjs → chunk-SHMG7BVF.cjs} +54 -8
  38. package/dist/chunk-SHMG7BVF.cjs.map +1 -0
  39. package/dist/{chunk-XYHCAJMI.cjs → chunk-UHPGWO77.cjs} +75 -12
  40. package/dist/chunk-UHPGWO77.cjs.map +1 -0
  41. package/dist/{diagnostics-CSznf_sl.d.cts → diagnostics-BKRow1ur.d.cts} +14 -0
  42. package/dist/{diagnostics-CSznf_sl.d.ts → diagnostics-BKRow1ur.d.ts} +14 -0
  43. package/dist/diagrams/blockdiagram/index.cjs +5 -5
  44. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  45. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  46. package/dist/diagrams/blockdiagram/index.js +1 -1
  47. package/dist/diagrams/circuit/index.cjs +11 -7
  48. package/dist/diagrams/circuit/index.d.cts +4 -2
  49. package/dist/diagrams/circuit/index.d.ts +4 -2
  50. package/dist/diagrams/circuit/index.js +1 -1
  51. package/dist/diagrams/ecomap/index.d.cts +1 -1
  52. package/dist/diagrams/ecomap/index.d.ts +1 -1
  53. package/dist/diagrams/entity/index.d.cts +1 -1
  54. package/dist/diagrams/entity/index.d.ts +1 -1
  55. package/dist/diagrams/fishbone/index.d.cts +1 -1
  56. package/dist/diagrams/fishbone/index.d.ts +1 -1
  57. package/dist/diagrams/flowchart/index.d.cts +2 -2
  58. package/dist/diagrams/flowchart/index.d.ts +2 -2
  59. package/dist/diagrams/genogram/index.d.cts +1 -1
  60. package/dist/diagrams/genogram/index.d.ts +1 -1
  61. package/dist/diagrams/ladder/index.d.cts +1 -1
  62. package/dist/diagrams/ladder/index.d.ts +1 -1
  63. package/dist/diagrams/logic/index.d.cts +1 -1
  64. package/dist/diagrams/logic/index.d.ts +1 -1
  65. package/dist/diagrams/orgchart/index.cjs +10 -6
  66. package/dist/diagrams/orgchart/index.d.cts +27 -2
  67. package/dist/diagrams/orgchart/index.d.ts +27 -2
  68. package/dist/diagrams/orgchart/index.js +1 -1
  69. package/dist/diagrams/pedigree/index.d.cts +1 -1
  70. package/dist/diagrams/pedigree/index.d.ts +1 -1
  71. package/dist/diagrams/phylo/index.d.cts +1 -1
  72. package/dist/diagrams/phylo/index.d.ts +1 -1
  73. package/dist/diagrams/sld/index.cjs +7 -7
  74. package/dist/diagrams/sld/index.d.cts +1 -1
  75. package/dist/diagrams/sld/index.d.ts +1 -1
  76. package/dist/diagrams/sld/index.js +1 -1
  77. package/dist/diagrams/sociogram/index.d.cts +1 -1
  78. package/dist/diagrams/sociogram/index.d.ts +1 -1
  79. package/dist/diagrams/timing/index.d.cts +1 -1
  80. package/dist/diagrams/timing/index.d.ts +1 -1
  81. package/dist/diagrams/venn/index.d.cts +1 -1
  82. package/dist/diagrams/venn/index.d.ts +1 -1
  83. package/dist/{index-CDpYuU7l.d.cts → index-DU2h1Y-a.d.cts} +1 -1
  84. package/dist/{index-jTwjudTW.d.ts → index-Dq3Mfxay.d.ts} +1 -1
  85. package/dist/index.cjs +35 -35
  86. package/dist/index.d.cts +4 -4
  87. package/dist/index.d.ts +4 -4
  88. package/dist/index.js +8 -8
  89. package/dist/react.cjs +6 -6
  90. package/dist/react.d.cts +2 -2
  91. package/dist/react.d.ts +2 -2
  92. package/dist/react.js +5 -5
  93. package/dist/{tools-CbuSbW6B.d.cts → tools-A0HRZ8jj.d.ts} +11 -2
  94. package/dist/{tools-D344vOzR.d.ts → tools-OzOQnlnV.d.cts} +11 -2
  95. package/package.json +2 -2
  96. package/dist/chunk-3HZW6K5I.js.map +0 -1
  97. package/dist/chunk-7DAIEDQP.js.map +0 -1
  98. package/dist/chunk-CMZKAASF.cjs.map +0 -1
  99. package/dist/chunk-DO2DDHTQ.cjs.map +0 -1
  100. package/dist/chunk-EPKIJEH7.js.map +0 -1
  101. package/dist/chunk-FOPOOV2P.js.map +0 -1
  102. package/dist/chunk-KJZCRHNR.js.map +0 -1
  103. package/dist/chunk-MLLARXOI.cjs.map +0 -1
  104. package/dist/chunk-SUIDD2C5.cjs.map +0 -1
  105. package/dist/chunk-XYHCAJMI.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLLARXOI_cjs = require('./chunk-MLLARXOI.cjs');
4
- var chunkXYHCAJMI_cjs = require('./chunk-XYHCAJMI.cjs');
5
- var chunkDO2DDHTQ_cjs = require('./chunk-DO2DDHTQ.cjs');
6
- var chunkSUIDD2C5_cjs = require('./chunk-SUIDD2C5.cjs');
3
+ var chunkAGBY7KLL_cjs = require('./chunk-AGBY7KLL.cjs');
4
+ var chunkUHPGWO77_cjs = require('./chunk-UHPGWO77.cjs');
5
+ var chunkJ3EPFZPX_cjs = require('./chunk-J3EPFZPX.cjs');
6
+ var chunkSHMG7BVF_cjs = require('./chunk-SHMG7BVF.cjs');
7
7
  var chunkTACTEF2N_cjs = require('./chunk-TACTEF2N.cjs');
8
- var chunkEUVUO3CL_cjs = require('./chunk-EUVUO3CL.cjs');
8
+ var chunk34O3C6OC_cjs = require('./chunk-34O3C6OC.cjs');
9
9
  var chunk77GPD4YQ_cjs = require('./chunk-77GPD4YQ.cjs');
10
10
  var chunkT5KHNJ67_cjs = require('./chunk-T5KHNJ67.cjs');
11
11
  var chunkLPAWZYDU_cjs = require('./chunk-LPAWZYDU.cjs');
@@ -34,8 +34,8 @@ function svgDoc(viewBox, css, inner) {
34
34
  var CIRCUIT_CSS = ".schematex-circuit-body{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linejoin:round;stroke-linecap:round}.schematex-circuit-fill{stroke:#0f172a;stroke-width:1.5;fill:#0f172a}.schematex-circuit-wire{stroke:#0f172a;stroke-width:1.75;fill:none;stroke-linecap:square}";
35
35
  function circuitCatalog() {
36
36
  const merged = {
37
- ...chunkDO2DDHTQ_cjs.SYMBOLS,
38
- ...chunkDO2DDHTQ_cjs.EXTRA_SYMBOLS
37
+ ...chunkJ3EPFZPX_cjs.SYMBOLS,
38
+ ...chunkJ3EPFZPX_cjs.EXTRA_SYMBOLS
39
39
  };
40
40
  const out = [];
41
41
  for (const [id, def] of Object.entries(merged)) {
@@ -91,11 +91,11 @@ function sldCatalog() {
91
91
  for (const type of SLD_TYPES) {
92
92
  let inner;
93
93
  try {
94
- inner = chunkEUVUO3CL_cjs.renderSymbol(type);
94
+ inner = chunk34O3C6OC_cjs.renderSymbol(type);
95
95
  } catch {
96
96
  continue;
97
97
  }
98
- const g = chunkEUVUO3CL_cjs.geometryFor(type);
98
+ const g = chunk34O3C6OC_cjs.geometryFor(type);
99
99
  const w = Math.max(g.halfWidth, 18) + 12;
100
100
  const top = Math.min(g.topY, -22) - 8;
101
101
  const bot = Math.max(g.bottomY, 22) + 8;
@@ -111,10 +111,10 @@ var PID_CSS = ".lt-pid-equip{fill:#ffffff;stroke:#1d1d1d;stroke-width:1.6}.lt-pi
111
111
  function pidCatalog() {
112
112
  const out = [];
113
113
  const pad = 12;
114
- for (const [id, g] of Object.entries(chunkMLLARXOI_cjs.GEOMETRY)) {
114
+ for (const [id, g] of Object.entries(chunkAGBY7KLL_cjs.GEOMETRY)) {
115
115
  let inner;
116
116
  try {
117
- inner = chunkMLLARXOI_cjs.renderEquip(id, "");
117
+ inner = chunkAGBY7KLL_cjs.renderEquip(id, "");
118
118
  } catch {
119
119
  continue;
120
120
  }
@@ -224,11 +224,11 @@ var NETWORK_KINDS = [
224
224
  function networkCatalog() {
225
225
  const out = [];
226
226
  for (const kind of NETWORK_KINDS) {
227
- const { w, h } = chunkMLLARXOI_cjs.iconSize(kind);
227
+ const { w, h } = chunkAGBY7KLL_cjs.iconSize(kind);
228
228
  const device = { id: kind, kind, label: humanize(kind), groups: [] };
229
229
  let inner;
230
230
  try {
231
- inner = chunkMLLARXOI_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
231
+ inner = chunkAGBY7KLL_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
232
232
  } catch {
233
233
  continue;
234
234
  }
@@ -286,87 +286,87 @@ function getSymbolCatalog(type) {
286
286
 
287
287
  Object.defineProperty(exports, "bowtie", {
288
288
  enumerable: true,
289
- get: function () { return chunkMLLARXOI_cjs.bowtie; }
289
+ get: function () { return chunkAGBY7KLL_cjs.bowtie; }
290
290
  });
291
291
  Object.defineProperty(exports, "decisiontree", {
292
292
  enumerable: true,
293
- get: function () { return chunkMLLARXOI_cjs.decisiontree; }
293
+ get: function () { return chunkAGBY7KLL_cjs.decisiontree; }
294
294
  });
295
295
  Object.defineProperty(exports, "faulttree", {
296
296
  enumerable: true,
297
- get: function () { return chunkMLLARXOI_cjs.faulttree; }
297
+ get: function () { return chunkAGBY7KLL_cjs.faulttree; }
298
298
  });
299
299
  Object.defineProperty(exports, "network", {
300
300
  enumerable: true,
301
- get: function () { return chunkMLLARXOI_cjs.network; }
301
+ get: function () { return chunkAGBY7KLL_cjs.network; }
302
302
  });
303
303
  Object.defineProperty(exports, "parse", {
304
304
  enumerable: true,
305
- get: function () { return chunkMLLARXOI_cjs.parse; }
305
+ get: function () { return chunkAGBY7KLL_cjs.parse; }
306
306
  });
307
307
  Object.defineProperty(exports, "parseResult", {
308
308
  enumerable: true,
309
- get: function () { return chunkMLLARXOI_cjs.parseResult; }
309
+ get: function () { return chunkAGBY7KLL_cjs.parseResult; }
310
310
  });
311
311
  Object.defineProperty(exports, "pert", {
312
312
  enumerable: true,
313
- get: function () { return chunkMLLARXOI_cjs.pert; }
313
+ get: function () { return chunkAGBY7KLL_cjs.pert; }
314
314
  });
315
315
  Object.defineProperty(exports, "petri", {
316
316
  enumerable: true,
317
- get: function () { return chunkMLLARXOI_cjs.petri; }
317
+ get: function () { return chunkAGBY7KLL_cjs.petri; }
318
318
  });
319
319
  Object.defineProperty(exports, "pid", {
320
320
  enumerable: true,
321
- get: function () { return chunkMLLARXOI_cjs.pid; }
321
+ get: function () { return chunkAGBY7KLL_cjs.pid; }
322
322
  });
323
323
  Object.defineProperty(exports, "prisma", {
324
324
  enumerable: true,
325
- get: function () { return chunkMLLARXOI_cjs.prisma; }
325
+ get: function () { return chunkAGBY7KLL_cjs.prisma; }
326
326
  });
327
327
  Object.defineProperty(exports, "render", {
328
328
  enumerable: true,
329
- get: function () { return chunkMLLARXOI_cjs.render; }
329
+ get: function () { return chunkAGBY7KLL_cjs.render; }
330
330
  });
331
331
  Object.defineProperty(exports, "renderPreview", {
332
332
  enumerable: true,
333
- get: function () { return chunkMLLARXOI_cjs.renderPreview; }
333
+ get: function () { return chunkAGBY7KLL_cjs.renderPreview; }
334
334
  });
335
335
  Object.defineProperty(exports, "renderResult", {
336
336
  enumerable: true,
337
- get: function () { return chunkMLLARXOI_cjs.renderResult; }
337
+ get: function () { return chunkAGBY7KLL_cjs.renderResult; }
338
338
  });
339
339
  Object.defineProperty(exports, "sequence", {
340
340
  enumerable: true,
341
- get: function () { return chunkMLLARXOI_cjs.sequence; }
341
+ get: function () { return chunkAGBY7KLL_cjs.sequence; }
342
342
  });
343
343
  Object.defineProperty(exports, "state", {
344
344
  enumerable: true,
345
- get: function () { return chunkMLLARXOI_cjs.state; }
345
+ get: function () { return chunkAGBY7KLL_cjs.state; }
346
346
  });
347
347
  Object.defineProperty(exports, "timeline", {
348
348
  enumerable: true,
349
- get: function () { return chunkMLLARXOI_cjs.timeline; }
349
+ get: function () { return chunkAGBY7KLL_cjs.timeline; }
350
350
  });
351
351
  Object.defineProperty(exports, "umlclass", {
352
352
  enumerable: true,
353
- get: function () { return chunkMLLARXOI_cjs.umlclass; }
353
+ get: function () { return chunkAGBY7KLL_cjs.umlclass; }
354
354
  });
355
355
  Object.defineProperty(exports, "usecase", {
356
356
  enumerable: true,
357
- get: function () { return chunkMLLARXOI_cjs.usecase; }
357
+ get: function () { return chunkAGBY7KLL_cjs.usecase; }
358
358
  });
359
359
  Object.defineProperty(exports, "orgchart", {
360
360
  enumerable: true,
361
- get: function () { return chunkXYHCAJMI_cjs.orgchart; }
361
+ get: function () { return chunkUHPGWO77_cjs.orgchart; }
362
362
  });
363
363
  Object.defineProperty(exports, "circuit", {
364
364
  enumerable: true,
365
- get: function () { return chunkDO2DDHTQ_cjs.circuit; }
365
+ get: function () { return chunkJ3EPFZPX_cjs.circuit; }
366
366
  });
367
367
  Object.defineProperty(exports, "blockdiagram", {
368
368
  enumerable: true,
369
- get: function () { return chunkSUIDD2C5_cjs.blockdiagram; }
369
+ get: function () { return chunkSHMG7BVF_cjs.blockdiagram; }
370
370
  });
371
371
  Object.defineProperty(exports, "ladder", {
372
372
  enumerable: true,
@@ -374,7 +374,7 @@ Object.defineProperty(exports, "ladder", {
374
374
  });
375
375
  Object.defineProperty(exports, "sld", {
376
376
  enumerable: true,
377
- get: function () { return chunkEUVUO3CL_cjs.sld; }
377
+ get: function () { return chunk34O3C6OC_cjs.sld; }
378
378
  });
379
379
  Object.defineProperty(exports, "entity", {
380
380
  enumerable: true,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-DA4-U-jn.cjs';
2
- import { D as DiagramPlugin, a as DiagramType } from './diagnostics-CSznf_sl.cjs';
3
- export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-CSznf_sl.cjs';
1
+ export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-JaBtsUT8.cjs';
2
+ import { D as DiagramPlugin, a as DiagramType } from './diagnostics-BKRow1ur.cjs';
3
+ export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-BKRow1ur.cjs';
4
4
  export { genogram } from './diagrams/genogram/index.cjs';
5
5
  export { ecomap } from './diagrams/ecomap/index.cjs';
6
6
  export { pedigree } from './diagrams/pedigree/index.cjs';
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.cjs';
15
15
  export { entity } from './diagrams/entity/index.cjs';
16
16
  export { fishbone } from './diagrams/fishbone/index.cjs';
17
17
  export { venn } from './diagrams/venn/index.cjs';
18
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-CDpYuU7l.cjs';
18
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-DU2h1Y-a.cjs';
19
19
  export { orgchart } from './diagrams/orgchart/index.cjs';
20
20
 
21
21
  declare const decisiontree: DiagramPlugin;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-QFMTlIi7.js';
2
- import { D as DiagramPlugin, a as DiagramType } from './diagnostics-CSznf_sl.js';
3
- export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-CSznf_sl.js';
1
+ export { S as SchematexConfig, p as parse, a as parseResult, r as render, b as renderPreview, c as renderResult } from './api-DIJM_mqp.js';
2
+ import { D as DiagramPlugin, a as DiagramType } from './diagnostics-BKRow1ur.js';
3
+ export { S as SchematexDiagnostic, b as SchematexParseResult, c as SchematexRenderResult, d as SchematexResultStatus } from './diagnostics-BKRow1ur.js';
4
4
  export { genogram } from './diagrams/genogram/index.js';
5
5
  export { ecomap } from './diagrams/ecomap/index.js';
6
6
  export { pedigree } from './diagrams/pedigree/index.js';
@@ -15,7 +15,7 @@ export { sld } from './diagrams/sld/index.js';
15
15
  export { entity } from './diagrams/entity/index.js';
16
16
  export { fishbone } from './diagrams/fishbone/index.js';
17
17
  export { venn } from './diagrams/venn/index.js';
18
- export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-jTwjudTW.js';
18
+ export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, N as NETWORK_TOKENS, d as NetworkTokens, P as PERSON_TOKENS, e as PETRI_TOKENS, f as PersonTokens, g as PetriTokens, R as ResolvedTheme, T as ThemeName, h as TimelineTokens, V as VENN_TOKENS, i as VennTokens, j as flowchart, r as resolveBaseTheme, k as resolveBiologyTheme, l as resolveFishboneTheme, m as resolveGenogramTheme, n as resolveNetworkTheme, o as resolvePersonTheme, p as resolvePetriTheme, q as resolveTimelineTheme, s as resolveVennTheme } from './index-Dq3Mfxay.js';
19
19
  export { orgchart } from './diagrams/orgchart/index.js';
20
20
 
21
21
  declare const decisiontree: DiagramPlugin;
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-FOPOOV2P.js';
2
- export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-FOPOOV2P.js';
3
- export { orgchart } from './chunk-7DAIEDQP.js';
4
- import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-KJZCRHNR.js';
5
- export { circuit } from './chunk-KJZCRHNR.js';
6
- export { blockdiagram } from './chunk-EPKIJEH7.js';
1
+ import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-J2TT7PGI.js';
2
+ export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-J2TT7PGI.js';
3
+ export { orgchart } from './chunk-MPCSWRZC.js';
4
+ import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-2TUZ3QJA.js';
5
+ export { circuit } from './chunk-2TUZ3QJA.js';
6
+ export { blockdiagram } from './chunk-C7V57V6O.js';
7
7
  export { ladder } from './chunk-WU2N6ZVM.js';
8
- import { renderSymbol, geometryFor } from './chunk-KCHUQXS3.js';
9
- export { sld } from './chunk-KCHUQXS3.js';
8
+ import { renderSymbol, geometryFor } from './chunk-JTGTWBAD.js';
9
+ export { sld } from './chunk-JTGTWBAD.js';
10
10
  export { entity } from './chunk-YMZTXOUG.js';
11
11
  export { fishbone } from './chunk-YTGOLTLJ.js';
12
12
  export { venn } from './chunk-T3FV73LM.js';
package/dist/react.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkMLLARXOI_cjs = require('./chunk-MLLARXOI.cjs');
4
- require('./chunk-XYHCAJMI.cjs');
5
- require('./chunk-DO2DDHTQ.cjs');
6
- require('./chunk-SUIDD2C5.cjs');
3
+ var chunkAGBY7KLL_cjs = require('./chunk-AGBY7KLL.cjs');
4
+ require('./chunk-UHPGWO77.cjs');
5
+ require('./chunk-J3EPFZPX.cjs');
6
+ require('./chunk-SHMG7BVF.cjs');
7
7
  require('./chunk-TACTEF2N.cjs');
8
- require('./chunk-EUVUO3CL.cjs');
8
+ require('./chunk-34O3C6OC.cjs');
9
9
  require('./chunk-77GPD4YQ.cjs');
10
10
  require('./chunk-T5KHNJ67.cjs');
11
11
  require('./chunk-LPAWZYDU.cjs');
@@ -37,7 +37,7 @@ function SchematexDiagram({
37
37
  onError
38
38
  }) {
39
39
  const svg = react.useMemo(() => {
40
- const result = chunkMLLARXOI_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
40
+ const result = chunkAGBY7KLL_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
41
41
  if (!result.ok) {
42
42
  onError?.(new Error(result.diagnostics[0]?.message ?? "Schematex render failed"));
43
43
  }
package/dist/react.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SchematexConfig } from './api-DA4-U-jn.cjs';
3
- import './diagnostics-CSznf_sl.cjs';
2
+ import { S as SchematexConfig } from './api-JaBtsUT8.cjs';
3
+ import './diagnostics-BKRow1ur.cjs';
4
4
 
5
5
  interface SchematexDiagramProps {
6
6
  /** DSL text to render */
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { S as SchematexConfig } from './api-QFMTlIi7.js';
3
- import './diagnostics-CSznf_sl.js';
2
+ import { S as SchematexConfig } from './api-DIJM_mqp.js';
3
+ import './diagnostics-BKRow1ur.js';
4
4
 
5
5
  interface SchematexDiagramProps {
6
6
  /** DSL text to render */
package/dist/react.js CHANGED
@@ -1,9 +1,9 @@
1
- import { renderResult } from './chunk-FOPOOV2P.js';
2
- import './chunk-7DAIEDQP.js';
3
- import './chunk-KJZCRHNR.js';
4
- import './chunk-EPKIJEH7.js';
1
+ import { renderResult } from './chunk-J2TT7PGI.js';
2
+ import './chunk-MPCSWRZC.js';
3
+ import './chunk-2TUZ3QJA.js';
4
+ import './chunk-C7V57V6O.js';
5
5
  import './chunk-WU2N6ZVM.js';
6
- import './chunk-KCHUQXS3.js';
6
+ import './chunk-JTGTWBAD.js';
7
7
  import './chunk-YMZTXOUG.js';
8
8
  import './chunk-YTGOLTLJ.js';
9
9
  import './chunk-T3FV73LM.js';
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from './api-DA4-U-jn.cjs';
2
- import { a as DiagramType } from './diagnostics-CSznf_sl.cjs';
1
+ import { S as SchematexConfig } from './api-DIJM_mqp.js';
2
+ import { a as DiagramType } from './diagnostics-BKRow1ur.js';
3
3
 
4
4
  /**
5
5
  * Diagram registry — metadata for every diagram type Schematex supports.
@@ -138,9 +138,18 @@ declare function getExamples(type: string, opts?: GetExamplesOptions): GetExampl
138
138
  type ValidateDslResult = {
139
139
  ok: true;
140
140
  type: string | null;
141
+ /**
142
+ * `valid` = parsed cleanly; `partial` = parsed and renderable but the
143
+ * engine recovered from incomplete/incorrect input (see `warnings`). A
144
+ * `partial` result still renders — it is NOT a failure.
145
+ */
146
+ status: "valid" | "partial";
147
+ /** Non-fatal lint findings (empty when `status` is `valid`). */
148
+ warnings: SchematexValidationError[];
141
149
  } | {
142
150
  ok: false;
143
151
  type: string | null;
152
+ status: "invalid";
144
153
  errors: SchematexValidationError[];
145
154
  };
146
155
  declare function validateDsl(type: string | undefined, dsl: string): ValidateDslResult;
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from './api-QFMTlIi7.js';
2
- import { a as DiagramType } from './diagnostics-CSznf_sl.js';
1
+ import { S as SchematexConfig } from './api-JaBtsUT8.cjs';
2
+ import { a as DiagramType } from './diagnostics-BKRow1ur.cjs';
3
3
 
4
4
  /**
5
5
  * Diagram registry — metadata for every diagram type Schematex supports.
@@ -138,9 +138,18 @@ declare function getExamples(type: string, opts?: GetExamplesOptions): GetExampl
138
138
  type ValidateDslResult = {
139
139
  ok: true;
140
140
  type: string | null;
141
+ /**
142
+ * `valid` = parsed cleanly; `partial` = parsed and renderable but the
143
+ * engine recovered from incomplete/incorrect input (see `warnings`). A
144
+ * `partial` result still renders — it is NOT a failure.
145
+ */
146
+ status: "valid" | "partial";
147
+ /** Non-fatal lint findings (empty when `status` is `valid`). */
148
+ warnings: SchematexValidationError[];
141
149
  } | {
142
150
  ok: false;
143
151
  type: string | null;
152
+ status: "invalid";
144
153
  errors: SchematexValidationError[];
145
154
  };
146
155
  declare function validateDsl(type: string | undefined, dsl: string): ValidateDslResult;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "schematex",
3
- "version": "0.6.6",
4
- "description": "Every diagram a doctor, engineer, or lawyer would actually use. 31 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, FBD, SFC, P&ID, UML use case, UML sequence, PRISMA, phylo, fishbone, entity structure, ...) from a text DSL. Free, fully open source, made for AI. Pure SVG, zero dependencies.",
3
+ "version": "0.6.8",
4
+ "description": "Every diagram a doctor, engineer, or lawyer would actually use. 36 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, FBD, SFC, P&ID, UML class, UML use case, UML sequence, fault tree, bowtie, PRISMA, phylo, fishbone, entity structure, ...) from a text DSL. Free, fully open source, made for AI. Pure SVG, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",