@kindly/react-chat 2.39.11 → 2.40.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kindly/react-chat",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.40.1",
|
|
4
4
|
"description": "Kindly Chat react component",
|
|
5
5
|
"repository": "https://github.com/kindly-ai/kindly-chat/tree/main/packages/react-chat",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"silent": true,
|
|
127
127
|
"webpackConfig": "./webpack.config.js"
|
|
128
128
|
},
|
|
129
|
-
"gitHead": "
|
|
129
|
+
"gitHead": "233f6f2cab419ed99e3ee88056c10583eb9ecd53"
|
|
130
130
|
}
|
|
@@ -8,6 +8,7 @@ import withFetchMock from 'storybook-addon-mock';
|
|
|
8
8
|
import { IMAGE_WIDTH } from 'app/constants';
|
|
9
9
|
|
|
10
10
|
import { chromaticViewports } from '../../.storybook/preview';
|
|
11
|
+
import { FIELDS } from '../../src/components/Form/utils/constants';
|
|
11
12
|
import KindlyChatButton from '../../src/features/KindlyChatButton/KindlyChatButton';
|
|
12
13
|
import settingsJSON from '../assets/settingsJson';
|
|
13
14
|
import withContainer from '../decorators/withContainer';
|
|
@@ -732,7 +733,7 @@ Form.parameters = {
|
|
|
732
733
|
},
|
|
733
734
|
fields: [
|
|
734
735
|
{
|
|
735
|
-
input_type:
|
|
736
|
+
input_type: FIELDS.TEXT,
|
|
736
737
|
order: 0,
|
|
737
738
|
slug: 'first-name-field',
|
|
738
739
|
texts: {
|
|
@@ -745,12 +746,12 @@ Form.parameters = {
|
|
|
745
746
|
validators: [
|
|
746
747
|
{
|
|
747
748
|
max_length: 30,
|
|
748
|
-
|
|
749
|
+
text: 'Maximum number of length is 30',
|
|
749
750
|
},
|
|
750
751
|
],
|
|
751
752
|
},
|
|
752
753
|
{
|
|
753
|
-
input_type:
|
|
754
|
+
input_type: FIELDS.TEXT,
|
|
754
755
|
order: 1,
|
|
755
756
|
slug: 'text-field',
|
|
756
757
|
texts: {
|
|
@@ -770,7 +771,7 @@ Form.parameters = {
|
|
|
770
771
|
],
|
|
771
772
|
},
|
|
772
773
|
{
|
|
773
|
-
input_type:
|
|
774
|
+
input_type: FIELDS.EMAIL,
|
|
774
775
|
order: 2,
|
|
775
776
|
slug: 'email-field',
|
|
776
777
|
texts: {
|
|
@@ -778,6 +779,48 @@ Form.parameters = {
|
|
|
778
779
|
placeholder_text: 'Email',
|
|
779
780
|
},
|
|
780
781
|
},
|
|
782
|
+
{
|
|
783
|
+
input_type: FIELDS.NUMBER,
|
|
784
|
+
order: 3,
|
|
785
|
+
affix: 'PREFIX',
|
|
786
|
+
slug: 'number-field',
|
|
787
|
+
texts: {
|
|
788
|
+
label: 'Number',
|
|
789
|
+
affix_value: 'NOK',
|
|
790
|
+
placeholder_text: 'Number',
|
|
791
|
+
},
|
|
792
|
+
validators: [
|
|
793
|
+
{
|
|
794
|
+
minimum: 1,
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
maximum: 12,
|
|
798
|
+
},
|
|
799
|
+
],
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
input_type: FIELDS.RANGE,
|
|
803
|
+
order: 4,
|
|
804
|
+
affix: 'SUFFIX',
|
|
805
|
+
slug: 'range-field',
|
|
806
|
+
attributes: {
|
|
807
|
+
default_value: '50',
|
|
808
|
+
step: 10,
|
|
809
|
+
},
|
|
810
|
+
texts: {
|
|
811
|
+
label: 'Slider',
|
|
812
|
+
affix_value: 'NOK',
|
|
813
|
+
placeholder_text: 'Slider',
|
|
814
|
+
},
|
|
815
|
+
validators: [
|
|
816
|
+
{
|
|
817
|
+
minimum: 1,
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
maximum: 100,
|
|
821
|
+
},
|
|
822
|
+
],
|
|
823
|
+
},
|
|
781
824
|
],
|
|
782
825
|
},
|
|
783
826
|
},
|