-
Notifications
You must be signed in to change notification settings - Fork 56
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
Editor and Canvas communication with postMessage #42
base: main
Are you sure you want to change the base?
Editor and Canvas communication with postMessage #42
Conversation
@maarten2424 is attempting to deploy a commit to the Shopstory Team on Vercel. A member of the Team first needs to authorize it. |
3c8dd71
to
faa8b7f
Compare
faa8b7f
to
d708b88
Compare
meta: CompilationMetadata | null; | ||
compiled: CompiledShopstoryComponentConfig | null; | ||
externalData: FetchOutputResources | null; | ||
formValues: EditorContextType["form"]["values"] | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we name it entry
? It's the naming we're using right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which one?
}, | ||
}; | ||
|
||
function useCanvasGlobalKeyboardShortcuts() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's quite a lot of duplication between this function and old useEditorGlobalKeyboardShortcuts
. We should unify them a bit, otherwise it's gonna be hard to keep that stable later.
c515c38
to
4a37ec9
Compare
7a9bc0b
to
170935a
Compare
…hq/easyblocks into feat/remove-editor-context-canvas
packages/core/src/compiler/builtins/$richText/utils/getRichTextComponentConfigFragment.ts
Outdated
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
feat: send toggle-settings event for closable component
Description
Removes editor context from Canvas element
Rewrite
window.parent
logic towindow.postmessage
on aCanvasProvider
This way the canvas can be hosted externally and it won't run into any CORS issues