schematex 0.9.6 → 0.9.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.
- package/README.md +43 -3
- package/dist/ai/ai-sdk.cjs +23 -23
- package/dist/ai/ai-sdk.d.cts +3 -3
- package/dist/ai/ai-sdk.d.ts +3 -3
- package/dist/ai/ai-sdk.js +18 -18
- package/dist/ai/index.cjs +32 -32
- package/dist/ai/index.d.cts +4 -4
- package/dist/ai/index.d.ts +4 -4
- package/dist/ai/index.js +19 -19
- package/dist/{api-BOJJlNb1.d.ts → api-D_d-JklT.d.ts} +1 -1
- package/dist/{api-v9t1T1v6.d.cts → api-DnTyW-6F.d.cts} +1 -1
- package/dist/browser.cjs +24 -24
- package/dist/browser.d.cts +3 -3
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +18 -18
- package/dist/{chunk-6QZQTASC.cjs → chunk-246OJILS.cjs} +12 -12
- package/dist/{chunk-6QZQTASC.cjs.map → chunk-246OJILS.cjs.map} +1 -1
- package/dist/{chunk-JEMAOC2D.js → chunk-2IRYXK4M.js} +3 -3
- package/dist/{chunk-JEMAOC2D.js.map → chunk-2IRYXK4M.js.map} +1 -1
- package/dist/{chunk-HX64QWB6.cjs → chunk-2LVU75P3.cjs} +175 -11
- package/dist/chunk-2LVU75P3.cjs.map +1 -0
- package/dist/{chunk-CVTHUOAM.js → chunk-33BFUEYU.js} +173 -9
- package/dist/chunk-33BFUEYU.js.map +1 -0
- package/dist/{chunk-ITI3STJ6.cjs → chunk-3JN4762U.cjs} +4 -4
- package/dist/{chunk-ITI3STJ6.cjs.map → chunk-3JN4762U.cjs.map} +1 -1
- package/dist/{chunk-GAQ36VFD.cjs → chunk-4MANMKQ4.cjs} +4 -4
- package/dist/{chunk-GAQ36VFD.cjs.map → chunk-4MANMKQ4.cjs.map} +1 -1
- package/dist/{chunk-4W75FGWO.js → chunk-4QLIFOKH.js} +1877 -568
- package/dist/chunk-4QLIFOKH.js.map +1 -0
- package/dist/{chunk-64LABNTF.js → chunk-7NO5LYLL.js} +3 -3
- package/dist/{chunk-64LABNTF.js.map → chunk-7NO5LYLL.js.map} +1 -1
- package/dist/{chunk-ENUM7GMZ.cjs → chunk-7OOUU6BL.cjs} +147 -2
- package/dist/chunk-7OOUU6BL.cjs.map +1 -0
- package/dist/{chunk-M26ORU4P.js → chunk-AETIGJXP.js} +3 -3
- package/dist/{chunk-M26ORU4P.js.map → chunk-AETIGJXP.js.map} +1 -1
- package/dist/{chunk-KH5GRKUM.cjs → chunk-BEPVTFXK.cjs} +2080 -770
- package/dist/chunk-BEPVTFXK.cjs.map +1 -0
- package/dist/{chunk-OJ3P4IC4.cjs → chunk-DLXDR2E7.cjs} +4 -4
- package/dist/{chunk-OJ3P4IC4.cjs.map → chunk-DLXDR2E7.cjs.map} +1 -1
- package/dist/{chunk-3J4DZPZC.js → chunk-EB7T5SEO.js} +3 -3
- package/dist/{chunk-3J4DZPZC.js.map → chunk-EB7T5SEO.js.map} +1 -1
- package/dist/{chunk-VY6UZYYL.cjs → chunk-F5RYWDWO.cjs} +15 -15
- package/dist/{chunk-VY6UZYYL.cjs.map → chunk-F5RYWDWO.cjs.map} +1 -1
- package/dist/{chunk-INVLJYAE.cjs → chunk-GTCGATOL.cjs} +4 -4
- package/dist/{chunk-INVLJYAE.cjs.map → chunk-GTCGATOL.cjs.map} +1 -1
- package/dist/{chunk-ZCHGIWJK.js → chunk-HIWJMJJB.js} +3 -3
- package/dist/{chunk-ZCHGIWJK.js.map → chunk-HIWJMJJB.js.map} +1 -1
- package/dist/{chunk-RDYACU2G.js → chunk-IHX6J4HF.js} +3 -3
- package/dist/{chunk-RDYACU2G.js.map → chunk-IHX6J4HF.js.map} +1 -1
- package/dist/{chunk-4MRVJI7G.js → chunk-JVNV2T2T.js} +147 -3
- package/dist/chunk-JVNV2T2T.js.map +1 -0
- package/dist/{chunk-SXOAAQNY.js → chunk-KUSW5I2P.js} +3 -3
- package/dist/{chunk-SXOAAQNY.js.map → chunk-KUSW5I2P.js.map} +1 -1
- package/dist/{chunk-35NGXDT2.cjs → chunk-KYE7CRED.cjs} +12 -12
- package/dist/{chunk-35NGXDT2.cjs.map → chunk-KYE7CRED.cjs.map} +1 -1
- package/dist/{chunk-II4GLKGF.js → chunk-MVTYPWHO.js} +3 -3
- package/dist/chunk-MVTYPWHO.js.map +1 -0
- package/dist/{chunk-N3HU635X.cjs → chunk-MXV3XJFH.cjs} +4 -4
- package/dist/chunk-MXV3XJFH.cjs.map +1 -0
- package/dist/{chunk-XCCXG6RR.js → chunk-NB7MFQCZ.js} +3 -3
- package/dist/{chunk-XCCXG6RR.js.map → chunk-NB7MFQCZ.js.map} +1 -1
- package/dist/{chunk-GYYYULBL.js → chunk-NP7N3DZG.js} +3 -3
- package/dist/{chunk-GYYYULBL.js.map → chunk-NP7N3DZG.js.map} +1 -1
- package/dist/{chunk-3PH2MQGN.js → chunk-P4U565XH.js} +3 -3
- package/dist/{chunk-3PH2MQGN.js.map → chunk-P4U565XH.js.map} +1 -1
- package/dist/{chunk-VYQXB2RC.cjs → chunk-QC2RICQ4.cjs} +12 -12
- package/dist/{chunk-VYQXB2RC.cjs.map → chunk-QC2RICQ4.cjs.map} +1 -1
- package/dist/{chunk-3WX24RCH.js → chunk-QMJHLDGY.js} +3 -3
- package/dist/{chunk-3WX24RCH.js.map → chunk-QMJHLDGY.js.map} +1 -1
- package/dist/{chunk-C4Y24X3U.cjs → chunk-T55OQILI.cjs} +4 -4
- package/dist/{chunk-C4Y24X3U.cjs.map → chunk-T55OQILI.cjs.map} +1 -1
- package/dist/{chunk-6ZD7TCWO.cjs → chunk-TFUVNQNA.cjs} +15 -15
- package/dist/{chunk-6ZD7TCWO.cjs.map → chunk-TFUVNQNA.cjs.map} +1 -1
- package/dist/{chunk-4AC6I7KJ.cjs → chunk-TXWVJAMR.cjs} +4 -4
- package/dist/{chunk-4AC6I7KJ.cjs.map → chunk-TXWVJAMR.cjs.map} +1 -1
- package/dist/{chunk-4OC3CTGE.cjs → chunk-UHRNFBWY.cjs} +4 -4
- package/dist/{chunk-4OC3CTGE.cjs.map → chunk-UHRNFBWY.cjs.map} +1 -1
- package/dist/{chunk-B4CMWA6Y.js → chunk-W4UVDMUC.js} +3 -3
- package/dist/{chunk-B4CMWA6Y.js.map → chunk-W4UVDMUC.js.map} +1 -1
- package/dist/{chunk-5ZQRHDMQ.cjs → chunk-YDEQZSPQ.cjs} +4 -4
- package/dist/{chunk-5ZQRHDMQ.cjs.map → chunk-YDEQZSPQ.cjs.map} +1 -1
- package/dist/{chunk-627GHE2N.cjs → chunk-YFPDZVB7.cjs} +5 -5
- package/dist/{chunk-627GHE2N.cjs.map → chunk-YFPDZVB7.cjs.map} +1 -1
- package/dist/{chunk-NKYR4PAS.js → chunk-YXEPF3SL.js} +3 -3
- package/dist/{chunk-NKYR4PAS.js.map → chunk-YXEPF3SL.js.map} +1 -1
- package/dist/{chunk-AXMBXAEA.js → chunk-ZRFKIERV.js} +3 -3
- package/dist/{chunk-AXMBXAEA.js.map → chunk-ZRFKIERV.js.map} +1 -1
- package/dist/{diagnostics-5bVLlGNj.d.cts → diagnostics-D2qkBfFx.d.cts} +1 -1
- package/dist/{diagnostics-5bVLlGNj.d.ts → diagnostics-D2qkBfFx.d.ts} +1 -1
- package/dist/diagrams/blockdiagram/index.cjs +6 -6
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/blockdiagram/index.js +2 -2
- package/dist/diagrams/circuit/index.cjs +9 -9
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/circuit/index.js +2 -2
- package/dist/diagrams/ecomap/index.cjs +7 -7
- package/dist/diagrams/ecomap/index.d.cts +1 -1
- package/dist/diagrams/ecomap/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.js +2 -2
- package/dist/diagrams/entity/index.cjs +6 -6
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/entity/index.js +2 -2
- package/dist/diagrams/fishbone/index.cjs +8 -8
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.js +2 -2
- package/dist/diagrams/flowchart/index.cjs +8 -8
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +2 -2
- package/dist/diagrams/genogram/index.cjs +9 -9
- package/dist/diagrams/genogram/index.d.cts +1 -1
- package/dist/diagrams/genogram/index.d.ts +1 -1
- package/dist/diagrams/genogram/index.js +2 -2
- package/dist/diagrams/ladder/index.cjs +6 -6
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.js +2 -2
- package/dist/diagrams/logic/index.cjs +8 -8
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/logic/index.js +2 -2
- package/dist/diagrams/orgchart/index.cjs +8 -8
- package/dist/diagrams/orgchart/index.d.cts +1 -1
- package/dist/diagrams/orgchart/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.js +2 -2
- package/dist/diagrams/pedigree/index.cjs +7 -7
- package/dist/diagrams/pedigree/index.d.cts +1 -1
- package/dist/diagrams/pedigree/index.d.ts +1 -1
- package/dist/diagrams/pedigree/index.js +2 -2
- package/dist/diagrams/phylo/index.cjs +7 -7
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/phylo/index.js +2 -2
- package/dist/diagrams/sld/index.cjs +8 -8
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +2 -2
- package/dist/diagrams/sociogram/index.cjs +6 -6
- package/dist/diagrams/sociogram/index.d.cts +1 -1
- package/dist/diagrams/sociogram/index.d.ts +1 -1
- package/dist/diagrams/sociogram/index.js +2 -2
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/venn/index.cjs +9 -9
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/diagrams/venn/index.js +2 -2
- package/dist/{index-syc0E5Ss.d.ts → index-D9u0YRxL.d.ts} +1 -1
- package/dist/{index-Cmf4Rcve.d.cts → index-JZlLiE6K.d.cts} +1 -1
- package/dist/index.cjs +91 -87
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +22 -22
- package/dist/react.cjs +18 -18
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +17 -17
- package/dist/{tools-B98iarLm.d.cts → tools-DAKYNcPv.d.cts} +2 -2
- package/dist/{tools-CCZ1IcIN.d.ts → tools-DM0aLCbc.d.ts} +2 -2
- package/package.json +3 -1
- package/dist/chunk-4MRVJI7G.js.map +0 -1
- package/dist/chunk-4W75FGWO.js.map +0 -1
- package/dist/chunk-CVTHUOAM.js.map +0 -1
- package/dist/chunk-ENUM7GMZ.cjs.map +0 -1
- package/dist/chunk-HX64QWB6.cjs.map +0 -1
- package/dist/chunk-II4GLKGF.js.map +0 -1
- package/dist/chunk-KH5GRKUM.cjs.map +0 -1
- package/dist/chunk-N3HU635X.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
36
|
-
**Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical. **
|
|
36
|
+
**Schematex** is the open-source rendering engine for the diagrams professionals actually use — medical, electrical, legal, and analytical. **49 diagram families** spanning medicine, engineering, law, and analysis:
|
|
37
37
|
|
|
38
38
|
- 👪 **Relationships** — genograms, ecomaps, pedigrees, sociograms, phylogenetic trees
|
|
39
39
|
- ⚡ **Electrical & Industrial** — ladder logic, single-line diagrams, circuit schematics, logic gates, timing, block diagrams, **FBD**, **SFC**, breadboard, **P&ID** (ISA-5.1)
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
- ◉ **Concurrency** — **Petri nets** (Murata 1989 / ISO-IEC 15909) that *compute* enablement and fire token sequences
|
|
48
48
|
- 🔬 **Research** — **PRISMA 2020** systematic-review flow diagrams
|
|
49
49
|
- 📅 **Timelines** — proportional / equidistant / log axis · swimlane · gantt · lollipop · BC dates · geological Ma scale
|
|
50
|
-
- 🧠 **Knowledge & strategy** — mindmaps, 2×2 / N×M matrices, flowcharts
|
|
50
|
+
- 🧠 **Knowledge & strategy** — mindmaps, 2×2 / N×M matrices, flowcharts, **comparison & decision matrices** (Pugh / ASQ weighted scoring that *computes* the winner · pros-cons · T-chart / Y-chart · Thinking-Maps double-bubble)
|
|
51
51
|
|
|
52
52
|
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.
|
|
53
53
|
|
|
@@ -82,7 +82,7 @@ import { render } from 'schematex/genogram';
|
|
|
82
82
|
|
|
83
83
|
## Gallery
|
|
84
84
|
|
|
85
|
-
All
|
|
85
|
+
All 49 diagram types share one unified pipeline. A selection is shown below — **try any of them live at [schematex.dev/playground](https://schematex.dev/playground).**
|
|
86
86
|
|
|
87
87
|
### 👪 Genogram — *McGoldrick family-systems standard*
|
|
88
88
|
|
|
@@ -756,6 +756,46 @@ pass 1 2
|
|
|
756
756
|
|
|
757
757
|
[Sports playbook syntax →](https://schematex.dev/docs/playbook)
|
|
758
758
|
|
|
759
|
+
### 🧭 Comparison & decision matrix — *Pugh 1991 controlled convergence · ASQ weighted scoring · Thinking Maps*
|
|
760
|
+
|
|
761
|
+
One engine for the whole "put options side by side and decide" family — five modes selected with `mode:`. The flagship is **`decision` (alias `pugh`)**: criteria carry a `weight:`, each option a numeric score, and the **engine computes** every option's weighted total Σ(weight × score), ranks them, highlights the winner, and shows **vs-datum** deltas against an optional `baseline:`. You never type the totals — getting one score wrong changes the computed winner. The same *"engine computes the answer"* stance as PERT (schedule), Fault Tree (cut sets), and RBD (system reliability). The other modes — **`matrix`** (options × criteria grid with ✓/✗/~ marks), **`tchart`/`ychart`** (compare/contrast column cards), **`pros-cons`** (green ✓ / red ✗ valence), and **`double-bubble`** (Thinking-Maps compare/contrast with unique traits fanned radially around each centre) — share the same parser and theme. Explicitly distinct from `matrix` (§18, the 2×2 / BCG quadrant *positioning* engine): this one lays out a **table** and computes the decision.
|
|
762
|
+
|
|
763
|
+
```
|
|
764
|
+
comparison "Selecting a CI/CD platform"
|
|
765
|
+
mode: decision
|
|
766
|
+
baseline: "Jenkins"
|
|
767
|
+
option "GitHub Actions"
|
|
768
|
+
option "GitLab CI"
|
|
769
|
+
option "CircleCI"
|
|
770
|
+
option "Jenkins"
|
|
771
|
+
criterion "Ease of setup" weight: 5
|
|
772
|
+
GitHub Actions: 5
|
|
773
|
+
GitLab CI: 4
|
|
774
|
+
CircleCI: 4
|
|
775
|
+
Jenkins: 2
|
|
776
|
+
criterion "Build speed" weight: 4
|
|
777
|
+
GitHub Actions: 4
|
|
778
|
+
GitLab CI: 4
|
|
779
|
+
CircleCI: 5
|
|
780
|
+
Jenkins: 3
|
|
781
|
+
criterion "Cost at our scale" weight: 4
|
|
782
|
+
GitHub Actions: 4
|
|
783
|
+
GitLab CI: 3
|
|
784
|
+
CircleCI: 3
|
|
785
|
+
Jenkins: 5
|
|
786
|
+
criterion "Self-host control" weight: 2
|
|
787
|
+
GitHub Actions: 2
|
|
788
|
+
GitLab CI: 5
|
|
789
|
+
CircleCI: 2
|
|
790
|
+
Jenkins: 5
|
|
791
|
+
```
|
|
792
|
+
|
|
793
|
+

|
|
794
|
+

|
|
795
|
+

|
|
796
|
+
|
|
797
|
+
[Comparison syntax →](https://schematex.dev/docs/comparison)
|
|
798
|
+
|
|
759
799
|
## Why SchemaTex?
|
|
760
800
|
|
|
761
801
|
**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:
|
package/dist/ai/ai-sdk.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
3
|
+
var chunk2LVU75P3_cjs = require('../chunk-2LVU75P3.cjs');
|
|
4
|
+
require('../chunk-BEPVTFXK.cjs');
|
|
5
|
+
require('../chunk-UHRNFBWY.cjs');
|
|
6
|
+
require('../chunk-TXWVJAMR.cjs');
|
|
7
|
+
require('../chunk-T55OQILI.cjs');
|
|
8
|
+
require('../chunk-GTCGATOL.cjs');
|
|
9
|
+
require('../chunk-MXV3XJFH.cjs');
|
|
10
|
+
require('../chunk-4MANMKQ4.cjs');
|
|
11
|
+
require('../chunk-YFPDZVB7.cjs');
|
|
12
|
+
require('../chunk-3JN4762U.cjs');
|
|
13
|
+
require('../chunk-DLXDR2E7.cjs');
|
|
14
|
+
require('../chunk-F5RYWDWO.cjs');
|
|
15
|
+
require('../chunk-QC2RICQ4.cjs');
|
|
16
|
+
require('../chunk-246OJILS.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-TFUVNQNA.cjs');
|
|
19
|
+
require('../chunk-KYE7CRED.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
21
|
require('../chunk-JHJJT5H5.cjs');
|
|
22
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-YDEQZSPQ.cjs');
|
|
23
23
|
require('../chunk-SBB6C4OP.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-7OOUU6BL.cjs');
|
|
25
25
|
require('../chunk-VHDSPI6A.cjs');
|
|
26
26
|
require('../chunk-3WNW5Y7P.cjs');
|
|
27
27
|
var ai = require('ai');
|
|
@@ -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 () =>
|
|
34
|
+
execute: async () => chunk2LVU75P3_cjs.listDiagrams()
|
|
35
35
|
}),
|
|
36
36
|
getSyntax: ai.tool({
|
|
37
37
|
description: "Return syntax for one diagram type. Default `detail: canonical` is the compact first-shot generation path: canonical header, preferred forms, rules, and repair checks. Request `detail: reference` only for advanced forms or imported adapters after choosing a type.",
|
|
@@ -46,7 +46,7 @@ var schematexTools = {
|
|
|
46
46
|
execute: async ({
|
|
47
47
|
type,
|
|
48
48
|
detail
|
|
49
|
-
}) =>
|
|
49
|
+
}) => chunk2LVU75P3_cjs.getSyntax(type, { detail })
|
|
50
50
|
}),
|
|
51
51
|
getExamples: ai.tool({
|
|
52
52
|
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.",
|
|
@@ -56,7 +56,7 @@ var schematexTools = {
|
|
|
56
56
|
preferFeatured: zod.z.boolean().optional().describe("Rank featured examples first."),
|
|
57
57
|
maxComplexity: zod.z.number().int().min(1).max(5).optional().describe("Only return examples with complexity <= this value (1=simplest).")
|
|
58
58
|
}),
|
|
59
|
-
execute: async (args) =>
|
|
59
|
+
execute: async (args) => chunk2LVU75P3_cjs.getExamples(args.type, {
|
|
60
60
|
limit: args.limit,
|
|
61
61
|
preferFeatured: args.preferFeatured,
|
|
62
62
|
maxComplexity: args.maxComplexity
|
|
@@ -70,7 +70,7 @@ var schematexTools = {
|
|
|
70
70
|
),
|
|
71
71
|
dsl: zod.z.string().describe("The DSL source text to validate.")
|
|
72
72
|
}),
|
|
73
|
-
execute: async ({ type, dsl }) =>
|
|
73
|
+
execute: async ({ type, dsl }) => chunk2LVU75P3_cjs.validateDsl(type, dsl)
|
|
74
74
|
}),
|
|
75
75
|
renderDsl: ai.tool({
|
|
76
76
|
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.",
|
|
@@ -85,7 +85,7 @@ var schematexTools = {
|
|
|
85
85
|
dsl,
|
|
86
86
|
theme,
|
|
87
87
|
padding
|
|
88
|
-
}) =>
|
|
88
|
+
}) => chunk2LVU75P3_cjs.renderDsl(type, dsl, { theme, padding })
|
|
89
89
|
})
|
|
90
90
|
};
|
|
91
91
|
|
package/dist/ai/ai-sdk.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-DAKYNcPv.cjs';
|
|
3
|
+
import '../api-DnTyW-6F.cjs';
|
|
4
|
+
import '../diagnostics-D2qkBfFx.cjs';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
|
-
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-
|
|
3
|
-
import '../api-
|
|
4
|
-
import '../diagnostics-
|
|
2
|
+
import { c as DiagramListItem, g as GetSyntaxResult, e as GetExamplesResult, V as ValidateDslResult, R as RenderDslResult } from '../tools-DM0aLCbc.js';
|
|
3
|
+
import '../api-D_d-JklT.js';
|
|
4
|
+
import '../diagnostics-D2qkBfFx.js';
|
|
5
5
|
|
|
6
6
|
declare const schematexTools: {
|
|
7
7
|
readonly listDiagrams: ai.Tool<{}, DiagramListItem[]>;
|
package/dist/ai/ai-sdk.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
1
|
+
import { renderDsl, validateDsl, getExamples, getSyntax, listDiagrams } from '../chunk-33BFUEYU.js';
|
|
2
|
+
import '../chunk-4QLIFOKH.js';
|
|
3
|
+
import '../chunk-EB7T5SEO.js';
|
|
4
|
+
import '../chunk-IHX6J4HF.js';
|
|
5
|
+
import '../chunk-P4U565XH.js';
|
|
6
|
+
import '../chunk-W4UVDMUC.js';
|
|
7
|
+
import '../chunk-MVTYPWHO.js';
|
|
8
|
+
import '../chunk-2IRYXK4M.js';
|
|
9
|
+
import '../chunk-NP7N3DZG.js';
|
|
10
|
+
import '../chunk-KUSW5I2P.js';
|
|
11
|
+
import '../chunk-ZRFKIERV.js';
|
|
12
|
+
import '../chunk-AETIGJXP.js';
|
|
13
|
+
import '../chunk-NB7MFQCZ.js';
|
|
14
|
+
import '../chunk-HIWJMJJB.js';
|
|
15
15
|
import '../chunk-2KTQ75LN.js';
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-QMJHLDGY.js';
|
|
17
|
+
import '../chunk-7NO5LYLL.js';
|
|
18
18
|
import '../chunk-FO7BLCEW.js';
|
|
19
19
|
import '../chunk-MTIZIHWE.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-YXEPF3SL.js';
|
|
21
21
|
import '../chunk-PIV2A3HG.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-JVNV2T2T.js';
|
|
23
23
|
import '../chunk-TO6PNBT3.js';
|
|
24
24
|
import '../chunk-SYYBKDL7.js';
|
|
25
25
|
import { tool } from 'ai';
|
package/dist/ai/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
13
|
-
require('../chunk-
|
|
14
|
-
require('../chunk-
|
|
15
|
-
require('../chunk-
|
|
16
|
-
require('../chunk-
|
|
3
|
+
var chunk2LVU75P3_cjs = require('../chunk-2LVU75P3.cjs');
|
|
4
|
+
require('../chunk-BEPVTFXK.cjs');
|
|
5
|
+
require('../chunk-UHRNFBWY.cjs');
|
|
6
|
+
require('../chunk-TXWVJAMR.cjs');
|
|
7
|
+
require('../chunk-T55OQILI.cjs');
|
|
8
|
+
require('../chunk-GTCGATOL.cjs');
|
|
9
|
+
require('../chunk-MXV3XJFH.cjs');
|
|
10
|
+
require('../chunk-4MANMKQ4.cjs');
|
|
11
|
+
require('../chunk-YFPDZVB7.cjs');
|
|
12
|
+
require('../chunk-3JN4762U.cjs');
|
|
13
|
+
require('../chunk-DLXDR2E7.cjs');
|
|
14
|
+
require('../chunk-F5RYWDWO.cjs');
|
|
15
|
+
require('../chunk-QC2RICQ4.cjs');
|
|
16
|
+
require('../chunk-246OJILS.cjs');
|
|
17
17
|
require('../chunk-3KRL2EGN.cjs');
|
|
18
|
-
require('../chunk-
|
|
19
|
-
require('../chunk-
|
|
18
|
+
require('../chunk-TFUVNQNA.cjs');
|
|
19
|
+
require('../chunk-KYE7CRED.cjs');
|
|
20
20
|
require('../chunk-5UCXMYE7.cjs');
|
|
21
21
|
require('../chunk-JHJJT5H5.cjs');
|
|
22
|
-
require('../chunk-
|
|
22
|
+
require('../chunk-YDEQZSPQ.cjs');
|
|
23
23
|
require('../chunk-SBB6C4OP.cjs');
|
|
24
|
-
require('../chunk-
|
|
24
|
+
require('../chunk-7OOUU6BL.cjs');
|
|
25
25
|
require('../chunk-VHDSPI6A.cjs');
|
|
26
26
|
require('../chunk-3WNW5Y7P.cjs');
|
|
27
27
|
|
|
28
28
|
// src/ai/prompt-context.ts
|
|
29
29
|
function buildPromptContext(type, opts = {}) {
|
|
30
|
-
const resolved =
|
|
30
|
+
const resolved = chunk2LVU75P3_cjs.resolveDiagramType(type) ?? type;
|
|
31
31
|
const detail = opts.detail ?? "canonical";
|
|
32
32
|
const limit = opts.examples ?? 2;
|
|
33
|
-
const { type: canonical, name, standard, syntax } =
|
|
33
|
+
const { type: canonical, name, standard, syntax } = chunk2LVU75P3_cjs.getSyntax(resolved, {
|
|
34
34
|
detail
|
|
35
35
|
});
|
|
36
36
|
const parts = [
|
|
@@ -41,7 +41,7 @@ function buildPromptContext(type, opts = {}) {
|
|
|
41
41
|
];
|
|
42
42
|
let exampleCount = 0;
|
|
43
43
|
if (limit > 0) {
|
|
44
|
-
const examples =
|
|
44
|
+
const examples = chunk2LVU75P3_cjs.getExamples(canonical, {
|
|
45
45
|
preferFeatured: opts.preferFeatured ?? true,
|
|
46
46
|
limit,
|
|
47
47
|
maxComplexity: opts.maxComplexity
|
|
@@ -67,47 +67,47 @@ function buildPromptContext(type, opts = {}) {
|
|
|
67
67
|
|
|
68
68
|
Object.defineProperty(exports, "DIAGRAM_REGISTRY", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk2LVU75P3_cjs.DIAGRAM_REGISTRY; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "DIAGRAM_SINCE", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2LVU75P3_cjs.DIAGRAM_SINCE; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "getAllDiagramTypes", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2LVU75P3_cjs.getAllDiagramTypes; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "getDiagramMeta", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2LVU75P3_cjs.getDiagramMeta; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "getDiagramSince", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2LVU75P3_cjs.getDiagramSince; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "getExamples", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2LVU75P3_cjs.getExamples; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "getSyntax", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2LVU75P3_cjs.getSyntax; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "listDiagrams", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2LVU75P3_cjs.listDiagrams; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "renderDsl", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2LVU75P3_cjs.renderDsl; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "resolveDiagramType", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2LVU75P3_cjs.resolveDiagramType; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "validateDsl", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2LVU75P3_cjs.validateDsl; }
|
|
111
111
|
});
|
|
112
112
|
exports.buildPromptContext = buildPromptContext;
|
|
113
113
|
//# sourceMappingURL=index.cjs.map
|
package/dist/ai/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-DAKYNcPv.cjs';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-DAKYNcPv.cjs';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-D2qkBfFx.cjs';
|
|
4
|
+
import '../api-DnTyW-6F.cjs';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as SyntaxDetail } from '../tools-
|
|
2
|
-
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-
|
|
3
|
-
import { a as DiagramType } from '../diagnostics-
|
|
4
|
-
import '../api-
|
|
1
|
+
import { S as SyntaxDetail } from '../tools-DM0aLCbc.js';
|
|
2
|
+
export { D as DIAGRAM_REGISTRY, a as DIAGRAM_SINCE, b as DiagramCluster, c as DiagramListItem, d as DiagramMeta, E as Example, G as GetExamplesOptions, e as GetExamplesResult, f as GetSyntaxOptions, g as GetSyntaxResult, R as RenderDslResult, h as SchematexValidationError, i as SyntaxDoc, V as ValidateDslResult, j as getAllDiagramTypes, k as getDiagramMeta, l as getDiagramSince, m as getExamples, n as getSyntax, o as listDiagrams, r as renderDsl, p as resolveDiagramType, v as validateDsl } from '../tools-DM0aLCbc.js';
|
|
3
|
+
import { a as DiagramType } from '../diagnostics-D2qkBfFx.js';
|
|
4
|
+
import '../api-D_d-JklT.js';
|
|
5
5
|
|
|
6
6
|
interface BuildPromptContextOptions {
|
|
7
7
|
/** How many few-shot examples to embed. Default 2. Set 0 to omit examples. */
|
package/dist/ai/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-
|
|
2
|
-
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
1
|
+
import { resolveDiagramType, getSyntax, getExamples } from '../chunk-33BFUEYU.js';
|
|
2
|
+
export { DIAGRAM_REGISTRY, DIAGRAM_SINCE, getAllDiagramTypes, getDiagramMeta, getDiagramSince, getExamples, getSyntax, listDiagrams, renderDsl, resolveDiagramType, validateDsl } from '../chunk-33BFUEYU.js';
|
|
3
|
+
import '../chunk-4QLIFOKH.js';
|
|
4
|
+
import '../chunk-EB7T5SEO.js';
|
|
5
|
+
import '../chunk-IHX6J4HF.js';
|
|
6
|
+
import '../chunk-P4U565XH.js';
|
|
7
|
+
import '../chunk-W4UVDMUC.js';
|
|
8
|
+
import '../chunk-MVTYPWHO.js';
|
|
9
|
+
import '../chunk-2IRYXK4M.js';
|
|
10
|
+
import '../chunk-NP7N3DZG.js';
|
|
11
|
+
import '../chunk-KUSW5I2P.js';
|
|
12
|
+
import '../chunk-ZRFKIERV.js';
|
|
13
|
+
import '../chunk-AETIGJXP.js';
|
|
14
|
+
import '../chunk-NB7MFQCZ.js';
|
|
15
|
+
import '../chunk-HIWJMJJB.js';
|
|
16
16
|
import '../chunk-2KTQ75LN.js';
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-QMJHLDGY.js';
|
|
18
|
+
import '../chunk-7NO5LYLL.js';
|
|
19
19
|
import '../chunk-FO7BLCEW.js';
|
|
20
20
|
import '../chunk-MTIZIHWE.js';
|
|
21
|
-
import '../chunk-
|
|
21
|
+
import '../chunk-YXEPF3SL.js';
|
|
22
22
|
import '../chunk-PIV2A3HG.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-JVNV2T2T.js';
|
|
24
24
|
import '../chunk-TO6PNBT3.js';
|
|
25
25
|
import '../chunk-SYYBKDL7.js';
|
|
26
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-D2qkBfFx.js';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
4
|
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "rbd" | "floorplan" | "playbook";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-
|
|
1
|
+
import { b as SchematexParseResult, c as SchematexRenderResult } from './diagnostics-D2qkBfFx.cjs';
|
|
2
2
|
|
|
3
3
|
interface SchematexConfig {
|
|
4
4
|
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" | "sequence" | "petri" | "network" | "umlclass" | "faulttree" | "bowtie" | "rbd" | "floorplan" | "playbook";
|
package/dist/browser.cjs
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
3
|
+
var chunkBEPVTFXK_cjs = require('./chunk-BEPVTFXK.cjs');
|
|
4
|
+
require('./chunk-UHRNFBWY.cjs');
|
|
5
|
+
require('./chunk-TXWVJAMR.cjs');
|
|
6
|
+
require('./chunk-T55OQILI.cjs');
|
|
7
|
+
require('./chunk-GTCGATOL.cjs');
|
|
8
|
+
require('./chunk-MXV3XJFH.cjs');
|
|
9
|
+
require('./chunk-4MANMKQ4.cjs');
|
|
10
|
+
require('./chunk-YFPDZVB7.cjs');
|
|
11
|
+
require('./chunk-3JN4762U.cjs');
|
|
12
|
+
require('./chunk-DLXDR2E7.cjs');
|
|
13
|
+
require('./chunk-F5RYWDWO.cjs');
|
|
14
|
+
require('./chunk-QC2RICQ4.cjs');
|
|
15
|
+
require('./chunk-246OJILS.cjs');
|
|
16
16
|
require('./chunk-3KRL2EGN.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-TFUVNQNA.cjs');
|
|
18
|
+
require('./chunk-KYE7CRED.cjs');
|
|
19
19
|
require('./chunk-5UCXMYE7.cjs');
|
|
20
20
|
require('./chunk-JHJJT5H5.cjs');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-YDEQZSPQ.cjs');
|
|
22
22
|
require('./chunk-SBB6C4OP.cjs');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-7OOUU6BL.cjs');
|
|
24
24
|
require('./chunk-VHDSPI6A.cjs');
|
|
25
25
|
require('./chunk-3WNW5Y7P.cjs');
|
|
26
26
|
|
|
27
27
|
// src/browser.ts
|
|
28
28
|
function renderToElement(text, config) {
|
|
29
|
-
return svgStringToElement(
|
|
29
|
+
return svgStringToElement(chunkBEPVTFXK_cjs.render(text, config));
|
|
30
30
|
}
|
|
31
31
|
function renderPreviewToElement(text, config) {
|
|
32
|
-
return svgStringToElement(
|
|
32
|
+
return svgStringToElement(chunkBEPVTFXK_cjs.renderPreview(text, config));
|
|
33
33
|
}
|
|
34
34
|
function svgStringToElement(svgString) {
|
|
35
35
|
const parser = new DOMParser();
|
|
@@ -42,23 +42,23 @@ function svgStringToElement(svgString) {
|
|
|
42
42
|
return el;
|
|
43
43
|
}
|
|
44
44
|
function renderToContainer(text, container, config) {
|
|
45
|
-
container.innerHTML =
|
|
45
|
+
container.innerHTML = chunkBEPVTFXK_cjs.render(text, config);
|
|
46
46
|
}
|
|
47
47
|
function renderPreviewToContainer(text, container, config) {
|
|
48
|
-
container.innerHTML =
|
|
48
|
+
container.innerHTML = chunkBEPVTFXK_cjs.renderPreview(text, config);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
Object.defineProperty(exports, "render", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkBEPVTFXK_cjs.render; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "renderPreview", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkBEPVTFXK_cjs.renderPreview; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "renderResult", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkBEPVTFXK_cjs.renderResult; }
|
|
62
62
|
});
|
|
63
63
|
exports.renderPreviewToContainer = renderPreviewToContainer;
|
|
64
64
|
exports.renderPreviewToElement = renderPreviewToElement;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-DnTyW-6F.cjs';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-DnTyW-6F.cjs';
|
|
3
|
+
import './diagnostics-D2qkBfFx.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as SchematexConfig } from './api-
|
|
2
|
-
export { r as render, b as renderPreview, c as renderResult } from './api-
|
|
3
|
-
import './diagnostics-
|
|
1
|
+
import { S as SchematexConfig } from './api-D_d-JklT.js';
|
|
2
|
+
export { r as render, b as renderPreview, c as renderResult } from './api-D_d-JklT.js';
|
|
3
|
+
import './diagnostics-D2qkBfFx.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Browser-specific utilities for Schematex.
|
package/dist/browser.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { render, renderPreview } from './chunk-
|
|
2
|
-
export { render, renderPreview, renderResult } from './chunk-
|
|
3
|
-
import './chunk-
|
|
4
|
-
import './chunk-
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
9
|
-
import './chunk-
|
|
10
|
-
import './chunk-
|
|
11
|
-
import './chunk-
|
|
12
|
-
import './chunk-
|
|
13
|
-
import './chunk-
|
|
14
|
-
import './chunk-
|
|
1
|
+
import { render, renderPreview } from './chunk-4QLIFOKH.js';
|
|
2
|
+
export { render, renderPreview, renderResult } from './chunk-4QLIFOKH.js';
|
|
3
|
+
import './chunk-EB7T5SEO.js';
|
|
4
|
+
import './chunk-IHX6J4HF.js';
|
|
5
|
+
import './chunk-P4U565XH.js';
|
|
6
|
+
import './chunk-W4UVDMUC.js';
|
|
7
|
+
import './chunk-MVTYPWHO.js';
|
|
8
|
+
import './chunk-2IRYXK4M.js';
|
|
9
|
+
import './chunk-NP7N3DZG.js';
|
|
10
|
+
import './chunk-KUSW5I2P.js';
|
|
11
|
+
import './chunk-ZRFKIERV.js';
|
|
12
|
+
import './chunk-AETIGJXP.js';
|
|
13
|
+
import './chunk-NB7MFQCZ.js';
|
|
14
|
+
import './chunk-HIWJMJJB.js';
|
|
15
15
|
import './chunk-2KTQ75LN.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
16
|
+
import './chunk-QMJHLDGY.js';
|
|
17
|
+
import './chunk-7NO5LYLL.js';
|
|
18
18
|
import './chunk-FO7BLCEW.js';
|
|
19
19
|
import './chunk-MTIZIHWE.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-YXEPF3SL.js';
|
|
21
21
|
import './chunk-PIV2A3HG.js';
|
|
22
|
-
import './chunk-
|
|
22
|
+
import './chunk-JVNV2T2T.js';
|
|
23
23
|
import './chunk-TO6PNBT3.js';
|
|
24
24
|
import './chunk-SYYBKDL7.js';
|
|
25
25
|
|