@reuters-graphics/graphics-components 0.0.1-beta.13 → 0.0.1-beta.16

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,7 +8,7 @@ import { marked } from 'marked';
8
8
  import Block from '../Block/Block.svelte';
9
9
  </script>
10
10
 
11
- <Block cls="notes mb-4">
11
+ <Block cls="notes mb-6">
12
12
  {#if text}
13
13
  {@html marked.parse(text)}
14
14
  {/if}
@@ -66,7 +66,15 @@ export let authors = [];
66
66
  * Whether to inject Google Analytics code for this page.
67
67
  */
68
68
  export let includeAnalytics = false;
69
- $: origin = new URL(baseUrl).origin;
69
+ const getOrigin = (baseUrl) => {
70
+ try {
71
+ return new URL(baseUrl).origin;
72
+ }
73
+ catch {
74
+ return '';
75
+ }
76
+ };
77
+ $: origin = getOrigin(baseUrl);
70
78
  $: canonicalUrl = origin + pageUrl.pathname;
71
79
  // Only fire analytics on prod sites
72
80
  if (typeof window !== 'undefined' && includeAnalytics) {
@@ -5,8 +5,8 @@ export default {
5
5
  'text-primary': '#ffffff',
6
6
  'text-secondary': 'rgb(255 255 255 / 60%)',
7
7
  accent: ' #ef3c2a',
8
- 'brand-logo': '#fa6400',
9
- 'brand-rules': '#999999',
8
+ 'brand-logo': '#ffffff',
9
+ 'brand-rules': 'rgb(255 255 255 / 25%)',
10
10
  'brand-shadow': 'rgb(255 255 255 / 10%)',
11
11
  },
12
12
  font: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.16",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",
@@ -15,7 +15,7 @@
15
15
  "postversion": "git push origin && git push origin --tags"
16
16
  },
17
17
  "license": "MIT",
18
- "types": "dist/@types/index.d.ts",
18
+ "types": "./dist/@types/index.d.ts",
19
19
  "files": [
20
20
  "dist"
21
21
  ],