pushfeedback 0.1.40 → 0.1.41

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-9e531691.js";export{s as setNonce}from"./p-9e531691.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-299e91cf",[[1,"feedback-button",{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"],buttonStyle:[1,"button-style"],buttonPosition:[1,"button-position"],hideIcon:[4,"hide-icon"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"]}],[1,"feedback-modal",{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"],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]}]]]],e)));
1
+ import{p as e,b as t}from"./p-9e531691.js";export{s as setNonce}from"./p-9e531691.js";(()=>{const s=import.meta.url,t={};return""!==s&&(t.resourcesUrl=new URL(".",s).href),e(t)})().then((e=>t([["p-e3d40c86",[[1,"feedback-button",{sessionId:[1,"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"],buttonStyle:[1,"button-style"],buttonPosition:[1,"button-position"],hideIcon:[4,"hide-icon"],hideScreenshotButton:[4,"hide-screenshot-button"],hidePrivacyPolicy:[4,"hide-privacy-policy"],privacyPolicyText:[1,"privacy-policy-text"],fetchData:[4,"fetch-data"]}],[1,"feedback-modal",{sessionId:[1,"session-id"],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"],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],session:[32]}]]]],e)));
@@ -1,6 +1,7 @@
1
1
  export declare class FeedbackButton {
2
2
  feedbackModal: any;
3
3
  el: HTMLElement;
4
+ sessionId: string;
4
5
  customFont: boolean;
5
6
  errorMessage: string;
6
7
  errorMessage403: string;
@@ -11,6 +11,8 @@ export declare class FeedbackModal {
11
11
  isPrivacyChecked: boolean;
12
12
  whitelabel: boolean;
13
13
  selectedRating: number;
14
+ session: string;
15
+ sessionId: string;
14
16
  errorMessage: string;
15
17
  errorMessage403: string;
16
18
  errorMessage404: string;
@@ -49,6 +51,7 @@ export declare class FeedbackModal {
49
51
  rightSide: HTMLElement;
50
52
  componentWillLoad(): void;
51
53
  fetchProjectData(): Promise<void>;
54
+ generateRandomSessionId(length?: number): string;
52
55
  onScrollDebounced: () => void;
53
56
  resetOverflow(): void;
54
57
  handleMessageInput(event: Event): void;
@@ -35,6 +35,7 @@ export namespace Components {
35
35
  "screenshotButtonText": string;
36
36
  "screenshotTopbarText": string;
37
37
  "sendButtonText": string;
38
+ "sessionId": string;
38
39
  "successMessage": string;
39
40
  }
40
41
  interface FeedbackModal {
@@ -63,6 +64,7 @@ export namespace Components {
63
64
  "screenshotButtonText": string;
64
65
  "screenshotTopbarText": string;
65
66
  "sendButtonText": string;
67
+ "sessionId": string;
66
68
  "showModal": boolean;
67
69
  "showScreenshotMode": boolean;
68
70
  "showScreenshotTopBar": boolean;
@@ -117,6 +119,7 @@ declare namespace LocalJSX {
117
119
  "screenshotButtonText"?: string;
118
120
  "screenshotTopbarText"?: string;
119
121
  "sendButtonText"?: string;
122
+ "sessionId"?: string;
120
123
  "successMessage"?: string;
121
124
  }
122
125
  interface FeedbackModal {
@@ -145,6 +148,7 @@ declare namespace LocalJSX {
145
148
  "screenshotButtonText"?: string;
146
149
  "screenshotTopbarText"?: string;
147
150
  "sendButtonText"?: string;
151
+ "sessionId"?: string;
148
152
  "showModal"?: boolean;
149
153
  "showScreenshotMode"?: boolean;
150
154
  "showScreenshotTopBar"?: boolean;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pushfeedback",
3
3
  "author": "TechDocs Studio <hi@techdocs.studio>",
4
4
  "homepage": "https://pushfeedback.com/",
5
- "version": "0.1.40",
5
+ "version": "0.1.41",
6
6
  "description": "Feedback widget for websites.",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.js",
@@ -29,7 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@stencil/core": "^2.13.0",
32
- "html2canvas": "^1.4.1"
32
+ "html2canvas": "^1.4.1",
33
+ "pushfeedback": "file:"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@stencil/react-output-target": "^0.5.3",