@reuters-graphics/graphics-components 1.0.16 → 1.0.18

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.
@@ -0,0 +1,18 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /** Add an ID to target with SCSS. */ id?: string;
5
+ /** Add a class to target with SCSS. */ class?: string;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export type SponsorshipAdProps = typeof __propDef.props;
13
+ export type SponsorshipAdEvents = typeof __propDef.events;
14
+ export type SponsorshipAdSlots = typeof __propDef.slots;
15
+ /** `SponsorshipeAd` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SponsorshipAd--default) */
16
+ export default class SponsorshipAd extends SvelteComponentTyped<SponsorshipAdProps, SponsorshipAdEvents, SponsorshipAdSlots> {
17
+ }
18
+ export {};
@@ -1 +1,6 @@
1
- export declare const loadScript: (src: string, onload?: () => void) => void;
1
+ interface attributesInterface {
2
+ onload?: () => void;
3
+ async?: boolean;
4
+ }
5
+ export declare const loadScript: (src: string, attributes?: attributesInterface) => void;
6
+ export {};
@@ -8,12 +8,12 @@ declare const __propDef: {
8
8
  /**
9
9
  * Title of the note item
10
10
  */
11
- title: String;
11
+ title: string;
12
12
  /**
13
13
  * Contents of the note as a markdown string
14
14
  * @required
15
15
  */
16
- text: String;
16
+ text: string;
17
17
  }[];
18
18
  };
19
19
  events: {
@@ -0,0 +1,18 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /** A Markdown formatted string */ source?: string;
5
+ /** Parse markdown inline, i.e., without wrapping it in paragraph tags */ parseInline?: boolean;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {};
11
+ };
12
+ export type MarkdownProps = typeof __propDef.props;
13
+ export type MarkdownEvents = typeof __propDef.events;
14
+ export type MarkdownSlots = typeof __propDef.slots;
15
+ /** `Markdown` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Markdown--default) */
16
+ export default class Markdown extends SvelteComponentTyped<MarkdownProps, MarkdownEvents, MarkdownSlots> {
17
+ }
18
+ export {};
@@ -0,0 +1,24 @@
1
+ /// <reference types="svelte" />
2
+ /**
3
+ * Set to `false` in the browser to ensure Markdown content correctly updates
4
+ * when a SvelteKit app hyrates.
5
+ *
6
+ * @example
7
+ * ```javascript
8
+ * // +layout.js
9
+ * import { staticMarkdown } from '@reuters-graphics/graphics-components';
10
+ * import { building } from '$app/environment';
11
+ *
12
+ * export const load = async() => {
13
+ * // Set the store with the value of building.
14
+ * staticMarkdown.set(building);
15
+ *
16
+ * // Markdown using this content will correctly refresh when
17
+ * // a reader loads your page.
18
+ * const content = await fetchPageContent();
19
+ *
20
+ * return { content };
21
+ * }
22
+ * ```
23
+ */
24
+ export declare const staticMarkdown: import("svelte/store").Writable<boolean>;
@@ -2,7 +2,6 @@ export { default as cssVariables } from "./actions/cssVariables/index.js";
2
2
  export { default as resizeObserver } from "./actions/resizeObserver/index.js";
3
3
  export { default as Article } from "./components/Article/Article.svelte";
4
4
  export { default as AdScripts } from "./components/AdSlot/AdScripts.svelte";
5
- export { default as InlineAd } from "./components/AdSlot/InlineAd.svelte";
6
5
  export { default as BeforeAfter } from "./components/BeforeAfter/BeforeAfter.svelte";
7
6
  export { default as Block } from "./components/Block/Block.svelte";
8
7
  export { default as BodyText } from "./components/BodyText/BodyText.svelte";
@@ -17,11 +16,14 @@ export { default as Headline } from "./components/Headline/Headline.svelte";
17
16
  export { default as HeroHeadline } from "./components/HeroHeadline/Hero.svelte";
18
17
  export { default as EndNotes } from "./components/EndNotes/EndNotes.svelte";
19
18
  export { default as InfoBox } from "./components/InfoBox/InfoBox.svelte";
19
+ export { default as InlineAd } from "./components/AdSlot/InlineAd.svelte";
20
+ export { default as Markdown } from "./components/Markdown/Markdown.svelte";
20
21
  export { default as PaddingReset } from "./components/PaddingReset/PaddingReset.svelte";
21
22
  export { default as PhotoCarousel } from "./components/PhotoCarousel/PhotoCarousel.svelte";
22
23
  export { default as PhotoPack } from "./components/PhotoPack/PhotoPack.svelte";
23
24
  export { default as PymChild } from "./components/PymChild/PymChild.svelte";
24
25
  export { pymChildStore } from "./components/PymChild/stores.js";
26
+ export { staticMarkdown } from "./components/Markdown/stores.js";
25
27
  export { default as ReferralBlock } from "./components/ReferralBlock/ReferralBlock.svelte";
26
28
  export { default as ReutersGraphicsLogo } from "./components/ReutersGraphicsLogo/ReutersGraphicsLogo.svelte";
27
29
  export { default as ReutersLogo } from "./components/ReutersLogo/ReutersLogo.svelte";
@@ -33,6 +35,7 @@ export { default as SiteFooter } from "./components/SiteFooter/SiteFooter.svelte
33
35
  export { default as SiteHeader } from "./components/SiteHeader/SiteHeader.svelte";
34
36
  export { default as SiteHeadline } from "./components/SiteHeadline/SiteHeadline.svelte";
35
37
  export { default as Spinner } from "./components/Spinner/Spinner.svelte";
38
+ export { default as SponsorshipAd } from "./components/AdSlot/SponsorshipAd.svelte";
36
39
  export { default as Table } from "./components/Table/Table.svelte";
37
40
  export { default as ToolsHeader } from "./components/ToolsHeader/ToolsHeader.svelte";
38
41
  export { default as Video } from "./components/Video/Video.svelte";
@@ -8,8 +8,10 @@
8
8
  window.graphicsAdQueue = window.graphicsAdQueue || [];
9
9
  loadScript(
10
10
  'https://graphics.thomsonreuters.com/cdn/js/bootstrap.static.js',
11
- loadBootstrap
11
+ { onload: loadBootstrap, async: false }
12
12
  );
13
+ // Load Freestar script
14
+ loadScript('https://a.pub.network/reuters-com/pubfig.min.js');
13
15
  });
14
16
  </script>
15
17
 
@@ -0,0 +1,68 @@
1
+ <script>import Block from '../Block/Block.svelte';
2
+ import ResponsiveAd from './ResponsiveAd.svelte';
3
+ /** Add an ID to target with SCSS. */
4
+ export let id = '';
5
+ /** Add a class to target with SCSS. */
6
+ let cls = 'my-12';
7
+ export { cls as class };
8
+ const desktopPlacementName = 'reuters_sponsorlogo';
9
+ </script>
10
+
11
+ <!-- @component `SponsorshipeAd` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SponsorshipAd--default) -->
12
+ <Block id="{id}" class="freestar-adslot {cls}">
13
+ <div class="ad-block">
14
+ <div class="ad-label">
15
+ <div>Today's Sponsor</div>
16
+ </div>
17
+ <div class="ad-container">
18
+ <div class="ad-slot__inner">
19
+ <div>
20
+ <ResponsiveAd desktopPlacementName="{desktopPlacementName}" />
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+ </Block>
26
+
27
+ <style>div.ad-block {
28
+ display: flex;
29
+ justify-content: center;
30
+ flex-direction: column;
31
+ align-items: center;
32
+ gap: 10px;
33
+ }
34
+ div.ad-block div.ad-label {
35
+ font-family: Knowledge, "Source Sans Pro", Arial, Helvetica, sans-serif;
36
+ font-size: 12px;
37
+ margin: 0;
38
+ line-height: 1.333;
39
+ color: var(--theme-colour-text-secondary);
40
+ text-align: right;
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ justify-items: center;
45
+ }
46
+ div.ad-block div.ad-container {
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: center;
50
+ align-items: center;
51
+ width: 195px;
52
+ min-height: 24px;
53
+ }
54
+ div.ad-block div.ad-container div.ad-slot__inner {
55
+ margin: auto 0;
56
+ width: 100%;
57
+ max-width: 100%;
58
+ flex: unset;
59
+ }
60
+ div.ad-block div.ad-container div.ad-slot__inner > div {
61
+ display: block;
62
+ }
63
+ div.ad-block div.ad-container div.ad-slot__inner > div :global(div[data-freestar-ad]) {
64
+ display: flex;
65
+ flex-direction: column;
66
+ justify-content: center;
67
+ align-items: center;
68
+ }</style>
@@ -1,6 +1,5 @@
1
1
  import getParameterByName from './getParameterByName';
2
2
  import Ias from './ias';
3
- import { loadScript } from './loadScript';
4
3
  const ONETRUST_LOGS = 'ot_logs';
5
4
  const ONETRUST_GEOLOCATION_MOCK = 'ot_geolocation_mock';
6
5
  const ONETRUST_SCRIPT_ID = '38cb75bd-fbe1-4ac8-b4af-e531ab368caf-test';
@@ -32,8 +31,6 @@ export const loadBootstrap = () => {
32
31
  });
33
32
  });
34
33
  window.bootstrap.getResults((result) => {
35
- // Load Freestar script
36
- loadScript('https://a.pub.network/reuters-com/pubfig.min.js');
37
34
  // Set GAM
38
35
  window.googletag = window.googletag || { cmd: [] };
39
36
  window.googletag.cmd.push(() => {
@@ -1,6 +1,8 @@
1
- export const loadScript = (src, onload) => {
1
+ export const loadScript = (src, attributes) => {
2
+ const { onload, async = true } = attributes || {};
2
3
  const script = document.createElement('script');
3
4
  script.addEventListener('load', onload);
5
+ script.async = async;
4
6
  script.src = src;
5
7
  document.head.append(script);
6
8
  };
@@ -1,5 +1,6 @@
1
1
  <!-- @component `BodyText` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-bodytext--default) -->
2
- <script>/**
2
+ <script>import Markdown from '../Markdown/Markdown.svelte';
3
+ /**
3
4
  * A markdown text string.
4
5
  * @type {string}
5
6
  * @required
@@ -10,12 +11,9 @@ let cls = '';
10
11
  export { cls as class };
11
12
  /** Add an id to the block tag to target it with custom CSS. */
12
13
  export let id = '';
13
- import { marked } from 'marked';
14
14
  import Block from '../Block/Block.svelte';
15
15
  </script>
16
16
 
17
17
  <Block id="{id}" class="fmy-6 {cls}">
18
- {#if text}
19
- {@html marked.parse(text)}
20
- {/if}
18
+ <Markdown source="{text}" />
21
19
  </Block>
@@ -4,15 +4,19 @@
4
4
  * @required
5
5
  */
6
6
  export let notes = [];
7
- import { marked } from 'marked';
8
7
  import Block from '../Block/Block.svelte';
8
+ import Markdown from '../Markdown/Markdown.svelte';
9
9
  </script>
10
10
 
11
11
  <Block class="notes fmt-6 fmb-8">
12
12
  {#if notes}
13
13
  {#each notes as note}
14
- <div class="note-title">{@html marked.parse(note.title)}</div>
15
- <div class="note-content">{@html marked.parse(note.text)}</div>
14
+ <div class="note-title">
15
+ <Markdown source="{note.title}" />
16
+ </div>
17
+ <div class="note-content">
18
+ <Markdown source="{note.text}" />
19
+ </div>
16
20
  {/each}
17
21
  {/if}
18
22
  </Block>
@@ -58,7 +58,7 @@ import AriaHidden from './AriaHidden.svelte';
58
58
  import TextBlock from './TextBlock.svelte';
59
59
  import Block from '../Block/Block.svelte';
60
60
  import PaddingReset from '../PaddingReset/PaddingReset.svelte';
61
- import { marked } from 'marked';
61
+ import Markdown from '../Markdown/Markdown.svelte';
62
62
  </script>
63
63
 
64
64
  <Block
@@ -81,7 +81,7 @@ import { marked } from 'marked';
81
81
  <TextBlock width="{textWidth}">
82
82
  <h3>{title}</h3>
83
83
  {#if description}
84
- {@html marked(description)}
84
+ <Markdown source="{description}" />
85
85
  {/if}
86
86
  </TextBlock>
87
87
  </PaddingReset>
@@ -96,7 +96,7 @@ import { marked } from 'marked';
96
96
  <!-- Custom ARIA markup -->
97
97
  <slot name="aria" />
98
98
  {:else}
99
- {@html marked(ariaDescription)}
99
+ <Markdown source="{ariaDescription}" />
100
100
  {/if}
101
101
  </div>
102
102
  {/if}
@@ -111,7 +111,7 @@ import { marked } from 'marked';
111
111
  <PaddingReset containerIsFluid="{width === 'fluid'}">
112
112
  <TextBlock width="{textWidth}">
113
113
  <aside>
114
- {@html marked(notes)}
114
+ <Markdown source="{notes}" />
115
115
  </aside>
116
116
  </TextBlock>
117
117
  </PaddingReset>
@@ -42,7 +42,7 @@ export let updateTime = '';
42
42
  export let width = 'normal';
43
43
  import Block from '../Block/Block.svelte';
44
44
  import Byline from '../Byline/Byline.svelte';
45
- import { marked } from 'marked';
45
+ import Markdown from '../Markdown/Markdown.svelte';
46
46
  let hedClass;
47
47
  $: {
48
48
  switch (hedSize) {
@@ -85,7 +85,9 @@ $: {
85
85
  <!-- Headline named slot -->
86
86
  <slot name="hed" />
87
87
  {:else}
88
- <h1 class="{hedClass}">{@html marked.parseInline(hed)}</h1>
88
+ <h1 class="{hedClass}">
89
+ <Markdown source="{hed}" parseInline />
90
+ </h1>
89
91
  {/if}
90
92
  {#if $$slots.dek}
91
93
  <!-- Dek named slot-->
@@ -94,7 +96,7 @@ $: {
94
96
  </div>
95
97
  {:else if dek}
96
98
  <div class="dek fmx-auto fmb-6">
97
- {@html marked(dek)}
99
+ <Markdown source="{dek}" />
98
100
  </div>
99
101
  {/if}
100
102
  </div>
@@ -31,7 +31,7 @@ export let id = '';
31
31
  */
32
32
  export let theme = 'light';
33
33
  import Block from '../Block/Block.svelte';
34
- import { marked } from 'marked';
34
+ import Markdown from '../Markdown/Markdown.svelte';
35
35
  </script>
36
36
 
37
37
  <aside class="infobox {theme}">
@@ -46,7 +46,9 @@ import { marked } from 'marked';
46
46
  <slot name="header" />
47
47
  </div>
48
48
  {:else if title}
49
- <div class="header fmb-2">{@html marked(title)}</div>
49
+ <div class="header fmb-2">
50
+ <Markdown source="{title}" />
51
+ </div>
50
52
  {/if}
51
53
 
52
54
  {#if $$slots.body}
@@ -55,7 +57,9 @@ import { marked } from 'marked';
55
57
  <slot name="body" />
56
58
  </div>
57
59
  {:else}
58
- <div class="body">{@html marked(text)}</div>
60
+ <div class="body">
61
+ <Markdown source="{text}" />
62
+ </div>
59
63
  {/if}
60
64
 
61
65
  {#if $$slots.footer}
@@ -64,7 +68,9 @@ import { marked } from 'marked';
64
68
  <slot name="footer" />
65
69
  </div>
66
70
  {:else if notes}
67
- <div class="footer fmt-2">{@html marked(notes)}</div>
71
+ <div class="footer fmt-2">
72
+ <Markdown source="{notes}" />
73
+ </div>
68
74
  {/if}
69
75
  </Block>
70
76
  </aside>
@@ -0,0 +1,35 @@
1
+ <!-- @component `Markdown` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Markdown--default) -->
2
+ <script>import { marked } from 'marked';
3
+ import { staticMarkdown } from './stores';
4
+ /** A Markdown formatted string */
5
+ export let source = '';
6
+ /** Parse markdown inline, i.e., without wrapping it in paragraph tags */
7
+ export let parseInline = false;
8
+ $: markdown = parseInline ? marked.parseInline(source) : marked.parse(source);
9
+ const setInnerHTML = (node, html) => {
10
+ node.innerHTML = html;
11
+ return {
12
+ update(html) {
13
+ node.innerHTML = html;
14
+ },
15
+ destroy() {
16
+ node.innerHTML = '';
17
+ },
18
+ };
19
+ };
20
+ </script>
21
+
22
+ {#if source}
23
+ {#if $staticMarkdown}
24
+ <div>
25
+ {@html markdown}
26
+ </div>
27
+ {:else}
28
+ <div use:setInnerHTML="{markdown}"></div>
29
+ {/if}
30
+ {/if}
31
+
32
+ <style>
33
+ div {
34
+ display: contents;
35
+ }</style>
@@ -0,0 +1,25 @@
1
+ import { writable } from 'svelte/store';
2
+ /**
3
+ * Set to `false` in the browser to ensure Markdown content correctly updates
4
+ * when a SvelteKit app hyrates.
5
+ *
6
+ * @example
7
+ * ```javascript
8
+ * // +layout.js
9
+ * import { staticMarkdown } from '@reuters-graphics/graphics-components';
10
+ * import { building } from '$app/environment';
11
+ *
12
+ * export const load = async() => {
13
+ * // Set the store with the value of building.
14
+ * staticMarkdown.set(building);
15
+ *
16
+ * // Markdown using this content will correctly refresh when
17
+ * // a reader loads your page.
18
+ * const content = await fetchPageContent();
19
+ *
20
+ * return { content };
21
+ * }
22
+ * ```
23
+ */
24
+ export const staticMarkdown = writable(true);
25
+ //# sourceMappingURL=stores.js.map
@@ -39,7 +39,7 @@ export let width = 'normal';
39
39
  export let textWidth = 'normal';
40
40
  import Block from '../Block/Block.svelte';
41
41
  import PaddingReset from '../PaddingReset/PaddingReset.svelte';
42
- import { marked } from 'marked';
42
+ import Markdown from '../Markdown/Markdown.svelte';
43
43
  let containerWidth;
44
44
  const groupRows = (images, layout) => {
45
45
  // Default layout, one img per row
@@ -102,7 +102,7 @@ $: rows = groupRows(images, layout);
102
102
  {#each row as img, i}
103
103
  {#if img.caption}
104
104
  <div id="{id}-figure-{ri}-{i}" class="caption">
105
- {@html marked(img.caption)}
105
+ <Markdown source="{img.caption}" />
106
106
  </div>
107
107
  {/if}
108
108
  {/each}
@@ -1,7 +1,7 @@
1
1
  <script>export let step;
2
2
  export let index;
3
- import { marked } from 'marked';
4
3
  import Block from '../../Block/Block.svelte';
4
+ import Markdown from '../../Markdown/Markdown.svelte';
5
5
  </script>
6
6
 
7
7
  {#if step.foreground === '' || !step.foreground}
@@ -10,18 +10,18 @@ import Block from '../../Block/Block.svelte';
10
10
 
11
11
  {#if typeof step.altText === 'string'}
12
12
  <div class="background-alt-text visually-hidden">
13
- {@html marked.parse(step.altText)}
13
+ <Markdown source="{step.altText}" />
14
14
  </div>
15
15
  {/if}
16
16
  {:else if typeof step.foreground === 'string'}
17
17
  <Block class="body-text step-{index + 1}">
18
18
  <div class="embedded-foreground step-{index + 1}">
19
- {@html marked.parse(step.foreground)}
19
+ <Markdown source="{step.foreground}" />
20
20
  </div>
21
21
 
22
22
  {#if typeof step.altText === 'string'}
23
23
  <div class="background-alt-text visually-hidden">
24
- {@html marked.parse(step.altText)}
24
+ <Markdown source="{step.altText}" />
25
25
  </div>
26
26
  {/if}
27
27
  </Block>
@@ -1,5 +1,5 @@
1
1
  <script>export let steps = [];
2
- import { marked } from 'marked';
2
+ import Markdown from '../Markdown/Markdown.svelte';
3
3
  </script>
4
4
 
5
5
  {#each steps as step, i}
@@ -12,13 +12,13 @@ import { marked } from 'marked';
12
12
  <div class="empty-step-foreground"></div>
13
13
  {#if typeof step.altText === 'string'}
14
14
  <div class="background-alt-text visually-hidden">
15
- {@html marked.parse(step.altText)}
15
+ <Markdown source="{step.altText}" />
16
16
  </div>
17
17
  {/if}
18
18
  {:else}
19
19
  <div class="step-foreground w-full">
20
20
  {#if typeof step.foreground === 'string'}
21
- {@html marked.parse(step.foreground)}
21
+ <Markdown source="{step.foreground}" />
22
22
  {:else}
23
23
  <svelte:component
24
24
  this="{step.foreground}"
@@ -28,7 +28,7 @@ import { marked } from 'marked';
28
28
  </div>
29
29
  {#if typeof step.altText === 'string'}
30
30
  <div class="background-alt-text visually-hidden">
31
- {@html marked.parse(step.altText)}
31
+ <Markdown source="{step.altText}" />
32
32
  </div>
33
33
  {/if}
34
34
  {/if}
@@ -28,7 +28,7 @@ export let id = '';
28
28
  import Block from '../Block/Block.svelte';
29
29
  import Fa from 'svelte-fa/src/fa.svelte';
30
30
  import { faLink } from '@fortawesome/free-solid-svg-icons';
31
- import { marked } from 'marked';
31
+ import Markdown from '../Markdown/Markdown.svelte';
32
32
  </script>
33
33
 
34
34
  <Block width="normal" id="{id}" class="simple-timeline-container fmy-6 {cls}">
@@ -65,7 +65,7 @@ import { marked } from 'marked';
65
65
  </div>
66
66
  {/if}
67
67
  {#if event.context}
68
- {@html marked(event.context)}
68
+ <Markdown source="{event.context}" />
69
69
  {/if}
70
70
  </div>
71
71
  {/each}
package/dist/index.js CHANGED
@@ -9,7 +9,6 @@ export {
9
9
  } from './components/Analytics/Analytics.svelte';
10
10
  export { default as Article } from './components/Article/Article.svelte';
11
11
  export { default as AdScripts } from './components/AdSlot/AdScripts.svelte';
12
- export { default as InlineAd } from './components/AdSlot/InlineAd.svelte';
13
12
  export { default as BeforeAfter } from './components/BeforeAfter/BeforeAfter.svelte';
14
13
  export { default as Block } from './components/Block/Block.svelte';
15
14
  export { default as BodyText } from './components/BodyText/BodyText.svelte';
@@ -24,11 +23,14 @@ export { default as Headline } from './components/Headline/Headline.svelte';
24
23
  export { default as HeroHeadline } from './components/HeroHeadline/Hero.svelte';
25
24
  export { default as EndNotes } from './components/EndNotes/EndNotes.svelte';
26
25
  export { default as InfoBox } from './components/InfoBox/InfoBox.svelte';
26
+ export { default as InlineAd } from './components/AdSlot/InlineAd.svelte';
27
+ export { default as Markdown } from './components/Markdown/Markdown.svelte';
27
28
  export { default as PaddingReset } from './components/PaddingReset/PaddingReset.svelte';
28
29
  export { default as PhotoCarousel } from './components/PhotoCarousel/PhotoCarousel.svelte';
29
30
  export { default as PhotoPack } from './components/PhotoPack/PhotoPack.svelte';
30
31
  export { default as PymChild } from './components/PymChild/PymChild.svelte';
31
32
  export { pymChildStore } from './components/PymChild/stores.js';
33
+ export { staticMarkdown } from './components/Markdown/stores.js';
32
34
  export { default as ReferralBlock } from './components/ReferralBlock/ReferralBlock.svelte';
33
35
  export { default as ReutersGraphicsLogo } from './components/ReutersGraphicsLogo/ReutersGraphicsLogo.svelte';
34
36
  export { default as ReutersLogo } from './components/ReutersLogo/ReutersLogo.svelte';
@@ -40,6 +42,7 @@ export { default as SiteFooter } from './components/SiteFooter/SiteFooter.svelte
40
42
  export { default as SiteHeader } from './components/SiteHeader/SiteHeader.svelte';
41
43
  export { default as SiteHeadline } from './components/SiteHeadline/SiteHeadline.svelte';
42
44
  export { default as Spinner } from './components/Spinner/Spinner.svelte';
45
+ export { default as SponsorshipAd } from './components/AdSlot/SponsorshipAd.svelte';
43
46
  export { default as Table } from './components/Table/Table.svelte';
44
47
  export {
45
48
  default as Theme,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",
@@ -140,6 +140,7 @@
140
140
  "./components/AdSlot/InlineAd.svelte": "./dist/components/AdSlot/InlineAd.svelte",
141
141
  "./components/AdSlot/OneTrust.svelte": "./dist/components/AdSlot/OneTrust.svelte",
142
142
  "./components/AdSlot/ResponsiveAd.svelte": "./dist/components/AdSlot/ResponsiveAd.svelte",
143
+ "./components/AdSlot/SponsorshipAd.svelte": "./dist/components/AdSlot/SponsorshipAd.svelte",
143
144
  "./components/AdSlot/adScripts/bootstrap.ts": "./dist/components/AdSlot/adScripts/bootstrap.ts",
144
145
  "./components/AdSlot/adScripts/getParameterByName.ts": "./dist/components/AdSlot/adScripts/getParameterByName.ts",
145
146
  "./components/AdSlot/adScripts/ias.ts": "./dist/components/AdSlot/adScripts/ias.ts",
@@ -172,6 +173,8 @@
172
173
  "./components/Headline/Headline.svelte": "./dist/components/Headline/Headline.svelte",
173
174
  "./components/HeroHeadline/Hero.svelte": "./dist/components/HeroHeadline/Hero.svelte",
174
175
  "./components/InfoBox/InfoBox.svelte": "./dist/components/InfoBox/InfoBox.svelte",
176
+ "./components/Markdown/Markdown.svelte": "./dist/components/Markdown/Markdown.svelte",
177
+ "./components/Markdown/stores.ts": "./dist/components/Markdown/stores.ts",
175
178
  "./components/PaddingReset/PaddingReset.svelte": "./dist/components/PaddingReset/PaddingReset.svelte",
176
179
  "./components/PhotoCarousel/PhotoCarousel.svelte": "./dist/components/PhotoCarousel/PhotoCarousel.svelte",
177
180
  "./components/PhotoPack/PhotoPack.svelte": "./dist/components/PhotoPack/PhotoPack.svelte",