You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in @grafana/ui@6.7 there is export ValueMappingsEditor and ThresholdsEditor from @grafana/ui/components. in @grafana/ui@7 this exports are missing.
I have checked that code exists in bundle 7.0.x and 7.1.0, but exports is missing.
What you expected to happen:
export ValueMappingsEditor and ThresholdsEditor
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Will be pleased if storybook will be plugin developers friendly and ccomponents will be exports starting from @grafana/ui specifier.
This actually solves problem above since story will not work as expected (export is missing)
Could you elaborate more on this?
I'm trying to add ThresholdsEditor inside .setPanelOptions builder.
I don't get it why they weren't designed to be imported directly.
edit:
ok i got it now.
simply calling .useFieldConfig() a bunch of additional config FieldOverrides magically shows up
awesome
What happened:
in
@grafana/ui@6.7
there is export ValueMappingsEditor and ThresholdsEditor from@grafana/ui/components
. in@grafana/ui@7
this exports are missing.I have checked that code exists in bundle
7.0.x
and7.1.0
, but exports is missing.What you expected to happen:
export ValueMappingsEditor and ThresholdsEditor
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Will be pleased if storybook will be plugin developers friendly and ccomponents will be exports starting from
@grafana/ui
specifier.This actually solves problem above since story will not work as expected (export is missing)
Tip: enhance webpack storybook config with
with webpack@5 you could define
exports
field and use self-referencing by defaultEnvironment:
The text was updated successfully, but these errors were encountered: