@squiz/render-runtime-lib 1.2.1-alpha.85 → 1.2.1-alpha.89

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.
@@ -0,0 +1,17 @@
1
+ import { ComponentInfo } from '@squiz/component-lib';
2
+ declare type EnvironmentVariables = Record<string, string | undefined>;
3
+ export declare class InvalidEnvironmentVariablesError extends Error {
4
+ readonly errors: [string, string][];
5
+ constructor(errors: [string, string][]);
6
+ }
7
+ export interface ComponentEnvironmentLoader {
8
+ getEnvironmentVariables(componentSet: string): Promise<EnvironmentVariables>;
9
+ }
10
+ interface EnvironmentVariableValidation {
11
+ valid: boolean;
12
+ errors: [string, string][];
13
+ variables: EnvironmentVariables;
14
+ }
15
+ export declare function loadEnvironment(info: ComponentInfo, environmentLoader: ComponentEnvironmentLoader): Promise<EnvironmentVariableValidation>;
16
+ export declare function getProcessEnvironmentLoader(): ComponentEnvironmentLoader;
17
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { ComponentExecutor } from '@squiz/component-lib';
2
2
  export interface ComponentRunnerConfig {
3
3
  dataMountPoint: string;
4
- doDevReload?: boolean;
4
+ localDevMode?: boolean;
5
+ previewFile?: string;
5
6
  workerTimeout?: number;
6
7
  workerFile?: string;
7
8
  }
@@ -24,7 +24,7 @@ interface WorkerConfig {
24
24
  }
25
25
  interface WorkerPoolConfig {
26
26
  numOfWorkers: number;
27
- doDevReload?: boolean;
27
+ localDevMode?: boolean;
28
28
  worker: WorkerConfig;
29
29
  }
30
30
  interface WorkerInfo {