@aws505/sheetsite 1.0.9 → 1.1.0

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.
@@ -48,6 +48,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
48
48
  priceRange: z.ZodOptional<z.ZodEnum<["$", "$$", "$$$", "$$$$"]>>;
49
49
  yearEstablished: z.ZodOptional<z.ZodNumber>;
50
50
  licenseNumber: z.ZodOptional<z.ZodString>;
51
+ type: z.ZodOptional<z.ZodString>;
51
52
  }, "strip", z.ZodTypeAny, {
52
53
  name: string;
53
54
  country: string;
@@ -60,6 +61,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
60
61
  phone?: string | undefined;
61
62
  phoneAlt?: string | undefined;
62
63
  email?: string | undefined;
64
+ type?: string | undefined;
63
65
  addressLine1?: string | undefined;
64
66
  addressLine2?: string | undefined;
65
67
  city?: string | undefined;
@@ -96,6 +98,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
96
98
  phone?: string | undefined;
97
99
  phoneAlt?: string | undefined;
98
100
  email?: string | undefined;
101
+ type?: string | undefined;
99
102
  addressLine1?: string | undefined;
100
103
  addressLine2?: string | undefined;
101
104
  city?: string | undefined;
@@ -48,6 +48,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
48
48
  priceRange: z.ZodOptional<z.ZodEnum<["$", "$$", "$$$", "$$$$"]>>;
49
49
  yearEstablished: z.ZodOptional<z.ZodNumber>;
50
50
  licenseNumber: z.ZodOptional<z.ZodString>;
51
+ type: z.ZodOptional<z.ZodString>;
51
52
  }, "strip", z.ZodTypeAny, {
52
53
  name: string;
53
54
  country: string;
@@ -60,6 +61,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
60
61
  phone?: string | undefined;
61
62
  phoneAlt?: string | undefined;
62
63
  email?: string | undefined;
64
+ type?: string | undefined;
63
65
  addressLine1?: string | undefined;
64
66
  addressLine2?: string | undefined;
65
67
  city?: string | undefined;
@@ -96,6 +98,7 @@ declare const BusinessInfoSchema: z.ZodObject<{
96
98
  phone?: string | undefined;
97
99
  phoneAlt?: string | undefined;
98
100
  email?: string | undefined;
101
+ type?: string | undefined;
99
102
  addressLine1?: string | undefined;
100
103
  addressLine2?: string | undefined;
101
104
  city?: string | undefined;
@@ -848,17 +848,17 @@ function Hero({
848
848
  }
849
849
  };
850
850
  const handleDirectionsClick = () => {
851
- if (business.googleMapsUrl) {
852
- window.open(business.googleMapsUrl, "_blank");
853
- } else {
854
- const address = [
855
- business.addressLine1,
856
- business.city,
857
- business.state,
858
- business.zip
859
- ].filter(Boolean).join(", ");
860
- window.open(`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(address)}`, "_blank");
861
- }
851
+ const addressParts = [
852
+ business.name,
853
+ business.addressLine1,
854
+ business.addressLine2,
855
+ business.city,
856
+ business.state,
857
+ business.zip
858
+ ].filter(Boolean);
859
+ const fullAddress = addressParts.join(", ");
860
+ const mapsUrl = `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(fullAddress)}`;
861
+ window.open(mapsUrl, "_blank");
862
862
  };
863
863
  const handlePrimaryClick = () => {
864
864
  if (business.primaryCtaUrl) {