schematex 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +24 -3
  2. package/dist/ai/ai-sdk.cjs +9 -9
  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 +4 -4
  6. package/dist/ai/index.cjs +12 -12
  7. package/dist/ai/index.d.cts +3 -3
  8. package/dist/ai/index.d.ts +3 -3
  9. package/dist/ai/index.js +4 -4
  10. package/dist/{api-BIj9t4Oc.d.cts → api-C5UcmT7n.d.cts} +1 -1
  11. package/dist/{api-BIj9t4Oc.d.ts → api-C5UcmT7n.d.ts} +1 -1
  12. package/dist/browser.cjs +6 -6
  13. package/dist/browser.d.cts +2 -2
  14. package/dist/browser.d.ts +2 -2
  15. package/dist/browser.js +4 -4
  16. package/dist/{chunk-SMXU3KYA.cjs → chunk-3YUUC6RN.cjs} +5115 -282
  17. package/dist/chunk-3YUUC6RN.cjs.map +1 -0
  18. package/dist/{chunk-KWQTF6ZL.js → chunk-GTDQAN2Z.js} +5110 -280
  19. package/dist/chunk-GTDQAN2Z.js.map +1 -0
  20. package/dist/{chunk-J7JWMQD5.js → chunk-HUPDIRBX.js} +119 -4
  21. package/dist/chunk-HUPDIRBX.js.map +1 -0
  22. package/dist/{chunk-UBTKM2TB.js → chunk-IM4RCUHA.js} +210 -22
  23. package/dist/chunk-IM4RCUHA.js.map +1 -0
  24. package/dist/{chunk-N3SLYVNW.cjs → chunk-NWPCY65Z.cjs} +212 -24
  25. package/dist/{chunk-UBTKM2TB.js.map → chunk-NWPCY65Z.cjs.map} +1 -1
  26. package/dist/{chunk-VITE3MZQ.cjs → chunk-QTNPMIO2.cjs} +99 -5
  27. package/dist/chunk-QTNPMIO2.cjs.map +1 -0
  28. package/dist/{chunk-6IGSKU6D.js → chunk-UFTYX73U.js} +99 -5
  29. package/dist/chunk-UFTYX73U.js.map +1 -0
  30. package/dist/{chunk-2Z543TC3.cjs → chunk-XRCY75UV.cjs} +119 -4
  31. package/dist/chunk-XRCY75UV.cjs.map +1 -0
  32. package/dist/diagrams/blockdiagram/index.d.cts +1 -1
  33. package/dist/diagrams/blockdiagram/index.d.ts +1 -1
  34. package/dist/diagrams/circuit/index.cjs +7 -7
  35. package/dist/diagrams/circuit/index.d.cts +1 -1
  36. package/dist/diagrams/circuit/index.d.ts +1 -1
  37. package/dist/diagrams/circuit/index.js +1 -1
  38. package/dist/diagrams/ecomap/index.d.cts +1 -1
  39. package/dist/diagrams/ecomap/index.d.ts +1 -1
  40. package/dist/diagrams/entity/index.d.cts +1 -1
  41. package/dist/diagrams/entity/index.d.ts +1 -1
  42. package/dist/diagrams/fishbone/index.d.cts +1 -1
  43. package/dist/diagrams/fishbone/index.d.ts +1 -1
  44. package/dist/diagrams/flowchart/index.cjs +7 -7
  45. package/dist/diagrams/flowchart/index.d.cts +2 -2
  46. package/dist/diagrams/flowchart/index.d.ts +2 -2
  47. package/dist/diagrams/flowchart/index.js +1 -1
  48. package/dist/diagrams/genogram/index.d.cts +1 -1
  49. package/dist/diagrams/genogram/index.d.ts +1 -1
  50. package/dist/diagrams/ladder/index.d.cts +1 -1
  51. package/dist/diagrams/ladder/index.d.ts +1 -1
  52. package/dist/diagrams/logic/index.d.cts +1 -1
  53. package/dist/diagrams/logic/index.d.ts +1 -1
  54. package/dist/diagrams/orgchart/index.d.cts +1 -1
  55. package/dist/diagrams/orgchart/index.d.ts +1 -1
  56. package/dist/diagrams/pedigree/index.d.cts +1 -1
  57. package/dist/diagrams/pedigree/index.d.ts +1 -1
  58. package/dist/diagrams/phylo/index.d.cts +1 -1
  59. package/dist/diagrams/phylo/index.d.ts +1 -1
  60. package/dist/diagrams/sld/index.d.cts +1 -1
  61. package/dist/diagrams/sld/index.d.ts +1 -1
  62. package/dist/diagrams/sociogram/index.d.cts +1 -1
  63. package/dist/diagrams/sociogram/index.d.ts +1 -1
  64. package/dist/diagrams/timing/index.d.cts +1 -1
  65. package/dist/diagrams/timing/index.d.ts +1 -1
  66. package/dist/diagrams/venn/index.d.cts +1 -1
  67. package/dist/diagrams/venn/index.d.ts +1 -1
  68. package/dist/{index-DYpJXJcy.d.cts → index-C9A0h-CB.d.cts} +1 -1
  69. package/dist/{index-BeUVaQiD.d.ts → index-CJai_TEZ.d.ts} +1 -1
  70. package/dist/index.cjs +23 -11
  71. package/dist/index.d.cts +10 -4
  72. package/dist/index.d.ts +10 -4
  73. package/dist/index.js +3 -3
  74. package/dist/react.cjs +4 -4
  75. package/dist/react.d.cts +1 -1
  76. package/dist/react.d.ts +1 -1
  77. package/dist/react.js +3 -3
  78. package/dist/{types-DKdo-Ua_.d.cts → types-BOAsqHoU.d.cts} +2 -2
  79. package/dist/{types-DKdo-Ua_.d.ts → types-BOAsqHoU.d.ts} +2 -2
  80. package/package.json +2 -2
  81. package/dist/chunk-2Z543TC3.cjs.map +0 -1
  82. package/dist/chunk-6IGSKU6D.js.map +0 -1
  83. package/dist/chunk-J7JWMQD5.js.map +0 -1
  84. package/dist/chunk-KWQTF6ZL.js.map +0 -1
  85. package/dist/chunk-N3SLYVNW.cjs.map +0 -1
  86. package/dist/chunk-SMXU3KYA.cjs.map +0 -1
  87. package/dist/chunk-VITE3MZQ.cjs.map +0 -1
package/README.md CHANGED
@@ -29,14 +29,15 @@
29
29
 
30
30
  ---
31
31
 
32
- **Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical. 27 diagram families across seven domains:
32
+ **Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical. 30 diagram families across nine domains:
33
33
 
34
34
  - 👪 **Relationships** — genograms, ecomaps, pedigrees, sociograms, phylogenetic trees
35
35
  - ⚡ **Electrical & Industrial** — ladder logic, single-line diagrams, circuit schematics, logic gates, timing, block diagrams, **FBD**, **SFC**, breadboard, **P&ID** (ISA-5.1)
36
36
  - 🏢 **Corporate & Legal** — entity structures, cap tables
37
37
  - 🐟 **Causality & Analysis** — fishbone / Ishikawa, decision trees (Howard-Raiffa EV · CART/sklearn · taxonomy)
38
- - 🔄 **Behavior modeling** — UML 2.5 / Harel **state diagrams** (Mermaid-compatible superset), **BPMN 2.0** (OMG)
38
+ - 🔄 **Behavior modeling** — UML 2.5 / Harel **state diagrams** (Mermaid-compatible superset), **BPMN 2.0** (OMG), **use case diagrams** (UML 2.5.1 §18)
39
39
  - 🗄️ **Data modeling** — ERD crow's-foot notation
40
+ - 🗓️ **Project management** — **PERT / CPM** networks (PMBOK 7) that *compute* the schedule: ES/EF/LS/LF, slack, critical path, three-point estimation, swimlanes, time-scaled layout
40
41
  - 📅 **Timelines** — proportional / equidistant / log axis · swimlane · gantt · lollipop · BC dates · geological Ma scale
41
42
 
42
43
  Mermaid draws generic flowcharts. Schematex draws the diagrams doctors, engineers, and lawyers actually use — a genogram a genetic counselor accepts clinically, ladder logic that maps 1:1 to IEC 61131-3, a cap table that survives a Series A review.
@@ -72,7 +73,7 @@ import { render } from 'schematex/genogram';
72
73
 
73
74
  ## Gallery
74
75
 
75
- 27 diagram types, one unified pipeline. **Try any of these live at [schematex.dev/playground](https://schematex.dev/playground).**
76
+ 30 diagram types, one unified pipeline. **Try any of these live at [schematex.dev/playground](https://schematex.dev/playground).**
76
77
 
77
78
  ### 👪 Genogram — *McGoldrick family-systems standard*
78
79
 
@@ -481,6 +482,26 @@ config: style = gantt
481
482
 
482
483
  [Timeline syntax →](https://schematex.dev/docs/timeline)
483
484
 
485
+ ### 🗓️ PERT / CPM — *PMI PMBOK 7 activity-on-node network*
486
+
487
+ The only text-DSL PERT tool that **computes the schedule**. You write tasks, durations, and dependencies — the engine runs the forward and backward pass and returns Early/Late Start & Finish, total slack, project duration, and the critical path (highlighted in red). Supports FS/SS/FF/SF dependencies with lag/lead, three-point estimation (`te + variance`), milestones, swimlanes (`lane:`), and a time-scaled layout.
488
+
489
+ ```
490
+ pert
491
+ title: "Q3 Product Launch"
492
+ unit: days
493
+
494
+ task A "Market research" duration: 5
495
+ task B "Design mockups" duration: 8 after: A
496
+ task C "Backend API" duration: 15 after: A
497
+ task D "Frontend build" duration: 10 after: B, C
498
+ task E "QA / testing" duration: 5 after: D
499
+ task F "Marketing collateral" duration: 7 after: B
500
+ task G "Launch event" duration: 2 after: E, F
501
+ ```
502
+
503
+ [PERT / CPM syntax →](https://schematex.dev/docs/pert)
504
+
484
505
  ## Why SchemaTex?
485
506
 
486
507
  **Generic flowchart tools can't draw professional diagrams.** Every diagram domain has published standards — symbol conventions, layout rules, labelling grammars — and when you ignore them, domain experts reject the output:
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkN3SLYVNW_cjs = require('../chunk-N3SLYVNW.cjs');
4
- require('../chunk-SMXU3KYA.cjs');
3
+ var chunkNWPCY65Z_cjs = require('../chunk-NWPCY65Z.cjs');
4
+ require('../chunk-3YUUC6RN.cjs');
5
5
  require('../chunk-QUKVGHN4.cjs');
6
- require('../chunk-2Z543TC3.cjs');
6
+ require('../chunk-XRCY75UV.cjs');
7
7
  require('../chunk-SUIDD2C5.cjs');
8
8
  require('../chunk-N7W5KZK7.cjs');
9
9
  require('../chunk-3M6WB62Y.cjs');
@@ -11,7 +11,7 @@ require('../chunk-SBB6C4OP.cjs');
11
11
  require('../chunk-RYVV5UVI.cjs');
12
12
  require('../chunk-VFZOPRQP.cjs');
13
13
  require('../chunk-BW4KGTV7.cjs');
14
- require('../chunk-VITE3MZQ.cjs');
14
+ require('../chunk-QTNPMIO2.cjs');
15
15
  require('../chunk-TZTCIAYW.cjs');
16
16
  require('../chunk-VZ5LDNHK.cjs');
17
17
  require('../chunk-EGSUMHCS.cjs');
@@ -31,7 +31,7 @@ var schematexTools = {
31
31
  listDiagrams: ai.tool({
32
32
  description: "List every Schematex diagram type with a tagline, 'use when' hint, domain cluster, and authoritative standard. Call this first to discover what's available.",
33
33
  inputSchema: zod.z.object({}),
34
- execute: async () => chunkN3SLYVNW_cjs.listDiagrams()
34
+ execute: async () => chunkNWPCY65Z_cjs.listDiagrams()
35
35
  }),
36
36
  getSyntax: ai.tool({
37
37
  description: "Return a compact syntax reference for one diagram type \u2014 rules, grammar (EBNF), and inline examples. Trimmed for LLM consumption (~2,000\u20134,000 tokens). Call after listDiagrams once you've chosen a type.",
@@ -40,7 +40,7 @@ var schematexTools = {
40
40
  "Diagram type id from listDiagrams (e.g. 'genogram', 'sld', 'fishbone')."
41
41
  )
42
42
  }),
43
- execute: async ({ type }) => chunkN3SLYVNW_cjs.getSyntax(type)
43
+ execute: async ({ type }) => chunkNWPCY65Z_cjs.getSyntax(type)
44
44
  }),
45
45
  getExamples: ai.tool({
46
46
  description: "Return curated real-world DSL examples for a diagram type, each with scenario notes and tags. Use as few-shot context before generating DSL.",
@@ -50,7 +50,7 @@ var schematexTools = {
50
50
  preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
51
51
  maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
52
52
  }),
53
- execute: async (args) => chunkN3SLYVNW_cjs.getExamples(args.type, {
53
+ execute: async (args) => chunkNWPCY65Z_cjs.getExamples(args.type, {
54
54
  limit: args.limit,
55
55
  preferFeatured: args.preferFeatured,
56
56
  maxComplexity: args.maxComplexity
@@ -64,7 +64,7 @@ var schematexTools = {
64
64
  ),
65
65
  dsl: zod.z.string().describe("The DSL source text to validate.")
66
66
  }),
67
- execute: async ({ type, dsl }) => chunkN3SLYVNW_cjs.validateDsl(type, dsl)
67
+ execute: async ({ type, dsl }) => chunkNWPCY65Z_cjs.validateDsl(type, dsl)
68
68
  }),
69
69
  renderDsl: ai.tool({
70
70
  description: "Render Schematex DSL to an SVG string. Returns { ok: true, svg } or { ok: false, errors }. Use when the caller needs the actual diagram output, not just validation.",
@@ -79,7 +79,7 @@ var schematexTools = {
79
79
  dsl,
80
80
  theme,
81
81
  padding
82
- }) => chunkN3SLYVNW_cjs.renderDsl(type, dsl, { theme, padding })
82
+ }) => chunkNWPCY65Z_cjs.renderDsl(type, dsl, { theme, padding })
83
83
  })
84
84
  };
85
85
 
@@ -1,7 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { DiagramListItem, GetSyntaxResult, GetExamplesResult, ValidateDslResult, RenderDslResult } from './index.cjs';
3
- import '../api-BIj9t4Oc.cjs';
4
- import '../types-DKdo-Ua_.cjs';
3
+ import '../api-C5UcmT7n.cjs';
4
+ import '../types-BOAsqHoU.cjs';
5
5
 
6
6
  declare const schematexTools: {
7
7
  readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
@@ -1,7 +1,7 @@
1
1
  import * as ai from 'ai';
2
2
  import { DiagramListItem, GetSyntaxResult, GetExamplesResult, ValidateDslResult, RenderDslResult } from './index.js';
3
- import '../api-BIj9t4Oc.js';
4
- import '../types-DKdo-Ua_.js';
3
+ import '../api-C5UcmT7n.js';
4
+ import '../types-BOAsqHoU.js';
5
5
 
6
6
  declare const schematexTools: {
7
7
  readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
package/dist/ai/ai-sdk.js CHANGED
@@ -1,7 +1,7 @@
1
- import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-UBTKM2TB.js';
2
- import '../chunk-KWQTF6ZL.js';
1
+ import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-IM4RCUHA.js';
2
+ import '../chunk-GTDQAN2Z.js';
3
3
  import '../chunk-I55HO32M.js';
4
- import '../chunk-J7JWMQD5.js';
4
+ import '../chunk-HUPDIRBX.js';
5
5
  import '../chunk-EPKIJEH7.js';
6
6
  import '../chunk-IBRW3UOA.js';
7
7
  import '../chunk-6OSUNBZY.js';
@@ -9,7 +9,7 @@ import '../chunk-PIV2A3HG.js';
9
9
  import '../chunk-SZK376QB.js';
10
10
  import '../chunk-3M6T7KB4.js';
11
11
  import '../chunk-L3CTXXVZ.js';
12
- import '../chunk-6IGSKU6D.js';
12
+ import '../chunk-UFTYX73U.js';
13
13
  import '../chunk-VJGMEGMR.js';
14
14
  import '../chunk-JHDR56XO.js';
15
15
  import '../chunk-ZL5RB4UV.js';
package/dist/ai/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkN3SLYVNW_cjs = require('../chunk-N3SLYVNW.cjs');
4
- require('../chunk-SMXU3KYA.cjs');
3
+ var chunkNWPCY65Z_cjs = require('../chunk-NWPCY65Z.cjs');
4
+ require('../chunk-3YUUC6RN.cjs');
5
5
  require('../chunk-QUKVGHN4.cjs');
6
- require('../chunk-2Z543TC3.cjs');
6
+ require('../chunk-XRCY75UV.cjs');
7
7
  require('../chunk-SUIDD2C5.cjs');
8
8
  require('../chunk-N7W5KZK7.cjs');
9
9
  require('../chunk-3M6WB62Y.cjs');
@@ -11,7 +11,7 @@ require('../chunk-SBB6C4OP.cjs');
11
11
  require('../chunk-RYVV5UVI.cjs');
12
12
  require('../chunk-VFZOPRQP.cjs');
13
13
  require('../chunk-BW4KGTV7.cjs');
14
- require('../chunk-VITE3MZQ.cjs');
14
+ require('../chunk-QTNPMIO2.cjs');
15
15
  require('../chunk-TZTCIAYW.cjs');
16
16
  require('../chunk-VZ5LDNHK.cjs');
17
17
  require('../chunk-EGSUMHCS.cjs');
@@ -29,35 +29,35 @@ require('../chunk-3WNW5Y7P.cjs');
29
29
 
30
30
  Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
31
31
  enumerable: true,
32
- get: function () { return chunkN3SLYVNW_cjs.DIAGRAM_REGISTRY; }
32
+ get: function () { return chunkNWPCY65Z_cjs.DIAGRAM_REGISTRY; }
33
33
  });
34
34
  Object.defineProperty(exports, "getAllDiagramTypes", {
35
35
  enumerable: true,
36
- get: function () { return chunkN3SLYVNW_cjs.getAllDiagramTypes; }
36
+ get: function () { return chunkNWPCY65Z_cjs.getAllDiagramTypes; }
37
37
  });
38
38
  Object.defineProperty(exports, "getDiagramMeta", {
39
39
  enumerable: true,
40
- get: function () { return chunkN3SLYVNW_cjs.getDiagramMeta; }
40
+ get: function () { return chunkNWPCY65Z_cjs.getDiagramMeta; }
41
41
  });
42
42
  Object.defineProperty(exports, "getExamples", {
43
43
  enumerable: true,
44
- get: function () { return chunkN3SLYVNW_cjs.getExamples; }
44
+ get: function () { return chunkNWPCY65Z_cjs.getExamples; }
45
45
  });
46
46
  Object.defineProperty(exports, "getSyntax", {
47
47
  enumerable: true,
48
- get: function () { return chunkN3SLYVNW_cjs.getSyntax; }
48
+ get: function () { return chunkNWPCY65Z_cjs.getSyntax; }
49
49
  });
50
50
  Object.defineProperty(exports, "listDiagrams", {
51
51
  enumerable: true,
52
- get: function () { return chunkN3SLYVNW_cjs.listDiagrams; }
52
+ get: function () { return chunkNWPCY65Z_cjs.listDiagrams; }
53
53
  });
54
54
  Object.defineProperty(exports, "renderDsl", {
55
55
  enumerable: true,
56
- get: function () { return chunkN3SLYVNW_cjs.renderDsl; }
56
+ get: function () { return chunkNWPCY65Z_cjs.renderDsl; }
57
57
  });
58
58
  Object.defineProperty(exports, "validateDsl", {
59
59
  enumerable: true,
60
- get: function () { return chunkN3SLYVNW_cjs.validateDsl; }
60
+ get: function () { return chunkNWPCY65Z_cjs.validateDsl; }
61
61
  });
62
62
  //# sourceMappingURL=index.cjs.map
63
63
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from '../api-BIj9t4Oc.cjs';
2
- import { q as DiagramType } from '../types-DKdo-Ua_.cjs';
1
+ import { S as SchematexConfig } from '../api-C5UcmT7n.cjs';
2
+ import { q as DiagramType } from '../types-BOAsqHoU.cjs';
3
3
 
4
4
  /**
5
5
  * Diagram registry — metadata for every diagram type Schematex supports.
@@ -8,7 +8,7 @@ import { q as DiagramType } from '../types-DKdo-Ua_.cjs';
8
8
  * are tuned to help the model pick the right type for a user request.
9
9
  */
10
10
 
11
- type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling";
11
+ type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling" | "research" | "project-management";
12
12
  interface DiagramMeta {
13
13
  /** Canonical type id — matches `DiagramType` and plugin keys. */
14
14
  type: DiagramType;
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from '../api-BIj9t4Oc.js';
2
- import { q as DiagramType } from '../types-DKdo-Ua_.js';
1
+ import { S as SchematexConfig } from '../api-C5UcmT7n.js';
2
+ import { q as DiagramType } from '../types-BOAsqHoU.js';
3
3
 
4
4
  /**
5
5
  * Diagram registry — metadata for every diagram type Schematex supports.
@@ -8,7 +8,7 @@ import { q as DiagramType } from '../types-DKdo-Ua_.js';
8
8
  * are tuned to help the model pick the right type for a user request.
9
9
  */
10
10
 
11
- type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling";
11
+ type DiagramCluster = "relationships" | "electrical-industrial" | "corporate-legal" | "causality-analysis" | "generic" | "strategy" | "knowledge" | "behavior-modeling" | "research" | "project-management";
12
12
  interface DiagramMeta {
13
13
  /** Canonical type id — matches `DiagramType` and plugin keys. */
14
14
  type: DiagramType;
package/dist/ai/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-UBTKM2TB.js';
2
- import '../chunk-KWQTF6ZL.js';
1
+ export { DIAGRAM_REGISTRY, getAllDiagramTypes, getDiagramMeta, getExamples, getSyntax, listDiagrams, renderDsl, validateDsl } from '../chunk-IM4RCUHA.js';
2
+ import '../chunk-GTDQAN2Z.js';
3
3
  import '../chunk-I55HO32M.js';
4
- import '../chunk-J7JWMQD5.js';
4
+ import '../chunk-HUPDIRBX.js';
5
5
  import '../chunk-EPKIJEH7.js';
6
6
  import '../chunk-IBRW3UOA.js';
7
7
  import '../chunk-6OSUNBZY.js';
@@ -9,7 +9,7 @@ import '../chunk-PIV2A3HG.js';
9
9
  import '../chunk-SZK376QB.js';
10
10
  import '../chunk-3M6T7KB4.js';
11
11
  import '../chunk-L3CTXXVZ.js';
12
- import '../chunk-6IGSKU6D.js';
12
+ import '../chunk-UFTYX73U.js';
13
13
  import '../chunk-VJGMEGMR.js';
14
14
  import '../chunk-JHDR56XO.js';
15
15
  import '../chunk-ZL5RB4UV.js';
@@ -1,5 +1,5 @@
1
1
  interface SchematexConfig {
2
- type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc";
2
+ type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert";
3
3
  width?: number;
4
4
  height?: number;
5
5
  padding?: number;
@@ -1,5 +1,5 @@
1
1
  interface SchematexConfig {
2
- type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc";
2
+ type?: "genogram" | "ecomap" | "pedigree" | "phylo" | "sociogram" | "timing" | "logic" | "circuit" | "blockdiagram" | "ladder" | "sld" | "entity" | "fishbone" | "venn" | "flowchart" | "mindmap" | "matrix" | "orgchart" | "decisiontree" | "timeline" | "state" | "pid" | "erd" | "breadboard" | "bpmn" | "fbd" | "sfc" | "prisma" | "usecase" | "pert";
3
3
  width?: number;
4
4
  height?: number;
5
5
  padding?: number;
package/dist/browser.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkSMXU3KYA_cjs = require('./chunk-SMXU3KYA.cjs');
3
+ var chunk3YUUC6RN_cjs = require('./chunk-3YUUC6RN.cjs');
4
4
  require('./chunk-QUKVGHN4.cjs');
5
- require('./chunk-2Z543TC3.cjs');
5
+ require('./chunk-XRCY75UV.cjs');
6
6
  require('./chunk-SUIDD2C5.cjs');
7
7
  require('./chunk-N7W5KZK7.cjs');
8
8
  require('./chunk-3M6WB62Y.cjs');
@@ -10,7 +10,7 @@ require('./chunk-SBB6C4OP.cjs');
10
10
  require('./chunk-RYVV5UVI.cjs');
11
11
  require('./chunk-VFZOPRQP.cjs');
12
12
  require('./chunk-BW4KGTV7.cjs');
13
- require('./chunk-VITE3MZQ.cjs');
13
+ require('./chunk-QTNPMIO2.cjs');
14
14
  require('./chunk-TZTCIAYW.cjs');
15
15
  require('./chunk-VZ5LDNHK.cjs');
16
16
  require('./chunk-EGSUMHCS.cjs');
@@ -26,7 +26,7 @@ require('./chunk-3WNW5Y7P.cjs');
26
26
 
27
27
  // src/browser.ts
28
28
  function renderToElement(text, config) {
29
- const svgString = chunkSMXU3KYA_cjs.render(text, config);
29
+ const svgString = chunk3YUUC6RN_cjs.render(text, config);
30
30
  const parser = new DOMParser();
31
31
  const doc = parser.parseFromString(svgString, "image/svg+xml");
32
32
  const el = doc.documentElement;
@@ -37,12 +37,12 @@ function renderToElement(text, config) {
37
37
  return el;
38
38
  }
39
39
  function renderToContainer(text, container, config) {
40
- container.innerHTML = chunkSMXU3KYA_cjs.render(text, config);
40
+ container.innerHTML = chunk3YUUC6RN_cjs.render(text, config);
41
41
  }
42
42
 
43
43
  Object.defineProperty(exports, "render", {
44
44
  enumerable: true,
45
- get: function () { return chunkSMXU3KYA_cjs.render; }
45
+ get: function () { return chunk3YUUC6RN_cjs.render; }
46
46
  });
47
47
  exports.renderToContainer = renderToContainer;
48
48
  exports.renderToElement = renderToElement;
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from './api-BIj9t4Oc.cjs';
2
- export { r as render } from './api-BIj9t4Oc.cjs';
1
+ import { S as SchematexConfig } from './api-C5UcmT7n.cjs';
2
+ export { r as render } from './api-C5UcmT7n.cjs';
3
3
 
4
4
  /**
5
5
  * Browser-specific utilities for Schematex.
package/dist/browser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SchematexConfig } from './api-BIj9t4Oc.js';
2
- export { r as render } from './api-BIj9t4Oc.js';
1
+ import { S as SchematexConfig } from './api-C5UcmT7n.js';
2
+ export { r as render } from './api-C5UcmT7n.js';
3
3
 
4
4
  /**
5
5
  * Browser-specific utilities for Schematex.
package/dist/browser.js CHANGED
@@ -1,7 +1,7 @@
1
- import { render } from './chunk-KWQTF6ZL.js';
2
- export { render } from './chunk-KWQTF6ZL.js';
1
+ import { render } from './chunk-GTDQAN2Z.js';
2
+ export { render } from './chunk-GTDQAN2Z.js';
3
3
  import './chunk-I55HO32M.js';
4
- import './chunk-J7JWMQD5.js';
4
+ import './chunk-HUPDIRBX.js';
5
5
  import './chunk-EPKIJEH7.js';
6
6
  import './chunk-IBRW3UOA.js';
7
7
  import './chunk-6OSUNBZY.js';
@@ -9,7 +9,7 @@ import './chunk-PIV2A3HG.js';
9
9
  import './chunk-SZK376QB.js';
10
10
  import './chunk-3M6T7KB4.js';
11
11
  import './chunk-L3CTXXVZ.js';
12
- import './chunk-6IGSKU6D.js';
12
+ import './chunk-UFTYX73U.js';
13
13
  import './chunk-VJGMEGMR.js';
14
14
  import './chunk-JHDR56XO.js';
15
15
  import './chunk-ZL5RB4UV.js';