@superblocksteam/library 2.0.41-next.12 → 2.0.41-next.14

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.js CHANGED
@@ -2221,6 +2221,7 @@ function useDraggableWidget(props) {
2221
2221
  disableDrag: disableDrag ?? false
2222
2222
  });
2223
2223
  const onPointerDown = useCallback((e) => {
2224
+ if (e.target instanceof HTMLElement && e.target.dataset.ignoreDnd) return;
2224
2225
  if (specificWidgetDragDisabled) e.stopPropagation();
2225
2226
  else listeners?.onPointerDown(e);
2226
2227
  }, [specificWidgetDragDisabled, listeners]);
@@ -6453,11 +6454,11 @@ const propertiesDefinition$2 = {
6453
6454
  })
6454
6455
  }),
6455
6456
  functions: Section.category(PropsPanelCategory.Functions).children({
6456
- set: Prop.function(function(_s, value) {
6457
+ set: Prop.function(function(value) {
6457
6458
  const widget = this;
6458
6459
  widget.value = value;
6459
6460
  }),
6460
- reset: Prop.function(function(_s) {
6461
+ reset: Prop.function(function() {
6461
6462
  const widget = this;
6462
6463
  widget.value = widget.defaultValue;
6463
6464
  })
@@ -6604,7 +6605,7 @@ const propertiesDefinition = {
6604
6605
  }).readable()
6605
6606
  }),
6606
6607
  functions: Section.category("Derived").children({
6607
- run: Prop.function(async function(_s, traceHeaders) {
6608
+ run: Prop.function(async function(traceHeaders) {
6608
6609
  const api = this;
6609
6610
  try {
6610
6611
  const result = await api._suspensibleApi.run(traceHeaders);
@@ -6615,7 +6616,7 @@ const propertiesDefinition = {
6615
6616
  throw error;
6616
6617
  }
6617
6618
  }),
6618
- cancel: Prop.function(async function(_s) {
6619
+ cancel: Prop.function(async function() {
6619
6620
  await this._suspensibleApi.cancel();
6620
6621
  })
6621
6622
  }),