@crombolo/api-delivery 0.42.1 → 0.44.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/NOTICE +9 -0
- package/package.json +4 -4
- package/src/forms.ts +5 -0
package/NOTICE
CHANGED
|
@@ -27,6 +27,15 @@ The Umbraco backoffice
|
|
|
27
27
|
@umbraco-cms/backoffice 18.2.0 — MIT — https://github.com/umbraco/Umbraco-CMS
|
|
28
28
|
@umbraco-ui/uui 2.0.2 — MIT — https://github.com/umbraco/Umbraco.UI
|
|
29
29
|
|
|
30
|
+
The Lato fonts
|
|
31
|
+
-------------
|
|
32
|
+
LatoLatin-*.woff2 — Copyright (c) 2011-2015 by tyPoland Lukasz Dziedzic, with
|
|
33
|
+
Reserved Font Name "Lato" — SIL Open Font License 1.1 — https://www.latofonts.com
|
|
34
|
+
Shipped unmodified, as @umbraco-ui/uui ships them, in @crombolo/backoffice-dist
|
|
35
|
+
under `dist/assets/fonts/`, with the licence beside them as `OFL.txt`
|
|
36
|
+
(`packages/backoffice-dist/licenses/Lato-OFL.txt` in this repository). The
|
|
37
|
+
fonts carry the same notice in their own metadata.
|
|
38
|
+
|
|
30
39
|
Static files from the Umbraco client source tree
|
|
31
40
|
------------------------------------------------
|
|
32
41
|
css/umb-css.css, css/rte-content.css, css/umbraco-blockgridlayout.css
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/api-delivery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. Umbraco's Content Delivery API for crombolo: published content and media as JSON, served from the published cache.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@crombolo/core": "0.
|
|
32
|
-
"@crombolo/contracts": "0.
|
|
33
|
-
"@crombolo/render": "0.
|
|
31
|
+
"@crombolo/core": "0.44.0",
|
|
32
|
+
"@crombolo/contracts": "0.44.0",
|
|
33
|
+
"@crombolo/render": "0.44.0"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/forms.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
allFormFields,
|
|
9
9
|
choiceOptions,
|
|
10
10
|
FORM_HONEYPOT_FIELD,
|
|
11
|
+
FORM_LIBRARY_FIELD,
|
|
11
12
|
FORM_PAGE_FIELD,
|
|
12
13
|
FORM_RENDERED_FIELD,
|
|
13
14
|
FORM_TOKEN_FIELD,
|
|
@@ -89,6 +90,9 @@ export function apiForm(form: SchemaForm, context: ApiFormContext): Record<strin
|
|
|
89
90
|
return defined({
|
|
90
91
|
...apiFormReference(form),
|
|
91
92
|
stepPages: form.stepPages ?? false,
|
|
93
|
+
// A Library form's own words (story 239); its recipients stay on the server.
|
|
94
|
+
heading: form.library?.heading,
|
|
95
|
+
introduction: form.library?.introduction,
|
|
92
96
|
submitLabel: form.submitLabel,
|
|
93
97
|
nextLabel: form.nextLabel,
|
|
94
98
|
previousLabel: form.previousLabel,
|
|
@@ -116,6 +120,7 @@ export function apiForm(form: SchemaForm, context: ApiFormContext): Record<strin
|
|
|
116
120
|
fields: defined({
|
|
117
121
|
[FORM_TOKEN_FIELD]: context.token,
|
|
118
122
|
[FORM_RENDERED_FIELD]: String(context.renderedAt),
|
|
123
|
+
[FORM_LIBRARY_FIELD]: form.library?.key,
|
|
119
124
|
}),
|
|
120
125
|
// Sent empty: a bot fills it. Absent when the form has no honeypot.
|
|
121
126
|
honeypot: form.honeypot ? FORM_HONEYPOT_FIELD : undefined,
|