@mapvx/web-components 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{base-floor-selector-CE7cLn0s.cjs → base-floor-selector-_si0OaKV.cjs} +2 -2
- package/dist/cjs/{class-map-eCOKIRN0.cjs → class-map-CIFK_Nvk.cjs} +3 -3
- package/dist/cjs/{compact-floor-selector-Bz6YDGPj.cjs → compact-floor-selector-CjEWEJM8.cjs} +3 -3
- package/dist/cjs/{consume-BwFNwTeY.cjs → consume-BhigA9qa.cjs} +2 -2
- package/dist/cjs/custom-map-D3dQQyOb.cjs +97 -0
- package/dist/cjs/{floor-selector-C_EtfxAQ.cjs → floor-selector-DFyRRyAb.cjs} +3 -3
- package/dist/cjs/lazy-load-BE9-keHk.cjs +56 -0
- package/dist/cjs/map-view-with-modal.cjs +2 -2
- package/dist/cjs/{qr-modal-Cv_LW0Xb.cjs → qr-modal-B4BqIRX4.cjs} +2 -2
- package/dist/cjs/{route-options-Cl_LAr4B.cjs → route-options-DQc0dugR.cjs} +4 -4
- package/dist/cjs/route-view-totems.cjs +2 -2
- package/dist/es/assets/{compact-floor-selector-CfnqUycd.js → compact-floor-selector-BTOhdipy.js} +2 -2
- package/dist/es/assets/{components-DaeCLpLi.js → components-_AwIbCu4.js} +2 -2
- package/dist/es/assets/{map-view-with-modal-D8l3YXwn.js → map-view-with-modal-BP3m9mf6.js} +2 -2
- package/dist/es/assets/{route-view-totems-Cr0VC9Fu.js → route-view-totems-B9nWTUnc.js} +9 -9
- package/dist/es/assets/utils-DKJkAKFi.js +2 -0
- package/dist/es/index.js +1 -1
- package/dist/es/route-view-totems.js +1 -1
- package/dist/iife/map-view-with-modal.js +21 -21
- package/dist/iife/route-view-totems.js +24 -24
- package/dist/sw/mvx-tiles-sw.js +4 -4
- package/dist/update-timestamp.txt +1 -0
- package/package.json +20 -16
- package/dist/cjs/custom-map-2cHS_139.cjs +0 -97
- package/dist/cjs/lazy-load-CQfPqI_4.cjs +0 -56
- package/dist/es/assets/utils-BxV274fg.js +0 -2
package/dist/sw/mvx-tiles-sw.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/* eslint-env serviceworker */
|
|
14
14
|
/* global workbox, importScripts */
|
|
15
|
-
importScripts('https://storage.googleapis.com/workbox-cdn/releases/
|
|
15
|
+
importScripts('https://storage.googleapis.com/workbox-cdn/releases/7.4.0/workbox-sw.js');
|
|
16
16
|
|
|
17
17
|
const { registerRoute } = workbox.routing;
|
|
18
18
|
const { CacheFirst, StaleWhileRevalidate } = workbox.strategies;
|
|
@@ -35,7 +35,7 @@ registerRoute(
|
|
|
35
35
|
cacheName: 'api-cache',
|
|
36
36
|
plugins: [
|
|
37
37
|
new workbox.cacheableResponse.CacheableResponsePlugin({
|
|
38
|
-
statuses: [0, 200],
|
|
38
|
+
statuses: [0, 200, 204],
|
|
39
39
|
}),
|
|
40
40
|
],
|
|
41
41
|
})
|
|
@@ -47,7 +47,7 @@ registerRoute(
|
|
|
47
47
|
new CacheFirst({
|
|
48
48
|
cacheName: 'tiles-pbf',
|
|
49
49
|
plugins: [
|
|
50
|
-
new CacheableResponsePlugin({ statuses: [0, 200] }),
|
|
50
|
+
new CacheableResponsePlugin({ statuses: [0, 200, 204] }),
|
|
51
51
|
new ExpirationPlugin({ maxEntries: 10000, maxAgeSeconds: 60 * 60 * 24 }),
|
|
52
52
|
],
|
|
53
53
|
})
|
|
@@ -58,6 +58,6 @@ registerRoute(
|
|
|
58
58
|
({ url }) => isAllowedHost(url.hostname) && !/\.pbf($|\?)/.test(url.pathname),
|
|
59
59
|
new StaleWhileRevalidate({
|
|
60
60
|
cacheName: 'map-assets',
|
|
61
|
-
plugins: [new CacheableResponsePlugin({ statuses: [0, 200] })],
|
|
61
|
+
plugins: [new CacheableResponsePlugin({ statuses: [0, 200, 204] })],
|
|
62
62
|
})
|
|
63
63
|
);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
23-06-2025 12:53:37 -04
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapvx/web-components",
|
|
3
3
|
"description": "MapVX Web Components is a web components library that provides interactive and accessible mapping solutions. Built with Lit, it offers a modern, lightweight, and framework-agnostic way to integrate maps into any web application.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Mapvx",
|
|
7
7
|
"homepage": "https://mapvx.com",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lzdevelopers/my-maps-js": "^
|
|
40
|
-
"lit": "^3.3.
|
|
39
|
+
"@lzdevelopers/my-maps-js": "^3.0.4",
|
|
40
|
+
"lit": "^3.3.2",
|
|
41
41
|
"qrcode": "^1.5.4",
|
|
42
42
|
"rollbar": "^2.26.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@lit-labs/testing": "^0.2.
|
|
45
|
+
"@lit-labs/testing": "^0.2.8",
|
|
46
46
|
"@lit/context": "^1.1.6",
|
|
47
47
|
"@testing-library/dom": "^10.4.1",
|
|
48
48
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -53,30 +53,34 @@
|
|
|
53
53
|
"@types/estree-jsx": "^1.0.5",
|
|
54
54
|
"@types/mdx": "^2.0.13",
|
|
55
55
|
"@types/qrcode": "^1.5.6",
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"eslint": "^
|
|
56
|
+
"@types/react": "^19.2.7",
|
|
57
|
+
"@types/react-dom": "^19.2.3",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
59
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
60
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
61
|
+
"eslint": "^9.39.2",
|
|
60
62
|
"eslint-config-prettier": "^10.1.8",
|
|
61
63
|
"eslint-plugin-lit": "^2.1.1",
|
|
62
64
|
"eslint-plugin-prettier": "^5.5.4",
|
|
63
|
-
"happy-dom": "^20.0.
|
|
65
|
+
"happy-dom": "^20.0.11",
|
|
64
66
|
"husky": "^9.1.7",
|
|
65
67
|
"lint-staged": "^16.2.7",
|
|
66
68
|
"lit-analyzer": "^2.0.3",
|
|
67
|
-
"next": "^16.
|
|
68
|
-
"nextra": "^4.6.
|
|
69
|
-
"nextra-theme-docs": "^4.6.
|
|
70
|
-
"prettier": "^3.
|
|
71
|
-
"puppeteer": "^24.
|
|
69
|
+
"next": "^16.1.1",
|
|
70
|
+
"nextra": "^4.6.1",
|
|
71
|
+
"nextra-theme-docs": "^4.6.1",
|
|
72
|
+
"prettier": "^3.7.4",
|
|
73
|
+
"puppeteer": "^24.34.0",
|
|
74
|
+
"react": "^19.2.3",
|
|
75
|
+
"react-dom": "^19.2.3",
|
|
72
76
|
"sonarqube-scanner": "^4.3.2",
|
|
73
77
|
"start-server-and-test": "^2.1.3",
|
|
74
78
|
"terser": "^5.44.1",
|
|
75
79
|
"ts-lit-plugin": "^2.0.2",
|
|
76
80
|
"typescript": "~5.9.3",
|
|
77
|
-
"vite": "^7.
|
|
81
|
+
"vite": "^7.3.0",
|
|
78
82
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
79
|
-
"vitest": "^4.0.
|
|
83
|
+
"vitest": "^4.0.16"
|
|
80
84
|
},
|
|
81
85
|
"lint-staged": {
|
|
82
86
|
"src/**/*.{json,html,css,scss,md}": [
|