freemium-survey-components 1.0.260 → 1.0.261

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.
@@ -0,0 +1,122 @@
1
+ {
2
+ "name": "freemium-survey-components",
3
+ "version": "1.0.260",
4
+ "description": "React Survey Ui Components",
5
+ "main": "lib/index.cjs.js",
6
+ "module": "lib/index.esm.js",
7
+ "types": "lib/types",
8
+ "directories": {
9
+ "lib": "lib"
10
+ },
11
+ "scripts": {
12
+ "storybook": "start-storybook -p 6006",
13
+ "build-storybook": "build-storybook",
14
+ "release": "npm version prerelease --preid=v2",
15
+ "lint": "eslint src --fix",
16
+ "build": "rollup -c rollup.config.ts",
17
+ "prepublishOnly": "npm run build",
18
+ "test": "playwright test",
19
+ "test-report": "playwright show-report",
20
+ "test-codegen": "playwright codegen ",
21
+ "prepare": "husky install",
22
+ "check": "prettier --check .",
23
+ "format": "prettier --write ."
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/freshdesk/freemium-survey-components.git"
28
+ },
29
+ "publishConfig": {
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+ "keywords": [
33
+ "Surveyserv",
34
+ "Freshsurvey"
35
+ ],
36
+ "author": "Freshworks",
37
+ "bugs": {
38
+ "url": "https://github.com/freshdesk/freemium-survey-components/issues"
39
+ },
40
+ "homepage": "https://github.com/freshdesk/freemium-survey-components#readme",
41
+ "peerDependencies": {
42
+ "react": ">=16.0.2",
43
+ "react-dom": ">=16.0.2"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.17.8",
47
+ "@playwright/test": "^1.22.2",
48
+ "@rollup/plugin-commonjs": "13.0.0",
49
+ "@rollup/plugin-node-resolve": "8.1.0",
50
+ "@storybook/addon-a11y": "^6.5.15",
51
+ "@storybook/addon-info": "~5.3.21",
52
+ "@storybook/addon-measure": "^6.5.15",
53
+ "@storybook/addon-postcss": "^2.0.0",
54
+ "@storybook/addon-toolbars": "^6.5.15",
55
+ "@storybook/addon-viewport": "^6.5.15",
56
+ "@storybook/addons": "~6.5.15",
57
+ "@storybook/preset-scss": "^1.0.3",
58
+ "@storybook/react": "~6.5.15",
59
+ "@storybook/theming": "~6.5.15",
60
+ "@testing-library/react": "^12.1.4",
61
+ "@types/jest": "^25.1.4",
62
+ "@types/lodash.clonedeep": "^4.5.7",
63
+ "@types/node": "13.9.0",
64
+ "@types/react": "^17.0.30",
65
+ "@types/react-dom": "^17.0.9",
66
+ "@types/react-transition-group": "^4.4.0",
67
+ "@types/storybook__addon-knobs": "5.2.1",
68
+ "@types/storybook__react": "5.2.1",
69
+ "@types/styled-components": "^5.1.0",
70
+ "@typescript-eslint/eslint-plugin": "^3.0.2",
71
+ "@typescript-eslint/parser": "^3.0.2",
72
+ "babel-jest": "^27.5.1",
73
+ "babel-loader": "8.1.0",
74
+ "clean-webpack-plugin": "^3.0.0",
75
+ "copy-webpack-plugin": "^6.0.1",
76
+ "css-loader": "<6.0.0",
77
+ "eslint": "^7.1.0",
78
+ "eslint-config-prettier": "^6.15.0",
79
+ "eslint-loader": "^4.0.2",
80
+ "eslint-plugin-jsx-a11y": "^6.5.1",
81
+ "eslint-plugin-prettier": "^3.1.3",
82
+ "eslint-plugin-react": "^7.20.0",
83
+ "eslint-plugin-react-hooks": "^4.0.4",
84
+ "file-loader": "^6.0.0",
85
+ "fork-ts-checker-webpack-plugin": "4.1.1",
86
+ "html-loader": "^1.1.0",
87
+ "html-webpack-plugin": "^4.3.0",
88
+ "husky": "^8.0.3",
89
+ "jest": "^25.2.0",
90
+ "postcss": "^8.3.11",
91
+ "postcss-preset-env": "^6.7.0",
92
+ "prettier": "^2.8.8",
93
+ "react": "^17.0.2",
94
+ "react-dom": "^17.0.2",
95
+ "rollup": "2.18.0",
96
+ "rollup-plugin-postcss": "^4.0.1",
97
+ "rollup-plugin-terser": "^7.0.2",
98
+ "rollup-plugin-typescript2": "0.27.1",
99
+ "sass": "^1.44.0",
100
+ "sass-loader": "10.1.1",
101
+ "style-loader": "<3.0.0",
102
+ "ts-loader": "^7.0.5",
103
+ "typescript": "^4.6.4",
104
+ "webpack": "^4.43.0",
105
+ "webpack-cli": "^3.3.11",
106
+ "webpack-dev-server": "^3.11.0"
107
+ },
108
+ "dependencies": {
109
+ "@dnd-kit/core": "^6.0.8",
110
+ "@dnd-kit/modifiers": "^6.0.1",
111
+ "@dnd-kit/sortable": "^7.0.2",
112
+ "@dnd-kit/utilities": "^3.2.1",
113
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
114
+ "@radix-ui/react-slider": "^1.1.2",
115
+ "date-fns": "^2.30.0",
116
+ "lodash.clonedeep": "^4.5.0",
117
+ "lodash.debounce": "^4.0.8",
118
+ "react-day-picker": "^8.8.2",
119
+ "react-time-picker": "^6.5.0",
120
+ "react-transition-group": "^4.4.2"
121
+ }
122
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "name": "freemium-survey-components",
3
+ "version": "1.0.261",
4
+ "description": "React Survey Ui Components",
5
+ "main": "lib/index.cjs.js",
6
+ "module": "lib/index.esm.js",
7
+ "types": "lib/types",
8
+ "directories": {
9
+ "lib": "lib"
10
+ },
11
+ "scripts": {
12
+ "storybook": "start-storybook -p 6006",
13
+ "build-storybook": "build-storybook",
14
+ "release": "npm version prerelease --preid=v2",
15
+ "lint": "eslint src --fix",
16
+ "build": "rollup -c rollup.config.ts",
17
+ "prepublishOnly": "npm run build",
18
+ "test": "playwright test",
19
+ "test-report": "playwright show-report",
20
+ "test-codegen": "playwright codegen ",
21
+ "prepare": "husky install",
22
+ "check": "prettier --check .",
23
+ "format": "prettier --write ."
24
+ },
25
+ "repository": {
26
+ "type": "git",
27
+ "url": "git+https://github.com/freshdesk/freemium-survey-components.git"
28
+ },
29
+ "publishConfig": {
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+ "keywords": [
33
+ "Surveyserv",
34
+ "Freshsurvey"
35
+ ],
36
+ "author": "Freshworks",
37
+ "bugs": {
38
+ "url": "https://github.com/freshdesk/freemium-survey-components/issues"
39
+ },
40
+ "homepage": "https://github.com/freshdesk/freemium-survey-components#readme",
41
+ "peerDependencies": {
42
+ "react": ">=16.0.2",
43
+ "react-dom": ">=16.0.2"
44
+ },
45
+ "devDependencies": {
46
+ "@babel/core": "^7.17.8",
47
+ "@playwright/test": "^1.22.2",
48
+ "@rollup/plugin-commonjs": "13.0.0",
49
+ "@rollup/plugin-node-resolve": "8.1.0",
50
+ "@storybook/addon-a11y": "^6.5.15",
51
+ "@storybook/addon-info": "~5.3.21",
52
+ "@storybook/addon-measure": "^6.5.15",
53
+ "@storybook/addon-postcss": "^2.0.0",
54
+ "@storybook/addon-toolbars": "^6.5.15",
55
+ "@storybook/addon-viewport": "^6.5.15",
56
+ "@storybook/addons": "~6.5.15",
57
+ "@storybook/preset-scss": "^1.0.3",
58
+ "@storybook/react": "~6.5.15",
59
+ "@storybook/theming": "~6.5.15",
60
+ "@testing-library/react": "^12.1.4",
61
+ "@types/jest": "^25.1.4",
62
+ "@types/lodash.clonedeep": "^4.5.7",
63
+ "@types/node": "13.9.0",
64
+ "@types/react": "^17.0.30",
65
+ "@types/react-dom": "^17.0.9",
66
+ "@types/react-transition-group": "^4.4.0",
67
+ "@types/storybook__addon-knobs": "5.2.1",
68
+ "@types/storybook__react": "5.2.1",
69
+ "@types/styled-components": "^5.1.0",
70
+ "@typescript-eslint/eslint-plugin": "^3.0.2",
71
+ "@typescript-eslint/parser": "^3.0.2",
72
+ "babel-jest": "^27.5.1",
73
+ "babel-loader": "8.1.0",
74
+ "clean-webpack-plugin": "^3.0.0",
75
+ "copy-webpack-plugin": "^6.0.1",
76
+ "css-loader": "<6.0.0",
77
+ "eslint": "^7.1.0",
78
+ "eslint-config-prettier": "^6.15.0",
79
+ "eslint-loader": "^4.0.2",
80
+ "eslint-plugin-jsx-a11y": "^6.5.1",
81
+ "eslint-plugin-prettier": "^3.1.3",
82
+ "eslint-plugin-react": "^7.20.0",
83
+ "eslint-plugin-react-hooks": "^4.0.4",
84
+ "file-loader": "^6.0.0",
85
+ "fork-ts-checker-webpack-plugin": "4.1.1",
86
+ "html-loader": "^1.1.0",
87
+ "html-webpack-plugin": "^4.3.0",
88
+ "husky": "^8.0.3",
89
+ "jest": "^25.2.0",
90
+ "postcss": "^8.3.11",
91
+ "postcss-preset-env": "^6.7.0",
92
+ "prettier": "^2.8.8",
93
+ "react": "^17.0.2",
94
+ "react-dom": "^17.0.2",
95
+ "rollup": "2.18.0",
96
+ "rollup-plugin-postcss": "^4.0.1",
97
+ "rollup-plugin-terser": "^7.0.2",
98
+ "rollup-plugin-typescript2": "0.27.1",
99
+ "sass": "^1.44.0",
100
+ "sass-loader": "10.1.1",
101
+ "style-loader": "<3.0.0",
102
+ "ts-loader": "^7.0.5",
103
+ "typescript": "^4.6.4",
104
+ "webpack": "^4.43.0",
105
+ "webpack-cli": "^3.3.11",
106
+ "webpack-dev-server": "^3.11.0"
107
+ },
108
+ "dependencies": {
109
+ "@dnd-kit/core": "^6.0.8",
110
+ "@dnd-kit/modifiers": "^6.0.1",
111
+ "@dnd-kit/sortable": "^7.0.2",
112
+ "@dnd-kit/utilities": "^3.2.1",
113
+ "@radix-ui/react-dropdown-menu": "^2.0.5",
114
+ "@radix-ui/react-slider": "^1.1.2",
115
+ "date-fns": "^2.30.0",
116
+ "lodash.clonedeep": "^4.5.0",
117
+ "lodash.debounce": "^4.0.8",
118
+ "react-day-picker": "^8.8.2",
119
+ "react-time-picker": "^6.5.0",
120
+ "react-transition-group": "^4.4.2"
121
+ }
122
+ }
@@ -1,30 +1 @@
1
- import { ButtonStyleShapeTypes, ButtonStyleTypes, PropertiesLabelsPreferenceType, QuestionTypeVariantType, ScalePropertiesOrderType, WidgetStyles } from '../../types';
2
- declare type RangeStoryProps = {
3
- btShape: ButtonStyleShapeTypes;
4
- btType: ButtonStyleTypes;
5
- order: ScalePropertiesOrderType;
6
- preference: PropertiesLabelsPreferenceType;
7
- variant: QuestionTypeVariantType;
8
- labels: string[];
9
- scale: number;
10
- value: number;
11
- isMobile: boolean;
12
- isWidget: boolean;
13
- widgetStyle: WidgetStyles;
14
- };
15
- export declare const RangeStory: (props: RangeStoryProps) => JSX.Element;
16
- declare const _default: {
17
- title: string;
18
- component: (props: RangeStoryProps) => JSX.Element;
19
- argTypes: {
20
- scale: {
21
- control: {
22
- type: string;
23
- min: number;
24
- max: number;
25
- };
26
- };
27
- };
28
- args: RangeStoryProps;
29
- };
30
- export default _default;
1
+ export {};
@@ -1,12 +1,9 @@
1
1
  import { SurveyType } from './types';
2
2
  export declare const CSAT_SURVEY: SurveyType;
3
- export declare const CSAT_SURVEY_MESSAGE_CONSENT_QUESTIONS: SurveyType;
4
- export declare const CSAT_SURVEY_DROPDOWN_DATETIME_QUESTION: SurveyType;
5
- export declare const FORM_FIELDS_SURVEY: SurveyType;
6
3
  export declare const CES_YES_NO_SURVEY: SurveyType;
7
4
  export declare const NPS_SURVEY: SurveyType;
8
5
  export declare const RESUBMIT_SURVEY: SurveyType;
9
- export declare const SURVEY_TO_USE: SurveyType;
6
+ export declare const COMPLEX_SURVEY: SurveyType;
10
7
  export declare const mockPlaceholders: {
11
8
  '{{contact.user_created_date}}': string;
12
9
  '{{contact.zipcode}}': string;
@@ -46,35 +43,3 @@ export declare const mockPlaceholders: {
46
43
  '{{contact.work_email}}': string;
47
44
  '{{contact.country}}': string;
48
45
  };
49
- export declare const MOCK_CONTACT_DATA: {
50
- address: string;
51
- city: string;
52
- country: string;
53
- state: string;
54
- first_name: string;
55
- last_name: string;
56
- work_email: string;
57
- mobile_number: string;
58
- company_name: string;
59
- language: string;
60
- email_state: string;
61
- sample_field: string;
62
- sample_date: string;
63
- };
64
- export declare const MOCK_TRANSLATIONS_VARIABLES: {
65
- edit_response: string;
66
- another_response: string;
67
- redirect_msg: string;
68
- prev_statement: string;
69
- prev_question: string;
70
- next_question: string;
71
- next: string;
72
- skip: string;
73
- submit_survey: string;
74
- submitting: string;
75
- };
76
- export declare const EMOJI_ALL_SCALES: SurveyType;
77
- export declare const STAR_ALL_SCALES: SurveyType;
78
- export declare const TEXT_ALL_SCALES: SurveyType;
79
- export declare const ALL_QUESTION_TYPES_SURVEY: SurveyType;
80
- export declare const NUMBER_ALL_SCALES: SurveyType;
@@ -423,6 +423,7 @@ export declare type CollectorMetaType = {
423
423
  allow_multiple_submissions?: boolean | null;
424
424
  allow_anonymous_responses?: boolean | null;
425
425
  load_new_survey?: boolean | null;
426
+ show_preheader?: boolean;
426
427
  };
427
428
  export declare type CollectorType = {
428
429
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freemium-survey-components",
3
- "version": "1.0.260",
3
+ "version": "1.0.261",
4
4
  "description": "React Survey Ui Components",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",