pushfeedback 0.1.63 → 0.1.65

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.
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-90a99a78",[[1,"feedback-button",{sessionId:[1537,"session-id"],customFont:[4,"custom-font"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],footerText:[1,"footer-text"],buttonStyle:[1,"button-style"],buttonPosition:[1,"button-position"],hideIcon:[4,"hide-icon"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideMobile:[4,"hide-mobile"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"],submit:[4]}],[1,"feedback-modal",{customFont:[4,"custom-font"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],modalTitle:[1,"modal-title"],modalTitleSuccess:[1,"modal-title-success"],modalTitleError:[1,"modal-title-error"],modalPosition:[1,"modal-position"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"],project:[1],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],hideEmail:[4,"hide-email"],emailAddress:[1,"email-address"],emailPlaceholder:[1,"email-placeholder"],messagePlaceholder:[1,"message-placeholder"],hideRating:[4,"hide-rating"],rating:[2],ratingMode:[1,"rating-mode"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],footerText:[1,"footer-text"],showModal:[1540,"show-modal"],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],hasSelectedElement:[1540,"has-selected-element"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32],overlayVisible:[32],isAnimating:[32],openModal:[64]}]]]],e)));
1
+ import{p as e,b as t}from"./p-af2a1f7f.js";export{s as setNonce}from"./p-af2a1f7f.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-d671215c",[[1,"feedback-button",{buttonPosition:[1,"button-position"],buttonStyle:[1,"button-style"],hideIcon:[4,"hide-icon"],hideMobile:[4,"hide-mobile"],sessionId:[1537,"session-id"],submit:[4],customFont:[4,"custom-font"],emailAddress:[1,"email-address"],isEmailRequired:[4,"is-email-required"],fetchData:[4,"fetch-data"],hideEmail:[4,"hide-email"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],modalPosition:[1,"modal-position"],project:[1],rating:[2],ratingMode:[1,"rating-mode"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],footerText:[1,"footer-text"],messagePlaceholder:[1,"message-placeholder"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],sendButtonText:[1,"send-button-text"],successMessage:[1,"success-message"]}],[1,"feedback-modal",{customFont:[4,"custom-font"],emailAddress:[1,"email-address"],hideEmail:[4,"hide-email"],isEmailRequired:[4,"is-email-required"],ratingMode:[1,"rating-mode"],hasSelectedElement:[1540,"has-selected-element"],hidePrivacyPolicy:[4,"hide-privacy-policy"],hideRating:[4,"hide-rating"],hideScreenshotButton:[4,"hide-screenshot-button"],project:[1],showScreenshotMode:[1540,"show-screenshot-mode"],showScreenshotTopBar:[1540,"show-screenshot-top-bar"],showModal:[1540,"show-modal"],rating:[2],fetchData:[4,"fetch-data"],emailPlaceholder:[1,"email-placeholder"],errorMessage:[1,"error-message"],errorMessage403:[1,"error-message-4-0-3"],errorMessage404:[1,"error-message-4-0-4"],messagePlaceholder:[1,"message-placeholder"],footerText:[1,"footer-text"],modalPosition:[1,"modal-position"],modalTitle:[1,"modal-title"],modalTitleError:[1,"modal-title-error"],modalTitleSuccess:[1,"modal-title-success"],privacyPolicyText:[1,"privacy-policy-text"],ratingPlaceholder:[1,"rating-placeholder"],ratingStarsPlaceholder:[1,"rating-stars-placeholder"],sendButtonText:[1,"send-button-text"],screenshotButtonText:[1,"screenshot-button-text"],screenshotTopbarText:[1,"screenshot-topbar-text"],successMessage:[1,"success-message"],sending:[32],formMessage:[32],formEmail:[32],formSuccess:[32],formVerification:[32],formError:[32],formErrorStatus:[32],encodedScreenshot:[32],isPrivacyChecked:[32],whitelabel:[32],selectedRating:[32],overlayVisible:[32],isAnimating:[32],openModal:[64]}]]]],e)));
@@ -2,39 +2,40 @@ import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export declare class FeedbackButton {
3
3
  feedbackModal: any;
4
4
  el: HTMLElement;
5
+ buttonPosition: string;
6
+ buttonStyle: string;
7
+ hideIcon: boolean;
8
+ hideMobile: boolean;
5
9
  sessionId: string;
10
+ submit: boolean;
6
11
  customFont: boolean;
12
+ emailAddress: string;
13
+ isEmailRequired: boolean;
14
+ fetchData: boolean;
15
+ hideEmail: boolean;
16
+ hidePrivacyPolicy: boolean;
17
+ hideRating: boolean;
18
+ hideScreenshotButton: boolean;
19
+ modalPosition: string;
20
+ project: string;
21
+ rating: number;
22
+ ratingMode: string;
23
+ emailPlaceholder: string;
7
24
  errorMessage: string;
8
25
  errorMessage403: string;
9
26
  errorMessage404: string;
27
+ footerText: string;
28
+ messagePlaceholder: string;
10
29
  modalTitle: string;
11
- modalTitleSuccess: string;
12
30
  modalTitleError: string;
13
- modalPosition: string;
14
- sendButtonText: string;
15
- successMessage: string;
16
- project: string;
17
- screenshotButtonText: string;
18
- screenshotTopbarText: string;
19
- hideEmail: boolean;
20
- emailAddress: string;
21
- emailPlaceholder: string;
22
- messagePlaceholder: string;
23
- hideRating: boolean;
24
- rating: number;
25
- ratingMode: string;
31
+ modalTitleSuccess: string;
32
+ privacyPolicyText: string;
26
33
  ratingPlaceholder: string;
27
34
  ratingStarsPlaceholder: string;
28
- footerText: string;
29
- buttonStyle: string;
30
- buttonPosition: string;
31
- hideIcon: boolean;
32
- hideScreenshotButton: boolean;
33
- hidePrivacyPolicy: boolean;
34
- hideMobile: boolean;
35
- privacyPolicyText: string;
36
- fetchData: boolean;
37
- submit: boolean;
35
+ screenshotButtonText: string;
36
+ screenshotTopbarText: string;
37
+ sendButtonText: string;
38
+ successMessage: string;
38
39
  feedbackSent: EventEmitter<{
39
40
  feedback: any;
40
41
  }>;
@@ -15,36 +15,37 @@ export declare class FeedbackModal {
15
15
  overlayVisible: boolean;
16
16
  isAnimating: boolean;
17
17
  customFont: boolean;
18
+ emailAddress: string;
19
+ hideEmail: boolean;
20
+ isEmailRequired: boolean;
21
+ ratingMode: string;
22
+ hasSelectedElement: boolean;
23
+ hidePrivacyPolicy: boolean;
24
+ hideRating: boolean;
25
+ hideScreenshotButton: boolean;
26
+ project: string;
27
+ showScreenshotMode: boolean;
28
+ showScreenshotTopBar: boolean;
29
+ showModal: boolean;
30
+ rating: number;
31
+ fetchData: boolean;
32
+ emailPlaceholder: string;
18
33
  errorMessage: string;
19
34
  errorMessage403: string;
20
35
  errorMessage404: string;
36
+ messagePlaceholder: string;
37
+ footerText: string;
38
+ modalPosition: string;
21
39
  modalTitle: string;
22
- modalTitleSuccess: string;
23
40
  modalTitleError: string;
24
- modalPosition: string;
41
+ modalTitleSuccess: string;
42
+ privacyPolicyText: string;
43
+ ratingPlaceholder: string;
44
+ ratingStarsPlaceholder: string;
25
45
  sendButtonText: string;
26
- successMessage: string;
27
- project: string;
28
46
  screenshotButtonText: string;
29
47
  screenshotTopbarText: string;
30
- hideEmail: boolean;
31
- emailAddress: string;
32
- emailPlaceholder: string;
33
- messagePlaceholder: string;
34
- hideRating: boolean;
35
- rating: number;
36
- ratingMode: string;
37
- ratingPlaceholder: string;
38
- ratingStarsPlaceholder: string;
39
- footerText: string;
40
- showModal: boolean;
41
- showScreenshotMode: boolean;
42
- showScreenshotTopBar: boolean;
43
- hasSelectedElement: boolean;
44
- hideScreenshotButton: boolean;
45
- hidePrivacyPolicy: boolean;
46
- privacyPolicyText: string;
47
- fetchData: boolean;
48
+ successMessage: string;
48
49
  feedbackSent: EventEmitter<{
49
50
  feedback: any;
50
51
  }>;
@@ -23,6 +23,7 @@ export namespace Components {
23
23
  "hidePrivacyPolicy": boolean;
24
24
  "hideRating": boolean;
25
25
  "hideScreenshotButton": boolean;
26
+ "isEmailRequired": boolean;
26
27
  "messagePlaceholder": string;
27
28
  "modalPosition": string;
28
29
  "modalTitle": string;
@@ -55,6 +56,7 @@ export namespace Components {
55
56
  "hidePrivacyPolicy": boolean;
56
57
  "hideRating": boolean;
57
58
  "hideScreenshotButton": boolean;
59
+ "isEmailRequired": boolean;
58
60
  "messagePlaceholder": string;
59
61
  "modalPosition": string;
60
62
  "modalTitle": string;
@@ -120,6 +122,7 @@ declare namespace LocalJSX {
120
122
  "hidePrivacyPolicy"?: boolean;
121
123
  "hideRating"?: boolean;
122
124
  "hideScreenshotButton"?: boolean;
125
+ "isEmailRequired"?: boolean;
123
126
  "messagePlaceholder"?: string;
124
127
  "modalPosition"?: string;
125
128
  "modalTitle"?: string;
@@ -154,6 +157,7 @@ declare namespace LocalJSX {
154
157
  "hidePrivacyPolicy"?: boolean;
155
158
  "hideRating"?: boolean;
156
159
  "hideScreenshotButton"?: boolean;
160
+ "isEmailRequired"?: boolean;
157
161
  "messagePlaceholder"?: string;
158
162
  "modalPosition"?: string;
159
163
  "modalTitle"?: string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "pushfeedback",
3
- "author": "TechDocs Studio <hi@techdocs.studio>",
3
+ "author": "TechDocs Studio <info@techdocs.studio>",
4
4
  "homepage": "https://pushfeedback.com/",
5
- "version": "0.1.63",
5
+ "version": "0.1.65",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",
@@ -25,7 +25,9 @@
25
25
  "start": "stencil build --dev --watch --serve",
26
26
  "test": "stencil test --spec --e2e",
27
27
  "test.watch": "stencil test --spec --e2e --watchAll",
28
- "generate": "stencil generate"
28
+ "generate": "stencil generate",
29
+ "lint": "eslint . --ext .ts,.tsx",
30
+ "lint:fix": "eslint . --ext .ts,.tsx --fix"
29
31
  },
30
32
  "dependencies": {
31
33
  "@stencil/core": "^2.13.0",
@@ -34,6 +36,12 @@
34
36
  "devDependencies": {
35
37
  "@stencil/react-output-target": "^0.5.3",
36
38
  "@types/jest": "^27.0.3",
39
+ "@typescript-eslint/eslint-plugin": "^5.59.0",
40
+ "@typescript-eslint/parser": "^5.59.0",
41
+ "eslint": "^8.38.0",
42
+ "eslint-config-prettier": "^8.8.0",
43
+ "eslint-plugin-prettier": "^4.2.1",
44
+ "prettier": "^2.8.7",
37
45
  "jest": "^27.4.5",
38
46
  "jest-cli": "^27.4.5",
39
47
  "puppeteer": "^10.0.0"