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