Skip to content

Releases

v0.3.9

Choose a tag to compare

@github-actions github-actions released this 17 Nov 20:28

Added

  • init --from-dir/--from-repo copies the local files a template
    references (issue #103): the design's slide.background_image, every
    layout element's source (images, .csv/.parquet tables, .qmd
    fragments, including inside group elements) and, for a typed source, its
    build.reportifyr.standard_footnotes and its starter slides' element
    sources. Each is copied to the same relative path, so the new project
    builds without bringing assets over by hand, and the --json result lists
    them under created. A reference that is missing, absolute, uses ..,
    goes through a symlink or resolves outside the source is not copied and is
    reported as a warning. Files the template holds but nothing references
    (a README, a spare image) are not copied. Existing files at those paths
    count as conflicts, as the YAML files already did; --force overwrites.
  • The web editor answers an embedding host's guidance requests (issue #105).
    A page on the editor's own origin that frames it can ask, with a
    postMessage, for one of three controls to be highlighted:
    deckifyr.session.save (Save), deckifyr.nav.build (the Build tab) and
    deckifyr.build.run (Build). The editor draws its own outline and replies
    shown, absent (not on screen, such as Build while another tab is open)
    or unknown. It reads only messages from its parent window on its own
    origin, and a highlight never moves focus, switches tabs or clicks.
    GET /api/health lists the ids under guidance. Running the editor on its
    own is unchanged.

v0.3.8

Choose a tag to compare

@github-actions github-actions released this 09 Nov 21:34

Fixed

  • The web editor's + Add slide with a layout that has a required zone
    (title-content's title) no longer leaves an uneditable slide that blanks
    the editor on reload (issue #101). GET /api/plan now plans leniently for the
    editor: an empty layout zone shows as a dashed placeholder ("title (required)
    -- empty"), a slide that cannot be planned is reported on its own (error)
    without taking the other slides down, and the slide list flags the slide that
    needs attention. A text zone is filled from the inspector's new Content
    field (or by clicking it on the canvas), and a slot with Fill..., which
    keeps the layout's geometry (inherit_box). Patching a layout zone the slide
    has not overridden yet creates the override instead of returning 404. The
    new slide is selected after adding. build and validate are unchanged: a
    required element with no content still fails them.

v0.3.7

Choose a tag to compare

@github-actions github-actions released this 09 Nov 16:30

Fixed

  • A table element whose CSV has an empty header or data cell builds (issue
    #96). It failed at build time with E_INTERNAL: IndexError: tuple index out of range, because python-pptx creates no run for an empty string and the
    cell's font was applied to runs[0]. The cell stays empty in the PPTX and
    now carries an empty, styled run, so text typed into it later in PowerPoint
    keeps the table's font. Non-empty cells are unchanged.

v0.3.6

Choose a tag to compare

@github-actions github-actions released this 07 Nov 01:16

Added

  • Offline mode for the R wrappers (issue #93). With options(deckifyr.offline = TRUE), DECKIFYR_OFFLINE=1 or uv's own UV_OFFLINE=1, deck_validate(),
    deck_build(), deck_preview(), deck_serve() and the other wrappers run
    uv run --no-sync with UV_OFFLINE, UV_NO_INDEX and
    UV_PYTHON_DOWNLOADS=never set, so a stale lock is used as it is instead of
    being re-locked and synced against the index (which also downloaded a Python
    when none was cached). init --from-repo -- initialize_deck_project(from_repo =) and deckifyr init --from-repo -- is refused with a message pointing at
    --from-dir, since it needs a git clone. Provisioning in
    initialize_deck_project() runs with UV_OFFLINE=1 and stops, instead of
    letting pyro download it, when uv is not installed. Online behaviour is
    unchanged.
  • python_env (initialize_deck_project(python_env =),
    options(deckifyr.python_env) or DECKIFYR_PYTHON_ENV): run an existing
    Python environment (a venv, or a project directory with a .venv) directly,
    with no pyro or uv at all. It is verified for python-pptx, pydantic,
    pyyaml and pillow and never modified; every wrapper, including
    deck_serve(), uses it.

Changed

  • The deckifyr dependency group initialize_deck_project() writes to
    pyproject.toml now includes the packages behind the web and preview
    extras (fastapi, uvicorn, pymupdf), so deck_serve() and previews work
    straight after initialization instead of failing on a missing module. An
    existing group is merged, so re-running it adds them. The "extra is not
    installed" errors name initialize_deck_project() when run from R.

Fixed

  • Project files that start with a UTF-8 byte order mark load (issue #94).
    Windows PowerShell 5.1 (Set-Content -Encoding utf8) and older Notepad write
    one, and it became part of the first key, so design.yaml, layouts.yaml or
    presentation.yaml failed with E_SCHEMA_VALIDATION (deckifyr: Field required / Extra inputs are not permitted). Project YAML and JSON, a table
    CSV (a BOM no longer lands in the first column name), standard_footnotes.yaml,
    reportifyr metadata sidecars and Quarto fragments are now read as UTF-8 with
    an optional BOM. They were also read with the locale's default encoding, which
    on Windows is cp1252, so non-ASCII text in a UTF-8 file was mis-decoded; and
    deckifyr set/slide wrote with that same default. Both are explicit UTF-8
    now (written files stay BOM-free). Files without a BOM are unaffected.

v0.3.5

Choose a tag to compare

@github-actions github-actions released this 06 Nov 00:00

Added

  • deckifyr serve now guards its API against other pages open in the same
    browser (issue #88). Only 127.0.0.1/localhost/[::1] on the served
    port, the bound --host and any --allowed-host (repeatable) are
    accepted as Host -- anything else gets 421, which stops DNS-rebinding
    access. A state-changing request (POST/PUT/PATCH/DELETE) marked
    Sec-Fetch-Site: cross-site or same-site, or carrying an Origin that
    is not allowed, gets 403; before this a cross-site form POST to
    /api/build, /api/discard or /api/shutdown ran the handler. Curl, the
    R facade, CI, the editor itself and the R Viewer pane are unaffected. A
    supervising launcher can also set --api-token-env VAR: every /api/*
    request except GET /api/health must then send the secret from that
    environment variable as X-Deckifyr-Api-Token (read from the environment,
    never argv; static assets stay open).
  • A launcher can stop a project file from choosing executables or paths
    (issue #89). --rscript-bin/--quarto-bin/--soffice-bin (or
    DECKIFYR_RSCRIPT_BIN/..._QUARTO_BIN/..._SOFFICE_BIN) run the
    launcher's own executables instead of the project file's.
    --trusted-binaries-only (DECKIFYR_TRUSTED_BINARIES_ONLY) rejects a
    project whose build.*.binary differs from the default name with
    E_UNTRUSTED_BINARY before anything runs, and requires design.base,
    layouts, build.output, build.manifest and build.reportifyr paths to
    resolve (symlinks followed) inside the project, else
    E_PATH_OUTSIDE_PROJECT; --allow-outside-project relaxes the paths for a
    shared organization design. It applies to validate, build, preview,
    inspect, serve (including the editor's config PUT and saves) and, via
    the environment, get/set/slide. All of it is off by default.
    deck_build(), deck_validate(), deck_preview(), deck_inspect() and
    deck_serve() take the same options.
  • validate --warn-only (and build --warn-only) report each unitless
    length it coerces to EMUs as a W_UNITLESS_LENGTH warning, instead of
    accepting it silently (issue #91).
  • GET /api/health reports project_loaded and project_error
    ({code, message}), so one probe tells a supervisor both that the server is
    up and whether the project is usable. It is still 200 either way.
  • The global --debug flag (or DECKIFYR_DEBUG=1) adds a traceback to the
    error payload of an unexpected failure.

Changed

  • A release is now immutable (issue #91): pushing to main without bumping
    VERSION no longer re-tags the published version or re-uploads its assets
    (the workflow emits a notice instead). A consumer that pins deckifyr X.Y.Z
    plus the SHA-256 of its wheel or SHA256SUMS can rely on both naming fixed
    bytes; to ship a change, bump VERSION. Enabling GitHub's "immutable
    releases" repository setting enforces the same thing server-side.
  • build writes its .pptx, previews and manifest atomically (issue #90).
    Everything is built in a private .deckifyr-staging-* directory next to the
    output and only promoted once every step succeeded, manifest last, so a
    failed or killed build leaves the previous build's files untouched and a
    manifest on disk always matches the files it names. A full preview render
    replaces that deck's previous preview files, so a preview set can no longer
    mix two builds. Leftovers from a killed build are swept at the next build.
  • The published --json result schemas now allow extra keys (as the docs
    always said adding a key is not a breaking change) and carry a versioned
    $id (issue #91).

Fixed

  • Any exception that is not a deckifyr error -- for example a
    PermissionError because the output .pptx is open in PowerPoint -- now
    produces the --json error payload on stderr (E_IO for an OS error,
    E_INTERNAL otherwise) instead of a bare traceback with no JSON (issue #90).
  • The process-tree and orphan tests now run on Windows too (issue #91).

v0.3.4

Choose a tag to compare

@github-actions github-actions released this 05 Nov 21:56

Added

  • deckifyr serve can run as a managed child of a launcher and behind a
    reverse proxy (issues #82, #83). The editor now uses page-relative
    URLs, so it works mounted under a path prefix (e.g.
    /apps/deckifyr/) behind a prefix-stripping proxy with no
    configuration; --root-path supports a proxy that does not strip the
    prefix. --launcher workspace gives the no-project screen
    workspace-appropriate guidance and implies the new
    --no-frontend-rebuild (never run npm at startup). GET /api/health
    now reports dirty and active_jobs, and POST /api/shutdown
    ({"if_dirty": "refuse"|"save", "active_jobs": "refuse"|"cancel"})
    stops the server in an orderly way: a refusal is a 409 with no side
    effects, save writes edits first, and the process exits 0. A plain
    SIGTERM/SIGINT with unsaved edits now writes a warning to stderr
    instead of dropping them silently.
  • Background build/preview jobs are bounded and cancellable (issue #84):
    a job-level timeout (deckifyr serve --job-timeout, 600 s by default)
    reports E_TIMEOUT, POST /api/jobs/{id}/cancel and a Cancel button
    in the Build tab stop a running job, and both kill the whole process
    tree (new deckifyr._proc), so no LibreOffice is left behind.
    Preview rendering also uses a private LibreOffice profile per call, so
    it no longer collides with an open LibreOffice or with a concurrent
    preview.
    Timed-out Quarto and flextable (Rscript) renders now kill their whole
    process tree too, instead of leaving pandoc/R children running.
  • The CLI's --json output is a versioned contract (issue #85): every
    success and error payload carries result_version (1); build and
    preview return the full warnings list (code, message, slide,
    element) whether or not a manifest is written, plus an artifacts
    list of {kind, path, sha256}; validate/build/preview/error
    payloads have published JSON Schemas under schemas/results/. All
    existing keys are unchanged.
  • Each release now attaches a versioned Python wheel and sdist plus a
    SHA256SUMS file covering them and the R tarball (issue #86). The
    Python package version is read from VERSION, so the wheel, a build
    manifest's deckifyr_version and the release tag always agree.

Fixed

  • deckifyr init (without --from-dir/--from-repo) now works from an
    installed wheel: the bundled minimal example was not packaged, so it
    only worked from a repo checkout.
  • Installing the Python package no longer prints a SyntaxWarning from
    deckifyr.renderers.quarto.

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 06 Oct 17:16
1f7fa16

Changed

  • The web editor's Config tab form is redesigned. Documents are split
    into sections (a left rail, one pane at a time) instead of one long
    scroll box; fields use styled inputs, switches and segmented controls,
    collapsible cards, and show a per-field hint taken from the schema.
    Colors are a swatch plus a text field with the document's own color
    tokens as pick-able chips, lengths are a number plus a unit with
    arrow-key stepping, and unions that used to fall back to raw JSON
    (colors: entries that are literal or derived, fill as a color or a
    gradient, elements as named or a list) are a segmented switch between
    their forms. The three JSON Schema files (deckifyr schema) now carry
    a description on every property and an x-deckifyr-widget
    annotation on color/length strings; no document field changed.

v0.3.2

Choose a tag to compare

@github-actions github-actions released this 21 Aug 01:10
64f8111

Added

  • Reportifyr .rds table artifacts (R flextable objects, produced via
    format_flextable()) now render as pictures instead of crashing the
    build, and the web editor's reportifyr artifact picker correctly
    routes .csv/.parquet picks to native tables instead of always
    building a reportifyr element (issue #57). New
    deckifyr.renderers.flextable shells out to Rscript/flextable:: save_as_image() to rasterize a .rds artifact to a transparent PNG,
    composed exactly like any other reportifyr figure, footer included.

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 20 Aug 23:37

Added

  • shape/table/reportifyr/quarto elements can now be dragged,
    resized, and rotated on the web editor's canvas (issue #54), the same
    placeholder-box interaction image elements already had -- no
    backend changes were needed, since the PATCH endpoint and schema
    already supported positioning any element type generically. group
    elements are intentionally still a static placeholder: a group's
    on-slide position is derived entirely from its own children's boxes
    at build time, not its own box field, so making it draggable needs
    a separate, larger fix (tracked in issue #55).

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 20 Aug 20:34
85615d9

Added

  • Layouts editor mode in the web editor (issue #30): SlideList's
    "Slides" / "Layouts" toggle swaps the entire numbered list between
    presentation.yaml's slides and layouts.yaml's layouts, with real
    add/remove/rename layout CRUD. Every layouts.yaml must now define a
    blank layout, which can't itself be removed -- it's the fallback any
    slide using a removed layout falls back to. Removing an in-use layout
    previews which slides would be reassigned before you confirm, and the
    server rejects the removal outright (no partial write) if reassignment
    would leave a slide unbuildable.
  • Element add/remove for both slides and layout zones (issue #31): a new
    ElementList sidebar (replacing the old always-on ElementInspector
    slot and the standalone furniture bar) lists every element as a
    collapsed row you expand to edit; reportifyr/quarto elements get a
    real file picker scoped to your project instead of a hand-typed path.
  • Slide add/remove/duplicate, and color swatches next to token pickers
    in the config editor (issues #23, #27).
  • Build tab improvements (issue #32): the output-path field is now a
    real single-level directory browser instead of free text; a "Render
    slide previews" checkbox turns on build.previews and now keeps the
    intermediate PDF alongside the PNGs for an ordinary deckifyr build,
    not just deckifyr preview; and a shared preview gallery (PNG
    thumbnails, collapsed-until-requested PDF) is used by both the Build
    and Preview sections. The previews checkbox is disabled with a clear
    warning when LibreOffice isn't available, and a build.previews: true
    build with no LibreOffice now downgrades to a build warning instead of
    losing the .pptx output entirely.
  • deckifyr skills [DIRECTORY] / deck_export_skills() (issue #50):
    exports two bundled Claude Skills-format SKILL.md files
    (deckifyr-org-config for design.yaml/layouts.yaml,
    deckifyr-presentation for presentation.yaml) to a directory of
    your choice, for use with Claude Code or any other coding agent that
    reads SKILL.md files.
  • deckifyr init --from-dir <path> / --from-repo <spec> (issue #34):
    scaffold a new project from an existing local directory or git repo
    instead of only the bundled minimal example. --from-repo accepts a
    [host/]owner/repo[/subdir][@ref] shorthand as well as a full git
    URL. A "typed" source (a templates/ directory of design/layouts/
    presentation trios, selected via --type) is copied as-is; a "flat"
    source copies just its design.yaml/layouts.yaml and generates a
    fresh, empty presentation.yaml pointing at them.
  • Static JSON Schema files for design/layouts/presentation
    (inst/python/deckifyr/schemas/*.schema.json, issue #49), so IDEs
    like VS Code's YAML extension can validate against a real file via a
    yaml-language-server $schema comment instead of shelling out to
    deckifyr schema.
  • A third, Playwright-based end-to-end test tier for the web editor,
    alongside the existing pytest and vitest suites.

Changed

  • status_indicator is a single-select again: the corner/watermark
    split introduced in 0.2.1 (watermark_overlay) turned out to have a
    confusing Add/Remove-vs-checkbox story with no real benefit, so a
    corner placement and the full-page watermark once again share the
    same status_indicator selection.

Fixed

  • A quarto element rendered as a PNG now composites with a
    transparent background instead of opaque white (issue #9).
  • The "Deck Options" status-indicator dropdown now stays in sync after
    the Furniture panel's own Add/Remove changes status_indicator
    server-side, instead of showing stale state until a manual refresh.
  • Optional scalar fields in the schema-driven config form (an author
    name, a table style's color, a corner's rotation, ...) no longer
    render as a cut-off ~260px-tall sliver.