@squiz/edge-dev-render-runtime-lib 2.5.3 → 2.5.4
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/index.js +451 -471
- package/lib/index.js.map +4 -4
- package/lib/public/docs.json +42 -42
- package/lib/webserver/controllers/DevelopmentController.d.ts +3 -3
- package/package.json +6 -5
package/lib/public/docs.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
2
3
|
"components": {
|
|
3
4
|
"examples": {},
|
|
4
5
|
"headers": {},
|
|
@@ -4565,7 +4566,7 @@
|
|
|
4565
4566
|
"type": "object",
|
|
4566
4567
|
"additionalProperties": {}
|
|
4567
4568
|
},
|
|
4568
|
-
"
|
|
4569
|
+
"ComponentManifest": {
|
|
4569
4570
|
"properties": {
|
|
4570
4571
|
"$schema": {
|
|
4571
4572
|
"type": "string",
|
|
@@ -4730,8 +4731,8 @@
|
|
|
4730
4731
|
"type": "object",
|
|
4731
4732
|
"additionalProperties": false
|
|
4732
4733
|
},
|
|
4733
|
-
"
|
|
4734
|
-
"$ref": "#/components/schemas/
|
|
4734
|
+
"ComponentManifestType": {
|
|
4735
|
+
"$ref": "#/components/schemas/ComponentManifest"
|
|
4735
4736
|
},
|
|
4736
4737
|
"ComponentSchema": {
|
|
4737
4738
|
"properties": {
|
|
@@ -4761,46 +4762,7 @@
|
|
|
4761
4762
|
},
|
|
4762
4763
|
"contact": {}
|
|
4763
4764
|
},
|
|
4764
|
-
"openapi": "3.0.0",
|
|
4765
4765
|
"paths": {
|
|
4766
|
-
"/schemas/{version.json}": {
|
|
4767
|
-
"get": {
|
|
4768
|
-
"operationId": "GetSchemaVersion",
|
|
4769
|
-
"responses": {
|
|
4770
|
-
"200": {
|
|
4771
|
-
"description": "Ok",
|
|
4772
|
-
"content": {
|
|
4773
|
-
"application/json": {
|
|
4774
|
-
"schema": {}
|
|
4775
|
-
}
|
|
4776
|
-
}
|
|
4777
|
-
}
|
|
4778
|
-
},
|
|
4779
|
-
"security": [],
|
|
4780
|
-
"parameters": [
|
|
4781
|
-
{
|
|
4782
|
-
"in": "path",
|
|
4783
|
-
"name": "version",
|
|
4784
|
-
"required": true,
|
|
4785
|
-
"schema": {
|
|
4786
|
-
"type": "string"
|
|
4787
|
-
}
|
|
4788
|
-
}
|
|
4789
|
-
]
|
|
4790
|
-
}
|
|
4791
|
-
},
|
|
4792
|
-
"/": {
|
|
4793
|
-
"get": {
|
|
4794
|
-
"operationId": "GetComponents",
|
|
4795
|
-
"responses": {
|
|
4796
|
-
"204": {
|
|
4797
|
-
"description": "No content"
|
|
4798
|
-
}
|
|
4799
|
-
},
|
|
4800
|
-
"security": [],
|
|
4801
|
-
"parameters": []
|
|
4802
|
-
}
|
|
4803
|
-
},
|
|
4804
4766
|
"/s/{namespace}/{componentName}/{version}/{staticFile*}": {
|
|
4805
4767
|
"get": {
|
|
4806
4768
|
"operationId": "GetPreview",
|
|
@@ -4861,6 +4823,44 @@
|
|
|
4861
4823
|
}
|
|
4862
4824
|
]
|
|
4863
4825
|
}
|
|
4826
|
+
},
|
|
4827
|
+
"/schemas/{version.json}": {
|
|
4828
|
+
"get": {
|
|
4829
|
+
"operationId": "GetSchemaVersion",
|
|
4830
|
+
"responses": {
|
|
4831
|
+
"200": {
|
|
4832
|
+
"description": "Ok",
|
|
4833
|
+
"content": {
|
|
4834
|
+
"application/json": {
|
|
4835
|
+
"schema": {}
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
},
|
|
4840
|
+
"security": [],
|
|
4841
|
+
"parameters": [
|
|
4842
|
+
{
|
|
4843
|
+
"in": "path",
|
|
4844
|
+
"name": "version",
|
|
4845
|
+
"required": true,
|
|
4846
|
+
"schema": {
|
|
4847
|
+
"type": "string"
|
|
4848
|
+
}
|
|
4849
|
+
}
|
|
4850
|
+
]
|
|
4851
|
+
}
|
|
4852
|
+
},
|
|
4853
|
+
"/": {
|
|
4854
|
+
"get": {
|
|
4855
|
+
"operationId": "GetComponents",
|
|
4856
|
+
"responses": {
|
|
4857
|
+
"204": {
|
|
4858
|
+
"description": "No content"
|
|
4859
|
+
}
|
|
4860
|
+
},
|
|
4861
|
+
"security": [],
|
|
4862
|
+
"parameters": []
|
|
4863
|
+
}
|
|
4864
4864
|
}
|
|
4865
4865
|
},
|
|
4866
4866
|
"servers": [
|
|
@@ -7,7 +7,7 @@ import { Request as ExpressRequest, Response as ExpressResponse } from 'express'
|
|
|
7
7
|
import { ComponentPreviewService } from '../../PreviewComponentService';
|
|
8
8
|
import { ComponentExecutionInput, RenderInputService } from '../../RenderInputService';
|
|
9
9
|
import { ContextAwareness } from '../../component-runner/ComponentRunnerService';
|
|
10
|
-
type
|
|
10
|
+
type ComponentManifestType = MANIFEST_MODELS.v1.ComponentManifest;
|
|
11
11
|
type ComponentSchema = {
|
|
12
12
|
name: string;
|
|
13
13
|
schema: object;
|
|
@@ -25,14 +25,14 @@ export declare class DevelopmentController extends Controller {
|
|
|
25
25
|
* @return {*} {Promise<ComponentManifest[]>}
|
|
26
26
|
* @memberof EdgeDevelopmentController
|
|
27
27
|
*/
|
|
28
|
-
getComponents(): Promise<
|
|
28
|
+
getComponents(): Promise<ComponentManifestType[]>;
|
|
29
29
|
/**
|
|
30
30
|
* Returns the manifest for the given componentId
|
|
31
31
|
* @param {string} componentId
|
|
32
32
|
* @return {*} {Promise<ComponentManifest>}
|
|
33
33
|
* @memberof EdgeDevelopmentController
|
|
34
34
|
*/
|
|
35
|
-
Manifest(componentId: string): Promise<
|
|
35
|
+
Manifest(componentId: string): Promise<ComponentManifestType>;
|
|
36
36
|
/**
|
|
37
37
|
* Returns the component schema for the given componentId
|
|
38
38
|
* @param {string} componentId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squiz/edge-dev-render-runtime-lib",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.4",
|
|
4
4
|
"description": "Package of Edge rendering utilities for components in dev mode",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -14,11 +14,12 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@squiz/component-lib": "^1.81.1",
|
|
17
|
-
"@squiz/component-logger-lib": "^1.71.
|
|
18
|
-
"@squiz/component-web-api-lib": "^1.67.
|
|
19
|
-
"@squiz/dx-common-lib": "^1.
|
|
17
|
+
"@squiz/component-logger-lib": "^1.71.3",
|
|
18
|
+
"@squiz/component-web-api-lib": "^1.67.3",
|
|
19
|
+
"@squiz/dx-common-lib": "^1.71.1",
|
|
20
20
|
"@squiz/dx-json-schema-lib": "^1.81.1",
|
|
21
21
|
"@squiz/dx-logger-lib": "^1.65.1",
|
|
22
|
+
"@squiz/dxp-session-lib": "^1.66.2",
|
|
22
23
|
"@squiz/runtime-sandbox-common": "^1.65.2",
|
|
23
24
|
"compression": "1.7.4",
|
|
24
25
|
"cors": "2.8.5",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"inversify": "6.0.2",
|
|
31
32
|
"inversify-binding-decorators": "4.0.0",
|
|
32
33
|
"swagger-ui-express": "4.6.0",
|
|
33
|
-
"tsoa": "
|
|
34
|
+
"tsoa": "6.6.0",
|
|
34
35
|
"winston": "3.8.2"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|