@walkeros/explorer 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/dist/__mocks__/@monaco-editor/react.d.ts +3 -0
  2. package/dist/__mocks__/@monaco-editor/react.d.ts.map +1 -0
  3. package/dist/__mocks__/@monaco-editor/react.js +4 -0
  4. package/dist/__mocks__/@monaco-editor/react.js.map +1 -0
  5. package/dist/components/atoms/box.d.ts +27 -0
  6. package/dist/components/atoms/box.d.ts.map +1 -0
  7. package/dist/components/atoms/box.js +86 -0
  8. package/dist/components/atoms/box.js.map +1 -0
  9. package/dist/components/atoms/box.stories.d.ts +34 -0
  10. package/dist/components/atoms/box.stories.d.ts.map +1 -0
  11. package/dist/components/atoms/box.stories.js +104 -0
  12. package/dist/components/atoms/box.stories.js.map +1 -0
  13. package/dist/components/atoms/button-group.d.ts +17 -0
  14. package/dist/components/atoms/button-group.d.ts.map +1 -0
  15. package/dist/components/atoms/button-group.js +12 -0
  16. package/dist/components/atoms/button-group.js.map +1 -0
  17. package/dist/components/atoms/button-group.stories.d.ts +18 -0
  18. package/dist/components/atoms/button-group.stories.d.ts.map +1 -0
  19. package/dist/components/atoms/button-group.stories.js +39 -0
  20. package/dist/components/atoms/button-group.stories.js.map +1 -0
  21. package/dist/components/atoms/button-link.d.ts +12 -0
  22. package/dist/components/atoms/button-link.d.ts.map +1 -0
  23. package/dist/components/atoms/button-link.js +10 -0
  24. package/dist/components/atoms/button-link.js.map +1 -0
  25. package/dist/components/atoms/button-link.stories.d.ts +11 -0
  26. package/dist/components/atoms/button-link.stories.d.ts.map +1 -0
  27. package/dist/components/atoms/button-link.stories.js +50 -0
  28. package/dist/components/atoms/button-link.stories.js.map +1 -0
  29. package/dist/components/atoms/button.d.ts +15 -0
  30. package/dist/components/atoms/button.d.ts.map +1 -0
  31. package/dist/components/atoms/button.js +11 -0
  32. package/dist/components/atoms/button.js.map +1 -0
  33. package/dist/components/atoms/button.stories.d.ts +14 -0
  34. package/dist/components/atoms/button.stories.d.ts.map +1 -0
  35. package/dist/components/atoms/button.stories.js +25 -0
  36. package/dist/components/atoms/button.stories.js.map +1 -0
  37. package/dist/components/atoms/code.d.ts +92 -0
  38. package/dist/components/atoms/code.d.ts.map +1 -0
  39. package/dist/components/atoms/code.js +405 -0
  40. package/dist/components/atoms/code.js.map +1 -0
  41. package/dist/components/atoms/code.stories.d.ts +46 -0
  42. package/dist/components/atoms/code.stories.d.ts.map +1 -0
  43. package/dist/components/atoms/code.stories.js +156 -0
  44. package/dist/components/atoms/code.stories.js.map +1 -0
  45. package/dist/components/atoms/footer.d.ts +21 -0
  46. package/dist/components/atoms/footer.d.ts.map +1 -0
  47. package/dist/components/atoms/footer.js +19 -0
  48. package/dist/components/atoms/footer.js.map +1 -0
  49. package/dist/components/atoms/footer.stories.d.ts +14 -0
  50. package/dist/components/atoms/footer.stories.d.ts.map +1 -0
  51. package/dist/components/atoms/footer.stories.js +29 -0
  52. package/dist/components/atoms/footer.stories.js.map +1 -0
  53. package/dist/components/atoms/grid.d.ts +65 -0
  54. package/dist/components/atoms/grid.d.ts.map +1 -0
  55. package/dist/components/atoms/grid.js +169 -0
  56. package/dist/components/atoms/grid.js.map +1 -0
  57. package/dist/components/atoms/grid.stories.d.ts +18 -0
  58. package/dist/components/atoms/grid.stories.d.ts.map +1 -0
  59. package/dist/components/atoms/grid.stories.js +60 -0
  60. package/dist/components/atoms/grid.stories.js.map +1 -0
  61. package/dist/components/atoms/header.d.ts +7 -0
  62. package/dist/components/atoms/header.d.ts.map +1 -0
  63. package/dist/components/atoms/header.js +5 -0
  64. package/dist/components/atoms/header.js.map +1 -0
  65. package/dist/components/atoms/header.stories.d.ts +15 -0
  66. package/dist/components/atoms/header.stories.d.ts.map +1 -0
  67. package/dist/components/atoms/header.stories.js +37 -0
  68. package/dist/components/atoms/header.stories.js.map +1 -0
  69. package/dist/components/atoms/icons/icon.stories.d.ts +18 -0
  70. package/dist/components/atoms/icons/icon.stories.d.ts.map +1 -0
  71. package/dist/components/atoms/icons/icon.stories.js +37 -0
  72. package/dist/components/atoms/icons/icon.stories.js.map +1 -0
  73. package/dist/components/atoms/icons/icons.d.ts +2 -0
  74. package/dist/components/atoms/icons/icons.d.ts.map +1 -0
  75. package/dist/components/atoms/icons/icons.js +7 -0
  76. package/dist/components/atoms/icons/icons.js.map +1 -0
  77. package/dist/components/atoms/icons/index.d.ts +3 -0
  78. package/dist/components/atoms/icons/index.d.ts.map +1 -0
  79. package/dist/components/atoms/icons/index.js +3 -0
  80. package/dist/components/atoms/icons/index.js.map +1 -0
  81. package/dist/components/atoms/mdx-code.d.ts +33 -0
  82. package/dist/components/atoms/mdx-code.d.ts.map +1 -0
  83. package/dist/components/atoms/mdx-code.js +69 -0
  84. package/dist/components/atoms/mdx-code.js.map +1 -0
  85. package/dist/components/atoms/preview-footer.d.ts +32 -0
  86. package/dist/components/atoms/preview-footer.d.ts.map +1 -0
  87. package/dist/components/atoms/preview-footer.js +31 -0
  88. package/dist/components/atoms/preview-footer.js.map +1 -0
  89. package/dist/components/atoms/spinner.d.ts +17 -0
  90. package/dist/components/atoms/spinner.d.ts.map +1 -0
  91. package/dist/components/atoms/spinner.js +14 -0
  92. package/dist/components/atoms/spinner.js.map +1 -0
  93. package/dist/components/atoms/spinner.stories.d.ts +7 -0
  94. package/dist/components/atoms/spinner.stories.d.ts.map +1 -0
  95. package/dist/components/atoms/spinner.stories.js +9 -0
  96. package/dist/components/atoms/spinner.stories.js.map +1 -0
  97. package/dist/components/atoms/toggle.d.ts +9 -0
  98. package/dist/components/atoms/toggle.d.ts.map +1 -0
  99. package/dist/components/atoms/toggle.js +6 -0
  100. package/dist/components/atoms/toggle.js.map +1 -0
  101. package/dist/components/demos/DestinationDemo.d.ts +48 -0
  102. package/dist/components/demos/DestinationDemo.d.ts.map +1 -0
  103. package/dist/components/demos/DestinationDemo.js +105 -0
  104. package/dist/components/demos/DestinationDemo.js.map +1 -0
  105. package/dist/components/demos/DestinationDemo.stories.d.ts +17 -0
  106. package/dist/components/demos/DestinationDemo.stories.d.ts.map +1 -0
  107. package/dist/components/demos/DestinationDemo.stories.js +53 -0
  108. package/dist/components/demos/DestinationDemo.stories.js.map +1 -0
  109. package/dist/components/demos/DestinationInitDemo.d.ts +34 -0
  110. package/dist/components/demos/DestinationInitDemo.d.ts.map +1 -0
  111. package/dist/components/demos/DestinationInitDemo.js +73 -0
  112. package/dist/components/demos/DestinationInitDemo.js.map +1 -0
  113. package/dist/components/demos/DestinationInitDemo.stories.d.ts +17 -0
  114. package/dist/components/demos/DestinationInitDemo.stories.d.ts.map +1 -0
  115. package/dist/components/demos/DestinationInitDemo.stories.js +39 -0
  116. package/dist/components/demos/DestinationInitDemo.stories.js.map +1 -0
  117. package/dist/components/demos/PromotionPlayground.d.ts +30 -0
  118. package/dist/components/demos/PromotionPlayground.d.ts.map +1 -0
  119. package/dist/components/demos/PromotionPlayground.js +366 -0
  120. package/dist/components/demos/PromotionPlayground.js.map +1 -0
  121. package/dist/components/demos/PromotionPlayground.stories.d.ts +27 -0
  122. package/dist/components/demos/PromotionPlayground.stories.d.ts.map +1 -0
  123. package/dist/components/demos/PromotionPlayground.stories.js +32 -0
  124. package/dist/components/demos/PromotionPlayground.stories.js.map +1 -0
  125. package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts +24 -0
  126. package/dist/components/molecules/architecture-flow/ArchitectureFlow.d.ts.map +1 -0
  127. package/dist/components/molecules/architecture-flow/ArchitectureFlow.js +10 -0
  128. package/dist/components/molecules/architecture-flow/ArchitectureFlow.js.map +1 -0
  129. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts +7 -0
  130. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.d.ts.map +1 -0
  131. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js +71 -0
  132. package/dist/components/molecules/architecture-flow/ArchitectureFlow.stories.js.map +1 -0
  133. package/dist/components/molecules/architecture-flow/index.d.ts +3 -0
  134. package/dist/components/molecules/architecture-flow/index.d.ts.map +1 -0
  135. package/dist/components/molecules/architecture-flow/index.js +2 -0
  136. package/dist/components/molecules/architecture-flow/index.js.map +1 -0
  137. package/dist/components/molecules/code-box.d.ts +75 -0
  138. package/dist/components/molecules/code-box.d.ts.map +1 -0
  139. package/dist/components/molecules/code-box.js +174 -0
  140. package/dist/components/molecules/code-box.js.map +1 -0
  141. package/dist/components/molecules/code-box.stories.d.ts +87 -0
  142. package/dist/components/molecules/code-box.stories.d.ts.map +1 -0
  143. package/dist/components/molecules/code-box.stories.js +300 -0
  144. package/dist/components/molecules/code-box.stories.js.map +1 -0
  145. package/dist/components/molecules/code-snippet.d.ts +58 -0
  146. package/dist/components/molecules/code-snippet.d.ts.map +1 -0
  147. package/dist/components/molecules/code-snippet.js +72 -0
  148. package/dist/components/molecules/code-snippet.js.map +1 -0
  149. package/dist/components/molecules/code-snippet.stories.d.ts +23 -0
  150. package/dist/components/molecules/code-snippet.stories.d.ts.map +1 -0
  151. package/dist/components/molecules/code-snippet.stories.js +87 -0
  152. package/dist/components/molecules/code-snippet.stories.js.map +1 -0
  153. package/dist/components/molecules/dropdown.d.ts +68 -0
  154. package/dist/components/molecules/dropdown.d.ts.map +1 -0
  155. package/dist/components/molecules/dropdown.js +47 -0
  156. package/dist/components/molecules/dropdown.js.map +1 -0
  157. package/dist/components/molecules/dropdown.stories.d.ts +7 -0
  158. package/dist/components/molecules/dropdown.stories.d.ts.map +1 -0
  159. package/dist/components/molecules/dropdown.stories.js +18 -0
  160. package/dist/components/molecules/dropdown.stories.js.map +1 -0
  161. package/dist/components/molecules/flow-map/FlowMap.d.ts +74 -0
  162. package/dist/components/molecules/flow-map/FlowMap.d.ts.map +1 -0
  163. package/dist/components/molecules/flow-map/FlowMap.js +1039 -0
  164. package/dist/components/molecules/flow-map/FlowMap.js.map +1 -0
  165. package/dist/components/molecules/flow-map/FlowMap.stories.d.ts +47 -0
  166. package/dist/components/molecules/flow-map/FlowMap.stories.d.ts.map +1 -0
  167. package/dist/components/molecules/flow-map/FlowMap.stories.js +355 -0
  168. package/dist/components/molecules/flow-map/FlowMap.stories.js.map +1 -0
  169. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts +29 -0
  170. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.d.ts.map +1 -0
  171. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js +117 -0
  172. package/dist/components/molecules/flow-map/FlowMap.transformers.stories.js.map +1 -0
  173. package/dist/components/molecules/flow-map/index.d.ts +3 -0
  174. package/dist/components/molecules/flow-map/index.d.ts.map +1 -0
  175. package/dist/components/molecules/flow-map/index.js +2 -0
  176. package/dist/components/molecules/flow-map/index.js.map +1 -0
  177. package/dist/components/molecules/preview.d.ts +23 -0
  178. package/dist/components/molecules/preview.d.ts.map +1 -0
  179. package/dist/components/molecules/preview.js +232 -0
  180. package/dist/components/molecules/preview.js.map +1 -0
  181. package/dist/components/molecules/preview.stories.d.ts +23 -0
  182. package/dist/components/molecules/preview.stories.d.ts.map +1 -0
  183. package/dist/components/molecules/preview.stories.js +186 -0
  184. package/dist/components/molecules/preview.stories.js.map +1 -0
  185. package/dist/components/molecules/property-table.d.ts +7 -0
  186. package/dist/components/molecules/property-table.d.ts.map +1 -0
  187. package/dist/components/molecules/property-table.js +88 -0
  188. package/dist/components/molecules/property-table.js.map +1 -0
  189. package/dist/components/molecules/property-table.stories.d.ts +24 -0
  190. package/dist/components/molecules/property-table.stories.d.ts.map +1 -0
  191. package/dist/components/molecules/property-table.stories.js +86 -0
  192. package/dist/components/molecules/property-table.stories.js.map +1 -0
  193. package/dist/components/organisms/browser-box.d.ts +31 -0
  194. package/dist/components/organisms/browser-box.d.ts.map +1 -0
  195. package/dist/components/organisms/browser-box.js +80 -0
  196. package/dist/components/organisms/browser-box.js.map +1 -0
  197. package/dist/components/organisms/browser-box.stories.d.ts +26 -0
  198. package/dist/components/organisms/browser-box.stories.d.ts.map +1 -0
  199. package/dist/components/organisms/browser-box.stories.js +102 -0
  200. package/dist/components/organisms/browser-box.stories.js.map +1 -0
  201. package/dist/components/organisms/collector-box.d.ts +24 -0
  202. package/dist/components/organisms/collector-box.d.ts.map +1 -0
  203. package/dist/components/organisms/collector-box.js +56 -0
  204. package/dist/components/organisms/collector-box.js.map +1 -0
  205. package/dist/components/organisms/collector-box.stories.d.ts +22 -0
  206. package/dist/components/organisms/collector-box.stories.d.ts.map +1 -0
  207. package/dist/components/organisms/collector-box.stories.js +59 -0
  208. package/dist/components/organisms/collector-box.stories.js.map +1 -0
  209. package/dist/components/organisms/live-code.d.ts +22 -0
  210. package/dist/components/organisms/live-code.d.ts.map +1 -0
  211. package/dist/components/organisms/live-code.js +50 -0
  212. package/dist/components/organisms/live-code.js.map +1 -0
  213. package/dist/components/organisms/live-code.stories.d.ts +24 -0
  214. package/dist/components/organisms/live-code.stories.d.ts.map +1 -0
  215. package/dist/components/organisms/live-code.stories.js +55 -0
  216. package/dist/components/organisms/live-code.stories.js.map +1 -0
  217. package/dist/components/ui/button.d.ts +4 -0
  218. package/dist/components/ui/button.d.ts.map +1 -0
  219. package/dist/components/ui/button.js +6 -0
  220. package/dist/components/ui/button.js.map +1 -0
  221. package/dist/components/ui/icon.d.ts +5 -0
  222. package/dist/components/ui/icon.d.ts.map +1 -0
  223. package/dist/components/ui/icon.js +5 -0
  224. package/dist/components/ui/icon.js.map +1 -0
  225. package/dist/contexts/GridHeightContext.d.ts +11 -0
  226. package/dist/contexts/GridHeightContext.d.ts.map +1 -0
  227. package/dist/contexts/GridHeightContext.js +14 -0
  228. package/dist/contexts/GridHeightContext.js.map +1 -0
  229. package/dist/helpers/capture.d.ts +83 -0
  230. package/dist/helpers/capture.d.ts.map +1 -0
  231. package/dist/helpers/capture.js +125 -0
  232. package/dist/helpers/capture.js.map +1 -0
  233. package/dist/helpers/destinations.d.ts +21 -0
  234. package/dist/helpers/destinations.d.ts.map +1 -0
  235. package/dist/helpers/destinations.js +46 -0
  236. package/dist/helpers/destinations.js.map +1 -0
  237. package/dist/hooks/useDropdown.d.ts +34 -0
  238. package/dist/hooks/useDropdown.d.ts.map +1 -0
  239. package/dist/hooks/useDropdown.js +66 -0
  240. package/dist/hooks/useDropdown.js.map +1 -0
  241. package/dist/hooks/useMonacoHeight.d.ts +31 -0
  242. package/dist/hooks/useMonacoHeight.d.ts.map +1 -0
  243. package/dist/hooks/useMonacoHeight.js +83 -0
  244. package/dist/hooks/useMonacoHeight.js.map +1 -0
  245. package/dist/hooks/useTreeState.d.ts +32 -0
  246. package/dist/hooks/useTreeState.d.ts.map +1 -0
  247. package/dist/hooks/useTreeState.js +94 -0
  248. package/dist/hooks/useTreeState.js.map +1 -0
  249. package/dist/index.d.ts +69 -1338
  250. package/dist/index.d.ts.map +1 -0
  251. package/dist/index.js +59 -1
  252. package/dist/index.js.map +1 -1
  253. package/dist/lib/utils.d.ts +7 -0
  254. package/dist/lib/utils.d.ts.map +1 -0
  255. package/dist/lib/utils.js +10 -0
  256. package/dist/lib/utils.js.map +1 -0
  257. package/dist/providers/MDXProvider.d.ts +40 -0
  258. package/dist/providers/MDXProvider.d.ts.map +1 -0
  259. package/dist/providers/MDXProvider.js +57 -0
  260. package/dist/providers/MDXProvider.js.map +1 -0
  261. package/dist/themes/index.d.ts +23 -0
  262. package/dist/themes/index.d.ts.map +1 -0
  263. package/dist/themes/index.js +29 -0
  264. package/dist/themes/index.js.map +1 -0
  265. package/dist/themes/lighthouse.d.ts +26 -0
  266. package/dist/themes/lighthouse.d.ts.map +1 -0
  267. package/dist/themes/lighthouse.js +230 -0
  268. package/dist/themes/lighthouse.js.map +1 -0
  269. package/dist/themes/palenight.d.ts +31 -0
  270. package/dist/themes/palenight.d.ts.map +1 -0
  271. package/dist/themes/palenight.js +236 -0
  272. package/dist/themes/palenight.js.map +1 -0
  273. package/dist/themes/types.d.ts +103 -0
  274. package/dist/themes/types.d.ts.map +1 -0
  275. package/dist/themes/types.js +8 -0
  276. package/dist/themes/types.js.map +1 -0
  277. package/dist/types/intellisense.d.ts +33 -0
  278. package/dist/types/intellisense.d.ts.map +1 -0
  279. package/dist/types/intellisense.js +2 -0
  280. package/dist/types/intellisense.js.map +1 -0
  281. package/dist/utils/code-normalizer.d.ts +11 -0
  282. package/dist/utils/code-normalizer.d.ts.map +1 -0
  283. package/dist/utils/code-normalizer.js +21 -0
  284. package/dist/utils/code-normalizer.js.map +1 -0
  285. package/dist/utils/contract-path-walker.d.ts +27 -0
  286. package/dist/utils/contract-path-walker.d.ts.map +1 -0
  287. package/dist/utils/contract-path-walker.js +145 -0
  288. package/dist/utils/contract-path-walker.js.map +1 -0
  289. package/dist/utils/format-code.d.ts +9 -0
  290. package/dist/utils/format-code.d.ts.map +1 -0
  291. package/dist/utils/format-code.js +77 -0
  292. package/dist/utils/format-code.js.map +1 -0
  293. package/dist/utils/mapping-context-detector.d.ts +17 -0
  294. package/dist/utils/mapping-context-detector.d.ts.map +1 -0
  295. package/dist/utils/mapping-context-detector.js +22 -0
  296. package/dist/utils/mapping-context-detector.js.map +1 -0
  297. package/dist/utils/monaco-context-types.d.ts +39 -0
  298. package/dist/utils/monaco-context-types.d.ts.map +1 -0
  299. package/dist/utils/monaco-context-types.js +426 -0
  300. package/dist/utils/monaco-context-types.js.map +1 -0
  301. package/dist/utils/monaco-decorators.d.ts +17 -0
  302. package/dist/utils/monaco-decorators.d.ts.map +1 -0
  303. package/dist/utils/monaco-decorators.js +81 -0
  304. package/dist/utils/monaco-decorators.js.map +1 -0
  305. package/dist/utils/monaco-formatters.d.ts +16 -0
  306. package/dist/utils/monaco-formatters.d.ts.map +1 -0
  307. package/dist/utils/monaco-formatters.js +139 -0
  308. package/dist/utils/monaco-formatters.js.map +1 -0
  309. package/dist/utils/monaco-intellisense-flow-extractor.d.ts +13 -0
  310. package/dist/utils/monaco-intellisense-flow-extractor.d.ts.map +1 -0
  311. package/dist/utils/monaco-intellisense-flow-extractor.js +168 -0
  312. package/dist/utils/monaco-intellisense-flow-extractor.js.map +1 -0
  313. package/dist/utils/monaco-json-path.d.ts +12 -0
  314. package/dist/utils/monaco-json-path.d.ts.map +1 -0
  315. package/dist/utils/monaco-json-path.js +68 -0
  316. package/dist/utils/monaco-json-path.js.map +1 -0
  317. package/dist/utils/monaco-json-schema.d.ts +45 -0
  318. package/dist/utils/monaco-json-schema.d.ts.map +1 -0
  319. package/dist/utils/monaco-json-schema.js +90 -0
  320. package/dist/utils/monaco-json-schema.js.map +1 -0
  321. package/dist/utils/monaco-schema-contract.d.ts +8 -0
  322. package/dist/utils/monaco-schema-contract.d.ts.map +1 -0
  323. package/dist/utils/monaco-schema-contract.js +73 -0
  324. package/dist/utils/monaco-schema-contract.js.map +1 -0
  325. package/dist/utils/monaco-schema-enrichment.d.ts +26 -0
  326. package/dist/utils/monaco-schema-enrichment.d.ts.map +1 -0
  327. package/dist/utils/monaco-schema-enrichment.js +31 -0
  328. package/dist/utils/monaco-schema-enrichment.js.map +1 -0
  329. package/dist/utils/monaco-schema-flow-config.d.ts +10 -0
  330. package/dist/utils/monaco-schema-flow-config.d.ts.map +1 -0
  331. package/dist/utils/monaco-schema-flow-config.js +201 -0
  332. package/dist/utils/monaco-schema-flow-config.js.map +1 -0
  333. package/dist/utils/monaco-schema-variables.d.ts +4 -0
  334. package/dist/utils/monaco-schema-variables.d.ts.map +1 -0
  335. package/dist/utils/monaco-schema-variables.js +26 -0
  336. package/dist/utils/monaco-schema-variables.js.map +1 -0
  337. package/dist/utils/monaco-types.d.ts +174 -0
  338. package/dist/utils/monaco-types.d.ts.map +1 -0
  339. package/dist/utils/monaco-types.js +378 -0
  340. package/dist/utils/monaco-types.js.map +1 -0
  341. package/dist/utils/monaco-walkeros-completions.d.ts +23 -0
  342. package/dist/utils/monaco-walkeros-completions.d.ts.map +1 -0
  343. package/dist/utils/monaco-walkeros-completions.js +258 -0
  344. package/dist/utils/monaco-walkeros-completions.js.map +1 -0
  345. package/dist/utils/monaco-walkeros-decorations.d.ts +29 -0
  346. package/dist/utils/monaco-walkeros-decorations.d.ts.map +1 -0
  347. package/dist/utils/monaco-walkeros-decorations.js +87 -0
  348. package/dist/utils/monaco-walkeros-decorations.js.map +1 -0
  349. package/dist/utils/monaco-walkeros-markers.d.ts +13 -0
  350. package/dist/utils/monaco-walkeros-markers.d.ts.map +1 -0
  351. package/dist/utils/monaco-walkeros-markers.js +69 -0
  352. package/dist/utils/monaco-walkeros-markers.js.map +1 -0
  353. package/dist/utils/monaco-walkeros-providers.d.ts +19 -0
  354. package/dist/utils/monaco-walkeros-providers.d.ts.map +1 -0
  355. package/dist/utils/monaco-walkeros-providers.js +284 -0
  356. package/dist/utils/monaco-walkeros-providers.js.map +1 -0
  357. package/dist/utils/path-analyzer.d.ts +88 -0
  358. package/dist/utils/path-analyzer.d.ts.map +1 -0
  359. package/dist/utils/path-analyzer.js +215 -0
  360. package/dist/utils/path-analyzer.js.map +1 -0
  361. package/package.json +6 -6
@@ -0,0 +1,236 @@
1
+ /**
2
+ * Palenight Theme for Monaco Editor
3
+ *
4
+ * Dark theme for walkerOS Explorer matching Prism's palenight theme.
5
+ * Aligned with website documentation syntax highlighting for consistency.
6
+ *
7
+ * Token Color Mappings (Matching Prism Palenight):
8
+ * - comment: #697098 - gray, italic
9
+ * - string/inserted: #c3e88d - green
10
+ * - number: #f78c6c - orange
11
+ * - builtin/char/constant/function: #82aaff - blue
12
+ * - punctuation/delimiter: #c792ea - purple
13
+ * - variable: #bfc7d5 - light gray
14
+ * - class-name: #ffcb6b - yellow/gold
15
+ * - attr-name: #c3e88d - green (matching string color)
16
+ * - tag/deleted: #ff5572 - red/pink
17
+ * - operator: #89ddff - cyan
18
+ * - boolean: #ff5874 - red
19
+ * - keyword: #c084fc - bright purple, italic
20
+ * - doctype: #c084fc - purple, italic
21
+ * - namespace: #b2ccd6 - blue-gray
22
+ * - url: #dddddd - white
23
+ */
24
+ export const palenightTheme = {
25
+ base: 'vs-dark',
26
+ inherit: true,
27
+ rules: [
28
+ // Comments
29
+ { token: 'comment', foreground: '697098', fontStyle: 'italic' },
30
+ { token: 'comment.block', foreground: '697098', fontStyle: 'italic' },
31
+ { token: 'comment.line', foreground: '697098', fontStyle: 'italic' },
32
+ // Strings - green matching Prism palenight
33
+ { token: 'string', foreground: 'c3e88d' },
34
+ { token: 'string.quoted', foreground: 'c3e88d' },
35
+ { token: 'string.template', foreground: 'c3e88d' },
36
+ { token: 'string.regexp', foreground: '89ddff' },
37
+ // Language-specific strings (Monaco uses these exact token names)
38
+ { token: 'string.value.json', foreground: 'c3e88d' },
39
+ { token: 'string.json', foreground: 'c3e88d' },
40
+ { token: 'string.html', foreground: 'c3e88d' },
41
+ { token: 'string.css', foreground: 'c3e88d' },
42
+ { token: 'string.js', foreground: 'c3e88d' },
43
+ { token: 'string.ts', foreground: 'c3e88d' },
44
+ // Numbers
45
+ { token: 'number', foreground: 'f78c6c' },
46
+ { token: 'number.hex', foreground: 'f78c6c' },
47
+ { token: 'number.binary', foreground: 'f78c6c' },
48
+ { token: 'number.octal', foreground: 'f78c6c' },
49
+ { token: 'number.float', foreground: 'f78c6c' },
50
+ // Keywords - brighter purple/magenta
51
+ { token: 'keyword', foreground: 'c084fc', fontStyle: 'italic' },
52
+ { token: 'keyword.control', foreground: 'c084fc', fontStyle: 'italic' },
53
+ { token: 'keyword.operator', foreground: '89ddff' },
54
+ { token: 'keyword.other', foreground: 'c084fc' },
55
+ // Operators - cyan matching Prism palenight
56
+ { token: 'operator', foreground: '89ddff' },
57
+ { token: 'operators', foreground: '89ddff' },
58
+ // Functions
59
+ { token: 'function', foreground: '82aaff' },
60
+ { token: 'identifier.function', foreground: '82aaff' },
61
+ { token: 'support.function', foreground: '82aaff' },
62
+ { token: 'entity.name.function', foreground: '82aaff' },
63
+ // Types & Classes
64
+ { token: 'type', foreground: 'ffcb6b' },
65
+ { token: 'type.identifier', foreground: 'ffcb6b' },
66
+ { token: 'entity.name.type', foreground: 'ffcb6b' },
67
+ { token: 'entity.name.class', foreground: 'ffcb6b' },
68
+ { token: 'support.type', foreground: 'ffcb6b' },
69
+ { token: 'support.class', foreground: 'ffcb6b' },
70
+ // Variables
71
+ { token: 'variable', foreground: 'bfc7d5' },
72
+ { token: 'variable.name', foreground: 'bfc7d5' },
73
+ { token: 'variable.parameter', foreground: 'bfc7d5' },
74
+ // Constants & Built-ins
75
+ { token: 'constant', foreground: '82aaff' },
76
+ { token: 'constant.language', foreground: 'ff5874' },
77
+ { token: 'constant.numeric', foreground: 'f78c6c' },
78
+ { token: 'constant.character', foreground: '82aaff' },
79
+ { token: 'support.constant', foreground: '82aaff' },
80
+ // Booleans
81
+ { token: 'constant.language.boolean', foreground: 'ff5874' },
82
+ { token: 'keyword.constant.boolean', foreground: 'ff5874' },
83
+ // Delimiters & Punctuation - purple matching Prism palenight
84
+ { token: 'delimiter', foreground: 'c792ea' },
85
+ { token: 'delimiter.bracket', foreground: 'c792ea' },
86
+ { token: 'delimiter.parenthesis', foreground: 'c792ea' },
87
+ { token: 'delimiter.square', foreground: 'c792ea' },
88
+ { token: 'punctuation', foreground: 'c792ea' },
89
+ // Tags (HTML/XML/JSX)
90
+ { token: 'tag', foreground: 'ff5572' },
91
+ { token: 'meta.tag', foreground: 'ff5572' },
92
+ { token: 'entity.name.tag', foreground: 'ff5572' },
93
+ // Tag Attributes (using string color for consistency with how Prism treats attributes)
94
+ { token: 'attribute.name', foreground: 'c3e88d' },
95
+ { token: 'entity.other.attribute-name', foreground: 'c3e88d' },
96
+ // Namespaces
97
+ { token: 'namespace', foreground: 'b2ccd6' },
98
+ { token: 'entity.name.namespace', foreground: 'b2ccd6' },
99
+ // URLs
100
+ { token: 'markup.underline.link', foreground: 'dddddd' },
101
+ // Doctype
102
+ {
103
+ token: 'meta.tag.sgml.doctype',
104
+ foreground: 'c084fc',
105
+ fontStyle: 'italic',
106
+ },
107
+ // Object Keys - Unified light gray for all property names
108
+ // Covers JSON, TypeScript, JavaScript object literals
109
+ { token: 'support.type.property-name', foreground: 'bfc7d5' },
110
+ { token: 'support.type.property-name.json', foreground: 'bfc7d5' },
111
+ { token: 'string.key.json', foreground: 'bfc7d5' },
112
+ { token: 'meta.object-literal.key', foreground: 'bfc7d5' },
113
+ { token: 'variable.other.property', foreground: 'bfc7d5' },
114
+ { token: 'identifier', foreground: 'bfc7d5' },
115
+ { token: 'identifier.ts', foreground: 'bfc7d5' },
116
+ { token: 'identifier.js', foreground: 'bfc7d5' },
117
+ // Markdown
118
+ { token: 'markup.bold', fontStyle: 'bold' },
119
+ { token: 'markup.italic', fontStyle: 'italic' },
120
+ { token: 'markup.heading', foreground: 'c084fc', fontStyle: 'bold' },
121
+ // Language-Specific: JavaScript/TypeScript
122
+ { token: 'variable.parameter.ts', foreground: 'bfc7d5' },
123
+ { token: 'variable.parameter.js', foreground: 'bfc7d5' },
124
+ { token: 'support.type.primitive.ts', foreground: 'ffcb6b' },
125
+ { token: 'support.type.primitive.js', foreground: 'ffcb6b' },
126
+ { token: 'entity.name.type.ts', foreground: 'ffcb6b' },
127
+ { token: 'entity.name.type.js', foreground: 'ffcb6b' },
128
+ { token: 'meta.type.annotation.ts', foreground: 'ffcb6b' },
129
+ { token: 'keyword.operator.type.ts', foreground: '89ddff' },
130
+ // Language-Specific: HTML
131
+ { token: 'entity.name.tag.html', foreground: 'bfc7d5' },
132
+ { token: 'tag.html', foreground: 'bfc7d5' },
133
+ { token: 'entity.other.attribute-name.html', foreground: 'bfc7d5' },
134
+ { token: 'attribute.name.html', foreground: 'bfc7d5' },
135
+ { token: 'attribute.value.html', foreground: 'c3e88d' },
136
+ { token: 'delimiter.html', foreground: 'c792ea' },
137
+ { token: 'comment.html', foreground: '697098', fontStyle: 'italic' },
138
+ { token: 'meta.tag.html', foreground: 'c792ea' },
139
+ { token: 'punctuation.definition.tag.html', foreground: 'c792ea' },
140
+ // Language-Specific: CSS
141
+ { token: 'entity.name.tag.css', foreground: 'ff5572' },
142
+ { token: 'entity.other.attribute-name.class.css', foreground: 'ffcb6b' },
143
+ { token: 'entity.other.attribute-name.id.css', foreground: '82aaff' },
144
+ { token: 'support.type.property-name.css', foreground: 'c084fc' },
145
+ { token: 'support.constant.property-value.css', foreground: 'f78c6c' },
146
+ { token: 'keyword.other.unit.css', foreground: 'f78c6c' },
147
+ // Errors & Warnings
148
+ { token: 'invalid', foreground: 'ff5572' },
149
+ { token: 'invalid.illegal', foreground: 'ff5572' },
150
+ { token: 'invalid.deprecated', foreground: 'f78c6c' },
151
+ ],
152
+ colors: {
153
+ // Editor Background - transparent, let box handle background
154
+ // Falls back to CSS var(--bg-input) in _code.scss
155
+ 'editor.background': '#00000000', // Transparent
156
+ 'editor.foreground': '#bfc7d5',
157
+ // Editor Lines - transparent to inherit box background
158
+ 'editor.lineHighlightBackground': '#00000000', // Transparent
159
+ 'editorLineNumber.foreground': '#676E95',
160
+ 'editorLineNumber.activeForeground': '#c084fc',
161
+ // Editor Cursor & Selection
162
+ 'editorCursor.foreground': '#c084fc', // Purple cursor for dark theme
163
+ 'editor.selectionBackground': '#717CB450', // Visible selection
164
+ 'editor.inactiveSelectionBackground': '#717CB430',
165
+ 'editor.selectionHighlightBackground': '#717CB420',
166
+ // Editor Gutter - transparent to inherit box background
167
+ 'editorGutter.background': '#00000000', // Transparent
168
+ 'editorGutter.modifiedBackground': '#82aaff',
169
+ 'editorGutter.addedBackground': '#c3e88d',
170
+ 'editorGutter.deletedBackground': '#ff5572',
171
+ // Editor Widgets
172
+ 'editorWidget.background': '#1e1e2e',
173
+ 'editorWidget.border': '#676E95',
174
+ 'editorSuggestWidget.background': '#1e1e2e',
175
+ 'editorSuggestWidget.border': '#676E95',
176
+ 'editorSuggestWidget.selectedBackground': '#717CB440',
177
+ // Sticky Scroll - match box background with subtle border
178
+ 'editorStickyScroll.background': '#292d3e',
179
+ 'editorStickyScroll.border': '#676E9540',
180
+ 'editorStickyScrollHover.background': '#292d3e',
181
+ 'editorStickyScroll.shadow': '#00000000',
182
+ 'editorStickyScrollGutter.background': '#292d3e',
183
+ // Hover Widgets - Tooltips and hover information
184
+ 'editorHoverWidget.background': '#1e1e2e',
185
+ 'editorHoverWidget.border': '#676E95',
186
+ 'editorHoverWidget.statusBarBackground': '#676E95',
187
+ // Inline Hints - Type hints, parameter hints, inline suggestions
188
+ 'editorInlineHint.background': '#292d3e',
189
+ 'editorInlineHint.foreground': '#676E95',
190
+ // Code Lens - Reference counts, test indicators
191
+ 'editorCodeLens.foreground': '#697098',
192
+ // Ghost Text - Autocomplete suggestions shown inline
193
+ 'editorGhostText.foreground': '#676E9540',
194
+ // Editor Whitespace & Indentation
195
+ 'editorWhitespace.foreground': '#676E9540',
196
+ 'editorIndentGuide.background': '#676E9520',
197
+ 'editorIndentGuide.activeBackground': '#676E95',
198
+ // Scrollbar
199
+ 'scrollbar.shadow': '#00000000',
200
+ 'scrollbarSlider.background': '#676E9530',
201
+ 'scrollbarSlider.hoverBackground': '#676E9550',
202
+ 'scrollbarSlider.activeBackground': '#676E9570',
203
+ // Bracket Matching
204
+ 'editorBracketMatch.background': '#676E9540',
205
+ 'editorBracketMatch.border': '#676E95',
206
+ // Find/Replace
207
+ 'editor.findMatchBackground': '#717CB440',
208
+ 'editor.findMatchHighlightBackground': '#676E9530',
209
+ 'editor.findRangeHighlightBackground': '#676E9520',
210
+ // Minimap
211
+ 'minimap.background': '#292d3e',
212
+ 'minimap.selectionHighlight': '#717CB440',
213
+ 'minimap.findMatchHighlight': '#717CB440',
214
+ // Overview Ruler
215
+ 'editorOverviewRuler.border': '#676E9520',
216
+ 'editorOverviewRuler.modifiedForeground': '#82aaff',
217
+ 'editorOverviewRuler.addedForeground': '#c3e88d',
218
+ 'editorOverviewRuler.deletedForeground': '#ff5572',
219
+ // Peek View
220
+ 'peekView.border': '#676E95',
221
+ 'peekViewEditor.background': '#1e1e2e',
222
+ 'peekViewResult.background': '#1e1e2e',
223
+ 'peekViewTitle.background': '#1e1e2e',
224
+ // Diff Editor
225
+ 'diffEditor.insertedTextBackground': '#c3e88d20',
226
+ 'diffEditor.removedTextBackground': '#ff557220',
227
+ },
228
+ };
229
+ /**
230
+ * Register the palenight theme with Monaco Editor
231
+ * Call this function before creating any editor instances
232
+ */
233
+ export function registerPalenightTheme(monaco) {
234
+ monaco.editor.defineTheme('elbTheme-dark', palenightTheme);
235
+ }
236
+ //# sourceMappingURL=palenight.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palenight.js","sourceRoot":"","sources":["../../src/themes/palenight.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAIH,MAAM,CAAC,MAAM,cAAc,GAAgC;IACzD,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,IAAI;IACb,KAAK,EAAE;QACL,WAAW;QACX,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QAC/D,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QACrE,EAAE,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE;QAEpE,2CAA2C;QAC3C,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE;QACzC,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE;QAChD,EAAE,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,QAAQ,EAAE;QAClD,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE;QAEhD,kEAAkE;QAClE,EAAE,KAAK,EAAE,mBAAmB,EAAE,UAAU,EAAE,QAAQ,EAAE;QACpD,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC9C,EAAE,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC9C,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE;QAC7C,EAAE,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iB,EAAE,SAAS;QAC5B,2BAA2B,EAAE,SAAS;QACtC,2BAA2B,EAAE,SAAS;QACtC,0BAA0B,EAAE,SAAS;QAErC,cAAc;QACd,mCAAmC,EAAE,WAAW;QAChD,kCAAkC,EAAE,WAAW;KAChD;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,MAAsC;IAC3E,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC;AAC7D,CAAC"}
@@ -0,0 +1,103 @@
1
+ /**
2
+ * TypeScript type definitions for walkerOS Explorer themes
3
+ *
4
+ * These types provide type-safe access to theme properties and enable
5
+ * programmatic theme customization.
6
+ */
7
+ export interface ExplorerTheme {
8
+ mode: 'light' | 'dark';
9
+ colors: {
10
+ text: string;
11
+ textLabel: string;
12
+ textButton: string;
13
+ textButtonHover: string;
14
+ textButtonActive: string;
15
+ textMuted: string;
16
+ textToggle: string;
17
+ textInput: string;
18
+ textPlaceholder: string;
19
+ bgBox: string;
20
+ bgHeader: string;
21
+ bgFooter: string;
22
+ bgButtonHover: string;
23
+ bgButtonActive: string;
24
+ bgButtonGroup: string;
25
+ bgInput: string;
26
+ bgInputHover: string;
27
+ bgCodeInline: string;
28
+ bgDropdown: string;
29
+ bgDropdownOptionHover: string;
30
+ bgDropdownOptionHighlighted: string;
31
+ borderBox: string;
32
+ borderHeader: string;
33
+ borderFooter: string;
34
+ borderButtonGroup: string;
35
+ borderInput: string;
36
+ borderInputFocus: string;
37
+ buttonPrimary: string;
38
+ buttonPrimaryHover: string;
39
+ buttonPrimaryText: string;
40
+ buttonDanger: string;
41
+ buttonDangerHover: string;
42
+ buttonDangerText: string;
43
+ statusEnabled: string;
44
+ statusDisabled: string;
45
+ statusWarning: string;
46
+ highlightPrimary: string;
47
+ highlightGlobals: string;
48
+ highlightContext: string;
49
+ highlightEntity: string;
50
+ highlightProperty: string;
51
+ highlightAction: string;
52
+ highlightBackground: string;
53
+ highlightText: string;
54
+ highlightHover: string;
55
+ highlightSeparator: string;
56
+ };
57
+ typography: {
58
+ fontFamily: string;
59
+ fontMono: string;
60
+ fontSize: {
61
+ base: string;
62
+ label: string;
63
+ toggle: string;
64
+ highlightButton: string;
65
+ };
66
+ fontWeight: {
67
+ normal: number;
68
+ semibold: number;
69
+ };
70
+ lineHeight: {
71
+ base: number;
72
+ };
73
+ };
74
+ spacing: {
75
+ header: string;
76
+ footer: string;
77
+ button: string;
78
+ buttonGroup: string;
79
+ gridGap: string;
80
+ };
81
+ radius: {
82
+ box: string;
83
+ button: string;
84
+ buttonGroup: string;
85
+ highlightButton: string;
86
+ };
87
+ shadows: {
88
+ buttonActive: string;
89
+ dropdown: string;
90
+ };
91
+ grid: {
92
+ minBoxWidth: string;
93
+ rowMinHeight: string;
94
+ rowMaxHeight: string;
95
+ boxMaxHeightMobile: string;
96
+ };
97
+ monaco: {
98
+ theme: string;
99
+ fontSize: string;
100
+ lineHeight: string;
101
+ };
102
+ }
103
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/themes/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IAEvB,MAAM,EAAE;QAEN,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,eAAe,EAAE,MAAM,CAAC;QAGxB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,EAAE,MAAM,CAAC;QACtB,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ACf,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,UAAU,EAAE;YACV,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,UAAU,EAAE;YACV,IAAI,EAAE,MAAM,CAAC;SACd,CAAC;KACH,CAAC;IAEF,OAAO,EAAE;QACP,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,EAAE,MAAM,CAAC;QACpB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IAEF,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF,IAAI,EAAE;QACJ,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,kBAAkB,EAAE,MAAM,CAAC;KAC5B,CAAC;IAEF,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * TypeScript type definitions for walkerOS Explorer themes
3
+ *
4
+ * These types provide type-safe access to theme properties and enable
5
+ * programmatic theme customization.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/themes/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,33 @@
1
+ export interface PackageInfo {
2
+ package: string;
3
+ shortName: string;
4
+ type: 'source' | 'destination' | 'transformer';
5
+ platform: 'web' | 'server';
6
+ description?: string;
7
+ }
8
+ export interface IntelliSenseContext {
9
+ /** Variable names and values from the flow's `variables` section */
10
+ variables?: Record<string, string | number | boolean>;
11
+ /** Definition names from the flow's `definitions` section */
12
+ definitions?: Record<string, unknown>;
13
+ /** Secret names available in the project (values are NOT included) */
14
+ secrets?: string[];
15
+ /** Step names from the current flow config, by type */
16
+ stepNames?: {
17
+ sources?: string[];
18
+ destinations?: string[];
19
+ transformers?: string[];
20
+ };
21
+ /** Contract entities and their actions */
22
+ contract?: Array<{
23
+ entity: string;
24
+ actions: string[];
25
+ }>;
26
+ /** Raw contract object for $contract completions and mapping hints */
27
+ contractRaw?: Record<string, unknown>;
28
+ /** Available packages for autocomplete */
29
+ packages?: PackageInfo[];
30
+ /** Current platform context (web or server) */
31
+ platform?: 'web' | 'server';
32
+ }
33
+ //# sourceMappingURL=intellisense.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intellisense.d.ts","sourceRoot":"","sources":["../../src/types/intellisense.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,GAAG,aAAa,GAAG,aAAa,CAAC;IAC/C,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAEtD,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,uDAAuD;IACvD,SAAS,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;QACxB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IAEF,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC,CAAC;IAEH,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEtC,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IAEzB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC7B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=intellisense.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intellisense.js","sourceRoot":"","sources":["../../src/types/intellisense.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Normalize code for comparison
3
+ *
4
+ * Removes comments, normalizes whitespace, and trims
5
+ * to detect if user actually changed the code logic.
6
+ *
7
+ * @param code - The code string to normalize
8
+ * @returns Normalized code string
9
+ */
10
+ export declare function normalizeCode(code: string): string;
11
+ //# sourceMappingURL=code-normalizer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-normalizer.d.ts","sourceRoot":"","sources":["../../src/utils/code-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAYlD"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Normalize code for comparison
3
+ *
4
+ * Removes comments, normalizes whitespace, and trims
5
+ * to detect if user actually changed the code logic.
6
+ *
7
+ * @param code - The code string to normalize
8
+ * @returns Normalized code string
9
+ */
10
+ export function normalizeCode(code) {
11
+ return (code
12
+ // Remove single-line comments
13
+ .replace(/\/\/.*$/gm, '')
14
+ // Remove multi-line comments
15
+ .replace(/\/\*[\s\S]*?\*\//g, '')
16
+ // Normalize whitespace
17
+ .replace(/\s+/g, ' ')
18
+ // Trim
19
+ .trim());
20
+ }
21
+ //# sourceMappingURL=code-normalizer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-normalizer.js","sourceRoot":"","sources":["../../src/utils/code-normalizer.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACxC,OAAO,CACL,IAAI;QACF,8BAA8B;SAC7B,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;QACzB,6BAA6B;SAC5B,OAAO,CAAC,mBAAmB,EAAE,EAAE,CAAC;QACjC,uBAAuB;SACtB,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;QACrB,OAAO;SACN,IAAI,EAAE,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { Flow } from '@walkeros/core';
2
+ export interface PathCompletion {
3
+ key: string;
4
+ type?: string;
5
+ detail?: string;
6
+ }
7
+ /**
8
+ * Extract property names and types from a JSON Schema object.
9
+ */
10
+ export declare function getSchemaPropertyCompletions(schema: Record<string, unknown>): PathCompletion[];
11
+ /**
12
+ * Get available completions at a given dot-path into the resolved contract.
13
+ *
14
+ * Path examples:
15
+ * - [] → contract names ("default", "web")
16
+ * - ["web"] → top-level keys ("globals", "events", "tagging", ...)
17
+ * - ["web", "events"] → entity names ("page", "product")
18
+ * - ["web", "events", "page"] → action names ("view", "read")
19
+ * - ["web", "events", "page", "view"] → schema properties ("title", "url")
20
+ * - ["web", "globals"] → globals schema properties ("lang", "env")
21
+ */
22
+ export declare function getContractPathCompletions(raw: Flow.Contract, pathSegments: string[]): PathCompletion[];
23
+ /**
24
+ * Clear the resolution cache (useful for testing).
25
+ */
26
+ export declare function clearContractCache(): void;
27
+ //# sourceMappingURL=contract-path-walker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-path-walker.d.ts","sourceRoot":"","sources":["../../src/utils/contract-path-walker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,cAAc,EAAE,CAUlB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAClB,YAAY,EAAE,MAAM,EAAE,GACrB,cAAc,EAAE,CAwFlB;AAoBD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAGzC"}
@@ -0,0 +1,145 @@
1
+ import { resolveContracts } from '@walkeros/core';
2
+ // Cache resolved contracts to avoid re-resolving on every keystroke.
3
+ let cachedRawJson = '';
4
+ let cachedResolved = {};
5
+ function getResolved(raw) {
6
+ const json = JSON.stringify(raw);
7
+ if (json !== cachedRawJson) {
8
+ try {
9
+ cachedResolved = resolveContracts(raw);
10
+ cachedRawJson = json;
11
+ }
12
+ catch {
13
+ return {};
14
+ }
15
+ }
16
+ return cachedResolved;
17
+ }
18
+ /**
19
+ * Extract property names and types from a JSON Schema object.
20
+ */
21
+ export function getSchemaPropertyCompletions(schema) {
22
+ const props = schema.properties;
23
+ if (!props || typeof props !== 'object')
24
+ return [];
25
+ return Object.entries(props).map(([key, value]) => ({
26
+ key,
27
+ type: typeof value?.type === 'string' ? value.type : undefined,
28
+ }));
29
+ }
30
+ /**
31
+ * Get available completions at a given dot-path into the resolved contract.
32
+ *
33
+ * Path examples:
34
+ * - [] → contract names ("default", "web")
35
+ * - ["web"] → top-level keys ("globals", "events", "tagging", ...)
36
+ * - ["web", "events"] → entity names ("page", "product")
37
+ * - ["web", "events", "page"] → action names ("view", "read")
38
+ * - ["web", "events", "page", "view"] → schema properties ("title", "url")
39
+ * - ["web", "globals"] → globals schema properties ("lang", "env")
40
+ */
41
+ export function getContractPathCompletions(raw, pathSegments) {
42
+ if (!raw || Object.keys(raw).length === 0)
43
+ return [];
44
+ const resolved = getResolved(raw);
45
+ if (Object.keys(resolved).length === 0)
46
+ return [];
47
+ // Level 0: contract names
48
+ if (pathSegments.length === 0) {
49
+ return Object.keys(resolved).map((key) => ({
50
+ key,
51
+ detail: resolved[key].description || 'contract',
52
+ }));
53
+ }
54
+ const [contractName, ...rest] = pathSegments;
55
+ const entry = resolved[contractName];
56
+ if (!entry)
57
+ return [];
58
+ // Level 1: top-level keys of a contract entry
59
+ if (rest.length === 0) {
60
+ const keys = [];
61
+ if (entry.tagging !== undefined)
62
+ keys.push({ key: 'tagging', type: 'number' });
63
+ if (entry.description !== undefined)
64
+ keys.push({ key: 'description', type: 'string' });
65
+ for (const section of [
66
+ 'globals',
67
+ 'context',
68
+ 'custom',
69
+ 'user',
70
+ 'consent',
71
+ ]) {
72
+ if (entry[section])
73
+ keys.push({ key: section, detail: 'schema' });
74
+ }
75
+ if (entry.events)
76
+ keys.push({ key: 'events', detail: 'entity map' });
77
+ return keys;
78
+ }
79
+ // Level 2+: walk into the entry
80
+ const firstKey = rest[0];
81
+ // Section schemas (globals, context, custom, user, consent)
82
+ const sectionKeys = ['globals', 'context', 'custom', 'user', 'consent'];
83
+ if (sectionKeys.includes(firstKey)) {
84
+ const schema = entry[firstKey];
85
+ if (!schema || typeof schema !== 'object')
86
+ return [];
87
+ if (rest.length === 1) {
88
+ return getSchemaPropertyCompletions(schema);
89
+ }
90
+ return walkSchemaPath(schema, rest.slice(1));
91
+ }
92
+ // Events path
93
+ if (firstKey === 'events') {
94
+ if (!entry.events)
95
+ return [];
96
+ // ["events"] → entity names
97
+ if (rest.length === 1) {
98
+ return Object.keys(entry.events)
99
+ .filter((k) => k !== '*')
100
+ .map((key) => ({ key, detail: 'entity' }));
101
+ }
102
+ const entity = rest[1];
103
+ const actions = entry.events[entity];
104
+ if (!actions)
105
+ return [];
106
+ // ["events", "page"] → action names
107
+ if (rest.length === 2) {
108
+ return Object.keys(actions)
109
+ .filter((k) => k !== '*')
110
+ .map((key) => ({ key, detail: 'action' }));
111
+ }
112
+ const action = rest[2];
113
+ const schema = actions[action];
114
+ if (!schema || typeof schema !== 'object')
115
+ return [];
116
+ // ["events", "page", "view"] → schema properties
117
+ if (rest.length === 3) {
118
+ return getSchemaPropertyCompletions(schema);
119
+ }
120
+ // Deeper: walk into nested schema
121
+ return walkSchemaPath(schema, rest.slice(3));
122
+ }
123
+ return [];
124
+ }
125
+ /**
126
+ * Walk into nested JSON Schema properties by path segments.
127
+ */
128
+ function walkSchemaPath(schema, segments) {
129
+ let current = schema;
130
+ for (const seg of segments) {
131
+ const props = current.properties;
132
+ if (!props || !props[seg])
133
+ return [];
134
+ current = props[seg];
135
+ }
136
+ return getSchemaPropertyCompletions(current);
137
+ }
138
+ /**
139
+ * Clear the resolution cache (useful for testing).
140
+ */
141
+ export function clearContractCache() {
142
+ cachedRawJson = '';
143
+ cachedResolved = {};
144
+ }
145
+ //# sourceMappingURL=contract-path-walker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-path-walker.js","sourceRoot":"","sources":["../../src/utils/contract-path-walker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAQlD,qEAAqE;AACrE,IAAI,aAAa,GAAG,EAAE,CAAC;AACvB,IAAI,cAAc,GAAuC,EAAE,CAAC;AAE5D,SAAS,WAAW,CAAC,GAAkB;IACrC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,IAAI,KAAK,aAAa,EAAE,CAAC;QAC3B,IAAI,CAAC;YACH,cAAc,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAA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