schematex 0.2.2 → 0.2.3
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/dist/ai/ai-sdk.cjs +85 -0
- package/dist/ai/ai-sdk.cjs.map +1 -0
- package/dist/ai/ai-sdk.d.cts +30 -0
- package/dist/ai/ai-sdk.d.ts +30 -0
- package/dist/ai/ai-sdk.js +83 -0
- package/dist/ai/ai-sdk.js.map +1 -0
- package/dist/ai/index.cjs +60 -0
- package/dist/ai/index.cjs.map +1 -0
- package/dist/ai/index.d.cts +155 -0
- package/dist/ai/index.d.ts +155 -0
- package/dist/ai/index.js +23 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/browser.cjs +16 -15
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.js +14 -13
- package/dist/browser.js.map +1 -1
- package/dist/{chunk-YN467EEQ.js → chunk-2BM3HJSK.js} +544 -100
- package/dist/chunk-2BM3HJSK.js.map +1 -0
- package/dist/{chunk-ZO77FHBF.cjs → chunk-2JDVJRR3.cjs} +14 -6
- package/dist/chunk-2JDVJRR3.cjs.map +1 -0
- package/dist/{chunk-QR7VTCI4.cjs → chunk-3YZ6FPQW.cjs} +13 -7
- package/dist/chunk-3YZ6FPQW.cjs.map +1 -0
- package/dist/{chunk-GEPBET4L.js → chunk-45KP67RR.js} +14 -6
- package/dist/chunk-45KP67RR.js.map +1 -0
- package/dist/chunk-4QP37LD3.js +1112 -0
- package/dist/chunk-4QP37LD3.js.map +1 -0
- package/dist/{chunk-LKOBOVNL.cjs → chunk-5AEN2PLB.cjs} +14 -6
- package/dist/chunk-5AEN2PLB.cjs.map +1 -0
- package/dist/{chunk-Z63XPA2V.cjs → chunk-6LZJTAA3.cjs} +543 -99
- package/dist/chunk-6LZJTAA3.cjs.map +1 -0
- package/dist/{chunk-7IRT3LOY.cjs → chunk-A5D2IMOX.cjs} +16 -8
- package/dist/chunk-A5D2IMOX.cjs.map +1 -0
- package/dist/{chunk-XVCAOGFL.cjs → chunk-B37IKTI7.cjs} +221 -44
- package/dist/chunk-B37IKTI7.cjs.map +1 -0
- package/dist/{chunk-ISACNVFE.cjs → chunk-B6INLQBU.cjs} +15 -9
- package/dist/chunk-B6INLQBU.cjs.map +1 -0
- package/dist/{chunk-YXIIWLLB.cjs → chunk-COLTVQWR.cjs} +174 -6
- package/dist/chunk-COLTVQWR.cjs.map +1 -0
- package/dist/chunk-DNZFOCV7.js +796 -0
- package/dist/chunk-DNZFOCV7.js.map +1 -0
- package/dist/{chunk-XHZ7GXP2.cjs → chunk-E65ITQXV.cjs} +178 -22
- package/dist/chunk-E65ITQXV.cjs.map +1 -0
- package/dist/{chunk-LCR3KOJV.js → chunk-FCGHV6ZK.js} +16 -8
- package/dist/chunk-FCGHV6ZK.js.map +1 -0
- package/dist/{chunk-X2BQKXMA.js → chunk-FE6GAUNW.js} +13 -7
- package/dist/chunk-FE6GAUNW.js.map +1 -0
- package/dist/{chunk-CJ2A3UEQ.js → chunk-LR4X4ZRG.js} +179 -23
- package/dist/chunk-LR4X4ZRG.js.map +1 -0
- package/dist/{chunk-LXNFVHDT.cjs → chunk-MCFQAUQV.cjs} +21 -13
- package/dist/chunk-MCFQAUQV.cjs.map +1 -0
- package/dist/chunk-MOU5QRZY.cjs +1121 -0
- package/dist/chunk-MOU5QRZY.cjs.map +1 -0
- package/dist/{chunk-4KYW63IK.js → chunk-OC22GGQN.js} +222 -45
- package/dist/chunk-OC22GGQN.js.map +1 -0
- package/dist/{chunk-7HKXU7J2.cjs → chunk-QXIGHMH2.cjs} +65 -38
- package/dist/chunk-QXIGHMH2.cjs.map +1 -0
- package/dist/{chunk-5UV5VQ7J.js → chunk-RP5UATRA.js} +174 -6
- package/dist/chunk-RP5UATRA.js.map +1 -0
- package/dist/{chunk-UUPYTUGR.js → chunk-S3RBKJM5.js} +54 -27
- package/dist/chunk-S3RBKJM5.js.map +1 -0
- package/dist/{chunk-Z3WOHHG3.js → chunk-SN7NTZI6.js} +8 -6
- package/dist/chunk-SN7NTZI6.js.map +1 -0
- package/dist/{chunk-ZNZIL244.js → chunk-U6L3FAML.js} +15 -9
- package/dist/chunk-U6L3FAML.js.map +1 -0
- package/dist/{chunk-5SH5NUDW.js → chunk-UGCUNADI.js} +21 -13
- package/dist/chunk-UGCUNADI.js.map +1 -0
- package/dist/chunk-ULYRO2KY.cjs +800 -0
- package/dist/chunk-ULYRO2KY.cjs.map +1 -0
- package/dist/{chunk-CXHPP5BL.cjs → chunk-Z3DE6S64.cjs} +8 -6
- package/dist/chunk-Z3DE6S64.cjs.map +1 -0
- package/dist/{chunk-6YMQSTFF.js → chunk-ZNDIGQJD.js} +14 -6
- package/dist/chunk-ZNDIGQJD.js.map +1 -0
- package/dist/diagrams/blockdiagram/index.cjs +5 -5
- package/dist/diagrams/blockdiagram/index.d.cts +1 -1
- package/dist/diagrams/blockdiagram/index.d.ts +1 -1
- package/dist/diagrams/blockdiagram/index.js +1 -1
- package/dist/diagrams/circuit/index.d.cts +1 -1
- package/dist/diagrams/circuit/index.d.ts +1 -1
- package/dist/diagrams/ecomap/index.cjs +7 -6
- package/dist/diagrams/ecomap/index.d.cts +2 -2
- package/dist/diagrams/ecomap/index.d.ts +2 -2
- package/dist/diagrams/ecomap/index.js +2 -1
- package/dist/diagrams/entity/index.d.cts +1 -1
- package/dist/diagrams/entity/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.cjs +7 -7
- package/dist/diagrams/fishbone/index.d.cts +1 -1
- package/dist/diagrams/fishbone/index.d.ts +1 -1
- package/dist/diagrams/fishbone/index.js +1 -1
- package/dist/diagrams/flowchart/index.cjs +7 -7
- package/dist/diagrams/flowchart/index.d.cts +2 -2
- package/dist/diagrams/flowchart/index.d.ts +2 -2
- package/dist/diagrams/flowchart/index.js +1 -1
- package/dist/diagrams/genogram/index.cjs +9 -8
- 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 -1
- package/dist/diagrams/ladder/index.cjs +5 -5
- package/dist/diagrams/ladder/index.d.cts +1 -1
- package/dist/diagrams/ladder/index.d.ts +1 -1
- package/dist/diagrams/ladder/index.js +1 -1
- package/dist/diagrams/logic/index.d.cts +1 -1
- package/dist/diagrams/logic/index.d.ts +1 -1
- package/dist/diagrams/orgchart/index.cjs +6 -6
- package/dist/diagrams/orgchart/index.d.cts +5 -2
- package/dist/diagrams/orgchart/index.d.ts +5 -2
- package/dist/diagrams/orgchart/index.js +1 -1
- package/dist/diagrams/pedigree/index.cjs +7 -6
- 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 -1
- package/dist/diagrams/phylo/index.d.cts +1 -1
- package/dist/diagrams/phylo/index.d.ts +1 -1
- package/dist/diagrams/sld/index.cjs +5 -5
- package/dist/diagrams/sld/index.d.cts +1 -1
- package/dist/diagrams/sld/index.d.ts +1 -1
- package/dist/diagrams/sld/index.js +1 -1
- package/dist/diagrams/sociogram/index.cjs +6 -5
- package/dist/diagrams/sociogram/index.d.cts +2 -1
- package/dist/diagrams/sociogram/index.d.ts +2 -1
- package/dist/diagrams/sociogram/index.js +2 -1
- package/dist/diagrams/timing/index.cjs +4 -4
- package/dist/diagrams/timing/index.d.cts +1 -1
- package/dist/diagrams/timing/index.d.ts +1 -1
- package/dist/diagrams/timing/index.js +1 -1
- package/dist/diagrams/venn/index.d.cts +1 -1
- package/dist/diagrams/venn/index.d.ts +1 -1
- package/dist/{index-ga04CTBI.d.ts → index-C97K-kuw.d.ts} +1 -1
- package/dist/{index-SSGpCggE.d.cts → index-lsSaw3E0.d.cts} +1 -1
- package/dist/index.cjs +28 -27
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -12
- package/dist/react.cjs +14 -13
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +13 -12
- package/dist/react.js.map +1 -1
- package/dist/{types-BcPhMdHd.d.ts → types-C4LnMEcB.d.cts} +58 -4
- package/dist/{types-BcPhMdHd.d.cts → types-C4LnMEcB.d.ts} +58 -4
- package/package.json +27 -5
- package/dist/chunk-4KYW63IK.js.map +0 -1
- package/dist/chunk-5SH5NUDW.js.map +0 -1
- package/dist/chunk-5UV5VQ7J.js.map +0 -1
- package/dist/chunk-6YMQSTFF.js.map +0 -1
- package/dist/chunk-7HKXU7J2.cjs.map +0 -1
- package/dist/chunk-7IRT3LOY.cjs.map +0 -1
- package/dist/chunk-CJ2A3UEQ.js.map +0 -1
- package/dist/chunk-CXHPP5BL.cjs.map +0 -1
- package/dist/chunk-GEPBET4L.js.map +0 -1
- package/dist/chunk-ISACNVFE.cjs.map +0 -1
- package/dist/chunk-LCR3KOJV.js.map +0 -1
- package/dist/chunk-LKOBOVNL.cjs.map +0 -1
- package/dist/chunk-LXNFVHDT.cjs.map +0 -1
- package/dist/chunk-QR7VTCI4.cjs.map +0 -1
- package/dist/chunk-UUPYTUGR.js.map +0 -1
- package/dist/chunk-X2BQKXMA.js.map +0 -1
- package/dist/chunk-XHZ7GXP2.cjs.map +0 -1
- package/dist/chunk-XVCAOGFL.cjs.map +0 -1
- package/dist/chunk-YN467EEQ.js.map +0 -1
- package/dist/chunk-YXIIWLLB.cjs.map +0 -1
- package/dist/chunk-Z3WOHHG3.js.map +0 -1
- package/dist/chunk-Z63XPA2V.cjs.map +0 -1
- package/dist/chunk-ZNZIL244.js.map +0 -1
- package/dist/chunk-ZO77FHBF.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA5D2IMOX_cjs = require('../../chunk-A5D2IMOX.cjs');
|
|
4
4
|
require('../../chunk-D7EHZFK4.cjs');
|
|
5
5
|
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
6
|
|
|
@@ -8,23 +8,23 @@ require('../../chunk-HDKDQAEQ.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "OrgchartParseError", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkA5D2IMOX_cjs.OrgchartParseError; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "layoutOrgchart", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkA5D2IMOX_cjs.layoutOrgchart; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "orgchart", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkA5D2IMOX_cjs.orgchart; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "parseOrgchart", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkA5D2IMOX_cjs.parseOrgchart; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "renderOrgchart", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkA5D2IMOX_cjs.renderOrgchart; }
|
|
28
28
|
});
|
|
29
29
|
//# sourceMappingURL=index.cjs.map
|
|
30
30
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RenderConfig, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { R as RenderConfig, D as DiagramPlugin } from '../../types-C4LnMEcB.cjs';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -87,7 +87,10 @@ interface OrgchartLayoutResult {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
declare class OrgchartParseError extends Error {
|
|
90
|
-
|
|
90
|
+
line?: number | undefined;
|
|
91
|
+
column?: number | undefined;
|
|
92
|
+
source?: string | undefined;
|
|
93
|
+
constructor(message: string, line?: number | undefined, column?: number | undefined, source?: string | undefined);
|
|
91
94
|
}
|
|
92
95
|
declare function parseOrgchart(text: string): OrgchartAST;
|
|
93
96
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RenderConfig, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { R as RenderConfig, D as DiagramPlugin } from '../../types-C4LnMEcB.js';
|
|
2
2
|
|
|
3
3
|
type OrgchartDirection = "TD" | "LR";
|
|
4
4
|
type OrgchartLayoutMode = "tree" | "list";
|
|
@@ -87,7 +87,10 @@ interface OrgchartLayoutResult {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
declare class OrgchartParseError extends Error {
|
|
90
|
-
|
|
90
|
+
line?: number | undefined;
|
|
91
|
+
column?: number | undefined;
|
|
92
|
+
source?: string | undefined;
|
|
93
|
+
constructor(message: string, line?: number | undefined, column?: number | undefined, source?: string | undefined);
|
|
91
94
|
}
|
|
92
95
|
declare function parseOrgchart(text: string): OrgchartAST;
|
|
93
96
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { OrgchartParseError, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart } from '../../chunk-
|
|
1
|
+
export { OrgchartParseError, layoutOrgchart, orgchart, parseOrgchart, renderOrgchart } from '../../chunk-FCGHV6ZK.js';
|
|
2
2
|
import '../../chunk-2VNMKOUO.js';
|
|
3
3
|
import '../../chunk-KLJEK547.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB37IKTI7_cjs = require('../../chunk-B37IKTI7.cjs');
|
|
4
|
+
require('../../chunk-ULYRO2KY.cjs');
|
|
4
5
|
require('../../chunk-D7EHZFK4.cjs');
|
|
5
6
|
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
7
|
|
|
@@ -8,23 +9,23 @@ require('../../chunk-HDKDQAEQ.cjs');
|
|
|
8
9
|
|
|
9
10
|
Object.defineProperty(exports, "PedigreeParseError", {
|
|
10
11
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkB37IKTI7_cjs.PedigreeParseError; }
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "layoutPedigree", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkB37IKTI7_cjs.layoutPedigree; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "parsePedigree", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkB37IKTI7_cjs.parsePedigree; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "pedigree", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkB37IKTI7_cjs.pedigree; }
|
|
24
25
|
});
|
|
25
26
|
Object.defineProperty(exports, "renderPedigree", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkB37IKTI7_cjs.renderPedigree; }
|
|
28
29
|
});
|
|
29
30
|
//# sourceMappingURL=index.cjs.map
|
|
30
31
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DiagramAST, L as LayoutConfig, b as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { a as DiagramAST, L as LayoutConfig, b as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../types-C4LnMEcB.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DiagramAST, L as LayoutConfig, b as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { a as DiagramAST, L as LayoutConfig, b as LayoutResult, R as RenderConfig, D as DiagramPlugin } from '../../types-C4LnMEcB.js';
|
|
2
2
|
|
|
3
3
|
declare class PedigreeParseError extends Error {
|
|
4
4
|
line: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { PedigreeParseError, layoutPedigree, parsePedigree, pedigree, renderPedigree } from '../../chunk-
|
|
1
|
+
export { PedigreeParseError, layoutPedigree, parsePedigree, pedigree, renderPedigree } from '../../chunk-OC22GGQN.js';
|
|
2
|
+
import '../../chunk-DNZFOCV7.js';
|
|
2
3
|
import '../../chunk-2VNMKOUO.js';
|
|
3
4
|
import '../../chunk-KLJEK547.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, c as PhyloLayoutNode, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { P as PhyloTreeAST, c as PhyloLayoutNode, D as DiagramPlugin } from '../../types-C4LnMEcB.cjs';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PhyloTreeAST, c as PhyloLayoutNode, D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { P as PhyloTreeAST, c as PhyloLayoutNode, D as DiagramPlugin } from '../../types-C4LnMEcB.js';
|
|
2
2
|
|
|
3
3
|
declare class PhyloParseError extends Error {
|
|
4
4
|
constructor(message: string);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3YZ6FPQW_cjs = require('../../chunk-3YZ6FPQW.cjs');
|
|
4
4
|
require('../../chunk-D7EHZFK4.cjs');
|
|
5
5
|
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
6
|
|
|
@@ -8,19 +8,19 @@ require('../../chunk-HDKDQAEQ.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "layoutSLD", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunk3YZ6FPQW_cjs.layoutSLD; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "parseSLDDSL", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunk3YZ6FPQW_cjs.parseSLDDSL; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "renderSLD", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk3YZ6FPQW_cjs.renderSLD; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "sld", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk3YZ6FPQW_cjs.sld; }
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=index.cjs.map
|
|
26
26
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SLDAST, R as RenderConfig,
|
|
1
|
+
import { S as SLDAST, R as RenderConfig, h as SLDNode, i as SLDNodeType, D as DiagramPlugin } from '../../types-C4LnMEcB.cjs';
|
|
2
2
|
|
|
3
3
|
declare function parseSLDDSL(text: string): SLDAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SLDAST, R as RenderConfig,
|
|
1
|
+
import { S as SLDAST, R as RenderConfig, h as SLDNode, i as SLDNodeType, D as DiagramPlugin } from '../../types-C4LnMEcB.js';
|
|
2
2
|
|
|
3
3
|
declare function parseSLDDSL(text: string): SLDAST;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { layoutSLD, parseSLDDSL, renderSLD, sld } from '../../chunk-
|
|
1
|
+
export { layoutSLD, parseSLDDSL, renderSLD, sld } from '../../chunk-FE6GAUNW.js';
|
|
2
2
|
import '../../chunk-2VNMKOUO.js';
|
|
3
3
|
import '../../chunk-KLJEK547.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCOLTVQWR_cjs = require('../../chunk-COLTVQWR.cjs');
|
|
4
|
+
require('../../chunk-ULYRO2KY.cjs');
|
|
4
5
|
require('../../chunk-D7EHZFK4.cjs');
|
|
5
6
|
require('../../chunk-HDKDQAEQ.cjs');
|
|
6
7
|
|
|
@@ -8,19 +9,19 @@ require('../../chunk-HDKDQAEQ.cjs');
|
|
|
8
9
|
|
|
9
10
|
Object.defineProperty(exports, "layoutSociogram", {
|
|
10
11
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkCOLTVQWR_cjs.layoutSociogram; }
|
|
12
13
|
});
|
|
13
14
|
Object.defineProperty(exports, "parseSociogram", {
|
|
14
15
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkCOLTVQWR_cjs.parseSociogram; }
|
|
16
17
|
});
|
|
17
18
|
Object.defineProperty(exports, "renderSociogram", {
|
|
18
19
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkCOLTVQWR_cjs.renderSociogram; }
|
|
20
21
|
});
|
|
21
22
|
Object.defineProperty(exports, "sociogram", {
|
|
22
23
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkCOLTVQWR_cjs.sociogram; }
|
|
24
25
|
});
|
|
25
26
|
//# sourceMappingURL=index.cjs.map
|
|
26
27
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { d as LegendOverrides, D as DiagramPlugin } from '../../types-C4LnMEcB.cjs';
|
|
2
2
|
|
|
3
3
|
type SociogramLayout = "circular" | "force-directed" | "concentric";
|
|
4
4
|
type EdgeValence = "positive" | "negative" | "neutral";
|
|
@@ -41,6 +41,7 @@ interface SociogramAST {
|
|
|
41
41
|
nodes: SociogramNode[];
|
|
42
42
|
edges: SociogramEdge[];
|
|
43
43
|
groups: SociogramGroup[];
|
|
44
|
+
legendOverrides?: LegendOverrides;
|
|
44
45
|
}
|
|
45
46
|
declare function parseSociogram(text: string): SociogramAST;
|
|
46
47
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DiagramPlugin } from '../../types-
|
|
1
|
+
import { d as LegendOverrides, D as DiagramPlugin } from '../../types-C4LnMEcB.js';
|
|
2
2
|
|
|
3
3
|
type SociogramLayout = "circular" | "force-directed" | "concentric";
|
|
4
4
|
type EdgeValence = "positive" | "negative" | "neutral";
|
|
@@ -41,6 +41,7 @@ interface SociogramAST {
|
|
|
41
41
|
nodes: SociogramNode[];
|
|
42
42
|
edges: SociogramEdge[];
|
|
43
43
|
groups: SociogramGroup[];
|
|
44
|
+
legendOverrides?: LegendOverrides;
|
|
44
45
|
}
|
|
45
46
|
declare function parseSociogram(text: string): SociogramAST;
|
|
46
47
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { layoutSociogram, parseSociogram, renderSociogram, sociogram } from '../../chunk-
|
|
1
|
+
export { layoutSociogram, parseSociogram, renderSociogram, sociogram } from '../../chunk-RP5UATRA.js';
|
|
2
|
+
import '../../chunk-DNZFOCV7.js';
|
|
2
3
|
import '../../chunk-2VNMKOUO.js';
|
|
3
4
|
import '../../chunk-KLJEK547.js';
|
|
4
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2JDVJRR3_cjs = require('../../chunk-2JDVJRR3.cjs');
|
|
4
4
|
require('../../chunk-HDKDQAEQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "parseTiming", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk2JDVJRR3_cjs.parseTiming; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "renderTiming", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2JDVJRR3_cjs.renderTiming; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "timing", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2JDVJRR3_cjs.timing; }
|
|
19
19
|
});
|
|
20
20
|
//# sourceMappingURL=index.cjs.map
|
|
21
21
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkQXIGHMH2_cjs = require('./chunk-QXIGHMH2.cjs');
|
|
4
|
+
var chunkA5D2IMOX_cjs = require('./chunk-A5D2IMOX.cjs');
|
|
5
5
|
var chunk4S2WILLW_cjs = require('./chunk-4S2WILLW.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
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
9
|
var chunkZNOD4VZT_cjs = require('./chunk-ZNOD4VZT.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunk5AEN2PLB_cjs = require('./chunk-5AEN2PLB.cjs');
|
|
11
11
|
var chunkQSQX77S2_cjs = require('./chunk-QSQX77S2.cjs');
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
var chunkZ3DE6S64_cjs = require('./chunk-Z3DE6S64.cjs');
|
|
13
|
+
var chunk6LZJTAA3_cjs = require('./chunk-6LZJTAA3.cjs');
|
|
14
|
+
var chunkE65ITQXV_cjs = require('./chunk-E65ITQXV.cjs');
|
|
15
|
+
var chunkB37IKTI7_cjs = require('./chunk-B37IKTI7.cjs');
|
|
16
16
|
var chunkX7RPFTTR_cjs = require('./chunk-X7RPFTTR.cjs');
|
|
17
|
-
var
|
|
18
|
-
|
|
17
|
+
var chunkCOLTVQWR_cjs = require('./chunk-COLTVQWR.cjs');
|
|
18
|
+
require('./chunk-ULYRO2KY.cjs');
|
|
19
|
+
var chunk2JDVJRR3_cjs = require('./chunk-2JDVJRR3.cjs');
|
|
19
20
|
var chunkWYFXOXVK_cjs = require('./chunk-WYFXOXVK.cjs');
|
|
20
21
|
var chunkD7EHZFK4_cjs = require('./chunk-D7EHZFK4.cjs');
|
|
21
22
|
require('./chunk-HDKDQAEQ.cjs');
|
|
@@ -24,23 +25,23 @@ require('./chunk-HDKDQAEQ.cjs');
|
|
|
24
25
|
|
|
25
26
|
Object.defineProperty(exports, "decisiontree", {
|
|
26
27
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkQXIGHMH2_cjs.decisiontree; }
|
|
28
29
|
});
|
|
29
30
|
Object.defineProperty(exports, "parse", {
|
|
30
31
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkQXIGHMH2_cjs.parse; }
|
|
32
33
|
});
|
|
33
34
|
Object.defineProperty(exports, "render", {
|
|
34
35
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkQXIGHMH2_cjs.render; }
|
|
36
37
|
});
|
|
37
38
|
Object.defineProperty(exports, "timeline", {
|
|
38
39
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkQXIGHMH2_cjs.timeline; }
|
|
40
41
|
});
|
|
41
42
|
Object.defineProperty(exports, "orgchart", {
|
|
42
43
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkA5D2IMOX_cjs.orgchart; }
|
|
44
45
|
});
|
|
45
46
|
Object.defineProperty(exports, "circuit", {
|
|
46
47
|
enumerable: true,
|
|
@@ -48,15 +49,15 @@ Object.defineProperty(exports, "circuit", {
|
|
|
48
49
|
});
|
|
49
50
|
Object.defineProperty(exports, "blockdiagram", {
|
|
50
51
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkMCFQAUQV_cjs.blockdiagram; }
|
|
52
53
|
});
|
|
53
54
|
Object.defineProperty(exports, "ladder", {
|
|
54
55
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkB6INLQBU_cjs.ladder; }
|
|
56
57
|
});
|
|
57
58
|
Object.defineProperty(exports, "sld", {
|
|
58
59
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk3YZ6FPQW_cjs.sld; }
|
|
60
61
|
});
|
|
61
62
|
Object.defineProperty(exports, "entity", {
|
|
62
63
|
enumerable: true,
|
|
@@ -64,7 +65,7 @@ Object.defineProperty(exports, "entity", {
|
|
|
64
65
|
});
|
|
65
66
|
Object.defineProperty(exports, "fishbone", {
|
|
66
67
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk5AEN2PLB_cjs.fishbone; }
|
|
68
69
|
});
|
|
69
70
|
Object.defineProperty(exports, "venn", {
|
|
70
71
|
enumerable: true,
|
|
@@ -72,19 +73,19 @@ Object.defineProperty(exports, "venn", {
|
|
|
72
73
|
});
|
|
73
74
|
Object.defineProperty(exports, "flowchart", {
|
|
74
75
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkZ3DE6S64_cjs.flowchart; }
|
|
76
77
|
});
|
|
77
78
|
Object.defineProperty(exports, "genogram", {
|
|
78
79
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk6LZJTAA3_cjs.genogram; }
|
|
80
81
|
});
|
|
81
82
|
Object.defineProperty(exports, "ecomap", {
|
|
82
83
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkE65ITQXV_cjs.ecomap; }
|
|
84
85
|
});
|
|
85
86
|
Object.defineProperty(exports, "pedigree", {
|
|
86
87
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkB37IKTI7_cjs.pedigree; }
|
|
88
89
|
});
|
|
89
90
|
Object.defineProperty(exports, "phylo", {
|
|
90
91
|
enumerable: true,
|
|
@@ -92,11 +93,11 @@ Object.defineProperty(exports, "phylo", {
|
|
|
92
93
|
});
|
|
93
94
|
Object.defineProperty(exports, "sociogram", {
|
|
94
95
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkCOLTVQWR_cjs.sociogram; }
|
|
96
97
|
});
|
|
97
98
|
Object.defineProperty(exports, "timing", {
|
|
98
99
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk2JDVJRR3_cjs.timing; }
|
|
100
101
|
});
|
|
101
102
|
Object.defineProperty(exports, "logic", {
|
|
102
103
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -13,9 +13,9 @@ export { sld } from './diagrams/sld/index.cjs';
|
|
|
13
13
|
export { entity } from './diagrams/entity/index.cjs';
|
|
14
14
|
export { fishbone } from './diagrams/fishbone/index.cjs';
|
|
15
15
|
export { venn } from './diagrams/venn/index.cjs';
|
|
16
|
-
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-
|
|
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-lsSaw3E0.cjs';
|
|
17
17
|
export { orgchart } from './diagrams/orgchart/index.cjs';
|
|
18
|
-
import { D as DiagramPlugin } from './types-
|
|
18
|
+
import { D as DiagramPlugin } from './types-C4LnMEcB.cjs';
|
|
19
19
|
|
|
20
20
|
declare const decisiontree: DiagramPlugin;
|
|
21
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export { sld } from './diagrams/sld/index.js';
|
|
|
13
13
|
export { entity } from './diagrams/entity/index.js';
|
|
14
14
|
export { fishbone } from './diagrams/fishbone/index.js';
|
|
15
15
|
export { venn } from './diagrams/venn/index.js';
|
|
16
|
-
export { B as BASE_THEMES, a as BIOLOGY_TOKENS, b as BaseTheme, c as BiologyTokens, P as PERSON_TOKENS, d as PersonTokens, R as ResolvedTheme, T as ThemeName, e as TimelineTokens, V as VENN_TOKENS, f as VennTokens, g as flowchart, r as resolveBaseTheme, h as resolveBiologyTheme, i as resolveFishboneTheme, j as resolveGenogramTheme, k as resolvePersonTheme, l as resolveTimelineTheme, m as resolveVennTheme } from './index-
|
|
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-C97K-kuw.js';
|
|
17
17
|
export { orgchart } from './diagrams/orgchart/index.js';
|
|
18
|
-
import { D as DiagramPlugin } from './types-
|
|
18
|
+
import { D as DiagramPlugin } from './types-C4LnMEcB.js';
|
|
19
19
|
|
|
20
20
|
declare const decisiontree: DiagramPlugin;
|
|
21
21
|
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
export { decisiontree, parse, render, timeline } from './chunk-
|
|
2
|
-
export { orgchart } from './chunk-
|
|
1
|
+
export { decisiontree, parse, render, timeline } from './chunk-S3RBKJM5.js';
|
|
2
|
+
export { orgchart } from './chunk-FCGHV6ZK.js';
|
|
3
3
|
export { circuit } from './chunk-PGALHQFF.js';
|
|
4
|
-
export { blockdiagram } from './chunk-
|
|
5
|
-
export { ladder } from './chunk-
|
|
6
|
-
export { sld } from './chunk-
|
|
4
|
+
export { blockdiagram } from './chunk-UGCUNADI.js';
|
|
5
|
+
export { ladder } from './chunk-U6L3FAML.js';
|
|
6
|
+
export { sld } from './chunk-FE6GAUNW.js';
|
|
7
7
|
export { entity } from './chunk-M5B2UUNW.js';
|
|
8
|
-
export { fishbone } from './chunk-
|
|
8
|
+
export { fishbone } from './chunk-ZNDIGQJD.js';
|
|
9
9
|
export { venn } from './chunk-JDTB7IKL.js';
|
|
10
|
-
export { flowchart } from './chunk-
|
|
11
|
-
export { genogram } from './chunk-
|
|
12
|
-
export { ecomap } from './chunk-
|
|
13
|
-
export { pedigree } from './chunk-
|
|
10
|
+
export { flowchart } from './chunk-SN7NTZI6.js';
|
|
11
|
+
export { genogram } from './chunk-2BM3HJSK.js';
|
|
12
|
+
export { ecomap } from './chunk-LR4X4ZRG.js';
|
|
13
|
+
export { pedigree } from './chunk-OC22GGQN.js';
|
|
14
14
|
export { phylo } from './chunk-YQANC7HQ.js';
|
|
15
|
-
export { sociogram } from './chunk-
|
|
16
|
-
|
|
15
|
+
export { sociogram } from './chunk-RP5UATRA.js';
|
|
16
|
+
import './chunk-DNZFOCV7.js';
|
|
17
|
+
export { timing } from './chunk-45KP67RR.js';
|
|
17
18
|
export { logic } from './chunk-5YYAYW67.js';
|
|
18
19
|
export { BASE_THEMES, BIOLOGY_TOKENS, PERSON_TOKENS, VENN_TOKENS, resolveBaseTheme, resolveBiologyTheme, resolveFishboneTheme, resolveGenogramTheme, resolvePersonTheme, resolveTimelineTheme, resolveVennTheme } from './chunk-2VNMKOUO.js';
|
|
19
20
|
import './chunk-KLJEK547.js';
|
package/dist/react.cjs
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkQXIGHMH2_cjs = require('./chunk-QXIGHMH2.cjs');
|
|
4
|
+
require('./chunk-A5D2IMOX.cjs');
|
|
5
5
|
require('./chunk-4S2WILLW.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-MCFQAUQV.cjs');
|
|
7
|
+
require('./chunk-B6INLQBU.cjs');
|
|
8
|
+
require('./chunk-3YZ6FPQW.cjs');
|
|
9
9
|
require('./chunk-ZNOD4VZT.cjs');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-5AEN2PLB.cjs');
|
|
11
11
|
require('./chunk-QSQX77S2.cjs');
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-Z3DE6S64.cjs');
|
|
13
|
+
require('./chunk-6LZJTAA3.cjs');
|
|
14
|
+
require('./chunk-E65ITQXV.cjs');
|
|
15
|
+
require('./chunk-B37IKTI7.cjs');
|
|
16
16
|
require('./chunk-X7RPFTTR.cjs');
|
|
17
|
-
require('./chunk-
|
|
18
|
-
require('./chunk-
|
|
17
|
+
require('./chunk-COLTVQWR.cjs');
|
|
18
|
+
require('./chunk-ULYRO2KY.cjs');
|
|
19
|
+
require('./chunk-2JDVJRR3.cjs');
|
|
19
20
|
require('./chunk-WYFXOXVK.cjs');
|
|
20
21
|
require('./chunk-D7EHZFK4.cjs');
|
|
21
22
|
require('./chunk-HDKDQAEQ.cjs');
|
|
@@ -34,7 +35,7 @@ function SchematexDiagram({
|
|
|
34
35
|
}) {
|
|
35
36
|
const svg = react.useMemo(() => {
|
|
36
37
|
try {
|
|
37
|
-
return
|
|
38
|
+
return chunkQXIGHMH2_cjs.render(dsl, { type, theme, fontFamily, padding });
|
|
38
39
|
} catch (err) {
|
|
39
40
|
const e = err instanceof Error ? err : new Error(String(err));
|
|
40
41
|
onError?.(e);
|
package/dist/react.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/react.tsx"],"names":["useMemo","render","jsx"],"mappings":"
|
|
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"]}
|