@heycar/heycars-map 0.9.23-alpha8 → 0.9.23-alpha9

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 CHANGED
@@ -47,7 +47,6 @@ export type Place = {
47
47
  lat: number;
48
48
  name: string;
49
49
  displayName: string;
50
- photo?: string;
51
50
  };
52
51
 
53
52
  export interface Zone {
package/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ if (typeof GeolocationPositionError === "undefined") {
19
19
  };
20
20
  }
21
21
  const name = "@heycar/heycars-map";
22
- const version = "0.9.23-alpha8";
22
+ const version = "0.9.23-alpha9";
23
23
  const type = "module";
24
24
  const bin = {
25
25
  checkVersion: "./bin/checkVersion.js"
@@ -4451,9 +4451,11 @@ const watchVisibilityState = () => {
4451
4451
  class QueryWxSignatureStatus {
4452
4452
  constructor(timeout) {
4453
4453
  __publicField(this, "error");
4454
- __publicField(this, "timeout");
4455
4454
  __publicField(this, "status", "PENDING");
4456
- __publicField(this, "pendingStatusPromise", new Promise((resolve, reject) => {
4455
+ __publicField(this, "pendingStatusPromise");
4456
+ __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4457
+ __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4458
+ this.pendingStatusPromise = new Promise((resolve, reject) => {
4457
4459
  wx == null ? void 0 : wx.ready(() => {
4458
4460
  this.status = "READY";
4459
4461
  resolve("READY");
@@ -4468,11 +4470,8 @@ class QueryWxSignatureStatus {
4468
4470
  return;
4469
4471
  this.status = "TIMEOUT";
4470
4472
  resolve("TIMEOUT");
4471
- }, this.timeout);
4472
- }));
4473
- __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4474
- __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4475
- this.timeout = timeout;
4473
+ }, timeout);
4474
+ });
4476
4475
  }
4477
4476
  get statusPromise() {
4478
4477
  switch (this.status) {
@@ -7373,7 +7372,7 @@ const useMapRecomendPlace = (props) => {
7373
7372
  force,
7374
7373
  zone: zone2
7375
7374
  } = await findAttachedPlace({ lng, lat, name: "", displayName: "" });
7376
- if (!isPointEqual(place2point(closestPlace), point)) {
7375
+ if (isPlacesInclude(candidates, closestPlace)) {
7377
7376
  return { place: { ...closestPlace }, zone: zone2, available, candidates, force };
7378
7377
  }
7379
7378
  const regeoPlace = await reGeoPlacePromise;
@@ -8247,7 +8246,7 @@ var labelLayout = "fhyw8b";
8247
8246
  var labelStroke = "fhyw8d fhyw8c";
8248
8247
  var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
8249
8248
  var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
8250
- var tag = createRuntimeFn({ defaultClassName: "fhyw8e", variantClassNames: { textAlign: { left: "fhyw8f", right: "fhyw8g" } }, defaultVariants: {}, compoundVariants: [] });
8249
+ var tag = "fhyw8e";
8251
8250
  const DEFAULT_TEXT_ALIGN = "right";
8252
8251
  const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8253
8252
  emit
@@ -8258,9 +8257,7 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8258
8257
  hideIcon = false,
8259
8258
  textAlign = DEFAULT_TEXT_ALIGN
8260
8259
  } = props;
8261
- const tagArea = tag$1 ? `<div class="${tag({
8262
- textAlign
8263
- })}">${tag$1}</div>` : "";
8260
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8264
8261
  return `
8265
8262
  <div class="APlaceCircle ${placeCircleLayout({
8266
8263
  textAlign
@@ -8318,9 +8315,7 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
8318
8315
  hideIcon = false,
8319
8316
  textAlign = DEFAULT_TEXT_ALIGN
8320
8317
  } = props;
8321
- const tagArea = tag$1 ? `<div class="${tag({
8322
- textAlign
8323
- })}">${tag$1}</div>` : "";
8318
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8324
8319
  return createDom("div", {
8325
8320
  class: `GPlaceCircle ${placeCircleLayout({
8326
8321
  textAlign
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ if (typeof GeolocationPositionError === "undefined") {
17
17
  };
18
18
  }
19
19
  const name = "@heycar/heycars-map";
20
- const version = "0.9.23-alpha8";
20
+ const version = "0.9.23-alpha9";
21
21
  const type = "module";
22
22
  const bin = {
23
23
  checkVersion: "./bin/checkVersion.js"
@@ -4449,9 +4449,11 @@ const watchVisibilityState = () => {
4449
4449
  class QueryWxSignatureStatus {
4450
4450
  constructor(timeout) {
4451
4451
  __publicField(this, "error");
4452
- __publicField(this, "timeout");
4453
4452
  __publicField(this, "status", "PENDING");
4454
- __publicField(this, "pendingStatusPromise", new Promise((resolve, reject) => {
4453
+ __publicField(this, "pendingStatusPromise");
4454
+ __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4455
+ __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4456
+ this.pendingStatusPromise = new Promise((resolve, reject) => {
4455
4457
  wx == null ? void 0 : wx.ready(() => {
4456
4458
  this.status = "READY";
4457
4459
  resolve("READY");
@@ -4466,11 +4468,8 @@ class QueryWxSignatureStatus {
4466
4468
  return;
4467
4469
  this.status = "TIMEOUT";
4468
4470
  resolve("TIMEOUT");
4469
- }, this.timeout);
4470
- }));
4471
- __publicField(this, "timoutStatusPromise", Promise.resolve("TIMEOUT"));
4472
- __publicField(this, "readyStatusPromise", Promise.resolve("READY"));
4473
- this.timeout = timeout;
4471
+ }, timeout);
4472
+ });
4474
4473
  }
4475
4474
  get statusPromise() {
4476
4475
  switch (this.status) {
@@ -7371,7 +7370,7 @@ const useMapRecomendPlace = (props) => {
7371
7370
  force,
7372
7371
  zone: zone2
7373
7372
  } = await findAttachedPlace({ lng, lat, name: "", displayName: "" });
7374
- if (!isPointEqual(place2point(closestPlace), point)) {
7373
+ if (isPlacesInclude(candidates, closestPlace)) {
7375
7374
  return { place: { ...closestPlace }, zone: zone2, available, candidates, force };
7376
7375
  }
7377
7376
  const regeoPlace = await reGeoPlacePromise;
@@ -8245,7 +8244,7 @@ var labelLayout = "fhyw8b";
8245
8244
  var labelStroke = "fhyw8d fhyw8c";
8246
8245
  var placeCircleLayout = createRuntimeFn({ defaultClassName: "fhyw80", variantClassNames: { textAlign: { left: "fhyw81", right: "fhyw82" } }, defaultVariants: {}, compoundVariants: [] });
8247
8246
  var placeIcon = createRuntimeFn({ defaultClassName: "fhyw88", variantClassNames: { hideIcon: { true: "fhyw89", false: "fhyw8a" } }, defaultVariants: {}, compoundVariants: [] });
8248
- var tag = createRuntimeFn({ defaultClassName: "fhyw8e", variantClassNames: { textAlign: { left: "fhyw8f", right: "fhyw8g" } }, defaultVariants: {}, compoundVariants: [] });
8247
+ var tag = "fhyw8e";
8249
8248
  const DEFAULT_TEXT_ALIGN = "right";
8250
8249
  const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8251
8250
  emit
@@ -8256,9 +8255,7 @@ const APlaceCircle = defineSetup(function APlaceCircle2(props, {
8256
8255
  hideIcon = false,
8257
8256
  textAlign = DEFAULT_TEXT_ALIGN
8258
8257
  } = props;
8259
- const tagArea = tag$1 ? `<div class="${tag({
8260
- textAlign
8261
- })}">${tag$1}</div>` : "";
8258
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8262
8259
  return `
8263
8260
  <div class="APlaceCircle ${placeCircleLayout({
8264
8261
  textAlign
@@ -8316,9 +8313,7 @@ const GPlaceCircle = defineSetup(function GPlaceCircle2(props, {
8316
8313
  hideIcon = false,
8317
8314
  textAlign = DEFAULT_TEXT_ALIGN
8318
8315
  } = props;
8319
- const tagArea = tag$1 ? `<div class="${tag({
8320
- textAlign
8321
- })}">${tag$1}</div>` : "";
8316
+ const tagArea = tag$1 ? `<div class="${tag}">${tag$1}</div>` : "";
8322
8317
  return createDom("div", {
8323
8318
  class: `GPlaceCircle ${placeCircleLayout({
8324
8319
  textAlign
@@ -37,13 +37,4 @@ export declare const placeIcon: import("@vanilla-extract/recipes").RuntimeFn<{
37
37
  export declare const labelLayout: string;
38
38
  export declare const label: string;
39
39
  export declare const labelStroke: string;
40
- export declare const tag: import("@vanilla-extract/recipes").RuntimeFn<{
41
- textAlign: {
42
- left: {
43
- right: number;
44
- };
45
- right: {
46
- left: number;
47
- };
48
- };
49
- }>;
40
+ export declare const tag: string;
@@ -1,7 +1,6 @@
1
1
  export type WxSignatureStatus = "PENDING" | "READY" | "TIMEOUT" | "FAIL";
2
2
  export declare class QueryWxSignatureStatus {
3
3
  private error;
4
- private timeout;
5
4
  private status;
6
5
  private pendingStatusPromise;
7
6
  private timoutStatusPromise;
package/dist/style.css CHANGED
@@ -46,6 +46,7 @@
46
46
  font-weight: 400;
47
47
  color: #FFFFFF;
48
48
  line-height: 3.73vw;
49
+ letter-spacing: 0.2vw;
49
50
  }
50
51
  .n8tgem6 {
51
52
  display: flex;
@@ -351,6 +352,7 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
351
352
  }
352
353
  .fhyw8e {
353
354
  position: absolute;
355
+ left: 0;
354
356
  bottom: -5.07vw;
355
357
  padding: 0 1.07vw;
356
358
  height: 4vw;
@@ -363,12 +365,6 @@ a[title*="Google"]>div>img[alt="Google"], .gmnoprint {
363
365
  color: #FFFFFF;
364
366
  line-height: 4vw;
365
367
  background: #4C88FF;
366
- }
367
- .fhyw8f {
368
- right: 0;
369
- }
370
- .fhyw8g {
371
- left: 0;
372
368
  }._65j3sr1 {
373
369
  margin-top: 1.87vw;
374
370
  margin-bottom: -5.5vw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heycar/heycars-map",
3
- "version": "0.9.23-alpha8",
3
+ "version": "0.9.23-alpha9",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "checkVersion": "./bin/checkVersion.js"