@module-federation/bridge-react
Advanced tools
Comparing version 0.0.0-next-20240723065243 to 0.0.0-next-20240723095610
# @module-federation/bridge-react | ||
## 0.0.0-next-20240723065243 | ||
## 0.0.0-next-20240723095610 | ||
@@ -8,3 +8,3 @@ ### Patch Changes | ||
- chore: bump next | ||
- @module-federation/bridge-shared@0.0.0-next-20240723065243 | ||
- @module-federation/bridge-shared@0.0.0-next-20240723095610 | ||
@@ -11,0 +11,0 @@ ## 0.2.6 |
@@ -285,4 +285,4 @@ "use strict"; | ||
function createRemoteComponent(info) { | ||
const LazyComponent = createLazyRemoteComponent(info); | ||
return React.forwardRef(function(props, ref) { | ||
const LazyComponent = createLazyRemoteComponent(info); | ||
return /* @__PURE__ */ React.createElement(ErrorBoundary, { FallbackComponent: info.fallback }, /* @__PURE__ */ React.createElement(React.Suspense, { fallback: info.loading }, /* @__PURE__ */ React.createElement(LazyComponent, { ...props, ref }))); | ||
@@ -289,0 +289,0 @@ }); |
@@ -5,4 +5,7 @@ import { ComponentType } from 'react'; | ||
import { ErrorInfo } from 'react'; | ||
import { ForwardRefExoticComponent } from 'react'; | ||
import { PropsWithChildren } from 'react'; | ||
import { PropsWithoutRef } from 'react'; | ||
import * as React_2 from 'react'; | ||
import { RefAttributes } from 'react'; | ||
@@ -23,6 +26,3 @@ export declare function createBridgeComponent<T>(bridgeInfo: ProviderFnParams<T>): () => { | ||
export?: E; | ||
}): default_2.ForwardRefExoticComponent<default_2.PropsWithoutRef<{ | ||
basename?: ProviderParams["basename"]; | ||
memoryRoute?: ProviderParams["memoryRoute"]; | ||
} & ("__BRIDGE_FN__" extends keyof (T[E] extends (...args: any) => any ? ReturnType<T[E]> : never) ? (T[E] extends (...args: any) => any ? ReturnType<T[E]> : never)["__BRIDGE_FN__"] extends (...args: any) => any ? Parameters<(T[E] extends (...args: any) => any ? ReturnType<T[E]> : never)["__BRIDGE_FN__"]>[0] : {} : {})> & default_2.RefAttributes<unknown>>; | ||
}): ForwardRefExoticComponent<PropsWithoutRef<RemoteProps> & RefAttributes<HTMLElement | HTMLDivElement>>; | ||
@@ -66,2 +66,8 @@ declare type ErrorBoundaryPropsWithComponent = ErrorBoundarySharedProps & { | ||
declare type RemoteProps = { | ||
basename?: ProviderParams['basename']; | ||
memoryRoute?: ProviderParams['memoryRoute']; | ||
[key: string]: any; | ||
}; | ||
export declare interface RenderFnParams extends ProviderParams { | ||
@@ -68,0 +74,0 @@ dom: HTMLElement; |
@@ -266,4 +266,4 @@ import * as React from "react"; | ||
function createRemoteComponent(info) { | ||
const LazyComponent = createLazyRemoteComponent(info); | ||
return forwardRef(function(props, ref) { | ||
const LazyComponent = createLazyRemoteComponent(info); | ||
return /* @__PURE__ */ React__default.createElement(ErrorBoundary, { FallbackComponent: info.fallback }, /* @__PURE__ */ React__default.createElement(React__default.Suspense, { fallback: info.loading }, /* @__PURE__ */ React__default.createElement(LazyComponent, { ...props, ref }))); | ||
@@ -270,0 +270,0 @@ }); |
{ | ||
"name": "@module-federation/bridge-react", | ||
"version": "0.0.0-next-20240723065243", | ||
"version": "0.0.0-next-20240723095610", | ||
"publishConfig": { | ||
@@ -38,3 +38,3 @@ "access": "public" | ||
"react-error-boundary": "^4.0.13", | ||
"@module-federation/bridge-shared": "0.0.0-next-20240723065243" | ||
"@module-federation/bridge-shared": "0.0.0-next-20240723095610" | ||
}, | ||
@@ -41,0 +41,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88480
2387
7
344
37
344
6
+ Added@module-federation/bridge-shared@0.0.0-next-20240723095610(transitive)
- Removed@module-federation/bridge-shared@0.0.0-next-20240723065243(transitive)
Updated@module-federation/bridge-shared@0.0.0-next-20240723095610