@appshell/webpack-plugin 1.0.0-alpha.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 (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +311 -0
  3. package/dist/main.js +14 -0
  4. package/dist/main.js.LICENSE.txt +39 -0
  5. package/dist/types/config/src/axios.d.ts +3 -0
  6. package/dist/types/config/src/axios.d.ts.map +1 -0
  7. package/dist/types/config/src/configmap.d.ts +7 -0
  8. package/dist/types/config/src/configmap.d.ts.map +1 -0
  9. package/dist/types/config/src/deregister.d.ts +3 -0
  10. package/dist/types/config/src/deregister.d.ts.map +1 -0
  11. package/dist/types/config/src/generate.env.d.ts +3 -0
  12. package/dist/types/config/src/generate.env.d.ts.map +1 -0
  13. package/dist/types/config/src/generate.global-config.d.ts +10 -0
  14. package/dist/types/config/src/generate.global-config.d.ts.map +1 -0
  15. package/dist/types/config/src/generate.manifest.d.ts +8 -0
  16. package/dist/types/config/src/generate.manifest.d.ts.map +1 -0
  17. package/dist/types/config/src/index.d.ts +17 -0
  18. package/dist/types/config/src/index.d.ts.map +1 -0
  19. package/dist/types/config/src/mappers/appshell.config.d.ts +3 -0
  20. package/dist/types/config/src/mappers/appshell.config.d.ts.map +1 -0
  21. package/dist/types/config/src/outdated.d.ts +4 -0
  22. package/dist/types/config/src/outdated.d.ts.map +1 -0
  23. package/dist/types/config/src/publish.d.ts +26 -0
  24. package/dist/types/config/src/publish.d.ts.map +1 -0
  25. package/dist/types/config/src/register.d.ts +4 -0
  26. package/dist/types/config/src/register.d.ts.map +1 -0
  27. package/dist/types/config/src/sync.d.ts +21 -0
  28. package/dist/types/config/src/sync.d.ts.map +1 -0
  29. package/dist/types/config/src/types.d.ts +296 -0
  30. package/dist/types/config/src/types.d.ts.map +1 -0
  31. package/dist/types/config/src/utils/blur.d.ts +3 -0
  32. package/dist/types/config/src/utils/blur.d.ts.map +1 -0
  33. package/dist/types/config/src/utils/compare.d.ts +8 -0
  34. package/dist/types/config/src/utils/compare.d.ts.map +1 -0
  35. package/dist/types/config/src/utils/config.d.ts +6 -0
  36. package/dist/types/config/src/utils/config.d.ts.map +1 -0
  37. package/dist/types/config/src/utils/copy.d.ts +11 -0
  38. package/dist/types/config/src/utils/copy.d.ts.map +1 -0
  39. package/dist/types/config/src/utils/index.d.ts +10 -0
  40. package/dist/types/config/src/utils/index.d.ts.map +1 -0
  41. package/dist/types/config/src/utils/isValidUrl.d.ts +3 -0
  42. package/dist/types/config/src/utils/isValidUrl.d.ts.map +1 -0
  43. package/dist/types/config/src/utils/list.d.ts +10 -0
  44. package/dist/types/config/src/utils/list.d.ts.map +1 -0
  45. package/dist/types/config/src/utils/load.d.ts +14 -0
  46. package/dist/types/config/src/utils/load.d.ts.map +1 -0
  47. package/dist/types/config/src/utils/loadJson.d.ts +10 -0
  48. package/dist/types/config/src/utils/loadJson.d.ts.map +1 -0
  49. package/dist/types/config/src/utils/merge.d.ts +4 -0
  50. package/dist/types/config/src/utils/merge.d.ts.map +1 -0
  51. package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts +4 -0
  52. package/dist/types/config/src/validators/AppshellGlobalConfigValidator.d.ts.map +1 -0
  53. package/dist/types/config/src/validators/AppshellManifestValidator.d.ts +4 -0
  54. package/dist/types/config/src/validators/AppshellManifestValidator.d.ts.map +1 -0
  55. package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts +4 -0
  56. package/dist/types/config/src/validators/AppshellTemplateValidator.d.ts.map +1 -0
  57. package/dist/types/config/src/validators/index.d.ts +4 -0
  58. package/dist/types/config/src/validators/index.d.ts.map +1 -0
  59. package/dist/types/webpack-plugin/src/AppshellPlugin.d.ts +43 -0
  60. package/dist/types/webpack-plugin/src/AppshellPlugin.d.ts.map +1 -0
  61. package/dist/types/webpack-plugin/src/index.d.ts +6 -0
  62. package/dist/types/webpack-plugin/src/index.d.ts.map +1 -0
  63. package/package.json +32 -0
@@ -0,0 +1,39 @@
1
+ /*!
2
+ * mime-db
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */
7
+
8
+ /*!
9
+ * mime-types
10
+ * Copyright(c) 2014 Jonathan Ong
11
+ * Copyright(c) 2015 Douglas Christopher Wilson
12
+ * MIT Licensed
13
+ */
14
+
15
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
16
+
17
+ /**
18
+ * @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
19
+ * CJS and ESM environments.
20
+ *
21
+ * @license
22
+ * Copyright (c) 2016, Contributors
23
+ * SPDX-License-Identifier: ISC
24
+ */
25
+
26
+ /**
27
+ * @license
28
+ * Copyright (c) 2016, Contributors
29
+ * SPDX-License-Identifier: ISC
30
+ */
31
+
32
+ /**
33
+ * @license
34
+ * Lodash <https://lodash.com/>
35
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
36
+ * Released under MIT license <https://lodash.com/license>
37
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
38
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
39
+ */
@@ -0,0 +1,3 @@
1
+ declare const _default: import("axios").AxiosInstance;
2
+ export default _default;
3
+ //# sourceMappingURL=axios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../../../../config/src/axios.ts"],"names":[],"mappings":";AAEA,wBAA8B"}
@@ -0,0 +1,7 @@
1
+ import { AppshellConfig, ConfigMap } from './types';
2
+ declare const _default: {
3
+ apply: <T extends object>(obj: T, configMap: ConfigMap) => T;
4
+ create: (config: AppshellConfig) => Record<string, string>;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=configmap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configmap.d.ts","sourceRoot":"","sources":["../../../../../config/src/configmap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;;YA0BrC,CAAC,SAAS,MAAM,OAAO,CAAC,aAAa,SAAS,KAAG,CAAC;qBAuBzC,cAAc;;AAEtC,wBAGE"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (moduleName: string, registry: string) => Promise<void>;
2
+ export default _default;
3
+ //# sourceMappingURL=deregister.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deregister.d.ts","sourceRoot":"","sources":["../../../../../config/src/deregister.ts"],"names":[],"mappings":"qCAoGkC,MAAM,YAAY,MAAM;AAA1D,wBAeE"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (prefix?: string) => Promise<Map<string, string | undefined>>;
2
+ export default _default;
3
+ //# sourceMappingURL=generate.env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.env.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.env.ts"],"names":[],"mappings":";AAGA,wBAuBK"}
@@ -0,0 +1,10 @@
1
+ import { AppshellGlobalConfig } from './types';
2
+ type GenerateGlobalConfigOptions = {
3
+ insecure: boolean;
4
+ apiKey?: string;
5
+ apiKeyHeader?: string;
6
+ proxyUrl?: string;
7
+ };
8
+ declare const _default: (registries: string[], options?: GenerateGlobalConfigOptions) => Promise<AppshellGlobalConfig>;
9
+ export default _default;
10
+ //# sourceMappingURL=generate.global-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.global-config.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.global-config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAK/C,KAAK,2BAA2B,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;qCAGY,MAAM,EAAE,YACX,2BAA2B,KACnC,OAAO,CAAC,oBAAoB,CAAC;AAHhC,wBA8CE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Generates an appshell manifest
3
+ * @param templatePath path of the appshell manifest template to compile into an appshell manifest
4
+ * @returns an appshell manifest
5
+ */
6
+ declare const _default: <TMetadata extends Record<string, unknown>>(templatePath: string) => Promise<import("./types").AppshellManifest<TMetadata> | null>;
7
+ export default _default;
8
+ //# sourceMappingURL=generate.manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.manifest.d.ts","sourceRoot":"","sources":["../../../../../config/src/generate.manifest.ts"],"names":[],"mappings":"AAOA;;;;GAIG;yBACmB,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,MAAM;AAArF,wBAaE"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @appshell/config package API
3
+ */
4
+ export { default as configmap } from './configmap';
5
+ export { default as deregister } from './deregister';
6
+ export { default as generateEnv } from './generate.env';
7
+ export { default as generateGlobalConfig } from './generate.global-config';
8
+ export { default as generateManifest } from './generate.manifest';
9
+ export { default as outdated } from './outdated';
10
+ export { activate, publish } from './publish';
11
+ export type { PublishOptions, PublishResult } from './publish';
12
+ export { default as register } from './register';
13
+ export { default as sync } from './sync';
14
+ export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellGlobalConfig, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedModuleSpec, } from './types';
15
+ export * as utils from './utils';
16
+ export * as validators from './validators';
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../config/src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,6BAA6B,EAC7B,WAAW,EACX,cAAc,EACd,MAAM,EACN,gBAAgB,GACjB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AppshellManifest, AppshellTemplate, ConfigMap } from '../types';
2
+ export declare const toAppshellManifest: <TMetadata extends Record<string, unknown>>(template: AppshellTemplate, args: ConfigMap) => AppshellManifest<TMetadata>;
3
+ //# sourceMappingURL=appshell.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appshell.config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/mappers/appshell.config.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,gBAAgB,EAEhB,gBAAgB,EAChB,SAAS,EACV,MAAM,UAAU,CAAC;AAiElB,eAAO,MAAM,kBAAkB,GAAI,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAChE,gBAAgB,QACpB,SAAS,gCAQhB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { PackageSpec, SharedModuleSpec } from './types';
2
+ declare const _default: (packageSpec: PackageSpec, sharedModuleSpec: SharedModuleSpec) => Promise<import("./types").ComparisonResults>;
3
+ export default _default;
4
+ //# sourceMappingURL=outdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outdated.d.ts","sourceRoot":"","sources":["../../../../../config/src/outdated.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;sCAGrB,WAAW,oBAAoB,gBAAgB;AAAlF,wBAYE"}
@@ -0,0 +1,26 @@
1
+ import { AppshellManifest, Metadata } from './types';
2
+ export type PublishOptions = {
3
+ registry: string;
4
+ token?: string;
5
+ name: string;
6
+ version: string;
7
+ manifest: AppshellManifest;
8
+ visibility?: 'public' | 'private';
9
+ metadata?: Metadata;
10
+ };
11
+ export type PublishResult = {
12
+ /** `scope/name@version`. The scope comes from the token, not the caller. */
13
+ id: string;
14
+ created: boolean;
15
+ };
16
+ /**
17
+ * Publishing the same content twice is a no-op; publishing different content
18
+ * under a version that already exists is rejected by the registry.
19
+ */
20
+ export declare const publish: ({ registry, token, name, version, manifest, visibility, metadata, }: PublishOptions) => Promise<PublishResult>;
21
+ /**
22
+ * Activating a newer version of an already active app upgrades it in place.
23
+ * @param environment `scope/name`
24
+ */
25
+ export declare const activate: (registry: string, environment: string, appId: string, token?: string) => Promise<void>;
26
+ //# sourceMappingURL=publish.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../../config/src/publish.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,4EAA4E;IAC5E,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAmBF;;;GAGG;AACH,eAAO,MAAM,OAAO,wEAQjB,cAAc,KAAG,OAAO,CAAC,aAAa,CAYxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,aACT,MAAM,eACH,MAAM,SACZ,MAAM,UACL,MAAM,KACb,OAAO,CAAC,IAAI,CAgBd,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AppshellManifest } from './types';
2
+ declare const _default: (manifest: AppshellManifest, registryPathOrUrl: string, allowOverrides?: boolean) => Promise<void>;
3
+ export default _default;
4
+ //# sourceMappingURL=register.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../config/src/register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,gBAAgB,EAAmB,MAAM,SAAS,CAAC;mCAetE,gBAAgB,qBACP,MAAM;AAF3B,wBA2CE"}
@@ -0,0 +1,21 @@
1
+ import { ComparisonResult } from './types';
2
+ export type ResolutionStrategy = 'highest' | 'lowest';
3
+ export type PackageManager = 'npm' | 'yarn';
4
+ export declare const logPackageConflicts: (conflicts: ComparisonResult[]) => void;
5
+ export declare const syncDependencies: (workingDir: string, registry: string, packages: string[], packageManager: "npm" | "yarn") => Promise<void>;
6
+ export declare const resolveConflicts: (conflicts: ComparisonResult[][], resolutionStrategy: ResolutionStrategy) => string[];
7
+ export declare const groupByPackageName: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
8
+ export declare const groupBySampleModule: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
9
+ export declare const groupByBaselineModule: (conflicts: Record<string, ComparisonResult>) => ComparisonResult[][];
10
+ /**
11
+ * Syncs shared dependencies
12
+ * @param workingDir - working directory
13
+ * @param registry - registry to sync dependencies with
14
+ * @param conflicts - shared dependencies to sync
15
+ * @param resolutionStrategy - resolution strategy to use for syncing dependencies (highest or lowest)
16
+ * @param packageManager - package manager to use for syncing dependencies (npm or yarn)
17
+ * @param dryRun - if true, only logs the shared dependencies to sync
18
+ */
19
+ declare const _default: (workingDir: string, registry: string, conflicts: Record<string, ComparisonResult>, resolutionStrategy?: ResolutionStrategy, packageManager?: PackageManager, dryRun?: boolean) => Promise<void>;
20
+ export default _default;
21
+ //# sourceMappingURL=sync.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../config/src/sync.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,QAAQ,CAAC;AACtD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,mBAAmB,cAAe,gBAAgB,EAAE,SAuBhE,CAAC;AAEF,eAAO,MAAM,gBAAgB,eACf,MAAM,YACR,MAAM,YACN,MAAM,EAAE,kBACF,KAAK,GAAG,MAAM,kBAkC/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,cAChB,gBAAgB,EAAE,EAAE,sBACX,kBAAkB,aAmBvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAEvF,eAAO,MAAM,mBAAmB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAExF,eAAO,MAAM,qBAAqB,cAAe,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,yBACQ,CAAC;AAE1F;;;;;;;;GAQG;qCAEW,MAAM,YACR,MAAM,aACL,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,uBACvB,kBAAkB,mBACtB,cAAc;AALhC,wBA6BE"}
@@ -0,0 +1,296 @@
1
+ import { JSONSchema4, JSONSchema6, JSONSchema7 } from 'json-schema';
2
+ export type Schema = JSONSchema4 | JSONSchema6 | JSONSchema7;
3
+ export type ConfigValidator = {
4
+ validate: <T>(...config: T[]) => void;
5
+ };
6
+ export type ConfigMap = Record<string, string>;
7
+ export type PackageSpec = {
8
+ name: string;
9
+ version: string;
10
+ description?: string;
11
+ main: string;
12
+ scripts?: {
13
+ [key: string]: string;
14
+ };
15
+ keywords?: string[];
16
+ author?: string;
17
+ license?: string;
18
+ dependencies?: {
19
+ [key: string]: string;
20
+ };
21
+ devDependencies?: {
22
+ [key: string]: string;
23
+ };
24
+ };
25
+ export type SharedModuleSpec = {
26
+ name: string;
27
+ shared: SharedObject;
28
+ };
29
+ export type ComparisonResult = {
30
+ status: 'conflict' | 'missing' | 'satisfied';
31
+ packageName: string;
32
+ sampleModule: string;
33
+ sampleVersion: string;
34
+ baselineModule: string;
35
+ baselineVersion: string;
36
+ };
37
+ export type ComparisonResults = {
38
+ conflicts: Record<string, ComparisonResult>;
39
+ missing: Record<string, ComparisonResult>;
40
+ satisfied: Record<string, ComparisonResult>;
41
+ };
42
+ export type ComparisonTarget = {
43
+ name: string;
44
+ dependencies: Record<string, string | undefined>;
45
+ };
46
+ export type CliConfig = Record<string, string> & {
47
+ apiKey: string;
48
+ registry: string;
49
+ environment: string;
50
+ scopeId: string;
51
+ authIssuer: string;
52
+ clientId: string;
53
+ };
54
+ export type AppshellConfigRemote<TMetadata = Metadata> = {
55
+ id: string;
56
+ url: string;
57
+ filename: string;
58
+ metadata: TMetadata;
59
+ };
60
+ export type AppshellConfig<TMetadata = Metadata> = {
61
+ name?: string;
62
+ remotes?: Record<string, AppshellConfigRemote<TMetadata>>;
63
+ environment?: Record<string, unknown>;
64
+ overrides?: AppshellOverrides;
65
+ };
66
+ export type AppshellTemplate<TMetadata = Metadata> = {
67
+ name?: string;
68
+ remotes?: Record<string, AppshellConfigRemote<TMetadata>>;
69
+ module: ModuleFederationPluginOptions;
70
+ environment?: Record<string, unknown>;
71
+ overrides?: AppshellOverrides;
72
+ };
73
+ /** Appshell manifest types */
74
+ export type AppshellRemote<TMetadata = Metadata> = {
75
+ id: string;
76
+ manifestUrl: string;
77
+ remoteEntryUrl: string;
78
+ scope: string;
79
+ module: string;
80
+ shareScope?: string;
81
+ metadata: TMetadata;
82
+ };
83
+ export type AppshellOverrides = {
84
+ environment: Record<string, Record<string, string | number | undefined>>;
85
+ };
86
+ export type AppshellManifest<TMetadata = Metadata> = {
87
+ remotes: Record<string, AppshellRemote<TMetadata>>;
88
+ modules: Record<string, ModuleFederationPluginOptions>;
89
+ environment: Record<string, Record<string, string | number | undefined>>;
90
+ overrides?: AppshellOverrides;
91
+ };
92
+ export type AppshellIndex = Record<string, string>;
93
+ export type Metadata = Record<string, unknown>;
94
+ export type AppshellGlobalConfig<TMetadata = Metadata> = {
95
+ index: AppshellIndex;
96
+ metadata?: Record<string, TMetadata>;
97
+ overrides?: AppshellOverrides;
98
+ };
99
+ /** An `AppshellRemote` the registry already resolved, so the browser needs no manifest fetch. */
100
+ export type ResolvedRemote<TMetadata = Metadata> = AppshellRemote<TMetadata>;
101
+ /**
102
+ * The wire contract for `window.__appshell_config__`. Deliberately not an
103
+ * `AppshellManifest`: that is a build artifact, and reusing it left it unclear
104
+ * which fields the browser actually needs. `modules` is build-time webpack
105
+ * config and never crosses the wire; `environment` arrives already merged with
106
+ * the environment's overrides, leaving the browser only local overrides to apply.
107
+ */
108
+ export type AppshellComposition<TMetadata = Metadata> = {
109
+ /** `scope/name` — makes the payload self-describing for fetch-on-miss and for `env diff`. */
110
+ environmentId: string;
111
+ revision: number;
112
+ /** The remote key the host mounts at the root, and the props it is given. */
113
+ root: string;
114
+ rootProps: Record<string, unknown>;
115
+ index: AppshellIndex;
116
+ remotes: Record<string, ResolvedRemote<TMetadata>>;
117
+ environment: Record<string, Record<string, string | number | undefined>>;
118
+ };
119
+ /**
120
+ * Advanced configuration for modules that should be exposed by this container.
121
+ */
122
+ export interface ExposesConfig {
123
+ /**
124
+ * Request to a module that should be exposed by this container.
125
+ */
126
+ import: string | string[];
127
+ /**
128
+ * Custom chunk name for the exposed module.
129
+ */
130
+ name?: string;
131
+ }
132
+ export interface ExposesObject {
133
+ [index: string]: string | ExposesConfig | string[];
134
+ }
135
+ /**
136
+ * Set explicit comments for `commonjs`, `commonjs2`, `amd`, and `root`.
137
+ */
138
+ export interface LibraryCustomUmdCommentObject {
139
+ /**
140
+ * Set comment for `amd` section in UMD.
141
+ */
142
+ amd?: string;
143
+ /**
144
+ * Set comment for `commonjs` (exports) section in UMD.
145
+ */
146
+ commonjs?: string;
147
+ /**
148
+ * Set comment for `commonjs2` (module.exports) section in UMD.
149
+ */
150
+ commonjs2?: string;
151
+ /**
152
+ * Set comment for `root` (global variable) section in UMD.
153
+ */
154
+ root?: string;
155
+ }
156
+ /**
157
+ * Description object for all UMD variants of the library name.
158
+ */
159
+ export interface LibraryCustomUmdObject {
160
+ /**
161
+ * Name of the exposed AMD library in the UMD.
162
+ */
163
+ amd?: string;
164
+ /**
165
+ * Name of the exposed commonjs export in the UMD.
166
+ */
167
+ commonjs?: string;
168
+ /**
169
+ * Name of the property exposed globally by a UMD library.
170
+ */
171
+ root?: string | string[];
172
+ }
173
+ /**
174
+ * Options for library.
175
+ */
176
+ export interface LibraryOptions {
177
+ /**
178
+ * Add a comment in the UMD wrapper.
179
+ */
180
+ auxiliaryComment?: string | LibraryCustomUmdCommentObject;
181
+ /**
182
+ * Specify which export should be exposed as library.
183
+ */
184
+ export?: string | string[];
185
+ /**
186
+ * The name of the library (some types allow unnamed libraries too).
187
+ */
188
+ name?: string | string[] | LibraryCustomUmdObject;
189
+ /**
190
+ * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
191
+ */
192
+ type: string;
193
+ /**
194
+ * If `output.libraryTarget` is set to umd and `output.library` is set, setting this to true will name the AMD module.
195
+ */
196
+ umdNamedDefine?: boolean;
197
+ }
198
+ export interface SharedConfig {
199
+ /**
200
+ * Include the provided and fallback module directly instead behind an async request. This allows to use this shared module in initial load too. All possible shared modules need to be eager too.
201
+ */
202
+ eager?: boolean;
203
+ /**
204
+ * Provided module that should be provided to share scope. Also acts as fallback module if no shared module is found in share scope or version isn't valid. Defaults to the property name.
205
+ */
206
+ import?: string | false;
207
+ /**
208
+ * Package name to determine required version from description file. This is only needed when package name can't be automatically determined from request.
209
+ */
210
+ packageName?: string;
211
+ /**
212
+ * Version requirement from module in share scope.
213
+ */
214
+ requiredVersion?: string | false;
215
+ /**
216
+ * Module is looked up under this key from the share scope.
217
+ */
218
+ shareKey?: string;
219
+ /**
220
+ * Share scope name.
221
+ */
222
+ shareScope?: string;
223
+ /**
224
+ * Allow only a single version of the shared module in share scope (disabled by default).
225
+ */
226
+ singleton?: boolean;
227
+ /**
228
+ * 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).
229
+ */
230
+ strictVersion?: boolean;
231
+ /**
232
+ * Version of the provided module. Will replace lower matching versions, but not higher.
233
+ */
234
+ version?: string | false;
235
+ }
236
+ export interface SharedObject {
237
+ [index: string]: string | SharedConfig;
238
+ }
239
+ /**
240
+ * Advanced configuration for container locations from which modules should be resolved and loaded at runtime.
241
+ */
242
+ export interface RemotesConfig {
243
+ /**
244
+ * Container locations from which modules should be resolved and loaded at runtime.
245
+ */
246
+ external: string | string[];
247
+ /**
248
+ * The name of the share scope shared with this remote.
249
+ */
250
+ shareScope?: string;
251
+ }
252
+ /**
253
+ * Container locations from which modules should be resolved and loaded at runtime. Property names are used as request scopes.
254
+ */
255
+ export interface RemotesObject {
256
+ [index: string]: string | RemotesConfig | string[];
257
+ }
258
+ export interface ModuleFederationPluginOptions {
259
+ /**
260
+ * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
261
+ */
262
+ exposes?: (string | ExposesObject)[] | ExposesObject;
263
+ /**
264
+ * The filename of the container as relative path inside the `output.path` directory.
265
+ */
266
+ filename?: string;
267
+ /**
268
+ * Options for library.
269
+ */
270
+ library?: LibraryOptions;
271
+ /**
272
+ * The name of the container.
273
+ */
274
+ name?: string;
275
+ /**
276
+ * The external type of the remote containers.
277
+ */
278
+ remoteType?: 'import' | 'var' | 'module' | 'assign' | 'this' | 'window' | 'self' | 'global' | 'commonjs' | 'commonjs2' | 'commonjs-module' | 'commonjs-static' | 'amd' | 'amd-require' | 'umd' | 'umd2' | 'jsonp' | 'system' | 'promise' | 'script' | 'node-commonjs';
279
+ /**
280
+ * Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.
281
+ */
282
+ remotes?: (string | RemotesObject)[] | RemotesObject;
283
+ /**
284
+ * The name of the runtime chunk. If set a runtime chunk with this name is created or an existing entrypoint is used as runtime.
285
+ */
286
+ runtime?: string | false;
287
+ /**
288
+ * Share scope name used for all shared modules (defaults to 'default').
289
+ */
290
+ shareScope?: string;
291
+ /**
292
+ * Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
293
+ */
294
+ shared?: (string | SharedObject)[] | SharedObject;
295
+ }
296
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../config/src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EA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IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,GAAG,MAAM,EAAE,CAAC;CACpD;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,aAAa,CAAC;IAErD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EACP,QAAQ,GACR,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,iBAAiB,GACjB,KAAK,GACL,aAAa,GACb,KAAK,GACL,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,eAAe,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,aAAa,CAAC,EAAE,GAAG,aAAa,CAAC;IAErD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,GAAG,YAAY,CAAC;CACnD"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (token?: string, chars?: number) => string;
2
+ export default _default;
3
+ //# sourceMappingURL=blur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/blur.ts"],"names":[],"mappings":";AAAA,wBAA8F"}
@@ -0,0 +1,8 @@
1
+ import { ComparisonResults, ComparisonTarget, PackageSpec, SharedModuleSpec } from '../types';
2
+ export declare const extractDependencies: (sharedModule: SharedModuleSpec) => Record<string, string | undefined>;
3
+ export declare const compareDependency: (packageName: string, sampleModule: string, sampleVersion: string | undefined, baselineModule: string, baselineVersion: string | undefined, results: ComparisonResults) => ComparisonResults;
4
+ export declare const compareDependencies: (sample: ComparisonTarget, baseline: ComparisonTarget) => ComparisonResults;
5
+ export declare const compareSharedDependencies: (packageSpec: PackageSpec, sharedModule: SharedModuleSpec) => ComparisonResults;
6
+ export declare const compareSharedModules: (sampleSpec: SharedModuleSpec, baselineSpec: SharedModuleSpec) => ComparisonResults;
7
+ export declare const printResults: (results: ComparisonResults) => void;
8
+ //# sourceMappingURL=compare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/compare.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,eAAO,MAAM,mBAAmB,iBAAkB,gBAAgB,uCAMpB,CAAC;AAE/C,eAAO,MAAM,iBAAiB,gBACf,MAAM,gBACL,MAAM,iBACL,MAAM,GAAG,SAAS,kBACjB,MAAM,mBACL,MAAM,GAAG,SAAS,WAC1B,iBAAiB,sBAiD3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,gBAAgB,YAAY,gBAAgB,sBAYrF,CAAC;AAEJ,eAAO,MAAM,yBAAyB,gBACvB,WAAW,gBACV,gBAAgB,sBAoB/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,eACnB,gBAAgB,gBACd,gBAAgB,sBAY/B,CAAC;AAEF,eAAO,MAAM,YAAY,YAAa,iBAAiB,SAsBtD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import yargs from 'yargs';
2
+ import { CliConfig } from '../types';
3
+ export declare const readConfig: (configPath: string) => CliConfig;
4
+ export declare const writeConfig: (configPath: string, config: CliConfig) => void;
5
+ export declare const mergeConfigWithArgs: (config: CliConfig, argv: yargs.ArgumentsCamelCase<unknown>) => void;
6
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAIrC,eAAO,MAAM,UAAU,eAAgB,MAAM,cAkB5C,CAAC;AAEF,eAAO,MAAM,WAAW,eAAgB,MAAM,UAAU,SAAS,SAchE,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,SAAS,QAAQ,KAAK,CAAC,kBAAkB,CAAC,OAAO,CAAC,SAe7F,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Safely copies files and makes directories if they don't exist.
3
+ * @param pattern { from: @type string, to: @type string }
4
+ * @returns void
5
+ */
6
+ declare const _default: (pattern: {
7
+ from: string;
8
+ to: string;
9
+ }) => void;
10
+ export default _default;
11
+ //# sourceMappingURL=copy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/copy.ts"],"names":[],"mappings":"AAGA;;;;GAIG;kCACsB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE;AAArD,wBAOE"}
@@ -0,0 +1,10 @@
1
+ export { default as blur } from './blur';
2
+ export { compareDependencies, compareDependency, compareSharedDependencies, compareSharedModules, extractDependencies, printResults, } from './compare';
3
+ export { mergeConfigWithArgs, readConfig, writeConfig } from './config';
4
+ export { default as copy } from './copy';
5
+ export { default as isValidUrl } from './isValidUrl';
6
+ export { default as list } from './list';
7
+ export { default as load, loadAll } from './load';
8
+ export { default as loadJson } from './loadJson';
9
+ export { default as merge } from './merge';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,GACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: (urlString: string) => boolean;
2
+ export default _default;
3
+ //# sourceMappingURL=isValidUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isValidUrl.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/isValidUrl.ts"],"names":[],"mappings":"oCAA2B,MAAM;AAAjC,wBAME"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Lists all files found in dirPath or its subdirectories
3
+ * @param dirPath directory to search
4
+ * @param depth depth to which the search should execute
5
+ * @param target filename to filter results on
6
+ * @returns list of paths for all files found
7
+ */
8
+ declare const list: (dirPath: string, depth?: number, target?: string | RegExp) => string[];
9
+ export default list;
10
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../config/src/utils/list.ts"],"names":[],"mappings":"AAoBA;;;;;;GAMG;AACH,QAAA,MAAM,IAAI,YAAa,MAAM,2BAAqB,MAAM,GAAG,MAAM,aAMhE,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Reads the YAML file
3
+ * @param configPath to configuration file
4
+ * @returns a yaml object
5
+ */
6
+ declare const load: <TSchema>(configPath: string) => TSchema;
7
+ /**
8
+ * Loads the YAML files specified by paths
9
+ * @param paths Paths to configurations to process
10
+ * @returns yaml objects
11
+ */
12
+ export declare const loadAll: <TSchema>(...paths: string[]) => TSchema[];
13
+ export default load;
14
+ //# sourceMappingURL=load.d.ts.map