@ea-lab/reactive-json 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -290,6 +290,7 @@ function ReactiveJsonRoot({
290
290
  value={{
291
291
  element: templates,
292
292
  headersForData,
293
+ plugins,
293
294
  setRawAppData,
294
295
  templateData: currentData.realCurrentData,
295
296
  templatePath: "data",
@@ -36,6 +36,8 @@ function View({props, currentData, datafield, path}) {
36
36
  const globalDataContext = useContext(GlobalDataContext);
37
37
  const templateContext = useContext(TemplateContext);
38
38
 
39
+ const plugins = globalDataContext.plugins ?? {};
40
+
39
41
  const components = {
40
42
  AccordionItem,
41
43
  CheckBoxField,
@@ -59,6 +61,7 @@ function View({props, currentData, datafield, path}) {
59
61
  Tabs,
60
62
  TextAreaField,
61
63
  TextField,
64
+ ...plugins?.element,
62
65
  };
63
66
 
64
67
  /**
@@ -81,6 +84,7 @@ function View({props, currentData, datafield, path}) {
81
84
  // A type is specified.
82
85
  // First, try to find a component matching the given type by name.
83
86
  // When not found, we map to a Html component as fallback.
87
+ // TODO: make this generic by moving bootstrap related code outside View.
84
88
  let componentRegistryId = undefined;
85
89
  let ComponentToRender = undefined;
86
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ea-lab/reactive-json",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",