@jtakeit/kit 0.10.0 → 0.11.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/lib/catalogue.mjs +5 -0
- package/lib/lead/render.mjs +1 -1
- package/package.json +1 -1
- package/types/lead.d.ts +7 -0
package/lib/catalogue.mjs
CHANGED
|
@@ -1533,6 +1533,11 @@ for (const page of pages) {
|
|
|
1533
1533
|
// for either way rather than reported as text nobody can touch.
|
|
1534
1534
|
for (const key of ['src', 'alt', 'poster']) onThePage.delete(`${itemPath}.${key}`);
|
|
1535
1535
|
});
|
|
1536
|
+
// The wall itself may be annotated too — the belt the logos run on,
|
|
1537
|
+
// the frame a gallery sits in — and a tap on it opens the same
|
|
1538
|
+
// gallery with nothing selected. Allowed, not asked for: a wall whose
|
|
1539
|
+
// every picture is tappable is complete without it (25 October 2026).
|
|
1540
|
+
onThePage.delete(path);
|
|
1536
1541
|
continue;
|
|
1537
1542
|
}
|
|
1538
1543
|
|
package/lib/lead/render.mjs
CHANGED
|
@@ -145,7 +145,7 @@ export function renderLeadForm(props) {
|
|
|
145
145
|
</div>
|
|
146
146
|
|
|
147
147
|
${asks.map((ask) => `<div class="field">
|
|
148
|
-
<label class="field__label" for="lead-${esc(ask.key)}" data-jtk-fixed>${esc(ask.label)}${ask.required ? ' <span aria-hidden="true">*</span>' : ''}</label>
|
|
148
|
+
<label class="field__label" for="lead-${esc(ask.key)}"${ask.path ? at(ask.path) : ' data-jtk-fixed'}>${esc(ask.label)}${ask.required ? ' <span aria-hidden="true">*</span>' : ''}</label>
|
|
149
149
|
${askControl(ask)}
|
|
150
150
|
</div>`).join('\n ')}
|
|
151
151
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jtakeit/kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "The framework-free half of a site on jtakeit: the booking form as an element and as markup, for Astro through @jtakeit/astro and for any other generator directly",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/types/lead.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
export interface Ask {
|
|
2
2
|
key: string;
|
|
3
3
|
label: string;
|
|
4
|
+
/**
|
|
5
|
+
* Where the words over the field come from, when the site keeps them in
|
|
6
|
+
* its content (a `<key>_label` field of the collecting block, say) and
|
|
7
|
+
* the owner may tap them. Without it the label is drawn fixed, as the
|
|
8
|
+
* catalogue declared it.
|
|
9
|
+
*/
|
|
10
|
+
path?: string;
|
|
4
11
|
kind: string;
|
|
5
12
|
required?: boolean;
|
|
6
13
|
max?: number;
|