inline-style-editor 1.2.6 → 1.2.8

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.
@@ -2070,7 +2070,7 @@ function get_each_context_5(ctx, list, i) {
2070
2070
  return child_ctx;
2071
2071
  }
2072
2072
 
2073
- // (394:4) {#if targetsToSearch.length > 1}
2073
+ // (395:4) {#if targetsToSearch.length > 1}
2074
2074
  function create_if_block_7(ctx) {
2075
2075
  let div;
2076
2076
  let b;
@@ -2135,7 +2135,7 @@ function create_if_block_7(ctx) {
2135
2135
  };
2136
2136
  }
2137
2137
 
2138
- // (397:8) {#each targetsToSearch as target, elemIndex}
2138
+ // (398:8) {#each targetsToSearch as target, elemIndex}
2139
2139
  function create_each_block_5(ctx) {
2140
2140
  let span;
2141
2141
  let t0;
@@ -2182,7 +2182,7 @@ function create_each_block_5(ctx) {
2182
2182
  };
2183
2183
  }
2184
2184
 
2185
- // (406:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2185
+ // (407:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2186
2186
  function create_each_block_4(ctx) {
2187
2187
  let span;
2188
2188
  let t_value = /*ruleName*/ ctx[75] + "";
@@ -2231,7 +2231,7 @@ function create_each_block_4(ctx) {
2231
2231
  };
2232
2232
  }
2233
2233
 
2234
- // (417:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2234
+ // (418:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2235
2235
  function create_if_block_6(ctx) {
2236
2236
  let span;
2237
2237
  let t0_value = /*type*/ ctx[72] + "";
@@ -2277,7 +2277,7 @@ function create_if_block_6(ctx) {
2277
2277
  };
2278
2278
  }
2279
2279
 
2280
- // (415:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2280
+ // (416:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2281
2281
  function create_each_block_3(ctx) {
2282
2282
  let if_block_anchor;
2283
2283
  let if_block = (/*type*/ ctx[72] !== 'custom' || /*currentRule*/ ctx[16] === 'inline' && /*type*/ ctx[72] === 'custom' && /*hasDisplayedCustom*/ ctx[15]) && create_if_block_6(ctx);
@@ -2312,7 +2312,7 @@ function create_each_block_3(ctx) {
2312
2312
  };
2313
2313
  }
2314
2314
 
2315
- // (422:4) {#if allTypes[selectedElemIndex]}
2315
+ // (423:4) {#if allTypes[selectedElemIndex]}
2316
2316
  function create_if_block(ctx) {
2317
2317
  let div;
2318
2318
  let t;
@@ -2420,7 +2420,7 @@ function create_if_block(ctx) {
2420
2420
  };
2421
2421
  }
2422
2422
 
2423
- // (433:16) {:else}
2423
+ // (434:16) {:else}
2424
2424
  function create_else_block(ctx) {
2425
2425
  let span;
2426
2426
  let t_value = /*selectedName*/ ctx[63] + "";
@@ -2444,7 +2444,7 @@ function create_else_block(ctx) {
2444
2444
  };
2445
2445
  }
2446
2446
 
2447
- // (427:16) {#if choices.props.length > 1}
2447
+ // (428:16) {#if choices.props.length > 1}
2448
2448
  function create_if_block_5(ctx) {
2449
2449
  let div;
2450
2450
  let select;
@@ -2518,7 +2518,7 @@ function create_if_block_5(ctx) {
2518
2518
  };
2519
2519
  }
2520
2520
 
2521
- // (429:24) {#each choices.props as propName, i}
2521
+ // (430:24) {#each choices.props as propName, i}
2522
2522
  function create_each_block_2(ctx) {
2523
2523
  let option;
2524
2524
  let t0_value = /*propName*/ ctx[69] + "";
@@ -2553,7 +2553,7 @@ function create_each_block_2(ctx) {
2553
2553
  };
2554
2554
  }
2555
2555
 
2556
- // (452:46)
2556
+ // (453:46)
2557
2557
  function create_if_block_4(ctx) {
2558
2558
  let colorpicker;
2559
2559
  let current;
@@ -2599,7 +2599,7 @@ function create_if_block_4(ctx) {
2599
2599
  };
2600
2600
  }
2601
2601
 
2602
- // (446:47)
2602
+ // (447:47)
2603
2603
  function create_if_block_3(ctx) {
2604
2604
  let select;
2605
2605
  let mounted;
@@ -2672,7 +2672,7 @@ function create_if_block_3(ctx) {
2672
2672
  };
2673
2673
  }
2674
2674
 
2675
- // (437:16) {#if propType === 'slider'}
2675
+ // (438:16) {#if propType === 'slider'}
2676
2676
  function create_if_block_2(ctx) {
2677
2677
  let input;
2678
2678
  let input_min_value;
@@ -2747,7 +2747,7 @@ function create_if_block_2(ctx) {
2747
2747
  };
2748
2748
  }
2749
2749
 
2750
- // (448:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2750
+ // (449:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2751
2751
  function create_each_block_1(ctx) {
2752
2752
  let option;
2753
2753
  let t_value = /*choice*/ ctx[66] + "";
@@ -2785,7 +2785,7 @@ function create_each_block_1(ctx) {
2785
2785
  };
2786
2786
  }
2787
2787
 
2788
- // (424:8) {#each Object.entries(propsByType) as [propType, choices]}
2788
+ // (425:8) {#each Object.entries(propsByType) as [propType, choices]}
2789
2789
  function create_each_block(ctx) {
2790
2790
  let div;
2791
2791
  let t0;
@@ -2926,7 +2926,7 @@ function create_each_block(ctx) {
2926
2926
  };
2927
2927
  }
2928
2928
 
2929
- // (460:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2929
+ // (461:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2930
2930
  function create_if_block_1(ctx) {
2931
2931
  let div;
2932
2932
  let mounted;
@@ -3545,9 +3545,8 @@ function instance($$self, $$props, $$invalidate) {
3545
3545
  open(e.target, e.pageX, e.pageY);
3546
3546
  }
3547
3547
 
3548
- function open(el, x, y) {
3548
+ async function open(el, x, y) {
3549
3549
  udpatePageDimensions();
3550
- initAndGroup();
3551
3550
  if (el.classList.contains('overlay-over')) return overlayClicked(); else if (self.contains(el)) return;
3552
3551
  $$invalidate(4, selectedElemIndex = 0);
3553
3552
  $$invalidate(5, selectedRuleIndex = 0);
@@ -3575,6 +3574,9 @@ function instance($$self, $$props, $$invalidate) {
3575
3574
  const rect = getBoundingBoxInfos(el, 15);
3576
3575
  show(rect.left, rect.top);
3577
3576
  }
3577
+
3578
+ await tick();
3579
+ initAndGroup();
3578
3580
  }
3579
3581
 
3580
3582
  function close() {