Skip to content

Restructure types library without formio.js dependency#82

Merged
sergei-maertens merged 42 commits intomainfrom
refactor/81-redefine-types-without-formio-dependency
Jan 2, 2026
Merged

Restructure types library without formio.js dependency#82
sergei-maertens merged 42 commits intomainfrom
refactor/81-redefine-types-without-formio-dependency

Conversation

@sergei-maertens
Copy link
Copy Markdown
Member

Closes #81

This takes another approach at defining the component types with lessons learned from implementing the types in formio-builder and formio-renderer:

  • don't rely on inheritance/extending if possible
  • use composition/type merging instead
  • be more explicit in what's included rather than marking what's excluded

This corrects a number of properties on types that were not supposed to be there, since we don't expose configuring them in our formio-builder anyway.

Trying to find a good balance between re-usability, readability
and usefulness when looking at a time in the code editor.

Not sure yet about the Prettify...
No need to force downstream projects to deal with breaking
changes if only the implementation details change on our
end.
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 58ac748 to 7bd0c3b Compare December 31, 2025 10:49
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 7bd0c3b to 2492787 Compare December 31, 2025 10:51
This effectively un-deprecates the component. It can probably
be implemented in terms of a textfield component, but it's
commonly used and more intuitive for form builders to have
a dedicated component. It also allows us to implement
tailored behaviours in our own renderer (now and in the
future).
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 732e90e to d328697 Compare December 31, 2025 14:05
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from d328697 to 2f0acd9 Compare December 31, 2025 14:13
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 2f0acd9 to f0dfba0 Compare December 31, 2025 14:49
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from f0dfba0 to f3925ef Compare December 31, 2025 15:11
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from f3925ef to c8684a6 Compare December 31, 2025 17:21
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from c8684a6 to 75a3f42 Compare December 31, 2025 23:54
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 75a3f42 to 69fc6dc Compare January 1, 2026 14:03
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from 69fc6dc to 65035fb Compare January 1, 2026 20:14
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from e24cdc3 to dff54c9 Compare January 2, 2026 11:06
@sergei-maertens sergei-maertens force-pushed the refactor/81-redefine-types-without-formio-dependency branch from dff54c9 to 6fd3489 Compare January 2, 2026 11:39
@sergei-maertens sergei-maertens marked this pull request as ready for review January 2, 2026 11:42
@sergei-maertens sergei-maertens merged commit 044a922 into main Jan 2, 2026
6 checks passed
@sergei-maertens sergei-maertens deleted the refactor/81-redefine-types-without-formio-dependency branch January 2, 2026 11:44
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.

Re-implement the types without formio.js dependency

1 participant