@datocms/svelte 1.4.0 → 1.4.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.
@@ -8,41 +8,17 @@ $:
8
8
 
9
9
  {#if mark}
10
10
  {#if mark === 'emphasis'}
11
- <em>
12
- <svelte:self node={{ type, value, marks: otherMarks }}>
13
- <slot />
14
- </svelte:self>
15
- </em>
11
+ <em><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></em>
16
12
  {:else if mark === 'highlight'}
17
- <mark>
18
- <svelte:self node={{ type, value, marks: otherMarks }}>
19
- <slot />
20
- </svelte:self>
21
- </mark>
13
+ <mark><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></mark>
22
14
  {:else if mark === 'strikethrough'}
23
- <del>
24
- <svelte:self node={{ type, value, marks: otherMarks }}>
25
- <slot />
26
- </svelte:self>
27
- </del>
15
+ <del><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></del>
28
16
  {:else if mark === 'strong'}
29
- <strong>
30
- <svelte:self node={{ type, value, marks: otherMarks }}>
31
- <slot />
32
- </svelte:self>
33
- </strong>
17
+ <strong><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></strong>
34
18
  {:else if mark === 'underline'}
35
- <u>
36
- <svelte:self node={{ type, value, marks: otherMarks }}>
37
- <slot />
38
- </svelte:self>
39
- </u>
19
+ <u><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></u>
40
20
  {:else if mark === 'code'}
41
- <pre>
42
- <svelte:self node={{ type, value, marks: otherMarks }}>
43
- <slot />
44
- </svelte:self>
45
- </pre>
21
+ <pre><svelte:self node={{ type, value, marks: otherMarks }}><slot /></svelte:self></pre>
46
22
  {/if}
47
23
  {:else}
48
24
  <Lines lines={node.value.split(/\n/)} />
@@ -3,9 +3,4 @@ $:
3
3
  [first, ...rest] = lines;
4
4
  </script>
5
5
 
6
- {first}
7
-
8
- {#if rest.length > 0}
9
- <br />
10
- <svelte:self lines={rest} />
11
- {/if}
6
+ {first}{#if rest.length > 0}<br /><svelte:self lines={rest} />{/if}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datocms/svelte",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "A set of components and utilities to work faster with DatoCMS in Svelte",
5
5
  "license": "MIT",
6
6
  "repository": {