@elastic/isomer-sdk 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/LICENSE.txt +93 -0
  2. package/NOTICE.txt +1861 -0
  3. package/README.md +58 -0
  4. package/THIRD_PARTY_LICENSES.md +957 -0
  5. package/dist/author/authored_fields.d.ts +103 -0
  6. package/dist/author/authored_fields.d.ts.map +1 -0
  7. package/dist/author/authored_fields.js +183 -0
  8. package/dist/author/authored_fields.js.map +1 -0
  9. package/dist/author/index.d.ts +5 -0
  10. package/dist/author/index.d.ts.map +1 -0
  11. package/dist/author/index.js +10 -0
  12. package/dist/author/index.js.map +1 -0
  13. package/dist/author/jsx.d.ts +21 -0
  14. package/dist/author/jsx.d.ts.map +1 -0
  15. package/dist/author/jsx.js +20 -0
  16. package/dist/author/jsx.js.map +1 -0
  17. package/dist/author/jsx_shim.d.ts +116 -0
  18. package/dist/author/jsx_shim.d.ts.map +1 -0
  19. package/dist/author/jsx_shim.js +353 -0
  20. package/dist/author/jsx_shim.js.map +1 -0
  21. package/dist/author/prompt.d.ts +58 -0
  22. package/dist/author/prompt.d.ts.map +1 -0
  23. package/dist/author/prompt.js +148 -0
  24. package/dist/author/prompt.js.map +1 -0
  25. package/dist/cjs/author/authored_fields.js +189 -0
  26. package/dist/cjs/author/authored_fields.js.map +1 -0
  27. package/dist/cjs/author/index.js +20 -0
  28. package/dist/cjs/author/index.js.map +1 -0
  29. package/dist/cjs/author/jsx.js +24 -0
  30. package/dist/cjs/author/jsx.js.map +1 -0
  31. package/dist/cjs/author/jsx_shim.js +359 -0
  32. package/dist/cjs/author/jsx_shim.js.map +1 -0
  33. package/dist/cjs/author/prompt.js +153 -0
  34. package/dist/cjs/author/prompt.js.map +1 -0
  35. package/dist/cjs/composition/action_event.js +9 -0
  36. package/dist/cjs/composition/action_event.js.map +1 -0
  37. package/dist/cjs/composition/body_node_base.js +105 -0
  38. package/dist/cjs/composition/body_node_base.js.map +1 -0
  39. package/dist/cjs/composition/composition.js +9 -0
  40. package/dist/cjs/composition/composition.js.map +1 -0
  41. package/dist/cjs/composition/error.js +72 -0
  42. package/dist/cjs/composition/error.js.map +1 -0
  43. package/dist/cjs/composition/index.js +31 -0
  44. package/dist/cjs/composition/index.js.map +1 -0
  45. package/dist/cjs/composition/map_nodes.js +85 -0
  46. package/dist/cjs/composition/map_nodes.js.map +1 -0
  47. package/dist/cjs/composition/named_color.js +20 -0
  48. package/dist/cjs/composition/named_color.js.map +1 -0
  49. package/dist/cjs/composition/node.js +9 -0
  50. package/dist/cjs/composition/node.js.map +1 -0
  51. package/dist/cjs/composition/one_line.js +23 -0
  52. package/dist/cjs/composition/one_line.js.map +1 -0
  53. package/dist/cjs/composition/structured_value.js +21 -0
  54. package/dist/cjs/composition/structured_value.js.map +1 -0
  55. package/dist/cjs/composition/validation_error.js +40 -0
  56. package/dist/cjs/composition/validation_error.js.map +1 -0
  57. package/dist/cjs/define/frame.js +32 -0
  58. package/dist/cjs/define/frame.js.map +1 -0
  59. package/dist/cjs/define/index.js +25 -0
  60. package/dist/cjs/define/index.js.map +1 -0
  61. package/dist/cjs/define/markdown_content.js +12 -0
  62. package/dist/cjs/define/markdown_content.js.map +1 -0
  63. package/dist/cjs/define/primitive_module.js +107 -0
  64. package/dist/cjs/define/primitive_module.js.map +1 -0
  65. package/dist/cjs/define/slack_assets.js +9 -0
  66. package/dist/cjs/define/slack_assets.js.map +1 -0
  67. package/dist/cjs/define/slack_blocks.js +9 -0
  68. package/dist/cjs/define/slack_blocks.js.map +1 -0
  69. package/dist/cjs/define/zod_format.js +122 -0
  70. package/dist/cjs/define/zod_format.js.map +1 -0
  71. package/dist/cjs/define/zod_helpers.js +26 -0
  72. package/dist/cjs/define/zod_helpers.js.map +1 -0
  73. package/dist/cjs/entries/html.js +12 -0
  74. package/dist/cjs/entries/html.js.map +1 -0
  75. package/dist/cjs/entries/index.js +75 -0
  76. package/dist/cjs/entries/index.js.map +1 -0
  77. package/dist/cjs/entries/markdown.js +14 -0
  78. package/dist/cjs/entries/markdown.js.map +1 -0
  79. package/dist/cjs/entries/react.js +20 -0
  80. package/dist/cjs/entries/react.js.map +1 -0
  81. package/dist/cjs/entries/slack.js +26 -0
  82. package/dist/cjs/entries/slack.js.map +1 -0
  83. package/dist/cjs/entries/text.js +12 -0
  84. package/dist/cjs/entries/text.js.map +1 -0
  85. package/dist/cjs/pack/capabilities.js +34 -0
  86. package/dist/cjs/pack/capabilities.js.map +1 -0
  87. package/dist/cjs/pack/compose.js +56 -0
  88. package/dist/cjs/pack/compose.js.map +1 -0
  89. package/dist/cjs/pack/enhancements.js +65 -0
  90. package/dist/cjs/pack/enhancements.js.map +1 -0
  91. package/dist/cjs/pack/index.js +18 -0
  92. package/dist/cjs/pack/index.js.map +1 -0
  93. package/dist/cjs/pack/primitive_pack.js +85 -0
  94. package/dist/cjs/pack/primitive_pack.js.map +1 -0
  95. package/dist/cjs/package.json +3 -0
  96. package/dist/cjs/render/anchors.js +167 -0
  97. package/dist/cjs/render/anchors.js.map +1 -0
  98. package/dist/cjs/render/context_view.js +54 -0
  99. package/dist/cjs/render/context_view.js.map +1 -0
  100. package/dist/cjs/render/format_display_value.js +143 -0
  101. package/dist/cjs/render/format_display_value.js.map +1 -0
  102. package/dist/cjs/render/format_number.js +46 -0
  103. package/dist/cjs/render/format_number.js.map +1 -0
  104. package/dist/cjs/render/html/enhancements.js +30 -0
  105. package/dist/cjs/render/html/enhancements.js.map +1 -0
  106. package/dist/cjs/render/html/envelope.js +218 -0
  107. package/dist/cjs/render/html/envelope.js.map +1 -0
  108. package/dist/cjs/render/html/index.js +12 -0
  109. package/dist/cjs/render/html/index.js.map +1 -0
  110. package/dist/cjs/render/index.js +25 -0
  111. package/dist/cjs/render/index.js.map +1 -0
  112. package/dist/cjs/render/layout_check.js +133 -0
  113. package/dist/cjs/render/layout_check.js.map +1 -0
  114. package/dist/cjs/render/markdown/builder.js +189 -0
  115. package/dist/cjs/render/markdown/builder.js.map +1 -0
  116. package/dist/cjs/render/markdown/envelope.js +33 -0
  117. package/dist/cjs/render/markdown/envelope.js.map +1 -0
  118. package/dist/cjs/render/markdown/format.js +190 -0
  119. package/dist/cjs/render/markdown/format.js.map +1 -0
  120. package/dist/cjs/render/markdown/index.js +15 -0
  121. package/dist/cjs/render/markdown/index.js.map +1 -0
  122. package/dist/cjs/render/measure_dom.js +61 -0
  123. package/dist/cjs/render/measure_dom.js.map +1 -0
  124. package/dist/cjs/render/payload.js +13 -0
  125. package/dist/cjs/render/payload.js.map +1 -0
  126. package/dist/cjs/render/primitive_dispatch.js +187 -0
  127. package/dist/cjs/render/primitive_dispatch.js.map +1 -0
  128. package/dist/cjs/render/react/content.js +44 -0
  129. package/dist/cjs/render/react/content.js.map +1 -0
  130. package/dist/cjs/render/react/enhancements.js +32 -0
  131. package/dist/cjs/render/react/enhancements.js.map +1 -0
  132. package/dist/cjs/render/react/index.js +15 -0
  133. package/dist/cjs/render/react/index.js.map +1 -0
  134. package/dist/cjs/render/slack/assets.js +45 -0
  135. package/dist/cjs/render/slack/assets.js.map +1 -0
  136. package/dist/cjs/render/slack/blocks.js +80 -0
  137. package/dist/cjs/render/slack/blocks.js.map +1 -0
  138. package/dist/cjs/render/slack/envelope.js +551 -0
  139. package/dist/cjs/render/slack/envelope.js.map +1 -0
  140. package/dist/cjs/render/slack/format.js +825 -0
  141. package/dist/cjs/render/slack/format.js.map +1 -0
  142. package/dist/cjs/render/slack/index.js +31 -0
  143. package/dist/cjs/render/slack/index.js.map +1 -0
  144. package/dist/cjs/render/slack/markdown_content.js +358 -0
  145. package/dist/cjs/render/slack/markdown_content.js.map +1 -0
  146. package/dist/cjs/render/text/envelope.js +21 -0
  147. package/dist/cjs/render/text/envelope.js.map +1 -0
  148. package/dist/cjs/render/text/index.js +12 -0
  149. package/dist/cjs/render/text/index.js.map +1 -0
  150. package/dist/cjs/testing/conformance.js +296 -0
  151. package/dist/cjs/testing/conformance.js.map +1 -0
  152. package/dist/cjs/testing/index.js +16 -0
  153. package/dist/cjs/testing/index.js.map +1 -0
  154. package/dist/cjs/testing/registration.js +140 -0
  155. package/dist/cjs/testing/registration.js.map +1 -0
  156. package/dist/cjs/validate/authoring_schema.js +296 -0
  157. package/dist/cjs/validate/authoring_schema.js.map +1 -0
  158. package/dist/cjs/validate/composition_schema.js +135 -0
  159. package/dist/cjs/validate/composition_schema.js.map +1 -0
  160. package/dist/cjs/validate/index.js +52 -0
  161. package/dist/cjs/validate/index.js.map +1 -0
  162. package/dist/cjs/validate/input_budget.js +156 -0
  163. package/dist/cjs/validate/input_budget.js.map +1 -0
  164. package/dist/cjs/validate/json_schema.js +72 -0
  165. package/dist/cjs/validate/json_schema.js.map +1 -0
  166. package/dist/cjs/validate/node_issues.js +65 -0
  167. package/dist/cjs/validate/node_issues.js.map +1 -0
  168. package/dist/cjs/validate/url.js +116 -0
  169. package/dist/cjs/validate/url.js.map +1 -0
  170. package/dist/cjs/validate/validation.js +208 -0
  171. package/dist/cjs/validate/validation.js.map +1 -0
  172. package/dist/cjs/validate/value_schemas.js +53 -0
  173. package/dist/cjs/validate/value_schemas.js.map +1 -0
  174. package/dist/composition/action_event.d.ts +13 -0
  175. package/dist/composition/action_event.d.ts.map +1 -0
  176. package/dist/composition/action_event.js +8 -0
  177. package/dist/composition/action_event.js.map +1 -0
  178. package/dist/composition/body_node_base.d.ts +71 -0
  179. package/dist/composition/body_node_base.d.ts.map +1 -0
  180. package/dist/composition/body_node_base.js +97 -0
  181. package/dist/composition/body_node_base.js.map +1 -0
  182. package/dist/composition/composition.d.ts +71 -0
  183. package/dist/composition/composition.d.ts.map +1 -0
  184. package/dist/composition/composition.js +8 -0
  185. package/dist/composition/composition.js.map +1 -0
  186. package/dist/composition/error.d.ts +60 -0
  187. package/dist/composition/error.d.ts.map +1 -0
  188. package/dist/composition/error.js +68 -0
  189. package/dist/composition/error.js.map +1 -0
  190. package/dist/composition/index.d.ts +11 -0
  191. package/dist/composition/index.d.ts.map +1 -0
  192. package/dist/composition/index.js +14 -0
  193. package/dist/composition/index.js.map +1 -0
  194. package/dist/composition/map_nodes.d.ts +16 -0
  195. package/dist/composition/map_nodes.d.ts.map +1 -0
  196. package/dist/composition/map_nodes.js +81 -0
  197. package/dist/composition/map_nodes.js.map +1 -0
  198. package/dist/composition/named_color.d.ts +9 -0
  199. package/dist/composition/named_color.d.ts.map +1 -0
  200. package/dist/composition/named_color.js +17 -0
  201. package/dist/composition/named_color.js.map +1 -0
  202. package/dist/composition/node.d.ts +11 -0
  203. package/dist/composition/node.d.ts.map +1 -0
  204. package/dist/composition/node.js +8 -0
  205. package/dist/composition/node.js.map +1 -0
  206. package/dist/composition/one_line.d.ts +7 -0
  207. package/dist/composition/one_line.d.ts.map +1 -0
  208. package/dist/composition/one_line.js +17 -0
  209. package/dist/composition/one_line.js.map +1 -0
  210. package/dist/composition/structured_value.d.ts +27 -0
  211. package/dist/composition/structured_value.d.ts.map +1 -0
  212. package/dist/composition/structured_value.js +18 -0
  213. package/dist/composition/structured_value.js.map +1 -0
  214. package/dist/composition/validation_error.d.ts +33 -0
  215. package/dist/composition/validation_error.d.ts.map +1 -0
  216. package/dist/composition/validation_error.js +35 -0
  217. package/dist/composition/validation_error.js.map +1 -0
  218. package/dist/define/frame.d.ts +166 -0
  219. package/dist/define/frame.d.ts.map +1 -0
  220. package/dist/define/frame.js +28 -0
  221. package/dist/define/frame.js.map +1 -0
  222. package/dist/define/index.d.ts +8 -0
  223. package/dist/define/index.d.ts.map +1 -0
  224. package/dist/define/index.js +11 -0
  225. package/dist/define/index.js.map +1 -0
  226. package/dist/define/markdown_content.d.ts +15 -0
  227. package/dist/define/markdown_content.d.ts.map +1 -0
  228. package/dist/define/markdown_content.js +9 -0
  229. package/dist/define/markdown_content.js.map +1 -0
  230. package/dist/define/primitive_module.d.ts +421 -0
  231. package/dist/define/primitive_module.d.ts.map +1 -0
  232. package/dist/define/primitive_module.js +101 -0
  233. package/dist/define/primitive_module.js.map +1 -0
  234. package/dist/define/slack_assets.d.ts +28 -0
  235. package/dist/define/slack_assets.d.ts.map +1 -0
  236. package/dist/define/slack_assets.js +8 -0
  237. package/dist/define/slack_assets.js.map +1 -0
  238. package/dist/define/slack_blocks.d.ts +234 -0
  239. package/dist/define/slack_blocks.d.ts.map +1 -0
  240. package/dist/define/slack_blocks.js +8 -0
  241. package/dist/define/slack_blocks.js.map +1 -0
  242. package/dist/define/zod_format.d.ts +33 -0
  243. package/dist/define/zod_format.d.ts.map +1 -0
  244. package/dist/define/zod_format.js +114 -0
  245. package/dist/define/zod_format.js.map +1 -0
  246. package/dist/define/zod_helpers.d.ts +10 -0
  247. package/dist/define/zod_helpers.d.ts.map +1 -0
  248. package/dist/define/zod_helpers.js +22 -0
  249. package/dist/define/zod_helpers.js.map +1 -0
  250. package/dist/entries/html.d.ts +3 -0
  251. package/dist/entries/html.d.ts.map +1 -0
  252. package/dist/entries/html.js +8 -0
  253. package/dist/entries/html.js.map +1 -0
  254. package/dist/entries/index.d.ts +6 -0
  255. package/dist/entries/index.d.ts.map +1 -0
  256. package/dist/entries/index.js +12 -0
  257. package/dist/entries/index.js.map +1 -0
  258. package/dist/entries/markdown.d.ts +3 -0
  259. package/dist/entries/markdown.d.ts.map +1 -0
  260. package/dist/entries/markdown.js +8 -0
  261. package/dist/entries/markdown.js.map +1 -0
  262. package/dist/entries/react.d.ts +5 -0
  263. package/dist/entries/react.d.ts.map +1 -0
  264. package/dist/entries/react.js +11 -0
  265. package/dist/entries/react.js.map +1 -0
  266. package/dist/entries/slack.d.ts +2 -0
  267. package/dist/entries/slack.d.ts.map +1 -0
  268. package/dist/entries/slack.js +8 -0
  269. package/dist/entries/slack.js.map +1 -0
  270. package/dist/entries/text.d.ts +2 -0
  271. package/dist/entries/text.d.ts.map +1 -0
  272. package/dist/entries/text.js +8 -0
  273. package/dist/entries/text.js.map +1 -0
  274. package/dist/pack/capabilities.d.ts +27 -0
  275. package/dist/pack/capabilities.d.ts.map +1 -0
  276. package/dist/pack/capabilities.js +30 -0
  277. package/dist/pack/capabilities.js.map +1 -0
  278. package/dist/pack/compose.d.ts +21 -0
  279. package/dist/pack/compose.d.ts.map +1 -0
  280. package/dist/pack/compose.js +52 -0
  281. package/dist/pack/compose.js.map +1 -0
  282. package/dist/pack/enhancements.d.ts +65 -0
  283. package/dist/pack/enhancements.d.ts.map +1 -0
  284. package/dist/pack/enhancements.js +59 -0
  285. package/dist/pack/enhancements.js.map +1 -0
  286. package/dist/pack/index.d.ts +5 -0
  287. package/dist/pack/index.d.ts.map +1 -0
  288. package/dist/pack/index.js +11 -0
  289. package/dist/pack/index.js.map +1 -0
  290. package/dist/pack/primitive_pack.d.ts +155 -0
  291. package/dist/pack/primitive_pack.d.ts.map +1 -0
  292. package/dist/pack/primitive_pack.js +81 -0
  293. package/dist/pack/primitive_pack.js.map +1 -0
  294. package/dist/render/anchors.d.ts +82 -0
  295. package/dist/render/anchors.d.ts.map +1 -0
  296. package/dist/render/anchors.js +153 -0
  297. package/dist/render/anchors.js.map +1 -0
  298. package/dist/render/context_view.d.ts +10 -0
  299. package/dist/render/context_view.d.ts.map +1 -0
  300. package/dist/render/context_view.js +49 -0
  301. package/dist/render/context_view.js.map +1 -0
  302. package/dist/render/format_display_value.d.ts +20 -0
  303. package/dist/render/format_display_value.d.ts.map +1 -0
  304. package/dist/render/format_display_value.js +137 -0
  305. package/dist/render/format_display_value.js.map +1 -0
  306. package/dist/render/format_number.d.ts +9 -0
  307. package/dist/render/format_number.d.ts.map +1 -0
  308. package/dist/render/format_number.js +42 -0
  309. package/dist/render/format_number.js.map +1 -0
  310. package/dist/render/html/enhancements.d.ts +10 -0
  311. package/dist/render/html/enhancements.d.ts.map +1 -0
  312. package/dist/render/html/enhancements.js +25 -0
  313. package/dist/render/html/enhancements.js.map +1 -0
  314. package/dist/render/html/envelope.d.ts +182 -0
  315. package/dist/render/html/envelope.d.ts.map +1 -0
  316. package/dist/render/html/envelope.js +214 -0
  317. package/dist/render/html/envelope.js.map +1 -0
  318. package/dist/render/html/index.d.ts +3 -0
  319. package/dist/render/html/index.d.ts.map +1 -0
  320. package/dist/render/html/index.js +8 -0
  321. package/dist/render/html/index.js.map +1 -0
  322. package/dist/render/index.d.ts +6 -0
  323. package/dist/render/index.d.ts.map +1 -0
  324. package/dist/render/index.js +11 -0
  325. package/dist/render/index.js.map +1 -0
  326. package/dist/render/layout_check.d.ts +43 -0
  327. package/dist/render/layout_check.d.ts.map +1 -0
  328. package/dist/render/layout_check.js +129 -0
  329. package/dist/render/layout_check.js.map +1 -0
  330. package/dist/render/markdown/builder.d.ts +48 -0
  331. package/dist/render/markdown/builder.d.ts.map +1 -0
  332. package/dist/render/markdown/builder.js +183 -0
  333. package/dist/render/markdown/builder.js.map +1 -0
  334. package/dist/render/markdown/envelope.d.ts +20 -0
  335. package/dist/render/markdown/envelope.d.ts.map +1 -0
  336. package/dist/render/markdown/envelope.js +29 -0
  337. package/dist/render/markdown/envelope.js.map +1 -0
  338. package/dist/render/markdown/format.d.ts +3 -0
  339. package/dist/render/markdown/format.d.ts.map +1 -0
  340. package/dist/render/markdown/format.js +186 -0
  341. package/dist/render/markdown/format.js.map +1 -0
  342. package/dist/render/markdown/index.d.ts +3 -0
  343. package/dist/render/markdown/index.d.ts.map +1 -0
  344. package/dist/render/markdown/index.js +9 -0
  345. package/dist/render/markdown/index.js.map +1 -0
  346. package/dist/render/measure_dom.d.ts +10 -0
  347. package/dist/render/measure_dom.d.ts.map +1 -0
  348. package/dist/render/measure_dom.js +57 -0
  349. package/dist/render/measure_dom.js.map +1 -0
  350. package/dist/render/payload.d.ts +16 -0
  351. package/dist/render/payload.d.ts.map +1 -0
  352. package/dist/render/payload.js +9 -0
  353. package/dist/render/payload.js.map +1 -0
  354. package/dist/render/primitive_dispatch.d.ts +72 -0
  355. package/dist/render/primitive_dispatch.d.ts.map +1 -0
  356. package/dist/render/primitive_dispatch.js +183 -0
  357. package/dist/render/primitive_dispatch.js.map +1 -0
  358. package/dist/render/react/content.d.ts +40 -0
  359. package/dist/render/react/content.d.ts.map +1 -0
  360. package/dist/render/react/content.js +39 -0
  361. package/dist/render/react/content.js.map +1 -0
  362. package/dist/render/react/enhancements.d.ts +15 -0
  363. package/dist/render/react/enhancements.d.ts.map +1 -0
  364. package/dist/render/react/enhancements.js +28 -0
  365. package/dist/render/react/enhancements.js.map +1 -0
  366. package/dist/render/react/index.d.ts +3 -0
  367. package/dist/render/react/index.d.ts.map +1 -0
  368. package/dist/render/react/index.js +9 -0
  369. package/dist/render/react/index.js.map +1 -0
  370. package/dist/render/slack/assets.d.ts +16 -0
  371. package/dist/render/slack/assets.d.ts.map +1 -0
  372. package/dist/render/slack/assets.js +40 -0
  373. package/dist/render/slack/assets.js.map +1 -0
  374. package/dist/render/slack/blocks.d.ts +72 -0
  375. package/dist/render/slack/blocks.d.ts.map +1 -0
  376. package/dist/render/slack/blocks.js +77 -0
  377. package/dist/render/slack/blocks.js.map +1 -0
  378. package/dist/render/slack/envelope.d.ts +52 -0
  379. package/dist/render/slack/envelope.d.ts.map +1 -0
  380. package/dist/render/slack/envelope.js +547 -0
  381. package/dist/render/slack/envelope.js.map +1 -0
  382. package/dist/render/slack/format.d.ts +95 -0
  383. package/dist/render/slack/format.d.ts.map +1 -0
  384. package/dist/render/slack/format.js +807 -0
  385. package/dist/render/slack/format.js.map +1 -0
  386. package/dist/render/slack/index.d.ts +6 -0
  387. package/dist/render/slack/index.d.ts.map +1 -0
  388. package/dist/render/slack/index.js +12 -0
  389. package/dist/render/slack/index.js.map +1 -0
  390. package/dist/render/slack/markdown_content.d.ts +11 -0
  391. package/dist/render/slack/markdown_content.d.ts.map +1 -0
  392. package/dist/render/slack/markdown_content.js +354 -0
  393. package/dist/render/slack/markdown_content.js.map +1 -0
  394. package/dist/render/text/envelope.d.ts +15 -0
  395. package/dist/render/text/envelope.d.ts.map +1 -0
  396. package/dist/render/text/envelope.js +17 -0
  397. package/dist/render/text/envelope.js.map +1 -0
  398. package/dist/render/text/index.d.ts +2 -0
  399. package/dist/render/text/index.d.ts.map +1 -0
  400. package/dist/render/text/index.js +8 -0
  401. package/dist/render/text/index.js.map +1 -0
  402. package/dist/testing/conformance.d.ts +140 -0
  403. package/dist/testing/conformance.d.ts.map +1 -0
  404. package/dist/testing/conformance.js +287 -0
  405. package/dist/testing/conformance.js.map +1 -0
  406. package/dist/testing/index.d.ts +3 -0
  407. package/dist/testing/index.d.ts.map +1 -0
  408. package/dist/testing/index.js +9 -0
  409. package/dist/testing/index.js.map +1 -0
  410. package/dist/testing/registration.d.ts +32 -0
  411. package/dist/testing/registration.d.ts.map +1 -0
  412. package/dist/testing/registration.js +103 -0
  413. package/dist/testing/registration.js.map +1 -0
  414. package/dist/validate/authoring_schema.d.ts +27 -0
  415. package/dist/validate/authoring_schema.d.ts.map +1 -0
  416. package/dist/validate/authoring_schema.js +291 -0
  417. package/dist/validate/authoring_schema.js.map +1 -0
  418. package/dist/validate/composition_schema.d.ts +80 -0
  419. package/dist/validate/composition_schema.d.ts.map +1 -0
  420. package/dist/validate/composition_schema.js +127 -0
  421. package/dist/validate/composition_schema.js.map +1 -0
  422. package/dist/validate/index.d.ts +9 -0
  423. package/dist/validate/index.d.ts.map +1 -0
  424. package/dist/validate/index.js +15 -0
  425. package/dist/validate/index.js.map +1 -0
  426. package/dist/validate/input_budget.d.ts +35 -0
  427. package/dist/validate/input_budget.d.ts.map +1 -0
  428. package/dist/validate/input_budget.js +151 -0
  429. package/dist/validate/input_budget.js.map +1 -0
  430. package/dist/validate/json_schema.d.ts +32 -0
  431. package/dist/validate/json_schema.d.ts.map +1 -0
  432. package/dist/validate/json_schema.js +68 -0
  433. package/dist/validate/json_schema.js.map +1 -0
  434. package/dist/validate/node_issues.d.ts +12 -0
  435. package/dist/validate/node_issues.d.ts.map +1 -0
  436. package/dist/validate/node_issues.js +61 -0
  437. package/dist/validate/node_issues.js.map +1 -0
  438. package/dist/validate/url.d.ts +50 -0
  439. package/dist/validate/url.d.ts.map +1 -0
  440. package/dist/validate/url.js +107 -0
  441. package/dist/validate/url.js.map +1 -0
  442. package/dist/validate/validation.d.ts +105 -0
  443. package/dist/validate/validation.d.ts.map +1 -0
  444. package/dist/validate/validation.js +200 -0
  445. package/dist/validate/validation.js.map +1 -0
  446. package/dist/validate/value_schemas.d.ts +53 -0
  447. package/dist/validate/value_schemas.d.ts.map +1 -0
  448. package/dist/validate/value_schemas.js +50 -0
  449. package/dist/validate/value_schemas.js.map +1 -0
  450. package/package.json +118 -5
@@ -0,0 +1,234 @@
1
+ export interface SlackPlainTextObject {
2
+ type: 'plain_text';
3
+ text: string;
4
+ emoji?: boolean;
5
+ }
6
+ export interface SlackMrkdwnTextObject {
7
+ type: 'mrkdwn';
8
+ text: string;
9
+ /** When true, Slack skips auto-linking URLs, channels, and users. Defaults to false. */
10
+ verbatim?: boolean;
11
+ }
12
+ export type SlackTextObject = SlackPlainTextObject | SlackMrkdwnTextObject;
13
+ export type SlackHeaderLevel = 1 | 2 | 3 | 4;
14
+ export interface SlackHeaderBlock {
15
+ type: 'header';
16
+ block_id?: string;
17
+ text: SlackPlainTextObject;
18
+ /** H1–H4 sizing. Accepted on message, modal, and Home tab surfaces. */
19
+ level?: SlackHeaderLevel;
20
+ }
21
+ export interface SlackSectionBlock {
22
+ type: 'section';
23
+ block_id?: string;
24
+ text?: SlackTextObject;
25
+ fields?: SlackMrkdwnTextObject[];
26
+ accessory?: SlackSectionAccessory;
27
+ }
28
+ export interface SlackDividerBlock {
29
+ type: 'divider';
30
+ block_id?: string;
31
+ }
32
+ /**
33
+ * Inline image used inside `context` blocks and as a `section` accessory.
34
+ * Distinct from the block-level {@link SlackImageBlock}.
35
+ */
36
+ export interface SlackImageElement {
37
+ type: 'image';
38
+ image_url: string;
39
+ alt_text: string;
40
+ }
41
+ export interface SlackContextBlock {
42
+ type: 'context';
43
+ block_id?: string;
44
+ elements: Array<SlackTextObject | SlackImageElement>;
45
+ }
46
+ export interface SlackButtonElement {
47
+ type: 'button';
48
+ text: SlackPlainTextObject;
49
+ url?: string;
50
+ value?: string;
51
+ action_id?: string;
52
+ style?: 'primary' | 'danger';
53
+ }
54
+ /**
55
+ * Reference to a file already uploaded to Slack.
56
+ *
57
+ * `id` and `url` are Slack's published fields. `ref` is not: a render cannot
58
+ * upload, so it emits a placeholder the host swaps for Slack's file id once
59
+ * the upload lands. See `SlackAssetCollector`.
60
+ */
61
+ export interface SlackFileReference {
62
+ id?: string;
63
+ url?: string;
64
+ ref?: string;
65
+ }
66
+ /**
67
+ * Block-level image. `image_url` requires a publicly hosted URL; `slack_file`
68
+ * references a file uploaded to Slack first, which is the only VPN-safe path.
69
+ */
70
+ export interface SlackImageBlock {
71
+ type: 'image';
72
+ block_id?: string;
73
+ alt_text: string;
74
+ image_url?: string;
75
+ slack_file?: SlackFileReference;
76
+ title?: SlackPlainTextObject;
77
+ }
78
+ /** `video` block, matching Slack's JSON contract exactly. */
79
+ export interface SlackVideoBlock {
80
+ type: 'video';
81
+ block_id?: string;
82
+ title: SlackPlainTextObject;
83
+ title_url?: string;
84
+ video_url: string;
85
+ thumbnail_url: string;
86
+ alt_text: string;
87
+ description?: SlackPlainTextObject;
88
+ author_name?: string;
89
+ provider_name?: string;
90
+ provider_icon_url?: string;
91
+ }
92
+ export interface SlackRichTextStyle {
93
+ bold?: boolean;
94
+ italic?: boolean;
95
+ strike?: boolean;
96
+ code?: boolean;
97
+ }
98
+ export interface SlackRichTextText {
99
+ type: 'text';
100
+ text: string;
101
+ style?: SlackRichTextStyle;
102
+ }
103
+ export interface SlackRichTextLink {
104
+ type: 'link';
105
+ url: string;
106
+ text?: string;
107
+ style?: SlackRichTextStyle;
108
+ }
109
+ export type SlackTagColor = 'gray' | 'brown' | 'purple' | 'indigo' | 'blue' | 'green' | 'yellow' | 'orange' | 'red';
110
+ export interface SlackRichTextTag {
111
+ type: 'tag';
112
+ text: string;
113
+ color?: SlackTagColor;
114
+ style?: SlackRichTextStyle;
115
+ }
116
+ export type SlackRichTextInline = SlackRichTextText | SlackRichTextLink | SlackRichTextTag;
117
+ export interface SlackRichTextSection {
118
+ type: 'rich_text_section';
119
+ elements: SlackRichTextInline[];
120
+ }
121
+ export interface SlackRichTextList {
122
+ type: 'rich_text_list';
123
+ style: 'bullet' | 'ordered';
124
+ indent?: number;
125
+ /** Added to an ordered list's first number, which is otherwise 1. */
126
+ offset?: number;
127
+ border?: number;
128
+ elements: SlackRichTextSection[];
129
+ }
130
+ export interface SlackRichTextPreformatted {
131
+ type: 'rich_text_preformatted';
132
+ border?: number;
133
+ elements: SlackRichTextInline[];
134
+ }
135
+ export interface SlackRichTextQuote {
136
+ type: 'rich_text_quote';
137
+ border?: number;
138
+ elements: SlackRichTextInline[];
139
+ }
140
+ export type SlackRichTextBlockElement = SlackRichTextSection | SlackRichTextList | SlackRichTextPreformatted | SlackRichTextQuote;
141
+ export interface SlackRichTextBlock {
142
+ type: 'rich_text';
143
+ block_id?: string;
144
+ elements: SlackRichTextBlockElement[];
145
+ }
146
+ /** The option shape shared by every menu, select, checkbox, and radio element. */
147
+ export interface SlackOptionObject {
148
+ text: SlackTextObject;
149
+ value: string;
150
+ description?: SlackPlainTextObject;
151
+ /** Only honored inside an `overflow` element. */
152
+ url?: string;
153
+ }
154
+ export interface SlackOptionGroup {
155
+ label: SlackPlainTextObject;
156
+ options: SlackOptionObject[];
157
+ }
158
+ export interface SlackOverflowElement {
159
+ type: 'overflow';
160
+ action_id: string;
161
+ options: SlackOptionObject[];
162
+ }
163
+ export interface SlackStaticSelectElement {
164
+ type: 'static_select';
165
+ action_id: string;
166
+ placeholder?: SlackPlainTextObject;
167
+ options?: SlackOptionObject[];
168
+ option_groups?: SlackOptionGroup[];
169
+ initial_option?: SlackOptionObject;
170
+ }
171
+ export interface SlackMultiStaticSelectElement {
172
+ type: 'multi_static_select';
173
+ action_id: string;
174
+ placeholder?: SlackPlainTextObject;
175
+ options: SlackOptionObject[];
176
+ initial_options?: SlackOptionObject[];
177
+ max_selected_items?: number;
178
+ }
179
+ export interface SlackRadioButtonsElement {
180
+ type: 'radio_buttons';
181
+ action_id: string;
182
+ options: SlackOptionObject[];
183
+ initial_option?: SlackOptionObject;
184
+ }
185
+ export interface SlackCheckboxesElement {
186
+ type: 'checkboxes';
187
+ action_id: string;
188
+ options: SlackOptionObject[];
189
+ initial_options?: SlackOptionObject[];
190
+ }
191
+ /** Elements Slack permits inside an `actions` block. */
192
+ export type SlackActionElement = SlackButtonElement | SlackOverflowElement | SlackStaticSelectElement | SlackMultiStaticSelectElement | SlackRadioButtonsElement | SlackCheckboxesElement;
193
+ /** Elements Slack permits as a `section.accessory`. */
194
+ export type SlackSectionAccessory = SlackButtonElement | SlackImageElement | SlackOverflowElement | SlackStaticSelectElement | SlackMultiStaticSelectElement | SlackRadioButtonsElement | SlackCheckboxesElement;
195
+ export interface SlackActionsBlock {
196
+ type: 'actions';
197
+ block_id?: string;
198
+ elements: SlackActionElement[];
199
+ }
200
+ /** A plain table cell. Strings and numbers use this; see {@link SlackTableCell}. */
201
+ export interface SlackRawTextElement {
202
+ type: 'raw_text';
203
+ text: string;
204
+ }
205
+ /**
206
+ * One table cell. Badge and toned values need the `rich_text` form so a `tag`
207
+ * or bold run can sit inside the grid.
208
+ */
209
+ export type SlackTableCell = SlackRawTextElement | SlackRichTextBlock;
210
+ /**
211
+ * Per-column behavior, positional: entry N configures column N.
212
+ *
213
+ * Trailing columns without an entry keep Slack's defaults (left-aligned, no
214
+ * wrapping), and a `null` entry skips a column.
215
+ */
216
+ export interface SlackTableColumnSetting {
217
+ align?: 'left' | 'center' | 'right';
218
+ is_wrapped?: boolean;
219
+ }
220
+ /**
221
+ * Native `table` block, whose first row renders as the header.
222
+ *
223
+ * Cells, rows, and columns are capped by Slack; see `SLACK_LIMITS`.
224
+ * https://docs.slack.dev/reference/block-kit/blocks/table-block
225
+ */
226
+ export interface SlackTableBlock {
227
+ type: 'table';
228
+ block_id?: string;
229
+ rows: SlackTableCell[][];
230
+ column_settings?: Array<SlackTableColumnSetting | null>;
231
+ }
232
+ /** Every block this renderer emits, and what a `slack` renderer returns. */
233
+ export type SlackBlock = SlackHeaderBlock | SlackSectionBlock | SlackDividerBlock | SlackImageBlock | SlackVideoBlock | SlackContextBlock | SlackActionsBlock | SlackRichTextBlock | SlackTableBlock;
234
+ //# sourceMappingURL=slack_blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack_blocks.d.ts","sourceRoot":"","sources":["../../src/define/slack_blocks.ts"],"names":[],"mappings":"AAmBA,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,qBAAqB,CAAC;AAE3E,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,uEAAuE;IACvE,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAC;IACjC,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC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M,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG,kBAAkB,CAAC;AAEtE;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,cAAc,EAAE,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;CACzD;AAED,4EAA4E;AAC5E,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,eAAe,GACf,iBAAiB,GACjB,iBAAiB,GACjB,kBAAkB,GAClB,eAAe,CAAC"}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=slack_blocks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack_blocks.js","sourceRoot":"","sources":["../../src/define/slack_blocks.ts"],"names":[],"mappings":"AAAA;;;;;GAKG","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\n// Slack surface output types for SurfaceMap. Not wire format.\n//\n// Message-surface Block Kit only (channel/DM posts). Field names and shapes\n// match Slack's JSON so output can go to `chat.postMessage`. Fields are\n// commented only where this subset departs from the published contract, or\n// where Slack's behavior is not evident from the name.\n//\n// References:\n// https://api.slack.com/reference/block-kit/blocks\n// https://api.slack.com/reference/block-kit/composition-objects\n// https://api.slack.com/reference/block-kit/block-elements\n\nexport interface SlackPlainTextObject {\n type: 'plain_text';\n text: string;\n emoji?: boolean;\n}\n\nexport interface SlackMrkdwnTextObject {\n type: 'mrkdwn';\n text: string;\n /** When true, Slack skips auto-linking URLs, channels, and users. Defaults to false. */\n verbatim?: boolean;\n}\n\nexport type SlackTextObject = SlackPlainTextObject | SlackMrkdwnTextObject;\n\nexport type SlackHeaderLevel = 1 | 2 | 3 | 4;\n\nexport interface SlackHeaderBlock {\n type: 'header';\n block_id?: string;\n text: SlackPlainTextObject;\n /** H1–H4 sizing. Accepted on message, modal, and Home tab surfaces. */\n level?: SlackHeaderLevel;\n}\n\nexport interface SlackSectionBlock {\n type: 'section';\n block_id?: string;\n text?: SlackTextObject;\n fields?: SlackMrkdwnTextObject[];\n accessory?: SlackSectionAccessory;\n}\n\nexport interface SlackDividerBlock {\n type: 'divider';\n block_id?: string;\n}\n\n/**\n * Inline image used inside `context` blocks and as a `section` accessory.\n * Distinct from the block-level {@link SlackImageBlock}.\n */\nexport interface SlackImageElement {\n type: 'image';\n image_url: string;\n alt_text: string;\n}\n\nexport interface SlackContextBlock {\n type: 'context';\n block_id?: string;\n elements: Array<SlackTextObject | SlackImageElement>;\n}\n\nexport interface SlackButtonElement {\n type: 'button';\n text: SlackPlainTextObject;\n url?: string;\n value?: string;\n action_id?: string;\n style?: 'primary' | 'danger';\n}\n\n/**\n * Reference to a file already uploaded to Slack.\n *\n * `id` and `url` are Slack's published fields. `ref` is not: a render cannot\n * upload, so it emits a placeholder the host swaps for Slack's file id once\n * the upload lands. See `SlackAssetCollector`.\n */\nexport interface SlackFileReference {\n id?: string;\n url?: string;\n ref?: string;\n}\n\n/**\n * Block-level image. `image_url` requires a publicly hosted URL; `slack_file`\n * references a file uploaded to Slack first, which is the only VPN-safe path.\n */\nexport interface SlackImageBlock {\n type: 'image';\n block_id?: string;\n alt_text: string;\n image_url?: string;\n slack_file?: SlackFileReference;\n title?: SlackPlainTextObject;\n}\n\n/** `video` block, matching Slack's JSON contract exactly. */\nexport interface SlackVideoBlock {\n type: 'video';\n block_id?: string;\n title: SlackPlainTextObject;\n title_url?: string;\n video_url: string;\n thumbnail_url: string;\n alt_text: string;\n description?: SlackPlainTextObject;\n author_name?: string;\n provider_name?: string;\n provider_icon_url?: string;\n}\n\nexport interface SlackRichTextStyle {\n bold?: boolean;\n italic?: boolean;\n strike?: boolean;\n code?: boolean;\n}\n\nexport interface SlackRichTextText {\n type: 'text';\n text: string;\n style?: SlackRichTextStyle;\n}\n\nexport interface SlackRichTextLink {\n type: 'link';\n url: string;\n text?: string;\n style?: SlackRichTextStyle;\n}\n\nexport type SlackTagColor =\n | 'gray'\n | 'brown'\n | 'purple'\n | 'indigo'\n | 'blue'\n | 'green'\n | 'yellow'\n | 'orange'\n | 'red';\n\nexport interface SlackRichTextTag {\n type: 'tag';\n text: string;\n color?: SlackTagColor;\n style?: SlackRichTextStyle;\n}\n\nexport type SlackRichTextInline =\n SlackRichTextText | SlackRichTextLink | SlackRichTextTag;\n\nexport interface SlackRichTextSection {\n type: 'rich_text_section';\n elements: SlackRichTextInline[];\n}\n\nexport interface SlackRichTextList {\n type: 'rich_text_list';\n style: 'bullet' | 'ordered';\n indent?: number;\n /** Added to an ordered list's first number, which is otherwise 1. */\n offset?: number;\n border?: number;\n elements: SlackRichTextSection[];\n}\n\nexport interface SlackRichTextPreformatted {\n type: 'rich_text_preformatted';\n border?: number;\n elements: SlackRichTextInline[];\n}\n\nexport interface SlackRichTextQuote {\n type: 'rich_text_quote';\n border?: number;\n elements: SlackRichTextInline[];\n}\n\nexport type SlackRichTextBlockElement =\n | SlackRichTextSection\n | SlackRichTextList\n | SlackRichTextPreformatted\n | SlackRichTextQuote;\n\nexport interface SlackRichTextBlock {\n type: 'rich_text';\n block_id?: string;\n elements: SlackRichTextBlockElement[];\n}\n\n/** The option shape shared by every menu, select, checkbox, and radio element. */\nexport interface SlackOptionObject {\n text: SlackTextObject;\n value: string;\n description?: SlackPlainTextObject;\n /** Only honored inside an `overflow` element. */\n url?: string;\n}\n\nexport interface SlackOptionGroup {\n label: SlackPlainTextObject;\n options: SlackOptionObject[];\n}\n\nexport interface SlackOverflowElement {\n type: 'overflow';\n action_id: string;\n options: SlackOptionObject[];\n}\n\nexport interface SlackStaticSelectElement {\n type: 'static_select';\n action_id: string;\n placeholder?: SlackPlainTextObject;\n options?: SlackOptionObject[];\n option_groups?: SlackOptionGroup[];\n initial_option?: SlackOptionObject;\n}\n\nexport interface SlackMultiStaticSelectElement {\n type: 'multi_static_select';\n action_id: string;\n placeholder?: SlackPlainTextObject;\n options: SlackOptionObject[];\n initial_options?: SlackOptionObject[];\n max_selected_items?: number;\n}\n\nexport interface SlackRadioButtonsElement {\n type: 'radio_buttons';\n action_id: string;\n options: SlackOptionObject[];\n initial_option?: SlackOptionObject;\n}\n\nexport interface SlackCheckboxesElement {\n type: 'checkboxes';\n action_id: string;\n options: SlackOptionObject[];\n initial_options?: SlackOptionObject[];\n}\n\n/** Elements Slack permits inside an `actions` block. */\nexport type SlackActionElement =\n | SlackButtonElement\n | SlackOverflowElement\n | SlackStaticSelectElement\n | SlackMultiStaticSelectElement\n | SlackRadioButtonsElement\n | SlackCheckboxesElement;\n\n/** Elements Slack permits as a `section.accessory`. */\nexport type SlackSectionAccessory =\n | SlackButtonElement\n | SlackImageElement\n | SlackOverflowElement\n | SlackStaticSelectElement\n | SlackMultiStaticSelectElement\n | SlackRadioButtonsElement\n | SlackCheckboxesElement;\n\nexport interface SlackActionsBlock {\n type: 'actions';\n block_id?: string;\n elements: SlackActionElement[];\n}\n\n/** A plain table cell. Strings and numbers use this; see {@link SlackTableCell}. */\nexport interface SlackRawTextElement {\n type: 'raw_text';\n text: string;\n}\n\n/**\n * One table cell. Badge and toned values need the `rich_text` form so a `tag`\n * or bold run can sit inside the grid.\n */\nexport type SlackTableCell = SlackRawTextElement | SlackRichTextBlock;\n\n/**\n * Per-column behavior, positional: entry N configures column N.\n *\n * Trailing columns without an entry keep Slack's defaults (left-aligned, no\n * wrapping), and a `null` entry skips a column.\n */\nexport interface SlackTableColumnSetting {\n align?: 'left' | 'center' | 'right';\n is_wrapped?: boolean;\n}\n\n/**\n * Native `table` block, whose first row renders as the header.\n *\n * Cells, rows, and columns are capped by Slack; see `SLACK_LIMITS`.\n * https://docs.slack.dev/reference/block-kit/blocks/table-block\n */\nexport interface SlackTableBlock {\n type: 'table';\n block_id?: string;\n rows: SlackTableCell[][];\n column_settings?: Array<SlackTableColumnSetting | null>;\n}\n\n/** Every block this renderer emits, and what a `slack` renderer returns. */\nexport type SlackBlock =\n | SlackHeaderBlock\n | SlackSectionBlock\n | SlackDividerBlock\n | SlackImageBlock\n | SlackVideoBlock\n | SlackContextBlock\n | SlackActionsBlock\n | SlackRichTextBlock\n | SlackTableBlock;\n"]}
@@ -0,0 +1,33 @@
1
+ import type { core, ZodObject } from 'zod';
2
+ import type { ValidationError } from '../composition/validation_error.js';
3
+ /**
4
+ * Builds a `body[3].items[0].label` style path from a Zod issue path. Empty
5
+ * when the issue is at the schema root.
6
+ */
7
+ export declare const formatPath: (segments: ReadonlyArray<PropertyKey>, basePath?: string) => string;
8
+ /**
9
+ * Converts one Zod issue into a {@link ValidationError}.
10
+ *
11
+ * Schemas encode only the predicate (`must contain at least one bar`), so the
12
+ * path stays separate. Missing required fields, enum issues, and unknown keys
13
+ * are worded centrally, which is what keeps per-schema messages from restating
14
+ * that boilerplate.
15
+ *
16
+ * Parse with `{ reportInput: true }`: Zod 4 omits `input` from an issue
17
+ * otherwise, and a wrong type would then read as a missing field.
18
+ */
19
+ export declare const formatZodIssue: (issue: core.$ZodIssue, basePath?: string) => ValidationError;
20
+ /** What an unknown-key error on a node of `schema` adds: the fields that node declares. */
21
+ export declare const declaredFieldsNote: ({ shape }: ZodObject) => string;
22
+ /** `must be one of: a, b`, each string option spelled as {@link nameText} spells it. */
23
+ export declare const oneOf: (options: readonly unknown[]) => string;
24
+ /**
25
+ * Zod issues as {@link ValidationError}s, in order, each path under `basePath`.
26
+ *
27
+ * Missing required fields, enum issues, and unknown keys are worded centrally,
28
+ * so a schema's own messages state only the predicate. Parse with
29
+ * `{ reportInput: true }`: Zod 4 omits `input` from an issue otherwise, and a
30
+ * wrong type would then read as a missing field.
31
+ */
32
+ export declare const formatZodIssues: (issues: ReadonlyArray<core.$ZodIssue>, basePath?: string) => ValidationError[];
33
+ //# sourceMappingURL=zod_format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod_format.d.ts","sourceRoot":"","sources":["../../src/define/zod_format.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAG3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEvE;;;GAGG;AACH,eAAO,MAAM,UAAU,GACrB,UAAU,aAAa,CAAC,WAAW,CAAC,EACpC,iBAAa,KACZ,MAWF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,IAAI,CAAC,SAAS,EACrB,iBAAa,KACZ,eAyCF,CAAC;AAKF,2FAA2F;AAC3F,eAAO,MAAM,kBAAkB,GAAI,WAAW,SAAS,KAAG,MAOzD,CAAC;AAEF,wFAAwF;AACxF,eAAO,MAAM,KAAK,GAAI,SAAS,SAAS,OAAO,EAAE,KAAG,MAKnC,CAAC;AA4BlB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,EACrC,iBAAa,KACZ,eAAe,EAA4D,CAAC"}
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ import { nameText } from '../composition/one_line.js';
8
+ /**
9
+ * Builds a `body[3].items[0].label` style path from a Zod issue path. Empty
10
+ * when the issue is at the schema root.
11
+ */
12
+ export const formatPath = (segments, basePath = '') => {
13
+ let result = basePath;
14
+ segments.forEach((segment) => {
15
+ if (typeof segment === 'number') {
16
+ result += `[${segment}]`;
17
+ }
18
+ else {
19
+ const text = String(segment);
20
+ result += result ? `.${text}` : text;
21
+ }
22
+ });
23
+ return result;
24
+ };
25
+ /**
26
+ * Converts one Zod issue into a {@link ValidationError}.
27
+ *
28
+ * Schemas encode only the predicate (`must contain at least one bar`), so the
29
+ * path stays separate. Missing required fields, enum issues, and unknown keys
30
+ * are worded centrally, which is what keeps per-schema messages from restating
31
+ * that boilerplate.
32
+ *
33
+ * Parse with `{ reportInput: true }`: Zod 4 omits `input` from an issue
34
+ * otherwise, and a wrong type would then read as a missing field.
35
+ */
36
+ export const formatZodIssue = (issue, basePath = '') => {
37
+ const path = formatPath(issue.path, basePath);
38
+ if (isMissingRequired(issue)) {
39
+ return { path, message: 'is required' };
40
+ }
41
+ if (issue.code === 'invalid_value' && Array.isArray(issue.values)) {
42
+ return { path, message: oneOf(issue.values) };
43
+ }
44
+ if (issue.code === 'unrecognized_keys') {
45
+ return {
46
+ path,
47
+ message: `has unrecognized key(s): ${issue.keys.map(nameText).join(', ')}`,
48
+ };
49
+ }
50
+ if (issue.code === 'invalid_union') {
51
+ const { options } = issue;
52
+ if (Array.isArray(options)) {
53
+ return { path, message: oneOf(options) };
54
+ }
55
+ }
56
+ // Zod's own size wording (`Too small: expected string to have >=1
57
+ // characters`) is rewritten; a schema's custom message is left alone.
58
+ if (issue.code === 'too_small' && issue.message.startsWith('Too small')) {
59
+ return {
60
+ path,
61
+ message: sizeMessage('at least', issue.origin, issue.minimum),
62
+ };
63
+ }
64
+ if (issue.code === 'too_big' && issue.message.startsWith('Too big')) {
65
+ return {
66
+ path,
67
+ message: sizeMessage('at most', issue.origin, issue.maximum),
68
+ };
69
+ }
70
+ return { path, message: issue.message };
71
+ };
72
+ /** Fields every node takes, which {@link declaredFieldsNote} leaves out. */
73
+ const COMMON_NODE_FIELDS = new Set(['type', 'id', 'surfaces']);
74
+ /** What an unknown-key error on a node of `schema` adds: the fields that node declares. */
75
+ export const declaredFieldsNote = ({ shape }) => {
76
+ const declared = Object.keys(shape).filter((key) => !COMMON_NODE_FIELDS.has(key));
77
+ return declared.length === 0
78
+ ? 'it declares no fields'
79
+ : `its fields are ${declared.map(nameText).join(', ')}`;
80
+ };
81
+ /** `must be one of: a, b`, each string option spelled as {@link nameText} spells it. */
82
+ export const oneOf = (options) => `must be one of: ${options
83
+ .map((option) => typeof option === 'string' ? nameText(option) : String(option))
84
+ .join(', ')}`;
85
+ const sizeMessage = (bound, origin, limit) => {
86
+ if (origin === 'string') {
87
+ return bound === 'at least' && limit === 1
88
+ ? 'must not be empty'
89
+ : `must be ${bound} ${limit} characters`;
90
+ }
91
+ if (origin === 'array' || origin === 'set') {
92
+ return bound === 'at least' && limit === 1
93
+ ? 'must not be empty'
94
+ : `must have ${bound} ${limit} items`;
95
+ }
96
+ return `must be ${bound} ${limit}`;
97
+ };
98
+ const isMissingRequired = (issue) => {
99
+ if (issue.code !== 'invalid_type') {
100
+ return false;
101
+ }
102
+ const { input } = issue;
103
+ return input === undefined;
104
+ };
105
+ /**
106
+ * Zod issues as {@link ValidationError}s, in order, each path under `basePath`.
107
+ *
108
+ * Missing required fields, enum issues, and unknown keys are worded centrally,
109
+ * so a schema's own messages state only the predicate. Parse with
110
+ * `{ reportInput: true }`: Zod 4 omits `input` from an issue otherwise, and a
111
+ * wrong type would then read as a missing field.
112
+ */
113
+ export const formatZodIssues = (issues, basePath = '') => issues.map((issue) => formatZodIssue(issue, basePath));
114
+ //# sourceMappingURL=zod_format.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod_format.js","sourceRoot":"","sources":["../../src/define/zod_format.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EA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,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,EAAE,KAAK,EAAE,GAAG,KAA4B,CAAC;IAC/C,OAAO,KAAK,KAAK,SAAS,CAAC;AAC7B,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,MAAqC,EACrC,QAAQ,GAAG,EAAE,EACM,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nimport type { core, ZodObject } from 'zod';\n\nimport { nameText } from '../composition/one_line';\nimport type { ValidationError } from '../composition/validation_error';\n\n/**\n * Builds a `body[3].items[0].label` style path from a Zod issue path. Empty\n * when the issue is at the schema root.\n */\nexport const formatPath = (\n segments: ReadonlyArray<PropertyKey>,\n basePath = ''\n): string => {\n let result = basePath;\n segments.forEach((segment) => {\n if (typeof segment === 'number') {\n result += `[${segment}]`;\n } else {\n const text = String(segment);\n result += result ? `.${text}` : text;\n }\n });\n return result;\n};\n\n/**\n * Converts one Zod issue into a {@link ValidationError}.\n *\n * Schemas encode only the predicate (`must contain at least one bar`), so the\n * path stays separate. Missing required fields, enum issues, and unknown keys\n * are worded centrally, which is what keeps per-schema messages from restating\n * that boilerplate.\n *\n * Parse with `{ reportInput: true }`: Zod 4 omits `input` from an issue\n * otherwise, and a wrong type would then read as a missing field.\n */\nexport const formatZodIssue = (\n issue: core.$ZodIssue,\n basePath = ''\n): ValidationError => {\n const path = formatPath(issue.path, basePath);\n\n if (isMissingRequired(issue)) {\n return { path, message: 'is required' };\n }\n\n if (issue.code === 'invalid_value' && Array.isArray(issue.values)) {\n return { path, message: oneOf(issue.values) };\n }\n\n if (issue.code === 'unrecognized_keys') {\n return {\n path,\n message: `has unrecognized key(s): ${issue.keys.map(nameText).join(', ')}`,\n };\n }\n\n if (issue.code === 'invalid_union') {\n const { options } = issue as { options?: unknown };\n if (Array.isArray(options)) {\n return { path, message: oneOf(options) };\n }\n }\n\n // Zod's own size wording (`Too small: expected string to have >=1\n // characters`) is rewritten; a schema's custom message is left alone.\n if (issue.code === 'too_small' && issue.message.startsWith('Too small')) {\n return {\n path,\n message: sizeMessage('at least', issue.origin, issue.minimum),\n };\n }\n if (issue.code === 'too_big' && issue.message.startsWith('Too big')) {\n return {\n path,\n message: sizeMessage('at most', issue.origin, issue.maximum),\n };\n }\n\n return { path, message: issue.message };\n};\n\n/** Fields every node takes, which {@link declaredFieldsNote} leaves out. */\nconst COMMON_NODE_FIELDS = new Set(['type', 'id', 'surfaces']);\n\n/** What an unknown-key error on a node of `schema` adds: the fields that node declares. */\nexport const declaredFieldsNote = ({ shape }: ZodObject): string => {\n const declared = Object.keys(shape).filter(\n (key) => !COMMON_NODE_FIELDS.has(key)\n );\n return declared.length === 0\n ? 'it declares no fields'\n : `its fields are ${declared.map(nameText).join(', ')}`;\n};\n\n/** `must be one of: a, b`, each string option spelled as {@link nameText} spells it. */\nexport const oneOf = (options: readonly unknown[]): string =>\n `must be one of: ${options\n .map((option) =>\n typeof option === 'string' ? nameText(option) : String(option)\n )\n .join(', ')}`;\n\nconst sizeMessage = (\n bound: 'at least' | 'at most',\n origin: string,\n limit: number | bigint\n): string => {\n if (origin === 'string') {\n return bound === 'at least' && limit === 1\n ? 'must not be empty'\n : `must be ${bound} ${limit} characters`;\n }\n if (origin === 'array' || origin === 'set') {\n return bound === 'at least' && limit === 1\n ? 'must not be empty'\n : `must have ${bound} ${limit} items`;\n }\n return `must be ${bound} ${limit}`;\n};\n\nconst isMissingRequired = (issue: core.$ZodIssue): boolean => {\n if (issue.code !== 'invalid_type') {\n return false;\n }\n const { input } = issue as { input?: unknown };\n return input === undefined;\n};\n\n/**\n * Zod issues as {@link ValidationError}s, in order, each path under `basePath`.\n *\n * Missing required fields, enum issues, and unknown keys are worded centrally,\n * so a schema's own messages state only the predicate. Parse with\n * `{ reportInput: true }`: Zod 4 omits `input` from an issue otherwise, and a\n * wrong type would then read as a missing field.\n */\nexport const formatZodIssues = (\n issues: ReadonlyArray<core.$ZodIssue>,\n basePath = ''\n): ValidationError[] => issues.map((issue) => formatZodIssue(issue, basePath));\n"]}
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A non-empty string.
4
+ *
5
+ * `message` is the suffix `formatZodIssue` prepends a path to, so phrase
6
+ * it as a predicate (`must be a hex color`), not a sentence.
7
+ */
8
+ export declare const requiredString: (message?: string) => z.ZodString;
9
+ export { z };
10
+ //# sourceMappingURL=zod_helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod_helpers.d.ts","sourceRoot":"","sources":["../../src/define/zod_helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,eAAO,MAAM,cAAc,GAAI,gBAAuB,gBAOvB,CAAC;AAEhC,OAAO,EAAE,CAAC,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * A non-empty string.
10
+ *
11
+ * `message` is the suffix `formatZodIssue` prepends a path to, so phrase
12
+ * it as a predicate (`must be a hex color`), not a sentence.
13
+ */
14
+ export const requiredString = (message = 'is required') => z
15
+ // Only a missing or non-string value takes `message`; a check chained on
16
+ // later, such as `.max()`, keeps its own wording.
17
+ .string({
18
+ error: (issue) => (issue.code === 'invalid_type' ? message : undefined),
19
+ })
20
+ .min(1, { error: message });
21
+ export { z };
22
+ //# sourceMappingURL=zod_helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zod_helpers.js","sourceRoot":"","sources":["../../src/define/zod_helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,GAAG,aAAa,EAAE,EAAE,CACxD,CAAC;IACC,yEAAyE;IACzE,kDAAkD;KACjD,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,cAAc,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;CACxE,CAAC;KACD,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AAEhC,OAAO,EAAE,CAAC,EAAE,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nimport { z } from 'zod';\n\n/**\n * A non-empty string.\n *\n * `message` is the suffix `formatZodIssue` prepends a path to, so phrase\n * it as a predicate (`must be a hex color`), not a sentence.\n */\nexport const requiredString = (message = 'is required') =>\n z\n // Only a missing or non-string value takes `message`; a check chained on\n // later, such as `.max()`, keeps its own wording.\n .string({\n error: (issue) => (issue.code === 'invalid_type' ? message : undefined),\n })\n .min(1, { error: message });\n\nexport { z };\n"]}
@@ -0,0 +1,3 @@
1
+ export { type EnhancementDefinition, type HTMLDispatcherRenderOptions, type HTMLEnhancementScope, type HTMLRenderDispatcher, type HTMLRenderOptions, type HTMLRenderResult, type HTMLStyleAdapter, renderHTMLWithDispatcher, } from '../render/html/index.js';
2
+ export { type ReactContentDispatcher, type ReactContentOptions, } from '../render/react/index.js';
3
+ //# sourceMappingURL=html.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../src/entries/html.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ export { renderHTMLWithDispatcher, } from '../render/html/index.js';
8
+ //# sourceMappingURL=html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html.js","sourceRoot":"","sources":["../../src/entries/html.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAQL,wBAAwB,GACzB,MAAM,gBAAgB,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nexport {\n type EnhancementDefinition,\n type HTMLDispatcherRenderOptions,\n type HTMLEnhancementScope,\n type HTMLRenderDispatcher,\n type HTMLRenderOptions,\n type HTMLRenderResult,\n type HTMLStyleAdapter,\n renderHTMLWithDispatcher,\n} from '../render/html';\nexport {\n type ReactContentDispatcher,\n type ReactContentOptions,\n} from '../render/react';\n"]}
@@ -0,0 +1,6 @@
1
+ export { type ActionEventRef, type BodyNodeBase, type ChildNodeRef, type ChildNodeWalker, type Composition, type CompositionMeta, type DisplayValue, type IsomerErrorCode, type NamedColor, type NamedColorPalette, type PrimitiveNode, type RenderTheme, type StructuredValue, type StructuredValueFormat, type SurfaceName, type ValidationError, ALL_NAMED_COLORS, BODY_NODE_SURFACES, ISOMER_ERROR_CODES, STRUCTURED_VALUE_FORMATS, CompositionValidationError, createChildNodeWalker, formatValidationError, IsomerError, isVisibleOnSurface, mapCompositionNodes, someBodyNode, } from '../composition/index.js';
2
+ export { type AnyPrimitiveDefinition, type BoundFrame, type DefaultPackTypes, type Frame, type FrameBody, type FrameComposition, type FrameDispatcher, type FrameHeader, type FrameViewport, type OptionalSurface, type PackTypes, type PrimitiveCatalogEntry, type PrimitiveChildRef, type PrimitiveDefinition, type PrimitiveMetrics, type PrimitiveRenderContext, type PrimitiveSchema, type PrimitiveStyleCollectionContext, type PrimitiveStyleCollector, type ReactContextArg, type Renderer, type Renderers, type RenderScope, type StyledRenderContext, type StyleHandle, type SurfaceMap, type ThemePair, type ThemeTokenPath, type WithNodeFields, bindFrame, definePrimitive, definePrimitiveFor, formatZodIssues, requiredString, unresolvedBodyNodeSchema, z, } from '../define/index.js';
3
+ export { type AnyPrimitivePack, type ComposedPacks, type EnhancementDefinition, type HostCapabilities, type PackAuthoringOptions, type PackStyleAdapter, type PrimitiveGroup, type PrimitivePack, type PrimitivePackInput, composePacks, definePrimitivePack, describeCapabilities, scopeScript, } from '../pack/index.js';
4
+ export { type FormatDisplayValueOptions, type LayoutBox, type LayoutFinding, type LayoutRect, type PayloadMeasurement, type PrimitiveDispatcher, type PrimitiveDispatcherOptions, LAYOUT_ROOM_ATTRIBUTE, NODE_ANCHOR_ATTRIBUTE, checkLayout, createPrimitiveDispatcher, formatDisplayValue, isStructuredValue, layoutRoom, nodeAnchor, rawDisplayValue, withNodeAnchors, withoutAnchors, } from '../render/index.js';
5
+ export { type AuthoringJsonSchemaOptions, type CheckedComposition, type CheckedValidationResult, type CompositionJsonSchemaOptions, type CompositionSchemaOptions, type CompositionValidatorOptions, type InputBudget, type InputBudgetCheck, type ParsedComposition, type UrlSchemaOptions, type ValidationErrorMode, type ValidationResult, type ValidationWarning, ASSET_URL_MESSAGE, ASSET_URL_RULE, BLOCKED_HREF, MAX_INPUT_CHARACTERS, MAX_INPUT_DEPTH, MAX_INPUT_VALUES, NAVIGATION_HREF_MESSAGE, NAVIGATION_HREF_RULE, assetUrl, authoringSchemaSubset, buildAuthoringJsonSchema, buildCompositionJsonSchema, checkInputBudget, compositionToRender, createCompositionParser, createCompositionValidator, displayValueSchema, getCompositionSchemaForDefinitions, isInputRefusal, namedColorSchema, navigationHref, renderThemeSchema, sanitizeAssetUrl, sanitizeNavigationHref, structuredValueSchema, warningsForSurface, } from '../validate/index.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entries/index.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,qBAAq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AK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,QAAQ,EACR,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EAClB,kCAAkC,EAClC,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ export { ALL_NAMED_COLORS, BODY_NODE_SURFACES, ISOMER_ERROR_CODES, STRUCTURED_VALUE_FORMATS, CompositionValidationError, createChildNodeWalker, formatValidationError, IsomerError, isVisibleOnSurface, mapCompositionNodes, someBodyNode, } from '../composition/index.js';
8
+ export { bindFrame, definePrimitive, definePrimitiveFor, formatZodIssues, requiredString, unresolvedBodyNodeSchema, z, } from '../define/index.js';
9
+ export { composePacks, definePrimitivePack, describeCapabilities, scopeScript, } from '../pack/index.js';
10
+ export { LAYOUT_ROOM_ATTRIBUTE, NODE_ANCHOR_ATTRIBUTE, checkLayout, createPrimitiveDispatcher, formatDisplayValue, isStructuredValue, layoutRoom, nodeAnchor, rawDisplayValue, withNodeAnchors, withoutAnchors, } from '../render/index.js';
11
+ export { ASSET_URL_MESSAGE, ASSET_URL_RULE, BLOCKED_HREF, MAX_INPUT_CHARACTERS, MAX_INPUT_DEPTH, MAX_INPUT_VALUES, NAVIGATION_HREF_MESSAGE, NAVIGATION_HREF_RULE, assetUrl, authoringSchemaSubset, buildAuthoringJsonSchema, buildCompositionJsonSchema, checkInputBudget, compositionToRender, createCompositionParser, createCompositionValidator, displayValueSchema, getCompositionSchemaForDefinitions, isInputRefusal, namedColorSchema, navigationHref, renderThemeSchema, sanitizeAssetUrl, sanitizeNavigationHref, structuredValueSchema, warningsForSurface, } from '../validate/index.js';
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entries/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAiBL,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EA8BL,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,wBAAwB,EACxB,CAAC,GACF,MAAM,WAAW,CAAC;AACnB,OAAO,EAUL,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,GACZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAQL,qBAAqB,EACrB,qBAAqB,EACrB,WAAW,EACX,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,eAAe,EACf,eAAe,EACf,cAAc,GACf,MAAM,WAAW,CAAC;AACnB,OAAO,EAcL,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,QAAQ,EACR,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,0BAA0B,EAC1B,kBAAkB,EAClB,kCAAkC,EAClC,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nexport {\n type ActionEventRef,\n type BodyNodeBase,\n type ChildNodeRef,\n type ChildNodeWalker,\n type Composition,\n type CompositionMeta,\n type DisplayValue,\n type IsomerErrorCode,\n type NamedColor,\n type NamedColorPalette,\n type PrimitiveNode,\n type RenderTheme,\n type StructuredValue,\n type StructuredValueFormat,\n type SurfaceName,\n type ValidationError,\n ALL_NAMED_COLORS,\n BODY_NODE_SURFACES,\n ISOMER_ERROR_CODES,\n STRUCTURED_VALUE_FORMATS,\n CompositionValidationError,\n createChildNodeWalker,\n formatValidationError,\n IsomerError,\n isVisibleOnSurface,\n mapCompositionNodes,\n someBodyNode,\n} from '../composition';\nexport {\n type AnyPrimitiveDefinition,\n type BoundFrame,\n type DefaultPackTypes,\n type Frame,\n type FrameBody,\n type FrameComposition,\n type FrameDispatcher,\n type FrameHeader,\n type FrameViewport,\n type OptionalSurface,\n type PackTypes,\n type PrimitiveCatalogEntry,\n type PrimitiveChildRef,\n type PrimitiveDefinition,\n type PrimitiveMetrics,\n type PrimitiveRenderContext,\n type PrimitiveSchema,\n type PrimitiveStyleCollectionContext,\n type PrimitiveStyleCollector,\n type ReactContextArg,\n type Renderer,\n type Renderers,\n type RenderScope,\n type StyledRenderContext,\n type StyleHandle,\n type SurfaceMap,\n type ThemePair,\n type ThemeTokenPath,\n type WithNodeFields,\n bindFrame,\n definePrimitive,\n definePrimitiveFor,\n formatZodIssues,\n requiredString,\n unresolvedBodyNodeSchema,\n z,\n} from '../define';\nexport {\n type AnyPrimitivePack,\n type ComposedPacks,\n type EnhancementDefinition,\n type HostCapabilities,\n type PackAuthoringOptions,\n type PackStyleAdapter,\n type PrimitiveGroup,\n type PrimitivePack,\n type PrimitivePackInput,\n composePacks,\n definePrimitivePack,\n describeCapabilities,\n scopeScript,\n} from '../pack';\nexport {\n type FormatDisplayValueOptions,\n type LayoutBox,\n type LayoutFinding,\n type LayoutRect,\n type PayloadMeasurement,\n type PrimitiveDispatcher,\n type PrimitiveDispatcherOptions,\n LAYOUT_ROOM_ATTRIBUTE,\n NODE_ANCHOR_ATTRIBUTE,\n checkLayout,\n createPrimitiveDispatcher,\n formatDisplayValue,\n isStructuredValue,\n layoutRoom,\n nodeAnchor,\n rawDisplayValue,\n withNodeAnchors,\n withoutAnchors,\n} from '../render';\nexport {\n type AuthoringJsonSchemaOptions,\n type CheckedComposition,\n type CheckedValidationResult,\n type CompositionJsonSchemaOptions,\n type CompositionSchemaOptions,\n type CompositionValidatorOptions,\n type InputBudget,\n type InputBudgetCheck,\n type ParsedComposition,\n type UrlSchemaOptions,\n type ValidationErrorMode,\n type ValidationResult,\n type ValidationWarning,\n ASSET_URL_MESSAGE,\n ASSET_URL_RULE,\n BLOCKED_HREF,\n MAX_INPUT_CHARACTERS,\n MAX_INPUT_DEPTH,\n MAX_INPUT_VALUES,\n NAVIGATION_HREF_MESSAGE,\n NAVIGATION_HREF_RULE,\n assetUrl,\n authoringSchemaSubset,\n buildAuthoringJsonSchema,\n buildCompositionJsonSchema,\n checkInputBudget,\n compositionToRender,\n createCompositionParser,\n createCompositionValidator,\n displayValueSchema,\n getCompositionSchemaForDefinitions,\n isInputRefusal,\n namedColorSchema,\n navigationHref,\n renderThemeSchema,\n sanitizeAssetUrl,\n sanitizeNavigationHref,\n structuredValueSchema,\n warningsForSurface,\n} from '../validate';\n"]}
@@ -0,0 +1,3 @@
1
+ export { type MarkdownBlock, type MarkdownContent, type MarkdownInline, type MarkdownInlineInput, } from '../define/index.js';
2
+ export { type MarkdownEnvelopeDispatcher, type MarkdownEnvelopeOptions, md, renderMarkdownEnvelope, serializeMarkdown, } from '../render/markdown/index.js';
3
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/entries/markdown.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,EAAE,EACF,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ export { md, renderMarkdownEnvelope, serializeMarkdown, } from '../render/markdown/index.js';
8
+ //# sourceMappingURL=markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../src/entries/markdown.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,OAAO,EAGL,EAAE,EACF,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nexport {\n type MarkdownBlock,\n type MarkdownContent,\n type MarkdownInline,\n type MarkdownInlineInput,\n} from '../define';\n\nexport {\n type MarkdownEnvelopeDispatcher,\n type MarkdownEnvelopeOptions,\n md,\n renderMarkdownEnvelope,\n serializeMarkdown,\n} from '../render/markdown';\n"]}
@@ -0,0 +1,5 @@
1
+ export { runEnhancementScript } from '../pack/enhancements.js';
2
+ export { findNodeElementPairs } from '../render/anchors.js';
3
+ export { measureDom } from '../render/measure_dom.js';
4
+ export { type CompositionWrapperOptions, type ReactContentDispatcher, type ReactContentOptions, applyEnhancements, renderCompositionContent, wrapCompositionContent, } from '../render/react/index.js';
5
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/entries/react.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3
+ * or more contributor license agreements. Licensed under the Elastic License
4
+ * 2.0; you may not use this file except in compliance with the Elastic License
5
+ * 2.0.
6
+ */
7
+ export { runEnhancementScript } from '../pack/enhancements.js';
8
+ export { findNodeElementPairs } from '../render/anchors.js';
9
+ export { measureDom } from '../render/measure_dom.js';
10
+ export { applyEnhancements, renderCompositionContent, wrapCompositionContent, } from '../render/react/index.js';
11
+ //# sourceMappingURL=react.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.js","sourceRoot":"","sources":["../../src/entries/react.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAIL,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC","sourcesContent":["/*\n * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one\n * or more contributor license agreements. Licensed under the Elastic License\n * 2.0; you may not use this file except in compliance with the Elastic License\n * 2.0.\n */\n\nexport { runEnhancementScript } from '../pack/enhancements';\nexport { findNodeElementPairs } from '../render/anchors';\nexport { measureDom } from '../render/measure_dom';\nexport {\n type CompositionWrapperOptions,\n type ReactContentDispatcher,\n type ReactContentOptions,\n applyEnhancements,\n renderCompositionContent,\n wrapCompositionContent,\n} from '../render/react';\n"]}
@@ -0,0 +1,2 @@
1
+ export { type SlackActionElement, type SlackActionsBlock, type SlackAssetCollector, type SlackAssetRequest, type SlackBlock, type SlackButtonElement, type SlackCheckboxesElement, type SlackContextBlock, type SlackDividerBlock, type SlackEnvelopeDispatcher, type SlackEnvelopeOptions, type SlackEnvelopeResult, type SlackFileReference, type SlackHeaderBlock, type SlackHeaderLevel, type SlackImageBlock, type SlackImageElement, type SlackMrkdwnTextObject, type SlackMultiStaticSelectElement, type SlackOptionGroup, type SlackOptionObject, type SlackOverflowElement, type SlackPlainTextObject, type SlackRadioButtonsElement, type SlackRawTextElement, type SlackRichTextBlock, type SlackRichTextBlockElement, type SlackRichTextInline, type SlackRichTextLink, type SlackRichTextList, type SlackRichTextPreformatted, type SlackRichTextQuote, type SlackRichTextSection, type SlackRichTextStyle, type SlackRichTextTag, type SlackRichTextText, type SlackSectionAccessory, type SlackSectionBlock, type SlackStaticSelectElement, type SlackTableBlock, type SlackTableCell, type SlackTableColumnSetting, type SlackTagColor, type SlackTextObject, type SlackVideoBlock, SLACK_LIMITS, bold, clampSlackText, code, codeBlock, createSlackAssetCollector, escapeMrkdwn, gfmToSlackBlocks, isSlackReachableImageUrl, italic, link, markdownContentToSlackBlocks, renderSlackEnvelope, slackLinkUrl, strike, } from '../render/slack/index.js';
2
+ //# sourceMappingURL=slack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../src/entries/slack.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAClC,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,YAAY,EACZ,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,SAAS,EACT,yBAAyB,EACzB,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,MAAM,EACN,IAAI,EACJ,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,EACZ,MAAM,GACP,MAAM,iBAAiB,CAAC"}