Skip to content

Feat/select specific fields - #12

Open
MarleenEliza wants to merge 9 commits into
mainfrom
feat/select-specific-fields
Open

Feat/select specific fields#12
MarleenEliza wants to merge 9 commits into
mainfrom
feat/select-specific-fields

Conversation

@MarleenEliza

@MarleenEliza MarleenEliza commented May 15, 2026

Copy link
Copy Markdown
Contributor
  • Per-Field Configuration: Introduced a new Field Add-on that allows administrators to explicitly select which Custom Styles and Custom Marks are provided to editors on a per-block basis.

solves #10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a Structured Text field add-on to let admins enable/disable which custom block styles and inline marks are available per field/block, extending the existing plugin-wide custom styles/marks configuration.

Changes:

  • Added a manual field extension (add-on) with a configuration UI to select allowed style/mark slugs per Structured Text field.
  • Updated Structured Text hooks to filter custom styles/marks based on the configured field add-on parameters (with a fallback when the add-on isn’t present).
  • Updated docs/changelog and bumped package version to 2.0.0.

Reviewed changes

Copilot reviewed 12 out of 16 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/utils/fieldParameters.ts Adds parsing for per-field add-on parameters (allowedStyles/allowedMarks).
src/main.tsx Registers the manual field extension and filters provided styles/marks per field.
src/global.d.ts Updates global type definitions for CustomStyle/CustomStyleNode.
src/entrypoints/variables.ts Updates node option typing and expands dummy styles/marks fixtures.
src/entrypoints/ManualFieldExtensionConfigScreen.tsx New UI screen to configure allowed styles/marks per field add-on.
src/entrypoints/ManualFieldExtensionConfigScreen.module.css Styles for the new field add-on configuration UI.
src/entrypoints/ConfigScreen.tsx Adds a “Please Note” section and updates dummy style/mark creation.
src/entrypoints/ConfigScreen.module.css Minor spacing change for the config form.
src/components/StyleCard/StyleCard.tsx Removes unused imports.
src/components/MarkCard/MarkCard.module.css Removes now-unused CSS module file content.
README.md Fixes marks screenshot path and documents the new field add-on settings.
package.json Bumps package version to 2.0.0.
package-lock.json Updates lockfile metadata and dependency sections for the new release.
changelog.md Adds 2.0.0 entry describing the per-field configuration feature.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main.tsx
Comment thread src/main.tsx
Comment thread src/entrypoints/variables.ts
Comment thread src/entrypoints/variables.ts
Comment thread src/entrypoints/ConfigScreen.tsx Outdated
Comment thread src/entrypoints/ConfigScreen.tsx Outdated
Comment thread README.md Outdated
Comment thread src/entrypoints/ManualFieldExtensionConfigScreen.module.css Outdated
MarleenEliza and others added 2 commits May 22, 2026 16:27
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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