Mailspring/internal_packages
Ben Gotow 9ffe0d74dd feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry
Summary:
This diff gives the ComponentRegistry a cleaner, smaller API. Instead of querying by name, location or role,
it's now just location and role, and you can register components for one or more location and one or more
roles without assigning the entries in the registry separate names.

When you register with the ComponentRegistry, the syntax is also cleaner and uses the component's displayName
instead of requiring you to provide a name. You also provide the actual component when unregistering, ensuring
that you can't unregister someone else's component.

InjectedComponent and InjectedComponentSet now wrap their children in UnsafeComponent, which prevents
render/component lifecycle problems from propogating.

Existing components have been updated:

1. maxWidth / minWidth are now containerStyles.maxWidth/minWidth
2. displayName is now required to use the CR.
3. containerRequired = false can be provided to exempt a component from being wrapped in an UnsafeComponent.
   This is useful because it's slightly faster and keeps DOM flat.

This diff also makes the "Show Component Regions" more awesome. It displays column regions, since they now
use the InjectedComponentSet, and also shows for InjectedComponent as well as InjectedComponentSet.

Change ComponentRegistry syntax, lots more work on safely wrapping items. See description.

Fix for inline flexbox scenarios (message actions)

Allow ~/.inbox/packages to be symlinked to a github repo

Test Plan: Run tests!

Reviewers: evan

Reviewed By: evan

Differential Revision: https://review.inboxapp.com/D1457
2015-04-30 16:10:15 -07:00
..
account-sidebar feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
attachments feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
calendar-bar refactor(react): convert to class-based React components 2015-04-30 13:08:29 -07:00
composer feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
file-list feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
inbox-activity-bar feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
inbox-contact-elements feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
inbox-light-ui fix(speed): Mark packages as engine:atom, don't include coffee,cjsx in compiled app 2015-03-20 17:53:11 -07:00
message-list feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
message-templates feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
mode-switch feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
notification-mailto fix(speed): Mark packages as engine:atom, don't include coffee,cjsx in compiled app 2015-03-20 17:53:11 -07:00
notification-update-available fix(*) Small visual tweaks and fixes - see summary 2015-03-25 18:22:52 -07:00
notifications feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
onboarding feat(empty-state): New view that appears when a multiselect-list is empty 2015-04-24 15:43:14 -07:00
search-bar feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
sidebar-fullcontact feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
sidebar-inbox-internal feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
thread-list feat(unsafe-components): Wrap injected components, catch exceptions, clean up ComponentRegistry 2015-04-30 16:10:15 -07:00
tooltip refactor(react): convert to class-based React components 2015-04-30 13:08:29 -07:00
unread-badge fix(speed): Mark packages as engine:atom, don't include coffee,cjsx in compiled app 2015-03-20 17:53:11 -07:00
unread-notifications feat(salesforce): associate threads with SF objects 2015-04-30 11:35:38 -07:00