Skip to content

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 annotated flag 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’s config jsonb, is edited through a toggle in the template editor, and is surfaced string-keyed via Documents.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 building image_params for substitute_images/3.
  • Variable.image_config_annotated?/1 — canonical accessor that reads either atom- or string-keyed annotated values and defaults to true when missing or nil, so host apps don’t need to know the config key shape.

Changed

  • Documents.coerce_config/1 now 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/1 now treats nil/empty as the safe true default and drops unrecognised values via :skip (preserving the existing stored value), instead of silently coercing every unknown input to true.
  • parse_columns/1 now requires the whole input string to parse as an integer (aligning with parse_integer/1), so values like "2abc" no longer clamp to 2.
  • resolve_slot_config/3 now drops nil saved values before merging defaults, preventing an explicit %{"annotated" => nil} from shadowing the default with nil.
  • External links open safely. All target="_blank" anchors in DocumentsLive now carry rel="noopener noreferrer", not only the row-action menu links.
  • Dependencies refreshed. phoenix_kit 1.7.126 → 1.7.144, phoenix_live_view 1.1.31 → 1.2.0.

Internal

  • mix precommit hardened with hex.audit and mix test --warnings-as-errors; surfaced and fixed warnings across the suite.
  • Row-menu edit/view links now use the native target/rel attr 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.