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 +2 -6
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/types/mock.d.ts +22 -18
- package/lib/types/survey/standard/index.d.ts +1 -1
- package/lib/types/survey/utils/card-survey-logics.d.ts +384 -67
- package/lib/types/survey/utils/index.d.ts +1 -1
- package/lib/types/survey/utils/logics.d.ts +67 -0
- package/lib/types/survey/utils/survey-logics.d.ts +46 -343
- package/lib/types/survey/utils/use-standard-survey.d.ts +19 -0
- package/lib/types/types.d.ts +0 -1
- package/package.json +2 -4
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
|
-
```
|
|
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,
|
|
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.
|