Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: keep customData when converting to ExcalidrawElement (#7654) #7656

Merged
merged 2 commits into from
Feb 8, 2024

Conversation

yubinTW
Copy link
Contributor

@yubinTW yubinTW commented Feb 5, 2024

for #7654

if customData of an ExcalidrawElementSkeleton is provided, when using convertToExcalidrawElements() to convert ExcalidrawElementSkeleton to ExcalidrawElement, it will not disappear.

Copy link

vercel bot commented Feb 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
excalidraw ✅ Ready (Inspect) Visit Preview Feb 7, 2024 3:09pm
excalidraw-package-example ✅ Ready (Inspect) Visit Preview Feb 7, 2024 3:09pm
excalidraw-package-example-with-nextjs ✅ Ready (Inspect) Visit Preview Feb 7, 2024 3:09pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Feb 7, 2024 3:09pm

Copy link
Member

@ad1992 ad1992 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @yubinTW

opts,
);
convertedElements.forEach((ele) => {
expect(ele.customData).not.toBeDefined();
Copy link
Member

Choose a reason for hiding this comment

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

separate test not needed, its already recorded in snapshot

text: "Hello",
},
{
type: "image",
Copy link
Member

Choose a reason for hiding this comment

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

just a single element is enough, also lets move this test towards the end

@yubinTW
Copy link
Contributor Author

yubinTW commented Feb 6, 2024

Hi @ad1992,
Thanks for the reviews, I had updated the test case.

@krzysztofMlczk
Copy link

@ad1992 can this be merged?

Copy link
Member

@ad1992 ad1992 left a comment

Choose a reason for hiding this comment

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

@yubinTW can you also update the package changelog ? Also this should under Fixes category in changelog

@yubinTW
Copy link
Contributor Author

yubinTW commented Feb 7, 2024

Hi @ad1992
Sure, updated the CHANGELOG.

@krzysztofMlczk
Copy link

@ad1992 when can we expect patch with those changes?

@ad1992 ad1992 merged commit def1df2 into excalidraw:master Feb 8, 2024
9 checks passed
@yubinTW yubinTW deleted the feature/keep-customDate branch February 8, 2024 11:54
@ad1992
Copy link
Member

ad1992 commented Feb 8, 2024

@ad1992 when can we expect patch with those changes?

very soon, I will check if there is anything else we should push to patch and release by tonight/tomorrow.

@krzysztofMlczk
Copy link

@ad1992 thanks! And thank you @yubinTW for this PR!

@krzysztofMlczk
Copy link

@ad1992 how can I know that the patch is out?

@ad1992
Copy link
Member

ad1992 commented Feb 9, 2024

@ad1992 how can I know that the patch is out?

I will be sharing here once the patch is released so post that you can update it

ad1992 pushed a commit that referenced this pull request Feb 9, 2024
* feat: keep customData when converting to ExcalidrawElement (#7654)

* docs: add changelog for keeping customData when converting to ExcalidrawElement
@ad1992
Copy link
Member

ad1992 commented Feb 9, 2024

The patch is released, you can update the excalidraw version to 0.17.3, more info here - https://github.com/excalidraw/excalidraw/releases/tag/v0.17.3

cc @yubinTW @krzysztofMlczk

IvanLi-CN pushed a commit to IvanLi-CN/excalidraw that referenced this pull request Feb 24, 2024
…#7656)

* feat: keep customData when converting to ExcalidrawElement (excalidraw#7654)

* docs: add changelog for keeping customData when converting to ExcalidrawElement
wangshijun added a commit to wangshijun/excalidraw-blocklet that referenced this pull request May 22, 2024
patch release

* tag 'v0.17.5':
  v0.17.5
  fix: parse embeddable srcdoc urls strictly & escape attribute url html
  v0.17.4
  fix: Gist embed allowing unsafe html (excalidraw#7883)
  fix: keep customData when converting to ExcalidrawElement (excalidraw#7656)
  fix: umd build so it can be used in browser (excalidraw#7349)
  fix: disable caching bounds for arrow labels (excalidraw#7343)
  fix: bounds cached prematurely resulting in incorrectly rendered labels (excalidraw#7339)
  docs: upgrade to @excalidraw/excalidraw@0.17.0 (excalidraw#7285)
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.

3 participants