@reuters-graphics/graphics-components 0.0.1 → 0.0.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.
Files changed (41) hide show
  1. package/dist/@types/components/Article/Article.svelte.d.ts +1 -5
  2. package/dist/@types/components/BeforeAfter/BeforeAfter.svelte.d.ts +1 -0
  3. package/dist/@types/components/Block/Block.svelte.d.ts +1 -0
  4. package/dist/@types/components/BodyText/BodyText.svelte.d.ts +1 -0
  5. package/dist/@types/components/DatawrapperChart/DatawrapperChart.svelte.d.ts +1 -0
  6. package/dist/@types/components/FeaturePhoto/FeaturePhoto.svelte.d.ts +1 -0
  7. package/dist/@types/components/GraphicBlock/GraphicBlock.svelte.d.ts +1 -0
  8. package/dist/@types/components/Headline/Headline.svelte.d.ts +1 -0
  9. package/dist/@types/components/NoteText/NoteText.svelte.d.ts +1 -0
  10. package/dist/@types/components/PhotoPack/PhotoPack.svelte.d.ts +1 -0
  11. package/dist/@types/components/PymChild/PymChild.svelte.d.ts +1 -0
  12. package/dist/@types/components/ReutersLogo/ReutersLogo.svelte.d.ts +1 -0
  13. package/dist/@types/components/SEO/SEO.svelte.d.ts +1 -0
  14. package/dist/@types/components/Scroller/Scroller.svelte.d.ts +1 -0
  15. package/dist/@types/components/SiteFooter/SiteFooter.svelte.d.ts +1 -0
  16. package/dist/@types/components/SiteHeader/SiteHeader.svelte.d.ts +1 -0
  17. package/dist/@types/components/Spinner/Spinner.svelte.d.ts +1 -0
  18. package/dist/@types/components/Theme/Theme.svelte.d.ts +1 -0
  19. package/dist/@types/components/Video/Video.svelte.d.ts +1 -0
  20. package/dist/@types/components/Visible/Visible.svelte.d.ts +1 -0
  21. package/dist/components/Article/Article.svelte +1 -5
  22. package/dist/components/BeforeAfter/BeforeAfter.svelte +1 -0
  23. package/dist/components/Block/Block.svelte +1 -0
  24. package/dist/components/BodyText/BodyText.svelte +2 -1
  25. package/dist/components/DatawrapperChart/DatawrapperChart.svelte +1 -0
  26. package/dist/components/FeaturePhoto/FeaturePhoto.svelte +1 -0
  27. package/dist/components/GraphicBlock/GraphicBlock.svelte +1 -0
  28. package/dist/components/Headline/Headline.svelte +1 -0
  29. package/dist/components/NoteText/NoteText.svelte +1 -0
  30. package/dist/components/PhotoPack/PhotoPack.svelte +1 -0
  31. package/dist/components/PymChild/PymChild.svelte +2 -1
  32. package/dist/components/ReutersLogo/ReutersLogo.svelte +1 -0
  33. package/dist/components/SEO/SEO.svelte +1 -0
  34. package/dist/components/Scroller/Scroller.svelte +3 -2
  35. package/dist/components/SiteFooter/SiteFooter.svelte +1 -0
  36. package/dist/components/SiteHeader/SiteHeader.svelte +1 -0
  37. package/dist/components/Spinner/Spinner.svelte +2 -1
  38. package/dist/components/Theme/Theme.svelte +1 -0
  39. package/dist/components/Video/Video.svelte +1 -0
  40. package/dist/components/Visible/Visible.svelte +1 -0
  41. package/package.json +1 -1
@@ -27,11 +27,7 @@ declare const __propDef: {
27
27
  export declare type ArticleProps = typeof __propDef.props;
28
28
  export declare type ArticleEvents = typeof __propDef.events;
29
29
  export declare type ArticleSlots = typeof __propDef.slots;
30
- /**
31
- * The `Article` component contains all the content of our story and also establishes the dimensions of our article well, the default central trunk of our page layout.
32
- *
33
- * [Docs](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-article--default)
34
- */
30
+ /** `Article` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-article--default) */
35
31
  export default class Article extends SvelteComponentTyped<ArticleProps, ArticleEvents, ArticleSlots> {
36
32
  }
37
33
  export {};
@@ -52,6 +52,7 @@ declare const __propDef: {
52
52
  export declare type BeforeAfterProps = typeof __propDef.props;
53
53
  export declare type BeforeAfterEvents = typeof __propDef.events;
54
54
  export declare type BeforeAfterSlots = typeof __propDef.slots;
55
+ /** `BeforeAfter` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-beforeafter--default) */
55
56
  export default class BeforeAfter extends SvelteComponentTyped<BeforeAfterProps, BeforeAfterEvents, BeforeAfterSlots> {
56
57
  }
57
58
  export {};
@@ -19,6 +19,7 @@ declare const __propDef: {
19
19
  export declare type BlockProps = typeof __propDef.props;
20
20
  export declare type BlockEvents = typeof __propDef.events;
21
21
  export declare type BlockSlots = typeof __propDef.slots;
22
+ /** `Block` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-block--default) */
22
23
  export default class Block extends SvelteComponentTyped<BlockProps, BlockEvents, BlockSlots> {
23
24
  }
24
25
  export {};
@@ -15,6 +15,7 @@ declare const __propDef: {
15
15
  export declare type BodyTextProps = typeof __propDef.props;
16
16
  export declare type BodyTextEvents = typeof __propDef.events;
17
17
  export declare type BodyTextSlots = typeof __propDef.slots;
18
+ /** `BodyText` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-bodytext--default) */
18
19
  export default class BodyText extends SvelteComponentTyped<BodyTextProps, BodyTextEvents, BodyTextSlots> {
19
20
  }
20
21
  export {};
@@ -47,6 +47,7 @@ declare const __propDef: {
47
47
  export declare type DatawrapperChartProps = typeof __propDef.props;
48
48
  export declare type DatawrapperChartEvents = typeof __propDef.events;
49
49
  export declare type DatawrapperChartSlots = typeof __propDef.slots;
50
+ /** `DatawrapperChart` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-DatawrapperChart--default) */
50
51
  export default class DatawrapperChart extends SvelteComponentTyped<DatawrapperChartProps, DatawrapperChartEvents, DatawrapperChartSlots> {
51
52
  }
52
53
  export {};
@@ -38,6 +38,7 @@ declare const __propDef: {
38
38
  export declare type FeaturePhotoProps = typeof __propDef.props;
39
39
  export declare type FeaturePhotoEvents = typeof __propDef.events;
40
40
  export declare type FeaturePhotoSlots = typeof __propDef.slots;
41
+ /** `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-FeaturePhoto--default) */
41
42
  export default class FeaturePhoto extends SvelteComponentTyped<FeaturePhotoProps, FeaturePhotoEvents, FeaturePhotoSlots> {
42
43
  }
43
44
  export {};
@@ -59,6 +59,7 @@ declare const __propDef: {
59
59
  export declare type GraphicBlockProps = typeof __propDef.props;
60
60
  export declare type GraphicBlockEvents = typeof __propDef.events;
61
61
  export declare type GraphicBlockSlots = typeof __propDef.slots;
62
+ /** `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-GraphicBlock--default) */
62
63
  export default class GraphicBlock extends SvelteComponentTyped<GraphicBlockProps, GraphicBlockEvents, GraphicBlockSlots> {
63
64
  }
64
65
  export {};
@@ -24,6 +24,7 @@ declare const __propDef: {
24
24
  export declare type HeadlineProps = typeof __propDef.props;
25
25
  export declare type HeadlineEvents = typeof __propDef.events;
26
26
  export declare type HeadlineSlots = typeof __propDef.slots;
27
+ /** `Headline` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Headline--default) */
27
28
  export default class Headline extends SvelteComponentTyped<HeadlineProps, HeadlineEvents, HeadlineSlots> {
28
29
  }
29
30
  export {};
@@ -15,6 +15,7 @@ declare const __propDef: {
15
15
  export declare type NoteTextProps = typeof __propDef.props;
16
16
  export declare type NoteTextEvents = typeof __propDef.events;
17
17
  export declare type NoteTextSlots = typeof __propDef.slots;
18
+ /** `NoteText` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-NoteText--default) */
18
19
  export default class NoteText extends SvelteComponentTyped<NoteTextProps, NoteTextEvents, NoteTextSlots> {
19
20
  }
20
21
  export {};
@@ -45,6 +45,7 @@ declare const __propDef: {
45
45
  export declare type PhotoPackProps = typeof __propDef.props;
46
46
  export declare type PhotoPackEvents = typeof __propDef.events;
47
47
  export declare type PhotoPackSlots = typeof __propDef.slots;
48
+ /** `PhotoPack` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-PhotoPack--default) */
48
49
  export default class PhotoPack extends SvelteComponentTyped<PhotoPackProps, PhotoPackEvents, PhotoPackSlots> {
49
50
  }
50
51
  export {};
@@ -11,6 +11,7 @@ declare const __propDef: {
11
11
  export declare type PymChildProps = typeof __propDef.props;
12
12
  export declare type PymChildEvents = typeof __propDef.events;
13
13
  export declare type PymChildSlots = typeof __propDef.slots;
14
+ /** `PymChild` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/utilities-PymChild--default) */
14
15
  export default class PymChild extends SvelteComponentTyped<PymChildProps, PymChildEvents, PymChildSlots> {
15
16
  }
16
17
  export {};
@@ -13,6 +13,7 @@ declare const __propDef: {
13
13
  export declare type ReutersLogoProps = typeof __propDef.props;
14
14
  export declare type ReutersLogoEvents = typeof __propDef.events;
15
15
  export declare type ReutersLogoSlots = typeof __propDef.slots;
16
+ /** `ReutersLogo` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-ReutersLogo--default) */
16
17
  export default class ReutersLogo extends SvelteComponentTyped<ReutersLogoProps, ReutersLogoEvents, ReutersLogoSlots> {
17
18
  }
18
19
  export {};
@@ -67,6 +67,7 @@ declare const __propDef: {
67
67
  export declare type SeoProps = typeof __propDef.props;
68
68
  export declare type SeoEvents = typeof __propDef.events;
69
69
  export declare type SeoSlots = typeof __propDef.slots;
70
+ /** `SEO` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SEO--default) */
70
71
  export default class Seo extends SvelteComponentTyped<SeoProps, SeoEvents, SeoSlots> {
71
72
  }
72
73
  export {};
@@ -71,6 +71,7 @@ declare const __propDef: {
71
71
  export declare type ScrollerProps = typeof __propDef.props;
72
72
  export declare type ScrollerEvents = typeof __propDef.events;
73
73
  export declare type ScrollerSlots = typeof __propDef.slots;
74
+ /** `Scroller` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Scroller--default) */
74
75
  export default class Scroller extends SvelteComponentTyped<ScrollerProps, ScrollerEvents, ScrollerSlots> {
75
76
  }
76
77
  export {};
@@ -18,6 +18,7 @@ declare const __propDef: {
18
18
  export declare type SiteFooterProps = typeof __propDef.props;
19
19
  export declare type SiteFooterEvents = typeof __propDef.events;
20
20
  export declare type SiteFooterSlots = typeof __propDef.slots;
21
+ /** `SiteFooter` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SiteFooter--default) */
21
22
  export default class SiteFooter extends SvelteComponentTyped<SiteFooterProps, SiteFooterEvents, SiteFooterSlots> {
22
23
  }
23
24
  export {};
@@ -9,6 +9,7 @@ declare const __propDef: {
9
9
  export declare type SiteHeaderProps = typeof __propDef.props;
10
10
  export declare type SiteHeaderEvents = typeof __propDef.events;
11
11
  export declare type SiteHeaderSlots = typeof __propDef.slots;
12
+ /** `SiteHeader` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SiteHeader--default) */
12
13
  export default class SiteHeader extends SvelteComponentTyped<SiteHeaderProps, SiteHeaderEvents, SiteHeaderSlots> {
13
14
  }
14
15
  export {};
@@ -23,6 +23,7 @@ declare const __propDef: {
23
23
  export declare type SpinnerProps = typeof __propDef.props;
24
24
  export declare type SpinnerEvents = typeof __propDef.events;
25
25
  export declare type SpinnerSlots = typeof __propDef.slots;
26
+ /** `Spinner` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Spinner--default) */
26
27
  export default class Spinner extends SvelteComponentTyped<SpinnerProps, SpinnerEvents, SpinnerSlots> {
27
28
  }
28
29
  export {};
@@ -49,6 +49,7 @@ declare const __propDef: {
49
49
  export declare type ThemeProps = typeof __propDef.props;
50
50
  export declare type ThemeEvents = typeof __propDef.events;
51
51
  export declare type ThemeSlots = typeof __propDef.slots;
52
+ /** `Theme` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/theming-Theme--default) */
52
53
  export default class Theme extends SvelteComponentTyped<ThemeProps, ThemeEvents, ThemeSlots> {
53
54
  }
54
55
  export {};
@@ -41,6 +41,7 @@ declare const __propDef: {
41
41
  export declare type VideoProps = typeof __propDef.props;
42
42
  export declare type VideoEvents = typeof __propDef.events;
43
43
  export declare type VideoSlots = typeof __propDef.slots;
44
+ /** `Video` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Video--default) */
44
45
  export default class Video extends SvelteComponentTyped<VideoProps, VideoEvents, VideoSlots> {
45
46
  }
46
47
  export {};
@@ -24,6 +24,7 @@ declare const __propDef: {
24
24
  export declare type VisibleProps = typeof __propDef.props;
25
25
  export declare type VisibleEvents = typeof __propDef.events;
26
26
  export declare type VisibleSlots = typeof __propDef.slots;
27
+ /** `Visible` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Visible--default) */
27
28
  export default class Visible extends SvelteComponentTyped<VisibleProps, VisibleEvents, VisibleSlots> {
28
29
  }
29
30
  export {};
@@ -1,8 +1,4 @@
1
- <!--
2
- @component The `Article` component contains all the content of our story and also establishes the dimensions of our article well, the default central trunk of our page layout.
3
-
4
- [Docs](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-article--default)
5
- -->
1
+ <!-- @component `Article` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-article--default) -->
6
2
  <script>/** Set to true for embeddables. */
7
3
  export let embedded = false;
8
4
  /** Add an id to the article tag to target it with custom CSS. */
@@ -1,3 +1,4 @@
1
+ <!-- @component `BeforeAfter` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-beforeafter--default) -->
1
2
  <script>import { throttle } from 'lodash-es';
2
3
  import { onMount } from 'svelte';
3
4
  import Block from '../Block/Block.svelte';
@@ -1,3 +1,4 @@
1
+ <!-- @component `Block` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/layout-block--default) -->
1
2
  <script>/** Width of the block within the article well. */
2
3
  export let width = 'normal';
3
4
  /** Add an id to the block tag to target it with custom CSS. */
@@ -1,3 +1,4 @@
1
+ <!-- @component `BodyText` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-bodytext--default) -->
1
2
  <script>/**
2
3
  * A markdown text string.
3
4
  * @type {string}
@@ -190,4 +191,4 @@ import Block from '../Block/Block.svelte';
190
191
  }
191
192
  :global(div.article-block.body-text.font-sans) {
192
193
  font-family: var(--theme-font-family-sans-serif, var(--theme-font-family-sans-serif, "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif)) !important;
193
- }</style>
194
+ }</style>
@@ -1,3 +1,4 @@
1
+ <!-- @component `DatawrapperChart` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-DatawrapperChart--default) -->
1
2
  <script>import { onMount, onDestroy } from 'svelte';
2
3
  import GraphicBlock from '../GraphicBlock/GraphicBlock.svelte';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ <!-- @component `FeaturePhoto` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-FeaturePhoto--default) -->
1
2
  <script>import { onMount } from 'svelte';
2
3
  import Block from '../Block/Block.svelte';
3
4
  import PaddingReset from '../PaddingReset/PaddingReset.svelte';
@@ -1,3 +1,4 @@
1
+ <!-- @component `GraphicBlock` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-GraphicBlock--default) -->
1
2
  <script>/**
2
3
  * Width of the component within the text well.
3
4
  * @type {string}
@@ -1,3 +1,4 @@
1
+ <!-- @component `Headline` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Headline--default) -->
1
2
  <script>/**
2
3
  * Headline
3
4
  */
@@ -1,3 +1,4 @@
1
+ <!-- @component `NoteText` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-NoteText--default) -->
1
2
  <script>/**
2
3
  * A markdown text string.
3
4
  * @type {string}
@@ -1,3 +1,4 @@
1
+ <!-- @component `PhotoPack` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-PhotoPack--default) -->
1
2
  <script>/**
2
3
  * Array of image objects
3
4
  * @required
@@ -1,3 +1,4 @@
1
+ <!-- @component `PymChild` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/utilities-PymChild--default) -->
1
2
  <script>/** Pym.js polling interval */
2
3
  export let polling = 500;
3
4
  import { onMount } from 'svelte';
@@ -7,4 +8,4 @@ let pymChild;
7
8
  onMount(() => {
8
9
  pymChild = new pym.Child({ polling });
9
10
  });
10
- </script>
11
+ </script>
@@ -1,3 +1,4 @@
1
+ <!-- @component `ReutersLogo` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-ReutersLogo--default) -->
1
2
  <script>/** "Kinesis" colour */
2
3
  export let logoColour = '#FA6400';
3
4
  /** Text colour */
@@ -1,3 +1,4 @@
1
+ <!-- @component `SEO` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SEO--default) -->
1
2
  <script>import analytics from './analytics';
2
3
  import publisherTags from './publisherTags';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ <!-- @component `Scroller` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Scroller--default) -->
1
2
  <script>/**
2
3
  * ID of the scroller container
3
4
  * @type {string}
@@ -101,7 +102,7 @@ let progress;
101
102
  >
102
103
  <div class="scroller-graphic-well">
103
104
  <Block
104
- width={backgroundWidth}
105
+ width="{backgroundWidth}"
105
106
  cls="background-container step-{index + 1}"
106
107
  >
107
108
  <Background
@@ -110,7 +111,7 @@ let progress;
110
111
  preload="{preload}"
111
112
  stackBackground="{stackBackground}"
112
113
  />
113
- </Block>
114
+ </Block>
114
115
  </div>
115
116
  </div>
116
117
 
@@ -1,3 +1,4 @@
1
+ <!-- @component `SiteFooter` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SiteFooter--default) -->
1
2
  <script>import QuickLinks from './QuickLinks.svelte';
2
3
  import CompanyLinks from './CompanyLinks.svelte';
3
4
  import LegalLinks from './LegalLinks.svelte';
@@ -1,3 +1,4 @@
1
+ <!-- @component `SiteHeader` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SiteHeader--default) -->
1
2
  <script>import ReutersLogo from '../ReutersLogo/ReutersLogo.svelte';
2
3
  import NavBar from './NavBar/index.svelte';
3
4
  import data from './data.json';
@@ -1,3 +1,4 @@
1
+ <!-- @component `Spinner` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Spinner--default) -->
1
2
  <script>/** Primary colour of the spinner. */
2
3
  export let colour = '#666';
3
4
  /**
@@ -20,7 +21,7 @@ export let containerPadding = 10;
20
21
 
21
22
  <div
22
23
  style:width="100%"
23
- style:height={`${(width + (containerPadding * 2))}px`}
24
+ style:height="{`${width + containerPadding * 2}px`}"
24
25
  class="component-container"
25
26
  >
26
27
  <div
@@ -1,3 +1,4 @@
1
+ <!-- @component `Theme` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/theming-Theme--default) -->
1
2
  <script context="module">import light from './themes/light.js';
2
3
  import dark from './themes/dark.js';
3
4
  /**
@@ -1,3 +1,4 @@
1
+ <!-- @component `Video` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Video--default) -->
1
2
  <script>import IntersectionObserver from 'svelte-intersection-observer';
2
3
  import Controls from './Controls.svelte';
3
4
  import Block from '../Block/Block.svelte';
@@ -1,3 +1,4 @@
1
+ <!-- @component `Visible` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Visible--default) -->
1
2
  <script>import { onMount } from 'svelte';
2
3
  /**
3
4
  * Whether to change visibility just once.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",