@sonordev/site-kit 8.9.0 → 8.10.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/CHANGELOG.md +4 -0
- package/agent-manifest.json +1 -1
- package/dist/AddressAutocomplete-LQS6GQ4R.js +241 -0
- package/dist/{AnalyticsProvider-X7JJN3QL.js → AnalyticsProvider-JWS7BLFY.js} +4 -4
- package/dist/{ArticleViewTracker-7Q6AMCKX.js → ArticleViewTracker-CDPVMUAO.js} +1 -1
- package/dist/{BlocksPopup-U5VIYEBA.js → BlocksPopup-C5PNJ7U6.js} +3 -3
- package/dist/{ChatWidget-EAATOFCT.js → ChatWidget-HEPOE3YC.js} +5 -5
- package/dist/{FileField-YWMSK7RF.js → FileField-6R5LS5NU.js} +1 -1
- package/dist/{FormSpotlight-MAXDW3TK.js → FormSpotlight-2BSE7PD2.js} +5 -4
- package/dist/{FormStage-VAHRVOIZ.js → FormStage-3G46OPPO.js} +5 -4
- package/dist/{ManagedForm-7IZT7ZII.js → ManagedForm-LTXEU25N.js} +7 -7
- package/dist/{ManagedNewsletterForm-VVXZSEAL.js → ManagedNewsletterForm-WE6P5DMV.js} +10 -10
- package/dist/{SignalCore-HAN4O7QG.js → SignalCore-IP7FE6SN.js} +3 -3
- package/dist/{SiteChat-3JLCEL2N.js → SiteChat-3FQYMHCP.js} +1 -1
- package/dist/{SiteDesignReporter-6CCO645E.js → SiteDesignReporter-HGTX4FX2.js} +4 -4
- package/dist/{SitePopups-ZGHQNGGH.js → SitePopups-V7MCNSGE.js} +4 -4
- package/dist/{SitemapSync-5LSYCBKS.js → SitemapSync-OAJ7SIET.js} +2 -2
- package/dist/_client/booking-widget.js +3 -3
- package/dist/_client/reviewed-signal-experiment.js +1 -1
- package/dist/affiliates/index.js +1 -1
- package/dist/analytics/index.js +4 -4
- package/dist/api-X6N6V2H3.js +5 -0
- package/dist/articles/index.js +1 -1
- package/dist/articles/server-ui.js +3 -3
- package/dist/articles/server.js +2 -2
- package/dist/chat/index.js +6 -6
- package/dist/{chunk-AWLPFFPO.js → chunk-3RBOES2C.js} +1 -1
- package/dist/{chunk-CVADNHJ4.js → chunk-3WMNHFZH.js} +9 -0
- package/dist/{chunk-HJD6KXKH.js → chunk-533ZSRJF.js} +1 -1
- package/dist/chunk-6CIO4X6P.js +77 -0
- package/dist/{chunk-S33CUULL.js → chunk-727353NY.js} +11 -7
- package/dist/{chunk-ZRSXCT4O.js → chunk-75N2WALV.js} +1 -1
- package/dist/{chunk-SO6RSRUP.js → chunk-7PWXPN53.js} +1 -1
- package/dist/{chunk-YVEYO3OD.js → chunk-A66TIJWU.js} +1 -1
- package/dist/{chunk-PMXQPO5Q.js → chunk-ACZ5JNSL.js} +2 -2
- package/dist/{chunk-DXE6SXWW.js → chunk-D4R3FQED.js} +1 -1
- package/dist/{chunk-6EDE7BOE.js → chunk-DW5X4BC7.js} +2 -2
- package/dist/{chunk-VPZJ7ZTL.js → chunk-HHEDRZOJ.js} +1 -1
- package/dist/{chunk-QXAJPB6O.js → chunk-HLN7A4GL.js} +1 -1
- package/dist/{chunk-6NLVHTYY.js → chunk-HNVLINPI.js} +1 -1
- package/dist/{chunk-KGIQYVQ2.js → chunk-J4R7MHV2.js} +8 -8
- package/dist/{chunk-UG53ZW7S.js → chunk-MIKVCYGX.js} +2 -2
- package/dist/{chunk-OUD4RTBD.js → chunk-MKU5ZORB.js} +2 -31
- package/dist/{chunk-L3S5WH4C.js → chunk-NBNDH2J6.js} +1 -1
- package/dist/{chunk-S63QY5XW.js → chunk-NH7K252M.js} +5 -3
- package/dist/{chunk-J4LJE4NB.js → chunk-NWEIHCSE.js} +3 -1
- package/dist/{chunk-F3RKFGRW.js → chunk-OCNODBH4.js} +1 -1
- package/dist/{chunk-CJ43K7RA.js → chunk-OEHIXCYS.js} +2 -2
- package/dist/{chunk-T4A5J6SJ.js → chunk-P7S45DD7.js} +1 -1
- package/dist/{chunk-XDH5B3PR.js → chunk-Q2OE32TH.js} +2 -2
- package/dist/{chunk-FAY6MOLL.js → chunk-RMPXSEEU.js} +1 -1
- package/dist/{chunk-ISMHDUBW.js → chunk-RUV6DCKL.js} +1 -1
- package/dist/{chunk-IO6BWRZ5.js → chunk-TLKLHSRJ.js} +1 -1
- package/dist/{chunk-WHFWDK2H.js → chunk-UMF5OILQ.js} +1 -1
- package/dist/{chunk-ADQ3VCKK.js → chunk-XAPSYDVT.js} +1 -1
- package/dist/{chunk-EBEM5BI5.js → chunk-Y7DZ2ND2.js} +3 -3
- package/dist/{chunk-NZHECYLF.js → chunk-YJ6PRJ7Y.js} +2 -2
- package/dist/{chunk-VXCUXHZO.js → chunk-Z4XJOVQX.js} +1 -1
- package/dist/{chunk-MP35JETP.js → chunk-Z62W7Q3T.js} +1 -1
- package/dist/controls-KLG6VQLO.js +14 -0
- package/dist/fleet/index.js +3 -3
- package/dist/forms/AddressAutocomplete.d.ts +20 -0
- package/dist/forms/FormClient.d.ts +2 -1
- package/dist/forms/FormEnhancer.d.ts +2 -1
- package/dist/forms/FormField.d.ts +2 -0
- package/dist/forms/FormSpotlight.d.ts +1 -1
- package/dist/forms/FormStage.d.ts +1 -1
- package/dist/forms/ManagedForm.d.ts +1 -1
- package/dist/forms/ServerForm.d.ts +2 -1
- package/dist/forms/controls.d.ts +5 -0
- package/dist/forms/field-controls.d.ts +4 -2
- package/dist/forms/index.d.ts +1 -1
- package/dist/forms/index.js +10 -10
- package/dist/forms/server.js +4 -4
- package/dist/forms/static.js +2 -2
- package/dist/forms/types.d.ts +9 -0
- package/dist/images/index.js +2 -2
- package/dist/index.js +1 -1
- package/dist/landing/server.js +7 -7
- package/dist/layout/client.js +6 -6
- package/dist/layout/index.js +7 -7
- package/dist/llms/index.js +4 -4
- package/dist/maps/index.js +8 -78
- package/dist/maps/places-library.d.ts +34 -0
- package/dist/mcp/sonor.js +7 -7
- package/dist/places-library-RU2YNKFK.js +54 -0
- package/dist/resonance/index.js +1 -1
- package/dist/revalidate/index.js +2 -2
- package/dist/runtime/index.js +1 -1
- package/dist/{runtime-core-WT7KKLWQ.js → runtime-core-EU2RZMOL.js} +1 -1
- package/dist/seo/client.js +2 -2
- package/dist/seo/index.js +2 -2
- package/dist/seo/llms.js +4 -4
- package/dist/seo/register-sitemap-cli.js +1 -1
- package/dist/seo/sitemap.js +2 -2
- package/dist/server/index.js +2 -2
- package/dist/shared/version.d.ts +1 -1
- package/dist/signal/index.js +2 -2
- package/dist/sitemap/index.js +2 -2
- package/dist/{sonor-fetch-runtime-3PFGUXMF.js → sonor-fetch-runtime-SLPBNZY4.js} +2 -2
- package/dist/sync/index.js +3 -3
- package/dist/website/images.js +2 -2
- package/dist/website/index.js +4 -4
- package/dist/website/landing/server.js +7 -7
- package/dist/website/popups.js +4 -4
- package/dist/{writeLLMsTxt-JUACXQKP.js → writeLLMsTxt-2CBYGKZO.js} +1 -1
- package/package.json +1 -1
- package/src/forms/README.md +47 -0
- /package/dist/{chunk-QLJ2SC3T.js → chunk-ORSQKTMN.js} +0 -0
|
@@ -2,10 +2,10 @@ import { isBlockedPublicUrlHost } from './chunk-XS2ORMUG.js';
|
|
|
2
2
|
import { LandingPage } from './chunk-XJZLXUTG.js';
|
|
3
3
|
import { normalizeCampaignSlug } from './chunk-2QPVU63T.js';
|
|
4
4
|
import { landingPageMetadata } from './chunk-JESLPEST.js';
|
|
5
|
-
import { ServerForm } from './chunk-
|
|
5
|
+
import { ServerForm } from './chunk-NH7K252M.js';
|
|
6
6
|
import { serverApiFetch, ServerApiFetchError } from './chunk-7VMA3KCN.js';
|
|
7
7
|
import { normalizeSiteHost } from './chunk-A4CC4ZG3.js';
|
|
8
|
-
import { SignalExperiment } from './chunk-
|
|
8
|
+
import { SignalExperiment } from './chunk-OCNODBH4.js';
|
|
9
9
|
import 'server-only';
|
|
10
10
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/shared/sonor-fetch.ts
|
|
2
2
|
async function sonorFetch(url, init = {}, options = {}) {
|
|
3
3
|
if (options.shouldSend && !options.shouldSend()) throw new Error("sonor-dispatch-withdrawn");
|
|
4
|
-
const { executeSonorFetch } = await import('./sonor-fetch-runtime-
|
|
4
|
+
const { executeSonorFetch } = await import('./sonor-fetch-runtime-SLPBNZY4.js');
|
|
5
5
|
if (options.shouldSend && !options.shouldSend()) throw new Error("sonor-dispatch-withdrawn");
|
|
6
6
|
return executeSonorFetch(url, init, options);
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { detectTimezone, releaseSlotHold, fetchBookingTypeDetails, fetchBookingTypes, fetchAvailability, createSlotHold, createBooking, formatDuration, formatDate, formatTime, prepareMeeting } from './chunk-
|
|
2
|
+
import { detectTimezone, releaseSlotHold, fetchBookingTypeDetails, fetchBookingTypes, fetchAvailability, createSlotHold, createBooking, formatDuration, formatDate, formatTime, prepareMeeting } from './chunk-75N2WALV.js';
|
|
3
3
|
import { readPublishedApiConfig, DEFAULT_SONOR_API_URL } from './chunk-W7OPEMGJ.js';
|
|
4
4
|
import { useState, useRef, useMemo, useCallback, useEffect, useId } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import './chunk-PKBMQBKP.js';
|
|
2
|
+
|
|
3
|
+
// src/forms/controls.ts
|
|
4
|
+
function loadFieldControls([date, file, address], loaded) {
|
|
5
|
+
function load(needed, name, request) {
|
|
6
|
+
if (needed) void request().then((Component) => loaded(name, Component)).catch(() => {
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
load(date, "Date", () => import('./DatePicker-JEBV6WYJ.js').then((m) => m.DatePicker));
|
|
10
|
+
load(file, "File", () => import('./FileField-6R5LS5NU.js').then((m) => m.FileField));
|
|
11
|
+
load(address, "Address", () => import('./AddressAutocomplete-LQS6GQ4R.js').then((m) => m.AddressAutocompleteControl));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { loadFieldControls as default };
|
package/dist/fleet/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-
|
|
2
|
+
export { FLEET_HEARTBEAT_PATH, FleetHeartbeat, detectNextVersion, sendFleetHeartbeat } from '../chunk-Q2OE32TH.js';
|
|
3
3
|
export { FLEET_CONTRACT_VERSION, FLEET_MODULES, FLEET_MODULES_MAX, FLEET_SITE_MAX_LENGTH, FLEET_VERSION_MAX_LENGTH, FLEET_VERSION_PATTERN, buildFleetHeartbeatPayload, isFleetModule, normalizeFleetModules, normalizeFleetSite, sanitizeFleetVersion } from '../chunk-ZTZQPYP6.js';
|
|
4
4
|
import '../chunk-YC7ELZS3.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-D4R3FQED.js';
|
|
6
6
|
import '../chunk-7643MCD2.js';
|
|
7
7
|
import '../chunk-64XODP7M.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-Z4XJOVQX.js';
|
|
9
9
|
import '../chunk-W7OPEMGJ.js';
|
|
10
10
|
import '../chunk-PKBMQBKP.js';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AddressAutocompleteOptions } from "./types.js";
|
|
3
|
+
interface Props {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
includedRegionCodes?: readonly string[];
|
|
7
|
+
}
|
|
8
|
+
/** Keep opt-in matching in the lazy feature chunk, outside the native field. */
|
|
9
|
+
export declare function AddressAutocompleteControl({ field, options, value, onChange }: Omit<Props, 'includedRegionCodes' | 'value' | 'onChange'> & {
|
|
10
|
+
field: {
|
|
11
|
+
slug: string;
|
|
12
|
+
field_type: string;
|
|
13
|
+
};
|
|
14
|
+
options?: AddressAutocompleteOptions;
|
|
15
|
+
value?: unknown;
|
|
16
|
+
onChange?: (value: string) => void;
|
|
17
|
+
}): React.JSX.Element | null;
|
|
18
|
+
/** Behavior beside the existing controlled input. Never replaces or owns it. */
|
|
19
|
+
export declare function AddressAutocomplete({ value, onChange, includedRegionCodes }: Props): React.JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -7,6 +7,7 @@ import React from 'react';
|
|
|
7
7
|
import type { ManagedFormConfig, FormRenderProps, FormSubmitResult } from "./types.js";
|
|
8
8
|
import type { FormExperience } from "./types.js";
|
|
9
9
|
interface FormClientProps {
|
|
10
|
+
addressAutocomplete?: import("./types.js").AddressAutocompleteOptions;
|
|
10
11
|
config: ManagedFormConfig;
|
|
11
12
|
className?: string;
|
|
12
13
|
onSuccess?: (submission: FormSubmitResult) => void;
|
|
@@ -34,5 +35,5 @@ interface FormClientProps {
|
|
|
34
35
|
*/
|
|
35
36
|
nativeReturnTo?: string;
|
|
36
37
|
}
|
|
37
|
-
export declare function FormClient({ config, className, onSuccess, onError, customRender, experience, defaultValues, }: FormClientProps): React.JSX.Element;
|
|
38
|
+
export declare function FormClient({ config, className, onSuccess, onError, customRender, experience, defaultValues, addressAutocomplete, }: FormClientProps): React.JSX.Element;
|
|
38
39
|
export {};
|
|
@@ -57,6 +57,7 @@ import React from 'react';
|
|
|
57
57
|
import type { FormExperience, FormSubmitResult } from "./types.js";
|
|
58
58
|
export type FormEnterAnimation = 'fade' | 'none' | 'custom';
|
|
59
59
|
export interface FormEnhancerProps {
|
|
60
|
+
addressAutocomplete?: import("./types.js").AddressAutocompleteOptions;
|
|
60
61
|
formId: string;
|
|
61
62
|
/** Server-fetched raw config — hands the enhancement its fields instantly. */
|
|
62
63
|
initialConfig?: Record<string, unknown> | null;
|
|
@@ -82,4 +83,4 @@ export interface FormEnhancerProps {
|
|
|
82
83
|
/** The server-rendered <StaticForm>. Shown until the enhancement mounts. */
|
|
83
84
|
children: React.ReactNode;
|
|
84
85
|
}
|
|
85
|
-
export declare function FormEnhancer({ formId, initialConfig, className, experience, defaultValues, onSuccess, onError, enter, defer, children, }: FormEnhancerProps): React.JSX.Element;
|
|
86
|
+
export declare function FormEnhancer({ formId, initialConfig, className, experience, defaultValues, addressAutocomplete, onSuccess, onError, enter, defer, children, }: FormEnhancerProps): React.JSX.Element;
|
|
@@ -63,6 +63,8 @@ interface FormFieldProps {
|
|
|
63
63
|
controls?: {
|
|
64
64
|
Date?: React.ComponentType<any>;
|
|
65
65
|
File?: React.ComponentType<any>;
|
|
66
|
+
Address?: React.ComponentType<any>;
|
|
67
|
+
address?: import("./types.js").AddressAutocompleteOptions;
|
|
66
68
|
};
|
|
67
69
|
}
|
|
68
70
|
export declare function FormField({ field, value, error, onChange, onFocus, onBlur, classPrefix, showValid, controls }: FormFieldProps): React.JSX.Element;
|
|
@@ -47,4 +47,4 @@ export declare function renderCompletionTemplate(template: string, field: FormFi
|
|
|
47
47
|
*/
|
|
48
48
|
export declare function groupSentence(fields: FormFieldType[], values: Record<string, unknown>): string | null;
|
|
49
49
|
export declare function SpotStyles(): React.JSX.Element;
|
|
50
|
-
export declare function FormSpotlight({ config, values, errors, touched, isSubmitting, submitError, momentum, className, setFieldValue, validateField, isFieldVisible, fieldIsComplete, applyFieldError, submit, trackStepChange, trackFieldFocus, trackFieldBlur, honeypot, }: ExperienceRenderProps): React.JSX.Element;
|
|
50
|
+
export declare function FormSpotlight({ config, values, errors, touched, isSubmitting, submitError, momentum, className, setFieldValue, validateField, isFieldVisible, fieldIsComplete, applyFieldError, submit, trackStepChange, trackFieldFocus, trackFieldBlur, honeypot, addressAutocomplete, }: ExperienceRenderProps): React.JSX.Element;
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import React from 'react';
|
|
21
21
|
import type { ExperienceRenderProps } from "./types.js";
|
|
22
|
-
export declare function FormStage({ config, values, errors, touched, isSubmitting, submitError, momentum, className, setFieldValue, validateField, isFieldVisible, fieldIsComplete, applyFieldError, submit, trackStepChange, trackFieldFocus, trackFieldBlur, honeypot, }: ExperienceRenderProps): React.JSX.Element;
|
|
22
|
+
export declare function FormStage({ config, values, errors, touched, isSubmitting, submitError, momentum, className, setFieldValue, validateField, isFieldVisible, fieldIsComplete, applyFieldError, submit, trackStepChange, trackFieldFocus, trackFieldBlur, honeypot, addressAutocomplete, }: ExperienceRenderProps): React.JSX.Element;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
* Fetches form config from Sonor API and renders fields with validation
|
|
5
5
|
*/
|
|
6
6
|
import type { ManagedFormProps } from "./types.js";
|
|
7
|
-
export declare function ManagedForm({ formId, projectId, className, onSuccess, onError, initialConfig, experience, defaultValues, children, }: ManagedFormProps): import("react").JSX.Element;
|
|
7
|
+
export declare function ManagedForm({ formId, projectId, className, onSuccess, onError, initialConfig, experience, defaultValues, addressAutocomplete, children, }: ManagedFormProps): import("react").JSX.Element;
|
|
@@ -35,6 +35,7 @@ import { type FormEnterAnimation } from "./FormEnhancer.js";
|
|
|
35
35
|
import { type GetFormConfigOptions } from "./server.js";
|
|
36
36
|
import type { FormExperience } from "./types.js";
|
|
37
37
|
export interface ServerFormProps {
|
|
38
|
+
addressAutocomplete?: import("./types.js").AddressAutocompleteOptions;
|
|
38
39
|
/** Form slug or id from Sonor. */
|
|
39
40
|
formId: string;
|
|
40
41
|
/** @deprecated Ignored since 6.3.2 (the no-JavaScript form POST was removed). */
|
|
@@ -66,4 +67,4 @@ export interface ServerFormProps {
|
|
|
66
67
|
/** Passed through to getFormConfig (api key / url / revalidate). */
|
|
67
68
|
configOptions?: GetFormConfigOptions;
|
|
68
69
|
}
|
|
69
|
-
export declare function ServerForm({ formId, className, experience, enter, defer, initialConfig, configOptions, defaultValues, }: ServerFormProps): Promise<React.JSX.Element>;
|
|
70
|
+
export declare function ServerForm({ formId, className, experience, enter, defer, initialConfig, configOptions, defaultValues, addressAutocomplete, }: ServerFormProps): Promise<React.JSX.Element>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
type Control = 'Date' | 'File' | 'Address';
|
|
3
|
+
/** Single optional-control registry. Rejections retain the native form control. */
|
|
4
|
+
export default function loadFieldControls([date, file, address]: [date: boolean, file: boolean, address: boolean], loaded: (name: Control, Component: ComponentType<any>) => void): void;
|
|
5
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { FormField as FormFieldType } from "./types.js";
|
|
1
|
+
import type { AddressAutocompleteOptions, FormField as FormFieldType } from "./types.js";
|
|
2
2
|
export interface FieldControls {
|
|
3
3
|
Date?: React.ComponentType<any>;
|
|
4
4
|
File?: React.ComponentType<any>;
|
|
5
|
+
Address?: React.ComponentType<any>;
|
|
6
|
+
address?: AddressAutocompleteOptions;
|
|
5
7
|
}
|
|
6
|
-
export declare function useFieldControls(fields
|
|
8
|
+
export declare function useFieldControls(fields?: FormFieldType[], address?: AddressAutocompleteOptions): FieldControls;
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export { FormClient } from "./FormClient.js";
|
|
|
116
116
|
export { FormCelebration } from "./FormCelebration.js";
|
|
117
117
|
export type { FormCelebrationProps } from "./FormCelebration.js";
|
|
118
118
|
export { FormField as FormFieldComponent } from "./FormField.js";
|
|
119
|
-
export type { FormExperience } from "./types.js";
|
|
119
|
+
export type { FormExperience, AddressAutocompleteOptions } from "./types.js";
|
|
120
120
|
export { useFormTracking } from "./useFormTracking.js";
|
|
121
121
|
export type { ManagedFormConfig, FormSubmission, FormSubmitResult, FormField as FormFieldConfig, } from "./types.js";
|
|
122
122
|
export { DEFAULT_FORM_SUCCESS_MESSAGE } from "./defaultSuccessMessage.js";
|
package/dist/forms/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { configureFormsApi, defineForm, field, formsApi, initializeForms } from '../chunk-
|
|
3
|
-
export { DatePicker } from '../chunk-SOD2F6C2.js';
|
|
2
|
+
export { configureFormsApi, defineForm, field, formsApi, initializeForms } from '../chunk-HNVLINPI.js';
|
|
4
3
|
export { FormCelebration } from '../chunk-YGGDU6C3.js';
|
|
5
|
-
export { FormClient, ManagedForm } from '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
export {
|
|
4
|
+
export { FormClient, ManagedForm } from '../chunk-727353NY.js';
|
|
5
|
+
import '../chunk-MKU5ZORB.js';
|
|
6
|
+
export { DatePicker } from '../chunk-SOD2F6C2.js';
|
|
7
|
+
export { useForm, useFormTracking } from '../chunk-MIKVCYGX.js';
|
|
8
8
|
import '../chunk-Q6E4OPGG.js';
|
|
9
9
|
import '../chunk-MDBXGN6W.js';
|
|
10
10
|
import '../chunk-PVY7X5UR.js';
|
|
11
|
-
export { FormEnhancer } from '../chunk-
|
|
11
|
+
export { FormEnhancer } from '../chunk-NWEIHCSE.js';
|
|
12
12
|
import '../chunk-C2FZBUSS.js';
|
|
13
13
|
import '../chunk-YC7ELZS3.js';
|
|
14
14
|
import '../chunk-DXO6SBMD.js';
|
|
15
|
-
export { FormField as FormFieldComponent, autocompleteFor } from '../chunk-
|
|
15
|
+
export { FormField as FormFieldComponent, autocompleteFor } from '../chunk-3WMNHFZH.js';
|
|
16
16
|
export { DEFAULT_FORM_SUCCESS_MESSAGE } from '../chunk-TYSIAWC3.js';
|
|
17
17
|
import '../chunk-HW7B43E5.js';
|
|
18
18
|
import '../chunk-NJCTQH2P.js';
|
|
19
19
|
import '../chunk-L2V5PUFN.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-ACZ5JNSL.js';
|
|
21
21
|
import '../chunk-NHDRA4Y5.js';
|
|
22
22
|
import '../chunk-D4M5K6JN.js';
|
|
23
23
|
import '../chunk-GJWI74ZZ.js';
|
|
24
24
|
import '../chunk-NZOJHERI.js';
|
|
25
25
|
import '../chunk-KMNHNCVG.js';
|
|
26
26
|
import '../chunk-5IVD6G77.js';
|
|
27
|
-
import '../chunk-
|
|
27
|
+
import '../chunk-D4R3FQED.js';
|
|
28
28
|
import '../chunk-7643MCD2.js';
|
|
29
29
|
import '../chunk-64XODP7M.js';
|
|
30
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-Z4XJOVQX.js';
|
|
31
31
|
import '../chunk-W7OPEMGJ.js';
|
|
32
32
|
import '../chunk-A4CC4ZG3.js';
|
|
33
33
|
import '../chunk-MOACHHOJ.js';
|
package/dist/forms/server.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ServerForm, getFormConfig } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ServerForm, getFormConfig } from '../chunk-NH7K252M.js';
|
|
2
|
+
import '../chunk-NWEIHCSE.js';
|
|
3
3
|
import '../chunk-C2FZBUSS.js';
|
|
4
4
|
import '../chunk-YC7ELZS3.js';
|
|
5
|
-
export { StaticForm } from '../chunk-
|
|
5
|
+
export { StaticForm } from '../chunk-HHEDRZOJ.js';
|
|
6
6
|
import '../chunk-DXO6SBMD.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-3WMNHFZH.js';
|
|
8
8
|
import '../chunk-TYSIAWC3.js';
|
|
9
9
|
import '../chunk-HW7B43E5.js';
|
|
10
10
|
import '../chunk-NJCTQH2P.js';
|
package/dist/forms/static.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { StaticForm } from '../chunk-
|
|
1
|
+
export { StaticForm } from '../chunk-HHEDRZOJ.js';
|
|
2
2
|
import '../chunk-DXO6SBMD.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-3WMNHFZH.js';
|
|
4
4
|
import '../chunk-TYSIAWC3.js';
|
|
5
5
|
import '../chunk-HW7B43E5.js';
|
|
6
6
|
import '../chunk-NJCTQH2P.js';
|
package/dist/forms/types.d.ts
CHANGED
|
@@ -228,7 +228,15 @@ export type FormExperience = 'classic' | 'stage' | 'spotlight';
|
|
|
228
228
|
* stays the owner of values/errors/honeypot/submit so spam defense and
|
|
229
229
|
* validation are identical across experiences.
|
|
230
230
|
*/
|
|
231
|
+
/** Opt in existing text fields to Google address suggestions; manual entry stays available. */
|
|
232
|
+
export interface AddressAutocompleteOptions {
|
|
233
|
+
/** Exact Sonor field slugs. Only text fields are enhanced. */
|
|
234
|
+
fields: readonly string[];
|
|
235
|
+
/** Optional two-letter country codes, up to 15. Omit for unrestricted suggestions. */
|
|
236
|
+
includedRegionCodes?: readonly string[];
|
|
237
|
+
}
|
|
231
238
|
export interface ExperienceRenderProps {
|
|
239
|
+
addressAutocomplete?: AddressAutocompleteOptions;
|
|
232
240
|
config: ManagedFormConfig;
|
|
233
241
|
values: Record<string, unknown>;
|
|
234
242
|
errors: Record<string, string>;
|
|
@@ -254,6 +262,7 @@ export interface ExperienceRenderProps {
|
|
|
254
262
|
honeypot: React.ReactNode;
|
|
255
263
|
}
|
|
256
264
|
export interface ManagedFormProps {
|
|
265
|
+
addressAutocomplete?: AddressAutocompleteOptions;
|
|
257
266
|
/** Form key from Sonor */
|
|
258
267
|
formId: string;
|
|
259
268
|
/** @deprecated Project is resolved from API key by the backend. Omit this prop. */
|
package/dist/images/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-
|
|
1
|
+
export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fetchManagedImages, listImageFiles, uploadImage } from '../chunk-P7S45DD7.js';
|
|
2
2
|
export { ManagedFavicon, getManagedFaviconUrl } from '../chunk-GW7GSBO7.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-Z4XJOVQX.js';
|
|
4
4
|
import '../chunk-PKBMQBKP.js';
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SITE_KIT_VERSION } from './chunk-
|
|
1
|
+
export { SITE_KIT_VERSION } from './chunk-D4R3FQED.js';
|
|
2
2
|
import './chunk-PKBMQBKP.js';
|
package/dist/landing/server.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { FunnelPageContent, ManagedFunnelPage, getPublishedFunnelPage, managedFunnelMetadata } from '../chunk-
|
|
1
|
+
export { FunnelPageContent, ManagedFunnelPage, getPublishedFunnelPage, managedFunnelMetadata } from '../chunk-YJ6PRJ7Y.js';
|
|
2
2
|
import '../chunk-XS2ORMUG.js';
|
|
3
3
|
import '../chunk-XJZLXUTG.js';
|
|
4
4
|
import '../chunk-7IZUUXXO.js';
|
|
5
5
|
export { normalizeCampaignSlug } from '../chunk-2QPVU63T.js';
|
|
6
6
|
export { landingPageMetadata } from '../chunk-JESLPEST.js';
|
|
7
7
|
import '../chunk-XHYE24HU.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-NH7K252M.js';
|
|
9
|
+
import '../chunk-NWEIHCSE.js';
|
|
10
10
|
import '../chunk-C2FZBUSS.js';
|
|
11
11
|
import '../chunk-YC7ELZS3.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-HHEDRZOJ.js';
|
|
13
13
|
import '../chunk-DXO6SBMD.js';
|
|
14
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-3WMNHFZH.js';
|
|
15
15
|
import '../chunk-TYSIAWC3.js';
|
|
16
16
|
import '../chunk-HW7B43E5.js';
|
|
17
17
|
import '../chunk-NJCTQH2P.js';
|
|
@@ -19,8 +19,8 @@ import '../chunk-7VMA3KCN.js';
|
|
|
19
19
|
import '../chunk-MH2DSGC6.js';
|
|
20
20
|
import '../chunk-S22FSH7C.js';
|
|
21
21
|
import '../chunk-A4CC4ZG3.js';
|
|
22
|
-
import '../chunk-
|
|
23
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-OCNODBH4.js';
|
|
23
|
+
import '../chunk-533ZSRJF.js';
|
|
24
24
|
import '../chunk-MOACHHOJ.js';
|
|
25
25
|
import '../chunk-FRY6PBT6.js';
|
|
26
26
|
import '../chunk-PKBMQBKP.js';
|
package/dist/layout/client.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
export { SiteKitClientProviders } from '../chunk-
|
|
2
|
+
export { SiteKitClientProviders } from '../chunk-J4R7MHV2.js';
|
|
3
3
|
import '../chunk-KQKUXIUD.js';
|
|
4
4
|
import '../chunk-6G43IRWR.js';
|
|
5
5
|
import '../chunk-2LBKIE2K.js';
|
|
6
6
|
import '../chunk-TPHOIE4I.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-3RBOES2C.js';
|
|
8
|
+
import '../chunk-Q2OE32TH.js';
|
|
9
9
|
import '../chunk-ZTZQPYP6.js';
|
|
10
10
|
import '../chunk-YC7ELZS3.js';
|
|
11
11
|
import '../chunk-FESKKJAS.js';
|
|
@@ -13,12 +13,12 @@ import '../chunk-JT7GHHMV.js';
|
|
|
13
13
|
import '../chunk-D4M5K6JN.js';
|
|
14
14
|
import '../chunk-GJWI74ZZ.js';
|
|
15
15
|
import '../chunk-5IVD6G77.js';
|
|
16
|
-
import '../chunk-
|
|
16
|
+
import '../chunk-D4R3FQED.js';
|
|
17
17
|
import '../chunk-7643MCD2.js';
|
|
18
18
|
import '../chunk-64XODP7M.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-Z4XJOVQX.js';
|
|
20
20
|
import '../chunk-W7OPEMGJ.js';
|
|
21
21
|
import '../chunk-A4CC4ZG3.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-533ZSRJF.js';
|
|
23
23
|
import '../chunk-FRY6PBT6.js';
|
|
24
24
|
import '../chunk-PKBMQBKP.js';
|
package/dist/layout/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { SiteKitClientProviders } from '../chunk-
|
|
1
|
+
import { SiteKitClientProviders } from '../chunk-J4R7MHV2.js';
|
|
2
2
|
import '../chunk-KQKUXIUD.js';
|
|
3
3
|
import '../chunk-6G43IRWR.js';
|
|
4
4
|
import '../chunk-2LBKIE2K.js';
|
|
5
5
|
import '../chunk-TPHOIE4I.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-3RBOES2C.js';
|
|
7
|
+
import '../chunk-Q2OE32TH.js';
|
|
8
8
|
import '../chunk-ZTZQPYP6.js';
|
|
9
9
|
import { aiDiscoveryLinks } from '../chunk-MTDVV5P3.js';
|
|
10
10
|
import { ManagedFavicon } from '../chunk-GW7GSBO7.js';
|
|
11
11
|
import '../chunk-YC7ELZS3.js';
|
|
12
|
-
import { resolveClientCredential } from '../chunk-
|
|
12
|
+
import { resolveClientCredential } from '../chunk-NBNDH2J6.js';
|
|
13
13
|
import '../chunk-UAYAJPEP.js';
|
|
14
14
|
import { ManagedScripts } from '../chunk-MVLMXC44.js';
|
|
15
15
|
import { resolveApiOrigin } from '../chunk-7VMA3KCN.js';
|
|
@@ -19,13 +19,13 @@ import '../chunk-JT7GHHMV.js';
|
|
|
19
19
|
import '../chunk-D4M5K6JN.js';
|
|
20
20
|
import '../chunk-GJWI74ZZ.js';
|
|
21
21
|
import '../chunk-5IVD6G77.js';
|
|
22
|
-
import '../chunk-
|
|
22
|
+
import '../chunk-D4R3FQED.js';
|
|
23
23
|
import '../chunk-7643MCD2.js';
|
|
24
24
|
import '../chunk-64XODP7M.js';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-Z4XJOVQX.js';
|
|
26
26
|
import '../chunk-W7OPEMGJ.js';
|
|
27
27
|
import '../chunk-A4CC4ZG3.js';
|
|
28
|
-
import '../chunk-
|
|
28
|
+
import '../chunk-533ZSRJF.js';
|
|
29
29
|
import '../chunk-FRY6PBT6.js';
|
|
30
30
|
import '../chunk-PKBMQBKP.js';
|
|
31
31
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
package/dist/llms/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { createLLMsFullTxtHandler, createLLMsTxtHandler, formatSourcedFactsSection, llmsResponseHeaders } from '../chunk-
|
|
1
|
+
export { createLLMsFullTxtHandler, createLLMsTxtHandler, formatSourcedFactsSection, llmsResponseHeaders } from '../chunk-HLN7A4GL.js';
|
|
2
2
|
export { buildAiDiscoveryHeaders, wantsLlmsDiscoveryLink } from '../chunk-MTDVV5P3.js';
|
|
3
3
|
export { AI_RETRIEVAL_CRAWLERS, AI_TRAINING_CRAWLERS, buildAiCrawlerRules, createRobotsTxtHandler } from '../chunk-QLTDFUJ7.js';
|
|
4
|
-
export { LEGACY_PUBLICATION_PATH, SEO_REVALIDATION_MAX_BODY_BYTES, SEO_REVALIDATION_MAX_ITEMS, createLlmsRevalidateHandler, createSeoRevalidationHandler, parseSeoRevalidationPayload } from '../chunk-
|
|
4
|
+
export { LEGACY_PUBLICATION_PATH, SEO_REVALIDATION_MAX_BODY_BYTES, SEO_REVALIDATION_MAX_ITEMS, createLlmsRevalidateHandler, createSeoRevalidationHandler, parseSeoRevalidationPayload } from '../chunk-RUV6DCKL.js';
|
|
5
5
|
export { AEOBlock, AEOCitedContent, AEOClaim, AEOComparison, AEODefinition, AEOEntity, AEOProvenanceList, AEOStep, AEOSteps, AEOSummary, DEFAULT_SPEAKABLE_SELECTORS, SpeakableSchema, createSpeakableSchema, getSpeakableSelectorsForPage } from '../chunk-PSAG45YF.js';
|
|
6
6
|
import '../chunk-XTRZGXB2.js';
|
|
7
|
-
export { AGENT_ACCESS_HEADING, appendAgentAccessSection, describesMcp, detectMcpServer, formatAgentAccessSection, generateLLMsFullTxt, generateLLMsTxt, writeLLMsTxtToPublic } from '../chunk-
|
|
7
|
+
export { AGENT_ACCESS_HEADING, appendAgentAccessSection, describesMcp, detectMcpServer, formatAgentAccessSection, generateLLMsFullTxt, generateLLMsTxt, writeLLMsTxtToPublic } from '../chunk-ORSQKTMN.js';
|
|
8
8
|
export { getBusinessInfo, getFAQItems, getLLMsData, getOptimizedLLMsTxt, getPageSummaries, getServices } from '../chunk-EK7P62DT.js';
|
|
9
9
|
import '../chunk-7DYMM6SS.js';
|
|
10
10
|
import '../chunk-IBHBEUZV.js';
|
|
@@ -16,7 +16,7 @@ import '../chunk-ISRBSTB7.js';
|
|
|
16
16
|
import '../chunk-MJP63SSS.js';
|
|
17
17
|
import '../chunk-YVKRYQRG.js';
|
|
18
18
|
import '../chunk-FESKKJAS.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-D4R3FQED.js';
|
|
20
20
|
import '../chunk-W7OPEMGJ.js';
|
|
21
21
|
import '../chunk-A4CC4ZG3.js';
|
|
22
22
|
import '../chunk-PKBMQBKP.js';
|
package/dist/maps/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import
|
|
2
|
+
import { fetchMapsConfig, fetchNearbyPlaces } from '../chunk-6CIO4X6P.js';
|
|
3
|
+
export { fetchMapsConfig, fetchNearbyPlaces } from '../chunk-6CIO4X6P.js';
|
|
4
|
+
import '../chunk-MH2DSGC6.js';
|
|
5
|
+
import '../chunk-Z4XJOVQX.js';
|
|
6
|
+
import '../chunk-W7OPEMGJ.js';
|
|
5
7
|
import '../chunk-PKBMQBKP.js';
|
|
6
8
|
import { useState, useCallback, useEffect } from 'react';
|
|
7
|
-
import { APIProvider, Map
|
|
9
|
+
import { APIProvider, Map, AdvancedMarker, Pin, InfoWindow } from '@vis.gl/react-google-maps';
|
|
8
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
11
|
|
|
10
12
|
function GoogleMap({
|
|
@@ -37,7 +39,7 @@ function GoogleMap({
|
|
|
37
39
|
] }) });
|
|
38
40
|
}
|
|
39
41
|
return /* @__PURE__ */ jsx("div", { className: `relative ${className}`, style: { height: "100%", ...style }, children: /* @__PURE__ */ jsx(APIProvider, { apiKey, children: /* @__PURE__ */ jsxs(
|
|
40
|
-
Map
|
|
42
|
+
Map,
|
|
41
43
|
{
|
|
42
44
|
defaultCenter: center,
|
|
43
45
|
defaultZoom: zoom,
|
|
@@ -122,78 +124,6 @@ function GoogleMap({
|
|
|
122
124
|
) }) });
|
|
123
125
|
}
|
|
124
126
|
|
|
125
|
-
// src/maps/api.ts
|
|
126
|
-
function getApiConfig() {
|
|
127
|
-
const { apiUrl, apiKey } = getClientApiConfig({ serverKey: true });
|
|
128
|
-
return { apiUrl, apiKey: apiKey ?? "" };
|
|
129
|
-
}
|
|
130
|
-
var configCache = null;
|
|
131
|
-
var CONFIG_CACHE_TTL = 3e5;
|
|
132
|
-
var placesCache = /* @__PURE__ */ new Map();
|
|
133
|
-
var PLACES_CACHE_TTL = 6e4;
|
|
134
|
-
async function fetchMapsConfig() {
|
|
135
|
-
if (configCache && monotonicMs() - configCache.timestamp < CONFIG_CACHE_TTL) {
|
|
136
|
-
return configCache.data;
|
|
137
|
-
}
|
|
138
|
-
const { apiUrl, apiKey } = getApiConfig();
|
|
139
|
-
if (apiKey) {
|
|
140
|
-
try {
|
|
141
|
-
const res = await sonorFetch(
|
|
142
|
-
`${apiUrl}/api/public/maps/config`,
|
|
143
|
-
{ headers: { "Content-Type": "application/json" } },
|
|
144
|
-
{ apiKey }
|
|
145
|
-
);
|
|
146
|
-
if (res.ok) {
|
|
147
|
-
const data = await res.json();
|
|
148
|
-
if (data.apiKey) {
|
|
149
|
-
configCache = { data, timestamp: monotonicMs() };
|
|
150
|
-
return data;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
} catch {
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
const fallbackKey = typeof window !== "undefined" ? "" : process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY || "";
|
|
157
|
-
const fallbackMapId = typeof window !== "undefined" ? "" : process.env.NEXT_PUBLIC_GOOGLE_MAPS_MAP_ID || "";
|
|
158
|
-
if (fallbackKey) {
|
|
159
|
-
const data = { apiKey: fallbackKey, mapId: fallbackMapId || "fcca3cd2bb19cf9a960994e7" };
|
|
160
|
-
configCache = { data, timestamp: monotonicMs() };
|
|
161
|
-
return data;
|
|
162
|
-
}
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
async function fetchNearbyPlaces(params) {
|
|
166
|
-
const cacheKey = `${params.lat},${params.lng}:${params.type}`;
|
|
167
|
-
const cached = placesCache.get(cacheKey);
|
|
168
|
-
if (cached && monotonicMs() - cached.timestamp < PLACES_CACHE_TTL) {
|
|
169
|
-
return cached.data;
|
|
170
|
-
}
|
|
171
|
-
const { apiUrl, apiKey } = getApiConfig();
|
|
172
|
-
if (!apiKey) return [];
|
|
173
|
-
try {
|
|
174
|
-
const searchParams = new URLSearchParams({
|
|
175
|
-
lat: String(params.lat),
|
|
176
|
-
lng: String(params.lng),
|
|
177
|
-
type: params.type
|
|
178
|
-
});
|
|
179
|
-
if (params.radius) searchParams.set("radius", String(params.radius));
|
|
180
|
-
if (params.limit) searchParams.set("limit", String(params.limit));
|
|
181
|
-
const res = await sonorFetch(
|
|
182
|
-
`${apiUrl}/api/public/maps/nearby-places?${searchParams}`,
|
|
183
|
-
{ headers: { "Content-Type": "application/json" } },
|
|
184
|
-
{ apiKey }
|
|
185
|
-
);
|
|
186
|
-
if (!res.ok) return [];
|
|
187
|
-
const data = await res.json();
|
|
188
|
-
const places = data.places || [];
|
|
189
|
-
placesCache.set(cacheKey, { data: places, timestamp: monotonicMs() });
|
|
190
|
-
return places;
|
|
191
|
-
} catch (err) {
|
|
192
|
-
console.warn("[site-kit/maps] Failed to fetch nearby places:", err);
|
|
193
|
-
return [];
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
127
|
// src/maps/types.ts
|
|
198
128
|
var DEFAULT_PLACE_TYPES = [
|
|
199
129
|
{ id: "restaurant", label: "Restaurants", icon: "\u{1F37D}\uFE0F" },
|
|
@@ -355,4 +285,4 @@ function NeighborhoodMap({
|
|
|
355
285
|
] });
|
|
356
286
|
}
|
|
357
287
|
|
|
358
|
-
export { DEFAULT_PLACE_TYPES, GoogleMap, NeighborhoodMap
|
|
288
|
+
export { DEFAULT_PLACE_TYPES, GoogleMap, NeighborhoodMap };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Narrow interface for the Google Places (New) address data used by forms. */
|
|
2
|
+
export interface AddressPrediction {
|
|
3
|
+
placeId: string;
|
|
4
|
+
text: {
|
|
5
|
+
toString(): string;
|
|
6
|
+
};
|
|
7
|
+
toPlace(): {
|
|
8
|
+
formattedAddress?: string;
|
|
9
|
+
fetchFields(options: {
|
|
10
|
+
fields: string[];
|
|
11
|
+
}): Promise<unknown>;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface AddressPlacesLibrary {
|
|
15
|
+
AutocompleteSessionToken: new () => object;
|
|
16
|
+
AutocompleteSuggestion: {
|
|
17
|
+
fetchAutocompleteSuggestions(request: {
|
|
18
|
+
input: string;
|
|
19
|
+
sessionToken: object;
|
|
20
|
+
includedRegionCodes?: string[];
|
|
21
|
+
}): Promise<{
|
|
22
|
+
suggestions: {
|
|
23
|
+
placePrediction?: AddressPrediction | null;
|
|
24
|
+
}[];
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Reuse the page's Google dynamic-library loader, including GoogleMap's
|
|
30
|
+
* APIProvider. If absent, install Google's documented bootstrap protocol.
|
|
31
|
+
* APIProvider also reuses importLibrary when present, regardless of load order.
|
|
32
|
+
* No optional map React dependency enters the default forms import graph.
|
|
33
|
+
*/
|
|
34
|
+
export declare function loadAddressPlaces(apiKey: string): Promise<AddressPlacesLibrary>;
|
package/dist/mcp/sonor.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { fetchReviews, fetchReviewStats } from '../chunk-BSQP6PRA.js';
|
|
2
2
|
import { toolErrorResult } from '../chunk-FYAB6CXS.js';
|
|
3
|
-
import { fetchBookingTypes, fetchAvailability } from '../chunk-
|
|
3
|
+
import { fetchBookingTypes, fetchAvailability } from '../chunk-75N2WALV.js';
|
|
4
4
|
import { getLLMsData, getServices, getFAQItems, getPageSummaries } from '../chunk-EK7P62DT.js';
|
|
5
5
|
import '../chunk-PVY7X5UR.js';
|
|
6
|
-
import { getFormConfig } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import { getFormConfig } from '../chunk-NH7K252M.js';
|
|
7
|
+
import '../chunk-NWEIHCSE.js';
|
|
8
8
|
import '../chunk-C2FZBUSS.js';
|
|
9
9
|
import '../chunk-YC7ELZS3.js';
|
|
10
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-HHEDRZOJ.js';
|
|
11
11
|
import '../chunk-DXO6SBMD.js';
|
|
12
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-3WMNHFZH.js';
|
|
13
13
|
import '../chunk-TYSIAWC3.js';
|
|
14
14
|
import '../chunk-HW7B43E5.js';
|
|
15
15
|
import '../chunk-NJCTQH2P.js';
|
|
@@ -22,8 +22,8 @@ import { resolveServerApiConfig } from '../chunk-7VMA3KCN.js';
|
|
|
22
22
|
import '../chunk-MH2DSGC6.js';
|
|
23
23
|
import { resolveSiteHost } from '../chunk-FESKKJAS.js';
|
|
24
24
|
import '../chunk-5IVD6G77.js';
|
|
25
|
-
import { SITE_KIT_VERSION } from '../chunk-
|
|
26
|
-
import '../chunk-
|
|
25
|
+
import { SITE_KIT_VERSION } from '../chunk-D4R3FQED.js';
|
|
26
|
+
import '../chunk-Z4XJOVQX.js';
|
|
27
27
|
import '../chunk-W7OPEMGJ.js';
|
|
28
28
|
import '../chunk-A4CC4ZG3.js';
|
|
29
29
|
import '../chunk-FRY6PBT6.js';
|