@samizdata/mozaic 0.13.0 → 0.14.0
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/frame/Source.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@component
|
|
3
3
|
"Source: …", with the label in the chart's language. Pass `sources` as text or as a list of
|
|
4
4
|
sources with optional links (`[{ label: 'ANRE', href: 'https://anre.md/…' }, …]`, joined with
|
|
5
|
-
"
|
|
5
|
+
", "), or write the text as children. The label turns plural for more than one listed source,
|
|
6
6
|
or set `plural`. Links open in a new tab; in print they are plain text.
|
|
7
7
|
-->
|
|
8
8
|
<script lang="ts">
|
|
@@ -28,7 +28,7 @@ or set `plural`. Links open in a new tab; in print they are plain text.
|
|
|
28
28
|
|
|
29
29
|
<p class="mz-source">
|
|
30
30
|
<span class="mz-label">{many ? chart.locale.strings.sources : chart.locale.strings.source}:</span>
|
|
31
|
-
{#each items as item, i (i)}{i > 0 ? '
|
|
31
|
+
{#each items as item, i (i)}{i > 0 ? ', ' : ''}{#if item.href && linked}<a
|
|
32
32
|
href={item.href}
|
|
33
33
|
target="_blank"
|
|
34
34
|
rel="noopener">{item.label}</a
|
|
@@ -10,7 +10,7 @@ interface Props {
|
|
|
10
10
|
/**
|
|
11
11
|
* "Source: …", with the label in the chart's language. Pass `sources` as text or as a list of
|
|
12
12
|
* sources with optional links (`[{ label: 'ANRE', href: 'https://anre.md/…' }, …]`, joined with
|
|
13
|
-
* "
|
|
13
|
+
* ", "), or write the text as children. The label turns plural for more than one listed source,
|
|
14
14
|
* or set `plural`. Links open in a new tab; in print they are plain text.
|
|
15
15
|
*/
|
|
16
16
|
declare const Source: import("svelte").Component<Props, {}, "">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@samizdata/mozaic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Chart components for the web and print, built on Svelte 5 and d3, and the mozaic CLI (export embeds to SVG, PDF and PNG; eject recipes).",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"author": "Nicu Calcea",
|