@cohesivesystems/presentation-react 0.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/LICENSE +55 -0
  2. package/dist/collection-chrome-slot-renderer-registry.d.ts +12 -0
  3. package/dist/collection-chrome-slot-renderer-registry.d.ts.map +1 -0
  4. package/dist/collection-chrome-slot-renderer-registry.js +12 -0
  5. package/dist/collection-chrome-slot-renderer-registry.js.map +1 -0
  6. package/dist/collection-selection-state-context.d.ts +6 -0
  7. package/dist/collection-selection-state-context.d.ts.map +1 -0
  8. package/dist/collection-selection-state-context.js +25 -0
  9. package/dist/collection-selection-state-context.js.map +1 -0
  10. package/dist/collection-selection-state.d.ts +3 -0
  11. package/dist/collection-selection-state.d.ts.map +1 -0
  12. package/dist/collection-selection-state.js +52 -0
  13. package/dist/collection-selection-state.js.map +1 -0
  14. package/dist/document-workspace-runtime.d.ts +262 -0
  15. package/dist/document-workspace-runtime.d.ts.map +1 -0
  16. package/dist/document-workspace-runtime.js +699 -0
  17. package/dist/document-workspace-runtime.js.map +1 -0
  18. package/dist/index.d.ts +51 -0
  19. package/dist/index.d.ts.map +1 -0
  20. package/dist/index.js +51 -0
  21. package/dist/index.js.map +1 -0
  22. package/dist/input-form-endpoint-runtime.d.ts +140 -0
  23. package/dist/input-form-endpoint-runtime.d.ts.map +1 -0
  24. package/dist/input-form-endpoint-runtime.js +280 -0
  25. package/dist/input-form-endpoint-runtime.js.map +1 -0
  26. package/dist/local-flow-state-data-source-projection.d.ts +21 -0
  27. package/dist/local-flow-state-data-source-projection.d.ts.map +1 -0
  28. package/dist/local-flow-state-data-source-projection.js +65 -0
  29. package/dist/local-flow-state-data-source-projection.js.map +1 -0
  30. package/dist/navigation-runtime-context.d.ts +22 -0
  31. package/dist/navigation-runtime-context.d.ts.map +1 -0
  32. package/dist/navigation-runtime-context.js +23 -0
  33. package/dist/navigation-runtime-context.js.map +1 -0
  34. package/dist/navigation-shell-frame-renderer-registry.d.ts +20 -0
  35. package/dist/navigation-shell-frame-renderer-registry.d.ts.map +1 -0
  36. package/dist/navigation-shell-frame-renderer-registry.js +9 -0
  37. package/dist/navigation-shell-frame-renderer-registry.js.map +1 -0
  38. package/dist/navigation-shell-region-component-registry.d.ts +50 -0
  39. package/dist/navigation-shell-region-component-registry.d.ts.map +1 -0
  40. package/dist/navigation-shell-region-component-registry.js +44 -0
  41. package/dist/navigation-shell-region-component-registry.js.map +1 -0
  42. package/dist/navigation-shell-slot-renderer-registry.d.ts +22 -0
  43. package/dist/navigation-shell-slot-renderer-registry.d.ts.map +1 -0
  44. package/dist/navigation-shell-slot-renderer-registry.js +9 -0
  45. package/dist/navigation-shell-slot-renderer-registry.js.map +1 -0
  46. package/dist/page-host-projection.d.ts +127 -0
  47. package/dist/page-host-projection.d.ts.map +1 -0
  48. package/dist/page-host-projection.js +59 -0
  49. package/dist/page-host-projection.js.map +1 -0
  50. package/dist/page-host-renderer-registry.d.ts +72 -0
  51. package/dist/page-host-renderer-registry.d.ts.map +1 -0
  52. package/dist/page-host-renderer-registry.js +63 -0
  53. package/dist/page-host-renderer-registry.js.map +1 -0
  54. package/dist/presentation-action-group-runtime-options.d.ts +36 -0
  55. package/dist/presentation-action-group-runtime-options.d.ts.map +1 -0
  56. package/dist/presentation-action-group-runtime-options.js +50 -0
  57. package/dist/presentation-action-group-runtime-options.js.map +1 -0
  58. package/dist/presentation-action-runtime.d.ts +52 -0
  59. package/dist/presentation-action-runtime.d.ts.map +1 -0
  60. package/dist/presentation-action-runtime.js +78 -0
  61. package/dist/presentation-action-runtime.js.map +1 -0
  62. package/dist/presentation-data-source-binding-runtime.d.ts +3 -0
  63. package/dist/presentation-data-source-binding-runtime.d.ts.map +1 -0
  64. package/dist/presentation-data-source-binding-runtime.js +65 -0
  65. package/dist/presentation-data-source-binding-runtime.js.map +1 -0
  66. package/dist/presentation-data-source-binding.d.ts +12 -0
  67. package/dist/presentation-data-source-binding.d.ts.map +1 -0
  68. package/dist/presentation-data-source-binding.js +13 -0
  69. package/dist/presentation-data-source-binding.js.map +1 -0
  70. package/dist/presentation-flow-runtime.d.ts +139 -0
  71. package/dist/presentation-flow-runtime.d.ts.map +1 -0
  72. package/dist/presentation-flow-runtime.js +514 -0
  73. package/dist/presentation-flow-runtime.js.map +1 -0
  74. package/dist/presentation-module-context.d.ts +4 -0
  75. package/dist/presentation-module-context.d.ts.map +1 -0
  76. package/dist/presentation-module-context.js +6 -0
  77. package/dist/presentation-module-context.js.map +1 -0
  78. package/dist/presentation-module-provider.d.ts +7 -0
  79. package/dist/presentation-module-provider.d.ts.map +1 -0
  80. package/dist/presentation-module-provider.js +7 -0
  81. package/dist/presentation-module-provider.js.map +1 -0
  82. package/dist/presentation-projection-diagnostics-context.d.ts +8 -0
  83. package/dist/presentation-projection-diagnostics-context.d.ts.map +1 -0
  84. package/dist/presentation-projection-diagnostics-context.js +3 -0
  85. package/dist/presentation-projection-diagnostics-context.js.map +1 -0
  86. package/dist/presentation-projection-diagnostics-hooks.d.ts +4 -0
  87. package/dist/presentation-projection-diagnostics-hooks.d.ts.map +1 -0
  88. package/dist/presentation-projection-diagnostics-hooks.js +17 -0
  89. package/dist/presentation-projection-diagnostics-hooks.js.map +1 -0
  90. package/dist/presentation-projection-diagnostics-runtime.d.ts +12 -0
  91. package/dist/presentation-projection-diagnostics-runtime.d.ts.map +1 -0
  92. package/dist/presentation-projection-diagnostics-runtime.js +54 -0
  93. package/dist/presentation-projection-diagnostics-runtime.js.map +1 -0
  94. package/dist/presentation-projection-trace.d.ts +27 -0
  95. package/dist/presentation-projection-trace.d.ts.map +1 -0
  96. package/dist/presentation-projection-trace.js +54 -0
  97. package/dist/presentation-projection-trace.js.map +1 -0
  98. package/dist/presentation-query-form-runtime.d.ts +30 -0
  99. package/dist/presentation-query-form-runtime.d.ts.map +1 -0
  100. package/dist/presentation-query-form-runtime.js +75 -0
  101. package/dist/presentation-query-form-runtime.js.map +1 -0
  102. package/dist/presentation-query-form-state-adapter-registry.d.ts +4 -0
  103. package/dist/presentation-query-form-state-adapter-registry.d.ts.map +1 -0
  104. package/dist/presentation-query-form-state-adapter-registry.js +13 -0
  105. package/dist/presentation-query-form-state-adapter-registry.js.map +1 -0
  106. package/dist/presentation-query-form-state-context.d.ts +20 -0
  107. package/dist/presentation-query-form-state-context.d.ts.map +1 -0
  108. package/dist/presentation-query-form-state-context.js +20 -0
  109. package/dist/presentation-query-form-state-context.js.map +1 -0
  110. package/dist/presentation-query-form-state.d.ts +29 -0
  111. package/dist/presentation-query-form-state.d.ts.map +1 -0
  112. package/dist/presentation-query-form-state.js +99 -0
  113. package/dist/presentation-query-form-state.js.map +1 -0
  114. package/dist/presentation-renderer-registry.d.ts +109 -0
  115. package/dist/presentation-renderer-registry.d.ts.map +1 -0
  116. package/dist/presentation-renderer-registry.js +25 -0
  117. package/dist/presentation-renderer-registry.js.map +1 -0
  118. package/dist/presentation-standards-context.d.ts +4 -0
  119. package/dist/presentation-standards-context.d.ts.map +1 -0
  120. package/dist/presentation-standards-context.js +12 -0
  121. package/dist/presentation-standards-context.js.map +1 -0
  122. package/dist/presentation-standards-provider.d.ts +14 -0
  123. package/dist/presentation-standards-provider.d.ts.map +1 -0
  124. package/dist/presentation-standards-provider.js +16 -0
  125. package/dist/presentation-standards-provider.js.map +1 -0
  126. package/dist/projected-document-action-runtime-bindings.d.ts +20 -0
  127. package/dist/projected-document-action-runtime-bindings.d.ts.map +1 -0
  128. package/dist/projected-document-action-runtime-bindings.js +88 -0
  129. package/dist/projected-document-action-runtime-bindings.js.map +1 -0
  130. package/dist/projected-document-action-runtime.d.ts +76 -0
  131. package/dist/projected-document-action-runtime.d.ts.map +1 -0
  132. package/dist/projected-document-action-runtime.js +224 -0
  133. package/dist/projected-document-action-runtime.js.map +1 -0
  134. package/dist/projected-document-process-preview-action-runtime-bindings.d.ts +26 -0
  135. package/dist/projected-document-process-preview-action-runtime-bindings.d.ts.map +1 -0
  136. package/dist/projected-document-process-preview-action-runtime-bindings.js +106 -0
  137. package/dist/projected-document-process-preview-action-runtime-bindings.js.map +1 -0
  138. package/dist/projected-document-process-preview-action-runtime.d.ts +321 -0
  139. package/dist/projected-document-process-preview-action-runtime.d.ts.map +1 -0
  140. package/dist/projected-document-process-preview-action-runtime.js +729 -0
  141. package/dist/projected-document-process-preview-action-runtime.js.map +1 -0
  142. package/dist/projected-document-process-preview-capability-runtime.d.ts +47 -0
  143. package/dist/projected-document-process-preview-capability-runtime.d.ts.map +1 -0
  144. package/dist/projected-document-process-preview-capability-runtime.js +49 -0
  145. package/dist/projected-document-process-preview-capability-runtime.js.map +1 -0
  146. package/dist/projected-document-workspace-action-runtime.d.ts +87 -0
  147. package/dist/projected-document-workspace-action-runtime.d.ts.map +1 -0
  148. package/dist/projected-document-workspace-action-runtime.js +150 -0
  149. package/dist/projected-document-workspace-action-runtime.js.map +1 -0
  150. package/dist/projected-document-workspace-projection-renderer-diagnostics.d.ts +18 -0
  151. package/dist/projected-document-workspace-projection-renderer-diagnostics.d.ts.map +1 -0
  152. package/dist/projected-document-workspace-projection-renderer-diagnostics.js +207 -0
  153. package/dist/projected-document-workspace-projection-renderer-diagnostics.js.map +1 -0
  154. package/dist/projected-document-workspace-runtime-binding-diagnostics.d.ts +19 -0
  155. package/dist/projected-document-workspace-runtime-binding-diagnostics.d.ts.map +1 -0
  156. package/dist/projected-document-workspace-runtime-binding-diagnostics.js +124 -0
  157. package/dist/projected-document-workspace-runtime-binding-diagnostics.js.map +1 -0
  158. package/dist/projected-navigation-provider.d.ts +16 -0
  159. package/dist/projected-navigation-provider.d.ts.map +1 -0
  160. package/dist/projected-navigation-provider.js +51 -0
  161. package/dist/projected-navigation-provider.js.map +1 -0
  162. package/dist/projected-presentation-flow-host.d.ts +16 -0
  163. package/dist/projected-presentation-flow-host.d.ts.map +1 -0
  164. package/dist/projected-presentation-flow-host.js +14 -0
  165. package/dist/projected-presentation-flow-host.js.map +1 -0
  166. package/dist/projected-query-form-state-adapter.d.ts +12 -0
  167. package/dist/projected-query-form-state-adapter.d.ts.map +1 -0
  168. package/dist/projected-query-form-state-adapter.js +361 -0
  169. package/dist/projected-query-form-state-adapter.js.map +1 -0
  170. package/dist/react-router-binding.d.ts +133 -0
  171. package/dist/react-router-binding.d.ts.map +1 -0
  172. package/dist/react-router-binding.js +76 -0
  173. package/dist/react-router-binding.js.map +1 -0
  174. package/dist/react-router-path.d.ts +4 -0
  175. package/dist/react-router-path.d.ts.map +1 -0
  176. package/dist/react-router-path.js +11 -0
  177. package/dist/react-router-path.js.map +1 -0
  178. package/dist/scope-selection-context.d.ts +28 -0
  179. package/dist/scope-selection-context.d.ts.map +1 -0
  180. package/dist/scope-selection-context.js +13 -0
  181. package/dist/scope-selection-context.js.map +1 -0
  182. package/dist/scope-selection-provider.d.ts +33 -0
  183. package/dist/scope-selection-provider.d.ts.map +1 -0
  184. package/dist/scope-selection-provider.js +162 -0
  185. package/dist/scope-selection-provider.js.map +1 -0
  186. package/dist/scope-selection-request.d.ts +6 -0
  187. package/dist/scope-selection-request.d.ts.map +1 -0
  188. package/dist/scope-selection-request.js +12 -0
  189. package/dist/scope-selection-request.js.map +1 -0
  190. package/dist/standard-navigation-shell-frame-renderers.d.ts +15 -0
  191. package/dist/standard-navigation-shell-frame-renderers.d.ts.map +1 -0
  192. package/dist/standard-navigation-shell-frame-renderers.js +22 -0
  193. package/dist/standard-navigation-shell-frame-renderers.js.map +1 -0
  194. package/dist/standard-navigation-shell-slot-renderers.d.ts +59 -0
  195. package/dist/standard-navigation-shell-slot-renderers.d.ts.map +1 -0
  196. package/dist/standard-navigation-shell-slot-renderers.js +67 -0
  197. package/dist/standard-navigation-shell-slot-renderers.js.map +1 -0
  198. package/dist/view-chrome-slot-renderer-registry.d.ts +12 -0
  199. package/dist/view-chrome-slot-renderer-registry.d.ts.map +1 -0
  200. package/dist/view-chrome-slot-renderer-registry.js +12 -0
  201. package/dist/view-chrome-slot-renderer-registry.js.map +1 -0
  202. package/package.json +60 -0
  203. package/src/collection-chrome-slot-renderer-registry.ts +66 -0
  204. package/src/collection-selection-state-context.ts +51 -0
  205. package/src/collection-selection-state.tsx +101 -0
  206. package/src/document-workspace-runtime.tsx +1505 -0
  207. package/src/index.ts +50 -0
  208. package/src/input-form-endpoint-runtime.ts +632 -0
  209. package/src/local-flow-state-data-source-projection.ts +133 -0
  210. package/src/navigation-runtime-context.ts +40 -0
  211. package/src/navigation-shell-frame-renderer-registry.ts +54 -0
  212. package/src/navigation-shell-region-component-registry.tsx +127 -0
  213. package/src/navigation-shell-slot-renderer-registry.ts +88 -0
  214. package/src/page-host-projection.ts +356 -0
  215. package/src/page-host-renderer-registry.tsx +353 -0
  216. package/src/presentation-action-group-runtime-options.ts +121 -0
  217. package/src/presentation-action-runtime.ts +190 -0
  218. package/src/presentation-data-source-binding-runtime.ts +109 -0
  219. package/src/presentation-data-source-binding.tsx +24 -0
  220. package/src/presentation-flow-runtime.tsx +835 -0
  221. package/src/presentation-module-context.ts +10 -0
  222. package/src/presentation-module-provider.tsx +19 -0
  223. package/src/presentation-projection-diagnostics-context.ts +17 -0
  224. package/src/presentation-projection-diagnostics-hooks.ts +29 -0
  225. package/src/presentation-projection-diagnostics-runtime.tsx +95 -0
  226. package/src/presentation-projection-trace.ts +117 -0
  227. package/src/presentation-query-form-runtime.ts +148 -0
  228. package/src/presentation-query-form-state-adapter-registry.ts +25 -0
  229. package/src/presentation-query-form-state-context.ts +56 -0
  230. package/src/presentation-query-form-state.tsx +250 -0
  231. package/src/presentation-renderer-registry.ts +214 -0
  232. package/src/presentation-standards-context.ts +21 -0
  233. package/src/presentation-standards-provider.tsx +44 -0
  234. package/src/projected-document-action-runtime-bindings.ts +132 -0
  235. package/src/projected-document-action-runtime.ts +414 -0
  236. package/src/projected-document-process-preview-action-runtime-bindings.ts +231 -0
  237. package/src/projected-document-process-preview-action-runtime.ts +1725 -0
  238. package/src/projected-document-process-preview-capability-runtime.ts +216 -0
  239. package/src/projected-document-workspace-action-runtime.ts +402 -0
  240. package/src/projected-document-workspace-projection-renderer-diagnostics.ts +342 -0
  241. package/src/projected-document-workspace-runtime-binding-diagnostics.ts +208 -0
  242. package/src/projected-navigation-provider.tsx +104 -0
  243. package/src/projected-presentation-flow-host.tsx +46 -0
  244. package/src/projected-query-form-state-adapter.ts +578 -0
  245. package/src/react-router-binding.tsx +417 -0
  246. package/src/react-router-path.ts +16 -0
  247. package/src/scope-selection-context.ts +58 -0
  248. package/src/scope-selection-provider.tsx +324 -0
  249. package/src/scope-selection-request.ts +21 -0
  250. package/src/standard-navigation-shell-frame-renderers.tsx +106 -0
  251. package/src/standard-navigation-shell-slot-renderers.tsx +289 -0
  252. package/src/view-chrome-slot-renderer-registry.ts +66 -0
package/LICENSE ADDED
@@ -0,0 +1,55 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on or derived from the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link or bind by name to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor grants You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor grants You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to patent claims licensable by such Contributor that are necessarily infringed by their Contribution alone or by combination of their Contribution with the Work to which such Contribution was submitted. If You institute patent litigation against any entity alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. This does not supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort, contract, or otherwise, unless required by applicable law or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages arising as a result of this License or out of the use or inability to use the Work, even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer and charge a fee for acceptance of support, warranty, indemnity, or other liability obligations. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,12 @@
1
+ import type { ReactNode } from 'react';
2
+ import { collectionChromeSlotAnyPlacement, createCollectionChromeSlotRendererKey, getCollectionChromeSlotRendererCandidateKeys, hasCollectionChromeSlotRendererBinding, isCollectionChromeSlotKind, isCollectionChromeSlotPlacement, isCollectionChromeSlotPlacementValue, type CollectionChromeSlotRendererBinding as CoreCollectionChromeSlotRendererBinding, type CollectionChromeSlotRendererRegistry as CoreCollectionChromeSlotRendererRegistry } from '@cohesivesystems/presentation-core';
3
+ import type { CollectionChromeSlotDefinition, CollectionChromeSlotKind, CollectionChromeSlotPlacement } from '@cohesivesystems/presentation-contracts';
4
+ export { collectionChromeSlotAnyPlacement, createCollectionChromeSlotRendererKey, getCollectionChromeSlotRendererCandidateKeys, hasCollectionChromeSlotRendererBinding, isCollectionChromeSlotKind, isCollectionChromeSlotPlacement, isCollectionChromeSlotPlacementValue, };
5
+ export type CollectionChromeSlotRenderer<TContext> = (context: TContext) => ReactNode;
6
+ export type CollectionChromeSlotRendererRegistry<TContext> = CoreCollectionChromeSlotRendererRegistry<TContext, ReactNode>;
7
+ export type CollectionChromeSlotRendererBinding<TContext> = CoreCollectionChromeSlotRendererBinding<TContext, ReactNode>;
8
+ export declare function createCollectionChromeSlotRendererRegistry<TContext>(bindings: readonly CollectionChromeSlotRendererBinding<TContext>[]): CollectionChromeSlotRendererRegistry<TContext>;
9
+ export declare function getCollectionChromeSlotRendererRegistryKeys<TContext>(registry: CollectionChromeSlotRendererRegistry<TContext> | null | undefined): string[];
10
+ export declare function resolveCollectionChromeSlotRenderer<TContext>(registry: CollectionChromeSlotRendererRegistry<TContext> | null | undefined, slot: CollectionChromeSlotDefinition): import("@cohesivesystems/presentation-core").CollectionChromeSlotRenderer<TContext, ReactNode> | null;
11
+ export type { CollectionChromeSlotDefinition, CollectionChromeSlotKind, CollectionChromeSlotPlacement, };
12
+ //# sourceMappingURL=collection-chrome-slot-renderer-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-chrome-slot-renderer-registry.d.ts","sourceRoot":"","sources":["../src/collection-chrome-slot-renderer-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EAErC,4CAA4C,EAE5C,sCAAsC,EACtC,0BAA0B,EAC1B,+BAA+B,EAC/B,oCAAoC,EAEpC,KAAK,mCAAmC,IAAI,uCAAuC,EACnF,KAAK,oCAAoC,IAAI,wCAAwC,EACtF,MAAM,oCAAoC,CAAA;AAC3C,OAAO,KAAK,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,yCAAyC,CAAA;AAEhD,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACrC,4CAA4C,EAC5C,sCAAsC,EACtC,0BAA0B,EAC1B,+BAA+B,EAC/B,oCAAoC,GACrC,CAAA;AAED,MAAM,MAAM,4BAA4B,CAAC,QAAQ,IAAI,CACnD,OAAO,EAAE,QAAQ,KACd,SAAS,CAAA;AAEd,MAAM,MAAM,oCAAoC,CAAC,QAAQ,IACvD,wCAAwC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;AAE/D,MAAM,MAAM,mCAAmC,CAAC,QAAQ,IACtD,uCAAuC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;AAE9D,wBAAgB,0CAA0C,CAAC,QAAQ,EACjE,QAAQ,EAAE,SAAS,mCAAmC,CAAC,QAAQ,CAAC,EAAE,GACjE,oCAAoC,CAAC,QAAQ,CAAC,CAEhD;AAED,wBAAgB,2CAA2C,CAAC,QAAQ,EAClE,QAAQ,EAAE,oCAAoC,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,YAG5E;AAED,wBAAgB,mCAAmC,CAAC,QAAQ,EAC1D,QAAQ,EAAE,oCAAoC,CAAC,QAAQ,CAAC,GAAG,IAAI,GAAG,SAAS,EAC3E,IAAI,EAAE,8BAA8B,yGAGrC;AAED,YAAY,EACV,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,GAC9B,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { collectionChromeSlotAnyPlacement, createCollectionChromeSlotRendererKey, createCollectionChromeSlotRendererRegistry as createCoreCollectionChromeSlotRendererRegistry, getCollectionChromeSlotRendererCandidateKeys, getCollectionChromeSlotRendererRegistryKeys as getCoreCollectionChromeSlotRendererRegistryKeys, hasCollectionChromeSlotRendererBinding, isCollectionChromeSlotKind, isCollectionChromeSlotPlacement, isCollectionChromeSlotPlacementValue, resolveCollectionChromeSlotRenderer as resolveCoreCollectionChromeSlotRenderer, } from '@cohesivesystems/presentation-core';
2
+ export { collectionChromeSlotAnyPlacement, createCollectionChromeSlotRendererKey, getCollectionChromeSlotRendererCandidateKeys, hasCollectionChromeSlotRendererBinding, isCollectionChromeSlotKind, isCollectionChromeSlotPlacement, isCollectionChromeSlotPlacementValue, };
3
+ export function createCollectionChromeSlotRendererRegistry(bindings) {
4
+ return createCoreCollectionChromeSlotRendererRegistry(bindings);
5
+ }
6
+ export function getCollectionChromeSlotRendererRegistryKeys(registry) {
7
+ return getCoreCollectionChromeSlotRendererRegistryKeys(registry);
8
+ }
9
+ export function resolveCollectionChromeSlotRenderer(registry, slot) {
10
+ return resolveCoreCollectionChromeSlotRenderer(registry, slot);
11
+ }
12
+ //# sourceMappingURL=collection-chrome-slot-renderer-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-chrome-slot-renderer-registry.js","sourceRoot":"","sources":["../src/collection-chrome-slot-renderer-registry.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACrC,0CAA0C,IAAI,8CAA8C,EAC5F,4CAA4C,EAC5C,2CAA2C,IAAI,+CAA+C,EAC9F,sCAAsC,EACtC,0BAA0B,EAC1B,+BAA+B,EAC/B,oCAAoC,EACpC,mCAAmC,IAAI,uCAAuC,GAG/E,MAAM,oCAAoC,CAAA;AAO3C,OAAO,EACL,gCAAgC,EAChC,qCAAqC,EACrC,4CAA4C,EAC5C,sCAAsC,EACtC,0BAA0B,EAC1B,+BAA+B,EAC/B,oCAAoC,GACrC,CAAA;AAYD,MAAM,UAAU,0CAA0C,CACxD,QAAkE;IAElE,OAAO,8CAA8C,CAAsB,QAAQ,CAAC,CAAA;AACtF,CAAC;AAED,MAAM,UAAU,2CAA2C,CACzD,QAA2E;IAE3E,OAAO,+CAA+C,CAAsB,QAAQ,CAAC,CAAA;AACvF,CAAC;AAED,MAAM,UAAU,mCAAmC,CACjD,QAA2E,EAC3E,IAAoC;IAEpC,OAAO,uCAAuC,CAAsB,QAAQ,EAAE,IAAI,CAAC,CAAA;AACrF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { CollectionSelectionStateContextValue, CollectionSelectionStateEntry } from '@cohesivesystems/presentation-core';
2
+ export type { CollectionSelectionStateContextValue, CollectionSelectionStateEntry, } from '@cohesivesystems/presentation-core';
3
+ export declare const CollectionSelectionStateContext: import("react").Context<CollectionSelectionStateContextValue | null>;
4
+ export declare function useCollectionSelectionState(selectionStateId: string | null | undefined): CollectionSelectionStateEntry | null;
5
+ export declare function useCollectionSelectionStateMap(): Readonly<Record<string, readonly string[]>>;
6
+ //# sourceMappingURL=collection-selection-state-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-selection-state-context.d.ts","sourceRoot":"","sources":["../src/collection-selection-state-context.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,oCAAoC,EACpC,6BAA6B,EAC9B,MAAM,oCAAoC,CAAA;AAE3C,YAAY,EACV,oCAAoC,EACpC,6BAA6B,GAC9B,MAAM,oCAAoC,CAAA;AAE3C,eAAO,MAAM,+BAA+B,sEACsB,CAAA;AAElE,wBAAgB,2BAA2B,CACzC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C,6BAA6B,GAAG,IAAI,CAwBtC;AAED,wBAAgB,8BAA8B,gDAG7C"}
@@ -0,0 +1,25 @@
1
+ import { createContext, useContext, useMemo, } from 'react';
2
+ export const CollectionSelectionStateContext = createContext(null);
3
+ export function useCollectionSelectionState(selectionStateId) {
4
+ const context = useContext(CollectionSelectionStateContext);
5
+ return useMemo(() => {
6
+ if (!context || !selectionStateId) {
7
+ return null;
8
+ }
9
+ const selectedRowIds = context.selectedRowIdsByStateId[selectionStateId] ?? [];
10
+ return {
11
+ clearSelection: () => context.clearSelection(selectionStateId),
12
+ selectedRowId: selectedRowIds[0] ?? null,
13
+ selectedRowIds,
14
+ selectionStateId,
15
+ selectRowId: (rowId, mode) => context.selectRowId(selectionStateId, rowId, mode),
16
+ setSelectedRowIds: (rowIds) => context.setSelectedRowIds(selectionStateId, rowIds),
17
+ toggleRowId: (rowId, mode) => context.toggleRowId(selectionStateId, rowId, mode),
18
+ };
19
+ }, [context, selectionStateId]);
20
+ }
21
+ export function useCollectionSelectionStateMap() {
22
+ return useContext(CollectionSelectionStateContext)
23
+ ?.selectedRowIdsByStateId ?? {};
24
+ }
25
+ //# sourceMappingURL=collection-selection-state-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-selection-state-context.js","sourceRoot":"","sources":["../src/collection-selection-state-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAA;AAYd,MAAM,CAAC,MAAM,+BAA+B,GAC1C,aAAa,CAA8C,IAAI,CAAC,CAAA;AAElE,MAAM,UAAU,2BAA2B,CACzC,gBAA2C;IAE3C,MAAM,OAAO,GAAG,UAAU,CAAC,+BAA+B,CAAC,CAAA;IAE3D,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,IAAI,CAAC,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAClC,OAAO,IAAI,CAAA;QACb,CAAC;QAED,MAAM,cAAc,GAClB,OAAO,CAAC,uBAAuB,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAA;QAEzD,OAAO;YACL,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,cAAc,CAAC,gBAAgB,CAAC;YAC9D,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,IAAI;YACxC,cAAc;YACd,gBAAgB;YAChB,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAC3B,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC;YACpD,iBAAiB,EAAE,CAAC,MAAM,EAAE,EAAE,CAC5B,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,EAAE,MAAM,CAAC;YACrD,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAC3B,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC;SACb,CAAA;IAC3C,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAA;AACjC,CAAC;AAED,MAAM,UAAU,8BAA8B;IAC5C,OAAO,UAAU,CAAC,+BAA+B,CAAC;QAChD,EAAE,uBAAuB,IAAI,EAAE,CAAA;AACnC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type PropsWithChildren } from 'react';
2
+ export declare function CollectionSelectionStateProvider({ children, }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=collection-selection-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-selection-state.d.ts","sourceRoot":"","sources":["../src/collection-selection-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAA;AAad,wBAAgB,gCAAgC,CAAC,EAC/C,QAAQ,GACT,EAAE,iBAAiB,2CAgCnB"}
@@ -0,0 +1,52 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo, useState, } from 'react';
3
+ import { CollectionSelectionStateContext, } from './collection-selection-state-context.js';
4
+ import { collectionSelectionModes, } from '@cohesivesystems/presentation-contracts';
5
+ export function CollectionSelectionStateProvider({ children, }) {
6
+ const [selectedRowIdsByStateId, setSelectedRowIdsByStateId] = useState({});
7
+ const value = useMemo(() => ({
8
+ clearSelection: (selectionStateId) => {
9
+ setSelectedRowIdsByStateId((current) => setSelectionState(current, selectionStateId, []));
10
+ },
11
+ selectedRowIdsByStateId,
12
+ selectRowId: (selectionStateId, rowId, mode) => {
13
+ setSelectedRowIdsByStateId((current) => setSelectionState(current, selectionStateId, selectRowId(current, selectionStateId, rowId, mode)));
14
+ },
15
+ setSelectedRowIds: (selectionStateId, rowIds) => {
16
+ setSelectedRowIdsByStateId((current) => setSelectionState(current, selectionStateId, uniqueRowIds(rowIds)));
17
+ },
18
+ toggleRowId: (selectionStateId, rowId, mode) => {
19
+ setSelectedRowIdsByStateId((current) => setSelectionState(current, selectionStateId, toggleRowId(current, selectionStateId, rowId, mode)));
20
+ },
21
+ }), [selectedRowIdsByStateId]);
22
+ return (_jsx(CollectionSelectionStateContext.Provider, { value: value, children: children }));
23
+ }
24
+ function selectRowId(current, selectionStateId, rowId, mode) {
25
+ if (isMultipleSelectionMode(mode)) {
26
+ return uniqueRowIds([...(current[selectionStateId] ?? []), rowId]);
27
+ }
28
+ return [rowId];
29
+ }
30
+ function toggleRowId(current, selectionStateId, rowId, mode) {
31
+ if (!isMultipleSelectionMode(mode)) {
32
+ return [rowId];
33
+ }
34
+ const currentRowIds = current[selectionStateId] ?? [];
35
+ return currentRowIds.includes(rowId)
36
+ ? currentRowIds.filter((candidate) => candidate !== rowId)
37
+ : [...currentRowIds, rowId];
38
+ }
39
+ function setSelectionState(current, selectionStateId, selectedRowIds) {
40
+ return {
41
+ ...current,
42
+ [selectionStateId]: selectedRowIds,
43
+ };
44
+ }
45
+ function uniqueRowIds(rowIds) {
46
+ return Array.from(new Set(rowIds));
47
+ }
48
+ function isMultipleSelectionMode(mode) {
49
+ return mode === collectionSelectionModes.multiple ||
50
+ String(mode).toLocaleLowerCase() === 'multiple';
51
+ }
52
+ //# sourceMappingURL=collection-selection-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection-selection-state.js","sourceRoot":"","sources":["../src/collection-selection-state.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,OAAO,EACP,QAAQ,GAET,MAAM,OAAO,CAAA;AAKd,OAAO,EACL,+BAA+B,GAEhC,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,wBAAwB,GACzB,MAAM,yCAAyC,CAAA;AAEhD,MAAM,UAAU,gCAAgC,CAAC,EAC/C,QAAQ,GACU;IAClB,MAAM,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,GACzD,QAAQ,CAAoC,EAAE,CAAC,CAAA;IAEjD,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,cAAc,EAAE,CAAC,gBAAgB,EAAE,EAAE;YACnC,0BAA0B,CAAC,CAAC,OAAO,EAAE,EAAE,CACrC,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,EAAE,EAAE,CAAC,CAAC,CAAA;QACrD,CAAC;QACD,uBAAuB;QACvB,WAAW,EAAE,CAAC,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAC7C,0BAA0B,CAAC,CAAC,OAAO,EAAE,EAAE,CACrC,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,EAAE,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;QACtG,CAAC;QACD,iBAA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AAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,KAAK,CAAC;QAC1D,CAAC,CAAC,CAAC,GAAG,aAAa,EAAE,KAAK,CAAC,CAAA;AAC/B,CAAC;AAED,SAAS,iBAAiB,CACxB,OAAoD,EACpD,gBAAwB,EACxB,cAAiC;IAEjC,OAAO;QACL,GAAG,OAAO;QACV,CAAC,gBAAgB,CAAC,EAAE,cAAc;KACnC,CAAA;AACH,CAAC;AAED,SAAS,YAAY,CAAC,MAAyB;IAC7C,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAA;AACpC,CAAC;AAED,SAAS,uBAAuB,CAAC,IAA6B;IAC5D,OAAO,IAAI,KAAK,wBAAwB,CAAC,QAAQ;QAC/C,MAAM,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,KAAK,UAAU,CAAA;AACnD,CAAC"}
@@ -0,0 +1,262 @@
1
+ import { type ReactNode, type SetStateAction } from 'react';
2
+ import { type DocumentProfileDefinition, type PresentationModuleDefinition, type ProjectionDefinition, type ViewDefinition, type WorkspaceDefinition, type WorkspaceRefDefinition } from '@cohesivesystems/presentation-core';
3
+ /**
4
+ * Client-side display mode for a document workspace. The available modes are
5
+ * declared by the IR, but the active mode is runtime state owned by the
6
+ * projection boundary.
7
+ */
8
+ export type DocumentWorkspaceLayout = 'single' | 'split';
9
+ /**
10
+ * A semantic path is a renderer-neutral addressing for a document location. Tree
11
+ * renderers publish these paths so sibling projections can coordinate without
12
+ * depending on each other's concrete component state.
13
+ */
14
+ export interface DocumentWorkspaceSemanticPathSegment {
15
+ readonly Kind?: string | number | null;
16
+ readonly Id: string;
17
+ readonly Label?: string | null;
18
+ }
19
+ export interface DocumentWorkspaceSemanticPath {
20
+ readonly Segments: readonly DocumentWorkspaceSemanticPathSegment[];
21
+ }
22
+ export interface DocumentWorkspaceSemanticReference {
23
+ readonly Kind?: string | number | null;
24
+ readonly Id: string;
25
+ readonly Path?: DocumentWorkspaceSemanticPath | null;
26
+ }
27
+ export interface DocumentWorkspaceSemanticSelection {
28
+ readonly Target: DocumentWorkspaceSemanticReference;
29
+ readonly SourceProjectionId?: string | null;
30
+ readonly SemanticPath?: DocumentWorkspaceSemanticPath | null;
31
+ }
32
+ export interface DocumentWorkspaceSemanticTreeNode {
33
+ readonly itemId: string;
34
+ readonly relatedSemanticReferences?: readonly DocumentWorkspaceSemanticReference[];
35
+ readonly semanticReference: DocumentWorkspaceSemanticReference;
36
+ }
37
+ export interface DocumentWorkspaceNavigationHistory {
38
+ readonly entries: readonly string[];
39
+ readonly index: number;
40
+ }
41
+ export interface DocumentWorkspaceTreeSearchState {
42
+ readonly activeMatchIndex: number;
43
+ readonly isOpen: boolean;
44
+ readonly query: string;
45
+ }
46
+ export interface DocumentWorkspaceTreeStateSnapshot {
47
+ readonly expandedItemIds: readonly string[];
48
+ readonly navigationHistory: DocumentWorkspaceNavigationHistory;
49
+ readonly search: DocumentWorkspaceTreeSearchState;
50
+ }
51
+ export interface DocumentWorkspaceRuntimeState {
52
+ /**
53
+ * Cross-projection selections, such as a structure-tree item that another
54
+ * document projection may highlight or navigate to.
55
+ */
56
+ readonly semanticSelections: readonly DocumentWorkspaceSemanticSelection[];
57
+ /**
58
+ * Projection-local interaction state keyed by semantic projection id. Keeping
59
+ * this here lets tree projections remount without losing expansion/search
60
+ * state while the same document workspace instance is active.
61
+ */
62
+ readonly treeStates: Readonly<Record<string, DocumentWorkspaceTreeStateSnapshot>>;
63
+ }
64
+ /**
65
+ * Fully resolved runtime contract for a semantic document workspace. Route
66
+ * hosts should treat this as the projection boundary: React components receive
67
+ * this snapshot after the IR has resolved the page, workspace, document profile,
68
+ * initial projections, and active client state.
69
+ */
70
+ export interface DocumentWorkspaceRuntimeSnapshot {
71
+ readonly activeLayoutModeId: string;
72
+ readonly activeProjection: ProjectionDefinition | null;
73
+ readonly activeProjectionId: string | null;
74
+ readonly activeViewId: string | null;
75
+ readonly documentProfile: DocumentProfileDefinition;
76
+ readonly initialProjectionIds: readonly string[];
77
+ /**
78
+ * Stable key for state that belongs to one opened workspace/document pair.
79
+ * Changing this key intentionally resets local interaction state.
80
+ */
81
+ readonly instanceKey: string;
82
+ readonly layout: DocumentWorkspaceLayout;
83
+ /**
84
+ * The route/page-level semantic view. This is distinct from workspaceView:
85
+ * pageView owns page chrome such as document summary metrics and actions.
86
+ */
87
+ readonly pageView: ViewDefinition;
88
+ /**
89
+ * View ids corresponding to the active document profile projections. These
90
+ * ids drive document tabs/switchers, while projection ids remain the semantic
91
+ * identities used by renderers and persisted projection state.
92
+ */
93
+ readonly projectionViewIds: readonly string[];
94
+ readonly projections: readonly ProjectionDefinition[];
95
+ readonly setActiveViewId: (viewId: string) => void;
96
+ readonly setLayout: (layout: DocumentWorkspaceLayout) => void;
97
+ readonly state: DocumentWorkspaceRuntimeState;
98
+ readonly workspace: WorkspaceDefinition;
99
+ readonly workspaceRef: WorkspaceRefDefinition;
100
+ /**
101
+ * The semantic workspace surface hosted by the page. This view owns workspace
102
+ * chrome such as view switching, layout switching, and heading trailing state.
103
+ */
104
+ readonly workspaceView: ViewDefinition;
105
+ }
106
+ /**
107
+ * Context passed to concrete projection renderers after semantic projection
108
+ * resolution. `extra` is intentionally supplied by the app-level binding so the
109
+ * runtime can stay independent from domain-specific document data.
110
+ */
111
+ export interface DocumentWorkspaceProjectionRendererContext<TExtra, TComponentSystem = unknown, TDesignSystem = unknown> {
112
+ readonly componentSystem: TComponentSystem;
113
+ readonly designSystem: TDesignSystem;
114
+ readonly extra: TExtra;
115
+ readonly projection: ProjectionDefinition;
116
+ readonly runtime: DocumentWorkspaceRuntimeSnapshot;
117
+ }
118
+ /**
119
+ * React renderer for one semantic document workspace projection.
120
+ *
121
+ * Implementations should interpret the resolved `projection` from the supplied
122
+ * context and render only that projection's view/content. Cross-projection
123
+ * coordination, active workspace state, component-system bindings, and
124
+ * app-specific document data are provided through the context so projection
125
+ * renderers can remain ordinary pure React adapters.
126
+ *
127
+ * @typeParam TExtra - App-specific document data and callbacks supplied by the host.
128
+ * @typeParam TComponentSystem - Concrete component-system type used by the renderer.
129
+ * @typeParam TDesignSystem - Concrete design-system type used by the renderer.
130
+ * @param context - Fully resolved projection rendering context.
131
+ * @returns React content for the projection, or `null` when the projection cannot render.
132
+ */
133
+ export type DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem = unknown, TDesignSystem = unknown> = (context: DocumentWorkspaceProjectionRendererContext<TExtra, TComponentSystem, TDesignSystem>) => ReactNode;
134
+ /**
135
+ * Registry of frontend interpretations for document projections. Resolution is
136
+ * target-first: ordinary projections bind through ProjectionRenderer target
137
+ * bindings declared by the backend IR and interpreted by a frontend component
138
+ * pack. Semantic-kind lookup is retained as a diagnostic fallback for older
139
+ * projections whose target component semantics have not been declared yet.
140
+ */
141
+ export interface DocumentWorkspaceProjectionRendererRegistry<TExtra, TComponentSystem = unknown, TDesignSystem = unknown> {
142
+ /** Renderers keyed by semantic component roles from ProjectionRenderer target bindings. */
143
+ readonly byComponentRole?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
144
+ /** Concrete component-key overrides from ProjectionRenderer target bindings. */
145
+ readonly byComponentKey?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
146
+ /** Compatibility renderers keyed by projection kind enum value or label. */
147
+ readonly byProjectionKind?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
148
+ /** Compatibility renderers keyed by projection subject kind enum value or label. */
149
+ readonly bySubjectKind?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
150
+ /** Compatibility renderers keyed by coordinate semantic-reference kind enum value or label. */
151
+ readonly bySemanticReferenceKind?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
152
+ /** Last-resort escape hatch keyed by projection id. */
153
+ readonly byProjectionId?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
154
+ /** Last-resort escape hatch keyed by projection view id. */
155
+ readonly byViewId?: Readonly<Record<string, DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>>>;
156
+ /** Renderer used when no semantic or explicit binding matches. */
157
+ readonly fallback?: DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem>;
158
+ /** Frontend projection capabilities used by IR coordination diagnostics. */
159
+ readonly capabilities?: DocumentWorkspaceProjectionCapabilityRegistry;
160
+ }
161
+ export interface DocumentWorkspaceProjectionCapabilityRegistry {
162
+ readonly revealSemanticSelection?: DocumentWorkspaceProjectionCapabilityBindings;
163
+ }
164
+ export interface DocumentWorkspaceProjectionCapabilityBindings {
165
+ /** Capability keyed by semantic component roles from ProjectionRenderer target bindings. */
166
+ readonly byComponentRole?: Readonly<Record<string, boolean>>;
167
+ /** Capability keyed by concrete component-key overrides from ProjectionRenderer target bindings. */
168
+ readonly byComponentKey?: Readonly<Record<string, boolean>>;
169
+ /** Capability keyed by projection kind enum value or label. */
170
+ readonly byProjectionKind?: Readonly<Record<string, boolean>>;
171
+ /** Capability keyed by projection subject kind enum value or label. */
172
+ readonly bySubjectKind?: Readonly<Record<string, boolean>>;
173
+ /** Capability keyed by coordinate semantic-reference kind enum value or label. */
174
+ readonly bySemanticReferenceKind?: Readonly<Record<string, boolean>>;
175
+ /** Last-resort escape hatch keyed by projection id. */
176
+ readonly byProjectionId?: Readonly<Record<string, boolean>>;
177
+ /** Last-resort escape hatch keyed by projection view id. */
178
+ readonly byViewId?: Readonly<Record<string, boolean>>;
179
+ }
180
+ export type DocumentWorkspaceProjectionRendererResolutionSource = 'component-key' | 'component-role' | 'fallback' | 'projection-id' | 'projection-kind' | 'semantic-reference-kind' | 'subject-kind' | 'view-id';
181
+ export interface DocumentWorkspaceProjectionRendererResolution<TExtra, TComponentSystem = unknown, TDesignSystem = unknown> {
182
+ readonly componentKey: string | null;
183
+ readonly componentRole: string | null;
184
+ readonly projection: ProjectionDefinition | null;
185
+ readonly renderer: DocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem, TDesignSystem> | null;
186
+ readonly rendererKey: string | null;
187
+ readonly resolutionSource: DocumentWorkspaceProjectionRendererResolutionSource | null;
188
+ }
189
+ export interface RenderDocumentWorkspaceProjectionOptions<TComponentSystem = unknown, TDesignSystem = unknown> {
190
+ readonly componentSet?: string | null;
191
+ readonly componentSystem: TComponentSystem;
192
+ readonly designSystem: TDesignSystem;
193
+ readonly module?: PresentationModuleDefinition | null;
194
+ }
195
+ export interface DocumentWorkspaceRuntimeProps {
196
+ readonly children: (runtime: DocumentWorkspaceRuntimeSnapshot) => ReactNode;
197
+ readonly documentInstanceId?: string | null;
198
+ readonly fallback?: ReactNode;
199
+ /**
200
+ * Route/page semantic view id. The runtime resolves the workspace hosted by
201
+ * this page rather than assuming the page itself is the workspace surface.
202
+ */
203
+ readonly pageViewId: string;
204
+ }
205
+ /**
206
+ * Resolves the document workspace declared by the presentation IR and provides
207
+ * the active client-side runtime snapshot to projection renderers. This is the
208
+ * point where a route page becomes a semantic workspace instance.
209
+ */
210
+ export declare function DocumentWorkspaceRuntime({ children, documentInstanceId, fallback, pageViewId, }: DocumentWorkspaceRuntimeProps): import("react/jsx-runtime").JSX.Element;
211
+ export declare function renderDocumentWorkspaceProjection<TExtra, TComponentSystem, TDesignSystem>(runtime: DocumentWorkspaceRuntimeSnapshot, renderers: DocumentWorkspaceProjectionRendererRegistry<TExtra, TComponentSystem, TDesignSystem>, rendererContext: TExtra, viewId: string, options: RenderDocumentWorkspaceProjectionOptions<TComponentSystem, TDesignSystem>): ReactNode;
212
+ export declare function resolveDocumentWorkspaceProjectionRenderer<TExtra, TComponentSystem = unknown, TDesignSystem = unknown>({ componentSet, module, registry, runtime, viewId, }: {
213
+ readonly componentSet?: string | null;
214
+ readonly module?: PresentationModuleDefinition | null;
215
+ readonly registry: DocumentWorkspaceProjectionRendererRegistry<TExtra, TComponentSystem, TDesignSystem>;
216
+ readonly runtime: DocumentWorkspaceRuntimeSnapshot;
217
+ readonly viewId: string;
218
+ }): DocumentWorkspaceProjectionRendererResolution<TExtra, TComponentSystem, TDesignSystem>;
219
+ export declare function resolveDocumentWorkspaceProjectionCapability<TExtra, TComponentSystem = unknown, TDesignSystem = unknown>({ capability, componentSet, module, projection, registry, }: {
220
+ readonly capability: keyof DocumentWorkspaceProjectionCapabilityRegistry;
221
+ readonly componentSet?: string | null;
222
+ readonly module?: PresentationModuleDefinition | null;
223
+ readonly projection: ProjectionDefinition;
224
+ readonly registry: DocumentWorkspaceProjectionRendererRegistry<TExtra, TComponentSystem, TDesignSystem>;
225
+ }): boolean;
226
+ /**
227
+ * Shared tree-state hook for document projections. It uses workspace runtime
228
+ * state when mounted under DocumentWorkspaceRuntime, and falls back to local
229
+ * component state when a tree renderer is tested or rendered in isolation.
230
+ */
231
+ export declare function useDocumentWorkspaceTreeState({ createSemanticSelection, initialExpandedItemIds, projectionId, semanticReferenceKind, }: {
232
+ readonly createSemanticSelection?: (itemId: string) => DocumentWorkspaceSemanticSelection | null;
233
+ readonly initialExpandedItemIds: readonly string[];
234
+ readonly projectionId?: string | null;
235
+ readonly semanticReferenceKind?: string | number | null;
236
+ }): {
237
+ expandedItemIds: readonly string[];
238
+ navigationHistory: DocumentWorkspaceNavigationHistory;
239
+ onSelectedItemIdChange: (itemId: string | null) => void;
240
+ search: DocumentWorkspaceTreeSearchState;
241
+ semanticSelections: readonly DocumentWorkspaceSemanticSelection[];
242
+ setExpandedItemIds: (value: SetStateAction<readonly string[]>) => void;
243
+ setNavigationHistory: (value: SetStateAction<DocumentWorkspaceNavigationHistory>) => void;
244
+ setSearch: (value: SetStateAction<DocumentWorkspaceTreeSearchState>) => void;
245
+ };
246
+ export declare function useDocumentWorkspaceSemanticSelections({ projectionId, }: {
247
+ readonly projectionId?: string | null;
248
+ }): readonly DocumentWorkspaceSemanticSelection[];
249
+ export declare function useDocumentWorkspaceSemanticSelectionPublisher({ projectionId, semanticReferenceKind, }: {
250
+ readonly projectionId?: string | null;
251
+ readonly semanticReferenceKind?: string | number | null;
252
+ }): (selection: DocumentWorkspaceSemanticSelection) => void;
253
+ export declare function createDocumentWorkspaceSemanticPath(segments: readonly DocumentWorkspaceSemanticPathSegment[]): DocumentWorkspaceSemanticPath;
254
+ export declare function createDocumentWorkspaceSemanticReference({ id, kind, label, path, }: {
255
+ readonly id: string;
256
+ readonly kind?: string | number | null;
257
+ readonly label?: string | null;
258
+ readonly path?: DocumentWorkspaceSemanticPath | null;
259
+ }): DocumentWorkspaceSemanticReference;
260
+ export declare function documentWorkspaceSemanticReferenceMatchesSelection(reference: DocumentWorkspaceSemanticReference, selection: DocumentWorkspaceSemanticSelection): boolean;
261
+ export declare function findDocumentWorkspaceSemanticTreeItemId(selection: DocumentWorkspaceSemanticSelection, nodes: Iterable<DocumentWorkspaceSemanticTreeNode>): string | null;
262
+ //# sourceMappingURL=document-workspace-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-workspace-runtime.d.ts","sourceRoot":"","sources":["../src/document-workspace-runtime.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,KAAK,SAAS,EACd,KAAK,cAAc,EACpB,MAAM,OAAO,CAAA;AAEd,OAAO,EAIL,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC5B,MAAM,oCAAoC,CAAA;AAkB3C;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,OAAO,CAAA;AAExD;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACnD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB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