You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/glossary.md
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -857,4 +857,32 @@ Vale
857
857
[Vale](https://vale.sh/) is an open-source, command-line tool that helps maintain a consistent and on-brand voice in documentation.
858
858
Plone Documentation uses it to check spelling, English grammar and syntax, and style guides.
859
859
860
+
schema enhancer
861
+
A schema enhancer uses the `schemaEnhancer` function, which can modify the schema used by the `InlineForm` component.
862
+
Any registered extension plugin can provide a `schemaEnhancer` function.
863
+
This function receives an object with `formData`, which is the block data; `schema`, which is the original schema to modify; and the injected `intl`, which aids with internationalization.
864
+
865
+
variation
866
+
A variation is a common development pattern that provides alternative views for the same data.
867
+
For example, a teaser block can present data as `title + link`, `title + description + link`, or `title + image + link`.
868
+
869
+
An advanced variation can enhance the block by adding data fields to the block.
870
+
For example, a listing block variation can show news items with `title + link`.
871
+
Extending this example, a developer can add a boolean field to the block that toggles the display of the link.
872
+
Thus an editor can select between `title + link` or just `title`.
873
+
874
+
HOC
875
+
Higher-Order Component
876
+
A higher-order component (HOC) is an advanced technique in React for reusing component logic.
877
+
HOCs are not part of the React API, per se.
878
+
They are a pattern that emerges from React's compositional nature.
879
+
Concretely, a higher-order component is a function that takes a component and returns a new component.
880
+
881
+
```{important}
882
+
Higher-order components are not commonly used in modern React code.
0 commit comments