inline-style-editor 1.3.0 → 1.3.1
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.
- package/dist/inline-style-editor.js +1 -1
- package/dist/inline-style-editor.js.map +1 -1
- package/dist/inline-style-editor.mjs +19 -18
- package/dist/inline-style-editor.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/InlineStyleEditor.svelte +2 -1
- package/stats.html +1 -1
- package/test.html +7 -1
|
@@ -2077,7 +2077,7 @@ function get_each_context_5(ctx, list, i) {
|
|
|
2077
2077
|
return child_ctx;
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
|
-
// (
|
|
2080
|
+
// (416:4) {#if targetsToSearch.length > 1}
|
|
2081
2081
|
function create_if_block_9(ctx) {
|
|
2082
2082
|
let div;
|
|
2083
2083
|
let b;
|
|
@@ -2142,7 +2142,7 @@ function create_if_block_9(ctx) {
|
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
// (
|
|
2145
|
+
// (419:8) {#each targetsToSearch as [_, name], elemIndex}
|
|
2146
2146
|
function create_each_block_5(ctx) {
|
|
2147
2147
|
let span;
|
|
2148
2148
|
let t0_value = /*name*/ ctx[82] + "";
|
|
@@ -2188,7 +2188,7 @@ function create_each_block_5(ctx) {
|
|
|
2188
2188
|
};
|
|
2189
2189
|
}
|
|
2190
2190
|
|
|
2191
|
-
// (
|
|
2191
|
+
// (428:8) {#each getRuleNames(allRules[selectedElemIndex]) as ruleName, ruleIndex}
|
|
2192
2192
|
function create_each_block_4(ctx) {
|
|
2193
2193
|
let span;
|
|
2194
2194
|
let t_value = /*ruleName*/ ctx[78] + "";
|
|
@@ -2237,7 +2237,7 @@ function create_each_block_4(ctx) {
|
|
|
2237
2237
|
};
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
-
// (
|
|
2240
|
+
// (439:12) {#if type !== 'custom' || (currentRule === 'inline' && type === 'custom' && hasDisplayedCustom )}
|
|
2241
2241
|
function create_if_block_8(ctx) {
|
|
2242
2242
|
let span;
|
|
2243
2243
|
let t0_value = /*type*/ ctx[75] + "";
|
|
@@ -2283,7 +2283,7 @@ function create_if_block_8(ctx) {
|
|
|
2283
2283
|
};
|
|
2284
2284
|
}
|
|
2285
2285
|
|
|
2286
|
-
// (
|
|
2286
|
+
// (437:8) {#each allTypes[selectedElemIndex] || [] as type, typeIndex}
|
|
2287
2287
|
function create_each_block_3(ctx) {
|
|
2288
2288
|
let if_block_anchor;
|
|
2289
2289
|
let if_block = (/*type*/ ctx[75] !== 'custom' || /*currentRule*/ ctx[17] === 'inline' && /*type*/ ctx[75] === 'custom' && /*hasDisplayedCustom*/ ctx[16]) && create_if_block_8(ctx);
|
|
@@ -2318,7 +2318,7 @@ function create_each_block_3(ctx) {
|
|
|
2318
2318
|
};
|
|
2319
2319
|
}
|
|
2320
2320
|
|
|
2321
|
-
// (
|
|
2321
|
+
// (444:4) {#if allTypes[selectedElemIndex]}
|
|
2322
2322
|
function create_if_block(ctx) {
|
|
2323
2323
|
let div;
|
|
2324
2324
|
let t0;
|
|
@@ -2449,7 +2449,7 @@ function create_if_block(ctx) {
|
|
|
2449
2449
|
};
|
|
2450
2450
|
}
|
|
2451
2451
|
|
|
2452
|
-
// (
|
|
2452
|
+
// (455:16) {:else}
|
|
2453
2453
|
function create_else_block(ctx) {
|
|
2454
2454
|
let span;
|
|
2455
2455
|
let t_value = /*selectedName*/ ctx[66] + "";
|
|
@@ -2473,7 +2473,7 @@ function create_else_block(ctx) {
|
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
|
|
2476
|
-
// (
|
|
2476
|
+
// (449:16) {#if choices.props.length > 1}
|
|
2477
2477
|
function create_if_block_7(ctx) {
|
|
2478
2478
|
let div;
|
|
2479
2479
|
let select;
|
|
@@ -2547,7 +2547,7 @@ function create_if_block_7(ctx) {
|
|
|
2547
2547
|
};
|
|
2548
2548
|
}
|
|
2549
2549
|
|
|
2550
|
-
// (
|
|
2550
|
+
// (451:24) {#each choices.props as propName, i}
|
|
2551
2551
|
function create_each_block_2(ctx) {
|
|
2552
2552
|
let option;
|
|
2553
2553
|
let t0_value = /*propName*/ ctx[72] + "";
|
|
@@ -2582,7 +2582,7 @@ function create_each_block_2(ctx) {
|
|
|
2582
2582
|
};
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
|
-
// (
|
|
2585
|
+
// (478:50)
|
|
2586
2586
|
function create_if_block_6(ctx) {
|
|
2587
2587
|
let colorpicker;
|
|
2588
2588
|
let current;
|
|
@@ -2628,7 +2628,7 @@ function create_if_block_6(ctx) {
|
|
|
2628
2628
|
};
|
|
2629
2629
|
}
|
|
2630
2630
|
|
|
2631
|
-
// (
|
|
2631
|
+
// (468:51)
|
|
2632
2632
|
function create_if_block_4(ctx) {
|
|
2633
2633
|
let select;
|
|
2634
2634
|
let show_if = !/*choices*/ ctx[65].includes(/*allCurrentPropDefs*/ ctx[14][/*selectedName*/ ctx[66]].value);
|
|
@@ -2721,7 +2721,7 @@ function create_if_block_4(ctx) {
|
|
|
2721
2721
|
};
|
|
2722
2722
|
}
|
|
2723
2723
|
|
|
2724
|
-
// (
|
|
2724
|
+
// (459:16) {#if choices.type === 'slider'}
|
|
2725
2725
|
function create_if_block_3(ctx) {
|
|
2726
2726
|
let input;
|
|
2727
2727
|
let input_min_value;
|
|
@@ -2796,7 +2796,7 @@ function create_if_block_3(ctx) {
|
|
|
2796
2796
|
};
|
|
2797
2797
|
}
|
|
2798
2798
|
|
|
2799
|
-
// (
|
|
2799
|
+
// (471:24) {#if !choices.includes(allCurrentPropDefs[selectedName].value)}
|
|
2800
2800
|
function create_if_block_5(ctx) {
|
|
2801
2801
|
let option;
|
|
2802
2802
|
|
|
@@ -2817,7 +2817,7 @@ function create_if_block_5(ctx) {
|
|
|
2817
2817
|
};
|
|
2818
2818
|
}
|
|
2819
2819
|
|
|
2820
|
-
// (
|
|
2820
|
+
// (474:24) {#each choices as choice}
|
|
2821
2821
|
function create_each_block_1(ctx) {
|
|
2822
2822
|
let option;
|
|
2823
2823
|
let t_value = /*choice*/ ctx[69] + "";
|
|
@@ -2855,7 +2855,7 @@ function create_each_block_1(ctx) {
|
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
2857
|
|
|
2858
|
-
// (
|
|
2858
|
+
// (446:8) {#each propsByType as choices}
|
|
2859
2859
|
function create_each_block(ctx) {
|
|
2860
2860
|
let div;
|
|
2861
2861
|
let t0;
|
|
@@ -3001,7 +3001,7 @@ function create_each_block(ctx) {
|
|
|
3001
3001
|
};
|
|
3002
3002
|
}
|
|
3003
3003
|
|
|
3004
|
-
// (
|
|
3004
|
+
// (486:8) {#if currentRule === 'inline' && bringableToFront[selectedElemIndex] !== null}
|
|
3005
3005
|
function create_if_block_2(ctx) {
|
|
3006
3006
|
let div;
|
|
3007
3007
|
let mounted;
|
|
@@ -3035,7 +3035,7 @@ function create_if_block_2(ctx) {
|
|
|
3035
3035
|
};
|
|
3036
3036
|
}
|
|
3037
3037
|
|
|
3038
|
-
// (
|
|
3038
|
+
// (491:8) {#if currentRule === 'inline' && inlineDeletable(currentElement)}
|
|
3039
3039
|
function create_if_block_1(ctx) {
|
|
3040
3040
|
let div;
|
|
3041
3041
|
let mounted;
|
|
@@ -3634,7 +3634,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3634
3634
|
const elem = elemDef[0];
|
|
3635
3635
|
const types = [];
|
|
3636
3636
|
|
|
3637
|
-
if (elem.firstChild && elem.firstChild.nodeType === 3) {
|
|
3637
|
+
if (elem.firstChild && (elem.firstChild.nodeType === 3 || elem.firstChild.tagName === 'tspan')) {
|
|
3638
3638
|
// Node.TEXT_NODE
|
|
3639
3639
|
types.push(typeText);
|
|
3640
3640
|
}
|
|
@@ -3654,6 +3654,7 @@ function instance($$self, $$props, $$invalidate) {
|
|
|
3654
3654
|
types.push(typeBackground);
|
|
3655
3655
|
}
|
|
3656
3656
|
|
|
3657
|
+
console.log(types);
|
|
3657
3658
|
if (bringable) bringableToFront.push(true); else bringableToFront.push(null);
|
|
3658
3659
|
typesByElem.push(types);
|
|
3659
3660
|
return typesByElem;
|