diff --git a/package.json b/package.json index 90c7fb0..b5d8793 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "react-dom": "^17.0.2", "react-hotkeys-hook": "^3.3.2", "react-inlinesvg": "^2.3.0", + "react-keyboard-event-handler": "^1.5.4", "react-router-dom": "^5.2.0" }, "devDependencies": { @@ -38,13 +39,20 @@ "@babel/preset-react": "^7.9.4", "all-contributors-cli": "^6.14.2", "auto": "^9.35.1", + "autoprefixer": "^10.4.2", "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-loader": "^8.1.0", "babel-plugin-transform-object-rest-spread": "^6.26.0", "babel-plugin-transform-react-jsx": "^6.24.1", + "css-loader": "^5.2.4", "extract-text-webpack-plugin": "^3.0.2", + "postcss": "^8.4.5", + "postcss-loader": "^4.0.0", + "postcss-preset-env": "^6.7.0", "react-art": "^17.0.2", + "style-loader": "^2.0.0", + "tailwindcss": "^3.0.15", "webpack": "^4.43.0", "webpack-cli": "^3.3.12", "webpack-node-externals": "^1.7.2" diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..91c366d --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +const autoprefixer = require("autoprefixer"); +const tailwindcss = require("tailwindcss"); + +module.exports = { + plugins: ["postcss-preset-env", autoprefixer, tailwindcss], +}; diff --git a/src/ChunkCollection.jsx b/src/ChunkCollection.jsx index 0c645ed..4c5a867 100644 --- a/src/ChunkCollection.jsx +++ b/src/ChunkCollection.jsx @@ -1,4 +1,4 @@ -// @ts-check +// @ts-nocheck import React, { useEffect, useState, useContext } from "react"; import { ChunkCollectionContext } from "./ChunkCollectionContext"; import { EditmodeContext } from "./EditmodeContext"; @@ -105,7 +105,7 @@ export function ChunkCollection({ {typeof children === "function" ? children(getChunk, chunk, index) : children} - + ))} {chunks.length && ( @@ -114,9 +114,7 @@ export function ChunkCollection({ value={placeholderChunk} >