@t2ca/gatsby-theme-showcase 1.2.16 → 1.2.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.
package/gatsby-config.js CHANGED
@@ -24,7 +24,6 @@ module.exports = {
24
24
  `gatsby-plugin-sharp`,
25
25
  `gatsby-transformer-sharp`,
26
26
  `gatsby-transformer-yaml`,
27
- `gatsby-transformer-json`,
28
27
  `gatsby-plugin-react-helmet`,
29
28
  `gatsby-plugin-theme-ui`,
30
29
  ],
package/package.json CHANGED
@@ -1,46 +1,26 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "devDependencies": {
7
- "@emotion/eslint-plugin": "^11.0.0",
8
- "babel-eslint": "^10.0.2",
9
- "eslint": "^7.0.0",
10
- "eslint-config-prettier": "^8.1.0",
11
- "eslint-plugin-graphql": "^4.0.0",
12
- "eslint-plugin-import": "^2.18.0",
13
- "eslint-plugin-jsx-a11y": "^6.2.3",
14
- "eslint-plugin-prettier": "^3.1.0",
15
- "eslint-plugin-react": "^7.14.2",
16
- "eslint-plugin-react-hooks": "^4.0.0",
17
- "prettier": "^2.0.5"
18
- },
19
6
  "peerDependencies": {
20
7
  "gatsby": "^3.0.0",
21
- "react": "^17.0.1 || alpha",
22
- "react-dom": "^17.0.1 || alpha"
8
+ "react": "^17.0.1",
9
+ "react-dom": "^17.0.1"
23
10
  },
24
11
  "dependencies": {
25
- "@theme-ui/components": "^0.10.0",
26
- "@theme-ui/preset-bootstrap": "^0.10.1",
27
12
  "@theme-ui/preset-tailwind": "^0.10.1",
28
13
  "@theme-ui/sidenav": "^0.10.0",
29
- "@theme-ui/typography": "^0.10.0",
30
- "framer-motion": "^4.0.0",
31
14
  "gatsby": "^3.0.0",
32
15
  "gatsby-plugin-image": "^1.7.1",
33
16
  "gatsby-plugin-react-helmet": "^4.0.0",
34
17
  "gatsby-plugin-sharp": "^3.9.0",
35
- "gatsby-plugin-theme-ui": "^0.10.1",
36
18
  "gatsby-source-filesystem": "^3.0.0",
37
- "gatsby-transformer-json": "^3.0.0",
38
19
  "gatsby-transformer-sharp": "^3.0.0",
39
20
  "gatsby-transformer-yaml": "^3.0.0",
40
21
  "react-helmet": "^6.0.0",
41
22
  "react-icons": "^4.1.0",
42
- "theme-ui": "^0.10.0",
43
- "yup": "^0.32.8"
23
+ "theme-ui": "^0.10.0"
44
24
  },
45
25
  "scripts": {
46
26
  "build": "gatsby build",
@@ -1,7 +1,5 @@
1
- /** @jsx jsx */
2
- import { useState } from "react"
3
- import { jsx, Themed } from "theme-ui"
4
- import { Helmet } from "react-helmet"
1
+ /** @jsxImportSource theme-ui */
2
+ import { useState, Fragment } from "react"
5
3
 
6
4
  import MobileNavigation from "./navigation-mobile"
7
5
  import Header from "./header"
@@ -12,11 +10,7 @@ const Layout = ({ children, noBorder = false, alert }) => {
12
10
  const [menuOpen, setMenuOpen] = useState(false)
13
11
 
14
12
  return (
15
- <Themed.root>
16
- <Helmet>
17
- <html lang="en" />
18
- </Helmet>
19
-
13
+ <Fragment>
20
14
  <Header styles={noBorder} menuOpen={menuOpen} setMenuOpen={setMenuOpen} />
21
15
 
22
16
  <Sidebar open={menuOpen} isAlert={alert} />
@@ -32,7 +26,7 @@ const Layout = ({ children, noBorder = false, alert }) => {
32
26
  <Footer />
33
27
 
34
28
  <MobileNavigation />
35
- </Themed.root>
29
+ </Fragment>
36
30
  )
37
31
  }
38
32
 
package/.eslintrc.json DELETED
@@ -1,42 +0,0 @@
1
- {
2
- "extends": [
3
- "eslint:recommended",
4
- "plugin:import/errors",
5
- "plugin:react/recommended",
6
- "plugin:jsx-a11y/recommended",
7
- "prettier"
8
- ],
9
- "plugins": ["react", "react-hooks", "import", "jsx-a11y", "@emotion"],
10
- "parser": "babel-eslint",
11
- "parserOptions": {
12
- "ecmaVersion": 2018,
13
- "sourceType": "module",
14
- "ecmaFeatures": {
15
- "jsx": true
16
- }
17
- },
18
- "env": {
19
- "es6": true,
20
- "browser": true,
21
- "node": true
22
- },
23
- "settings": {
24
- "react": {
25
- "version": "detect"
26
- }
27
- },
28
- "rules": {
29
- "react-hooks/rules-of-hooks": "error",
30
- "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
31
- "jsx-a11y/anchor-is-valid": [
32
- "error",
33
- { "components": ["Link"], "specialLink": ["to"] }
34
- ],
35
- "no-console": "off",
36
- "react/prop-types": [0],
37
- "react/display-name": [0]
38
- },
39
- "globals": {
40
- "graphql": true
41
- }
42
- }