@elicdavis/node-flow 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -4383,6 +4383,13 @@ var FlowNode = class {
4383
4383
  addWidget(widget) {
4384
4384
  __privateGet(this, _widgets).push(widget);
4385
4385
  }
4386
+ removeWidget(widget) {
4387
+ const index = __privateGet(this, _widgets).indexOf(widget, 0);
4388
+ if (index === -1) {
4389
+ throw new Error("node does not contain widget");
4390
+ }
4391
+ __privateGet(this, _widgets).splice(index, 1);
4392
+ }
4386
4393
  getWidget(index) {
4387
4394
  return __privateGet(this, _widgets)[index];
4388
4395
  }
@@ -6599,6 +6606,7 @@ export {
6599
6606
  Publisher,
6600
6607
  SliderWidget,
6601
6608
  StringWidget,
6609
+ TextWidget,
6602
6610
  Theme,
6603
6611
  ToggleWidget
6604
6612
  };