FigureWidget breaks the original figure

plotly 6.3.0

anywidget 0.9.18

ipywidgets 8.1.7
jupyterlab 4.4.7

When I pass a figure to Figure widget it is rendered incorrectly

this is my original figure

this is what happens when I pass it to figure widget

thanks