@gradial/aci 0.1.52-rc.5 → 0.1.52-rc.7

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +4 -4
  3. package/dist/content/provider.d.ts +1 -0
  4. package/dist/internal/domain/edge/compose.d.ts +24 -0
  5. package/dist/internal/domain/edge/compose.js +89 -0
  6. package/dist/internal/domain/edge/index.d.ts +1 -0
  7. package/dist/internal/domain/edge/index.js +1 -0
  8. package/dist/internal/domain/edge/types.d.ts +11 -0
  9. package/dist/next/hosted-page-target.d.ts +7 -0
  10. package/dist/next/hosted-page-target.js +39 -0
  11. package/dist/next/page.d.ts +29 -6
  12. package/dist/next/page.js +23 -23
  13. package/dist/next/server.js +28 -1
  14. package/dist/providers/s3.js +11 -4
  15. package/package.json +7 -7
  16. package/templates/common/starter-content/.content/.rules-baseline.json +8 -0
  17. package/templates/common/starter-content/.content/content-rules/no-public-resource-paths.json +6 -0
  18. package/templates/common/starter-content/.content/pages/404/_index.json +1 -0
  19. package/templates/common/starter-content/.content/pages/error/_index.json +1 -0
  20. package/templates/common/starter-content/.content/patterns/components/button.json +55 -0
  21. package/templates/common/starter-content/.content/patterns/components/container.json +62 -0
  22. package/templates/common/starter-content/.content/patterns/components/feature_card.json +30 -0
  23. package/templates/common/starter-content/.content/patterns/components/feature_grid.json +57 -0
  24. package/templates/common/starter-content/.content/patterns/components/home_hero.json +142 -0
  25. package/templates/common/starter-content/.content/patterns/components/personalization_choice.json +42 -0
  26. package/templates/common/starter-content/.content/patterns/components/site-footer.json +203 -0
  27. package/templates/common/starter-content/.content/patterns/components/site-navigation.json +115 -0
  28. package/templates/common/starter-content/.content/patterns/components/stats_bar.json +45 -0
  29. package/templates/common/starter-content/.content/patterns/layouts/default.json +14 -0
  30. package/templates/nextjs/template/.aci.yaml +10 -0
  31. /package/templates/common/.content/overlays/audience/preference-blue/pages/{home/_index.json → _index.json} +0 -0
  32. /package/templates/common/.content/overlays/audience/preference-red/pages/{home/_index.json → _index.json} +0 -0
  33. /package/templates/common/.content/pages/{home/_index.json → _index.json} +0 -0
@@ -0,0 +1,30 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "feature_card",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "feature_card",
9
+ "type": "object",
10
+ "properties": {
11
+ "icon": {
12
+ "type": "string"
13
+ },
14
+ "title": {
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "description": {
19
+ "type": "string"
20
+ }
21
+ },
22
+ "required": [
23
+ "title"
24
+ ],
25
+ "additionalProperties": false
26
+ },
27
+ "imageSlots": {},
28
+ "notes": "",
29
+ "skills": []
30
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "feature_grid",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "feature_grid",
9
+ "type": "object",
10
+ "properties": {
11
+ "title": {
12
+ "type": "string"
13
+ },
14
+ "subtitle": {
15
+ "type": "string"
16
+ },
17
+ "features": {
18
+ "type": "array",
19
+ "items": {
20
+ "type": "object",
21
+ "properties": {
22
+ "$type": {
23
+ "type": "string",
24
+ "const": "component"
25
+ },
26
+ "id": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "component": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "props": {
35
+ "type": "object",
36
+ "propertyNames": {
37
+ "type": "string"
38
+ },
39
+ "additionalProperties": {}
40
+ }
41
+ },
42
+ "required": [
43
+ "$type",
44
+ "id",
45
+ "component",
46
+ "props"
47
+ ],
48
+ "additionalProperties": false
49
+ }
50
+ }
51
+ },
52
+ "additionalProperties": false
53
+ },
54
+ "imageSlots": {},
55
+ "notes": "",
56
+ "skills": []
57
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "home_hero",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "home_hero",
9
+ "type": "object",
10
+ "properties": {
11
+ "eyebrow": {
12
+ "type": "string"
13
+ },
14
+ "headline": {
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "description": {
19
+ "type": "string"
20
+ },
21
+ "ctaLabel": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "ctaHref": {
26
+ "type": "string",
27
+ "minLength": 1
28
+ },
29
+ "image": {
30
+ "type": "object",
31
+ "properties": {
32
+ "$type": {
33
+ "type": "string",
34
+ "const": "gradial.image"
35
+ },
36
+ "assetId": {
37
+ "type": "string",
38
+ "minLength": 1
39
+ },
40
+ "versionId": {
41
+ "type": "string",
42
+ "minLength": 1
43
+ },
44
+ "alt": {
45
+ "type": "string"
46
+ },
47
+ "sources": {
48
+ "minItems": 1,
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "src": {
54
+ "type": "string",
55
+ "minLength": 1
56
+ },
57
+ "srcset": {
58
+ "type": "string",
59
+ "minLength": 1
60
+ },
61
+ "width": {
62
+ "type": "integer",
63
+ "minimum": 0,
64
+ "maximum": 9007199254740991
65
+ },
66
+ "height": {
67
+ "type": "integer",
68
+ "minimum": 0,
69
+ "maximum": 9007199254740991
70
+ },
71
+ "sizes": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "media": {
76
+ "type": "string",
77
+ "minLength": 1
78
+ },
79
+ "type": {
80
+ "type": "string",
81
+ "minLength": 1
82
+ }
83
+ },
84
+ "required": [
85
+ "src",
86
+ "type"
87
+ ],
88
+ "additionalProperties": false
89
+ }
90
+ }
91
+ },
92
+ "required": [
93
+ "$type",
94
+ "assetId",
95
+ "versionId",
96
+ "alt",
97
+ "sources"
98
+ ],
99
+ "additionalProperties": false
100
+ }
101
+ },
102
+ "required": [
103
+ "headline",
104
+ "ctaLabel",
105
+ "ctaHref",
106
+ "image"
107
+ ],
108
+ "additionalProperties": false
109
+ },
110
+ "imageSlots": {
111
+ "image": {
112
+ "outputs": [
113
+ {
114
+ "aspectRatio": "16:9",
115
+ "widths": [
116
+ 768,
117
+ 1280,
118
+ 1920
119
+ ],
120
+ "media": "(min-width: 768px)"
121
+ },
122
+ {
123
+ "aspectRatio": "3:4",
124
+ "widths": [
125
+ 480,
126
+ 720,
127
+ 960
128
+ ],
129
+ "media": "(max-width: 767px)"
130
+ }
131
+ ],
132
+ "formats": [
133
+ "image/avif",
134
+ "image/webp",
135
+ "image/jpeg"
136
+ ],
137
+ "sizes": "100vw"
138
+ }
139
+ },
140
+ "notes": "",
141
+ "skills": []
142
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "personalization_choice",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "personalization_choice",
9
+ "type": "object",
10
+ "properties": {
11
+ "title": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "description": {
16
+ "type": "string"
17
+ },
18
+ "redLabel": {
19
+ "type": "string",
20
+ "minLength": 1
21
+ },
22
+ "blueLabel": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "refreshLabel": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ }
30
+ },
31
+ "required": [
32
+ "title",
33
+ "redLabel",
34
+ "blueLabel",
35
+ "refreshLabel"
36
+ ],
37
+ "additionalProperties": false
38
+ },
39
+ "imageSlots": {},
40
+ "notes": "",
41
+ "skills": []
42
+ }
@@ -0,0 +1,203 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "site-footer",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "site-footer",
9
+ "type": "object",
10
+ "properties": {
11
+ "brandHref": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "brandLabel": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "brandLogo": {
20
+ "anyOf": [
21
+ {
22
+ "type": "object",
23
+ "properties": {
24
+ "src": {
25
+ "type": "string"
26
+ },
27
+ "alt": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": [
32
+ "src",
33
+ "alt"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "null"
39
+ }
40
+ ]
41
+ },
42
+ "columns": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "object",
46
+ "properties": {
47
+ "id": {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ "title": {
52
+ "type": "string"
53
+ },
54
+ "links": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "object",
58
+ "properties": {
59
+ "id": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "label": {
64
+ "type": "string",
65
+ "minLength": 1
66
+ },
67
+ "href": {
68
+ "type": "string",
69
+ "minLength": 1
70
+ }
71
+ },
72
+ "required": [
73
+ "id",
74
+ "label",
75
+ "href"
76
+ ],
77
+ "additionalProperties": false
78
+ }
79
+ },
80
+ "groups": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "id": {
86
+ "type": "string",
87
+ "minLength": 1
88
+ },
89
+ "title": {
90
+ "type": "string"
91
+ },
92
+ "links": {
93
+ "type": "array",
94
+ "items": {
95
+ "type": "object",
96
+ "properties": {
97
+ "id": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ },
101
+ "label": {
102
+ "type": "string",
103
+ "minLength": 1
104
+ },
105
+ "href": {
106
+ "type": "string",
107
+ "minLength": 1
108
+ }
109
+ },
110
+ "required": [
111
+ "id",
112
+ "label",
113
+ "href"
114
+ ],
115
+ "additionalProperties": false
116
+ }
117
+ }
118
+ },
119
+ "required": [
120
+ "id",
121
+ "title",
122
+ "links"
123
+ ],
124
+ "additionalProperties": false
125
+ }
126
+ }
127
+ },
128
+ "required": [
129
+ "id"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ },
134
+ "social": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "object",
138
+ "properties": {
139
+ "id": {
140
+ "type": "string",
141
+ "minLength": 1
142
+ },
143
+ "label": {
144
+ "type": "string",
145
+ "minLength": 1
146
+ },
147
+ "href": {
148
+ "type": "string",
149
+ "minLength": 1
150
+ },
151
+ "icon": {
152
+ "type": "string"
153
+ }
154
+ },
155
+ "required": [
156
+ "id",
157
+ "label",
158
+ "href"
159
+ ],
160
+ "additionalProperties": false
161
+ }
162
+ },
163
+ "legalLinks": {
164
+ "type": "array",
165
+ "items": {
166
+ "type": "object",
167
+ "properties": {
168
+ "id": {
169
+ "type": "string",
170
+ "minLength": 1
171
+ },
172
+ "label": {
173
+ "type": "string",
174
+ "minLength": 1
175
+ },
176
+ "href": {
177
+ "type": "string",
178
+ "minLength": 1
179
+ }
180
+ },
181
+ "required": [
182
+ "id",
183
+ "label",
184
+ "href"
185
+ ],
186
+ "additionalProperties": false
187
+ }
188
+ },
189
+ "copyright": {
190
+ "type": "string"
191
+ }
192
+ },
193
+ "required": [
194
+ "brandHref",
195
+ "brandLabel",
196
+ "columns"
197
+ ],
198
+ "additionalProperties": false
199
+ },
200
+ "imageSlots": {},
201
+ "notes": "",
202
+ "skills": []
203
+ }
@@ -0,0 +1,115 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "site-navigation",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "site-navigation",
9
+ "type": "object",
10
+ "properties": {
11
+ "brandHref": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "brandLabel": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "brandLogo": {
20
+ "anyOf": [
21
+ {
22
+ "type": "object",
23
+ "properties": {
24
+ "src": {
25
+ "type": "string"
26
+ },
27
+ "alt": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": [
32
+ "src",
33
+ "alt"
34
+ ],
35
+ "additionalProperties": false
36
+ },
37
+ {
38
+ "type": "null"
39
+ }
40
+ ]
41
+ },
42
+ "navigation": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "object",
46
+ "properties": {
47
+ "id": {
48
+ "type": "string",
49
+ "minLength": 1
50
+ },
51
+ "label": {
52
+ "type": "string",
53
+ "minLength": 1
54
+ },
55
+ "href": {
56
+ "type": "string",
57
+ "minLength": 1
58
+ }
59
+ },
60
+ "required": [
61
+ "id",
62
+ "label",
63
+ "href"
64
+ ],
65
+ "additionalProperties": false
66
+ }
67
+ },
68
+ "utilities": {
69
+ "type": "array",
70
+ "items": {
71
+ "type": "object",
72
+ "properties": {
73
+ "id": {
74
+ "type": "string",
75
+ "minLength": 1
76
+ },
77
+ "label": {
78
+ "type": "string",
79
+ "minLength": 1
80
+ },
81
+ "href": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "variant": {
86
+ "type": "string",
87
+ "enum": [
88
+ "primary",
89
+ "secondary",
90
+ "tertiary",
91
+ "outline",
92
+ "ghost"
93
+ ]
94
+ }
95
+ },
96
+ "required": [
97
+ "id",
98
+ "label",
99
+ "href"
100
+ ],
101
+ "additionalProperties": false
102
+ }
103
+ }
104
+ },
105
+ "required": [
106
+ "brandHref",
107
+ "brandLabel",
108
+ "navigation"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ "imageSlots": {},
113
+ "notes": "",
114
+ "skills": []
115
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "$type": "componentPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "stats_bar",
6
+ "schema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "title": "stats_bar",
9
+ "type": "object",
10
+ "properties": {
11
+ "stats": {
12
+ "minItems": 1,
13
+ "type": "array",
14
+ "items": {
15
+ "type": "object",
16
+ "properties": {
17
+ "label": {
18
+ "type": "string",
19
+ "minLength": 1
20
+ },
21
+ "value": {
22
+ "type": "string",
23
+ "minLength": 1
24
+ },
25
+ "suffix": {
26
+ "type": "string"
27
+ }
28
+ },
29
+ "required": [
30
+ "label",
31
+ "value"
32
+ ],
33
+ "additionalProperties": false
34
+ }
35
+ }
36
+ },
37
+ "required": [
38
+ "stats"
39
+ ],
40
+ "additionalProperties": false
41
+ },
42
+ "imageSlots": {},
43
+ "notes": "",
44
+ "skills": []
45
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$type": "layoutPattern",
3
+ "buildId": "codebuild_01a017ed-c52f-703a-a6b4-a0943c057d31",
4
+ "codeDigest": "sha256:119dd8414ca342ca67f4dd4703dcb504630220bbdca9130b1501ee7b25693134",
5
+ "name": "default",
6
+ "slots": [
7
+ "header",
8
+ "main",
9
+ "footer"
10
+ ],
11
+ "default": false,
12
+ "notes": "",
13
+ "skills": []
14
+ }
@@ -0,0 +1,10 @@
1
+ version: "1"
2
+ siteId: "starter-nextjs"
3
+ framework: next
4
+ source:
5
+ root: "./"
6
+ componentRegistry: "src/cms/registry.ts"
7
+ layoutRegistry: "src/app/layout.tsx"
8
+ routes:
9
+ cmsManaged: "/[...slug]"
10
+ rendererProtocol: stdio-json