@athome-solution/feedjet 2.6.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/dist/index.d.cts CHANGED
@@ -176,6 +176,7 @@ type Locale = typeof Locales[keyof typeof Locales];
176
176
  declare const messages: Readonly<Record<Locale, Translations>>;
177
177
 
178
178
  type MaybeFunction<T> = T | (() => T);
179
+ type Theme = 'light' | 'dark' | 'auto';
179
180
  interface UserType {
180
181
  id: string;
181
182
  fullName?: string;
@@ -193,9 +194,11 @@ interface FeedbackOptions {
193
194
  baseApiUrl?: string;
194
195
  user?: MaybeFunction<UserType | undefined>;
195
196
  locale?: Locale;
197
+ theme?: Theme;
196
198
  }
197
199
  declare class Feedback {
198
200
  private readonly options;
201
+ private get theme();
199
202
  private form;
200
203
  private submitError;
201
204
  private submitErrorKey;
@@ -246,9 +249,11 @@ interface FeedbotOptions {
246
249
  surveyId: string;
247
250
  user?: MaybeFunction<UserType | undefined>;
248
251
  locale?: Locale;
252
+ theme?: Theme;
249
253
  }
250
254
  declare class Feedbot {
251
255
  private options;
256
+ private get theme();
252
257
  private form;
253
258
  private ratingError;
254
259
  private submitError;
package/dist/index.d.ts CHANGED
@@ -176,6 +176,7 @@ type Locale = typeof Locales[keyof typeof Locales];
176
176
  declare const messages: Readonly<Record<Locale, Translations>>;
177
177
 
178
178
  type MaybeFunction<T> = T | (() => T);
179
+ type Theme = 'light' | 'dark' | 'auto';
179
180
  interface UserType {
180
181
  id: string;
181
182
  fullName?: string;
@@ -193,9 +194,11 @@ interface FeedbackOptions {
193
194
  baseApiUrl?: string;
194
195
  user?: MaybeFunction<UserType | undefined>;
195
196
  locale?: Locale;
197
+ theme?: Theme;
196
198
  }
197
199
  declare class Feedback {
198
200
  private readonly options;
201
+ private get theme();
199
202
  private form;
200
203
  private submitError;
201
204
  private submitErrorKey;
@@ -246,9 +249,11 @@ interface FeedbotOptions {
246
249
  surveyId: string;
247
250
  user?: MaybeFunction<UserType | undefined>;
248
251
  locale?: Locale;
252
+ theme?: Theme;
249
253
  }
250
254
  declare class Feedbot {
251
255
  private options;
256
+ private get theme();
252
257
  private form;
253
258
  private ratingError;
254
259
  private submitError;