Skip to content

[NT-2874] iOS parity with RN and centralization of preview panel logic#236

Merged
Alex Freas (akfreas) merged 6 commits intomainfrom
NT-2874-ios-parity-fixes
Apr 28, 2026
Merged

[NT-2874] iOS parity with RN and centralization of preview panel logic#236
Alex Freas (akfreas) merged 6 commits intomainfrom
NT-2874-ios-parity-fixes

Conversation

@akfreas
Copy link
Copy Markdown
Collaborator

@akfreas Alex Freas (akfreas) commented Apr 20, 2026

This PR moves functionality critical to the preview panel implementations into a new preview-sdk so that it can be shared between React Native and the JSCore implementations (iOS and Android). This allows us to keep a single implementation of the override and interceptor logic for all platforms.

@akfreas Alex Freas (akfreas) marked this pull request as draft April 20, 2026 15:40
@akfreas Alex Freas (akfreas) changed the title Nt 2874 ios parity fixes [NT-2874] iOS parity with RN and centralization of preview panel logic to core Apr 23, 2026
@akfreas Alex Freas (akfreas) changed the title [NT-2874] iOS parity with RN and centralization of preview panel logic to core [NT-2874] iOS parity with RN and centralization of preview panel logic Apr 23, 2026
@akfreas Alex Freas (akfreas) marked this pull request as ready for review April 23, 2026 12:33
…k package and update RN preview implementation to use
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why aren't we importing types, instead of re-specifying them?

…enceEntryFields, OptimizationEntryFields, OptimizationConfig, and OptimizationType from optimization-api-schemas.
… point. Re-publishes PreviewOverrideManager, buildPreviewModel, and the Contentful entry mappers via core, drops the standalone @contentful/optimization-preview package, and switches the RN SDK and ios-jsc-bridge consumers over.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We can shore up README documentation (ensuring consumers ignore internal preview-specific support) separately as part of one of my tickets I think.

…and trim the public core-sdk README to a short pointer, marking the entry point as internal-only plumbing for the first-party preview panels.
@akfreas Alex Freas (akfreas) merged commit f0b6a85 into main Apr 28, 2026
30 of 31 checks passed
@akfreas Alex Freas (akfreas) deleted the NT-2874-ios-parity-fixes branch April 28, 2026 15:49
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.

2 participants