@apextelemed/partner-core 0.23.0-dev.83 → 0.23.0-dev.85
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 +35 -0
- package/dist/chunk/AGPFMEFL.js +330 -0
- package/dist/chunk/AGPFMEFL.js.map +1 -0
- package/dist/chunk/{5LMCRJ6Y.jsx → CHLMWPRS.jsx} +92 -10
- package/dist/chunk/{GYVEVOH7.jsx → GGAM2AJR.jsx} +7 -7
- package/dist/chunk/{MFW42ITZ.js → OLCMHH3R.js} +3 -3
- package/dist/chunk/{MFW42ITZ.js.map → OLCMHH3R.js.map} +1 -1
- package/dist/chunk/RQIWEB6V.jsx +358 -0
- package/dist/chunk/{JQEJL7HE.jsx → SHSR6S3O.jsx} +2 -2
- package/dist/chunk/{ANR4H6TB.js → Y3KQOUKX.js} +3 -3
- package/dist/chunk/{ANR4H6TB.js.map → Y3KQOUKX.js.map} +1 -1
- package/dist/chunk/{W4HVE5RI.js → Z62HCCQ7.js} +253 -143
- package/dist/chunk/{W4HVE5RI.js.map → Z62HCCQ7.js.map} +1 -1
- package/dist/flows/index.js +3 -3
- package/dist/flows/index.jsx +3 -3
- package/dist/index/index.js +7 -7
- package/dist/index/index.jsx +17 -17
- package/dist/pages/index.js +4 -4
- package/dist/pages/index.jsx +4 -4
- package/dist/seo/index.d.ts +328 -0
- package/dist/seo/index.js +3 -0
- package/dist/seo/index.js.map +1 -0
- package/dist/seo/index.jsx +61 -0
- package/dist/seo/solid/index.d.ts +53 -0
- package/dist/seo/solid/index.js +85 -0
- package/dist/seo/solid/index.js.map +1 -0
- package/dist/seo/solid/index.jsx +89 -0
- package/dist/seo/vite/index.d.ts +63 -0
- package/dist/seo/vite/index.js +104 -0
- package/dist/seo/vite/index.js.map +1 -0
- package/dist/seo/vite/index.jsx +85 -0
- package/package.json +39 -2
package/dist/flows/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
1
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/OLCMHH3R.js';
|
|
2
2
|
import '../chunk/JQIEY5VS.js';
|
|
3
|
-
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsConsent, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/
|
|
4
|
-
import '../chunk/TUIMLDLN.js';
|
|
3
|
+
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsConsent, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/Y3KQOUKX.js';
|
|
5
4
|
import '../chunk/DFZFYIME.js';
|
|
5
|
+
import '../chunk/TUIMLDLN.js';
|
|
6
6
|
import '../chunk/FFHPVSPW.js';
|
|
7
7
|
import '../chunk/2IFPDU4D.js';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/dist/flows/index.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
startCartCapture,
|
|
5
5
|
useSubscriptionIntakeFlow,
|
|
6
6
|
validateResumedPromo
|
|
7
|
-
} from "../chunk/
|
|
7
|
+
} from "../chunk/SHSR6S3O.jsx";
|
|
8
8
|
import "../chunk/XRFUHRLK.jsx";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_COLOR_PALETTE,
|
|
@@ -138,9 +138,9 @@ import {
|
|
|
138
138
|
useUpdatePaymentMethodFlow,
|
|
139
139
|
validateAddress,
|
|
140
140
|
visibleWarnings
|
|
141
|
-
} from "../chunk/
|
|
142
|
-
import "../chunk/UWWII3GE.jsx";
|
|
141
|
+
} from "../chunk/GGAM2AJR.jsx";
|
|
143
142
|
import "../chunk/3PC2Z2QD.jsx";
|
|
143
|
+
import "../chunk/UWWII3GE.jsx";
|
|
144
144
|
import "../chunk/XWGLSZKD.jsx";
|
|
145
145
|
import "../chunk/QVZ7BRNO.jsx";
|
|
146
146
|
export {
|
package/dist/index/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import '../chunk/NVRAOAVV.js';
|
|
1
2
|
import '../chunk/XZVVZIRZ.js';
|
|
2
|
-
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/
|
|
3
|
+
export { OFFER_BEATS_PROMO_NOTICE, restoreCartFromLink, startCartCapture, useSubscriptionIntakeFlow, validateResumedPromo } from '../chunk/OLCMHH3R.js';
|
|
3
4
|
export { adoptCartId, capturePromoCode, cartId, clearPromoCode, fetchCartConfig, fetchResumedCart, postCartSnapshot, readCartToken, readPromoCode, resetCartConfigCache, resetCartId, stripCartToken } from '../chunk/JQIEY5VS.js';
|
|
4
|
-
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SmsConsentField, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/
|
|
5
|
+
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AddressFields, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SmsConsentField, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/Z62HCCQ7.js';
|
|
5
6
|
export { EmbedApiError2 as ApexV2ApiError, EmbedApiError, createEmbedApiClient, disqualificationReasonText, disqualifiedDrugIds, qualifiedDrugIds } from '../chunk/LZWA44KD.js';
|
|
6
|
-
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsConsent, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/
|
|
7
|
-
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, fetchSmsConfig, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, resetSmsConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/TUIMLDLN.js';
|
|
8
|
-
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
9
|
-
export { defaultPrimitives } from '../chunk/EXXI5Y7I.js';
|
|
10
|
-
import '../chunk/NVRAOAVV.js';
|
|
7
|
+
export { DEFAULT_COLOR_PALETTE, LIFECYCLE_BUCKETS, LIFECYCLE_LABEL, LIFECYCLE_TONE, LIVE_SUBSCRIPTION_STATUSES, MATCH_DEPENDENT_WARNINGS, MATCH_HOW_LABEL, ORPHAN_REASON, PHONE_ERROR, READINESS_LABEL, SOURCE_FIELD_NOTE, TERMINAL_SUBSCRIPTION_STATUSES, US_STATES, US_STATE_OPTIONS, accountSource, addCatalogItemAsProduct, applyPriceDrafts, availableStateOptions, availableStates, bestOfferDiscount, buildFulfillmentRows, buildMatrixView, buildRefillView, buildSaveBody, buildStrengthRows, buildTimeline, buildTrackerView, buildTrackingUrl, canLeaveUnmatched, canOfferConversion, captureFunnelEmail, catalogUnavailableMessage, categoryColor, classifyAddPharmacyError, classifyCatalogError, classifyConversionError, compareStrengths, createCatalogProduct, createFunnelTelemetry, deriveAttention, deriveCatalogAvailabilityDecision, deriveJourney, describeConversion, emailGateAnswered, explainFinding, findStoredDosePrice, flaggedSubscribers, formatCardNumber, formatConversationTime, formatCvv, formatEventDate, formatExpiry, formatMessageTime, formatRelativeTime, formatStageDate, formatUsPhone, groupDrugsByPharmacy, hasBlockers, hasConversion, hasErrors, initialMatches, isCatalogItemId, isCssColorValue, isLive, isQuestionVisible, isReconcilable, isValidUsPhone, lifecycleReason, liveDoses, lowestPrice, lowestSalePrice, markEmailGateAnswered, matchProblem, matchesComplete, missingPrices, moveInOrder, needsReview, normalizeState, normalizeStates, offerBeatsPromo, offerDurationText, offerSummaryText, parseMoney, pharmacyIsOnProduct, pharmacyLabel, primarySubscription, readinessStatus, reconcileCartAgainstCatalog, reconcileCartLines, redeemResumeLink, removeStoredDosePrice, resetResumeRedemption, resolveCategoryColor, resolveStrengthPrices, salePriceForBase, skuBindingModeFor, sourceKey, sourceLabel, stateAvailabilityNote, strengthsChanged, toChoices, toTrackerRequest, upsertDosePrice, useAddPharmacy, useAddressPair, useAffiliateConversions, useAffiliateDownline, useAffiliateLinks, useAffiliateStats, useCartCheckoutFlow, useCartReconcile, useCatalog, useCatalogAvailability, useCatalogConversion, useCheckoutFlow, useDashboardData, useMedicationSelect, useMemberPortalData, useMessagesThread, useProductCatalogEditor, useProductDetail, useRegisterFlow, useSignupFlow, useSmsConsent, useSmsPreferences, useSubscribeFlow, useSurveyFlow, useSurveyV2Flow, useUpdatePaymentMethodFlow, validateAddress, visibleWarnings } from '../chunk/Y3KQOUKX.js';
|
|
11
8
|
export { affiliateAuth_default as affiliateAuthStore, auth_default as authStore, cart_default as cartStore, medication_default as medicationStore } from '../chunk/DFZFYIME.js';
|
|
9
|
+
export { adoptFunnelSessionId, captureAuthHeader, fetchFunnelConfig, fetchResumedDraft, fetchSmsConfig, funnelSessionId, peekFunnelSessionId, postFunnelEvent, readResumeToken, resetFunnelConfigCache, resetSmsConfigCache, saveFunnelDraft, stripResumeToken } from '../chunk/TUIMLDLN.js';
|
|
12
10
|
export { ADMIN_ROLES, ApiError, SUPPORT_ATTACHMENT_MAX_BYTES, SUPPORT_ATTACHMENT_MIME_TYPES, addressesApi, adminAffiliatesApi, adminApi, adminCatalogApi, adminCatalogConversionApi, adminProductPharmaciesApi, affiliateAuthStorageKey, affiliatePortalApi, apexApi, apiFetch, authApi, authStorageKey, captureAffiliateRef, catalogApi, clearAffiliateRef, clearAffiliateTokens, clearTokens, getAffiliateTokens, getTokens, membersApi, messagesApi, newIdempotencyKey, offersApi, onTokensCleared, ordersApi, paymentsApi, productsApi, promoCodesApi, readAffiliateRef, setAffiliateTokens, setTokens, subscriptionsApi, supportApi, usersApi } from '../chunk/FFHPVSPW.js';
|
|
13
11
|
export { configure, getConfig } from '../chunk/2IFPDU4D.js';
|
|
12
|
+
export { PrimitivesProvider, usePrimitives } from '../chunk/67KHO66G.js';
|
|
13
|
+
export { defaultPrimitives } from '../chunk/EXXI5Y7I.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index/index.jsx
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "../chunk/3A3MF7R2.jsx";
|
|
1
2
|
import "../chunk/ESNAWOHG.jsx";
|
|
2
3
|
import {
|
|
3
4
|
OFFER_BEATS_PROMO_NOTICE,
|
|
@@ -5,7 +6,7 @@ import {
|
|
|
5
6
|
startCartCapture,
|
|
6
7
|
useSubscriptionIntakeFlow,
|
|
7
8
|
validateResumedPromo
|
|
8
|
-
} from "../chunk/
|
|
9
|
+
} from "../chunk/SHSR6S3O.jsx";
|
|
9
10
|
import {
|
|
10
11
|
adoptCartId,
|
|
11
12
|
capturePromoCode,
|
|
@@ -49,7 +50,7 @@ import {
|
|
|
49
50
|
adminTabPath,
|
|
50
51
|
affiliateSubTabFromPath,
|
|
51
52
|
affiliateSubTabPath
|
|
52
|
-
} from "../chunk/
|
|
53
|
+
} from "../chunk/CHLMWPRS.jsx";
|
|
53
54
|
import {
|
|
54
55
|
EmbedApiError,
|
|
55
56
|
EmbedApiError2,
|
|
@@ -190,7 +191,13 @@ import {
|
|
|
190
191
|
useUpdatePaymentMethodFlow,
|
|
191
192
|
validateAddress,
|
|
192
193
|
visibleWarnings
|
|
193
|
-
} from "../chunk/
|
|
194
|
+
} from "../chunk/GGAM2AJR.jsx";
|
|
195
|
+
import {
|
|
196
|
+
affiliateAuth_default,
|
|
197
|
+
auth_default,
|
|
198
|
+
cart_default,
|
|
199
|
+
medication_default
|
|
200
|
+
} from "../chunk/3PC2Z2QD.jsx";
|
|
194
201
|
import {
|
|
195
202
|
adoptFunnelSessionId,
|
|
196
203
|
captureAuthHeader,
|
|
@@ -206,20 +213,6 @@ import {
|
|
|
206
213
|
saveFunnelDraft,
|
|
207
214
|
stripResumeToken
|
|
208
215
|
} from "../chunk/UWWII3GE.jsx";
|
|
209
|
-
import {
|
|
210
|
-
PrimitivesProvider,
|
|
211
|
-
usePrimitives
|
|
212
|
-
} from "../chunk/J63XPQP4.jsx";
|
|
213
|
-
import {
|
|
214
|
-
defaultPrimitives
|
|
215
|
-
} from "../chunk/RSMUKR4J.jsx";
|
|
216
|
-
import "../chunk/3A3MF7R2.jsx";
|
|
217
|
-
import {
|
|
218
|
-
affiliateAuth_default,
|
|
219
|
-
auth_default,
|
|
220
|
-
cart_default,
|
|
221
|
-
medication_default
|
|
222
|
-
} from "../chunk/3PC2Z2QD.jsx";
|
|
223
216
|
import {
|
|
224
217
|
ADMIN_ROLES,
|
|
225
218
|
ApiError,
|
|
@@ -264,6 +257,13 @@ import {
|
|
|
264
257
|
configure,
|
|
265
258
|
getConfig
|
|
266
259
|
} from "../chunk/QVZ7BRNO.jsx";
|
|
260
|
+
import {
|
|
261
|
+
PrimitivesProvider,
|
|
262
|
+
usePrimitives
|
|
263
|
+
} from "../chunk/J63XPQP4.jsx";
|
|
264
|
+
import {
|
|
265
|
+
defaultPrimitives
|
|
266
|
+
} from "../chunk/RSMUKR4J.jsx";
|
|
267
267
|
export {
|
|
268
268
|
ADMIN_ROLES,
|
|
269
269
|
ADMIN_TAB_SEGMENTS,
|
package/dist/pages/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/
|
|
1
|
+
export { ADMIN_TAB_SEGMENTS, AFFILIATE_SUB_TAB_SEGMENTS, AcceptAdminInvitePage, AdminDashboard, AffiliateForgotPassword, AffiliateLogin, AffiliatePortal, AffiliateRegister, AffiliateResetPassword, CartCheckoutPage, CheckoutPage, EmailTemplates, ForgotPasswordPage, MemberPortal, PatientDashboardPreview, RegisterPage, ResetPasswordPage, SignupPage, SubscribePage, SurveyPage, SurveyV2Page, UpdatePaymentMethod, adminTabFromPath, adminTabPath, affiliateSubTabFromPath, affiliateSubTabPath } from '../chunk/Z62HCCQ7.js';
|
|
2
2
|
import '../chunk/LZWA44KD.js';
|
|
3
|
-
import '../chunk/
|
|
4
|
-
import '../chunk/TUIMLDLN.js';
|
|
5
|
-
import '../chunk/67KHO66G.js';
|
|
3
|
+
import '../chunk/Y3KQOUKX.js';
|
|
6
4
|
import '../chunk/DFZFYIME.js';
|
|
5
|
+
import '../chunk/TUIMLDLN.js';
|
|
7
6
|
import '../chunk/FFHPVSPW.js';
|
|
8
7
|
import '../chunk/2IFPDU4D.js';
|
|
8
|
+
import '../chunk/67KHO66G.js';
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/dist/pages/index.jsx
CHANGED
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
adminTabPath,
|
|
26
26
|
affiliateSubTabFromPath,
|
|
27
27
|
affiliateSubTabPath
|
|
28
|
-
} from "../chunk/
|
|
28
|
+
} from "../chunk/CHLMWPRS.jsx";
|
|
29
29
|
import "../chunk/UZCST66N.jsx";
|
|
30
|
-
import "../chunk/
|
|
31
|
-
import "../chunk/UWWII3GE.jsx";
|
|
32
|
-
import "../chunk/J63XPQP4.jsx";
|
|
30
|
+
import "../chunk/GGAM2AJR.jsx";
|
|
33
31
|
import "../chunk/3PC2Z2QD.jsx";
|
|
32
|
+
import "../chunk/UWWII3GE.jsx";
|
|
34
33
|
import "../chunk/XWGLSZKD.jsx";
|
|
35
34
|
import "../chunk/QVZ7BRNO.jsx";
|
|
35
|
+
import "../chunk/J63XPQP4.jsx";
|
|
36
36
|
export {
|
|
37
37
|
ADMIN_TAB_SEGMENTS,
|
|
38
38
|
AFFILIATE_SUB_TAB_SEGMENTS,
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The SEO model, shared by the browser runtime (`./index.tsx`) and the build
|
|
3
|
+
* plugin (`./vite.tsx`).
|
|
4
|
+
*
|
|
5
|
+
* Pure and DOM-free on purpose: the Vite plugin loads this module in Node while
|
|
6
|
+
* the site's vite.config runs, so nothing here may import solid-js or touch
|
|
7
|
+
* `document`. Everything a site states about a page lives in ONE manifest, and
|
|
8
|
+
* both sides resolve it through `resolvePage()` → `headTags()`, so the static
|
|
9
|
+
* head a crawler reads and the head the running app maintains cannot disagree.
|
|
10
|
+
*/
|
|
11
|
+
/** An image for social previews. `url` may be site-relative ("/og.png"). */
|
|
12
|
+
interface SeoImage {
|
|
13
|
+
url: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
height?: number;
|
|
16
|
+
alt?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A JSON-LD node. Builders below return these; any schema.org object works. */
|
|
19
|
+
type JsonLd = {
|
|
20
|
+
'@type': string | string[];
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
23
|
+
/** Values substituted into `{name}` tokens in titles and descriptions. */
|
|
24
|
+
type SeoVars = Record<string, string | number | null | undefined>;
|
|
25
|
+
/** What the site states once, for every page. */
|
|
26
|
+
interface SeoSite {
|
|
27
|
+
/** Canonical origin, no trailing slash: "https://healthyberri.com". */
|
|
28
|
+
origin: string;
|
|
29
|
+
/** Brand name as it should appear in titles and og:site_name. */
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* How a page title becomes the document title. `%s` is the page title.
|
|
33
|
+
* Default `"%s | <name>"`. A route can opt out with `titleAbsolute`.
|
|
34
|
+
*/
|
|
35
|
+
titleTemplate?: string;
|
|
36
|
+
/** Title for routes that state none (and for unlisted routes). */
|
|
37
|
+
defaultTitle: string;
|
|
38
|
+
/** Description for routes that state none (and for unlisted routes). */
|
|
39
|
+
defaultDescription: string;
|
|
40
|
+
/** Social preview image used when a route names none. */
|
|
41
|
+
defaultImage?: SeoImage;
|
|
42
|
+
/** og:locale, e.g. "en_US". */
|
|
43
|
+
locale?: string;
|
|
44
|
+
/** twitter:site handle, e.g. "@acme". */
|
|
45
|
+
twitterSite?: string;
|
|
46
|
+
/** <meta name="theme-color">. */
|
|
47
|
+
themeColor?: string;
|
|
48
|
+
/**
|
|
49
|
+
* False on every non-production deploy. Forces `noindex, nofollow` onto every
|
|
50
|
+
* page and turns robots.txt into `Disallow: /`, so a dev site on a public
|
|
51
|
+
* URL can never be indexed or compete with production.
|
|
52
|
+
*/
|
|
53
|
+
indexable: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* What a URL the manifest does not list gets. `noindex` (default) means a
|
|
56
|
+
* new private page is safe by default: only pages someone deliberately
|
|
57
|
+
* listed can be indexed.
|
|
58
|
+
*/
|
|
59
|
+
unlisted?: 'noindex' | 'index';
|
|
60
|
+
/** Label for the root in auto-generated breadcrumbs. Default "Home". */
|
|
61
|
+
homeLabel?: string;
|
|
62
|
+
/** Values available to every `{token}` (support email, brand phrases...). */
|
|
63
|
+
vars?: SeoVars;
|
|
64
|
+
}
|
|
65
|
+
/** Context handed to a route's `jsonLd` function. */
|
|
66
|
+
interface JsonLdContext {
|
|
67
|
+
site: SeoSite;
|
|
68
|
+
/** Absolute canonical URL of this page. */
|
|
69
|
+
url: string;
|
|
70
|
+
/** This page, already resolved (final title, description, image). */
|
|
71
|
+
page: ResolvedPage;
|
|
72
|
+
vars: SeoVars;
|
|
73
|
+
}
|
|
74
|
+
/** What one route states. Every field is optional except `path`. */
|
|
75
|
+
interface SeoRoute {
|
|
76
|
+
/**
|
|
77
|
+
* "/", "/pricing", "/guides/:slug" (params become vars), or a prefix group
|
|
78
|
+
* "/admin/*". A group is never prerendered or put in the sitemap; use it to
|
|
79
|
+
* mark whole private areas.
|
|
80
|
+
*/
|
|
81
|
+
path: string;
|
|
82
|
+
/** Page title, before `titleTemplate`. Supports `{tokens}` and `[[optional clauses]]`. */
|
|
83
|
+
title?: string;
|
|
84
|
+
/** Use `title` as the whole document title, without the template. */
|
|
85
|
+
titleAbsolute?: boolean;
|
|
86
|
+
/** Meta description. Supports `{tokens}` and `[[optional clauses]]`. */
|
|
87
|
+
description?: string;
|
|
88
|
+
/** Short name for breadcrumbs and nav ("Semaglutide"). Enables auto breadcrumbs. */
|
|
89
|
+
label?: string;
|
|
90
|
+
image?: SeoImage;
|
|
91
|
+
/** og:type. Default "website". */
|
|
92
|
+
ogType?: string;
|
|
93
|
+
/** Exclude from search results. The page can still be crawled. */
|
|
94
|
+
noindex?: boolean;
|
|
95
|
+
/** Ask crawlers not to follow links on this page. */
|
|
96
|
+
nofollow?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Keep crawlers out entirely (robots.txt Disallow). Implies noindex. For
|
|
99
|
+
* account, checkout and admin areas — not for pages that only need to stay
|
|
100
|
+
* out of results, because a blocked page's noindex is never seen.
|
|
101
|
+
*/
|
|
102
|
+
crawl?: false;
|
|
103
|
+
/** Override the canonical URL (absolute or site-relative). Default: this path. */
|
|
104
|
+
canonical?: string;
|
|
105
|
+
/** hreflang alternates. */
|
|
106
|
+
alternates?: {
|
|
107
|
+
hreflang: string;
|
|
108
|
+
href: string;
|
|
109
|
+
}[];
|
|
110
|
+
/** Structured data for this page. Breadcrumbs are added automatically. */
|
|
111
|
+
jsonLd?: JsonLd[] | ((ctx: JsonLdContext) => JsonLd[]);
|
|
112
|
+
/** Leave out of sitemap.xml (it still prerenders). */
|
|
113
|
+
sitemap?: false;
|
|
114
|
+
/** sitemap <lastmod>, "YYYY-MM-DD". */
|
|
115
|
+
lastmod?: string;
|
|
116
|
+
}
|
|
117
|
+
interface SeoManifest {
|
|
118
|
+
site: SeoSite;
|
|
119
|
+
routes: SeoRoute[];
|
|
120
|
+
}
|
|
121
|
+
/** A page after templates, tokens, defaults and robots policy are applied. */
|
|
122
|
+
interface ResolvedPage {
|
|
123
|
+
path: string;
|
|
124
|
+
/** Final document title. */
|
|
125
|
+
title: string;
|
|
126
|
+
/** The page title before the template (for og:title). */
|
|
127
|
+
pageTitle: string;
|
|
128
|
+
description: string;
|
|
129
|
+
/** Absolute canonical URL, or null when the page should not declare one. */
|
|
130
|
+
canonical: string | null;
|
|
131
|
+
/** Content of <meta name="robots">. */
|
|
132
|
+
robots: string;
|
|
133
|
+
indexable: boolean;
|
|
134
|
+
image: SeoImage | null;
|
|
135
|
+
ogType: string;
|
|
136
|
+
alternates: {
|
|
137
|
+
hreflang: string;
|
|
138
|
+
href: string;
|
|
139
|
+
}[];
|
|
140
|
+
jsonLd: JsonLd[];
|
|
141
|
+
/** True when no manifest entry matched. */
|
|
142
|
+
unlisted: boolean;
|
|
143
|
+
}
|
|
144
|
+
/** Per-page overrides a component can apply on top of its manifest entry. */
|
|
145
|
+
type SeoOverrides = Partial<Omit<SeoRoute, 'path'>>;
|
|
146
|
+
/**
|
|
147
|
+
* Declare the manifest. Validates it eagerly so a typo fails the build, not a
|
|
148
|
+
* crawl three weeks later.
|
|
149
|
+
*/
|
|
150
|
+
declare function defineSeo(manifest: SeoManifest): SeoManifest;
|
|
151
|
+
/** "/pricing/" → "/pricing"; "" → "/". Query and hash are dropped. */
|
|
152
|
+
declare function normalizePath(path: string): string;
|
|
153
|
+
declare function isGroup(route: SeoRoute): boolean;
|
|
154
|
+
declare function hasParams(route: SeoRoute): boolean;
|
|
155
|
+
/** A route that names exactly one URL — the ones that prerender and go in the sitemap. */
|
|
156
|
+
declare function isConcrete(route: SeoRoute): boolean;
|
|
157
|
+
interface RouteMatch {
|
|
158
|
+
route: SeoRoute;
|
|
159
|
+
params: Record<string, string>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The manifest entry for a pathname. Exact paths beat param patterns, which
|
|
163
|
+
* beat groups; among groups the longest prefix wins.
|
|
164
|
+
*/
|
|
165
|
+
declare function matchRoute(routes: SeoRoute[], pathname: string): RouteMatch | null;
|
|
166
|
+
/** Site-relative or absolute → absolute against the origin. */
|
|
167
|
+
declare function absoluteUrl(site: SeoSite, href: string): string;
|
|
168
|
+
/** Canonical URL for a path: the origin with a slash for the root, no trailing slash otherwise. */
|
|
169
|
+
declare function canonicalUrl(site: SeoSite, path: string): string;
|
|
170
|
+
declare class UnresolvedTokenError extends Error {
|
|
171
|
+
token: string;
|
|
172
|
+
text: string;
|
|
173
|
+
constructor(token: string, text: string);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Fill `{token}`s from `vars`.
|
|
177
|
+
*
|
|
178
|
+
* A clause in `[[ ]]` is optional: it is dropped whole when any token inside it
|
|
179
|
+
* has no value. That is how a description can carry a live price without
|
|
180
|
+
* hard-coding one — "Plans[[ from {fromPrice}/month]], if prescribed." reads
|
|
181
|
+
* "Plans, if prescribed." until the price is known, and never shows a stale or
|
|
182
|
+
* empty figure. A token outside any clause must resolve: in `strict` mode
|
|
183
|
+
* (the build) a missing one throws; otherwise it renders empty.
|
|
184
|
+
*/
|
|
185
|
+
declare function interpolate(text: string, vars: SeoVars, strict?: boolean): string;
|
|
186
|
+
interface ResolveOptions {
|
|
187
|
+
/** Runtime values for `{tokens}`; merged over `site.vars` and route params. */
|
|
188
|
+
vars?: SeoVars;
|
|
189
|
+
/** Per-page overrides (from a `<Seo>` in the page). */
|
|
190
|
+
overrides?: SeoOverrides;
|
|
191
|
+
/** Throw on an unresolved required token (the build does; the browser does not). */
|
|
192
|
+
strict?: boolean;
|
|
193
|
+
}
|
|
194
|
+
/** Turn a pathname into the exact head the page should have. */
|
|
195
|
+
declare function resolvePage(manifest: SeoManifest, pathname: string, opts?: ResolveOptions): ResolvedPage;
|
|
196
|
+
/**
|
|
197
|
+
* BreadcrumbList from the manifest's own hierarchy: every ancestor path that
|
|
198
|
+
* is listed with a `label` becomes a crumb, under the root. Emitted only for a
|
|
199
|
+
* labelled, non-root page, so adding `label` is the whole opt-in.
|
|
200
|
+
*/
|
|
201
|
+
declare function autoBreadcrumbs(manifest: SeoManifest, path: string, label?: string): JsonLd | null;
|
|
202
|
+
/**
|
|
203
|
+
* One element the head should contain. `key` identifies it so the runtime can
|
|
204
|
+
* update an existing element instead of adding a second one (one canonical,
|
|
205
|
+
* one description — never two).
|
|
206
|
+
*/
|
|
207
|
+
interface HeadTag {
|
|
208
|
+
key: string;
|
|
209
|
+
tag: 'title' | 'meta' | 'link' | 'script';
|
|
210
|
+
attrs: Record<string, string>;
|
|
211
|
+
text?: string;
|
|
212
|
+
}
|
|
213
|
+
/** The complete, ordered set of managed head elements for a page. */
|
|
214
|
+
declare function headTags(site: SeoSite, page: ResolvedPage): HeadTag[];
|
|
215
|
+
/** The attribute that marks an element as owned by this module. */
|
|
216
|
+
declare const SEO_ATTR = "data-seo";
|
|
217
|
+
/** JSON-LD text safe to place inside a <script> element. */
|
|
218
|
+
declare function jsonLdText(node: JsonLd): string;
|
|
219
|
+
/** Static HTML for a set of head tags, each marked so the runtime adopts it. */
|
|
220
|
+
declare function renderHeadTags(tags: HeadTag[]): string;
|
|
221
|
+
/**
|
|
222
|
+
* Remove what this module manages from an HTML document's head: any element
|
|
223
|
+
* carrying `data-seo`, plus the hand-written <title>, description and robots
|
|
224
|
+
* that a site's index.html starts with. Returns the document ready for
|
|
225
|
+
* `injectHead()`.
|
|
226
|
+
*/
|
|
227
|
+
declare function stripManagedHead(html: string): string;
|
|
228
|
+
/** Insert rendered tags at the top of <head>, after <meta charset> and viewport if present. */
|
|
229
|
+
declare function injectHead(html: string, headHtml: string): string;
|
|
230
|
+
/** The whole document for one path: strip, resolve, render, inject. */
|
|
231
|
+
declare function renderDocument(html: string, manifest: SeoManifest, pathname: string, opts?: ResolveOptions): string;
|
|
232
|
+
/**
|
|
233
|
+
* sitemap.xml: every concrete, indexable, listed route. Empty on a site that
|
|
234
|
+
* is not indexable — a sitemap advertising pages that all say noindex is a
|
|
235
|
+
* Search Console error, not a hint.
|
|
236
|
+
*/
|
|
237
|
+
declare function sitemapXml(manifest: SeoManifest, extra?: {
|
|
238
|
+
path: string;
|
|
239
|
+
lastmod?: string;
|
|
240
|
+
}[]): string;
|
|
241
|
+
/**
|
|
242
|
+
* robots.txt. On an indexable site: allow everything except routes marked
|
|
243
|
+
* `crawl: false` (groups included), and point at the sitemap. Otherwise:
|
|
244
|
+
* disallow everything.
|
|
245
|
+
*/
|
|
246
|
+
declare function robotsTxt(manifest: SeoManifest, opts?: {
|
|
247
|
+
sitemapPath?: string;
|
|
248
|
+
}): string;
|
|
249
|
+
interface PostalAddressInput {
|
|
250
|
+
streetAddress: string;
|
|
251
|
+
addressLocality: string;
|
|
252
|
+
addressRegion: string;
|
|
253
|
+
postalCode: string;
|
|
254
|
+
addressCountry?: string;
|
|
255
|
+
}
|
|
256
|
+
interface OrganizationInput {
|
|
257
|
+
name: string;
|
|
258
|
+
url: string;
|
|
259
|
+
logo?: string;
|
|
260
|
+
/** Profiles that are verifiably this organization (social, directories). */
|
|
261
|
+
sameAs?: string[];
|
|
262
|
+
email?: string;
|
|
263
|
+
telephone?: string;
|
|
264
|
+
address?: PostalAddressInput;
|
|
265
|
+
/** schema.org type. Default "Organization". */
|
|
266
|
+
type?: 'Organization' | 'MedicalOrganization' | 'MedicalBusiness' | 'OnlineBusiness';
|
|
267
|
+
/** Stable node id so other nodes can reference it. Default `<url>#organization`. */
|
|
268
|
+
id?: string;
|
|
269
|
+
}
|
|
270
|
+
declare function organization(o: OrganizationInput): JsonLd;
|
|
271
|
+
declare function webSite(o: {
|
|
272
|
+
name: string;
|
|
273
|
+
url: string;
|
|
274
|
+
publisherId?: string;
|
|
275
|
+
searchUrlTemplate?: string;
|
|
276
|
+
}): JsonLd;
|
|
277
|
+
declare function breadcrumbList(items: {
|
|
278
|
+
name: string;
|
|
279
|
+
url: string;
|
|
280
|
+
}[]): JsonLd;
|
|
281
|
+
/**
|
|
282
|
+
* FAQPage. Pass the SAME question/answer data the page renders — structured
|
|
283
|
+
* data must describe content that is visible on the page.
|
|
284
|
+
*/
|
|
285
|
+
declare function faqPage(items: {
|
|
286
|
+
question: string;
|
|
287
|
+
answer: string;
|
|
288
|
+
}[]): JsonLd;
|
|
289
|
+
interface WebPageInput {
|
|
290
|
+
url: string;
|
|
291
|
+
name: string;
|
|
292
|
+
description?: string;
|
|
293
|
+
/** "MedicalWebPage" for health content. */
|
|
294
|
+
type?: 'WebPage' | 'MedicalWebPage' | 'AboutPage' | 'ContactPage' | 'FAQPage' | 'CollectionPage';
|
|
295
|
+
/** What the page is about, e.g. `{ '@type': 'Drug', name: 'Semaglutide' }`. */
|
|
296
|
+
about?: JsonLd | JsonLd[];
|
|
297
|
+
/** "YYYY-MM-DD" of the last medical/editorial review. */
|
|
298
|
+
lastReviewed?: string;
|
|
299
|
+
/** Who reviewed it — a real, named Person or Organization only. */
|
|
300
|
+
reviewedBy?: JsonLd;
|
|
301
|
+
/** e.g. "Patient" | "Clinician" for MedicalWebPage. */
|
|
302
|
+
audience?: string;
|
|
303
|
+
publisherId?: string;
|
|
304
|
+
}
|
|
305
|
+
declare function webPage(o: WebPageInput): JsonLd;
|
|
306
|
+
interface ArticleInput {
|
|
307
|
+
url: string;
|
|
308
|
+
headline: string;
|
|
309
|
+
description?: string;
|
|
310
|
+
image?: string;
|
|
311
|
+
datePublished: string;
|
|
312
|
+
dateModified?: string;
|
|
313
|
+
author: JsonLd;
|
|
314
|
+
publisherId?: string;
|
|
315
|
+
/** Medical review, for health articles. */
|
|
316
|
+
reviewedBy?: JsonLd;
|
|
317
|
+
lastReviewed?: string;
|
|
318
|
+
}
|
|
319
|
+
/** Article for guides and blog posts (the kind of page a "semaglutide vs tirzepatide" guide is). */
|
|
320
|
+
declare function article(o: ArticleInput): JsonLd;
|
|
321
|
+
/** A drug as a page's subject. Name only unless you can state more accurately. */
|
|
322
|
+
declare function drug(o: {
|
|
323
|
+
name: string;
|
|
324
|
+
nonProprietaryName?: string;
|
|
325
|
+
url?: string;
|
|
326
|
+
}): JsonLd;
|
|
327
|
+
|
|
328
|
+
export { type ArticleInput, type HeadTag, type JsonLd, type JsonLdContext, type OrganizationInput, type PostalAddressInput, type ResolveOptions, type ResolvedPage, type RouteMatch, SEO_ATTR, type SeoImage, type SeoManifest, type SeoOverrides, type SeoRoute, type SeoSite, type SeoVars, UnresolvedTokenError, type WebPageInput, absoluteUrl, article, autoBreadcrumbs, breadcrumbList, canonicalUrl, defineSeo, drug, faqPage, hasParams, headTags, injectHead, interpolate, isConcrete, isGroup, jsonLdText, matchRoute, normalizePath, organization, renderDocument, renderHeadTags, resolvePage, robotsTxt, sitemapXml, stripManagedHead, webPage, webSite };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { SEO_ATTR, UnresolvedTokenError, absoluteUrl, article, autoBreadcrumbs, breadcrumbList, canonicalUrl, defineSeo, drug, faqPage, hasParams, headTags, injectHead, interpolate, isConcrete, isGroup, jsonLdText, matchRoute, normalizePath, organization, renderDocument, renderHeadTags, resolvePage, robotsTxt, sitemapXml, stripManagedHead, webPage, webSite } from '../chunk/AGPFMEFL.js';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SEO_ATTR,
|
|
3
|
+
UnresolvedTokenError,
|
|
4
|
+
absoluteUrl,
|
|
5
|
+
article,
|
|
6
|
+
autoBreadcrumbs,
|
|
7
|
+
breadcrumbList,
|
|
8
|
+
canonicalUrl,
|
|
9
|
+
defineSeo,
|
|
10
|
+
drug,
|
|
11
|
+
faqPage,
|
|
12
|
+
hasParams,
|
|
13
|
+
headTags,
|
|
14
|
+
injectHead,
|
|
15
|
+
interpolate,
|
|
16
|
+
isConcrete,
|
|
17
|
+
isGroup,
|
|
18
|
+
jsonLdText,
|
|
19
|
+
matchRoute,
|
|
20
|
+
normalizePath,
|
|
21
|
+
organization,
|
|
22
|
+
renderDocument,
|
|
23
|
+
renderHeadTags,
|
|
24
|
+
resolvePage,
|
|
25
|
+
robotsTxt,
|
|
26
|
+
sitemapXml,
|
|
27
|
+
stripManagedHead,
|
|
28
|
+
webPage,
|
|
29
|
+
webSite
|
|
30
|
+
} from "../chunk/RQIWEB6V.jsx";
|
|
31
|
+
export {
|
|
32
|
+
SEO_ATTR,
|
|
33
|
+
UnresolvedTokenError,
|
|
34
|
+
absoluteUrl,
|
|
35
|
+
article,
|
|
36
|
+
autoBreadcrumbs,
|
|
37
|
+
breadcrumbList,
|
|
38
|
+
canonicalUrl,
|
|
39
|
+
defineSeo,
|
|
40
|
+
drug,
|
|
41
|
+
faqPage,
|
|
42
|
+
hasParams,
|
|
43
|
+
headTags,
|
|
44
|
+
injectHead,
|
|
45
|
+
interpolate,
|
|
46
|
+
isConcrete,
|
|
47
|
+
isGroup,
|
|
48
|
+
jsonLdText,
|
|
49
|
+
matchRoute,
|
|
50
|
+
normalizePath,
|
|
51
|
+
organization,
|
|
52
|
+
renderDocument,
|
|
53
|
+
renderHeadTags,
|
|
54
|
+
resolvePage,
|
|
55
|
+
robotsTxt,
|
|
56
|
+
sitemapXml,
|
|
57
|
+
stripManagedHead,
|
|
58
|
+
webPage,
|
|
59
|
+
webSite
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=index.jsx.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { JSX, Accessor } from 'solid-js';
|
|
2
|
+
import { SeoOverrides, SeoManifest, SeoVars, HeadTag, ResolvedPage } from '../index.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Browser side of the SEO module: keeps `document.head` equal to what the
|
|
6
|
+
* manifest says for the current route.
|
|
7
|
+
*
|
|
8
|
+
* A site mounts `<SeoProvider>` once, around its router outlet, and from then
|
|
9
|
+
* on every listed route gets its title, description, canonical, robots, social
|
|
10
|
+
* tags and JSON-LD with no code in the page. A page that knows something the
|
|
11
|
+
* manifest cannot (a live price, a fetched article) adds `<Seo ... />` with
|
|
12
|
+
* overrides, or feeds values through the provider's `vars`.
|
|
13
|
+
*
|
|
14
|
+
* The head it writes is the same `headTags()` output the build plugin bakes
|
|
15
|
+
* into each prerendered HTML file, keyed by `data-seo`, so on first load the
|
|
16
|
+
* runtime adopts the static elements in place rather than adding duplicates.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
interface SeoProviderProps {
|
|
20
|
+
manifest: SeoManifest;
|
|
21
|
+
/**
|
|
22
|
+
* The current pathname, as a signal. With @solidjs/router:
|
|
23
|
+
* `pathname={() => useLocation().pathname}` — taken as a prop so this
|
|
24
|
+
* package does not depend on a router.
|
|
25
|
+
*/
|
|
26
|
+
pathname: Accessor<string>;
|
|
27
|
+
/**
|
|
28
|
+
* Live values for `{tokens}`, e.g. `() => ({ fromPrice: price() })`. Optional
|
|
29
|
+
* clauses (`[[...]]`) fill in as soon as their values arrive.
|
|
30
|
+
*/
|
|
31
|
+
vars?: Accessor<SeoVars>;
|
|
32
|
+
children?: JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
declare function SeoProvider(props: SeoProviderProps): JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* Override this page's SEO from inside the page, for as long as it is mounted.
|
|
37
|
+
* Pass an accessor for values that change (`useSeo(() => ({ title: post()?.title }))`).
|
|
38
|
+
* Overrides merge over the manifest entry; `undefined` fields are ignored.
|
|
39
|
+
*/
|
|
40
|
+
declare function useSeo(overrides: SeoOverrides | Accessor<SeoOverrides>): void;
|
|
41
|
+
/** Component form of `useSeo`. Renders nothing. */
|
|
42
|
+
declare function Seo(props: SeoOverrides): JSX.Element;
|
|
43
|
+
/** The resolved SEO for the current page, or null outside a provider. */
|
|
44
|
+
declare function useSeoPage(): Accessor<ResolvedPage> | null;
|
|
45
|
+
/**
|
|
46
|
+
* Make `document.head` match `tags`: update an existing element when one
|
|
47
|
+
* matches (whether the build wrote it or the site's index.html did), create it
|
|
48
|
+
* otherwise, remove duplicates of it, and remove every element this module
|
|
49
|
+
* owned that is no longer wanted.
|
|
50
|
+
*/
|
|
51
|
+
declare function applyHead(tags: HeadTag[], doc?: Document): void;
|
|
52
|
+
|
|
53
|
+
export { Seo, SeoProvider, type SeoProviderProps, applyHead, useSeo, useSeoPage };
|