@exactjs/core 0.5.1 → 0.6.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 (1172) hide show
  1. package/AGENTS.md +4 -4
  2. package/README.md +8 -6
  3. package/dist/activity.js.map +1 -1
  4. package/dist/children/composition.d.ts +34 -0
  5. package/dist/children/composition.d.ts.map +1 -0
  6. package/dist/children/composition.js +74 -0
  7. package/dist/children/composition.js.map +1 -0
  8. package/dist/children.d.ts +4 -0
  9. package/dist/children.d.ts.map +1 -0
  10. package/dist/children.js +3 -0
  11. package/dist/children.js.map +1 -0
  12. package/dist/class-values.js.map +1 -1
  13. package/dist/cleanup.js.map +1 -1
  14. package/dist/client/activity.js.map +1 -1
  15. package/dist/client/children/composition.d.ts +34 -0
  16. package/dist/client/children/composition.d.ts.map +1 -0
  17. package/dist/client/children/composition.js +74 -0
  18. package/dist/client/children/composition.js.map +1 -0
  19. package/dist/client/children.d.ts +4 -0
  20. package/dist/client/children.d.ts.map +1 -0
  21. package/dist/client/children.js +3 -0
  22. package/dist/client/children.js.map +1 -0
  23. package/dist/client/class-values.js.map +1 -1
  24. package/dist/client/cleanup.js.map +1 -1
  25. package/dist/client/component/async-value.js.map +1 -1
  26. package/dist/client/component/async.js.map +1 -1
  27. package/dist/client/component/authorization.js.map +1 -1
  28. package/dist/client/component/compact-instance.js.map +1 -1
  29. package/dist/client/component/compiled-abi.js.map +1 -1
  30. package/dist/client/component/compiled-output.js.map +1 -1
  31. package/dist/client/component/construction.js.map +1 -1
  32. package/dist/client/component/context-api.js.map +1 -1
  33. package/dist/client/component/context-capability-integration.js.map +1 -1
  34. package/dist/client/component/context-capability.js.map +1 -1
  35. package/dist/client/component/context-inspection.js.map +1 -1
  36. package/dist/client/component/context-resumption.js.map +1 -1
  37. package/dist/client/component/contexts.js.map +1 -1
  38. package/dist/client/component/contract-versions.d.ts +2 -2
  39. package/dist/client/component/contract-versions.js +2 -2
  40. package/dist/client/component/contract-versions.js.map +1 -1
  41. package/dist/client/component/contracts.d.ts +4 -2
  42. package/dist/client/component/contracts.d.ts.map +1 -1
  43. package/dist/client/component/contracts.js.map +1 -1
  44. package/dist/client/component/default-logger.js.map +1 -1
  45. package/dist/client/component/derived.js.map +1 -1
  46. package/dist/client/component/direct-server-context-api.js.map +1 -1
  47. package/dist/client/component/direct-server-instance-construction.js.map +1 -1
  48. package/dist/client/component/domain.d.ts +2 -0
  49. package/dist/client/component/domain.d.ts.map +1 -1
  50. package/dist/client/component/domain.js +4 -0
  51. package/dist/client/component/domain.js.map +1 -1
  52. package/dist/client/component/durable-instance-construction.js.map +1 -1
  53. package/dist/client/component/element-identity.js.map +1 -1
  54. package/dist/client/component/error-boundary.js +2 -2
  55. package/dist/client/component/error-boundary.js.map +1 -1
  56. package/dist/client/component/error-view.js.map +1 -1
  57. package/dist/client/component/errors.js.map +1 -1
  58. package/dist/client/component/input-observation.js.map +1 -1
  59. package/dist/client/component/inspection-source.js.map +1 -1
  60. package/dist/client/component/inspection.js.map +1 -1
  61. package/dist/client/component/instance-construction.js.map +1 -1
  62. package/dist/client/component/instance-identity.js.map +1 -1
  63. package/dist/client/component/interaction-contracts.js.map +1 -1
  64. package/dist/client/component/lifecycle-handlers.js.map +1 -1
  65. package/dist/client/component/list-capability-integration.js.map +1 -1
  66. package/dist/client/component/list-capability.js.map +1 -1
  67. package/dist/client/component/list-controller.js.map +1 -1
  68. package/dist/client/component/localization-capability.js.map +1 -1
  69. package/dist/client/component/log.js.map +1 -1
  70. package/dist/client/component/logical-owner.d.ts.map +1 -1
  71. package/dist/client/component/logical-owner.js +3 -2
  72. package/dist/client/component/logical-owner.js.map +1 -1
  73. package/dist/client/component/ownership.js.map +1 -1
  74. package/dist/client/component/performance-trace.js.map +1 -1
  75. package/dist/client/component/plugins.js.map +1 -1
  76. package/dist/client/component/reactive-expression.js.map +1 -1
  77. package/dist/client/component/reactive-expressions.d.ts.map +1 -1
  78. package/dist/client/component/reactive-expressions.js +3 -2
  79. package/dist/client/component/reactive-expressions.js.map +1 -1
  80. package/dist/client/component/reactive-value.js.map +1 -1
  81. package/dist/client/component/readiness.js.map +1 -1
  82. package/dist/client/component/ref-capability-integration.js.map +1 -1
  83. package/dist/client/component/ref-capability.js.map +1 -1
  84. package/dist/client/component/ref-runtime.js.map +1 -1
  85. package/dist/client/component/render-instance-construction.js.map +1 -1
  86. package/dist/client/component/render-instance.js.map +1 -1
  87. package/dist/client/component/render.js.map +1 -1
  88. package/dist/client/component/resource-ownership.js.map +1 -1
  89. package/dist/client/component/resumption.js.map +1 -1
  90. package/dist/client/component/root-lifecycle.js.map +1 -1
  91. package/dist/client/component/runtime-construction.js.map +1 -1
  92. package/dist/client/component/runtime-surface-contexts.js.map +1 -1
  93. package/dist/client/component/runtime-surface-lifecycle.js.map +1 -1
  94. package/dist/client/component/runtime-surface-lists.js.map +1 -1
  95. package/dist/client/component/runtime-surface-localization.js.map +1 -1
  96. package/dist/client/component/runtime-surface-logging.js.map +1 -1
  97. package/dist/client/component/runtime-surface-reactivity.js.map +1 -1
  98. package/dist/client/component/runtime-surface-refs.js.map +1 -1
  99. package/dist/client/component/runtime-surface-registration.js.map +1 -1
  100. package/dist/client/component/runtime-surface.js.map +1 -1
  101. package/dist/client/component/runtime.d.ts +3 -0
  102. package/dist/client/component/runtime.d.ts.map +1 -1
  103. package/dist/client/component/runtime.js +32 -6
  104. package/dist/client/component/runtime.js.map +1 -1
  105. package/dist/client/component/state.js.map +1 -1
  106. package/dist/client/component/task-capability-integration.js +1 -0
  107. package/dist/client/component/task-capability-integration.js.map +1 -1
  108. package/dist/client/component/task-capability.js.map +1 -1
  109. package/dist/client/component/task-inspection-history.js.map +1 -1
  110. package/dist/client/component/task-instance-construction.js.map +1 -1
  111. package/dist/client/component/task-instance.js.map +1 -1
  112. package/dist/client/component/task-observer.js.map +1 -1
  113. package/dist/client/component/task-owner-integration.js.map +1 -1
  114. package/dist/client/component/value-contracts.js.map +1 -1
  115. package/dist/client/component-abi/activity-receipt.js.map +1 -1
  116. package/dist/client/component-abi/artifact.js.map +1 -1
  117. package/dist/client/component-abi/child-range-receipt.js.map +1 -1
  118. package/dist/client/component-abi/client.d.ts +2 -1
  119. package/dist/client/component-abi/client.d.ts.map +1 -1
  120. package/dist/client/component-abi/client.js.map +1 -1
  121. package/dist/client/component-abi/compatibility-contribution.js.map +1 -1
  122. package/dist/client/component-abi/compiled-child-range.d.ts.map +1 -1
  123. package/dist/client/component-abi/compiled-child-range.js +6 -1
  124. package/dist/client/component-abi/compiled-child-range.js.map +1 -1
  125. package/dist/client/component-abi/compiled-runtime.js.map +1 -1
  126. package/dist/client/component-abi/executable-fields.js.map +1 -1
  127. package/dist/client/component-abi/fragment-receipt.d.ts +20 -0
  128. package/dist/client/component-abi/fragment-receipt.d.ts.map +1 -1
  129. package/dist/client/component-abi/fragment-receipt.js +35 -5
  130. package/dist/client/component-abi/fragment-receipt.js.map +1 -1
  131. package/dist/client/component-abi/intrinsic-receipt.d.ts +10 -0
  132. package/dist/client/component-abi/intrinsic-receipt.d.ts.map +1 -1
  133. package/dist/client/component-abi/intrinsic-receipt.js +44 -6
  134. package/dist/client/component-abi/intrinsic-receipt.js.map +1 -1
  135. package/dist/client/component-abi/keyed-child-receipt.js.map +1 -1
  136. package/dist/client/component-abi/opaque-operation.d.ts.map +1 -1
  137. package/dist/client/component-abi/opaque-operation.js +36 -3
  138. package/dist/client/component-abi/opaque-operation.js.map +1 -1
  139. package/dist/client/component-abi/portal-receipt.js.map +1 -1
  140. package/dist/client/component-abi/receipt.d.ts +7 -0
  141. package/dist/client/component-abi/receipt.d.ts.map +1 -1
  142. package/dist/client/component-abi/receipt.js +9 -0
  143. package/dist/client/component-abi/receipt.js.map +1 -1
  144. package/dist/client/component-abi/runtime.js.map +1 -1
  145. package/dist/client/component-abi/server-child-range.js +1 -1
  146. package/dist/client/component-abi/server-child-range.js.map +1 -1
  147. package/dist/client/component-abi/server-keyed-child.js.map +1 -1
  148. package/dist/client/component-abi/server-runtime.js.map +1 -1
  149. package/dist/client/component-abi/server-structure-receipts.js.map +1 -1
  150. package/dist/client/component-abi/server.d.ts +2 -1
  151. package/dist/client/component-abi/server.d.ts.map +1 -1
  152. package/dist/client/component-abi/server.js.map +1 -1
  153. package/dist/client/component-abi/suspense-receipt.js.map +1 -1
  154. package/dist/client/component-abi/target-receipt.d.ts +23 -1
  155. package/dist/client/component-abi/target-receipt.d.ts.map +1 -1
  156. package/dist/client/component-abi/target-receipt.js +46 -5
  157. package/dist/client/component-abi/target-receipt.js.map +1 -1
  158. package/dist/client/component-abi/text-projection-markup.d.ts +16 -0
  159. package/dist/client/component-abi/text-projection-markup.d.ts.map +1 -0
  160. package/dist/client/component-abi/text-projection-markup.js +110 -0
  161. package/dist/client/component-abi/text-projection-markup.js.map +1 -0
  162. package/dist/client/component-abi/text-projection.d.ts +12 -0
  163. package/dist/client/component-abi/text-projection.d.ts.map +1 -0
  164. package/dist/client/component-abi/text-projection.js +79 -0
  165. package/dist/client/component-abi/text-projection.js.map +1 -0
  166. package/dist/client/component-abi/unsafe-html-receipt.js.map +1 -1
  167. package/dist/client/component-abi/value-serialization.js.map +1 -1
  168. package/dist/client/component-contract/boundary-validation.js.map +1 -1
  169. package/dist/client/component-contract/composition-support.js.map +1 -1
  170. package/dist/client/component-contract/continuation-validation.js.map +1 -1
  171. package/dist/client/component-contract/contract-cache.js.map +1 -1
  172. package/dist/client/component-contract/contract-validation.d.ts.map +1 -1
  173. package/dist/client/component-contract/contract-validation.js +5 -13
  174. package/dist/client/component-contract/contract-validation.js.map +1 -1
  175. package/dist/client/component-contract/metadata-validation.d.ts +4 -0
  176. package/dist/client/component-contract/metadata-validation.d.ts.map +1 -1
  177. package/dist/client/component-contract/metadata-validation.js +16 -0
  178. package/dist/client/component-contract/metadata-validation.js.map +1 -1
  179. package/dist/client/component-contract/server-execution-validation.js.map +1 -1
  180. package/dist/client/component-contracts.d.ts +4 -3
  181. package/dist/client/component-contracts.d.ts.map +1 -1
  182. package/dist/client/component-contracts.js +7 -1
  183. package/dist/client/component-contracts.js.map +1 -1
  184. package/dist/client/component-definition-contracts.js.map +1 -1
  185. package/dist/client/component-registry/contracts.js.map +1 -1
  186. package/dist/client/component-registry/creation.d.ts.map +1 -1
  187. package/dist/client/component-registry/creation.js +4 -3
  188. package/dist/client/component-registry/creation.js.map +1 -1
  189. package/dist/client/component-registry/errors.js.map +1 -1
  190. package/dist/client/component-registry/loading.js.map +1 -1
  191. package/dist/client/component-registry/operations.js.map +1 -1
  192. package/dist/client/component-registry/storage.js.map +1 -1
  193. package/dist/client/component-registry/syntax.js.map +1 -1
  194. package/dist/client/document/composition.d.ts +7 -0
  195. package/dist/client/document/composition.d.ts.map +1 -0
  196. package/dist/client/document/composition.js +52 -0
  197. package/dist/client/document/composition.js.map +1 -0
  198. package/dist/client/document/definition.d.ts +10 -0
  199. package/dist/client/document/definition.d.ts.map +1 -0
  200. package/dist/client/document/definition.js +3 -0
  201. package/dist/client/document/definition.js.map +1 -0
  202. package/dist/client/document/doctype.d.ts +17 -0
  203. package/dist/client/document/doctype.d.ts.map +1 -0
  204. package/dist/client/document/doctype.js +35 -0
  205. package/dist/client/document/doctype.js.map +1 -0
  206. package/dist/client/document/output.d.ts +22 -0
  207. package/dist/client/document/output.d.ts.map +1 -0
  208. package/dist/client/document/output.js +30 -0
  209. package/dist/client/document/output.js.map +1 -0
  210. package/dist/client/document.d.ts +6 -0
  211. package/dist/client/document.d.ts.map +1 -0
  212. package/dist/client/document.js +5 -0
  213. package/dist/client/document.js.map +1 -0
  214. package/dist/client/dynamic-component/contracts.js.map +1 -1
  215. package/dist/client/dynamic-component/creation.js.map +1 -1
  216. package/dist/client/dynamic-component/runtime.js.map +1 -1
  217. package/dist/client/enhancements.d.ts +2 -0
  218. package/dist/client/enhancements.d.ts.map +1 -1
  219. package/dist/client/enhancements.js +8 -4
  220. package/dist/client/enhancements.js.map +1 -1
  221. package/dist/client/framework/async-values.js.map +1 -1
  222. package/dist/client/framework/compatibility-contributions.js.map +1 -1
  223. package/dist/client/framework/component-contract-validation.js.map +1 -1
  224. package/dist/client/framework/component-contracts.js.map +1 -1
  225. package/dist/client/framework/component-domains.js.map +1 -1
  226. package/dist/client/framework/component-execution.js.map +1 -1
  227. package/dist/client/framework/component-lifecycle.js.map +1 -1
  228. package/dist/client/framework/component-roots.js.map +1 -1
  229. package/dist/client/framework/enhancement-catalog.js.map +1 -1
  230. package/dist/client/framework/enhancement-fallback.d.ts +12 -0
  231. package/dist/client/framework/enhancement-fallback.d.ts.map +1 -0
  232. package/dist/client/framework/enhancement-fallback.js +41 -0
  233. package/dist/client/framework/enhancement-fallback.js.map +1 -0
  234. package/dist/client/framework/enhancement-order.d.ts +9 -0
  235. package/dist/client/framework/enhancement-order.d.ts.map +1 -0
  236. package/dist/client/framework/enhancement-order.js +34 -0
  237. package/dist/client/framework/enhancement-order.js.map +1 -0
  238. package/dist/client/framework/error-format.js.map +1 -1
  239. package/dist/client/framework/error-view.js.map +1 -1
  240. package/dist/client/framework/fragment-enhancement-chain.d.ts +4 -0
  241. package/dist/client/framework/fragment-enhancement-chain.d.ts.map +1 -0
  242. package/dist/client/framework/fragment-enhancement-chain.js +28 -0
  243. package/dist/client/framework/fragment-enhancement-chain.js.map +1 -0
  244. package/dist/client/framework/fragment-hosts.d.ts +30 -0
  245. package/dist/client/framework/fragment-hosts.d.ts.map +1 -0
  246. package/dist/client/framework/fragment-hosts.js +65 -0
  247. package/dist/client/framework/fragment-hosts.js.map +1 -0
  248. package/dist/client/framework/fragment-target-projection.d.ts +8 -0
  249. package/dist/client/framework/fragment-target-projection.d.ts.map +1 -0
  250. package/dist/client/framework/fragment-target-projection.js +98 -0
  251. package/dist/client/framework/fragment-target-projection.js.map +1 -0
  252. package/dist/client/framework/inspection-transport.js.map +1 -1
  253. package/dist/client/framework/operation-protocol.js.map +1 -1
  254. package/dist/client/framework/prepared-target-output.d.ts +11 -0
  255. package/dist/client/framework/prepared-target-output.d.ts.map +1 -0
  256. package/dist/client/framework/prepared-target-output.js +51 -0
  257. package/dist/client/framework/prepared-target-output.js.map +1 -0
  258. package/dist/client/framework/protocol-records.js.map +1 -1
  259. package/dist/client/framework/publication.js.map +1 -1
  260. package/dist/client/framework/render-structure.d.ts +10 -0
  261. package/dist/client/framework/render-structure.d.ts.map +1 -1
  262. package/dist/client/framework/render-structure.js +10 -0
  263. package/dist/client/framework/render-structure.js.map +1 -1
  264. package/dist/client/framework/server-component-contexts.js.map +1 -1
  265. package/dist/client/framework/server-component-execution.js.map +1 -1
  266. package/dist/client/framework/server-render-structure.js.map +1 -1
  267. package/dist/client/framework/server-task-helpers.d.ts +1 -0
  268. package/dist/client/framework/server-task-helpers.d.ts.map +1 -1
  269. package/dist/client/framework/server-task-helpers.js +1 -0
  270. package/dist/client/framework/server-task-helpers.js.map +1 -1
  271. package/dist/client/framework/supplied-placement.d.ts +8 -0
  272. package/dist/client/framework/supplied-placement.d.ts.map +1 -0
  273. package/dist/client/framework/supplied-placement.js +80 -0
  274. package/dist/client/framework/supplied-placement.js.map +1 -0
  275. package/dist/client/framework/target-contributions.d.ts +2 -0
  276. package/dist/client/framework/target-contributions.d.ts.map +1 -1
  277. package/dist/client/framework/target-contributions.js +38 -0
  278. package/dist/client/framework/target-contributions.js.map +1 -1
  279. package/dist/client/framework/task-frames.js.map +1 -1
  280. package/dist/client/framework/text-target-output.d.ts +6 -0
  281. package/dist/client/framework/text-target-output.d.ts.map +1 -0
  282. package/dist/client/framework/text-target-output.js +14 -0
  283. package/dist/client/framework/text-target-output.js.map +1 -0
  284. package/dist/client/hydration-boundary.js.map +1 -1
  285. package/dist/client/index.js.map +1 -1
  286. package/dist/client/inspection-transport.js.map +1 -1
  287. package/dist/client/interaction/execution.js.map +1 -1
  288. package/dist/client/json.js.map +1 -1
  289. package/dist/client/keys.js.map +1 -1
  290. package/dist/client/localization/component-integration.js.map +1 -1
  291. package/dist/client/localization/context.js.map +1 -1
  292. package/dist/client/localization/contracts.js.map +1 -1
  293. package/dist/client/localization/facade.js.map +1 -1
  294. package/dist/client/localization/formatter-pool.js.map +1 -1
  295. package/dist/client/localization.js.map +1 -1
  296. package/dist/client/logging.js.map +1 -1
  297. package/dist/client/native-props.js.map +1 -1
  298. package/dist/client/protocol-utf8.js.map +1 -1
  299. package/dist/client/protocol.js.map +1 -1
  300. package/dist/client/render-children.js.map +1 -1
  301. package/dist/client/render-program.d.ts +4 -1
  302. package/dist/client/render-program.d.ts.map +1 -1
  303. package/dist/client/render-program.js +1 -1
  304. package/dist/client/render-program.js.map +1 -1
  305. package/dist/client/runtime/collections.js.map +1 -1
  306. package/dist/client/runtime/compatibility-component-abi.js.map +1 -1
  307. package/dist/client/runtime/component-abi.d.ts +3 -3
  308. package/dist/client/runtime/component-abi.d.ts.map +1 -1
  309. package/dist/client/runtime/component-abi.js +3 -3
  310. package/dist/client/runtime/component-abi.js.map +1 -1
  311. package/dist/client/runtime/component-construction/direct-server.js.map +1 -1
  312. package/dist/client/runtime/component-construction/durable.js.map +1 -1
  313. package/dist/client/runtime/component-construction/render.js.map +1 -1
  314. package/dist/client/runtime/component-construction/task.js.map +1 -1
  315. package/dist/client/runtime/component-execution.js.map +1 -1
  316. package/dist/client/runtime/component-operations.d.ts +3 -0
  317. package/dist/client/runtime/component-operations.d.ts.map +1 -1
  318. package/dist/client/runtime/component-operations.js +3 -0
  319. package/dist/client/runtime/component-operations.js.map +1 -1
  320. package/dist/client/runtime/component-reactivity.js.map +1 -1
  321. package/dist/client/runtime/component-tasks.js.map +1 -1
  322. package/dist/client/runtime/contexts.js.map +1 -1
  323. package/dist/client/runtime/dynamic-components.js.map +1 -1
  324. package/dist/client/runtime/enhancements.js.map +1 -1
  325. package/dist/client/runtime/inspection.js.map +1 -1
  326. package/dist/client/runtime/lifecycle.js.map +1 -1
  327. package/dist/client/runtime/lists.js.map +1 -1
  328. package/dist/client/runtime/localization.js.map +1 -1
  329. package/dist/client/runtime/logging.js.map +1 -1
  330. package/dist/client/runtime/reactivity.js.map +1 -1
  331. package/dist/client/runtime/refs.js.map +1 -1
  332. package/dist/client/runtime/registry.js.map +1 -1
  333. package/dist/client/runtime/render-operations.js.map +1 -1
  334. package/dist/client/runtime/render.js.map +1 -1
  335. package/dist/client/runtime/tasks.js.map +1 -1
  336. package/dist/client/server-render-program.js.map +1 -1
  337. package/dist/client/ssr-independence.js.map +1 -1
  338. package/dist/client/symbols.js.map +1 -1
  339. package/dist/client/tasks/activation.js.map +1 -1
  340. package/dist/client/tasks/cancellation.js.map +1 -1
  341. package/dist/client/tasks/compiled-latest.js.map +1 -1
  342. package/dist/client/tasks/component-continuation.js.map +1 -1
  343. package/dist/client/tasks/component-execution-capability.js.map +1 -1
  344. package/dist/client/tasks/component-execution-plan.js.map +1 -1
  345. package/dist/client/tasks/component-execution-slice.js.map +1 -1
  346. package/dist/client/tasks/component-execution.js.map +1 -1
  347. package/dist/client/tasks/computation-activation.js.map +1 -1
  348. package/dist/client/tasks/continuations.js.map +1 -1
  349. package/dist/client/tasks/contracts.js.map +1 -1
  350. package/dist/client/tasks/definition-record.js.map +1 -1
  351. package/dist/client/tasks/dependency-provenance.js.map +1 -1
  352. package/dist/client/tasks/dependency-source.js.map +1 -1
  353. package/dist/client/tasks/dependency-watcher.js.map +1 -1
  354. package/dist/client/tasks/frame-context.js.map +1 -1
  355. package/dist/client/tasks/frame-continuation.js.map +1 -1
  356. package/dist/client/tasks/frame-contracts.js.map +1 -1
  357. package/dist/client/tasks/frame-inspection-capability.js.map +1 -1
  358. package/dist/client/tasks/frame-inspection.js.map +1 -1
  359. package/dist/client/tasks/frame-runtime.js.map +1 -1
  360. package/dist/client/tasks/frame-settlement.js.map +1 -1
  361. package/dist/client/tasks/generation-execution.js.map +1 -1
  362. package/dist/client/tasks/invocation.js.map +1 -1
  363. package/dist/client/tasks/observers.js.map +1 -1
  364. package/dist/client/tasks/optimism.js.map +1 -1
  365. package/dist/client/tasks/options.js.map +1 -1
  366. package/dist/client/tasks/owner-activations.js.map +1 -1
  367. package/dist/client/tasks/owner-hosts.js.map +1 -1
  368. package/dist/client/tasks/owner-record.js.map +1 -1
  369. package/dist/client/tasks/owners.js.map +1 -1
  370. package/dist/client/tasks/performance-trace.js.map +1 -1
  371. package/dist/client/tasks/policy.js.map +1 -1
  372. package/dist/client/tasks/priority.js.map +1 -1
  373. package/dist/client/tasks/public.js.map +1 -1
  374. package/dist/client/tasks/resources.js.map +1 -1
  375. package/dist/client/tasks/runtime-types.js.map +1 -1
  376. package/dist/client/tasks/runtime.js.map +1 -1
  377. package/dist/client/tasks/scheduled-reactions.js.map +1 -1
  378. package/dist/client/tasks/server-component-execution-contracts.js.map +1 -1
  379. package/dist/client/tasks/server-component-execution.d.ts +3 -0
  380. package/dist/client/tasks/server-component-execution.d.ts.map +1 -1
  381. package/dist/client/tasks/server-component-execution.js +16 -46
  382. package/dist/client/tasks/server-component-execution.js.map +1 -1
  383. package/dist/client/tasks/server-component-resources.js.map +1 -1
  384. package/dist/client/tasks/server-component-task-slice.d.ts +5 -0
  385. package/dist/client/tasks/server-component-task-slice.d.ts.map +1 -0
  386. package/dist/client/tasks/server-component-task-slice.js +56 -0
  387. package/dist/client/tasks/server-component-task-slice.js.map +1 -0
  388. package/dist/client/tasks/server-component-task-tree.d.ts +9 -0
  389. package/dist/client/tasks/server-component-task-tree.d.ts.map +1 -0
  390. package/dist/client/tasks/server-component-task-tree.js +38 -0
  391. package/dist/client/tasks/server-component-task-tree.js.map +1 -0
  392. package/dist/client/tasks/server-task-readiness.js.map +1 -1
  393. package/dist/client/tasks/signals.js.map +1 -1
  394. package/dist/client/tasks/status.js.map +1 -1
  395. package/dist/client/tasks/v1.js.map +1 -1
  396. package/dist/client/testing/runtime-artifacts.d.ts.map +1 -1
  397. package/dist/client/testing/runtime-artifacts.js +4 -3
  398. package/dist/client/testing/runtime-artifacts.js.map +1 -1
  399. package/dist/client/testing/runtime.d.ts.map +1 -1
  400. package/dist/client/testing/runtime.js +4 -2
  401. package/dist/client/testing/runtime.js.map +1 -1
  402. package/dist/client/testing.js.map +1 -1
  403. package/dist/client/url.js.map +1 -1
  404. package/dist/component/async-value.js.map +1 -1
  405. package/dist/component/async.js.map +1 -1
  406. package/dist/component/authorization.js.map +1 -1
  407. package/dist/component/compact-instance.js.map +1 -1
  408. package/dist/component/compiled-abi.js.map +1 -1
  409. package/dist/component/compiled-output.js.map +1 -1
  410. package/dist/component/construction.js.map +1 -1
  411. package/dist/component/context-api.js.map +1 -1
  412. package/dist/component/context-capability-integration.js.map +1 -1
  413. package/dist/component/context-capability.js.map +1 -1
  414. package/dist/component/context-inspection.js.map +1 -1
  415. package/dist/component/context-resumption.js.map +1 -1
  416. package/dist/component/contexts.js.map +1 -1
  417. package/dist/component/contract-versions.d.ts +2 -2
  418. package/dist/component/contract-versions.js +2 -2
  419. package/dist/component/contract-versions.js.map +1 -1
  420. package/dist/component/contracts.d.ts +4 -2
  421. package/dist/component/contracts.d.ts.map +1 -1
  422. package/dist/component/contracts.js.map +1 -1
  423. package/dist/component/default-logger.js.map +1 -1
  424. package/dist/component/derived.js.map +1 -1
  425. package/dist/component/direct-server-context-api.js.map +1 -1
  426. package/dist/component/direct-server-instance-construction.js.map +1 -1
  427. package/dist/component/domain.d.ts +2 -0
  428. package/dist/component/domain.d.ts.map +1 -1
  429. package/dist/component/domain.js +4 -0
  430. package/dist/component/domain.js.map +1 -1
  431. package/dist/component/durable-instance-construction.js.map +1 -1
  432. package/dist/component/element-identity.js.map +1 -1
  433. package/dist/component/error-boundary.js.map +1 -1
  434. package/dist/component/error-view.js.map +1 -1
  435. package/dist/component/errors.js.map +1 -1
  436. package/dist/component/input-observation.js.map +1 -1
  437. package/dist/component/inspection-source.js.map +1 -1
  438. package/dist/component/inspection.js.map +1 -1
  439. package/dist/component/instance-construction.js.map +1 -1
  440. package/dist/component/instance-identity.js.map +1 -1
  441. package/dist/component/interaction-contracts.js.map +1 -1
  442. package/dist/component/lifecycle-handlers.js.map +1 -1
  443. package/dist/component/list-capability-integration.js.map +1 -1
  444. package/dist/component/list-capability.js.map +1 -1
  445. package/dist/component/list-controller.js.map +1 -1
  446. package/dist/component/localization-capability.js.map +1 -1
  447. package/dist/component/log.js.map +1 -1
  448. package/dist/component/logical-owner.d.ts.map +1 -1
  449. package/dist/component/logical-owner.js +3 -2
  450. package/dist/component/logical-owner.js.map +1 -1
  451. package/dist/component/ownership.js.map +1 -1
  452. package/dist/component/performance-trace.js.map +1 -1
  453. package/dist/component/plugins.js.map +1 -1
  454. package/dist/component/reactive-expression.js.map +1 -1
  455. package/dist/component/reactive-expressions.d.ts.map +1 -1
  456. package/dist/component/reactive-expressions.js +3 -2
  457. package/dist/component/reactive-expressions.js.map +1 -1
  458. package/dist/component/reactive-value.js.map +1 -1
  459. package/dist/component/readiness.js.map +1 -1
  460. package/dist/component/ref-capability-integration.js.map +1 -1
  461. package/dist/component/ref-capability.js.map +1 -1
  462. package/dist/component/ref-runtime.js.map +1 -1
  463. package/dist/component/render-instance-construction.js.map +1 -1
  464. package/dist/component/render-instance.js.map +1 -1
  465. package/dist/component/render.js.map +1 -1
  466. package/dist/component/resource-ownership.js.map +1 -1
  467. package/dist/component/resumption.js.map +1 -1
  468. package/dist/component/root-lifecycle.js.map +1 -1
  469. package/dist/component/runtime-construction.js.map +1 -1
  470. package/dist/component/runtime-surface-contexts.js.map +1 -1
  471. package/dist/component/runtime-surface-lifecycle.js.map +1 -1
  472. package/dist/component/runtime-surface-lists.js.map +1 -1
  473. package/dist/component/runtime-surface-localization.js.map +1 -1
  474. package/dist/component/runtime-surface-logging.js.map +1 -1
  475. package/dist/component/runtime-surface-reactivity.js.map +1 -1
  476. package/dist/component/runtime-surface-refs.js.map +1 -1
  477. package/dist/component/runtime-surface-registration.js.map +1 -1
  478. package/dist/component/runtime-surface.js.map +1 -1
  479. package/dist/component/runtime.d.ts +3 -0
  480. package/dist/component/runtime.d.ts.map +1 -1
  481. package/dist/component/runtime.js +32 -6
  482. package/dist/component/runtime.js.map +1 -1
  483. package/dist/component/state.js.map +1 -1
  484. package/dist/component/task-capability-integration.js +1 -0
  485. package/dist/component/task-capability-integration.js.map +1 -1
  486. package/dist/component/task-capability.js.map +1 -1
  487. package/dist/component/task-inspection-history.js.map +1 -1
  488. package/dist/component/task-instance-construction.js.map +1 -1
  489. package/dist/component/task-instance.js.map +1 -1
  490. package/dist/component/task-observer.js.map +1 -1
  491. package/dist/component/task-owner-integration.js.map +1 -1
  492. package/dist/component/value-contracts.js.map +1 -1
  493. package/dist/component-abi/activity-receipt.js.map +1 -1
  494. package/dist/component-abi/artifact.js.map +1 -1
  495. package/dist/component-abi/child-range-receipt.js.map +1 -1
  496. package/dist/component-abi/client.d.ts +2 -1
  497. package/dist/component-abi/client.d.ts.map +1 -1
  498. package/dist/component-abi/client.js.map +1 -1
  499. package/dist/component-abi/compatibility-contribution.js.map +1 -1
  500. package/dist/component-abi/compiled-child-range.d.ts.map +1 -1
  501. package/dist/component-abi/compiled-child-range.js +6 -1
  502. package/dist/component-abi/compiled-child-range.js.map +1 -1
  503. package/dist/component-abi/compiled-runtime.js.map +1 -1
  504. package/dist/component-abi/executable-fields.js.map +1 -1
  505. package/dist/component-abi/fragment-receipt.d.ts +20 -0
  506. package/dist/component-abi/fragment-receipt.d.ts.map +1 -1
  507. package/dist/component-abi/fragment-receipt.js +35 -5
  508. package/dist/component-abi/fragment-receipt.js.map +1 -1
  509. package/dist/component-abi/intrinsic-receipt.d.ts +10 -0
  510. package/dist/component-abi/intrinsic-receipt.d.ts.map +1 -1
  511. package/dist/component-abi/intrinsic-receipt.js +44 -6
  512. package/dist/component-abi/intrinsic-receipt.js.map +1 -1
  513. package/dist/component-abi/keyed-child-receipt.js.map +1 -1
  514. package/dist/component-abi/opaque-operation.d.ts.map +1 -1
  515. package/dist/component-abi/opaque-operation.js +36 -3
  516. package/dist/component-abi/opaque-operation.js.map +1 -1
  517. package/dist/component-abi/portal-receipt.js.map +1 -1
  518. package/dist/component-abi/receipt.d.ts +7 -0
  519. package/dist/component-abi/receipt.d.ts.map +1 -1
  520. package/dist/component-abi/receipt.js +9 -0
  521. package/dist/component-abi/receipt.js.map +1 -1
  522. package/dist/component-abi/runtime.js.map +1 -1
  523. package/dist/component-abi/server-child-range.js +1 -1
  524. package/dist/component-abi/server-child-range.js.map +1 -1
  525. package/dist/component-abi/server-keyed-child.js.map +1 -1
  526. package/dist/component-abi/server-runtime.js.map +1 -1
  527. package/dist/component-abi/server-structure-receipts.js.map +1 -1
  528. package/dist/component-abi/server.d.ts +2 -1
  529. package/dist/component-abi/server.d.ts.map +1 -1
  530. package/dist/component-abi/server.js.map +1 -1
  531. package/dist/component-abi/suspense-receipt.js.map +1 -1
  532. package/dist/component-abi/target-receipt.d.ts +23 -1
  533. package/dist/component-abi/target-receipt.d.ts.map +1 -1
  534. package/dist/component-abi/target-receipt.js +46 -5
  535. package/dist/component-abi/target-receipt.js.map +1 -1
  536. package/dist/component-abi/text-projection-markup.d.ts +16 -0
  537. package/dist/component-abi/text-projection-markup.d.ts.map +1 -0
  538. package/dist/component-abi/text-projection-markup.js +110 -0
  539. package/dist/component-abi/text-projection-markup.js.map +1 -0
  540. package/dist/component-abi/text-projection.d.ts +12 -0
  541. package/dist/component-abi/text-projection.d.ts.map +1 -0
  542. package/dist/component-abi/text-projection.js +79 -0
  543. package/dist/component-abi/text-projection.js.map +1 -0
  544. package/dist/component-abi/unsafe-html-receipt.js.map +1 -1
  545. package/dist/component-abi/value-serialization.js.map +1 -1
  546. package/dist/component-contract/boundary-validation.js.map +1 -1
  547. package/dist/component-contract/composition-support.js.map +1 -1
  548. package/dist/component-contract/continuation-validation.js.map +1 -1
  549. package/dist/component-contract/contract-cache.js.map +1 -1
  550. package/dist/component-contract/contract-validation.d.ts.map +1 -1
  551. package/dist/component-contract/contract-validation.js +5 -13
  552. package/dist/component-contract/contract-validation.js.map +1 -1
  553. package/dist/component-contract/metadata-validation.d.ts +4 -0
  554. package/dist/component-contract/metadata-validation.d.ts.map +1 -1
  555. package/dist/component-contract/metadata-validation.js +16 -0
  556. package/dist/component-contract/metadata-validation.js.map +1 -1
  557. package/dist/component-contract/server-execution-validation.js.map +1 -1
  558. package/dist/component-contracts.d.ts +4 -3
  559. package/dist/component-contracts.d.ts.map +1 -1
  560. package/dist/component-contracts.js +7 -1
  561. package/dist/component-contracts.js.map +1 -1
  562. package/dist/component-definition-contracts.js.map +1 -1
  563. package/dist/component-registry/contracts.js.map +1 -1
  564. package/dist/component-registry/creation.d.ts.map +1 -1
  565. package/dist/component-registry/creation.js +4 -3
  566. package/dist/component-registry/creation.js.map +1 -1
  567. package/dist/component-registry/errors.js.map +1 -1
  568. package/dist/component-registry/loading.js.map +1 -1
  569. package/dist/component-registry/operations.js.map +1 -1
  570. package/dist/component-registry/storage.js.map +1 -1
  571. package/dist/component-registry/syntax.js.map +1 -1
  572. package/dist/document/composition.d.ts +7 -0
  573. package/dist/document/composition.d.ts.map +1 -0
  574. package/dist/document/composition.js +52 -0
  575. package/dist/document/composition.js.map +1 -0
  576. package/dist/document/definition.d.ts +10 -0
  577. package/dist/document/definition.d.ts.map +1 -0
  578. package/dist/document/definition.js +3 -0
  579. package/dist/document/definition.js.map +1 -0
  580. package/dist/document/doctype.d.ts +17 -0
  581. package/dist/document/doctype.d.ts.map +1 -0
  582. package/dist/document/doctype.js +35 -0
  583. package/dist/document/doctype.js.map +1 -0
  584. package/dist/document/output.d.ts +22 -0
  585. package/dist/document/output.d.ts.map +1 -0
  586. package/dist/document/output.js +30 -0
  587. package/dist/document/output.js.map +1 -0
  588. package/dist/document.d.ts +6 -0
  589. package/dist/document.d.ts.map +1 -0
  590. package/dist/document.js +5 -0
  591. package/dist/document.js.map +1 -0
  592. package/dist/dynamic-component/contracts.js.map +1 -1
  593. package/dist/dynamic-component/creation.js.map +1 -1
  594. package/dist/dynamic-component/runtime.js.map +1 -1
  595. package/dist/enhancements.d.ts +2 -0
  596. package/dist/enhancements.d.ts.map +1 -1
  597. package/dist/enhancements.js +8 -4
  598. package/dist/enhancements.js.map +1 -1
  599. package/dist/framework/async-values.js.map +1 -1
  600. package/dist/framework/compatibility-contributions.js.map +1 -1
  601. package/dist/framework/component-contract-validation.js.map +1 -1
  602. package/dist/framework/component-contracts.js.map +1 -1
  603. package/dist/framework/component-domains.js.map +1 -1
  604. package/dist/framework/component-execution.js.map +1 -1
  605. package/dist/framework/component-lifecycle.js.map +1 -1
  606. package/dist/framework/component-roots.js.map +1 -1
  607. package/dist/framework/enhancement-catalog.js.map +1 -1
  608. package/dist/framework/enhancement-fallback.d.ts +12 -0
  609. package/dist/framework/enhancement-fallback.d.ts.map +1 -0
  610. package/dist/framework/enhancement-fallback.js +41 -0
  611. package/dist/framework/enhancement-fallback.js.map +1 -0
  612. package/dist/framework/enhancement-order.d.ts +9 -0
  613. package/dist/framework/enhancement-order.d.ts.map +1 -0
  614. package/dist/framework/enhancement-order.js +34 -0
  615. package/dist/framework/enhancement-order.js.map +1 -0
  616. package/dist/framework/error-format.js.map +1 -1
  617. package/dist/framework/error-view.js.map +1 -1
  618. package/dist/framework/fragment-enhancement-chain.d.ts +4 -0
  619. package/dist/framework/fragment-enhancement-chain.d.ts.map +1 -0
  620. package/dist/framework/fragment-enhancement-chain.js +28 -0
  621. package/dist/framework/fragment-enhancement-chain.js.map +1 -0
  622. package/dist/framework/fragment-hosts.d.ts +30 -0
  623. package/dist/framework/fragment-hosts.d.ts.map +1 -0
  624. package/dist/framework/fragment-hosts.js +65 -0
  625. package/dist/framework/fragment-hosts.js.map +1 -0
  626. package/dist/framework/fragment-target-projection.d.ts +8 -0
  627. package/dist/framework/fragment-target-projection.d.ts.map +1 -0
  628. package/dist/framework/fragment-target-projection.js +98 -0
  629. package/dist/framework/fragment-target-projection.js.map +1 -0
  630. package/dist/framework/inspection-transport.js.map +1 -1
  631. package/dist/framework/operation-protocol.js.map +1 -1
  632. package/dist/framework/prepared-target-output.d.ts +11 -0
  633. package/dist/framework/prepared-target-output.d.ts.map +1 -0
  634. package/dist/framework/prepared-target-output.js +51 -0
  635. package/dist/framework/prepared-target-output.js.map +1 -0
  636. package/dist/framework/protocol-records.js.map +1 -1
  637. package/dist/framework/publication.js.map +1 -1
  638. package/dist/framework/render-structure.d.ts +10 -0
  639. package/dist/framework/render-structure.d.ts.map +1 -1
  640. package/dist/framework/render-structure.js +10 -0
  641. package/dist/framework/render-structure.js.map +1 -1
  642. package/dist/framework/server-component-contexts.js.map +1 -1
  643. package/dist/framework/server-component-execution.js.map +1 -1
  644. package/dist/framework/server-render-structure.js.map +1 -1
  645. package/dist/framework/server-task-helpers.d.ts +1 -0
  646. package/dist/framework/server-task-helpers.d.ts.map +1 -1
  647. package/dist/framework/server-task-helpers.js +1 -0
  648. package/dist/framework/server-task-helpers.js.map +1 -1
  649. package/dist/framework/supplied-placement.d.ts +8 -0
  650. package/dist/framework/supplied-placement.d.ts.map +1 -0
  651. package/dist/framework/supplied-placement.js +80 -0
  652. package/dist/framework/supplied-placement.js.map +1 -0
  653. package/dist/framework/target-contributions.d.ts +2 -0
  654. package/dist/framework/target-contributions.d.ts.map +1 -1
  655. package/dist/framework/target-contributions.js +38 -0
  656. package/dist/framework/target-contributions.js.map +1 -1
  657. package/dist/framework/task-frames.js.map +1 -1
  658. package/dist/framework/text-target-output.d.ts +6 -0
  659. package/dist/framework/text-target-output.d.ts.map +1 -0
  660. package/dist/framework/text-target-output.js +14 -0
  661. package/dist/framework/text-target-output.js.map +1 -0
  662. package/dist/hydration-boundary.js.map +1 -1
  663. package/dist/index.js.map +1 -1
  664. package/dist/inspection-transport.js.map +1 -1
  665. package/dist/interaction/execution.js.map +1 -1
  666. package/dist/json.js.map +1 -1
  667. package/dist/keys.js.map +1 -1
  668. package/dist/localization/component-integration.js.map +1 -1
  669. package/dist/localization/context.js.map +1 -1
  670. package/dist/localization/contracts.js.map +1 -1
  671. package/dist/localization/facade.js.map +1 -1
  672. package/dist/localization/formatter-pool.js.map +1 -1
  673. package/dist/localization.js.map +1 -1
  674. package/dist/logging.js.map +1 -1
  675. package/dist/native-props.js.map +1 -1
  676. package/dist/protocol-utf8.js.map +1 -1
  677. package/dist/protocol.js.map +1 -1
  678. package/dist/render-children.js.map +1 -1
  679. package/dist/render-program.d.ts +4 -1
  680. package/dist/render-program.d.ts.map +1 -1
  681. package/dist/render-program.js +1 -1
  682. package/dist/render-program.js.map +1 -1
  683. package/dist/runtime/collections.js.map +1 -1
  684. package/dist/runtime/compatibility-component-abi.js.map +1 -1
  685. package/dist/runtime/component-abi.d.ts +3 -3
  686. package/dist/runtime/component-abi.d.ts.map +1 -1
  687. package/dist/runtime/component-abi.js +3 -3
  688. package/dist/runtime/component-abi.js.map +1 -1
  689. package/dist/runtime/component-construction/direct-server.js.map +1 -1
  690. package/dist/runtime/component-construction/durable.js.map +1 -1
  691. package/dist/runtime/component-construction/render.js.map +1 -1
  692. package/dist/runtime/component-construction/task.js.map +1 -1
  693. package/dist/runtime/component-execution.js.map +1 -1
  694. package/dist/runtime/component-operations.d.ts +3 -0
  695. package/dist/runtime/component-operations.d.ts.map +1 -1
  696. package/dist/runtime/component-operations.js +3 -0
  697. package/dist/runtime/component-operations.js.map +1 -1
  698. package/dist/runtime/component-reactivity.js.map +1 -1
  699. package/dist/runtime/component-tasks.js.map +1 -1
  700. package/dist/runtime/contexts.js.map +1 -1
  701. package/dist/runtime/dynamic-components.js.map +1 -1
  702. package/dist/runtime/enhancements.js.map +1 -1
  703. package/dist/runtime/inspection.js.map +1 -1
  704. package/dist/runtime/lifecycle.js.map +1 -1
  705. package/dist/runtime/lists.js.map +1 -1
  706. package/dist/runtime/localization.js.map +1 -1
  707. package/dist/runtime/logging.js.map +1 -1
  708. package/dist/runtime/reactivity.js.map +1 -1
  709. package/dist/runtime/refs.js.map +1 -1
  710. package/dist/runtime/registry.js.map +1 -1
  711. package/dist/runtime/render-operations.js.map +1 -1
  712. package/dist/runtime/render.js.map +1 -1
  713. package/dist/runtime/tasks.js.map +1 -1
  714. package/dist/server/activity.js.map +1 -1
  715. package/dist/server/children/composition.d.ts +34 -0
  716. package/dist/server/children/composition.d.ts.map +1 -0
  717. package/dist/server/children/composition.js +74 -0
  718. package/dist/server/children/composition.js.map +1 -0
  719. package/dist/server/children.d.ts +4 -0
  720. package/dist/server/children.d.ts.map +1 -0
  721. package/dist/server/children.js +3 -0
  722. package/dist/server/children.js.map +1 -0
  723. package/dist/server/class-values.js.map +1 -1
  724. package/dist/server/cleanup.js.map +1 -1
  725. package/dist/server/component/async-value.js.map +1 -1
  726. package/dist/server/component/async.js.map +1 -1
  727. package/dist/server/component/authorization.js.map +1 -1
  728. package/dist/server/component/compact-instance.js.map +1 -1
  729. package/dist/server/component/compiled-abi.js.map +1 -1
  730. package/dist/server/component/compiled-output.js.map +1 -1
  731. package/dist/server/component/construction.js.map +1 -1
  732. package/dist/server/component/context-api.js.map +1 -1
  733. package/dist/server/component/context-capability-integration.js.map +1 -1
  734. package/dist/server/component/context-capability.js.map +1 -1
  735. package/dist/server/component/context-inspection.js.map +1 -1
  736. package/dist/server/component/context-resumption.js.map +1 -1
  737. package/dist/server/component/contexts.js.map +1 -1
  738. package/dist/server/component/contract-versions.d.ts +2 -2
  739. package/dist/server/component/contract-versions.js +2 -2
  740. package/dist/server/component/contract-versions.js.map +1 -1
  741. package/dist/server/component/contracts.d.ts +4 -2
  742. package/dist/server/component/contracts.d.ts.map +1 -1
  743. package/dist/server/component/contracts.js.map +1 -1
  744. package/dist/server/component/default-logger.js.map +1 -1
  745. package/dist/server/component/derived.js.map +1 -1
  746. package/dist/server/component/direct-server-context-api.js.map +1 -1
  747. package/dist/server/component/direct-server-instance-construction.js.map +1 -1
  748. package/dist/server/component/domain.d.ts +2 -0
  749. package/dist/server/component/domain.d.ts.map +1 -1
  750. package/dist/server/component/domain.js +4 -0
  751. package/dist/server/component/domain.js.map +1 -1
  752. package/dist/server/component/durable-instance-construction.js.map +1 -1
  753. package/dist/server/component/element-identity.js.map +1 -1
  754. package/dist/server/component/error-boundary.js +2 -2
  755. package/dist/server/component/error-boundary.js.map +1 -1
  756. package/dist/server/component/error-view.js.map +1 -1
  757. package/dist/server/component/errors.js.map +1 -1
  758. package/dist/server/component/input-observation.js.map +1 -1
  759. package/dist/server/component/inspection-source.js.map +1 -1
  760. package/dist/server/component/inspection.js.map +1 -1
  761. package/dist/server/component/instance-construction.js.map +1 -1
  762. package/dist/server/component/instance-identity.js.map +1 -1
  763. package/dist/server/component/interaction-contracts.js.map +1 -1
  764. package/dist/server/component/lifecycle-handlers.js.map +1 -1
  765. package/dist/server/component/list-capability-integration.js.map +1 -1
  766. package/dist/server/component/list-capability.js.map +1 -1
  767. package/dist/server/component/list-controller.js.map +1 -1
  768. package/dist/server/component/localization-capability.js.map +1 -1
  769. package/dist/server/component/log.js.map +1 -1
  770. package/dist/server/component/logical-owner.d.ts.map +1 -1
  771. package/dist/server/component/logical-owner.js +3 -2
  772. package/dist/server/component/logical-owner.js.map +1 -1
  773. package/dist/server/component/ownership.js.map +1 -1
  774. package/dist/server/component/performance-trace.js.map +1 -1
  775. package/dist/server/component/plugins.js.map +1 -1
  776. package/dist/server/component/reactive-expression.js.map +1 -1
  777. package/dist/server/component/reactive-expressions.d.ts.map +1 -1
  778. package/dist/server/component/reactive-expressions.js +3 -2
  779. package/dist/server/component/reactive-expressions.js.map +1 -1
  780. package/dist/server/component/reactive-value.js.map +1 -1
  781. package/dist/server/component/readiness.js.map +1 -1
  782. package/dist/server/component/ref-capability-integration.js.map +1 -1
  783. package/dist/server/component/ref-capability.js.map +1 -1
  784. package/dist/server/component/ref-runtime.js.map +1 -1
  785. package/dist/server/component/render-instance-construction.js.map +1 -1
  786. package/dist/server/component/render-instance.js.map +1 -1
  787. package/dist/server/component/render.js.map +1 -1
  788. package/dist/server/component/resource-ownership.js.map +1 -1
  789. package/dist/server/component/resumption.js.map +1 -1
  790. package/dist/server/component/root-lifecycle.js.map +1 -1
  791. package/dist/server/component/runtime-construction.js.map +1 -1
  792. package/dist/server/component/runtime-surface-contexts.js.map +1 -1
  793. package/dist/server/component/runtime-surface-lifecycle.js.map +1 -1
  794. package/dist/server/component/runtime-surface-lists.js.map +1 -1
  795. package/dist/server/component/runtime-surface-localization.js.map +1 -1
  796. package/dist/server/component/runtime-surface-logging.js.map +1 -1
  797. package/dist/server/component/runtime-surface-reactivity.js.map +1 -1
  798. package/dist/server/component/runtime-surface-refs.js.map +1 -1
  799. package/dist/server/component/runtime-surface-registration.js.map +1 -1
  800. package/dist/server/component/runtime-surface.js.map +1 -1
  801. package/dist/server/component/runtime.d.ts +3 -0
  802. package/dist/server/component/runtime.d.ts.map +1 -1
  803. package/dist/server/component/runtime.js +32 -6
  804. package/dist/server/component/runtime.js.map +1 -1
  805. package/dist/server/component/state.js.map +1 -1
  806. package/dist/server/component/task-capability-integration.js +1 -0
  807. package/dist/server/component/task-capability-integration.js.map +1 -1
  808. package/dist/server/component/task-capability.js.map +1 -1
  809. package/dist/server/component/task-inspection-history.js.map +1 -1
  810. package/dist/server/component/task-instance-construction.js.map +1 -1
  811. package/dist/server/component/task-instance.js.map +1 -1
  812. package/dist/server/component/task-observer.js.map +1 -1
  813. package/dist/server/component/task-owner-integration.js.map +1 -1
  814. package/dist/server/component/value-contracts.js.map +1 -1
  815. package/dist/server/component-abi/activity-receipt.js.map +1 -1
  816. package/dist/server/component-abi/artifact.js.map +1 -1
  817. package/dist/server/component-abi/child-range-receipt.js.map +1 -1
  818. package/dist/server/component-abi/client.d.ts +2 -1
  819. package/dist/server/component-abi/client.d.ts.map +1 -1
  820. package/dist/server/component-abi/client.js.map +1 -1
  821. package/dist/server/component-abi/compatibility-contribution.js.map +1 -1
  822. package/dist/server/component-abi/compiled-child-range.d.ts.map +1 -1
  823. package/dist/server/component-abi/compiled-child-range.js +6 -1
  824. package/dist/server/component-abi/compiled-child-range.js.map +1 -1
  825. package/dist/server/component-abi/compiled-runtime.js.map +1 -1
  826. package/dist/server/component-abi/executable-fields.js.map +1 -1
  827. package/dist/server/component-abi/fragment-receipt.d.ts +20 -0
  828. package/dist/server/component-abi/fragment-receipt.d.ts.map +1 -1
  829. package/dist/server/component-abi/fragment-receipt.js +35 -5
  830. package/dist/server/component-abi/fragment-receipt.js.map +1 -1
  831. package/dist/server/component-abi/intrinsic-receipt.d.ts +10 -0
  832. package/dist/server/component-abi/intrinsic-receipt.d.ts.map +1 -1
  833. package/dist/server/component-abi/intrinsic-receipt.js +44 -6
  834. package/dist/server/component-abi/intrinsic-receipt.js.map +1 -1
  835. package/dist/server/component-abi/keyed-child-receipt.js.map +1 -1
  836. package/dist/server/component-abi/opaque-operation.d.ts.map +1 -1
  837. package/dist/server/component-abi/opaque-operation.js +36 -3
  838. package/dist/server/component-abi/opaque-operation.js.map +1 -1
  839. package/dist/server/component-abi/portal-receipt.js.map +1 -1
  840. package/dist/server/component-abi/receipt.d.ts +7 -0
  841. package/dist/server/component-abi/receipt.d.ts.map +1 -1
  842. package/dist/server/component-abi/receipt.js +9 -0
  843. package/dist/server/component-abi/receipt.js.map +1 -1
  844. package/dist/server/component-abi/runtime.js.map +1 -1
  845. package/dist/server/component-abi/server-child-range.js +1 -1
  846. package/dist/server/component-abi/server-child-range.js.map +1 -1
  847. package/dist/server/component-abi/server-keyed-child.js.map +1 -1
  848. package/dist/server/component-abi/server-runtime.js.map +1 -1
  849. package/dist/server/component-abi/server-structure-receipts.js.map +1 -1
  850. package/dist/server/component-abi/server.d.ts +2 -1
  851. package/dist/server/component-abi/server.d.ts.map +1 -1
  852. package/dist/server/component-abi/server.js.map +1 -1
  853. package/dist/server/component-abi/suspense-receipt.js.map +1 -1
  854. package/dist/server/component-abi/target-receipt.d.ts +23 -1
  855. package/dist/server/component-abi/target-receipt.d.ts.map +1 -1
  856. package/dist/server/component-abi/target-receipt.js +46 -5
  857. package/dist/server/component-abi/target-receipt.js.map +1 -1
  858. package/dist/server/component-abi/text-projection-markup.d.ts +16 -0
  859. package/dist/server/component-abi/text-projection-markup.d.ts.map +1 -0
  860. package/dist/server/component-abi/text-projection-markup.js +110 -0
  861. package/dist/server/component-abi/text-projection-markup.js.map +1 -0
  862. package/dist/server/component-abi/text-projection.d.ts +12 -0
  863. package/dist/server/component-abi/text-projection.d.ts.map +1 -0
  864. package/dist/server/component-abi/text-projection.js +79 -0
  865. package/dist/server/component-abi/text-projection.js.map +1 -0
  866. package/dist/server/component-abi/unsafe-html-receipt.js.map +1 -1
  867. package/dist/server/component-abi/value-serialization.js.map +1 -1
  868. package/dist/server/component-contract/boundary-validation.js.map +1 -1
  869. package/dist/server/component-contract/composition-support.js.map +1 -1
  870. package/dist/server/component-contract/continuation-validation.js.map +1 -1
  871. package/dist/server/component-contract/contract-cache.js.map +1 -1
  872. package/dist/server/component-contract/contract-validation.d.ts.map +1 -1
  873. package/dist/server/component-contract/contract-validation.js +5 -13
  874. package/dist/server/component-contract/contract-validation.js.map +1 -1
  875. package/dist/server/component-contract/metadata-validation.d.ts +4 -0
  876. package/dist/server/component-contract/metadata-validation.d.ts.map +1 -1
  877. package/dist/server/component-contract/metadata-validation.js +16 -0
  878. package/dist/server/component-contract/metadata-validation.js.map +1 -1
  879. package/dist/server/component-contract/server-execution-validation.js.map +1 -1
  880. package/dist/server/component-contracts.d.ts +4 -3
  881. package/dist/server/component-contracts.d.ts.map +1 -1
  882. package/dist/server/component-contracts.js +7 -1
  883. package/dist/server/component-contracts.js.map +1 -1
  884. package/dist/server/component-definition-contracts.js.map +1 -1
  885. package/dist/server/component-registry/contracts.js.map +1 -1
  886. package/dist/server/component-registry/creation.d.ts.map +1 -1
  887. package/dist/server/component-registry/creation.js +4 -3
  888. package/dist/server/component-registry/creation.js.map +1 -1
  889. package/dist/server/component-registry/errors.js.map +1 -1
  890. package/dist/server/component-registry/loading.js.map +1 -1
  891. package/dist/server/component-registry/operations.js.map +1 -1
  892. package/dist/server/component-registry/storage.js.map +1 -1
  893. package/dist/server/component-registry/syntax.js.map +1 -1
  894. package/dist/server/document/composition.d.ts +7 -0
  895. package/dist/server/document/composition.d.ts.map +1 -0
  896. package/dist/server/document/composition.js +52 -0
  897. package/dist/server/document/composition.js.map +1 -0
  898. package/dist/server/document/definition.d.ts +10 -0
  899. package/dist/server/document/definition.d.ts.map +1 -0
  900. package/dist/server/document/definition.js +3 -0
  901. package/dist/server/document/definition.js.map +1 -0
  902. package/dist/server/document/doctype.d.ts +17 -0
  903. package/dist/server/document/doctype.d.ts.map +1 -0
  904. package/dist/server/document/doctype.js +35 -0
  905. package/dist/server/document/doctype.js.map +1 -0
  906. package/dist/server/document/output.d.ts +22 -0
  907. package/dist/server/document/output.d.ts.map +1 -0
  908. package/dist/server/document/output.js +30 -0
  909. package/dist/server/document/output.js.map +1 -0
  910. package/dist/server/document.d.ts +6 -0
  911. package/dist/server/document.d.ts.map +1 -0
  912. package/dist/server/document.js +5 -0
  913. package/dist/server/document.js.map +1 -0
  914. package/dist/server/dynamic-component/contracts.js.map +1 -1
  915. package/dist/server/dynamic-component/creation.js.map +1 -1
  916. package/dist/server/dynamic-component/runtime.js.map +1 -1
  917. package/dist/server/enhancements.d.ts +2 -0
  918. package/dist/server/enhancements.d.ts.map +1 -1
  919. package/dist/server/enhancements.js +8 -4
  920. package/dist/server/enhancements.js.map +1 -1
  921. package/dist/server/framework/async-values.js.map +1 -1
  922. package/dist/server/framework/compatibility-contributions.js.map +1 -1
  923. package/dist/server/framework/component-contract-validation.js.map +1 -1
  924. package/dist/server/framework/component-contracts.js.map +1 -1
  925. package/dist/server/framework/component-domains.js.map +1 -1
  926. package/dist/server/framework/component-execution.js.map +1 -1
  927. package/dist/server/framework/component-lifecycle.js.map +1 -1
  928. package/dist/server/framework/component-roots.js.map +1 -1
  929. package/dist/server/framework/enhancement-catalog.js.map +1 -1
  930. package/dist/server/framework/enhancement-fallback.d.ts +12 -0
  931. package/dist/server/framework/enhancement-fallback.d.ts.map +1 -0
  932. package/dist/server/framework/enhancement-fallback.js +41 -0
  933. package/dist/server/framework/enhancement-fallback.js.map +1 -0
  934. package/dist/server/framework/enhancement-order.d.ts +9 -0
  935. package/dist/server/framework/enhancement-order.d.ts.map +1 -0
  936. package/dist/server/framework/enhancement-order.js +34 -0
  937. package/dist/server/framework/enhancement-order.js.map +1 -0
  938. package/dist/server/framework/error-format.js.map +1 -1
  939. package/dist/server/framework/error-view.js.map +1 -1
  940. package/dist/server/framework/fragment-enhancement-chain.d.ts +4 -0
  941. package/dist/server/framework/fragment-enhancement-chain.d.ts.map +1 -0
  942. package/dist/server/framework/fragment-enhancement-chain.js +28 -0
  943. package/dist/server/framework/fragment-enhancement-chain.js.map +1 -0
  944. package/dist/server/framework/fragment-hosts.d.ts +30 -0
  945. package/dist/server/framework/fragment-hosts.d.ts.map +1 -0
  946. package/dist/server/framework/fragment-hosts.js +65 -0
  947. package/dist/server/framework/fragment-hosts.js.map +1 -0
  948. package/dist/server/framework/fragment-target-projection.d.ts +8 -0
  949. package/dist/server/framework/fragment-target-projection.d.ts.map +1 -0
  950. package/dist/server/framework/fragment-target-projection.js +98 -0
  951. package/dist/server/framework/fragment-target-projection.js.map +1 -0
  952. package/dist/server/framework/inspection-transport.js.map +1 -1
  953. package/dist/server/framework/operation-protocol.js.map +1 -1
  954. package/dist/server/framework/prepared-target-output.d.ts +11 -0
  955. package/dist/server/framework/prepared-target-output.d.ts.map +1 -0
  956. package/dist/server/framework/prepared-target-output.js +51 -0
  957. package/dist/server/framework/prepared-target-output.js.map +1 -0
  958. package/dist/server/framework/protocol-records.js.map +1 -1
  959. package/dist/server/framework/publication.js.map +1 -1
  960. package/dist/server/framework/render-structure.d.ts +10 -0
  961. package/dist/server/framework/render-structure.d.ts.map +1 -1
  962. package/dist/server/framework/render-structure.js +10 -0
  963. package/dist/server/framework/render-structure.js.map +1 -1
  964. package/dist/server/framework/server-component-contexts.js.map +1 -1
  965. package/dist/server/framework/server-component-execution.js.map +1 -1
  966. package/dist/server/framework/server-render-structure.js.map +1 -1
  967. package/dist/server/framework/server-task-helpers.d.ts +1 -0
  968. package/dist/server/framework/server-task-helpers.d.ts.map +1 -1
  969. package/dist/server/framework/server-task-helpers.js +1 -0
  970. package/dist/server/framework/server-task-helpers.js.map +1 -1
  971. package/dist/server/framework/supplied-placement.d.ts +8 -0
  972. package/dist/server/framework/supplied-placement.d.ts.map +1 -0
  973. package/dist/server/framework/supplied-placement.js +80 -0
  974. package/dist/server/framework/supplied-placement.js.map +1 -0
  975. package/dist/server/framework/target-contributions.d.ts +2 -0
  976. package/dist/server/framework/target-contributions.d.ts.map +1 -1
  977. package/dist/server/framework/target-contributions.js +38 -0
  978. package/dist/server/framework/target-contributions.js.map +1 -1
  979. package/dist/server/framework/task-frames.js.map +1 -1
  980. package/dist/server/framework/text-target-output.d.ts +6 -0
  981. package/dist/server/framework/text-target-output.d.ts.map +1 -0
  982. package/dist/server/framework/text-target-output.js +14 -0
  983. package/dist/server/framework/text-target-output.js.map +1 -0
  984. package/dist/server/hydration-boundary.js.map +1 -1
  985. package/dist/server/index.js.map +1 -1
  986. package/dist/server/inspection-transport.js.map +1 -1
  987. package/dist/server/interaction/execution.js.map +1 -1
  988. package/dist/server/json.js.map +1 -1
  989. package/dist/server/keys.js.map +1 -1
  990. package/dist/server/localization/component-integration.js.map +1 -1
  991. package/dist/server/localization/context.js.map +1 -1
  992. package/dist/server/localization/contracts.js.map +1 -1
  993. package/dist/server/localization/facade.js.map +1 -1
  994. package/dist/server/localization/formatter-pool.js.map +1 -1
  995. package/dist/server/localization.js.map +1 -1
  996. package/dist/server/logging.js.map +1 -1
  997. package/dist/server/native-props.js.map +1 -1
  998. package/dist/server/protocol-utf8.js.map +1 -1
  999. package/dist/server/protocol.js.map +1 -1
  1000. package/dist/server/render-children.js.map +1 -1
  1001. package/dist/server/render-program.d.ts +4 -1
  1002. package/dist/server/render-program.d.ts.map +1 -1
  1003. package/dist/server/render-program.js +1 -1
  1004. package/dist/server/render-program.js.map +1 -1
  1005. package/dist/server/runtime/collections.js.map +1 -1
  1006. package/dist/server/runtime/compatibility-component-abi.js.map +1 -1
  1007. package/dist/server/runtime/component-abi.d.ts +3 -3
  1008. package/dist/server/runtime/component-abi.d.ts.map +1 -1
  1009. package/dist/server/runtime/component-abi.js +3 -3
  1010. package/dist/server/runtime/component-abi.js.map +1 -1
  1011. package/dist/server/runtime/component-construction/direct-server.js.map +1 -1
  1012. package/dist/server/runtime/component-construction/durable.js.map +1 -1
  1013. package/dist/server/runtime/component-construction/render.js.map +1 -1
  1014. package/dist/server/runtime/component-construction/task.js.map +1 -1
  1015. package/dist/server/runtime/component-execution.js.map +1 -1
  1016. package/dist/server/runtime/component-operations.d.ts +3 -0
  1017. package/dist/server/runtime/component-operations.d.ts.map +1 -1
  1018. package/dist/server/runtime/component-operations.js +3 -0
  1019. package/dist/server/runtime/component-operations.js.map +1 -1
  1020. package/dist/server/runtime/component-reactivity.js.map +1 -1
  1021. package/dist/server/runtime/component-tasks.js.map +1 -1
  1022. package/dist/server/runtime/contexts.js.map +1 -1
  1023. package/dist/server/runtime/dynamic-components.js.map +1 -1
  1024. package/dist/server/runtime/enhancements.js.map +1 -1
  1025. package/dist/server/runtime/inspection.js.map +1 -1
  1026. package/dist/server/runtime/lifecycle.js.map +1 -1
  1027. package/dist/server/runtime/lists.js.map +1 -1
  1028. package/dist/server/runtime/localization.js.map +1 -1
  1029. package/dist/server/runtime/logging.js.map +1 -1
  1030. package/dist/server/runtime/reactivity.js.map +1 -1
  1031. package/dist/server/runtime/refs.js.map +1 -1
  1032. package/dist/server/runtime/registry.js.map +1 -1
  1033. package/dist/server/runtime/render-operations.js.map +1 -1
  1034. package/dist/server/runtime/render.js.map +1 -1
  1035. package/dist/server/runtime/tasks.js.map +1 -1
  1036. package/dist/server/server-render-program.js.map +1 -1
  1037. package/dist/server/ssr-independence.js.map +1 -1
  1038. package/dist/server/symbols.js.map +1 -1
  1039. package/dist/server/tasks/activation.js.map +1 -1
  1040. package/dist/server/tasks/cancellation.js.map +1 -1
  1041. package/dist/server/tasks/compiled-latest.js.map +1 -1
  1042. package/dist/server/tasks/component-continuation.js.map +1 -1
  1043. package/dist/server/tasks/component-execution-capability.js.map +1 -1
  1044. package/dist/server/tasks/component-execution-plan.js.map +1 -1
  1045. package/dist/server/tasks/component-execution-slice.js.map +1 -1
  1046. package/dist/server/tasks/component-execution.js.map +1 -1
  1047. package/dist/server/tasks/computation-activation.js.map +1 -1
  1048. package/dist/server/tasks/continuations.js.map +1 -1
  1049. package/dist/server/tasks/contracts.js.map +1 -1
  1050. package/dist/server/tasks/definition-record.js.map +1 -1
  1051. package/dist/server/tasks/dependency-provenance.js.map +1 -1
  1052. package/dist/server/tasks/dependency-source.js.map +1 -1
  1053. package/dist/server/tasks/dependency-watcher.js.map +1 -1
  1054. package/dist/server/tasks/frame-context.js.map +1 -1
  1055. package/dist/server/tasks/frame-continuation.js.map +1 -1
  1056. package/dist/server/tasks/frame-contracts.js.map +1 -1
  1057. package/dist/server/tasks/frame-inspection-capability.js.map +1 -1
  1058. package/dist/server/tasks/frame-inspection.js.map +1 -1
  1059. package/dist/server/tasks/frame-runtime.js.map +1 -1
  1060. package/dist/server/tasks/frame-settlement.js.map +1 -1
  1061. package/dist/server/tasks/generation-execution.js.map +1 -1
  1062. package/dist/server/tasks/invocation.js.map +1 -1
  1063. package/dist/server/tasks/observers.js.map +1 -1
  1064. package/dist/server/tasks/optimism.js.map +1 -1
  1065. package/dist/server/tasks/options.js.map +1 -1
  1066. package/dist/server/tasks/owner-activations.js.map +1 -1
  1067. package/dist/server/tasks/owner-hosts.js.map +1 -1
  1068. package/dist/server/tasks/owner-record.js.map +1 -1
  1069. package/dist/server/tasks/owners.js.map +1 -1
  1070. package/dist/server/tasks/performance-trace.js.map +1 -1
  1071. package/dist/server/tasks/policy.js.map +1 -1
  1072. package/dist/server/tasks/priority.js.map +1 -1
  1073. package/dist/server/tasks/public.js.map +1 -1
  1074. package/dist/server/tasks/resources.js.map +1 -1
  1075. package/dist/server/tasks/runtime-types.js.map +1 -1
  1076. package/dist/server/tasks/runtime.js.map +1 -1
  1077. package/dist/server/tasks/scheduled-reactions.js.map +1 -1
  1078. package/dist/server/tasks/server-component-execution-contracts.js.map +1 -1
  1079. package/dist/server/tasks/server-component-execution.d.ts +3 -0
  1080. package/dist/server/tasks/server-component-execution.d.ts.map +1 -1
  1081. package/dist/server/tasks/server-component-execution.js +16 -46
  1082. package/dist/server/tasks/server-component-execution.js.map +1 -1
  1083. package/dist/server/tasks/server-component-resources.js.map +1 -1
  1084. package/dist/server/tasks/server-component-task-slice.d.ts +5 -0
  1085. package/dist/server/tasks/server-component-task-slice.d.ts.map +1 -0
  1086. package/dist/server/tasks/server-component-task-slice.js +56 -0
  1087. package/dist/server/tasks/server-component-task-slice.js.map +1 -0
  1088. package/dist/server/tasks/server-component-task-tree.d.ts +9 -0
  1089. package/dist/server/tasks/server-component-task-tree.d.ts.map +1 -0
  1090. package/dist/server/tasks/server-component-task-tree.js +38 -0
  1091. package/dist/server/tasks/server-component-task-tree.js.map +1 -0
  1092. package/dist/server/tasks/server-task-readiness.js.map +1 -1
  1093. package/dist/server/tasks/signals.js.map +1 -1
  1094. package/dist/server/tasks/status.js.map +1 -1
  1095. package/dist/server/tasks/v1.js.map +1 -1
  1096. package/dist/server/testing/runtime-artifacts.d.ts.map +1 -1
  1097. package/dist/server/testing/runtime-artifacts.js +4 -3
  1098. package/dist/server/testing/runtime-artifacts.js.map +1 -1
  1099. package/dist/server/testing/runtime.d.ts.map +1 -1
  1100. package/dist/server/testing/runtime.js +4 -2
  1101. package/dist/server/testing/runtime.js.map +1 -1
  1102. package/dist/server/testing.js.map +1 -1
  1103. package/dist/server/url.js.map +1 -1
  1104. package/dist/server-render-program.js.map +1 -1
  1105. package/dist/ssr-independence.js.map +1 -1
  1106. package/dist/symbols.js.map +1 -1
  1107. package/dist/tasks/activation.js.map +1 -1
  1108. package/dist/tasks/cancellation.js.map +1 -1
  1109. package/dist/tasks/compiled-latest.js.map +1 -1
  1110. package/dist/tasks/component-continuation.js.map +1 -1
  1111. package/dist/tasks/component-execution-capability.js.map +1 -1
  1112. package/dist/tasks/component-execution-plan.js.map +1 -1
  1113. package/dist/tasks/component-execution-slice.js.map +1 -1
  1114. package/dist/tasks/component-execution.js.map +1 -1
  1115. package/dist/tasks/computation-activation.js.map +1 -1
  1116. package/dist/tasks/continuations.js.map +1 -1
  1117. package/dist/tasks/contracts.js.map +1 -1
  1118. package/dist/tasks/definition-record.js.map +1 -1
  1119. package/dist/tasks/dependency-provenance.js.map +1 -1
  1120. package/dist/tasks/dependency-source.js.map +1 -1
  1121. package/dist/tasks/dependency-watcher.js.map +1 -1
  1122. package/dist/tasks/frame-context.js.map +1 -1
  1123. package/dist/tasks/frame-continuation.js.map +1 -1
  1124. package/dist/tasks/frame-contracts.js.map +1 -1
  1125. package/dist/tasks/frame-inspection-capability.js.map +1 -1
  1126. package/dist/tasks/frame-inspection.js.map +1 -1
  1127. package/dist/tasks/frame-runtime.js.map +1 -1
  1128. package/dist/tasks/frame-settlement.js.map +1 -1
  1129. package/dist/tasks/generation-execution.js.map +1 -1
  1130. package/dist/tasks/invocation.js.map +1 -1
  1131. package/dist/tasks/observers.js.map +1 -1
  1132. package/dist/tasks/optimism.js.map +1 -1
  1133. package/dist/tasks/options.js.map +1 -1
  1134. package/dist/tasks/owner-activations.js.map +1 -1
  1135. package/dist/tasks/owner-hosts.js.map +1 -1
  1136. package/dist/tasks/owner-record.js.map +1 -1
  1137. package/dist/tasks/owners.js.map +1 -1
  1138. package/dist/tasks/performance-trace.js.map +1 -1
  1139. package/dist/tasks/policy.js.map +1 -1
  1140. package/dist/tasks/priority.js.map +1 -1
  1141. package/dist/tasks/public.js.map +1 -1
  1142. package/dist/tasks/resources.js.map +1 -1
  1143. package/dist/tasks/runtime-types.js.map +1 -1
  1144. package/dist/tasks/runtime.js.map +1 -1
  1145. package/dist/tasks/scheduled-reactions.js.map +1 -1
  1146. package/dist/tasks/server-component-execution-contracts.js.map +1 -1
  1147. package/dist/tasks/server-component-execution.d.ts +3 -0
  1148. package/dist/tasks/server-component-execution.d.ts.map +1 -1
  1149. package/dist/tasks/server-component-execution.js +16 -46
  1150. package/dist/tasks/server-component-execution.js.map +1 -1
  1151. package/dist/tasks/server-component-resources.js.map +1 -1
  1152. package/dist/tasks/server-component-task-slice.d.ts +5 -0
  1153. package/dist/tasks/server-component-task-slice.d.ts.map +1 -0
  1154. package/dist/tasks/server-component-task-slice.js +56 -0
  1155. package/dist/tasks/server-component-task-slice.js.map +1 -0
  1156. package/dist/tasks/server-component-task-tree.d.ts +9 -0
  1157. package/dist/tasks/server-component-task-tree.d.ts.map +1 -0
  1158. package/dist/tasks/server-component-task-tree.js +38 -0
  1159. package/dist/tasks/server-component-task-tree.js.map +1 -0
  1160. package/dist/tasks/server-task-readiness.js.map +1 -1
  1161. package/dist/tasks/signals.js.map +1 -1
  1162. package/dist/tasks/status.js.map +1 -1
  1163. package/dist/tasks/v1.js.map +1 -1
  1164. package/dist/testing/runtime-artifacts.d.ts.map +1 -1
  1165. package/dist/testing/runtime-artifacts.js +4 -3
  1166. package/dist/testing/runtime-artifacts.js.map +1 -1
  1167. package/dist/testing/runtime.d.ts.map +1 -1
  1168. package/dist/testing/runtime.js +4 -2
  1169. package/dist/testing/runtime.js.map +1 -1
  1170. package/dist/testing.js.map +1 -1
  1171. package/dist/url.js.map +1 -1
  1172. package/package.json +12 -2
@@ -1 +1 @@
1
- {"version":3,"file":"server-task-helpers.d.ts","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"server-task-helpers.d.ts","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -7,6 +7,7 @@ export { activateCompiledClientLatestTaskForHost, bindCompiledClientLatestTaskFo
7
7
  export { markComponentContinuationTask } from '../tasks/component-continuation.js';
8
8
  export { taskMutation } from '../tasks/frame-runtime.js';
9
9
  export { bindTaskForHost, defineTask, invokeTask } from '../tasks/runtime.js';
10
+ export { activateServerComponentTaskTreeForHost } from '../tasks/server-component-task-tree.js';
10
11
  export { mutateTaskCollection, ownTaskResource, stageTaskMutation, taskAnimationFrame, taskAwait, taskFetch, taskIdleCallback, taskInterval, taskObserver, taskTimeout } from '../tasks/resources.js';
11
12
  export { combineTaskSignal, withAbortSignal, withTaskSignal } from '../tasks/signals.js';
12
13
  //# sourceMappingURL=server-task-helpers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-task-helpers.js","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"server-task-helpers.js","sourceRoot":"","sources":["../../../src/framework/server-task-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EACN,uCAAuC,EACvC,mCAAmC,EACnC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,sCAAsC,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC","sourcesContent":["export { registerComponentContinuationContexts } from '../component/context-resumption.js';\nexport { dispatchComponentContinuation } from '../component/domain.js';\nexport { activateTaskForHost } from '../tasks/activation.js';\nexport { activateComputationForHost } from '../tasks/computation-activation.js';\nexport { createTrackedContinuationDependency } from '../tasks/dependency-source.js';\nexport {\n\tactivateCompiledClientLatestTaskForHost,\n\tbindCompiledClientLatestTaskForHost\n} from '../tasks/compiled-latest.js';\nexport { markComponentContinuationTask } from '../tasks/component-continuation.js';\nexport { taskMutation } from '../tasks/frame-runtime.js';\nexport { bindTaskForHost, defineTask, invokeTask } from '../tasks/runtime.js';\nexport { activateServerComponentTaskTreeForHost } from '../tasks/server-component-task-tree.js';\nexport {\n\tmutateTaskCollection,\n\townTaskResource,\n\tstageTaskMutation,\n\ttaskAnimationFrame,\n\ttaskAwait,\n\ttaskFetch,\n\ttaskIdleCallback,\n\ttaskInterval,\n\ttaskObserver,\n\ttaskTimeout\n} from '../tasks/resources.js';\nexport { combineTaskSignal, withAbortSignal, withTaskSignal } from '../tasks/signals.js';\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Checks an owner's current structural output before placement. It follows compiler child slots,
3
+ * never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive
4
+ * placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.
5
+ * Returns the selected operation so a renderer can transfer its existing placement ownership.
6
+ */
7
+ export declare function assertSingleSuppliedPlacement(output: readonly unknown[], supplied: unknown): object | undefined;
8
+ //# sourceMappingURL=supplied-placement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplied-placement.d.ts","sourceRoot":"","sources":["../../../src/framework/supplied-placement.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,EAC1B,QAAQ,EAAE,OAAO,GACf,MAAM,GAAG,SAAS,CA8DpB"}
@@ -0,0 +1,80 @@
1
+ import { unwrap } from '@exactjs/reactive/framework/values';
2
+ import { readCompiledComponentReceipt, readPreparedServerComponentReference } from '../component-abi/receipt.js';
3
+ import { readCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';
4
+ import { readCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';
5
+ import { readCompiledTargetReceipt } from '../component-abi/target-receipt.js';
6
+ import { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';
7
+ import { readPreparedServerChildRange } from '../component-abi/server-child-range.js';
8
+ import { readCompiledKeyedChildReceipt } from '../component-abi/keyed-child-receipt.js';
9
+ import { readRenderProgramReceipt, readRenderProgramSlot } from '../render-program.js';
10
+ import { readPreparedServerRenderProgram } from '../server-render-program.js';
11
+ /**
12
+ * Checks an owner's current structural output before placement. It follows compiler child slots,
13
+ * never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive
14
+ * placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.
15
+ * Returns the selected operation so a renderer can transfer its existing placement ownership.
16
+ */
17
+ export function assertSingleSuppliedPlacement(output, supplied) {
18
+ let selected = unwrap(supplied);
19
+ while (Array.isArray(selected) && selected.length === 1)
20
+ selected = unwrap(selected[0]);
21
+ if (selected == null || typeof selected === 'boolean')
22
+ return;
23
+ let placements = 0;
24
+ let placement;
25
+ const place = (value) => {
26
+ if (++placements > 1)
27
+ throw new TypeError('A supplied target cannot be placed more than once by one component');
28
+ placement = value;
29
+ };
30
+ const visit = (raw) => {
31
+ const value = unwrap(raw);
32
+ if (Array.isArray(value)) {
33
+ for (const child of value)
34
+ visit(child);
35
+ return;
36
+ }
37
+ if (typeof value !== 'object' || value === null)
38
+ return;
39
+ if (value === selected) {
40
+ place(value);
41
+ return;
42
+ }
43
+ const target = readCompiledTargetReceipt(value);
44
+ if (target && target.children.length === 1 && unwrap(target.children[0]) === selected) {
45
+ place(value);
46
+ return;
47
+ }
48
+ const component = readCompiledComponentReceipt(value) ?? readPreparedServerComponentReference(value);
49
+ const intrinsic = readCompiledIntrinsicReceipt(value);
50
+ const fragment = readCompiledFragmentReceipt(value);
51
+ const range = readChildRangeReceipt(value);
52
+ const serverRange = readPreparedServerChildRange(value);
53
+ const keyed = readCompiledKeyedChildReceipt(value);
54
+ const program = readRenderProgramReceipt(value);
55
+ const serverProgram = readPreparedServerRenderProgram(value);
56
+ const children = target?.children ??
57
+ component?.children ??
58
+ intrinsic?.children ??
59
+ fragment?.children ??
60
+ (range
61
+ ? range.mayReplaceSubtree
62
+ ? [range.value]
63
+ : []
64
+ : serverRange
65
+ ? [serverRange.value]
66
+ : keyed
67
+ ? [keyed.value]
68
+ : program
69
+ ? (program.invocation.program.targetSlots ?? []).map((index) => readRenderProgramSlot(program.invocation, index))
70
+ : serverProgram
71
+ ? (serverProgram.program.targetSlots ?? []).map((index) => serverProgram.eagerValues[index])
72
+ : []);
73
+ for (const child of children)
74
+ visit(child);
75
+ };
76
+ for (const child of output)
77
+ visit(child);
78
+ return placement;
79
+ }
80
+ //# sourceMappingURL=supplied-placement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supplied-placement.js","sourceRoot":"","sources":["../../../src/framework/supplied-placement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EACN,4BAA4B,EAC5B,oCAAoC,EACpC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACvF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAE9E;;;;;GAKG;AACH,MAAM,UAAU,6BAA6B,CAC5C,MAA0B,EAC1B,QAAiB;IAEjB,IAAI,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CA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AK,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,MAAM;QAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACzC,OAAO,SAAS,CAAC;AAClB,CAAC","sourcesContent":["import { unwrap } from '@exactjs/reactive/framework/values';\nimport {\n\treadCompiledComponentReceipt,\n\treadPreparedServerComponentReference\n} from '../component-abi/receipt.js';\nimport { readCompiledIntrinsicReceipt } from '../component-abi/intrinsic-receipt.js';\nimport { readCompiledFragmentReceipt } from '../component-abi/fragment-receipt.js';\nimport { readCompiledTargetReceipt } from '../component-abi/target-receipt.js';\nimport { readChildRangeReceipt } from '../component-abi/child-range-receipt.js';\nimport { readPreparedServerChildRange } from '../component-abi/server-child-range.js';\nimport { readCompiledKeyedChildReceipt } from '../component-abi/keyed-child-receipt.js';\nimport { readRenderProgramReceipt, readRenderProgramSlot } from '../render-program.js';\nimport { readPreparedServerRenderProgram } from '../server-render-program.js';\n\n/**\n * Checks an owner's current structural output before placement. It follows compiler child slots,\n * never executes a component, and ignores scalar ranges unrelated to placement. Mutually exclusive\n * placements are evaluated from the same reactive snapshot so moving a child is not a duplicate.\n * Returns the selected operation so a renderer can transfer its existing placement ownership.\n */\nexport function assertSingleSuppliedPlacement(\n\toutput: readonly unknown[],\n\tsupplied: unknown\n): object | undefined {\n\tlet selected = unwrap(supplied);\n\twhile (Array.isArray(selected) && selected.length === 1) selected = unwrap(selected[0]);\n\tif (selected == null || typeof selected === 'boolean') return;\n\tlet placements = 0;\n\tlet placement: object | undefined;\n\tconst place = (value: object) => {\n\t\tif (++placements > 1)\n\t\t\tthrow new TypeError('A supplied target cannot be placed more than once by one component');\n\t\tplacement = value;\n\t};\n\tconst visit = (raw: unknown): void => {\n\t\tconst value = unwrap(raw);\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (const child of value) visit(child);\n\t\t\treturn;\n\t\t}\n\t\tif (typeof value !== 'object' || value === null) return;\n\t\tif (value === selected) {\n\t\t\tplace(value);\n\t\t\treturn;\n\t\t}\n\t\tconst target = readCompiledTargetReceipt(value);\n\t\tif (target && target.children.length === 1 && unwrap(target.children[0]) === selected) {\n\t\t\tplace(value);\n\t\t\treturn;\n\t\t}\n\t\tconst component =\n\t\t\treadCompiledComponentReceipt(value) ?? readPreparedServerComponentReference(value);\n\t\tconst intrinsic = readCompiledIntrinsicReceipt(value);\n\t\tconst fragment = readCompiledFragmentReceipt(value);\n\t\tconst range = readChildRangeReceipt(value);\n\t\tconst serverRange = readPreparedServerChildRange(value);\n\t\tconst keyed = readCompiledKeyedChildReceipt(value);\n\t\tconst program = readRenderProgramReceipt(value);\n\t\tconst serverProgram = readPreparedServerRenderProgram(value);\n\t\tconst children =\n\t\t\ttarget?.children ??\n\t\t\tcomponent?.children ??\n\t\t\tintrinsic?.children ??\n\t\t\tfragment?.children ??\n\t\t\t(range\n\t\t\t\t? range.mayReplaceSubtree\n\t\t\t\t\t? [range.value]\n\t\t\t\t\t: []\n\t\t\t\t: serverRange\n\t\t\t\t\t? [serverRange.value]\n\t\t\t\t\t: keyed\n\t\t\t\t\t\t? [keyed.value]\n\t\t\t\t\t\t: program\n\t\t\t\t\t\t\t? (program.invocation.program.targetSlots ?? []).map((index) =>\n\t\t\t\t\t\t\t\t\treadRenderProgramSlot(program.invocation, index)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t: serverProgram\n\t\t\t\t\t\t\t\t? (serverProgram.program.targetSlots ?? []).map(\n\t\t\t\t\t\t\t\t\t\t(index) => serverProgram.eagerValues[index]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: []);\n\t\tfor (const child of children) visit(child);\n\t};\n\tfor (const child of output) visit(child);\n\treturn placement;\n}\n"]}
@@ -2,4 +2,6 @@
2
2
  export declare function mergeTargetClassContributions(values: readonly unknown[]): string | null | undefined;
3
3
  /** Merges ordered ARIA/token-list target contributions with stable de-duplication. */
4
4
  export declare function mergeTargetTokenContributions(values: readonly unknown[]): string | null | undefined;
5
+ /** Composes one semantic-target layer with authored and nearest-owner precedence. */
6
+ export declare function composeTargetProps(base: Readonly<Record<string, unknown>>, layer: Readonly<Record<string, unknown>>): Record<string, unknown>;
5
7
  //# sourceMappingURL=target-contributions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"target-contributions.d.ts","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"AAGA,kFAAkF;AAClF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B;AAED,sFAAsF;AACtF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B"}
1
+ {"version":3,"file":"target-contributions.d.ts","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"AAIA,kFAAkF;AAClF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B;AAED,sFAAsF;AACtF,wBAAgB,6BAA6B,CAC5C,MAAM,EAAE,SAAS,OAAO,EAAE,GACxB,MAAM,GAAG,IAAI,GAAG,SAAS,CAE3B;AA8BD,qFAAqF;AACrF,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACvC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAsBzB"}
@@ -1,4 +1,5 @@
1
1
  import { unwrap } from '@exactjs/reactive/framework/runtime';
2
+ import { TargetOverrides } from '../symbols.js';
2
3
  import { normalizeClassValue } from '../class-values.js';
3
4
  /** Merges ordered target class contributions with stable token de-duplication. */
4
5
  export function mergeTargetClassContributions(values) {
@@ -25,4 +26,41 @@ function mergeTargetTokens(values, normalize) {
25
26
  }
26
27
  return tokens.length ? tokens.join(' ') : suppressed ? null : undefined;
27
28
  }
29
+ const tokenListProps = new Set([
30
+ 'aria-describedby',
31
+ 'aria-labelledby',
32
+ 'aria-controls',
33
+ 'aria-owns',
34
+ 'aria-flowto',
35
+ 'rel'
36
+ ]);
37
+ /** Composes one semantic-target layer with authored and nearest-owner precedence. */
38
+ export function composeTargetProps(base, layer) {
39
+ const result = { ...base };
40
+ delete result[TargetOverrides];
41
+ const overrideValue = unwrap(layer[TargetOverrides]);
42
+ // Most layers have no overrides. Membership against a string key also ignores
43
+ // non-string entries, without allocating a filtered array or an empty Set per host.
44
+ const overrides = Array.isArray(overrideValue) && overrideValue.length ? new Set(overrideValue) : undefined;
45
+ for (const key of new Set([...Object.keys(base), ...Object.keys(layer)])) {
46
+ if (key === 'children' || key === 'key' || key === 'ref' || /^on[A-Z]/.test(key))
47
+ continue;
48
+ const authored = unwrap(base[key]);
49
+ const contributed = unwrap(layer[key]);
50
+ if (overrides?.has(key))
51
+ result[key] = contributed;
52
+ else if (key === 'class' || key === 'className')
53
+ result[key] = mergeTargetClassContributions([authored, contributed]);
54
+ else if (tokenListProps.has(key))
55
+ result[key] = mergeTargetTokenContributions([authored, contributed]);
56
+ else if (key === 'style' && isRecord(contributed) && isRecord(authored))
57
+ result[key] = { ...contributed, ...authored };
58
+ else
59
+ result[key] = authored !== undefined ? authored : contributed;
60
+ }
61
+ return result;
62
+ }
63
+ function isRecord(value) {
64
+ return !!value && typeof value === 'object' && !Array.isArray(value);
65
+ }
28
66
  //# sourceMappingURL=target-contributions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"target-contributions.js","sourceRoot":"","sources":["../../../src/framework/target-contributions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,kFAAkF;A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,CAAC,QAAQ,CAAC;YACtE,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,WAAW,EAAE,GAAG,QAAQ,EAAE,CAAC;;YAC1C,MAAM,CAAC,GAAG,CAAC,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC;IACpE,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC/B,OAAO,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACtE,CAAC","sourcesContent":["import { unwrap } from '@exactjs/reactive/framework/runtime';\nimport { TargetOverrides } from '../symbols.js';\nimport { normalizeClassValue } from '../class-values.js';\n\n/** Merges ordered target class contributions with stable token de-duplication. */\nexport function mergeTargetClassContributions(\n\tvalues: readonly unknown[]\n): string | null | undefined {\n\treturn mergeTargetTokens(values, normalizeClassValue);\n}\n\n/** Merges ordered ARIA/token-list target contributions with stable de-duplication. */\nexport function mergeTargetTokenContributions(\n\tvalues: readonly unknown[]\n): string | null | undefined {\n\treturn mergeTargetTokens(values, String);\n}\n\nfunction mergeTargetTokens(\n\tvalues: readonly unknown[],\n\tnormalize: (value: unknown) => string\n): string | null | undefined {\n\tconst tokens: string[] = [];\n\tlet suppressed = false;\n\tfor (const value of values) {\n\t\tconst actual = unwrap(value);\n\t\tif (actual === undefined) continue;\n\t\tif (actual === null) {\n\t\t\tsuppressed = true;\n\t\t\tcontinue;\n\t\t}\n\t\tfor (const token of normalize(actual).split(/\\s+/))\n\t\t\tif (token && !tokens.includes(token)) tokens.push(token);\n\t}\n\treturn tokens.length ? tokens.join(' ') : suppressed ? null : undefined;\n}\n\nconst tokenListProps = new Set([\n\t'aria-describedby',\n\t'aria-labelledby',\n\t'aria-controls',\n\t'aria-owns',\n\t'aria-flowto',\n\t'rel'\n]);\n\n/** Composes one semantic-target layer with authored and nearest-owner precedence. */\nexport function composeTargetProps(\n\tbase: Readonly<Record<string, unknown>>,\n\tlayer: Readonly<Record<string, unknown>>\n): Record<string, unknown> {\n\tconst result: Record<string, unknown> = { ...base };\n\tdelete (result as Record<PropertyKey, unknown>)[TargetOverrides];\n\tconst overrideValue = unwrap((layer as Readonly<Record<PropertyKey, unknown>>)[TargetOverrides]);\n\t// Most layers have no overrides. Membership against a string key also ignores\n\t// non-string entries, without allocating a filtered array or an empty Set per host.\n\tconst overrides =\n\t\tArray.isArray(overrideValue) && overrideValue.length ? new Set(overrideValue) : undefined;\n\tfor (const key of new Set([...Object.keys(base), ...Object.keys(layer)])) {\n\t\tif (key === 'children' || key === 'key' || key === 'ref' || /^on[A-Z]/.test(key)) continue;\n\t\tconst authored = unwrap(base[key]);\n\t\tconst contributed = unwrap(layer[key]);\n\t\tif (overrides?.has(key)) result[key] = contributed;\n\t\telse if (key === 'class' || key === 'className')\n\t\t\tresult[key] = mergeTargetClassContributions([authored, contributed]);\n\t\telse if (tokenListProps.has(key))\n\t\t\tresult[key] = mergeTargetTokenContributions([authored, contributed]);\n\t\telse if (key === 'style' && isRecord(contributed) && isRecord(authored))\n\t\t\tresult[key] = { ...contributed, ...authored };\n\t\telse result[key] = authored !== undefined ? authored : contributed;\n\t}\n\treturn result;\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n\treturn !!value && typeof value === 'object' && !Array.isArray(value);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"task-frames.js","sourceRoot":"","sources":["../../../src/framework/task-frames.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EACN,yBAAyB,EACzB,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EAEnB,MAAM,2BAA2B,CAAC;AA2DnC,2DAA2D;AAC3D,MAAM,UAAU,gBAAgB;IAC/B,OAAO,sBAAsB,EAAgC,CAAC;AAC/D,C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G,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QACjD,OAAO,GAAG,OAAO,CAAC;IACnB,CAAC,CAAC,CAAC;IACH,yBAAyB,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC/C,OAAO;QACN,GAAG,CAAI,IAA8C;YACpD,IAAI,IAAI;gBACP,OAAO,0BAA0B,CAAC,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC,CAAC;YAC7F,IAAI,GAAG,IAAI,CAAC;YACZ,MAAM,SAAS,GAAG,wBAAwB,CACzC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,MAAmC,EAAE,EAC3D,EAAE,IAAI,EAAE,EACR,IAAI,CACJ,CAAC;YACF,oEAAoE;YACpE,yCAAyC;YACzC,KAAK,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,SAAS,CAAC;QAClB,CAAC;QACD,MAAM;YACL,IAAI,IAAI;gBAAE,OAAO;YACjB,IAAI,GAAG,IAAI,CAAC;YACZ,OAAO,EAAE,CAAC;QACX,CAAC;QACD,CAAC,MAAM,CAAC,OAAO,CAAC;YACf,IAAI,IAAI;gBAAE,OAAO;YACjB,IAAI,GAAG,IAAI,CAAC;YACZ,OAAO,EAAE,CAAC;QACX,CAAC;KACD,CAAC;AACH,CAAC;AAED,iEAAiE;AACjE,SAAS,0BAA0B,CAAI,KAAc;IACpD,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;IACzC,OAAO,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAI,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC;AACvE,CAAC;AAED,sEAAsE;AACtE,MAAM,UAAU,gBAAgB,CAAI,KAAqB,EAAE,IAAa;IACvE,OAAO,mBAAmB,CAAC,KAAmC,EAAE,IAAI,CAAC,CAAC;AACvE,CAAC","sourcesContent":["import type { TaskContext } from '../tasks/contracts.js';\nimport { TaskCancellation } from '../tasks/cancellation.js';\nimport {\n\tattachTaskFrameSettlement,\n\tcurrentTaskFrameRecord,\n\texecuteTaskFrame,\n\twithTaskFrameRecord,\n\ttype TaskFrameRecord\n} from '../tasks/frame-runtime.js';\n\ndeclare const taskFrameTokenBrand: unique symbol;\n\n/** Opaque authority identifying a live task frame. */\nexport interface TaskFrameToken {\n\treadonly [taskFrameTokenBrand]: true;\n}\n\n/** Framework-owned child frame policy. */\nexport interface RunTaskFrameOptions {\n\treadonly parent?: TaskFrameToken;\n\treadonly kind: string;\n\treadonly label?: string;\n\treadonly generation?: number;\n\treadonly detached?: boolean;\n\treadonly priority?: 'immediate' | 'normal' | 'deferred';\n\treadonly readiness?: 'blocking' | 'nonblocking';\n}\n\n/** Terminal structural outcome reported to framework coordinators. */\nexport type TaskFrameOutcome<T> =\n\t| { readonly status: 'fulfilled'; readonly value: T }\n\t| { readonly status: 'rejected'; readonly error: unknown }\n\t| { readonly status: 'cancelled'; readonly reason: unknown };\n\n/** Foreground readiness outcome reported exactly once. */\nexport type TaskForegroundOutcome =\n\t| { readonly status: 'ready' }\n\t| { readonly status: 'rejected'; readonly error: unknown }\n\t| { readonly status: 'cancelled'; readonly reason: unknown };\n\n/**\n * Structurally settled framework work with cooperative cancellation.\n *\n * Cancelling aborts the frame and every attached descendant. The promise does\n * not settle until foreground work, descendants, and cleanup have responded.\n */\nexport interface TaskFrameExecution<T> extends Promise<T> {\n\t/** Signal inherited by the frame's context and attached descendants. */\n\treadonly signal: AbortSignal;\n\n\t/** Requests cooperative cancellation while preserving structural settlement. */\n\tcancel(reason?: unknown): void;\n}\n\n/** Work and settlement hooks for a framework-created task frame. */\nexport interface RunTaskFrameHooks<T> {\n\twork(context: TaskContext): T | Promise<T>;\n\tafterForeground?(outcome: TaskForegroundOutcome): void | Promise<void>;\n\tafterChildren?(outcome: TaskFrameOutcome<T>): void | Promise<void>;\n}\n\n/** Atomically reserved frame that must be run or released exactly once. */\nexport interface TaskFrameReservation extends Disposable {\n\trun<T>(work: (context: TaskContext) => T | Promise<T>): TaskFrameExecution<T>;\n\tcancel(reason?: unknown): void;\n}\n\n/** Captures the synchronously active opaque task frame. */\nexport function captureTaskFrame(): TaskFrameToken | undefined {\n\treturn currentTaskFrameRecord() as TaskFrameToken | undefined;\n}\n\n/**\n * Runs framework work in a structurally attached, cooperatively cancelable\n * task frame.\n */\nexport function runTaskFrame<T>(\n\toptions: RunTaskFrameOptions,\n\thooks: RunTaskFrameHooks<T>\n): TaskFrameExecution<T> {\n\treturn createTaskFrameExecution(options, hooks, false);\n}\n\n/** Creates the cancelable public execution around one internal frame. */\nfunction createTaskFrameExecution<T>(\n\toptions: RunTaskFrameOptions,\n\thooks: RunTaskFrameHooks<T>,\n\tparentReserved: boolean\n): TaskFrameExecution<T> {\n\tconst controller = new AbortController();\n\tconst execution = runTaskFrameInternal(options, hooks, parentReserved, controller);\n\tconst parent = options.detached\n\t\t? undefined\n\t\t: ((options.parent as TaskFrameRecord | undefined) ?? currentTaskFrameRecord());\n\tif (parent && !parentReserved && parent.producerOpen && !parent.settled)\n\t\tattachTaskFrameSettlement(parent, execution);\n\treturn exposeTaskFrameExecution(execution, controller);\n}\n\n/** Adds framework cancellation authority to a native settlement promise. */\nfunction exposeTaskFrameExecution<T>(\n\texecution: Promise<T>,\n\tcontroller: AbortController\n): TaskFrameExecution<T> {\n\tlet settled = false;\n\tvoid execution.then(\n\t\t() => {\n\t\t\tsettled = true;\n\t\t},\n\t\t() => {\n\t\t\tsettled = true;\n\t\t}\n\t);\n\treturn Object.defineProperties(execution, {\n\t\tsignal: {\n\t\t\tconfigurable: false,\n\t\t\tenumerable: true,\n\t\t\tvalue: controller.signal,\n\t\t\twritable: false\n\t\t},\n\t\tcancel: {\n\t\t\tconfigurable: false,\n\t\t\tenumerable: false,\n\t\t\tvalue(reason?: unknown) {\n\t\t\t\tif (!settled) controller.abort(reason);\n\t\t\t},\n\t\t\twritable: false\n\t\t}\n\t}) as TaskFrameExecution<T>;\n}\n\nasync function runTaskFrameInternal<T>(\n\toptions: RunTaskFrameOptions,\n\thooks: RunTaskFrameHooks<T>,\n\tparentReserved: boolean,\n\tcontroller: AbortController\n): Promise<T> {\n\tlet foregroundReported = false;\n\tlet childrenReported = false;\n\ttry {\n\t\tconst value = await executeTaskFrame(\n\t\t\t{\n\t\t\t\tparent: options.parent as TaskFrameRecord | undefined,\n\t\t\t\tparentReserved,\n\t\t\t\tcontroller,\n\t\t\t\tgeneration: options.generation,\n\t\t\t\tdetached: options.detached,\n\t\t\t\tkind: options.kind,\n\t\t\t\tlabel: options.label,\n\t\t\t\tpriority: options.priority,\n\t\t\t\treadiness: options.readiness\n\t\t\t},\n\t\t\tasync (context) => {\n\t\t\t\ttry {\n\t\t\t\t\tconst result = await hooks.work(context);\n\t\t\t\t\tforegroundReported = true;\n\t\t\t\t\tawait hooks.afterForeground?.({ status: 'ready' });\n\t\t\t\t\treturn result;\n\t\t\t\t} catch (error) {\n\t\t\t\t\tif (!foregroundReported) {\n\t\t\t\t\t\tforegroundReported = true;\n\t\t\t\t\t\tawait hooks.afterForeground?.(foregroundOutcome(controller.signal, error));\n\t\t\t\t\t}\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\t\tchildrenReported = true;\n\t\tawait hooks.afterChildren?.({ status: 'fulfilled', value });\n\t\treturn value;\n\t} catch (error) {\n\t\tif (!foregroundReported) {\n\t\t\tforegroundReported = true;\n\t\t\tawait hooks.afterForeground?.(foregroundOutcome(controller.signal, error));\n\t\t}\n\t\tif (!childrenReported) {\n\t\t\tchildrenReported = true;\n\t\t\tawait hooks.afterChildren?.(structuralOutcome(controller.signal, error));\n\t\t}\n\t\tthrow error;\n\t}\n}\n\n/** Classifies foreground failure using the frame's cancellation authority. */\nfunction foregroundOutcome(signal: AbortSignal, error: unknown): TaskForegroundOutcome {\n\treturn signal.aborted || error instanceof TaskCancellation\n\t\t? { status: 'cancelled', reason: cancellationReason(signal, error) }\n\t\t: { status: 'rejected', error };\n}\n\n/** Classifies structural failure using the frame's cancellation authority. */\nfunction structuralOutcome<T>(signal: AbortSignal, error: unknown): TaskFrameOutcome<T> {\n\treturn error instanceof TaskCancellation\n\t\t? { status: 'cancelled', reason: cancellationReason(signal, error) }\n\t\t: { status: 'rejected', error };\n}\n\n/** Preserves the originating abort reason after runtime cancellation wrapping. */\nfunction cancellationReason(signal: AbortSignal, error: unknown): unknown {\n\tif (error instanceof TaskCancellation) return error.reason;\n\treturn signal.aborted ? signal.reason : error;\n}\n\n/** Reserves an attached child before handing work to an external scheduler. */\nexport function reserveTaskFrame(options: RunTaskFrameOptions): TaskFrameReservation {\n\tconst parent = (options.parent as TaskFrameRecord | undefined) ?? currentTaskFrameRecord();\n\tif (!parent) throw new Error('A task frame reservation requires an active or explicit parent');\n\tlet used = false;\n\tlet release!: () => void;\n\tconst placeholder = new Promise<void>((resolve) => {\n\t\trelease = resolve;\n\t});\n\tattachTaskFrameSettlement(parent, placeholder);\n\treturn {\n\t\trun<T>(work: (context: TaskContext) => T | Promise<T>): TaskFrameExecution<T> {\n\t\t\tif (used)\n\t\t\t\treturn rejectedTaskFrameExecution(new Error('Task frame reservation was already released'));\n\t\t\tused = true;\n\t\t\tconst execution = createTaskFrameExecution(\n\t\t\t\t{ ...options, parent: parent as unknown as TaskFrameToken },\n\t\t\t\t{ work },\n\t\t\t\ttrue\n\t\t\t);\n\t\t\t// Keep the atomic placeholder until the public execution, including\n\t\t\t// its structural finalizer, has settled.\n\t\t\tvoid execution.then(release, release);\n\t\t\treturn execution;\n\t\t},\n\t\tcancel() {\n\t\t\tif (used) return;\n\t\t\tused = true;\n\t\t\trelease();\n\t\t},\n\t\t[Symbol.dispose]() {\n\t\t\tif (used) return;\n\t\t\tused = true;\n\t\t\trelease();\n\t\t}\n\t};\n}\n\n/** Creates a settled execution for invalid reservation reuse. */\nfunction rejectedTaskFrameExecution<T>(error: unknown): TaskFrameExecution<T> {\n\tconst controller = new AbortController();\n\treturn exposeTaskFrameExecution(Promise.reject<T>(error), controller);\n}\n\n/** Restores a captured frame for one synchronous callback segment. */\nexport function runWithTaskFrame<T>(frame: TaskFrameToken, work: () => T): T {\n\treturn withTaskFrameRecord(frame as unknown as TaskFrameRecord, work);\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import type { Child } from '../component/contracts.js';
2
+ /** Identifies present scalar output without treating absent values as live targets. */
3
+ export declare function isTextTargetOutput(value: unknown): boolean;
4
+ /** Gives scalar component output a request-local identity for namespace routing and adoption. */
5
+ export declare function prepareTextTargetOutput(children: readonly Child[]): Child[];
6
+ //# sourceMappingURL=text-target-output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-target-output.d.ts","sourceRoot":"","sources":["../../../src/framework/text-target-output.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAI1D;AAED,iGAAiG;AACjG,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,SAAS,KAAK,EAAE,GAAG,KAAK,EAAE,CAI3E"}
@@ -0,0 +1,14 @@
1
+ import { unwrap } from '@exactjs/reactive/framework/values';
2
+ import { createChildRangeReceipt } from '../component-abi/child-range-receipt.js';
3
+ /** Identifies present scalar output without treating absent values as live targets. */
4
+ export function isTextTargetOutput(value) {
5
+ const actual = unwrap(value);
6
+ if (Array.isArray(actual))
7
+ return actual.length > 0 && actual.every(isTextTargetOutput);
8
+ return typeof actual === 'string' || typeof actual === 'number';
9
+ }
10
+ /** Gives scalar component output a request-local identity for namespace routing and adoption. */
11
+ export function prepareTextTargetOutput(children) {
12
+ return children.map((child) => isTextTargetOutput(child) ? createChildRangeReceipt(child) : child);
13
+ }
14
+ //# sourceMappingURL=text-target-output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-target-output.js","sourceRoot":"","sources":["../../../src/framework/text-target-output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAElF,uFAAuF;AACvF,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAChD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;QAAE,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACxF,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAO,MAAM,KAAK,QAAQ,CAAC;AACjE,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,uBAAuB,CAAC,QAA0B;IACjE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAC7B,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAClE,CAAC;AACH,CAAC","sourcesContent":["import { unwrap } from '@exactjs/reactive/framework/values';\nimport type { Child } from '../component/contracts.js';\nimport { createChildRangeReceipt } from '../component-abi/child-range-receipt.js';\n\n/** Identifies present scalar output without treating absent values as live targets. */\nexport function isTextTargetOutput(value: unknown): boolean {\n\tconst actual = unwrap(value);\n\tif (Array.isArray(actual)) return actual.length > 0 && actual.every(isTextTargetOutput);\n\treturn typeof actual === 'string' || typeof actual === 'number';\n}\n\n/** Gives scalar component output a request-local identity for namespace routing and adoption. */\nexport function prepareTextTargetOutput(children: readonly Child[]): Child[] {\n\treturn children.map((child) =>\n\t\tisTextTargetOutput(child) ? createChildRangeReceipt(child) : child\n\t);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"hydration-boundary.js","sourceRoot":"","sources":["../../src/hydration-boundary.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAAU,CAAC;AAErD,oFAAoF;AACpF,MAAM,UAAU,wBAAwB,CAAuB,QAAe;IAC7E,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,sBAAsB,CAAC,QAAgB;IACtD,OAAO,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"hydration-boundary.js","sourceRoot":"","sources":["../../src/hydration-boundary.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAAU,CAAC;AAErD,oFAAoF;AACpF,MAAM,UAAU,wBAAwB,CAAuB,QAAe;IAC7E,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACrC,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED,4EAA4E;AAC5E,MAAM,UAAU,sBAAsB,CAAC,QAAgB;IACtD,OAAO,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC","sourcesContent":["const finiteClientBoundaries = new WeakSet<object>();\n\n/** Marks a client boundary whose complete prop keys were proven by the compiler. */\nexport function markFiniteClientBoundary<Value extends object>(boundary: Value): Value {\n\tfiniteClientBoundaries.add(boundary);\n\treturn boundary;\n}\n\n/** Returns whether a boundary carries the module-private compiler proof. */\nexport function isFiniteClientBoundary(boundary: object): boolean {\n\treturn finiteClientBoundaries.has(boundary);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,KAAK,EACL,QAAQ,EACR,2BAA2B,EAC3B,mBAAmB,EACnB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EAC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AAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,cAAc,EAEd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACxF,OAAO,EAAE,YAAY,EAA2B,MAAM,mCAAmC,CAAC;AAC1F,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC","sourcesContent":["export {\n\tadoptElementId,\n\tattachElementIdentity,\n\tensureElementId,\n\treserveElementId,\n\treservedElementId,\n\tresolveElementId\n} from './component/element-identity.js';\nexport {\n\tbatch,\n\tcomputed,\n\tdecodeReactiveProtocolValue,\n\tdeleteReactiveValue,\n\tencodeReactiveProtocolValue,\n\tisTransportableReactiveMapKey,\n\tmutateReactiveArray,\n\tmutateReactiveCollection,\n\tpeek,\n\trunWithPriority,\n\tunwrap,\n\tupdateReactiveValue,\n\tupdateReactiveValueWithResult,\n\twatch,\n\twriteReactive,\n\twriteReactiveLazy\n} from '@exactjs/reactive/framework/runtime';\nexport { normalizeClassValue } from './class-values.js';\nexport type {\n\tReactive,\n\tReactiveValue,\n\tStopHandle,\n\tWorkPriority\n} from '@exactjs/reactive/framework/runtime';\nexport {\n\tattachSuppressedCleanupFailure,\n\tattemptCleanup,\n\tcreateCleanupFailure,\n\trecordCleanupFailure,\n\tthrowCleanupFailure,\n\ttype CleanupFailure\n} from './cleanup.js';\nexport { normalizeActivityMode } from './activity.js';\nexport { LocalizationContext } from './localization/context.js';\nexport { intl } from './localization/facade.js';\nexport type {\n\tIntlDurationFormatter,\n\tIntlFacade,\n\tLocalizationContextValue\n} from './localization/contracts.js';\nexport { isFiniteClientBoundary, markFiniteClientBoundary } from './hydration-boundary.js';\nexport { hasIndependentAsyncSiblings, markIndependentAsyncSiblings } from './ssr-independence.js';\nexport {\n\tisExactComponentAuthorizationIdentity,\n\tsameExactComponentAuthorization,\n\ttype ExactComponentAuthorizationIdentity\n} from './component/authorization.js';\nexport { observeComponentAsync, trackComponentAsync } from './component/async.js';\nexport {\n\tcurrentInteraction,\n\thasComponentTaskOwner,\n\trunCompiledComponentInteraction,\n\trunDirectCompiledComponentInteraction,\n\trunComponentInteraction,\n\ttraceInteractionPhase,\n\ttype InteractionPriority,\n\ttype DeferredInteractionGeneration,\n\ttype InteractionScope,\n\ttype InteractionSource\n} from './interaction/execution.js';\nexport {\n\tcreateComponentDomain,\n\tcurrentComponentDomain,\n\tdispatchComponentContinuation,\n\tpageComponentDomain,\n\ttype ComponentDomainOptions,\n\twithComponentDomain,\n\twithComponentResumption\n} from './component/domain.js';\nexport {\n\tcomponentContinuationContextValues,\n\tregisterComponentContinuationContexts\n} from './component/context-resumption.js';\nexport {\n\tErrorContext,\n\tLoggerContext,\n\tReadinessContext,\n\tSuspensionContext\n} from './component/contexts.js';\nexport {\n\tErrorBoundary,\n\ttype ErrorBoundaryFallbackProps,\n\ttype ErrorBoundaryProps\n} from './component/error-boundary.js';\nexport { interactionHandler, type InteractionHandler } from './component/interaction-contracts.js';\nexport {\n\tcreateExactRuntimeInspectionOwner,\n\tinspectExactRuntimeComponent,\n\ttype ExactRuntimeInspectionEventInput,\n\ttype ExactRuntimeInspectionOwner,\n\ttype ExactRuntimeInspectionOwnerOptions\n} from './component/inspection.js';\nexport { markExactInspectionSource } from './component/inspection-source.js';\nexport { createComponentRegistry } from './component-registry/syntax.js';\nexport {\n\thasComponent,\n\tinspectComponentRegistry,\n\tpreloadComponent,\n\trenderComponent\n} from './component-registry/operations.js';\nexport type {\n\tComponentProps,\n\tComponentRegistry,\n\tComponentRegistryBuilder,\n\tComponentRegistryDefinition,\n\tComponentRegistryDefinitionEntry,\n\tComponentRegistryInspection,\n\tComponentSelection,\n\tKeyOf,\n\tLazyRegistryEntry,\n\tResolveRegistryDefinition,\n\tResolveRegistryEntry\n} from './component-registry/contracts.js';\nexport {\n\tcomponentReadinessContext,\n\tcreateReadinessCoordinator,\n\ttype ReadinessCoordinator,\n\ttype ReadinessCoordinatorOptions\n} from './component/readiness.js';\nexport type {\n\tActivityMode,\n\tAnyAuthoredComponentFunction,\n\tAnyComponent,\n\tAnyComponentFunction,\n\tAnyComponentInstance,\n\tAnyContextToken,\n\tAnyEnhancementComponentFunction,\n\tAnyStateAuthoredComponentFunction,\n\tAnyStateComponentFunction,\n\tAsyncComponentFunction,\n\tAuthoredComponentFunction,\n\tChild,\n\tComponent,\n\tComponentContinuationContextBinding,\n\tComponentContinuationDispatch,\n\tComponentContinuationDispatcher,\n\tComponentContextValues,\n\tComponentDomain,\n\tComponentDomainIdentity,\n\tDirectComponentFunction,\n\tComponentFunction,\n\tCompiledEnhancementNode,\n\tEnhancementEntry,\n\tEnhancementMarker,\n\tComponentInstance,\n\tBlockingWork,\n\tComponentResumptionActivation,\n\tContextToken,\n\tErrorContextValue,\n\tErrorReport,\n\tErrorReportOptions,\n\tErrorSource,\n\tIterableItem,\n\tLifecycleHandler,\n\tRefBinding,\n\tRefKey,\n\tRefRegistry,\n\tRootBinding,\n\tRootIntroduction,\n\tRootLifecycle,\n\tRootRelease,\n\tStructuralReleaseReason,\n\tReadinessContextValue,\n\tReadinessRegistration,\n\tRenderEventHandler,\n\tRenderFunction,\n\tRenderResult,\n\tSuspensionContextValue,\n\tTaskCleanup,\n\tTaskIdleDeadline,\n\tTaskIdleOptions,\n\tTaskObserver,\n\tTaskResourceDisposal,\n\tUnsafeHtmlAuditEvent\n} from './component/contracts.js';\nexport { createDynamicComponent } from './dynamic-component/creation.js';\nexport type {\n\tDynamicComponentArtifact,\n\tDynamicComponentCandidate,\n\tDynamicComponentInspection,\n\tDynamicComponentResolution,\n\tDynamicComponentResolver,\n\tDynamicComponentStatus\n} from './dynamic-component/contracts.js';\nexport {\n\tcreateEnhancementNode,\n\texactEnhancementPassThrough,\n\texactEnhancementContexts,\n\tisExactEnhancementPassThrough,\n\tmarkExactEnhancementContexts,\n\tomitKnownProps,\n\treadExactEnhancementContexts,\n\ttype EnhancementContextContract\n} from './enhancements.js';\nexport { bindTask, bindTaskForHost, defineTask, invokeTask, taskStatus } from './tasks/runtime.js';\nexport {\n\tactivateTask,\n\tactivateTaskForHost,\n\tactivateTaskFromDependenciesForHost\n} from './tasks/activation.js';\nexport {\n\tactivationInputDependency,\n\tplannedContinuationDependency,\n\tconstantContinuationDependency,\n\tcreateContinuationDependencySlot,\n\ttype ContinuationDependencySlot,\n\ttype ContinuationDependencySnapshot,\n\ttype ContinuationDependencySource\n} from './tasks/dependency-source.js';\nexport { componentExecutionValueForHost } from './tasks/component-execution.js';\nexport { createTaskOwner } from './tasks/owners.js';\nexport {\n\tbindTaskCallback,\n\treserveTaskCallback,\n\trunTaskContinuation,\n\ttrackTaskReads\n} from './tasks/continuations.js';\nexport { TaskCancellation, isTaskCancellation } from './tasks/cancellation.js';\nexport { joinTask, taskMutation } from './tasks/frame-runtime.js';\nexport { TaskContext } from './tasks/public.js';\nexport type {\n\tBoundTaskFunction,\n\tReservedTaskCallback,\n\tRuntimeTaskOptions,\n\tTaskActivation,\n\tTaskContextPolicy,\n\tTaskFunction,\n\tTaskInvocation,\n\tTaskOwner,\n\tTaskStatus\n} from './tasks/contracts.js';\nexport {\n\tcreateErrorContext,\n\tcreateErrorReport,\n\thandleComponentError,\n\thandleComponentSuspension,\n\tregisterComponentSuspension\n} from './component/errors.js';\nexport { logFrameworkEvent } from './component/log.js';\nexport { sameJsonData, type JsonComparisonOptions } from './json.js';\nexport { createContext, createRef, type ContextOptions } from './keys.js';\nexport {\n\tcreateConsoleLogger,\n\ttype ComponentLog,\n\ttype ConsoleLoggerOptions,\n\ttype LogEvent,\n\ttype LogLevel,\n\ttype LogScope,\n\ttype Logger\n} from './logging.js';\nexport {\n\tdecodeExactMarkerPart,\n\tencodeExactMarkerPart,\n\texactMarkerEnd,\n\texactMarkerStart\n} from './protocol.js';\nexport {\n\tActivity,\n\tCell,\n\tCompatibilityContribution,\n\tDynamic,\n\tFragment,\n\tPortal,\n\tSuspense,\n\tTarget,\n\tTargetOverrides,\n\tText,\n\tUnsafeHtml\n} from './symbols.js';\nexport { withTaskObserver } from './tasks/observers.js';\nexport {\n\tmarkComponentContinuationTask,\n\tsettledComponentContinuationIds\n} from './tasks/component-continuation.js';\nexport {\n\tdiscardTaskMutations,\n\tmutateTaskCollection,\n\townTaskResource,\n\tpublishTaskMutations,\n\tregisterTaskCleanup,\n\tstageTaskMutation,\n\ttakeTaskCollectionMutations,\n\ttaskAnimationFrame,\n\ttaskAwait,\n\ttaskFetch,\n\ttaskIdleCallback,\n\ttaskInterval,\n\ttaskObserver,\n\ttaskTimeout\n} from './tasks/resources.js';\nexport { createDerived } from './component/derived.js';\nexport {\n\tcombineTaskSignal,\n\twithAbortSignal,\n\twithTaskSignal,\n\ttype ManagedEventListenerOptions\n} from './tasks/signals.js';\nexport { BLOCKED_JAVASCRIPT_URL, isUrlAttribute, sanitizeUrlAttribute } from './url.js';\nexport { createPortal, type ExactPortalReceipt } from './component-abi/portal-receipt.js';\nexport { unsafeHtml } from './component-abi/unsafe-html-receipt.js';\nexport { normalizeChildren, normalizeRenderResult } from './render-children.js';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"inspection-transport.js","sourceRoot":"","sources":["../../src/inspection-transport.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAE7B,MAAM,4BAA4B,CAAC;AAEpC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,oCAAoC,CAAC,CAAC;AACtE,MAAM,eAAe,GAAG,qBAAqB,CAAC;AAU9C,6FAA6F;AAC7F,MAAM,UAAU,+BAA+B,CAAC,MAAoC;IACnF,MAAM,IAAI,GAAG,UAAwB,CAAC;IACtC,IAAI,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,MAAM;QACtD,MAAM,IAAI,KAAK,CAAC,yDAAyD,CAAC,CAA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mB,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAc;IAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO;IAClC,MAAM,MAAM,GAAI,UAAyB,CAAC,YAAY,CAAC,CAAC;IACxD,IAAI,CAAC,MAAM;QAAE,OAAO;IACpB,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;QAC3B,IAAI,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC,SAAS,KAAK,MAAM,CAAC,SAAS;YAAE,SAAS;QAC/F,IAAI,CAAC;YACJ,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;QAAC,MAAM,CAAC;YACR,sEAAsE;QACvE,CAAC;IACF,CAAC;AACF,CAAC;AAED,iGAAiG;AACjG,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC","sourcesContent":["import {\n\tisExactRuntimeInspectionEvent,\n\ttype ExactRuntimeInspectionEvent\n} from '@exactjs/devtools-protocol';\n\nconst bridgeSymbol = Symbol.for('@exactjs/server-observation-bridge');\nconst observationsKey = '__exactObservations';\n\n/** Browser-only bridge installed while one DevTools session is attached to the page. */\nexport type ExactServerObservationBridge = Readonly<{\n\treadonly sessionId: string;\n\tpublish(event: ExactRuntimeInspectionEvent): void;\n}>;\n\ntype BridgeHost = typeof globalThis & { [bridgeSymbol]?: ExactServerObservationBridge };\n\n/** Installs the active page-owned server-observation bridge and returns an exact release. */\nexport function setExactServerObservationBridge(bridge: ExactServerObservationBridge): () => void {\n\tconst host = globalThis as BridgeHost;\n\tif (host[bridgeSymbol] && host[bridgeSymbol] !== bridge)\n\t\tthrow new Error('An eXact server observation bridge is already installed');\n\thost[bridgeSymbol] = bridge;\n\treturn () => {\n\t\tif (host[bridgeSymbol] === bridge) Reflect.deleteProperty(host, bridgeSymbol);\n\t};\n}\n\n/** Returns the internal request header only while browser DevTools is attached. */\nexport function exactServerObservationRequestHeaders(): Readonly<Record<string, string>> {\n\tconst sessionId = (globalThis as BridgeHost)[bridgeSymbol]?.sessionId;\n\treturn sessionId ? { 'x-exact-debug-session': sessionId } : {};\n}\n\n/** Removes and publishes a bounded observation attachment from one JSON response envelope. */\nexport function consumeExactServerObservations(value: unknown): unknown {\n\tif (!value || typeof value !== 'object' || Array.isArray(value)) return value;\n\tconst record = value as Record<string, unknown>;\n\tif (!Object.hasOwn(record, observationsKey)) return value;\n\tconst descriptors = Object.getOwnPropertyDescriptors(record);\n\tconst observationDescriptor = descriptors[observationsKey];\n\tif (!observationDescriptor || !('value' in observationDescriptor)) return value;\n\tpublishObservations(observationDescriptor.value);\n\tdelete descriptors[observationsKey];\n\tconst copy = Object.create(Object.getPrototypeOf(record));\n\tObject.defineProperties(copy, descriptors);\n\treturn copy;\n}\n\n/** Publishes a request-scoped observation array after validating every protocol event. */\nexport function publishExactServerObservations(value: unknown): void {\n\tpublishObservations(value);\n}\n\nfunction publishObservations(value: unknown): void {\n\tif (!Array.isArray(value)) return;\n\tconst bridge = (globalThis as BridgeHost)[bridgeSymbol];\n\tif (!bridge) return;\n\tfor (const event of value) {\n\t\tif (!isExactRuntimeInspectionEvent(event) || event.id.sessionId !== bridge.sessionId) continue;\n\t\ttry {\n\t\t\tbridge.publish(event);\n\t\t} catch {\n\t\t\t// DevTools observation cannot change application response processing.\n\t\t}\n\t}\n}\n\n/** Reserved response property used only between the server collector and hydration transport. */\nexport const EXACT_SERVER_OBSERVATIONS_KEY = observationsKey;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../src/interaction/execution.ts"],"names":[],"mappings":"AACA,OAAO,EACN,kBAAkB,EAClB,qBAAqB,EAIrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACN,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EAErB,MAAM,2BAA2B,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gBAAgB,CAAC;YAC/D,sBAAsB,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,gBAAgB,CAAC,KAAK,CAAC;IAC9B,CAAC;IACD,MAAM,SAAS,GAAG,eAAe;QAChC,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAClE,IAAI,gBAAgB,IAAI,iBAAiB,EAAE,GAAG,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAClE,KAAK,SAAS,CAAC,IAAI,CAClB,GAAG,EAAE,CAAC,sBAAsB,CAAC,gBAAiB,EAAE,SAAS,CAAC,EAC1D,GAAG,EAAE,CAAC,sBAAsB,CAAC,gBAAiB,EAAE,OAAO,CAAC,CACxD,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC;AAED,SAAS,sBAAsB,CAAC,WAA6B,EAAE,OAA4B;IAC1F,qBAAqB,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC3D,iBAAiB,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;AACxC,CAAC","sourcesContent":["import type { AnyComponentInstance } from '../component/contracts.js';\nimport {\n\tmarkComponentTrace,\n\tcomponentTraceStarter,\n\ttype LazyComponentTraceAttributes,\n\ttype ComponentTraceSpan,\n\ttype ComponentTraceStarter\n} from '../component/performance-trace.js';\nimport {\n\tcurrentTaskFrameRecord,\n\tcreateTaskOwnerRecord,\n\texecuteTaskFrame,\n\ttaskFrameSynchronousError,\n\twithDeferredTaskFrame,\n\ttype TaskFrameRecord\n} from '../tasks/frame-runtime.js';\nimport { taskOwnerForHost } from '../tasks/owner-hosts.js';\n\n/** Identifies the framework host that began an interaction task. */\nexport type InteractionSource = 'event' | 'form' | 'invoked' | 'navigation';\n\n/** Scheduling class inherited by work attached to an interaction task. */\nexport type InteractionPriority = 'interactive' | 'normal' | 'deferred';\n\n/** Supplies a generation only when a direct compiled interaction needs a structural frame. */\nexport type DeferredInteractionGeneration = (owner: AnyComponentInstance) => number;\n\n/** Diagnostic metadata associated with an interaction-root task frame. */\nexport type InteractionScope = {\n\treadonly id: number;\n\treadonly owner: AnyComponentInstance;\n\treadonly source: InteractionSource;\n\treadonly priority: InteractionPriority;\n\treadonly generation: number;\n};\n\nlet nextInteractionId = 1;\nconst interactionsByFrame = new WeakMap<TaskFrameRecord, InteractionScope>();\nlet interactionTraces: WeakMap<InteractionScope, ComponentTraceSpan> | undefined;\n\n/** Returns metadata for the synchronously active interaction-root task. */\nexport function currentInteraction(): InteractionScope | undefined {\n\tconst frame = currentTaskFrameRecord();\n\tfor (let candidate = frame; candidate; candidate = candidate.parent) {\n\t\tconst interaction = interactionsByFrame.get(candidate);\n\t\tif (interaction) return interaction;\n\t}\n\treturn undefined;\n}\n\n/** Reports whether a component already owns the durable task lane required by full interactions. */\nexport function hasComponentTaskOwner(owner: AnyComponentInstance): boolean {\n\treturn taskOwnerForHost(owner) !== undefined;\n}\n\n/** Emits a correlated performance mark for a currently executing interaction. */\nexport function traceInteractionPhase(\n\tinteraction: InteractionScope | undefined,\n\tphase: string,\n\tattributes?: LazyComponentTraceAttributes\n): void {\n\tif (!interaction) return;\n\tmarkComponentTrace(interaction.owner, interactionTraces?.get(interaction), phase, attributes);\n}\n\n/**\n * Executes a component interaction as a task-frame root.\n *\n * The frame exclusively owns cancellation, descendants, cleanup, continuation restoration, and\n * structural settlement. Interaction state exists only as inspection metadata associated with it.\n */\nexport function runComponentInteraction<Result>(\n\towner: AnyComponentInstance,\n\tsource: InteractionSource,\n\tgeneration: number,\n\tpriority: InteractionPriority,\n\tcontroller: AbortController,\n\twork: (scope: InteractionScope) => Result | PromiseLike<Result>\n): Promise<Result> {\n\treturn executeComponentInteraction(owner, source, generation, priority, controller, true, work);\n}\n\n/**\n * Executes a compiler-owned DOM interaction without allocating diagnostic metadata when component\n * tracing is disabled. Structural task parenting and settlement still use the canonical frame.\n */\nexport function runCompiledComponentInteraction<Result>(\n\towner: AnyComponentInstance,\n\tsource: InteractionSource,\n\tgeneration: number,\n\tpriority: InteractionPriority,\n\tcontroller: AbortController,\n\twork: () => Result | PromiseLike<Result>,\n\tonTraceScope?: (scope: InteractionScope) => void,\n\ttrace?: ComponentTraceStarter | false\n): Promise<Result> {\n\treturn executeComponentInteraction(\n\t\towner,\n\t\tsource,\n\t\tgeneration,\n\t\tpriority,\n\t\tcontroller,\n\t\tfalse,\n\t\twork,\n\t\tonTraceScope,\n\t\ttrace\n\t);\n}\n\n/**\n * Executes a compiled interaction directly until task work requests a structural parent.\n * Trace-enabled builds retain the complete observable interaction contract from the start.\n */\nexport function runDirectCompiledComponentInteraction<Result>(\n\towner: AnyComponentInstance,\n\tsource: InteractionSource,\n\tgeneration: number | DeferredInteractionGeneration,\n\tpriority: InteractionPriority,\n\twork: () => Result | PromiseLike<Result>,\n\tonTraceScope?: (scope: InteractionScope) => void,\n\ttrace?: ComponentTraceStarter | false\n): Result | PromiseLike<Result> {\n\tconst startTrace = trace === undefined ? componentTraceStarter(owner) : trace;\n\tif (startTrace)\n\t\treturn runCompiledComponentInteraction(\n\t\t\towner,\n\t\t\tsource,\n\t\t\tinteractionGeneration(generation, owner),\n\t\t\tpriority,\n\t\t\tnew AbortController(),\n\t\t\twork,\n\t\t\tonTraceScope,\n\t\t\tstartTrace\n\t\t);\n\n\tlet frame: TaskFrameRecord | undefined;\n\tlet execution: Promise<Result> | undefined;\n\tlet resolveForeground: ((value: Result | PromiseLike<Result>) => void) | undefined;\n\tlet rejectForeground: ((error: unknown) => void) | undefined;\n\tconst materialize = (): TaskFrameRecord => {\n\t\tif (frame) return frame;\n\t\tconst registeredOwner = taskOwnerForHost(owner);\n\t\tconst taskOwner = registeredOwner ?? createTaskOwnerRecord(`${owner.id}:interaction`);\n\t\tconst foreground = new Promise<Result>((resolve, reject) => {\n\t\t\tresolveForeground = resolve;\n\t\t\trejectForeground = reject;\n\t\t});\n\t\texecution = executeTaskFrame(\n\t\t\t{\n\t\t\t\towner: taskOwner,\n\t\t\t\tgeneration: interactionGeneration(generation, owner),\n\t\t\t\tactivation: 'interaction',\n\t\t\t\tlabel: `${source} interaction`,\n\t\t\t\tconcurrency: 'latest',\n\t\t\t\tpriority: priority === 'interactive' ? 'immediate' : priority,\n\t\t\t\treadiness: priority === 'deferred' ? 'nonblocking' : 'blocking',\n\t\t\t\tpublicContext: false,\n\t\t\t\tdetached: true\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tframe = currentTaskFrameRecord()!;\n\t\t\t\treturn foreground;\n\t\t\t}\n\t\t).finally(() => (registeredOwner ? undefined : taskOwner[Symbol.asyncDispose]()));\n\t\treturn frame!;\n\t};\n\n\tlet directResult: Result | PromiseLike<Result>;\n\ttry {\n\t\tdirectResult = withDeferredTaskFrame(materialize, work);\n\t} catch (error) {\n\t\tif (execution) {\n\t\t\trejectForeground!(error);\n\t\t\tvoid execution.catch(() => undefined);\n\t\t}\n\t\tthrow error;\n\t}\n\tif (!execution) return directResult;\n\tresolveForeground!(directResult);\n\treturn execution;\n}\n\nfunction interactionGeneration(\n\tgeneration: number | DeferredInteractionGeneration,\n\towner: AnyComponentInstance\n): number {\n\treturn typeof generation === 'function' ? generation(owner) : generation;\n}\n\nfunction executeComponentInteraction<Result>(\n\towner: AnyComponentInstance,\n\tsource: InteractionSource,\n\tgeneration: number,\n\tpriority: InteractionPriority,\n\tcontroller: AbortController,\n\texposeScope: boolean,\n\twork:\n\t\t| ((scope: InteractionScope) => Result | PromiseLike<Result>)\n\t\t| (() => Result | PromiseLike<Result>),\n\tonTraceScope?: (scope: InteractionScope) => void,\n\ttrace?: ComponentTraceStarter | false\n): Promise<Result> {\n\tconst registeredOwner = taskOwnerForHost(owner);\n\tconst taskOwner = registeredOwner ?? createTaskOwnerRecord(`${owner.id}:interaction`);\n\tconst startTrace = trace === undefined ? componentTraceStarter(owner) : trace || undefined;\n\tlet interactionScope: InteractionScope | undefined;\n\tconst frameExecution = executeTaskFrame(\n\t\t{\n\t\t\towner: taskOwner,\n\t\t\tcontroller,\n\t\t\tgeneration,\n\t\t\tactivation: 'interaction',\n\t\t\tlabel: `${source} interaction`,\n\t\t\tconcurrency: 'latest',\n\t\t\tpriority: priority === 'interactive' ? 'immediate' : priority,\n\t\t\treadiness: priority === 'deferred' ? 'nonblocking' : 'blocking',\n\t\t\t// Interaction hosts receive InteractionScope rather than the public task context.\n\t\t\tpublicContext: false\n\t\t},\n\t\t() => {\n\t\t\tif (exposeScope || startTrace) {\n\t\t\t\tconst frame = currentTaskFrameRecord()!;\n\t\t\t\tconst scope: InteractionScope = Object.freeze({\n\t\t\t\t\tid: nextInteractionId++,\n\t\t\t\t\towner,\n\t\t\t\t\tsource,\n\t\t\t\t\tpriority,\n\t\t\t\t\tgeneration\n\t\t\t\t});\n\t\t\t\tinteractionScope = scope;\n\t\t\t\tinteractionsByFrame.set(frame, scope);\n\t\t\t\tconst trace = startTrace?.('interaction', `interaction:${scope.id}`, {\n\t\t\t\t\tsource,\n\t\t\t\t\tpriority,\n\t\t\t\t\tgeneration\n\t\t\t\t});\n\t\t\t\tif (trace) (interactionTraces ??= new WeakMap()).set(scope, trace);\n\t\t\t\tonTraceScope?.(scope);\n\t\t\t\treturn (work as (scope: InteractionScope) => Result | PromiseLike<Result>)(scope);\n\t\t\t}\n\t\t\treturn (work as () => Result | PromiseLike<Result>)();\n\t\t}\n\t);\n\tconst synchronousError = taskFrameSynchronousError(frameExecution);\n\tif (synchronousError) {\n\t\tif (!registeredOwner)\n\t\t\tvoid frameExecution.finally(() => taskOwner[Symbol.asyncDispose]()).catch(() => undefined);\n\t\tif (interactionScope && interactionTraces?.has(interactionScope))\n\t\t\tfinishInteractionTrace(interactionScope, 'error');\n\t\tthrow synchronousError.error;\n\t}\n\tconst execution = registeredOwner\n\t\t? frameExecution\n\t\t: frameExecution.finally(() => taskOwner[Symbol.asyncDispose]());\n\tif (interactionScope && interactionTraces?.has(interactionScope)) {\n\t\tvoid execution.then(\n\t\t\t() => finishInteractionTrace(interactionScope!, 'success'),\n\t\t\t() => finishInteractionTrace(interactionScope!, 'error')\n\t\t);\n\t}\n\treturn execution;\n}\n\nfunction finishInteractionTrace(interaction: InteractionScope, outcome: 'success' | 'error'): void {\n\ttraceInteractionPhase(interaction, 'settled', { outcome });\n\tinteractionTraces?.delete(interaction);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/json.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAC3B,IAAa,EACb,KAAc,EACd,UAAiC,EAAE;IAOnC,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC;IACzD,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,IAAI,cAAc,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IAC9E,MAAM,OAAO,GAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,IAAI,OAAO,EAAU,CAAC;IACzC,MAAM,WAAW,GAAG,IAAI,OAAO,EAAU,CAAC;IAC1C,MAAM,aAAa,GAAG,IAAI,OAAO,EAA2B,CAAC;IAC7D,IAAI,QAAQ,GAAG,CAAC,CAAC;IAEjB,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;QACvB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAG,CAAC;QAClC,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC;QACpC,MAAM,YAAY,GAAG,UAAU,CAAC,KAAK,CAAC;QACtC,IAAI,UAAU,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;YACpC,UAAU,CAAC,MAAM,CAAC,WAAqB,CAAC,CAAC;YACzC,WAAW,CAAC,MAAM,CAAC,YAAsB,CAAC,CAAC;YAC3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AC,GAAG,CAAC,CAAC;IAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,MAAM,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC;AACzF,CAAC","sourcesContent":["/** Options for bounded comparisons of manifest and hydration JSON data. */\nexport interface JsonComparisonOptions {\n\treadonly maxComparisons?: number;\n}\n\n/**\n * Compares JSON data structurally without serialization, property-order\n * sensitivity, recursion, getter execution, or unbounded work.\n *\n * Invalid JSON values, sparse arrays, accessors, cycles, and values exceeding\n * the comparison budget fail closed.\n */\nexport function sameJsonData(\n\tleft: unknown,\n\tright: unknown,\n\toptions: JsonComparisonOptions = {}\n): boolean {\n\ttype Comparison = {\n\t\treadonly kind: 'compare' | 'complete';\n\t\treadonly left: unknown;\n\t\treadonly right: unknown;\n\t};\n\tconst maxComparisons = options.maxComparisons ?? 100_000;\n\tif (!Number.isSafeInteger(maxComparisons) || maxComparisons < 1) return false;\n\tconst pending: Comparison[] = [{ kind: 'compare', left, right }];\n\tconst activeLeft = new WeakSet<object>();\n\tconst activeRight = new WeakSet<object>();\n\tconst completedLeft = new WeakMap<object, WeakSet<object>>();\n\tlet compared = 0;\n\n\twhile (pending.length) {\n\t\tconst comparison = pending.pop()!;\n\t\tconst currentLeft = comparison.left;\n\t\tconst currentRight = comparison.right;\n\t\tif (comparison.kind === 'complete') {\n\t\t\tactiveLeft.delete(currentLeft as object);\n\t\t\tactiveRight.delete(currentRight as object);\n\t\t\tconst matches = completedLeft.get(currentLeft as object) ?? new WeakSet<object>();\n\t\t\tmatches.add(currentRight as object);\n\t\t\tcompletedLeft.set(currentLeft as object, matches);\n\t\t\tcontinue;\n\t\t}\n\t\tif (++compared > maxComparisons) return false;\n\n\t\tif (!isJsonObject(currentLeft) || !isJsonObject(currentRight)) {\n\t\t\tif (\n\t\t\t\t!isJsonScalar(currentLeft) ||\n\t\t\t\t!isJsonScalar(currentRight) ||\n\t\t\t\t!Object.is(currentLeft, currentRight)\n\t\t\t)\n\t\t\t\treturn false;\n\t\t\tcontinue;\n\t\t}\n\t\tif (Array.isArray(currentLeft) !== Array.isArray(currentRight)) return false;\n\t\tif (completedLeft.get(currentLeft)?.has(currentRight)) continue;\n\t\tif (activeLeft.has(currentLeft) || activeRight.has(currentRight)) return false;\n\t\tactiveLeft.add(currentLeft);\n\t\tactiveRight.add(currentRight);\n\t\tpending.push({ kind: 'complete', left: currentLeft, right: currentRight });\n\n\t\tif (Array.isArray(currentLeft)) {\n\t\t\tconst rightArray = currentRight as unknown[];\n\t\t\tif (currentLeft.length !== rightArray.length) return false;\n\t\t\tif (\n\t\t\t\tObject.getOwnPropertySymbols(currentLeft).some((symbol) =>\n\t\t\t\t\tObject.prototype.propertyIsEnumerable.call(currentLeft, symbol)\n\t\t\t\t) ||\n\t\t\t\tObject.getOwnPropertySymbols(rightArray).some((symbol) =>\n\t\t\t\t\tObject.prototype.propertyIsEnumerable.call(rightArray, symbol)\n\t\t\t\t)\n\t\t\t)\n\t\t\t\treturn false;\n\t\t\tif (\n\t\t\t\tObject.keys(currentLeft).some((key) => !isArrayIndexKey(key, currentLeft.length)) ||\n\t\t\t\tObject.keys(rightArray).some((key) => !isArrayIndexKey(key, rightArray.length))\n\t\t\t)\n\t\t\t\treturn false;\n\t\t\tfor (let index = currentLeft.length - 1; index >= 0; index--) {\n\t\t\t\tconst leftDescriptor = Object.getOwnPropertyDescriptor(currentLeft, index);\n\t\t\t\tconst rightDescriptor = Object.getOwnPropertyDescriptor(rightArray, index);\n\t\t\t\tif (\n\t\t\t\t\t!leftDescriptor ||\n\t\t\t\t\t!rightDescriptor ||\n\t\t\t\t\t!('value' in leftDescriptor) ||\n\t\t\t\t\t!('value' in rightDescriptor)\n\t\t\t\t)\n\t\t\t\t\treturn false;\n\t\t\t\tpending.push({ kind: 'compare', left: leftDescriptor.value, right: rightDescriptor.value });\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (!isPlainJsonObject(currentLeft) || !isPlainJsonObject(currentRight)) return false;\n\t\tconst leftDescriptors = Object.getOwnPropertyDescriptors(currentLeft);\n\t\tconst rightDescriptors = Object.getOwnPropertyDescriptors(currentRight);\n\t\tif (\n\t\t\tObject.getOwnPropertySymbols(currentLeft).some((symbol) =>\n\t\t\t\tObject.prototype.propertyIsEnumerable.call(currentLeft, symbol)\n\t\t\t) ||\n\t\t\tObject.getOwnPropertySymbols(currentRight).some((symbol) =>\n\t\t\t\tObject.prototype.propertyIsEnumerable.call(currentRight, symbol)\n\t\t\t)\n\t\t)\n\t\t\treturn false;\n\t\tconst leftKeys = Object.keys(leftDescriptors)\n\t\t\t.filter((key) => leftDescriptors[key]!.enumerable)\n\t\t\t.sort();\n\t\tconst rightKeys = Object.keys(rightDescriptors)\n\t\t\t.filter((key) => rightDescriptors[key]!.enumerable)\n\t\t\t.sort();\n\t\tif (\n\t\t\tleftKeys.length !== rightKeys.length ||\n\t\t\tleftKeys.some((key, index) => key !== rightKeys[index])\n\t\t)\n\t\t\treturn false;\n\t\tfor (let index = leftKeys.length - 1; index >= 0; index--) {\n\t\t\tconst key = leftKeys[index]!;\n\t\t\tconst leftDescriptor = leftDescriptors[key]!;\n\t\t\tconst rightDescriptor = rightDescriptors[key]!;\n\t\t\tif (!('value' in leftDescriptor) || !('value' in rightDescriptor)) return false;\n\t\t\tpending.push({ kind: 'compare', left: leftDescriptor.value, right: rightDescriptor.value });\n\t\t}\n\t}\n\treturn true;\n}\n\nfunction isJsonObject(value: unknown): value is object {\n\treturn value !== null && typeof value === 'object';\n}\n\nfunction isJsonScalar(value: unknown): value is null | boolean | number | string {\n\treturn (\n\t\tvalue === null ||\n\t\ttypeof value === 'boolean' ||\n\t\ttypeof value === 'string' ||\n\t\t(typeof value === 'number' && Number.isFinite(value))\n\t);\n}\n\nfunction isPlainJsonObject(value: object): boolean {\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn prototype === Object.prototype || prototype === null;\n}\n\nfunction isArrayIndexKey(key: string, length: number): boolean {\n\tconst index = Number(key);\n\treturn Number.isInteger(index) && index >= 0 && index < length && String(index) === key;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/keys.ts"],"names":[],"mappings":"AAoBA,oGAAoG;AACpG,MAAM,UAAU,aAAa,CAC5B,WAAmB,EACnB,UAAoC,KAAK;IAEzC,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC;IAClF,OAAO;QACN,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;QAC7E,WAAW;QACX,MAAM;QACN,QAAQ;QACR,IAAI,EAAE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI;QAC7D,KAAK,EAAE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC;KAClF,CAAC;AACH,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,SAAS,CAAI,WAAmB;IAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;AACjD,CAAC"}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../src/keys.ts"],"names":[],"mappings":"AAoBA,oGAAoG;AACpG,MAAM,UAAU,aAAa,CAC5B,WAAmB,EACnB,UAAoC,KAAK;IAEzC,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC;IAClF,MAAM,QAAQ,GAAG,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC;IAClF,OAAO;QACN,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,iBAAiB,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;QAC7E,WAAW;QACX,MAAM;QACN,QAAQ;QACR,IAAI,EAAE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI;QAC7D,KAAK,EAAE,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,IAAI,WAAW,CAAC;KAClF,CAAC;AACH,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,SAAS,CAAI,WAAmB;IAC/C,OAAO,EAAE,EAAE,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,CAAC;AACjD,CAAC","sourcesContent":["import type { ContextToken, RefKey } from './component/contracts.js';\n\n/** Configures context. */\nexport interface ContextOptions {\n\treadonly global?: boolean;\n\t/** False preserves opaque service/class identity instead of proxying it. */\n\treadonly reactive?: boolean;\n\t/**\n\t * Declares where values carried by this token may reside. Application and\n\t * request contexts default to server residency; component contexts default\n\t * to shared residency.\n\t */\n\treadonly keep?: 'server' | 'client' | 'shared' | 'secret';\n\t/**\n\t * Declares where the server runtime may provision this token. Values\n\t * published with Component.setContext() always retain component lifetime.\n\t */\n\treadonly scope?: 'component' | 'application' | 'request';\n}\n\n/** Creates a context token; global tokens use Symbol.for so separate bundles can share identity. */\nexport function createContext<T>(\n\tdescription: string,\n\toptions: boolean | ContextOptions = false\n): ContextToken<T> {\n\tconst global = typeof options === 'boolean' ? options : (options.global ?? false);\n\tconst reactive = typeof options === 'boolean' ? true : (options.reactive ?? true);\n\treturn {\n\t\tid: global ? Symbol.for(`exact.context:${description}`) : Symbol(description),\n\t\tdescription,\n\t\tglobal,\n\t\treactive,\n\t\tkeep: typeof options === 'boolean' ? undefined : options.keep,\n\t\tscope: typeof options === 'boolean' ? 'component' : (options.scope ?? 'component')\n\t};\n}\n\n/** Creates a ref key that components can use to publish and read imperative values. */\nexport function createRef<T>(description: string): RefKey<T> {\n\treturn { id: Symbol(description), description };\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"component-integration.js","sourceRoot":"","sources":["../../../src/localization/component-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uCAAuC,EAEvC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,+BAA+B,GAAoC,MAAM,CAAC,MAAM,CAAC;IACtF,MAAM,EAAE,yBAAyB;CACjC,CAAC,CAAC;AAEH,uCAAuC,CAAC,+BAA+B,CAAC,CAAC"}
1
+ {"version":3,"file":"component-integration.js","sourceRoot":"","sources":["../../../src/localization/component-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uCAAuC,EAEvC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,+BAA+B,GAAoC,MAAM,CAAC,MAAM,CAAC;IACtF,MAAM,EAAE,yBAAyB;CACjC,CAAC,CAAC;AAEH,uCAAuC,CAAC,+BAA+B,CAAC,CAAC","sourcesContent":["import {\n\tregisterComponentLocalizationCapability,\n\ttype ComponentLocalizationCapability\n} from '../component/localization-capability.js';\nimport { createComponentIntlFacade } from './facade.js';\n\nconst componentLocalizationCapability: ComponentLocalizationCapability = Object.freeze({\n\tcreate: createComponentIntlFacade\n});\n\nregisterComponentLocalizationCapability(componentLocalizationCapability);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/localization/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC,aAAa,CAC/D,oBAAoB,EACpB;IACC,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,QAAQ;CACd,CACD,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/localization/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAG3C,+EAA+E;AAC/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC,aAAa,CAC/D,oBAAoB,EACpB;IACC,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,QAAQ;CACd,CACD,CAAC","sourcesContent":["import { createContext } from '../keys.js';\nimport type { LocalizationContextValue } from './contracts.js';\n\n/** Neutral localization policy consumed by the component-bound Intl facade. */\nexport const LocalizationContext = /* @__PURE__ */ createContext<LocalizationContextValue>(\n\t'exact.localization',\n\t{\n\t\tglobal: true,\n\t\treactive: false,\n\t\tkeep: 'shared'\n\t}\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/localization/contracts.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../../src/localization/contracts.ts"],"names":[],"mappings":"","sourcesContent":["/** Locale policy exposed by a localization provider without coupling core to a plugin runtime. */\nexport interface LocalizationContextValue {\n\t/** Active canonical BCP 47 locale. Reading it may establish a reactive dependency. */\n\treadonly locale: string;\n\t/** Canonical locale used by authored fallback expressions. */\n\treadonly sourceLocale?: string;\n}\n\n/** Minimal formatter returned when Intl.DurationFormat is supplied natively or by a polyfill. */\nexport interface IntlDurationFormatter {\n\tformat(value: unknown): string;\n\tformatToParts?(value: unknown): readonly unknown[];\n}\n\n/** Public cache-backed view of the realm's effective Intl implementation. */\nexport interface IntlFacade {\n\t/** Formats a numeric primitive through the shared NumberFormat pool. */\n\tformatNumber(\n\t\tvalue: number | bigint,\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Intl.NumberFormatOptions\n\t): string;\n\t/** Preserves the three native Date locale-string projections through the shared pool. */\n\tformatDate(\n\t\tvalue: Date,\n\t\tprojection: 'date-time' | 'date' | 'time',\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Intl.DateTimeFormatOptions\n\t): string;\n\tNumberFormat(\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Intl.NumberFormatOptions\n\t): Intl.NumberFormat;\n\tDateTimeFormat(\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Intl.DateTimeFormatOptions\n\t): Intl.DateTimeFormat;\n\tPluralRules(locales?: Intl.LocalesArgument, options?: Intl.PluralRulesOptions): Intl.PluralRules;\n\tRelativeTimeFormat(\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Intl.RelativeTimeFormatOptions\n\t): Intl.RelativeTimeFormat;\n\tDisplayNames(locales: Intl.LocalesArgument, options: Intl.DisplayNamesOptions): Intl.DisplayNames;\n\tListFormat(locales?: Intl.LocalesArgument, options?: Intl.ListFormatOptions): Intl.ListFormat;\n\tCollator(locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): Intl.Collator;\n\tSegmenter(locales?: Intl.LocalesArgument, options?: Intl.SegmenterOptions): Intl.Segmenter;\n\t/** Returns undefined until a native implementation or capability polyfill is installed. */\n\tDurationFormat(\n\t\tlocales?: Intl.LocalesArgument,\n\t\toptions?: Readonly<Record<string, unknown>>\n\t): IntlDurationFormatter | undefined;\n\tLocale(tag: string | Intl.Locale, options?: Intl.LocaleOptions): Intl.Locale;\n\tgetCanonicalLocales(locales: Intl.LocalesArgument): string[];\n\tsupportedValuesOf(key: string): string[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"facade.js","sourceRoot":"","sources":["../../../src/localization/facade.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAInF,iFAAiF;AACjF,MAAM,CAAC,MAAM,IAAI,GAAe,eAAe,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;AAElF,kGAAkG;AAClG,MAAM,UAAU,yBAAyB,CAAC,KAAiC;IAC1E,OAAO,gBAAgB,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,SAAS,qBAAqB,CAC7B,KAAiC;IAEjC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC;QAAE,OAAO,SAAS,CAAC;IAC7D,OAAO,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,gBAAgB,CAAC,mBAAyC;IAClE,MAAM,OAAO,GAAG,CACf,SAA2C,EACR,EAAE;QACrC,MAAM,YAAY,GAAG,mBAAmB,EAAE,CAAC;QAC3C,IAAI,CAAC,YAAY;YAAE,OAAO,SAAS,CAAC;QACpC,IAAI,SAAS,KAAK,SAAS;YAAE,OAAO,YAAY,CAAC,MAAM,CAAC;QACxD,IACC,YAAY,CAAC,YAAY,KAAK,SAAS;YACvC,OAAO,SAAS,KAAK,QAAQ;YAC7B,UAAU,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC,YAAY;YAE/E,OAAO,YAAY,CAAC,MAAM,CAAC;QAC5B,OAAO,SAA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M,CAAC,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED,SAAS,qBAAqB,CAC7B,UAAyC,EACzC,OAA+C;IAE/C,IAAI,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC;QAAE,OAAO,OAAO,CAAC;IAC9D,MAAM,IAAI,GACT,UAAU,KAAK,MAAM,CAAC,CAAC,CAAE,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC/F,MAAM,IAAI,GACT,UAAU,KAAK,MAAM;QACpB,CAAC,CAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAY;QACtE,CAAC,CAAC,EAAE,CAAC;IACP,OAAO,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;AACjD,CAAC;AAED,SAAS,qBAAqB,CAAC,OAAmC;IACjE,OAAO;QACN,SAAS;QACT,KAAK;QACL,MAAM;QACN,OAAO;QACP,KAAK;QACL,WAAW;QACX,MAAM;QACN,QAAQ;QACR,QAAQ;QACR,wBAAwB;QACxB,cAAc;QACd,WAAW;QACX,WAAW;KACX,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAwC,CAAC,KAAK,SAAS,CAAC,CAAC;AACnF,CAAC","sourcesContent":["import type { ComponentLocalizationOwner } from '../component/localization-capability.js';\nimport { LocalizationContext } from './context.js';\nimport type { IntlFacade, LocalizationContextValue } from './contracts.js';\nimport { cachedDurationFormatter, cachedIntlFormatter } from './formatter-pool.js';\n\ntype LocalizationResolver = () => LocalizationContextValue | undefined;\n\n/** Realm-wide cache-backed Intl facade for helpers without a component owner. */\nexport const intl: IntlFacade = /* @__PURE__ */ createIntlFacade(() => undefined);\n\n/** Creates a stable facade whose implicit source policy resolves through the nearest provider. */\nexport function createComponentIntlFacade(owner: ComponentLocalizationOwner): IntlFacade {\n\treturn createIntlFacade(() => componentLocalization(owner));\n}\n\nfunction componentLocalization(\n\towner: ComponentLocalizationOwner\n): LocalizationContextValue | undefined {\n\tif (!owner.hasContext(LocalizationContext)) return undefined;\n\treturn owner.getContext(LocalizationContext);\n}\n\nfunction createIntlFacade(resolveLocalization: LocalizationResolver): IntlFacade {\n\tconst locales = (\n\t\trequested: Intl.LocalesArgument | undefined\n\t): Intl.LocalesArgument | undefined => {\n\t\tconst localization = resolveLocalization();\n\t\tif (!localization) return requested;\n\t\tif (requested === undefined) return localization.locale;\n\t\tif (\n\t\t\tlocalization.sourceLocale !== undefined &&\n\t\t\ttypeof requested === 'string' &&\n\t\t\tglobalThis.Intl.getCanonicalLocales(requested)[0] === localization.sourceLocale\n\t\t)\n\t\t\treturn localization.locale;\n\t\treturn requested;\n\t};\n\tconst facade: IntlFacade = {\n\t\tformatNumber(value, requested, options) {\n\t\t\treturn facade.NumberFormat(requested, options).format(value);\n\t\t},\n\t\tformatDate(value, projection, requested, options) {\n\t\t\tif (Number.isNaN(value.getTime())) return 'Invalid Date';\n\t\t\treturn facade\n\t\t\t\t.DateTimeFormat(requested, dateProjectionOptions(projection, options))\n\t\t\t\t.format(value);\n\t\t},\n\t\tNumberFormat(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'number',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.NumberFormat(effective, options)\n\t\t\t);\n\t\t},\n\t\tDateTimeFormat(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'date-time',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.DateTimeFormat(effective, options)\n\t\t\t);\n\t\t},\n\t\tPluralRules(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'plural-rules',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.PluralRules(effective, options)\n\t\t\t);\n\t\t},\n\t\tRelativeTimeFormat(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'relative-time',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.RelativeTimeFormat(effective, options)\n\t\t\t);\n\t\t},\n\t\tDisplayNames(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'display-names',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.DisplayNames(effective!, options)\n\t\t\t);\n\t\t},\n\t\tListFormat(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'list',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.ListFormat(effective, options)\n\t\t\t);\n\t\t},\n\t\tCollator(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'collator',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.Collator(effective, options)\n\t\t\t);\n\t\t},\n\t\tSegmenter(requested, options) {\n\t\t\tconst effective = locales(requested);\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'segmenter',\n\t\t\t\teffective,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.Segmenter(effective, options)\n\t\t\t);\n\t\t},\n\t\tDurationFormat(requested, options) {\n\t\t\treturn cachedDurationFormatter(locales(requested), options);\n\t\t},\n\t\tLocale(tag, options) {\n\t\t\tif (typeof tag !== 'string') return new globalThis.Intl.Locale(tag, options);\n\t\t\tconst localeTag = tag;\n\t\t\treturn cachedIntlFormatter(\n\t\t\t\t'locale',\n\t\t\t\tlocaleTag,\n\t\t\t\toptions,\n\t\t\t\t() => new globalThis.Intl.Locale(tag, options)\n\t\t\t);\n\t\t},\n\t\tgetCanonicalLocales(requested) {\n\t\t\treturn globalThis.Intl.getCanonicalLocales(requested as string | readonly string[]);\n\t\t},\n\t\tsupportedValuesOf(key) {\n\t\t\treturn globalThis.Intl.supportedValuesOf(key as never);\n\t\t}\n\t};\n\treturn Object.freeze(facade);\n}\n\nfunction dateProjectionOptions(\n\tprojection: 'date-time' | 'date' | 'time',\n\toptions: Intl.DateTimeFormatOptions | undefined\n): Intl.DateTimeFormatOptions {\n\tif (options && hasDateTimeProjection(options)) return options;\n\tconst date =\n\t\tprojection !== 'time' ? ({ year: 'numeric', month: 'numeric', day: 'numeric' } as const) : {};\n\tconst time =\n\t\tprojection !== 'date'\n\t\t\t? ({ hour: 'numeric', minute: 'numeric', second: 'numeric' } as const)\n\t\t\t: {};\n\treturn { ...(options ?? {}), ...date, ...time };\n}\n\nfunction hasDateTimeProjection(options: Intl.DateTimeFormatOptions): boolean {\n\treturn [\n\t\t'weekday',\n\t\t'era',\n\t\t'year',\n\t\t'month',\n\t\t'day',\n\t\t'dayPeriod',\n\t\t'hour',\n\t\t'minute',\n\t\t'second',\n\t\t'fractionalSecondDigits',\n\t\t'timeZoneName',\n\t\t'dateStyle',\n\t\t'timeStyle'\n\t].some((name) => options[name as keyof Intl.DateTimeFormatOptions] !== undefined);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"formatter-pool.js","sourceRoot":"","sources":["../../../src/localization/formatter-pool.ts"],"names":[],"mappings":"AAEA,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,UAAU,GAAG,IAAI,GAAG,EAAkB,CAAC;AAe7C,8FAA8F;AAC9F,MAAM,UAAU,mBAAmB,CAClC,IAAuB,EACvB,OAAyC,EACzC,OAA2B,EAC3B,MAAe;IAEf,MAAM,SAAS,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,UAAU,GAAG,gBA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AC,CAAC,OAAO,IAAI,UAAU,CAAC;YAAE,OAAO,SAAS,CAAC;QAC/C,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS;YAAE,SAAS;QAClC,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,EAAE,CAAC;YAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAyC,CAAC,CAAC,CAAC;YAC/D,SAAS;QACV,CAAC;QACD,OAAO,SAAS,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC","sourcesContent":["import type { IntlDurationFormatter } from './contracts.js';\n\nconst maximumCachedFormatters = 128;\nconst formatters = new Map<string, object>();\n\n/** Formatter constructors supported by the shared realm cache. */\nexport type IntlFormatterKind =\n\t| 'number'\n\t| 'date-time'\n\t| 'plural-rules'\n\t| 'relative-time'\n\t| 'display-names'\n\t| 'list'\n\t| 'collator'\n\t| 'segmenter'\n\t| 'locale'\n\t| 'duration';\n\n/** Returns a shared formatter when its locale and options have safe structural identities. */\nexport function cachedIntlFormatter<T extends object>(\n\tkind: IntlFormatterKind,\n\tlocales: Intl.LocalesArgument | undefined,\n\toptions: object | undefined,\n\tcreate: () => T\n): T {\n\tconst localeKey = finiteLocaleKey(locales);\n\tconst optionsKey = finiteOptionsKey(options);\n\tif (localeKey === undefined || optionsKey === undefined) return create();\n\tconst key = `${kind}\\0${localeKey}\\0${optionsKey}`;\n\tconst cached = formatters.get(key) as T | undefined;\n\tif (cached) {\n\t\tformatters.delete(key);\n\t\tformatters.set(key, cached);\n\t\treturn cached;\n\t}\n\tconst created = create();\n\tformatters.set(key, created);\n\tif (formatters.size > maximumCachedFormatters)\n\t\tformatters.delete(formatters.keys().next().value as string);\n\treturn created;\n}\n\n/** Returns a duration formatter without caching constructor absence before a polyfill loads. */\nexport function cachedDurationFormatter(\n\tlocales: Intl.LocalesArgument | undefined,\n\toptions: Readonly<Record<string, unknown>> | undefined\n): IntlDurationFormatter | undefined {\n\tconst DurationFormat = (\n\t\tglobalThis.Intl as unknown as {\n\t\t\tDurationFormat?: new (\n\t\t\t\tlocales?: Intl.LocalesArgument,\n\t\t\t\toptions?: Readonly<Record<string, unknown>>\n\t\t\t) => IntlDurationFormatter;\n\t\t}\n\t).DurationFormat;\n\tif (!DurationFormat) return undefined;\n\treturn cachedIntlFormatter(\n\t\t'duration',\n\t\tlocales,\n\t\toptions,\n\t\t() => new DurationFormat(locales, options)\n\t);\n}\n\n/** Clears realm cache state for isolated tests; not part of the public package surface. */\nexport function clearIntlFormatterCache(): void {\n\tformatters.clear();\n}\n\nfunction finiteLocaleKey(locales: Intl.LocalesArgument | undefined): string | undefined {\n\tif (locales === undefined) return 'default';\n\tif (typeof locales === 'string') return `string:${locales}`;\n\tif (!Array.isArray(locales) || !locales.every((locale) => typeof locale === 'string'))\n\t\treturn undefined;\n\treturn `list:${JSON.stringify(locales)}`;\n}\n\nfunction finiteOptionsKey(options: object | undefined): string | undefined {\n\tif (options === undefined) return '{}';\n\tconst prototype = Object.getPrototypeOf(options);\n\tif (prototype !== Object.prototype && prototype !== null) return undefined;\n\tconst descriptors = Object.getOwnPropertyDescriptors(options);\n\tconst entries: [string, string | number | boolean | null][] = [];\n\tfor (const key of Object.keys(descriptors).sort()) {\n\t\tconst descriptor = descriptors[key]!;\n\t\tif (!('value' in descriptor)) return undefined;\n\t\tconst value = descriptor.value;\n\t\tif (value === undefined) continue;\n\t\tif (value === null || ['string', 'number', 'boolean'].includes(typeof value)) {\n\t\t\tentries.push([key, value as string | number | boolean | null]);\n\t\t\tcontinue;\n\t\t}\n\t\treturn undefined;\n\t}\n\treturn JSON.stringify(entries);\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"localization.js","sourceRoot":"","sources":["../../src/localization.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC"}
1
+ {"version":3,"file":"localization.js","sourceRoot":"","sources":["../../src/localization.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC","sourcesContent":["/**\n * Opt-in component localization integration.\n *\n * Compiled components import the narrower runtime entry automatically when they use `this.intl`.\n * Importing the public localization helpers installs the same integration for compiled library\n * components that share the caller's runtime.\n */\nimport './localization/component-integration.js';\n\nexport { LocalizationContext } from './localization/context.js';\nexport { intl } from './localization/facade.js';\nexport type {\n\tIntlDurationFormatter,\n\tIntlFacade,\n\tLocalizationContextValue\n} from './localization/contracts.js';\n"]}