@proprioo/salatim 33.3.0 → 34.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## Changelog
2
2
 
3
+ **34.1.0**
4
+
5
+ * Chore: bump packages
6
+
7
+ **34.0.0**
8
+
9
+ **BREAKING CHANGE** Add user preferences language field to UserForm
10
+
3
11
  **33.3.0**
4
12
 
5
13
  * Chore: bump hokkaido
@@ -1,3 +1,4 @@
1
+ import { Locale } from 'date-fns';
1
2
  import { Matcher } from 'react-day-picker';
2
3
  import { nullOrDate } from '@proprioo/hokkaido';
3
4
  export type DatePickerGenericProps = {
@@ -1,10 +1,11 @@
1
1
  import { FC } from 'react';
2
- import { Dictionary, UserProps } from '@proprioo/hokkaido';
2
+ import { Dictionary, OptionProps, UserProps } from '@proprioo/hokkaido';
3
3
  import { EmailInputI18nLabelProps } from '../../../ui/src/emailInput/EmailInput.interfaces';
4
4
  export type UserFormLabelProps = {
5
+ email: string;
5
6
  firstName: string;
7
+ language: string;
6
8
  lastName: string;
7
- email: string;
8
9
  phone: string;
9
10
  };
10
11
  export type UserFormProps = {
@@ -12,10 +13,12 @@ export type UserFormProps = {
12
13
  errors: Dictionary;
13
14
  disabledFields?: Record<string, boolean>;
14
15
  emailSuggestionI18nLabels?: EmailInputI18nLabelProps;
16
+ errorMessages?: Dictionary;
17
+ hasLanguagePreferences?: boolean;
15
18
  isEmailSuggestionEnabled?: boolean;
16
19
  labels?: UserFormLabelProps;
17
- errorMessages?: Dictionary;
18
20
  phoneWithFlags?: boolean;
21
+ userLanguageOptions?: OptionProps[];
19
22
  updateUser(user: UserProps, field: string): void;
20
23
  };
21
24
  export declare const formatEmail: (email: string) => string;
@@ -0,0 +1,2 @@
1
+ import { OptionProps } from '@proprioo/hokkaido';
2
+ export declare const USER_LANGUAGES_OPTIONS: OptionProps[];