clients/apps/browser/src/platform
Matt Gibson 24c240d0d4
Ps/pm 2910/add browser storage services (#6849)
* Allow for update logic in state update callbacks

* Prefer reading updates to sending in stream

* Inform state providers when they must deserialize

* Update DefaultGlobalState to act more like DefaultUserState

* Fully Implement AbstractStorageService

* Add KeyDefinitionOptions

* Address PR feedback

* Prefer testing interactions for ports

* Synced memory storage for browser

* Fix port handling

* Do not stringify port message data

* Use messaging storage

* Initialize new foreground memory storage services

This will need to be rethought for short-lived background pages, but for
now the background is the source of truth for memory storage

* Use global state for account service

* Use BrowserApi listener to avoid safari memory leaks

* Fix build errors: debugging and missed impls

* Prefer bound arrow functions

* JSON Stringify Messages

* Prefer `useClass`

* Use noop services

* extract storage observable to new interface

This also reverts changes for the existing services to use
foreground/background services. Those are now used only in state
providers

* Fix web DI

* Prefer initializing observable in constructor

* Do not use jsonify as equality operator

* Remove port listener to avoid memory leaks

* Fix logic and type issues

---------

Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
2023-11-21 16:35:37 -05:00
..
alarms Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
background/service-factories Ps/pm 2910/add browser storage services (#6849) 2023-11-21 16:35:37 -05:00
browser [PM-4229] Autofill Overlay MVP (#6507) 2023-11-20 18:34:04 +00:00
decorators Ps/pm 2910/state framework improvements (#6860) 2023-11-16 14:15:34 -05:00
listeners [PM-4229] Autofill Overlay MVP (#6507) 2023-11-20 18:34:04 +00:00
popup [PM-3914] Refactor Browser Extension Popout Windows (#6296) 2023-11-08 12:57:44 -06:00
services Ps/pm 2910/add browser storage services (#6849) 2023-11-21 16:35:37 -05:00
storage Ps/pm 2910/add browser storage services (#6849) 2023-11-21 16:35:37 -05:00
background.html Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00
background.ts [PM-669] Right Click Autofill List Contains Incorrect Entries (#5711) 2023-08-08 20:56:42 +00:00
flags.ts Ps/pm 2910/browser header component (#6641) 2023-10-25 18:27:32 +00:00
globals.d.ts Platform/pm 19/platform team file moves (#5460) 2023-06-06 15:34:53 -05:00