@marketrix.ai/widget 3.8.477 → 3.8.479
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/dist/src/components/base/icons.d.ts +0 -11
- package/dist/src/utils/validation.d.ts +15 -2
- package/dist/widget.mjs +64 -66
- package/package.json +1 -1
|
@@ -18,35 +18,30 @@ export declare const icons: {
|
|
|
18
18
|
readonly viewBox: "0 0 512 512";
|
|
19
19
|
readonly paths: [{
|
|
20
20
|
readonly d: "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z";
|
|
21
|
-
readonly fill: "currentColor";
|
|
22
21
|
}];
|
|
23
22
|
};
|
|
24
23
|
readonly circle: {
|
|
25
24
|
readonly viewBox: "0 0 512 512";
|
|
26
25
|
readonly paths: [{
|
|
27
26
|
readonly d: "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z";
|
|
28
|
-
readonly fill: "currentColor";
|
|
29
27
|
}];
|
|
30
28
|
};
|
|
31
29
|
readonly exclamationCircle: {
|
|
32
30
|
readonly viewBox: "0 0 512 512";
|
|
33
31
|
readonly paths: [{
|
|
34
32
|
readonly d: "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z";
|
|
35
|
-
readonly fill: "currentColor";
|
|
36
33
|
}];
|
|
37
34
|
};
|
|
38
35
|
readonly arrowUp: {
|
|
39
36
|
readonly viewBox: "0 0 448 512";
|
|
40
37
|
readonly paths: [{
|
|
41
38
|
readonly d: "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z";
|
|
42
|
-
readonly fill: "currentColor";
|
|
43
39
|
}];
|
|
44
40
|
};
|
|
45
41
|
readonly arrowDown: {
|
|
46
42
|
readonly viewBox: "0 0 448 512";
|
|
47
43
|
readonly paths: [{
|
|
48
44
|
readonly d: "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z";
|
|
49
|
-
readonly fill: "currentColor";
|
|
50
45
|
}];
|
|
51
46
|
};
|
|
52
47
|
readonly chatBubble: {
|
|
@@ -59,20 +54,16 @@ export declare const icons: {
|
|
|
59
54
|
readonly strokeLinecap: "round";
|
|
60
55
|
}, {
|
|
61
56
|
readonly d: "M160 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0";
|
|
62
|
-
readonly fill: "currentColor";
|
|
63
57
|
}, {
|
|
64
58
|
readonly d: "M256 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0";
|
|
65
|
-
readonly fill: "currentColor";
|
|
66
59
|
}, {
|
|
67
60
|
readonly d: "M352 256 m-32 0 a32 32 0 1 1 64 0 a32 32 0 1 1 -64 0";
|
|
68
|
-
readonly fill: "currentColor";
|
|
69
61
|
}];
|
|
70
62
|
};
|
|
71
63
|
readonly stop: {
|
|
72
64
|
readonly viewBox: "0 0 512 512";
|
|
73
65
|
readonly paths: [{
|
|
74
66
|
readonly d: "M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z";
|
|
75
|
-
readonly fill: "currentColor";
|
|
76
67
|
}];
|
|
77
68
|
};
|
|
78
69
|
readonly mousePointerClick: {
|
|
@@ -83,7 +74,6 @@ export declare const icons: {
|
|
|
83
74
|
readonly viewBox: "0 0 24 24";
|
|
84
75
|
readonly paths: [{
|
|
85
76
|
readonly d: "M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12 12-5.383 12-12h-2.7c0 5.128-4.172 9.3-9.3 9.3-5.128 0-9.3-4.172-9.3-9.3 0-5.128 4.172-9.3 9.3-9.3V0Zm7.4 2.583-7.505 9.371L8.388 9.08l-2.002 2.436 4.741 3.888a1.573 1.573 0 0 0 2.231-.233l8.504-10.617L19.4 2.583Z";
|
|
86
|
-
readonly fill: "currentColor";
|
|
87
77
|
}];
|
|
88
78
|
};
|
|
89
79
|
readonly home: {
|
|
@@ -106,7 +96,6 @@ export declare const icons: {
|
|
|
106
96
|
readonly viewBox: "0 0 20 20";
|
|
107
97
|
readonly paths: [{
|
|
108
98
|
readonly d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z";
|
|
109
|
-
readonly fill: "currentColor";
|
|
110
99
|
readonly fillRule: "evenodd";
|
|
111
100
|
readonly clipRule: "evenodd";
|
|
112
101
|
}];
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { WidgetSettingsData } from '../sdk';
|
|
2
2
|
export declare function isHTMLElement(element: Element | null): element is HTMLElement;
|
|
3
3
|
export declare function isHTMLScriptElement(element: Element | null): element is HTMLScriptElement;
|
|
4
|
-
export
|
|
4
|
+
export type WidgetSettingsResult = {
|
|
5
|
+
settings: WidgetSettingsData;
|
|
6
|
+
invalidFields?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
settings?: undefined;
|
|
9
|
+
invalidFields: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Validates and PICKS, because stripping is load-bearing: `widgetDefaultGet` returns the render
|
|
13
|
+
* constants too, and the settings object is spread into the widget config — passing unknown keys
|
|
14
|
+
* through would leak them where zod used to drop them.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseWidgetSettings(value: unknown): WidgetSettingsResult;
|
|
17
|
+
export declare const invalidSettingsMessage: (invalidFields: string[]) => string;
|