posthog-js 1.94.4 → 1.95.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/dist/array.full.js +1 -1
- package/dist/array.js +1 -1
- package/dist/es.js +1 -1
- package/dist/es.js.map +1 -1
- package/dist/module.d.ts +6 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/surveys.js +1 -1
- package/dist/surveys.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/extensions/surveys/surveys-utils.d.ts +24 -0
- package/lib/src/extensions/surveys/surveys-utils.js +513 -0
- package/lib/src/extensions/surveys/surveys-utils.js.map +1 -0
- package/lib/src/extensions/surveys-widget.d.ts +13 -0
- package/lib/src/extensions/surveys-widget.js +91 -0
- package/lib/src/extensions/surveys-widget.js.map +1 -0
- package/lib/src/extensions/surveys.d.ts +1 -9
- package/lib/src/extensions/surveys.js +48 -508
- package/lib/src/extensions/surveys.js.map +1 -1
- package/lib/src/posthog-surveys-types.d.ts +6 -1
- package/lib/src/posthog-surveys-types.js +1 -0
- package/lib/src/posthog-surveys-types.js.map +1 -1
- package/package.json +1 -1
package/dist/module.d.ts
CHANGED
|
@@ -1075,12 +1075,17 @@ interface SurveyAppearance {
|
|
|
1075
1075
|
borderColor?: string;
|
|
1076
1076
|
position?: 'left' | 'right' | 'center';
|
|
1077
1077
|
placeholder?: string;
|
|
1078
|
+
widgetType?: 'button' | 'tab' | 'selector';
|
|
1079
|
+
widgetSelector?: string;
|
|
1080
|
+
widgetLabel?: string;
|
|
1081
|
+
widgetColor?: string;
|
|
1078
1082
|
maxWidth?: string;
|
|
1079
1083
|
zIndex?: string;
|
|
1080
1084
|
}
|
|
1081
1085
|
declare enum SurveyType {
|
|
1082
1086
|
Popover = "popover",
|
|
1083
|
-
API = "api"
|
|
1087
|
+
API = "api",
|
|
1088
|
+
Widget = "widget"
|
|
1084
1089
|
}
|
|
1085
1090
|
declare type SurveyQuestion = BasicSurveyQuestion | LinkSurveyQuestion | RatingSurveyQuestion | MultipleSurveyQuestion;
|
|
1086
1091
|
interface SurveyQuestionBase {
|