@devtron-labs/devtron-fe-common-lib 0.0.39-beta-1 → 0.0.39-beta-2
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.
- package/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/Common/RJSF/Form.tsx +2 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var ReactDOM = require('react-dom');
|
|
6
6
|
var reactRouterDom = require('react-router-dom');
|
|
7
7
|
var RJSF = require('@rjsf/core');
|
|
8
|
-
var
|
|
8
|
+
var RJSFValidator = require('@rjsf/validator-ajv8');
|
|
9
9
|
var utils = require('@rjsf/utils');
|
|
10
10
|
|
|
11
11
|
function _interopNamespaceDefault(e) {
|
|
@@ -23942,6 +23942,7 @@ styleInject(css_248z);
|
|
|
23942
23942
|
// Need to use this way because the default import was not working as expected
|
|
23943
23943
|
// The default import resolves to an object intead of a function
|
|
23944
23944
|
var Form = RJSF.default;
|
|
23945
|
+
var validator = RJSFValidator.default;
|
|
23945
23946
|
var RJSFForm = function (props) { return (jsxRuntime.jsx(Form, __assign({ noHtml5Validate: true, showErrorList: false, autoComplete: "off" }, props, { validator: validator, templates: __assign(__assign({}, templates), props.templates), widgets: __assign(__assign({}, widgets), props.widgets), translateString: translateString }))); };
|
|
23946
23947
|
|
|
23947
23948
|
exports.AppStatus = AppStatus;
|
package/package.json
CHANGED
package/src/Common/RJSF/Form.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import RJSF from '@rjsf/core'
|
|
3
|
-
import
|
|
3
|
+
import RJSFValidator from '@rjsf/validator-ajv8'
|
|
4
4
|
|
|
5
5
|
import { templates, widgets } from './config'
|
|
6
6
|
import { FormProps } from './types'
|
|
@@ -10,6 +10,7 @@ import './rjsfForm.scss'
|
|
|
10
10
|
// Need to use this way because the default import was not working as expected
|
|
11
11
|
// The default import resolves to an object intead of a function
|
|
12
12
|
const Form = (RJSF as any).default as typeof RJSF
|
|
13
|
+
const validator = (RJSFValidator as any).default as typeof RJSFValidator
|
|
13
14
|
|
|
14
15
|
export const RJSFForm = (props: FormProps) => (
|
|
15
16
|
<Form
|