@fulgurjs/federation 5.7.1 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/CHANGELOG.md +23 -4
  2. package/DESIGN.md +3 -0
  3. package/README.en.md +350 -367
  4. package/README.md +293 -1179
  5. package/dist/cli.js +327 -29
  6. package/dist/index.cjs +72 -11
  7. package/dist/index.js +72 -11
  8. package/dist/runtime.js +1 -1
  9. package/docs/API.en.md +339 -0
  10. package/docs/API.md +914 -0
  11. package/docs/webpack-mf-/345/257/271/347/205/247/344/270/216/347/274/272/345/217/243.md +64 -37
  12. package/examples/README.md +3 -67
  13. package/examples/templates/README.md +88 -0
  14. package/examples/templates/react-host-vue-remote/README.md +18 -0
  15. package/examples/templates/react-host-vue-remote/package.json +11 -0
  16. package/examples/templates/react-host-vue-remote/pnpm-lock.yaml +1627 -0
  17. package/examples/templates/react-host-vue-remote/pnpm-workspace.yaml +10 -0
  18. package/examples/{bridge → templates/react-host-vue-remote}/react-host/README.md +8 -7
  19. package/examples/{bridge → templates/react-host-vue-remote}/react-host/package.json +1 -1
  20. package/examples/templates/react-host-vue-remote/react-host/src/fulgurjs/types/bridge-vue-remote.d/_paths.d.ts +4 -0
  21. package/examples/templates/react-host-vue-remote/react-host/src/fulgurjs/types/bridge-vue-remote.d/bridge.ts +3 -0
  22. package/examples/templates/react-host-vue-remote/react-host/src/fulgurjs/types/bridge-vue-remote.d.ts +9 -0
  23. package/examples/templates/react-host-vue-remote/scripts/dev.config.json +6 -0
  24. package/examples/templates/react-host-vue-remote/scripts/dev.mjs +173 -0
  25. package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/README.md +10 -5
  26. package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/package.json +1 -1
  27. package/examples/{react → templates/react-react}/README.md +9 -13
  28. package/examples/{react → templates/react-react}/host/README.md +6 -8
  29. package/examples/{react → templates/react-react}/host/package.json +1 -1
  30. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d/ClickButton.ts +3 -0
  31. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d/_paths.d.ts +4 -0
  32. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d/pages/DetailPage.ts +3 -0
  33. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d/pages/HomePage.ts +3 -0
  34. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d/utils.ts +2 -0
  35. package/examples/templates/react-react/host/src/fulgurjs/types/react-remote.d.ts +26 -0
  36. package/examples/templates/react-react/package.json +11 -0
  37. package/examples/templates/react-react/pnpm-lock.yaml +1537 -0
  38. package/examples/templates/react-react/pnpm-workspace.yaml +10 -0
  39. package/examples/{react → templates/react-react}/remote/README.md +7 -6
  40. package/examples/{react → templates/react-react}/remote/package.json +1 -1
  41. package/examples/templates/react-react/scripts/dev.config.json +6 -0
  42. package/examples/templates/react-react/scripts/dev.mjs +173 -0
  43. package/examples/templates/showcase/README.md +109 -0
  44. package/examples/templates/showcase/package.json +13 -0
  45. package/examples/templates/showcase/pnpm-lock.yaml +1858 -0
  46. package/examples/templates/showcase/pnpm-workspace.yaml +12 -0
  47. package/examples/templates/showcase/react-host/fulgurjs.config.ts +21 -0
  48. package/examples/templates/showcase/react-host/index.html +13 -0
  49. package/examples/templates/showcase/react-host/package.json +26 -0
  50. package/examples/templates/showcase/react-host/src/GuardBanner.tsx +33 -0
  51. package/examples/templates/showcase/react-host/src/Layout.tsx +42 -0
  52. package/examples/templates/showcase/react-host/src/ObsPanel.tsx +44 -0
  53. package/examples/templates/showcase/react-host/src/demo-log.ts +74 -0
  54. package/examples/templates/showcase/react-host/src/fulgurjs/types/vue-remote.d/_paths.d.ts +4 -0
  55. package/examples/templates/showcase/react-host/src/fulgurjs/types/vue-remote.d/bridge.ts +3 -0
  56. package/examples/templates/showcase/react-host/src/fulgurjs/types/vue-remote.d.ts +7 -0
  57. package/examples/templates/showcase/react-host/src/main.tsx +33 -0
  58. package/examples/templates/showcase/react-host/src/pages/AboutPage.tsx +18 -0
  59. package/examples/templates/showcase/react-host/src/pages/BridgeVuePage.tsx +77 -0
  60. package/examples/templates/showcase/react-host/src/pages/HomePage.tsx +14 -0
  61. package/examples/templates/showcase/react-host/src/routing.ts +30 -0
  62. package/examples/templates/showcase/react-host/tsconfig.json +15 -0
  63. package/examples/templates/showcase/react-host/vite.config.ts +8 -0
  64. package/examples/templates/showcase/react-remote/fulgurjs.config.ts +18 -0
  65. package/examples/templates/showcase/react-remote/index.html +13 -0
  66. package/examples/templates/showcase/react-remote/package.json +25 -0
  67. package/examples/templates/showcase/react-remote/src/ChildLayout.tsx +48 -0
  68. package/examples/templates/showcase/react-remote/src/bridge.tsx +62 -0
  69. package/examples/templates/showcase/react-remote/src/child-bus.ts +32 -0
  70. package/examples/templates/showcase/react-remote/src/main.tsx +18 -0
  71. package/examples/templates/showcase/react-remote/src/pages/Locked.tsx +23 -0
  72. package/examples/templates/showcase/react-remote/src/pages/OrderDetail.tsx +36 -0
  73. package/examples/templates/showcase/react-remote/src/pages/OrderList.tsx +110 -0
  74. package/examples/templates/showcase/react-remote/src/pages/Settings.tsx +50 -0
  75. package/examples/templates/showcase/react-remote/src/settings-store.ts +11 -0
  76. package/examples/templates/showcase/react-remote/tsconfig.json +14 -0
  77. package/examples/templates/showcase/react-remote/vite.config.ts +14 -0
  78. package/examples/templates/showcase/scripts/dev.config.json +8 -0
  79. package/examples/templates/showcase/scripts/dev.mjs +173 -0
  80. package/examples/templates/showcase/vue-host/fulgurjs.config.ts +21 -0
  81. package/examples/templates/showcase/vue-host/index.html +13 -0
  82. package/examples/templates/showcase/vue-host/package.json +25 -0
  83. package/examples/templates/showcase/vue-host/src/App.vue +50 -0
  84. package/examples/templates/showcase/vue-host/src/GuardBanner.vue +24 -0
  85. package/examples/templates/showcase/vue-host/src/ObsPanel.vue +60 -0
  86. package/examples/templates/showcase/vue-host/src/demo-log.ts +49 -0
  87. package/examples/templates/showcase/vue-host/src/fulgurjs/types/react-remote.d/_paths.d.ts +4 -0
  88. package/examples/templates/showcase/vue-host/src/fulgurjs/types/react-remote.d/bridge.ts +3 -0
  89. package/examples/templates/showcase/vue-host/src/fulgurjs/types/react-remote.d.ts +7 -0
  90. package/examples/templates/showcase/vue-host/src/guard.ts +47 -0
  91. package/examples/templates/showcase/vue-host/src/main.ts +30 -0
  92. package/examples/templates/showcase/vue-host/src/pages/AboutPage.vue +17 -0
  93. package/examples/templates/showcase/vue-host/src/pages/BridgeReactPage.vue +74 -0
  94. package/examples/templates/showcase/vue-host/src/pages/HomePage.vue +13 -0
  95. package/examples/templates/showcase/vue-host/src/routing.ts +31 -0
  96. package/examples/templates/showcase/vue-host/tsconfig.json +14 -0
  97. package/examples/templates/showcase/vue-remote/fulgurjs.config.ts +17 -0
  98. package/examples/templates/showcase/vue-remote/index.html +13 -0
  99. package/examples/templates/showcase/vue-remote/package.json +23 -0
  100. package/examples/templates/showcase/vue-remote/src/ChildLayout.vue +54 -0
  101. package/examples/templates/showcase/vue-remote/src/bridge.ts +48 -0
  102. package/examples/templates/showcase/vue-remote/src/child-bus.ts +32 -0
  103. package/examples/templates/showcase/vue-remote/src/main.ts +16 -0
  104. package/examples/templates/showcase/vue-remote/src/pages/Locked.vue +28 -0
  105. package/examples/templates/showcase/vue-remote/src/pages/OrderDetail.vue +46 -0
  106. package/examples/templates/showcase/vue-remote/src/pages/OrderList.vue +116 -0
  107. package/examples/templates/showcase/vue-remote/src/pages/Settings.vue +34 -0
  108. package/examples/templates/showcase/vue-remote/src/settings-store.ts +13 -0
  109. package/examples/templates/showcase/vue-remote/tsconfig.json +14 -0
  110. package/examples/templates/showcase/vue-remote/vite.config.ts +14 -0
  111. package/examples/templates/vue-host-react-remote/README.md +18 -0
  112. package/examples/templates/vue-host-react-remote/package.json +11 -0
  113. package/examples/templates/vue-host-react-remote/pnpm-lock.yaml +1663 -0
  114. package/examples/templates/vue-host-react-remote/pnpm-workspace.yaml +10 -0
  115. package/examples/{bridge → templates/vue-host-react-remote}/react-remote/README.md +9 -4
  116. package/examples/{bridge → templates/vue-host-react-remote}/react-remote/package.json +1 -1
  117. package/examples/templates/vue-host-react-remote/scripts/dev.config.json +6 -0
  118. package/examples/templates/vue-host-react-remote/scripts/dev.mjs +173 -0
  119. package/examples/{bridge → templates/vue-host-react-remote}/vue-host/README.md +8 -7
  120. package/examples/{bridge → templates/vue-host-react-remote}/vue-host/package.json +1 -1
  121. package/examples/{bridge → templates/vue-host-react-remote}/vue-host/src/App.vue +1 -1
  122. package/examples/templates/vue-host-react-remote/vue-host/src/fulgurjs/types/bridge-react-remote.d/_paths.d.ts +4 -0
  123. package/examples/templates/vue-host-react-remote/vue-host/src/fulgurjs/types/bridge-react-remote.d/bridge.ts +3 -0
  124. package/examples/templates/vue-host-react-remote/vue-host/src/fulgurjs/types/bridge-react-remote.d.ts +9 -0
  125. package/examples/{vue → templates/vue-vue}/README.md +9 -13
  126. package/examples/{vue → templates/vue-vue}/host/README.md +6 -8
  127. package/examples/{vue → templates/vue-vue}/host/package.json +1 -1
  128. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d/ClickButton.ts +4 -0
  129. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d/_paths.d.ts +4 -0
  130. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d/pages/DetailPage.ts +4 -0
  131. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d/pages/HomePage.ts +4 -0
  132. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d/utils.ts +2 -0
  133. package/examples/templates/vue-vue/host/src/fulgurjs/types/vue-remote.d.ts +29 -0
  134. package/examples/templates/vue-vue/host/vite.config.ts +8 -0
  135. package/examples/templates/vue-vue/package.json +11 -0
  136. package/examples/templates/vue-vue/pnpm-lock.yaml +1199 -0
  137. package/examples/templates/vue-vue/pnpm-workspace.yaml +10 -0
  138. package/examples/{vue → templates/vue-vue}/remote/README.md +7 -6
  139. package/examples/{vue → templates/vue-vue}/remote/package.json +1 -1
  140. package/examples/{vue → templates/vue-vue}/remote/src/App.vue +1 -1
  141. package/examples/templates/vue-vue/scripts/dev.config.json +6 -0
  142. package/examples/templates/vue-vue/scripts/dev.mjs +173 -0
  143. package/package.json +8 -6
  144. package/examples/README.en.md +0 -67
  145. package/examples/bridge/README.md +0 -36
  146. package/examples/bridge/react-host/package-lock.json +0 -2466
  147. package/examples/bridge/react-remote/package-lock.json +0 -2391
  148. package/examples/bridge/vue-host/package-lock.json +0 -1894
  149. package/examples/bridge/vue-remote/package-lock.json +0 -1865
  150. package/examples/react/host/package-lock.json +0 -2391
  151. package/examples/react/remote/package-lock.json +0 -2333
  152. package/examples/vue/host/package-lock.json +0 -1865
  153. package/examples/vue/remote/package-lock.json +0 -1843
  154. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/fulgurjs.config.ts +0 -0
  155. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/index.html +0 -0
  156. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/src/env.d.ts +0 -0
  157. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/src/host-session.ts +0 -0
  158. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/src/main.tsx +0 -0
  159. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/tsconfig.json +0 -0
  160. /package/examples/{bridge → templates/react-host-vue-remote}/react-host/vite.config.ts +0 -0
  161. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/fulgurjs.config.ts +0 -0
  162. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/index.html +0 -0
  163. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/src/App.vue +0 -0
  164. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/src/bridge.ts +0 -0
  165. /package/examples/{bridge/react-remote → templates/react-host-vue-remote/vue-remote}/src/env.d.ts +0 -0
  166. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/src/main.ts +0 -0
  167. /package/examples/{bridge/vue-host → templates/react-host-vue-remote/vue-remote}/tsconfig.json +0 -0
  168. /package/examples/{bridge → templates/react-host-vue-remote}/vue-remote/vite.config.ts +0 -0
  169. /package/examples/{react → templates/react-react}/host/fulgurjs.config.ts +0 -0
  170. /package/examples/{react → templates/react-react}/host/index.html +0 -0
  171. /package/examples/{react → templates/react-react}/host/src/App.tsx +0 -0
  172. /package/examples/{react → templates/react-react}/host/src/main.tsx +0 -0
  173. /package/examples/{react → templates/react-react}/host/src/pages/UtilsDemo.tsx +0 -0
  174. /package/examples/{react → templates/react-react}/host/src/remotePages.tsx +0 -0
  175. /package/examples/{bridge/react-remote → templates/react-react/host}/tsconfig.json +0 -0
  176. /package/examples/{react → templates/react-react}/host/vite.config.ts +0 -0
  177. /package/examples/{react → templates/react-react}/remote/fulgurjs.config.ts +0 -0
  178. /package/examples/{react → templates/react-react}/remote/index.html +0 -0
  179. /package/examples/{react → templates/react-react}/remote/src/App.tsx +0 -0
  180. /package/examples/{react → templates/react-react}/remote/src/exposes/ClickButton.tsx +0 -0
  181. /package/examples/{react → templates/react-react}/remote/src/exposes/pages/DetailPage.tsx +0 -0
  182. /package/examples/{react → templates/react-react}/remote/src/exposes/pages/HomePage.tsx +0 -0
  183. /package/examples/{react → templates/react-react}/remote/src/exposes/utils.ts +0 -0
  184. /package/examples/{react → templates/react-react}/remote/src/main.tsx +0 -0
  185. /package/examples/{react/host → templates/react-react/remote}/tsconfig.json +0 -0
  186. /package/examples/{react → templates/react-react}/remote/vite.config.ts +0 -0
  187. /package/examples/{vue/host → templates/showcase/vue-host}/vite.config.ts +0 -0
  188. /package/examples/{bridge → templates/vue-host-react-remote}/react-remote/fulgurjs.config.ts +0 -0
  189. /package/examples/{bridge → templates/vue-host-react-remote}/react-remote/index.html +0 -0
  190. /package/examples/{bridge → templates/vue-host-react-remote}/react-remote/src/bridge.tsx +0 -0
  191. /package/examples/{bridge/vue-host → templates/vue-host-react-remote/react-remote}/src/env.d.ts +0 -0
  192. /package/examples/{bridge → templates/vue-host-react-remote}/react-remote/src/main.tsx +0 -0
  193. /package/examples/{react/remote → templates/vue-host-react-remote/react-remote}/tsconfig.json +0 -0
  194. /package/examples/{bridge → templates/vue-host-react-remote}/react-remote/vite.config.ts +0 -0
  195. /package/examples/{bridge → templates/vue-host-react-remote}/vue-host/fulgurjs.config.ts +0 -0
  196. /package/examples/{bridge → templates/vue-host-react-remote}/vue-host/index.html +0 -0
  197. /package/examples/{bridge/vue-remote → templates/vue-host-react-remote/vue-host}/src/env.d.ts +0 -0
  198. /package/examples/{bridge → templates/vue-host-react-remote}/vue-host/src/host-session.ts +0 -0
  199. /package/examples/{bridge → templates/vue-host-react-remote}/vue-host/src/main.ts +0 -0
  200. /package/examples/{bridge/vue-remote → templates/vue-host-react-remote/vue-host}/tsconfig.json +0 -0
  201. /package/examples/{bridge → templates/vue-host-react-remote}/vue-host/vite.config.ts +0 -0
  202. /package/examples/{vue → templates/vue-vue}/host/fulgurjs.config.ts +0 -0
  203. /package/examples/{vue → templates/vue-vue}/host/index.html +0 -0
  204. /package/examples/{vue → templates/vue-vue}/host/src/App.vue +0 -0
  205. /package/examples/{vue → templates/vue-vue}/host/src/main.ts +0 -0
  206. /package/examples/{vue → templates/vue-vue}/host/src/pages/HomePage.vue +0 -0
  207. /package/examples/{vue → templates/vue-vue}/host/src/pages/UtilsDemo.vue +0 -0
  208. /package/examples/{vue → templates/vue-vue}/host/tsconfig.json +0 -0
  209. /package/examples/{vue → templates/vue-vue}/remote/fulgurjs.config.ts +0 -0
  210. /package/examples/{vue → templates/vue-vue}/remote/index.html +0 -0
  211. /package/examples/{vue → templates/vue-vue}/remote/src/exposes/ClickButton.vue +0 -0
  212. /package/examples/{vue → templates/vue-vue}/remote/src/exposes/pages/DetailPage.vue +0 -0
  213. /package/examples/{vue → templates/vue-vue}/remote/src/exposes/pages/HomePage.vue +0 -0
  214. /package/examples/{vue → templates/vue-vue}/remote/src/exposes/utils.ts +0 -0
  215. /package/examples/{vue → templates/vue-vue}/remote/src/main.ts +0 -0
  216. /package/examples/{vue → templates/vue-vue}/remote/tsconfig.json +0 -0
  217. /package/examples/{vue → templates/vue-vue}/remote/vite.config.ts +0 -0