Skip to content

Latest commit

 

History

History
2122 lines (1136 loc) · 98.4 KB

File metadata and controls

2122 lines (1136 loc) · 98.4 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

23.0.25 (2024-02-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.24 (2024-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.23 (2024-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.22 (2024-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.21 (2024-02-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.20 (2024-02-22)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.19 (2024-02-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.18 (2024-02-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.17 (2024-02-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.16 (2024-02-12)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.15 (2024-02-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.14 (2024-02-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.13 (2024-02-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.12 (2024-01-29)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.11 (2024-01-21)

Bug Fixes

  • ffe-account-selector-react: Legg til skjermleser tester (fbe057d)

23.0.10 (2024-01-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.9 (2023-12-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.8 (2023-11-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.7 (2023-11-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.6 (2023-11-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.5 (2023-11-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.4 (2023-11-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.3 (2023-11-02)

Bug Fixes

  • ffe-account-selector-react: oppdater symbol implementasjon (2ce61e5)

23.0.2 (2023-10-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.1 (2023-10-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

23.0.0 (2023-10-13)

Bug Fixes

  • ffe-account-selector-react: bytter ut ffe-icons med ffe-symbols (84868c9)

BREAKING CHANGES

  • ffe-account-selector-react: ikoner hentes nå inn via en ny pakke og med en ny implementasjon

22.1.1 (2023-10-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

22.1.0 (2023-09-15)

Features

  • ffe-account-selector-react: add :host for shadow dom support (cefa37e)

22.0.2 (2023-09-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

22.0.1 (2023-09-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

22.0.0 (2023-08-31)

  • chore(ffe-account-selector-react)!: remove AccountSelectorHighCapacity (c8190b9)

BREAKING CHANGES

  • AccountSelectorHighCapacity is no longer exported. Use AccountSelectorMulti or BaseSelector with prop highCapacity=true

21.3.16 (2023-07-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.15 (2023-07-21)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.14 (2023-07-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.13 (2023-07-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.12 (2023-07-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.11 (2023-06-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.10 (2023-06-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.9 (2023-06-22)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.8 (2023-06-05)

Bug Fixes

  • ffe-account-selector-react: fikser padding-issue i __selection-status (bd9677c)

21.3.7 (2023-06-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.6 (2023-05-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.5 (2023-04-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.4 (2023-04-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.3 (2023-04-27)

Bug Fixes

  • ffe-account-selector-react: use react.componentsprops instead of react.htmlprops (5ff895c)

21.3.2 (2023-04-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.1 (2023-04-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.3.0 (2023-03-14)

Features

  • ffe-account-selector-react: lagt til mulighet for å skjule AccountDetails (fb3a0ee)

21.2.0 (2023-03-07)

Features

  • ffe-account-selector-react: Lagt til postListElement (458b98d)

21.1.4 (2023-02-28)

Bug Fixes

  • ffe-account-selector-react: bytt til oneOfType for balance (3ca716e)

21.1.3 (2023-02-24)

Bug Fixes

  • ffe-account-selector-react: retter setting av className på BaseAccountSelector (95574c5)

21.1.2 (2023-02-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.1.1 (2023-02-20)

Bug Fixes

  • ffe-account-selector-react: Oppdatert typeof sjekker (178cb48)

21.1.0 (2023-02-20)

Features

  • ffe-account-selector-react: Tillat string som verdi for balance (e2d65c0)

21.0.4 (2023-02-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.0.3 (2023-01-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.0.2 (2023-01-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

21.0.1 (2023-01-06)

Bug Fixes

  • ffe-account-selector-react: fix types (2548612)

21.0.0 (2023-01-05)

Features

  • ffe-account-selector-react: remove high capacity prop (0c66d68)

BREAKING CHANGES

  • ffe-account-selector-react: use AccountSelectorHighCapacity for high capacity

20.0.4 (2023-01-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

20.0.3 (2022-12-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

20.0.2 (2022-12-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

20.0.1 (2022-12-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

20.0.0 (2022-12-05)

Features

  • ffe-account-selector-react: update internal dependencies (139236a)

BREAKING CHANGES

  • ffe-account-selector-react: Makes the styling package @sb1/ffe-form a required dependency and removes it as peer dependency.

19.1.2 (2022-11-29)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.1.1 (2022-11-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.1.0 (2022-11-16)

Features

  • ffe-account-selector-react: legger til theming av accountselector (9e01514)

19.0.52 (2022-11-15)

Bug Fixes

  • ffe-account-selector-react: upgrade scrollbars (cd7d1bf), closes #1511

19.0.51 (2022-11-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.50 (2022-11-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.49 (2022-11-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.48 (2022-10-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.47 (2022-10-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.46 (2022-10-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.45 (2022-10-21)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.44 (2022-10-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.43 (2022-10-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.42 (2022-10-04)

Bug Fixes

  • ffe-account-selector-react: bytter ut utfaset farge (3d30c20)

19.0.41 (2022-09-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.40 (2022-09-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.39 (2022-09-12)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.38 (2022-09-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.37 (2022-09-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.36 (2022-08-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.35 (2022-08-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.34 (2022-08-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.33 (2022-08-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.32 (2022-08-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.31 (2022-08-05)

Bug Fixes

  • ffe-account-selector-react: erstatt ffe-farge-baer-wcag med ffe-farge-baer (c68046c)

19.0.30 (2022-08-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.29 (2022-07-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.28 (2022-07-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.27 (2022-06-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.26 (2022-06-13)

Bug Fixes

  • ffe-account-selector-react: make Account type in account selector generic (ec80110)

19.0.25 (2022-06-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.24 (2022-06-02)

Bug Fixes

  • ffe-account-selector-react: fix declaration for AccountSelector (fb24af9)

19.0.23 (2022-05-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.22 (2022-05-30)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.21 (2022-05-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.20 (2022-05-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.19 (2022-05-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.18 (2022-04-21)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.17 (2022-04-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.16 (2022-03-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.15 (2022-03-21)

Bug Fixes

  • ffe-account-selector-react: legger til default font (e0d81c4)

19.0.14 (2022-03-11)

Bug Fixes

  • ffe-account-selector-react: exclude the less-mixin highlighted from css (c51842a), closes #921

19.0.13 (2022-03-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.12 (2022-03-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.11 (2022-03-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.10 (2022-03-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.9 (2022-02-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.8 (2022-02-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.7 (2022-02-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.6 (2022-02-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.5 (2022-01-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.4 (2022-01-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.3 (2022-01-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.2 (2022-01-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.1 (2022-01-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

19.0.0 (2022-01-14)

Features

  • ffe-account-selector-react: change labelId to labelledById (f184abe)

BREAKING CHANGES

  • ffe-account-selector-react: Change labelId to labelledById, and make it optional.

18.5.5 (2022-01-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.5.4 (2021-12-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.5.3 (2021-12-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.5.2 (2021-12-10)

Bug Fixes

  • ffe-account-selector-react: use ffe-buildtool for transpiling (c328b5d), closes #1294

18.5.1 (2021-11-30)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.5.0 (2021-11-26)

Features

  • ffe-account-selector-react: Fix missing color for top line of suggestion (2a64f91)

18.4.1 (2021-11-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.4.0 (2021-11-23)

Features

  • ffe-account-selector-react: refactor multi- and single account selector (2f4b90d)

18.3.1 (2021-11-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.3.0 (2021-11-19)

Features

  • ffe-account-selector-react: slightly tweak colors (e8e7164)

18.2.10 (2021-11-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.9 (2021-11-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.8 (2021-11-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.7 (2021-11-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.6 (2021-11-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.5 (2021-11-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.4 (2021-10-29)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.3 (2021-10-21)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.2 (2021-10-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.1 (2021-10-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.2.0 (2021-10-13)

Features

  • ffe-account-selector-react: add open and close prop to account-selector (33898df)

18.1.4 (2021-10-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.1.3 (2021-10-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.1.2 (2021-10-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.1.1 (2021-10-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.1.0 (2021-09-24)

Features

  • ffe-account-selector-react: Remove clear button from dropdown (e54955f)

18.0.2 (2021-09-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.0.1 (2021-09-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

18.0.0 (2021-09-06)

Features

  • ffe-account-selector-react: oppdaterte farger iht ny profil (616d05b)

BREAKING CHANGES

  • ffe-account-selector-react: visuelle endringer i komponenten kan medføre regresjonsfeil

17.0.0 (2021-09-06)

Features

  • ffe-account-selector-react: oppdaterte farger iht ny profil (616d05b)

BREAKING CHANGES

  • ffe-account-selector-react: visuelle endringer i komponenten kan medføre regresjonsfeil

16.3.6 (2021-08-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.5 (2021-07-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.4 (2021-07-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.3 (2021-07-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.2 (2021-07-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.1 (2021-07-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.3.0 (2021-07-05)

Features

  • ffe-account-selector-react: Add possibility to use a highCapacity account selector (ffe2b41)

16.2.12 (2021-07-01)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.11 (2021-06-28)

Bug Fixes

  • ffe-account-selector-react: Set inputValue when account is selected (2056aef)

16.2.10 (2021-06-24)

Bug Fixes

  • ffe-account-selector-react: Add selectedAccount not found in accounts list to accounts list (88d049c)

16.2.9 (2021-06-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.8 (2021-06-21)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.7 (2021-06-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.6 (2021-06-14)

Bug Fixes

  • ffe-account-selector-react: Remove onBlur functionality (bd84aaf)

16.2.5 (2021-06-09)

Bug Fixes

  • ffe-account-selector-react: Empty dropdownList in noMatch if inputValue is not set (5b4f28e)

16.2.4 (2021-06-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.3 (2021-06-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.2 (2021-06-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

16.2.1 (2021-06-01)

Bug Fixes

  • ffe-account-selector-react: Do not set account to inputValue if account is chosen from dropdown (a290b5f)

16.2.0 (2021-05-31)

Features

  • ffe-account-selector-react: Show account number in input field when customAccount is allowed (607529f)

16.1.0 (2021-05-27)

Features

  • ffe-account-selector-react: Update CHANGELOG.md and README.md (51ac7c3)

16.0.0 (2021-05-25)

Features

  • ffe-account-selector-react: Make AccountSelector use SearchableDropdown under the hood (f3ef452)

BREAKING CHANGES

  • ffe-account-selector-react: Make AccountSelector use SearchableDropdown under the hood

This means many of the props and some of the details of the functionality of AccountSelector have changed. Reusing SearchableDropdown in AccountSelector means we don't have to reinvent the wheel. Note: The highCapacity prop has been removed as windowing is now enabled by default.

To get styling you will now have to import the less file from ffe-searchable-dropdown

@import 'path/to/node_modules/@sb1/ffe-searchable-dropdown-react/less/searchable-dropdown';

AccountSelectorMulti remains the same as before.

New props:

export interface AccountSelectorProps<T> {
    accounts: Array<Account>;
    className?: string;
    id: string;
    locale: string;
    noMatches?: NoMatch<T>;
    inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
    onAccountSelected: (account: Account) => void;
    onReset: () => void;
    selectedAccount?: Account;
    showBalance?: boolean;
    formatAccountNumber?: boolean;
    labelId: string;
    allowCustomAccount?: boolean;
    listElementBody?: (
        props: ListElementBodyProps<T>,
    ) => React.FC<HTMLDivElement>;
    saveSpaceForDetails?: boolean;
    ariaInvalid: boolean;
}

Old props:

export interface AccountSelectorProps {
    accounts?: Array<Account>;
    className?: string;
    id: string;
    locale: string;
    noMatches?: string;
    onAccountSelected: (account: Account) => void;
    onChange: (value: string) => void;
    selectedAccount?: Account;
    showBalance?: boolean;
    value: string;
    readOnly?: boolean;
    highCapacity?: boolean;
}

15.0.10 (2021-03-15)

Bug Fixes

  • ffe-account-selector-react: broadens version of peer dependencies (e25ea2c)

15.0.9 (2021-03-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.8 (2021-02-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.7 (2021-02-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.6 (2021-02-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.5 (2021-02-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.4 (2021-02-03)

Bug Fixes

  • packages/ffe-account-selector-react/package.json to reduce vulnerabilities (cbb2758)

15.0.3 (2021-02-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.2 (2021-02-02)

Bug Fixes

  • ffe-account-selector-react: reduce vulnerabilities (b04783d)

15.0.1 (2021-01-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

15.0.0 (2021-01-11)

chore

  • ffe-account-selector-react: bump less (ed49b6c)

BREAKING CHANGES

  • ffe-account-selector-react: Requires less ^4.0.0. Fixes deprecated mixin syntax.

14.0.0 (2020-11-20)

Bug Fixes

  • ffe-account-selector-react: change text values to rem (6cf76f4)

BREAKING CHANGES

  • ffe-account-selector-react: This fix changes all font-size and line-height values from px to rem, this is to solve an issue with zooming in iOS.

13.2.19 (2020-11-19)

Bug Fixes

  • ffe-account-selector-react: fix typo in .d.ts file (6aa35e2)

13.2.18 (2020-11-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.17 (2020-10-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.16 (2020-10-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.15 (2020-09-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.14 (2020-09-15)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.13 (2020-08-31)

Bug Fixes

  • ffe-account-selector-react: ts-interface locale should not be list (da7e183)

13.2.12 (2020-08-28)

Bug Fixes

  • ffe-account-selector-react: fixes types (f16e021)

13.2.11 (2020-08-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.10 (2020-08-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.9 (2020-08-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.8 (2020-07-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.7 (2020-07-30)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.6 (2020-06-29)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.5 (2020-06-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.4 (2020-05-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.3 (2020-05-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.2.2 (2020-05-06)

Bug Fixes

  • ffe-account-selector-react: converted to functional components (d0d6139)

13.2.1 (2020-04-30)

Bug Fixes

  • ffe-account-selector-react: fixed typescript file (#891) (3ebdc28)

13.2.0 (2020-04-29)

Features

  • ffe-account-selector-react: optimize suggestion list render (93f2189)

13.1.13 (2020-03-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.12 (2020-03-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.11 (2020-03-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.10 (2020-03-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.9 (2020-03-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.8 (2020-03-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.7 (2020-03-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.6 (2020-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.5 (2020-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.4 (2020-02-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.3 (2020-02-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.2 (2020-02-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.1 (2020-01-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.1.0 (2020-01-20)

Features

  • ffe-account-selector-react: Added types for Account-selector components (b3df76c)

13.0.2 (2020-01-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.0.1 (2020-01-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

13.0.0 (2019-12-18)

Bug Fixes

  • ffe-account-selector-react: replace hardcoded spacing with vars (2a6c194)

Features

  • ffe-account-selector-react: support for dark-mode (5af5ebe)

BREAKING CHANGES

  • ffe-account-selector-react: This commit is likely to cause small visual regressions caused by slightly altered margin and padding values.

12.0.9 (2019-11-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.8 (2019-11-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.7 (2019-11-20)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.6 (2019-11-12)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.5 (2019-11-07)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.4 (2019-10-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.3 (2019-10-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.2 (2019-10-03)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.1 (2019-09-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

12.0.0 (2019-08-30)

Code Refactoring

  • ffe-account-selector-react: remove deprecated lifecycle (88d6543)

BREAKING CHANGES

  • ffe-account-selector-react: This commit removes the deprecated lifecycle method componentWillReceiveProps from the InputField component. The component used this lifecycle to keep the value prop and the internal value state in sync. However this is a bad pattern, as there is no reason for this component to keep an internal state of the field value. The component should be used as a controlled component, where the consumer is responsible for keeping and providing the value. If you do this already, you'll be fine with. However, if you've simply been listening for changes through onChange, and not keeping your own state, this change will break your UI.

11.0.3 (2019-08-30)

Note: Version bump only for package @sb1/ffe-account-selector-react

11.0.2 (2019-08-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

11.0.1 (2019-08-28)

Note: Version bump only for package @sb1/ffe-account-selector-react

11.0.0 (2019-08-27)

chore

  • bump React to 16.9 to allow for using hooks etc (e3901f1)

BREAKING CHANGES

  • peerDep of React is raised to 16.9. While this in itself isn't a breaking change, it allows for the use of hooks in later releases. Such changes would just be a minor version, or even a patch, but without this major version bump it would result in a runtime error for consumers.

10.0.24 (2019-08-21)

Bug Fixes

  • ffe-account-selector-react: fixed broken margin (3c03223)

10.0.23 (2019-08-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.22 (2019-08-12)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.21 (2019-06-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.20 (2019-06-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.19 (2019-05-21)

Bug Fixes

  • ffe-account-selector-react: ffe-form compat (2b01828)

10.0.18 (2019-05-15)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.17 (2019-05-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.16 (2019-05-10)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.15 (2019-04-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.14 (2019-04-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.13 (2019-04-24)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.12 (2019-04-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.11 (2019-04-08)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.10 (2019-03-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.9 (2019-02-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.8 (2019-02-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.7 (2019-01-29)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.6 (2018-12-19)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.5 (2018-12-18)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.4 (2018-12-11)

Bug Fixes

  • Build tree shakeable packages (fb4a9ea)

10.0.3 (2018-12-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.2 (2018-12-05)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.1 (2018-12-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

10.0.0 (2018-11-30)

Code Refactoring

  • ffe-account-selector-react: New dependencies (53df20f)

BREAKING CHANGES

  • ffe-account-selector-react: This package relied on ffe-checkbox-react which has been merged into ffe-form-react.

As a result, you need to update your dependencies to use this version. Replace the dependency on ffe-checkbox-react with ffe-form-react.

Make sure you're at least on version 4.3.0 of ffe-form-react.

No further action should be required to update this version.

9.1.20 (2018-11-26)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.19 (2018-11-16)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.18 (2018-11-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.17 (2018-11-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.16 (2018-10-25)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.15 (2018-10-17)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.14 (2018-10-10)

Bug Fixes

  • ffe-account-selector-react: Suggestions will now correctly lose focus (137459a)

9.1.13 (2018-10-02)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.12 (2018-08-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.11 (2018-06-14)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.10 (2018-06-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.9 (2018-06-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.8 (2018-06-04)

Bug Fixes

  • ffe-account-selector-react: changed button classes (ea0ff13)

9.1.7 (2018-05-31)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.6 (2018-05-29)

Bug Fixes

  • ffe-account-selector-react: fixed accessibility errors (71da276)
  • ffe-account-selector-react: used texts from the language files and locale prop (3de1493)

9.1.5 (2018-05-23)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.4 (2018-05-22)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.3 (2018-05-15)

Bug Fixes

  • ffe-account-selector-react: Properly aligns reset and expand button (e668d69)

9.1.2 (2018-05-04)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.1.1 (2018-04-27)

Bug Fixes

  • ffe-account-selector-react: Fixes reset and expand button spacing (e71e3e9)

9.1.0 (2018-04-23)

Features

  • ffe-account-selector-react: Adds expand/collapse button to input field (a655661)

9.0.9 (2018-04-18)

Bug Fixes

  • ffe-account-selector-react: Adds support for filtering on account numbers with unicode spaces (bd97d83)

9.0.8 (2018-04-11)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.7 (2018-04-09)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.6 (2018-04-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.5 (2018-04-06)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.4 (2018-03-27)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.3 (2018-03-13)

Note: Version bump only for package @sb1/ffe-account-selector-react

9.0.2 (2018-03-07)

Bug Fixes

  • Correct peerDependencies after breaking change (aab59ce)
  • ffe-account-selector-react: Provide default selectedAccounts (031ab9c)
  • ffe-account-selector-react: Spaceless queries (aeebfa1)

9.0.1 (2018-03-02)

Bug Fixes

  • Correct peerDependencies after breaking change (4318363)
  • ffe-account-selector-react: Provide default selectedAccounts (10b01cc)
  • ffe-account-selector-react: Spaceless queries (de91754)

9.0.0 (2018-02-25)

Bug Fixes

  • ffe-account-selector-react: Add ellipsis to account name (671dcce)
  • ffe-account-selector-react: Explicit specify padding on "reset" button in account selector (07404b3)
  • ffe-account-selector-react: fix build (6ba49d9)
  • Treeshake ffe-icons (6bc9d6f)
  • ffe-account-selector-react: hide reset button in readOnly mode (a416b42)
  • ffe-account-selector-react: Reintroducing the missing decimals in account balance. (2b1956a)

Chores

Features

  • ffe-account-selector-react: added prop to disable input-field (cdfb23c)

BREAKING CHANGES

  • All packages have been renamed to add the @sb1 scope.

See links 1 and 2 to read more about package scopes.

Unfortunately this requires you update both your dependencies in package.json and all import or require statements in your code. Also, you unfortunately have to upgrade all FFE packages at once due to dependency between packages. If you are on the latest version prior to this breaking change the upgrade should be a matter of updating package.json with new package names and versions, and updating your imports.

To help find the proper package versions you can either browse to the packages you need or check out the list of Git tags either on Github 3 or by cloning the repository and running the git tag command. All package versions get a tag in the format package@version.

Update your package.json with the latest package version and add the @sb1 scope to the package name:

- "ffe-core": "11.0.2",
+ "@sb1/ffe-core": "11.0.2",

Scoped packages all get put in a subdirectory in node_modules/. In our case packages will be put in the node_modules/@sb1/ directory. If your build depends on file paths (for instance for copying fonts) you need to update that path to include the scope.

The directory structure also means you have to update your imports, both in Less and in JavaScript.

Using less-plugin-npm-import:

- @import 'npm://ffe-core/less/ffe';
+ @import 'npm://@sb1/ffe-core/less/ffe';

Using Webpack:

- @import '~ffe-core/less/ffe';
+ @import '~@sb1/ffe-core/less/ffe';

Using plain old paths:

- @import '../path/to/node_modules/ffe-core/less/ffe';
+ @import '../path/to/node_modules/@sb1/ffe-core/less/ffe';

JavaScript import:

- import { ActionButton } from 'ffe-buttons-react';
+ import { ActionButton } from '@sb1/ffe-buttons-react';

JavaScript require:

- const { ActionButton } = require('ffe-buttons-react').default;
+ const { ActionButton } = require('@sb1/ffe-buttons-react').default;

8.1.20 (2018-02-23)

Note: Version bump only for package ffe-account-selector-react

8.1.19 (2018-02-22)

Note: Version bump only for package ffe-account-selector-react

8.1.18 (2018-02-22)

Note: Version bump only for package ffe-account-selector-react

8.1.17 (2018-02-20)

Note: Version bump only for package ffe-account-selector-react

8.1.16 (2018-02-19)

Bug Fixes

  • ffe-account-selector-react: hide reset button in readOnly mode

8.1.15 (2018-02-15)

Note: Version bump only for package ffe-account-selector-react

8.1.14 (2018-02-09)

Note: Version bump only for package ffe-account-selector-react

8.1.13 (2018-02-01)

Note: Version bump only for package ffe-account-selector-react

8.1.12 (2018-01-31)

Bug Fixes

  • Treeshake ffe-icons

8.1.11 (2018-01-31)

Note: Version bump only for package ffe-account-selector-react

8.1.10 (2018-01-30)

Bug Fixes

  • ffe-account-selector-react: Explicit specify padding on "reset" button in account selector

8.1.9 (2018-01-26)

Bug Fixes

  • ffe-account-selector-react: Reintroducing the missing decimals in account balance.

8.1.8 (2018-01-25)

Bug Fixes

  • ffe-account-selector-react: Add ellipsis to account name

8.1.7 (2018-01-22)

Note: Version bump only for package ffe-account-selector-react

8.1.6 (2018-01-22)

Note: Version bump only for package ffe-account-selector-react

8.1.5 (2018-01-19)

Note: Version bump only for package ffe-account-selector-react

8.1.4 (2018-01-19)

Note: Version bump only for package ffe-account-selector-react

8.1.3 (2018-01-18)

Note: Version bump only for package ffe-account-selector-react

8.1.2 (2018-01-17)

Bug Fixes

  • ffe-account-selector-react: fix build

8.1.1 (2018-01-16)

Note: Version bump only for package ffe-account-selector-react

8.1.0 (2018-01-15)

Features

  • ffe-account-selector-react: added prop to disable input-field

8.0.4 (2018-01-10)

Note: Version bump only for package ffe-account-selector-react

8.0.3 (2018-01-10)

Note: Version bump only for package ffe-account-selector-react

8.0.2 (2018-01-10)

Note: Version bump only for package ffe-account-selector-react

8.0.1

  • To monorepo.

8.0.0

  • Replace nfe-amount-formatter with ffe-formatters

BREAKING CHANGES

  • No longer including raw JS in files - use the main entry through import or require.
  • Less can now be found under ffe-account-selector-react/less/ffe-account-selector, changed from ffe-account-selector-react/styles/account-selector. This to be more like the other packages.

7.10.3

  • Now possible to de-select all accounts. onSelectAll will be called with true or false to select/de-select all accounts.

7.10.2

  • Bugfix: Removed balance empty check, control balance visibility with showBalance prop.

7.10.1

  • Updated to support React 16.
  • Upgraded npm dependencies.

7.10.0

  • Show correct currency for accounts with currencyCodes other than NOK.

7.9.2

  • Fixed issue where iOS9 units may not receive click event

7.9.1

  • Fixed bug where one selected account in multiple-account-selector was written in plural

7.9.0

  • Open the suggestion-list when input-field is clicked, even when the input-field is already focused.
  • Add prop 'onClick' for overriding the onClick callback.

7.8.2

  • Add aria-label to reset-button to fix empty-button error.

7.8.1

  • Move react-auto-bind from devDeps to dependencies.

7.8.0

  • Add support for ffe-form@8 and ffe-core@10
  • Remove less extension of ffe-link-text on ffe-account-suggestion__name
  • Add classes ffe-link-text and ffe-link-text--no-underline alongside all ffe-account-suggestion__name

7.7.1

  • Bugfix IE11

7.7.0

  • New feature "select all". Set showAllOption to true to show an option for selecting all accounts. Will call "onSelectAll" when selected/deselected

7.6.1

  • Bugfix: Moved ffe-spinner to peer-dependencies.

7.6.0 (Invalid version, broken .less import)

  • Added property isLoading. Shows a loading spinner in the suggestion list

7.5.0

  • Added property showBalance. Set to false to hide the balance of the accounts.

7.4.3

7.4.2

  • Default account filtering to false to fix behaviour when initializing with preselected account

7.4.1

  • Enable account filtering on user input

7.4.0

  • Disable account filtering when an account is selected

7.3.1

  • Add workaround for IE11 and fast typing, which can cause characters to drop. Bugreport for issue, facebook/react#7027, suggests this will be fixed in React 16.

7.3.0

  • Changed dependency version for ffe-checkbox-react

7.2.0

  • Increased version range for ffe-form

7.1.3

  • Added property shouldShowSuggestionsOnFocus on selector. Defaults to true.

7.1.2

  • Removed custom event prevention to enable consistent behaviour across browsers

7.1.1

  • Expand peerDep scope of ffe-form to include 5.x.
  • Remove peerDep on ffe-core, ffe-buttons and react.

7.1.0

  • Support setting name of input-field as prop to AccountSelector. The property is not required

7.0.0

BREAKING CHANGES

Bumped peer dependency version of ffe-core. No external API change, but this version requires a new major of ffe-core

  • Renamed color names to stay in sync with refactoring in ffe-core@9.x

To migrate, update your app to ffe-core version 9.x

6.0.0

BREAKING CHANGES

  • Id prop required to promote good UU. Id of container set to $id-container, id of input field set to id

5.0.3

  • Default value for suggestions element when no matches found

5.0.2

  • Bugfix: Blur event wrongfully prevented after reset from ESC

5.0.1

  • Show suggestions on reset
  • Bugfix: always give input focus after reset

5.0.0

BREAKING CHANGES

Rewrite to replace nfe-account-selector-react.

The origin of this package is the nfe-account-selector-react. The main reason for the rewrite was difficulty in managing focus in the nfe-account-selector-react. This caused the onFocus and onBlur events to fire incorrectly. This package also aims to provide better separation between the different selectors (currently AccountSelector and AccountSelectorMulti).

The external api is mostly unchanged with some exceptions.

This component no longer holds the selected object in its internal state. It's the consuming components responsibility to set the selected suggestion and the input field value. For example the component can be reset by passing the props:

value : "",
selectedAccount : null

Styling has also been changed where nfe-account-selector has be renamed to account-selector

4.1.9

  • Fix vertical alignment of dropdown and reset icons

4.1.8

  • Bump dependency ffe-form to include 4.x

4.1.7

  • Bugfix: Remove event listeners on unmount

4.1.6

  • Bugfix: Prevent a possible form submission when clicking the "done" button on a multiselect

4.1.5

  • Bugfix: IE11 freezes when navigating to the end of the dropdown using the keyboard

4.1.4

  • Bugfix: onBlur called for click events when account selector not in focus

4.1.3

  • Bugfix: Blur prop not called when dropdown is not showing and input field loses focus

4.1.2

4.1.1

  • Bugfix: onBlur prop called twice on input field blur

4.1.0

  • Revert setTimeout on componentWillMount made in v3.0.4 causing unexpected behaviour
  • Expose reset method in AccountSelector
  • Same behaviour when tabbing and clicking away from input field
  • Bugfix: input field not clearing on ESC press
  • Bugfix: give input field focus after dropdown item clicked
  • Bugfix: call onBlur prop when input field loses focus to another element than the dropdown list

4.0.2

  • Fixes due to breaking changes in ffe-checkbox-react

4.0.1

  • Fix misplaced checkboxes in AccountSelectorMulti.

4.0.0 (Invalid version, missing dependency lodash.isequal)

BREAKING CHANGES

  • Upgrade peerDependencies to new major

3.1.0

  • You can now use the classes nfe-general-selector-suggestion, &**name and &**details to get the approximate appearence of the regular account selector without checkboxes ie with multiple=false
  • Bugfix: The noMatches-text no longer shows as clickable and white text on white background on hover.
  • Bugfix: Silenced a react-warning regarding uncontrolled input turned controlled.

3.0.4

  • Fix an esoteric bug that could cause the dropdown to display the wrong state if the value of the input was changed while the component was receiving a props-change

3.0.3

  • Fix svg caret that was jumping up and down due to it's (slightly bigger) container being rotated instead of the actual icon itself

3.0.2

  • Fix compatability with IE.
  • Remove any implicit dependencies on polyfills by remomving array functions not supported in IE
  • Fix bug which prevented multiselect "Done" button from working in IE

3.0.1

  • Add missing onChange to multiselect

3.0.0

BREAKING CHANGES

  • Major underlying change in structure of code.
  • Add ability to more easily create custom selectors
  • Add a new multi-account selector

2.1.6

  • Added support for ffe-form version 2.x.x and 3.x.x

2.1.5

  • Bugfix: Bundle css from react-scrollbar instead of depending on it. Depending on relative dependencies does not work when using npm@3 og yarn.

2.1.4

  • Bugfix: Give input field focus on reset button click

2.1.3

  • Bugfix: Fixed various bugs related to race conditions between events

2.1.2

  • Bugfix: make noMatches-field persist when clicked
  • Bugfix: changed noMatches-text to be wrapped in span instead of anchor to avoid influences of external styles

2.1.1

  • Bugfix: Input field no longer steals focus onBlur

2.1.0

  • Added optional prop noMatches on AccountSelector

2.0.2

  • Do not call onChange when tabing out of the account-selector and the selected account has not changed

2.0.1

  • Removed import of form.less from ffe-form in account-selector.less You will now need to install ffe-form and import form.less in your project's .less-file

2.0.0

  • Added mixins.less containing .ffe-clearfix, which was removed from ffe-core
  • Added @import account-suggestions.less in account-selector.less, to simplify import in other projects

BREAKING CHANGES

  • Bumped dependency on ffe-core to ^8.0.2

1.4.3

  • Upgrade react dependencies to ^15.2.0 due to a bug with getNodeFromInstance in 15.1.0
  • Throw on blur only when leaving component, not when selecting account from dropdown or pressing reset-button

1.4.2

  • Bugfix: React warning when no selectedAccount or value props are given
  • Bugfix: Missing X (reset) when selectedAccount or value are given
  • UX: Focus will remain in the input when account is selected (except when tab is pressed)

1.4.1

  • Added callback to onAccountSelected with null account when the input is reset by user

1.4.0

  • Added optional prop onAccountSelected
  • Bugfix: onBlur will no longer select the highlighted account if value doesn't match an account

1.3.0

  • Bugfix: Select account on tab
  • Fire onChange with null on AccountSelector reset
  • Added optional prop onFocus

1.2.0

  • Bugfix: Fixed various bugs related to filtered accounts becoming out of sync with AccountsSuggestions
  • Bugfix: return account number instead of name onBlur
  • Removed global Escape handler
  • Removed onAccountSelected prop

1.1.0

  • Added optional prop for onAccountSelected

1.0.4

  • Bugfix: Format account balance according to locale
  • Bugfix: Fixed onBlur firing onFocus
  • Better separation of state and props

1.0.3

  • Better prop validation
  • Added support for inputfield placeholder
  • Bugfix: Fixed error not allowing concurrent renders
  • Added Id prop
  • Added ariaInvalid to support validation errors

1.0.2

  • Bugfix: Inline css styles

1.0.1

  • Bugfix: Fix error in window handling in react-scrollarea.

1.0.0