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

github-actions bot commented Dec 23, 2025

PR Preview Action v1.6.3
Preview removed because the pull request was closed.
2026-01-12 15:11 UTC

Copy link
Member

@joanise joanise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed this one. All good, thanks for fixing this!

@sergeleger sergeleger merged commit 2666dd3 into main Jan 12, 2026
3 checks passed
@sergeleger sergeleger deleted the dev.swl/502-a-removed-image-from-a-read-along-is-still-included-in-offline-html-exports branch January 12, 2026 15:11
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

3 participants