@athome-solution/feedjet 2.1.6 → 2.1.8

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/dist/index.d.ts CHANGED
@@ -1,78 +1,5 @@
1
- type Locale = 'fr' | 'en' | 'es';
2
-
3
- type MaybeFunction<T> = T | (() => T);
4
- interface UserType {
5
- id: string;
6
- fullName?: string;
7
- profile?: string;
8
- }
9
-
10
- type MaybeHTMLElement = HTMLElement | null | undefined;
11
- type TargetType = MaybeHTMLElement | {
12
- feedback?: MaybeHTMLElement;
13
- };
14
- interface FeedbackOptions {
15
- target: TargetType;
16
- projectId?: string;
17
- apiUrl?: string;
18
- user?: MaybeFunction<UserType | undefined>;
19
- locale?: Locale;
20
- }
21
- declare class Feedback {
22
- private readonly options;
23
- private form;
24
- private submitError;
25
- private hasConsentFeedback;
26
- private hasConsentScreenFeedback;
27
- private hasConsentAttachment;
28
- private isFeedbackButtonInitialized;
29
- private submitHandler;
30
- private previouslyFocusedElement;
31
- private integrationTest;
32
- private decisions;
33
- private decisionsLoading;
34
- constructor(options: FeedbackOptions);
35
- private init;
36
- private createFeedbackButton;
37
- private startFeedback;
38
- private loadConsents;
39
- private fetchDecisions;
40
- showThanks(type?: 'issue' | 'enhancement' | 'decision'): void;
41
- private render;
42
- private renderForm;
43
- private updateFormContent;
44
- private renderThanks;
45
- private renderTabs;
46
- private renderFields;
47
- private renderDecisionList;
48
- private renderDecisionCard;
49
- private renderConsent;
50
- private attachFormEvents;
51
- private submit;
52
- private formatDecisionDate;
53
- }
54
-
55
- interface FeedbotOptions {
56
- baseApiUrl: string;
57
- surveyId: string;
58
- user?: MaybeFunction<UserType | undefined>;
59
- locale?: Locale;
60
- }
61
- declare class Feedbot {
62
- private options;
63
- private form;
64
- private ratingError;
65
- private submitError;
66
- private survey;
67
- private baseApiUrl;
68
- private previouslyFocusedElement;
69
- private integrationTest;
70
- get user(): UserType | undefined;
71
- constructor(options: FeedbotOptions);
72
- showThanks(declined?: boolean): void;
73
- private render;
74
- increment(): Promise<void>;
75
- submit(): Promise<void>;
76
- }
77
-
78
- export { Feedback, Feedbot, type Locale };
1
+ import type { Locale } from './i18n';
2
+ import { Feedback } from './feedback';
3
+ import { Feedbot } from './feedbot';
4
+ export { Feedback, Feedbot };
5
+ export type { Locale };