@heycar/heycars-map 0.9.6 → 0.9.8
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/README.md +15 -2
- package/bin/checkVersion.js +36 -0
- package/bin/checkVersion.ts +47 -0
- package/bin/tsconfig.json +9 -0
- package/dist/index.cjs +18 -9
- package/dist/index.js +18 -9
- package/dist/src/style.css.d.ts +1 -0
- package/dist/src/var.css.d.ts +5 -0
- package/dist/style.css +14 -10
- package/package.json +7 -1
- package/tsconfig.json +1 -0
package/README.md
CHANGED
|
@@ -22,6 +22,19 @@ npm install @heycar/heycars-map --save
|
|
|
22
22
|
import "@heycar/heycars-map/dist/style.css";
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
### 自定义字体
|
|
26
|
+
|
|
27
|
+
目前地图提供了 3 个字体 css variables 用于外部制定特殊字体
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
/* 使用特殊字体 HarmonyOS_Sans_SC_Regular */
|
|
31
|
+
body {
|
|
32
|
+
--HEYCAR_MAP_CSS_VAR_FONT_REGULAR: HarmonyOS_Sans_SC_Regular, "PingFangSC-Regular", "PingFang SC";
|
|
33
|
+
--HEYCAR_MAP_CSS_VAR_FONT_MEDIUM: HarmonyOS_Sans_SC_Medium, "PingFangSC-Medium", "PingFang SC";
|
|
34
|
+
--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD: HarmonyOS_Sans_SC_Bold, "PingFangSC-Semibold", "PingFang SC";
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
25
38
|
### 使用
|
|
26
39
|
|
|
27
40
|
常用数据结构
|
|
@@ -202,7 +215,7 @@ export default defineComponent({
|
|
|
202
215
|
" 最终的地址是: ",
|
|
203
216
|
place,
|
|
204
217
|
" 是否在绿区内: ",
|
|
205
|
-
isInZone
|
|
218
|
+
isInZone,
|
|
206
219
|
);
|
|
207
220
|
}}
|
|
208
221
|
onClickLocator={() =>
|
|
@@ -313,7 +326,7 @@ export default defineComponent({
|
|
|
313
326
|
" 最终的地址是: ",
|
|
314
327
|
place,
|
|
315
328
|
" 是否在绿区内: ",
|
|
316
|
-
isInZone
|
|
329
|
+
isInZone,
|
|
317
330
|
);
|
|
318
331
|
}}
|
|
319
332
|
onGeoError={() => {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { open } from "node:fs/promises";
|
|
3
|
+
import * as path from "node:path";
|
|
4
|
+
import * as process from "node:process";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
import * as semver from "semver";
|
|
7
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
8
|
+
const libPackagePath = path.resolve(__dirname, "../package.json");
|
|
9
|
+
const projectPackagePath = path.resolve(process.cwd(), "package.json");
|
|
10
|
+
const readProjectPackage = async (packagePath) => {
|
|
11
|
+
let fileHandler;
|
|
12
|
+
try {
|
|
13
|
+
fileHandler = await open(packagePath);
|
|
14
|
+
} catch (err) {
|
|
15
|
+
if (err.code == "ENOENT") throw new Error("hint: 确保在项目根目录下运行");
|
|
16
|
+
else throw err;
|
|
17
|
+
}
|
|
18
|
+
try {
|
|
19
|
+
const content = await fileHandler.readFile("utf-8");
|
|
20
|
+
return JSON.parse(content);
|
|
21
|
+
} finally {
|
|
22
|
+
fileHandler.close();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const checkVersion = async (projectPackagePath, libPackagePath) => {
|
|
26
|
+
const { dependencies } = await readProjectPackage(projectPackagePath);
|
|
27
|
+
const pkg = await readProjectPackage(libPackagePath);
|
|
28
|
+
const range = dependencies?.[pkg.name];
|
|
29
|
+
if (range.startsWith("file:///")) return;
|
|
30
|
+
if (!range) throw new Error(`hint: 在 package.json 的 dependencies 下面没有 ${pkg.name}`);
|
|
31
|
+
if (!semver.satisfies(pkg.version, range))
|
|
32
|
+
throw new Error(
|
|
33
|
+
`hint: ${pkg.name} 版本不匹配, 要求的版本是: ${range}, 实际安装的版本是 ${pkg.version}`,
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
checkVersion(projectPackagePath, libPackagePath);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { FileHandle, open } from "node:fs/promises";
|
|
4
|
+
import * as path from "node:path";
|
|
5
|
+
import * as process from "node:process";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
import * as semver from "semver";
|
|
8
|
+
|
|
9
|
+
interface Package {
|
|
10
|
+
name?: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
dependencies?: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
16
|
+
const libPackagePath = path.resolve(__dirname, "../package.json");
|
|
17
|
+
const projectPackagePath = path.resolve(process.cwd(), "package.json");
|
|
18
|
+
|
|
19
|
+
const readProjectPackage = async (packagePath: string): Promise<Package> => {
|
|
20
|
+
let fileHandler: FileHandle;
|
|
21
|
+
try {
|
|
22
|
+
fileHandler = await open(packagePath);
|
|
23
|
+
} catch (err) {
|
|
24
|
+
if (err.code == "ENOENT") throw new Error("hint: 确保在项目根目录下运行");
|
|
25
|
+
else throw err;
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
const content = await fileHandler.readFile("utf-8");
|
|
29
|
+
return JSON.parse(content);
|
|
30
|
+
} finally {
|
|
31
|
+
fileHandler.close();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const checkVersion = async (projectPackagePath: string, libPackagePath: string) => {
|
|
36
|
+
const { dependencies } = await readProjectPackage(projectPackagePath);
|
|
37
|
+
const pkg = await readProjectPackage(libPackagePath);
|
|
38
|
+
const range = dependencies?.[pkg.name];
|
|
39
|
+
if (range.startsWith("file:///")) return;
|
|
40
|
+
if (!range) throw new Error(`hint: 在 package.json 的 dependencies 下面没有 ${pkg.name}`);
|
|
41
|
+
if (!semver.satisfies(pkg.version, range))
|
|
42
|
+
throw new Error(
|
|
43
|
+
`hint: ${pkg.name} 版本不匹配, 要求的版本是: ${range}, 实际安装的版本是 ${pkg.version}`,
|
|
44
|
+
);
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
checkVersion(projectPackagePath, libPackagePath);
|
package/dist/index.cjs
CHANGED
|
@@ -7,14 +7,18 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
9
|
const Vue = require("vue");
|
|
10
|
-
const
|
|
10
|
+
const style_css_ts_vanilla = "";
|
|
11
11
|
const name = "@heycar/heycars-map";
|
|
12
|
-
const version = "0.9.
|
|
12
|
+
const version = "0.9.8";
|
|
13
13
|
const type = "module";
|
|
14
|
+
const bin = {
|
|
15
|
+
checkVersion: "./bin/checkVersion.js"
|
|
16
|
+
};
|
|
14
17
|
const scripts = {
|
|
15
18
|
dev: "vite -c vite.config.dev.ts",
|
|
16
19
|
"dev:lib": 'concurrently "vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false" "tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch"',
|
|
17
20
|
build: "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
|
|
21
|
+
"build:bin": "tsc -p ./bin/tsconfig.json && chmod +x bin/*.js",
|
|
18
22
|
lint: "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
|
|
19
23
|
};
|
|
20
24
|
const types = "./dist/index.d.ts";
|
|
@@ -53,6 +57,7 @@ const peerDependenciesMeta = {
|
|
|
53
57
|
const devDependencies = {
|
|
54
58
|
"@types/google.maps": "^3.52.0",
|
|
55
59
|
"@types/lodash-es": "^4.17.6",
|
|
60
|
+
"@types/semver": "^7.5.1",
|
|
56
61
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
57
62
|
"@typescript-eslint/parser": "^5.52.0",
|
|
58
63
|
"@vanilla-extract/css": "^1.9.5",
|
|
@@ -71,6 +76,7 @@ const devDependencies = {
|
|
|
71
76
|
"eslint-plugin-prettier": "^4.2.1",
|
|
72
77
|
"eslint-plugin-vue": "^9.9.0",
|
|
73
78
|
prettier: "^2.8.4",
|
|
79
|
+
semver: "^7.5.4",
|
|
74
80
|
typescript: "^4.9.3",
|
|
75
81
|
"unplugin-vue-jsx": "^0.1.2",
|
|
76
82
|
vite: "^4.1.0",
|
|
@@ -90,6 +96,7 @@ const pkg = {
|
|
|
90
96
|
name,
|
|
91
97
|
version,
|
|
92
98
|
type,
|
|
99
|
+
bin,
|
|
93
100
|
scripts,
|
|
94
101
|
types,
|
|
95
102
|
module: module$1,
|
|
@@ -1529,12 +1536,12 @@ const GmapAdvancedMarkerView = defineSetup(function GmapAdvancedMarkerView2(prop
|
|
|
1529
1536
|
return () => null;
|
|
1530
1537
|
});
|
|
1531
1538
|
const createDom = (tag, props, innerHtml) => {
|
|
1532
|
-
const { class: className, style
|
|
1539
|
+
const { class: className, style, ...restProps } = props != null ? props : {};
|
|
1533
1540
|
const elm = document.createElement(tag);
|
|
1534
1541
|
if (className)
|
|
1535
1542
|
elm.className = className;
|
|
1536
|
-
if (
|
|
1537
|
-
elm.style.cssText =
|
|
1543
|
+
if (style)
|
|
1544
|
+
elm.style.cssText = style;
|
|
1538
1545
|
Object.assign(elm, restProps);
|
|
1539
1546
|
if (innerHtml)
|
|
1540
1547
|
elm.innerHTML = innerHtml;
|
|
@@ -6247,12 +6254,12 @@ const APassengerCircle = defineSetup(function APassengerCircle2(props) {
|
|
|
6247
6254
|
angle
|
|
6248
6255
|
} = props;
|
|
6249
6256
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
6250
|
-
const
|
|
6257
|
+
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
6251
6258
|
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
6252
6259
|
return `
|
|
6253
6260
|
<img class="APassengerCircle ${passengerCircle({
|
|
6254
6261
|
type: type2
|
|
6255
|
-
})}" style="${
|
|
6262
|
+
})}" style="${style}" src="${src}">
|
|
6256
6263
|
`;
|
|
6257
6264
|
});
|
|
6258
6265
|
return () => {
|
|
@@ -6274,14 +6281,14 @@ const GPassengerCircle = defineSetup(function GPassengerCircle2(props) {
|
|
|
6274
6281
|
angle
|
|
6275
6282
|
} = props;
|
|
6276
6283
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
6277
|
-
const
|
|
6284
|
+
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
6278
6285
|
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
6279
6286
|
return createDom("img", {
|
|
6280
6287
|
class: `GPassengerCircle ${passengerCircle({
|
|
6281
6288
|
type: type2
|
|
6282
6289
|
})}`,
|
|
6283
6290
|
src,
|
|
6284
|
-
style
|
|
6291
|
+
style
|
|
6285
6292
|
});
|
|
6286
6293
|
});
|
|
6287
6294
|
return () => Vue.h(GmapAdvancedMarkerView, {
|
|
@@ -7131,6 +7138,8 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
|
|
|
7131
7138
|
});
|
|
7132
7139
|
watchPostEffectOnce(async () => {
|
|
7133
7140
|
const value = await updatePlaceCandidates(defaultPlace);
|
|
7141
|
+
if (value.isInZone)
|
|
7142
|
+
setZoom(ZONE_ZOOM);
|
|
7134
7143
|
emit("changeRecomandPlace", value);
|
|
7135
7144
|
});
|
|
7136
7145
|
Vue.watchEffect(() => {
|
package/dist/index.js
CHANGED
|
@@ -5,14 +5,18 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
|
|
8
|
-
const
|
|
8
|
+
const style_css_ts_vanilla = "";
|
|
9
9
|
const name = "@heycar/heycars-map";
|
|
10
|
-
const version = "0.9.
|
|
10
|
+
const version = "0.9.8";
|
|
11
11
|
const type = "module";
|
|
12
|
+
const bin = {
|
|
13
|
+
checkVersion: "./bin/checkVersion.js"
|
|
14
|
+
};
|
|
12
15
|
const scripts = {
|
|
13
16
|
dev: "vite -c vite.config.dev.ts",
|
|
14
17
|
"dev:lib": 'concurrently "vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false" "tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch"',
|
|
15
18
|
build: "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
|
|
19
|
+
"build:bin": "tsc -p ./bin/tsconfig.json && chmod +x bin/*.js",
|
|
16
20
|
lint: "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
|
|
17
21
|
};
|
|
18
22
|
const types = "./dist/index.d.ts";
|
|
@@ -51,6 +55,7 @@ const peerDependenciesMeta = {
|
|
|
51
55
|
const devDependencies = {
|
|
52
56
|
"@types/google.maps": "^3.52.0",
|
|
53
57
|
"@types/lodash-es": "^4.17.6",
|
|
58
|
+
"@types/semver": "^7.5.1",
|
|
54
59
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
55
60
|
"@typescript-eslint/parser": "^5.52.0",
|
|
56
61
|
"@vanilla-extract/css": "^1.9.5",
|
|
@@ -69,6 +74,7 @@ const devDependencies = {
|
|
|
69
74
|
"eslint-plugin-prettier": "^4.2.1",
|
|
70
75
|
"eslint-plugin-vue": "^9.9.0",
|
|
71
76
|
prettier: "^2.8.4",
|
|
77
|
+
semver: "^7.5.4",
|
|
72
78
|
typescript: "^4.9.3",
|
|
73
79
|
"unplugin-vue-jsx": "^0.1.2",
|
|
74
80
|
vite: "^4.1.0",
|
|
@@ -88,6 +94,7 @@ const pkg = {
|
|
|
88
94
|
name,
|
|
89
95
|
version,
|
|
90
96
|
type,
|
|
97
|
+
bin,
|
|
91
98
|
scripts,
|
|
92
99
|
types,
|
|
93
100
|
module,
|
|
@@ -1527,12 +1534,12 @@ const GmapAdvancedMarkerView = defineSetup(function GmapAdvancedMarkerView2(prop
|
|
|
1527
1534
|
return () => null;
|
|
1528
1535
|
});
|
|
1529
1536
|
const createDom = (tag, props, innerHtml) => {
|
|
1530
|
-
const { class: className, style
|
|
1537
|
+
const { class: className, style, ...restProps } = props != null ? props : {};
|
|
1531
1538
|
const elm = document.createElement(tag);
|
|
1532
1539
|
if (className)
|
|
1533
1540
|
elm.className = className;
|
|
1534
|
-
if (
|
|
1535
|
-
elm.style.cssText =
|
|
1541
|
+
if (style)
|
|
1542
|
+
elm.style.cssText = style;
|
|
1536
1543
|
Object.assign(elm, restProps);
|
|
1537
1544
|
if (innerHtml)
|
|
1538
1545
|
elm.innerHTML = innerHtml;
|
|
@@ -6245,12 +6252,12 @@ const APassengerCircle = defineSetup(function APassengerCircle2(props) {
|
|
|
6245
6252
|
angle
|
|
6246
6253
|
} = props;
|
|
6247
6254
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
6248
|
-
const
|
|
6255
|
+
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
6249
6256
|
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
6250
6257
|
return `
|
|
6251
6258
|
<img class="APassengerCircle ${passengerCircle({
|
|
6252
6259
|
type: type2
|
|
6253
|
-
})}" style="${
|
|
6260
|
+
})}" style="${style}" src="${src}">
|
|
6254
6261
|
`;
|
|
6255
6262
|
});
|
|
6256
6263
|
return () => {
|
|
@@ -6272,14 +6279,14 @@ const GPassengerCircle = defineSetup(function GPassengerCircle2(props) {
|
|
|
6272
6279
|
angle
|
|
6273
6280
|
} = props;
|
|
6274
6281
|
const src = size === "large" ? angle === void 0 ? imgPassengerCircle : imgPassengerCircleArrow : angle === void 0 ? imgPassengerSmall : imgPassengerSmallArrow;
|
|
6275
|
-
const
|
|
6282
|
+
const style = angle === void 0 ? "" : `transform: rotate(var(${angle}))`;
|
|
6276
6283
|
const type2 = size === "large" ? angle === void 0 ? "large" : "largeArrow" : angle === void 0 ? "small" : "smallArrow";
|
|
6277
6284
|
return createDom("img", {
|
|
6278
6285
|
class: `GPassengerCircle ${passengerCircle({
|
|
6279
6286
|
type: type2
|
|
6280
6287
|
})}`,
|
|
6281
6288
|
src,
|
|
6282
|
-
style
|
|
6289
|
+
style
|
|
6283
6290
|
});
|
|
6284
6291
|
});
|
|
6285
6292
|
return () => h(GmapAdvancedMarkerView, {
|
|
@@ -7129,6 +7136,8 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
|
|
|
7129
7136
|
});
|
|
7130
7137
|
watchPostEffectOnce(async () => {
|
|
7131
7138
|
const value = await updatePlaceCandidates(defaultPlace);
|
|
7139
|
+
if (value.isInZone)
|
|
7140
|
+
setZoom(ZONE_ZOOM);
|
|
7132
7141
|
emit("changeRecomandPlace", value);
|
|
7133
7142
|
});
|
|
7134
7143
|
watchEffect(() => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const fontVars: {
|
|
2
|
+
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
|
+
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
4
|
+
semiBold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
:root {
|
|
2
|
+
--HEYCAR_MAP_CSS_VAR_FONT_REGULAR: PingFangSC-Regular, PingFang SC;
|
|
3
|
+
--HEYCAR_MAP_CSS_VAR_FONT_MEDIUM: PingFangSC-Medium, PingFang SC;
|
|
4
|
+
--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD: PingFangSC-Semibold, PingFang SC;
|
|
5
|
+
}.n8tgem0 {
|
|
2
6
|
pointer-events: none;
|
|
3
7
|
position: absolute;
|
|
4
8
|
bottom: 50%;
|
|
@@ -28,7 +32,7 @@
|
|
|
28
32
|
.n8tgem5 {
|
|
29
33
|
display: -webkit-box;
|
|
30
34
|
font-size: 3.47vw;
|
|
31
|
-
font-family:
|
|
35
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD);
|
|
32
36
|
font-weight: 600;
|
|
33
37
|
color: #FFFFFF;
|
|
34
38
|
line-height: 4.8vw;
|
|
@@ -39,7 +43,7 @@
|
|
|
39
43
|
.n8tgem6 {
|
|
40
44
|
margin-top: 0.53vw;
|
|
41
45
|
font-size: 2.93vw;
|
|
42
|
-
font-family:
|
|
46
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
43
47
|
font-weight: 400;
|
|
44
48
|
color: #FFFFFF;
|
|
45
49
|
line-height: 4.27vw;
|
|
@@ -82,7 +86,7 @@
|
|
|
82
86
|
}
|
|
83
87
|
._15rq2xn2 {
|
|
84
88
|
font-size: 3.47vw;
|
|
85
|
-
font-family:
|
|
89
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD);
|
|
86
90
|
font-weight: 600;
|
|
87
91
|
color: #FFFFFF;
|
|
88
92
|
line-height: 4.8vw;
|
|
@@ -90,7 +94,7 @@
|
|
|
90
94
|
}
|
|
91
95
|
._15rq2xn3 {
|
|
92
96
|
font-size: 2.93vw;
|
|
93
|
-
font-family:
|
|
97
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
94
98
|
font-weight: 400;
|
|
95
99
|
color: #EAFAF8;
|
|
96
100
|
line-height: 4.27vw;
|
|
@@ -172,7 +176,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
|
|
|
172
176
|
max-width: 41.33vw;
|
|
173
177
|
width: max-content;
|
|
174
178
|
font-size: 3.2vw;
|
|
175
|
-
font-family:
|
|
179
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_MEDIUM);
|
|
176
180
|
font-weight: 500;
|
|
177
181
|
color: #1E1E1E;
|
|
178
182
|
line-height: 4vw;
|
|
@@ -183,7 +187,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
|
|
|
183
187
|
._4a4ovk4 {
|
|
184
188
|
padding-top: 0.6vw;
|
|
185
189
|
font-size: 2.4vw;
|
|
186
|
-
font-family:
|
|
190
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
187
191
|
font-weight: 400;
|
|
188
192
|
color: #7E7E7E;
|
|
189
193
|
line-height: 3.47vw;
|
|
@@ -191,7 +195,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
|
|
|
191
195
|
}
|
|
192
196
|
._4a4ovk5 {
|
|
193
197
|
color: #4471FF;
|
|
194
|
-
font-family:
|
|
198
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_MEDIUM);
|
|
195
199
|
font-weight: 500;
|
|
196
200
|
}
|
|
197
201
|
._4a4ovk6 {
|
|
@@ -275,7 +279,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
|
|
|
275
279
|
.fhyw8c {
|
|
276
280
|
display: -webkit-box;
|
|
277
281
|
font-size: 3.2vw;
|
|
278
|
-
font-family:
|
|
282
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD);
|
|
279
283
|
font-weight: 600;
|
|
280
284
|
color: #243E66;
|
|
281
285
|
line-height: 4.53vw;
|
|
@@ -301,7 +305,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
|
|
|
301
305
|
}
|
|
302
306
|
._65j3sr4 {
|
|
303
307
|
font-size: 3.2vw;
|
|
304
|
-
font-family:
|
|
308
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_MEDIUM);
|
|
305
309
|
font-weight: 500;
|
|
306
310
|
color: #1E1E1E;
|
|
307
311
|
line-height: 3.8vw;
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heycar/heycars-map",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.8",
|
|
4
4
|
"type": "module",
|
|
5
|
+
"bin": {
|
|
6
|
+
"checkVersion": "./bin/checkVersion.js"
|
|
7
|
+
},
|
|
5
8
|
"scripts": {
|
|
6
9
|
"dev": "vite -c vite.config.dev.ts",
|
|
7
10
|
"dev:lib": "concurrently \"vite build -c vite.config.dev.lib.ts --watch --emptyOutDir false\" \"tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration --watch\"",
|
|
8
11
|
"build": "rm -rf dist && vite build && tsc --declarationDir dist --emitDeclarationOnly --noEmit false --declaration",
|
|
12
|
+
"build:bin": "tsc -p ./bin/tsconfig.json && chmod +x bin/*.js",
|
|
9
13
|
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --report-unused-disable-directives --max-warnings 0"
|
|
10
14
|
},
|
|
11
15
|
"types": "./dist/index.d.ts",
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
"devDependencies": {
|
|
45
49
|
"@types/google.maps": "^3.52.0",
|
|
46
50
|
"@types/lodash-es": "^4.17.6",
|
|
51
|
+
"@types/semver": "^7.5.1",
|
|
47
52
|
"@typescript-eslint/eslint-plugin": "^5.52.0",
|
|
48
53
|
"@typescript-eslint/parser": "^5.52.0",
|
|
49
54
|
"@vanilla-extract/css": "^1.9.5",
|
|
@@ -62,6 +67,7 @@
|
|
|
62
67
|
"eslint-plugin-prettier": "^4.2.1",
|
|
63
68
|
"eslint-plugin-vue": "^9.9.0",
|
|
64
69
|
"prettier": "^2.8.4",
|
|
70
|
+
"semver": "^7.5.4",
|
|
65
71
|
"typescript": "^4.9.3",
|
|
66
72
|
"unplugin-vue-jsx": "^0.1.2",
|
|
67
73
|
"vite": "^4.1.0",
|