Skip to content

Commit 7851922

Browse files
committed
chore: update npm packages
1 parent 81caaaf commit 7851922

File tree

24 files changed

+2473
-1660
lines changed

24 files changed

+2473
-1660
lines changed

example-app-spm/package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,38 @@
1111
"@capacitor/ios": "next",
1212
"@capacitor/keyboard": "next",
1313
"@capacitor/status-bar": "next",
14-
"@ionic/react": "^6.0.0",
15-
"@ionic/react-router": "^6.0.0",
16-
"@testing-library/jest-dom": "^5.11.9",
17-
"@testing-library/react": "^11.2.5",
18-
"@testing-library/user-event": "^12.6.3",
14+
"@ionic/react": "^8.7.9",
15+
"@ionic/react-router": "^8.7.9",
16+
"@testing-library/jest-dom": "^6.9.1",
17+
"@testing-library/react": "^16.3.0",
18+
"@testing-library/user-event": "^14.6.1",
1919
"@types/google.maps": "~3.58.1",
20-
"@types/jest": "^26.0.20",
21-
"@types/node": "^12.19.15",
22-
"@types/react": "^16.14.3",
23-
"@types/react-dom": "^16.9.10",
24-
"@types/react-router": "^5.1.11",
25-
"@types/react-router-dom": "^5.1.7",
26-
"ionicons": "^5.4.0",
27-
"react": "^17.0.1",
28-
"react-dom": "^17.0.1",
29-
"react-router": "^5.2.0",
30-
"react-router-dom": "^5.2.0",
31-
"react-scripts": "^5.0.0",
32-
"typescript": "^4.1.3",
33-
"web-vitals": "^0.2.4",
34-
"workbox-background-sync": "^5.1.4",
35-
"workbox-broadcast-update": "^5.1.4",
36-
"workbox-cacheable-response": "^5.1.4",
37-
"workbox-core": "^5.1.4",
38-
"workbox-expiration": "^5.1.4",
39-
"workbox-google-analytics": "^5.1.4",
40-
"workbox-navigation-preload": "^5.1.4",
41-
"workbox-precaching": "^5.1.4",
42-
"workbox-range-requests": "^5.1.4",
43-
"workbox-routing": "^5.1.4",
44-
"workbox-strategies": "^5.1.4",
45-
"workbox-streams": "^5.1.4"
20+
"@types/jest": "^30.0.0",
21+
"@types/node": "^24.10.1",
22+
"@types/react": "^19.2.6",
23+
"@types/react-dom": "^19.2.3",
24+
"@types/react-router": "^5.1.20",
25+
"@types/react-router-dom": "^5.3.3",
26+
"ionicons": "^8.0.13",
27+
"react": "^19.2.0",
28+
"react-dom": "^19.2.0",
29+
"react-router": "^5.3.4",
30+
"react-router-dom": "^5.3.4",
31+
"react-scripts": "^5.0.1",
32+
"typescript": "^5.9.3",
33+
"web-vitals": "^5.1.0",
34+
"workbox-background-sync": "^7.3.0",
35+
"workbox-broadcast-update": "^7.3.0",
36+
"workbox-cacheable-response": "^7.3.0",
37+
"workbox-core": "^7.3.0",
38+
"workbox-expiration": "^7.3.0",
39+
"workbox-google-analytics": "^7.3.0",
40+
"workbox-navigation-preload": "^7.3.0",
41+
"workbox-precaching": "^7.3.0",
42+
"workbox-range-requests": "^7.3.0",
43+
"workbox-routing": "^7.3.0",
44+
"workbox-strategies": "^7.3.0",
45+
"workbox-streams": "^7.3.0"
4646
},
4747
"scripts": {
4848
"start": "react-scripts start",
@@ -72,4 +72,4 @@
7272
"@capacitor/cli": "next"
7373
},
7474
"description": "An Ionic project"
75-
}
75+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import '@capacitor/google-maps';
2+
3+
declare global {
4+
namespace JSX {
5+
interface IntrinsicElements {
6+
'capacitor-google-map': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
7+
}
8+
}
9+
}
10+
11+
export {};
12+

example-app-spm/src/index.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import React from 'react';
2-
import ReactDOM from 'react-dom';
2+
import { createRoot } from 'react-dom/client';
33
import App from './App';
44
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
55
import reportWebVitals from './reportWebVitals';
66

7-
ReactDOM.render(
8-
<React.StrictMode>
9-
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root')
12-
);
7+
const container = document.getElementById('root');
8+
if (container) {
9+
const root = createRoot(container);
10+
root.render(
11+
<React.StrictMode>
12+
<App />
13+
</React.StrictMode>
14+
);
15+
}
1316

1417
// If you want your app to work offline and load faster, you can change
1518
// unregister() to register() below. Note this comes with some pitfalls.

example-app-spm/src/pages/Drawing/Circles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ const CircleMapPage: React.FC = () => {
173173
autoGrow={true}
174174
></IonTextarea>
175175
</div>
176+
{/* @ts-ignore - custom element */}
176177
<capacitor-google-map
177178
id="map_circles"
178179
style={{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
/// <reference types="react-scripts" />
2+
3+
declare global {
4+
namespace JSX {
5+
interface IntrinsicElements {
6+
'capacitor-google-map': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
7+
}
8+
}
9+
}
10+
11+
export {};

example-app-spm/src/reportWebVitals.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
import { ReportHandler } from 'web-vitals';
1+
import { onCLS, onINP, onFCP, onLCP, onTTFB, Metric } from 'web-vitals';
22

3-
const reportWebVitals = (onPerfEntry?: ReportHandler) => {
3+
const reportWebVitals = (onPerfEntry?: (metric: Metric) => void) => {
44
if (onPerfEntry && onPerfEntry instanceof Function) {
5-
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6-
getCLS(onPerfEntry);
7-
getFID(onPerfEntry);
8-
getFCP(onPerfEntry);
9-
getLCP(onPerfEntry);
10-
getTTFB(onPerfEntry);
11-
});
5+
onCLS(onPerfEntry);
6+
onINP(onPerfEntry);
7+
onFCP(onPerfEntry);
8+
onLCP(onPerfEntry);
9+
onTTFB(onPerfEntry);
1210
}
1311
};
1412

example-app-spm/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"jsx": "react-jsx"
2222
},
2323
"include": [
24-
"src"
24+
"src",
25+
"src/**/*.d.ts"
2526
]
2627
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
},
1818
"devDependencies": {
1919
"@capacitor/ios": "next",
20-
"@types/node": "^20.11.25",
21-
"glob": "^11.0.0",
22-
"husky": "^9.0.1",
23-
"lerna": "^8.1.2",
24-
"typescript": "^5.4.2"
20+
"@types/node": "^24.10.1",
21+
"glob": "^11.0.3",
22+
"husky": "^9.1.7",
23+
"lerna": "^9.0.1",
24+
"typescript": "^5.9.3"
2525
},
2626
"engines": {
2727
"node": ">=20",

plugin/.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

plugin/.eslintrc.json

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)