@atelic-action/ui 7.2.0 → 8.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/README.md +439 -132
  2. package/bin/atelic-check-sentry.ts +5 -0
  3. package/dist/gate/middleware.js +15 -1
  4. package/dist/monitoring/server.d.ts +72 -0
  5. package/dist/monitoring/server.js +201 -0
  6. package/dist/vite/index.d.ts +1 -1
  7. package/dist/vite/index.js +1 -1
  8. package/dist/vite/marketing-config.d.ts +28 -1
  9. package/dist/vite/marketing-config.js +62 -0
  10. package/package.json +23 -11
  11. package/src/app/ErrorFallback.tsx +6 -2
  12. package/src/app/context/AppContext.tsx +10 -1
  13. package/src/app/index.ts +0 -1
  14. package/src/app/layout/AppPage.tsx +36 -7
  15. package/src/app/layout/DesktopRail.tsx +15 -6
  16. package/src/app/layout/MobileMenu.tsx +14 -5
  17. package/src/app/layout/MobileTabBar.tsx +3 -2
  18. package/src/app/layout/PageError.tsx +7 -4
  19. package/src/app/layout/PageSkeleton.tsx +33 -26
  20. package/src/app/layout/SectionCards.tsx +7 -2
  21. package/src/app/layout/UserMenu.tsx +13 -7
  22. package/src/app/ui/alert.tsx +42 -12
  23. package/src/app/ui/badge.tsx +1 -1
  24. package/src/app/ui/button.tsx +2 -1
  25. package/src/app/ui/command.tsx +86 -21
  26. package/src/app/ui/country-dropdown.tsx +26 -47
  27. package/src/app/ui/form.tsx +48 -9
  28. package/src/app/ui/pagination.tsx +1 -1
  29. package/src/app/ui/progress.tsx +26 -12
  30. package/src/app/ui/search-input.tsx +16 -3
  31. package/src/app/ui/select.tsx +8 -3
  32. package/src/app/ui/slider.tsx +62 -15
  33. package/src/artifact/AppErrorBoundary.tsx +12 -7
  34. package/src/artifact/ArtifactShell.tsx +5 -1
  35. package/src/artifact/ErrorFallback.tsx +8 -1
  36. package/src/artifact/artifactConfig.ts +1 -1
  37. package/src/chrome/BrandLockup.tsx +102 -17
  38. package/src/chrome/ClosingBar.tsx +5 -3
  39. package/src/chrome/ContactDock.tsx +361 -0
  40. package/src/chrome/Footer.tsx +126 -31
  41. package/src/chrome/NavBadge.tsx +8 -0
  42. package/src/chrome/NavMegaPanel.tsx +399 -0
  43. package/src/chrome/SiteHeader.tsx +268 -23
  44. package/src/chrome/SiteMenu.tsx +200 -19
  45. package/src/chrome/SiteShell.tsx +151 -14
  46. package/src/chrome/StickyCTABar.tsx +60 -2
  47. package/src/chrome/brandMark.ts +56 -0
  48. package/src/chrome/icons.ts +58 -0
  49. package/src/chrome/index.ts +16 -0
  50. package/src/chrome/navSections.ts +55 -0
  51. package/src/components/ColumnChart.tsx +27 -2
  52. package/src/components/DataTable.tsx +104 -85
  53. package/src/components/Disclosure.tsx +3 -1
  54. package/src/components/Hint.tsx +3 -24
  55. package/src/components/NotFound.tsx +7 -3
  56. package/src/components/StarRating.tsx +45 -19
  57. package/src/components/ThresholdScale.tsx +36 -26
  58. package/src/email/atoms.tsx +13 -57
  59. package/src/email/frame.tsx +4 -6
  60. package/src/email/index.ts +4 -10
  61. package/src/email/scoreboard.tsx +107 -186
  62. package/src/email/text.ts +30 -0
  63. package/src/email/theme.tsx +76 -9
  64. package/src/gate/middleware.ts +15 -1
  65. package/src/hooks/useDismiss.ts +39 -0
  66. package/src/lib/emailText.tsx +26 -0
  67. package/src/lib/phoneText.tsx +40 -0
  68. package/src/lib/useScrollsSideways.ts +26 -0
  69. package/src/monitoring/ErrorCatcherScript.tsx +15 -0
  70. package/src/monitoring/catcher.ts +118 -0
  71. package/src/monitoring/index.ts +25 -0
  72. package/src/monitoring/sdk.ts +112 -0
  73. package/src/monitoring/server.ts +244 -0
  74. package/src/monitoring/start.ts +118 -0
  75. package/src/primitives/Button.tsx +5 -1
  76. package/src/primitives/Eyebrow.tsx +6 -2
  77. package/src/primitives/ProseBlocks.tsx +6 -1
  78. package/src/primitives/SectionHeading.tsx +3 -1
  79. package/src/primitives/StarRow.tsx +23 -8
  80. package/src/routing/index.ts +1 -0
  81. package/src/routing/miss.ts +32 -0
  82. package/src/scripts/check-sentry.ts +77 -0
  83. package/src/sections/BlogIndex.tsx +17 -3
  84. package/src/sections/BlogPost.tsx +10 -1
  85. package/src/sections/CTASection.tsx +2 -2
  86. package/src/sections/CalloutPanel.tsx +34 -0
  87. package/src/sections/ComparisonTable.tsx +23 -2
  88. package/src/sections/ContactForm.tsx +61 -17
  89. package/src/sections/FAQBrowser.tsx +11 -2
  90. package/src/sections/FeatureGrid.tsx +6 -2
  91. package/src/sections/FullBleedVideo.tsx +167 -0
  92. package/src/sections/Gallery.tsx +6 -4
  93. package/src/sections/Hero.tsx +70 -39
  94. package/src/sections/JumpRail.tsx +7 -0
  95. package/src/sections/LegalPage.tsx +10 -2
  96. package/src/sections/LinkColumns.tsx +80 -0
  97. package/src/sections/LocationSection.tsx +28 -5
  98. package/src/sections/Locations.tsx +18 -5
  99. package/src/sections/LogoMarquee.tsx +43 -11
  100. package/src/sections/MapEmbed.tsx +13 -9
  101. package/src/sections/PageHero.tsx +16 -2
  102. package/src/sections/ProcessSteps.tsx +27 -4
  103. package/src/sections/ProfileCards.tsx +12 -2
  104. package/src/sections/ProofStrip.tsx +44 -0
  105. package/src/sections/RevealSlider.tsx +28 -7
  106. package/src/sections/ReviewCarousel.tsx +17 -4
  107. package/src/sections/ReviewWall.tsx +2 -2
  108. package/src/sections/SplitSection.tsx +2 -1
  109. package/src/sections/index.ts +15 -6
  110. package/src/sections/siteConfig.ts +101 -8
  111. package/src/styles/app.css +33 -2
  112. package/src/styles/artifact.css +20 -8
  113. package/src/styles/base.css +68 -13
  114. package/src/styles/chrome.css +1134 -56
  115. package/src/styles/components.css +104 -65
  116. package/src/styles/defaults.css +140 -0
  117. package/src/styles/gate.css +21 -10
  118. package/src/styles/primitives.css +108 -39
  119. package/src/styles/sections.css +500 -437
  120. package/src/styles/star-rating.css +1 -4
  121. package/src/tokens/palettes.ts +24 -4
  122. package/src/types.ts +220 -3
  123. package/src/vite/index.ts +4 -0
  124. package/src/vite/marketing-config.ts +81 -1
  125. package/src/app/CardErrorBoundary.tsx +0 -39
  126. package/src/sections/CTABanner.tsx +0 -93
  127. package/src/sections/DeviceShowcase.tsx +0 -39
  128. package/src/sections/MediaBand.tsx +0 -20
  129. package/src/sections/MenuList.tsx +0 -44
  130. package/src/sections/PressQuotes.tsx +0 -51
  131. package/src/sections/SocialStrip.tsx +0 -83
@@ -1,51 +0,0 @@
1
- export interface PressItem {
2
- /** The quote or award title, e.g. "Best Coffeehouse for Food". */
3
- quote: string;
4
- /** Publication name, e.g. "Westword". */
5
- source: string;
6
- year: string | number;
7
- /** Link to the article; rows without one render unlinked. */
8
- href?: string;
9
- }
10
-
11
- export interface PressQuotesProps {
12
- items: PressItem[];
13
- /** Display order by year; newest first unless told otherwise. */
14
- order?: "newest" | "oldest";
15
- className?: string;
16
- }
17
-
18
- /** Sort press items by year; exported for tests. */
19
- export function sortPress(items: PressItem[], order: "newest" | "oldest"): PressItem[] {
20
- const dir = order === "newest" ? -1 : 1;
21
- return [...items].sort((a, b) => dir * (Number(a.year) - Number(b.year)));
22
- }
23
-
24
- /** Rule separated rows of press quotes and awards, each citing its publication and year and linking to the article. */
25
- export function PressQuotes({ items, order = "newest", className }: PressQuotesProps) {
26
- return (
27
- <ul className={["press-quotes", className].filter(Boolean).join(" ")}>
28
- {sortPress(items, order).map((item) => {
29
- const body = (
30
- <>
31
- <span className="pq-quote">{item.quote}</span>
32
- <span className="pq-src">
33
- {item.source} · {item.year}
34
- </span>
35
- </>
36
- );
37
- return (
38
- <li key={item.source + item.year + item.quote}>
39
- {item.href ? (
40
- <a className="pq-row" href={item.href} target="_blank" rel="noopener noreferrer">
41
- {body}
42
- </a>
43
- ) : (
44
- <div className="pq-row">{body}</div>
45
- )}
46
- </li>
47
- );
48
- })}
49
- </ul>
50
- );
51
- }
@@ -1,83 +0,0 @@
1
- import { AtSign } from "lucide-react";
2
- import type { ReactNode } from "react";
3
- import { SectionHeading } from "../primitives";
4
- import { Button } from "../primitives/Button";
5
- import { useWithBase } from "../routing/BasePathProvider";
6
-
7
- export interface SocialPhoto {
8
- src?: string;
9
- alt?: string;
10
- /** Placeholder shot brief rendered when no src exists yet. */
11
- placeholder?: string;
12
- }
13
-
14
- export interface SocialStripProps {
15
- eyebrow?: string;
16
- /** Deprecated no-op: the eyebrow's trailing fade is now its only rendering. */
17
- eyebrowRun?: boolean;
18
- title: ReactNode;
19
- lead?: string;
20
- /** Display handle, e.g. "@platformstrength". */
21
- handle: string;
22
- /** The profile the strip links out to. */
23
- profileURL: string;
24
- photos: SocialPhoto[];
25
- /** Follow button label; defaults to "Follow {handle}". */
26
- followLabel?: string;
27
- surface?: "default" | "alt";
28
- id?: string;
29
- }
30
-
31
- /**
32
- * A static strip of the business's own social photos with a follow link out.
33
- * Deliberately not a live embed: third-party embed scripts are heavy,
34
- * render-blocking, and break silently on static exports. Photos ship as local
35
- * assets; the platform link carries the relationship.
36
- */
37
- export function SocialStrip({
38
- eyebrow,
39
- title,
40
- lead,
41
- handle,
42
- profileURL,
43
- photos,
44
- followLabel,
45
- surface = "default",
46
- id,
47
- }: SocialStripProps) {
48
- const withBase = useWithBase();
49
- const sectionClasses = ["section", surface === "alt" && "surface-alt"].filter(Boolean).join(" ");
50
- return (
51
- <section className={sectionClasses} id={id}>
52
- <div className="wrap">
53
- <SectionHeading eyebrow={eyebrow} title={title} lead={lead} />
54
- <div className="social-strip">
55
- {photos.map((photo) =>
56
- photo.src ? (
57
- <a
58
- key={photo.src}
59
- className="social-tile"
60
- href={profileURL}
61
- target="_blank"
62
- rel="noopener"
63
- aria-label={photo.alt ? `${photo.alt} (opens ${handle})` : `Opens ${handle}`}
64
- >
65
- <img src={withBase(photo.src)} alt={photo.alt ?? ""} loading="lazy" />
66
- </a>
67
- ) : (
68
- <div key={photo.placeholder} className="social-tile ph">
69
- {photo.placeholder ?? "Photo"}
70
- </div>
71
- ),
72
- )}
73
- </div>
74
- <div className="social-follow">
75
- <Button href={profileURL} newTab variant="dark">
76
- <AtSign size={17} aria-hidden />
77
- {followLabel ?? `Follow ${handle}`}
78
- </Button>
79
- </div>
80
- </div>
81
- </section>
82
- );
83
- }