Document Creator 0.4.7: Needs PhoenixKit 1.7.144
Document Creator 0.4.7 has no visible change for a running site. The module now requires PhoenixKit 1.7.144 or later in the 1.7 series, up from 1.7.118.
The edit and view links in each row’s menu now set their new-tab attributes through PhoenixKit’s own component support instead of a workaround. They behave as before.
Upgrading
Update PhoenixKit to 1.7.144 or later before or together with this release.
Full release notes: Document Creator 0.4.7
0.4.7 · 16 June 2026
Added
- Per-slot
annotatedflag for image variables. Template authors can now toggle whether each{{ image: … }}/{{ images: … }}slot includes annotation-flattened images (true, default and existing behaviour) or the raw photo (false). The flag lives in the variable’sconfigjsonb, is edited through a toggle in the template editor, and is surfaced string-keyed viaDocuments.image_slots_for_template/1. The library stores and carries the flag but does not flatten annotations itself — that remains the host app’s responsibility when buildingimage_paramsforsubstitute_images/3. Variable.image_config_annotated?/1— canonical accessor that reads either atom- or string-keyedannotatedvalues and defaults totruewhen missing ornil, so host apps don’t need to know the config key shape.
Changed
Documents.coerce_config/1now stringifies incoming config keys before coercion, so atom-keyed caller input (e.g.%{annotated: false}) is stored uniformly string-keyed and won’t produce duplicate JSON keys in jsonb.parse_bool/1now treatsnil/empty as the safetruedefault and drops unrecognised values via:skip(preserving the existing stored value), instead of silently coercing every unknown input totrue.parse_columns/1now requires the whole input string to parse as an integer (aligning withparse_integer/1), so values like"2abc"no longer clamp to2.resolve_slot_config/3now dropsnilsaved values before merging defaults, preventing an explicit%{"annotated" => nil}from shadowing the default withnil.- External links open safely. All
target="_blank"anchors inDocumentsLivenow carryrel="noopener noreferrer", not only the row-action menu links. - Dependencies refreshed.
phoenix_kit1.7.126 → 1.7.144,phoenix_live_view1.1.31 → 1.2.0.
Internal
mix precommithardened withhex.auditandmix test --warnings-as-errors; surfaced and fixed warnings across the suite.- Row-menu edit/view links now use the native
target/relattr support in PhoenixKit core components rather than dynamic spread workarounds.
Document Creator 0.4.7. Install or update: {:phoenix_kit_document_creator, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.