Skip to content

Conversation

@sergeleger
Copy link
Collaborator

PR Goal?

Reverts an inadvertent API change to the web component's getImages() functionality. The correct API should return an object with null values for images that had been deleted from the read along:

console.log(readalong.getImages()); 
// {"1": "blob://...", "2": null}

Studio Web uses this null information as an indicator to remove a previously attached image from the download package.

Fixes?

Closes #502

Feedback sought?

Still works as expected.

Priority?

Low.

Tests added?

No.

How to test?

  • create a read along
  • add an image
  • create HTML export
  • remove the image
  • re-create HTML export
  • open the latest exported read along and image is no longer included.

Confidence?

High.

Version change?

No.

@semanticdiff-com
Copy link

semanticdiff-com bot commented Dec 23, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  packages/web-component/src/components/read-along-component/read-along.tsx  59% smaller

@sergeleger sergeleger requested a review from joanise December 23, 2025 17:05
@github-actions
Copy link
Contributor

PR Preview Action v1.6.3

🚀 View preview at
https://ReadAlongs.github.io/Studio-Web/pr-preview/pr-503/

Built to branch gh-pages at 2025-12-23 17:08 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A removed image from a read along is still included in Offline HTML exports

2 participants