@xapp/stentor-form-widget-channel 1.70.2 → 1.71.0
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/lib/FormWidgetEnv.d.ts +19 -0
- package/lib/FormWidgetTheme.d.ts +58 -63
- package/lib/FormWidgetTheme.js +0 -1
- package/lib/FormWidgetTheme.js.map +1 -1
- package/package.json +7 -7
package/lib/FormWidgetEnv.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ export interface FormWidgetEnv {
|
|
|
34
34
|
* The auto-greeting string (intent we start the widget with).
|
|
35
35
|
*
|
|
36
36
|
* It will be passed through an NLU to resolve it to an intent, then a handler that will have the content.
|
|
37
|
+
*
|
|
38
|
+
* @deprecated Use intentId instead
|
|
37
39
|
*/
|
|
38
40
|
readonly autoGreeting?: string;
|
|
39
41
|
/**
|
|
@@ -56,6 +58,23 @@ export interface FormWidgetEnv {
|
|
|
56
58
|
* When provided, it will display the side button
|
|
57
59
|
*/
|
|
58
60
|
readonly sideButtonLabel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* When provided, when on stand-along pages, it will display the business logo
|
|
63
|
+
*/
|
|
64
|
+
readonly businessLogoUrl?: string;
|
|
65
|
+
/**
|
|
66
|
+
* When provided, when on stand-along pages, it will display the business name
|
|
67
|
+
*/
|
|
68
|
+
readonly businessName?: string;
|
|
69
|
+
readonly businessAddress?: string;
|
|
70
|
+
/**
|
|
71
|
+
* When provided, when on stand-along pages, it will display the business website
|
|
72
|
+
*/
|
|
73
|
+
readonly businessWebsite?: string;
|
|
74
|
+
/**
|
|
75
|
+
* When provided, for stand-alone pages, it will display the chat widget
|
|
76
|
+
*/
|
|
77
|
+
readonly chatWidgetKey?: string;
|
|
59
78
|
/**
|
|
60
79
|
* Extra custom values
|
|
61
80
|
*/
|
package/lib/FormWidgetTheme.d.ts
CHANGED
|
@@ -1,77 +1,72 @@
|
|
|
1
|
-
/*! Copyright (c) 2023, XAPPmedia */
|
|
2
1
|
export interface FormWidgetTheme {
|
|
3
2
|
readonly accentColor?: string;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
readonly
|
|
3
|
+
readonly backgroundColor?: string;
|
|
4
|
+
readonly headerBackgroundColor?: string;
|
|
5
|
+
readonly headerTextColor?: string;
|
|
6
|
+
readonly primaryButtonColor?: string;
|
|
7
|
+
readonly primaryButtonTextColor?: string;
|
|
8
|
+
readonly secondaryButtonColor?: string;
|
|
9
|
+
readonly secondaryButtonTextColor?: string;
|
|
10
|
+
readonly text?: FormWidgetTextTheme;
|
|
11
|
+
readonly dropdown?: FormWidgetDropdownTheme;
|
|
12
|
+
readonly checkbox?: FormWidgetCheckboxTheme;
|
|
13
|
+
readonly chips?: FormWidgetChipsTheme;
|
|
14
|
+
readonly date?: FormWidgetDateTheme;
|
|
15
|
+
readonly card?: FormWidgetCardTheme;
|
|
16
|
+
readonly sideButton?: FormWidgetSideButtonTheme;
|
|
17
|
+
/**
|
|
18
|
+
* When used as a stand alone page, this helps theme the page
|
|
19
|
+
*/
|
|
20
|
+
readonly standAlone?: FormWidgetStandAloneTheme;
|
|
9
21
|
}
|
|
10
|
-
export interface
|
|
11
|
-
|
|
22
|
+
export interface FormWidgetStandAloneTheme {
|
|
23
|
+
/**
|
|
24
|
+
* Background color of the page
|
|
25
|
+
*/
|
|
26
|
+
readonly backgroundColor?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Header Theme that displays the logo and business name
|
|
29
|
+
*/
|
|
30
|
+
readonly header?: FormWidgetTextTheme;
|
|
12
31
|
}
|
|
13
|
-
export
|
|
14
|
-
|
|
32
|
+
export interface FormWidgetTextTheme {
|
|
33
|
+
readonly backgroundColor?: string;
|
|
15
34
|
readonly color?: string;
|
|
16
|
-
readonly
|
|
17
|
-
readonly radius?: string;
|
|
18
|
-
readonly style?: WidgetBorderStyle;
|
|
19
|
-
}
|
|
20
|
-
export interface WidgetPaddingTheme {
|
|
21
|
-
readonly top?: string;
|
|
22
|
-
readonly right?: string;
|
|
23
|
-
readonly bottom?: string;
|
|
24
|
-
readonly left?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface WidgetMarginTheme {
|
|
27
|
-
readonly top?: string;
|
|
28
|
-
readonly right?: string;
|
|
29
|
-
readonly bottom?: string;
|
|
30
|
-
readonly left?: string;
|
|
31
|
-
}
|
|
32
|
-
export type WidgetBackgroundTheme = string;
|
|
33
|
-
export interface WidgetMessagesTheme {
|
|
34
|
-
readonly others?: WidgetMessageTheme;
|
|
35
|
-
}
|
|
36
|
-
export interface WidgetBubbleTheme {
|
|
37
|
-
readonly background?: WidgetBackgroundTheme;
|
|
38
|
-
}
|
|
39
|
-
export interface WidgetMessageTheme {
|
|
40
|
-
/** Message bubble color */
|
|
41
|
-
readonly bubble?: WidgetBubbleTheme;
|
|
42
|
-
/** Message text color */
|
|
43
|
-
readonly text?: WidgetTextTheme;
|
|
35
|
+
readonly fontSize?: string;
|
|
44
36
|
}
|
|
45
|
-
export interface
|
|
37
|
+
export interface FormWidgetDropdownTheme {
|
|
38
|
+
readonly backgroundColor?: string;
|
|
46
39
|
readonly color?: string;
|
|
47
40
|
readonly fontSize?: string;
|
|
48
|
-
readonly fontFamily?: string;
|
|
49
|
-
readonly fontWeight?: string;
|
|
50
|
-
readonly fontStyle?: string;
|
|
51
|
-
readonly lineHeight?: string | number;
|
|
52
41
|
}
|
|
53
|
-
export interface
|
|
54
|
-
readonly
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
42
|
+
export interface FormWidgetCheckboxTheme {
|
|
43
|
+
readonly backgroundColor?: string;
|
|
44
|
+
readonly color?: string;
|
|
45
|
+
readonly fontSize?: string;
|
|
57
46
|
}
|
|
58
|
-
export interface
|
|
59
|
-
readonly
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
47
|
+
export interface FormWidgetChipsTheme {
|
|
48
|
+
readonly backgroundColor?: string;
|
|
49
|
+
readonly backgroundColorSelected?: string;
|
|
50
|
+
readonly color?: string;
|
|
51
|
+
readonly colorSelected?: string;
|
|
52
|
+
readonly fontSize?: string;
|
|
62
53
|
}
|
|
63
|
-
export interface
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly link?: WidgetLinkBlockTheme;
|
|
69
|
-
readonly padding?: WidgetPaddingTheme;
|
|
70
|
-
readonly margin?: WidgetMarginTheme;
|
|
54
|
+
export interface FormWidgetDateTheme {
|
|
55
|
+
readonly backgroundColor?: string;
|
|
56
|
+
readonly backgroundColorSelected?: string;
|
|
57
|
+
readonly color?: string;
|
|
58
|
+
readonly fontSize?: string;
|
|
71
59
|
}
|
|
72
|
-
export interface
|
|
73
|
-
readonly
|
|
60
|
+
export interface FormWidgetCardTheme {
|
|
61
|
+
readonly backgroundColor?: string;
|
|
62
|
+
readonly color?: string;
|
|
63
|
+
readonly fontSize?: string;
|
|
74
64
|
}
|
|
75
|
-
export interface
|
|
76
|
-
readonly
|
|
65
|
+
export interface FormWidgetSideButtonTheme {
|
|
66
|
+
readonly backgroundColor?: string;
|
|
67
|
+
readonly color?: string;
|
|
68
|
+
readonly fontSize?: string;
|
|
69
|
+
readonly postion?: string;
|
|
70
|
+
readonly top?: string;
|
|
71
|
+
readonly minLength?: string;
|
|
77
72
|
}
|
package/lib/FormWidgetTheme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormWidgetTheme.js","sourceRoot":"","sources":["../src/FormWidgetTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormWidgetTheme.js","sourceRoot":"","sources":["../src/FormWidgetTheme.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.
|
|
7
|
+
"version": "1.71.0",
|
|
8
8
|
"description": "Form Widget Channel for stentor 📣",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"@types/sinon": "10.0.13",
|
|
20
20
|
"@types/sinon-chai": "3.2.9",
|
|
21
21
|
"@xapp/config": "0.2.3",
|
|
22
|
-
"chai": "4.
|
|
22
|
+
"chai": "4.4.1",
|
|
23
23
|
"mocha": "9.2.2",
|
|
24
24
|
"sinon": "13.0.2",
|
|
25
25
|
"sinon-chai": "3.7.0",
|
|
26
|
-
"stentor-models": "1.
|
|
26
|
+
"stentor-models": "1.59.68",
|
|
27
27
|
"ts-node": "10.9.2",
|
|
28
|
-
"typescript": "5.
|
|
28
|
+
"typescript": "5.4.5"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"stentor-constants": "1.
|
|
32
|
-
"stentor-guards": "1.
|
|
31
|
+
"stentor-constants": "1.59.68",
|
|
32
|
+
"stentor-guards": "1.59.68"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"stentor-models": "1.X"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"build": "tsc -d true -p .",
|
|
39
39
|
"clean": "rm -rf ./lib/*"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "9423bf8079f81ced949967337635de77faa31a7f"
|
|
42
42
|
}
|