The Widget API enables you to interact with a site widget within the widget's settings panel code.
To use the Widget API, install the @wix/editor package using npm or Yarn:
@wix/editor
or
Then import the widget module from @wix/editor:
widget