swoop-common 2.0.27 → 2.0.29

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.
@@ -17,7 +17,7 @@ interface BaseProps {
17
17
  * Dictates which mode the form will display in.
18
18
  * Each mode has a different pool of renderers.
19
19
  */
20
- pool: ComponentPool;
20
+ pool?: ComponentPool;
21
21
  /**
22
22
  * Whether this form should be readonly.
23
23
  * Has little to no effect if using the presentation pool of components
@@ -11,5 +11,5 @@ export const StyledFormView = ({ initialData, schema, onChange, stage, pool, rea
11
11
  const json = overrideJsonSchema || generateJsonSchema(schema, stage, hideReadonlyFields);
12
12
  const ui = overrideUiSchema || generateUiSchema(schema, stage, hideReadonlyFields);
13
13
  return (React.createElement(ComponentContext, { componentId: hintComponentId, stage: stage },
14
- React.createElement(JsonForms, { onChange: onChange, data: initialData, schema: json, uischema: ui, renderers: [...materialRenderers, ...getComponents(pool)], readonly: readonly, cells: materialCells })));
14
+ React.createElement(JsonForms, { onChange: onChange, data: initialData, schema: json, uischema: ui, renderers: [...materialRenderers, ...(pool && getComponents(pool) || [])], readonly: readonly, cells: materialCells })));
15
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swoop-common",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "main": "dist/api/index.js",
5
5
  "types": "dist/api/index.d.ts",
6
6
  "exports": {