@tonycodes-ui/mortar 0.15.0 → 0.16.1
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/CHANGELOG.md +2 -7
- package/catalog.json +360 -360
- package/cli/audit.mjs +98 -6
- package/cli/data.mjs +5 -0
- package/cli/mcp.mjs +1 -1
- package/cli/packet.mjs +17 -0
- package/dist/agent-data.json +1 -1
- package/dist/display.d.ts +3 -1
- package/dist/display.js +5 -2
- package/dist/ecommerce.d.ts +2 -1
- package/dist/ecommerce.js +5 -4
- package/dist/icons.d.ts +4 -0
- package/dist/icons.js +4 -0
- package/dist/image.d.ts +32 -0
- package/dist/image.js +42 -0
- package/dist/marketing.js +7 -1
- package/docs/agents.md +4 -2
- package/docs/email.md +10 -0
- package/package.json +1 -1
- package/skills/mortar/SKILL.md +3 -2
- package/src/display.tsx +13 -4
- package/src/ecommerce.tsx +8 -15
- package/src/foundation.css +16 -0
- package/src/icons.tsx +11 -0
- package/src/image.tsx +79 -0
- package/src/marketing.tsx +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,16 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Mortar follows [semantic versioning](https://semver.org/). Before 1.0, a minor release may contain breaking changes, and it says so. Each release is published from its `v<version>` tag to [npmjs.com](https://www.npmjs.com/package/@tonycodes-ui/mortar) with npm provenance. Its GitHub release carries the exact archive and a `provenance.json` with the commit and SHA-512 integrity.
|
|
4
4
|
|
|
5
|
-
## 0.
|
|
5
|
+
## 0.16.1 (2026-11-07)
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- `emailTheme(brand?)` resolves a `BrandDefinition` to literal light-appearance colours and font stacks, as `tokens.css` does. Derived tints are computed in JS, and `oklch()`, `oklab()`, `hsl()` and `rgb()` convert to hex.
|
|
11
|
-
- `EmailShell`, `EmailHeading`, `EmailText`, `EmailButton`, `EmailLink` and `EmailCode` lay out in tables, with spacing on cells so Outlook for Windows keeps it.
|
|
12
|
-
- `renderEmail` returns the HTML and its plain-text alternative.
|
|
13
|
-
- `EmailCallout` (Mortar's tones), `EmailDivider` and `EmailSummary` (receipt items, cost lines and total, read as rows in plain text). The callout and summary follow the shell's `dir`.
|
|
14
|
-
- Templates: `VerifyEmail` (a code, a link or both), `MagicLink`, `PasswordReset`, `Invite`, `Receipt` and `Notification`. Each says why it was sent. See [Transactional email](docs/email.md).
|
|
9
|
+
- **Fallbacks for images that fail to load** ([#67](https://github.com/tonycodes/mortar/issues/67)). The image objects that GridList (`cover`), ProductList, ProductOverview, ProductQuickView, ShoppingCart and OrderHistory take accept `fallbackSrc` and `fallback`. If `src` fails or is empty, `fallbackSrc` is tried once. If that fails too, or there isn't one, `fallback` (any node) or a placeholder icon fills the image's reserved box, so nothing shifts. The placeholder is named by the image's `alt`, with no duplicate label. Each source is tried at most once, so a broken fallback can't loop, and a new `src` starts over. A broken Avatar photo now shows the avatar's initials or icon, and a broken LogoCloud logo shows the company name.
|
|
15
10
|
|
|
16
11
|
## 0.11.0 (2026-10-20)
|
|
17
12
|
|