jsf.js_next_gen 4.1.0-beta.1 → 4.1.0-beta.10

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 (348) hide show
  1. package/README.md +47 -9
  2. package/dist/docs/functions/faces.getClientWindow.html +2 -2
  3. package/dist/docs/functions/faces.getProjectStage.html +2 -2
  4. package/dist/docs/functions/faces.util.chain.html +2 -2
  5. package/dist/docs/index.html +57 -6
  6. package/dist/window/faces-development.js +2646 -1317
  7. package/dist/window/faces-development.js.map +1 -1
  8. package/dist/window/faces.js +1 -1
  9. package/dist/window/faces.js.LICENSE.txt +0 -17
  10. package/dist/window/faces.js.map +1 -1
  11. package/dist/window/jsf-development.js +2651 -1331
  12. package/dist/window/jsf-development.js.map +1 -1
  13. package/dist/window/jsf.js +1 -1
  14. package/dist/window/jsf.js.LICENSE.txt +0 -17
  15. package/dist/window/jsf.js.map +1 -1
  16. package/package.json +9 -8
  17. package/src/main/typescript/@types/definitions/index.d.ts +14 -3
  18. package/{target/test/frameworkBase/_ext/monadish/fixtures/test2.js → src/main/typescript/@types/definitions/modules.d.ts} +17 -2
  19. package/src/main/typescript/api/_api.ts +5 -7
  20. package/src/main/typescript/api/faces.ts +2 -2
  21. package/src/main/typescript/api/jsf.ts +15 -23
  22. package/src/main/typescript/impl/AjaxImpl.ts +15 -15
  23. package/src/main/typescript/impl/PushImpl.ts +45 -28
  24. package/src/main/typescript/impl/util/Assertions.ts +1 -2
  25. package/src/main/typescript/impl/util/AsyncRunnable.ts +2 -3
  26. package/src/main/typescript/impl/util/ExtDomQuery.ts +19 -15
  27. package/src/main/typescript/impl/util/FileUtils.ts +11 -11
  28. package/src/main/typescript/impl/util/Lang.ts +9 -9
  29. package/src/main/typescript/impl/util/XhrQueueController.ts +2 -2
  30. package/src/main/typescript/impl/xhrCore/ErrorData.ts +9 -9
  31. package/src/main/typescript/impl/xhrCore/EventData.ts +5 -5
  32. package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +3 -3
  33. package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +7 -6
  34. package/src/main/typescript/impl/xhrCore/Response.ts +3 -3
  35. package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +17 -15
  36. package/src/main/typescript/impl/xhrCore/XhrFormData.ts +72 -63
  37. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +79 -133
  38. package/src/main/typescript/mona_dish_shim.ts +6 -2
  39. package/src/main/typescript/myfaces/OamSubmit.ts +9 -5
  40. package/src/main/typescript/test/api/JsfPushShimTest.spec.ts +66 -0
  41. package/{target/test/frameworkBase/_ext/monadish/fixtures/test.js → src/main/typescript/test/api/PushTypeCompatibility.ts} +21 -2
  42. package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -0
  43. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +55 -9
  44. package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +22 -1
  45. package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +14 -0
  46. package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +20 -5
  47. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +249 -2
  48. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +103 -4
  49. package/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.ts +1 -1
  50. package/src/main/typescript/test/xhrCore/WebsocketTest.spec.ts +488 -0
  51. package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +265 -62
  52. package/src/main/typescript/tsconfig.test.json +17 -0
  53. package/.claude/settings.local.json +0 -16
  54. package/.github/workflows/codeql-analysis.yml +0 -83
  55. package/.github/workflows/nodejs.yml +0 -26
  56. package/.mocharc.json +0 -10
  57. package/.nyc_output/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  58. package/.nyc_output/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  59. package/.nyc_output/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  60. package/.nyc_output/processinfo/384344d4-4f46-455f-84c3-010f829098cb.json +0 -1
  61. package/.nyc_output/processinfo/a0f90016-f4f9-4039-bb51-57f4f7050541.json +0 -1
  62. package/.nyc_output/processinfo/db388b5d-0b79-4bce-afd2-001aaf6f0245.json +0 -1
  63. package/.nyc_output/processinfo/index.json +0 -1
  64. package/.nycrc +0 -6
  65. package/build.cmd +0 -1
  66. package/build.sh +0 -3
  67. package/mvnw +0 -286
  68. package/mvnw.cmd +0 -161
  69. package/plans for 4.0.1.txt +0 -8
  70. package/remap.ts +0 -51
  71. package/src/main/typescript/test/xhrCore/WebsocketTest.ts +0 -221
  72. package/src/main/typescript/tsconfig.json +0 -47
  73. package/target/api/_api.js +0 -320
  74. package/target/api/_api.js.map +0 -1
  75. package/target/api/faces.js +0 -45
  76. package/target/api/faces.js.map +0 -1
  77. package/target/api/jsf.js +0 -56
  78. package/target/api/jsf.js.map +0 -1
  79. package/target/impl/AjaxImpl.js +0 -748
  80. package/target/impl/AjaxImpl.js.map +0 -1
  81. package/target/impl/PushImpl.js +0 -265
  82. package/target/impl/PushImpl.js.map +0 -1
  83. package/target/impl/core/Const.js +0 -177
  84. package/target/impl/core/Const.js.map +0 -1
  85. package/target/impl/core/ImplTypes.js +0 -38
  86. package/target/impl/core/ImplTypes.js.map +0 -1
  87. package/target/impl/i18n/Messages.js +0 -113
  88. package/target/impl/i18n/Messages.js.map +0 -1
  89. package/target/impl/util/Assertions.js +0 -101
  90. package/target/impl/util/Assertions.js.map +0 -1
  91. package/target/impl/util/AsyncRunnable.js +0 -78
  92. package/target/impl/util/AsyncRunnable.js.map +0 -1
  93. package/target/impl/util/ExtDomQuery.js +0 -306
  94. package/target/impl/util/ExtDomQuery.js.map +0 -1
  95. package/target/impl/util/FileUtils.js +0 -98
  96. package/target/impl/util/FileUtils.js.map +0 -1
  97. package/target/impl/util/HiddenInputBuilder.js +0 -83
  98. package/target/impl/util/HiddenInputBuilder.js.map +0 -1
  99. package/target/impl/util/IListener.js +0 -3
  100. package/target/impl/util/IListener.js.map +0 -1
  101. package/target/impl/util/Lang.js +0 -263
  102. package/target/impl/util/Lang.js.map +0 -1
  103. package/target/impl/util/XhrQueueController.js +0 -92
  104. package/target/impl/util/XhrQueueController.js.map +0 -1
  105. package/target/impl/xhrCore/ErrorData.js +0 -87
  106. package/target/impl/xhrCore/ErrorData.js.map +0 -1
  107. package/target/impl/xhrCore/EventData.js +0 -52
  108. package/target/impl/xhrCore/EventData.js.map +0 -1
  109. package/target/impl/xhrCore/IResponseProcessor.js +0 -3
  110. package/target/impl/xhrCore/IResponseProcessor.js.map +0 -1
  111. package/target/impl/xhrCore/RequestDataResolver.js +0 -186
  112. package/target/impl/xhrCore/RequestDataResolver.js.map +0 -1
  113. package/target/impl/xhrCore/ResonseDataResolver.js +0 -104
  114. package/target/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  115. package/target/impl/xhrCore/Response.js +0 -186
  116. package/target/impl/xhrCore/Response.js.map +0 -1
  117. package/target/impl/xhrCore/ResponseDataResolver.js +0 -104
  118. package/target/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  119. package/target/impl/xhrCore/ResponseProcessor.js +0 -468
  120. package/target/impl/xhrCore/ResponseProcessor.js.map +0 -1
  121. package/target/impl/xhrCore/XhrFormData.js +0 -163
  122. package/target/impl/xhrCore/XhrFormData.js.map +0 -1
  123. package/target/impl/xhrCore/XhrRequest.js +0 -433
  124. package/target/impl/xhrCore/XhrRequest.js.map +0 -1
  125. package/target/mona_dish_shim.js +0 -70
  126. package/target/mona_dish_shim.js.map +0 -1
  127. package/target/myfaces/OamSubmit.js +0 -128
  128. package/target/myfaces/OamSubmit.js.map +0 -1
  129. package/target/src/main/typescript/api/_api.js +0 -320
  130. package/target/src/main/typescript/api/_api.js.map +0 -1
  131. package/target/src/main/typescript/api/faces.js +0 -45
  132. package/target/src/main/typescript/api/faces.js.map +0 -1
  133. package/target/src/main/typescript/api/jsf.js +0 -56
  134. package/target/src/main/typescript/api/jsf.js.map +0 -1
  135. package/target/src/main/typescript/impl/AjaxImpl.js +0 -748
  136. package/target/src/main/typescript/impl/AjaxImpl.js.map +0 -1
  137. package/target/src/main/typescript/impl/PushImpl.js +0 -265
  138. package/target/src/main/typescript/impl/PushImpl.js.map +0 -1
  139. package/target/src/main/typescript/impl/core/Const.js +0 -177
  140. package/target/src/main/typescript/impl/core/Const.js.map +0 -1
  141. package/target/src/main/typescript/impl/core/ImplTypes.js +0 -38
  142. package/target/src/main/typescript/impl/core/ImplTypes.js.map +0 -1
  143. package/target/src/main/typescript/impl/i18n/Messages.js +0 -113
  144. package/target/src/main/typescript/impl/i18n/Messages.js.map +0 -1
  145. package/target/src/main/typescript/impl/util/Assertions.js +0 -101
  146. package/target/src/main/typescript/impl/util/Assertions.js.map +0 -1
  147. package/target/src/main/typescript/impl/util/AsyncRunnable.js +0 -78
  148. package/target/src/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  149. package/target/src/main/typescript/impl/util/ExtDomQuery.js +0 -306
  150. package/target/src/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  151. package/target/src/main/typescript/impl/util/FileUtils.js +0 -98
  152. package/target/src/main/typescript/impl/util/FileUtils.js.map +0 -1
  153. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js +0 -83
  154. package/target/src/main/typescript/impl/util/HiddenInputBuilder.js.map +0 -1
  155. package/target/src/main/typescript/impl/util/IListener.js +0 -3
  156. package/target/src/main/typescript/impl/util/IListener.js.map +0 -1
  157. package/target/src/main/typescript/impl/util/Lang.js +0 -263
  158. package/target/src/main/typescript/impl/util/Lang.js.map +0 -1
  159. package/target/src/main/typescript/impl/util/XhrQueueController.js +0 -92
  160. package/target/src/main/typescript/impl/util/XhrQueueController.js.map +0 -1
  161. package/target/src/main/typescript/impl/xhrCore/ErrorData.js +0 -87
  162. package/target/src/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  163. package/target/src/main/typescript/impl/xhrCore/EventData.js +0 -52
  164. package/target/src/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  165. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  166. package/target/src/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  167. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -186
  168. package/target/src/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  169. package/target/src/main/typescript/impl/xhrCore/Response.js +0 -186
  170. package/target/src/main/typescript/impl/xhrCore/Response.js.map +0 -1
  171. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js +0 -104
  172. package/target/src/main/typescript/impl/xhrCore/ResponseDataResolver.js.map +0 -1
  173. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -468
  174. package/target/src/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  175. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js +0 -163
  176. package/target/src/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  177. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js +0 -433
  178. package/target/src/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  179. package/target/src/main/typescript/mona_dish_shim.js +0 -70
  180. package/target/src/main/typescript/mona_dish_shim.js.map +0 -1
  181. package/target/src/main/typescript/myfaces/OamSubmit.js +0 -128
  182. package/target/src/main/typescript/myfaces/OamSubmit.js.map +0 -1
  183. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js +0 -117
  184. package/target/src/main/typescript/test/api/MyFacesABTest.spec.js.map +0 -1
  185. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js +0 -123
  186. package/target/src/main/typescript/test/frameworkBase/LangTest.spec.js.map +0 -1
  187. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  188. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  189. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  190. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  191. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  192. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  193. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  194. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  195. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  196. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  197. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -2
  198. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  199. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  200. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  201. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  202. package/target/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  203. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  204. package/target/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  205. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  206. package/target/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  207. package/target/src/main/typescript/test/impl/ImplTest.spec.js +0 -225
  208. package/target/src/main/typescript/test/impl/ImplTest.spec.js.map +0 -1
  209. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js +0 -143
  210. package/target/src/main/typescript/test/impl/ImplTest_23.spec.js.map +0 -1
  211. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js +0 -106
  212. package/target/src/main/typescript/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  213. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  214. package/target/src/main/typescript/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  215. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js +0 -118
  216. package/target/src/main/typescript/test/myfaces/OamSubmit.spec.js.map +0 -1
  217. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js +0 -57
  218. package/target/src/main/typescript/test/myfaces/OnLoad.spec.js.map +0 -1
  219. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js +0 -60
  220. package/target/src/main/typescript/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  221. package/target/src/main/typescript/test/queue/AsynchronousProbe.js +0 -93
  222. package/target/src/main/typescript/test/queue/AsynchronousProbe.js.map +0 -1
  223. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js +0 -133
  224. package/target/src/main/typescript/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  225. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js +0 -101
  226. package/target/src/main/typescript/test/xhrCore/ClientWindow.spec.js.map +0 -1
  227. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js +0 -175
  228. package/target/src/main/typescript/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  229. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js +0 -184
  230. package/target/src/main/typescript/test/xhrCore/EventTests.spec.js.map +0 -1
  231. package/target/src/main/typescript/test/xhrCore/FakeWebsocket.js +0 -38
  232. package/target/src/main/typescript/test/xhrCore/FakeWebsocket.js.map +0 -1
  233. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js +0 -181
  234. package/target/src/main/typescript/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  235. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  236. package/target/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  237. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js +0 -199
  238. package/target/src/main/typescript/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  239. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js +0 -567
  240. package/target/src/main/typescript/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  241. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js +0 -845
  242. package/target/src/main/typescript/test/xhrCore/RequestTest.spec.js.map +0 -1
  243. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js +0 -382
  244. package/target/src/main/typescript/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  245. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js +0 -667
  246. package/target/src/main/typescript/test/xhrCore/ResponseTest.spec.js.map +0 -1
  247. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js +0 -367
  248. package/target/src/main/typescript/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  249. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js +0 -123
  250. package/target/src/main/typescript/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  251. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  252. package/target/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  253. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js +0 -207
  254. package/target/src/main/typescript/test/xhrCore/WebsocketTest.js.map +0 -1
  255. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  256. package/target/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  257. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  258. package/target/src/main/typescript/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  259. package/target/test/api/MyFacesABTest.spec.js +0 -117
  260. package/target/test/api/MyFacesABTest.spec.js.map +0 -1
  261. package/target/test/frameworkBase/LangTest.spec.js +0 -123
  262. package/target/test/frameworkBase/LangTest.spec.js.map +0 -1
  263. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +0 -657
  264. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +0 -1
  265. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +0 -107
  266. package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js.map +0 -1
  267. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +0 -106
  268. package/target/test/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  269. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +0 -39
  270. package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js.map +0 -1
  271. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -153
  272. package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +0 -1
  273. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js +0 -1
  274. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.js.map +0 -1
  275. package/target/test/frameworkBase/_ext/monadish/fixtures/test.js.map +0 -1
  276. package/target/test/frameworkBase/_ext/monadish/fixtures/test2.js.map +0 -1
  277. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +0 -925
  278. package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +0 -1
  279. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +0 -112
  280. package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +0 -1
  281. package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -728
  282. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  283. package/target/test/frameworkBase/_ext/shared/XmlResponses.js +0 -296
  284. package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  285. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +0 -16
  286. package/target/test/frameworkBase/_ext/shared/fixtures/js/tobago.js.map +0 -1
  287. package/target/test/impl/ImplTest.spec.js +0 -225
  288. package/target/test/impl/ImplTest.spec.js.map +0 -1
  289. package/target/test/impl/ImplTest_23.spec.js +0 -143
  290. package/target/test/impl/ImplTest_23.spec.js.map +0 -1
  291. package/target/test/impl/SeparatorCharsTest.spec.js +0 -106
  292. package/target/test/impl/SeparatorCharsTest.spec.js.map +0 -1
  293. package/target/test/impl/util/ExtDomQueryTest.spec.js +0 -77
  294. package/target/test/impl/util/ExtDomQueryTest.spec.js.map +0 -1
  295. package/target/test/myfaces/OamSubmit.spec.js +0 -118
  296. package/target/test/myfaces/OamSubmit.spec.js.map +0 -1
  297. package/target/test/myfaces/OnLoad.spec.js +0 -57
  298. package/target/test/myfaces/OnLoad.spec.js.map +0 -1
  299. package/target/test/myfaces/ReserveNamespace.spec.js +0 -60
  300. package/target/test/myfaces/ReserveNamespace.spec.js.map +0 -1
  301. package/target/test/queue/AsynchronousProbe.js +0 -93
  302. package/target/test/queue/AsynchronousProbe.js.map +0 -1
  303. package/target/test/queue/AsynchronousQueueTest.spec.js +0 -133
  304. package/target/test/queue/AsynchronousQueueTest.spec.js.map +0 -1
  305. package/target/test/xhrCore/ClientWindow.spec.js +0 -101
  306. package/target/test/xhrCore/ClientWindow.spec.js.map +0 -1
  307. package/target/test/xhrCore/ErrorChainTest.spec.js +0 -175
  308. package/target/test/xhrCore/ErrorChainTest.spec.js.map +0 -1
  309. package/target/test/xhrCore/EventTests.spec.js +0 -184
  310. package/target/test/xhrCore/EventTests.spec.js.map +0 -1
  311. package/target/test/xhrCore/FakeWebsocket.js +0 -38
  312. package/target/test/xhrCore/FakeWebsocket.js.map +0 -1
  313. package/target/test/xhrCore/FileUploadTest.spec.js +0 -181
  314. package/target/test/xhrCore/FileUploadTest.spec.js.map +0 -1
  315. package/target/test/xhrCore/NamespacesRequestTest.spec.js +0 -226
  316. package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +0 -1
  317. package/target/test/xhrCore/OamSubmitTest.spec.js +0 -199
  318. package/target/test/xhrCore/OamSubmitTest.spec.js.map +0 -1
  319. package/target/test/xhrCore/RequestParamsTest.spec.js +0 -567
  320. package/target/test/xhrCore/RequestParamsTest.spec.js.map +0 -1
  321. package/target/test/xhrCore/RequestTest.spec.js +0 -845
  322. package/target/test/xhrCore/RequestTest.spec.js.map +0 -1
  323. package/target/test/xhrCore/RequestTest_23.spec.js +0 -382
  324. package/target/test/xhrCore/RequestTest_23.spec.js.map +0 -1
  325. package/target/test/xhrCore/ResponseTest.spec.js +0 -667
  326. package/target/test/xhrCore/ResponseTest.spec.js.map +0 -1
  327. package/target/test/xhrCore/ResponseTest23.spec.js +0 -367
  328. package/target/test/xhrCore/ResponseTest23.spec.js.map +0 -1
  329. package/target/test/xhrCore/ShadowDomTest.spec.js +0 -123
  330. package/target/test/xhrCore/ShadowDomTest.spec.js.map +0 -1
  331. package/target/test/xhrCore/TobagoFileUploadTest.spec.js +0 -147
  332. package/target/test/xhrCore/TobagoFileUploadTest.spec.js.map +0 -1
  333. package/target/test/xhrCore/WebsocketTest.js +0 -207
  334. package/target/test/xhrCore/WebsocketTest.js.map +0 -1
  335. package/target/test/xhrCore/XhrFormDataTest.spec.js +0 -149
  336. package/target/test/xhrCore/XhrFormDataTest.spec.js.map +0 -1
  337. package/target/test/xhrCore/XhrRequestProgress.spec.js +0 -130
  338. package/target/test/xhrCore/XhrRequestProgress.spec.js.map +0 -1
  339. package/target/test/xhrCore/fixtures/addedViewHead1.js +0 -17
  340. package/target/test/xhrCore/fixtures/addedViewHead1.js.map +0 -1
  341. package/target/test/xhrCore/fixtures/addedViewHead2.js +0 -17
  342. package/target/test/xhrCore/fixtures/addedViewHead2.js.map +0 -1
  343. package/target/test/xhrCore/fixtures/addedViewHead3.js +0 -17
  344. package/target/test/xhrCore/fixtures/addedViewHead3.js.map +0 -1
  345. package/target/test/xhrCore/fixtures/nonce_script.js +0 -17
  346. package/target/test/xhrCore/fixtures/nonce_script.js.map +0 -1
  347. package/tsconfig.json +0 -9
  348. package/webpack.config.ts +0 -54
package/README.md CHANGED
@@ -184,12 +184,50 @@ faces.ajax.request(document.getElementById("cmd_eval"), null,
184
184
 
185
185
  ## Changes since 4.0
186
186
 
187
- * Elimination of Streams in favor of native arrays
188
- * Providing an internal non intrusive shim for browsers which do not have array map and flapMap
189
- (older Edge and Chromium versions) - done in mona-dish
190
- * Adding a progress monitoring functionality under the myfaces namespace
191
- * Bugfixes which improve tck compliance
192
- * Integration in myfaces 4.0+ as default faces.js implementation
193
-
194
-
195
-
187
+ * Core fixes
188
+ * Codebase build to Typescript 6,
189
+ * Typescript 6 stronger type enforcement rules code fixes
190
+ * Fixes cases like `404`/`500` with empty, HTML, invalid XML, or otherwise non-partial-response bodies being incorrectly reported as `malformedXML` or
191
+ `emptyResponse`.
192
+ * Malformed XML is now only reported as `malformedXML` for successful HTTP responses.
193
+ * XHR timeout now emits the timeout event and reports `httpError`.
194
+ * XHR abort now reports `httpError`.
195
+ * Fixed handling of browser-cancelled XHRs: cancellation-style responses (`status=0`, `readyState=4`, empty response text, and null XML), observed in older Safari/
196
+ WebKit and Chrome/Chromium versions during navigation or download handoff, are treated as queue cleanup and do not fire user `onerror`.
197
+ * Multipart requests no longer get an explicit URL-encoded `Content-Type`; the browser can set the proper multipart boundary.
198
+ * WebSocket Faces `onerror` now matches the spec: reconnectable abnormal closes call `onerror` before reconnecting.
199
+ * WebSocket reconnect scheduling now keeps the correct `this` binding.
200
+ * WebSocket reconnect now increments attempts before scheduling, clears the stale socket, and creates a fresh socket on reconnect.
201
+ * `PushImpl.reset()` now closes existing sockets before clearing socket/component registries.
202
+ * Pending WebSocket callbacks now return cleanly if the channel registry has already been torn down.
203
+ * Preserved stale WebSocket component pruning when moving Faces `onerror` handling from native `WebSocket.onerror` to reconnectable close handling.
204
+ * The JSF 2.3 compatibility shim now adapts the old `jsf.push.init` signature without mutating the shared Faces 4 `faces.push` object.
205
+ * Push typings now include both the Faces 4 signature with `onerror` and the legacy JSF-compatible signature without it.
206
+ * Renamed the reference to the shared api to myFacesApi for code clarity
207
+ * Cleanup of myfaces.ab init code in jsf.ts to match the faces.ts init code
208
+
209
+ * Core improvements
210
+ * Refactored upload callback registration in `XhrRequest` into `registerUploadCallbacks()`.
211
+ * Simplified timeout/header setup.
212
+ * Code Cleanup and simplification of XHRFormData
213
+ * Clarified view state ordering so it is applied after field encoding and not double-counted. .
214
+
215
+ * Tests added or expanded
216
+ * Added tests for `4xx` non-XML responses returning `httpError`.
217
+ * Added tests for `5xx` valid XML responses still returning `httpError`.
218
+ * Added tests for successful empty responses returning `emptyResponse`.
219
+ * Added tests for successful malformed XML returning `malformedXML`.
220
+ * Added tests for XHR timeout behavior.
221
+ * Added tests for XHR abort behavior.
222
+ * Added tests for browser-cancelled XHR handling using the observed `status=0` cancellation fingerprint.
223
+ * Added or expanded `XhrFormData` tests for normal encoding, multi-value fields, view state, view state de-duplication, partial IDs, multipart detection,
224
+ `FormData` output, and naming-container remapping.
225
+ * Expanded WebSocket tests for Faces 4 `onerror`.
226
+ * Expanded WebSocket tests for abnormal-close reconnect behavior.
227
+ * Expanded WebSocket tests for cumulative reconnect delays and stale socket cleanup across consecutive failed reconnect attempts.
228
+ * Expanded WebSocket tests for terminal expired-close behavior.
229
+ * Expanded WebSocket tests for stale component cleanup.
230
+ * Expanded WebSocket tests for idempotent init.
231
+ * Expanded WebSocket tests for behavior dispatch.
232
+ * Expanded WebSocket tests for shared socket fan-out.
233
+ * Renamed websocket test file from `WebsocketTest.ts` to `WebsocketTest.spec.ts`. This has prevented the tests to be run!
@@ -1,3 +1,3 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>getClientWindow | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="" aria-current="page">getClientWindow</a></li></ul><h1>Function getClientWindow</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getclientwindow"><span class="tsd-kind-call-signature">getClientWindow</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rootNode</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#getclientwindow" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>returns the window identifier for the given node / window</p>
2
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">rootNode</span>: <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Element</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the window identifier or null if none is found</p>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>getClientWindow | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="" aria-current="page">getClientWindow</a></li></ul><h1>Function getClientWindow</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getclientwindow"><span class="tsd-kind-call-signature">getClientWindow</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rootNode</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Element</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><a href="#getclientwindow" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>returns the window identifier for the given node / window</p>
2
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">rootNode</span>: <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Element</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></h4><p>the window identifier or null if none is found</p>
3
3
  </div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">jsf.js_next_gen</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>getProjectStage | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="" aria-current="page">getProjectStage</a></li></ul><h1>Function getProjectStage</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getprojectstage"><span class="tsd-kind-call-signature">getProjectStage</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#getprojectstage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>This method is responsible for the return of a given project stage as defined
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>getProjectStage | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="" aria-current="page">getProjectStage</a></li></ul><h1>Function getProjectStage</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getprojectstage"><span class="tsd-kind-call-signature">getProjectStage</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><a href="#getprojectstage" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>This method is responsible for the return of a given project stage as defined
2
2
  by the jsf specification.</p>
3
3
  <p/>
4
4
  Valid return values are:
@@ -7,6 +7,6 @@ Valid return values are:
7
7
  <li>&quot;Development&quot;</li>
8
8
  <li>&quot;SystemTest&quot;</li>
9
9
  <li>&quot;UnitTest&quot;</li>
10
- </li></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><p>the current project state emitted by the server side method:
10
+ </li></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></h4><p>the current project state emitted by the server side method:
11
11
  <i>jakarta.faces.application.Application.getProjectStage()</i></p>
12
12
  </div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">jsf.js_next_gen</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,6 +1,6 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>chain | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="../modules/faces.util.html">util</a></li><li><a href="" aria-current="page">chain</a></li></ul><h1>Function chain</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="chain"><span class="tsd-kind-call-signature">chain</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">source</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Event</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">funcs</span><span class="tsd-signature-symbol">:</span> (<span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Function</span>)<span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#chain" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>varargs function which executes a chain of code (functions or any other code)</p>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>chain | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">jsf.js_next_gen</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/faces.html">faces</a></li><li><a href="../modules/faces.util.html">util</a></li><li><a href="" aria-current="page">chain</a></li></ul><h1>Function chain</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="chain"><span class="tsd-kind-call-signature">chain</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">source</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">HTMLElement</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">event</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Event</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">funcs</span><span class="tsd-signature-symbol">:</span> (<span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Function</span>)<span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#chain" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>varargs function which executes a chain of code (functions or any other code)</p>
2
2
  <p>if any of the code returns false, the execution
3
3
  is terminated prematurely skipping the rest of the code!</p>
4
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">source</span>: <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">HTMLElement</span></span></li><li><span><span class="tsd-kind-parameter">event</span>: <span class="tsd-signature-type">Event</span></span></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">funcs</span>: (<span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Function</span>)<span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>... arbitrary array of functions or strings</p>
4
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">source</span>: <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">HTMLElement</span></span></li><li><span><span class="tsd-kind-parameter">event</span>: <span class="tsd-signature-type">Event</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">null</span></span></li><li><span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">funcs</span>: (<span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Function</span>)<span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>... arbitrary array of functions or strings</p>
5
5
  </div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>true if the chain has succeeded false otherwise</p>
6
6
  </div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">jsf.js_next_gen</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -136,11 +136,62 @@ and adjusts the references in the resource accordingly to the request patterns</
136
136
 
137
137
  <h2 id="changes-since-40" class="tsd-anchor-link">Changes since 4.0<a href="#changes-since-40" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2>
138
138
  <ul>
139
- <li>Elimination of Streams in favor of native arrays</li>
140
- <li>Providing an internal non intrusive shim for browsers which do not have array map and flapMap
141
- (older Edge and Chromium versions) - done in mona-dish</li>
142
- <li>Adding a progress monitoring functionality under the myfaces namespace</li>
143
- <li>Bugfixes which improve tck compliance</li>
144
- <li>Integration in myfaces 4.0+ as default faces.js implementation</li>
139
+ <li>
140
+ <p>Core fixes</p>
141
+ <ul>
142
+ <li>Codebase build to Typescript 6,</li>
143
+ <li>Typescript 6 stronger type enforcement rules code fixes</li>
144
+ <li>Fixes cases like <code>404</code>/<code>500</code> with empty, HTML, invalid XML, or otherwise non-partial-response bodies being incorrectly reported as <code>malformedXML</code> or
145
+ <code>emptyResponse</code>.</li>
146
+ <li>Malformed XML is now only reported as <code>malformedXML</code> for successful HTTP responses.</li>
147
+ <li>XHR timeout now emits the timeout event and reports <code>httpError</code>.</li>
148
+ <li>XHR abort now reports <code>httpError</code>.</li>
149
+ <li>Fixed handling of browser-cancelled XHRs: cancellation-style responses (<code>status=0</code>, <code>readyState=4</code>, empty response text, and null XML), observed in older Safari/
150
+ WebKit and Chrome/Chromium versions during navigation or download handoff, are treated as queue cleanup and do not fire user <code>onerror</code>.</li>
151
+ <li>Multipart requests no longer get an explicit URL-encoded <code>Content-Type</code>; the browser can set the proper multipart boundary.</li>
152
+ <li>WebSocket Faces <code>onerror</code> now matches the spec: reconnectable abnormal closes call <code>onerror</code> before reconnecting.</li>
153
+ <li>WebSocket reconnect scheduling now keeps the correct <code>this</code> binding.</li>
154
+ <li>WebSocket reconnect now increments attempts before scheduling, clears the stale socket, and creates a fresh socket on reconnect.</li>
155
+ <li><code>PushImpl.reset()</code> now closes existing sockets before clearing socket/component registries.</li>
156
+ <li>Pending WebSocket callbacks now return cleanly if the channel registry has already been torn down.</li>
157
+ <li>Preserved stale WebSocket component pruning when moving Faces <code>onerror</code> handling from native <code>WebSocket.onerror</code> to reconnectable close handling.</li>
158
+ <li>The JSF 2.3 compatibility shim now adapts the old <code>jsf.push.init</code> signature without mutating the shared Faces 4 <code>faces.push</code> object.</li>
159
+ <li>Push typings now include both the Faces 4 signature with <code>onerror</code> and the legacy JSF-compatible signature without it.</li>
160
+ <li>Renamed the reference to the shared api to myFacesApi for code clarity</li>
161
+ <li>Cleanup of myfaces.ab init code in jsf.ts to match the faces.ts init code</li>
162
+ </ul>
163
+ </li>
164
+ <li>
165
+ <p>Core improvements</p>
166
+ <ul>
167
+ <li>Refactored upload callback registration in <code>XhrRequest</code> into <code>registerUploadCallbacks()</code>.</li>
168
+ <li>Simplified timeout/header setup.</li>
169
+ <li>Code Cleanup and simplification of XHRFormData</li>
170
+ <li>Clarified view state ordering so it is applied after field encoding and not double-counted. .</li>
171
+ </ul>
172
+ </li>
173
+ <li>
174
+ <p>Tests added or expanded</p>
175
+ <ul>
176
+ <li>Added tests for <code>4xx</code> non-XML responses returning <code>httpError</code>.</li>
177
+ <li>Added tests for <code>5xx</code> valid XML responses still returning <code>httpError</code>.</li>
178
+ <li>Added tests for successful empty responses returning <code>emptyResponse</code>.</li>
179
+ <li>Added tests for successful malformed XML returning <code>malformedXML</code>.</li>
180
+ <li>Added tests for XHR timeout behavior.</li>
181
+ <li>Added tests for XHR abort behavior.</li>
182
+ <li>Added tests for browser-cancelled XHR handling using the observed <code>status=0</code> cancellation fingerprint.</li>
183
+ <li>Added or expanded <code>XhrFormData</code> tests for normal encoding, multi-value fields, view state, view state de-duplication, partial IDs, multipart detection,
184
+ <code>FormData</code> output, and naming-container remapping.</li>
185
+ <li>Expanded WebSocket tests for Faces 4 <code>onerror</code>.</li>
186
+ <li>Expanded WebSocket tests for abnormal-close reconnect behavior.</li>
187
+ <li>Expanded WebSocket tests for cumulative reconnect delays and stale socket cleanup across consecutive failed reconnect attempts.</li>
188
+ <li>Expanded WebSocket tests for terminal expired-close behavior.</li>
189
+ <li>Expanded WebSocket tests for stale component cleanup.</li>
190
+ <li>Expanded WebSocket tests for idempotent init.</li>
191
+ <li>Expanded WebSocket tests for behavior dispatch.</li>
192
+ <li>Expanded WebSocket tests for shared socket fan-out.</li>
193
+ <li>Renamed websocket test file from <code>WebsocketTest.ts</code> to <code>WebsocketTest.spec.ts</code>. This has prevented the tests to be run!</li>
194
+ </ul>
195
+ </li>
145
196
  </ul>
146
197
  </div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="assets/icons.svg#icon-chevronDown"></use></svg><h3>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#🚀-scratchpad-for-the-typescript-based-reimplementation-of-jsf-js"><span>🚀 <wbr/>Scratchpad for the typescript based reimplementation of jsf js</span></a><ul><li><a href="#what-is-this"><span>What is this?</span></a></li><li><a href="#status"><span>Status</span></a></li><li><ul><li><a href="#special-info"><span>Special info</span></a></li><li><a href="#general-build"><span>General build</span></a></li><li><ul><li><a href="#on-windows"><span>On <wbr/>Windows</span></a></li></ul></li><li><a href="#tests"><span>Tests</span></a></li><li><a href="#test-coverage"><span>Test <wbr/>Coverage</span></a></li><li><a href="#changelist-compared-to-the-original-implementation"><span>Changelist compared to the original implementation</span></a></li></ul></li><li><a href="#upload-support"><span>Upload <wbr/>Support</span></a></li><li><a href="#changes-since-40"><span>Changes since 4.0</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html">jsf.js_next_gen</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>