@contentrain/astro-kit 0.29.2 → 0.29.3

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.
@@ -3,8 +3,9 @@
3
3
  // and the form. The form is a Contentrain Studio form (the starter's
4
4
  // StudioForm): its fields, spam protection and notifications live in Studio,
5
5
  // and submissions arrive there for review — no form plugin, no mail server.
6
- // Until the site is bound to a Studio project the form renders nothing and the
7
- // contact details still show, and so do the section's heading and introduction (only the form goes). When the owner chose another home for forms at
6
+ // Until the site is bound to a Studio project the form's place links to the
7
+ // form on WordPress or shows an address to write to (the starter's formHome); with
8
+ // neither it renders nothing and the contact details still show, and so do the section's heading and introduction (only the form goes). When the owner chose another home for forms at
8
9
  // migration (site.config.ts `features.forms`), the same place holds a form
9
10
  // that posts to their form service, an address to write to, or a link to the
10
11
  // form on WordPress.
@@ -74,7 +75,7 @@ interface Props {
74
75
  }
75
76
 
76
77
  const { model, heading, intro, formHeading, details = [], layout, align, tone, headingPlace = 'top', id = 'contact' } = Astro.props
77
- // Nothing to render (Studio not bound yet): a split would leave an empty column — the details stand alone.
78
+ // Nothing to render (Studio not bound and no fallback): a split would leave an empty column — the details stand alone.
78
79
  const formShown = formHome(model) !== null
79
80
  const bare = contactSectionBare({ formShown, heading, intro, details })
80
81
  const s = contact({ layout: formShown ? layout : 'stacked', align, tone })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentrain/astro-kit",
3
- "version": "0.29.2",
3
+ "version": "0.29.3",
4
4
  "license": "MIT",
5
5
  "description": "Copy-in Astro components for Contentrain sites (shadcn model): typed props, tailwind-variants, zero JavaScript by default — with a machine-readable catalog",
6
6
  "type": "module",
@@ -42,7 +42,7 @@
42
42
  "mapping"
43
43
  ],
44
44
  "dependencies": {
45
- "@contentrain/types": "1.56.0"
45
+ "@contentrain/types": "1.56.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^22.10.0",