@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.
- package/dist/components/index.d.mts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +11 -11
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +11 -11
- package/dist/components/index.mjs.map +1 -1
- package/dist/data/index.js +3 -1
- package/dist/data/index.js.map +1 -1
- package/dist/data/index.mjs +3 -1
- package/dist/data/index.mjs.map +1 -1
- package/dist/export/index.js +18 -8
- package/dist/export/index.js.map +1 -1
- package/dist/export/index.mjs +18 -8
- package/dist/export/index.mjs.map +1 -1
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/sections/Hero.tsx +17 -14
- package/src/data/types.ts +3 -0
- package/src/export/xlsx.ts +18 -8
|
@@ -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;
|
package/dist/components/index.js
CHANGED
|
@@ -848,17 +848,17 @@ function Hero({
|
|
|
848
848
|
}
|
|
849
849
|
};
|
|
850
850
|
const handleDirectionsClick = () => {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
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) {
|