@mapvx/web-components 0.0.30 → 0.0.32
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-IDYKUTl3.cjs +2 -0
- package/dist/cjs/class-map-CGHo1D7M.cjs +12 -0
- package/dist/cjs/{compact-floor-selector-BS7CViXm.cjs → compact-floor-selector-Co8Y3T2c.cjs} +4 -4
- package/dist/cjs/{consume-D8FiYlnP.cjs → consume-BWIh7rxI.cjs} +3 -3
- package/dist/cjs/custom-map--UZ5N3Lg.cjs +97 -0
- package/dist/cjs/floor-selector-CNuGDuNc.cjs +15 -0
- package/dist/cjs/lazy-load-Dy0Wc6yS.cjs +56 -0
- package/dist/cjs/map-view-with-modal.cjs +1 -2
- package/dist/cjs/qr-modal-Dq7dOqh6.cjs +16 -0
- package/dist/cjs/{route-options-DtyFIre-.cjs → route-options-B45xnSu4.cjs} +2 -2
- package/dist/cjs/route-view-totems.cjs +3 -3
- package/dist/cjs/styles-Bt354u5n.cjs +2 -0
- package/dist/es/assets/accessibility-D3Vyfstu.js +2 -0
- package/dist/es/assets/back_arrow-B3RltzaY.js +2 -0
- package/dist/es/assets/{compact-floor-selector-CwFw5Bzm.js → compact-floor-selector-BQ0lsGyg.js} +12 -105
- package/dist/es/assets/components-CNuu24gs.js +234 -0
- package/dist/es/assets/icon-destination-point-DEI58b8w.js +2 -0
- package/dist/es/assets/icon-origin-point-GS06gE2l.js +2 -0
- package/dist/es/assets/map-view-with-modal-JX4bFkkK.js +77 -0
- package/dist/es/assets/repeat_icon-DN4_p9eh.js +2 -0
- package/dist/es/assets/route-view-totems-B-1OEdkb.js +71 -0
- package/dist/es/assets/styles-BByP6ECU.js +2 -0
- package/dist/es/assets/utils-DslQaI0J.js +2 -0
- package/dist/es/assets/walking-BggsSG4g.js +2 -0
- package/dist/es/index.js +1 -2
- package/dist/es/route-view-totems.js +1 -2
- package/dist/iife/map-view-with-modal.js +28 -34
- package/dist/iife/route-view-totems.js +75 -80
- package/dist/update-timestamp.txt +1 -0
- package/package.json +58 -42
- package/dist/cjs/base-floor-selector-yrQVnvtZ.cjs +0 -2
- package/dist/cjs/class-map-7neI3FKM.cjs +0 -12
- package/dist/cjs/custom-map-B1nAQRfN.cjs +0 -97
- package/dist/cjs/floor-selector-DmKlivaW.cjs +0 -15
- package/dist/cjs/lazy-load-DbvIE8M6.cjs +0 -61
- package/dist/cjs/maplibre-gl-BNL6ASmq.cjs +0 -2
- package/dist/cjs/qr-modal-Br6Jn39i.cjs +0 -16
- package/dist/components/custom-map.d.ts +0 -13
- package/dist/components/custom-map.js +0 -64
- package/dist/components/floor-selector.d.ts +0 -6
- package/dist/components/floor-selector.js +0 -40
- package/dist/components/qr-modal.d.ts +0 -7
- package/dist/components/qr-modal.js +0 -69
- package/dist/components/route-options.d.ts +0 -6
- package/dist/components/route-options.js +0 -51
- package/dist/components/zoom-controls.d.ts +0 -6
- package/dist/components/zoom-controls.js +0 -40
- package/dist/es/assets/accessibility-Cnj-vwGM.js +0 -4
- package/dist/es/assets/back_arrow-B4vxoqtW.js +0 -4
- package/dist/es/assets/components-CWs4A5q7.js +0 -3854
- package/dist/es/assets/icon-destination-point-DY-ha1KN.js +0 -4
- package/dist/es/assets/icon-origin-point-v4_9Pmls.js +0 -4
- package/dist/es/assets/map-view-with-modal-CLey7TyU.js +0 -325
- package/dist/es/assets/maplibre-gl-BKzNcqp_.js +0 -4
- package/dist/es/assets/repeat_icon-CY61-fSZ.js +0 -4
- package/dist/es/assets/route-view-totems-BJkNb_vw.js +0 -469
- package/dist/es/assets/utils-CqnEla0O.js +0 -13046
- package/dist/es/assets/walking-BmgeFukv.js +0 -4
- package/dist/route-view-totems.d.ts +0 -16
- package/dist/route-view-totems.js +0 -58
- package/dist/utils/styles.d.ts +0 -2
- package/dist/utils/styles.js +0 -5
|
@@ -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.32",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Mapvx",
|
|
7
7
|
"homepage": "https://mapvx.com",
|
|
@@ -35,55 +35,48 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "vite --force",
|
|
40
|
-
"build": "npm run build:es && npm run build:cjs && npm run build:iife && npm run build:copy-sw",
|
|
41
|
-
"build:es": "BUILD_FORMAT=es vite build",
|
|
42
|
-
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
43
|
-
"build:iife": "BUILD_FORMAT=iife-route-view-totems vite build && BUILD_FORMAT=iife-map-view-with-modal vite build",
|
|
44
|
-
"build:copy-sw": "mkdir -p dist/sw && cp src/sw/mvx-tiles-sw.js dist/sw/mvx-tiles-sw.js",
|
|
45
|
-
"preview": "vite preview",
|
|
46
|
-
"lint": "eslint . --ext .ts",
|
|
47
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
48
|
-
"format": "prettier --write \"**/*.{ts,js,json,html}\"",
|
|
49
|
-
"analyze": "lit-analyzer",
|
|
50
|
-
"prepare": "husky",
|
|
51
|
-
"docs:dev": "cd docs && next dev",
|
|
52
|
-
"docs:build": "NEXT_EXPORT=true cd docs && next build && cp ../src/docs-base-redirect.html ../docs-build/index.html",
|
|
53
|
-
"docs:start": "cd docs && next start",
|
|
54
|
-
"prepublishOnly": "npm run build-with-sourcemaps",
|
|
55
|
-
"upload-sourcemaps": "./scripts/upload-sourcemaps-to-rollbar.sh",
|
|
56
|
-
"build-with-sourcemaps": "./scripts/build-and-upload-sourcemaps.sh",
|
|
57
|
-
"sonar": "sonar-scanner"
|
|
58
|
-
},
|
|
59
38
|
"dependencies": {
|
|
60
|
-
"@lzdevelopers/my-maps-js": "^2.
|
|
39
|
+
"@lzdevelopers/my-maps-js": "^2.25.5",
|
|
61
40
|
"lit": "^3.3.1",
|
|
62
41
|
"qrcode": "^1.5.4",
|
|
63
|
-
"rollbar": "^2.26.
|
|
42
|
+
"rollbar": "^2.26.5"
|
|
64
43
|
},
|
|
65
44
|
"devDependencies": {
|
|
45
|
+
"@lit-labs/testing": "^0.2.7",
|
|
66
46
|
"@lit/context": "^1.1.6",
|
|
67
|
-
"@
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
70
|
-
"
|
|
71
|
-
"
|
|
47
|
+
"@testing-library/dom": "^10.4.1",
|
|
48
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
49
|
+
"@testing-library/user-event": "^14.6.1",
|
|
50
|
+
"@types/babel__code-frame": "^7.0.6",
|
|
51
|
+
"@types/debounce": "^1.2.4",
|
|
52
|
+
"@types/estree": "^1.0.8",
|
|
53
|
+
"@types/estree-jsx": "^1.0.5",
|
|
54
|
+
"@types/mdx": "^2.0.13",
|
|
55
|
+
"@types/qrcode": "^1.5.6",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.47.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.47.0",
|
|
58
|
+
"@vitest/coverage-v8": "^4.0.10",
|
|
59
|
+
"eslint": "^9.39.1",
|
|
60
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
61
|
"eslint-plugin-lit": "^2.1.1",
|
|
73
|
-
"eslint-plugin-prettier": "^5.
|
|
62
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
63
|
+
"happy-dom": "^20.0.10",
|
|
74
64
|
"husky": "^9.1.7",
|
|
75
|
-
"lint-staged": "^
|
|
65
|
+
"lint-staged": "^16.2.7",
|
|
76
66
|
"lit-analyzer": "^2.0.3",
|
|
77
|
-
"next": "^
|
|
78
|
-
"nextra": "^
|
|
79
|
-
"nextra-theme-docs": "^
|
|
80
|
-
"prettier": "^3.
|
|
81
|
-
"
|
|
82
|
-
"
|
|
67
|
+
"next": "^16.0.3",
|
|
68
|
+
"nextra": "^4.6.0",
|
|
69
|
+
"nextra-theme-docs": "^4.6.0",
|
|
70
|
+
"prettier": "^3.6.2",
|
|
71
|
+
"puppeteer": "^24.30.0",
|
|
72
|
+
"sonarqube-scanner": "^4.3.2",
|
|
73
|
+
"start-server-and-test": "^2.1.3",
|
|
74
|
+
"terser": "^5.44.1",
|
|
83
75
|
"ts-lit-plugin": "^2.0.2",
|
|
84
|
-
"typescript": "~5.
|
|
85
|
-
"vite": "^
|
|
86
|
-
"vite-plugin-css-injected-by-js": "^3.5.2"
|
|
76
|
+
"typescript": "~5.9.3",
|
|
77
|
+
"vite": "^7.2.2",
|
|
78
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
79
|
+
"vitest": "^4.0.10"
|
|
87
80
|
},
|
|
88
81
|
"lint-staged": {
|
|
89
82
|
"src/**/*.{json,html,css,scss,md}": [
|
|
@@ -94,5 +87,28 @@
|
|
|
94
87
|
"prettier --write"
|
|
95
88
|
]
|
|
96
89
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
90
|
+
"scripts": {
|
|
91
|
+
"dev": "vite --force",
|
|
92
|
+
"build": "pnpm run build:es && pnpm run build:cjs && pnpm run build:iife && pnpm run build:copy-sw",
|
|
93
|
+
"build:es": "BUILD_FORMAT=es vite build",
|
|
94
|
+
"build:cjs": "BUILD_FORMAT=cjs vite build",
|
|
95
|
+
"build:iife": "BUILD_FORMAT=iife-route-view-totems vite build && BUILD_FORMAT=iife-map-view-with-modal vite build",
|
|
96
|
+
"build:copy-sw": "mkdir -p dist/sw && cp src/sw/mvx-tiles-sw.js dist/sw/mvx-tiles-sw.js",
|
|
97
|
+
"preview": "vite preview",
|
|
98
|
+
"lint": "eslint . --ext .ts",
|
|
99
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
100
|
+
"format": "prettier --write \"**/*.{ts,js,json,html}\"",
|
|
101
|
+
"analyze": "lit-analyzer",
|
|
102
|
+
"test": "vitest run",
|
|
103
|
+
"test:watch": "vitest",
|
|
104
|
+
"test:coverage": "vitest run --coverage",
|
|
105
|
+
"test:integration": "start-server-and-test dev http://localhost:3000 test:integration:run",
|
|
106
|
+
"test:integration:run": "vitest run --config vitest.integration.config.ts",
|
|
107
|
+
"docs:dev": "cd docs && next dev",
|
|
108
|
+
"docs:build": "NEXT_EXPORT=true cd docs && next build && cp ../src/docs-base-redirect.html ../docs-build/index.html",
|
|
109
|
+
"docs:start": "cd docs && next start",
|
|
110
|
+
"upload-sourcemaps": "./scripts/upload-sourcemaps-to-rollbar.sh",
|
|
111
|
+
"build-with-sourcemaps": "./scripts/build-and-upload-sourcemaps.sh",
|
|
112
|
+
"sonar": "sonar-scanner"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./consume-D8FiYlnP.cjs"),t=require("./lazy-load-DbvIE8M6.cjs");var r=Object.defineProperty;class o extends t.i{getFloors(){if(!this.sdkData)return[];const{parentPlace:e,generalConfig:t}=this.sdkData;let r=e?.innerFloors||[];return t?.enabledFloors?.length>0&&(r=r.filter((e=>t.enabledFloors.includes(e.key)))),r}getCurrentFloor(){return this.sdkData?.currentFloor}getEnabledFloors(){return this.sdkData?.enabledFloors||[]}isFloorActive(e){const t=this.getCurrentFloor();return e.key===t?.key}isFloorEnabled(e){return this.getEnabledFloors().some((t=>t.key===e.key))}selectFloor(e){this.dispatchEvent(new CustomEvent("floorChange",{detail:e,bubbles:!0,composed:!0}))}getFloorDisplayName(e){return e.name||e.title||e.key}}((e,t,o)=>{for(var s,l=void 0,n=e.length-1;n>=0;n--)(s=e[n])&&(l=s(t,o,l)||l);l&&r(t,o,l)})([e.c({context:t.sdkContext,subscribe:!0})],o.prototype,"sdkData"),exports.BaseFloorSelector=o;
|
|
2
|
-
//# sourceMappingURL=base-floor-selector-yrQVnvtZ.cjs.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("./lazy-load-DbvIE8M6.cjs"),s=1;
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
|
-
*/class e{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,s,e){this._$Ct=t,this._$AM=s,this._$Ci=e}_$AS(t,s){return this.update(t,s)}update(t,s){return this.render(...s)}}
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright 2018 Google LLC
|
|
10
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const r=(t=>(...s)=>({_$litDirective$:t,values:s}))(class extends e{constructor(t){if(super(t),t.type!==s||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[e]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const r=s.element.classList;for(const t of this.st)t in e||(r.remove(t),this.st.delete(t));for(const t in e){const s=!!e[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t.T}});exports.e=r;
|
|
12
|
-
//# sourceMappingURL=class-map-7neI3FKM.cjs.map
|