@progress/kendo-react-webmcp 15.0.0-develop.2

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 (340) hide show
  1. package/LICENSE.md +11 -0
  2. package/NOTICE.txt +383 -0
  3. package/README.md +72 -0
  4. package/WebMcpProvider.d.ts +49 -0
  5. package/WebMcpProvider.js +8 -0
  6. package/WebMcpProvider.mjs +138 -0
  7. package/adapters/aiprompt.d.ts +15 -0
  8. package/adapters/aiprompt.js +8 -0
  9. package/adapters/aiprompt.mjs +63 -0
  10. package/adapters/autocomplete.d.ts +18 -0
  11. package/adapters/autocomplete.js +8 -0
  12. package/adapters/autocomplete.mjs +69 -0
  13. package/adapters/button.d.ts +18 -0
  14. package/adapters/button.js +8 -0
  15. package/adapters/button.mjs +46 -0
  16. package/adapters/calendar.d.ts +16 -0
  17. package/adapters/calendar.js +8 -0
  18. package/adapters/calendar.mjs +61 -0
  19. package/adapters/chart.d.ts +29 -0
  20. package/adapters/chart.js +8 -0
  21. package/adapters/chart.mjs +95 -0
  22. package/adapters/chat.d.ts +16 -0
  23. package/adapters/chat.js +8 -0
  24. package/adapters/chat.mjs +66 -0
  25. package/adapters/colorpicker.d.ts +16 -0
  26. package/adapters/colorpicker.js +8 -0
  27. package/adapters/colorpicker.mjs +60 -0
  28. package/adapters/combobox.d.ts +20 -0
  29. package/adapters/combobox.js +8 -0
  30. package/adapters/combobox.mjs +87 -0
  31. package/adapters/dashboard.d.ts +18 -0
  32. package/adapters/dashboard.js +8 -0
  33. package/adapters/dashboard.mjs +41 -0
  34. package/adapters/datepicker.d.ts +17 -0
  35. package/adapters/datepicker.js +8 -0
  36. package/adapters/datepicker.mjs +59 -0
  37. package/adapters/daterangepicker.d.ts +19 -0
  38. package/adapters/daterangepicker.js +8 -0
  39. package/adapters/daterangepicker.mjs +70 -0
  40. package/adapters/datetimepicker.d.ts +16 -0
  41. package/adapters/datetimepicker.js +8 -0
  42. package/adapters/datetimepicker.mjs +59 -0
  43. package/adapters/dialog.d.ts +15 -0
  44. package/adapters/dialog.js +8 -0
  45. package/adapters/dialog.mjs +58 -0
  46. package/adapters/drawer.d.ts +33 -0
  47. package/adapters/drawer.js +8 -0
  48. package/adapters/drawer.mjs +86 -0
  49. package/adapters/dropdownlist.d.ts +19 -0
  50. package/adapters/dropdownlist.js +8 -0
  51. package/adapters/dropdownlist.mjs +74 -0
  52. package/adapters/dropdowntree.d.ts +22 -0
  53. package/adapters/dropdowntree.js +8 -0
  54. package/adapters/dropdowntree.mjs +108 -0
  55. package/adapters/editor.d.ts +30 -0
  56. package/adapters/editor.js +8 -0
  57. package/adapters/editor.mjs +109 -0
  58. package/adapters/form.d.ts +20 -0
  59. package/adapters/form.js +10 -0
  60. package/adapters/form.mjs +115 -0
  61. package/adapters/gantt.d.ts +65 -0
  62. package/adapters/gantt.js +8 -0
  63. package/adapters/gantt.mjs +370 -0
  64. package/adapters/grid.d.ts +102 -0
  65. package/adapters/grid.js +8 -0
  66. package/adapters/grid.mjs +692 -0
  67. package/adapters/listbox.d.ts +18 -0
  68. package/adapters/listbox.js +8 -0
  69. package/adapters/listbox.mjs +87 -0
  70. package/adapters/listview.d.ts +22 -0
  71. package/adapters/listview.js +8 -0
  72. package/adapters/listview.mjs +80 -0
  73. package/adapters/map.d.ts +32 -0
  74. package/adapters/map.js +8 -0
  75. package/adapters/map.mjs +88 -0
  76. package/adapters/maskedtextbox.d.ts +17 -0
  77. package/adapters/maskedtextbox.js +8 -0
  78. package/adapters/maskedtextbox.mjs +57 -0
  79. package/adapters/menu.d.ts +16 -0
  80. package/adapters/menu.js +8 -0
  81. package/adapters/menu.mjs +50 -0
  82. package/adapters/multiselect.d.ts +19 -0
  83. package/adapters/multiselect.js +8 -0
  84. package/adapters/multiselect.mjs +75 -0
  85. package/adapters/notification.d.ts +17 -0
  86. package/adapters/notification.js +8 -0
  87. package/adapters/notification.mjs +57 -0
  88. package/adapters/numerictextbox.d.ts +19 -0
  89. package/adapters/numerictextbox.js +8 -0
  90. package/adapters/numerictextbox.mjs +78 -0
  91. package/adapters/panelbar.d.ts +17 -0
  92. package/adapters/panelbar.js +8 -0
  93. package/adapters/panelbar.mjs +66 -0
  94. package/adapters/pivotgrid.d.ts +16 -0
  95. package/adapters/pivotgrid.js +8 -0
  96. package/adapters/pivotgrid.mjs +126 -0
  97. package/adapters/rangeslider.d.ts +21 -0
  98. package/adapters/rangeslider.js +8 -0
  99. package/adapters/rangeslider.mjs +55 -0
  100. package/adapters/rating.d.ts +16 -0
  101. package/adapters/rating.js +8 -0
  102. package/adapters/rating.mjs +60 -0
  103. package/adapters/scheduler.d.ts +45 -0
  104. package/adapters/scheduler.js +8 -0
  105. package/adapters/scheduler.mjs +165 -0
  106. package/adapters/scrollview.d.ts +21 -0
  107. package/adapters/scrollview.js +8 -0
  108. package/adapters/scrollview.mjs +74 -0
  109. package/adapters/signature.d.ts +16 -0
  110. package/adapters/signature.js +8 -0
  111. package/adapters/signature.mjs +47 -0
  112. package/adapters/slider.d.ts +19 -0
  113. package/adapters/slider.js +8 -0
  114. package/adapters/slider.mjs +47 -0
  115. package/adapters/sortable.d.ts +17 -0
  116. package/adapters/sortable.js +8 -0
  117. package/adapters/sortable.mjs +67 -0
  118. package/adapters/spreadsheet.d.ts +32 -0
  119. package/adapters/spreadsheet.js +8 -0
  120. package/adapters/spreadsheet.mjs +256 -0
  121. package/adapters/stepper.d.ts +23 -0
  122. package/adapters/stepper.js +8 -0
  123. package/adapters/stepper.mjs +47 -0
  124. package/adapters/switch.d.ts +17 -0
  125. package/adapters/switch.js +8 -0
  126. package/adapters/switch.mjs +48 -0
  127. package/adapters/tabstrip.d.ts +19 -0
  128. package/adapters/tabstrip.js +8 -0
  129. package/adapters/tabstrip.mjs +47 -0
  130. package/adapters/taskboard.d.ts +20 -0
  131. package/adapters/taskboard.js +8 -0
  132. package/adapters/taskboard.mjs +104 -0
  133. package/adapters/textarea.d.ts +16 -0
  134. package/adapters/textarea.js +8 -0
  135. package/adapters/textarea.mjs +57 -0
  136. package/adapters/textbox.d.ts +19 -0
  137. package/adapters/textbox.js +8 -0
  138. package/adapters/textbox.mjs +61 -0
  139. package/adapters/timepicker.d.ts +16 -0
  140. package/adapters/timepicker.js +8 -0
  141. package/adapters/timepicker.mjs +59 -0
  142. package/adapters/treelist.d.ts +81 -0
  143. package/adapters/treelist.js +8 -0
  144. package/adapters/treelist.mjs +403 -0
  145. package/adapters/treeview.d.ts +25 -0
  146. package/adapters/treeview.js +9 -0
  147. package/adapters/treeview.mjs +212 -0
  148. package/adapters/upload.d.ts +15 -0
  149. package/adapters/upload.js +8 -0
  150. package/adapters/upload.mjs +52 -0
  151. package/adapters/utils.d.ts +16 -0
  152. package/adapters/utils.js +8 -0
  153. package/adapters/utils.mjs +25 -0
  154. package/adapters/window.d.ts +17 -0
  155. package/adapters/window.js +8 -0
  156. package/adapters/window.mjs +99 -0
  157. package/commands/aiprompt.d.ts +30 -0
  158. package/commands/aiprompt.js +8 -0
  159. package/commands/aiprompt.mjs +54 -0
  160. package/commands/autocomplete.d.ts +26 -0
  161. package/commands/autocomplete.js +8 -0
  162. package/commands/autocomplete.mjs +36 -0
  163. package/commands/button.d.ts +19 -0
  164. package/commands/button.js +8 -0
  165. package/commands/button.mjs +21 -0
  166. package/commands/calendar.d.ts +29 -0
  167. package/commands/calendar.js +8 -0
  168. package/commands/calendar.mjs +52 -0
  169. package/commands/chart.d.ts +27 -0
  170. package/commands/chart.js +8 -0
  171. package/commands/chart.mjs +43 -0
  172. package/commands/chat.d.ts +22 -0
  173. package/commands/chat.js +8 -0
  174. package/commands/chat.mjs +30 -0
  175. package/commands/checkbox.d.ts +26 -0
  176. package/commands/checkbox.js +8 -0
  177. package/commands/checkbox.mjs +36 -0
  178. package/commands/colorpicker.d.ts +26 -0
  179. package/commands/colorpicker.js +8 -0
  180. package/commands/colorpicker.mjs +36 -0
  181. package/commands/combobox.d.ts +34 -0
  182. package/commands/combobox.js +8 -0
  183. package/commands/combobox.mjs +48 -0
  184. package/commands/dashboard.d.ts +19 -0
  185. package/commands/dashboard.js +8 -0
  186. package/commands/dashboard.mjs +21 -0
  187. package/commands/datepicker.d.ts +26 -0
  188. package/commands/datepicker.js +8 -0
  189. package/commands/datepicker.mjs +36 -0
  190. package/commands/daterangepicker.d.ts +27 -0
  191. package/commands/daterangepicker.js +8 -0
  192. package/commands/daterangepicker.mjs +37 -0
  193. package/commands/datetimepicker.d.ts +26 -0
  194. package/commands/datetimepicker.js +8 -0
  195. package/commands/datetimepicker.mjs +36 -0
  196. package/commands/dialog.d.ts +23 -0
  197. package/commands/dialog.js +8 -0
  198. package/commands/dialog.mjs +25 -0
  199. package/commands/drawer.d.ts +30 -0
  200. package/commands/drawer.js +8 -0
  201. package/commands/drawer.mjs +38 -0
  202. package/commands/dropdownlist.d.ts +30 -0
  203. package/commands/dropdownlist.js +8 -0
  204. package/commands/dropdownlist.mjs +42 -0
  205. package/commands/dropdowntree.d.ts +34 -0
  206. package/commands/dropdowntree.js +8 -0
  207. package/commands/dropdowntree.mjs +48 -0
  208. package/commands/editor.d.ts +26 -0
  209. package/commands/editor.js +8 -0
  210. package/commands/editor.mjs +36 -0
  211. package/commands/form.d.ts +34 -0
  212. package/commands/form.js +8 -0
  213. package/commands/form.mjs +54 -0
  214. package/commands/gantt.d.ts +119 -0
  215. package/commands/gantt.js +8 -0
  216. package/commands/gantt.mjs +156 -0
  217. package/commands/grid.d.ts +209 -0
  218. package/commands/grid.js +8 -0
  219. package/commands/grid.mjs +280 -0
  220. package/commands/index.d.ts +58 -0
  221. package/commands/listbox.d.ts +31 -0
  222. package/commands/listbox.js +8 -0
  223. package/commands/listbox.mjs +69 -0
  224. package/commands/listview.d.ts +22 -0
  225. package/commands/listview.js +8 -0
  226. package/commands/listview.mjs +29 -0
  227. package/commands/map.d.ts +43 -0
  228. package/commands/map.js +8 -0
  229. package/commands/map.mjs +77 -0
  230. package/commands/maskedtextbox.d.ts +26 -0
  231. package/commands/maskedtextbox.js +8 -0
  232. package/commands/maskedtextbox.mjs +36 -0
  233. package/commands/menu.d.ts +22 -0
  234. package/commands/menu.js +8 -0
  235. package/commands/menu.mjs +30 -0
  236. package/commands/multicolumncombobox.d.ts +34 -0
  237. package/commands/multicolumncombobox.js +8 -0
  238. package/commands/multicolumncombobox.mjs +48 -0
  239. package/commands/multiselect.d.ts +41 -0
  240. package/commands/multiselect.js +8 -0
  241. package/commands/multiselect.mjs +57 -0
  242. package/commands/notification.d.ts +27 -0
  243. package/commands/notification.js +8 -0
  244. package/commands/notification.mjs +46 -0
  245. package/commands/numerictextbox.d.ts +34 -0
  246. package/commands/numerictextbox.js +8 -0
  247. package/commands/numerictextbox.mjs +48 -0
  248. package/commands/panelbar.d.ts +29 -0
  249. package/commands/panelbar.js +8 -0
  250. package/commands/panelbar.mjs +43 -0
  251. package/commands/pivotgrid.d.ts +56 -0
  252. package/commands/pivotgrid.js +8 -0
  253. package/commands/pivotgrid.mjs +87 -0
  254. package/commands/rangeslider.d.ts +23 -0
  255. package/commands/rangeslider.js +8 -0
  256. package/commands/rangeslider.mjs +25 -0
  257. package/commands/rating.d.ts +26 -0
  258. package/commands/rating.js +8 -0
  259. package/commands/rating.mjs +36 -0
  260. package/commands/scheduler.d.ts +45 -0
  261. package/commands/scheduler.js +8 -0
  262. package/commands/scheduler.mjs +59 -0
  263. package/commands/scrollview.d.ts +30 -0
  264. package/commands/scrollview.js +8 -0
  265. package/commands/scrollview.mjs +46 -0
  266. package/commands/signature.d.ts +19 -0
  267. package/commands/signature.js +8 -0
  268. package/commands/signature.mjs +21 -0
  269. package/commands/slider.d.ts +22 -0
  270. package/commands/slider.js +8 -0
  271. package/commands/slider.mjs +24 -0
  272. package/commands/sortable.d.ts +23 -0
  273. package/commands/sortable.js +8 -0
  274. package/commands/sortable.mjs +32 -0
  275. package/commands/spreadsheet.d.ts +92 -0
  276. package/commands/spreadsheet.js +8 -0
  277. package/commands/spreadsheet.mjs +181 -0
  278. package/commands/stepper.d.ts +22 -0
  279. package/commands/stepper.js +8 -0
  280. package/commands/stepper.mjs +35 -0
  281. package/commands/switch.d.ts +26 -0
  282. package/commands/switch.js +8 -0
  283. package/commands/switch.mjs +36 -0
  284. package/commands/tabstrip.d.ts +23 -0
  285. package/commands/tabstrip.js +8 -0
  286. package/commands/tabstrip.mjs +30 -0
  287. package/commands/taskboard.d.ts +48 -0
  288. package/commands/taskboard.js +8 -0
  289. package/commands/taskboard.mjs +90 -0
  290. package/commands/textarea.d.ts +26 -0
  291. package/commands/textarea.js +8 -0
  292. package/commands/textarea.mjs +36 -0
  293. package/commands/textbox.d.ts +26 -0
  294. package/commands/textbox.js +8 -0
  295. package/commands/textbox.mjs +36 -0
  296. package/commands/timepicker.d.ts +26 -0
  297. package/commands/timepicker.js +8 -0
  298. package/commands/timepicker.mjs +36 -0
  299. package/commands/treelist.d.ts +135 -0
  300. package/commands/treelist.js +8 -0
  301. package/commands/treelist.mjs +177 -0
  302. package/commands/treeview.d.ts +44 -0
  303. package/commands/treeview.js +8 -0
  304. package/commands/treeview.mjs +84 -0
  305. package/commands/upload.d.ts +19 -0
  306. package/commands/upload.js +8 -0
  307. package/commands/upload.mjs +21 -0
  308. package/commands/window.d.ts +35 -0
  309. package/commands/window.js +8 -0
  310. package/commands/window.mjs +45 -0
  311. package/dist/cdn/js/kendo-react-webmcp.js +15 -0
  312. package/grid-mcp-tools.d.ts +26 -0
  313. package/grid-mcp-tools.js +8 -0
  314. package/grid-mcp-tools.mjs +75 -0
  315. package/index.d.mts +68 -0
  316. package/index.d.ts +68 -0
  317. package/index.js +8 -0
  318. package/index.mjs +308 -0
  319. package/mcp-types.d.ts +12 -0
  320. package/package.json +64 -0
  321. package/schemas/common.d.ts +27 -0
  322. package/schemas/common.js +8 -0
  323. package/schemas/common.mjs +113 -0
  324. package/schemas/gantt.d.ts +10 -0
  325. package/schemas/gantt.js +8 -0
  326. package/schemas/gantt.mjs +51 -0
  327. package/schemas/grid.d.ts +10 -0
  328. package/schemas/grid.js +8 -0
  329. package/schemas/grid.mjs +46 -0
  330. package/schemas/index.d.ts +13 -0
  331. package/schemas/input.d.ts +19 -0
  332. package/schemas/input.js +8 -0
  333. package/schemas/input.mjs +137 -0
  334. package/schemas/scheduler.d.ts +11 -0
  335. package/schemas/scheduler.js +8 -0
  336. package/schemas/scheduler.mjs +58 -0
  337. package/schemas/table.d.ts +12 -0
  338. package/schemas/table.js +8 -0
  339. package/schemas/table.mjs +87 -0
  340. package/types.d.ts +39 -0
package/LICENSE.md ADDED
@@ -0,0 +1,11 @@
1
+ # KendoReact
2
+
3
+ This package is part of the [KendoReact](http://www.telerik.com/kendo-react-ui) suite.
4
+
5
+ ## License
6
+
7
+ This is commercial software. To use it, you need to agree to the [**End User License Agreement for Progress KendoReact**](https://www.telerik.com/purchase/license-agreement/progress-kendoreact). If you do not own a commercial license, this file shall be governed by the trial license terms.
8
+
9
+ All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
10
+
11
+ *Copyright © 2026 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
package/NOTICE.txt ADDED
@@ -0,0 +1,383 @@
1
+
2
+ Progress KendoReact 2026* Updated April 2026
3
+
4
+ ---------------------------------------------------------------------------------------------------------------------------
5
+ NOTICES REPORT
6
+ ----------------------------------------------------------------------------------------------------------------------------
7
+
8
+ Portions of the Products include certain open source and commercial third-party components listed below ("Third-Party
9
+ Components"). The authors of the Third-Party Components require Progress Software Corporation ("PSC") to include the
10
+ following notices and additional licensing terms as a condition of PSC's use of such Third-Party Components. You
11
+ acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-Party
12
+ Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party
13
+ Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Progress
14
+ Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for these
15
+ technologies, such terms and conditions are offered by PSC alone and not by any other party.
16
+
17
+ ----------------------------------------------------------------------------------------------------------------------------
18
+ Report Content
19
+ - General License Information
20
+ - Components
21
+ - License Data and Text
22
+ ----------------------------------------------------------------------------------------------------------------------------
23
+
24
+ General License Information:
25
+
26
+ ----------------------------------------------------------------------------------------------------------------------------
27
+
28
+ GENERATIVE ARTIFICIAL INTELLIGENCE INTEGRATION
29
+ If the Software documentation specifies integration with some form of generative artificial intelligence (AI), then the Software
30
+ will include a configuration to connect to AI. You acknowledge that a separate license or subscription access to AI governed
31
+ by the terms and conditions of a license agreement from AI licensor will be required for use and access of AI capabilities
32
+ integrated with the Software. You will be responsible to comply with the terms of such license agreement for a valid use of
33
+ AI. You acknowledge and accept that Progress is not a party to the license agreement between You and AI licensor for AI
34
+ use, and as a result Progress does not have any control over AI and its availability, and Progress disclaims any and all
35
+ liabilities for any output, error, damages, loss, etc., or any other result of Your use of AI integrated with the Software.
36
+
37
+ ----------------------------------------------------------------------------------------------------------------------------
38
+
39
+ Components:
40
+
41
+ | -------------------------------------- | ------------------------------------- | ---------------------------------------- |
42
+ | Component | Origin | License |
43
+ | -------------------------------------- | ------------------------------------- | ---------------------------------------- |
44
+ | axios 1.13.6 | https://github.com/axios/axios | MIT License |
45
+ | pdfjs-dist-for-node 4.6.82 | http://mozilla.github.io/pdf.js/ | Apache License 2.0 |
46
+ | @progress/jszip-esm 1.0.4 | https://github.com/telerik/jszip-esm# | MIT License |
47
+ | | readme | |
48
+ | @progress/pako-esm 1.0.1 | https://github.com/telerik/pako-esm#r | MIT License |
49
+ | | eadme | |
50
+ | prop-types 15.8.1 | https://github.com/facebook/prop-type | MIT License |
51
+ | | s | |
52
+ | prosemirror-commands 1.7.1 | https://github.com/prosemirror/prosem | MIT License |
53
+ | | irror-commands#readme | |
54
+ | prosemirror-dropcursor 1.8.2 | https://github.com/prosemirror/prosem | MIT License |
55
+ | | irror-dropcursor#readme | |
56
+ | prosemirror-gapcursor 1.4.0 | https://github.com/prosemirror/prosem | MIT License |
57
+ | | irror-gapcursor#readme | |
58
+ | prosemirror-history 1.5.0 | https://github.com/prosemirror/prosem | MIT License |
59
+ | | irror-history#readme | |
60
+ | prosemirror-inputrules 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
61
+ | | irror-inputrules#readme | |
62
+ | prosemirror-keymap 1.2.3 | https://github.com/prosemirror/prosem | MIT License |
63
+ | | irror-keymap#readme | |
64
+ | prosemirror-model 1.25.4 | https://github.com/prosemirror/prosem | MIT License |
65
+ | | irror-model#readme | |
66
+ | prosemirror-schema-list 1.5.1 | https://github.com/prosemirror/prosem | MIT License |
67
+ | | irror-schema-list#readme | |
68
+ | prosemirror-state 1.4.4 | https://github.com/prosemirror/prosem | MIT License |
69
+ | | irror-state#readme | |
70
+ | prosemirror-tables 1.8.5 | https://github.com/prosemirror/prosem | MIT License |
71
+ | | irror-tables#readme | |
72
+ | prosemirror-transform 1.11.0 | https://github.com/prosemirror/prosem | MIT License |
73
+ | | irror-transform#readme | |
74
+ | prosemirror-view 1.41.6 | https://github.com/prosemirror/prosem | MIT License |
75
+ | | irror-view#readme | |
76
+ | react-transition-group 4.4.4 | https://github.com/reactjs/react-tran | BSD 3-clause "New" or "Revised" License |
77
+ | | sition-group#readme | |
78
+ | -------------------------------------- | ------------------------------------- | ---------------------------------------- |
79
+
80
+ -------------------------------------------------------------------------------------------------------------------------
81
+ License Data and Text:
82
+ -------------------------------------------------------------------------------------------------------------------------
83
+
84
+ Apache License 2.0
85
+ (pdfjs-dist-for-node 4.6.82)
86
+
87
+ Apache License
88
+ Version 2.0, January 2004
89
+ =========================
90
+
91
+ http://www.apache.org/licenses/
92
+
93
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
94
+
95
+ 1. Definitions.
96
+
97
+ "License" shall mean the terms and conditions for use, reproduction, and
98
+ distribution as defined by Sections 1 through 9 of this document.
99
+
100
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright
101
+ owner that is granting the License.
102
+
103
+ "Legal Entity" shall mean the union of the acting entity and all other entities
104
+ that control, are controlled by, or are under common control with that entity.
105
+ For the purposes of this definition, "control" means (i) the power, direct or
106
+ indirect, to cause the direction or management of such entity, whether by
107
+ contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
108
+ outstanding shares, or (iii) beneficial ownership of such entity.
109
+
110
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions
111
+ granted by this License.
112
+
113
+ "Source" form shall mean the preferred form for making modifications, including
114
+ but not limited to software source code, documentation source, and configuration
115
+ files.
116
+
117
+ "Object" form shall mean any form resulting from mechanical transformation or
118
+ translation of a Source form, including but not limited to compiled object code,
119
+ generated documentation, and conversions to other media types.
120
+
121
+ "Work" shall mean the work of authorship, whether in Source or Object form, made
122
+ available under the License, as indicated by a copyright notice that is included
123
+ in or attached to the work (an example is provided in the Appendix below).
124
+
125
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is
126
+ based on (or derived from) the Work and for which the editorial revisions,
127
+ annotations, elaborations, or other modifications represent, as a whole, an
128
+ original work of authorship. For the purposes of this License, Derivative Works
129
+ shall not include works that remain separable from, or merely link (or bind by
130
+ name) to the interfaces of, the Work and Derivative Works thereof.
131
+
132
+ "Contribution" shall mean any work of authorship, including the original version
133
+ of the Work and any modifications or additions to that Work or Derivative Works
134
+ thereof, that is intentionally submitted to Licensor for inclusion in the Work by
135
+ the copyright owner or by an individual or Legal Entity authorized to submit on
136
+ behalf of the copyright owner. For the purposes of this definition, "submitted"
137
+ means any form of electronic, verbal, or written communication sent to the
138
+ Licensor or its representatives, including but not limited to communication on
139
+ electronic mailing lists, source code control systems, and issue tracking systems
140
+ that are managed by, or on behalf of, the Licensor for the purpose of discussing
141
+ and improving the Work, but excluding communication that is conspicuously marked
142
+ or otherwise designated in writing by the copyright owner as "Not a
143
+ Contribution."
144
+
145
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of
146
+ whom a Contribution has been received by Licensor and subsequently incorporated
147
+ within the Work.
148
+
149
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
150
+ License, each Contributor hereby grants to You a perpetual, worldwide,
151
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
152
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
153
+ sublicense, and distribute the Work and such Derivative Works in Source or Object
154
+ form.
155
+
156
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
157
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
158
+ no-charge, royalty-free, irrevocable (except as stated in this section) patent
159
+ license to make, have made, use, offer to sell, sell, import, and otherwise
160
+ transfer the Work, where such license applies only to those patent claims
161
+ licensable by such Contributor that are necessarily infringed by their
162
+ Contribution(s) alone or by combination of their Contribution(s) with the Work to
163
+ which such Contribution(s) was submitted. If You institute patent litigation
164
+ against any entity (including a cross-claim or counterclaim in a lawsuit)
165
+ alleging that the Work or a Contribution incorporated within the Work constitutes
166
+ direct or contributory patent infringement, then any patent licenses granted to
167
+ You under this License for that Work shall terminate as of the date such
168
+ litigation is filed.
169
+
170
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
171
+ Derivative Works thereof in any medium, with or without modifications, and in
172
+ Source or Object form, provided that You meet the following conditions:
173
+
174
+ a. You must give any other recipients of the Work or Derivative Works a copy of
175
+ this License; and
176
+
177
+ b. You must cause any modified files to carry prominent notices stating that
178
+ You changed the files; and
179
+
180
+ c. You must retain, in the Source form of any Derivative Works that You
181
+ distribute, all copyright, patent, trademark, and attribution notices from
182
+ the Source form of the Work, excluding those notices that do not pertain to
183
+ any part of the Derivative Works; and
184
+
185
+ d. If the Work includes a "NOTICE" text file as part of its distribution, then
186
+ any Derivative Works that You distribute must include a readable copy of the
187
+ attribution notices contained within such NOTICE file, excluding those
188
+ notices that do not pertain to any part of the Derivative Works, in at least
189
+ one of the following places: within a NOTICE text file distributed as part of
190
+ the Derivative Works; within the Source form or documentation, if provided
191
+ along with the Derivative Works; or, within a display generated by the
192
+ Derivative Works, if and wherever such third-party notices normally appear.
193
+ The contents of the NOTICE file are for informational purposes only and do
194
+ not modify the License. You may add Your own attribution notices within
195
+ Derivative Works that You distribute, alongside or as an addendum to the
196
+ NOTICE text from the Work, provided that such additional attribution notices
197
+ cannot be construed as modifying the License.
198
+
199
+ You may add Your own copyright statement to Your modifications and may provide
200
+ additional or different license terms and conditions for use, reproduction, or
201
+ distribution of Your modifications, or for any such Derivative Works as a whole,
202
+ provided Your use, reproduction, and distribution of the Work otherwise complies
203
+ with the conditions stated in this License.
204
+
205
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
206
+ Contribution intentionally submitted for inclusion in the Work by You to the
207
+ Licensor shall be under the terms and conditions of this License, without any
208
+ additional terms or conditions. Notwithstanding the above, nothing herein shall
209
+ supersede or modify the terms of any separate license agreement you may have
210
+ executed with Licensor regarding such Contributions.
211
+
212
+ 6. Trademarks. This License does not grant permission to use the trade names,
213
+ trademarks, service marks, or product names of the Licensor, except as required
214
+ for reasonable and customary use in describing the origin of the Work and
215
+ reproducing the content of the NOTICE file.
216
+
217
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
218
+ writing, Licensor provides the Work (and each Contributor provides its
219
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
220
+ either express or implied, including, without limitation, any warranties or
221
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
222
+ PARTICULAR PURPOSE. You are solely responsible for determining the
223
+ appropriateness of using or redistributing the Work and assume any risks
224
+ associated with Your exercise of permissions under this License.
225
+
226
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
227
+ tort (including negligence), contract, or otherwise, unless required by
228
+ applicable law (such as deliberate and grossly negligent acts) or agreed to in
229
+ writing, shall any Contributor be liable to You for damages, including any
230
+ direct, indirect, special, incidental, or consequential damages of any character
231
+ arising as a result of this License or out of the use or inability to use the
232
+ Work (including but not limited to damages for loss of goodwill, work stoppage,
233
+ computer failure or malfunction, or any and all other commercial damages or
234
+ losses), even if such Contributor has been advised of the possibility of such
235
+ damages.
236
+
237
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
238
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
239
+ acceptance of support, warranty, indemnity, or other liability obligations and/or
240
+ rights consistent with this License. However, in accepting such obligations, You
241
+ may act only on Your own behalf and on Your sole responsibility, not on behalf of
242
+ any other Contributor, and only if You agree to indemnify, defend, and hold each
243
+ Contributor harmless for any liability incurred by, or claims asserted against,
244
+ such Contributor by reason of your accepting any such warranty or additional
245
+ liability.
246
+
247
+ END OF TERMS AND CONDITIONS
248
+
249
+ APPENDIX: How to apply the Apache License to your work
250
+
251
+ To apply the Apache License to your work, attach the following boilerplate
252
+ notice, with the fields enclosed by brackets "[]" replaced with your own
253
+ identifying information. (Don't include the brackets!) The text should be
254
+ enclosed in the appropriate comment syntax for the file format. We also recommend
255
+ that a file or class name and description of purpose be included on the same
256
+ "printed page" as the copyright notice for easier identification within
257
+ third-party archives.
258
+
259
+ Copyright [yyyy] [name of copyright owner] Licensed under the Apache License,
260
+ Version 2.0 (the "License"); you may not use this file except in compliance
261
+ with the License. You may obtain a copy of the License at
262
+ http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
263
+ or agreed to in writing, software distributed under the License is
264
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
265
+ KIND, either express or implied. See the License for the specific language
266
+ governing permissions and limitations under the License.
267
+
268
+ ---
269
+
270
+ BSD 3-clause "New" or "Revised" License
271
+ (react-transition-group 4.4.4)
272
+
273
+ Copyright (c) <YEAR>, <OWNER>
274
+ All rights reserved.
275
+
276
+ Redistribution and use in source and binary forms, with or without modification,
277
+ are permitted provided that the following conditions are met:
278
+
279
+ * Redistributions of source code must retain the above copyright notice, this
280
+ list of conditions and the following disclaimer.
281
+
282
+ * Redistributions in binary form must reproduce the above copyright notice,
283
+ this list of conditions and the following disclaimer in the documentation
284
+ and/or other materials provided with the distribution.
285
+
286
+ * Neither the name of the <ORGANIZATION> nor the names of its contributors may
287
+ be used to endorse or promote products derived from this software without
288
+ specific prior written permission.
289
+
290
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
291
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
292
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
293
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
294
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
295
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
296
+ OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
297
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
298
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
299
+ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
300
+
301
+ ---
302
+
303
+ MIT License
304
+ (@progress/pako-esm 1.0.1)
305
+
306
+ Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
307
+
308
+ Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
309
+
310
+ Permission is hereby granted, free of charge, to any person obtaining a copy
311
+ of this software and associated documentation files (the "Software"), to deal
312
+ in the Software without restriction, including without limitation the rights
313
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
314
+ copies of the Software, and to permit persons to whom the Software is
315
+ furnished to do so, subject to the following conditions:
316
+
317
+ The above copyright notice and this permission notice shall be included in
318
+ all copies or substantial portions of the Software.
319
+
320
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
321
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
322
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
323
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
324
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
325
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
326
+ THE SOFTWARE
327
+
328
+ ---
329
+
330
+ MIT License
331
+ (prop-types 15.8.1)
332
+
333
+ MIT License
334
+
335
+ Copyright (c) 2013-present, Facebook, Inc.
336
+
337
+ Permission is hereby granted, free of charge, to any person obtaining a copy
338
+ of this software and associated documentation files (the "Software"), to deal
339
+ in the Software without restriction, including without limitation the rights
340
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
341
+ copies of the Software, and to permit persons to whom the Software is
342
+ furnished to do so, subject to the following conditions:
343
+
344
+ The above copyright notice and this permission notice shall be included in all
345
+ copies or substantial portions of the Software.
346
+
347
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
348
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
349
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
350
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
351
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
352
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
353
+ SOFTWARE
354
+
355
+ ---
356
+
357
+ MIT License
358
+ (@progress/jszip-esm 1.0.4, axios 1.13.6, prosemirror-commands 1.7.1, prosemirror-dropcursor 1.8.2, prosemirror-gapcursor 1.4.0, prosemirror-history 1.5.0, prosemirror-inputrules 1.5.1, prosemirror-keymap 1.2.3, prosemirror-model 1.25.4, prosemirror-schema-list 1.5.1, prosemirror-state 1.4.4, prosemirror-tables 1.8.5, prosemirror-transform 1.11.0, prosemirror-view 1.41.6)
359
+
360
+ The MIT License
361
+ ===============
362
+
363
+ Copyright (c) <year> <copyright holders>
364
+
365
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
366
+ this software and associated documentation files (the "Software"), to deal in the
367
+ Software without restriction, including without limitation the rights to use,
368
+ copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
369
+ Software, and to permit persons to whom the Software is furnished to do so,
370
+ subject to the following conditions:
371
+
372
+ The above copyright notice and this permission notice shall be included in all
373
+ copies or substantial portions of the Software.
374
+
375
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
376
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
377
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
378
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
379
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
380
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
381
+
382
+ ---
383
+
package/README.md ADDED
@@ -0,0 +1,72 @@
1
+ [![KendoReact NPM Banner](https://raw.githubusercontent.com/telerik/kendo-react/master/images/kendoreact-github-banner.png)](https://www.telerik.com/kendo-react-ui/components/free?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-webmcp&utm_content=banner)
2
+
3
+ # KendoReact Web MCP Provider for React
4
+
5
+ > **Important**
6
+ >
7
+ > - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-webmcp)&mdash;an enterprise-grade UI library with 120+ free and premium components.
8
+ > - It contains both free and premium KendoReact components and tools. To use the premium components, you must install a license key file, whether you are on a paid license or a 30-day free trial. To receive a license key, either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing) or start a [free trial](https://www.telerik.com/download-login-v2-kendo-react-ui). You can use the free components without having to sign up or get a license key.
9
+ > - If you're looking for free React components, check out [Get Started with KendoReact Free](https://www.telerik.com/kendo-react-ui/components/free).
10
+ > - If you have an active license, visit the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-webmcp) to learn how to configure your KendoReact licensing.
11
+
12
+ ## Architecture
13
+
14
+ ```
15
+ ┌─────────────────────────────────────────────────────────────────┐
16
+ │ <WebMcpProvider dataName="..."> │
17
+ │ (@progress/kendo-react-webmcp) │
18
+ │ │
19
+ │ Maintains ADAPTER_MAP and a stable register() callback. │
20
+ │ Publishes register() via WebMcpContext. │
21
+ │ │
22
+ │ ┌──────────────────────────────────────────────────────────┐ │
23
+ │ │ WebMcpContext (@progress/kendo-react-common) │ │
24
+ │ │ { register } │ │
25
+ │ │ │ │
26
+ │ │ ┌────────────────────────────────────────────────────┐ │ │
27
+ │ │ │ <KendoReact component webMcp={{ dataName: "..." }}│ │ │
28
+ │ │ │ │ │ │
29
+ │ │ │ useWebMcpRegister('textbox', handleRef, props) │ │ │
30
+ │ │ │ ↓ calls ctx.register(type, handle, propsRef) │ │ │
31
+ │ │ │ │ │ │
32
+ │ │ │ adapter.createTools(handle, propsRef, config, mc) │ │ │
33
+ │ │ │ ↓ for each enabled tool: │ │ │
34
+ │ │ │ │ │ │
35
+ │ │ │ navigator.modelContext.registerTool({ │ │ │
36
+ │ │ │ name: `${dataName}_set_value`, │ │ │
37
+ │ │ │ execute: async (args) => { ... } │ │ │
38
+ │ │ │ }) ↑ Chrome 146+ browser API │ │ │
39
+ │ │ └────────────────────────────────────────────────────┘ │ │
40
+ │ └──────────────────────────────────────────────────────────┘ │
41
+ └─────────────────────────────────────────────────────────────────┘
42
+
43
+ Tool name format: {dataName}_{toolSuffix}
44
+ e.g. firstName_set_value, employees_sort
45
+ ```
46
+
47
+ ### Data flow on component mount
48
+
49
+ ```
50
+ App renders <WebMcpProvider>
51
+ └─ WebMcpProvider publishes { register } via WebMcpContext
52
+ └─ KendoReact component mounts
53
+ └─ useWebMcpRegister() runs (in useEffect)
54
+ └─ ctx.register('textbox', handle, propsRef, webMcpConfig)
55
+ ├─ ADAPTER_MAP.get('textbox') → textBoxAdapter
56
+ ├─ getModelContext() → navigator.modelContext
57
+ └─ textBoxAdapter.createTools(handle, propsRef, config, mc)
58
+ └─ mc.registerTool({ name, description, inputSchema, execute })
59
+ └─ Returns { unregister } ← stored for cleanup
60
+ ```
61
+
62
+ ### Data flow on component unmount
63
+
64
+ ```
65
+ KendoReact component unmounts
66
+ └─ useWebMcpRegister cleanup runs
67
+ └─ register() cleanup function
68
+ └─ registrations.forEach(r => r.unregister())
69
+ └─ navigator.modelContext unregisters each tool
70
+ ```
71
+
72
+
@@ -0,0 +1,49 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ /**
9
+ * WebMcpProvider — Context-based provider that registers Web MCP tools
10
+ * for KendoReact components at any depth in the tree.
11
+ *
12
+ * Components call `useWebMcpRegister` (from kendo-react-common) to announce
13
+ * themselves. This provider receives those registrations and uses adapters
14
+ * to create the appropriate tools. Component packages stay clean — they
15
+ * only call a tiny one-line hook.
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * import { WebMcpProvider } from '@progress/kendo-react-webmcp';
20
+ * import { TextBox } from '@progress/kendo-react-inputs';
21
+ *
22
+ * // One provider wraps all components. Each component specifies its own dataName.
23
+ * <WebMcpProvider>
24
+ * <div className="field">
25
+ * <TextBox webMcp={{ dataName: 'greeting' }} value={value} onChange={handleChange} />
26
+ * </div>
27
+ * </WebMcpProvider>
28
+ * ```
29
+ *
30
+ * @module WebMcpProvider
31
+ */
32
+ import * as React from 'react';
33
+ export interface WebMcpProviderProps {
34
+ children: React.ReactNode;
35
+ /** Human-readable data name exposed to AI agents. Optional — each component can provide its own via `webMcp={{ dataName }}`. */
36
+ dataName?: string;
37
+ }
38
+ /**
39
+ * Context-based provider that receives component registrations from any
40
+ * depth in the tree and creates Web MCP tools using adapters.
41
+ *
42
+ * The flow:
43
+ * 1. Provider publishes a `register` callback via `WebMcpContext`.
44
+ * 2. Components call `useWebMcpRegister('textbox', handle, props)` (1 line).
45
+ * 3. The `register` callback looks up the adapter by component type string.
46
+ * 4. The adapter creates tools using the component's handle and props.
47
+ * 5. Tools are unregistered when the component unmounts or the provider unmounts.
48
+ */
49
+ export declare const WebMcpProvider: React.FC<WebMcpProviderProps>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),p=require("@progress/kendo-react-common"),w=require("./adapters/textbox.js"),k=require("./adapters/button.js"),v=require("./adapters/treeview.js"),h=require("./adapters/chat.js"),P=require("./adapters/form.js"),M=require("./adapters/editor.js"),N=require("./adapters/spreadsheet.js"),D=require("./adapters/scheduler.js"),S=require("./adapters/gantt.js"),T=require("./adapters/grid.js"),R=require("./adapters/treelist.js"),y=require("./adapters/tabstrip.js"),B=require("./adapters/panelbar.js"),O=require("./adapters/stepper.js"),_=require("./adapters/drawer.js"),j=require("./adapters/window.js"),C=require("./adapters/dropdownlist.js"),V=require("./adapters/combobox.js"),E=require("./adapters/autocomplete.js"),W=require("./adapters/multiselect.js"),L=require("./adapters/dropdowntree.js"),$=require("./adapters/datepicker.js"),z=require("./adapters/daterangepicker.js"),G=require("./adapters/timepicker.js"),F=require("./adapters/datetimepicker.js"),H=require("./adapters/calendar.js"),I=require("./adapters/numerictextbox.js"),J=require("./adapters/slider.js"),K=require("./adapters/rangeslider.js"),Q=require("./adapters/colorpicker.js"),U=require("./adapters/switch.js"),X=require("./adapters/rating.js"),Y=require("./adapters/textarea.js"),Z=require("./adapters/maskedtextbox.js"),ee=require("./adapters/signature.js"),te=require("./adapters/upload.js"),re=require("./adapters/listbox.js"),oe=require("./adapters/listview.js"),ae=require("./adapters/dialog.js"),ie=require("./adapters/menu.js"),ce=require("./adapters/scrollview.js"),ne=require("./adapters/sortable.js"),se=require("./adapters/map.js"),de=require("./adapters/notification.js"),pe=require("./adapters/chart.js"),ue=require("./adapters/taskboard.js"),le=require("./adapters/pivotgrid.js"),me=require("./adapters/aiprompt.js");function Ae(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=Ae(f),qe=new Map([["textbox",w.textBoxAdapter],["button",k.buttonAdapter],["treeview",v.treeViewAdapter],["chat",h.chatAdapter],["form",P.formAdapter],["editor",M.editorAdapter],["spreadsheet",N.spreadsheetAdapter],["scheduler",D.schedulerAdapter],["gantt",S.ganttAdapter],["grid",T.gridAdapter],["treelist",R.treeListAdapter],["tabstrip",y.tabStripAdapter],["panelbar",B.panelBarAdapter],["stepper",O.stepperAdapter],["drawer",_.drawerAdapter],["window",j.windowAdapter],["dropdownlist",C.dropDownListAdapter],["combobox",V.comboBoxAdapter],["autocomplete",E.autoCompleteAdapter],["multiselect",W.multiSelectAdapter],["dropdowntree",L.dropDownTreeAdapter],["datepicker",$.datePickerAdapter],["daterangepicker",z.dateRangePickerAdapter],["timepicker",G.timePickerAdapter],["datetimepicker",F.dateTimePickerAdapter],["calendar",H.calendarAdapter],["numerictextbox",I.numericTextBoxAdapter],["slider",J.sliderAdapter],["rangeslider",K.rangeSliderAdapter],["colorpicker",Q.colorPickerAdapter],["switch",U.switchAdapter],["rating",X.ratingAdapter],["textarea",Y.textAreaAdapter],["maskedtextbox",Z.maskedTextBoxAdapter],["signature",ee.signatureAdapter],["upload",te.uploadAdapter],["listbox",re.listBoxAdapter],["listview",oe.listViewAdapter],["dialog",ae.dialogAdapter],["menu",ie.menuAdapter],["scrollview",ce.scrollViewAdapter],["sortable",ne.sortableAdapter],["map",se.mapAdapter],["notification",de.notificationAdapter],["chart",pe.chartAdapter],["taskboard",ue.taskboardAdapter],["pivotgrid",le.pivotgridAdapter],["aiprompt",me.aipromptAdapter]]),be=({children:e,dataName:r})=>{const t=i.useRef(r);t.current=r;const o=i.useCallback((l,m,A,q)=>{const c=qe.get(l);if(!c)return()=>{};const d=p.getModelContext();if(!d)return()=>{};const a=q,n=(typeof(a==null?void 0:a.dataName)=="string"?a.dataName:void 0)||t.current;if(!n)return()=>{};const b=`${n}_${c.componentSuffix}`,g={dataName:n,groupName:b},x=c.createTools(m,A,g,d);return()=>{x.forEach(s=>s==null?void 0:s.unregister())}},[]),u=i.useMemo(()=>({register:o}),[o]);return i.createElement(p.WebMcpContext.Provider,{value:u},e)};exports.WebMcpProvider=be;