@camunda/copilot-chat 0.4.1 → 0.4.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.
Files changed (220) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.js +5424 -28
  3. package/dist/package.json +4 -2
  4. package/package.json +4 -2
  5. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts +0 -17
  6. package/dist/ConversationHistoryPanel/ConversationHistoryPanel.d.ts.map +0 -1
  7. package/dist/ConversationHistoryPanel/index.d.ts +0 -2
  8. package/dist/ConversationHistoryPanel/index.d.ts.map +0 -1
  9. package/dist/CopilotChat.d.ts +0 -18
  10. package/dist/CopilotChat.d.ts.map +0 -1
  11. package/dist/CopilotSidecar.d.ts +0 -12
  12. package/dist/CopilotSidecar.d.ts.map +0 -1
  13. package/dist/apl-B2DGVGxc.mjs +0 -76
  14. package/dist/asciiarmor-2LVJmxlE.mjs +0 -34
  15. package/dist/asn1-jKiBa2Ya.mjs +0 -95
  16. package/dist/asterisk-DS281yxp.mjs +0 -271
  17. package/dist/clike-BMALKCNj.mjs +0 -620
  18. package/dist/clojure-CCKyeQKf.mjs +0 -800
  19. package/dist/cmake-CuaCgAKt.mjs +0 -28
  20. package/dist/cobol-BlTKFDRj.mjs +0 -72
  21. package/dist/codemirror-runtime-CEPpTXJs.mjs +0 -14620
  22. package/dist/coffeescript-BVCvwO8I.mjs +0 -179
  23. package/dist/commonlisp-D_kxz07b.mjs +0 -75
  24. package/dist/crystal-D309uH6_.mjs +0 -217
  25. package/dist/css-BkF-NPzE.mjs +0 -1553
  26. package/dist/cypher-BMq4Fwjl.mjs +0 -68
  27. package/dist/d-BZcgY6La.mjs +0 -127
  28. package/dist/diff-Cg9d_RX2.mjs +0 -18
  29. package/dist/dockerfile-BmicwmnY.mjs +0 -194
  30. package/dist/dtd-CtLokQ-U.mjs +0 -84
  31. package/dist/dylan-QYeExnWK.mjs +0 -234
  32. package/dist/ebnf-DUPDuY4r.mjs +0 -78
  33. package/dist/ecl-CiXN-g_D.mjs +0 -121
  34. package/dist/eiffel-yQhjl4T1.mjs +0 -110
  35. package/dist/elm-CNT9vbN0.mjs +0 -108
  36. package/dist/erlang-CFOYdy9e.mjs +0 -487
  37. package/dist/factor-CYi8BYN3.mjs +0 -65
  38. package/dist/fcl-CPC2WYrI.mjs +0 -103
  39. package/dist/forth-BmxRyE9S.mjs +0 -60
  40. package/dist/fortran-9bvPyrOW.mjs +0 -442
  41. package/dist/gas-cpmYfFX2.mjs +0 -183
  42. package/dist/gherkin-CJuwpceU.mjs +0 -34
  43. package/dist/groovy-DZeT_VM-.mjs +0 -146
  44. package/dist/haskell-CxiO_7JL.mjs +0 -375
  45. package/dist/haxe-70NVW1pR.mjs +0 -359
  46. package/dist/hooks/index.d.ts +0 -7
  47. package/dist/hooks/index.d.ts.map +0 -1
  48. package/dist/hooks/useAgentAdapter.d.ts +0 -3
  49. package/dist/hooks/useAgentAdapter.d.ts.map +0 -1
  50. package/dist/hooks/useConversationLifecycle.d.ts +0 -15
  51. package/dist/hooks/useConversationLifecycle.d.ts.map +0 -1
  52. package/dist/hooks/useCopilotSidecar.d.ts +0 -6
  53. package/dist/hooks/useCopilotSidecar.d.ts.map +0 -1
  54. package/dist/hooks/useEventProcessing.d.ts +0 -25
  55. package/dist/hooks/useEventProcessing.d.ts.map +0 -1
  56. package/dist/hooks/useToolExecution.d.ts +0 -11
  57. package/dist/hooks/useToolExecution.d.ts.map +0 -1
  58. package/dist/hooks/useTransportSubscription.d.ts +0 -6
  59. package/dist/hooks/useTransportSubscription.d.ts.map +0 -1
  60. package/dist/http-D9LttvKF.mjs +0 -44
  61. package/dist/idl-B6TRFYjl.mjs +0 -947
  62. package/dist/index-B0VVkMg4.mjs +0 -302
  63. package/dist/index-B2hDZEh2.mjs +0 -76
  64. package/dist/index-BX9xjSNq.mjs +0 -101
  65. package/dist/index-BbhTSloX.mjs +0 -946
  66. package/dist/index-BjyHfjEa.mjs +0 -248
  67. package/dist/index-BljerkkH.mjs +0 -94
  68. package/dist/index-Bo9ApYYN.mjs +0 -289
  69. package/dist/index-BoHrWn4U.mjs +0 -253
  70. package/dist/index-BsAzfFID.mjs +0 -138
  71. package/dist/index-BspnobjW.mjs +0 -960
  72. package/dist/index-BzQx0g-S.mjs +0 -310
  73. package/dist/index-CCR62ymF.mjs +0 -74
  74. package/dist/index-CFVS5psP.mjs +0 -21189
  75. package/dist/index-CS1zZ4Sb.mjs +0 -270
  76. package/dist/index-CXvEIjQJ.mjs +0 -136
  77. package/dist/index-CoBD3JP3.mjs +0 -157
  78. package/dist/index-CtP7vBII.mjs +0 -1307
  79. package/dist/index-CvOBB2XD.mjs +0 -555
  80. package/dist/index-D_mWKo65.mjs +0 -565
  81. package/dist/index-DwF-4Nyi.mjs +0 -59
  82. package/dist/index-UnUv8lB6.mjs +0 -1918
  83. package/dist/index-jcKpOcsx.mjs +0 -612
  84. package/dist/index-oQ4276E9.mjs +0 -342
  85. package/dist/index.d.ts +0 -20
  86. package/dist/index.d.ts.map +0 -1
  87. package/dist/javascript-DOuB9oqA.mjs +0 -691
  88. package/dist/julia-DpvXAuO6.mjs +0 -241
  89. package/dist/layout/attachSidecarLayout.d.ts +0 -4
  90. package/dist/layout/attachSidecarLayout.d.ts.map +0 -1
  91. package/dist/layout/index.d.ts +0 -2
  92. package/dist/layout/index.d.ts.map +0 -1
  93. package/dist/layout/sidecarDom.d.ts +0 -10
  94. package/dist/layout/sidecarDom.d.ts.map +0 -1
  95. package/dist/layout/sidecarMediaQuery.d.ts +0 -3
  96. package/dist/layout/sidecarMediaQuery.d.ts.map +0 -1
  97. package/dist/layout/sidecarState.d.ts +0 -29
  98. package/dist/layout/sidecarState.d.ts.map +0 -1
  99. package/dist/layout/sidecarTypes.d.ts +0 -14
  100. package/dist/layout/sidecarTypes.d.ts.map +0 -1
  101. package/dist/livescript-CanGTf8u.mjs +0 -272
  102. package/dist/lua-XplVlWi_.mjs +0 -217
  103. package/dist/mathematica-jaRHnSxC.mjs +0 -35
  104. package/dist/mbox-BctzC1hL.mjs +0 -76
  105. package/dist/mirc-CFBPAOaF.mjs +0 -72
  106. package/dist/mllike-BSnXJBGA.mjs +0 -272
  107. package/dist/modelica-vUgVs--1.mjs +0 -93
  108. package/dist/mscgen-Cpl0NYLN.mjs +0 -104
  109. package/dist/mumps-CQoS1kWX.mjs +0 -25
  110. package/dist/nginx-zDPm3Z74.mjs +0 -89
  111. package/dist/nsis-DYWPgAyk.mjs +0 -62
  112. package/dist/ntriples-CsNjv2QF.mjs +0 -79
  113. package/dist/octave-C8PmmSRH.mjs +0 -143
  114. package/dist/oz-Ce8aN8oE.mjs +0 -151
  115. package/dist/pascal-De0D6mP7.mjs +0 -77
  116. package/dist/perl-B4bSCe1C.mjs +0 -915
  117. package/dist/pig-D24Z8EXi.mjs +0 -54
  118. package/dist/powershell-DkYVfTzP.mjs +0 -249
  119. package/dist/properties-Dn9wna3M.mjs +0 -26
  120. package/dist/protobuf-BPIjwpzm.mjs +0 -49
  121. package/dist/pug-Bz8aeT0D.mjs +0 -248
  122. package/dist/puppet-nyd4dhjf.mjs +0 -45
  123. package/dist/python-BkR3uSy8.mjs +0 -313
  124. package/dist/q-DyHZGnqm.mjs +0 -86
  125. package/dist/r-LKEuhEGI.mjs +0 -104
  126. package/dist/registry/index.d.ts +0 -2
  127. package/dist/registry/index.d.ts.map +0 -1
  128. package/dist/registry/toolDefinitions.d.ts +0 -10
  129. package/dist/registry/toolDefinitions.d.ts.map +0 -1
  130. package/dist/registry/toolRegistry.d.ts +0 -29
  131. package/dist/registry/toolRegistry.d.ts.map +0 -1
  132. package/dist/rpm-IznJm2Xc.mjs +0 -57
  133. package/dist/ruby-CcYfvIk6.mjs +0 -228
  134. package/dist/sas-7E8yHoCW.mjs +0 -105
  135. package/dist/scheme-DjibxsNh.mjs +0 -124
  136. package/dist/shell-C0C2sNA_.mjs +0 -182
  137. package/dist/sidecar-api.d.ts +0 -5
  138. package/dist/sidecar-api.d.ts.map +0 -1
  139. package/dist/sieve-Bwz7vjP5.mjs +0 -72
  140. package/dist/simple-mode-mNVtnu0l.mjs +0 -89
  141. package/dist/smalltalk-Bhddl2pB.mjs +0 -48
  142. package/dist/solr-BNlsLglM.mjs +0 -41
  143. package/dist/sparql-FarWu_Gb.mjs +0 -197
  144. package/dist/spreadsheet-C-cy4P5N.mjs +0 -49
  145. package/dist/sql-CfG5lQ3l.mjs +0 -282
  146. package/dist/stex-Du4h4KAU.mjs +0 -129
  147. package/dist/store/agentStore.d.ts +0 -27
  148. package/dist/store/agentStore.d.ts.map +0 -1
  149. package/dist/store/agentStoreEventProcessor.d.ts +0 -21
  150. package/dist/store/agentStoreEventProcessor.d.ts.map +0 -1
  151. package/dist/store/chatStore.d.ts +0 -36
  152. package/dist/store/chatStore.d.ts.map +0 -1
  153. package/dist/store/historyStore.d.ts +0 -23
  154. package/dist/store/historyStore.d.ts.map +0 -1
  155. package/dist/store/index.d.ts +0 -5
  156. package/dist/store/index.d.ts.map +0 -1
  157. package/dist/store/sidecarStore.d.ts +0 -9
  158. package/dist/store/sidecarStore.d.ts.map +0 -1
  159. package/dist/styles/ensureSidecarStyles.d.ts +0 -2
  160. package/dist/styles/ensureSidecarStyles.d.ts.map +0 -1
  161. package/dist/stylus-CAdqWld3.mjs +0 -250
  162. package/dist/swift-DSxqR9R6.mjs +0 -230
  163. package/dist/sync-ottB0RsS.mjs +0 -1251
  164. package/dist/table-runtime-BIDL1Oeg.mjs +0 -3606
  165. package/dist/tcl-xfoLljhY.mjs +0 -81
  166. package/dist/test-setup.d.ts +0 -1
  167. package/dist/test-setup.d.ts.map +0 -1
  168. package/dist/textile-D1AWE-pc.mjs +0 -295
  169. package/dist/tiddlywiki-5wqsXtSk.mjs +0 -155
  170. package/dist/tiki-__Kn3CeS.mjs +0 -181
  171. package/dist/toml-DWAmxCjl.mjs +0 -58
  172. package/dist/tools/kapaAi/KapaSearchBridge.d.ts +0 -7
  173. package/dist/tools/kapaAi/KapaSearchBridge.d.ts.map +0 -1
  174. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts +0 -35
  175. package/dist/tools/kapaAi/kapaSearchExecutor.d.ts.map +0 -1
  176. package/dist/tools/kapaAi/kapaSearchTool.d.ts +0 -24
  177. package/dist/tools/kapaAi/kapaSearchTool.d.ts.map +0 -1
  178. package/dist/troff-D2UO-fKf.mjs +0 -35
  179. package/dist/ttcn-Bsa4sfRm.mjs +0 -123
  180. package/dist/ttcn-cfg-Bac_acMi.mjs +0 -88
  181. package/dist/turtle-xwJUxoPV.mjs +0 -80
  182. package/dist/types/agentTypes.d.ts +0 -11
  183. package/dist/types/agentTypes.d.ts.map +0 -1
  184. package/dist/types/chatTypes.d.ts +0 -45
  185. package/dist/types/chatTypes.d.ts.map +0 -1
  186. package/dist/types/eventTypes.d.ts +0 -28
  187. package/dist/types/eventTypes.d.ts.map +0 -1
  188. package/dist/types/historyTypes.d.ts +0 -34
  189. package/dist/types/historyTypes.d.ts.map +0 -1
  190. package/dist/types/index.d.ts +0 -5
  191. package/dist/types/index.d.ts.map +0 -1
  192. package/dist/types/toolTypes.d.ts +0 -46
  193. package/dist/types/toolTypes.d.ts.map +0 -1
  194. package/dist/types/transportTypes.d.ts +0 -44
  195. package/dist/types/transportTypes.d.ts.map +0 -1
  196. package/dist/utils/eventHandlers.d.ts +0 -34
  197. package/dist/utils/eventHandlers.d.ts.map +0 -1
  198. package/dist/utils/eventPredicates.d.ts +0 -10
  199. package/dist/utils/eventPredicates.d.ts.map +0 -1
  200. package/dist/utils/index.d.ts +0 -7
  201. package/dist/utils/index.d.ts.map +0 -1
  202. package/dist/utils/mapConversationMessages.d.ts +0 -12
  203. package/dist/utils/mapConversationMessages.d.ts.map +0 -1
  204. package/dist/utils/parseToolArguments.d.ts +0 -6
  205. package/dist/utils/parseToolArguments.d.ts.map +0 -1
  206. package/dist/utils/statusLabels.d.ts +0 -3
  207. package/dist/utils/statusLabels.d.ts.map +0 -1
  208. package/dist/utils/thinkingBlockUtils.d.ts +0 -18
  209. package/dist/utils/thinkingBlockUtils.d.ts.map +0 -1
  210. package/dist/utils/toolResultFormatter.d.ts +0 -6
  211. package/dist/utils/toolResultFormatter.d.ts.map +0 -1
  212. package/dist/vb-c2kQGd6-.mjs +0 -74
  213. package/dist/vbscript-1f_Dhg5H.mjs +0 -324
  214. package/dist/velocity-DJd0pTTC.mjs +0 -96
  215. package/dist/verilog-CiS1jyi5.mjs +0 -262
  216. package/dist/vhdl-T9HkrbI2.mjs +0 -106
  217. package/dist/webidl-CjfDENEo.mjs +0 -155
  218. package/dist/xquery-Ct6lEb4B.mjs +0 -422
  219. package/dist/yacas-C0absKBh.mjs +0 -73
  220. package/dist/z80-Pki2zAjW.mjs +0 -61
@@ -1,310 +0,0 @@
1
- import { L as G, E as z, C as N } from "./index-CtP7vBII.mjs";
2
- import { s as I, t as p, E as Y, e as k, a as j, L as U, i as Z, f as B, A as D } from "./codemirror-runtime-CEPpTXJs.mjs";
3
- import { t as M } from "./index-CFVS5psP.mjs";
4
- const h = 1, F = 2, L = 3, K = 4, H = 5, J = 36, ee = 37, te = 38, Oe = 11, oe = 13;
5
- function re(e) {
6
- return e == 45 || e == 46 || e == 58 || e >= 65 && e <= 90 || e == 95 || e >= 97 && e <= 122 || e >= 161;
7
- }
8
- function ne(e) {
9
- return e == 9 || e == 10 || e == 13 || e == 32;
10
- }
11
- let Q = null, V = null, X = 0;
12
- function W(e, t) {
13
- let o = e.pos + t;
14
- if (V == e && X == o) return Q;
15
- for (; ne(e.peek(t)); ) t++;
16
- let O = "";
17
- for (; ; ) {
18
- let r = e.peek(t);
19
- if (!re(r)) break;
20
- O += String.fromCharCode(r), t++;
21
- }
22
- return V = e, X = o, Q = O || null;
23
- }
24
- function _(e, t) {
25
- this.name = e, this.parent = t;
26
- }
27
- const ae = new N({
28
- start: null,
29
- shift(e, t, o, O) {
30
- return t == h ? new _(W(O, 1) || "", e) : e;
31
- },
32
- reduce(e, t) {
33
- return t == Oe && e ? e.parent : e;
34
- },
35
- reuse(e, t, o, O) {
36
- let r = t.type.id;
37
- return r == h || r == oe ? new _(W(O, 1) || "", e) : e;
38
- },
39
- strict: !1
40
- }), le = new z((e, t) => {
41
- if (e.next == 60) {
42
- if (e.advance(), e.next == 47) {
43
- e.advance();
44
- let o = W(e, 0);
45
- if (!o) return e.acceptToken(H);
46
- if (t.context && o == t.context.name) return e.acceptToken(F);
47
- for (let O = t.context; O; O = O.parent) if (O.name == o) return e.acceptToken(L, -2);
48
- e.acceptToken(K);
49
- } else if (e.next != 33 && e.next != 63)
50
- return e.acceptToken(h);
51
- }
52
- }, { contextual: !0 });
53
- function y(e, t) {
54
- return new z((o) => {
55
- let O = 0, r = t.charCodeAt(0);
56
- e: for (; !(o.next < 0); o.advance(), O++)
57
- if (o.next == r) {
58
- for (let a = 1; a < t.length; a++)
59
- if (o.peek(a) != t.charCodeAt(a)) continue e;
60
- break;
61
- }
62
- O && o.acceptToken(e);
63
- });
64
- }
65
- const se = y(J, "-->"), ie = y(ee, "?>"), ce = y(te, "]]>"), me = I({
66
- Text: p.content,
67
- "StartTag StartCloseTag EndTag SelfCloseEndTag": p.angleBracket,
68
- TagName: p.tagName,
69
- "MismatchedCloseTag/TagName": [p.tagName, p.invalid],
70
- AttributeName: p.attributeName,
71
- AttributeValue: p.attributeValue,
72
- Is: p.definitionOperator,
73
- "EntityReference CharacterReference": p.character,
74
- Comment: p.blockComment,
75
- ProcessingInst: p.processingInstruction,
76
- DoctypeDecl: p.documentMeta,
77
- Cdata: p.special(p.string)
78
- }), $e = G.deserialize({
79
- version: 14,
80
- states: ",lOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DT'#DTOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C|'#C|O$TOaO,59RO$[O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O[mX`mXdmX~O[!VO`sOd!WO~O^!]Oz^O~O[!_Oz^O~O[!aOz^O~O[!cO`sOd!dOz^O~O[!cO`sOd!dO~Oa!eOz^O~Oz^O{!gO}!hO~Oz^O[ma`madma~O[!kOz^O~O[!lOz^O~O[!mO`sOd!nO~OW!qOX!qO{!sO|!qO~OW!tOX!tO}!sO!O!tO~O[!vOz^O~OW!qOX!qO{!yO|!qO~OW!tOX!tO}!yO!O!tO~O",
82
- goto: "%cxPPPPPPPPPPyyP!PP!VPP!`!jP!pyyyP!v!|#S$[$k$q$w$}%TPPPP%ZXWORYbXRORYb_t`qru!T!U!bQ!i!YS!p!e!fR!w!oQdRRybXSORYbQYORmYQ[PRn[Q_QQkVjp_krz!R!T!X!Z!^!`!f!j!oQr`QzcQ!RlQ!TqQ!XsQ!ZtQ!^{Q!`!QQ!f!YQ!j!]R!o!eQu`S!UqrU![u!U!bR!b!TQ!r!gR!x!rQ!u!hR!z!uQbRRxbQfTR|fQiUR!OiSXOYTaRb",
83
- nodeNames: "⚠ StartTag StartCloseTag MissingCloseTag StartCloseTag StartCloseTag Document Text EntityReference CharacterReference Cdata Element EndTag OpenTag TagName Attribute AttributeName Is AttributeValue CloseTag SelfCloseEndTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag DoctypeDecl",
84
- maxTerm: 50,
85
- context: ae,
86
- nodeProps: [
87
- ["closedBy", 1, "SelfCloseEndTag EndTag", 13, "CloseTag MissingCloseTag"],
88
- ["openedBy", 12, "StartTag StartCloseTag", 19, "OpenTag", 20, "StartTag"],
89
- ["isolate", -6, 13, 18, 19, 21, 22, 24, ""]
90
- ],
91
- propSources: [me],
92
- skippedNodes: [0],
93
- repeatNodeCount: 9,
94
- tokenData: "!)v~R!YOX$qXY)iYZ)iZ]$q]^)i^p$qpq)iqr$qrs*vsv$qvw+fwx/ix}$q}!O0[!O!P$q!P!Q2z!Q![$q![!]4n!]!^$q!^!_8U!_!`!#t!`!a!$l!a!b!%d!b!c$q!c!}4n!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$q#P#Q!(S#Q;'S$q;'S;=`)c<%lO$qk!(]ZVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_!`$q!`!a!)O!a;'S$q;'S;=`)c<%lO$qk!)ZXxQVP|W!O`Or$qrs%gsv$qwx'^x!^$q!^!_(o!_;'S$q;'S;=`)c<%lO$q",
95
- tokenizers: [le, se, ie, ce, 0, 1, 2, 3, 4],
96
- topRules: { Document: [0, 6] },
97
- tokenPrec: 0
98
- });
99
- function T(e, t) {
100
- let o = t && t.getChild("TagName");
101
- return o ? e.sliceString(o.from, o.to) : "";
102
- }
103
- function P(e, t) {
104
- let o = t && t.firstChild;
105
- return !o || o.name != "OpenTag" ? "" : T(e, o);
106
- }
107
- function Se(e, t, o) {
108
- let O = t && t.getChildren("Attribute").find((a) => a.from <= o && a.to >= o), r = O && O.getChild("AttributeName");
109
- return r ? e.sliceString(r.from, r.to) : "";
110
- }
111
- function C(e) {
112
- for (let t = e && e.parent; t; t = t.parent)
113
- if (t.name == "Element")
114
- return t;
115
- return null;
116
- }
117
- function ge(e, t) {
118
- var o;
119
- let O = k(e).resolveInner(t, -1), r = null;
120
- for (let a = O; !r && a.parent; a = a.parent)
121
- (a.name == "OpenTag" || a.name == "CloseTag" || a.name == "SelfClosingTag" || a.name == "MismatchedCloseTag") && (r = a);
122
- if (r && (r.to > t || r.lastChild.type.isError)) {
123
- let a = r.parent;
124
- if (O.name == "TagName")
125
- return r.name == "CloseTag" || r.name == "MismatchedCloseTag" ? { type: "closeTag", from: O.from, context: a } : { type: "openTag", from: O.from, context: C(a) };
126
- if (O.name == "AttributeName")
127
- return { type: "attrName", from: O.from, context: r };
128
- if (O.name == "AttributeValue")
129
- return { type: "attrValue", from: O.from, context: r };
130
- let s = O == r || O.name == "Attribute" ? O.childBefore(t) : O;
131
- return s?.name == "StartTag" ? { type: "openTag", from: t, context: C(a) } : s?.name == "StartCloseTag" && s.to <= t ? { type: "closeTag", from: t, context: a } : s?.name == "Is" ? { type: "attrValue", from: t, context: r } : s ? { type: "attrName", from: t, context: r } : null;
132
- } else if (O.name == "StartCloseTag")
133
- return { type: "closeTag", from: t, context: O.parent };
134
- for (; O.parent && O.to == t && !(!((o = O.lastChild) === null || o === void 0) && o.type.isError); )
135
- O = O.parent;
136
- return O.name == "Element" || O.name == "Text" || O.name == "Document" ? { type: "tag", from: t, context: O.name == "Element" ? O : C(O) } : null;
137
- }
138
- class ue {
139
- constructor(t, o, O) {
140
- this.attrs = o, this.attrValues = O, this.children = [], this.name = t.name, this.completion = Object.assign(Object.assign({ type: "type" }, t.completion || {}), { label: this.name }), this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: "<" + this.name }), this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: "</" + this.name + ">", boost: 2 }), this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + ">" }), this.text = t.textContent ? t.textContent.map((r) => ({ label: r, type: "text" })) : [];
141
- }
142
- }
143
- const b = /^[:\-\.\w\u00b7-\uffff]*$/;
144
- function E(e) {
145
- return Object.assign(Object.assign({ type: "property" }, e.completion || {}), { label: e.name });
146
- }
147
- function R(e) {
148
- return typeof e == "string" ? { label: `"${e}"`, type: "constant" } : /^"/.test(e.label) ? e : Object.assign(Object.assign({}, e), { label: `"${e.label}"` });
149
- }
150
- function pe(e, t) {
151
- let o = [], O = [], r = /* @__PURE__ */ Object.create(null);
152
- for (let n of t) {
153
- let $ = E(n);
154
- o.push($), n.global && O.push($), n.values && (r[n.name] = n.values.map(R));
155
- }
156
- let a = [], s = [], f = /* @__PURE__ */ Object.create(null);
157
- for (let n of e) {
158
- let $ = O, c = r;
159
- n.attributes && ($ = $.concat(n.attributes.map((l) => typeof l == "string" ? o.find((d) => d.label == l) || { label: l, type: "property" } : (l.values && (c == r && (c = Object.create(c)), c[l.name] = l.values.map(R)), E(l)))));
160
- let u = new ue(n, $, c);
161
- f[u.name] = u, a.push(u), n.top && s.push(u);
162
- }
163
- s.length || (s = a);
164
- for (let n = 0; n < a.length; n++) {
165
- let $ = e[n], c = a[n];
166
- if ($.children)
167
- for (let u of $.children)
168
- f[u] && c.children.push(f[u]);
169
- else
170
- c.children = a;
171
- }
172
- return (n) => {
173
- var $;
174
- let { doc: c } = n.state, u = ge(n.state, n.pos);
175
- if (!u || u.type == "tag" && !n.explicit)
176
- return null;
177
- let { type: l, from: d, context: S } = u;
178
- if (l == "openTag") {
179
- let i = s, m = P(c, S);
180
- if (m) {
181
- let g = f[m];
182
- i = g?.children || a;
183
- }
184
- return {
185
- from: d,
186
- options: i.map((g) => g.completion),
187
- validFor: b
188
- };
189
- } else if (l == "closeTag") {
190
- let i = P(c, S);
191
- return i ? {
192
- from: d,
193
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == ">" ? 1 : 0),
194
- options: [(($ = f[i]) === null || $ === void 0 ? void 0 : $.closeNameCompletion) || { label: i + ">", type: "type" }],
195
- validFor: b
196
- } : null;
197
- } else if (l == "attrName") {
198
- let i = f[T(c, S)];
199
- return {
200
- from: d,
201
- options: i?.attrs || O,
202
- validFor: b
203
- };
204
- } else if (l == "attrValue") {
205
- let i = Se(c, S, d);
206
- if (!i)
207
- return null;
208
- let m = f[T(c, S)], g = (m?.attrValues || r)[i];
209
- return !g || !g.length ? null : {
210
- from: d,
211
- to: n.pos + (c.sliceString(n.pos, n.pos + 1) == '"' ? 1 : 0),
212
- options: g,
213
- validFor: /^"[^"]*"?$/
214
- };
215
- } else if (l == "tag") {
216
- let i = P(c, S), m = f[i], g = [], q = S && S.lastChild;
217
- i && (!q || q.name != "CloseTag" || T(c, q) != i) && g.push(m ? m.closeCompletion : { label: "</" + i + ">", type: "type", boost: 2 });
218
- let v = g.concat((m?.children || (S ? a : s)).map((x) => x.openCompletion));
219
- if (S && m?.text.length) {
220
- let x = S.firstChild;
221
- x.to > n.pos - 20 && !/\S/.test(n.state.sliceDoc(x.to, n.pos)) && (v = v.concat(m.text));
222
- }
223
- return {
224
- from: d,
225
- options: v,
226
- validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
227
- };
228
- } else
229
- return null;
230
- };
231
- }
232
- const w = /* @__PURE__ */ U.define({
233
- name: "xml",
234
- parser: /* @__PURE__ */ $e.configure({
235
- props: [
236
- /* @__PURE__ */ Z.add({
237
- Element(e) {
238
- let t = /^\s*<\//.test(e.textAfter);
239
- return e.lineIndent(e.node.from) + (t ? 0 : e.unit);
240
- },
241
- "OpenTag CloseTag SelfClosingTag"(e) {
242
- return e.column(e.node.from) + e.unit;
243
- }
244
- }),
245
- /* @__PURE__ */ B.add({
246
- Element(e) {
247
- let t = e.firstChild, o = e.lastChild;
248
- return !t || t.name != "OpenTag" ? null : { from: t.to, to: o.name == "CloseTag" ? o.from : e.to };
249
- }
250
- }),
251
- /* @__PURE__ */ D.add({
252
- "OpenTag CloseTag": (e) => e.getChild("TagName")
253
- })
254
- ]
255
- }),
256
- languageData: {
257
- commentTokens: { block: { open: "<!--", close: "-->" } },
258
- indentOnInput: /^\s*<\/$/
259
- }
260
- });
261
- function Te(e = {}) {
262
- let t = [w.data.of({
263
- autocomplete: pe(e.elements || [], e.attributes || [])
264
- })];
265
- return e.autoCloseTags !== !1 && t.push(fe), new j(w, t);
266
- }
267
- function A(e, t, o = e.length) {
268
- if (!t)
269
- return "";
270
- let O = t.firstChild, r = O && O.getChild("TagName");
271
- return r ? e.sliceString(r.from, Math.min(r.to, o)) : "";
272
- }
273
- const fe = /* @__PURE__ */ Y.inputHandler.of((e, t, o, O, r) => {
274
- if (e.composing || e.state.readOnly || t != o || O != ">" && O != "/" || !w.isActiveAt(e.state, t, -1))
275
- return !1;
276
- let a = r(), { state: s } = a, f = s.changeByRange((n) => {
277
- var $, c, u;
278
- let { head: l } = n, d = s.doc.sliceString(l - 1, l) == O, S = k(s).resolveInner(l, -1), i;
279
- if (d && O == ">" && S.name == "EndTag") {
280
- let m = S.parent;
281
- if (((c = ($ = m.parent) === null || $ === void 0 ? void 0 : $.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (i = A(s.doc, m.parent, l))) {
282
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `</${i}>`;
283
- return { range: n, changes: { from: l, to: g, insert: q } };
284
- }
285
- } else if (d && O == "/" && S.name == "StartCloseTag") {
286
- let m = S.parent;
287
- if (S.from == l - 2 && ((u = m.lastChild) === null || u === void 0 ? void 0 : u.name) != "CloseTag" && (i = A(s.doc, m, l))) {
288
- let g = l + (s.doc.sliceString(l, l + 1) === ">" ? 1 : 0), q = `${i}>`;
289
- return {
290
- range: M.cursor(l + q.length, -1),
291
- changes: { from: l, to: g, insert: q }
292
- };
293
- }
294
- }
295
- return { range: n };
296
- });
297
- return f.changes.empty ? !1 : (e.dispatch([
298
- a,
299
- s.update(f, {
300
- userEvent: "input.complete",
301
- scrollIntoView: !0
302
- })
303
- ]), !0);
304
- });
305
- export {
306
- fe as autoCloseTags,
307
- pe as completeFromSchema,
308
- Te as xml,
309
- w as xmlLanguage
310
- };
@@ -1,74 +0,0 @@
1
- import { L as p, a as u, p as n, s as l, t as e } from "./codemirror-runtime-CEPpTXJs.mjs";
2
- import { html as m } from "./index-BbhTSloX.mjs";
3
- import { javascriptLanguage as b } from "./index-CvOBB2XD.mjs";
4
- import { L as S, a as r } from "./index-CtP7vBII.mjs";
5
- const c = /* @__PURE__ */ S.deserialize({
6
- version: 14,
7
- states: "%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",
8
- stateData: "$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",
9
- goto: "!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",
10
- nodeNames: "⚠ Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",
11
- maxTerm: 36,
12
- nodeProps: [
13
- ["isolate", -3, 3, 13, 17, ""]
14
- ],
15
- skippedNodes: [0],
16
- repeatNodeCount: 4,
17
- tokenData: "'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",
18
- tokenizers: [6, 7, /* @__PURE__ */ new r("b~RP#q#rU~XP#q#r[~aOT~~", 17, 4), /* @__PURE__ */ new r("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~", 72, 2), /* @__PURE__ */ new r("[~RPwxU~ZOp~~", 11, 15), /* @__PURE__ */ new r("[~RPrsU~ZOn~~", 11, 14), /* @__PURE__ */ new r("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~", 66, 35), /* @__PURE__ */ new r("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~", 66, 33)],
19
- topRules: { Content: [0, 1], Attribute: [1, 7] },
20
- tokenPrec: 157
21
- }), P = /* @__PURE__ */ b.parser.configure({
22
- top: "SingleExpression"
23
- }), o = /* @__PURE__ */ c.configure({
24
- props: [
25
- /* @__PURE__ */ l({
26
- Text: e.content,
27
- Is: e.definitionOperator,
28
- AttributeName: e.attributeName,
29
- VueAttributeName: e.keyword,
30
- Identifier: e.variableName,
31
- "AttributeValue ScriptAttributeValue": e.attributeValue,
32
- Entity: e.character,
33
- "{{ }}": e.brace,
34
- "@ :": e.punctuation
35
- })
36
- ]
37
- }), s = { parser: P }, Q = /* @__PURE__ */ o.configure({
38
- wrap: /* @__PURE__ */ n((O, t) => O.name == "InterpolationContent" ? s : null)
39
- }), g = /* @__PURE__ */ o.configure({
40
- wrap: /* @__PURE__ */ n((O, t) => O.name == "AttributeScript" ? s : null),
41
- top: "Attribute"
42
- }), y = { parser: Q }, R = { parser: g }, a = /* @__PURE__ */ m();
43
- function i(O) {
44
- return O.configure({
45
- dialect: "selfClosing",
46
- wrap: n(X)
47
- }, "vue");
48
- }
49
- const T = /* @__PURE__ */ i(a.language);
50
- function X(O, t) {
51
- switch (O.name) {
52
- case "Attribute":
53
- return /^(@|:|v-)/.test(t.read(O.from, O.from + 2)) ? R : null;
54
- case "Text":
55
- return y;
56
- }
57
- return null;
58
- }
59
- function d(O = {}) {
60
- let t = a;
61
- if (O.base) {
62
- if (O.base.language.name != "html" || !(O.base.language instanceof p))
63
- throw new RangeError("The base option must be the result of calling html(...)");
64
- t = O.base;
65
- }
66
- return new u(t.language == a.language ? T : i(t.language), [
67
- t.support,
68
- t.language.data.of({ closeBrackets: { brackets: ["{", '"'] } })
69
- ]);
70
- }
71
- export {
72
- d as vue,
73
- T as vueLanguage
74
- };