Skip to content

Commit 66dc026

Browse files
committed
Update other examples to include only UMD
1 parent 19e9fd4 commit 66dc026

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

packages/react-renderer-demo/src/pages/mappers/blueprint-component-mapper.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This field will show the error immediately.
4141
Blueprint components do not use asterisks for indicating that fields are required, instead of it, it uses `(required)` string. This message can be customized via `requiredLabelInfo` prop passed to the default `formTemplate`. By default this message is set to `<span className="bp3-text-muted">(required)</span>`. Notice the className, that provides default Blueprint styles.
4242

4343
```jsx
44-
import FormTemplate from '@data-driven-forms/blueprint-component-mapper/dist/cjs/form-template';
44+
import { FormTemplate } from '@data-driven-forms/blueprint-component-mapper';
4545

4646
const FormTemplateWrapper = (props) => (
4747
<FormTemplate
@@ -54,15 +54,15 @@ const FormTemplateWrapper = (props) => (
5454
This content is accessible via
5555

5656
```jsx
57-
import BlueprintContext from '@data-driven-forms/blueprint-component-mapper/dist/cjs/blueprint-context';
57+
import { BlueprintContext } from '@data-driven-forms/blueprint-component-mapper';
5858
```
5959

6060
## Custom FormTemplates
6161

6262
If you are using a custom FormTemplate, wrap it in the `BlueprintContext` to provide the required label.
6363

6464
```jsx
65-
import BlueprintContext from '@data-driven-forms/blueprint-component-mapper/dist/cjs/blueprint-context';
65+
import { BlueprintContext } from '@data-driven-forms/blueprint-component-mapper';
6666

6767
const FormTemplate = ({ formFields }) => {
6868
const { handleSubmit } = useFormApi();

packages/react-renderer-demo/src/pages/schema/constants.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ Strings values used in `component` field attributes.
1212

1313
```jsx
1414
import { componentTypes } from '@data-driven-forms/react-form-renderer';
15-
16-
// or
17-
18-
import componentTypes from '@data-driven-forms/react-form-renderer/dist/cjs/component-types';
19-
20-
// or
21-
22-
import componentTypes from '@data-driven-forms/react-form-renderer/dist/esm/component-types';
2315
```
2416

2517
Available keys:
@@ -62,14 +54,6 @@ Strings values used in `validate` [type attribute](/schema/introduction#validate
6254

6355
```jsx
6456
import { validatorTypes } from '@data-driven-forms/react-form-renderer';
65-
66-
// or
67-
68-
import validatorTypes from '@data-driven-forms/react-form-renderer/dist/cjs/validator-types';
69-
70-
// or
71-
72-
import validatorTypes from '@data-driven-forms/react-form-renderer/dist/esm/validator-types';
7357
```
7458

7559
Available keys:

0 commit comments

Comments
 (0)