@_unit/unit 1.0.22 → 1.0.23

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.
@@ -49789,9 +49789,9 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
49789
49789
  for (const pin_id in pins) {
49790
49790
  const pin = pins[pin_id]
49791
49791
 
49792
- if (this._spec_has_pin_named(type, pin_id)) {
49793
- const { plug } = pin
49792
+ const { plug = {} } = pin
49794
49793
 
49794
+ if (this._spec_has_pin_named(type, pin_id)) {
49795
49795
  for (const sub_pin_id in plug) {
49796
49796
  const sub_pin_spec = plug[sub_pin_id]
49797
49797
 
@@ -49801,17 +49801,27 @@ export class Editor_ extends Element<HTMLDivElement, _Props> {
49801
49801
  )
49802
49802
 
49803
49803
  if (!int_node_id) {
49804
+ const plug_position = {
49805
+ int: position,
49806
+ ext: position,
49807
+ }
49808
+
49804
49809
  this._state_add_exposed_pin(
49805
49810
  type,
49806
49811
  pin_id,
49807
49812
  sub_pin_id,
49808
49813
  sub_pin_spec,
49809
- {}
49814
+ plug_position
49810
49815
  )
49811
49816
  }
49812
49817
  }
49813
49818
  } else {
49814
- this._state_add_exposed_pin_set(type, pin_id, pin, {})
49819
+ const plug_positions = mapObjKV(plug, () => ({
49820
+ int: position,
49821
+ ext: position,
49822
+ }))
49823
+
49824
+ this._state_add_exposed_pin_set(type, pin_id, pin, plug_positions)
49815
49825
  }
49816
49826
  }
49817
49827
  })