inline-style-editor 1.0.2 → 1.0.3

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.
@@ -2862,50 +2862,50 @@ function getFonts() {
2862
2862
 
2863
2863
  function get_each_context(ctx, list, i) {
2864
2864
  const child_ctx = ctx.slice();
2865
- child_ctx[53] = list[i][0];
2866
- child_ctx[54] = list[i][1];
2867
- child_ctx[56] = list;
2868
- child_ctx[57] = i;
2869
- const constants_0 = /*choices*/ child_ctx[54].props[/*choices*/ child_ctx[54].selected];
2870
- child_ctx[55] = constants_0;
2865
+ child_ctx[54] = list[i][0];
2866
+ child_ctx[55] = list[i][1];
2867
+ child_ctx[57] = list;
2868
+ child_ctx[58] = i;
2869
+ const constants_0 = /*choices*/ child_ctx[55].props[/*choices*/ child_ctx[55].selected];
2870
+ child_ctx[56] = constants_0;
2871
2871
  return child_ctx;
2872
2872
  }
2873
2873
 
2874
2874
  function get_each_context_1(ctx, list, i) {
2875
2875
  const child_ctx = ctx.slice();
2876
- child_ctx[58] = list[i];
2876
+ child_ctx[59] = list[i];
2877
2877
  return child_ctx;
2878
2878
  }
2879
2879
 
2880
2880
  function get_each_context_2(ctx, list, i) {
2881
2881
  const child_ctx = ctx.slice();
2882
- child_ctx[61] = list[i];
2883
- child_ctx[63] = i;
2882
+ child_ctx[62] = list[i];
2883
+ child_ctx[64] = i;
2884
2884
  return child_ctx;
2885
2885
  }
2886
2886
 
2887
2887
  function get_each_context_3(ctx, list, i) {
2888
2888
  const child_ctx = ctx.slice();
2889
- child_ctx[64] = list[i];
2890
- child_ctx[66] = i;
2889
+ child_ctx[65] = list[i];
2890
+ child_ctx[67] = i;
2891
2891
  return child_ctx;
2892
2892
  }
2893
2893
 
2894
2894
  function get_each_context_4(ctx, list, i) {
2895
2895
  const child_ctx = ctx.slice();
2896
- child_ctx[67] = list[i];
2897
- child_ctx[69] = i;
2896
+ child_ctx[68] = list[i];
2897
+ child_ctx[70] = i;
2898
2898
  return child_ctx;
2899
2899
  }
2900
2900
 
2901
2901
  function get_each_context_5(ctx, list, i) {
2902
2902
  const child_ctx = ctx.slice();
2903
- child_ctx[70] = list[i];
2904
- child_ctx[72] = i;
2903
+ child_ctx[71] = list[i];
2904
+ child_ctx[73] = i;
2905
2905
  return child_ctx;
2906
2906
  }
2907
2907
 
2908
- // (313:4) {#if targetsToSearch.length > 1}
2908
+ // (328:4) {#if targetsToSearch.length > 1}
2909
2909
  function create_if_block_6(ctx) {
2910
2910
  let div;
2911
2911
  let b;
@@ -2970,7 +2970,7 @@ function create_if_block_6(ctx) {
2970
2970
  };
2971
2971
  }
2972
2972
 
2973
- // (316:8) {#each targetsToSearch as target, elemIndex}
2973
+ // (331:8) {#each targetsToSearch as target, elemIndex}
2974
2974
  function create_each_block_5(ctx) {
2975
2975
  let span;
2976
2976
  let t0;
@@ -2980,16 +2980,16 @@ function create_each_block_5(ctx) {
2980
2980
  let dispose;
2981
2981
 
2982
2982
  function click_handler() {
2983
- return /*click_handler*/ ctx[27](/*elemIndex*/ ctx[72]);
2983
+ return /*click_handler*/ ctx[28](/*elemIndex*/ ctx[73]);
2984
2984
  }
2985
2985
 
2986
2986
  return {
2987
2987
  c() {
2988
2988
  span = element("span");
2989
2989
  t0 = text("Elem ");
2990
- t1 = text(/*elemIndex*/ ctx[72]);
2990
+ t1 = text(/*elemIndex*/ ctx[73]);
2991
2991
  t2 = space();
2992
- toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[72]);
2992
+ toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[73]);
2993
2993
  },
2994
2994
  m(target, anchor) {
2995
2995
  insert(target, span, anchor);
@@ -3006,7 +3006,7 @@ function create_each_block_5(ctx) {
3006
3006
  ctx = new_ctx;
3007
3007
 
3008
3008
  if (dirty[0] & /*selectedElemIndex*/ 16) {
3009
- toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[72]);
3009
+ toggle_class(span, "selected", /*selectedElemIndex*/ ctx[4] === /*elemIndex*/ ctx[73]);
3010
3010
  }
3011
3011
  },
3012
3012
  d(detaching) {
@@ -3017,25 +3017,25 @@ function create_each_block_5(ctx) {
3017
3017
  };
3018
3018
  }
3019
3019
 
3020
- // (325:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
3020
+ // (340:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
3021
3021
  function create_each_block_4(ctx) {
3022
3022
  let span;
3023
- let t_value = /*ruleName*/ ctx[67] + "";
3023
+ let t_value = /*ruleName*/ ctx[68] + "";
3024
3024
  let t;
3025
3025
  let span_title_value;
3026
3026
  let mounted;
3027
3027
  let dispose;
3028
3028
 
3029
3029
  function click_handler_1() {
3030
- return /*click_handler_1*/ ctx[28](/*ruleIndex*/ ctx[69]);
3030
+ return /*click_handler_1*/ ctx[29](/*ruleIndex*/ ctx[70]);
3031
3031
  }
3032
3032
 
3033
3033
  return {
3034
3034
  c() {
3035
3035
  span = element("span");
3036
3036
  t = text(t_value);
3037
- attr(span, "title", span_title_value = /*ruleName*/ ctx[67]);
3038
- toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[69]);
3037
+ attr(span, "title", span_title_value = /*ruleName*/ ctx[68]);
3038
+ toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[70]);
3039
3039
  },
3040
3040
  m(target, anchor) {
3041
3041
  insert(target, span, anchor);
@@ -3048,14 +3048,14 @@ function create_each_block_4(ctx) {
3048
3048
  },
3049
3049
  p(new_ctx, dirty) {
3050
3050
  ctx = new_ctx;
3051
- if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && t_value !== (t_value = /*ruleName*/ ctx[67] + "")) set_data(t, t_value);
3051
+ if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && t_value !== (t_value = /*ruleName*/ ctx[68] + "")) set_data(t, t_value);
3052
3052
 
3053
- if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && span_title_value !== (span_title_value = /*ruleName*/ ctx[67])) {
3053
+ if (dirty[0] & /*allRules, selectedElemIndex*/ 20 && span_title_value !== (span_title_value = /*ruleName*/ ctx[68])) {
3054
3054
  attr(span, "title", span_title_value);
3055
3055
  }
3056
3056
 
3057
3057
  if (dirty[0] & /*selectedRuleIndex*/ 32) {
3058
- toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[69]);
3058
+ toggle_class(span, "selected", /*selectedRuleIndex*/ ctx[5] === /*ruleIndex*/ ctx[70]);
3059
3059
  }
3060
3060
  },
3061
3061
  d(detaching) {
@@ -3066,17 +3066,17 @@ function create_each_block_4(ctx) {
3066
3066
  };
3067
3067
  }
3068
3068
 
3069
- // (334:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
3069
+ // (349:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
3070
3070
  function create_each_block_3(ctx) {
3071
3071
  let span;
3072
- let t0_value = /*type*/ ctx[64] + "";
3072
+ let t0_value = /*type*/ ctx[65] + "";
3073
3073
  let t0;
3074
3074
  let t1;
3075
3075
  let mounted;
3076
3076
  let dispose;
3077
3077
 
3078
3078
  function click_handler_2() {
3079
- return /*click_handler_2*/ ctx[29](/*typeIndex*/ ctx[66]);
3079
+ return /*click_handler_2*/ ctx[30](/*typeIndex*/ ctx[67]);
3080
3080
  }
3081
3081
 
3082
3082
  return {
@@ -3084,7 +3084,7 @@ function create_each_block_3(ctx) {
3084
3084
  span = element("span");
3085
3085
  t0 = text(t0_value);
3086
3086
  t1 = space();
3087
- toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[66]);
3087
+ toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[67]);
3088
3088
  },
3089
3089
  m(target, anchor) {
3090
3090
  insert(target, span, anchor);
@@ -3098,10 +3098,10 @@ function create_each_block_3(ctx) {
3098
3098
  },
3099
3099
  p(new_ctx, dirty) {
3100
3100
  ctx = new_ctx;
3101
- if (dirty[0] & /*allTypes, selectedElemIndex*/ 24 && t0_value !== (t0_value = /*type*/ ctx[64] + "")) set_data(t0, t0_value);
3101
+ if (dirty[0] & /*allTypes, selectedElemIndex*/ 24 && t0_value !== (t0_value = /*type*/ ctx[65] + "")) set_data(t0, t0_value);
3102
3102
 
3103
3103
  if (dirty[0] & /*selectedTypeIndex*/ 64) {
3104
- toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[66]);
3104
+ toggle_class(span, "selected", /*selectedTypeIndex*/ ctx[6] === /*typeIndex*/ ctx[67]);
3105
3105
  }
3106
3106
  },
3107
3107
  d(detaching) {
@@ -3112,7 +3112,7 @@ function create_each_block_3(ctx) {
3112
3112
  };
3113
3113
  }
3114
3114
 
3115
- // (338:4) {#if allTypes[selectedElemIndex]}
3115
+ // (353:4) {#if allTypes[selectedElemIndex]}
3116
3116
  function create_if_block(ctx) {
3117
3117
  let div;
3118
3118
  let t;
@@ -3220,10 +3220,10 @@ function create_if_block(ctx) {
3220
3220
  };
3221
3221
  }
3222
3222
 
3223
- // (349:16) {:else}
3223
+ // (364:16) {:else}
3224
3224
  function create_else_block(ctx) {
3225
3225
  let span;
3226
- let t_value = /*selectedName*/ ctx[55] + "";
3226
+ let t_value = /*selectedName*/ ctx[56] + "";
3227
3227
  let t;
3228
3228
 
3229
3229
  return {
@@ -3236,7 +3236,7 @@ function create_else_block(ctx) {
3236
3236
  append(span, t);
3237
3237
  },
3238
3238
  p(ctx, dirty) {
3239
- if (dirty[0] & /*propsByType*/ 8192 && t_value !== (t_value = /*selectedName*/ ctx[55] + "")) set_data(t, t_value);
3239
+ if (dirty[0] & /*propsByType*/ 8192 && t_value !== (t_value = /*selectedName*/ ctx[56] + "")) set_data(t, t_value);
3240
3240
  },
3241
3241
  d(detaching) {
3242
3242
  if (detaching) detach(span);
@@ -3244,13 +3244,13 @@ function create_else_block(ctx) {
3244
3244
  };
3245
3245
  }
3246
3246
 
3247
- // (343:16) {#if choices.props.length > 1}
3247
+ // (358:16) {#if choices.props.length > 1}
3248
3248
  function create_if_block_5(ctx) {
3249
3249
  let div;
3250
3250
  let select;
3251
3251
  let mounted;
3252
3252
  let dispose;
3253
- let each_value_2 = /*choices*/ ctx[54].props;
3253
+ let each_value_2 = /*choices*/ ctx[55].props;
3254
3254
  let each_blocks = [];
3255
3255
 
3256
3256
  for (let i = 0; i < each_value_2.length; i += 1) {
@@ -3258,7 +3258,7 @@ function create_if_block_5(ctx) {
3258
3258
  }
3259
3259
 
3260
3260
  function change_handler(...args) {
3261
- return /*change_handler*/ ctx[30](/*choices*/ ctx[54], /*each_value*/ ctx[56], /*each_index*/ ctx[57], ...args);
3261
+ return /*change_handler*/ ctx[31](/*choices*/ ctx[55], /*each_value*/ ctx[57], /*each_index*/ ctx[58], ...args);
3262
3262
  }
3263
3263
 
3264
3264
  return {
@@ -3287,7 +3287,7 @@ function create_if_block_5(ctx) {
3287
3287
  ctx = new_ctx;
3288
3288
 
3289
3289
  if (dirty[0] & /*propsByType*/ 8192) {
3290
- each_value_2 = /*choices*/ ctx[54].props;
3290
+ each_value_2 = /*choices*/ ctx[55].props;
3291
3291
  let i;
3292
3292
 
3293
3293
  for (i = 0; i < each_value_2.length; i += 1) {
@@ -3318,10 +3318,10 @@ function create_if_block_5(ctx) {
3318
3318
  };
3319
3319
  }
3320
3320
 
3321
- // (345:24) {#each choices.props as propName, i}
3321
+ // (360:24) {#each choices.props as propName, i}
3322
3322
  function create_each_block_2(ctx) {
3323
3323
  let option;
3324
- let t0_value = /*propName*/ ctx[61] + "";
3324
+ let t0_value = /*propName*/ ctx[62] + "";
3325
3325
  let t0;
3326
3326
  let t1;
3327
3327
  let option_selected_value;
@@ -3331,8 +3331,8 @@ function create_each_block_2(ctx) {
3331
3331
  option = element("option");
3332
3332
  t0 = text(t0_value);
3333
3333
  t1 = space();
3334
- option.selected = option_selected_value = /*i*/ ctx[63] === /*choices*/ ctx[54].selected;
3335
- option.__value = /*i*/ ctx[63];
3334
+ option.selected = option_selected_value = /*i*/ ctx[64] === /*choices*/ ctx[55].selected;
3335
+ option.__value = /*i*/ ctx[64];
3336
3336
  option.value = option.__value;
3337
3337
  },
3338
3338
  m(target, anchor) {
@@ -3341,9 +3341,9 @@ function create_each_block_2(ctx) {
3341
3341
  append(option, t1);
3342
3342
  },
3343
3343
  p(ctx, dirty) {
3344
- if (dirty[0] & /*propsByType*/ 8192 && t0_value !== (t0_value = /*propName*/ ctx[61] + "")) set_data(t0, t0_value);
3344
+ if (dirty[0] & /*propsByType*/ 8192 && t0_value !== (t0_value = /*propName*/ ctx[62] + "")) set_data(t0, t0_value);
3345
3345
 
3346
- if (dirty[0] & /*propsByType*/ 8192 && option_selected_value !== (option_selected_value = /*i*/ ctx[63] === /*choices*/ ctx[54].selected)) {
3346
+ if (dirty[0] & /*propsByType*/ 8192 && option_selected_value !== (option_selected_value = /*i*/ ctx[64] === /*choices*/ ctx[55].selected)) {
3347
3347
  option.selected = option_selected_value;
3348
3348
  }
3349
3349
  },
@@ -3353,18 +3353,18 @@ function create_each_block_2(ctx) {
3353
3353
  };
3354
3354
  }
3355
3355
 
3356
- // (364:46)
3356
+ // (379:46)
3357
3357
  function create_if_block_4(ctx) {
3358
3358
  let colorpicker;
3359
3359
  let current;
3360
3360
 
3361
3361
  function func(...args) {
3362
- return /*func*/ ctx[33](/*selectedName*/ ctx[55], ...args);
3362
+ return /*func*/ ctx[34](/*selectedName*/ ctx[56], ...args);
3363
3363
  }
3364
3364
 
3365
3365
  colorpicker = new ColorPicker$1({
3366
3366
  props: {
3367
- value: /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value,
3367
+ value: /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value,
3368
3368
  onChange: func
3369
3369
  }
3370
3370
  });
@@ -3380,7 +3380,7 @@ function create_if_block_4(ctx) {
3380
3380
  p(new_ctx, dirty) {
3381
3381
  ctx = new_ctx;
3382
3382
  const colorpicker_changes = {};
3383
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value;
3383
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) colorpicker_changes.value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value;
3384
3384
  if (dirty[0] & /*propsByType*/ 8192) colorpicker_changes.onChange = func;
3385
3385
  colorpicker.$set(colorpicker_changes);
3386
3386
  },
@@ -3399,12 +3399,12 @@ function create_if_block_4(ctx) {
3399
3399
  };
3400
3400
  }
3401
3401
 
3402
- // (358:47)
3402
+ // (373:47)
3403
3403
  function create_if_block_3(ctx) {
3404
3404
  let select;
3405
3405
  let mounted;
3406
3406
  let dispose;
3407
- let each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].choices();
3407
+ let each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].choices();
3408
3408
  let each_blocks = [];
3409
3409
 
3410
3410
  for (let i = 0; i < each_value_1.length; i += 1) {
@@ -3412,7 +3412,7 @@ function create_if_block_3(ctx) {
3412
3412
  }
3413
3413
 
3414
3414
  function change_handler_2(...args) {
3415
- return /*change_handler_2*/ ctx[32](/*selectedName*/ ctx[55], ...args);
3415
+ return /*change_handler_2*/ ctx[33](/*selectedName*/ ctx[56], ...args);
3416
3416
  }
3417
3417
 
3418
3418
  return {
@@ -3439,7 +3439,7 @@ function create_if_block_3(ctx) {
3439
3439
  ctx = new_ctx;
3440
3440
 
3441
3441
  if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576) {
3442
- each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].choices();
3442
+ each_value_1 = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].choices();
3443
3443
  let i;
3444
3444
 
3445
3445
  for (i = 0; i < each_value_1.length; i += 1) {
@@ -3472,7 +3472,7 @@ function create_if_block_3(ctx) {
3472
3472
  };
3473
3473
  }
3474
3474
 
3475
- // (352:16) {#if propType === 'slider'}
3475
+ // (367:16) {#if propType === 'slider'}
3476
3476
  function create_if_block_2(ctx) {
3477
3477
  let input;
3478
3478
  let input_value_value;
@@ -3480,13 +3480,13 @@ function create_if_block_2(ctx) {
3480
3480
  let input_max_value;
3481
3481
  let t0;
3482
3482
  let span;
3483
- let t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].displayed + "";
3483
+ let t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].displayed + "";
3484
3484
  let t1;
3485
3485
  let mounted;
3486
3486
  let dispose;
3487
3487
 
3488
3488
  function change_handler_1(...args) {
3489
- return /*change_handler_1*/ ctx[31](/*selectedName*/ ctx[55], ...args);
3489
+ return /*change_handler_1*/ ctx[32](/*selectedName*/ ctx[56], ...args);
3490
3490
  }
3491
3491
 
3492
3492
  return {
@@ -3496,9 +3496,9 @@ function create_if_block_2(ctx) {
3496
3496
  span = element("span");
3497
3497
  t1 = text(t1_value);
3498
3498
  attr(input, "type", "range");
3499
- input.value = input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value;
3500
- attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].min);
3501
- attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].max);
3499
+ input.value = input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value;
3500
+ attr(input, "min", input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].min);
3501
+ attr(input, "max", input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].max);
3502
3502
  attr(span, "class", "current-value");
3503
3503
  },
3504
3504
  m(target, anchor) {
@@ -3515,19 +3515,19 @@ function create_if_block_2(ctx) {
3515
3515
  p(new_ctx, dirty) {
3516
3516
  ctx = new_ctx;
3517
3517
 
3518
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value)) {
3518
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_value_value !== (input_value_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value)) {
3519
3519
  input.value = input_value_value;
3520
3520
  }
3521
3521
 
3522
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].min)) {
3522
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_min_value !== (input_min_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].min)) {
3523
3523
  attr(input, "min", input_min_value);
3524
3524
  }
3525
3525
 
3526
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].max)) {
3526
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && input_max_value !== (input_max_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].max)) {
3527
3527
  attr(input, "max", input_max_value);
3528
3528
  }
3529
3529
 
3530
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].displayed + "")) set_data(t1, t1_value);
3530
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t1_value !== (t1_value = /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].displayed + "")) set_data(t1, t1_value);
3531
3531
  },
3532
3532
  i: noop$1,
3533
3533
  o: noop$1,
@@ -3541,10 +3541,10 @@ function create_if_block_2(ctx) {
3541
3541
  };
3542
3542
  }
3543
3543
 
3544
- // (360:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
3544
+ // (375:24) {#each allCurrentPropDefs[selectedName].choices() as choice}
3545
3545
  function create_each_block_1(ctx) {
3546
3546
  let option;
3547
- let t_value = /*choice*/ ctx[58] + "";
3547
+ let t_value = /*choice*/ ctx[59] + "";
3548
3548
  let t;
3549
3549
  let option_selected_value;
3550
3550
  let option_value_value;
@@ -3553,8 +3553,8 @@ function create_each_block_1(ctx) {
3553
3553
  c() {
3554
3554
  option = element("option");
3555
3555
  t = text(t_value);
3556
- option.selected = option_selected_value = /*choice*/ ctx[58] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value || null;
3557
- option.__value = option_value_value = " " + /*choice*/ ctx[58] + " ";
3556
+ option.selected = option_selected_value = /*choice*/ ctx[59] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value || null;
3557
+ option.__value = option_value_value = " " + /*choice*/ ctx[59] + " ";
3558
3558
  option.value = option.__value;
3559
3559
  },
3560
3560
  m(target, anchor) {
@@ -3562,13 +3562,13 @@ function create_each_block_1(ctx) {
3562
3562
  append(option, t);
3563
3563
  },
3564
3564
  p(ctx, dirty) {
3565
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t_value !== (t_value = /*choice*/ ctx[58] + "")) set_data(t, t_value);
3565
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && t_value !== (t_value = /*choice*/ ctx[59] + "")) set_data(t, t_value);
3566
3566
 
3567
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_selected_value !== (option_selected_value = /*choice*/ ctx[58] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[55]].value || null)) {
3567
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_selected_value !== (option_selected_value = /*choice*/ ctx[59] == /*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[56]].value || null)) {
3568
3568
  option.selected = option_selected_value;
3569
3569
  }
3570
3570
 
3571
- if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[58] + " ")) {
3571
+ if (dirty[0] & /*allCurrentPropDefs, propsByType*/ 24576 && option_value_value !== (option_value_value = " " + /*choice*/ ctx[59] + " ")) {
3572
3572
  option.__value = option_value_value;
3573
3573
  option.value = option.__value;
3574
3574
  }
@@ -3579,7 +3579,7 @@ function create_each_block_1(ctx) {
3579
3579
  };
3580
3580
  }
3581
3581
 
3582
- // (340:8) {#each Object.entries(propsByType) as [propType, choices]}
3582
+ // (355:8) {#each Object.entries(propsByType) as [propType, choices]}
3583
3583
  function create_each_block(ctx) {
3584
3584
  let div;
3585
3585
  let t;
@@ -3588,7 +3588,7 @@ function create_each_block(ctx) {
3588
3588
  let current;
3589
3589
 
3590
3590
  function select_block_type(ctx, dirty) {
3591
- if (/*choices*/ ctx[54].props.length > 1) return create_if_block_5;
3591
+ if (/*choices*/ ctx[55].props.length > 1) return create_if_block_5;
3592
3592
  return create_else_block;
3593
3593
  }
3594
3594
 
@@ -3598,9 +3598,9 @@ function create_each_block(ctx) {
3598
3598
  const if_blocks = [];
3599
3599
 
3600
3600
  function select_block_type_1(ctx, dirty) {
3601
- if (/*propType*/ ctx[53] === 'slider') return 0;
3602
- if (/*propType*/ ctx[53] == 'select') return 1;
3603
- if (/*propType*/ ctx[53] == 'color') return 2;
3601
+ if (/*propType*/ ctx[54] === 'slider') return 0;
3602
+ if (/*propType*/ ctx[54] == 'select') return 1;
3603
+ if (/*propType*/ ctx[54] == 'color') return 2;
3604
3604
  return -1;
3605
3605
  }
3606
3606
 
@@ -3695,7 +3695,7 @@ function create_each_block(ctx) {
3695
3695
  };
3696
3696
  }
3697
3697
 
3698
- // (372:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
3698
+ // (387:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
3699
3699
  function create_if_block_1(ctx) {
3700
3700
  let div;
3701
3701
  let mounted;
@@ -3829,13 +3829,13 @@ function create_fragment(ctx) {
3829
3829
  },
3830
3830
  m(target, anchor) {
3831
3831
  insert(target, div0, anchor);
3832
- /*div0_binding*/ ctx[25](div0);
3832
+ /*div0_binding*/ ctx[26](div0);
3833
3833
  insert(target, t0, anchor);
3834
3834
  insert(target, svg, anchor);
3835
3835
  append(svg, clipPath);
3836
3836
  append(clipPath, path);
3837
3837
  append(svg, rect);
3838
- /*svg_binding*/ ctx[26](svg);
3838
+ /*svg_binding*/ ctx[27](svg);
3839
3839
  insert(target, t1, anchor);
3840
3840
  insert(target, div4, anchor);
3841
3841
  append(div4, div1);
@@ -3861,7 +3861,7 @@ function create_fragment(ctx) {
3861
3861
 
3862
3862
  append(div4, t10);
3863
3863
  if (if_block1) if_block1.m(div4, null);
3864
- /*div4_binding*/ ctx[34](div4);
3864
+ /*div4_binding*/ ctx[35](div4);
3865
3865
  current = true;
3866
3866
 
3867
3867
  if (!mounted) {
@@ -3979,17 +3979,17 @@ function create_fragment(ctx) {
3979
3979
  },
3980
3980
  d(detaching) {
3981
3981
  if (detaching) detach(div0);
3982
- /*div0_binding*/ ctx[25](null);
3982
+ /*div0_binding*/ ctx[26](null);
3983
3983
  if (detaching) detach(t0);
3984
3984
  if (detaching) detach(svg);
3985
- /*svg_binding*/ ctx[26](null);
3985
+ /*svg_binding*/ ctx[27](null);
3986
3986
  if (detaching) detach(t1);
3987
3987
  if (detaching) detach(div4);
3988
3988
  if (if_block0) if_block0.d();
3989
3989
  destroy_each(each_blocks_1, detaching);
3990
3990
  destroy_each(each_blocks, detaching);
3991
3991
  if (if_block1) if_block1.d();
3992
- /*div4_binding*/ ctx[34](null);
3992
+ /*div4_binding*/ ctx[35](null);
3993
3993
  mounted = false;
3994
3994
  run_all(dispose);
3995
3995
  }
@@ -4133,6 +4133,11 @@ function instance($$self, $$props, $$invalidate) {
4133
4133
 
4134
4134
  let { getAdditionalElems = () => [] } = $$props;
4135
4135
  let { listenOnClick = false } = $$props;
4136
+
4137
+ let { onStyleChanged = () => {
4138
+
4139
+ } } = $$props;
4140
+
4136
4141
  let elementToListen = null;
4137
4142
  let positionAnchor;
4138
4143
  let self;
@@ -4154,11 +4159,20 @@ function instance($$self, $$props, $$invalidate) {
4154
4159
 
4155
4160
  onMount(() => {
4156
4161
  close();
4157
- $$invalidate(22, elementToListen = self.parentNode);
4162
+ $$invalidate(23, elementToListen = self.parentNode);
4158
4163
  document.body.appendChild(self);
4159
4164
  document.body.appendChild(helperElemWrapper);
4160
4165
  document.body.appendChild(positionAnchor);
4161
4166
  udpatePageDimensions();
4167
+
4168
+ // make sure the layout is computed to get the client size
4169
+ setTimeout(
4170
+ () => {
4171
+ udpatePageDimensions();
4172
+ },
4173
+ 1000
4174
+ );
4175
+
4162
4176
  window.addEventListener('resize', udpatePageDimensions);
4163
4177
  });
4164
4178
 
@@ -4270,6 +4284,7 @@ function instance($$self, $$props, $$invalidate) {
4270
4284
  function close() {
4271
4285
  $$invalidate(9, self.style.display = "none", self);
4272
4286
  $$invalidate(10, helperElemWrapper.style.display = "none", helperElemWrapper);
4287
+ $$invalidate(11, pathWithHoles = '');
4273
4288
  }
4274
4289
 
4275
4290
  function overlayClicked() {
@@ -4314,15 +4329,22 @@ function instance($$self, $$props, $$invalidate) {
4314
4329
 
4315
4330
  $$invalidate(14, allCurrentPropDefs[cssPropName].value = val, allCurrentPropDefs);
4316
4331
  $$invalidate(14, allCurrentPropDefs[cssPropName].displayed = finalValue, allCurrentPropDefs);
4332
+ onStyleChanged(currentElement, currentRule);
4317
4333
  updateHelpers();
4318
4334
  }
4319
4335
 
4320
4336
  const updateCssRule = lodash_debounce(_updateCssRule, 100);
4321
4337
 
4322
4338
  function udpatePageDimensions() {
4339
+ const bodyStyle = getComputedStyle(document.body);
4340
+ const marginLeft = parseInt(bodyStyle.marginLeft);
4341
+ const marginRight = parseInt(bodyStyle.marginRight);
4342
+ const marginTop = parseInt(bodyStyle.marginTop);
4343
+ const marginBottom = parseInt(bodyStyle.marginBottom);
4344
+
4323
4345
  $$invalidate(12, pageDimensions = {
4324
- width: document.body.scrollWidth,
4325
- height: document.body.scrollHeight
4346
+ width: document.body.offsetWidth + marginLeft + marginRight,
4347
+ height: document.body.offsetHeight + marginTop + marginBottom
4326
4348
  });
4327
4349
  }
4328
4350
 
@@ -4384,10 +4406,11 @@ function instance($$self, $$props, $$invalidate) {
4384
4406
  $$self.$$set = $$props => {
4385
4407
  if ('getAdditionalElems' in $$props) $$invalidate(19, getAdditionalElems = $$props.getAdditionalElems);
4386
4408
  if ('listenOnClick' in $$props) $$invalidate(20, listenOnClick = $$props.listenOnClick);
4409
+ if ('onStyleChanged' in $$props) $$invalidate(21, onStyleChanged = $$props.onStyleChanged);
4387
4410
  };
4388
4411
 
4389
4412
  $$self.$$.update = () => {
4390
- if ($$self.$$.dirty[0] & /*elementToListen*/ 4194304) {
4413
+ if ($$self.$$.dirty[0] & /*elementToListen*/ 8388608) {
4391
4414
  {
4392
4415
  if (elementToListen !== null) {
4393
4416
  init();
@@ -4396,22 +4419,22 @@ function instance($$self, $$props, $$invalidate) {
4396
4419
  }
4397
4420
 
4398
4421
  if ($$self.$$.dirty[0] & /*targetsToSearch, selectedElemIndex*/ 18) {
4399
- $$invalidate(24, currentElement = targetsToSearch[selectedElemIndex]);
4422
+ $$invalidate(25, currentElement = targetsToSearch[selectedElemIndex]);
4400
4423
  }
4401
4424
 
4402
4425
  if ($$self.$$.dirty[0] & /*allRules, selectedElemIndex, selectedRuleIndex*/ 52) {
4403
4426
  $$invalidate(7, currentRule = allRules[selectedElemIndex]?.[selectedRuleIndex]);
4404
4427
  }
4405
4428
 
4406
- if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 8388696) {
4429
+ if ($$self.$$.dirty[0] & /*allTypes, selectedElemIndex, selectedTypeIndex, curType*/ 16777304) {
4407
4430
  {
4408
4431
  if (allTypes[selectedElemIndex]?.[selectedTypeIndex] !== curType) {
4409
- $$invalidate(23, curType = allTypes[selectedElemIndex]?.[selectedTypeIndex]);
4432
+ $$invalidate(24, curType = allTypes[selectedElemIndex]?.[selectedTypeIndex]);
4410
4433
  }
4411
4434
  }
4412
4435
  }
4413
4436
 
4414
- if ($$self.$$.dirty[0] & /*curType, currentRule, currentElement*/ 25165952) {
4437
+ if ($$self.$$.dirty[0] & /*curType, currentRule, currentElement*/ 50331776) {
4415
4438
  {
4416
4439
  if (curType && currentRule) {
4417
4440
  const _allCurrentPropDefs = lodash_pick(cssPropByType, propByType[curType]);
@@ -4461,6 +4484,7 @@ function instance($$self, $$props, $$invalidate) {
4461
4484
  bringToFront,
4462
4485
  getAdditionalElems,
4463
4486
  listenOnClick,
4487
+ onStyleChanged,
4464
4488
  open,
4465
4489
  elementToListen,
4466
4490
  curType,
@@ -4491,7 +4515,8 @@ class InlineStyleEditor$1 extends SvelteComponent {
4491
4515
  {
4492
4516
  getAdditionalElems: 19,
4493
4517
  listenOnClick: 20,
4494
- open: 21,
4518
+ onStyleChanged: 21,
4519
+ open: 22,
4495
4520
  close: 0
4496
4521
  },
4497
4522
  null,
@@ -4500,7 +4525,7 @@ class InlineStyleEditor$1 extends SvelteComponent {
4500
4525
  }
4501
4526
 
4502
4527
  get open() {
4503
- return this.$$.ctx[21];
4528
+ return this.$$.ctx[22];
4504
4529
  }
4505
4530
 
4506
4531
  get close() {