freemium-survey-components 0.13.4 → 0.13.5

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/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  ## [freemium-survey-components](https://www.npmjs.com/package/freemium-survey-components)
2
2
 
3
- ⚠️: **Not ready for public usage yet!**
4
-
5
3
  Freemium-survey-components renders the survey collection form given the survey object from the survey-serv platform service.
6
4
 
7
5
  ### Peer Dependencies
@@ -81,7 +79,7 @@ type NPSProps = {
81
79
  ### Usage
82
80
 
83
81
 
84
- ```sh
82
+ ```
85
83
  import {Survey} from 'freemium-survey-components'
86
84
  const WebSurveyPreview = () => {
87
85
  return <Survey
@@ -94,8 +92,6 @@ const WebSurveyPreview = () => {
94
92
  placeholders = {{
95
93
  '{{account.company_name}}': 'Freshworks',
96
94
  '{{account.account_name}}': 'Freshworks Account',
97
- '{{contact.plan}}': 'blossom',
98
- '{{contact.first_name}}': 'Alice',
99
95
  }} // placeholders to resolve against any such placeholder in surveyObj
100
96
  preview = {true} // preview true will not save the response
101
97
  npsvalue={null} // pass a number if nps qn needed to be prefilled by default
@@ -154,4 +150,4 @@ const NPSPreview = () => {
154
150
 
155
151
  ### Rules
156
152
 
157
- - survey object passed to Survey and WebInAppSurvey is cached on mount. In order to pass new survey object, we need to remount with the new survey object.
153
+ - survey object passed to Survey and WebInAppSurvey is cached on mount. In order to pass new survey object, it needs to be remounted with the new survey object.