@uptrademedia/site-kit 1.1.1 → 1.1.2

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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-6NTMCSHP.js → chunk-53UQPBNI.js} +2 -2
  3. package/dist/{chunk-6NTMCSHP.js.map → chunk-53UQPBNI.js.map} +1 -1
  4. package/dist/{chunk-GM2ZDV2B.mjs → chunk-AQWUIXKC.mjs} +4 -3
  5. package/dist/chunk-AQWUIXKC.mjs.map +1 -0
  6. package/dist/{chunk-JRCYNWUZ.js → chunk-GHSZWROI.js} +5 -5
  7. package/dist/{chunk-JRCYNWUZ.js.map → chunk-GHSZWROI.js.map} +1 -1
  8. package/dist/{chunk-ZG2AGGPZ.js → chunk-HAQGHTGV.js} +3 -3
  9. package/dist/chunk-HAQGHTGV.js.map +1 -0
  10. package/dist/{chunk-F6D3L676.js → chunk-HEUULOSC.js} +4 -4
  11. package/dist/{chunk-F6D3L676.js.map → chunk-HEUULOSC.js.map} +1 -1
  12. package/dist/{chunk-QT73LSTP.mjs → chunk-HYJHGCYY.mjs} +3 -3
  13. package/dist/chunk-HYJHGCYY.mjs.map +1 -0
  14. package/dist/{chunk-WG2SI2UN.mjs → chunk-KG46POJZ.mjs} +2 -2
  15. package/dist/{chunk-WG2SI2UN.mjs.map → chunk-KG46POJZ.mjs.map} +1 -1
  16. package/dist/{chunk-ASVFZY6X.mjs → chunk-TJUON7TH.mjs} +2 -2
  17. package/dist/chunk-TJUON7TH.mjs.map +1 -0
  18. package/dist/{chunk-H5PVDCCM.js → chunk-UENZ4BYN.js} +4 -3
  19. package/dist/chunk-UENZ4BYN.js.map +1 -0
  20. package/dist/{chunk-4KKQQRZV.js → chunk-V7QPQBFG.js} +2 -2
  21. package/dist/chunk-V7QPQBFG.js.map +1 -0
  22. package/dist/{chunk-WZMRFNJK.mjs → chunk-YT5SBY5W.mjs} +4 -4
  23. package/dist/{chunk-WZMRFNJK.mjs.map → chunk-YT5SBY5W.mjs.map} +1 -1
  24. package/dist/{chunk-35Y3M4ZE.mjs → chunk-ZUYWXUHQ.mjs} +5 -5
  25. package/dist/{chunk-35Y3M4ZE.mjs.map → chunk-ZUYWXUHQ.mjs.map} +1 -1
  26. package/dist/cli/index.js +4 -4
  27. package/dist/cli/index.js.map +1 -1
  28. package/dist/cli/index.mjs +2 -2
  29. package/dist/cli/index.mjs.map +1 -1
  30. package/dist/engage/index.d.mts +2 -1
  31. package/dist/engage/index.d.ts +2 -1
  32. package/dist/engage/index.js +4 -4
  33. package/dist/engage/index.mjs +1 -1
  34. package/dist/{generators-H6YQQRR4.mjs → generators-EQHJ22YW.mjs} +3 -3
  35. package/dist/{generators-H6YQQRR4.mjs.map → generators-EQHJ22YW.mjs.map} +1 -1
  36. package/dist/{generators-HZZLGIUB.js → generators-UXPMVYP4.js} +9 -9
  37. package/dist/{generators-HZZLGIUB.js.map → generators-UXPMVYP4.js.map} +1 -1
  38. package/dist/index.d.mts +9 -4
  39. package/dist/index.d.ts +9 -4
  40. package/dist/index.js +25 -23
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.mjs +19 -17
  43. package/dist/index.mjs.map +1 -1
  44. package/dist/redirects/index.d.mts +1 -1
  45. package/dist/redirects/index.d.ts +1 -1
  46. package/dist/redirects/index.js +5 -5
  47. package/dist/redirects/index.mjs +1 -1
  48. package/dist/{routing-DpR93G8R.d.ts → routing-D311WhuV.d.ts} +1 -1
  49. package/dist/{routing-yuOiCiAy.d.mts → routing-bTjqOM8S.d.mts} +1 -1
  50. package/dist/seo/index.d.mts +1 -1
  51. package/dist/seo/index.d.ts +1 -1
  52. package/dist/seo/index.js +5 -5
  53. package/dist/seo/index.mjs +1 -1
  54. package/dist/seo/register-sitemap-cli.mjs +0 -0
  55. package/dist/seo/server.d.mts +1 -1
  56. package/dist/seo/server.d.ts +1 -1
  57. package/dist/seo/server.js +3 -3
  58. package/dist/seo/server.mjs +1 -1
  59. package/dist/setup/client.js +3 -3
  60. package/dist/setup/client.mjs +1 -1
  61. package/dist/setup/index.js +5 -5
  62. package/dist/setup/index.mjs +2 -2
  63. package/dist/setup/server.js +2 -2
  64. package/dist/setup/server.mjs +1 -1
  65. package/package.json +10 -10
  66. package/dist/chunk-4KKQQRZV.js.map +0 -1
  67. package/dist/chunk-ASVFZY6X.mjs.map +0 -1
  68. package/dist/chunk-GM2ZDV2B.mjs.map +0 -1
  69. package/dist/chunk-H5PVDCCM.js.map +0 -1
  70. package/dist/chunk-QT73LSTP.mjs.map +0 -1
  71. package/dist/chunk-ZG2AGGPZ.js.map +0 -1
package/dist/index.mjs CHANGED
@@ -2,11 +2,11 @@ export { ManagedImage, assignImageToSlot, clearImageSlot, fetchManagedImage, fet
2
2
  import './chunk-CSB2IVNY.mjs';
3
3
  export { TestimonialSection, fetchReviewStats, fetchReviews } from './chunk-QD66FTXZ.mjs';
4
4
  export { CalendarView, CheckoutForm, EventCalendar, EventEmbed, EventModal, EventTile, OfferingCard, OfferingList, ProductEmbed, RegistrationForm, UpcomingEvents, createCheckoutSession, fetchNextEvent, fetchOffering, fetchOfferings, fetchProducts, fetchServices, fetchUpcomingEvents, formatDate, formatDateTime, formatPrice, getOfferingUrl, registerForEvent, useEventModal } from './chunk-TI5CH4WT.mjs';
5
- export { SetupWizard } from './chunk-35Y3M4ZE.mjs';
6
- export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './chunk-ASVFZY6X.mjs';
5
+ export { SetupWizard } from './chunk-ZUYWXUHQ.mjs';
6
+ export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './chunk-TJUON7TH.mjs';
7
7
  import { SitemapSync } from './chunk-BQOFRBGZ.mjs';
8
8
  import { AnalyticsProvider } from './chunk-OW2C3ATV.mjs';
9
- import { EngageWidget } from './chunk-GM2ZDV2B.mjs';
9
+ import { EngageWidget } from './chunk-AQWUIXKC.mjs';
10
10
  import { configureFormsApi } from './chunk-SMUFNQLM.mjs';
11
11
  import './chunk-4XPGGLVP.mjs';
12
12
  import React3, { createContext, useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from 'react';
@@ -352,6 +352,7 @@ function SiteKitProvider({
352
352
  apiKey,
353
353
  apiUrl,
354
354
  signalUrl,
355
+ projectId,
355
356
  analytics,
356
357
  engage,
357
358
  forms,
@@ -427,6 +428,7 @@ function SiteKitProvider({
427
428
  {
428
429
  apiUrl: finalApiUrl,
429
430
  apiKey,
431
+ projectId,
430
432
  position: engage.position || "bottom-right",
431
433
  chatEnabled: engage.chatEnabled !== false
432
434
  }
@@ -841,7 +843,7 @@ var styles = {
841
843
  var MODULES = [
842
844
  { id: "analytics", name: "Analytics", icon: "\u{1F4CA}", description: "Page views, events, sessions, web vitals", recommended: true },
843
845
  { id: "seo", name: "SEO", icon: "\u{1F50D}", description: "Managed FAQs, meta tags, schema markup", recommended: true },
844
- { id: "forms", name: "Forms", icon: "\u{1F4DD}", description: "Portal-managed forms with submissions", recommended: true },
846
+ { id: "forms", name: "Forms", icon: "\u{1F4DD}", description: "Sonor-managed forms with submissions", recommended: true },
845
847
  { id: "engage", name: "Engage", icon: "\u{1F4AC}", description: "Live chat, popups, nudges, banners", recommended: false },
846
848
  { id: "commerce", name: "Commerce", icon: "\u{1F6D2}", description: "Products, services, checkout", recommended: false },
847
849
  { id: "signal", name: "Signal AI", icon: "\u{1F916}", description: "Autonomous optimization & A/B testing", recommended: false }
@@ -1068,9 +1070,9 @@ I'll help you integrate Uptrade Site-Kit into your project. What are we working
1068
1070
  addMessage({ role: "user", content: "Let's do it!" });
1069
1071
  setState((prev) => ({ ...prev, step: "auth" }));
1070
1072
  addAssistantMessage(
1071
- `Great! First, let's connect to your Uptrade Portal account.
1073
+ `Great! First, let's connect to your Sonor account.
1072
1074
 
1073
- You can sign in with your existing Portal credentials:`,
1075
+ You can sign in with your existing Sonor credentials:`,
1074
1076
  [
1075
1077
  { id: "1", label: "Sign in with Email", action: "auth_email", variant: "primary" },
1076
1078
  { id: "2", label: "Sign in with Google", action: "auth_google", variant: "secondary" },
@@ -1081,18 +1083,18 @@ You can sign in with your existing Portal credentials:`,
1081
1083
  case "explain":
1082
1084
  addMessage({ role: "user", content: "Tell me more first" });
1083
1085
  addAssistantMessage(
1084
- `Uptrade Site-Kit is a lightweight package that connects your site to the Uptrade Portal.
1086
+ `Uptrade Site-Kit is a lightweight package that connects your site to Sonor.
1085
1087
 
1086
1088
  Here's what you can enable:
1087
1089
 
1088
1090
  \u{1F4CA} **Analytics** - Track page views, events, and Core Web Vitals
1089
1091
  \u{1F50D} **SEO** - Managed meta tags, FAQs, and schema markup
1090
- \u{1F4DD} **Forms** - Portal-managed forms with spam protection
1092
+ \u{1F4DD} **Forms** - Sonor-managed forms with spam protection
1091
1093
  \u{1F4AC} **Engage** - Live chat, popups, and nudges
1092
1094
  \u{1F6D2} **Commerce** - Products, services, and checkout
1093
1095
  \u{1F916} **Signal AI** - Autonomous optimization and A/B testing
1094
1096
 
1095
- You only pay for what you use, and everything is managed from your Portal dashboard.`,
1097
+ You only pay for what you use, and everything is managed from your Sonor dashboard.`,
1096
1098
  [
1097
1099
  { id: "1", label: "Sounds good, let's set it up", action: "start", variant: "primary" }
1098
1100
  ]
@@ -1101,7 +1103,7 @@ You only pay for what you use, and everything is managed from your Portal dashbo
1101
1103
  case "auth_email":
1102
1104
  addMessage({ role: "user", content: "Sign in with Email" });
1103
1105
  addAssistantMessage(
1104
- `What's your Portal email address?`
1106
+ `What's your Sonor email address?`
1105
1107
  );
1106
1108
  setState((prev) => ({ ...prev, step: "auth" }));
1107
1109
  setTimeout(() => inputRef.current?.focus(), 600);
@@ -1182,9 +1184,9 @@ I detected your site at \`localhost:3000\` and verified:
1182
1184
  \u2705 Analytics tracking active
1183
1185
  \u2705 SEO components ready
1184
1186
 
1185
- You're all set! Your data will start appearing in your Portal dashboard within a few minutes.`,
1187
+ You're all set! Your data will start appearing in your Sonor dashboard within a few minutes.`,
1186
1188
  [
1187
- { id: "1", label: "Open Portal Dashboard", action: "open_dashboard", variant: "primary" },
1189
+ { id: "1", label: "Open Sonor Dashboard", action: "open_dashboard", variant: "primary" },
1188
1190
  { id: "2", label: "Enable Signal AI", action: "enable_signal", variant: "secondary" }
1189
1191
  ]
1190
1192
  );
@@ -1198,11 +1200,11 @@ You're all set! Your data will start appearing in your Portal dashboard within a
1198
1200
 
1199
1201
  Your site-kit integration is ready. Here's what happens next:
1200
1202
 
1201
- \u2022 Analytics data will appear in Portal within ~5 minutes
1203
+ \u2022 Analytics data will appear in Sonor within ~5 minutes
1202
1204
  \u2022 You can manage SEO, forms, and engage from the dashboard
1203
1205
  \u2022 If you enabled Signal, it'll start learning from your traffic
1204
1206
 
1205
- Need help anytime? Just come back to \`/_uptrade/setup\` or ping us in Portal.
1207
+ Need help anytime? Just come back to \`/_uptrade/setup\` or ping us in Sonor.
1206
1208
 
1207
1209
  Happy building! \u{1F3A8}`
1208
1210
  );
@@ -1439,9 +1441,9 @@ I found these projects in your account. Which one are we setting up?`,
1439
1441
 
1440
1442
  ${checkList}
1441
1443
 
1442
- Your site-kit integration is working perfectly. Data will start appearing in Portal shortly.`,
1444
+ Your site-kit integration is working perfectly. Data will start appearing in Sonor shortly.`,
1443
1445
  [
1444
- { id: "1", label: "Open Portal Dashboard", action: "open_dashboard", variant: "primary" },
1446
+ { id: "1", label: "Open Sonor Dashboard", action: "open_dashboard", variant: "primary" },
1445
1447
  { id: "2", label: "Generate Copilot Instructions", action: "generate_copilot_instructions", variant: "secondary" }
1446
1448
  ]
1447
1449
  );
@@ -1468,7 +1470,7 @@ Would you like help troubleshooting?`,
1468
1470
  You can manually verify by:
1469
1471
  1. Opening your site in the browser
1470
1472
  2. Checking the Network tab for requests to api.uptrademedia.com
1471
- 3. Looking for analytics events in your Portal dashboard`,
1473
+ 3. Looking for analytics events in your Sonor dashboard`,
1472
1474
  [
1473
1475
  { id: "1", label: "Try again", action: "verify_now", variant: "primary" },
1474
1476
  { id: "2", label: "Continue anyway", action: "complete", variant: "outline" }