@botpress/webchat 2.2.6 → 2.2.7

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.
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare const descriptionItemSchema: z.ZodObject<{
3
- title: z.ZodString;
3
+ title: z.ZodOptional<z.ZodString>;
4
4
  link: z.ZodOptional<z.ZodString>;
5
5
  }, "strip", z.ZodTypeAny, {
6
- title: string;
6
+ title?: string | undefined;
7
7
  link?: string | undefined;
8
8
  }, {
9
- title: string;
9
+ title?: string | undefined;
10
10
  link?: string | undefined;
11
11
  }>;
12
12
  export declare const WebchatThemeSchema: z.ZodObject<{
@@ -34,53 +34,53 @@ export declare const configurationSchema: z.ZodObject<{
34
34
  botAvatar: z.ZodOptional<z.ZodString>;
35
35
  botDescription: z.ZodOptional<z.ZodString>;
36
36
  website: z.ZodOptional<z.ZodObject<{
37
- title: z.ZodString;
37
+ title: z.ZodOptional<z.ZodString>;
38
38
  link: z.ZodOptional<z.ZodString>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- title: string;
40
+ title?: string | undefined;
41
41
  link?: string | undefined;
42
42
  }, {
43
- title: string;
43
+ title?: string | undefined;
44
44
  link?: string | undefined;
45
45
  }>>;
46
46
  email: z.ZodOptional<z.ZodObject<{
47
- title: z.ZodString;
47
+ title: z.ZodOptional<z.ZodString>;
48
48
  link: z.ZodOptional<z.ZodString>;
49
49
  }, "strip", z.ZodTypeAny, {
50
- title: string;
50
+ title?: string | undefined;
51
51
  link?: string | undefined;
52
52
  }, {
53
- title: string;
53
+ title?: string | undefined;
54
54
  link?: string | undefined;
55
55
  }>>;
56
56
  phone: z.ZodOptional<z.ZodObject<{
57
- title: z.ZodString;
57
+ title: z.ZodOptional<z.ZodString>;
58
58
  link: z.ZodOptional<z.ZodString>;
59
59
  }, "strip", z.ZodTypeAny, {
60
- title: string;
60
+ title?: string | undefined;
61
61
  link?: string | undefined;
62
62
  }, {
63
- title: string;
63
+ title?: string | undefined;
64
64
  link?: string | undefined;
65
65
  }>>;
66
66
  privacyPolicy: z.ZodOptional<z.ZodObject<{
67
- title: z.ZodString;
67
+ title: z.ZodOptional<z.ZodString>;
68
68
  link: z.ZodOptional<z.ZodString>;
69
69
  }, "strip", z.ZodTypeAny, {
70
- title: string;
70
+ title?: string | undefined;
71
71
  link?: string | undefined;
72
72
  }, {
73
- title: string;
73
+ title?: string | undefined;
74
74
  link?: string | undefined;
75
75
  }>>;
76
76
  termsOfService: z.ZodOptional<z.ZodObject<{
77
- title: z.ZodString;
77
+ title: z.ZodOptional<z.ZodString>;
78
78
  link: z.ZodOptional<z.ZodString>;
79
79
  }, "strip", z.ZodTypeAny, {
80
- title: string;
80
+ title?: string | undefined;
81
81
  link?: string | undefined;
82
82
  }, {
83
- title: string;
83
+ title?: string | undefined;
84
84
  link?: string | undefined;
85
85
  }>>;
86
86
  showPoweredBy: z.ZodOptional<z.ZodBoolean>;
@@ -95,23 +95,23 @@ export declare const configurationSchema: z.ZodObject<{
95
95
  botAvatar?: string | undefined;
96
96
  botDescription?: string | undefined;
97
97
  website?: {
98
- title: string;
98
+ title?: string | undefined;
99
99
  link?: string | undefined;
100
100
  } | undefined;
101
101
  email?: {
102
- title: string;
102
+ title?: string | undefined;
103
103
  link?: string | undefined;
104
104
  } | undefined;
105
105
  phone?: {
106
- title: string;
106
+ title?: string | undefined;
107
107
  link?: string | undefined;
108
108
  } | undefined;
109
109
  privacyPolicy?: {
110
- title: string;
110
+ title?: string | undefined;
111
111
  link?: string | undefined;
112
112
  } | undefined;
113
113
  termsOfService?: {
114
- title: string;
114
+ title?: string | undefined;
115
115
  link?: string | undefined;
116
116
  } | undefined;
117
117
  showPoweredBy?: boolean | undefined;
@@ -126,23 +126,23 @@ export declare const configurationSchema: z.ZodObject<{
126
126
  botAvatar?: string | undefined;
127
127
  botDescription?: string | undefined;
128
128
  website?: {
129
- title: string;
129
+ title?: string | undefined;
130
130
  link?: string | undefined;
131
131
  } | undefined;
132
132
  email?: {
133
- title: string;
133
+ title?: string | undefined;
134
134
  link?: string | undefined;
135
135
  } | undefined;
136
136
  phone?: {
137
- title: string;
137
+ title?: string | undefined;
138
138
  link?: string | undefined;
139
139
  } | undefined;
140
140
  privacyPolicy?: {
141
- title: string;
141
+ title?: string | undefined;
142
142
  link?: string | undefined;
143
143
  } | undefined;
144
144
  termsOfService?: {
145
- title: string;
145
+ title?: string | undefined;
146
146
  link?: string | undefined;
147
147
  } | undefined;
148
148
  showPoweredBy?: boolean | undefined;
@@ -22,53 +22,53 @@ export declare const configPropsSchema: z.ZodObject<{
22
22
  botAvatar: z.ZodOptional<z.ZodString>;
23
23
  botDescription: z.ZodOptional<z.ZodString>;
24
24
  website: z.ZodOptional<z.ZodObject<{
25
- title: z.ZodString;
25
+ title: z.ZodOptional<z.ZodString>;
26
26
  link: z.ZodOptional<z.ZodString>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- title: string;
28
+ title?: string | undefined;
29
29
  link?: string | undefined;
30
30
  }, {
31
- title: string;
31
+ title?: string | undefined;
32
32
  link?: string | undefined;
33
33
  }>>;
34
34
  email: z.ZodOptional<z.ZodObject<{
35
- title: z.ZodString;
35
+ title: z.ZodOptional<z.ZodString>;
36
36
  link: z.ZodOptional<z.ZodString>;
37
37
  }, "strip", z.ZodTypeAny, {
38
- title: string;
38
+ title?: string | undefined;
39
39
  link?: string | undefined;
40
40
  }, {
41
- title: string;
41
+ title?: string | undefined;
42
42
  link?: string | undefined;
43
43
  }>>;
44
44
  phone: z.ZodOptional<z.ZodObject<{
45
- title: z.ZodString;
45
+ title: z.ZodOptional<z.ZodString>;
46
46
  link: z.ZodOptional<z.ZodString>;
47
47
  }, "strip", z.ZodTypeAny, {
48
- title: string;
48
+ title?: string | undefined;
49
49
  link?: string | undefined;
50
50
  }, {
51
- title: string;
51
+ title?: string | undefined;
52
52
  link?: string | undefined;
53
53
  }>>;
54
54
  privacyPolicy: z.ZodOptional<z.ZodObject<{
55
- title: z.ZodString;
55
+ title: z.ZodOptional<z.ZodString>;
56
56
  link: z.ZodOptional<z.ZodString>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- title: string;
58
+ title?: string | undefined;
59
59
  link?: string | undefined;
60
60
  }, {
61
- title: string;
61
+ title?: string | undefined;
62
62
  link?: string | undefined;
63
63
  }>>;
64
64
  termsOfService: z.ZodOptional<z.ZodObject<{
65
- title: z.ZodString;
65
+ title: z.ZodOptional<z.ZodString>;
66
66
  link: z.ZodOptional<z.ZodString>;
67
67
  }, "strip", z.ZodTypeAny, {
68
- title: string;
68
+ title?: string | undefined;
69
69
  link?: string | undefined;
70
70
  }, {
71
- title: string;
71
+ title?: string | undefined;
72
72
  link?: string | undefined;
73
73
  }>>;
74
74
  showPoweredBy: z.ZodOptional<z.ZodBoolean>;
@@ -83,23 +83,23 @@ export declare const configPropsSchema: z.ZodObject<{
83
83
  botAvatar?: string | undefined;
84
84
  botDescription?: string | undefined;
85
85
  website?: {
86
- title: string;
86
+ title?: string | undefined;
87
87
  link?: string | undefined;
88
88
  } | undefined;
89
89
  email?: {
90
- title: string;
90
+ title?: string | undefined;
91
91
  link?: string | undefined;
92
92
  } | undefined;
93
93
  phone?: {
94
- title: string;
94
+ title?: string | undefined;
95
95
  link?: string | undefined;
96
96
  } | undefined;
97
97
  privacyPolicy?: {
98
- title: string;
98
+ title?: string | undefined;
99
99
  link?: string | undefined;
100
100
  } | undefined;
101
101
  termsOfService?: {
102
- title: string;
102
+ title?: string | undefined;
103
103
  link?: string | undefined;
104
104
  } | undefined;
105
105
  showPoweredBy?: boolean | undefined;
@@ -114,23 +114,23 @@ export declare const configPropsSchema: z.ZodObject<{
114
114
  botAvatar?: string | undefined;
115
115
  botDescription?: string | undefined;
116
116
  website?: {
117
- title: string;
117
+ title?: string | undefined;
118
118
  link?: string | undefined;
119
119
  } | undefined;
120
120
  email?: {
121
- title: string;
121
+ title?: string | undefined;
122
122
  link?: string | undefined;
123
123
  } | undefined;
124
124
  phone?: {
125
- title: string;
125
+ title?: string | undefined;
126
126
  link?: string | undefined;
127
127
  } | undefined;
128
128
  privacyPolicy?: {
129
- title: string;
129
+ title?: string | undefined;
130
130
  link?: string | undefined;
131
131
  } | undefined;
132
132
  termsOfService?: {
133
- title: string;
133
+ title?: string | undefined;
134
134
  link?: string | undefined;
135
135
  } | undefined;
136
136
  showPoweredBy?: boolean | undefined;
@@ -3771,23 +3771,23 @@ export declare const configPropsSchema: z.ZodObject<{
3771
3771
  botAvatar?: string | undefined;
3772
3772
  botDescription?: string | undefined;
3773
3773
  website?: {
3774
- title: string;
3774
+ title?: string | undefined;
3775
3775
  link?: string | undefined;
3776
3776
  } | undefined;
3777
3777
  email?: {
3778
- title: string;
3778
+ title?: string | undefined;
3779
3779
  link?: string | undefined;
3780
3780
  } | undefined;
3781
3781
  phone?: {
3782
- title: string;
3782
+ title?: string | undefined;
3783
3783
  link?: string | undefined;
3784
3784
  } | undefined;
3785
3785
  privacyPolicy?: {
3786
- title: string;
3786
+ title?: string | undefined;
3787
3787
  link?: string | undefined;
3788
3788
  } | undefined;
3789
3789
  termsOfService?: {
3790
- title: string;
3790
+ title?: string | undefined;
3791
3791
  link?: string | undefined;
3792
3792
  } | undefined;
3793
3793
  showPoweredBy?: boolean | undefined;
@@ -4239,53 +4239,53 @@ export declare const initPropsSchema: z.ZodObject<{
4239
4239
  botAvatar: z.ZodOptional<z.ZodString>;
4240
4240
  botDescription: z.ZodOptional<z.ZodString>;
4241
4241
  website: z.ZodOptional<z.ZodObject<{
4242
- title: z.ZodString;
4242
+ title: z.ZodOptional<z.ZodString>;
4243
4243
  link: z.ZodOptional<z.ZodString>;
4244
4244
  }, "strip", z.ZodTypeAny, {
4245
- title: string;
4245
+ title?: string | undefined;
4246
4246
  link?: string | undefined;
4247
4247
  }, {
4248
- title: string;
4248
+ title?: string | undefined;
4249
4249
  link?: string | undefined;
4250
4250
  }>>;
4251
4251
  email: z.ZodOptional<z.ZodObject<{
4252
- title: z.ZodString;
4252
+ title: z.ZodOptional<z.ZodString>;
4253
4253
  link: z.ZodOptional<z.ZodString>;
4254
4254
  }, "strip", z.ZodTypeAny, {
4255
- title: string;
4255
+ title?: string | undefined;
4256
4256
  link?: string | undefined;
4257
4257
  }, {
4258
- title: string;
4258
+ title?: string | undefined;
4259
4259
  link?: string | undefined;
4260
4260
  }>>;
4261
4261
  phone: z.ZodOptional<z.ZodObject<{
4262
- title: z.ZodString;
4262
+ title: z.ZodOptional<z.ZodString>;
4263
4263
  link: z.ZodOptional<z.ZodString>;
4264
4264
  }, "strip", z.ZodTypeAny, {
4265
- title: string;
4265
+ title?: string | undefined;
4266
4266
  link?: string | undefined;
4267
4267
  }, {
4268
- title: string;
4268
+ title?: string | undefined;
4269
4269
  link?: string | undefined;
4270
4270
  }>>;
4271
4271
  privacyPolicy: z.ZodOptional<z.ZodObject<{
4272
- title: z.ZodString;
4272
+ title: z.ZodOptional<z.ZodString>;
4273
4273
  link: z.ZodOptional<z.ZodString>;
4274
4274
  }, "strip", z.ZodTypeAny, {
4275
- title: string;
4275
+ title?: string | undefined;
4276
4276
  link?: string | undefined;
4277
4277
  }, {
4278
- title: string;
4278
+ title?: string | undefined;
4279
4279
  link?: string | undefined;
4280
4280
  }>>;
4281
4281
  termsOfService: z.ZodOptional<z.ZodObject<{
4282
- title: z.ZodString;
4282
+ title: z.ZodOptional<z.ZodString>;
4283
4283
  link: z.ZodOptional<z.ZodString>;
4284
4284
  }, "strip", z.ZodTypeAny, {
4285
- title: string;
4285
+ title?: string | undefined;
4286
4286
  link?: string | undefined;
4287
4287
  }, {
4288
- title: string;
4288
+ title?: string | undefined;
4289
4289
  link?: string | undefined;
4290
4290
  }>>;
4291
4291
  showPoweredBy: z.ZodOptional<z.ZodBoolean>;
@@ -4300,23 +4300,23 @@ export declare const initPropsSchema: z.ZodObject<{
4300
4300
  botAvatar?: string | undefined;
4301
4301
  botDescription?: string | undefined;
4302
4302
  website?: {
4303
- title: string;
4303
+ title?: string | undefined;
4304
4304
  link?: string | undefined;
4305
4305
  } | undefined;
4306
4306
  email?: {
4307
- title: string;
4307
+ title?: string | undefined;
4308
4308
  link?: string | undefined;
4309
4309
  } | undefined;
4310
4310
  phone?: {
4311
- title: string;
4311
+ title?: string | undefined;
4312
4312
  link?: string | undefined;
4313
4313
  } | undefined;
4314
4314
  privacyPolicy?: {
4315
- title: string;
4315
+ title?: string | undefined;
4316
4316
  link?: string | undefined;
4317
4317
  } | undefined;
4318
4318
  termsOfService?: {
4319
- title: string;
4319
+ title?: string | undefined;
4320
4320
  link?: string | undefined;
4321
4321
  } | undefined;
4322
4322
  showPoweredBy?: boolean | undefined;
@@ -4331,23 +4331,23 @@ export declare const initPropsSchema: z.ZodObject<{
4331
4331
  botAvatar?: string | undefined;
4332
4332
  botDescription?: string | undefined;
4333
4333
  website?: {
4334
- title: string;
4334
+ title?: string | undefined;
4335
4335
  link?: string | undefined;
4336
4336
  } | undefined;
4337
4337
  email?: {
4338
- title: string;
4338
+ title?: string | undefined;
4339
4339
  link?: string | undefined;
4340
4340
  } | undefined;
4341
4341
  phone?: {
4342
- title: string;
4342
+ title?: string | undefined;
4343
4343
  link?: string | undefined;
4344
4344
  } | undefined;
4345
4345
  privacyPolicy?: {
4346
- title: string;
4346
+ title?: string | undefined;
4347
4347
  link?: string | undefined;
4348
4348
  } | undefined;
4349
4349
  termsOfService?: {
4350
- title: string;
4350
+ title?: string | undefined;
4351
4351
  link?: string | undefined;
4352
4352
  } | undefined;
4353
4353
  showPoweredBy?: boolean | undefined;
@@ -7999,23 +7999,23 @@ export declare const initPropsSchema: z.ZodObject<{
7999
7999
  botAvatar?: string | undefined;
8000
8000
  botDescription?: string | undefined;
8001
8001
  website?: {
8002
- title: string;
8002
+ title?: string | undefined;
8003
8003
  link?: string | undefined;
8004
8004
  } | undefined;
8005
8005
  email?: {
8006
- title: string;
8006
+ title?: string | undefined;
8007
8007
  link?: string | undefined;
8008
8008
  } | undefined;
8009
8009
  phone?: {
8010
- title: string;
8010
+ title?: string | undefined;
8011
8011
  link?: string | undefined;
8012
8012
  } | undefined;
8013
8013
  privacyPolicy?: {
8014
- title: string;
8014
+ title?: string | undefined;
8015
8015
  link?: string | undefined;
8016
8016
  } | undefined;
8017
8017
  termsOfService?: {
8018
- title: string;
8018
+ title?: string | undefined;
8019
8019
  link?: string | undefined;
8020
8020
  } | undefined;
8021
8021
  showPoweredBy?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/webchat",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.umd.cjs",