schematex 0.9.12 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/ai/ai-sdk.cjs +16 -16
  2. package/dist/ai/ai-sdk.js +11 -11
  3. package/dist/ai/index.cjs +25 -25
  4. package/dist/ai/index.js +12 -12
  5. package/dist/browser.cjs +17 -17
  6. package/dist/browser.js +11 -11
  7. package/dist/{chunk-HEGDKO2E.cjs → chunk-24YHD4YI.cjs} +3 -2
  8. package/dist/chunk-24YHD4YI.cjs.map +1 -0
  9. package/dist/{chunk-6KW7XSUR.js → chunk-2PRNDY5I.js} +3 -3
  10. package/dist/{chunk-6KW7XSUR.js.map → chunk-2PRNDY5I.js.map} +1 -1
  11. package/dist/{chunk-NP7N3DZG.js → chunk-2ZHP4TXP.js} +3 -3
  12. package/dist/{chunk-NP7N3DZG.js.map → chunk-2ZHP4TXP.js.map} +1 -1
  13. package/dist/{chunk-32LOZTNP.js → chunk-37WDY4G4.js} +3 -2
  14. package/dist/chunk-37WDY4G4.js.map +1 -0
  15. package/dist/{chunk-3KRL2EGN.cjs → chunk-3TGOOZ36.cjs} +13 -6
  16. package/dist/chunk-3TGOOZ36.cjs.map +1 -0
  17. package/dist/{chunk-Q5MQLUOH.js → chunk-6GVFKOSH.js} +3 -3
  18. package/dist/{chunk-Q5MQLUOH.js.map → chunk-6GVFKOSH.js.map} +1 -1
  19. package/dist/{chunk-2KTQ75LN.js → chunk-6KRSBSNT.js} +12 -7
  20. package/dist/chunk-6KRSBSNT.js.map +1 -0
  21. package/dist/{chunk-246OJILS.cjs → chunk-7DQXFTA7.cjs} +4 -4
  22. package/dist/{chunk-246OJILS.cjs.map → chunk-7DQXFTA7.cjs.map} +1 -1
  23. package/dist/{chunk-YLG7S4SM.cjs → chunk-7ZABGRZZ.cjs} +5 -5
  24. package/dist/{chunk-YLG7S4SM.cjs.map → chunk-7ZABGRZZ.cjs.map} +1 -1
  25. package/dist/{chunk-YFPDZVB7.cjs → chunk-AQENURKO.cjs} +4 -4
  26. package/dist/{chunk-YFPDZVB7.cjs.map → chunk-AQENURKO.cjs.map} +1 -1
  27. package/dist/{chunk-OGF7QM74.cjs → chunk-AWUUGDN4.cjs} +4 -4
  28. package/dist/{chunk-OGF7QM74.cjs.map → chunk-AWUUGDN4.cjs.map} +1 -1
  29. package/dist/{chunk-ZRFKIERV.js → chunk-BGFKTJBZ.js} +3 -3
  30. package/dist/{chunk-ZRFKIERV.js.map → chunk-BGFKTJBZ.js.map} +1 -1
  31. package/dist/{chunk-F5RYWDWO.cjs → chunk-CYBBBBMZ.cjs} +4 -4
  32. package/dist/{chunk-F5RYWDWO.cjs.map → chunk-CYBBBBMZ.cjs.map} +1 -1
  33. package/dist/{chunk-QC2RICQ4.cjs → chunk-F3JYKM6M.cjs} +4 -4
  34. package/dist/{chunk-QC2RICQ4.cjs.map → chunk-F3JYKM6M.cjs.map} +1 -1
  35. package/dist/{chunk-NB7MFQCZ.js → chunk-HZTHSNUN.js} +3 -3
  36. package/dist/{chunk-NB7MFQCZ.js.map → chunk-HZTHSNUN.js.map} +1 -1
  37. package/dist/{chunk-W4UVDMUC.js → chunk-I7UYVCKH.js} +3 -3
  38. package/dist/{chunk-W4UVDMUC.js.map → chunk-I7UYVCKH.js.map} +1 -1
  39. package/dist/{chunk-HIWJMJJB.js → chunk-ITNCO3MZ.js} +3 -3
  40. package/dist/{chunk-HIWJMJJB.js.map → chunk-ITNCO3MZ.js.map} +1 -1
  41. package/dist/{chunk-JLLDJCLW.js → chunk-JG5CVYXC.js} +63 -15
  42. package/dist/{chunk-JLLDJCLW.js.map → chunk-JG5CVYXC.js.map} +1 -1
  43. package/dist/{chunk-AETIGJXP.js → chunk-KWY52MLQ.js} +3 -3
  44. package/dist/{chunk-AETIGJXP.js.map → chunk-KWY52MLQ.js.map} +1 -1
  45. package/dist/{chunk-DLXDR2E7.cjs → chunk-TIHHISCK.cjs} +4 -4
  46. package/dist/{chunk-DLXDR2E7.cjs.map → chunk-TIHHISCK.cjs.map} +1 -1
  47. package/dist/{chunk-GTCGATOL.cjs → chunk-US4QZ7J7.cjs} +4 -4
  48. package/dist/{chunk-GTCGATOL.cjs.map → chunk-US4QZ7J7.cjs.map} +1 -1
  49. package/dist/{chunk-MGMR6V6N.cjs → chunk-V5TY3N2W.cjs} +74 -26
  50. package/dist/chunk-V5TY3N2W.cjs.map +1 -0
  51. package/dist/diagrams/circuit/index.cjs +8 -8
  52. package/dist/diagrams/circuit/index.js +1 -1
  53. package/dist/diagrams/ecomap/index.cjs +7 -7
  54. package/dist/diagrams/ecomap/index.js +2 -2
  55. package/dist/diagrams/fishbone/index.cjs +8 -8
  56. package/dist/diagrams/fishbone/index.js +2 -2
  57. package/dist/diagrams/flowchart/index.cjs +8 -8
  58. package/dist/diagrams/flowchart/index.js +2 -2
  59. package/dist/diagrams/genogram/index.cjs +9 -9
  60. package/dist/diagrams/genogram/index.js +2 -2
  61. package/dist/diagrams/ladder/index.cjs +6 -6
  62. package/dist/diagrams/ladder/index.js +2 -2
  63. package/dist/diagrams/pedigree/index.cjs +7 -7
  64. package/dist/diagrams/pedigree/index.js +2 -2
  65. package/dist/diagrams/sld/index.cjs +8 -8
  66. package/dist/diagrams/sld/index.js +2 -2
  67. package/dist/index.cjs +60 -60
  68. package/dist/index.js +14 -14
  69. package/dist/react.cjs +11 -11
  70. package/dist/react.js +10 -10
  71. package/package.json +1 -1
  72. package/dist/chunk-2KTQ75LN.js.map +0 -1
  73. package/dist/chunk-32LOZTNP.js.map +0 -1
  74. package/dist/chunk-3KRL2EGN.cjs.map +0 -1
  75. package/dist/chunk-HEGDKO2E.cjs.map +0 -1
  76. package/dist/chunk-MGMR6V6N.cjs.map +0 -1
@@ -1,17 +1,17 @@
1
1
  import { orgchart } from './chunk-EB7T5SEO.js';
2
2
  import { siteplan } from './chunk-PGMKMIGM.js';
3
- import { circuit } from './chunk-32LOZTNP.js';
3
+ import { circuit } from './chunk-37WDY4G4.js';
4
4
  import { blockdiagram } from './chunk-P4U565XH.js';
5
- import { ladder } from './chunk-W4UVDMUC.js';
6
- import { sld } from './chunk-Q5MQLUOH.js';
5
+ import { ladder } from './chunk-I7UYVCKH.js';
6
+ import { sld } from './chunk-6GVFKOSH.js';
7
7
  import { entity } from './chunk-2IRYXK4M.js';
8
- import { fishbone } from './chunk-NP7N3DZG.js';
8
+ import { fishbone } from './chunk-2ZHP4TXP.js';
9
9
  import { venn } from './chunk-KUSW5I2P.js';
10
- import { flowchart, layoutFlowchart } from './chunk-ZRFKIERV.js';
11
- import { genogram } from './chunk-AETIGJXP.js';
12
- import { ecomap, estimateTextWidth } from './chunk-NB7MFQCZ.js';
13
- import { pedigree } from './chunk-HIWJMJJB.js';
14
- import { parseFrontmatter } from './chunk-2KTQ75LN.js';
10
+ import { flowchart, layoutFlowchart } from './chunk-BGFKTJBZ.js';
11
+ import { genogram } from './chunk-KWY52MLQ.js';
12
+ import { ecomap, estimateTextWidth } from './chunk-HZTHSNUN.js';
13
+ import { pedigree } from './chunk-ITNCO3MZ.js';
14
+ import { parseFrontmatter, stripComments, UNIVERSAL_COMMENT_MARKERS } from './chunk-6KRSBSNT.js';
15
15
  import { phylo } from './chunk-QMJHLDGY.js';
16
16
  import { sociogram } from './chunk-7NO5LYLL.js';
17
17
  import { timing } from './chunk-MTIZIHWE.js';
@@ -29965,7 +29965,23 @@ var FURNITURE_ALIASES = {
29965
29965
  panel: "electrical-panel",
29966
29966
  "breaker-panel": "electrical-panel",
29967
29967
  db: "distribution-board",
29968
- "consumer-unit": "distribution-board"
29968
+ "consumer-unit": "distribution-board",
29969
+ // Common everyday synonyms an LLM reaches for that map cleanly onto an
29970
+ // existing type. Keeps a valid layout from failing on a vocabulary gap.
29971
+ "console-table": "side-table",
29972
+ console: "side-table",
29973
+ "end-table": "side-table",
29974
+ couch: "sofa",
29975
+ settee: "loveseat",
29976
+ "tv-console": "tv-stand",
29977
+ "media-console": "tv-stand",
29978
+ "entertainment-center": "tv-stand",
29979
+ refrigerator: "fridge",
29980
+ cooktop: "stove",
29981
+ stovetop: "stove",
29982
+ armoire: "wardrobe",
29983
+ wc: "toilet",
29984
+ "water-closet": "toilet"
29969
29985
  };
29970
29986
  function parseFurnitureType(t, ln) {
29971
29987
  const word = isWord(t) ? t.word : "";
@@ -36687,6 +36703,9 @@ function parseMermaidErd(lines) {
36687
36703
  const entityMap = /* @__PURE__ */ new Map();
36688
36704
  const order = [];
36689
36705
  const refs = [];
36706
+ let title2;
36707
+ let direction = "LR";
36708
+ let notation = "crowsfoot";
36690
36709
  const ensure = (id) => {
36691
36710
  let e = entityMap.get(id);
36692
36711
  if (!e) {
@@ -36700,6 +36719,33 @@ function parseMermaidErd(lines) {
36700
36719
  while (i < lines.length) {
36701
36720
  const t = lines[i].text;
36702
36721
  const ln = lines[i].lineNumber;
36722
+ const lower = t.toLowerCase();
36723
+ if (lower.startsWith("title:")) {
36724
+ title2 = unquote7(t.slice("title:".length).trim());
36725
+ i++;
36726
+ continue;
36727
+ }
36728
+ if (lower.startsWith("direction:")) {
36729
+ const v = t.slice("direction:".length).trim().toUpperCase();
36730
+ if (v !== "LR" && v !== "TB") {
36731
+ throw new ErdParseError(`Unknown direction '${v}'. Use LR or TB.`, ln);
36732
+ }
36733
+ direction = v;
36734
+ i++;
36735
+ continue;
36736
+ }
36737
+ if (lower.startsWith("notation:")) {
36738
+ const v = t.slice("notation:".length).trim().toLowerCase();
36739
+ if (v !== "crowsfoot") {
36740
+ throw new ErdParseError(
36741
+ `notation '${v}' is documented but not yet implemented in v0.1; use 'crowsfoot'.`,
36742
+ ln
36743
+ );
36744
+ }
36745
+ notation = v;
36746
+ i++;
36747
+ continue;
36748
+ }
36703
36749
  const inlineBlock = new RegExp(`^(${MERMAID_NAME.source})\\s*\\{\\s*(.*?)\\s*\\}$`).exec(t);
36704
36750
  const openBlock = new RegExp(`^(${MERMAID_NAME.source})\\s*\\{$`).exec(t);
36705
36751
  if (inlineBlock) {
@@ -36746,8 +36792,9 @@ function parseMermaidErd(lines) {
36746
36792
  }
36747
36793
  return {
36748
36794
  type: "erd",
36749
- notation: "crowsfoot",
36750
- direction: "LR",
36795
+ notation,
36796
+ direction,
36797
+ title: title2,
36751
36798
  entities: order.map((id) => entityMap.get(id)),
36752
36799
  refs
36753
36800
  };
@@ -42750,7 +42797,8 @@ function normalizeHeader(text2, type) {
42750
42797
  return text2;
42751
42798
  }
42752
42799
  function preprocess9(text2) {
42753
- const { data, body } = parseFrontmatter(stripCodeFences(text2));
42800
+ const { data, body: rawBody } = parseFrontmatter(stripCodeFences(text2));
42801
+ const body = stripComments(rawBody, UNIVERSAL_COMMENT_MARKERS);
42754
42802
  if (!data.title) return body;
42755
42803
  const safeTitle = data.title.replace(/"/g, '\\"');
42756
42804
  const lines = body.split("\n");
@@ -42859,5 +42907,5 @@ function renderWithPlugin(prepared, plugin, config) {
42859
42907
  }
42860
42908
 
42861
42909
  export { FLOORPLAN_SYMBOLS, GEOMETRY, bowtie2 as bowtie, causalloop, comparison, decisiontree, drawDeviceIcon, epc, eventtree, faulttree, floorplan, fmea, gitgraph, iconSize, idef0, markov, network, parse, parseResult, pert, petri, pid, playbook, prisma, rbd, render, renderEquip, renderPreview, renderResult, sequence, state, threatmodel, timeline, umlclass, usecase, welding };
42862
- //# sourceMappingURL=chunk-JLLDJCLW.js.map
42863
- //# sourceMappingURL=chunk-JLLDJCLW.js.map
42910
+ //# sourceMappingURL=chunk-JG5CVYXC.js.map
42911
+ //# sourceMappingURL=chunk-JG5CVYXC.js.map