schematex 0.6.8 → 0.6.10

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/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAGBY7KLL_cjs = require('./chunk-AGBY7KLL.cjs');
3
+ var chunk3YRYBTLG_cjs = require('./chunk-3YRYBTLG.cjs');
4
4
  var chunkUHPGWO77_cjs = require('./chunk-UHPGWO77.cjs');
5
5
  var chunkJ3EPFZPX_cjs = require('./chunk-J3EPFZPX.cjs');
6
6
  var chunkSHMG7BVF_cjs = require('./chunk-SHMG7BVF.cjs');
@@ -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(chunkAGBY7KLL_cjs.GEOMETRY)) {
114
+ for (const [id, g] of Object.entries(chunk3YRYBTLG_cjs.GEOMETRY)) {
115
115
  let inner;
116
116
  try {
117
- inner = chunkAGBY7KLL_cjs.renderEquip(id, "");
117
+ inner = chunk3YRYBTLG_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 } = chunkAGBY7KLL_cjs.iconSize(kind);
227
+ const { w, h } = chunk3YRYBTLG_cjs.iconSize(kind);
228
228
  const device = { id: kind, kind, label: humanize(kind), groups: [] };
229
229
  let inner;
230
230
  try {
231
- inner = chunkAGBY7KLL_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
231
+ inner = chunk3YRYBTLG_cjs.drawDeviceIcon(device, { x: 0, y: 0, w, h });
232
232
  } catch {
233
233
  continue;
234
234
  }
@@ -286,75 +286,75 @@ function getSymbolCatalog(type) {
286
286
 
287
287
  Object.defineProperty(exports, "bowtie", {
288
288
  enumerable: true,
289
- get: function () { return chunkAGBY7KLL_cjs.bowtie; }
289
+ get: function () { return chunk3YRYBTLG_cjs.bowtie; }
290
290
  });
291
291
  Object.defineProperty(exports, "decisiontree", {
292
292
  enumerable: true,
293
- get: function () { return chunkAGBY7KLL_cjs.decisiontree; }
293
+ get: function () { return chunk3YRYBTLG_cjs.decisiontree; }
294
294
  });
295
295
  Object.defineProperty(exports, "faulttree", {
296
296
  enumerable: true,
297
- get: function () { return chunkAGBY7KLL_cjs.faulttree; }
297
+ get: function () { return chunk3YRYBTLG_cjs.faulttree; }
298
298
  });
299
299
  Object.defineProperty(exports, "network", {
300
300
  enumerable: true,
301
- get: function () { return chunkAGBY7KLL_cjs.network; }
301
+ get: function () { return chunk3YRYBTLG_cjs.network; }
302
302
  });
303
303
  Object.defineProperty(exports, "parse", {
304
304
  enumerable: true,
305
- get: function () { return chunkAGBY7KLL_cjs.parse; }
305
+ get: function () { return chunk3YRYBTLG_cjs.parse; }
306
306
  });
307
307
  Object.defineProperty(exports, "parseResult", {
308
308
  enumerable: true,
309
- get: function () { return chunkAGBY7KLL_cjs.parseResult; }
309
+ get: function () { return chunk3YRYBTLG_cjs.parseResult; }
310
310
  });
311
311
  Object.defineProperty(exports, "pert", {
312
312
  enumerable: true,
313
- get: function () { return chunkAGBY7KLL_cjs.pert; }
313
+ get: function () { return chunk3YRYBTLG_cjs.pert; }
314
314
  });
315
315
  Object.defineProperty(exports, "petri", {
316
316
  enumerable: true,
317
- get: function () { return chunkAGBY7KLL_cjs.petri; }
317
+ get: function () { return chunk3YRYBTLG_cjs.petri; }
318
318
  });
319
319
  Object.defineProperty(exports, "pid", {
320
320
  enumerable: true,
321
- get: function () { return chunkAGBY7KLL_cjs.pid; }
321
+ get: function () { return chunk3YRYBTLG_cjs.pid; }
322
322
  });
323
323
  Object.defineProperty(exports, "prisma", {
324
324
  enumerable: true,
325
- get: function () { return chunkAGBY7KLL_cjs.prisma; }
325
+ get: function () { return chunk3YRYBTLG_cjs.prisma; }
326
326
  });
327
327
  Object.defineProperty(exports, "render", {
328
328
  enumerable: true,
329
- get: function () { return chunkAGBY7KLL_cjs.render; }
329
+ get: function () { return chunk3YRYBTLG_cjs.render; }
330
330
  });
331
331
  Object.defineProperty(exports, "renderPreview", {
332
332
  enumerable: true,
333
- get: function () { return chunkAGBY7KLL_cjs.renderPreview; }
333
+ get: function () { return chunk3YRYBTLG_cjs.renderPreview; }
334
334
  });
335
335
  Object.defineProperty(exports, "renderResult", {
336
336
  enumerable: true,
337
- get: function () { return chunkAGBY7KLL_cjs.renderResult; }
337
+ get: function () { return chunk3YRYBTLG_cjs.renderResult; }
338
338
  });
339
339
  Object.defineProperty(exports, "sequence", {
340
340
  enumerable: true,
341
- get: function () { return chunkAGBY7KLL_cjs.sequence; }
341
+ get: function () { return chunk3YRYBTLG_cjs.sequence; }
342
342
  });
343
343
  Object.defineProperty(exports, "state", {
344
344
  enumerable: true,
345
- get: function () { return chunkAGBY7KLL_cjs.state; }
345
+ get: function () { return chunk3YRYBTLG_cjs.state; }
346
346
  });
347
347
  Object.defineProperty(exports, "timeline", {
348
348
  enumerable: true,
349
- get: function () { return chunkAGBY7KLL_cjs.timeline; }
349
+ get: function () { return chunk3YRYBTLG_cjs.timeline; }
350
350
  });
351
351
  Object.defineProperty(exports, "umlclass", {
352
352
  enumerable: true,
353
- get: function () { return chunkAGBY7KLL_cjs.umlclass; }
353
+ get: function () { return chunk3YRYBTLG_cjs.umlclass; }
354
354
  });
355
355
  Object.defineProperty(exports, "usecase", {
356
356
  enumerable: true,
357
- get: function () { return chunkAGBY7KLL_cjs.usecase; }
357
+ get: function () { return chunk3YRYBTLG_cjs.usecase; }
358
358
  });
359
359
  Object.defineProperty(exports, "orgchart", {
360
360
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-J2TT7PGI.js';
2
- export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-J2TT7PGI.js';
1
+ import { iconSize, drawDeviceIcon, GEOMETRY, renderEquip } from './chunk-6AWASOFO.js';
2
+ export { bowtie, decisiontree, faulttree, network, parse, parseResult, pert, petri, pid, prisma, render, renderPreview, renderResult, sequence, state, timeline, umlclass, usecase } from './chunk-6AWASOFO.js';
3
3
  export { orgchart } from './chunk-MPCSWRZC.js';
4
4
  import { EXTRA_SYMBOLS, SYMBOLS } from './chunk-2TUZ3QJA.js';
5
5
  export { circuit } from './chunk-2TUZ3QJA.js';
package/dist/react.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkAGBY7KLL_cjs = require('./chunk-AGBY7KLL.cjs');
3
+ var chunk3YRYBTLG_cjs = require('./chunk-3YRYBTLG.cjs');
4
4
  require('./chunk-UHPGWO77.cjs');
5
5
  require('./chunk-J3EPFZPX.cjs');
6
6
  require('./chunk-SHMG7BVF.cjs');
@@ -37,7 +37,7 @@ function SchematexDiagram({
37
37
  onError
38
38
  }) {
39
39
  const svg = react.useMemo(() => {
40
- const result = chunkAGBY7KLL_cjs.renderResult(dsl, { type, theme, fontFamily, padding });
40
+ const result = chunk3YRYBTLG_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.js CHANGED
@@ -1,4 +1,4 @@
1
- import { renderResult } from './chunk-J2TT7PGI.js';
1
+ import { renderResult } from './chunk-6AWASOFO.js';
2
2
  import './chunk-MPCSWRZC.js';
3
3
  import './chunk-2TUZ3QJA.js';
4
4
  import './chunk-C7V57V6O.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schematex",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "description": "Every diagram a doctor, engineer, or lawyer would actually use. 36 industry-standard diagrams (genogram, pedigree, ladder logic, SLD, FBD, SFC, P&ID, UML class, UML use case, UML sequence, fault tree, bowtie, PRISMA, phylo, fishbone, entity structure, ...) from a text DSL. Free, fully open source, made for AI. Pure SVG, zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -132,7 +132,7 @@
132
132
  "lint": "eslint src/",
133
133
  "typecheck": "npm run build:ai && tsc --noEmit",
134
134
  "validate:examples": "npm run build && node scripts/validate-examples.mjs",
135
- "prepublishOnly": "npm run build"
135
+ "prepublishOnly": "npm run build && npm run typecheck"
136
136
  },
137
137
  "keywords": [
138
138
  "diagram",
@@ -172,11 +172,11 @@
172
172
  "license": "AGPL-3.0-only",
173
173
  "repository": {
174
174
  "type": "git",
175
- "url": "https://github.com/victorzhrn/Schematex"
175
+ "url": "https://github.com/SchemaTex/SchemaTex"
176
176
  },
177
177
  "homepage": "https://schematex.js.org",
178
178
  "bugs": {
179
- "url": "https://github.com/victorzhrn/Schematex/issues"
179
+ "url": "https://github.com/SchemaTex/SchemaTex/issues"
180
180
  },
181
181
  "peerDependencies": {
182
182
  "ai": ">=5.0.0",