🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@angular-architects/module-federation-tools

Package Overview
Dependencies
Maintainers
5
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-architects/module-federation-tools - npm Package Compare versions

Comparing version

to
20.0.0

93

index.d.ts

@@ -1,4 +0,89 @@

export * from './lib/mf-tools.module';
export * from './lib/web-components/web-component-wrapper';
export * from './lib/web-components/bootstrap-utils';
export * from './lib/web-components/router-utils';
import * as i0 from '@angular/core';
import { AfterContentInit, OnChanges, ElementRef, PlatformRef, CompilerOptions, NgZone, Version, Type, NgModuleRef } from '@angular/core';
import { ActivatedRoute, UrlMatcher, Router } from '@angular/router';
import { LoadRemoteModuleOptions } from '@angular-architects/module-federation-runtime';
import * as i2 from '@angular/common';
type WebComponentWrapperOptions = LoadRemoteModuleOptions & {
elementName: string;
};
declare class WebComponentWrapper implements AfterContentInit, OnChanges {
private route;
vc: ElementRef;
options: WebComponentWrapperOptions;
props: {
[prop: string]: unknown;
};
events: {
[event: string]: (event: Event) => void;
};
element: HTMLElement;
constructor(route: ActivatedRoute);
ngOnChanges(): void;
private populateProps;
private setupEvents;
ngAfterContentInit(): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<WebComponentWrapper, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<WebComponentWrapper, "mft-wc-wrapper", never, { "options": { "alias": "options"; "required": false; }; "props": { "alias": "props"; "required": false; }; "events": { "alias": "events"; "required": false; }; }, {}, never, never, false, never>;
}
declare class ModuleFederationToolsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<ModuleFederationToolsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<ModuleFederationToolsModule, [typeof WebComponentWrapper], [typeof i2.CommonModule], [typeof WebComponentWrapper]>;
static ɵinj: i0.ɵɵInjectorDeclaration<ModuleFederationToolsModule>;
}
type AppType = 'shell' | 'microfrontend';
type Options = {
production: boolean;
platformFactory?: () => PlatformRef;
compilerOptions?: CompilerOptions & BootstrapOptions;
version?: () => string | Version;
appType?: AppType;
/**
* Opt-out of ngZone sharing.
* Not recommanded.
* Default value true.
*/
ngZoneSharing?: boolean;
/**
* Opt-out of platformSharing sharing.
* Possible, if dependencies are not shared or each bootstrapped
* remote app uses a different version.
* Default value true.
*/
platformSharing?: boolean;
/**
* Deactivate support for legacy mode.
* Only recommanded if all used implementations depend on
* @angular-architects/module-federation-tools > 13.0.1.
* Default value true.
*/
activeLegacyMode?: boolean;
};
declare interface BootstrapOptions {
ngZone?: NgZone | 'zone.js' | 'noop';
ngZoneEventCoalescing?: boolean;
ngZoneRunCoalescing?: boolean;
}
declare function getMajor(version: string): string;
/**
* LEGACY IMPLEMENTATIONS START
*
* Can be deprecated in later major releases.
*
* To increase backwards compatibility legacy and current namespaces
* within the window object are used.
*/
type LegacyPlatformCache = {
platform: Record<string, PlatformRef>;
};
declare function shareNgZone(zone: NgZone): void;
declare function bootstrap<M>(module: Type<M>, options: Options): Promise<NgModuleRef<M>>;
declare function startsWith(prefix: string): UrlMatcher;
declare function endsWith(prefix: string): UrlMatcher;
declare function connectRouter(router: Router, useHash?: boolean): void;
export { ModuleFederationToolsModule, WebComponentWrapper, bootstrap, connectRouter, endsWith, getMajor, shareNgZone, startsWith };
export type { AppType, LegacyPlatformCache, Options, WebComponentWrapperOptions };

2

package.json
{
"name": "@angular-architects/module-federation-tools",
"version": "19.0.3",
"version": "20.0.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "peerDependencies": {},

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet