@reuters-graphics/graphics-components 1.1.6 → 1.1.7

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.
@@ -2,5 +2,4 @@ export default ImportSnippet;
2
2
  declare function ImportSnippet({ included, partial }: {
3
3
  included?: boolean | undefined;
4
4
  partial?: string | undefined;
5
- }): React.JSX.Element;
6
- import React from 'react';
5
+ }): JSX.Element;
@@ -6,5 +6,4 @@ declare function CopyTable({ title, body, copyable, mdnLink, included, partial,
6
6
  mdnLink?: null | undefined;
7
7
  included?: boolean | undefined;
8
8
  partial: any;
9
- }): React.JSX.Element;
10
- import React from 'react';
9
+ }): JSX.Element;
@@ -6,5 +6,4 @@ declare function CopyTable({ title, note, header, body, copyable, mdnLink, }: {
6
6
  body: any;
7
7
  copyable: any;
8
8
  mdnLink?: null | undefined;
9
- }): React.JSX.Element;
10
- import React from 'react';
9
+ }): JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export default ThemeWrapper;
2
- declare function ThemeWrapper(props: any): React.JSX.Element;
3
- import React from 'react';
2
+ declare function ThemeWrapper(props: any): JSX.Element;
@@ -1,2 +1 @@
1
- export default function Mermaid(props: any): React.JSX.Element;
2
- import React from 'react';
1
+ export default function Mermaid(props: any): JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export default VariableTable;
2
- declare function VariableTable(props: any): React.JSX.Element;
3
- import React from 'react';
2
+ declare function VariableTable(props: any): JSX.Element;
@@ -2,5 +2,4 @@ export default ColourPicker;
2
2
  declare function ColourPicker({ colour, onChange }: {
3
3
  colour: any;
4
4
  onChange: any;
5
- }): React.JSX.Element;
6
- import React from 'react';
5
+ }): JSX.Element;
@@ -3,5 +3,4 @@ declare function Customiser({ theme, themeName, setTheme }: {
3
3
  theme: any;
4
4
  themeName: any;
5
5
  setTheme: any;
6
- }): React.JSX.Element;
7
- import React from 'react';
6
+ }): JSX.Element;
@@ -6,5 +6,4 @@ declare function Key({ value, name, map, themeName, setTheme, theme }: {
6
6
  themeName: any;
7
7
  setTheme: any;
8
8
  theme: any;
9
- }): React.JSX.Element;
10
- import React from 'react';
9
+ }): JSX.Element;
@@ -6,5 +6,4 @@ declare function Value({ value, name, map, themeName, theme, setTheme }: {
6
6
  themeName: any;
7
7
  theme: any;
8
8
  setTheme: any;
9
- }): React.JSX.Element;
10
- import React from 'react';
9
+ }): JSX.Element;
@@ -2,5 +2,4 @@ export default NewTheme;
2
2
  declare function NewTheme({ theme, themeName }: {
3
3
  theme: any;
4
4
  themeName: any;
5
- }): React.JSX.Element;
6
- import React from 'react';
5
+ }): JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export default ThemeBuilder;
2
- declare function ThemeBuilder(_props: any): React.JSX.Element;
3
- import React from 'react';
2
+ declare function ThemeBuilder(_props: any): JSX.Element;
@@ -2,5 +2,4 @@ export default ThemeSwitch;
2
2
  declare function ThemeSwitch({ themeName, setThemeName }: {
3
3
  themeName: any;
4
4
  setThemeName: any;
5
- }): React.JSX.Element;
6
- import React from 'react';
5
+ }): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",
@@ -12,21 +12,6 @@
12
12
  "registry": "https://registry.npmjs.org/",
13
13
  "access": "public"
14
14
  },
15
- "scripts": {
16
- "start": "storybook dev -p 3000",
17
- "new": "node ./bin/newComponent/index.cjs",
18
- "lint": "eslint --fix",
19
- "lint:check": "eslint",
20
- "format": "prettier . --write",
21
- "format:check": "prettier . --check",
22
- "build:package": "rimraf ./dist && svelte-package -i ./src && publint",
23
- "build:chromatic": "storybook build -o docs",
24
- "build:docs": "storybook build -o docs && touch ./docs/.nojekyll",
25
- "build": "npm-run-all build:package build:docs",
26
- "changeset:version": "changeset version",
27
- "changeset:publish": "git add --all && changeset publish",
28
- "knip": "knip"
29
- },
30
15
  "license": "MIT",
31
16
  "files": [
32
17
  "dist"
@@ -133,5 +118,16 @@
133
118
  "types": "./dist/index.d.ts",
134
119
  "bugs": {
135
120
  "url": "https://github.com/reuters-graphics/graphics-components/issues"
121
+ },
122
+ "scripts": {
123
+ "start": "storybook dev -p 3000",
124
+ "new": "node ./bin/newComponent/index.cjs",
125
+ "lint": "eslint --fix",
126
+ "format": "prettier . --write",
127
+ "build": "rimraf ./dist && svelte-package -i ./src && publint",
128
+ "build:docs": "storybook build -o docs",
129
+ "changeset:version": "changeset version",
130
+ "changeset:publish": "git add --all && changeset publish",
131
+ "knip": "knip"
136
132
  }
137
- }
133
+ }