@amsterdam/react-maps
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -5,2 +5,3 @@ import L, { LeafletEventHandlerFn } from 'leaflet'; | ||
export interface LeafletComponentProps<T extends AllLeafletInstances, U, V> { | ||
children?: React.ReactNode; | ||
args?: U; | ||
@@ -7,0 +8,0 @@ options?: V; |
import 'leaflet/dist/leaflet.css'; | ||
import { FunctionComponent } from 'react'; | ||
declare const App: FunctionComponent; | ||
import React, { FunctionComponent } from 'react'; | ||
interface Props { | ||
children?: React.ReactNode; | ||
} | ||
declare const App: FunctionComponent<Props>; | ||
export default App; | ||
//# sourceMappingURL=App.d.ts.map |
@@ -1,5 +0,8 @@ | ||
import { render } from 'react-dom'; | ||
import React from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
import App from './App'; | ||
render(React.createElement(App, null), document.getElementById('root')); | ||
const container = document.getElementById('root'); | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const root = createRoot(container); | ||
root.render(React.createElement(App, null)); | ||
//# sourceMappingURL=example.js.map |
@@ -5,2 +5,3 @@ import L, { LeafletEventHandlerFn } from 'leaflet'; | ||
export interface LeafletComponentProps<T extends AllLeafletInstances, U, V> { | ||
children?: React.ReactNode; | ||
args?: U; | ||
@@ -7,0 +8,0 @@ options?: V; |
import 'leaflet/dist/leaflet.css'; | ||
import { FunctionComponent } from 'react'; | ||
declare const App: FunctionComponent; | ||
import React, { FunctionComponent } from 'react'; | ||
interface Props { | ||
children?: React.ReactNode; | ||
} | ||
declare const App: FunctionComponent<Props>; | ||
export default App; | ||
//# sourceMappingURL=App.d.ts.map |
@@ -6,6 +6,9 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_dom_1 = require("react-dom"); | ||
var react_1 = __importDefault(require("react")); | ||
var client_1 = require("react-dom/client"); | ||
var App_1 = __importDefault(require("./App")); | ||
(0, react_dom_1.render)(react_1.default.createElement(App_1.default, null), document.getElementById('root')); | ||
var container = document.getElementById('root'); | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
var root = (0, client_1.createRoot)(container); | ||
root.render(react_1.default.createElement(App_1.default, null)); | ||
//# sourceMappingURL=example.js.map |
{ | ||
"name": "@amsterdam/react-maps", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "ReactJS wrapped around Leaflet", | ||
@@ -43,5 +43,4 @@ "license": "MPL-2.0", | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.16.4", | ||
"@testing-library/react": "^12.0.0", | ||
"@testing-library/react-hooks": "^8.0.0", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/geojson": "^7946.0.7", | ||
@@ -56,6 +55,6 @@ "@types/jest": "^27.0.0", | ||
"css-loader": "^6.2.0", | ||
"eslint": "8.19.0", | ||
"eslint": "8.25.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"eslint-plugin-jest": "^26.0.0", | ||
"eslint-plugin-jest": "^27.0.1", | ||
"eslint-plugin-jsx-a11y": "^6.5.1", | ||
@@ -72,15 +71,15 @@ "eslint-plugin-prettier": "^4.0.0", | ||
"leaflet": "^1.6.0", | ||
"lerna": "^5.0.0", | ||
"lerna": "^6.0.0", | ||
"lint-staged": "^13.0.1", | ||
"prettier": "^2.2.1", | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"react-test-renderer": "^18.0.0", | ||
"style-loader": "^3.2.1", | ||
"react-test-renderer": "^17.0.2", | ||
"ts-jest": "^27.0.5", | ||
"ts-loader": "^9.3.0", | ||
"ts-loader": "^9.4.1", | ||
"typescript": "^4.7.3", | ||
"webpack": "^5.11.0", | ||
"webpack-cli": "^4.0.0", | ||
"webpack-dev-server": "^4.0.0" | ||
"webpack": "^5.74.0", | ||
"webpack-cli": "^4.10.0", | ||
"webpack-dev-server": "^4.11.1" | ||
}, | ||
@@ -87,0 +86,0 @@ "husky": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79636
39
900