@appshell/config 1.0.0-alpha.24 → 1.0.0-alpha.25

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.
package/README.md CHANGED
@@ -116,7 +116,7 @@ Sample template:
116
116
 
117
117
  > Note the variable expansion syntax `${CRA_MFE_URL}`. When `generateManifest` is called the actual runtime environment values are injected and an appshell manifest is emitted.
118
118
 
119
- > **Note** the `vars` section defines runtime configuration values a package reads with `getVars()` from [`@appshell/vars`](../vars/README.md) once it is loaded. The package must share `@appshell/runtime` as a singleton to receive them. See the examples for a use case.
119
+ > **Note** the `vars` section defines runtime configuration values a package reads with `getVars()` from [`@appshell/runtime/vars`](../runtime/README.md) once it is loaded. The package must share `@appshell/runtime` as a singleton to receive them. See the examples for a use case.
120
120
 
121
121
  Sample appshell manifest produced by the `generateManifest` function:
122
122
 
@@ -11,6 +11,6 @@ export { default as outdated } from './outdated';
11
11
  export { activate, publish } from './publish';
12
12
  export type { PublishOptions, PublishResult } from './publish';
13
13
  export { default as sync } from './sync';
14
- export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, AppshellTokenUsage, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedConfig, SharedModuleSpec, } from './types';
14
+ export type { AppshellComposition, AppshellConfig, AppshellConfigRemote, AppshellIndex, AppshellManifest, AppshellRemote, AppshellTemplate, AppshellTokenUsage, ComparisonResult, ComparisonResults, ComparisonTarget, Metadata, ModuleFederationPluginOptions, PackageSpec, ResolvedRemote, Schema, SharedConfig, SharedObject, SharedModuleSpec, } from './types';
15
15
  export * as utils from './utils';
16
16
  export * as validators from './validators';
@@ -1,4 +1,6 @@
1
+ import type { AppshellIndex, AppshellRemote, Metadata } from '@appshell/runtime';
1
2
  import { JSONSchema4, JSONSchema6, JSONSchema7 } from 'json-schema';
3
+ export type { AppshellIndex, AppshellRemote, Metadata } from '@appshell/runtime';
2
4
  export type Schema = JSONSchema4 | JSONSchema6 | JSONSchema7;
3
5
  export type ConfigValidator = {
4
6
  validate: <T>(...config: T[]) => void;
@@ -72,15 +74,6 @@ export type AppshellTemplate<TMetadata = Metadata> = {
72
74
  overrides?: AppshellOverrides;
73
75
  };
74
76
  /** Appshell manifest types */
75
- export type AppshellRemote<TMetadata = Metadata> = {
76
- id: string;
77
- manifestUrl: string;
78
- remoteEntryUrl: string;
79
- scope: string;
80
- module: string;
81
- shareScope?: string;
82
- metadata: TMetadata;
83
- };
84
77
  export type AppshellOverrides = {
85
78
  vars: Record<string, Record<string, string | number | undefined>>;
86
79
  };
@@ -105,8 +98,6 @@ export type AppshellManifest<TMetadata = Metadata> = {
105
98
  tokens?: Record<string, AppshellTokenUsage>;
106
99
  overrides?: AppshellOverrides;
107
100
  };
108
- export type AppshellIndex = Record<string, string>;
109
- export type Metadata = Record<string, unknown>;
110
101
  /** An `AppshellRemote` the registry already resolved, so the browser needs no manifest fetch. */
111
102
  export type ResolvedRemote<TMetadata = Metadata> = AppshellRemote<TMetadata>;
112
103
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appshell/config",
3
- "version": "1.0.0-alpha.24",
3
+ "version": "1.0.0-alpha.25",
4
4
  "description": "Utility for producing a global appshell manifest for module federation micro-frontends",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -30,5 +30,8 @@
30
30
  "appshell"
31
31
  ],
32
32
  "license": "MIT",
33
- "gitHead": "41f2ce7eee90490c80273dfe4a5df46295730a0e"
33
+ "gitHead": "7d90eb91be3cb50aae5aaa680063878dfcaafea2",
34
+ "dependencies": {
35
+ "@appshell/runtime": "^1.0.0-alpha.25"
36
+ }
34
37
  }