inline-style-editor 1.3.5 → 1.3.7

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.
@@ -2056,7 +2056,12 @@ function listFonts() {
2056
2056
  while (!done) {
2057
2057
  const font = it.next();
2058
2058
  if (!font.done) {
2059
- arr.push(font.value[0].family);
2059
+ const value = font.value;
2060
+ let fontName;
2061
+ // webkit returns directly an object
2062
+ if (value.length) fontName = value[0].family;
2063
+ else fontName = value.family;
2064
+ arr.push(fontName);
2060
2065
  } else {
2061
2066
  done = font.done;
2062
2067
  }
@@ -2120,7 +2125,7 @@ function get_each_context_5(ctx, list, i) {
2120
2125
  return child_ctx;
2121
2126
  }
2122
2127
 
2123
- // (417:4) {#if targetsToSearch.length > 1}
2128
+ // (416:4) {#if targetsToSearch.length > 1}
2124
2129
  function create_if_block_9(ctx) {
2125
2130
  let div;
2126
2131
  let b;
@@ -2185,7 +2190,7 @@ function create_if_block_9(ctx) {
2185
2190
  };
2186
2191
  }
2187
2192
 
2188
- // (420:8) {#each targetsToSearch as [_, name], elemIndex}
2193
+ // (419:8) {#each targetsToSearch as [_, name], elemIndex}
2189
2194
  function create_each_block_5(ctx) {
2190
2195
  let span;
2191
2196
  let t0_value = /*name*/ ctx[82] + "";
@@ -2231,7 +2236,7 @@ function create_each_block_5(ctx) {
2231
2236
  };
2232
2237
  }
2233
2238
 
2234
- // (429:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2239
+ // (428:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2235
2240
  function create_each_block_4(ctx) {
2236
2241
  let span;
2237
2242
  let t_value = /*ruleName*/ ctx[78] + "";
@@ -2280,7 +2285,7 @@ function create_each_block_4(ctx) {
2280
2285
  };
2281
2286
  }
2282
2287
 
2283
- // (440:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2288
+ // (439:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2284
2289
  function create_if_block_8(ctx) {
2285
2290
  let span;
2286
2291
  let t0_value = /*type*/ ctx[75] + "";
@@ -2326,7 +2331,7 @@ function create_if_block_8(ctx) {
2326
2331
  };
2327
2332
  }
2328
2333
 
2329
- // (438:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2334
+ // (437:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2330
2335
  function create_each_block_3(ctx) {
2331
2336
  let if_block_anchor;
2332
2337
  let if_block = (/*type*/ ctx[75] !== 'custom' || /*currentRule*/ ctx[17] === 'inline' && /*type*/ ctx[75] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) && create_if_block_8(ctx);
@@ -2361,7 +2366,7 @@ function create_each_block_3(ctx) {
2361
2366
  };
2362
2367
  }
2363
2368
 
2364
- // (445:4) {#if allTypes[selectedElemIndex]}
2369
+ // (444:4) {#if allTypes[selectedElemIndex]}
2365
2370
  function create_if_block(ctx) {
2366
2371
  let div;
2367
2372
  let t0;
@@ -2492,7 +2497,7 @@ function create_if_block(ctx) {
2492
2497
  };
2493
2498
  }
2494
2499
 
2495
- // (456:16) {:else}
2500
+ // (455:16) {:else}
2496
2501
  function create_else_block(ctx) {
2497
2502
  let span;
2498
2503
  let t_value = /*selectedName*/ ctx[66] + "";
@@ -2516,7 +2521,7 @@ function create_else_block(ctx) {
2516
2521
  };
2517
2522
  }
2518
2523
 
2519
- // (450:16) {#if choices.props.length > 1}
2524
+ // (449:16) {#if choices.props.length > 1}
2520
2525
  function create_if_block_7(ctx) {
2521
2526
  let div;
2522
2527
  let select;
@@ -2590,7 +2595,7 @@ function create_if_block_7(ctx) {
2590
2595
  };
2591
2596
  }
2592
2597
 
2593
- // (452:24) {#each choices.props as propName, i}
2598
+ // (451:24) {#each choices.props as propName, i}
2594
2599
  function create_each_block_2(ctx) {
2595
2600
  let option;
2596
2601
  let t0_value = /*propName*/ ctx[72] + "";
@@ -2625,7 +2630,7 @@ function create_each_block_2(ctx) {
2625
2630
  };
2626
2631
  }
2627
2632
 
2628
- // (479:50)
2633
+ // (478:50)
2629
2634
  function create_if_block_6(ctx) {
2630
2635
  let colorpicker;
2631
2636
  let current;
@@ -2671,7 +2676,7 @@ function create_if_block_6(ctx) {
2671
2676
  };
2672
2677
  }
2673
2678
 
2674
- // (469:51)
2679
+ // (468:51)
2675
2680
  function create_if_block_4(ctx) {
2676
2681
  let select;
2677
2682
  let show_if = !/*choices*/ ctx[65].includes(/*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[66]].value);
@@ -2764,7 +2769,7 @@ function create_if_block_4(ctx) {
2764
2769
  };
2765
2770
  }
2766
2771
 
2767
- // (460:16) {#if choices.type === 'slider'}
2772
+ // (459:16) {#if choices.type === 'slider'}
2768
2773
  function create_if_block_3(ctx) {
2769
2774
  let input;
2770
2775
  let input_min_value;
@@ -2839,7 +2844,7 @@ function create_if_block_3(ctx) {
2839
2844
  };
2840
2845
  }
2841
2846
 
2842
- // (472:24) {#if !choices.includes(allCurrentPropDefs[selectedName].value)}
2847
+ // (471:24) {#if !choices.includes(allCurrentPropDefs[selectedName].value)}
2843
2848
  function create_if_block_5(ctx) {
2844
2849
  let option;
2845
2850
 
@@ -2860,7 +2865,7 @@ function create_if_block_5(ctx) {
2860
2865
  };
2861
2866
  }
2862
2867
 
2863
- // (475:24) {#each choices as choice}
2868
+ // (474:24) {#each choices as choice}
2864
2869
  function create_each_block_1(ctx) {
2865
2870
  let option;
2866
2871
  let t_value = /*choice*/ ctx[69] + "";
@@ -2898,7 +2903,7 @@ function create_each_block_1(ctx) {
2898
2903
  };
2899
2904
  }
2900
2905
 
2901
- // (447:8) {#each propsByType as choices}
2906
+ // (446:8) {#each propsByType as choices}
2902
2907
  function create_each_block(ctx) {
2903
2908
  let div;
2904
2909
  let t0;
@@ -3044,7 +3049,7 @@ function create_each_block(ctx) {
3044
3049
  };
3045
3050
  }
3046
3051
 
3047
- // (487:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
3052
+ // (486:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
3048
3053
  function create_if_block_2(ctx) {
3049
3054
  let div;
3050
3055
  let mounted;
@@ -3078,7 +3083,7 @@ function create_if_block_2(ctx) {
3078
3083
  };
3079
3084
  }
3080
3085
 
3081
- // (492:8) {#if currentRule === 'inline' && inlineDeletable(currentElement)}
3086
+ // (491:8) {#if currentRule === 'inline' && inlineDeletable(currentElement)}
3082
3087
  function create_if_block_1(ctx) {
3083
3088
  let div;
3084
3089
  let mounted;
@@ -3719,7 +3724,6 @@ function instance($$self, $$props, $$invalidate) {
3719
3724
  $$invalidate(15, bringableToFront = []);
3720
3725
  $$invalidate(4, allTypes = []);
3721
3726
  $$invalidate(3, allRules = []);
3722
- console.log(getElems, getElems(el));
3723
3727
  if (getElems) $$invalidate(2, targetsToSearch = getElems(el)); else $$invalidate(2, targetsToSearch = [[el, 'Clicked']]);
3724
3728
  $$invalidate(4, allTypes = getEditableTypes(targetsToSearch));
3725
3729
  $$invalidate(16, hasDisplayedCustom = false);