@life-exe/wiki-engine 0.1.0

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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/dist/analytics/index.d.ts +10 -0
  4. package/dist/chunks/abnfDiagram-VCTEODGH-DyAP6Aua.js +87 -0
  5. package/dist/chunks/arc-OroUeRL_.js +83 -0
  6. package/dist/chunks/architectureDiagram-5GKGNRK7-FjmrDCl4.js +4784 -0
  7. package/dist/chunks/blockDiagram-I7D4REHJ-BF3oIDlI.js +1416 -0
  8. package/dist/chunks/c4Diagram-7LVT6UL2-Cmdq0LZr.js +1511 -0
  9. package/dist/chunks/channel-Bdy1QZHo.js +5 -0
  10. package/dist/chunks/chunk-2Q5K7J3B-BwxRSEKd.js +15 -0
  11. package/dist/chunks/chunk-5VM5RSS4-BtHwUU4T.js +19 -0
  12. package/dist/chunks/chunk-F27PBJKO-DF4TGftR.js +68 -0
  13. package/dist/chunks/chunk-IMKFNOWR-DkBQ-1aV.js +1421 -0
  14. package/dist/chunks/chunk-JWPE2WC7-BIokdAUW.js +9 -0
  15. package/dist/chunks/chunk-POPQ4Y6H-CcjOsf9X.js +20 -0
  16. package/dist/chunks/chunk-SHT3W25Y-lYp5BdEg.js +1695 -0
  17. package/dist/chunks/chunk-SVP7TREG-DN-ravNt.js +664 -0
  18. package/dist/chunks/chunk-TICWLB2K-CtTJ0xaY.js +1534 -0
  19. package/dist/chunks/chunk-XXDRQBXY-BovkWFC0.js +8 -0
  20. package/dist/chunks/classDiagram-ZZMXUADV-CMYS0pHw.js +16 -0
  21. package/dist/chunks/classDiagram-v2-VYDZK3BY-CMYS0pHw.js +16 -0
  22. package/dist/chunks/common-BJ4q25wy.js +12633 -0
  23. package/dist/chunks/cose-bilkent-JH36ORCC-CaMqpJY7.js +2608 -0
  24. package/dist/chunks/cynefin-OW5HDTMX-Bzjecpt-.js +23853 -0
  25. package/dist/chunks/cynefinDiagram-5FMLGOSQ-C0NuKLt0.js +299 -0
  26. package/dist/chunks/cytoscape.esm-DmPrb1GM.js +18787 -0
  27. package/dist/chunks/dagre-GXQ25YYZ-Ds09_NdN.js +461 -0
  28. package/dist/chunks/defaultLocale-BgPVtth8.js +171 -0
  29. package/dist/chunks/diagram-S7CK7UJ4-IvSazk1O.js +349 -0
  30. package/dist/chunks/diagram-UQ7AKVKN-58epdx5V.js +223 -0
  31. package/dist/chunks/diagram-VSXAHHWV-BrzRGMeV.js +466 -0
  32. package/dist/chunks/diagram-VX7I27RA-DPL0Nw6d.js +530 -0
  33. package/dist/chunks/diagram-Z3DM3KII-8VWVu0I5.js +143 -0
  34. package/dist/chunks/ebnfDiagram-PWID7BFC-DeByR_ze.js +109 -0
  35. package/dist/chunks/erDiagram-RLTQ6QDP-C9uo9iE1.js +1060 -0
  36. package/dist/chunks/flowDiagram-HODETNUW-BpoY3OMp.js +7 -0
  37. package/dist/chunks/ganttDiagram-EL5Y4UJY-psdwnC-T.js +2711 -0
  38. package/dist/chunks/gitGraphDiagram-WWUBYQGX-vsDfkn_Q.js +828 -0
  39. package/dist/chunks/index-f7Uzykhj.js +38262 -0
  40. package/dist/chunks/infoDiagram-27XIBGKW-8K-eQZiU.js +24 -0
  41. package/dist/chunks/init-DjUOC4st.js +16 -0
  42. package/dist/chunks/ishikawaDiagram-5VMMS53U-CuqR1k5i.js +622 -0
  43. package/dist/chunks/journeyDiagram-3NMN7TZE-BPW1nmwZ.js +834 -0
  44. package/dist/chunks/kanban-definition-UXKFOSKX-iY6-d6jO.js +726 -0
  45. package/dist/chunks/katex-jHfnQmlp.js +11682 -0
  46. package/dist/chunks/layout-CgV9vOdp.js +1704 -0
  47. package/dist/chunks/linear-BzcaSMTS.js +259 -0
  48. package/dist/chunks/mindmap-definition-YA3MSWOX-CaLfHyv0.js +831 -0
  49. package/dist/chunks/ordinal-DfAQgscy.js +61 -0
  50. package/dist/chunks/pegDiagram-XKGWAZYB-6Y28VvVh.js +95 -0
  51. package/dist/chunks/pieDiagram-E7YTZNPT-OrjeRxhs.js +209 -0
  52. package/dist/chunks/quadrantDiagram-AXDQQJYC-rgw2lV2J.js +1025 -0
  53. package/dist/chunks/railroadDiagram-O6MQD6OU-D6QNO5r1.js +77 -0
  54. package/dist/chunks/requirementDiagram-BXWQKSXE-a8tNRSuE.js +884 -0
  55. package/dist/chunks/sankeyDiagram-P5KCCOFB-CdaC8rLw.js +847 -0
  56. package/dist/chunks/sequenceDiagram-WJ2MYXX4-CGLi38Hj.js +2898 -0
  57. package/dist/chunks/sizeCapture-INFHLROL-g5RJXnik.js +47 -0
  58. package/dist/chunks/stateDiagram-D77RDMKH-Cou0eVl1.js +262 -0
  59. package/dist/chunks/stateDiagram-v2-MP3YSRHH-BHQspnUg.js +16 -0
  60. package/dist/chunks/swimlanes-42K2YHIH-BU7S1WgJ.js +5239 -0
  61. package/dist/chunks/swimlanesDiagram-VR7AAH4N-BsEplbno.js +13 -0
  62. package/dist/chunks/timeline-definition-24CTP7MA-BB-IyxWL.js +1066 -0
  63. package/dist/chunks/vennDiagram-4TSXK5OY-BToYolPI.js +1585 -0
  64. package/dist/chunks/wardleyDiagram-VM6X3IG4-BgoueOw_.js +684 -0
  65. package/dist/chunks/xychartDiagram-S5SC5T6Z-CF0fWv-W.js +1492 -0
  66. package/dist/components/CodeBlock.d.ts +5 -0
  67. package/dist/components/CommunityLinks.d.ts +21 -0
  68. package/dist/components/CookieConsent.d.ts +2 -0
  69. package/dist/components/DocLinkCard.d.ts +6 -0
  70. package/dist/components/LecturePageView.d.ts +3 -0
  71. package/dist/components/MermaidDiagram.d.ts +3 -0
  72. package/dist/components/SearchPopup.d.ts +6 -0
  73. package/dist/components/WikiApp.d.ts +9 -0
  74. package/dist/components/WikiLayout.d.ts +2 -0
  75. package/dist/components/WikiPageView.d.ts +6 -0
  76. package/dist/components/ZoomableImage.d.ts +2 -0
  77. package/dist/context/LangContext.d.ts +2 -0
  78. package/dist/context/WikiContext.d.ts +18 -0
  79. package/dist/data.d.ts +8 -0
  80. package/dist/hooks/useLanguage.d.ts +4 -0
  81. package/dist/hooks/useTheme.d.ts +5 -0
  82. package/dist/hooks/useWiki.d.ts +2 -0
  83. package/dist/index.d.ts +24 -0
  84. package/dist/index.js +45 -0
  85. package/dist/languages/ue-cpp.d.ts +7 -0
  86. package/dist/languages/ue-cpp.js +21 -0
  87. package/dist/types.d.ts +119 -0
  88. package/dist/wiki-engine.css +1 -0
  89. package/package.json +76 -0
@@ -0,0 +1,109 @@
1
+ import { g as l, r as m, d as n } from "./chunk-SVP7TREG-DN-ravNt.js";
2
+ import { p } from "./chunk-JWPE2WC7-BIokdAUW.js";
3
+ import { _ as t, l as o } from "./index-f7Uzykhj.js";
4
+ import { M as u, a as f } from "./cynefin-OW5HDTMX-Bzjecpt-.js";
5
+ var c = f().RailroadEbnf.parser.LangiumParser, s = /* @__PURE__ */ t((e) => {
6
+ const r = e.alternatives.map(E);
7
+ return r.length === 1 ? r[0] : {
8
+ type: "choice",
9
+ alternatives: r
10
+ };
11
+ }, "transformChoice"), E = /* @__PURE__ */ t((e) => {
12
+ const r = e.elements.map(d);
13
+ return r.length === 1 ? r[0] : {
14
+ type: "sequence",
15
+ elements: r
16
+ };
17
+ }, "transformSequence"), i = /* @__PURE__ */ t((e) => {
18
+ switch (e.$type) {
19
+ case "EbnfTerminal":
20
+ return {
21
+ type: "terminal",
22
+ value: e.value
23
+ };
24
+ case "EbnfNonTerminal":
25
+ return {
26
+ type: "nonterminal",
27
+ name: e.name
28
+ };
29
+ case "EbnfSpecial":
30
+ return {
31
+ type: "special",
32
+ text: e.text
33
+ };
34
+ case "EbnfGroup":
35
+ return s(e.element);
36
+ case "EbnfOptional":
37
+ return {
38
+ type: "optional",
39
+ element: s(e.element)
40
+ };
41
+ case "EbnfRepetition":
42
+ return {
43
+ type: "repetition",
44
+ element: s(e.element),
45
+ min: 0,
46
+ max: 1 / 0
47
+ };
48
+ default:
49
+ throw new Error(`Unsupported EBNF primary node: ${e.$type}`);
50
+ }
51
+ }, "transformPrimary"), b = /* @__PURE__ */ t((e, r) => {
52
+ switch (r.$type) {
53
+ case "EbnfOptionalPostfix":
54
+ return {
55
+ type: "optional",
56
+ element: e
57
+ };
58
+ case "EbnfZeroOrMorePostfix":
59
+ return {
60
+ type: "repetition",
61
+ element: e,
62
+ min: 0,
63
+ max: 1 / 0
64
+ };
65
+ case "EbnfOneOrMorePostfix":
66
+ return {
67
+ type: "repetition",
68
+ element: e,
69
+ min: 1,
70
+ max: 1 / 0
71
+ };
72
+ case "EbnfExceptionPostfix":
73
+ return {
74
+ type: "sequence",
75
+ elements: [
76
+ e,
77
+ { type: "terminal", value: "-" },
78
+ i(r.except)
79
+ ]
80
+ };
81
+ default:
82
+ throw new Error(`Unsupported EBNF postfix node: ${r.$type}`);
83
+ }
84
+ }, "transformPostfix"), d = /* @__PURE__ */ t((e) => e.postfixes.reduce((r, a) => b(r, a), i(e.base)), "transformTerm"), y = /* @__PURE__ */ t((e) => ({
85
+ name: e.name,
86
+ definition: s(e.definition)
87
+ }), "transformRule"), v = /* @__PURE__ */ t((e) => {
88
+ p(e, n), e.title && n.setTitle(e.title), e.rules.map((r) => n.addRule(y(r)));
89
+ }, "populateDb"), g = {
90
+ parse: /* @__PURE__ */ t((e) => {
91
+ n.clear(), o.debug("[EBNF Parser] Starting Langium parse");
92
+ const r = c.parse(e);
93
+ if (r.lexerErrors.length > 0 || r.parserErrors.length > 0)
94
+ throw new u(r);
95
+ const a = r.value;
96
+ o.debug("[EBNF Parser] Parsed rules:", a.rules.length), v(a), o.debug("[EBNF Parser] Parse complete");
97
+ }, "parse"),
98
+ parser: {
99
+ yy: n
100
+ }
101
+ }, N = {
102
+ parser: g,
103
+ db: n,
104
+ renderer: m,
105
+ styles: l
106
+ };
107
+ export {
108
+ N as diagram
109
+ };