inline-style-editor 1.1.0 → 1.1.2

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.
@@ -2007,50 +2007,50 @@ function getFonts() {
2007
2007
 
2008
2008
  function get_each_context(ctx, list, i) {
2009
2009
  const child_ctx = ctx.slice();
2010
- child_ctx[57] = list[i][0];
2011
- child_ctx[58] = list[i][1];
2012
- child_ctx[60] = list;
2013
- child_ctx[61] = i;
2014
- const constants_0 = /*choices*/ child_ctx[58].props[/*choices*/ child_ctx[58].selected];
2015
- child_ctx[59] = constants_0;
2010
+ child_ctx[58] = list[i][0];
2011
+ child_ctx[59] = list[i][1];
2012
+ child_ctx[61] = list;
2013
+ child_ctx[62] = i;
2014
+ const constants_0 = /*choices*/ child_ctx[59].props[/*choices*/ child_ctx[59].selected];
2015
+ child_ctx[60] = constants_0;
2016
2016
  return child_ctx;
2017
2017
  }
2018
2018
 
2019
2019
  function get_each_context_1(ctx, list, i) {
2020
2020
  const child_ctx = ctx.slice();
2021
- child_ctx[62] = list[i];
2021
+ child_ctx[63] = list[i];
2022
2022
  return child_ctx;
2023
2023
  }
2024
2024
 
2025
2025
  function get_each_context_2(ctx, list, i) {
2026
2026
  const child_ctx = ctx.slice();
2027
- child_ctx[65] = list[i];
2028
- child_ctx[67] = i;
2027
+ child_ctx[66] = list[i];
2028
+ child_ctx[68] = i;
2029
2029
  return child_ctx;
2030
2030
  }
2031
2031
 
2032
2032
  function get_each_context_3(ctx, list, i) {
2033
2033
  const child_ctx = ctx.slice();
2034
- child_ctx[68] = list[i];
2035
- child_ctx[70] = i;
2034
+ child_ctx[69] = list[i];
2035
+ child_ctx[71] = i;
2036
2036
  return child_ctx;
2037
2037
  }
2038
2038
 
2039
2039
  function get_each_context_4(ctx, list, i) {
2040
2040
  const child_ctx = ctx.slice();
2041
- child_ctx[71] = list[i];
2042
- child_ctx[73] = i;
2041
+ child_ctx[72] = list[i];
2042
+ child_ctx[74] = i;
2043
2043
  return child_ctx;
2044
2044
  }
2045
2045
 
2046
2046
  function get_each_context_5(ctx, list, i) {
2047
2047
  const child_ctx = ctx.slice();
2048
- child_ctx[74] = list[i];
2049
- child_ctx[76] = i;
2048
+ child_ctx[75] = list[i];
2049
+ child_ctx[77] = i;
2050
2050
  return child_ctx;
2051
2051
  }
2052
2052
 
2053
- // (365:4) {#if targetsToSearch.length > 1}
2053
+ // (373:4) {#if targetsToSearch.length > 1}
2054
2054
  function create_if_block_7(ctx) {
2055
2055
  let div;
2056
2056
  let b;
@@ -2115,7 +2115,7 @@ function create_if_block_7(ctx) {
2115
2115
  };
2116
2116
  }
2117
2117
 
2118
- // (368:8) {#each targetsToSearch as target, elemIndex}
2118
+ // (376:8) {#each targetsToSearch as target, elemIndex}
2119
2119
  function create_each_block_5(ctx) {
2120
2120
  let span;
2121
2121
  let t0;
@@ -2125,16 +2125,16 @@ function create_each_block_5(ctx) {
2125
2125
  let dispose;
2126
2126
 
2127
2127
  function click_handler() {
2128
- return /*click_handler*/ ctx[31](/*elemIndex*/ ctx[76]);
2128
+ return /*click_handler*/ ctx[32](/*elemIndex*/ ctx[77]);
2129
2129
  }
2130
2130
 
2131
2131
  return {
2132
2132
  c() {
2133
2133
  span = element("span");
2134
2134
  t0 = text("Elem ");
2135
- t1 = text(/*elemIndex*/ ctx[76]);
2135
+ t1 = text(/*elemIndex*/ ctx[77]);
2136
2136
  t2 = space();
2137
- toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[76]);
2137
+ toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[77]);
2138
2138
  },
2139
2139
  m(target, anchor) {
2140
2140
  insert(target, span, anchor);
@@ -2151,7 +2151,7 @@ function create_each_block_5(ctx) {
2151
2151
  ctx = new_ctx;
2152
2152
 
2153
2153
  if (dirty[0] & /*selectedElemIndex*/ 16) {
2154
- toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[76]);
2154
+ toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[77]);
2155
2155
  }
2156
2156
  },
2157
2157
  d(detaching) {
@@ -2162,25 +2162,25 @@ function create_each_block_5(ctx) {
2162
2162
  };
2163
2163
  }
2164
2164
 
2165
- // (377:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2165
+ // (385:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
2166
2166
  function create_each_block_4(ctx) {
2167
2167
  let span;
2168
- let t_value = /*ruleName*/ ctx[71] + "";
2168
+ let t_value = /*ruleName*/ ctx[72] + "";
2169
2169
  let t;
2170
2170
  let span_title_value;
2171
2171
  let mounted;
2172
2172
  let dispose;
2173
2173
 
2174
2174
  function click_handler_1() {
2175
- return /*click_handler_1*/ ctx[32](/*ruleIndex*/ ctx[73]);
2175
+ return /*click_handler_1*/ ctx[33](/*ruleIndex*/ ctx[74]);
2176
2176
  }
2177
2177
 
2178
2178
  return {
2179
2179
  c() {
2180
2180
  span = element("span");
2181
2181
  t = text(t_value);
2182
- attr(span, "title", span_title_value = /*ruleName*/ ctx[71]);
2183
- toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[73]);
2182
+ attr(span, "title", span_title_value = /*ruleName*/ ctx[72]);
2183
+ toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[74]);
2184
2184
  },
2185
2185
  m(target, anchor) {
2186
2186
  insert(target, span, anchor);
@@ -2193,14 +2193,14 @@ function create_each_block_4(ctx) {
2193
2193
  },
2194
2194
  p(new_ctx, dirty) {
2195
2195
  ctx = new_ctx;
2196
- if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && t_value !== (t_value = /*ruleName*/ ctx[71] + "")) set_data(t, t_value);
2196
+ if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && t_value !== (t_value = /*ruleName*/ ctx[72] + "")) set_data(t, t_value);
2197
2197
 
2198
- if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && span_title_value !== (span_title_value = /*ruleName*/ ctx[71])) {
2198
+ if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && span_title_value !== (span_title_value = /*ruleName*/ ctx[72])) {
2199
2199
  attr(span, "title", span_title_value);
2200
2200
  }
2201
2201
 
2202
2202
  if (dirty[0] & /*selectedRuleIndex*/ 32) {
2203
- toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[73]);
2203
+ toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[74]);
2204
2204
  }
2205
2205
  },
2206
2206
  d(detaching) {
@@ -2211,17 +2211,17 @@ function create_each_block_4(ctx) {
2211
2211
  };
2212
2212
  }
2213
2213
 
2214
- // (388:12) {#if type !== 'custom' || currentRule === 'inline'}
2214
+ // (396:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
2215
2215
  function create_if_block_6(ctx) {
2216
2216
  let span;
2217
- let t0_value = /*type*/ ctx[68] + "";
2217
+ let t0_value = /*type*/ ctx[69] + "";
2218
2218
  let t0;
2219
2219
  let t1;
2220
2220
  let mounted;
2221
2221
  let dispose;
2222
2222
 
2223
2223
  function click_handler_2() {
2224
- return /*click_handler_2*/ ctx[33](/*typeIndex*/ ctx[70]);
2224
+ return /*click_handler_2*/ ctx[34](/*typeIndex*/ ctx[71]);
2225
2225
  }
2226
2226
 
2227
2227
  return {
@@ -2229,7 +2229,7 @@ function create_if_block_6(ctx) {
2229
2229
  span = element("span");
2230
2230
  t0 = text(t0_value);
2231
2231
  t1 = space();
2232
- toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[70]);
2232
+ toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[71]);
2233
2233
  },
2234
2234
  m(target, anchor) {
2235
2235
  insert(target, span, anchor);
@@ -2243,10 +2243,10 @@ function create_if_block_6(ctx) {
2243
2243
  },
2244
2244
  p(new_ctx, dirty) {
2245
2245
  ctx = new_ctx;
2246
- if (dirty[0] & /*allTypes, selectedElemIndex*/ 24 && t0_value !== (t0_value = /*type*/ ctx[68] + "")) set_data(t0, t0_value);
2246
+ if (dirty[0] & /*allTypes, selectedElemIndex*/ 24 && t0_value !== (t0_value = /*type*/ ctx[69] + "")) set_data(t0, t0_value);
2247
2247
 
2248
2248
  if (dirty[0] & /*selectedTypeIndex*/ 64) {
2249
- toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[70]);
2249
+ toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[71]);
2250
2250
  }
2251
2251
  },
2252
2252
  d(detaching) {
@@ -2257,10 +2257,10 @@ function create_if_block_6(ctx) {
2257
2257
  };
2258
2258
  }
2259
2259
 
2260
- // (386:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2260
+ // (394:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
2261
2261
  function create_each_block_3(ctx) {
2262
2262
  let if_block_anchor;
2263
- let if_block = (/*type*/ ctx[68] !== 'custom' || /*currentRule*/ ctx[7] === 'inline') && create_if_block_6(ctx);
2263
+ let if_block = (/*type*/ ctx[69] !== 'custom' || /*currentRule*/ ctx[7] === 'inline' && /*type*/ ctx[69] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) && create_if_block_6(ctx);
2264
2264
 
2265
2265
  return {
2266
2266
  c() {
@@ -2272,7 +2272,7 @@ function create_each_block_3(ctx) {
2272
2272
  insert(target, if_block_anchor, anchor);
2273
2273
  },
2274
2274
  p(ctx, dirty) {
2275
- if (/*type*/ ctx[68] !== 'custom' || /*currentRule*/ ctx[7] === 'inline') {
2275
+ if (/*type*/ ctx[69] !== 'custom' || /*currentRule*/ ctx[7] === 'inline' && /*type*/ ctx[69] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) {
2276
2276
  if (if_block) {
2277
2277
  if_block.p(ctx, dirty);
2278
2278
  } else {
@@ -2292,7 +2292,7 @@ function create_each_block_3(ctx) {
2292
2292
  };
2293
2293
  }
2294
2294
 
2295
- // (393:4) {#if allTypes[selectedElemIndex]}
2295
+ // (401:4) {#if allTypes[selectedElemIndex]}
2296
2296
  function create_if_block(ctx) {
2297
2297
  let div;
2298
2298
  let t;
@@ -2334,7 +2334,7 @@ function create_if_block(ctx) {
2334
2334
  current = true;
2335
2335
  },
2336
2336
  p(ctx, dirty) {
2337
- if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp*/ 155648) {
2337
+ if (dirty[0] & /*allCurrentPropDefs, propsByType, updateProp*/ 286720) {
2338
2338
  each_value = Object.entries(/*propsByType*/ ctx[13]);
2339
2339
  let i;
2340
2340
 
@@ -2400,10 +2400,10 @@ function create_if_block(ctx) {
2400
2400
  };
2401
2401
  }
2402
2402
 
2403
- // (404:16) {:else}
2403
+ // (412:16) {:else}
2404
2404
  function create_else_block(ctx) {
2405
2405
  let span;
2406
- let t_value = /*selectedName*/ ctx[59] + "";
2406
+ let t_value = /*selectedName*/ ctx[60] + "";
2407
2407
  let t;
2408
2408
 
2409
2409
  return {
@@ -2416,7 +2416,7 @@ function create_else_block(ctx) {
2416
2416
  append(span, t);
2417
2417
  },
2418
2418
  p(ctx, dirty) {
2419
- if (dirty[0] & /*propsByType*/ 8192 && t_value !== (t_value = /*selectedName*/ ctx[59] + "")) set_data(t, t_value);
2419
+ if (dirty[0] & /*propsByType*/ 8192 && t_value !== (t_value = /*selectedName*/ ctx[60] + "")) set_data(t, t_value);
2420
2420
  },
2421
2421
  d(detaching) {
2422
2422
  if (detaching) detach(span);
@@ -2424,13 +2424,13 @@ function create_else_block(ctx) {
2424
2424
  };
2425
2425
  }
2426
2426
 
2427
- // (398:16) {#if choices.props.length > 1}
2427
+ // (406:16) {#if choices.props.length > 1}
2428
2428
  function create_if_block_5(ctx) {
2429
2429
  let div;
2430
2430
  let select;
2431
2431
  let mounted;
2432
2432
  let dispose;
2433
- let each_value_2 = /*choices*/ ctx[58].props;
2433
+ let each_value_2 = /*choices*/ ctx[59].props;
2434
2434
  let each_blocks = [];
2435
2435
 
2436
2436
  for (let i = 0; i < each_value_2.length; i += 1) {
@@ -2438,7 +2438,7 @@ function create_if_block_5(ctx) {
2438
2438
  }
2439
2439
 
2440
2440
  function change_handler(...args) {
2441
- return /*change_handler*/ ctx[34](/*choices*/ ctx[58], /*each_value*/ ctx[60], /*each_index*/ ctx[61], ...args);
2441
+ return /*change_handler*/ ctx[35](/*choices*/ ctx[59], /*each_value*/ ctx[61], /*each_index*/ ctx[62], ...args);
2442
2442
  }
2443
2443
 
2444
2444
  return {
@@ -2467,7 +2467,7 @@ function create_if_block_5(ctx) {
2467
2467
  ctx = new_ctx;
2468
2468
 
2469
2469
  if (dirty[0] & /*propsByType*/ 8192) {
2470
- each_value_2 = /*choices*/ ctx[58].props;
2470
+ each_value_2 = /*choices*/ ctx[59].props;
2471
2471
  let i;
2472
2472
 
2473
2473
  for (i = 0; i < each_value_2.length; i += 1) {
@@ -2498,10 +2498,10 @@ function create_if_block_5(ctx) {
2498
2498
  };
2499
2499
  }
2500
2500
 
2501
- // (400:24) {#each choices.props as propName, i}
2501
+ // (408:24) {#each choices.props as propName, i}
2502
2502
  function create_each_block_2(ctx) {
2503
2503
  let option;
2504
- let t0_value = /*propName*/ ctx[65] + "";
2504
+ let t0_value = /*propName*/ ctx[66] + "";
2505
2505
  let t0;
2506
2506
  let t1;
2507
2507
  let option_selected_value;
@@ -2511,8 +2511,8 @@ function create_each_block_2(ctx) {
2511
2511
  option = element("option");
2512
2512
  t0 = text(t0_value);
2513
2513
  t1 = space();
2514
- option.selected = option_selected_value = /*i*/ ctx[67] === /*choices*/ ctx[58].selected;
2515
- option.__value = /*i*/ ctx[67];
2514
+ option.selected = option_selected_value = /*i*/ ctx[68] === /*choices*/ ctx[59].selected;
2515
+ option.__value = /*i*/ ctx[68];
2516
2516
  option.value = option.__value;
2517
2517
  },
2518
2518
  m(target, anchor) {
@@ -2521,9 +2521,9 @@ function create_each_block_2(ctx) {
2521
2521
  append(option, t1);
2522
2522
  },
2523
2523
  p(ctx, dirty) {
2524
- if (dirty[0] & /*propsByType*/ 8192 && t0_value !== (t0_value = /*propName*/ ctx[65] + "")) set_data(t0, t0_value);
2524
+ if (dirty[0] & /*propsByType*/ 8192 && t0_value !== (t0_value = /*propName*/ ctx[66] + "")) set_data(t0, t0_value);
2525
2525
 
2526
- if (dirty[0] & /*propsByType*/ 8192 && option_selected_value !== (option_selected_value = /*i*/ ctx[67] === /*choices*/ ctx[58].selected)) {
2526
+ if (dirty[0] & /*propsByType*/ 8192 && option_selected_value !== (option_selected_value = /*i*/ ctx[68] === /*choices*/ ctx[59].selected)) {
2527
2527
  option.selected = option_selected_value;
2528
2528
  }
2529
2529
  },
@@ -2533,18 +2533,18 @@ function create_each_block_2(ctx) {
2533
2533
  };
2534
2534
  }
2535
2535
 
2536
- // (421:46)
2536
+ // (429:46)
2537
2537
  function create_if_block_4(ctx) {
2538
2538
  let colorpicker;
2539
2539
  let current;
2540
2540
 
2541
2541
  function func(...args) {
2542
- return /*func*/ ctx[37](/*selectedName*/ ctx[59], ...args);
2542
+ return /*func*/ ctx[38](/*selectedName*/ ctx[60], ...args);
2543
2543
  }
2544
2544
 
2545
2545
  colorpicker = new ColorPicker$1({
2546
2546
  props: {
2547
- value: /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value,
2547
+ value: /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value,
2548
2548
  onChange: func
2549
2549
  }
2550
2550
  });
@@ -2560,7 +2560,7 @@ function create_if_block_4(ctx) {
2560
2560
  p(new_ctx, dirty) {
2561
2561
  ctx = new_ctx;
2562
2562
  const colorpicker_changes = {};
2563
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value;
2563
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value;
2564
2564
  if (dirty[0] & /*propsByType*/ 8192) colorpicker_changes.onChange = func;
2565
2565
  colorpicker.$set(colorpicker_changes);
2566
2566
  },
@@ -2579,12 +2579,12 @@ function create_if_block_4(ctx) {
2579
2579
  };
2580
2580
  }
2581
2581
 
2582
- // (415:47)
2582
+ // (423:47)
2583
2583
  function create_if_block_3(ctx) {
2584
2584
  let select;
2585
2585
  let mounted;
2586
2586
  let dispose;
2587
- let each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].choices();
2587
+ let each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].choices();
2588
2588
  let each_blocks = [];
2589
2589
 
2590
2590
  for (let i = 0; i < each_value_1.length; i += 1) {
@@ -2592,7 +2592,7 @@ function create_if_block_3(ctx) {
2592
2592
  }
2593
2593
 
2594
2594
  function change_handler_2(...args) {
2595
- return /*change_handler_2*/ ctx[36](/*selectedName*/ ctx[59], ...args);
2595
+ return /*change_handler_2*/ ctx[37](/*selectedName*/ ctx[60], ...args);
2596
2596
  }
2597
2597
 
2598
2598
  return {
@@ -2619,7 +2619,7 @@ function create_if_block_3(ctx) {
2619
2619
  ctx = new_ctx;
2620
2620
 
2621
2621
  if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) {
2622
- each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].choices();
2622
+ each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].choices();
2623
2623
  let i;
2624
2624
 
2625
2625
  for (i = 0; i < each_value_1.length; i += 1) {
@@ -2652,7 +2652,7 @@ function create_if_block_3(ctx) {
2652
2652
  };
2653
2653
  }
2654
2654
 
2655
- // (407:16) {#if propType === 'slider'}
2655
+ // (415:16) {#if propType === 'slider'}
2656
2656
  function create_if_block_2(ctx) {
2657
2657
  let input;
2658
2658
  let input_min_value;
@@ -2661,13 +2661,13 @@ function create_if_block_2(ctx) {
2661
2661
  let input_value_value;
2662
2662
  let t0;
2663
2663
  let span;
2664
- let t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].displayed + "";
2664
+ let t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].displayed + "";
2665
2665
  let t1;
2666
2666
  let mounted;
2667
2667
  let dispose;
2668
2668
 
2669
2669
  function change_handler_1(...args) {
2670
- return /*change_handler_1*/ ctx[35](/*selectedName*/ ctx[59], ...args);
2670
+ return /*change_handler_1*/ ctx[36](/*selectedName*/ ctx[60], ...args);
2671
2671
  }
2672
2672
 
2673
2673
  return {
@@ -2677,10 +2677,10 @@ function create_if_block_2(ctx) {
2677
2677
  span = element("span");
2678
2678
  t1 = text(t1_value);
2679
2679
  attr(input, "type", "range");
2680
- attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].min);
2681
- attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].max);
2682
- attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].step || 1);
2683
- input.value = input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value;
2680
+ attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].min);
2681
+ attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].max);
2682
+ attr(input, "step", input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].step || 1);
2683
+ input.value = input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value;
2684
2684
  attr(span, "class", "current-value");
2685
2685
  },
2686
2686
  m(target, anchor) {
@@ -2697,23 +2697,23 @@ function create_if_block_2(ctx) {
2697
2697
  p(new_ctx, dirty) {
2698
2698
  ctx = new_ctx;
2699
2699
 
2700
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].min)) {
2700
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].min)) {
2701
2701
  attr(input, "min", input_min_value);
2702
2702
  }
2703
2703
 
2704
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].max)) {
2704
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].max)) {
2705
2705
  attr(input, "max", input_max_value);
2706
2706
  }
2707
2707
 
2708
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_step_value !== (input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].step || 1)) {
2708
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_step_value !== (input_step_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].step || 1)) {
2709
2709
  attr(input, "step", input_step_value);
2710
2710
  }
2711
2711
 
2712
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value)) {
2712
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value)) {
2713
2713
  input.value = input_value_value;
2714
2714
  }
2715
2715
 
2716
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].displayed + "")) set_data(t1, t1_value);
2716
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].displayed + "")) set_data(t1, t1_value);
2717
2717
  },
2718
2718
  i: noop$1,
2719
2719
  o: noop$1,
@@ -2727,10 +2727,10 @@ function create_if_block_2(ctx) {
2727
2727
  };
2728
2728
  }
2729
2729
 
2730
- // (417:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2730
+ // (425:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
2731
2731
  function create_each_block_1(ctx) {
2732
2732
  let option;
2733
- let t_value = /*choice*/ ctx[62] + "";
2733
+ let t_value = /*choice*/ ctx[63] + "";
2734
2734
  let t;
2735
2735
  let option_selected_value;
2736
2736
  let option_value_value;
@@ -2739,8 +2739,8 @@ function create_each_block_1(ctx) {
2739
2739
  c() {
2740
2740
  option = element("option");
2741
2741
  t = text(t_value);
2742
- option.selected = option_selected_value = /*choice*/ ctx[62] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value || null;
2743
- option.__value = option_value_value = " " + /*choice*/ ctx[62] + " ";
2742
+ option.selected = option_selected_value = /*choice*/ ctx[63] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value || null;
2743
+ option.__value = option_value_value = " " + /*choice*/ ctx[63] + " ";
2744
2744
  option.value = option.__value;
2745
2745
  },
2746
2746
  m(target, anchor) {
@@ -2748,13 +2748,13 @@ function create_each_block_1(ctx) {
2748
2748
  append(option, t);
2749
2749
  },
2750
2750
  p(ctx, dirty) {
2751
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t_value !== (t_value = /*choice*/ ctx[62] + "")) set_data(t, t_value);
2751
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t_value !== (t_value = /*choice*/ ctx[63] + "")) set_data(t, t_value);
2752
2752
 
2753
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_selected_value !== (option_selected_value = /*choice*/ ctx[62] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[59]].value || null)) {
2753
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_selected_value !== (option_selected_value = /*choice*/ ctx[63] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[60]].value || null)) {
2754
2754
  option.selected = option_selected_value;
2755
2755
  }
2756
2756
 
2757
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[62] + " ")) {
2757
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[63] + " ")) {
2758
2758
  option.__value = option_value_value;
2759
2759
  option.value = option.__value;
2760
2760
  }
@@ -2765,7 +2765,7 @@ function create_each_block_1(ctx) {
2765
2765
  };
2766
2766
  }
2767
2767
 
2768
- // (395:8) {#each Object.entries(propsByType) as [propType, choices]}
2768
+ // (403:8) {#each Object.entries(propsByType) as [propType, choices]}
2769
2769
  function create_each_block(ctx) {
2770
2770
  let div;
2771
2771
  let t;
@@ -2774,7 +2774,7 @@ function create_each_block(ctx) {
2774
2774
  let current;
2775
2775
 
2776
2776
  function select_block_type(ctx, dirty) {
2777
- if (/*choices*/ ctx[58].props.length > 1) return create_if_block_5;
2777
+ if (/*choices*/ ctx[59].props.length > 1) return create_if_block_5;
2778
2778
  return create_else_block;
2779
2779
  }
2780
2780
 
@@ -2784,9 +2784,9 @@ function create_each_block(ctx) {
2784
2784
  const if_blocks = [];
2785
2785
 
2786
2786
  function select_block_type_1(ctx, dirty) {
2787
- if (/*propType*/ ctx[57] === 'slider') return 0;
2788
- if (/*propType*/ ctx[57] == 'select') return 1;
2789
- if (/*propType*/ ctx[57] == 'color') return 2;
2787
+ if (/*propType*/ ctx[58] === 'slider') return 0;
2788
+ if (/*propType*/ ctx[58] == 'select') return 1;
2789
+ if (/*propType*/ ctx[58] == 'color') return 2;
2790
2790
  return -1;
2791
2791
  }
2792
2792
 
@@ -2881,7 +2881,7 @@ function create_each_block(ctx) {
2881
2881
  };
2882
2882
  }
2883
2883
 
2884
- // (429:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2884
+ // (437:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
2885
2885
  function create_if_block_1(ctx) {
2886
2886
  let div;
2887
2887
  let mounted;
@@ -2898,7 +2898,7 @@ function create_if_block_1(ctx) {
2898
2898
  insert(target, div, anchor);
2899
2899
 
2900
2900
  if (!mounted) {
2901
- dispose = listen(div, "click", /*bringToFront*/ ctx[18]);
2901
+ dispose = listen(div, "click", /*bringToFront*/ ctx[19]);
2902
2902
  mounted = true;
2903
2903
  }
2904
2904
  },
@@ -3015,13 +3015,13 @@ function create_fragment(ctx) {
3015
3015
  },
3016
3016
  m(target, anchor) {
3017
3017
  insert(target, div0, anchor);
3018
- /*div0_binding*/ ctx[29](div0);
3018
+ /*div0_binding*/ ctx[30](div0);
3019
3019
  insert(target, t0, anchor);
3020
3020
  insert(target, svg, anchor);
3021
3021
  append(svg, clipPath);
3022
3022
  append(clipPath, path);
3023
3023
  append(svg, rect);
3024
- /*svg_binding*/ ctx[30](svg);
3024
+ /*svg_binding*/ ctx[31](svg);
3025
3025
  insert(target, t1, anchor);
3026
3026
  insert(target, div4, anchor);
3027
3027
  append(div4, div1);
@@ -3047,12 +3047,12 @@ function create_fragment(ctx) {
3047
3047
 
3048
3048
  append(div4, t10);
3049
3049
  if (if_block1) if_block1.m(div4, null);
3050
- /*div4_binding*/ ctx[38](div4);
3050
+ /*div4_binding*/ ctx[39](div4);
3051
3051
  current = true;
3052
3052
 
3053
3053
  if (!mounted) {
3054
3054
  dispose = [
3055
- listen(svg, "click", /*overlayClicked*/ ctx[16]),
3055
+ listen(svg, "click", /*overlayClicked*/ ctx[17]),
3056
3056
  listen(div1, "click", /*close*/ ctx[0])
3057
3057
  ];
3058
3058
 
@@ -3085,7 +3085,7 @@ function create_fragment(ctx) {
3085
3085
  if_block0 = null;
3086
3086
  }
3087
3087
 
3088
- if (dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex, selectRule*/ 524340) {
3088
+ if (dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex, selectRule*/ 1048628) {
3089
3089
  each_value_4 = getRuleNames(/*allRules*/ ctx[2][/*selectedElemIndex*/ ctx[4]]);
3090
3090
  let i;
3091
3091
 
@@ -3108,7 +3108,7 @@ function create_fragment(ctx) {
3108
3108
  each_blocks_1.length = each_value_4.length;
3109
3109
  }
3110
3110
 
3111
- if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule*/ 216) {
3111
+ if (dirty[0] & /*selectedTypeIndex, allTypes, selectedElemIndex, currentRule, hasDisplayedCustom*/ 65752) {
3112
3112
  each_value_3 = /*allTypes*/ ctx[3][/*selectedElemIndex*/ ctx[4]] || [];
3113
3113
  let i;
3114
3114
 
@@ -3165,17 +3165,17 @@ function create_fragment(ctx) {
3165
3165
  },
3166
3166
  d(detaching) {
3167
3167
  if (detaching) detach(div0);
3168
- /*div0_binding*/ ctx[29](null);
3168
+ /*div0_binding*/ ctx[30](null);
3169
3169
  if (detaching) detach(t0);
3170
3170
  if (detaching) detach(svg);
3171
- /*svg_binding*/ ctx[30](null);
3171
+ /*svg_binding*/ ctx[31](null);
3172
3172
  if (detaching) detach(t1);
3173
3173
  if (detaching) detach(div4);
3174
3174
  if (if_block0) if_block0.d();
3175
3175
  destroy_each(each_blocks_1, detaching);
3176
3176
  destroy_each(each_blocks, detaching);
3177
3177
  if (if_block1) if_block1.d();
3178
- /*div4_binding*/ ctx[38](null);
3178
+ /*div4_binding*/ ctx[39](null);
3179
3179
  mounted = false;
3180
3180
  run_all(dispose);
3181
3181
  }
@@ -3297,7 +3297,8 @@ function instance($$self, $$props, $$invalidate) {
3297
3297
  "stroke-width": {
3298
3298
  type: "slider",
3299
3299
  min: 0,
3300
- max: 30,
3300
+ max: 20,
3301
+ step: 0.5,
3301
3302
  suffix: 'px'
3302
3303
  },
3303
3304
  'stroke': { type: "color" },
@@ -3311,7 +3312,10 @@ function instance($$self, $$props, $$invalidate) {
3311
3312
  "background-color": { type: "color" }
3312
3313
  };
3313
3314
 
3314
- let { getAdditionalElems = () => [] } = $$props;
3315
+ let { getAdditionalElems = () => {
3316
+ return [];
3317
+ } } = $$props;
3318
+
3315
3319
  let { listenOnClick = false } = $$props;
3316
3320
 
3317
3321
  let { onStyleChanged = () => {
@@ -3343,13 +3347,14 @@ function instance($$self, $$props, $$invalidate) {
3343
3347
  let propsByType; // propType -> {[props], selected}
3344
3348
  let allCurrentPropDefs = {}; // propName => selectorDef
3345
3349
  let bringableToFront = []; // null = not bringable, true = bringable, false = was bringed
3350
+ let hasDisplayedCustom = false;
3346
3351
 
3347
3352
  // $: curType = allTypes[selectedElemIndex]?.[selectedTypeIndex];
3348
3353
  let curType;
3349
3354
 
3350
3355
  onMount(() => {
3351
3356
  close();
3352
- $$invalidate(26, elementToListen = self.parentNode);
3357
+ $$invalidate(27, elementToListen = self.parentNode);
3353
3358
  document.body.appendChild(self);
3354
3359
  document.body.appendChild(helperElemWrapper);
3355
3360
  document.body.appendChild(positionAnchor);
@@ -3463,8 +3468,16 @@ function instance($$self, $$props, $$invalidate) {
3463
3468
  $$invalidate(2, allRules = []);
3464
3469
  $$invalidate(1, targetsToSearch = [el, ...getAdditionalElems(el)]);
3465
3470
  $$invalidate(3, allTypes = getEditableTypes(targetsToSearch));
3471
+ $$invalidate(16, hasDisplayedCustom = false);
3466
3472
  $$invalidate(2, allRules = getMatchedCSSRules(targetsToSearch));
3467
3473
 
3474
+ for (let def of Object.values(customProps)) {
3475
+ if (def.getter(el) !== null) {
3476
+ $$invalidate(16, hasDisplayedCustom = true);
3477
+ break;
3478
+ }
3479
+ }
3480
+
3468
3481
  if (Object.keys(customProps).length) {
3469
3482
  allTypes[0].push(customType);
3470
3483
  }
@@ -3620,14 +3633,14 @@ function instance($$self, $$props, $$invalidate) {
3620
3633
  }
3621
3634
 
3622
3635
  $$self.$$set = $$props => {
3623
- if ('getAdditionalElems' in $$props) $$invalidate(20, getAdditionalElems = $$props.getAdditionalElems);
3624
- if ('listenOnClick' in $$props) $$invalidate(21, listenOnClick = $$props.listenOnClick);
3625
- if ('onStyleChanged' in $$props) $$invalidate(22, onStyleChanged = $$props.onStyleChanged);
3626
- if ('customProps' in $$props) $$invalidate(23, customProps = $$props.customProps);
3636
+ if ('getAdditionalElems' in $$props) $$invalidate(21, getAdditionalElems = $$props.getAdditionalElems);
3637
+ if ('listenOnClick' in $$props) $$invalidate(22, listenOnClick = $$props.listenOnClick);
3638
+ if ('onStyleChanged' in $$props) $$invalidate(23, onStyleChanged = $$props.onStyleChanged);
3639
+ if ('customProps' in $$props) $$invalidate(24, customProps = $$props.customProps);
3627
3640
  };
3628
3641
 
3629
3642
  $$self.$$.update = () => {
3630
- if ($$self.$$.dirty[0] & /*elementToListen*/ 67108864) {
3643
+ if ($$self.$$.dirty[0] & /*elementToListen*/ 134217728) {
3631
3644
  {
3632
3645
  if (elementToListen !== null) {
3633
3646
  init();
@@ -3636,22 +3649,22 @@ function instance($$self, $$props, $$invalidate) {
3636
3649
  }
3637
3650
 
3638
3651
  if ($$self.$$.dirty[0] & /*targetsToSearch, selectedElemIndex*/ 18) {
3639
- $$invalidate(28, currentElement = targetsToSearch[selectedElemIndex]);
3652
+ $$invalidate(29, currentElement = targetsToSearch[selectedElemIndex]);
3640
3653
  }
3641
3654
 
3642
3655
  if ($$self.$$.dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex*/ 52) {
3643
3656
  $$invalidate(7, currentRule = allRules[selectedElemIndex]?.[selectedRuleIndex]);
3644
3657
  }
3645
3658
 
3646
- if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 134217816) {
3659
+ if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 268435544) {
3647
3660
  {
3648
3661
  if (allTypes[selectedElemIndex]?.[selectedTypeIndex] !== curType) {
3649
- $$invalidate(27, curType = allTypes[selectedElemIndex]?.[selectedTypeIndex]);
3662
+ $$invalidate(28, curType = allTypes[selectedElemIndex]?.[selectedTypeIndex]);
3650
3663
  }
3651
3664
  }
3652
3665
  }
3653
3666
 
3654
- if ($$self.$$.dirty[0] & /*curType, currentRule, customProps, currentElement*/ 411041920) {
3667
+ if ($$self.$$.dirty[0] & /*curType, currentRule, customProps, currentElement*/ 822083712) {
3655
3668
  {
3656
3669
  if (curType && currentRule) {
3657
3670
  const allProps = { ...cssPropByType, ...customProps };
@@ -3710,6 +3723,7 @@ function instance($$self, $$props, $$invalidate) {
3710
3723
  propsByType,
3711
3724
  allCurrentPropDefs,
3712
3725
  bringableToFront,
3726
+ hasDisplayedCustom,
3713
3727
  overlayClicked,
3714
3728
  updateProp,
3715
3729
  bringToFront,
@@ -3747,13 +3761,13 @@ class InlineStyleEditor$1 extends SvelteComponent {
3747
3761
  create_fragment,
3748
3762
  safe_not_equal,
3749
3763
  {
3750
- getAdditionalElems: 20,
3751
- listenOnClick: 21,
3752
- onStyleChanged: 22,
3753
- customProps: 23,
3754
- open: 24,
3764
+ getAdditionalElems: 21,
3765
+ listenOnClick: 22,
3766
+ onStyleChanged: 23,
3767
+ customProps: 24,
3768
+ open: 25,
3755
3769
  close: 0,
3756
- isOpened: 25
3770
+ isOpened: 26
3757
3771
  },
3758
3772
  null,
3759
3773
  [-1, -1, -1]
@@ -3761,7 +3775,7 @@ class InlineStyleEditor$1 extends SvelteComponent {
3761
3775
  }
3762
3776
 
3763
3777
  get open() {
3764
- return this.$$.ctx[24];
3778
+ return this.$$.ctx[25];
3765
3779
  }
3766
3780
 
3767
3781
  get close() {
@@ -3769,7 +3783,7 @@ class InlineStyleEditor$1 extends SvelteComponent {
3769
3783
  }
3770
3784
 
3771
3785
  get isOpened() {
3772
- return this.$$.ctx[25];
3786
+ return this.$$.ctx[26];
3773
3787
  }
3774
3788
  }
3775
3789