freemium-survey-components 2.0.121 → 2.0.123

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.
@@ -914,16 +914,10 @@ export type HostConfigType = {
914
914
  export type WcTypes = 'list' | 'builder' | 'email' | 'preview' | 'response' | 'template';
915
915
  export type ProductType = 'freshsurvey' | 'freshsuccess' | 'freshdesk' | 'freshchat' | 'freshservice' | 'default';
916
916
  export type HostParamsType = {
917
- id?: string;
918
- surveyId?: string;
919
- cid?: string;
920
- collectorId?: string;
921
917
  showOnlyQuestionsPreview?: string;
922
918
  isImport?: string;
923
- active?: 'builder' | 'collector';
924
919
  };
925
920
  export type ComponentQParamsType = {
926
- product?: ProductType;
927
921
  component?: WcTypes;
928
922
  onboarding?: string;
929
923
  step?: string;
@@ -978,10 +972,36 @@ export interface SurveyServResponseType {
978
972
  export type PreviewChannelType = 'whatsapp' | 'email' | 'instagram';
979
973
  export type ExportedComponentType = {
980
974
  goToRoute: GoToRouteType;
981
- hostParams: HostParamsType;
975
+ hostParams: HostParamsType & {
976
+ /**
977
+ * @deprecated
978
+ */
979
+ id?: string;
980
+ /**
981
+ * @deprecated
982
+ */
983
+ surveyId?: string;
984
+ /**
985
+ * @deprecated
986
+ */
987
+ active?: 'builder' | 'collector';
988
+ /**
989
+ * @deprecated
990
+ */
991
+ cid?: string;
992
+ /**
993
+ * @deprecated
994
+ */
995
+ collectorId?: string;
996
+ };
982
997
  role: RoleType;
983
998
  setBreadcrumbData: SetBreadcrumbDataType;
984
- queryParams: ComponentQParamsType;
999
+ queryParams: ComponentQParamsType & {
1000
+ /**
1001
+ * @deprecated
1002
+ */
1003
+ product?: ProductType;
1004
+ };
985
1005
  hostConfig: HostConfigType;
986
1006
  surveyServAuthInfo: SurveyServAuthType;
987
1007
  product: ProductType;
@@ -990,9 +1010,10 @@ export type ExportedComponentType = {
990
1010
  accountInfo: SurveyServAuthAccountType;
991
1011
  channel: PreviewChannelType;
992
1012
  survey: SurveyType;
993
- collectorId: string;
994
- surveyId: string;
995
1013
  id: string;
1014
+ surveyId: string;
1015
+ cid: string;
1016
+ collectorId: string;
996
1017
  locale: string;
997
1018
  };
998
1019
  export type CommonDebugType = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "2.0.121",
3
+ "version": "2.0.123",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",