@athome-solution/feedjet 2.5.0 → 2.7.0
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 +9 -1
- package/dist/css/feedback.css +1 -1
- package/dist/css/feedback.css.map +1 -1
- package/dist/css/feedbot.css +1 -1
- package/dist/css/feedbot.css.map +1 -1
- package/dist/css/integration-test.css +1 -1
- package/dist/css/integration-test.css.map +1 -1
- package/dist/fonts/OFL.txt +93 -0
- package/dist/fonts/dm-sans-latin-wght-normal.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +27 -27
package/dist/index.d.cts
CHANGED
|
@@ -34,6 +34,8 @@ declare const fr: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
loading: string;
|
|
36
36
|
empty: string;
|
|
37
|
+
error: string;
|
|
38
|
+
retry: string;
|
|
37
39
|
card: {
|
|
38
40
|
type: {
|
|
39
41
|
issue: string;
|
|
@@ -153,6 +155,9 @@ declare const fr: {
|
|
|
153
155
|
submit_error: string;
|
|
154
156
|
rate_limited: string;
|
|
155
157
|
required: string;
|
|
158
|
+
required_field: string;
|
|
159
|
+
required_choice: string;
|
|
160
|
+
required_consent: string;
|
|
156
161
|
};
|
|
157
162
|
a11y: {
|
|
158
163
|
feedback_button: string;
|
|
@@ -171,6 +176,7 @@ type Locale = typeof Locales[keyof typeof Locales];
|
|
|
171
176
|
declare const messages: Readonly<Record<Locale, Translations>>;
|
|
172
177
|
|
|
173
178
|
type MaybeFunction<T> = T | (() => T);
|
|
179
|
+
type Theme = 'light' | 'dark' | 'auto';
|
|
174
180
|
interface UserType {
|
|
175
181
|
id: string;
|
|
176
182
|
fullName?: string;
|
|
@@ -188,9 +194,11 @@ interface FeedbackOptions {
|
|
|
188
194
|
baseApiUrl?: string;
|
|
189
195
|
user?: MaybeFunction<UserType | undefined>;
|
|
190
196
|
locale?: Locale;
|
|
197
|
+
theme?: Theme;
|
|
191
198
|
}
|
|
192
199
|
declare class Feedback {
|
|
193
200
|
private readonly options;
|
|
201
|
+
private get theme();
|
|
194
202
|
private form;
|
|
195
203
|
private submitError;
|
|
196
204
|
private submitErrorKey;
|
|
@@ -199,6 +207,7 @@ declare class Feedback {
|
|
|
199
207
|
private hasConsentAttachment;
|
|
200
208
|
private feedbackButton;
|
|
201
209
|
private createdButtonWrapper;
|
|
210
|
+
private opening;
|
|
202
211
|
private readonly onFeedbackButtonClick;
|
|
203
212
|
private submitHandler;
|
|
204
213
|
private state;
|
|
@@ -207,7 +216,7 @@ declare class Feedback {
|
|
|
207
216
|
private previouslyFocusedElement;
|
|
208
217
|
private integrationTest;
|
|
209
218
|
private decisions;
|
|
210
|
-
private
|
|
219
|
+
private decisionsStatus;
|
|
211
220
|
constructor(options: FeedbackOptions);
|
|
212
221
|
destroy(): void;
|
|
213
222
|
private get draftKey();
|
|
@@ -217,7 +226,8 @@ declare class Feedback {
|
|
|
217
226
|
private createFeedbackButton;
|
|
218
227
|
private startFeedback;
|
|
219
228
|
private loadConsents;
|
|
220
|
-
private
|
|
229
|
+
private loadDecisions;
|
|
230
|
+
private refreshDecisionView;
|
|
221
231
|
showThanks(type?: 'issue' | 'enhancement' | 'decision'): void;
|
|
222
232
|
private render;
|
|
223
233
|
private renderForm;
|
|
@@ -239,9 +249,11 @@ interface FeedbotOptions {
|
|
|
239
249
|
surveyId: string;
|
|
240
250
|
user?: MaybeFunction<UserType | undefined>;
|
|
241
251
|
locale?: Locale;
|
|
252
|
+
theme?: Theme;
|
|
242
253
|
}
|
|
243
254
|
declare class Feedbot {
|
|
244
255
|
private options;
|
|
256
|
+
private get theme();
|
|
245
257
|
private form;
|
|
246
258
|
private ratingError;
|
|
247
259
|
private submitError;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,8 @@ declare const fr: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
loading: string;
|
|
36
36
|
empty: string;
|
|
37
|
+
error: string;
|
|
38
|
+
retry: string;
|
|
37
39
|
card: {
|
|
38
40
|
type: {
|
|
39
41
|
issue: string;
|
|
@@ -153,6 +155,9 @@ declare const fr: {
|
|
|
153
155
|
submit_error: string;
|
|
154
156
|
rate_limited: string;
|
|
155
157
|
required: string;
|
|
158
|
+
required_field: string;
|
|
159
|
+
required_choice: string;
|
|
160
|
+
required_consent: string;
|
|
156
161
|
};
|
|
157
162
|
a11y: {
|
|
158
163
|
feedback_button: string;
|
|
@@ -171,6 +176,7 @@ type Locale = typeof Locales[keyof typeof Locales];
|
|
|
171
176
|
declare const messages: Readonly<Record<Locale, Translations>>;
|
|
172
177
|
|
|
173
178
|
type MaybeFunction<T> = T | (() => T);
|
|
179
|
+
type Theme = 'light' | 'dark' | 'auto';
|
|
174
180
|
interface UserType {
|
|
175
181
|
id: string;
|
|
176
182
|
fullName?: string;
|
|
@@ -188,9 +194,11 @@ interface FeedbackOptions {
|
|
|
188
194
|
baseApiUrl?: string;
|
|
189
195
|
user?: MaybeFunction<UserType | undefined>;
|
|
190
196
|
locale?: Locale;
|
|
197
|
+
theme?: Theme;
|
|
191
198
|
}
|
|
192
199
|
declare class Feedback {
|
|
193
200
|
private readonly options;
|
|
201
|
+
private get theme();
|
|
194
202
|
private form;
|
|
195
203
|
private submitError;
|
|
196
204
|
private submitErrorKey;
|
|
@@ -199,6 +207,7 @@ declare class Feedback {
|
|
|
199
207
|
private hasConsentAttachment;
|
|
200
208
|
private feedbackButton;
|
|
201
209
|
private createdButtonWrapper;
|
|
210
|
+
private opening;
|
|
202
211
|
private readonly onFeedbackButtonClick;
|
|
203
212
|
private submitHandler;
|
|
204
213
|
private state;
|
|
@@ -207,7 +216,7 @@ declare class Feedback {
|
|
|
207
216
|
private previouslyFocusedElement;
|
|
208
217
|
private integrationTest;
|
|
209
218
|
private decisions;
|
|
210
|
-
private
|
|
219
|
+
private decisionsStatus;
|
|
211
220
|
constructor(options: FeedbackOptions);
|
|
212
221
|
destroy(): void;
|
|
213
222
|
private get draftKey();
|
|
@@ -217,7 +226,8 @@ declare class Feedback {
|
|
|
217
226
|
private createFeedbackButton;
|
|
218
227
|
private startFeedback;
|
|
219
228
|
private loadConsents;
|
|
220
|
-
private
|
|
229
|
+
private loadDecisions;
|
|
230
|
+
private refreshDecisionView;
|
|
221
231
|
showThanks(type?: 'issue' | 'enhancement' | 'decision'): void;
|
|
222
232
|
private render;
|
|
223
233
|
private renderForm;
|
|
@@ -239,9 +249,11 @@ interface FeedbotOptions {
|
|
|
239
249
|
surveyId: string;
|
|
240
250
|
user?: MaybeFunction<UserType | undefined>;
|
|
241
251
|
locale?: Locale;
|
|
252
|
+
theme?: Theme;
|
|
242
253
|
}
|
|
243
254
|
declare class Feedbot {
|
|
244
255
|
private options;
|
|
256
|
+
private get theme();
|
|
245
257
|
private form;
|
|
246
258
|
private ratingError;
|
|
247
259
|
private submitError;
|