@rentnerkev/pdf 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (355) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -2
  3. package/THIRD_PARTY_NOTICES.md +152 -0
  4. package/dist/components/Types/host.d.ts +3 -0
  5. package/dist/components/Types/host.d.ts.map +1 -0
  6. package/dist/components/Types/host.js +2 -0
  7. package/dist/components/Types/host.js.map +1 -0
  8. package/dist/components/Types/props.d.ts +504 -0
  9. package/dist/components/Types/props.d.ts.map +1 -0
  10. package/dist/components/Types/props.js +2 -0
  11. package/dist/components/Types/props.js.map +1 -0
  12. package/dist/components/components.d.ts +87 -0
  13. package/dist/components/components.d.ts.map +1 -0
  14. package/dist/components/components.js +86 -0
  15. package/dist/components/components.js.map +1 -0
  16. package/dist/components/host.d.ts +7 -0
  17. package/dist/components/host.d.ts.map +1 -0
  18. package/dist/components/host.js +15 -0
  19. package/dist/components/host.js.map +1 -0
  20. package/dist/engine/Types/backend.d.ts +120 -0
  21. package/dist/engine/Types/backend.d.ts.map +1 -0
  22. package/dist/engine/Types/backend.js +2 -0
  23. package/dist/engine/Types/backend.js.map +1 -0
  24. package/dist/engine/Types/engine.d.ts +192 -0
  25. package/dist/engine/Types/engine.d.ts.map +1 -0
  26. package/dist/engine/Types/engine.js +2 -0
  27. package/dist/engine/Types/engine.js.map +1 -0
  28. package/dist/engine/Types/errors.d.ts +16 -0
  29. package/dist/engine/Types/errors.d.ts.map +1 -0
  30. package/dist/engine/Types/errors.js +2 -0
  31. package/dist/engine/Types/errors.js.map +1 -0
  32. package/dist/engine/Types/limits.d.ts +55 -0
  33. package/dist/engine/Types/limits.d.ts.map +1 -0
  34. package/dist/engine/Types/limits.js +2 -0
  35. package/dist/engine/Types/limits.js.map +1 -0
  36. package/dist/engine/Types/render-options.d.ts +71 -0
  37. package/dist/engine/Types/render-options.d.ts.map +1 -0
  38. package/dist/engine/Types/render-options.js +2 -0
  39. package/dist/engine/Types/render-options.js.map +1 -0
  40. package/dist/engine/Types/render-result.d.ts +80 -0
  41. package/dist/engine/Types/render-result.d.ts.map +1 -0
  42. package/dist/engine/Types/render-result.js +2 -0
  43. package/dist/engine/Types/render-result.js.map +1 -0
  44. package/dist/engine/abort.d.ts +23 -0
  45. package/dist/engine/abort.d.ts.map +1 -0
  46. package/dist/engine/abort.js +71 -0
  47. package/dist/engine/abort.js.map +1 -0
  48. package/dist/engine/assets.d.ts +22 -0
  49. package/dist/engine/assets.d.ts.map +1 -0
  50. package/dist/engine/assets.js +40 -0
  51. package/dist/engine/assets.js.map +1 -0
  52. package/dist/engine/backend.d.ts +16 -0
  53. package/dist/engine/backend.d.ts.map +1 -0
  54. package/dist/engine/backend.js +43 -0
  55. package/dist/engine/backend.js.map +1 -0
  56. package/dist/engine/backends/native.d.ts +11 -0
  57. package/dist/engine/backends/native.d.ts.map +1 -0
  58. package/dist/engine/backends/native.js +62 -0
  59. package/dist/engine/backends/native.js.map +1 -0
  60. package/dist/engine/backends/wasm.d.ts +16 -0
  61. package/dist/engine/backends/wasm.d.ts.map +1 -0
  62. package/dist/engine/backends/wasm.js +216 -0
  63. package/dist/engine/backends/wasm.js.map +1 -0
  64. package/dist/engine/channel.d.ts +41 -0
  65. package/dist/engine/channel.d.ts.map +1 -0
  66. package/dist/engine/channel.js +140 -0
  67. package/dist/engine/channel.js.map +1 -0
  68. package/dist/engine/create-engine.d.ts +8 -0
  69. package/dist/engine/create-engine.d.ts.map +1 -0
  70. package/dist/engine/create-engine.js +120 -0
  71. package/dist/engine/create-engine.js.map +1 -0
  72. package/dist/engine/default-fonts.d.ts +9 -0
  73. package/dist/engine/default-fonts.d.ts.map +1 -0
  74. package/dist/engine/default-fonts.js +42 -0
  75. package/dist/engine/default-fonts.js.map +1 -0
  76. package/dist/engine/encode.d.ts +9 -0
  77. package/dist/engine/encode.d.ts.map +1 -0
  78. package/dist/engine/encode.js +199 -0
  79. package/dist/engine/encode.js.map +1 -0
  80. package/dist/engine/errors.d.ts +37 -0
  81. package/dist/engine/errors.d.ts.map +1 -0
  82. package/dist/engine/errors.js +71 -0
  83. package/dist/engine/errors.js.map +1 -0
  84. package/dist/engine/fonts.d.ts +9 -0
  85. package/dist/engine/fonts.d.ts.map +1 -0
  86. package/dist/engine/fonts.js +14 -0
  87. package/dist/engine/fonts.js.map +1 -0
  88. package/dist/engine/lifecycle.d.ts +40 -0
  89. package/dist/engine/lifecycle.d.ts.map +1 -0
  90. package/dist/engine/lifecycle.js +104 -0
  91. package/dist/engine/lifecycle.js.map +1 -0
  92. package/dist/engine/markup.d.ts +13 -0
  93. package/dist/engine/markup.d.ts.map +1 -0
  94. package/dist/engine/markup.js +14 -0
  95. package/dist/engine/markup.js.map +1 -0
  96. package/dist/engine/options.d.ts +12 -0
  97. package/dist/engine/options.d.ts.map +1 -0
  98. package/dist/engine/options.js +71 -0
  99. package/dist/engine/options.js.map +1 -0
  100. package/dist/engine/pdf-bytes.d.ts +8 -0
  101. package/dist/engine/pdf-bytes.d.ts.map +1 -0
  102. package/dist/engine/pdf-bytes.js +9 -0
  103. package/dist/engine/pdf-bytes.js.map +1 -0
  104. package/dist/engine/prepare.d.ts +17 -0
  105. package/dist/engine/prepare.d.ts.map +1 -0
  106. package/dist/engine/prepare.js +44 -0
  107. package/dist/engine/prepare.js.map +1 -0
  108. package/dist/engine/render-many.d.ts +14 -0
  109. package/dist/engine/render-many.d.ts.map +1 -0
  110. package/dist/engine/render-many.js +156 -0
  111. package/dist/engine/render-many.js.map +1 -0
  112. package/dist/engine/render-result.d.ts +12 -0
  113. package/dist/engine/render-result.d.ts.map +1 -0
  114. package/dist/engine/render-result.js +62 -0
  115. package/dist/engine/render-result.js.map +1 -0
  116. package/dist/engine/render-stream.d.ts +7 -0
  117. package/dist/engine/render-stream.d.ts.map +1 -0
  118. package/dist/engine/render-stream.js +56 -0
  119. package/dist/engine/render-stream.js.map +1 -0
  120. package/dist/engine/render.d.ts +15 -0
  121. package/dist/engine/render.d.ts.map +1 -0
  122. package/dist/engine/render.js +23 -0
  123. package/dist/engine/render.js.map +1 -0
  124. package/dist/fonts/NotoSans-Bold.ttf +0 -0
  125. package/dist/fonts/NotoSans-BoldItalic.ttf +0 -0
  126. package/dist/fonts/NotoSans-Italic.ttf +0 -0
  127. package/dist/fonts/NotoSans-Regular.ttf +0 -0
  128. package/dist/fonts/OFL.txt +94 -0
  129. package/dist/fonts/sources.json +32 -0
  130. package/dist/index.d.ts +26 -0
  131. package/dist/index.d.ts.map +1 -0
  132. package/dist/index.js +11 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/ir/Types/input.d.ts +111 -0
  135. package/dist/ir/Types/input.d.ts.map +1 -0
  136. package/dist/ir/Types/input.js +2 -0
  137. package/dist/ir/Types/input.js.map +1 -0
  138. package/dist/ir/factories.d.ts +108 -0
  139. package/dist/ir/factories.d.ts.map +1 -0
  140. package/dist/ir/factories.js +410 -0
  141. package/dist/ir/factories.js.map +1 -0
  142. package/dist/ir/ir.generated.d.ts +811 -0
  143. package/dist/ir/ir.generated.d.ts.map +1 -0
  144. package/dist/ir/ir.generated.js +4 -0
  145. package/dist/ir/ir.generated.js.map +1 -0
  146. package/dist/ir/version.d.ts +9 -0
  147. package/dist/ir/version.d.ts.map +1 -0
  148. package/dist/ir/version.js +13 -0
  149. package/dist/ir/version.js.map +1 -0
  150. package/dist/jsx/Types/context.d.ts +24 -0
  151. package/dist/jsx/Types/context.d.ts.map +1 -0
  152. package/dist/jsx/Types/context.js +2 -0
  153. package/dist/jsx/Types/context.js.map +1 -0
  154. package/dist/jsx/Types/element.d.ts +30 -0
  155. package/dist/jsx/Types/element.d.ts.map +1 -0
  156. package/dist/jsx/Types/element.js +2 -0
  157. package/dist/jsx/Types/element.js.map +1 -0
  158. package/dist/jsx/Types/evaluate.d.ts +61 -0
  159. package/dist/jsx/Types/evaluate.d.ts.map +1 -0
  160. package/dist/jsx/Types/evaluate.js +2 -0
  161. package/dist/jsx/Types/evaluate.js.map +1 -0
  162. package/dist/jsx/Types/jsx.d.ts +16 -0
  163. package/dist/jsx/Types/jsx.d.ts.map +1 -0
  164. package/dist/jsx/Types/jsx.js +2 -0
  165. package/dist/jsx/Types/jsx.js.map +1 -0
  166. package/dist/jsx/context.d.ts +21 -0
  167. package/dist/jsx/context.d.ts.map +1 -0
  168. package/dist/jsx/context.js +49 -0
  169. package/dist/jsx/context.js.map +1 -0
  170. package/dist/jsx/element.d.ts +10 -0
  171. package/dist/jsx/element.d.ts.map +1 -0
  172. package/dist/jsx/element.js +19 -0
  173. package/dist/jsx/element.js.map +1 -0
  174. package/dist/jsx/evaluate.d.ts +16 -0
  175. package/dist/jsx/evaluate.d.ts.map +1 -0
  176. package/dist/jsx/evaluate.js +616 -0
  177. package/dist/jsx/evaluate.js.map +1 -0
  178. package/dist/jsx/source.d.ts +13 -0
  179. package/dist/jsx/source.d.ts.map +1 -0
  180. package/dist/jsx/source.js +49 -0
  181. package/dist/jsx/source.js.map +1 -0
  182. package/dist/jsx-dev-runtime.d.ts +9 -0
  183. package/dist/jsx-dev-runtime.d.ts.map +1 -0
  184. package/dist/jsx-dev-runtime.js +24 -0
  185. package/dist/jsx-dev-runtime.js.map +1 -0
  186. package/dist/jsx-runtime.d.ts +12 -0
  187. package/dist/jsx-runtime.d.ts.map +1 -0
  188. package/dist/jsx-runtime.js +15 -0
  189. package/dist/jsx-runtime.js.map +1 -0
  190. package/dist/native/binding.generated.d.ts +227 -0
  191. package/dist/native/loader.d.ts +22 -0
  192. package/dist/native/loader.d.ts.map +1 -0
  193. package/dist/native/loader.js +98 -0
  194. package/dist/native/loader.js.map +1 -0
  195. package/dist/native/rentnerpdf.linux-arm64-gnu.node +0 -0
  196. package/dist/native/rentnerpdf.linux-arm64-musl.node +0 -0
  197. package/dist/native/rentnerpdf.linux-x64-gnu.node +0 -0
  198. package/dist/native/rentnerpdf.linux-x64-musl.node +0 -0
  199. package/dist/native/rentnerpdf.win32-arm64-msvc.node +0 -0
  200. package/dist/native/rentnerpdf.win32-x64-msvc.node +0 -0
  201. package/dist/node.d.ts +3 -0
  202. package/dist/node.d.ts.map +1 -0
  203. package/dist/node.js +6 -0
  204. package/dist/node.js.map +1 -0
  205. package/dist/react/Types/preview.d.ts +74 -0
  206. package/dist/react/Types/preview.d.ts.map +1 -0
  207. package/dist/react/Types/preview.js +2 -0
  208. package/dist/react/Types/preview.js.map +1 -0
  209. package/dist/react/Types/render.d.ts +24 -0
  210. package/dist/react/Types/render.d.ts.map +1 -0
  211. package/dist/react/Types/render.js +2 -0
  212. package/dist/react/Types/render.js.map +1 -0
  213. package/dist/react/attributes.d.ts +8 -0
  214. package/dist/react/attributes.d.ts.map +1 -0
  215. package/dist/react/attributes.js +44 -0
  216. package/dist/react/attributes.js.map +1 -0
  217. package/dist/react/components.d.ts +60 -0
  218. package/dist/react/components.d.ts.map +1 -0
  219. package/dist/react/components.js +266 -0
  220. package/dist/react/components.js.map +1 -0
  221. package/dist/react/pdf-preview.d.ts +16 -0
  222. package/dist/react/pdf-preview.d.ts.map +1 -0
  223. package/dist/react/pdf-preview.js +26 -0
  224. package/dist/react/pdf-preview.js.map +1 -0
  225. package/dist/react/pdf-render.d.ts +15 -0
  226. package/dist/react/pdf-render.d.ts.map +1 -0
  227. package/dist/react/pdf-render.js +60 -0
  228. package/dist/react/pdf-render.js.map +1 -0
  229. package/dist/react/registry.d.ts +44 -0
  230. package/dist/react/registry.d.ts.map +1 -0
  231. package/dist/react/registry.js +105 -0
  232. package/dist/react/registry.js.map +1 -0
  233. package/dist/react/render.d.ts +36 -0
  234. package/dist/react/render.d.ts.map +1 -0
  235. package/dist/react/render.js +212 -0
  236. package/dist/react/render.js.map +1 -0
  237. package/dist/react/same-document.d.ts +8 -0
  238. package/dist/react/same-document.d.ts.map +1 -0
  239. package/dist/react/same-document.js +59 -0
  240. package/dist/react/same-document.js.map +1 -0
  241. package/dist/react/static.d.ts +13 -0
  242. package/dist/react/static.d.ts.map +1 -0
  243. package/dist/react/static.js +65 -0
  244. package/dist/react/static.js.map +1 -0
  245. package/dist/react/use-pdf.d.ts +25 -0
  246. package/dist/react/use-pdf.d.ts.map +1 -0
  247. package/dist/react/use-pdf.js +59 -0
  248. package/dist/react/use-pdf.js.map +1 -0
  249. package/dist/react.d.ts +9 -0
  250. package/dist/react.d.ts.map +1 -0
  251. package/dist/react.js +10 -0
  252. package/dist/react.js.map +1 -0
  253. package/dist/tailwind/Types/merge-config.d.ts +28 -0
  254. package/dist/tailwind/Types/merge-config.d.ts.map +1 -0
  255. package/dist/tailwind/Types/merge-config.js +2 -0
  256. package/dist/tailwind/Types/merge-config.js.map +1 -0
  257. package/dist/tailwind/merge-config.d.ts +45 -0
  258. package/dist/tailwind/merge-config.d.ts.map +1 -0
  259. package/dist/tailwind/merge-config.js +46 -0
  260. package/dist/tailwind/merge-config.js.map +1 -0
  261. package/dist/tailwind-merge.d.ts +3 -0
  262. package/dist/tailwind-merge.d.ts.map +1 -0
  263. package/dist/tailwind-merge.js +4 -0
  264. package/dist/tailwind-merge.js.map +1 -0
  265. package/dist/tailwind.css +61 -0
  266. package/dist/theme/Types/css-imports.d.ts +38 -0
  267. package/dist/theme/Types/css-imports.d.ts.map +1 -0
  268. package/dist/theme/Types/css-imports.js +2 -0
  269. package/dist/theme/Types/css-imports.js.map +1 -0
  270. package/dist/theme/Types/theme.d.ts +70 -0
  271. package/dist/theme/Types/theme.d.ts.map +1 -0
  272. package/dist/theme/Types/theme.js +2 -0
  273. package/dist/theme/Types/theme.js.map +1 -0
  274. package/dist/theme/Types/warnings.d.ts +9 -0
  275. package/dist/theme/Types/warnings.d.ts.map +1 -0
  276. package/dist/theme/Types/warnings.js +2 -0
  277. package/dist/theme/Types/warnings.js.map +1 -0
  278. package/dist/theme/css-imports.d.ts +11 -0
  279. package/dist/theme/css-imports.d.ts.map +1 -0
  280. package/dist/theme/css-imports.js +138 -0
  281. package/dist/theme/css-imports.js.map +1 -0
  282. package/dist/theme/normalize.d.ts +15 -0
  283. package/dist/theme/normalize.d.ts.map +1 -0
  284. package/dist/theme/normalize.js +51 -0
  285. package/dist/theme/normalize.js.map +1 -0
  286. package/dist/theme/package-imports.d.ts +16 -0
  287. package/dist/theme/package-imports.d.ts.map +1 -0
  288. package/dist/theme/package-imports.js +90 -0
  289. package/dist/theme/package-imports.js.map +1 -0
  290. package/dist/theme/theme-from-css-file.d.ts +35 -0
  291. package/dist/theme/theme-from-css-file.d.ts.map +1 -0
  292. package/dist/theme/theme-from-css-file.js +223 -0
  293. package/dist/theme/theme-from-css-file.js.map +1 -0
  294. package/dist/theme/theme-from-css.d.ts +28 -0
  295. package/dist/theme/theme-from-css.d.ts.map +1 -0
  296. package/dist/theme/theme-from-css.js +62 -0
  297. package/dist/theme/theme-from-css.js.map +1 -0
  298. package/dist/theme/warnings.d.ts +13 -0
  299. package/dist/theme/warnings.d.ts.map +1 -0
  300. package/dist/theme/warnings.js +34 -0
  301. package/dist/theme/warnings.js.map +1 -0
  302. package/dist/vite/Types/plugin.d.ts +47 -0
  303. package/dist/vite/Types/plugin.d.ts.map +1 -0
  304. package/dist/vite/Types/plugin.js +5 -0
  305. package/dist/vite/Types/plugin.js.map +1 -0
  306. package/dist/vite/plugin.d.ts +30 -0
  307. package/dist/vite/plugin.d.ts.map +1 -0
  308. package/dist/vite/plugin.js +80 -0
  309. package/dist/vite/plugin.js.map +1 -0
  310. package/dist/vite.d.ts +3 -0
  311. package/dist/vite.d.ts.map +1 -0
  312. package/dist/vite.js +6 -0
  313. package/dist/vite.js.map +1 -0
  314. package/dist/wasm/binding.generated.d.ts +259 -0
  315. package/dist/wasm/loader.d.ts +17 -0
  316. package/dist/wasm/loader.d.ts.map +1 -0
  317. package/dist/wasm/loader.js +74 -0
  318. package/dist/wasm/loader.js.map +1 -0
  319. package/dist/wasm/pkg/rentnerpdf_wasm.d.ts +259 -0
  320. package/dist/wasm/pkg/rentnerpdf_wasm.js +883 -0
  321. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm +0 -0
  322. package/dist/wasm/pkg/rentnerpdf_wasm_bg.wasm.d.ts +40 -0
  323. package/dist/worker/Types/connection.d.ts +25 -0
  324. package/dist/worker/Types/connection.d.ts.map +1 -0
  325. package/dist/worker/Types/connection.js +2 -0
  326. package/dist/worker/Types/connection.js.map +1 -0
  327. package/dist/worker/Types/protocol.d.ts +62 -0
  328. package/dist/worker/Types/protocol.d.ts.map +1 -0
  329. package/dist/worker/Types/protocol.js +2 -0
  330. package/dist/worker/Types/protocol.js.map +1 -0
  331. package/dist/worker/Types/worker-engine.d.ts +91 -0
  332. package/dist/worker/Types/worker-engine.d.ts.map +1 -0
  333. package/dist/worker/Types/worker-engine.js +2 -0
  334. package/dist/worker/Types/worker-engine.js.map +1 -0
  335. package/dist/worker/client.d.ts +20 -0
  336. package/dist/worker/client.d.ts.map +1 -0
  337. package/dist/worker/client.js +131 -0
  338. package/dist/worker/client.js.map +1 -0
  339. package/dist/worker/connection.d.ts +5 -0
  340. package/dist/worker/connection.d.ts.map +1 -0
  341. package/dist/worker/connection.js +119 -0
  342. package/dist/worker/connection.js.map +1 -0
  343. package/dist/worker/protocol.d.ts +24 -0
  344. package/dist/worker/protocol.d.ts.map +1 -0
  345. package/dist/worker/protocol.js +71 -0
  346. package/dist/worker/protocol.js.map +1 -0
  347. package/dist/worker/serve.d.ts +26 -0
  348. package/dist/worker/serve.d.ts.map +1 -0
  349. package/dist/worker/serve.js +119 -0
  350. package/dist/worker/serve.js.map +1 -0
  351. package/dist/worker.d.ts +4 -0
  352. package/dist/worker.d.ts.map +1 -0
  353. package/dist/worker.js +8 -0
  354. package/dist/worker.js.map +1 -0
  355. package/package.json +80 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ir.generated.d.ts","sourceRoot":"","sources":["../../web/src/ir/ir.generated.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,QAAQ,GAAG;IACvB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,C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Y,CAAC;AAE7E,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAExI,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,KAAK,GAAG,OAAO,CAAC;AAEpH,KAAK,YAAY,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,CAAC;AAEjD,KAAK,WAAW,GAAG;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ // Generated from core/crates/rentnerpdf/src/ir.rs by `bun run ir:generate`. Do not edit.
2
+ // IR schema version: 1.
3
+ export {};
4
+ //# sourceMappingURL=ir.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ir.generated.js","sourceRoot":"","sources":["../../web/src/ir/ir.generated.ts"],"names":[],"mappings":"AAAA,yFAAyF;AACzF,wBAAwB","sourcesContent":["// Generated from core/crates/rentnerpdf/src/ir.rs by `bun run ir:generate`. Do not edit.\n// IR schema version: 1.\n\nexport type Document = { \n/**\n * IR version; must equal [`IR_VERSION`].\n */\nv: number, meta?: Meta, pages: ReadonlyArray<Page>, \n/**\n * The columnar channel with the cells of data-driven tables.\n */\nchannel?: DataChannel, \n/**\n * Standards the PDF conforms to, at most one of each family, for\n * example `[\"pdf-a-3b\"]`.\n */\nstandards?: ReadonlyArray<Standard>, \n/**\n * Files embedded in the PDF, in the order viewers list them.\n */\nattachments?: ReadonlyArray<Attachment>, \n/**\n * The Factur-X / ZUGFeRD descriptor in the XMP metadata.\n */\nfacturX?: FacturX, \n/**\n * Writes a tagged PDF: a structure tree in reading order (headings,\n * paragraphs, lists, tables with their headers, figures with alt\n * text, links), with headers, footers, page numbers and decoration\n * marked as artifacts. Default `false`; the standard `pdf-ua-1`\n * implies it.\n */\ntagged?: boolean, };\n\nexport type Meta = { title?: string, author?: string, subject?: string, keywords?: ReadonlyArray<string>, \n/**\n * Natural language of the document as a BCP 47 tag, for example `de-DE`.\n */\nlang?: string, \n/**\n * Base direction of every page, like `dir` on HTML's root element;\n * nodes inherit it unless they set their own.\n */\ndir?: Dir, \n/**\n * The application that created the content, for example `Billing 4.2`.\n * The producer is always `RentnerPDF` with its version.\n */\ncreator?: string, \n/**\n * Creation date, for example `2026-12-01T09:30:00Z`: a date\n * (`YYYY-MM-DD`) or a date and time (`THH:MM`, optional `:SS` and\n * fraction, which is dropped) with `Z` or an offset (`+01:00`). There is\n * no default, so the same input always gives the same bytes.\n */\ncreationDate?: string, };\n\nexport type Standard = \"pdf-a-2b\" | \"pdf-a-2u\" | \"pdf-a-3b\" | \"pdf-a-3u\" | \"pdf-ua-1\";\n\nexport type Attachment = { \n/**\n * Index of the file's bytes in the asset buffers passed next to the\n * JSON (D-06); an attachment needs a buffer no node uses.\n */\nasset: number, \n/**\n * The file name viewers show and save the file as, for example\n * `factur-x.xml`; unique in the document.\n */\nname: string, \n/**\n * MIME type, for example `text/xml` or `application/pdf`. Required by\n * PDF/A-3.\n */\nmimeType?: string, \n/**\n * A description viewers show next to the file. Required by PDF/A-3.\n */\ndescription?: string, \n/**\n * How the file relates to the document (`/AFRelationship`); default\n * `Unspecified`. Written in PDF/A-3, whose associated files carry it;\n * other PDFs (PDF 1.7) have no associated files.\n */\nrelationship?: Relationship, \n/**\n * The file's modification date, in the format of `meta.creationDate`.\n * The engine never reads the clock: without it the file has no date,\n * except in PDF/A-3, which requires one and gets the document's\n * `creationDate`.\n */\nmodificationDate?: string, };\n\nexport type Relationship = \"Source\" | \"Data\" | \"Alternative\" | \"Supplement\" | \"Unspecified\";\n\nexport type FacturX = { \n/**\n * The profile of the invoice XML.\n */\nconformanceLevel: FacturXLevel, \n/**\n * The attachment that holds the invoice XML; default `factur-x.xml`\n * (XRechnung in ZUGFeRD uses `xrechnung.xml`).\n */\ndocumentFileName?: string, };\n\nexport type FacturXLevel = \"MINIMUM\" | \"BASIC WL\" | \"BASIC\" | \"EN 16931\" | \"EXTENDED\" | \"XRECHNUNG\";\n\nexport type Page = { size?: PageSize, orientation?: Orientation, \n/**\n * Tailwind CSS v4 utility classes for the page box, for example `p-page`\n * for the page margins or `bg-paper`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * A page of an existing PDF drawn behind the content of every page of\n * this template, for example company stationery.\n */\nletterhead?: Letterhead, \n/**\n * Content at the top of every page's content box, laid out at the\n * content width; placeholders in it show each page's values.\n */\nheader?: Node, \n/**\n * Content at the bottom of every page's content box.\n */\nfooter?: Node, \n/**\n * Overrides for the template's first page.\n */\nfirst?: PageVariant, \n/**\n * Overrides for odd pages (page 1, 3, … of the document).\n */\nodd?: PageVariant, \n/**\n * Overrides for even pages of the document.\n */\neven?: PageVariant, \n/**\n * Overrides for the template's last page, the page where its content\n * ends.\n */\nlast?: PageVariant, \n/**\n * Restarts or restyles the page numbers from this template on.\n */\nnumbering?: PageNumbering, children?: ReadonlyArray<Node>, };\n\nexport type PageVariant = { \n/**\n * The header of these pages; `null` for none.\n */\nheader?: Node | null, \n/**\n * The footer of these pages; `null` for none.\n */\nfooter?: Node | null, \n/**\n * The letterhead of these pages; `null` for none.\n */\nletterhead?: Letterhead | null, };\n\nexport type PageNumbering = { \n/**\n * The number of the template's first page; without it, numbering\n * continues from the previous page. From 1.\n */\nstart?: number, \n/**\n * How `pageNumber` placeholders and the PDF page labels write the\n * numbers; default decimal.\n */\nformat?: PageNumberFormat, };\n\nexport type PageNumberFormat = \"decimal\" | \"lower-roman\" | \"upper-roman\" | \"lower-alpha\" | \"upper-alpha\";\n\nexport type Letterhead = { \n/**\n * Index of the PDF file in the asset buffers passed next to the JSON\n * (D-06).\n */\nasset: number, \n/**\n * Page of the PDF, from 0; default 0.\n */\npage?: number, };\n\nexport type PageSize = NamedPageSize | CustomPageSize;\n\nexport type NamedPageSize = \"A3\" | \"A4\" | \"A5\" | \"Letter\" | \"Legal\";\n\nexport type CustomPageSize = { width: number, height: number, };\n\nexport type Orientation = \"portrait\" | \"landscape\";\n\nexport type Dir = \"ltr\" | \"rtl\" | \"auto\";\n\nexport type Node = { \"t\": \"view\" } & ViewNode | { \"t\": \"text\" } & TextNode | { \"t\": \"image\" } & ImageNode | { \"t\": \"svg\" } & SvgNode | { \"t\": \"table\" } & TableNode;\n\nexport type ViewNode = { children?: ReadonlyArray<Node>, \n/**\n * Tailwind CSS v4 utility classes, for example `flex gap-4`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `section`, `article`, `part`, `div`,\n * `blockquote`, `caption`, `figure` (with `alt`), `list`, `listitem`,\n * `label`, `p`, `h1`–`h6`, `presentation` (no element of its own, the\n * default) or `artifact` (decoration: the subtree is left out of the\n * structure).\n */\nrole?: string, \n/**\n * Replacement text for assistive technology; describes a `figure`.\n */\nalt?: string, \n/**\n * Language of this subtree as a BCP 47 tag.\n */\nlang?: string, \n/**\n * Base direction of this subtree.\n */\ndir?: Dir, \n/**\n * Anchor name that links (`#id`) and the outline point to; unique in\n * the document.\n */\nid?: string, \n/**\n * Makes the box a link: `#id` jumps to the node with that `id`; an\n * `http`, `https`, `mailto` or `tel` URI opens in the viewer's\n * application. Each page fragment of the box is clickable.\n */\nhref?: string, bookmark?: false | Bookmark, \n/**\n * Running markers set where the box starts (`{ name, value }`), shown\n * by `marker` placeholders in headers and footers.\n */\nmarkers?: ReadonlyArray<MarkerSet>, };\n\nexport type TextNode = { \n/**\n * The text, or strings and placeholders (`pageNumber`, `totalPages`,\n * `marker`) that the engine fills per page.\n */\ntext: TextContent, \n/**\n * Tailwind CSS v4 utility classes, for example `text-sm text-gray-600`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `p` (the default), `h1`–`h6`,\n * `caption`, `blockquote`, `code`, `label` (a list item's bullet or\n * number), `presentation` (the text belongs to the enclosing element)\n * or `artifact` (decoration, left out of the structure).\n */\nrole?: string, \n/**\n * Language of this text as a BCP 47 tag.\n */\nlang?: string, \n/**\n * Base direction of this text; `auto` detects it per line.\n */\ndir?: Dir, \n/**\n * Replacement text for assistive technology.\n */\nalt?: string, \n/**\n * Anchor name that links (`#id`) and the outline point to; unique in\n * the document.\n */\nid?: string, bookmark?: false | Bookmark, \n/**\n * Running markers set where the text starts; a marker without a value\n * takes the text.\n */\nmarkers?: ReadonlyArray<MarkerSet>, };\n\nexport type TextContent = string | ReadonlyArray<TextPart>;\n\nexport type TextPart = string | Placeholder;\n\nexport type Placeholder = { \"t\": \"pageNumber\" } & PageNumberField | { \"t\": \"totalPages\" } & TotalPagesField | { \"t\": \"marker\" } & MarkerField;\n\nexport type PageNumberField = { \n/**\n * How the number is written; default the page template's\n * `numbering.format`, else decimal.\n */\nformat?: PageNumberFormat, };\n\nexport type TotalPagesField = { \n/**\n * Default `document`.\n */\nscope?: PageScope, \n/**\n * How the count is written; default decimal.\n */\nformat?: PageNumberFormat, };\n\nexport type PageScope = \"document\" | \"section\";\n\nexport type MarkerField = { \n/**\n * The marker's name, as content nodes set it (`markers`).\n */\nname: string, \n/**\n * Which value: default `first`.\n */\nselect?: MarkerSelect, };\n\nexport type MarkerSelect = \"first\" | \"last\" | \"start\" | \"first-except\";\n\nexport type MarkerSet = { name: string, \n/**\n * The marker's value; a text node defaults to its text, other nodes\n * need one.\n */\nvalue?: string, };\n\nexport type ImageNode = { \n/**\n * Index of the image bytes in the asset buffers passed next to the\n * JSON; bytes never travel inside the IR (D-06).\n */\nasset: number, \n/**\n * Replacement text for assistive technology.\n */\nalt?: string, \n/**\n * Tailwind CSS v4 utility classes, for example `w-32 object-contain`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `figure` (the default) or\n * `artifact` for a decorative image, which needs no `alt`.\n */\nrole?: string, \n/**\n * Anchor name that links (`#id`) and the outline point to; unique in\n * the document.\n */\nid?: string, bookmark?: false | Bookmark, };\n\nexport type SvgNode = { \n/**\n * Index of the SVG markup (UTF-8) in the asset buffers passed next to\n * the JSON (D-06).\n */\nasset: number, \n/**\n * Replacement text for assistive technology.\n */\nalt?: string, \n/**\n * Tailwind CSS v4 utility classes, for example `w-48 object-contain`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `figure` (the default) or\n * `artifact` for a decorative graphic, which needs no `alt`.\n */\nrole?: string, \n/**\n * Anchor name that links (`#id`) and the outline point to; unique in\n * the document.\n */\nid?: string, bookmark?: false | Bookmark, };\n\nexport type Bookmark = { \n/**\n * The entry's text; text nodes default to their text, other nodes\n * need one.\n */\ntitle?: string, \n/**\n * Nesting level from 1; defaults to the heading level of a heading,\n * else 1.\n */\nlevel?: number, };\n\nexport type TableNode = { children?: ReadonlyArray<TableChild>, \n/**\n * Column descriptions in order. Columns without one (or tables\n * without `columns`) are `auto`; the column count is the larger of\n * this list and the widest row.\n */\ncolumns?: ReadonlyArray<TableColumn>, \n/**\n * Classes every cell gets before its own `className`, including the\n * cells of generated running-total rows, for example `px-2 py-1`.\n */\ncellClassName?: string, \n/**\n * Repeat the header rows at the top of every page the table spans.\n * Default `true`.\n */\nrepeatHeader?: boolean, \n/**\n * Repeat the footer rows at the bottom of every page the table spans.\n * Default `true`; with `false` they appear once, after the last body\n * row. Data tables: repeats the `totals` row, default `false` (it\n * holds the grand totals).\n */\nrepeatFooter?: boolean, \n/**\n * Carried-forward and brought-forward rows with the running sums of\n * the `sum` columns at every page break of the table.\n */\nrunningTotals?: RunningTotals, \n/**\n * Makes this a data-driven table with this many body rows, whose\n * cells the columns reference in the document's columnar channel\n * (`text` and `values`). A data table has no `children`.\n */\nrows?: number, \n/**\n * Data tables: classes of every body row, for example `odd:bg-gray-50`;\n * `first:`, `last:`, `odd:` and `even:` count the body rows.\n */\nrowClassName?: string, \n/**\n * Data tables: classes of the header row built from the columns'\n * `header`s, for example `font-bold border-b`.\n */\nheaderClassName?: string, \n/**\n * Data tables: a row after the body rows with the totals of the\n * `sum` columns.\n */\ntotals?: TableTotals, \n/**\n * Tailwind CSS v4 utility classes of the table box, for example `text-sm`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `table` (the default),\n * `presentation` for a table that only arranges content (its cells'\n * content belongs to the enclosing element) or `artifact`.\n */\nrole?: string, \n/**\n * Language of this subtree as a BCP 47 tag.\n */\nlang?: string, \n/**\n * Base direction: `rtl` places the first column at the right.\n */\ndir?: Dir, \n/**\n * Anchor name that links (`#id`) and the outline point to; unique in\n * the document.\n */\nid?: string, bookmark?: false | Bookmark, };\n\nexport type TableChild = { \"t\": \"row\" } & RowNode;\n\nexport type TableColumn = { \n/**\n * Points as a number, or `\"auto\"` (default; sized by the content),\n * a fraction of the free space such as `\"1fr\"`, a CSS length such as\n * `\"30mm\"`, or a percentage of the table width. A column is never\n * narrower than its longest word.\n */\nwidth?: StyleLength, \n/**\n * Default text alignment of the column's cells; a cell's own classes win.\n */\nalign?: TextAlign, \n/**\n * Sum the cells' `value`s in the running totals.\n */\nsum?: boolean, \n/**\n * How the cells' `value`s and the running sums are written.\n */\nformat?: NumberFormat, \n/**\n * Data tables: the row property the column shows, for messages.\n */\nkey?: string, \n/**\n * Data tables: the text of the column's header cell.\n */\nheader?: string, \n/**\n * Data tables: classes of the column's body cells, after the table's\n * `cellClassName`.\n */\nclassName?: string, \n/**\n * Data tables: the column's text cells, `len` consecutive entries of\n * the channel's `ends` from `at`.\n */\ntext?: ChannelRange, \n/**\n * Data tables: the column's number cells in integer minor units,\n * `len` consecutive entries of the channel's `values` from `at`.\n */\nvalues?: ChannelRange, };\n\nexport type NumberFormat = { \n/**\n * Digits after the decimal separator, 0 to 18. Default 0.\n */\nminorUnits?: number, \n/**\n * Decimal separator. Default `.`.\n */\ndecimal?: string, \n/**\n * Thousands separator. Default none.\n */\ngroup?: string, \n/**\n * Text before the number, after the sign.\n */\nprefix?: string, \n/**\n * Text after the number.\n */\nsuffix?: string, };\n\nexport type RunningTotals = { \n/**\n * Label of the row at the bottom of a page, for example `Übertrag`.\n */\ncarryForwardLabel: string, \n/**\n * Label of the row at the top of the next page.\n */\nbroughtForwardLabel: string, \n/**\n * Classes of both generated rows, for example `font-semibold bg-gray-100`.\n */\nclassName?: string, };\n\nexport type RowNode = { children?: ReadonlyArray<RowChild>, \n/**\n * A header row: placed before the body rows and repeated on every page.\n */\nheader?: boolean, \n/**\n * A footer row: placed after the body rows and repeated on every page.\n */\nfooter?: boolean, \n/**\n * Tailwind CSS v4 utility classes. `odd:`, `even:`, `first:` and\n * `last:` count rows within their header, body or footer section.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, };\n\nexport type RowChild = { \"t\": \"cell\" } & CellNode;\n\nexport type CellNode = { children?: ReadonlyArray<Node>, \n/**\n * Columns the cell spans, 1 to 1,000. Default 1.\n */\ncolSpan?: number, \n/**\n * Rows the cell spans within its section, 1 to 65,534. Default 1.\n */\nrowSpan?: number, \n/**\n * A number in integer minor units (for example cents), at most\n * 2^53 - 1 in magnitude. A cell without children shows it with its\n * column's `format`; `sum` columns add it to the running totals.\n */\nvalue?: number, \n/**\n * Tailwind CSS v4 utility classes, for example `px-2 align-top`.\n */\nclassName?: string, \n/**\n * Typed style properties; they win over `className` like inline styles.\n */\nstyle?: Style, \n/**\n * Structure role for tagged PDF: `th` for a header cell or `td` for a\n * data cell. Cells of header rows default to `th`, other cells to `td`.\n */\nrole?: string, \n/**\n * Header cells: the cells the header applies to. Default `col` in\n * header rows and `row` elsewhere.\n */\nscope?: HeaderScope, \n/**\n * Language of this cell as a BCP 47 tag.\n */\nlang?: string, \n/**\n * Base direction of this cell's content.\n */\ndir?: Dir, };\n\nexport type HeaderScope = \"col\" | \"row\" | \"both\";\n\nexport type TableTotals = { \n/**\n * For example `Total`.\n */\nlabel?: string, \n/**\n * Classes of the totals row, for example `font-bold border-t`.\n */\nclassName?: string, };\n\nexport type Style = { display?: Display, width?: StyleLength, height?: StyleLength, minWidth?: StyleLength, minHeight?: StyleLength, maxWidth?: StyleLength, maxHeight?: StyleLength, padding?: StyleLength, paddingTop?: StyleLength, paddingRight?: StyleLength, paddingBottom?: StyleLength, paddingLeft?: StyleLength, margin?: StyleLength, marginTop?: StyleLength, marginRight?: StyleLength, marginBottom?: StyleLength, marginLeft?: StyleLength, flexDirection?: FlexDirection, flexWrap?: FlexWrap, flexGrow?: number, flexShrink?: number, flexBasis?: StyleLength, alignItems?: AlignItems, alignSelf?: AlignSelf, justifyContent?: JustifyContent, gap?: StyleLength, rowGap?: StyleLength, columnGap?: StyleLength, \n/**\n * A CSS track list, for example `\"30mm 1fr auto\"` or `\"repeat(3, 1fr)\"`.\n */\ngridTemplateColumns?: string, gridTemplateRows?: string, \n/**\n * A CSS color: hex, `rgb()`, `hsl()`, `oklch()`, `oklab()`,\n * `color-mix()` or a basic named color.\n */\nbackgroundColor?: string, borderWidth?: StyleLength, borderColor?: string, borderStyle?: BorderStyle, borderRadius?: StyleLength, \n/**\n * 0 to 1.\n */\nopacity?: number, color?: string, \n/**\n * A CSS font family list, for example `\"Inter, sans-serif\"`.\n */\nfontFamily?: string, fontSize?: StyleLength, \n/**\n * 1 to 1000; 400 is normal, 700 bold.\n */\nfontWeight?: number, fontStyle?: FontStyle, \n/**\n * Width of the face: condensed or expanded faces, the `wdth` axis of\n * variable fonts.\n */\nfontStretch?: FontStretch, \n/**\n * Axis positions of variable fonts as CSS `font-variation-settings`,\n * for example `\"'wght' 650, 'GRAD' 50\"`, or `\"normal\"`.\n */\nfontVariationSettings?: string, lineHeight?: LineHeight, letterSpacing?: StyleLength, textAlign?: TextAlign, textDecoration?: TextDecoration, textTransform?: TextTransform, \n/**\n * Where words may be hyphenated; `auto` uses the patterns of the\n * node's `lang`.\n */\nhyphens?: Hyphens, \n/**\n * How lines are chosen: `pretty` breaks the whole paragraph at once\n * (Knuth–Plass), `balance` evens out the line lengths.\n */\ntextWrapStyle?: TextWrapStyle, breakBefore?: BreakBetween, breakAfter?: BreakBetween, breakInside?: BreakInside, widows?: number, orphans?: number, \n/**\n * How an image fills its content box.\n */\nobjectFit?: ObjectFit, \n/**\n * Where an image sits in its content box when it does not fill it.\n */\nobjectPosition?: ObjectPosition, \n/**\n * Vertical alignment of a table cell's content (rows pass theirs to\n * their cells); cells default to `middle`, as in HTML.\n */\nverticalAlign?: VerticalAlign, };\n\nexport type StyleLength = number | string;\n\nexport type LineHeight = number | string;\n\nexport type FontStretch = number | string;\n\nexport type Display = \"block\" | \"inline\" | \"inline-block\" | \"flex\" | \"inline-flex\" | \"grid\" | \"inline-grid\" | \"none\";\n\nexport type FlexDirection = \"row\" | \"row-reverse\" | \"column\" | \"column-reverse\";\n\nexport type FlexWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n\nexport type AlignItems = \"start\" | \"end\" | \"flex-start\" | \"flex-end\" | \"center\" | \"baseline\" | \"stretch\";\n\nexport type AlignSelf = \"auto\" | \"start\" | \"end\" | \"flex-start\" | \"flex-end\" | \"center\" | \"baseline\" | \"stretch\";\n\nexport type JustifyContent = \"normal\" | \"start\" | \"end\" | \"flex-start\" | \"flex-end\" | \"center\" | \"space-between\" | \"space-around\" | \"space-evenly\" | \"stretch\";\n\nexport type BorderStyle = \"solid\" | \"dashed\" | \"dotted\" | \"double\" | \"hidden\" | \"none\";\n\nexport type FontStyle = \"normal\" | \"italic\";\n\nexport type TextAlign = \"left\" | \"center\" | \"right\" | \"justify\" | \"start\" | \"end\";\n\nexport type TextDecoration = \"none\" | \"underline\" | \"overline\" | \"line-through\";\n\nexport type TextTransform = \"none\" | \"uppercase\" | \"lowercase\" | \"capitalize\";\n\nexport type Hyphens = \"none\" | \"manual\" | \"auto\";\n\nexport type TextWrapStyle = \"auto\" | \"balance\" | \"pretty\";\n\nexport type BreakBetween = \"auto\" | \"avoid\" | \"avoid-page\" | \"page\" | \"left\" | \"right\" | \"column\" | \"all\";\n\nexport type BreakInside = \"auto\" | \"avoid\" | \"avoid-page\" | \"avoid-column\";\n\nexport type ObjectFit = \"fill\" | \"contain\" | \"cover\" | \"none\" | \"scale-down\";\n\nexport type ObjectPosition = \"center\" | \"top\" | \"bottom\" | \"left\" | \"right\" | \"top left\" | \"top right\" | \"bottom left\" | \"bottom right\";\n\nexport type VerticalAlign = \"baseline\" | \"top\" | \"middle\" | \"bottom\" | \"text-top\" | \"text-bottom\" | \"sub\" | \"super\";\n\ntype ChannelRange = { at: number, len: number, };\n\ntype DataChannel = {\n/**\n * Asset index of the text cells, concatenated as one UTF-8 buffer.\n */\ntext?: number,\n/**\n * Asset index of one `u32` per text cell: where it ends in `text`,\n * in UTF-16 code units (JavaScript string lengths) from the start.\n * A cell starts where the previous one ends.\n */\nends?: number,\n/**\n * Asset index of one `f64` per number cell: an integer in minor units\n * within ±(2^53 − 1), or NaN for an empty cell.\n */\nvalues?: number, };\n"]}
@@ -0,0 +1,9 @@
1
+ /** IR version written by this package; must match `rentnerpdf::ir::IR_VERSION`. */
2
+ export declare const IR_VERSION = 1;
3
+ /**
4
+ * Refuses an engine binding that reads another IR version than this
5
+ * package writes (a stale or mismatched install), before it renders
6
+ * anything (04 – Architecture, "IR versioning").
7
+ */
8
+ export declare function assertIrVersion(engine: string, version: number): void;
9
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../web/src/ir/version.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,eAAO,MAAM,UAAU,IAAI,CAAA;AAE3B;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAMrE"}
@@ -0,0 +1,13 @@
1
+ /** IR version written by this package; must match `rentnerpdf::ir::IR_VERSION`. */
2
+ export const IR_VERSION = 1;
3
+ /**
4
+ * Refuses an engine binding that reads another IR version than this
5
+ * package writes (a stale or mismatched install), before it renders
6
+ * anything (04 – Architecture, "IR versioning").
7
+ */
8
+ export function assertIrVersion(engine, version) {
9
+ if (version !== IR_VERSION) {
10
+ throw new Error(`the ${engine} engine reads IR version ${version}, but this package writes version ${IR_VERSION}; install the same version of @rentnerkev/pdf and its engine packages`);
11
+ }
12
+ }
13
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../web/src/ir/version.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAA;AAE3B;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,MAAc,EAAE,OAAe;IAC3D,IAAI,OAAO,KAAK,UAAU,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CACX,OAAO,MAAM,4BAA4B,OAAO,qCAAqC,UAAU,uEAAuE,CACzK,CAAA;IACL,CAAC;AACL,CAAC","sourcesContent":["/** IR version written by this package; must match `rentnerpdf::ir::IR_VERSION`. */\nexport const IR_VERSION = 1\n\n/**\n * Refuses an engine binding that reads another IR version than this\n * package writes (a stale or mismatched install), before it renders\n * anything (04 – Architecture, \"IR versioning\").\n */\nexport function assertIrVersion(engine: string, version: number): void {\n if (version !== IR_VERSION) {\n throw new Error(\n `the ${engine} engine reads IR version ${version}, but this package writes version ${IR_VERSION}; install the same version of @rentnerkev/pdf and its engine packages`,\n )\n }\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import type { PdfNode } from './element.ts';
2
+ export interface ProviderProps<T> {
3
+ readonly value: T;
4
+ readonly children?: PdfNode;
5
+ }
6
+ /** Renders its children with `value` as the context's current value. */
7
+ export type Provider<T> = (props: ProviderProps<T>) => PdfNode;
8
+ /**
9
+ * A context from `createContext`. Render the context itself or its
10
+ * `Provider` (React-compatible alias) to provide a value.
11
+ */
12
+ export interface Context<T> extends Provider<T> {
13
+ readonly Provider: Provider<T>;
14
+ readonly defaultValue: T;
15
+ /** Name shown in component stacks. */
16
+ displayName?: string;
17
+ }
18
+ /** Immutable chain of provided values, captured per element while rendering. */
19
+ export interface Scope {
20
+ readonly context: Provider<unknown>;
21
+ readonly value: unknown;
22
+ readonly parent: Scope | null;
23
+ }
24
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../web/src/jsx/Types/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,WAAW,aAAa,CAAC,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;IACjB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,wEAAwE;AACxE,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,KAAK,OAAO,CAAA;AAE9D;;;GAGG;AACH,MAAM,WAAW,OAAO,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9B,QAAQ,CAAC,YAAY,EAAE,CAAC,CAAA;IACxB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,gFAAgF;AAChF,MAAM,WAAW,KAAK;IAClB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI,CAAA;CAChC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../web/src/jsx/Types/context.ts"],"names":[],"mappings":"","sourcesContent":["import type { PdfNode } from './element.ts'\n\nexport interface ProviderProps<T> {\n readonly value: T\n readonly children?: PdfNode\n}\n\n/** Renders its children with `value` as the context's current value. */\nexport type Provider<T> = (props: ProviderProps<T>) => PdfNode\n\n/**\n * A context from `createContext`. Render the context itself or its\n * `Provider` (React-compatible alias) to provide a value.\n */\nexport interface Context<T> extends Provider<T> {\n readonly Provider: Provider<T>\n readonly defaultValue: T\n /** Name shown in component stacks. */\n displayName?: string\n}\n\n/** Immutable chain of provided values, captured per element while rendering. */\nexport interface Scope {\n readonly context: Provider<unknown>\n readonly value: unknown\n readonly parent: Scope | null\n}\n"]}
@@ -0,0 +1,30 @@
1
+ /** Where a JSX element was written; recorded by the development JSX runtime. */
2
+ export interface SourceLocation {
3
+ readonly fileName: string;
4
+ readonly lineNumber: number;
5
+ readonly columnNumber?: number;
6
+ }
7
+ /** A JSX key. RentnerPDF accepts keys for React compatibility and ignores them. */
8
+ export type Key = string | number | bigint;
9
+ /**
10
+ * A function component. Components run lazily while a document renders, so
11
+ * they may be `async` and may read context with `useContext`.
12
+ */
13
+ export type Component<P> = (props: P) => PdfNode | Promise<PdfNode>;
14
+ /**
15
+ * A lazy element: JSX only records the component and its props. Components
16
+ * run when the document renders (`engine.render`, `render`, `renderToIr`).
17
+ */
18
+ export interface PdfElement {
19
+ readonly $$typeof: symbol;
20
+ readonly type: Component<never>;
21
+ readonly props: object;
22
+ /** JSX source location; set by the development runtime only. */
23
+ readonly source?: SourceLocation;
24
+ }
25
+ /**
26
+ * Anything a component may return or pass as children. `null`, `undefined`
27
+ * and booleans render nothing; promises are awaited by `render()`.
28
+ */
29
+ export type PdfNode = PdfElement | string | number | bigint | boolean | null | undefined | Promise<PdfNode> | readonly PdfNode[];
30
+ //# sourceMappingURL=element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../web/src/jsx/Types/element.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CACjC;AAED,mFAAmF;AACnF,MAAM,MAAM,GAAG,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAE1C;;;GAGG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAEnE;;;GAGG;AACH,MAAM,WAAW,UAAU;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,KAAK,CAAC,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,gEAAgE;IAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,OAAO,GACb,UAAU,GACV,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,OAAO,CAAC,GAChB,SAAS,OAAO,EAAE,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.js","sourceRoot":"","sources":["../../../web/src/jsx/Types/element.ts"],"names":[],"mappings":"","sourcesContent":["/** Where a JSX element was written; recorded by the development JSX runtime. */\nexport interface SourceLocation {\n readonly fileName: string\n readonly lineNumber: number\n readonly columnNumber?: number\n}\n\n/** A JSX key. RentnerPDF accepts keys for React compatibility and ignores them. */\nexport type Key = string | number | bigint\n\n/**\n * A function component. Components run lazily while a document renders, so\n * they may be `async` and may read context with `useContext`.\n */\nexport type Component<P> = (props: P) => PdfNode | Promise<PdfNode>\n\n/**\n * A lazy element: JSX only records the component and its props. Components\n * run when the document renders (`engine.render`, `render`, `renderToIr`).\n */\nexport interface PdfElement {\n readonly $$typeof: symbol\n readonly type: Component<never>\n readonly props: object\n /** JSX source location; set by the development runtime only. */\n readonly source?: SourceLocation\n}\n\n/**\n * Anything a component may return or pass as children. `null`, `undefined`\n * and booleans render nothing; promises are awaited by `render()`.\n */\nexport type PdfNode =\n | PdfElement\n | string\n | number\n | bigint\n | boolean\n | null\n | undefined\n | Promise<PdfNode>\n | readonly PdfNode[]\n"]}
@@ -0,0 +1,61 @@
1
+ import type { SourceLocator } from '../../engine/Types/errors.ts';
2
+ import type { Placeholder } from '../../ir/ir.generated.ts';
3
+ import type { CellNodeInput, DocumentInput, NodeInput, PageInput, RowNodeInput } from '../../ir/Types/input.ts';
4
+ import type { PdfElement } from './element.ts';
5
+ /** A rendered child before its parent places it. */
6
+ export type Item = {
7
+ readonly kind: 'document';
8
+ readonly value: DocumentInput;
9
+ readonly element: PdfElement;
10
+ } | {
11
+ readonly kind: 'page';
12
+ readonly value: PageInput;
13
+ readonly element: PdfElement;
14
+ } | {
15
+ readonly kind: 'node';
16
+ readonly value: NodeInput;
17
+ readonly element: PdfElement;
18
+ } | {
19
+ readonly kind: 'row';
20
+ readonly value: {
21
+ t: 'row';
22
+ } & RowNodeInput;
23
+ readonly element: PdfElement;
24
+ } | {
25
+ readonly kind: 'cell';
26
+ readonly value: {
27
+ t: 'cell';
28
+ } & CellNodeInput;
29
+ readonly element: PdfElement;
30
+ } | {
31
+ readonly kind: 'field';
32
+ readonly value: Placeholder;
33
+ readonly element: PdfElement;
34
+ } | {
35
+ readonly kind: 'text';
36
+ readonly value: string;
37
+ };
38
+ /** The evaluated header and footer props of a `Page`, before it is built. */
39
+ export interface RegionItems {
40
+ readonly header?: Item[];
41
+ readonly footer?: Item[];
42
+ /** Per variant: evaluated items, or `null` for a removed header or footer. */
43
+ readonly variants: Partial<Record<'first' | 'odd' | 'even' | 'last', {
44
+ readonly header?: Item[] | null;
45
+ readonly footer?: Item[] | null;
46
+ }>>;
47
+ }
48
+ /** State of one evaluation. */
49
+ export interface Evaluation {
50
+ /** `renderSync`: async components and promise children are errors. */
51
+ readonly sync: boolean;
52
+ /** IR objects built from elements whose JSX source is known. */
53
+ elements: WeakMap<object, PdfElement> | undefined;
54
+ }
55
+ /** An evaluated element tree. */
56
+ export interface Evaluated {
57
+ readonly document: DocumentInput;
58
+ /** Finds the JSX source of an IR path; absent without source locations. */
59
+ readonly locate?: SourceLocator;
60
+ }
61
+ //# sourceMappingURL=evaluate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../../web/src/jsx/Types/evaluate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAC3D,OAAO,KAAK,EACR,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,YAAY,EACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,oDAAoD;AACpD,MAAM,MAAM,IAAI,GACV;IACI,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAA;CAC/B,GACD;IACI,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,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;AAED,+BAA+B;AAC/B,MAAM,WAAW,UAAU;IACvB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,gEAAgE;IAChE,QAAQ,EAAE,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,SAAS,CAAA;CACpD;AAED,iCAAiC;AACjC,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;IAChC,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAClC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=evaluate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate.js","sourceRoot":"","sources":["../../../web/src/jsx/Types/evaluate.ts"],"names":[],"mappings":"","sourcesContent":["import type { SourceLocator } from '../../engine/Types/errors.ts'\nimport type { Placeholder } from '../../ir/ir.generated.ts'\nimport type {\n CellNodeInput,\n DocumentInput,\n NodeInput,\n PageInput,\n RowNodeInput,\n} from '../../ir/Types/input.ts'\nimport type { PdfElement } from './element.ts'\n\n/** A rendered child before its parent places it. */\nexport type Item =\n | {\n readonly kind: 'document'\n readonly value: DocumentInput\n readonly element: PdfElement\n }\n | {\n readonly kind: 'page'\n readonly value: PageInput\n readonly element: PdfElement\n }\n | {\n readonly kind: 'node'\n readonly value: NodeInput\n readonly element: PdfElement\n }\n | {\n readonly kind: 'row'\n readonly value: { t: 'row' } & RowNodeInput\n readonly element: PdfElement\n }\n | {\n readonly kind: 'cell'\n readonly value: { t: 'cell' } & CellNodeInput\n readonly element: PdfElement\n }\n | {\n readonly kind: 'field'\n readonly value: Placeholder\n readonly element: PdfElement\n }\n | { readonly kind: 'text'; readonly value: string }\n\n/** The evaluated header and footer props of a `Page`, before it is built. */\nexport interface RegionItems {\n readonly header?: Item[]\n readonly footer?: Item[]\n /** Per variant: evaluated items, or `null` for a removed header or footer. */\n readonly variants: Partial<\n Record<\n 'first' | 'odd' | 'even' | 'last',\n {\n readonly header?: Item[] | null\n readonly footer?: Item[] | null\n }\n >\n >\n}\n\n/** State of one evaluation. */\nexport interface Evaluation {\n /** `renderSync`: async components and promise children are errors. */\n readonly sync: boolean\n /** IR objects built from elements whose JSX source is known. */\n elements: WeakMap<object, PdfElement> | undefined\n}\n\n/** An evaluated element tree. */\nexport interface Evaluated {\n readonly document: DocumentInput\n /** Finds the JSX source of an IR path; absent without source locations. */\n readonly locate?: SourceLocator\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import type { Component, Key, PdfElement } from './element.ts';
2
+ export declare namespace JSX {
3
+ /** What a JSX expression evaluates to: a lazy element. */
4
+ type Element = PdfElement;
5
+ /** Components may return any node, including a promise (async components). */
6
+ type ElementType = Component<never>;
7
+ interface ElementChildrenAttribute {
8
+ children: unknown;
9
+ }
10
+ interface IntrinsicAttributes {
11
+ key?: Key | null | undefined;
12
+ }
13
+ /** RentnerPDF has no intrinsic (lowercase) elements. */
14
+ type IntrinsicElements = Record<never, never>;
15
+ }
16
+ //# sourceMappingURL=jsx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../../../web/src/jsx/Types/jsx.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAI9D,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IACzB,0DAA0D;IAC1D,KAAK,OAAO,GAAG,UAAU,CAAA;IACzB,8EAA8E;IAC9E,KAAK,WAAW,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;IACnC,UAAU,wBAAwB;QAC9B,QAAQ,EAAE,OAAO,CAAA;KACpB;IACD,UAAU,mBAAmB;QACzB,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAA;KAC/B;IACD,wDAAwD;IACxD,KAAK,iBAAiB,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;CAChD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=jsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx.js","sourceRoot":"","sources":["../../../web/src/jsx/Types/jsx.ts"],"names":[],"mappings":"","sourcesContent":["import type { Component, Key, PdfElement } from './element.ts'\n\n// TypeScript reads the JSX types from the runtime module that\n// `jsxImportSource` selects; both runtimes re-export this namespace.\nexport declare namespace JSX {\n /** What a JSX expression evaluates to: a lazy element. */\n type Element = PdfElement\n /** Components may return any node, including a promise (async components). */\n type ElementType = Component<never>\n interface ElementChildrenAttribute {\n children: unknown\n }\n interface IntrinsicAttributes {\n key?: Key | null | undefined\n }\n /** RentnerPDF has no intrinsic (lowercase) elements. */\n type IntrinsicElements = Record<never, never>\n}\n"]}
@@ -0,0 +1,21 @@
1
+ import type { Context, Scope } from './Types/context.ts';
2
+ /**
3
+ * Creates a context with React-compatible naming, without React. Provide a
4
+ * value with `<MyContext value={…}>` (or `<MyContext.Provider value={…}>`)
5
+ * and read it with `useContext(MyContext)`.
6
+ */
7
+ export declare function createContext<T>(defaultValue: T): Context<T>;
8
+ /** Whether a component type is a context from `createContext`. */
9
+ export declare function isContext(type: unknown): type is Context<unknown>;
10
+ /**
11
+ * Returns the value of the nearest provider above the calling component, or
12
+ * the context's default value.
13
+ *
14
+ * Call it while the component runs. In an `async` component, read context
15
+ * before the first `await`: afterwards the component is no longer rendering
16
+ * and `useContext` throws.
17
+ */
18
+ export declare function useContext<T>(context: Context<T>): T;
19
+ /** Runs a component with `scope` as the provided context values. */
20
+ export declare function runInScope<R>(scope: Scope | null, run: () => R): R;
21
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../web/src/jsx/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAiB,KAAK,EAAE,MAAM,oBAAoB,CAAA;AASvE;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAI5D;AAED,kEAAkE;AAClE,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,CAEjE;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAWpD;AAED,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,CAQlE"}
@@ -0,0 +1,49 @@
1
+ const CONTEXT = Symbol.for('rentnerpdf.context');
2
+ // `undefined` while no component runs. Components run synchronously, so the
3
+ // scope of the running component is exact; after an `await` it is gone.
4
+ let current;
5
+ /**
6
+ * Creates a context with React-compatible naming, without React. Provide a
7
+ * value with `<MyContext value={…}>` (or `<MyContext.Provider value={…}>`)
8
+ * and read it with `useContext(MyContext)`.
9
+ */
10
+ export function createContext(defaultValue) {
11
+ const provide = (props) => props.children;
12
+ Object.defineProperty(provide, CONTEXT, { value: true });
13
+ return Object.assign(provide, { Provider: provide, defaultValue });
14
+ }
15
+ /** Whether a component type is a context from `createContext`. */
16
+ export function isContext(type) {
17
+ return typeof type === 'function' && CONTEXT in type;
18
+ }
19
+ /**
20
+ * Returns the value of the nearest provider above the calling component, or
21
+ * the context's default value.
22
+ *
23
+ * Call it while the component runs. In an `async` component, read context
24
+ * before the first `await`: afterwards the component is no longer rendering
25
+ * and `useContext` throws.
26
+ */
27
+ export function useContext(context) {
28
+ if (current === undefined) {
29
+ throw new Error('useContext() must be called while a component renders. In an async component, read context before the first await.');
30
+ }
31
+ for (let scope = current; scope !== null; scope = scope.parent) {
32
+ // The provider of `context` only ever stores values of type T.
33
+ if (scope.context === context)
34
+ return scope.value;
35
+ }
36
+ return context.defaultValue;
37
+ }
38
+ /** Runs a component with `scope` as the provided context values. */
39
+ export function runInScope(scope, run) {
40
+ const previous = current;
41
+ current = scope;
42
+ try {
43
+ return run();
44
+ }
45
+ finally {
46
+ current = previous;
47
+ }
48
+ }
49
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../web/src/jsx/context.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AAEhD,4EAA4E;AAC5E,wEAAwE;AACxE,IAAI,OAAiC,CAAA;AAErC;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAI,YAAe;IAC5C,MAAM,OAAO,GAAG,CAAC,KAAuB,EAAW,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAA;IACpE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IACxD,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAA;AACtE,CAAC;AAED,kEAAkE;AAClE,MAAM,UAAU,SAAS,CAAC,IAAa;IACnC,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,OAAO,IAAI,IAAI,CAAA;AACxD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAI,OAAmB;IAC7C,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxB,MAAM,IAAI,KAAK,CACX,oHAAoH,CACvH,CAAA;IACL,CAAC;IACD,KAAK,IAAI,KAAK,GAAG,OAAO,EAAE,KAAK,KAAK,IAAI,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;QAC7D,+DAA+D;QAC/D,IAAI,KAAK,CAAC,OAAO,KAAK,OAAO;YAAE,OAAO,KAAK,CAAC,KAAU,CAAA;IAC1D,CAAC;IACD,OAAO,OAAO,CAAC,YAAY,CAAA;AAC/B,CAAC;AAED,oEAAoE;AACpE,MAAM,UAAU,UAAU,CAAI,KAAmB,EAAE,GAAY;IAC3D,MAAM,QAAQ,GAAG,OAAO,CAAA;IACxB,OAAO,GAAG,KAAK,CAAA;IACf,IAAI,CAAC;QACD,OAAO,GAAG,EAAE,CAAA;IAChB,CAAC;YAAS,CAAC;QACP,OAAO,GAAG,QAAQ,CAAA;IACtB,CAAC;AACL,CAAC","sourcesContent":["import type { Context, ProviderProps, Scope } from './Types/context.ts'\nimport type { PdfNode } from './Types/element.ts'\n\nconst CONTEXT = Symbol.for('rentnerpdf.context')\n\n// `undefined` while no component runs. Components run synchronously, so the\n// scope of the running component is exact; after an `await` it is gone.\nlet current: Scope | null | undefined\n\n/**\n * Creates a context with React-compatible naming, without React. Provide a\n * value with `<MyContext value={…}>` (or `<MyContext.Provider value={…}>`)\n * and read it with `useContext(MyContext)`.\n */\nexport function createContext<T>(defaultValue: T): Context<T> {\n const provide = (props: ProviderProps<T>): PdfNode => props.children\n Object.defineProperty(provide, CONTEXT, { value: true })\n return Object.assign(provide, { Provider: provide, defaultValue })\n}\n\n/** Whether a component type is a context from `createContext`. */\nexport function isContext(type: unknown): type is Context<unknown> {\n return typeof type === 'function' && CONTEXT in type\n}\n\n/**\n * Returns the value of the nearest provider above the calling component, or\n * the context's default value.\n *\n * Call it while the component runs. In an `async` component, read context\n * before the first `await`: afterwards the component is no longer rendering\n * and `useContext` throws.\n */\nexport function useContext<T>(context: Context<T>): T {\n if (current === undefined) {\n throw new Error(\n 'useContext() must be called while a component renders. In an async component, read context before the first await.',\n )\n }\n for (let scope = current; scope !== null; scope = scope.parent) {\n // The provider of `context` only ever stores values of type T.\n if (scope.context === context) return scope.value as T\n }\n return context.defaultValue\n}\n\n/** Runs a component with `scope` as the provided context values. */\nexport function runInScope<R>(scope: Scope | null, run: () => R): R {\n const previous = current\n current = scope\n try {\n return run()\n } finally {\n current = previous\n }\n}\n"]}
@@ -0,0 +1,10 @@
1
+ import type { Component, PdfElement, PdfNode, SourceLocation } from './Types/element.ts';
2
+ /** Creates a lazy element; the JSX runtimes call this for every tag. */
3
+ export declare function createElement<P extends object>(type: Component<P>, props: P, source?: SourceLocation): PdfElement;
4
+ /** Whether a value is an element created by JSX or `jsx()`. */
5
+ export declare function isElement(value: unknown): value is PdfElement;
6
+ /** Groups children without adding a node (`<>…</>`). */
7
+ export declare function Fragment(props: {
8
+ readonly children?: PdfNode;
9
+ }): PdfNode;
10
+ //# sourceMappingURL=element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../web/src/jsx/element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,UAAU,EACV,OAAO,EACP,cAAc,EACjB,MAAM,oBAAoB,CAAA;AAI3B,wEAAwE;AACxE,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAC1C,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAClB,KAAK,EAAE,CAAC,EACR,MAAM,CAAC,EAAE,cAAc,GACxB,UAAU,CAIZ;AAED,+DAA+D;AAC/D,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAO7D;AAED,wDAAwD;AACxD,wBAAgB,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAExE"}
@@ -0,0 +1,19 @@
1
+ const ELEMENT = Symbol.for('rentnerpdf.element');
2
+ /** Creates a lazy element; the JSX runtimes call this for every tag. */
3
+ export function createElement(type, props, source) {
4
+ return source === undefined
5
+ ? { $$typeof: ELEMENT, type, props }
6
+ : { $$typeof: ELEMENT, type, props, source };
7
+ }
8
+ /** Whether a value is an element created by JSX or `jsx()`. */
9
+ export function isElement(value) {
10
+ return (typeof value === 'object' &&
11
+ value !== null &&
12
+ '$$typeof' in value &&
13
+ value.$$typeof === ELEMENT);
14
+ }
15
+ /** Groups children without adding a node (`<>…</>`). */
16
+ export function Fragment(props) {
17
+ return props.children;
18
+ }
19
+ //# sourceMappingURL=element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element.js","sourceRoot":"","sources":["../../web/src/jsx/element.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAA;AAEhD,wEAAwE;AACxE,MAAM,UAAU,aAAa,CACzB,IAAkB,EAClB,KAAQ,EACR,MAAuB;IAEvB,OAAO,MAAM,KAAK,SAAS;QACvB,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE;QACpC,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAA;AACpD,CAAC;AAED,+DAA+D;AAC/D,MAAM,UAAU,SAAS,CAAC,KAAc;IACpC,OAAO,CACH,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,UAAU,IAAI,KAAK;QACnB,KAAK,CAAC,QAAQ,KAAK,OAAO,CAC7B,CAAA;AACL,CAAC;AAED,wDAAwD;AACxD,MAAM,UAAU,QAAQ,CAAC,KAAsC;IAC3D,OAAO,KAAK,CAAC,QAAQ,CAAA;AACzB,CAAC","sourcesContent":["import type {\n Component,\n PdfElement,\n PdfNode,\n SourceLocation,\n} from './Types/element.ts'\n\nconst ELEMENT = Symbol.for('rentnerpdf.element')\n\n/** Creates a lazy element; the JSX runtimes call this for every tag. */\nexport function createElement<P extends object>(\n type: Component<P>,\n props: P,\n source?: SourceLocation,\n): PdfElement {\n return source === undefined\n ? { $$typeof: ELEMENT, type, props }\n : { $$typeof: ELEMENT, type, props, source }\n}\n\n/** Whether a value is an element created by JSX or `jsx()`. */\nexport function isElement(value: unknown): value is PdfElement {\n return (\n typeof value === 'object' &&\n value !== null &&\n '$$typeof' in value &&\n value.$$typeof === ELEMENT\n )\n}\n\n/** Groups children without adding a node (`<>…</>`). */\nexport function Fragment(props: { readonly children?: PdfNode }): PdfNode {\n return props.children\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import type { DocumentInput } from '../ir/Types/input.ts';
2
+ import type { PdfElement } from './Types/element.ts';
3
+ import type { Evaluated } from './Types/evaluate.ts';
4
+ /** Evaluates an element tree; components may be `async`. */
5
+ export declare function evaluate(element: PdfElement): Promise<Evaluated>;
6
+ /** Evaluates an element tree synchronously; async components are errors. */
7
+ export declare function evaluateSync(element: PdfElement): Evaluated;
8
+ /**
9
+ * Evaluates a JSX element tree to the IR document the engine renders, for
10
+ * logging, snapshots or caching. Components may be `async`. Image and SVG
11
+ * nodes carry their content in `src`; the engine sends it next to the JSON.
12
+ */
13
+ export declare function renderToIr(element: PdfElement): Promise<DocumentInput>;
14
+ /** Like {@link renderToIr}, for synchronous component trees. */
15
+ export declare function renderToIrSync(element: PdfElement): DocumentInput;
16
+ //# sourceMappingURL=evaluate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluate.d.ts","sourceRoot":"","sources":["../../web/src/jsx/evaluate.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAER,aAAa,EAIhB,MAAM,sBAAsB,CAAA;AAK7B,OAAO,KAAK,EAAE,UAAU,EAAkB,MAAM,oBAAoB,CAAA;AACpE,OAAO,KAAK,EACR,SAAS,EAIZ,MAAM,qBAAqB,CAAA;AA4uB5B,4DAA4D;AAC5D,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAGtE;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,SAAS,CAW3D;AAED;;;;GAIG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAE5E;AAED,gEAAgE;AAChE,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,aAAa,CAEjE"}