Documentation menu
Documentation / Blocks & themes / blocks-proposal-pack
Blocks Proposal Pack
npm install @wabbit/tome-blocks-proposal-packFirst install from our registry?
Add our registry to the
.npmrcat the root of your project. Free packages install without a token.@wabbit:registry=https://npm.wabbit.com/
Proposal design blocks for Tome — cover, letter, chapter divider, stat strip, statement band, media spread, two-doors, checklist, monthly path, offer cards, a service-level plan picker, optional add-ons, numbered asks, and a closing letter for building client-facing proposals with @wabbit/tome-deals. Included free with deals.
Overview
Proposal design blocks — a cover, letter body, chapter divider, stat strip, statement band, media spread, two-doors, checklist, monthly path, offer cards, a service-level plan picker, optional add-ons, numbered asks, and a closing letter — for composing a client-facing Tome proposal on @wabbit/tome-deals. Bundled free with deals — listed in the Blocks storefront as included, not an addon, so proposal-authoring isn't gated behind a separate purchase.
What this is
Fourteen blocks that compose a designed proposal body, replacing (or sitting alongside — see below) the plain Lexical narrativeBody a @wabbit/tome-deals artifact type can carry. Every block renders on the @wabbit/tome-ui page grid plus this pack's own letter composition (src/styles/proposal-grid.css): the reading column sits on the 600px measure, centered on the grid's center line, with furniture (rail markers, asides, plates, device images) hung a fixed gap off the text — never pinned to a distant marginalia line.
This pack never imports `payload` at render time and never imports `@wabbit/tome-deals`. Data-bound figures (a proposal's total, deposit, balance, care-monthly amount) come only from a typed ProposalRenderContext the host passes through RenderBlocks({ context }) / RenderBlock({ context }) — see @wabbit/tome-blocks-proposal-pack/context. With no context (storefront gallery, admin preview), every bound value falls back to its authored/demo figure.
Blocks
| Slug | Name | Data-bound |
|---|---|---|
proposal-cover | Proposal Cover | {customer} {dealNumber} {total} {status} |
proposal-letter | Proposal Letter | — |
proposal-chapter | Proposal Chapter | — |
proposal-stat-strip | Proposal Stat Strip | tokens in values |
proposal-statement | Proposal Statement | tokens |
proposal-monthly | Proposal Monthly | {careMonthly} |
proposal-media-spread | Proposal Media Spread | — |
proposal-doors | Proposal Doors | — |
proposal-checklist | Proposal Checklist | — |
proposal-offers | Proposal Offers | {total} {base} {deposit} {balance} |
proposal-plans | Proposal Plans | ctx.careTier, ctx.depositAllowed, totals from {total} {deposit} |
proposal-addons | Proposal Add-ons | ctx.addOns, ctx.baseCents, ctx.depositFraction, ctx.depositAllowed, totals from {total} {deposit} |
proposal-asks | Proposal Asks | — |
proposal-close | Proposal Close | action panel via context slot |
Each block's fields are defined in src/blocks/<slug>/index.ts.
Theme hooks on `proposal-stat-strip`: stable data-* parts so a theme can restyle the strip without keying off its hashed classes or element structure — [data-stat-list] (the row of figures), [data-stat] (each figure), [data-stat-value] and [data-stat-caption] (its two parts), [data-stat-label] (the optional per-stat label, e.g. "Licensed", rendered above the value only when set), and [data-stat-header], a box-less (display: contents) wrapper around the section header strip (label and counter), present only when that strip shows. Target the strip's own text through it, e.g. [data-stat-header] p. The optional note (a source or compliance line, with the same tokens as the stats) renders under the figures as [data-stat-note], only when set. When the header does not show (no label and no counter, or toggled off) nothing renders in its place, so no gap is left above the figures, and the root carries [data-stat-strip-headless].
Install into an existing Payload project
npm install @wabbit/tome-blocks-proposal-pack@wabbit/tome-blocks-core and @wabbit/tome-blocks-house are required peers and install automatically (npm 7+/pnpm). This pack composes into @wabbit/tome-deals's layoutBlocks seam rather than a generic Payload blocks field — see "Wire the pack's blocks into @wabbit/tome-deals" below for the pattern; @wabbit/tome-blocks-core's "Add Tome blocks to an existing Payload project" covers the generic install/CSS/render steps that still apply (registry access, renderers + adaptRenderersForPayload, optional adapter/slug/grid overrides).
Load the design tokens once, in your site's global CSS — block CSS reads --tome-* custom properties with almost no fallback, so skipping this renders every block as bare, unstyled HTML:
@import '@wabbit/tome-blocks-core/styles.css';Registering everything from scratch:
// payload.config.ts
import { BlockRegistry, BundleRegistry } from '@wabbit/tome-blocks-core/registry'
import { register } from '@wabbit/tome-blocks-proposal-pack'
const blockRegistry = new BlockRegistry()
const bundleRegistry = new BundleRegistry()
register(blockRegistry, bundleRegistry)Register renderers once at app startup:
import { registerRenderers } from '@wabbit/tome-blocks-proposal-pack/render/register'
registerRenderers()Wire the pack's blocks into @wabbit/tome-deals via the hasLayout/layoutBlocks seam (deals never imports this pack itself):
import { createDealsLayer } from '@wabbit/tome-deals'
import { proposalCoverBlock, proposalLetterBlock /* …all fourteen */ } from '@wabbit/tome-blocks-proposal-pack'
createDealsLayer({
layoutBlocks: [proposalCoverBlock.block({}), proposalLetterBlock.block({}) /* …all fourteen */],
})Import the letter-composition stylesheet once, globally, on the proposal route only (see src/styles/proposal-grid.css's header for the full usage contract — the class must be applied to the SAME element that already carries the @wabbit/tome-ui grid class):
import '@wabbit/tome-blocks-proposal-pack/styles/proposal-grid.css'Render through this package's renderers (registry-free) with BOTH the platform grid class AND .proposalLayout on the SAME container, plus the context prop from @wabbit/tome-blocks-proposal-pack/context — the reading column resolves against neither grid alone:
import { RenderBlocks, adaptRenderersForPayload } from '@wabbit/tome-blocks-core/render'
import { renderers as proposalRenderers } from '@wabbit/tome-blocks-proposal-pack/render/register'
import type { ProposalRenderContext } from '@wabbit/tome-blocks-proposal-pack/context'
import gridStyles from '@wabbit/tome-ui/grid'
const blockComponents = { ...adaptRenderersForPayload(proposalRenderers) }
export function ProposalBody({ blocks, context }: { blocks: LayoutBlock[]; context: ProposalRenderContext }) {
return (
<RenderBlocks
blocks={blocks}
components={blockComponents}
gridClassName={`${gridStyles.grid} proposalLayout`}
context={context}
/>
)
}Every renderer is typed React.FC<BlockRenderProps<T>> — it destructures { block, className, index }, not the block's own fields spread at the top level. With no context (storefront gallery, admin preview) every data-bound value falls back to its authored/demo figure, so the same call renders fine there with context omitted. proposal-doors, proposal-letter, and proposal-media-spread's device/plate images need the upload relationship populated at depth >= 1 — a bare, unpopulated id resolves to nothing and logs a one-time console warning, per @wabbit/tome-blocks-core's default media adapter.
| Peer | Range | Required |
|---|---|---|
payload | >=3.67.0 | yes |
@payloadcms/richtext-lexical | >=3.67.0 | yes |
react | >=19.0.0 | yes |
react-dom | >=19.0.0 | yes |
@wabbit/tome-blocks-core | >=0.22.0 <1.0.0 | yes |
@wabbit/tome-blocks-house | >=0.3.0 <1.0.0 | yes |
Public API
| Export | Subpath | Description |
|---|---|---|
Block descriptors (proposalCoverBlock, …fourteen) + register(blockRegistry, bundleRegistry) | . | Payload block configs and bundle registration (bundle slug proposal-pack, tier: 'free') |
ProposalRenderContext, readProposalContext, formatMoneyCents, fillProposalTokens, resolveBoundAmount | . and @wabbit/tome-blocks-proposal-pack/context | The render-context contract and its helpers — see src/context.ts |
proposalTemplates, ProposalTemplate | . and @wabbit/tome-blocks-proposal-pack/templates | Starter block sequences (v1: "Letter with plates") |
Render components (ProposalCover, … fourteen) | @wabbit/tome-blocks-proposal-pack/render | Render components (legacy self-registering barrel) |
renderers map + registerRenderers() | @wabbit/tome-blocks-proposal-pack/render/register | Explicit renderer registration — prefer this from server/config contexts |
getDemoProps(blockSlug) plus per-block demo functions | @wabbit/tome-blocks-proposal-pack/demo | Demo-props dispatcher feeding the auto-gallery route |
proposalPackBlockMeta | @wabbit/tome-blocks-proposal-pack/meta | Payload-free block metadata for a storefront gallery |
src/styles/proposal-grid.css | @wabbit/tome-blocks-proposal-pack/styles/proposal-grid.css | The letter composition — import once, globally, on the proposal route |
Server / client posture
Every renderer is a static server-safe component that renders the props an author entered plus the render context. Both render subpaths (@wabbit/tome-blocks-proposal-pack/render/register and the legacy @wabbit/tome-blocks-proposal-pack/render barrel) load under plain Node — each renderer's per-block stylesheet ships precompiled as a JS module — so seed scripts and tests can import them. Keep payload.config.ts on the root entry point (block descriptors + register(), no React): that keeps React out of your config. Between the two render subpaths, prefer @wabbit/tome-blocks-proposal-pack/render/register: it has no import-time side effects. The one exception is proposal-plans's optional client choice: ProposalPlansInteractive.client.tsx is a small 'use client' component, mounted only when the block's allowClientChoice is on AND the live deal's ctx.status === 'sent'; with client choice off, or any other status (draft/accepted/paid), or no live context at all (storefront gallery, admin preview), proposal-plans renders its plan grid and totals strip entirely server-side, with no client JS required.
`proposal-plans` DOM contract (the host app reads this at signing): each plan's radio is <input type="radio" name="tome-proposal-plan" value={plan.key} /> — the checked radio's value is the client's chosen plan key. On every change the component dispatches window.dispatchEvent(new CustomEvent('tome:proposal-plan-change', { detail: { key } })) so a page-level listener (e.g. the portal's summary/checkout panel) can react without polling the DOM.
`proposal-addons` DOM contract (the host app reads this at signing): the add-on list only takes input while the deal is status: 'sent'. Its wrapper carries data-tome-proposal-addons="choice"; when that element is absent the client was offered no choice and the host should sign with the deal's defaults. Each add-on is <input type="checkbox" name="tome-proposal-addon" value={addOn.key} />, and the checked boxes' values are the chosen keys (none checked means none chosen). Every change dispatches window.dispatchEvent(new CustomEvent('tome:proposal-addons-change', { detail })) with detail = { keys, totalCents, todayCents, goLiveCents }; proposal-plans' totals strip listens while the proposal is open, so both strips agree on one page. Trust only the keys: the host prices them from its own deal record, never from the page.
Add-on context contract. The add-ons live on the host's deal, not in the block. The host passes ctx.addOns ({ key, label, description, priceCents, selected }[], with selected = the defaults before signing and the client's chosen set after), ctx.baseCents (the price before add-ons) and optionally ctx.depositFraction. ctx.totalCents must already include every selected add-on. Bind the core offer card or cover figure to base so it keeps its own price once an extra is added; total is what the client pays.
Design source
Design converged on a single "Letter with plates" treatment: one reading column on the @wabbit/tome-ui page grid, with furniture (rail markers, asides, plates, device images) hung a fixed gap off the text rather than pinned to a distant marginalia line. Placement CSS is tokenized onto @wabbit/tome-ui tokens — see src/styles/proposal-grid.css's header for the full token-mapping table.
Block reference
proposal-cover
A proposal's header — eyebrow, title, and a row of label/value meta items, each optionally bound to the live deal ({customer}, {dealNumber}, {total}, {status}).
- When to use
- As the first block in every proposal layout
- Anywhere a client-facing deal page needs an identity header before its body
- Page types
- dossier
- How to use
Author the eyebrow and title (both support {customer}/{date} tokens filled from the render context when one is present). Add meta items as label/value pairs; set each item's bind to pull its value live from the deal instead of the authored text.
- Pairs with
- proposal-letter
- proposal-stat-strip
- Precedes
- proposal-letter
- Avoid when
- The page is not backed by a @wabbit/tome-deals artifact — the bound meta items have nothing to read
- Register in
dossier
proposal-letter
The workhorse block for a proposal's prose — most of a proposal is a sequence of these, each an addressable letter section with its own optional rail marker and hung aside.
- When to use
- For any prose section of a proposal — the opening letter, a scope explanation, a closing thought before the offers
- When a section needs a pull quote, supporting image, or short note beside the text rather than inline
- Page types
- dossier
- How to use
Write the body in the proposal Lexical editor. Add a marker (number + label) to give the section a rail identity at lg+; the marker is hidden below 1024, where the section's own heading carries it instead. Add an aside (pull/image/note) and choose its position; toggle hangFromBox when the aside sits beside a hung box (72px clearance) instead of plain text (48px).
- Pairs with
- proposal-cover
- proposal-chapter
- proposal-stat-strip
- Avoid when
- The content is a numbered/structured list — prefer proposal-checklist or proposal-asks for those
- Register in
dossier
proposal-chapter
A phase break in a long proposal — a big outlined numeral plus a short headline that resets the reader's attention before the next part starts.
- When to use
- Between clearly distinct parts of a proposal (e.g. "Part one — build first" / "Part two — scale")
- Sparingly — a proposal with a chapter before every letter section reads as fragmented, not structured
- Page types
- dossier
- How to use
Set the numeral (e.g. "1"), eyebrow, and headline. Add intro rich text only when the phase needs a sentence of framing before its first letter section — most chapters need none.
- Pairs with
- proposal-letter
- Precedes
- proposal-letter
- Avoid when
- The proposal is short enough that a single letter sequence reads cleanly without phase breaks
- Register in
dossier
proposal-stat-strip
A row of 2-4 big authored numbers with captions — the proposal's 'here are the numbers that matter' beat, shown three-up from 768px and stacked below it.
- When to use
- Right after the cover or an early letter section, to land the proposal's headline numbers before the prose explains them
- Page types
- dossier
- How to use
Add 2-4 stats, each a value (mark part of it as the accent span) and a caption. Add a section header when the strip needs its own label above the figures; without one the figures sit at the top with no gap. Add a note for the source of the figures or a compliance line.
- Pairs with
- proposal-cover
- proposal-letter
- Avoid when
- The numbers are prices tied to the deal total/deposit/balance — use proposal-offers or proposal-monthly, which can bind to the deal
- Register in
dossier
proposal-statement
The proposal's single loudest claim, set on a colored full-bleed band — a big line with an accent-highlighted phrase, a subline, and a short body paragraph.
- When to use
- Once per proposal, at the moment the argument needs its most memorable line (e.g. a break-even statement)
- Page types
- dossier
- How to use
Write the big line and mark the phrase to accent. Add a subline and a body paragraph. Choose the band background (default the secondary band); add a marker if the section needs a rail identity at lg+.
- Pairs with
- proposal-letter
- proposal-chapter
- Avoid when
- Used more than once — it loses its weight if every section gets the same treatment
- Register in
dossier
proposal-monthly
A 2-4 stage path showing how a recurring price steps over time — each stage an amount (authored or bound to the deal's careMonthly figure) with a note, the last stage visually emphasized.
- When to use
- Whenever a proposal includes a recurring/care-plan cost that changes after an intro period
- Page types
- dossier
- How to use
Write an intro heading and text, then add 2-4 stages: a label, an amount (bind to careMonthly or author it directly), a suffix, and a short note. The final stage is emphasized automatically.
- Pairs with
- proposal-offers
- proposal-close
- Avoid when
- The proposal has a single flat price with no recurring component — use proposal-offers instead
- Register in
dossier
proposal-media-spread
A framed product/device image beside a short pitch and a CTA — the proposal's "see it, don't just read about it" beat.
- When to use
- When the proposal is selling something visual (an app, a site, a physical product) and a picture does more work than another paragraph
- Page types
- dossier
- How to use
Upload an image and choose its frame (phone, browser, or none). Write an eyebrow, headline, and short text, add a CTA, and an optional fine-print note. The device hangs left of the measure at ≥1024, never past the page gutter.
- Pairs with
- proposal-letter
- proposal-doors
- Avoid when
- There is no meaningful visual to show — an empty or placeholder frame reads worse than no spread at all
- Register in
dossier
proposal-doors
A small wall of 2-3 option cards, each an image, a kicker, a title, and body copy — for laying two or three paths side by side so the client can compare them at a glance.
- When to use
- When the proposal genuinely offers alternative directions (not tiers of the same thing — use proposal-offers for pricing tiers)
- Page types
- dossier
- How to use
Add 2-3 cards, each with an image, a short kicker, a title, and a body paragraph. Cards lay out two-up from 768px.
- Pairs with
- proposal-letter
- proposal-chapter
- Avoid when
- The options are priced tiers of the same offer — use proposal-offers instead
- Register in
dossier
proposal-checklist
A bordered plate of list items — a bold lead-in plus text per item, check- or dash-marked, with an optional eyebrow, trailing note, and a hung aside beside it. The plate hangs by its own padding so its text still aligns to the measure.
- When to use
- "What's included" / "What's not included" lists
- "What Part two does" style scope lists
- Page types
- dossier
- How to use
Set the marker style (check for inclusions, dash for exclusions or a plainer list). Add items, each an optional bold lead-in and body text. Add a trailing note and, when the section needs one, an aside beside the plate — the row keeping the full 72px clearance the mockup calls for.
- Pairs with
- proposal-letter
- proposal-offers
- Avoid when
- The list is numbered steps rather than inclusions — use proposal-asks for a numbered list
- Register in
dossier
proposal-offers
The proposal's price cards — every price on the page a client can act on. Each card's price can bind to the deal's total/deposit/balance figures (the checkout's numbers), or be authored directly for a card that isn't the live offer.
- When to use
- The one section of a proposal that states what it costs
- Page types
- dossier
- How to use
Add one or more cards: kicker, title, a price (choose the binding — total/deposit/balance pull the live deal figure; authored is a fixed number), an optional struck-through amount, a note, and terms. Mark one card highlighted. Choose stack (default, hangs like a plate) or side-by-side arrangement. When bound, the deal's figure always wins over any authored amount — admin shows this as 'Bound to the deal — edit the deal total, not this.'
- Pairs with
- proposal-checklist
- proposal-monthly
- proposal-close
- Precedes
- proposal-close
- Avoid when
- The proposal has a recurring/staged price rather than a single offer — pair with or prefer proposal-monthly
- Register in
dossier
proposal-plans
The proposal's recurring service-level picker. Each plan is a priced column with its own included-items list; the plan this proposal is set to (bound to the deal's care tier, or authored) is highlighted, and the client can change their choice while the proposal is still open (status: sent).
- When to use
- The proposal has a recurring service-level decision (Essential/Plus/Premier-style tiers) the client picks from or confirms
- Page types
- dossier
- How to use
Add one plan per column (name, price, summary, included items) — the first plan's included list reads "What's included"; every later plan defaults to "Everything in {previous plan}, plus" unless you author its own label. Choose the selected-plan binding (the deal's live care tier, or an authored key) and, once the proposal is sent, optionally let the client change their pick — the host app reads the checked radio at signing. Turn on the totals strip to show today / at go-live / then monthly under the columns.
- Pairs with
- proposal-offers
- proposal-monthly
- proposal-checklist
- proposal-close
- Precedes
- proposal-close
- Avoid when
- The proposal has a single one-time price rather than a recurring service level — prefer proposal-offers
- Register in
dossier
proposal-addons
Lists the deal's optional add-ons. While the proposal is open (status: sent) each one has a checkbox and the strip underneath recomputes the total, today's payment and the go-live balance as the client ticks; the host signs with the ticked set and prices it on the server. Before sending it shows the defaults, after signing the chosen set.
- When to use
- The proposal has an optional extra the client can take now or later, priced on top of the main build
- Page types
- dossier
- How to use
Add the extras to the deal itself (key, label, price, selected by default) — the block only renders them, so the checkout always charges what the client saw. Bind the main build's offer card or cover figure to Base price so it keeps its own price once an extra is added; Deal total then includes whatever the client ticked.
- Pairs with
- proposal-offers
- proposal-plans
- proposal-close
- Precedes
- proposal-close
- Avoid when
- The extra is a recurring service level — prefer proposal-plans
- The deal offers no add-ons — the block renders nothing
- Register in
dossier
proposal-asks
"What I need from you" — a numbered list of concrete asks (access, assets, decisions, approvals) so the client knows exactly what unblocks the work.
- When to use
- Near the end of a proposal, right before the offers or the close, to make the next steps concrete
- Page types
- dossier
- How to use
Add items, each a bold lead-in and body text; choose one or two columns. Items number themselves with leading zeros.
- Pairs with
- proposal-offers
- proposal-close
- Precedes
- proposal-close
- Avoid when
- The list is inclusions/exclusions rather than actions the client must take — use proposal-checklist instead
- Register in
dossier
proposal-close
The last block in a proposal — a closing paragraph, a signature, and (via the host's render context) the accept/sign action panel.
- When to use
- As the final block in every proposal layout
- Page types
- dossier
- How to use
Write the closing rich text and set the signature's name, title, and style. Set action placement to 'after' to render the portal's action panel here (only appears when the host passes a live renderAction in context); 'none' renders no action slot at all.
- Pairs with
- proposal-offers
- proposal-asks
- Register in
dossier
Exports
| Import path |
|---|
@wabbit/tome-blocks-proposal-pack |
@wabbit/tome-blocks-proposal-pack/render |
@wabbit/tome-blocks-proposal-pack/render/register |
@wabbit/tome-blocks-proposal-pack/context |
@wabbit/tome-blocks-proposal-pack/templates |
@wabbit/tome-blocks-proposal-pack/demo |
@wabbit/tome-blocks-proposal-pack/meta |
@wabbit/tome-blocks-proposal-pack/styles/* |
Changelog
0.6.xMinor
New
proposal-addonsblock: optional priced extras a client can tick before signing, with a live strip showing the new total, today's payment and the go-live balance.The add-ons come from the deal through the render context (
ctx.addOns,ctx.baseCents,ctx.depositFraction), never from the block, so the host prices exactly what the client saw. While a proposal is sent, each add-on is a checkbox namedtome-proposal-addoninside adata-tome-proposal-addons="choice"wrapper, and every change dispatchestome:proposal-addons-change.Before signing the block shows the defaults; after signing, the chosen set.
Offer-card prices and cover figures gain a
basebinding (and a{base}token): the price before add-ons, so the card for the core work keeps its own price once an extra is added.totalstill means what the client pays.Nothing changes for existing proposals: the new context fields are optional, and a context without them renders exactly as before. No consumer action is needed unless you want to offer add-ons.
4 fixes (0.6.1 – 0.6.4)
- 0.6.4
Admin labels, field descriptions, demo content and messages now use American spellings.
- 0.6.3
proposal-plans: the "This proposal" tag moves under the plan name when they don't fit on one line.
The name used to shrink instead, so a short name like "Tend" broke mid-word at narrower desktop widths.
- 0.6.2
proposal-asks: the per-row lead-in is now optional.
This matches proposal-checklist. A row can be plain text and the numeral still marks it, so copy written to a no-bold-lead-in voice rule never has to fake a lead-in.
Existing rows render unchanged.
- 0.6.1
The plans block's totals strip now follows the client's add-on choice on the same page, so its "today" and "at go-live" figures match the add-ons strip.
The add-ons change event (
tome:proposal-addons-change) now carries the new figures (totalCents,todayCents,goLiveCents) alongsidekeys. While a proposal is open, the plans strip listens for it.Existing listeners that read only
keysare unaffected.
0.5.xMinor
New optional fields and theme hooks: an inline call link on the split hero, image labels, a quotes-grid testimonial layout, an open-first FAQ, and a stat-strip note.
marketing-starter, `high-impact-hero`: the
splitvariant now showscallAction(label,phone) and renders it as an inlinetel:link after the buttons, for example "or call (555) 010-2030" (data-hero-call). An empty label reads "or call" after buttons and "Call" without them.In every variant that shows supporting images,
supportingImages[]gainslabel, a short tag set over the image such as "Illustrative photo" (data-compliance-label), andcaptionMeta, a smaller second caption line (data-caption-meta). Every variant that renders actions marks its action rowdata-hero-actions(quick-ask already did): the row holding the buttons and the inline call onsplit, otherwise the button row itself.The attribute is the only markup change.
marketing-starter, `testimonial`: each entry gains an optional
complianceLabel, shown with its quote in every layout (data-compliance-label). Thelayoutselect addsquotes-grid: every testimonial becomes a short quote in a responsive grid, with an optionalstattile (value,text,label,position) placed at its 1-based cell among the quotes, default 2.Hooks:
data-testimonial-layout="quotes-grid",data-testimonial-cellon every cell,data-testimonial-staton the tile,data-testimonial-stat-valueon its value.marketing-starter, `faq`: an
openFirstcheckbox (default off) renders the first question open and marks the root withdata-faq-open-first. Every FAQ now carries part hooks:data-faq-itemon each<details>,data-faq-questionon its<summary>, anddata-faq-answeron a new plain<div>around each answer (the answer's own element comes from your rich-text adapter, which accepts only a class name).proposal-pack, `proposal-stat-strip`: an optional
noterenders a source or compliance line under the figures (data-stat-note), with the same tokens as the stats. When the section header does not show, the root now carriesdata-stat-strip-headless; nothing renders in the header's place, so no gap is left above the figures.Every new field is optional, and the rendered markup is unchanged while they are empty; the additions to existing output are the FAQ part-hook attributes, the unstyled answer wrapper, the
data-hero-actionsattribute on hero action rows, and thedata-stat-strip-headlessattribute on stat strips that already had no header. The new fields add columns, so run your Payload migration and regenerate types.extras: the shared
HeroLinkListaccepts an optionalcontainerData(extradata-*attributes for its row element). Omitted, the row renders exactly as before.
2 fixes (0.5.1 – 0.5.2)
- 0.5.2
README: subpath and file mentions are written package-qualified (for example
@wabbit/tome-x/render) or as code text, so crawlers no longer resolve them as site URLs. - 0.5.1
Block descriptions read as plain descriptions of what each block shows, not developer notes.
53 block and variant descriptions carried package names, "Fully static — no peer required",
data-variant, slots and hydration details. These are what a visitor reads in a block catalog, so each now says in plain words what the block shows and when to use it.The developer facts aren't lost: each one moves into the block's
usage.howToUse(or, where a block has none, a code comment above its description), and the 20 thathowToUsealready covered are simply dropped from the description. CTA'swith-formvariant no longer claims to render lead-capture fields: it says it leaves room for a form the site supplies, which is what it does.
0.4.xMinor
proposal-stat-stripstats take an optionallabel(e.g. "Licensed"), rendered above the value with a[data-stat-label]hook.The field is optional and renders nothing when empty, so existing strips are unchanged. The label accepts the same deal tokens as the value and caption.
0.3.xMinor
Breaking: block stylesheets are now per-block (`.tome-css`). Each block's CSS ships only on pages that render it, instead of in every page's CSS bundle.
The 14 stylesheets moved from
X.module.csstoX.tome-css, and each renderer renders<BlockStyles sheet={styles} />from@wabbit/tome-blocks-core/block-styles.Required in the consuming site: wrap next.config with
withTomeBlockStyles(@wabbit/tome-blocks-core/next, blocks-core 0.22.0 or later); without it the.tome-cssimports fail to build. See the blocks-core README, "Per-block stylesheets".- The
@wabbit/tome-blocks-corepeer range is now>=0.22.0 <1.0.0. - The shared
styles/proposalGrid.module.css(the grid every proposal block composes from) is nowstyles/proposalGrid.tome-css; each block renders it alongside its own stylesheet, and React dedupes it to one copy per page. The globalstyles/proposal-grid.cssthat sites import is unchanged. Exported names and props are unchanged. - Block CSS now loads after all bundled CSS. A site-level rule that overrode one of this pack's classes at equal specificity, and won only by loading later, no longer wins.
- The
6 fixes (0.3.1 – 0.3.6)
- 0.3.6
proposal-stat-stripexposes stabledata-*part hooks for themes:data-stat-list,data-stat,data-stat-value,data-stat-captionanddata-stat-header.The hooks are pure additions: classes, styles and layout are unchanged.
data-stat-headeris adisplay: contentswrapper around the section header strip, rendered only when the strip shows, so it adds no box; target the strip's text through it (for example[data-stat-header] p). - 0.3.5
Published packages now contain compiled JavaScript and type declarations under a one-line license banner, and no longer include source maps.
What you install: one compiled
.js(ESM) and.cjs(CommonJS) file per source module, its.d.ts/.d.ctsdeclarations, and the stylesheets, fonts and other assets a package already shipped. Every JavaScript module opens with a comment naming the package and its license:/*! @wabbit/<package> — © Wabbit, LLC. Wabbit Tome Commercial License (see LICENSE.md). Not for redistribution. */.The
.mapfiles and thesourceMappingURLcomments that pointed at them are gone, which roughly halves the size of each tarball.Debugging: the code is still unbundled and unminified, one readable file per module, so a stack trace points at real code with real names. Line numbers in a stack trace are one higher than before, because of the banner line.
A
'use client'directive stays the first statement of its module (the banner is a comment above it), so React Server Component boundaries are unchanged.No API change, no runtime behavior change, and nothing to do on upgrade.
In
@wabbit/tome-blocks-gallery, the source snapshotsextractGallerySourcewrites from an installed pack leave out the license banner line, so a component or config snapshot starts at the code and a paid block's preview shows its first 15 lines of real code. - 0.3.4
The Proposal Media Spread call-to-action link now uses the
rela registered CTA resolver supplies.With no resolver registered the markup is unchanged: a new-tab link still gets
rel="noopener noreferrer". Needs@wabbit/tome-blocks-housewith CTA resolver registration to take effect. - 0.3.3
The plans block's preview and admin hints now use the generic Essential, Plus and Premier service levels.
The preview prices are illustrative, and the plan keys in the preview data are renamed to match. The selectedBind field and its stored values are unchanged.
- 0.3.2
The pack works on a stock Next.js site: its per-block stylesheets now ship precompiled, so the site needs no next.config plugin.
Each renderer's
.tome-cssstylesheet is compiled when the pack is built, into a JS module next to it (<Name>.tome-css.js/.cjs), and the renderers import that. A site no longer has to wrap next.config withwithTomeBlockStylesto use the pack, and./renderand./render/registernow load under plain Node, so seed scripts, tests and the Payload CLI can import them.Each block's CSS is still inlined only on pages that render the block. A site that already uses
withTomeBlockStylesneeds no change.Scoped class names change once, because they are now keyed on the package rather than on where it is installed. The raw
.tome-cssfiles stay in the package as readable source. - 0.3.1
Solid CTAs and tags filled with the accent text ink now use the page color as their label instead of
on-accent, which pairs with the accent fill and measured about 2:1 on the text ink. campaign-hero, campaign-close and campaign-tiers also read the band's accent ink and its label on solid-dark bands.
0.2.xMinor
New block:
proposal-plans, the "choose your service level" picker — one to four priced plan columns (e.g. Care/Tend/Grow) with the level a proposal is set to highlighted, an optional client radio choice (mounted only while the deal issent), and a running-total strip (today / at go-live / then monthly).Adds two new optional
ProposalRenderContextfields —careTieranddepositAllowed(defaults totrue) — read byreadProposalContext; both are additive and backward compatible.ProposalStatement: the big statement no longer overflows narrow phones.
Its type floor is now min(4.5rem, 20vw) instead of a flat 4.5rem — it only bites below ~400px (320px → 64px, 390px → 78px at an 18px root), so tablet and desktop sizes are unchanged, and an unbreakable long word wraps as a last resort instead of pushing the page sideways.
register()is now built with blocks-core'screatePackRegistrar, and media fields take theirrelationTofrommediaRelation(config)instead of a localas CollectionSlugcast.Behavior and signatures are unchanged. The
@wabbit/tome-blocks-corepeer floor goes up to>=0.18.0because that is the first version exporting the helpers.
4 fixes (0.2.1 – 0.2.3)
- 0.2.3
CSS files are copied to
dist/by a post-build script instead of a tsuponSuccesshook, whose output the type-declaration phase can remove. - 0.2.2
proposal-stat-strip and proposal-monthly size their columns to the item count (2–4) instead of a fixed three.
A two-stat strip or two-stage path no longer leaves an empty third column and sits off-center, and a four-item one no longer wraps.
- 0.2.2
Signature field hints no longer carry a personal name.
- 0.2.1
proposal-plans: the plan columns and totals now span the content track (subgrid root, like proposal-monthly) instead of the 600px reading measure, where three cards were ~200px each and broke words mid-word on desktop.
The note stays on the measure.
0.1.xMinor
Initial release.
Twelve free-tier proposal blocks (cover, letter, chapter, stat strip, statement, monthly, media spread, doors, checklist, offers, asks, close) on the house grid, a
ProposalRenderContextfor live deal figures and{token}fills, and the "Letter with plates" starting template.
2 fixes (0.1.1 – 0.1.2)
- 0.1.2
Tome block packs now install into an existing Payload project the way the README says: one
npm install, one CSS import, no undocumented steps.Proven by the new fresh-install smoke test (
scripts/blocks-fresh-install-smoke.mjs) against a brand-newcreate-payload-appwebsite-template site.Consumers: list `@wabbit/tome-blocks-core` and `@wabbit/tome-ui` in your own `package.json` if you import from them (npm 7+ and pnpm install required peers automatically, so a fresh
npm installof a pack already brings them in).- One shared `blocks-core` per site. Every pack,
blocks-houseandblocks-extrasnow declare@wabbit/tome-blocks-core(and, where used,-house/-extras) as a required peer with an explicit range instead of a regular dependency, so a site gets exactly one hoisted copy and one adapter registry. - No more ERESOLVE in plain Payload sites.
blocks-coreno longer declares@wabbit/tome-coreor@wabbit/tome-catalog(their optional peer graph pulledbetter-auth→@sveltejs/kit→vite@8against a site'svite@7). Theblock-bundleproduct type still auto-registers when both are installed; new structural typesBlockBundleProductTypeDeps,BlockBundleProductTypeRegistryLike,RegisterProductTypeHooksLike. - Tokens in one line:
@import '@wabbit/tome-blocks-core/styles.css';(new export; imports@wabbit/tome-ui/tokens).@wabbit/tome-uiis now a required peer ofblocks-core. - Rich text and images render with no adapter setup. Built-in defaults render Lexical through
@payloadcms/richtext-lexical/reactand resolve populated Payload uploads; an unpopulated upload id warns once in every environment (previously content vanished silently in production). Registered adapters still win. - Payload's spread-props convention: new
adaptRenderersForPayload(renderers)/adaptRendererForPayload(Component)wrap any pack'srenderersmap for a site that renders<Block {...block} />. - Slug collisions with Payload's templates (
cta,banner,archive,content,code): newapplyBlockSlugOverrides(blocks, overrides)andremapRendererSlugs(renderers, overrides)(@wabbit/tome-blocks-core/slugOverrides). Defaults are unchanged; no stored data migrates. - `blocks-house` owns
gsapandhls.jsas dependencies (previously optional peers that still broke the build when missing), and registers GSAP'sScrollTriggeritself before first use. - Full-bleed bands actually span the grid. Eight
pinnedBandblocks (cinema-pack AmbientBand, MediaPanel, PullInterlude, SceneCaption, ScenePlate, ScrubStory, StatementBand; blocks-house FullBleedInterstitial) now declaregrid-column: 1 / -1at their root as the contract requires. Visible change: inside a tome-ui.grid, these render edge to edge where they were previously squeezed to content width. - `@wabbit/tome-ui`:
.griddeclaresreading-start/reading-endbelow 768px (aliased to the content column), so blocks placed on the reading column no longer collapse to a sliver on phones. - Every pack README gains an "Install into an existing Payload project" section and a peer table that matches
package.json;blocks-core's README carries the full walkthrough.
- One shared `blocks-core` per site. Every pack,
- 0.1.1
Three layout fixes from the first real proposal.
- An aside beside a hung box (a checklist plate with its "what it does not touch" note) now stacks under the box between 1024px and 1279px, and hangs beside it from 1280px. At 1024 the side track left the aside 57px wide, and it overflowed the page by 13px.
- The statement band's body stays flush with its headline even when the host's rich-text adapter wraps it in a centering container (it sat about 190px to the right inside the wide column).
- Checklist plates and offer cards use 20px inner padding below 1024px and match the 50px hang from 1024px up, where their text has to line up with the measure. At 50px everywhere, a phone squeezed a plate's text column to about 150px.