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

Support for the new Figma share URL #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pocka
Copy link
Collaborator

@pocka pocka commented May 17, 2024

close #239

Figma changed URL structure for the share URL from "/file/..." to "/<anything>/...". This patch updates the URL checking regexp according to their updated embed document.

📦 Published PR as canary version: 8.0.3--canary.240.9d8f448.0

✨ Test out this PR locally via:

npm install @storybook/addon-designs@8.0.3--canary.240.9d8f448.0
# or 
yarn add @storybook/addon-designs@8.0.3--canary.240.9d8f448.0

<#239>

Figma changed URL structure for the share URL from "/file/..." to
"/<anything>/...". This patch updates the URL checking regexp according
to their updated embed document.

close #239
@pocka pocka added the category: feature New feature or request label May 17, 2024
@pocka pocka self-assigned this May 17, 2024
@pocka pocka requested a review from ghengeveld as a code owner May 17, 2024 15:50
@samwalshnz
Copy link

samwalshnz commented May 28, 2024

I gave this a test on my end, and it did the trick! Nice one @pocka
Is there anything holding this back from merge?

Looks like it's just the regex failing on Codacy. I don't see any harm any updating to align with Codacy's requirements, even if Figma docs have a slightly different regex pattern? Otherwise, is there a way to disable the static code analysis warning on that line, with Codacy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for the updated Figma embed
3 participants