Skip to content

Commit 8312a34

Browse files
committed
Update ckeditor and Google Maps dependencies
1 parent 26524b7 commit 8312a34

File tree

5 files changed

+39
-123
lines changed

5 files changed

+39
-123
lines changed

documentation/changelog.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22

3-
## 0.83.3
3+
## 0.85.0
4+
* Upgrade ckeditor and Google Maps loader dependencies
5+
6+
## 0.84.0
47
* Upgrade Node, Vite and Sass dependencies
58

69
## 0.83.2

package-lock.json

+22-107
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
"release": "np --no-release-draft"
2828
},
2929
"dependencies": {
30+
"@googlemaps/js-api-loader": "^1.16.8",
3031
"axios": "^1.1.3",
31-
"ckeditor": "^4.11.4",
32+
"ckeditor4": "^4.22.1",
3233
"codemirror": "^5.65.9",
3334
"dragula": "^3.7.3",
3435
"dropzone": "^5.9.3",
3536
"escape-html": "^1.0.3",
3637
"fecha": "^4.2.3",
3738
"fuse.js": "^6.6.2",
38-
"google-maps": "^4.3.3",
3939
"json-api-resource": "^0.8.0",
4040
"little-loader": "^0.2.0",
4141
"mitt": "^3.0.0",
@@ -51,18 +51,15 @@
5151
},
5252
"devDependencies": {
5353
"@babel/core": "^7.22.1",
54-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
5554
"@babel/preset-env": "^7.22.4",
5655
"@vitejs/plugin-vue": "^5.2.1",
57-
"babel-eslint": "^10.0.1",
5856
"babel-plugin-istanbul": "^5.1.4",
5957
"eslint": "^8.41.0",
6058
"eslint-config-standard": "^17.1.0",
6159
"eslint-import-resolver-alias": "^1.1.2",
6260
"eslint-plugin-import": "^2.27.5",
6361
"eslint-plugin-node": "^11.1.0",
6462
"eslint-plugin-promise": "^6.1.1",
65-
"eslint-plugin-standard": "^5.0.0",
6663
"eslint-plugin-vue": "^9.14.1",
6764
"express": "^4.17.0",
6865
"fkill": "^8.1.1",

src/js/library/ckeditor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import littleLoader from 'little-loader';
22
import bootData from '../library/bootData.js';
33
import app from '../app.js';
44

5-
const ckeditorPath = new URL('ckeditor/ckeditor.js', import.meta.url);
5+
const ckeditorPath = new URL('ckeditor4/ckeditor.js', import.meta.url);
66
let ckeditorImport = null;
77
function importCkEditor() {
88
if (ckeditorImport) {

src/js/library/googleMaps.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import * as pkg from '@googlemaps/js-api-loader';
12
import bootData from '../library/bootData.js';
23
import app from '../app.js';
34

5+
const __default = 'default';
6+
const Loader = pkg.Loader || pkg[__default].Loader;
7+
48
let loadApiPromise;
59

610
export function loadApi() {
@@ -9,17 +13,14 @@ export function loadApi() {
913
return loadApiPromise;
1014
}
1115

12-
loadApiPromise = import('google-maps').then(({Loader}) => {
13-
14-
const loader = new Loader(bootData('googleMapsApiKey'), {
15-
libraries: ['places'],
16-
language: app.getLocale()
17-
});
18-
19-
return loader.load().then((googleLib) => googleLib);
20-
16+
const loader = new Loader({
17+
apiKey: bootData('googleMapsApiKey'),
18+
libraries: ['places'],
19+
language: app.getLocale()
2120
});
2221

22+
loadApiPromise = loader.load().then((googleLib) => googleLib);
23+
2324
return loadApiPromise;
2425

2526
};

0 commit comments

Comments
 (0)