@kindly/react-chat 2.40.0 → 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.40.
|
|
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: {
|
|
@@ -750,7 +751,7 @@ Form.parameters = {
|
|
|
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: {
|
|
@@ -779,7 +780,7 @@ Form.parameters = {
|
|
|
779
780
|
},
|
|
780
781
|
},
|
|
781
782
|
{
|
|
782
|
-
input_type:
|
|
783
|
+
input_type: FIELDS.NUMBER,
|
|
783
784
|
order: 3,
|
|
784
785
|
affix: 'PREFIX',
|
|
785
786
|
slug: 'number-field',
|
|
@@ -797,6 +798,29 @@ Form.parameters = {
|
|
|
797
798
|
},
|
|
798
799
|
],
|
|
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
|
+
},
|
|
800
824
|
],
|
|
801
825
|
},
|
|
802
826
|
},
|