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

feat(richtext-lexical): expose client config to client features #11054

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Feb 7, 2025

This PR exposes the ClientConfig as an argument to the lexical ClientFeature. This is a requirement for #10905, as we need to get the ClientBlocks from the clientConfig.blocksMap if they are strings.

Example

export const BlocksFeatureClient = createClientFeature(
  ({ config, featureClientSchemaMap, props, schemaPath }) => { // <= config is the new argument
  	
  	// Return ClientFeature
})

@AlessioGr AlessioGr enabled auto-merge (squash) February 7, 2025 21:03
@AlessioGr AlessioGr merged commit d7a7fbf into main Feb 7, 2025
74 checks passed
@AlessioGr AlessioGr deleted the feat/lexical-feature-clientfeaure branch February 7, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant