@datocms/svelte 1.4.0 → 1.4.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.
|
@@ -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/)} />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datocms/svelte",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "A set of components and utilities to work faster with DatoCMS in Svelte",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,11 @@
|
|
|
28
28
|
"@mux/mux-player": "*",
|
|
29
29
|
"svelte": "^3.59.2 || ^4.0.0"
|
|
30
30
|
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"@mux/mux-player": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
31
36
|
"devDependencies": {
|
|
32
37
|
"@mux/mux-player": "*",
|
|
33
38
|
"@mux/playback-core": "^0.22.1",
|