@squiz/edge-dev-render-runtime-lib 2.4.0 → 2.4.2
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/lib/component-runner/ComponentRunnerService.d.ts +5 -1
- package/lib/index.js +366 -104
- package/lib/index.js.map +4 -4
- package/lib/public/docs.json +159 -254
- package/lib/webserver/controllers/DevelopmentController.d.ts +5 -4
- package/lib/webserver/controllers/StaticController.d.ts +14 -0
- package/package.json +2 -2
|
@@ -4,8 +4,12 @@ export interface ComponentRunnerService {
|
|
|
4
4
|
executeServerComponentFunction(task: ExecuteComponentTask): Promise<FunctionReturnTypes>;
|
|
5
5
|
executeEdgeComponentFunction(task: ExecuteComponentTask): Promise<FunctionReturnTypes>;
|
|
6
6
|
}
|
|
7
|
+
export type ContextAwareness = {
|
|
8
|
+
matrixUrl?: string;
|
|
9
|
+
matrixAssetId?: string;
|
|
10
|
+
};
|
|
7
11
|
export declare class DevelopmentComponentRunnerService implements ComponentRunnerService {
|
|
8
|
-
executeEdgeComponentFunction(task: ExecuteComponentTask): Promise<FunctionReturnTypes>;
|
|
12
|
+
executeEdgeComponentFunction(task: ExecuteComponentTask, contextAwareness?: ContextAwareness): Promise<FunctionReturnTypes>;
|
|
9
13
|
executeServerComponentFunction(task: ExecuteComponentTask): Promise<FunctionReturnTypes>;
|
|
10
14
|
private setUpWebRequestEventForResolveUri;
|
|
11
15
|
private transformCode;
|