@module-federation/enhanced 2.1.0 → 2.2.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 (285) hide show
  1. package/dist/CHANGELOG.md +2375 -0
  2. package/dist/README.md +213 -0
  3. package/dist/rstestmigrate.md +140 -0
  4. package/dist/src/_virtual/_rolldown/runtime.js +47 -0
  5. package/dist/src/index.d.ts +22 -19
  6. package/dist/src/index.js +47 -43
  7. package/dist/src/index.js.map +1 -1
  8. package/dist/src/lib/Constants.d.ts +25 -29
  9. package/dist/src/lib/Constants.js +136 -116
  10. package/dist/src/lib/Constants.js.map +1 -1
  11. package/dist/src/lib/container/AsyncBoundaryPlugin.d.ts +20 -16
  12. package/dist/src/lib/container/AsyncBoundaryPlugin.js +137 -200
  13. package/dist/src/lib/container/AsyncBoundaryPlugin.js.map +1 -1
  14. package/dist/src/lib/container/ContainerEntryDependency.d.ts +28 -23
  15. package/dist/src/lib/container/ContainerEntryDependency.js +39 -39
  16. package/dist/src/lib/container/ContainerEntryDependency.js.map +1 -1
  17. package/dist/src/lib/container/ContainerEntryModule.d.ts +93 -84
  18. package/dist/src/lib/container/ContainerEntryModule.js +219 -234
  19. package/dist/src/lib/container/ContainerEntryModule.js.map +1 -1
  20. package/dist/src/lib/container/ContainerEntryModuleFactory.d.ts +15 -10
  21. package/dist/src/lib/container/ContainerEntryModuleFactory.js +21 -25
  22. package/dist/src/lib/container/ContainerEntryModuleFactory.js.map +1 -1
  23. package/dist/src/lib/container/ContainerExposedDependency.d.ts +29 -24
  24. package/dist/src/lib/container/ContainerExposedDependency.js +47 -47
  25. package/dist/src/lib/container/ContainerExposedDependency.js.map +1 -1
  26. package/dist/src/lib/container/ContainerPlugin.d.ts +12 -8
  27. package/dist/src/lib/container/ContainerPlugin.js +147 -211
  28. package/dist/src/lib/container/ContainerPlugin.js.map +1 -1
  29. package/dist/src/lib/container/ContainerReferencePlugin.d.ts +16 -12
  30. package/dist/src/lib/container/ContainerReferencePlugin.js +74 -102
  31. package/dist/src/lib/container/ContainerReferencePlugin.js.map +1 -1
  32. package/dist/src/lib/container/FallbackDependency.d.ts +24 -19
  33. package/dist/src/lib/container/FallbackDependency.js +46 -44
  34. package/dist/src/lib/container/FallbackDependency.js.map +1 -1
  35. package/dist/src/lib/container/FallbackItemDependency.d.ts +13 -8
  36. package/dist/src/lib/container/FallbackItemDependency.js +24 -24
  37. package/dist/src/lib/container/FallbackItemDependency.js.map +1 -1
  38. package/dist/src/lib/container/FallbackModule.d.ts +82 -71
  39. package/dist/src/lib/container/FallbackModule.js +133 -145
  40. package/dist/src/lib/container/FallbackModule.js.map +1 -1
  41. package/dist/src/lib/container/FallbackModuleFactory.d.ts +15 -10
  42. package/dist/src/lib/container/FallbackModuleFactory.js +20 -24
  43. package/dist/src/lib/container/FallbackModuleFactory.js.map +1 -1
  44. package/dist/src/lib/container/HoistContainerReferencesPlugin.d.ts +11 -7
  45. package/dist/src/lib/container/HoistContainerReferencesPlugin.js +125 -188
  46. package/dist/src/lib/container/HoistContainerReferencesPlugin.js.map +1 -1
  47. package/dist/src/lib/container/ModuleFederationPlugin.d.ts +20 -16
  48. package/dist/src/lib/container/ModuleFederationPlugin.js +143 -181
  49. package/dist/src/lib/container/ModuleFederationPlugin.js.map +1 -1
  50. package/dist/src/lib/container/RemoteModule.d.ts +79 -74
  51. package/dist/src/lib/container/RemoteModule.js +143 -153
  52. package/dist/src/lib/container/RemoteModule.js.map +1 -1
  53. package/dist/src/lib/container/RemoteRuntimeModule.d.ts +12 -7
  54. package/dist/src/lib/container/RemoteRuntimeModule.js +86 -132
  55. package/dist/src/lib/container/RemoteRuntimeModule.js.map +1 -1
  56. package/dist/src/lib/container/RemoteToExternalDependency.d.ts +13 -8
  57. package/dist/src/lib/container/RemoteToExternalDependency.js +25 -23
  58. package/dist/src/lib/container/RemoteToExternalDependency.js.map +1 -1
  59. package/dist/src/lib/container/constant.d.ts +3 -0
  60. package/dist/src/lib/container/constant.js +11 -14
  61. package/dist/src/lib/container/constant.js.map +1 -1
  62. package/dist/src/lib/container/options.d.ts +7 -3
  63. package/dist/src/lib/container/options.js +51 -69
  64. package/dist/src/lib/container/options.js.map +1 -1
  65. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.d.ts +14 -9
  66. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js +56 -64
  67. package/dist/src/lib/container/runtime/EmbedFederationRuntimeModule.js.map +1 -1
  68. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.d.ts +23 -19
  69. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js +71 -101
  70. package/dist/src/lib/container/runtime/EmbedFederationRuntimePlugin.js.map +1 -1
  71. package/dist/src/lib/container/runtime/FederationModulesPlugin.d.ts +20 -16
  72. package/dist/src/lib/container/runtime/FederationModulesPlugin.js +55 -47
  73. package/dist/src/lib/container/runtime/FederationModulesPlugin.js.map +1 -1
  74. package/dist/src/lib/container/runtime/FederationRuntimeDependency.d.ts +9 -4
  75. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js +16 -12
  76. package/dist/src/lib/container/runtime/FederationRuntimeDependency.js.map +1 -1
  77. package/dist/src/lib/container/runtime/FederationRuntimeModule.d.ts +16 -11
  78. package/dist/src/lib/container/runtime/FederationRuntimeModule.js +39 -46
  79. package/dist/src/lib/container/runtime/FederationRuntimeModule.js.map +1 -1
  80. package/dist/src/lib/container/runtime/FederationRuntimePlugin.d.ts +31 -20
  81. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js +265 -358
  82. package/dist/src/lib/container/runtime/FederationRuntimePlugin.js.map +1 -1
  83. package/dist/src/lib/container/runtime/getFederationGlobal.d.ts +9 -4
  84. package/dist/src/lib/container/runtime/getFederationGlobal.js +43 -41
  85. package/dist/src/lib/container/runtime/getFederationGlobal.js.map +1 -1
  86. package/dist/src/lib/container/runtime/utils.d.ts +24 -13
  87. package/dist/src/lib/container/runtime/utils.js +83 -101
  88. package/dist/src/lib/container/runtime/utils.js.map +1 -1
  89. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.d.ts +15 -10
  90. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js +27 -25
  91. package/dist/src/lib/sharing/ConsumeSharedFallbackDependency.js.map +1 -1
  92. package/dist/src/lib/sharing/ConsumeSharedModule.d.ts +77 -68
  93. package/dist/src/lib/sharing/ConsumeSharedModule.js +186 -214
  94. package/dist/src/lib/sharing/ConsumeSharedModule.js.map +1 -1
  95. package/dist/src/lib/sharing/ConsumeSharedPlugin.d.ts +13 -9
  96. package/dist/src/lib/sharing/ConsumeSharedPlugin.js +308 -475
  97. package/dist/src/lib/sharing/ConsumeSharedPlugin.js.map +1 -1
  98. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.d.ts +16 -11
  99. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js +107 -137
  100. package/dist/src/lib/sharing/ConsumeSharedRuntimeModule.js.map +1 -1
  101. package/dist/src/lib/sharing/ProvideForSharedDependency.d.ts +14 -9
  102. package/dist/src/lib/sharing/ProvideForSharedDependency.js +25 -25
  103. package/dist/src/lib/sharing/ProvideForSharedDependency.js.map +1 -1
  104. package/dist/src/lib/sharing/ProvideSharedDependency.d.ts +44 -39
  105. package/dist/src/lib/sharing/ProvideSharedDependency.js +72 -76
  106. package/dist/src/lib/sharing/ProvideSharedDependency.js.map +1 -1
  107. package/dist/src/lib/sharing/ProvideSharedModule.d.ts +91 -82
  108. package/dist/src/lib/sharing/ProvideSharedModule.js +177 -184
  109. package/dist/src/lib/sharing/ProvideSharedModule.js.map +1 -1
  110. package/dist/src/lib/sharing/ProvideSharedModuleFactory.d.ts +14 -9
  111. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js +19 -25
  112. package/dist/src/lib/sharing/ProvideSharedModuleFactory.js.map +1 -1
  113. package/dist/src/lib/sharing/ProvideSharedPlugin.d.ts +27 -21
  114. package/dist/src/lib/sharing/ProvideSharedPlugin.js +341 -550
  115. package/dist/src/lib/sharing/ProvideSharedPlugin.js.map +1 -1
  116. package/dist/src/lib/sharing/SharePlugin.d.ts +53 -49
  117. package/dist/src/lib/sharing/SharePlugin.js +86 -100
  118. package/dist/src/lib/sharing/SharePlugin.js.map +1 -1
  119. package/dist/src/lib/sharing/ShareRuntimeModule.d.ts +12 -7
  120. package/dist/src/lib/sharing/ShareRuntimeModule.js +81 -103
  121. package/dist/src/lib/sharing/ShareRuntimeModule.js.map +1 -1
  122. package/dist/src/lib/sharing/resolveMatchedConfigs.d.ts +11 -7
  123. package/dist/src/lib/sharing/resolveMatchedConfigs.js +58 -71
  124. package/dist/src/lib/sharing/resolveMatchedConfigs.js.map +1 -1
  125. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.d.ts +18 -14
  126. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js +74 -128
  127. package/dist/src/lib/sharing/tree-shaking/CollectSharedEntryPlugin.js.map +1 -1
  128. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.d.ts +39 -34
  129. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js +234 -328
  130. package/dist/src/lib/sharing/tree-shaking/IndependentSharedPlugin.js.map +1 -1
  131. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.d.ts +16 -11
  132. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js +30 -28
  133. package/dist/src/lib/sharing/tree-shaking/IndependentSharedRuntimeModule.js.map +1 -1
  134. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.d.ts +28 -24
  135. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js +91 -95
  136. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedContainerPlugin.js.map +1 -1
  137. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.d.ts +29 -24
  138. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js +47 -43
  139. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedDependency.js.map +1 -1
  140. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.d.ts +20 -15
  141. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js +33 -29
  142. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryDependency.js.map +1 -1
  143. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.d.ts +85 -77
  144. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js +141 -153
  145. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModule.js.map +1 -1
  146. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.d.ts +15 -10
  147. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js +20 -24
  148. package/dist/src/lib/sharing/tree-shaking/SharedContainerPlugin/SharedEntryModuleFactory.js.map +1 -1
  149. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.d.ts +21 -16
  150. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js +157 -231
  151. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerPlugin.js.map +1 -1
  152. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.d.ts +14 -9
  153. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js +26 -27
  154. package/dist/src/lib/sharing/tree-shaking/SharedUsedExportsOptimizerRuntimeModule.js.map +1 -1
  155. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.d.ts +18 -13
  156. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js +41 -49
  157. package/dist/src/lib/sharing/tree-shaking/TreeShakingSharedPlugin.js.map +1 -1
  158. package/dist/src/lib/sharing/utils.d.ts +27 -24
  159. package/dist/src/lib/sharing/utils.js +224 -367
  160. package/dist/src/lib/sharing/utils.js.map +1 -1
  161. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.d.ts +11 -7
  162. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js +56 -75
  163. package/dist/src/lib/startup/MfStartupChunkDependenciesPlugin.js.map +1 -1
  164. package/dist/src/lib/startup/StartupHelpers.d.ts +11 -6
  165. package/dist/src/lib/startup/StartupHelpers.js +128 -178
  166. package/dist/src/lib/startup/StartupHelpers.js.map +1 -1
  167. package/dist/src/prefetch.d.ts +3 -2
  168. package/dist/src/prefetch.js +17 -8
  169. package/dist/src/rspack.d.ts +3 -2
  170. package/dist/src/rspack.js +35 -11
  171. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.d.ts +8 -4
  172. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js +19 -16
  173. package/dist/src/runtime/AddRuntimeRequirementToPromiseExternalPlugin.js.map +1 -1
  174. package/dist/src/runtime.d.ts +1 -1
  175. package/dist/src/runtime.js +11 -18
  176. package/dist/src/schemas/container/ContainerPlugin.check.d.ts +13 -5
  177. package/dist/src/schemas/container/ContainerPlugin.check.js +958 -1218
  178. package/dist/src/schemas/container/ContainerPlugin.check.js.map +1 -1
  179. package/dist/src/schemas/container/ContainerPlugin.d.ts +271 -268
  180. package/dist/src/schemas/container/ContainerPlugin.js +273 -361
  181. package/dist/src/schemas/container/ContainerPlugin.js.map +1 -1
  182. package/dist/src/schemas/container/ContainerReferencePlugin.check.d.ts +13 -5
  183. package/dist/src/schemas/container/ContainerReferencePlugin.check.js +335 -443
  184. package/dist/src/schemas/container/ContainerReferencePlugin.check.js.map +1 -1
  185. package/dist/src/schemas/container/ContainerReferencePlugin.d.ts +102 -99
  186. package/dist/src/schemas/container/ContainerReferencePlugin.js +122 -162
  187. package/dist/src/schemas/container/ContainerReferencePlugin.js.map +1 -1
  188. package/dist/src/schemas/container/ExternalsType.check.d.ts +13 -5
  189. package/dist/src/schemas/container/ExternalsType.check.js +36 -62
  190. package/dist/src/schemas/container/ExternalsType.check.js.map +1 -1
  191. package/dist/src/schemas/container/ExternalsType.d.ts +5 -2
  192. package/dist/src/schemas/container/ExternalsType.js +8 -11
  193. package/dist/src/schemas/container/ExternalsType.js.map +1 -1
  194. package/dist/src/schemas/container/ModuleFederationPlugin.check.js +3001 -4812
  195. package/dist/src/schemas/container/ModuleFederationPlugin.check.js.map +1 -1
  196. package/dist/src/schemas/container/ModuleFederationPlugin.d.ts +819 -814
  197. package/dist/src/schemas/container/ModuleFederationPlugin.js +780 -1053
  198. package/dist/src/schemas/container/ModuleFederationPlugin.js.map +1 -1
  199. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.d.ts +13 -5
  200. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js +568 -768
  201. package/dist/src/schemas/sharing/ConsumeSharedPlugin.check.js.map +1 -1
  202. package/dist/src/schemas/sharing/ConsumeSharedPlugin.d.ts +197 -194
  203. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js +212 -238
  204. package/dist/src/schemas/sharing/ConsumeSharedPlugin.js.map +1 -1
  205. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.d.ts +13 -5
  206. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js +598 -804
  207. package/dist/src/schemas/sharing/ProvideSharedPlugin.check.js.map +1 -1
  208. package/dist/src/schemas/sharing/ProvideSharedPlugin.d.ts +184 -181
  209. package/dist/src/schemas/sharing/ProvideSharedPlugin.js +196 -229
  210. package/dist/src/schemas/sharing/ProvideSharedPlugin.js.map +1 -1
  211. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.d.ts +12 -4
  212. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js +285 -482
  213. package/dist/src/schemas/sharing/ProviderSharedPlugin.check.js.map +1 -1
  214. package/dist/src/schemas/sharing/ProviderSharedPlugin.d.ts +103 -100
  215. package/dist/src/schemas/sharing/ProviderSharedPlugin.js +104 -126
  216. package/dist/src/schemas/sharing/ProviderSharedPlugin.js.map +1 -1
  217. package/dist/src/schemas/sharing/SharePlugin.check.d.ts +13 -5
  218. package/dist/src/schemas/sharing/SharePlugin.check.js +749 -965
  219. package/dist/src/schemas/sharing/SharePlugin.check.js.map +1 -1
  220. package/dist/src/schemas/sharing/SharePlugin.d.ts +245 -242
  221. package/dist/src/schemas/sharing/SharePlugin.js +256 -293
  222. package/dist/src/schemas/sharing/SharePlugin.js.map +1 -1
  223. package/dist/src/utils.d.ts +3 -0
  224. package/dist/src/utils.js +35 -26
  225. package/dist/src/utils.js.map +1 -1
  226. package/dist/src/webpack.d.ts +2 -2
  227. package/dist/src/webpack.js +6 -40
  228. package/dist/src/wrapper/AsyncBoundaryPlugin.d.ts +9 -4
  229. package/dist/src/wrapper/AsyncBoundaryPlugin.js +12 -11
  230. package/dist/src/wrapper/AsyncBoundaryPlugin.js.map +1 -1
  231. package/dist/src/wrapper/BaseWrapperPlugin.d.ts +18 -13
  232. package/dist/src/wrapper/BaseWrapperPlugin.js +39 -39
  233. package/dist/src/wrapper/BaseWrapperPlugin.js.map +1 -1
  234. package/dist/src/wrapper/ConsumeSharedPlugin.d.ts +10 -4
  235. package/dist/src/wrapper/ConsumeSharedPlugin.js +12 -11
  236. package/dist/src/wrapper/ConsumeSharedPlugin.js.map +1 -1
  237. package/dist/src/wrapper/ContainerPlugin.d.ts +9 -4
  238. package/dist/src/wrapper/ContainerPlugin.js +12 -11
  239. package/dist/src/wrapper/ContainerPlugin.js.map +1 -1
  240. package/dist/src/wrapper/ContainerReferencePlugin.d.ts +9 -4
  241. package/dist/src/wrapper/ContainerReferencePlugin.js +12 -11
  242. package/dist/src/wrapper/ContainerReferencePlugin.js.map +1 -1
  243. package/dist/src/wrapper/FederationModulesPlugin.d.ts +18 -10
  244. package/dist/src/wrapper/FederationModulesPlugin.js +19 -19
  245. package/dist/src/wrapper/FederationModulesPlugin.js.map +1 -1
  246. package/dist/src/wrapper/FederationRuntimePlugin.d.ts +11 -6
  247. package/dist/src/wrapper/FederationRuntimePlugin.js +18 -17
  248. package/dist/src/wrapper/FederationRuntimePlugin.js.map +1 -1
  249. package/dist/src/wrapper/HoistContainerReferencesPlugin.d.ts +8 -3
  250. package/dist/src/wrapper/HoistContainerReferencesPlugin.js +12 -11
  251. package/dist/src/wrapper/HoistContainerReferencesPlugin.js.map +1 -1
  252. package/dist/src/wrapper/ModuleFederationPlugin.d.ts +12 -7
  253. package/dist/src/wrapper/ModuleFederationPlugin.js +73 -99
  254. package/dist/src/wrapper/ModuleFederationPlugin.js.map +1 -1
  255. package/dist/src/wrapper/ProvideSharedPlugin.d.ts +10 -4
  256. package/dist/src/wrapper/ProvideSharedPlugin.js +12 -11
  257. package/dist/src/wrapper/ProvideSharedPlugin.js.map +1 -1
  258. package/dist/src/wrapper/SharePlugin.d.ts +10 -4
  259. package/dist/src/wrapper/SharePlugin.js +12 -11
  260. package/dist/src/wrapper/SharePlugin.js.map +1 -1
  261. package/dist/src/wrapper/TreeShakingSharedPlugin.d.ts +9 -4
  262. package/dist/src/wrapper/TreeShakingSharedPlugin.js +12 -11
  263. package/dist/src/wrapper/TreeShakingSharedPlugin.js.map +1 -1
  264. package/package.json +23 -14
  265. package/dist/package.json +0 -110
  266. package/dist/src/declarations/plugins/container/AsyncDependenciesBlock.d.ts +0 -57
  267. package/dist/src/declarations/plugins/container/ModuleFactory.d.ts +0 -33
  268. package/dist/src/declarations/plugins/container/ObjectDeserializerContext.d.ts +0 -4
  269. package/dist/src/declarations/plugins/container/StaticExportsDependency.d.ts +0 -28
  270. package/dist/src/declarations/plugins/container/Template.d.ts +0 -198
  271. package/dist/src/declarations/plugins/container/WebpackError.d.ts +0 -33
  272. package/dist/src/declarations/plugins/sharing/ConsumeSharedModule.d.ts +0 -86
  273. package/dist/src/declarations/plugins/sharing/ConsumeSharedPlugin.d.ts +0 -100
  274. package/dist/src/declarations/plugins/sharing/ProvideSharedPlugin.d.ts +0 -102
  275. package/dist/src/declarations/plugins/sharing/SharePlugin.d.ts +0 -116
  276. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.d.ts +0 -20
  277. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js +0 -222
  278. package/dist/src/lib/container/runtime/ChildCompilationRuntimePlugin.js.map +0 -1
  279. package/dist/src/prefetch.js.map +0 -1
  280. package/dist/src/rspack.js.map +0 -1
  281. package/dist/src/runtime.js.map +0 -1
  282. package/dist/src/types/runtime.d.ts +0 -10
  283. package/dist/src/types/runtime.js +0 -3
  284. package/dist/src/types/runtime.js.map +0 -1
  285. package/dist/src/webpack.js.map +0 -1
@@ -1,239 +1,213 @@
1
- "use strict";
2
- // @ts-nocheck
3
- /* eslint-disable */
4
- /*
5
- * This file was automatically generated.
6
- * DO NOT MODIFY BY HAND.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.default = {
10
- definitions: {
11
- Consumes: {
12
- description: 'Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.',
13
- anyOf: [
14
- {
15
- type: 'array',
16
- items: {
17
- description: 'Modules that should be consumed from share scope.',
18
- anyOf: [
19
- {
20
- $ref: '#/definitions/ConsumesItem',
21
- },
22
- {
23
- $ref: '#/definitions/ConsumesObject',
24
- },
25
- ],
26
- },
27
- },
28
- {
29
- $ref: '#/definitions/ConsumesObject',
30
- },
31
- ],
32
- },
33
- ConsumesConfig: {
34
- description: 'Advanced configuration for modules that should be consumed from share scope.',
35
- type: 'object',
36
- additionalProperties: false,
37
- properties: {
38
- eager: {
39
- description: 'Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.',
40
- type: 'boolean',
41
- },
42
- import: {
43
- description: 'Fallback module if no shared module is found in share scope. Defaults to the property name.',
44
- anyOf: [
45
- {
46
- description: 'No fallback module.',
47
- enum: [false],
48
- },
49
- {
50
- $ref: '#/definitions/ConsumesItem',
51
- },
52
- ],
53
- },
54
- packageName: {
55
- description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
56
- type: 'string',
57
- minLength: 1,
58
- },
59
- requiredVersion: {
60
- description: 'Version requirement from module in share scope.',
61
- anyOf: [
62
- {
63
- description: 'No version requirement check.',
64
- enum: [false],
65
- },
66
- {
67
- description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
68
- type: 'string',
69
- },
70
- ],
71
- },
72
- shareKey: {
73
- description: 'Module is looked up under this key from the share scope.',
74
- type: 'string',
75
- minLength: 1,
76
- },
77
- shareScope: {
78
- description: 'Share scope name.',
79
- anyOf: [
80
- {
81
- type: 'string',
82
- minLength: 1,
83
- },
84
- {
85
- type: 'array',
86
- items: {
87
- type: 'string',
88
- minLength: 1,
89
- },
90
- },
91
- ],
92
- },
93
- layer: {
94
- description: 'Layer in which the shared module should be placed.',
95
- type: 'string',
96
- minLength: 1,
97
- },
98
- issuerLayer: {
99
- description: 'Layer of the issuer.',
100
- type: 'string',
101
- minLength: 1,
102
- },
103
- request: {
104
- description: 'Import request to match on',
105
- type: 'string',
106
- minLength: 1,
107
- },
108
- singleton: {
109
- description: 'Allow only a single version of the shared module in share scope (disabled by default).',
110
- type: 'boolean',
111
- },
112
- strictVersion: {
113
- description: 'Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).',
114
- type: 'boolean',
115
- },
116
- exclude: {
117
- description: 'Filter consumed modules based on the request path.',
118
- $ref: '#/definitions/IncludeExcludeOptions',
119
- },
120
- include: {
121
- description: 'Filter consumed modules based on the request path (only include matches).',
122
- $ref: '#/definitions/IncludeExcludeOptions',
123
- },
124
- allowNodeModulesSuffixMatch: {
125
- description: 'Enable reconstructed lookup for node_modules paths for this share item',
126
- type: 'boolean',
127
- },
128
- treeShakingMode: {
129
- description: 'Tree shaking mode for the shared module.',
130
- type: 'string',
131
- enum: ['server-calc', 'runtime-infer'],
132
- },
133
- },
134
- },
135
- ConsumesItem: {
136
- description: 'A module that should be consumed from share scope.',
137
- type: 'string',
138
- minLength: 1,
139
- },
140
- ConsumesObject: {
141
- description: 'Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.',
142
- type: 'object',
143
- additionalProperties: {
144
- description: 'Modules that should be consumed from share scope.',
145
- anyOf: [
146
- {
147
- $ref: '#/definitions/ConsumesConfig',
148
- },
149
- {
150
- $ref: '#/definitions/ConsumesItem',
151
- },
152
- ],
153
- },
154
- },
155
- Exclude: {
156
- description: 'Advanced filtering options.',
157
- type: 'object',
158
- additionalProperties: false,
159
- properties: {
160
- request: {
161
- description: 'Regular expression pattern to filter module requests',
162
- instanceof: 'RegExp',
163
- },
164
- version: {
165
- description: 'Specific version string or range to filter by (exclude matches).',
166
- type: 'string',
167
- },
168
- fallbackVersion: {
169
- description: 'Optional specific version string to check against the filter.version range instead of reading package.json.',
170
- type: 'string',
171
- },
172
- },
173
- },
174
- IncludeExcludeOptions: {
175
- type: 'object',
176
- properties: {
177
- request: {
178
- anyOf: [
179
- {
180
- type: 'string',
181
- description: 'Request string to match exactly.',
182
- },
183
- {
184
- instanceof: 'RegExp',
185
- description: 'Regular expression to match the request path.',
186
- },
187
- ],
188
- },
189
- version: {
190
- type: 'string',
191
- description: "Semantic versioning range to match against the module's version.",
192
- },
193
- fallbackVersion: {
194
- type: 'string',
195
- description: 'Optional specific version string to check against the version range instead of reading package.json.',
196
- },
197
- },
198
- additionalProperties: false,
199
- },
200
- },
201
- title: 'ConsumeSharedPluginOptions',
202
- description: 'Options for consuming shared modules.',
203
- type: 'object',
204
- additionalProperties: false,
205
- properties: {
206
- consumes: {
207
- $ref: '#/definitions/Consumes',
208
- },
209
- shareScope: {
210
- description: "Share scope name used for all consumed modules (defaults to 'default').",
211
- anyOf: [
212
- {
213
- type: 'string',
214
- minLength: 1,
215
- },
216
- {
217
- type: 'array',
218
- items: {
219
- type: 'string',
220
- minLength: 1,
221
- },
222
- },
223
- ],
224
- },
225
- experiments: {
226
- description: 'Experimental features configuration',
227
- type: 'object',
228
- additionalProperties: false,
229
- properties: {
230
- allowNodeModulesSuffixMatch: {
231
- description: 'Enable reconstructed lookup for node_modules paths',
232
- type: 'boolean',
233
- },
234
- },
235
- },
236
- },
237
- required: ['consumes'],
238
- };
1
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.js');
3
+
4
+ //#region src/schemas/sharing/ConsumeSharedPlugin.ts
5
+ var ConsumeSharedPlugin_exports = /* @__PURE__ */ require_runtime.__exportAll({ default: () => ConsumeSharedPlugin_default });
6
+ var ConsumeSharedPlugin_default;
7
+ var init_ConsumeSharedPlugin = require_runtime.__esmMin((() => {
8
+ ConsumeSharedPlugin_default = {
9
+ definitions: {
10
+ Consumes: {
11
+ description: "Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.",
12
+ anyOf: [{
13
+ type: "array",
14
+ items: {
15
+ description: "Modules that should be consumed from share scope.",
16
+ anyOf: [{ $ref: "#/definitions/ConsumesItem" }, { $ref: "#/definitions/ConsumesObject" }]
17
+ }
18
+ }, { $ref: "#/definitions/ConsumesObject" }]
19
+ },
20
+ ConsumesConfig: {
21
+ description: "Advanced configuration for modules that should be consumed from share scope.",
22
+ type: "object",
23
+ additionalProperties: false,
24
+ properties: {
25
+ eager: {
26
+ description: "Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.",
27
+ type: "boolean"
28
+ },
29
+ import: {
30
+ description: "Fallback module if no shared module is found in share scope. Defaults to the property name.",
31
+ anyOf: [{
32
+ description: "No fallback module.",
33
+ enum: [false]
34
+ }, { $ref: "#/definitions/ConsumesItem" }]
35
+ },
36
+ packageName: {
37
+ description: "Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.",
38
+ type: "string",
39
+ minLength: 1
40
+ },
41
+ requiredVersion: {
42
+ description: "Version requirement from module in share scope.",
43
+ anyOf: [{
44
+ description: "No version requirement check.",
45
+ enum: [false]
46
+ }, {
47
+ description: "Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.",
48
+ type: "string"
49
+ }]
50
+ },
51
+ shareKey: {
52
+ description: "Module is looked up under this key from the share scope.",
53
+ type: "string",
54
+ minLength: 1
55
+ },
56
+ shareScope: {
57
+ description: "Share scope name.",
58
+ anyOf: [{
59
+ type: "string",
60
+ minLength: 1
61
+ }, {
62
+ type: "array",
63
+ items: {
64
+ type: "string",
65
+ minLength: 1
66
+ }
67
+ }]
68
+ },
69
+ layer: {
70
+ description: "Layer in which the shared module should be placed.",
71
+ type: "string",
72
+ minLength: 1
73
+ },
74
+ issuerLayer: {
75
+ description: "Layer of the issuer.",
76
+ type: "string",
77
+ minLength: 1
78
+ },
79
+ request: {
80
+ description: "Import request to match on",
81
+ type: "string",
82
+ minLength: 1
83
+ },
84
+ singleton: {
85
+ description: "Allow only a single version of the shared module in share scope (disabled by default).",
86
+ type: "boolean"
87
+ },
88
+ strictVersion: {
89
+ description: "Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).",
90
+ type: "boolean"
91
+ },
92
+ exclude: {
93
+ description: "Filter consumed modules based on the request path.",
94
+ $ref: "#/definitions/IncludeExcludeOptions"
95
+ },
96
+ include: {
97
+ description: "Filter consumed modules based on the request path (only include matches).",
98
+ $ref: "#/definitions/IncludeExcludeOptions"
99
+ },
100
+ allowNodeModulesSuffixMatch: {
101
+ description: "Enable reconstructed lookup for node_modules paths for this share item",
102
+ type: "boolean"
103
+ },
104
+ treeShakingMode: {
105
+ description: "Tree shaking mode for the shared module.",
106
+ type: "string",
107
+ enum: ["server-calc", "runtime-infer"]
108
+ }
109
+ }
110
+ },
111
+ ConsumesItem: {
112
+ description: "A module that should be consumed from share scope.",
113
+ type: "string",
114
+ minLength: 1
115
+ },
116
+ ConsumesObject: {
117
+ description: "Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.",
118
+ type: "object",
119
+ additionalProperties: {
120
+ description: "Modules that should be consumed from share scope.",
121
+ anyOf: [{ $ref: "#/definitions/ConsumesConfig" }, { $ref: "#/definitions/ConsumesItem" }]
122
+ }
123
+ },
124
+ Exclude: {
125
+ description: "Advanced filtering options.",
126
+ type: "object",
127
+ additionalProperties: false,
128
+ properties: {
129
+ request: {
130
+ description: "Regular expression pattern to filter module requests",
131
+ instanceof: "RegExp"
132
+ },
133
+ version: {
134
+ description: "Specific version string or range to filter by (exclude matches).",
135
+ type: "string"
136
+ },
137
+ fallbackVersion: {
138
+ description: "Optional specific version string to check against the filter.version range instead of reading package.json.",
139
+ type: "string"
140
+ }
141
+ }
142
+ },
143
+ IncludeExcludeOptions: {
144
+ type: "object",
145
+ properties: {
146
+ request: { anyOf: [{
147
+ type: "string",
148
+ description: "Request string to match exactly."
149
+ }, {
150
+ instanceof: "RegExp",
151
+ description: "Regular expression to match the request path."
152
+ }] },
153
+ version: {
154
+ type: "string",
155
+ description: "Semantic versioning range to match against the module's version."
156
+ },
157
+ fallbackVersion: {
158
+ type: "string",
159
+ description: "Optional specific version string to check against the version range instead of reading package.json."
160
+ }
161
+ },
162
+ additionalProperties: false
163
+ }
164
+ },
165
+ title: "ConsumeSharedPluginOptions",
166
+ description: "Options for consuming shared modules.",
167
+ type: "object",
168
+ additionalProperties: false,
169
+ properties: {
170
+ consumes: { $ref: "#/definitions/Consumes" },
171
+ shareScope: {
172
+ description: "Share scope name used for all consumed modules (defaults to 'default').",
173
+ anyOf: [{
174
+ type: "string",
175
+ minLength: 1
176
+ }, {
177
+ type: "array",
178
+ items: {
179
+ type: "string",
180
+ minLength: 1
181
+ }
182
+ }]
183
+ },
184
+ experiments: {
185
+ description: "Experimental features configuration",
186
+ type: "object",
187
+ additionalProperties: false,
188
+ properties: { allowNodeModulesSuffixMatch: {
189
+ description: "Enable reconstructed lookup for node_modules paths",
190
+ type: "boolean"
191
+ } }
192
+ }
193
+ },
194
+ required: ["consumes"]
195
+ };
196
+ }));
197
+
198
+ //#endregion
199
+ init_ConsumeSharedPlugin();
200
+ Object.defineProperty(exports, 'ConsumeSharedPlugin_exports', {
201
+ enumerable: true,
202
+ get: function () {
203
+ return ConsumeSharedPlugin_exports;
204
+ }
205
+ });
206
+ exports.default = ConsumeSharedPlugin_default;
207
+ Object.defineProperty(exports, 'init_ConsumeSharedPlugin', {
208
+ enumerable: true,
209
+ get: function () {
210
+ return init_ConsumeSharedPlugin;
211
+ }
212
+ });
239
213
  //# sourceMappingURL=ConsumeSharedPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConsumeSharedPlugin.js","sourceRoot":"","sources":["../../../../src/schemas/sharing/ConsumeSharedPlugin.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"ConsumeSharedPlugin.js","names":[],"sources":["../../../../src/schemas/sharing/ConsumeSharedPlugin.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n/*\n * This file was automatically generated.\n * DO NOT MODIFY BY HAND.\n */\n\nexport default {\n definitions: {\n Consumes: {\n description:\n 'Modules that should be consumed from share scope. When provided, property names are used to match requested modules in this compilation.',\n anyOf: [\n {\n type: 'array',\n items: {\n description: 'Modules that should be consumed from share scope.',\n anyOf: [\n {\n $ref: '#/definitions/ConsumesItem',\n },\n {\n $ref: '#/definitions/ConsumesObject',\n },\n ],\n },\n },\n {\n $ref: '#/definitions/ConsumesObject',\n },\n ],\n },\n ConsumesConfig: {\n description:\n 'Advanced configuration for modules that should be consumed from share scope.',\n type: 'object',\n additionalProperties: false,\n properties: {\n eager: {\n description:\n 'Include the fallback module directly instead behind an async request. This allows to use fallback module in initial load too. All possible shared modules need to be eager too.',\n type: 'boolean',\n },\n import: {\n description:\n 'Fallback module if no shared module is found in share scope. Defaults to the property name.',\n anyOf: [\n {\n description: 'No fallback module.',\n enum: [false],\n },\n {\n $ref: '#/definitions/ConsumesItem',\n },\n ],\n },\n packageName: {\n description:\n \"Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.\",\n type: 'string',\n minLength: 1,\n },\n requiredVersion: {\n description: 'Version requirement from module in share scope.',\n anyOf: [\n {\n description: 'No version requirement check.',\n enum: [false],\n },\n {\n description:\n \"Version as string. Can be prefixed with '^' or '~' for minimum matches. Each part of the version should be separated by a dot '.'.\",\n type: 'string',\n },\n ],\n },\n shareKey: {\n description:\n 'Module is looked up under this key from the share scope.',\n type: 'string',\n minLength: 1,\n },\n shareScope: {\n description: 'Share scope name.',\n anyOf: [\n {\n type: 'string',\n minLength: 1,\n },\n {\n type: 'array',\n items: {\n type: 'string',\n minLength: 1,\n },\n },\n ],\n },\n layer: {\n description: 'Layer in which the shared module should be placed.',\n type: 'string',\n minLength: 1,\n },\n issuerLayer: {\n description: 'Layer of the issuer.',\n type: 'string',\n minLength: 1,\n },\n request: {\n description: 'Import request to match on',\n type: 'string',\n minLength: 1,\n },\n singleton: {\n description:\n 'Allow only a single version of the shared module in share scope (disabled by default).',\n type: 'boolean',\n },\n strictVersion: {\n description:\n 'Do not accept shared module if version is not valid (defaults to yes, if local fallback module is available and shared module is not a singleton, otherwise no, has no effect if there is no required version specified).',\n type: 'boolean',\n },\n exclude: {\n description: 'Filter consumed modules based on the request path.',\n $ref: '#/definitions/IncludeExcludeOptions',\n },\n include: {\n description:\n 'Filter consumed modules based on the request path (only include matches).',\n $ref: '#/definitions/IncludeExcludeOptions',\n },\n allowNodeModulesSuffixMatch: {\n description:\n 'Enable reconstructed lookup for node_modules paths for this share item',\n type: 'boolean',\n },\n treeShakingMode: {\n description: 'Tree shaking mode for the shared module.',\n type: 'string',\n enum: ['server-calc', 'runtime-infer'],\n },\n },\n },\n ConsumesItem: {\n description: 'A module that should be consumed from share scope.',\n type: 'string',\n minLength: 1,\n },\n ConsumesObject: {\n description:\n 'Modules that should be consumed from share scope. Property names are used to match requested modules in this compilation. Relative requests are resolved, module requests are matched unresolved, absolute paths will match resolved requests. A trailing slash will match all requests with this prefix. In this case shareKey must also have a trailing slash.',\n type: 'object',\n additionalProperties: {\n description: 'Modules that should be consumed from share scope.',\n anyOf: [\n {\n $ref: '#/definitions/ConsumesConfig',\n },\n {\n $ref: '#/definitions/ConsumesItem',\n },\n ],\n },\n },\n Exclude: {\n description: 'Advanced filtering options.',\n type: 'object',\n additionalProperties: false,\n properties: {\n request: {\n description: 'Regular expression pattern to filter module requests',\n instanceof: 'RegExp',\n },\n version: {\n description:\n 'Specific version string or range to filter by (exclude matches).',\n type: 'string',\n },\n fallbackVersion: {\n description:\n 'Optional specific version string to check against the filter.version range instead of reading package.json.',\n type: 'string',\n },\n },\n },\n IncludeExcludeOptions: {\n type: 'object',\n properties: {\n request: {\n anyOf: [\n {\n type: 'string',\n description: 'Request string to match exactly.',\n },\n {\n instanceof: 'RegExp',\n description: 'Regular expression to match the request path.',\n },\n ],\n },\n version: {\n type: 'string',\n description:\n \"Semantic versioning range to match against the module's version.\",\n },\n fallbackVersion: {\n type: 'string',\n description:\n 'Optional specific version string to check against the version range instead of reading package.json.',\n },\n },\n additionalProperties: false,\n },\n },\n title: 'ConsumeSharedPluginOptions',\n description: 'Options for consuming shared modules.',\n type: 'object',\n additionalProperties: false,\n properties: {\n consumes: {\n $ref: '#/definitions/Consumes',\n },\n shareScope: {\n description:\n \"Share scope name used for all consumed modules (defaults to 'default').\",\n anyOf: [\n {\n type: 'string',\n minLength: 1,\n },\n {\n type: 'array',\n items: {\n type: 'string',\n minLength: 1,\n },\n },\n ],\n },\n experiments: {\n description: 'Experimental features configuration',\n type: 'object',\n additionalProperties: false,\n properties: {\n allowNodeModulesSuffixMatch: {\n description: 'Enable reconstructed lookup for node_modules paths',\n type: 'boolean',\n },\n },\n },\n },\n required: ['consumes'],\n} as const;\n"],"mappings":";;;;;;;+BAOe;EACb,aAAa;GACX,UAAU;IACR,aACE;IACF,OAAO,CACL;KACE,MAAM;KACN,OAAO;MACL,aAAa;MACb,OAAO,CACL,EACE,MAAM,8BACP,EACD,EACE,MAAM,gCACP,CACF;MACF;KACF,EACD,EACE,MAAM,gCACP,CACF;IACF;GACD,gBAAgB;IACd,aACE;IACF,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,OAAO;MACL,aACE;MACF,MAAM;MACP;KACD,QAAQ;MACN,aACE;MACF,OAAO,CACL;OACE,aAAa;OACb,MAAM,CAAC,MAAM;OACd,EACD,EACE,MAAM,8BACP,CACF;MACF;KACD,aAAa;MACX,aACE;MACF,MAAM;MACN,WAAW;MACZ;KACD,iBAAiB;MACf,aAAa;MACb,OAAO,CACL;OACE,aAAa;OACb,MAAM,CAAC,MAAM;OACd,EACD;OACE,aACE;OACF,MAAM;OACP,CACF;MACF;KACD,UAAU;MACR,aACE;MACF,MAAM;MACN,WAAW;MACZ;KACD,YAAY;MACV,aAAa;MACb,OAAO,CACL;OACE,MAAM;OACN,WAAW;OACZ,EACD;OACE,MAAM;OACN,OAAO;QACL,MAAM;QACN,WAAW;QACZ;OACF,CACF;MACF;KACD,OAAO;MACL,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,aAAa;MACX,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,SAAS;MACP,aAAa;MACb,MAAM;MACN,WAAW;MACZ;KACD,WAAW;MACT,aACE;MACF,MAAM;MACP;KACD,eAAe;MACb,aACE;MACF,MAAM;MACP;KACD,SAAS;MACP,aAAa;MACb,MAAM;MACP;KACD,SAAS;MACP,aACE;MACF,MAAM;MACP;KACD,6BAA6B;MAC3B,aACE;MACF,MAAM;MACP;KACD,iBAAiB;MACf,aAAa;MACb,MAAM;MACN,MAAM,CAAC,eAAe,gBAAgB;MACvC;KACF;IACF;GACD,cAAc;IACZ,aAAa;IACb,MAAM;IACN,WAAW;IACZ;GACD,gBAAgB;IACd,aACE;IACF,MAAM;IACN,sBAAsB;KACpB,aAAa;KACb,OAAO,CACL,EACE,MAAM,gCACP,EACD,EACE,MAAM,8BACP,CACF;KACF;IACF;GACD,SAAS;IACP,aAAa;IACb,MAAM;IACN,sBAAsB;IACtB,YAAY;KACV,SAAS;MACP,aAAa;MACb,YAAY;MACb;KACD,SAAS;MACP,aACE;MACF,MAAM;MACP;KACD,iBAAiB;MACf,aACE;MACF,MAAM;MACP;KACF;IACF;GACD,uBAAuB;IACrB,MAAM;IACN,YAAY;KACV,SAAS,EACP,OAAO,CACL;MACE,MAAM;MACN,aAAa;MACd,EACD;MACE,YAAY;MACZ,aAAa;MACd,CACF,EACF;KACD,SAAS;MACP,MAAM;MACN,aACE;MACH;KACD,iBAAiB;MACf,MAAM;MACN,aACE;MACH;KACF;IACD,sBAAsB;IACvB;GACF;EACD,OAAO;EACP,aAAa;EACb,MAAM;EACN,sBAAsB;EACtB,YAAY;GACV,UAAU,EACR,MAAM,0BACP;GACD,YAAY;IACV,aACE;IACF,OAAO,CACL;KACE,MAAM;KACN,WAAW;KACZ,EACD;KACE,MAAM;KACN,OAAO;MACL,MAAM;MACN,WAAW;MACZ;KACF,CACF;IACF;GACD,aAAa;IACX,aAAa;IACb,MAAM;IACN,sBAAsB;IACtB,YAAY,EACV,6BAA6B;KAC3B,aAAa;KACb,MAAM;KACP,EACF;IACF;GACF;EACD,UAAU,CAAC,WAAW;EACvB"}
@@ -1,6 +1,14 @@
1
- export declare const validate: typeof o;
2
- export default o;
3
- declare function o(r: any, { instancePath: e, parentData: t, parentDataProperty: s, rootData: i, }?: {
4
- instancePath?: string | undefined;
5
- rootData?: any;
1
+ //#region src/schemas/sharing/ProvideSharedPlugin.check.d.ts
2
+ declare const validate: typeof o;
3
+ declare function o(r: any, {
4
+ instancePath: e,
5
+ parentData: t,
6
+ parentDataProperty: s,
7
+ rootData: i
8
+ }?: {
9
+ instancePath?: string | undefined;
10
+ rootData?: any;
6
11
  }): any;
12
+ //#endregion
13
+ export { o as default, validate };
14
+ //# sourceMappingURL=ProvideSharedPlugin.check.d.ts.map