-
-
Notifications
You must be signed in to change notification settings - Fork 276
Update widget-mixin to composable #3862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
#4601 Bundle Size — 12.85MiB (+0.23%).e320191(current) vs 9682acd main#4599(baseline) Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch jsjames:use-widget-context Project dashboard Generated by RelativeCI Documentation Report issue |
14cb976 to
41aea78
Compare
| function childContext(component: UiComponent): WidgetContext { | ||
| return { | ||
| component, | ||
| // rootcomponent: context?.root || context?.component, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-h05 - I don't see anywhere that rootcomponent is used? Is this legacy and can we remove?
| if (context?.component.slots) Object.assign(widget.slots, context.component.slots) | ||
| const widgetContext = { | ||
| component: widget, | ||
| // root: widget, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-h05 same here, i don't see where root is used.
41aea78 to
2dc7d1d
Compare
Signed-off-by: Jeff James <[email protected]> (+1 squashed commit) Squashed commits: [1ee38f0dc] Updated performance (+2 squashed commits) Squashed commits: [f3ea89d7a] Performance metrics [3e02a0f3c] WIP (+5 squashed commits) Squashed commits: [f07c59d] WIP [20ffc61] WIP [1638608] WIP [b42cfd0] WIP [7feb909] WIP (+3 squashed commits) Squashed commits: [63a4a18] working [408705a] WIP [7be6336] WIP Signed-off-by: Jeff James <[email protected]>
8373734 to
5d14a3f
Compare
Signed-off-by: Jeff James <[email protected]>
Signed-off-by: Jeff James <[email protected]>
bfda55f to
e320191
Compare
This PR updates the widget-mixin to a composable - as a step necessary to use composition api with widget components.
In composition API, components must be registered globally if referenced by name - hence all widgets are registered globally. Note, there is no performance impact here.
Cleanup of importing components in each of the widgets will happen in later PR now that they are globally registered.
Adds typescript definitions for widget definitions
Removed special title overflow in oh-list-item for divider as css text-overflow does the same operation and is now part of the f7 styles.