@walkeros/explorer 3.1.0 → 3.1.1

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
@@ -1,378 +0,0 @@
1
- /**
2
- * Monaco Editor TypeScript Type Management
3
- *
4
- * This utility manages TypeScript type definitions in Monaco Editor for:
5
- * 1. Static walkerOS core types (bundled at build time via Vite ?raw import)
6
- * 2. Dynamic destination types (loaded on-the-fly when destinations are added)
7
- * 3. Context-specific function signatures (condition, fn, validate)
8
- *
9
- * Architecture:
10
- * - Uses monaco.languages.typescript.typescriptDefaults.addExtraLib()
11
- * - Each type definition gets a unique file path (e.g., 'file:///destinations/gtag.d.ts')
12
- * - Types can be added/removed dynamically without page reload
13
- * - Core types are bundled for offline support and predictable versioning
14
- */
15
- import { getContextTypes } from './monaco-context-types';
16
- // This import will be replaced by tsup plugin with actual TypeScript content
17
- import walkerosCoreTypesBundled from 'virtual:walkeros-core-types';
18
- /**
19
- * Registry of loaded type libraries
20
- */
21
- const typeLibraries = new Map();
22
- /**
23
- * Configuration for TypeScript compiler options
24
- */
25
- export function configureMonacoTypeScript(monaco) {
26
- monaco.languages.typescript.javascriptDefaults.setCompilerOptions({
27
- target: monaco.languages.typescript.ScriptTarget.ES2020,
28
- lib: ['es2020'],
29
- allowNonTsExtensions: true,
30
- moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
31
- module: monaco.languages.typescript.ModuleKind.CommonJS,
32
- noEmit: true,
33
- esModuleInterop: true,
34
- jsx: monaco.languages.typescript.JsxEmit.React,
35
- allowJs: true,
36
- checkJs: false,
37
- strict: false,
38
- noImplicitAny: false,
39
- strictNullChecks: false,
40
- });
41
- monaco.languages.typescript.javascriptDefaults.setDiagnosticsOptions({
42
- noSemanticValidation: false,
43
- noSyntaxValidation: false,
44
- diagnosticCodesToIgnore: [1108, 1005],
45
- });
46
- monaco.languages.typescript.typescriptDefaults.setCompilerOptions({
47
- target: monaco.languages.typescript.ScriptTarget.ES2020,
48
- lib: ['es2020'],
49
- allowNonTsExtensions: true,
50
- moduleResolution: monaco.languages.typescript.ModuleResolutionKind.NodeJs,
51
- module: monaco.languages.typescript.ModuleKind.CommonJS,
52
- noEmit: true,
53
- esModuleInterop: true,
54
- jsx: monaco.languages.typescript.JsxEmit.React,
55
- strict: false,
56
- });
57
- }
58
- /**
59
- * Add a type library from a string
60
- *
61
- * @param monaco - Monaco instance
62
- * @param uri - Unique identifier (e.g., 'file:///destinations/gtag.d.ts')
63
- * @param content - TypeScript definition content
64
- * @returns True if added, false if already exists
65
- */
66
- export function addTypeLibrary(monaco, uri, content) {
67
- // Check if already loaded
68
- if (typeLibraries.has(uri)) {
69
- return false;
70
- }
71
- // Add to both JavaScript and TypeScript language services
72
- // This ensures types work whether the editor is in JS or TS mode
73
- const jsDisposable = monaco.languages.typescript.javascriptDefaults.addExtraLib(content, uri);
74
- const tsDisposable = monaco.languages.typescript.typescriptDefaults.addExtraLib(content, uri);
75
- // Track in registry (store both disposables)
76
- typeLibraries.set(uri, {
77
- uri,
78
- content,
79
- disposable: {
80
- dispose: () => {
81
- jsDisposable.dispose();
82
- tsDisposable.dispose();
83
- },
84
- },
85
- });
86
- return true;
87
- }
88
- /**
89
- * Remove a type library
90
- *
91
- * @param uri - URI to remove
92
- * @returns True if removed, false if not found
93
- */
94
- export function removeTypeLibrary(uri) {
95
- const lib = typeLibraries.get(uri);
96
- if (!lib) {
97
- return false;
98
- }
99
- // Dispose Monaco resource
100
- lib.disposable?.dispose();
101
- // Remove from registry
102
- typeLibraries.delete(uri);
103
- return true;
104
- }
105
- /**
106
- * Update a type library (remove + add)
107
- *
108
- * @param monaco - Monaco instance
109
- * @param uri - URI to update
110
- * @param content - New content
111
- */
112
- export function updateTypeLibrary(monaco, uri, content) {
113
- removeTypeLibrary(uri);
114
- addTypeLibrary(monaco, uri, content);
115
- }
116
- /**
117
- * Load type definitions from a URL
118
- *
119
- * @param monaco - Monaco instance
120
- * @param url - URL to .d.ts file
121
- * @param uri - Optional custom URI (defaults to URL)
122
- */
123
- export async function loadTypeLibraryFromURL(monaco, url, uri) {
124
- try {
125
- const response = await fetch(url);
126
- if (!response.ok) {
127
- return false;
128
- }
129
- const content = await response.text();
130
- const typeUri = uri || `file:///${url}`;
131
- return addTypeLibrary(monaco, typeUri, content);
132
- }
133
- catch {
134
- return false;
135
- }
136
- }
137
- /**
138
- * Strip problematic imports from type definition content
139
- *
140
- * Removes import statements that Monaco can't resolve, while preserving:
141
- * - Type declarations
142
- * - Export statements
143
- * - Re-export statements (export * from / export { } from)
144
- *
145
- * Uses multiple strategies for robustness:
146
- * 1. Simple single-line imports (fast path)
147
- * 2. Multi-line imports (comprehensive)
148
- * 3. Import type assertions
149
- *
150
- * Does NOT remove:
151
- * - export { } from 'module' (re-exports)
152
- * - export * from 'module' (re-exports)
153
- * - Triple-slash directives (/// <reference types="..." />)
154
- *
155
- * @param content - Raw .d.ts file content
156
- * @returns Cleaned content safe for Monaco
157
- */
158
- function stripExternalImports(content) {
159
- // Strategy 1: Remove simple single-line imports
160
- // Matches: import ... from '...';
161
- // Handles: import type, import *, import { }, default imports
162
- let cleaned = content.replace(/^import\s+(?:type\s+)?(?:\*\s+as\s+\w+|\{[^}]*\}|[\w$]+)(?:\s*,\s*(?:\{[^}]*\}|\*\s+as\s+\w+))?\s+from\s+['"][^'"]+['"];?\s*$/gm, '');
163
- // Strategy 2: Remove multi-line imports (more aggressive)
164
- // Matches imports that span multiple lines
165
- cleaned = cleaned.replace(/^import\s+(?:type\s+)?(?:\{[^}]*\}|\*\s+as\s+\w+|[\w$]+)\s+from\s+['"][^'"]+['"];?\s*$/gms, '');
166
- // Strategy 3: Remove import type assertions
167
- // Matches: import('module')
168
- cleaned = cleaned.replace(/import\s*\(\s*['"][^'"]+['"]\s*\)/g, 'any');
169
- // Clean up excessive blank lines (more than 2 consecutive)
170
- cleaned = cleaned.replace(/\n{3,}/g, '\n\n');
171
- return cleaned;
172
- }
173
- export async function loadPackageTypes(monaco, options) {
174
- const { package: packageName, version = 'latest' } = options;
175
- const uri = `file:///node_modules/${packageName}/index.d.ts`;
176
- if (typeLibraries.has(uri)) {
177
- return true;
178
- }
179
- const url = `https://cdn.jsdelivr.net/npm/${packageName}@${version}/dist/index.d.ts`;
180
- try {
181
- const response = await fetch(url);
182
- if (!response.ok) {
183
- return false;
184
- }
185
- let content = await response.text();
186
- content = stripExternalImports(content);
187
- const moduleContent = `declare module '${packageName}' {\n${content}\n}`;
188
- const success = addTypeLibrary(monaco, uri, moduleContent);
189
- return success;
190
- }
191
- catch {
192
- return false;
193
- }
194
- }
195
- /**
196
- * Load walkerOS core types (bundled at build time)
197
- *
198
- * Uses bundled types imported via Vite's ?raw import.
199
- * This ensures types are always available offline and match the installed version.
200
- */
201
- export function loadWalkerOSCoreTypes(monaco) {
202
- const uri = 'file:///node_modules/@walkeros/core/index.d.ts';
203
- // Check if already loaded
204
- if (typeLibraries.has(uri)) {
205
- return true;
206
- }
207
- // Clean the types using the same robust stripping function
208
- const cleanedTypes = stripExternalImports(walkerosCoreTypesBundled);
209
- // Wrap in module declaration
210
- const moduleContent = `declare module '@walkeros/core' {
211
- ${cleanedTypes}
212
- }`;
213
- return addTypeLibrary(monaco, uri, moduleContent);
214
- }
215
- /**
216
- * Minimal fallback types if we can't load from node_modules
217
- */
218
- function getMinimalWalkerOSTypes() {
219
- return `
220
- declare namespace WalkerOS {
221
- export interface Event {
222
- entity: string;
223
- action: string;
224
- data?: Record<string, unknown>;
225
- context?: Record<string, unknown>;
226
- user?: {
227
- id?: string;
228
- device?: string;
229
- session?: string;
230
- [key: string]: unknown;
231
- };
232
- nested?: unknown[];
233
- consent?: Record<string, boolean>;
234
- id?: string;
235
- trigger?: string;
236
- timestamp?: number;
237
- timing?: number;
238
- count?: number;
239
- version?: {
240
- client?: string;
241
- tagging?: number;
242
- };
243
- }
244
-
245
- export interface Properties {
246
- [key: string]: unknown;
247
- }
248
-
249
- export interface Mapping {
250
- [key: string]: unknown;
251
- }
252
-
253
- export interface Collector {
254
- push: (event: Partial<Event>) => Promise<unknown>;
255
- [key: string]: unknown;
256
- }
257
-
258
- export namespace Destination {
259
- export interface Config<T = unknown> {
260
- id?: string;
261
- mapping?: Mapping;
262
- custom?: T;
263
- [key: string]: unknown;
264
- }
265
- }
266
- }
267
- `;
268
- }
269
- export function addFunctionContextTypes(monaco, context) {
270
- const uri = `file:///context/${context.type}.d.ts`;
271
- // Use hand-crafted type templates from monaco-context-types
272
- const contextTypes = getContextTypes(context.type);
273
- // Update or add
274
- updateTypeLibrary(monaco, uri, contextTypes);
275
- }
276
- /**
277
- * Add destination-specific types dynamically
278
- *
279
- * @param monaco - Monaco instance
280
- * @param destinationId - Unique destination identifier (e.g., 'gtag', 'fbq')
281
- * @param typeDefinition - TypeScript definition for destination's custom config/event
282
- *
283
- * @example
284
- * ```typescript
285
- * addDestinationType(monaco, 'gtag', `
286
- * declare namespace Gtag {
287
- * interface Settings {
288
- * measurementId: string;
289
- * sendPageView?: boolean;
290
- * }
291
- *
292
- * interface EventParams {
293
- * event_category?: string;
294
- * event_label?: string;
295
- * value?: number;
296
- * }
297
- * }
298
- *
299
- * // Extend WalkerOS namespace
300
- * declare namespace WalkerOS {
301
- * namespace Destination {
302
- * interface ConfigMap {
303
- * gtag: Gtag.Settings;
304
- * }
305
- * }
306
- * }
307
- * `);
308
- * ```
309
- */
310
- export function addDestinationType(monaco, destinationId, typeDefinition) {
311
- const uri = `file:///destinations/${destinationId}.d.ts`;
312
- updateTypeLibrary(monaco, uri, typeDefinition);
313
- }
314
- /**
315
- * Remove destination types when destination is removed
316
- */
317
- export function removeDestinationType(destinationId) {
318
- const uri = `file:///destinations/${destinationId}.d.ts`;
319
- removeTypeLibrary(uri);
320
- }
321
- /**
322
- * Simple helper to register only walkerOS core types
323
- *
324
- * Use this for basic scenarios where you just need @walkeros/core types.
325
- * For advanced usage (destinations, function contexts), use initializeMonacoTypes.
326
- *
327
- * @param monaco - Monaco editor instance
328
- *
329
- * @example
330
- * ```typescript
331
- * const handleBeforeMount = (monaco: Monaco) => {
332
- * registerWalkerOSTypes(monaco);
333
- * };
334
- * ```
335
- */
336
- export function registerWalkerOSTypes(monaco) {
337
- configureMonacoTypeScript(monaco);
338
- loadWalkerOSCoreTypes(monaco);
339
- }
340
- /**
341
- * Initialize Monaco with walkerOS types (full setup)
342
- *
343
- * Call this once in CodeBox's beforeMount handler.
344
- * Includes core types, TypeScript config, and default function context.
345
- *
346
- * @param monaco - Monaco editor instance
347
- *
348
- * @example
349
- * ```typescript
350
- * const handleBeforeMount = (monaco: Monaco) => {
351
- * initializeMonacoTypes(monaco);
352
- * };
353
- * ```
354
- */
355
- export function initializeMonacoTypes(monaco) {
356
- // Configure compiler
357
- configureMonacoTypeScript(monaco);
358
- // Load core types (now synchronous with bundled types)
359
- loadWalkerOSCoreTypes(monaco);
360
- // Add default function context (condition)
361
- addFunctionContextTypes(monaco, { type: 'condition' });
362
- }
363
- /**
364
- * Get all loaded type libraries (for debugging)
365
- */
366
- export function getLoadedTypeLibraries() {
367
- return Array.from(typeLibraries.keys());
368
- }
369
- /**
370
- * Clear all type libraries (for testing)
371
- */
372
- export function clearAllTypeLibraries() {
373
- for (const [uri, lib] of typeLibraries.entries()) {
374
- lib.disposable?.dispose();
375
- }
376
- typeLibraries.clear();
377
- }
378
- //# sourceMappingURL=monaco-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monaco-types.js","sourceRoot":"","sources":["../../src/utils/monaco-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,6EAA6E;AAC7E,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AAWnE;;GAEG;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,EAAuB,CAAC;AAErD;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAc;IACtD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,kBAAkB,CAAC;QAChE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM;QACvD,GAAG,EAAE,CAAC,QAAQ,CAAC;QACf,oBAAoB,EAAE,IAAI;QAC1B,gBAAgB,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,oBAAoB,CAAC,MAAM;QACzE,MAAM,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ;QACvD,MAAM,EAAE,IAAI;QACZ,eAAe,EAAE,IAAI;QACrB,GAAG,EAAE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,KAAK;QAC9C,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,KAAK;QACb,aAAa,EAAE,KAAK;QACpB,gBAAgB,EAAE,KAAK;KACxB,CAAC,CAAC;IAEH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,qBAAqB,CAAC;QACnE,oBAAoB,EAAE,KAAK;QAC3B,kBAAkB,EAAE,KAAK;QACzB,uBAAuB,EAAE,CAAC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CAAC;IACzD,iBAAiB,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAc;IAClD,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAClC,qBAAqB,CAAC,MAAM,CAAC,CAAC;AAChC,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAc;IAClD,qBAAqB;IACrB,yBAAyB,CAAC,MAAM,CAAC,CAAC;IAElC,uDAAuD;IACvD,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAE9B,2CAA2C;IAC3C,uBAAuB,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB;IACpC,OAAO,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB;IACnC,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC;QACjD,GAAG,CAAC,UAAU,EAAE,OAAO,EAAE,CAAC;IAC5B,CAAC;IACD,aAAa,CAAC,KAAK,EAAE,CAAC;AACxB,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { IntelliSenseContext, PackageInfo } from '../types/intellisense';
2
- export interface CompletionEntry {
3
- label: string;
4
- insertText: string;
5
- detail?: string;
6
- documentation?: string;
7
- kind: 'variable' | 'reference' | 'secret' | 'module' | 'property';
8
- sortText?: string;
9
- }
10
- export declare function getVariableCompletions(variables: IntelliSenseContext['variables']): CompletionEntry[];
11
- export declare function getDefinitionCompletions(definitions: IntelliSenseContext['definitions']): CompletionEntry[];
12
- export declare function getSecretCompletions(secrets: IntelliSenseContext['secrets']): CompletionEntry[];
13
- export declare function getPackageCompletions(packages: PackageInfo[] | undefined, platform: IntelliSenseContext['platform']): CompletionEntry[];
14
- export declare function getStepNameCompletions(stepNames: IntelliSenseContext['stepNames'], context: 'next' | 'before'): CompletionEntry[];
15
- /**
16
- * Get mapping value path completions based on contract schemas.
17
- *
18
- * When typing "data." inside a mapping rule for entity "page" action "view",
19
- * this returns the properties defined in the contract for page.view.
20
- */
21
- export declare function getMappingPathCompletions(contractRaw: IntelliSenseContext['contractRaw'], entity: string, action: string, prefix: string): CompletionEntry[];
22
- export declare function getContractCompletions(contractRaw: IntelliSenseContext['contractRaw'], pathSegments: string[]): CompletionEntry[];
23
- //# sourceMappingURL=monaco-walkeros-completions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monaco-walkeros-completions.d.ts","sourceRoot":"","sources":["../../src/utils/monaco-walkeros-completions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAG9E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,UAAU,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,GAC1C,eAAe,EAAE,CAUnB;AAED,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,GAC9C,eAAe,EAAE,CAUnB;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,mBAAmB,CAAC,SAAS,CAAC,GACtC,eAAe,EAAE,CAWnB;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EACnC,QAAQ,EAAE,mBAAmB,CAAC,UAAU,CAAC,GACxC,eAAe,EAAE,CAanB;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,mBAAmB,CAAC,WAAW,CAAC,EAC3C,OAAO,EAAE,MAAM,GAAG,QAAQ,GACzB,eAAe,EAAE,CAWnB;AAoID;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,eAAe,EAAE,CA8CnB;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAC/C,YAAY,EAAE,MAAM,EAAE,GACrB,eAAe,EAAE,CAwBnB"}
@@ -1,258 +0,0 @@
1
- import { getContractPathCompletions } from './contract-path-walker';
2
- export function getVariableCompletions(variables) {
3
- if (!variables || Object.keys(variables).length === 0)
4
- return [];
5
- return Object.entries(variables).map(([name, value]) => ({
6
- label: `$var.${name}`,
7
- insertText: `$var.${name}`,
8
- detail: `= ${JSON.stringify(value)}`,
9
- documentation: `Variable reference. Resolves to \`${JSON.stringify(value)}\` at runtime.`,
10
- kind: 'variable',
11
- sortText: '0_var_' + name,
12
- }));
13
- }
14
- export function getDefinitionCompletions(definitions) {
15
- if (!definitions || Object.keys(definitions).length === 0)
16
- return [];
17
- return Object.keys(definitions).map((name) => ({
18
- label: `$def.${name}`,
19
- insertText: `$def.${name}`,
20
- detail: '(definition)',
21
- documentation: `Definition reference. Injects the reusable config fragment "${name}" at runtime.`,
22
- kind: 'reference',
23
- sortText: '0_def_' + name,
24
- }));
25
- }
26
- export function getSecretCompletions(secrets) {
27
- if (!secrets || secrets.length === 0)
28
- return [];
29
- return secrets.map((name) => ({
30
- label: `$secret.${name}`,
31
- insertText: `$secret.${name}`,
32
- detail: '(secret)',
33
- documentation: 'Secret reference. Value is securely injected at runtime. Never stored in config.',
34
- kind: 'secret',
35
- sortText: '0_secret_' + name,
36
- }));
37
- }
38
- export function getPackageCompletions(packages, platform) {
39
- if (!packages || packages.length === 0)
40
- return [];
41
- const filtered = platform
42
- ? packages.filter((p) => p.platform === platform)
43
- : packages;
44
- return filtered.map((pkg) => ({
45
- label: pkg.package,
46
- insertText: pkg.package,
47
- detail: `${pkg.type} (${pkg.platform})`,
48
- documentation: `walkerOS ${pkg.type}: ${pkg.shortName}`,
49
- kind: 'module',
50
- sortText: '1_pkg_' + pkg.shortName,
51
- }));
52
- }
53
- export function getStepNameCompletions(stepNames, context) {
54
- if (!stepNames)
55
- return [];
56
- const names = stepNames.transformers || [];
57
- return names.map((name) => ({
58
- label: name,
59
- insertText: name,
60
- detail: `transformer (${context} chain)`,
61
- documentation: `Reference to transformer step "${name}" in this flow config.`,
62
- kind: 'reference',
63
- sortText: '0_step_' + name,
64
- }));
65
- }
66
- /** Top-level WalkerOS event fields available in mapping values */
67
- const EVENT_ROOT_FIELDS = [
68
- {
69
- label: 'data',
70
- insertText: 'data',
71
- detail: '(event data)',
72
- kind: 'property',
73
- sortText: '0_event_data',
74
- },
75
- {
76
- label: 'globals',
77
- insertText: 'globals',
78
- detail: '(global properties)',
79
- kind: 'property',
80
- sortText: '0_event_globals',
81
- },
82
- {
83
- label: 'user',
84
- insertText: 'user',
85
- detail: '(user properties)',
86
- kind: 'property',
87
- sortText: '0_event_user',
88
- },
89
- {
90
- label: 'context',
91
- insertText: 'context',
92
- detail: '(context data)',
93
- kind: 'property',
94
- sortText: '0_event_context',
95
- },
96
- {
97
- label: 'custom',
98
- insertText: 'custom',
99
- detail: '(custom properties)',
100
- kind: 'property',
101
- sortText: '0_event_custom',
102
- },
103
- {
104
- label: 'consent',
105
- insertText: 'consent',
106
- detail: '(consent state)',
107
- kind: 'property',
108
- sortText: '0_event_consent',
109
- },
110
- {
111
- label: 'nested',
112
- insertText: 'nested',
113
- detail: '(nested entities)',
114
- kind: 'property',
115
- sortText: '0_event_nested',
116
- },
117
- {
118
- label: 'entity',
119
- insertText: 'entity',
120
- detail: '(string)',
121
- kind: 'property',
122
- sortText: '1_event_entity',
123
- },
124
- {
125
- label: 'action',
126
- insertText: 'action',
127
- detail: '(string)',
128
- kind: 'property',
129
- sortText: '1_event_action',
130
- },
131
- {
132
- label: 'name',
133
- insertText: 'name',
134
- detail: '(string)',
135
- kind: 'property',
136
- sortText: '1_event_name',
137
- },
138
- {
139
- label: 'trigger',
140
- insertText: 'trigger',
141
- detail: '(string)',
142
- kind: 'property',
143
- sortText: '1_event_trigger',
144
- },
145
- {
146
- label: 'timestamp',
147
- insertText: 'timestamp',
148
- detail: '(number)',
149
- kind: 'property',
150
- sortText: '1_event_timestamp',
151
- },
152
- {
153
- label: 'timing',
154
- insertText: 'timing',
155
- detail: '(number)',
156
- kind: 'property',
157
- sortText: '1_event_timing',
158
- },
159
- {
160
- label: 'id',
161
- insertText: 'id',
162
- detail: '(string)',
163
- kind: 'property',
164
- sortText: '1_event_id',
165
- },
166
- {
167
- label: 'group',
168
- insertText: 'group',
169
- detail: '(string)',
170
- kind: 'property',
171
- sortText: '1_event_group',
172
- },
173
- {
174
- label: 'count',
175
- insertText: 'count',
176
- detail: '(number)',
177
- kind: 'property',
178
- sortText: '1_event_count',
179
- },
180
- {
181
- label: 'source',
182
- insertText: 'source',
183
- detail: '(source info)',
184
- kind: 'property',
185
- sortText: '1_event_source',
186
- },
187
- {
188
- label: 'version',
189
- insertText: 'version',
190
- detail: '(version info)',
191
- kind: 'property',
192
- sortText: '1_event_version',
193
- },
194
- ];
195
- /**
196
- * Get mapping value path completions based on contract schemas.
197
- *
198
- * When typing "data." inside a mapping rule for entity "page" action "view",
199
- * this returns the properties defined in the contract for page.view.
200
- */
201
- export function getMappingPathCompletions(contractRaw, entity, action, prefix) {
202
- if (!prefix)
203
- return EVENT_ROOT_FIELDS;
204
- if (!contractRaw || Object.keys(contractRaw).length === 0)
205
- return [];
206
- const sectionMap = {
207
- data: 'events',
208
- globals: 'globals',
209
- context: 'context',
210
- custom: 'custom',
211
- user: 'user',
212
- consent: 'consent',
213
- };
214
- const section = sectionMap[prefix];
215
- if (!section)
216
- return [];
217
- const allCompletions = [];
218
- const seen = new Set();
219
- for (const contractName of Object.keys(contractRaw)) {
220
- const pathSegments = section === 'events'
221
- ? [contractName, 'events', entity, action]
222
- : [contractName, section];
223
- const completions = getContractPathCompletions(contractRaw, pathSegments);
224
- for (const c of completions) {
225
- if (seen.has(c.key))
226
- continue;
227
- seen.add(c.key);
228
- allCompletions.push({
229
- label: `${prefix}.${c.key}`,
230
- insertText: `${prefix}.${c.key}`,
231
- detail: c.type ? `(${c.type})` : '(property)',
232
- documentation: `Event property from contract. Maps to event.${prefix}.${c.key}.`,
233
- kind: 'property',
234
- sortText: `0_mapping_${c.key}`,
235
- });
236
- }
237
- }
238
- return allCompletions;
239
- }
240
- export function getContractCompletions(contractRaw, pathSegments) {
241
- if (!contractRaw || Object.keys(contractRaw).length === 0)
242
- return [];
243
- const completions = getContractPathCompletions(contractRaw, pathSegments);
244
- const prefix = pathSegments.length > 0
245
- ? `$contract.${pathSegments.join('.')}.`
246
- : '$contract.';
247
- return completions.map((c) => ({
248
- label: `${prefix}${c.key}`.replace(/\.$/, ''),
249
- insertText: pathSegments.length === 0
250
- ? `$contract.${c.key}`
251
- : `$contract.${pathSegments.join('.')}.${c.key}`,
252
- detail: c.type ? `(${c.type})` : c.detail ? `(${c.detail})` : '(contract)',
253
- documentation: `Contract reference. Resolves to the ${c.key} ${c.detail || 'value'} at runtime.`,
254
- kind: 'property',
255
- sortText: '0_contract_' + pathSegments.concat(c.key).join('_'),
256
- }));
257
- }
258
- //# sourceMappingURL=monaco-walkeros-completions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monaco-walkeros-completions.js","sourceRoot":"","sources":["../../src/utils/monaco-walkeros-completions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AAWpE,MAAM,UAAU,sBAAsB,CACpC,SAA2C;IAE3C,I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