Skip to content

Commit f3da8d3

Browse files
committed
fix(common): Use correct common package build.
1 parent 60e2e6e commit f3da8d3

File tree

88 files changed

+109
-303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+109
-303
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"start-demo": "lerna run start --scope=@data-driven-forms/react-render-demo",
1919
"lint": "yarn eslint .",
2020
"lint:ts": "tslint -c ./tslint.json 'packages/**/*.d.ts'",
21-
"generate-template": "node ./scripts/generate-mapper.js"
21+
"generate-template": "node ./scripts/generate-mapper.js",
22+
"prepare": "echo 'called prepare in my-lerna-package'"
2223
},
2324
"workspaces": [
2425
"packages/**"

packages/ant-component-mapper/demo/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ReactDOM from 'react-dom';
44
import { FormRenderer } from '@data-driven-forms/react-form-renderer';
55
import 'antd/dist/antd.css';
66
import './style.css';
7-
import demoSchema from '@data-driven-forms/common/src/demoschema';
7+
import demoSchema from '@data-driven-forms/common/demoschema';
88
import dualListSelectSchema from './demo-schemas/dual-list-select-schema'
99
import { componentMapper, FormTemplate } from '../src';
1010
import wizardSchema from './demo-schemas/wizard-schema';

packages/ant-component-mapper/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
"react": ">=16.13.0",
6868
"react-dom": ">=16.13.0"
6969
},
70-
"dependencies": {},
70+
"dependencies": {
71+
"@data-driven-forms/common": "*"
72+
},
7173
"postpublish": "export RELEASE_DEMO=true"
7274
}

packages/ant-component-mapper/src/form-group/form-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33

44
import { Form } from 'antd';
55
import { validationError } from '../common/helpers';
6-
import { childrenPropTypes } from '@data-driven-forms/common/src/prop-types-templates';
6+
import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
77

88
const FormGroup = ({ label, children, isRequired, FormItemProps, meta, validateOnMount, helperText, description, hideLabel }) => {
99
const invalid = validationError(meta, validateOnMount);

packages/ant-component-mapper/src/form-template/form-template.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import FormTemplateCommonProps from "@data-driven-forms/common/src/form-template";
1+
import FormTemplateCommonProps from "@data-driven-forms/common/form-template";
22

33
export interface FormTemplateProps extends FormTemplateCommonProps {
44
layout?: string;

packages/ant-component-mapper/src/form-template/form-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Button, Typography, Form as AntForm } from 'antd';
4-
import FormTemplate from '@data-driven-forms/common/src/form-template';
5-
import { childrenPropTypes } from '@data-driven-forms/common/src/prop-types-templates';
4+
import FormTemplate from '@data-driven-forms/common/form-template';
5+
import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
66

77
const { Title, Paragraph } = Typography;
88

packages/ant-component-mapper/src/is-required/is-required.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { childrenPropTypes } from '@data-driven-forms/common/src/prop-types-templates';
2+
import { childrenPropTypes } from '@data-driven-forms/common/prop-types-templates';
33

44
import './style.scss';
55

packages/ant-component-mapper/src/multiple-choice-list/multiple-choice-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33

44
import { Checkbox as AntCheckbox } from 'antd';
5-
import MultipleChoiceListCommon, { wrapperProps } from '@data-driven-forms/common/src/multiple-choice-list';
5+
import MultipleChoiceListCommon, { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
66
import FormGroup from '../form-group';
77

88
const FinalCheckbox = ({ isDisabled, label, ...props }) => (

packages/ant-component-mapper/src/radio/radio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Radio as AntRadio } from 'antd';
4-
import { wrapperProps } from '@data-driven-forms/common/src/multiple-choice-list';
4+
import { wrapperProps } from '@data-driven-forms/common/multiple-choice-list';
55
import FormGroup from '../form-group';
66
import { useFieldApi } from '@data-driven-forms/react-form-renderer';
77

packages/ant-component-mapper/src/wizard/step-buttons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33
import { Button } from 'antd';
4-
import selectNext from '@data-driven-forms/common/src/wizard/select-next';
4+
import selectNext from '@data-driven-forms/common/wizard/select-next';
55

66
const NextButton = ({ nextStep, handleNext, handleSubmit, buttonLabels, getState, valid, NextButtonProps, SubmitButtonProps }) => {
77
return (

0 commit comments

Comments
 (0)