Skip to content

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

Merged
AlessioGr merged 1 commit into
mainfrom
feat/lexical-feature-clientfeaure
Feb 7, 2025
Merged

AlessioGr merged 1 commit into
mainfrom
feat/lexical-feature-clientfeaure

Conversation

@AlessioGr

@AlessioGr AlessioGr commented Feb 7, 2025 •

Copy link
Copy Markdown
Member

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
@AlessioGr
AlessioGr deleted the feat/lexical-feature-clientfeaure branch February 7, 2025 21:22
@github-actions

Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.23.0

kendelljoseph pushed a commit that referenced this pull request Feb 21, 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

```tsx
export const BlocksFeatureClient = createClientFeature(
  ({ config, featureClientSchemaMap, props, schemaPath }) => { // <= config is the new argument
  	
  	// Return ClientFeature
})
```
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