@record-evolution/widget-mapbox 1.5.18 → 1.5.19
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/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "REWidget widget-mapbox",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "widget-mapbox",
|
|
6
|
-
"version": "1.5.
|
|
6
|
+
"version": "1.5.19",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=24.9.0",
|
|
9
9
|
"npm": ">=10.0.2"
|
|
@@ -25,8 +25,12 @@
|
|
|
25
25
|
"link": "npm link && cd ../RESWARM/frontend && npm link @record-evolution/widget-mapbox",
|
|
26
26
|
"unlink": "npm unlink --global && cd ../RESWARM/frontend && npm unlink @record-evolution/widget-mapbox && npm i @record-evolution/widget-mapbox",
|
|
27
27
|
"types": "cat src/definition-schema.json | json2ts > src/definition-schema.d.ts",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"cors": "gcloud storage buckets update gs://reswarm-images --cors-file=src/cors-config.json",
|
|
29
|
+
"preversion": "sh scripts/release-preflight.sh",
|
|
30
|
+
"postversion": "git push --follow-tags && sh scripts/release-verify.sh",
|
|
31
|
+
"release": "npm version patch",
|
|
32
|
+
"release:minor": "npm version minor",
|
|
33
|
+
"release:major": "npm version major"
|
|
30
34
|
},
|
|
31
35
|
"dependencies": {
|
|
32
36
|
"@types/geojson": "^7946.0.16",
|
package/src/widget-mapbox.ts
CHANGED
|
@@ -99,12 +99,9 @@ export class WidgetMapbox extends LitElement {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
registerTheme(theme?: Theme) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
this.themeTitleColor = cssTextColor || this.theme?.theme_object?.title?.textStyle?.color
|
|
106
|
-
this.themeSubtitleColor =
|
|
107
|
-
cssTextColor || this.theme?.theme_object?.title?.subtextStyle?.color || this.themeTitleColor
|
|
102
|
+
this.themeBgColor = `var(--re-tile-background-color, ${this.theme?.theme_object?.backgroundColor || 'transparent'})`
|
|
103
|
+
this.themeTitleColor = `var(--re-text-color, ${this.theme?.theme_object?.title?.textStyle?.color || 'inherit'})`
|
|
104
|
+
this.themeSubtitleColor = `var(--re-text-color, ${this.theme?.theme_object?.title?.subtextStyle?.color || this.theme?.theme_object?.title?.textStyle?.color || 'inherit'})`
|
|
108
105
|
}
|
|
109
106
|
|
|
110
107
|
updateMap() {
|