Skip to content

Commit 748d981

Browse files
committed
change inputAttributes position on chatbot and schemas
1 parent 0b5e263 commit 748d981

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

lib/ChatBot.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,11 @@ ChatBot.propTypes = {
649649
hideHeader: PropTypes.bool,
650650
hideSubmitButton: PropTypes.bool,
651651
hideUserAvatar: PropTypes.bool,
652+
inputAttributes: PropTypes.object,
652653
inputStyle: PropTypes.object,
653654
opened: PropTypes.bool,
654655
toggleFloating: PropTypes.func,
655656
placeholder: PropTypes.string,
656-
inputAttributes: PropTypes.object,
657657
recognitionEnable: PropTypes.bool,
658658
recognitionLang: PropTypes.string,
659659
recognitionPlaceholder: PropTypes.string,

lib/schemas/customSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ export default [
5555
required: false,
5656
},
5757
{
58-
key: 'metadata',
58+
key: 'inputAttributes',
5959
types: ['object'],
6060
required: false,
6161
},
6262
{
63-
key: 'inputAttributes',
63+
key: 'metadata',
6464
types: ['object'],
6565
required: false,
6666
},

lib/schemas/optionsSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export default [
2525
required: false,
2626
},
2727
{
28-
key: 'metadata',
28+
key: 'inputAttributes',
2929
types: ['object'],
3030
required: false,
3131
},
3232
{
33-
key: 'inputAttributes',
33+
key: 'metadata',
3434
types: ['object'],
3535
required: false,
3636
},

lib/schemas/textSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ export default [
4040
required: false,
4141
},
4242
{
43-
key: 'metadata',
43+
key: 'inputAttributes',
4444
types: ['object'],
4545
required: false,
4646
},
4747
{
48-
key: 'inputAttributes',
48+
key: 'metadata',
4949
types: ['object'],
5050
required: false,
5151
},

lib/schemas/updateSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export default [
2020
required: false,
2121
},
2222
{
23-
key: 'metadata',
23+
key: 'inputAttributes',
2424
types: ['object'],
2525
required: false,
2626
},
2727
{
28-
key: 'inputAttributes',
28+
key: 'metadata',
2929
types: ['object'],
3030
required: false,
3131
},

lib/schemas/userSchema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ export default [
3030
required: false,
3131
},
3232
{
33-
key: 'metadata',
33+
key: 'inputAttributes',
3434
types: ['object'],
3535
required: false,
3636
},
3737
{
38-
key: 'inputAttributes',
38+
key: 'metadata',
3939
types: ['object'],
4040
required: false,
4141
},

0 commit comments

Comments
 (0)