@walkeros/explorer 3.0.0-next-1773236214827 → 3.0.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 (363) hide show
  1. package/dist/index.d.ts +1338 -69
  2. package/dist/index.js +1 -59
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +1 -1
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +6 -6
  7. package/dist/__mocks__/@monaco-editor/react.d.ts +0 -3
  8. package/dist/__mocks__/@monaco-editor/react.d.ts.map +0 -1
  9. package/dist/__mocks__/@monaco-editor/react.js +0 -4
  10. package/dist/__mocks__/@monaco-editor/react.js.map +0 -1
  11. package/dist/components/atoms/box.d.ts +0 -27
  12. package/dist/components/atoms/box.d.ts.map +0 -1
  13. package/dist/components/atoms/box.js +0 -86
  14. package/dist/components/atoms/box.js.map +0 -1
  15. package/dist/components/atoms/box.stories.d.ts +0 -34
  16. package/dist/components/atoms/box.stories.d.ts.map +0 -1
  17. package/dist/components/atoms/box.stories.js +0 -104
  18. package/dist/components/atoms/box.stories.js.map +0 -1
  19. package/dist/components/atoms/button-group.d.ts +0 -17
  20. package/dist/components/atoms/button-group.d.ts.map +0 -1
  21. package/dist/components/atoms/button-group.js +0 -12
  22. package/dist/components/atoms/button-group.js.map +0 -1
  23. package/dist/components/atoms/button-group.stories.d.ts +0 -18
  24. package/dist/components/atoms/button-group.stories.d.ts.map +0 -1
  25. package/dist/components/atoms/button-group.stories.js +0 -39
  26. package/dist/components/atoms/button-group.stories.js.map +0 -1
  27. package/dist/components/atoms/button-link.d.ts +0 -12
  28. package/dist/components/atoms/button-link.d.ts.map +0 -1
  29. package/dist/components/atoms/button-link.js +0 -10
  30. package/dist/components/atoms/button-link.js.map +0 -1
  31. package/dist/components/atoms/button-link.stories.d.ts +0 -11
  32. package/dist/components/atoms/button-link.stories.d.ts.map +0 -1
  33. package/dist/components/atoms/button-link.stories.js +0 -50
  34. package/dist/components/atoms/button-link.stories.js.map +0 -1
  35. package/dist/components/atoms/button.d.ts +0 -15
  36. package/dist/components/atoms/button.d.ts.map +0 -1
  37. package/dist/components/atoms/button.js +0 -11
  38. package/dist/components/atoms/button.js.map +0 -1
  39. package/dist/components/atoms/button.stories.d.ts +0 -14
  40. package/dist/components/atoms/button.stories.d.ts.map +0 -1
  41. package/dist/components/atoms/button.stories.js +0 -25
  42. package/dist/components/atoms/button.stories.js.map +0 -1
  43. package/dist/components/atoms/code.d.ts +0 -92
  44. package/dist/components/atoms/code.d.ts.map +0 -1
  45. package/dist/components/atoms/code.js +0 -405
  46. package/dist/components/atoms/code.js.map +0 -1
  47. package/dist/components/atoms/code.stories.d.ts +0 -46
  48. package/dist/components/atoms/code.stories.d.ts.map +0 -1
  49. package/dist/components/atoms/code.stories.js +0 -156
  50. package/dist/components/atoms/code.stories.js.map +0 -1
  51. package/dist/components/atoms/footer.d.ts +0 -21
  52. package/dist/components/atoms/footer.d.ts.map +0 -1
  53. package/dist/components/atoms/footer.js +0 -19
  54. package/dist/components/atoms/footer.js.map +0 -1
  55. package/dist/components/atoms/footer.stories.d.ts +0 -14
  56. package/dist/components/atoms/footer.stories.d.ts.map +0 -1
  57. package/dist/components/atoms/footer.stories.js +0 -29
  58. package/dist/components/atoms/footer.stories.js.map +0 -1
  59. package/dist/components/atoms/grid.d.ts +0 -65
  60. package/dist/components/atoms/grid.d.ts.map +0 -1
  61. package/dist/components/atoms/grid.js +0 -169
  62. package/dist/components/atoms/grid.js.map +0 -1
  63. package/dist/components/atoms/grid.stories.d.ts +0 -18
  64. package/dist/components/atoms/grid.stories.d.ts.map +0 -1
  65. package/dist/components/atoms/grid.stories.js +0 -60
  66. package/dist/components/atoms/grid.stories.js.map +0 -1
  67. package/dist/components/atoms/header.d.ts +0 -7
  68. package/dist/components/atoms/header.d.ts.map +0 -1
  69. package/dist/components/atoms/header.js +0 -5
  70. package/dist/components/atoms/header.js.map +0 -1
  71. package/dist/components/atoms/header.stories.d.ts +0 -15
  72. package/dist/components/atoms/header.stories.d.ts.map +0 -1
  73. package/dist/components/atoms/header.stories.js +0 -37
  74. package/dist/components/atoms/header.stories.js.map +0 -1
  75. package/dist/components/atoms/icons/icon.stories.d.ts +0 -18
  76. package/dist/components/atoms/icons/icon.stories.d.ts.map +0 -1
  77. package/dist/components/atoms/icons/icon.stories.js +0 -37
  78. package/dist/components/atoms/icons/icon.stories.js.map +0 -1
  79. package/dist/components/atoms/icons/icons.d.ts +0 -2
  80. package/dist/components/atoms/icons/icons.d.ts.map +0 -1
  81. package/dist/components/atoms/icons/icons.js +0 -7
  82. package/dist/components/atoms/icons/icons.js.map +0 -1
  83. package/dist/components/atoms/icons/index.d.ts +0 -3
  84. package/dist/components/atoms/icons/index.d.ts.map +0 -1
  85. package/dist/components/atoms/icons/index.js +0 -3
  86. package/dist/components/atoms/icons/index.js.map +0 -1
  87. package/dist/components/atoms/mdx-code.d.ts +0 -33
  88. package/dist/components/atoms/mdx-code.d.ts.map +0 -1
  89. package/dist/components/atoms/mdx-code.js +0 -69
  90. package/dist/components/atoms/mdx-code.js.map +0 -1
  91. package/dist/components/atoms/preview-footer.d.ts +0 -32
  92. package/dist/components/atoms/preview-footer.d.ts.map +0 -1
  93. package/dist/components/atoms/preview-footer.js +0 -31
  94. package/dist/components/atoms/preview-footer.js.map +0 -1
  95. package/dist/components/atoms/spinner.d.ts +0 -17
  96. package/dist/components/atoms/spinner.d.ts.map +0 -1
  97. package/dist/components/atoms/spinner.js +0 -14
  98. package/dist/components/atoms/spinner.js.map +0 -1
  99. package/dist/components/atoms/spinner.stories.d.ts +0 -7
  100. package/dist/components/atoms/spinner.stories.d.ts.map +0 -1
  101. package/dist/components/atoms/spinner.stories.js +0 -9
  102. package/dist/components/atoms/spinner.stories.js.map +0 -1
  103. package/dist/components/atoms/toggle.d.ts +0 -9
  104. package/dist/components/atoms/toggle.d.ts.map +0 -1
  105. package/dist/components/atoms/toggle.js +0 -6
  106. package/dist/components/atoms/toggle.js.map +0 -1
  107. package/dist/components/demos/DestinationDemo.d.ts +0 -48
  108. package/dist/components/demos/DestinationDemo.d.ts.map +0 -1
  109. package/dist/components/demos/DestinationDemo.js +0 -105
  110. package/dist/components/demos/DestinationDemo.js.map +0 -1
  111. package/dist/components/demos/DestinationDemo.stories.d.ts +0 -17
  112. package/dist/components/demos/DestinationDemo.stories.d.ts.map +0 -1
  113. package/dist/components/demos/DestinationDemo.stories.js +0 -53
  114. package/dist/components/demos/DestinationDemo.stories.js.map +0 -1
  115. package/dist/components/demos/DestinationInitDemo.d.ts +0 -34
  116. package/dist/components/demos/DestinationInitDemo.d.ts.map +0 -1
  117. package/dist/components/demos/DestinationInitDemo.js +0 -73
  118. package/dist/components/demos/DestinationInitDemo.js.map +0 -1
  119. package/dist/components/demos/DestinationInitDemo.stories.d.ts +0 -17
  120. package/dist/components/demos/DestinationInitDemo.stories.d.ts.map +0 -1
  121. package/dist/components/demos/DestinationInitDemo.stories.js +0 -39
  122. package/dist/components/demos/DestinationInitDemo.stories.js.map +0 -1
  123. package/dist/components/demos/PromotionPlayground.d.ts +0 -30
  124. package/dist/components/demos/PromotionPlayground.d.ts.map +0 -1
  125. package/dist/components/demos/PromotionPlayground.js +0 -366
  126. package/dist/components/demos/PromotionPlayground.js.map +0 -1
  127. package/dist/components/demos/PromotionPlayground.stories.d.ts +0 -27
  128. package/dist/components/demos/PromotionPlayground.stories.d.ts.map +0 -1
  129. package/dist/components/demos/PromotionPlayground.stories.js +0 -32
  130. package/dist/components/demos/PromotionPlayground.stories.js.map +0 -1
  131. package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts +0 -24
  132. package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts.map +0 -1
  133. package/dist/components/molecules/architecture-flow/ArchitectureFlow.js +0 -10
  134. package/dist/components/molecules/architecture-flow/ArchitectureFlow.js.map +0 -1
  135. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts +0 -7
  136. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts.map +0 -1
  137. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +0 -71
  138. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +0 -1
  139. package/dist/components/molecules/architecture-flow/index.d.ts +0 -3
  140. package/dist/components/molecules/architecture-flow/index.d.ts.map +0 -1
  141. package/dist/components/molecules/architecture-flow/index.js +0 -2
  142. package/dist/components/molecules/architecture-flow/index.js.map +0 -1
  143. package/dist/components/molecules/code-box.d.ts +0 -75
  144. package/dist/components/molecules/code-box.d.ts.map +0 -1
  145. package/dist/components/molecules/code-box.js +0 -174
  146. package/dist/components/molecules/code-box.js.map +0 -1
  147. package/dist/components/molecules/code-box.stories.d.ts +0 -87
  148. package/dist/components/molecules/code-box.stories.d.ts.map +0 -1
  149. package/dist/components/molecules/code-box.stories.js +0 -300
  150. package/dist/components/molecules/code-box.stories.js.map +0 -1
  151. package/dist/components/molecules/code-snippet.d.ts +0 -58
  152. package/dist/components/molecules/code-snippet.d.ts.map +0 -1
  153. package/dist/components/molecules/code-snippet.js +0 -72
  154. package/dist/components/molecules/code-snippet.js.map +0 -1
  155. package/dist/components/molecules/code-snippet.stories.d.ts +0 -23
  156. package/dist/components/molecules/code-snippet.stories.d.ts.map +0 -1
  157. package/dist/components/molecules/code-snippet.stories.js +0 -87
  158. package/dist/components/molecules/code-snippet.stories.js.map +0 -1
  159. package/dist/components/molecules/dropdown.d.ts +0 -68
  160. package/dist/components/molecules/dropdown.d.ts.map +0 -1
  161. package/dist/components/molecules/dropdown.js +0 -47
  162. package/dist/components/molecules/dropdown.js.map +0 -1
  163. package/dist/components/molecules/dropdown.stories.d.ts +0 -7
  164. package/dist/components/molecules/dropdown.stories.d.ts.map +0 -1
  165. package/dist/components/molecules/dropdown.stories.js +0 -18
  166. package/dist/components/molecules/dropdown.stories.js.map +0 -1
  167. package/dist/components/molecules/flow-map/FlowMap.d.ts +0 -74
  168. package/dist/components/molecules/flow-map/FlowMap.d.ts.map +0 -1
  169. package/dist/components/molecules/flow-map/FlowMap.js +0 -1039
  170. package/dist/components/molecules/flow-map/FlowMap.js.map +0 -1
  171. package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +0 -47
  172. package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +0 -1
  173. package/dist/components/molecules/flow-map/FlowMap.stories.js +0 -355
  174. package/dist/components/molecules/flow-map/FlowMap.stories.js.map +0 -1
  175. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +0 -29
  176. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +0 -1
  177. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +0 -117
  178. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +0 -1
  179. package/dist/components/molecules/flow-map/index.d.ts +0 -3
  180. package/dist/components/molecules/flow-map/index.d.ts.map +0 -1
  181. package/dist/components/molecules/flow-map/index.js +0 -2
  182. package/dist/components/molecules/flow-map/index.js.map +0 -1
  183. package/dist/components/molecules/preview.d.ts +0 -23
  184. package/dist/components/molecules/preview.d.ts.map +0 -1
  185. package/dist/components/molecules/preview.js +0 -232
  186. package/dist/components/molecules/preview.js.map +0 -1
  187. package/dist/components/molecules/preview.stories.d.ts +0 -23
  188. package/dist/components/molecules/preview.stories.d.ts.map +0 -1
  189. package/dist/components/molecules/preview.stories.js +0 -186
  190. package/dist/components/molecules/preview.stories.js.map +0 -1
  191. package/dist/components/molecules/property-table.d.ts +0 -7
  192. package/dist/components/molecules/property-table.d.ts.map +0 -1
  193. package/dist/components/molecules/property-table.js +0 -88
  194. package/dist/components/molecules/property-table.js.map +0 -1
  195. package/dist/components/molecules/property-table.stories.d.ts +0 -24
  196. package/dist/components/molecules/property-table.stories.d.ts.map +0 -1
  197. package/dist/components/molecules/property-table.stories.js +0 -86
  198. package/dist/components/molecules/property-table.stories.js.map +0 -1
  199. package/dist/components/organisms/browser-box.d.ts +0 -31
  200. package/dist/components/organisms/browser-box.d.ts.map +0 -1
  201. package/dist/components/organisms/browser-box.js +0 -80
  202. package/dist/components/organisms/browser-box.js.map +0 -1
  203. package/dist/components/organisms/browser-box.stories.d.ts +0 -26
  204. package/dist/components/organisms/browser-box.stories.d.ts.map +0 -1
  205. package/dist/components/organisms/browser-box.stories.js +0 -102
  206. package/dist/components/organisms/browser-box.stories.js.map +0 -1
  207. package/dist/components/organisms/collector-box.d.ts +0 -24
  208. package/dist/components/organisms/collector-box.d.ts.map +0 -1
  209. package/dist/components/organisms/collector-box.js +0 -56
  210. package/dist/components/organisms/collector-box.js.map +0 -1
  211. package/dist/components/organisms/collector-box.stories.d.ts +0 -22
  212. package/dist/components/organisms/collector-box.stories.d.ts.map +0 -1
  213. package/dist/components/organisms/collector-box.stories.js +0 -59
  214. package/dist/components/organisms/collector-box.stories.js.map +0 -1
  215. package/dist/components/organisms/live-code.d.ts +0 -22
  216. package/dist/components/organisms/live-code.d.ts.map +0 -1
  217. package/dist/components/organisms/live-code.js +0 -50
  218. package/dist/components/organisms/live-code.js.map +0 -1
  219. package/dist/components/organisms/live-code.stories.d.ts +0 -24
  220. package/dist/components/organisms/live-code.stories.d.ts.map +0 -1
  221. package/dist/components/organisms/live-code.stories.js +0 -55
  222. package/dist/components/organisms/live-code.stories.js.map +0 -1
  223. package/dist/components/ui/button.d.ts +0 -4
  224. package/dist/components/ui/button.d.ts.map +0 -1
  225. package/dist/components/ui/button.js +0 -6
  226. package/dist/components/ui/button.js.map +0 -1
  227. package/dist/components/ui/icon.d.ts +0 -5
  228. package/dist/components/ui/icon.d.ts.map +0 -1
  229. package/dist/components/ui/icon.js +0 -5
  230. package/dist/components/ui/icon.js.map +0 -1
  231. package/dist/contexts/GridHeightContext.d.ts +0 -11
  232. package/dist/contexts/GridHeightContext.d.ts.map +0 -1
  233. package/dist/contexts/GridHeightContext.js +0 -14
  234. package/dist/contexts/GridHeightContext.js.map +0 -1
  235. package/dist/helpers/capture.d.ts +0 -83
  236. package/dist/helpers/capture.d.ts.map +0 -1
  237. package/dist/helpers/capture.js +0 -125
  238. package/dist/helpers/capture.js.map +0 -1
  239. package/dist/helpers/destinations.d.ts +0 -21
  240. package/dist/helpers/destinations.d.ts.map +0 -1
  241. package/dist/helpers/destinations.js +0 -46
  242. package/dist/helpers/destinations.js.map +0 -1
  243. package/dist/hooks/useDropdown.d.ts +0 -34
  244. package/dist/hooks/useDropdown.d.ts.map +0 -1
  245. package/dist/hooks/useDropdown.js +0 -66
  246. package/dist/hooks/useDropdown.js.map +0 -1
  247. package/dist/hooks/useMonacoHeight.d.ts +0 -31
  248. package/dist/hooks/useMonacoHeight.d.ts.map +0 -1
  249. package/dist/hooks/useMonacoHeight.js +0 -83
  250. package/dist/hooks/useMonacoHeight.js.map +0 -1
  251. package/dist/hooks/useTreeState.d.ts +0 -32
  252. package/dist/hooks/useTreeState.d.ts.map +0 -1
  253. package/dist/hooks/useTreeState.js +0 -94
  254. package/dist/hooks/useTreeState.js.map +0 -1
  255. package/dist/index.d.ts.map +0 -1
  256. package/dist/lib/utils.d.ts +0 -7
  257. package/dist/lib/utils.d.ts.map +0 -1
  258. package/dist/lib/utils.js +0 -10
  259. package/dist/lib/utils.js.map +0 -1
  260. package/dist/providers/MDXProvider.d.ts +0 -40
  261. package/dist/providers/MDXProvider.d.ts.map +0 -1
  262. package/dist/providers/MDXProvider.js +0 -57
  263. package/dist/providers/MDXProvider.js.map +0 -1
  264. package/dist/themes/index.d.ts +0 -23
  265. package/dist/themes/index.d.ts.map +0 -1
  266. package/dist/themes/index.js +0 -29
  267. package/dist/themes/index.js.map +0 -1
  268. package/dist/themes/lighthouse.d.ts +0 -26
  269. package/dist/themes/lighthouse.d.ts.map +0 -1
  270. package/dist/themes/lighthouse.js +0 -230
  271. package/dist/themes/lighthouse.js.map +0 -1
  272. package/dist/themes/palenight.d.ts +0 -31
  273. package/dist/themes/palenight.d.ts.map +0 -1
  274. package/dist/themes/palenight.js +0 -236
  275. package/dist/themes/palenight.js.map +0 -1
  276. package/dist/themes/types.d.ts +0 -103
  277. package/dist/themes/types.d.ts.map +0 -1
  278. package/dist/themes/types.js +0 -8
  279. package/dist/themes/types.js.map +0 -1
  280. package/dist/types/intellisense.d.ts +0 -33
  281. package/dist/types/intellisense.d.ts.map +0 -1
  282. package/dist/types/intellisense.js +0 -2
  283. package/dist/types/intellisense.js.map +0 -1
  284. package/dist/utils/code-normalizer.d.ts +0 -11
  285. package/dist/utils/code-normalizer.d.ts.map +0 -1
  286. package/dist/utils/code-normalizer.js +0 -21
  287. package/dist/utils/code-normalizer.js.map +0 -1
  288. package/dist/utils/contract-path-walker.d.ts +0 -27
  289. package/dist/utils/contract-path-walker.d.ts.map +0 -1
  290. package/dist/utils/contract-path-walker.js +0 -145
  291. package/dist/utils/contract-path-walker.js.map +0 -1
  292. package/dist/utils/format-code.d.ts +0 -9
  293. package/dist/utils/format-code.d.ts.map +0 -1
  294. package/dist/utils/format-code.js +0 -77
  295. package/dist/utils/format-code.js.map +0 -1
  296. package/dist/utils/mapping-context-detector.d.ts +0 -17
  297. package/dist/utils/mapping-context-detector.d.ts.map +0 -1
  298. package/dist/utils/mapping-context-detector.js +0 -22
  299. package/dist/utils/mapping-context-detector.js.map +0 -1
  300. package/dist/utils/monaco-context-types.d.ts +0 -39
  301. package/dist/utils/monaco-context-types.d.ts.map +0 -1
  302. package/dist/utils/monaco-context-types.js +0 -426
  303. package/dist/utils/monaco-context-types.js.map +0 -1
  304. package/dist/utils/monaco-decorators.d.ts +0 -17
  305. package/dist/utils/monaco-decorators.d.ts.map +0 -1
  306. package/dist/utils/monaco-decorators.js +0 -81
  307. package/dist/utils/monaco-decorators.js.map +0 -1
  308. package/dist/utils/monaco-formatters.d.ts +0 -16
  309. package/dist/utils/monaco-formatters.d.ts.map +0 -1
  310. package/dist/utils/monaco-formatters.js +0 -139
  311. package/dist/utils/monaco-formatters.js.map +0 -1
  312. package/dist/utils/monaco-intellisense-flow-extractor.d.ts +0 -13
  313. package/dist/utils/monaco-intellisense-flow-extractor.d.ts.map +0 -1
  314. package/dist/utils/monaco-intellisense-flow-extractor.js +0 -168
  315. package/dist/utils/monaco-intellisense-flow-extractor.js.map +0 -1
  316. package/dist/utils/monaco-json-path.d.ts +0 -12
  317. package/dist/utils/monaco-json-path.d.ts.map +0 -1
  318. package/dist/utils/monaco-json-path.js +0 -68
  319. package/dist/utils/monaco-json-path.js.map +0 -1
  320. package/dist/utils/monaco-json-schema.d.ts +0 -45
  321. package/dist/utils/monaco-json-schema.d.ts.map +0 -1
  322. package/dist/utils/monaco-json-schema.js +0 -90
  323. package/dist/utils/monaco-json-schema.js.map +0 -1
  324. package/dist/utils/monaco-schema-contract.d.ts +0 -8
  325. package/dist/utils/monaco-schema-contract.d.ts.map +0 -1
  326. package/dist/utils/monaco-schema-contract.js +0 -73
  327. package/dist/utils/monaco-schema-contract.js.map +0 -1
  328. package/dist/utils/monaco-schema-enrichment.d.ts +0 -26
  329. package/dist/utils/monaco-schema-enrichment.d.ts.map +0 -1
  330. package/dist/utils/monaco-schema-enrichment.js +0 -31
  331. package/dist/utils/monaco-schema-enrichment.js.map +0 -1
  332. package/dist/utils/monaco-schema-flow-config.d.ts +0 -10
  333. package/dist/utils/monaco-schema-flow-config.d.ts.map +0 -1
  334. package/dist/utils/monaco-schema-flow-config.js +0 -201
  335. package/dist/utils/monaco-schema-flow-config.js.map +0 -1
  336. package/dist/utils/monaco-schema-variables.d.ts +0 -4
  337. package/dist/utils/monaco-schema-variables.d.ts.map +0 -1
  338. package/dist/utils/monaco-schema-variables.js +0 -26
  339. package/dist/utils/monaco-schema-variables.js.map +0 -1
  340. package/dist/utils/monaco-types.d.ts +0 -174
  341. package/dist/utils/monaco-types.d.ts.map +0 -1
  342. package/dist/utils/monaco-types.js +0 -378
  343. package/dist/utils/monaco-types.js.map +0 -1
  344. package/dist/utils/monaco-walkeros-completions.d.ts +0 -23
  345. package/dist/utils/monaco-walkeros-completions.d.ts.map +0 -1
  346. package/dist/utils/monaco-walkeros-completions.js +0 -258
  347. package/dist/utils/monaco-walkeros-completions.js.map +0 -1
  348. package/dist/utils/monaco-walkeros-decorations.d.ts +0 -29
  349. package/dist/utils/monaco-walkeros-decorations.d.ts.map +0 -1
  350. package/dist/utils/monaco-walkeros-decorations.js +0 -87
  351. package/dist/utils/monaco-walkeros-decorations.js.map +0 -1
  352. package/dist/utils/monaco-walkeros-markers.d.ts +0 -13
  353. package/dist/utils/monaco-walkeros-markers.d.ts.map +0 -1
  354. package/dist/utils/monaco-walkeros-markers.js +0 -69
  355. package/dist/utils/monaco-walkeros-markers.js.map +0 -1
  356. package/dist/utils/monaco-walkeros-providers.d.ts +0 -19
  357. package/dist/utils/monaco-walkeros-providers.d.ts.map +0 -1
  358. package/dist/utils/monaco-walkeros-providers.js +0 -284
  359. package/dist/utils/monaco-walkeros-providers.js.map +0 -1
  360. package/dist/utils/path-analyzer.d.ts +0 -88
  361. package/dist/utils/path-analyzer.d.ts.map +0 -1
  362. package/dist/utils/path-analyzer.js +0 -215
  363. package/dist/utils/path-analyzer.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,69 +1,1338 @@
1
- export { DestinationDemo, createCaptureFn, } from './components/demos/DestinationDemo';
2
- export { DestinationInitDemo } from './components/demos/DestinationInitDemo';
3
- export { PromotionPlayground } from './components/demos/PromotionPlayground';
4
- export type { DestinationDemoProps } from './components/demos/DestinationDemo';
5
- export type { DestinationInitDemoProps } from './components/demos/DestinationInitDemo';
6
- export type { PromotionPlaygroundProps } from './components/demos/PromotionPlayground';
7
- export { DestinationDemo as DestinationPush } from './components/demos/DestinationDemo';
8
- export { DestinationInitDemo as DestinationInit } from './components/demos/DestinationInitDemo';
9
- export { LiveCode } from './components/organisms/live-code';
10
- export { CollectorBox } from './components/organisms/collector-box';
11
- export { BrowserBox } from './components/organisms/browser-box';
12
- export type { LiveCodeProps } from './components/organisms/live-code';
13
- export type { CollectorBoxProps } from './components/organisms/collector-box';
14
- export type { BrowserBoxProps } from './components/organisms/browser-box';
15
- export { ArchitectureFlow } from './components/molecules/architecture-flow';
16
- export { CodeBox } from './components/molecules/code-box';
17
- export { CodeSnippet } from './components/molecules/code-snippet';
18
- export { FlowMap } from './components/molecules/flow-map';
19
- export { PropertyTable } from './components/molecules/property-table';
20
- export { Dropdown, DropdownItem, DropdownDivider, } from './components/molecules/dropdown';
21
- export type { ArchitectureFlowProps, FlowColumn, FlowSection, FlowItem, } from './components/molecules/architecture-flow';
22
- export type { CodeBoxProps, CodeBoxTab } from './components/molecules/code-box';
23
- export type { CodeSnippetProps } from './components/molecules/code-snippet';
24
- export type { FlowMapProps, FlowStageConfig, } from './components/molecules/flow-map';
25
- export type { PropertyTableProps } from './components/molecules/property-table';
26
- export type { DropdownProps, DropdownItemProps, DropdownDividerProps, } from './components/molecules/dropdown';
27
- export { Preview } from './components/molecules/preview';
28
- export type { PreviewProps } from './components/molecules/preview';
29
- export { Code } from './components/atoms/code';
30
- export { Box } from './components/atoms/box';
31
- export { Grid } from './components/atoms/grid';
32
- export { Header } from './components/atoms/header';
33
- export { Footer } from './components/atoms/footer';
34
- export { Button } from './components/atoms/button';
35
- export { ButtonGroup } from './components/atoms/button-group';
36
- export { ButtonLink } from './components/atoms/button-link';
37
- export { Spinner } from './components/atoms/spinner';
38
- export { Icon } from './components/atoms/icons';
39
- export type { CodeProps } from './components/atoms/code';
40
- export type { BoxProps, BoxTab } from './components/atoms/box';
41
- export type { GridProps } from './components/atoms/grid';
42
- export type { HeaderProps } from './components/atoms/header';
43
- export type { FooterProps } from './components/atoms/footer';
44
- export type { ButtonProps } from './components/atoms/button';
45
- export type { ButtonGroupProps } from './components/atoms/button-group';
46
- export type { ButtonLinkProps } from './components/atoms/button-link';
47
- export type { SpinnerProps } from './components/atoms/spinner';
48
- export { MDXProvider } from './providers/MDXProvider';
49
- export { MDXCode } from './components/atoms/mdx-code';
50
- export { cn } from './lib/utils';
51
- export { useDropdown } from './hooks/useDropdown';
52
- export type { UseDropdownReturn } from './hooks/useDropdown';
53
- export { palenightTheme, lighthouseTheme, registerPalenightTheme, registerLighthouseTheme, registerAllThemes, } from './themes';
54
- export type { ExplorerTheme } from './themes';
55
- export { registerWalkerOSTypes, initializeMonacoTypes, loadPackageTypes, loadTypeLibraryFromURL, } from './utils/monaco-types';
56
- export type { LoadPackageTypesOptions } from './utils/monaco-types';
57
- export { registerJsonSchema, unregisterJsonSchema, generateModelPath, } from './utils/monaco-json-schema';
58
- export { enrichSchema, type MonacoSchemaExtension, } from './utils/monaco-schema-enrichment';
59
- export { enrichFlowConfigSchema } from './utils/monaco-schema-flow-config';
60
- export { getEnrichedContractSchema } from './utils/monaco-schema-contract';
61
- export { getVariablesSchema } from './utils/monaco-schema-variables';
62
- export { findWalkerOSReferences, applyWalkerOSDecorations, registerWalkerOSDecorationStyles, REFERENCE_PATTERNS, } from './utils/monaco-walkeros-decorations';
63
- export type { IntelliSenseContext, PackageInfo } from './types/intellisense';
64
- export { registerWalkerOSProviders, disposeWalkerOSProviders, setIntelliSenseContext, removeIntelliSenseContext, } from './utils/monaco-walkeros-providers';
65
- export { validateWalkerOSReferences } from './utils/monaco-walkeros-markers';
66
- export { extractFlowIntelliSenseContext } from './utils/monaco-intellisense-flow-extractor';
67
- export { createGtagDestination, createFbqDestination, createPlausibleDestination, } from './helpers/destinations';
68
- export { captureDestinationPush, formatCapturedCalls, createRawCapture, } from './helpers/capture';
69
- //# sourceMappingURL=index.d.ts.map
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { Destination, WalkerOS, Mapping, Elb } from '@walkeros/core';
3
+ import React, { ReactNode, FC, PropsWithChildren, RefObject } from 'react';
4
+ import * as monaco_editor from 'monaco-editor';
5
+ import { editor } from 'monaco-editor';
6
+ import { RJSFSchema } from '@rjsf/utils';
7
+ export { Icon } from '@iconify/react';
8
+ import { ClassValue } from 'clsx';
9
+ import { Monaco } from '@monaco-editor/react';
10
+
11
+ interface DestinationDemoProps {
12
+ destination: Destination.Instance;
13
+ event: WalkerOS.PartialEvent;
14
+ mapping?: Mapping.Rule | string;
15
+ settings?: unknown;
16
+ generic?: boolean;
17
+ labelEvent?: string;
18
+ labelMapping?: string;
19
+ labelOutput?: string;
20
+ fn?: (event: WalkerOS.Event, context: Destination.PushContext) => Promise<string>;
21
+ }
22
+ /**
23
+ * DestinationDemo - Interactive destination testing component
24
+ *
25
+ * Automatically captures destination.push() calls and displays the output.
26
+ * The component auto-detects the destination's env from destination.examples.env.push.
27
+ *
28
+ * Props:
29
+ * - destination: Destination instance with examples.env.push export
30
+ * - event: walkerOS event to process
31
+ * - mapping: Optional mapping rules
32
+ * - settings: Destination-specific settings
33
+ * - generic: If true, wraps mapping in { '*': { '*': mapping } }
34
+ * - labelEvent: Label for event panel (default: 'Event')
35
+ * - labelMapping: Label for mapping panel (default: 'Mapping')
36
+ * - labelOutput: Label for output panel (default: 'Result')
37
+ *
38
+ * Example:
39
+ * ```tsx
40
+ * import destinationPlausible from '@walkeros/web-destination-plausible';
41
+ * import { examples } from '@walkeros/web-destination-plausible';
42
+ * import { getEvent } from '@walkeros/core';
43
+ *
44
+ * const destination = { ...destinationPlausible, examples };
45
+ *
46
+ * <DestinationDemo
47
+ * destination={destination}
48
+ * event={getEvent('order complete')}
49
+ * mapping={examples.mapping.purchase}
50
+ * settings={{ domain: 'elbwalker.com' }}
51
+ * generic={true}
52
+ * />
53
+ * ```
54
+ */
55
+ declare function createCaptureFn(fnName: string, onCapture: (output: string) => void): (...args: unknown[]) => void;
56
+ declare function DestinationDemo({ destination, event: initialEvent, mapping: initialMapping, settings, generic, labelEvent, labelMapping, labelOutput, fn, }: DestinationDemoProps): react_jsx_runtime.JSX.Element;
57
+
58
+ interface DestinationInitDemoProps {
59
+ destination: Destination.Instance;
60
+ settings?: unknown;
61
+ labelSettings?: string;
62
+ labelOutput?: string;
63
+ }
64
+ /**
65
+ * DestinationInitDemo - Interactive destination initialization testing component
66
+ *
67
+ * Automatically captures destination.init() calls and displays the output.
68
+ * The component auto-detects the destination's env from destination.examples.env.init.
69
+ *
70
+ * Props:
71
+ * - destination: Destination instance with examples.env.init export
72
+ * - settings: Initial destination-specific settings
73
+ * - labelSettings: Label for settings panel (default: 'Settings')
74
+ * - labelOutput: Label for output panel (default: 'Result')
75
+ *
76
+ * Example:
77
+ * ```tsx
78
+ * import destinationGtag from '@walkeros/web-destination-gtag';
79
+ * import { examples } from '@walkeros/web-destination-gtag';
80
+ *
81
+ * const destination = { ...destinationGtag, examples };
82
+ *
83
+ * <DestinationInitDemo
84
+ * destination={destination}
85
+ * settings={{ ga4: { measurementId: 'G-XXXXXXXXXX' } }}
86
+ * />
87
+ * ```
88
+ */
89
+ declare function DestinationInitDemo({ destination, settings: initialSettings, labelSettings, labelOutput, }: DestinationInitDemoProps): react_jsx_runtime.JSX.Element;
90
+
91
+ interface DemoEnv extends Destination.BaseEnv {
92
+ elb: (output: string) => void;
93
+ }
94
+ type DestinationCode = Destination.Instance<Destination.Types<unknown, unknown, DemoEnv>>;
95
+ /**
96
+ * Creates a gtag-style destination for demo purposes.
97
+ * Formats output as: gtag('event', 'event_name', { data })
98
+ */
99
+ declare function createGtagDestination(): DestinationCode;
100
+ /**
101
+ * Creates a Facebook Pixel-style destination for demo purposes.
102
+ * Formats output as: fbq('track', 'EventName', { data })
103
+ */
104
+ declare function createFbqDestination(): DestinationCode;
105
+ /**
106
+ * Creates a Plausible-style destination for demo purposes.
107
+ * Formats output as: plausible('event_name', { props: { data } })
108
+ */
109
+ declare function createPlausibleDestination(): DestinationCode;
110
+
111
+ interface PromotionPlaygroundProps {
112
+ initialHtml?: string;
113
+ initialCss?: string;
114
+ initialJs?: string;
115
+ initialMapping?: string;
116
+ labelCode?: string;
117
+ labelPreview?: string;
118
+ labelEvents?: string;
119
+ labelMapping?: string;
120
+ labelResult?: string;
121
+ destination?: DestinationCode;
122
+ }
123
+ /**
124
+ * PromotionPlayground - Full walkerOS demonstration with live code editing
125
+ *
126
+ * Shows the complete chain:
127
+ * 1. Code Editor - Edit HTML/CSS/JS with walkerOS data attributes
128
+ * 2. Preview - Live rendered output that captures real events
129
+ * 3. Events - Real events captured from preview interactions
130
+ * 4. Mapping - Apply transformations and see destination output
131
+ * 5. Result - Final destination function calls
132
+ *
133
+ * Uses a single unified collector flow:
134
+ * - PromotionPlayground owns the collector with destinations
135
+ * - Preview initializes browser source using parent's elb
136
+ * - Events flow through one collector to all destinations
137
+ */
138
+ declare function PromotionPlayground({ initialHtml, initialCss, initialJs, initialMapping, labelCode, labelPreview, labelEvents, labelMapping, labelResult, destination: destinationProp, }: PromotionPlaygroundProps): react_jsx_runtime.JSX.Element;
139
+
140
+ interface LiveCodeProps {
141
+ input: unknown;
142
+ config?: unknown;
143
+ output?: unknown;
144
+ options?: WalkerOS.AnyObject;
145
+ fn?: (input: unknown, config: unknown, log: (...args: unknown[]) => void, options?: WalkerOS.AnyObject) => Promise<void>;
146
+ fnName?: string;
147
+ labelInput?: string;
148
+ labelConfig?: string;
149
+ labelOutput?: string;
150
+ emptyText?: string;
151
+ disableInput?: boolean;
152
+ disableConfig?: boolean;
153
+ showQuotes?: boolean;
154
+ className?: string;
155
+ language?: string;
156
+ format?: boolean;
157
+ rowHeight?: 'auto' | 'equal' | 'synced' | number;
158
+ }
159
+ declare function LiveCode({ input: initInput, config: initConfig, output: initOutput, options, fn, fnName, labelInput, labelConfig, labelOutput, emptyText, disableInput, disableConfig, showQuotes, className, language, format, rowHeight, }: LiveCodeProps): react_jsx_runtime.JSX.Element;
160
+
161
+ interface CollectorBoxProps {
162
+ event: string;
163
+ mapping: string;
164
+ destination: DestinationCode;
165
+ label?: string;
166
+ wordWrap?: boolean;
167
+ }
168
+ /**
169
+ * CollectorBox - Runs a collector with destination to transform events
170
+ *
171
+ * Takes raw event and mapping config, processes through collector pipeline,
172
+ * and displays the formatted destination output.
173
+ *
174
+ * @example
175
+ * <CollectorBox
176
+ * event={JSON.stringify(event)}
177
+ * mapping={mappingConfig}
178
+ * destination={createGtagDestination()}
179
+ * label="Result"
180
+ * />
181
+ */
182
+ declare function CollectorBox({ event, mapping, destination, label, wordWrap, }: CollectorBoxProps): react_jsx_runtime.JSX.Element;
183
+
184
+ interface BrowserBoxProps {
185
+ html?: string;
186
+ css?: string;
187
+ js?: string;
188
+ onHtmlChange?: (value: string) => void;
189
+ onCssChange?: (value: string) => void;
190
+ onJsChange?: (value: string) => void;
191
+ showPreview?: boolean;
192
+ label?: string;
193
+ className?: string;
194
+ initialTab?: 'preview' | 'html' | 'css' | 'js';
195
+ lineNumbers?: boolean;
196
+ wordWrap?: boolean;
197
+ }
198
+ /**
199
+ * BrowserBox - Code editor with HTML/CSS/JS toggle
200
+ *
201
+ * Displays code editor with button group to switch between HTML, CSS, and JavaScript.
202
+ * Only shows tabs for content that is provided.
203
+ *
204
+ * @example
205
+ * <BrowserBox
206
+ * html={htmlCode}
207
+ * css={cssCode}
208
+ * onHtmlChange={setHtml}
209
+ * onCssChange={setCss}
210
+ * label="Code"
211
+ * />
212
+ */
213
+ declare function BrowserBox({ html, css, js, onHtmlChange, onCssChange, onJsChange, showPreview, label, className, initialTab, lineNumbers, wordWrap, }: BrowserBoxProps): react_jsx_runtime.JSX.Element;
214
+
215
+ interface FlowItem {
216
+ icon: ReactNode;
217
+ label: string;
218
+ }
219
+ interface FlowSection {
220
+ title: string;
221
+ items: FlowItem[];
222
+ }
223
+ interface FlowColumn {
224
+ title: string;
225
+ sections: FlowSection[];
226
+ }
227
+ interface ArchitectureFlowProps {
228
+ sources: FlowColumn;
229
+ center: ReactNode;
230
+ centerTitle?: string;
231
+ destinations: FlowColumn;
232
+ arrowRight?: ReactNode;
233
+ arrowDown?: ReactNode;
234
+ className?: string;
235
+ }
236
+ declare function ArchitectureFlow({ sources, center, centerTitle, destinations, arrowRight, arrowDown, className, }: ArchitectureFlowProps): react_jsx_runtime.JSX.Element;
237
+
238
+ interface PackageInfo {
239
+ package: string;
240
+ shortName: string;
241
+ type: 'source' | 'destination' | 'transformer';
242
+ platform: 'web' | 'server';
243
+ description?: string;
244
+ }
245
+ interface IntelliSenseContext {
246
+ /** Variable names and values from the flow's `variables` section */
247
+ variables?: Record<string, string | number | boolean>;
248
+ /** Definition names from the flow's `definitions` section */
249
+ definitions?: Record<string, unknown>;
250
+ /** Secret names available in the project (values are NOT included) */
251
+ secrets?: string[];
252
+ /** Step names from the current flow config, by type */
253
+ stepNames?: {
254
+ sources?: string[];
255
+ destinations?: string[];
256
+ transformers?: string[];
257
+ };
258
+ /** Contract entities and their actions */
259
+ contract?: Array<{
260
+ entity: string;
261
+ actions: string[];
262
+ }>;
263
+ /** Raw contract object for $contract completions and mapping hints */
264
+ contractRaw?: Record<string, unknown>;
265
+ /** Available packages for autocomplete */
266
+ packages?: PackageInfo[];
267
+ /** Current platform context (web or server) */
268
+ platform?: 'web' | 'server';
269
+ }
270
+
271
+ interface CodeProps {
272
+ code: string;
273
+ language?: string;
274
+ onChange?: (code: string) => void;
275
+ disabled?: boolean;
276
+ lineNumbers?: boolean;
277
+ minimap?: boolean;
278
+ folding?: boolean;
279
+ wordWrap?: boolean;
280
+ className?: string;
281
+ beforeMount?: (monaco: typeof monaco_editor) => void;
282
+ onMount?: (editor: editor.IStandaloneCodeEditor) => void;
283
+ autoHeight?: boolean | {
284
+ min?: number;
285
+ max?: number;
286
+ };
287
+ fontSize?: number;
288
+ packages?: string[];
289
+ sticky?: boolean;
290
+ ide?: boolean;
291
+ /** JSON Schema (Draft 7) for validation and IntelliSense in JSON mode */
292
+ jsonSchema?: Record<string, unknown>;
293
+ /** Context data for dynamic IntelliSense (variable names, secrets, etc.) */
294
+ intellisenseContext?: IntelliSenseContext;
295
+ /** Validation function — called on content change, results rendered as Monaco markers */
296
+ validate?: (code: string) => {
297
+ valid: boolean;
298
+ errors: Array<{
299
+ message: string;
300
+ severity: 'error' | 'warning';
301
+ line: number;
302
+ column: number;
303
+ endLine?: number;
304
+ endColumn?: number;
305
+ }>;
306
+ warnings: Array<{
307
+ message: string;
308
+ severity: 'error' | 'warning';
309
+ line: number;
310
+ column: number;
311
+ endLine?: number;
312
+ endColumn?: number;
313
+ }>;
314
+ };
315
+ /** Callback when Monaco marker counts change */
316
+ onMarkerCounts?: (info: {
317
+ errors: number;
318
+ warnings: number;
319
+ markers: Array<{
320
+ message: string;
321
+ severity: 'error' | 'warning';
322
+ line: number;
323
+ column: number;
324
+ }>;
325
+ }) => void;
326
+ }
327
+ /**
328
+ * Code - Pure Monaco editor atom
329
+ *
330
+ * Height Management:
331
+ * Two modes controlled by `autoHeight` prop:
332
+ *
333
+ * 1. Default (autoHeight=false): height="100%" - fills parent container
334
+ * - Uses flex: 1 + min-height: 0 for proper flex overflow containment
335
+ * - Monaco set to height="100%" to fill container
336
+ * - automaticLayout: true + ResizeObserver for reliable resize detection
337
+ * - Use in Grid (equal heights) and Flex contexts (fill parent)
338
+ *
339
+ * 2. Auto-height (autoHeight=true): Dynamically sizes to content
340
+ * - Uses Monaco's getContentHeight() API for accurate content measurement
341
+ * - Respects min/max boundaries (default: 100-600px)
342
+ * - Updates automatically when content changes
343
+ * - Use in standalone contexts (docs) to eliminate blank space
344
+ *
345
+ * @example
346
+ * // Grid context - use default height="100%" for equal row heights
347
+ * <Grid columns={3}>
348
+ * <CodeBox code={event} />
349
+ * <CodeBox code={mapping} />
350
+ * </Grid>
351
+ *
352
+ * @example
353
+ * // Standalone context - use autoHeight to fit content
354
+ * <CodeBox
355
+ * code={shortExample}
356
+ * autoHeight={{ min: 100, max: 600 }}
357
+ * />
358
+ */
359
+ declare function Code({ code, language, onChange, disabled, lineNumbers, minimap, folding, wordWrap, className, beforeMount, onMount, autoHeight, fontSize, packages, sticky, ide, jsonSchema, intellisenseContext, validate, onMarkerCounts, }: CodeProps): react_jsx_runtime.JSX.Element;
360
+
361
+ /**
362
+ * Tab with code content for CodeBox
363
+ */
364
+ interface CodeBoxTab {
365
+ id: string;
366
+ label: string;
367
+ code: string;
368
+ language?: string;
369
+ }
370
+ interface CodeBoxProps extends Omit<CodeProps, 'code'> {
371
+ code?: string;
372
+ label?: string;
373
+ header?: string;
374
+ showHeader?: boolean;
375
+ tabs?: CodeBoxTab[];
376
+ activeTab?: string;
377
+ onTabChange?: (id: string) => void;
378
+ defaultTab?: string;
379
+ showTrafficLights?: boolean;
380
+ showCopy?: boolean;
381
+ showFormat?: boolean;
382
+ showSettings?: boolean;
383
+ /** Callback when validation issues change. Use to disable Save when errors > 0. */
384
+ onValidationIssues?: (counts: {
385
+ errors: number;
386
+ warnings: number;
387
+ }) => void;
388
+ footer?: React.ReactNode;
389
+ height?: string | number;
390
+ style?: React.CSSProperties;
391
+ }
392
+ /**
393
+ * CodeBox - Monaco editor wrapped in a Box with header and actions
394
+ *
395
+ * Molecule that combines Box + Code atom + toolbar actions.
396
+ * Use this when you need an editor with header, copy, and format buttons.
397
+ * Use Code atom directly when you need an editor without Box wrapper.
398
+ *
399
+ * Height Behavior:
400
+ *
401
+ * Three height modes:
402
+ * 1. Grid context: Equal row heights (250-450px), fills available space
403
+ * 2. Explicit height prop: Fixed height (e.g., height={600} or height="50vh")
404
+ * 3. Auto-height prop: Dynamically sizes to content (min-max boundaries)
405
+ *
406
+ * @example
407
+ * // Grid context - use default (no autoHeight) for equal row heights
408
+ * <Grid columns={3}>
409
+ * <CodeBox code={event} label="Event" showCopy />
410
+ * <CodeBox code={mapping} label="Mapping" showFormat />
411
+ * <CodeBox code={output} label="Output" disabled />
412
+ * </Grid>
413
+ *
414
+ * @example
415
+ * // Standalone with auto-height - fits content, no blank space
416
+ * <CodeBox
417
+ * code={setupCode}
418
+ * label="Setup"
419
+ * autoHeight={{ min: 100, max: 600 }}
420
+ * disabled
421
+ * />
422
+ *
423
+ * @example
424
+ * // Explicit height override
425
+ * <CodeBox
426
+ * code={largeConfig}
427
+ * label="Configuration"
428
+ * height={600}
429
+ * showFormat
430
+ * />
431
+ */
432
+ declare function CodeBox({ code, language, onChange, disabled, autoHeight, label, header, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, showCopy, showFormat, showSettings, onValidationIssues, footer, height, style, className, ...codeProps }: CodeBoxProps): react_jsx_runtime.JSX.Element;
433
+
434
+ type CodeSnippetProps = Omit<CodeBoxProps, 'label' | 'showHeader'> & {
435
+ format?: boolean;
436
+ };
437
+ /**
438
+ * CodeSnippet - Prominent code display for snippets
439
+ *
440
+ * Wraps CodeBox with larger font size and generous padding.
441
+ * Use this for showcasing code examples, one-liners, or small code blocks
442
+ * where you want the code to be more visually prominent than in a standard editor.
443
+ *
444
+ * Always renders without a header. Use CodeBox if you need a header.
445
+ *
446
+ * Default behavior:
447
+ * - Read-only (disabled=true)
448
+ * - Copy button enabled (showCopy=true)
449
+ * - Auto-height with sensible bounds (min: 20px, max: 600px)
450
+ * - Auto-format on mount (format=true) - formats code once on initial load
451
+ *
452
+ * Auto-Formatting:
453
+ * - Enabled by default (format=true)
454
+ * - Runs once on component mount using Monaco's built-in formatters
455
+ * - Supports: JavaScript, TypeScript, JSON, HTML, CSS
456
+ * - Use format={false} to disable for special cases (pre-formatted code)
457
+ *
458
+ * Reuses all CodeBox functionality:
459
+ * - Monaco Editor with syntax highlighting
460
+ * - Grid height management and auto-height modes
461
+ * - Copy button
462
+ * - Theme integration
463
+ *
464
+ * @example
465
+ * // Minimal usage - code auto-formats on load
466
+ * <CodeSnippet
467
+ * code="import { elb } from '@walkeros/core';"
468
+ * language="javascript"
469
+ * />
470
+ *
471
+ * @example
472
+ * // Disable auto-formatting for pre-formatted code
473
+ * <CodeSnippet
474
+ * code={alreadyFormattedCode}
475
+ * language="javascript"
476
+ * format={false}
477
+ * />
478
+ *
479
+ * @example
480
+ * // Override defaults if needed
481
+ * <CodeSnippet
482
+ * code={editableCode}
483
+ * language="javascript"
484
+ * disabled={false}
485
+ * showCopy={false}
486
+ * autoHeight={{ min: 100, max: 800 }}
487
+ * />
488
+ */
489
+ declare function CodeSnippet(props: CodeSnippetProps): react_jsx_runtime.JSX.Element;
490
+
491
+ type FlowMarkerPosition = 'source' | 'source-left' | 'source-right' | 'collector' | 'collector-left' | 'collector-right' | 'destination' | 'destination-left' | 'destination-right' | `source-${string}` | `source-${string}-left` | `source-${string}-right` | `destination-${string}` | `destination-${string}-left` | `destination-${string}-right` | `pre-${string}` | `pre-${string}-left` | `pre-${string}-right` | `post-${string}` | `post-${string}-left` | `post-${string}-right` | 'stage-before' | 'stage-before-right' | 'stage-after' | 'stage-after-left' | 'incoming' | 'outgoing' | 'source-collector' | 'collector-destination' | `source-${string}-pre` | `source-${string}-collector` | `pre-${string}-next` | 'pre-collector' | 'collector-post' | `post-${string}-next` | `post-destination-${string}` | 'before-source' | 'destination-after';
492
+ interface FlowMarker {
493
+ position: FlowMarkerPosition;
494
+ /** ID displayed inside the marker dot. Default: array index + 1 */
495
+ id?: string;
496
+ /** Legend text. If provided, marker appears in legend below diagram */
497
+ text?: string;
498
+ }
499
+ interface FlowStageConfig {
500
+ /** Iconify icon name to display before the label (e.g., 'simple-icons:google-analytics') */
501
+ icon?: string;
502
+ label?: string;
503
+ text?: React.ReactNode;
504
+ description?: React.ReactNode;
505
+ highlight?: boolean;
506
+ /** Makes box clickable. undefined = default URL, false = not clickable, string = custom URL */
507
+ link?: false | string;
508
+ }
509
+ interface FlowSourceConfig extends FlowStageConfig {
510
+ /** Name of pre-transformer to connect to. Omit to connect directly to collector. */
511
+ next?: string;
512
+ }
513
+ interface FlowTransformerConfig extends FlowStageConfig {
514
+ /** Name of next transformer in chain. Omit to connect to collector (pre) or destination (post). */
515
+ next?: string;
516
+ }
517
+ interface FlowDestinationConfig extends FlowStageConfig {
518
+ /** Name of post-transformer to receive from. Omit to receive directly from collector. */
519
+ before?: string;
520
+ /** Optional: stage after this destination (e.g., external platform). Overrides shared stageAfter. */
521
+ after?: FlowStageConfig;
522
+ }
523
+ interface FlowLayoutConfig {
524
+ labelSize: number;
525
+ labelWeight: string;
526
+ textSize: number;
527
+ textWeight: string;
528
+ boxHeight: number;
529
+ descriptionSize: number;
530
+ }
531
+ interface FlowMapProps {
532
+ /** Optional: stage before source (e.g., "Browser") */
533
+ stageBefore?: FlowStageConfig;
534
+ /** Sources with named keys. Each source can specify `next` to connect to a pre-transformer. */
535
+ sources?: Record<string, FlowSourceConfig>;
536
+ /** Pre-transformers between sources and collector. Chain via `next` property. */
537
+ preTransformers?: Record<string, FlowTransformerConfig>;
538
+ /** Optional: customize collector stage */
539
+ collector?: FlowStageConfig;
540
+ /** Post-transformers between collector and destinations. */
541
+ postTransformers?: Record<string, FlowTransformerConfig>;
542
+ /** Destinations with named keys. Each destination can specify `before` to receive from a post-transformer. */
543
+ destinations?: Record<string, FlowDestinationConfig>;
544
+ /** Optional: stage after destination (e.g., "gtag") */
545
+ stageAfter?: FlowStageConfig;
546
+ /** Optional: title above diagram */
547
+ title?: string;
548
+ /** Optional: layout configuration */
549
+ layout?: FlowLayoutConfig;
550
+ /** Optional: height of stage boxes (default: 50) */
551
+ boxHeight?: number;
552
+ /** Optional: height of description area below boxes (default: 30) */
553
+ descriptionHeight?: number;
554
+ /** Optional: additional CSS class */
555
+ className?: string;
556
+ /** Optional: array of markers to display */
557
+ markers?: FlowMarker[];
558
+ /** Optional: show two arrows per connection (forward → and return ←) with parallel offset */
559
+ withReturn?: boolean;
560
+ }
561
+ declare function FlowMap({ stageBefore, sources, preTransformers, collector, postTransformers, destinations, stageAfter, title, layout, boxHeight: boxHeightProp, descriptionHeight: descriptionHeightProp, markers, className, withReturn, }: FlowMapProps): React.ReactElement;
562
+
563
+ interface PropertyTableProps {
564
+ schema: RJSFSchema;
565
+ className?: string;
566
+ }
567
+ declare function PropertyTable({ schema, className }: PropertyTableProps): react_jsx_runtime.JSX.Element;
568
+
569
+ interface DropdownProps {
570
+ /** Trigger element (button, link, etc.) */
571
+ trigger: React.ReactNode;
572
+ /** Whether dropdown is open (controlled) */
573
+ isOpen: boolean;
574
+ /** Toggle handler */
575
+ onToggle: () => void;
576
+ /** Dropdown content */
577
+ children: React.ReactNode;
578
+ /** Alignment of dropdown panel */
579
+ align?: 'left' | 'right';
580
+ /** ARIA label for accessibility */
581
+ ariaLabel?: string;
582
+ /** Additional CSS class */
583
+ className?: string;
584
+ }
585
+ interface DropdownItemProps {
586
+ /** Item content */
587
+ children: React.ReactNode;
588
+ /** Click handler */
589
+ onClick?: () => void;
590
+ /** Disabled state */
591
+ disabled?: boolean;
592
+ /** Visual variant */
593
+ variant?: 'default' | 'danger';
594
+ /** Additional CSS class */
595
+ className?: string;
596
+ }
597
+ interface DropdownDividerProps {
598
+ /** Additional CSS class */
599
+ className?: string;
600
+ }
601
+ /**
602
+ * Dropdown - Generic dropdown container (UI only)
603
+ *
604
+ * Pure UI component for dropdown menus.
605
+ * Click-outside and keyboard handling should be implemented in the parent
606
+ * via hooks like useDropdown.
607
+ *
608
+ * @example
609
+ * <Dropdown
610
+ * trigger={<button>Menu</button>}
611
+ * isOpen={isOpen}
612
+ * onToggle={toggle}
613
+ * align="right"
614
+ * >
615
+ * <DropdownItem onClick={handleAction}>Action</DropdownItem>
616
+ * <DropdownDivider />
617
+ * <DropdownItem onClick={handleLogout} variant="danger">Logout</DropdownItem>
618
+ * </Dropdown>
619
+ */
620
+ declare function Dropdown({ trigger, isOpen, onToggle, children, align, ariaLabel, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
621
+ /**
622
+ * DropdownItem - Menu item within a dropdown
623
+ *
624
+ * @example
625
+ * <DropdownItem onClick={handleClick}>Action</DropdownItem>
626
+ */
627
+ declare function DropdownItem({ children, onClick, disabled, variant, className, }: DropdownItemProps): react_jsx_runtime.JSX.Element;
628
+ /**
629
+ * DropdownDivider - Visual separator between menu items
630
+ *
631
+ * @example
632
+ * <DropdownDivider />
633
+ */
634
+ declare function DropdownDivider({ className }: DropdownDividerProps): react_jsx_runtime.JSX.Element;
635
+
636
+ interface PreviewProps {
637
+ html: string;
638
+ css?: string;
639
+ elb?: Elb.Fn;
640
+ label?: string;
641
+ }
642
+ /**
643
+ * Preview - HTML preview wrapped in a Box with highlight buttons
644
+ *
645
+ * Renders HTML in an isolated iframe with highlight buttons footer.
646
+ * When elb is provided, initializes walkerOS browser source in iframe
647
+ * that pushes events to the parent collector.
648
+ *
649
+ * @example
650
+ * // Read-only preview
651
+ * <Preview html={html} css={css} label="Preview" />
652
+ *
653
+ * // Interactive preview with event capture (elb from parent collector)
654
+ * <Preview html={html} css={css} elb={elb} label="Preview" />
655
+ */
656
+ declare function Preview({ html, css, elb, label, }: PreviewProps): react_jsx_runtime.JSX.Element;
657
+
658
+ interface BoxTab {
659
+ id: string;
660
+ label: string;
661
+ content?: React.ReactNode;
662
+ }
663
+ interface BoxProps {
664
+ header?: string;
665
+ headerActions?: React.ReactNode;
666
+ footer?: React.ReactNode;
667
+ children?: React.ReactNode;
668
+ className?: string;
669
+ style?: React.CSSProperties;
670
+ height?: number | string;
671
+ minHeight?: number | string;
672
+ maxHeight?: number | string;
673
+ tiny?: boolean;
674
+ resizable?: boolean;
675
+ showHeader?: boolean;
676
+ tabs?: BoxTab[];
677
+ activeTab?: string;
678
+ onTabChange?: (id: string) => void;
679
+ defaultTab?: string;
680
+ showTrafficLights?: boolean;
681
+ }
682
+ declare function Box({ header, headerActions, footer, children, className, style, height, minHeight, maxHeight, tiny, resizable, showHeader, tabs, activeTab: controlledActiveTab, onTabChange, defaultTab, showTrafficLights, }: BoxProps): react_jsx_runtime.JSX.Element;
683
+
684
+ interface GridProps {
685
+ children: React.ReactNode;
686
+ columns?: number;
687
+ minBoxWidth?: number | string;
688
+ gap?: number | string;
689
+ rowHeight?: 'auto' | 'equal' | 'synced' | number;
690
+ maxRowHeight?: number | string | 'none';
691
+ showScrollButtons?: boolean;
692
+ className?: string;
693
+ }
694
+ /**
695
+ * Grid - Horizontal scrolling layout component for arranging boxes
696
+ *
697
+ * Provides consistent grid layout for box components with horizontal
698
+ * scrolling when content exceeds available space. Boxes maintain minimum
699
+ * width and never wrap to new rows.
700
+ *
701
+ * @example
702
+ * // 5 boxes with default 350px minimum width
703
+ * <Grid columns={5}>
704
+ * <CodeBox ... />
705
+ * <CodeBox ... />
706
+ * <CodeBox ... />
707
+ * <CodeBox ... />
708
+ * <CodeBox ... />
709
+ * </Grid>
710
+ *
711
+ * @example
712
+ * // Custom minimum box width
713
+ * <Grid columns={3} minBoxWidth={400}>
714
+ * <BrowserBox ... />
715
+ * <CodeBox ... />
716
+ * <CodeBox ... />
717
+ * </Grid>
718
+ *
719
+ * @example
720
+ * // Custom row height
721
+ * <Grid columns={2} rowHeight={300}>
722
+ * <CodeBox ... />
723
+ * <CodeBox ... />
724
+ * </Grid>
725
+ *
726
+ * @example
727
+ * // Auto row height (no minimum)
728
+ * <Grid columns={3} rowHeight="auto">
729
+ * <CodeBox ... />
730
+ * </Grid>
731
+ *
732
+ * @example
733
+ * // Unlimited row height (no max constraint)
734
+ * <Grid columns={2} maxRowHeight="none">
735
+ * <PropertyTable ... />
736
+ * <CodeBox ... />
737
+ * </Grid>
738
+ *
739
+ * @example
740
+ * // Custom max row height
741
+ * <Grid columns={2} maxRowHeight={800}>
742
+ * <PropertyTable ... />
743
+ * <CodeBox ... />
744
+ * </Grid>
745
+ */
746
+ declare function Grid({ children, columns, minBoxWidth, gap, rowHeight, maxRowHeight, showScrollButtons, className, }: GridProps): react_jsx_runtime.JSX.Element;
747
+
748
+ interface HeaderProps {
749
+ label: string;
750
+ children?: React.ReactNode;
751
+ }
752
+ declare function Header({ label, children }: HeaderProps): react_jsx_runtime.JSX.Element;
753
+
754
+ interface FooterProps {
755
+ children: React.ReactNode;
756
+ className?: string;
757
+ }
758
+ /**
759
+ * Footer - Footer atom component for boxes
760
+ *
761
+ * Provides a fixed-height footer area at the bottom of a box.
762
+ * Pairs with Header component for consistent box structure.
763
+ *
764
+ * @example
765
+ * <Box header="Preview">
766
+ * <Preview ... />
767
+ * <Footer>
768
+ * <ButtonGroup buttons={...} />
769
+ * </Footer>
770
+ * </Box>
771
+ */
772
+ declare function Footer({ children, className }: FooterProps): react_jsx_runtime.JSX.Element;
773
+
774
+ interface ButtonProps {
775
+ active?: boolean;
776
+ onClick?: () => void;
777
+ children: React.ReactNode;
778
+ className?: string;
779
+ }
780
+ /**
781
+ * Button - Button component for headers and controls
782
+ *
783
+ * Used in button groups or standalone in headers.
784
+ * Follows atomic design principles as a base atom.
785
+ */
786
+ declare function Button({ active, onClick, children, className, }: ButtonProps): react_jsx_runtime.JSX.Element;
787
+
788
+ interface ButtonGroupProps {
789
+ buttons: Array<{
790
+ label: string;
791
+ value: string;
792
+ active?: boolean;
793
+ }>;
794
+ onButtonClick: (value: string) => void;
795
+ className?: string;
796
+ }
797
+ /**
798
+ * ButtonGroup - Segmented control for headers
799
+ *
800
+ * Displays multiple buttons in a grouped segmented control style.
801
+ * Commonly used for tab switching (HTML/CSS/JS, etc.)
802
+ */
803
+ declare function ButtonGroup({ buttons, onButtonClick, className, }: ButtonGroupProps): react_jsx_runtime.JSX.Element;
804
+
805
+ interface ButtonLinkProps {
806
+ variant?: 'default' | 'primary' | 'secondary';
807
+ size?: 'md' | 'lg';
808
+ href?: string;
809
+ onClick?: () => void;
810
+ children: React.ReactNode;
811
+ className?: string;
812
+ disabled?: boolean;
813
+ }
814
+ declare function ButtonLink({ variant, size, href, onClick, children, className, disabled, }: ButtonLinkProps): react_jsx_runtime.JSX.Element;
815
+
816
+ interface SpinnerProps {
817
+ /** Size of the spinner */
818
+ size?: 'sm' | 'md' | 'lg';
819
+ /** Additional CSS class */
820
+ className?: string;
821
+ }
822
+ /**
823
+ * Spinner - Loading indicator
824
+ *
825
+ * Pure UI component for showing loading state.
826
+ * No internal state - controlled via parent.
827
+ *
828
+ * @example
829
+ * <Spinner size="md" />
830
+ */
831
+ declare function Spinner({ size, className }: SpinnerProps): react_jsx_runtime.JSX.Element;
832
+
833
+ /**
834
+ * MDXProvider - Makes components available in MDX files without explicit imports
835
+ *
836
+ * This provider wraps MDX content and injects React components for HTML elements.
837
+ * Components are automatically used when rendering markdown/MDX content.
838
+ *
839
+ * Key features:
840
+ * - No imports needed in MDX files
841
+ * - Consistent styling across all documentation
842
+ * - Theme-aware (respects data-theme attribute)
843
+ * - Automatic inline vs block code detection
844
+ *
845
+ * Available components (no import needed):
846
+ * - CodeBox: Monaco editor for code display (also auto-used for ```code blocks)
847
+ * - PropertyTable: Display schema-based property documentation
848
+ * - DestinationInitDemo: Interactive demo for destination initialization
849
+ * - DestinationDemo: Interactive demo for destination event processing
850
+ *
851
+ * @example
852
+ * // Wrap your app
853
+ * <MDXProvider>
854
+ * <App />
855
+ * </MDXProvider>
856
+ *
857
+ * @example
858
+ * // Then in any .mdx file, no imports needed:
859
+ * # Documentation
860
+ *
861
+ * Inline `code` and markdown blocks:
862
+ * ```typescript
863
+ * const example = "Hello";
864
+ * ```
865
+ *
866
+ * Or use components directly:
867
+ * <CodeBox code="const x = 1;" language="javascript" />
868
+ * <PropertyTable schema={mySchema} />
869
+ */
870
+ declare const MDXProvider: FC<PropsWithChildren>;
871
+
872
+ interface MDXCodeProps {
873
+ className?: string;
874
+ }
875
+ /**
876
+ * MDXCode - Code component for MDX files
877
+ *
878
+ * Automatically detects and renders inline vs block code:
879
+ * - Inline code: `example` → <code className="elb-code-inline">
880
+ * - Block code: ```language\ncode\n``` → Uses CodeBox with Monaco editor
881
+ *
882
+ * Language detection:
883
+ * - Extracts language from className (e.g., "language-typescript")
884
+ * - Maps common MDX language names to Monaco language IDs
885
+ *
886
+ * Block code features (via CodeBox):
887
+ * - Full Monaco editor with syntax highlighting
888
+ * - Theme-aware (Palenight dark, VS Light)
889
+ * - Copy to clipboard button
890
+ * - Auto-height to fit content
891
+ * - Read-only mode
892
+ *
893
+ * @example
894
+ * // In MDX files (no import needed with MDXProvider):
895
+ * Inline `code` example
896
+ *
897
+ * ```typescript
898
+ * const block = "code";
899
+ * ```
900
+ */
901
+ declare const MDXCode: FC<PropsWithChildren<MDXCodeProps>>;
902
+
903
+ /**
904
+ * Utility function to merge class names with Tailwind CSS classes
905
+ * Uses clsx for conditional classes and tailwind-merge to handle conflicts
906
+ */
907
+ declare function cn(...inputs: ClassValue[]): string;
908
+
909
+ interface UseDropdownReturn {
910
+ /** Whether dropdown is currently open */
911
+ isOpen: boolean;
912
+ /** Toggle dropdown open/closed */
913
+ toggle: () => void;
914
+ /** Open the dropdown */
915
+ open: () => void;
916
+ /** Close the dropdown */
917
+ close: () => void;
918
+ /** Ref to attach to the container element for click-outside detection */
919
+ containerRef: RefObject<HTMLDivElement | null>;
920
+ }
921
+ /**
922
+ * useDropdown - Manages dropdown open/close state with click-outside and keyboard handling
923
+ *
924
+ * Provides:
925
+ * - Open/close state management
926
+ * - Click-outside detection to close
927
+ * - Escape key handling to close
928
+ *
929
+ * @example
930
+ * const { isOpen, toggle, close, containerRef } = useDropdown();
931
+ *
932
+ * return (
933
+ * <div ref={containerRef}>
934
+ * <Dropdown isOpen={isOpen} onToggle={toggle}>
935
+ * ...
936
+ * </Dropdown>
937
+ * </div>
938
+ * );
939
+ */
940
+ declare function useDropdown(): UseDropdownReturn;
941
+
942
+ declare const palenightTheme: editor.IStandaloneThemeData;
943
+ /**
944
+ * Register the palenight theme with Monaco Editor
945
+ * Call this function before creating any editor instances
946
+ */
947
+ declare function registerPalenightTheme(monaco: typeof monaco_editor): void;
948
+
949
+ declare const lighthouseTheme: editor.IStandaloneThemeData;
950
+ /**
951
+ * Register the lighthouse theme with Monaco Editor
952
+ * Call this function before creating any editor instances
953
+ */
954
+ declare function registerLighthouseTheme(monaco: typeof monaco_editor): void;
955
+
956
+ /**
957
+ * TypeScript type definitions for walkerOS Explorer themes
958
+ *
959
+ * These types provide type-safe access to theme properties and enable
960
+ * programmatic theme customization.
961
+ */
962
+ interface ExplorerTheme {
963
+ mode: 'light' | 'dark';
964
+ colors: {
965
+ text: string;
966
+ textLabel: string;
967
+ textButton: string;
968
+ textButtonHover: string;
969
+ textButtonActive: string;
970
+ textMuted: string;
971
+ textToggle: string;
972
+ textInput: string;
973
+ textPlaceholder: string;
974
+ bgBox: string;
975
+ bgHeader: string;
976
+ bgFooter: string;
977
+ bgButtonHover: string;
978
+ bgButtonActive: string;
979
+ bgButtonGroup: string;
980
+ bgInput: string;
981
+ bgInputHover: string;
982
+ bgCodeInline: string;
983
+ bgDropdown: string;
984
+ bgDropdownOptionHover: string;
985
+ bgDropdownOptionHighlighted: string;
986
+ borderBox: string;
987
+ borderHeader: string;
988
+ borderFooter: string;
989
+ borderButtonGroup: string;
990
+ borderInput: string;
991
+ borderInputFocus: string;
992
+ buttonPrimary: string;
993
+ buttonPrimaryHover: string;
994
+ buttonPrimaryText: string;
995
+ buttonDanger: string;
996
+ buttonDangerHover: string;
997
+ buttonDangerText: string;
998
+ statusEnabled: string;
999
+ statusDisabled: string;
1000
+ statusWarning: string;
1001
+ highlightPrimary: string;
1002
+ highlightGlobals: string;
1003
+ highlightContext: string;
1004
+ highlightEntity: string;
1005
+ highlightProperty: string;
1006
+ highlightAction: string;
1007
+ highlightBackground: string;
1008
+ highlightText: string;
1009
+ highlightHover: string;
1010
+ highlightSeparator: string;
1011
+ };
1012
+ typography: {
1013
+ fontFamily: string;
1014
+ fontMono: string;
1015
+ fontSize: {
1016
+ base: string;
1017
+ label: string;
1018
+ toggle: string;
1019
+ highlightButton: string;
1020
+ };
1021
+ fontWeight: {
1022
+ normal: number;
1023
+ semibold: number;
1024
+ };
1025
+ lineHeight: {
1026
+ base: number;
1027
+ };
1028
+ };
1029
+ spacing: {
1030
+ header: string;
1031
+ footer: string;
1032
+ button: string;
1033
+ buttonGroup: string;
1034
+ gridGap: string;
1035
+ };
1036
+ radius: {
1037
+ box: string;
1038
+ button: string;
1039
+ buttonGroup: string;
1040
+ highlightButton: string;
1041
+ };
1042
+ shadows: {
1043
+ buttonActive: string;
1044
+ dropdown: string;
1045
+ };
1046
+ grid: {
1047
+ minBoxWidth: string;
1048
+ rowMinHeight: string;
1049
+ rowMaxHeight: string;
1050
+ boxMaxHeightMobile: string;
1051
+ };
1052
+ monaco: {
1053
+ theme: string;
1054
+ fontSize: string;
1055
+ lineHeight: string;
1056
+ };
1057
+ }
1058
+
1059
+ /**
1060
+ * Register all Monaco themes
1061
+ * Convenience function for registering both themes at once
1062
+ *
1063
+ * @example
1064
+ * ```typescript
1065
+ * import { registerAllThemes } from '@walkeros/explorer';
1066
+ * import * as monaco from 'monaco-editor';
1067
+ *
1068
+ * registerAllThemes(monaco);
1069
+ * ```
1070
+ */
1071
+ declare function registerAllThemes(monaco: typeof monaco_editor): void;
1072
+
1073
+ /**
1074
+ * Monaco Editor TypeScript Type Management
1075
+ *
1076
+ * This utility manages TypeScript type definitions in Monaco Editor for:
1077
+ * 1. Static walkerOS core types (bundled at build time via Vite ?raw import)
1078
+ * 2. Dynamic destination types (loaded on-the-fly when destinations are added)
1079
+ * 3. Context-specific function signatures (condition, fn, validate)
1080
+ *
1081
+ * Architecture:
1082
+ * - Uses monaco.languages.typescript.typescriptDefaults.addExtraLib()
1083
+ * - Each type definition gets a unique file path (e.g., 'file:///destinations/gtag.d.ts')
1084
+ * - Types can be added/removed dynamically without page reload
1085
+ * - Core types are bundled for offline support and predictable versioning
1086
+ */
1087
+
1088
+ /**
1089
+ * Load type definitions from a URL
1090
+ *
1091
+ * @param monaco - Monaco instance
1092
+ * @param url - URL to .d.ts file
1093
+ * @param uri - Optional custom URI (defaults to URL)
1094
+ */
1095
+ declare function loadTypeLibraryFromURL(monaco: Monaco, url: string, uri?: string): Promise<boolean>;
1096
+ /**
1097
+ * Options for loading package types dynamically
1098
+ */
1099
+ interface LoadPackageTypesOptions {
1100
+ /** Package name (e.g., '@walkeros/destination-gtag') */
1101
+ package: string;
1102
+ /** Version to load (e.g., '0.1.0', 'latest') */
1103
+ version?: string;
1104
+ /** CDN to use ('unpkg' or 'jsdelivr') */
1105
+ cdn?: 'unpkg' | 'jsdelivr';
1106
+ /** Path to .d.ts file within package (defaults to '/dist/index.d.ts') */
1107
+ typesPath?: string;
1108
+ }
1109
+ interface LoadPackageTypesOptions {
1110
+ package: string;
1111
+ version?: string;
1112
+ }
1113
+ declare function loadPackageTypes(monaco: Monaco, options: LoadPackageTypesOptions): Promise<boolean>;
1114
+ /**
1115
+ * Simple helper to register only walkerOS core types
1116
+ *
1117
+ * Use this for basic scenarios where you just need @walkeros/core types.
1118
+ * For advanced usage (destinations, function contexts), use initializeMonacoTypes.
1119
+ *
1120
+ * @param monaco - Monaco editor instance
1121
+ *
1122
+ * @example
1123
+ * ```typescript
1124
+ * const handleBeforeMount = (monaco: Monaco) => {
1125
+ * registerWalkerOSTypes(monaco);
1126
+ * };
1127
+ * ```
1128
+ */
1129
+ declare function registerWalkerOSTypes(monaco: Monaco): void;
1130
+ /**
1131
+ * Initialize Monaco with walkerOS types (full setup)
1132
+ *
1133
+ * Call this once in CodeBox's beforeMount handler.
1134
+ * Includes core types, TypeScript config, and default function context.
1135
+ *
1136
+ * @param monaco - Monaco editor instance
1137
+ *
1138
+ * @example
1139
+ * ```typescript
1140
+ * const handleBeforeMount = (monaco: Monaco) => {
1141
+ * initializeMonacoTypes(monaco);
1142
+ * };
1143
+ * ```
1144
+ */
1145
+ declare function initializeMonacoTypes(monaco: Monaco): void;
1146
+
1147
+ /**
1148
+ * Generate a unique model path for a Code instance.
1149
+ * Used as the `path` prop for @monaco-editor/react Editor.
1150
+ */
1151
+ declare function generateModelPath(): string;
1152
+ /**
1153
+ * Register a JSON schema for a specific model path.
1154
+ * Triggers a global setDiagnosticsOptions update.
1155
+ */
1156
+ declare function registerJsonSchema(modelPath: string, schema: Record<string, unknown>): void;
1157
+ /**
1158
+ * Unregister a JSON schema when a Code instance unmounts.
1159
+ * Triggers a global setDiagnosticsOptions update.
1160
+ */
1161
+ declare function unregisterJsonSchema(modelPath: string): void;
1162
+
1163
+ interface MonacoSchemaExtension {
1164
+ defaultSnippets?: Array<{
1165
+ label: string;
1166
+ description?: string;
1167
+ markdownDescription?: string;
1168
+ body?: unknown;
1169
+ bodyText?: string;
1170
+ }>;
1171
+ markdownDescription?: string;
1172
+ enumDescriptions?: string[];
1173
+ markdownEnumDescriptions?: string[];
1174
+ deprecationMessage?: string;
1175
+ errorMessage?: string;
1176
+ patternErrorMessage?: string;
1177
+ doNotSuggest?: boolean;
1178
+ suggestSortText?: string;
1179
+ }
1180
+ type EnrichmentMap = Record<string, MonacoSchemaExtension>;
1181
+ /**
1182
+ * Deep-merges Monaco-specific JSON Schema extensions into a base schema.
1183
+ * Keys in the enrichment map are dot-paths (e.g., 'properties.sources').
1184
+ * Empty string '' targets the root. Does not mutate the original.
1185
+ */
1186
+ declare function enrichSchema(baseSchema: Record<string, unknown>, enrichments: EnrichmentMap): Record<string, unknown>;
1187
+
1188
+ type AnySchema$2 = Record<string, any>;
1189
+ /**
1190
+ * Takes the base Flow.Config JSON Schema (from @walkeros/core z.toJSONSchema())
1191
+ * and returns an enriched version with Monaco-specific extensions.
1192
+ *
1193
+ * The actual schema uses anyOf[0] at the top level.
1194
+ */
1195
+ declare function enrichFlowConfigSchema(baseSchema: AnySchema$2): AnySchema$2;
1196
+
1197
+ type AnySchema$1 = Record<string, any>;
1198
+ /**
1199
+ * Returns an enriched JSON Schema for the walkerOS Contract editor.
1200
+ * Structure: { $tagging: number, entity: { action: JSONSchema } }
1201
+ */
1202
+ declare function getEnrichedContractSchema(): AnySchema$1;
1203
+
1204
+ type AnySchema = Record<string, any>;
1205
+ declare function getVariablesSchema(): AnySchema;
1206
+
1207
+ type ReferenceType = 'variable' | 'definition' | 'secret' | 'env' | 'code';
1208
+ interface WalkerOSReference {
1209
+ type: ReferenceType;
1210
+ name: string;
1211
+ startIndex: number;
1212
+ endIndex: number;
1213
+ }
1214
+ declare const REFERENCE_PATTERNS: Array<{
1215
+ type: ReferenceType;
1216
+ regex: RegExp;
1217
+ className: string;
1218
+ }>;
1219
+ /**
1220
+ * Find all walkerOS reference patterns in text.
1221
+ * Used for both decorations and validation.
1222
+ */
1223
+ declare function findWalkerOSReferences(text: string): WalkerOSReference[];
1224
+ /**
1225
+ * Apply walkerOS reference decorations to a Monaco editor.
1226
+ * Returns a cleanup function.
1227
+ */
1228
+ declare function applyWalkerOSDecorations(editorInstance: editor.IStandaloneCodeEditor): () => void;
1229
+ /**
1230
+ * Register CSS styles for walkerOS reference decorations.
1231
+ * Call once on app init.
1232
+ */
1233
+ declare function registerWalkerOSDecorationStyles(): void;
1234
+
1235
+ /**
1236
+ * Update the IntelliSense context for a specific editor model.
1237
+ */
1238
+ declare function setIntelliSenseContext(modelPath: string, context: IntelliSenseContext): void;
1239
+ /**
1240
+ * Remove context when editor unmounts.
1241
+ */
1242
+ declare function removeIntelliSenseContext(modelPath: string): void;
1243
+ /**
1244
+ * Register the walkerOS CompletionItemProvider and HoverProvider for JSON.
1245
+ * Call once on app initialization. Safe to call multiple times (idempotent).
1246
+ */
1247
+ declare function registerWalkerOSProviders(monaco: typeof monaco_editor): void;
1248
+ /**
1249
+ * Dispose all registered providers. Call on app teardown.
1250
+ */
1251
+ declare function disposeWalkerOSProviders(): void;
1252
+
1253
+ interface ValidationIssue {
1254
+ message: string;
1255
+ severity: 'error' | 'warning' | 'info';
1256
+ startIndex: number;
1257
+ endIndex: number;
1258
+ }
1259
+ /**
1260
+ * Validate walkerOS references in JSON text against the current context.
1261
+ * Returns issues for dangling references and invalid cross-references.
1262
+ */
1263
+ declare function validateWalkerOSReferences(text: string, context: Partial<IntelliSenseContext>): ValidationIssue[];
1264
+
1265
+ /**
1266
+ * Extract IntelliSense context from a Flow.Config JSON string.
1267
+ *
1268
+ * Parses the JSON, walks config → settings → steps, and collects
1269
+ * all discoverable variables, definitions, step names, packages,
1270
+ * platform, and contract entities.
1271
+ *
1272
+ * Returns `{}` for invalid JSON or non-Flow structures.
1273
+ * Pure function — no side effects, no state.
1274
+ */
1275
+ declare function extractFlowIntelliSenseContext(json: string): Partial<IntelliSenseContext>;
1276
+
1277
+ /**
1278
+ * Formats captured function calls for display
1279
+ *
1280
+ * @param calls - Array of captured calls with path and args
1281
+ * @param defaultMessage - Message to show when no calls captured
1282
+ * @returns Formatted string of function calls
1283
+ *
1284
+ * @example
1285
+ * formatCapturedCalls([
1286
+ * { path: ['window', 'gtag'], args: ['config', 'G-XXX'] }
1287
+ * ])
1288
+ * // Returns: "gtag('config', 'G-XXX');"
1289
+ */
1290
+ declare function formatCapturedCalls(calls: Array<{
1291
+ path: string[];
1292
+ args: unknown[];
1293
+ }>, defaultMessage?: string): string;
1294
+ /**
1295
+ * Creates a capture function for destination push method
1296
+ * Uses walkerOS core mockEnv to intercept function calls
1297
+ *
1298
+ * @param destination - Destination instance with push method
1299
+ * @param destinationEnv - Destination's exported env (usually examples.env.push)
1300
+ * @returns Async function that executes push and returns formatted output
1301
+ *
1302
+ * @example
1303
+ * import destinationGtag, { examples } from '@walkeros/web-destination-gtag';
1304
+ * import { getEvent } from '@walkeros/core';
1305
+ *
1306
+ * const captureFn = captureDestinationPush(destinationGtag, examples.env.push);
1307
+ *
1308
+ * // Use in DestinationDemo
1309
+ * <DestinationDemo
1310
+ * destination={destinationGtag}
1311
+ * event={getEvent('order complete')}
1312
+ * mapping={examples.mapping.purchase}
1313
+ * fn={captureFn}
1314
+ * />
1315
+ */
1316
+ declare function captureDestinationPush(destination: Destination.Instance, destinationEnv: unknown): (event: WalkerOS.Event, context: Destination.PushContext) => Promise<string>;
1317
+ /**
1318
+ * Advanced: Creates a raw capture function that returns call data
1319
+ * Use this when you need custom formatting or processing of calls
1320
+ *
1321
+ * @param destinationEnv - Destination's exported env
1322
+ * @returns Function that returns both env and getCalls function
1323
+ *
1324
+ * @example
1325
+ * const { env, getCalls } = createRawCapture(examples.env.push);
1326
+ * await destination.init({ ...context, env });
1327
+ * const calls = getCalls();
1328
+ * // Process calls as needed
1329
+ */
1330
+ declare function createRawCapture(destinationEnv: unknown): {
1331
+ env: Record<string, unknown>;
1332
+ getCalls: () => {
1333
+ path: string[];
1334
+ args: unknown[];
1335
+ }[];
1336
+ };
1337
+
1338
+ export { ArchitectureFlow, type ArchitectureFlowProps, Box, type BoxProps, type BoxTab, BrowserBox, type BrowserBoxProps, Button, ButtonGroup, type ButtonGroupProps, ButtonLink, type ButtonLinkProps, type ButtonProps, Code, CodeBox, type CodeBoxProps, type CodeBoxTab, type CodeProps, CodeSnippet, type CodeSnippetProps, CollectorBox, type CollectorBoxProps, DestinationDemo, type DestinationDemoProps, DestinationInitDemo as DestinationInit, DestinationInitDemo, type DestinationInitDemoProps, DestinationDemo as DestinationPush, Dropdown, DropdownDivider, type DropdownDividerProps, DropdownItem, type DropdownItemProps, type DropdownProps, type ExplorerTheme, type FlowColumn, type FlowItem, FlowMap, type FlowMapProps, type FlowSection, type FlowStageConfig, Footer, type FooterProps, Grid, type GridProps, Header, type HeaderProps, type IntelliSenseContext, LiveCode, type LiveCodeProps, type LoadPackageTypesOptions, MDXCode, MDXProvider, type MonacoSchemaExtension, type PackageInfo, Preview, type PreviewProps, PromotionPlayground, type PromotionPlaygroundProps, PropertyTable, type PropertyTableProps, REFERENCE_PATTERNS, Spinner, type SpinnerProps, type UseDropdownReturn, applyWalkerOSDecorations, captureDestinationPush, cn, createCaptureFn, createFbqDestination, createGtagDestination, createPlausibleDestination, createRawCapture, disposeWalkerOSProviders, enrichFlowConfigSchema, enrichSchema, extractFlowIntelliSenseContext, findWalkerOSReferences, formatCapturedCalls, generateModelPath, getEnrichedContractSchema, getVariablesSchema, initializeMonacoTypes, lighthouseTheme, loadPackageTypes, loadTypeLibraryFromURL, palenightTheme, registerAllThemes, registerJsonSchema, registerLighthouseTheme, registerPalenightTheme, registerWalkerOSDecorationStyles, registerWalkerOSProviders, registerWalkerOSTypes, removeIntelliSenseContext, setIntelliSenseContext, unregisterJsonSchema, useDropdown, validateWalkerOSReferences };