Mercurial > libervia-web
changeset 1571:ff633e19a069
browser (meta): update deps + use new features + new deps:
- update versions of existing dependencies;
- use new import type option for `Swiper` as the old method was not working anymore with
latest versions;
- use new `css` feature for `Swiper` to have CSS injected by the generated module;
- add `Tippy.js` and `emoji-picker-element` dependencies, they will be used for reactions
and other future features.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 22 Nov 2023 16:31:36 +0100 |
parents | 038d4bfdd967 |
children | 7006b55001a4 |
files | libervia/web/pages/_browser/browser_meta.json |
diffstat | 1 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/web/pages/_browser/browser_meta.json Wed Nov 22 16:31:32 2023 +0100 +++ b/libervia/web/pages/_browser/browser_meta.json Wed Nov 22 16:31:36 2023 +0100 @@ -2,16 +2,20 @@ "js": { "package": { "dependencies": { - "nunjucks": "^3.2.3", - "swiper": "^6.8.4", - "moment": "^2.29.1", - "ogv": "^1.8.4" + "nunjucks": "^3.2.4", + "swiper": "^11.0", + "moment": "^2.29.4", + "ogv": "^1.8.9", + "tippy.js": "^6.3", + "emoji-picker-element": "^1.18" } }, "brython_map": { "nunjucks": "nunjucks/browser/nunjucks.min.js", "swiper": { - "path": "swiper/swiper-bundle.min.js", + "import_type": "module", + "path": "swiper/swiper-bundle.min.mjs", + "css": "swiper/swiper-bundle.min.css", "export": ["Swiper"] }, "moment": "moment/min/moment.min.js", @@ -19,6 +23,16 @@ "path": "ogv/dist/ogv.js", "export": ["OGVCompat", "OGVLoader", "OGVMediaError", "OGVMediaType", "OGVTimeRanges", "OGVPlayer", "OGVVersion"], "extra_init": "OGVLoader.base='/{build_dir}/node_modules/ogv/dist'" + }, + "tippy.js": { + "path": ["@popperjs/core/dist/umd/popper.min.js", "tippy.js/dist/tippy-bundle.umd.min.js"], + "css": ["tippy.js/dist/tippy.css", "tippy.js/themes/light.css", "tippy.js/themes/light-border.css"], + "export": ["tippy"] + }, + "emoji-picker-element": { + "import_type": "module", + "path": "emoji-picker-element/picker.js", + "export": [] } } }