@adobe/helix-shared-config 1.7.21 → 2.0.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.
- package/CHANGELOG.md +39 -0
- package/package.json +12 -9
- package/src/config-wrapper.js +0 -6
- package/src/index.js +0 -12
- package/src/Condition.js +0 -573
- package/src/ConfigValidator.js +0 -95
- package/src/DataEmbedValidator.js +0 -51
- package/src/DynamicRedirect.js +0 -125
- package/src/HelixConfig.js +0 -133
- package/src/MarkupConfig.js +0 -35
- package/src/Origin.js +0 -159
- package/src/Performance.js +0 -80
- package/src/Redirect.js +0 -64
- package/src/RedirectConfig.js +0 -64
- package/src/RedirectRuleHandler.js +0 -46
- package/src/Static.js +0 -119
- package/src/Strain.js +0 -332
- package/src/Strains.js +0 -68
- package/src/schemas/conditions.schema.json +0 -140
- package/src/schemas/config.description.md +0 -7
- package/src/schemas/config.example.1.json +0 -26
- package/src/schemas/config.schema.json +0 -44
- package/src/schemas/data-embed-response.schema.json +0 -40
- package/src/schemas/giturl.schema.json +0 -62
- package/src/schemas/markup.schema.json +0 -22
- package/src/schemas/markupconfig.schema.json +0 -38
- package/src/schemas/markupmapping.description.md +0 -242
- package/src/schemas/markupmapping.schema.json +0 -122
- package/src/schemas/origin.description.md +0 -5
- package/src/schemas/origin.schema.json +0 -86
- package/src/schemas/performance.schema.json +0 -210
- package/src/schemas/proxystrain.description.md +0 -20
- package/src/schemas/proxystrain.schema.json +0 -87
- package/src/schemas/redirect.schema.json +0 -34
- package/src/schemas/redirectrule.schema.json +0 -46
- package/src/schemas/redirects.description.md +0 -1
- package/src/schemas/redirects.schema.json +0 -41
- package/src/schemas/row.schema.json +0 -23
- package/src/schemas/runtimestrain.schema.json +0 -144
- package/src/schemas/sheet.schema.json +0 -57
- package/src/schemas/staticgiturl.schema.json +0 -80
- package/src/schemas/strains.schema.json +0 -39
- package/src/schemas/vanity.schema.json +0 -38
- package/src/schemas/version-lock.description.md +0 -3
- package/src/schemas/version-lock.schema.json +0 -35
- package/src/schemas/workbook.schema.json +0 -49
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2019 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/staticgiturl",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Git URL",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "Representation of the fragments of a Git URL",
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"protocol": {
|
|
22
|
-
"description": "The protocol to access the Git repository",
|
|
23
|
-
"enum": ["https", "http", "ssh"],
|
|
24
|
-
"type":"string"
|
|
25
|
-
},
|
|
26
|
-
"hostname": {
|
|
27
|
-
"description": "The hostname without port",
|
|
28
|
-
"type":"string",
|
|
29
|
-
"format": "hostname"
|
|
30
|
-
},
|
|
31
|
-
"host": {
|
|
32
|
-
"description": "The hostname with port",
|
|
33
|
-
"type":"string"
|
|
34
|
-
},
|
|
35
|
-
"port": {
|
|
36
|
-
"description": "The port to access the Git Repository",
|
|
37
|
-
"type":["integer", "string"]
|
|
38
|
-
},
|
|
39
|
-
"owner": {
|
|
40
|
-
"description": "The owner or username that the repository belongs to",
|
|
41
|
-
"type":"string"
|
|
42
|
-
},
|
|
43
|
-
"path": {
|
|
44
|
-
"description": "The path within the repository",
|
|
45
|
-
"type":"string"
|
|
46
|
-
},
|
|
47
|
-
"repo": {
|
|
48
|
-
"description": "The repository name",
|
|
49
|
-
"type":"string"
|
|
50
|
-
},
|
|
51
|
-
"ref": {
|
|
52
|
-
"description": "The branch, tag, or sha of the tree in the repository to use",
|
|
53
|
-
"default": "master",
|
|
54
|
-
"type":"string"
|
|
55
|
-
},
|
|
56
|
-
"allow": {
|
|
57
|
-
"description": "List of white listed paths",
|
|
58
|
-
"type": "array",
|
|
59
|
-
"items": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"deny": {
|
|
64
|
-
"description": "List of white listed paths",
|
|
65
|
-
"type": "array",
|
|
66
|
-
"items": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"magic": {
|
|
71
|
-
"type": "boolean",
|
|
72
|
-
"description": "Deprecated: Enable server-side asset processing."
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"required": [
|
|
76
|
-
"owner",
|
|
77
|
-
"repo",
|
|
78
|
-
"ref"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2018 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/strains",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Strains",
|
|
16
|
-
"meta:status": "stabilizing",
|
|
17
|
-
"definitions": {
|
|
18
|
-
"anystrain": {
|
|
19
|
-
"oneOf": [
|
|
20
|
-
{
|
|
21
|
-
"$ref": "https://ns.adobe.com/helix/shared/proxystrain"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"$ref": "https://ns.adobe.com/helix/shared/runtimestrain"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"oneOf": [
|
|
30
|
-
{
|
|
31
|
-
"type": "array",
|
|
32
|
-
"minItems": 1,
|
|
33
|
-
"description": "A list of strains. Every strain name must be unique for a given config.",
|
|
34
|
-
"items": {
|
|
35
|
-
"$ref": "#/definitions/anystrain"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
]
|
|
39
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/vanity",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Vanity URL mapping",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"properties": {
|
|
18
|
-
"source": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"enum": ["html", "markdown"],
|
|
21
|
-
"title": "Source",
|
|
22
|
-
"description": "The source representation to be used by the indexer to extract values"
|
|
23
|
-
},
|
|
24
|
-
"fetch": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"format": "uri-template",
|
|
27
|
-
"description": "The source document to retrieve values from. Known variables in the URI Template are: `repo`, `ref`, `owner`, `path`"
|
|
28
|
-
},
|
|
29
|
-
"select": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"description": "A CSS selector expression that selects nodes in the HTML (DOM) or Markdown (MDAST) syntax tree"
|
|
32
|
-
},
|
|
33
|
-
"value": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "A ES6 template literal expression that extracts the value from the matching node(s) to be stored in the index"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `version-lock` property allows pinning of specific services to a particular version number.
|
|
2
|
-
|
|
3
|
-
Each property is the name of the service, the value is either the version number or (when starting with `v`) or the CI build number (when starting with `ci`) or any other version string.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2020 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/shared/version-lock",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Version Lock",
|
|
16
|
-
"description": "",
|
|
17
|
-
"type": "object",
|
|
18
|
-
"additionalProperties": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "A version number string",
|
|
21
|
-
"title": "Service Version",
|
|
22
|
-
"examples": [
|
|
23
|
-
"1.0.0",
|
|
24
|
-
"v1.0",
|
|
25
|
-
"v1",
|
|
26
|
-
"ci999"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"examples":[
|
|
30
|
-
{
|
|
31
|
-
"helix-embed": "v3",
|
|
32
|
-
"helix-data-embed": "ci999"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"meta:license": [
|
|
3
|
-
"Copyright 2021 Adobe. All rights reserved.",
|
|
4
|
-
"This file is licensed to you under the Apache License, Version 2.0 (the \"License\");",
|
|
5
|
-
"you may not use this file except in compliance with the License. You may obtain a copy",
|
|
6
|
-
"of the License at http://www.apache.org/licenses/LICENSE-2.0",
|
|
7
|
-
"",
|
|
8
|
-
"Unless required by applicable law or agreed to in writing, software distributed under",
|
|
9
|
-
"the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS",
|
|
10
|
-
"OF ANY KIND, either express or implied. See the License for the specific language",
|
|
11
|
-
"governing permissions and limitations under the License."
|
|
12
|
-
],
|
|
13
|
-
"$id": "https://ns.adobe.com/helix/data-embed/workbook",
|
|
14
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
15
|
-
"title": "Workbook",
|
|
16
|
-
"type": "object",
|
|
17
|
-
"meta:status": "stabilizing",
|
|
18
|
-
"description": "A JSON representation of an Excel or Google Sheets workbook containing multiple sheets.",
|
|
19
|
-
"properties": {
|
|
20
|
-
":type": {
|
|
21
|
-
"const": "multi-sheet",
|
|
22
|
-
"description": "The response type, depending on the presence of the `sheet` request parameter."
|
|
23
|
-
},
|
|
24
|
-
":names": {
|
|
25
|
-
"type": "array",
|
|
26
|
-
"description": "The list of sheet names that exist in the workbook response.",
|
|
27
|
-
"items": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "The sheet name. Sheet names may not start with `:`",
|
|
30
|
-
"pattern": "^[^:].*"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
":version": {
|
|
34
|
-
"type": "number",
|
|
35
|
-
"enum": [
|
|
36
|
-
3
|
|
37
|
-
],
|
|
38
|
-
"default": 3,
|
|
39
|
-
"description": "The workbook response format version"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"patternProperties": {
|
|
43
|
-
"^[^:].*": { "$ref": "https://ns.adobe.com/helix/data-embed/sheet" }
|
|
44
|
-
},
|
|
45
|
-
"additionalProperties": false,
|
|
46
|
-
"required": [
|
|
47
|
-
":names"
|
|
48
|
-
]
|
|
49
|
-
}
|