@page-speed/agent-everywhere 1.1.0 → 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.
package/dist/index.d.cts CHANGED
@@ -270,7 +270,11 @@ interface LinkInputData {
270
270
  defaultValue?: LinkPreview | null;
271
271
  defaultExpanded?: boolean;
272
272
  disabled?: boolean;
273
- /** OpenGraph endpoint (`?url=` appended). Host-supplied; no origin embedded. */
273
+ /**
274
+ * OpenGraph extraction endpoint (`?url=` appended). Defaults to a public
275
+ * service so the component works with zero host setup; override to use a
276
+ * different one.
277
+ */
274
278
  endpoint?: string;
275
279
  }
276
280
  type MediaCheckboxMediaType = 'image' | 'video';
@@ -2332,7 +2336,7 @@ interface AudioPlayerProps extends AudioPlayerData {
2332
2336
  }
2333
2337
  declare function AudioPlayer({ title, src, durationSeconds, currentTimeSeconds, isPlaying, waveform, chapters, accentColor, inactiveColor, activeChapterBg, mutedTextColor, className, onTogglePlay, onSeek, }: AudioPlayerProps): react.JSX.Element;
2334
2338
 
2335
- declare const DEFAULT_OPEN_GRAPH_ENDPOINT = "/api/opengraph";
2339
+ declare const DEFAULT_OPEN_GRAPH_ENDPOINT = "https://octane.cdn.ing/api/v1/extract/open-graph";
2336
2340
  type Maybe<T> = T | null | undefined;
2337
2341
  type OpenGraphImage = {
2338
2342
  url?: Maybe<string>;
package/dist/index.d.ts CHANGED
@@ -270,7 +270,11 @@ interface LinkInputData {
270
270
  defaultValue?: LinkPreview | null;
271
271
  defaultExpanded?: boolean;
272
272
  disabled?: boolean;
273
- /** OpenGraph endpoint (`?url=` appended). Host-supplied; no origin embedded. */
273
+ /**
274
+ * OpenGraph extraction endpoint (`?url=` appended). Defaults to a public
275
+ * service so the component works with zero host setup; override to use a
276
+ * different one.
277
+ */
274
278
  endpoint?: string;
275
279
  }
276
280
  type MediaCheckboxMediaType = 'image' | 'video';
@@ -2332,7 +2336,7 @@ interface AudioPlayerProps extends AudioPlayerData {
2332
2336
  }
2333
2337
  declare function AudioPlayer({ title, src, durationSeconds, currentTimeSeconds, isPlaying, waveform, chapters, accentColor, inactiveColor, activeChapterBg, mutedTextColor, className, onTogglePlay, onSeek, }: AudioPlayerProps): react.JSX.Element;
2334
2338
 
2335
- declare const DEFAULT_OPEN_GRAPH_ENDPOINT = "/api/opengraph";
2339
+ declare const DEFAULT_OPEN_GRAPH_ENDPOINT = "https://octane.cdn.ing/api/v1/extract/open-graph";
2336
2340
  type Maybe<T> = T | null | undefined;
2337
2341
  type OpenGraphImage = {
2338
2342
  url?: Maybe<string>;
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { createContext, forwardRef, useRef, useImperativeHandle, useCallback, us
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import { AnimatePresence, motion } from 'motion/react';
8
8
  import { Markdown } from '@page-speed/markdown-to-jsx';
9
- import { SendIcon, PaperclipIcon, FileTextIcon, MicIcon, ImageIcon, XIcon, SearchIcon, UploadIcon, FileIcon, UserCircleIcon, CheckIcon, SparklesIcon, BookmarkIcon, InfoIcon, CheckCircle2Icon, AlertTriangleIcon, LightbulbIcon, BrainIcon, ChevronDownIcon, ZapIcon, CopyIcon, ThumbsUpIcon, ThumbsDownIcon, BotIcon, UserIcon, DownloadIcon, MinusIcon, TrendingDownIcon, TrendingUpIcon, ChevronUpIcon, ArrowUpDownIcon, LinkIcon, PlayIcon, ExternalLinkIcon, WandIcon, LayoutGridIcon, Grid3X3Icon, ArrowUpRightIcon, ShuffleIcon, SkipForwardIcon, ChevronLeftIcon, ChevronRightIcon, XCircleIcon, HelpCircleIcon, Minimize2Icon, Maximize2Icon, RotateCcwIcon, MessageSquareIcon, GripVerticalIcon, PanelLeftOpenIcon, PanelLeftCloseIcon, CheckCircleIcon, AlertCircleIcon, MoreHorizontalIcon, Globe, X, Loader2, CornerDownLeft, Pencil, Trash2, CircleCheck, ClipboardListIcon, ArrowLeftIcon, MoreVerticalIcon, ArrowUp, PanelLeft, PanelRight, RotateCcw, ChevronDown, Sparkles, MessageSquare, Paperclip, Loader2Icon, ArrowRightIcon, AlignLeftIcon, ListIcon, HashIcon, TypeIcon, ClockIcon, CoinsIcon, ActivityIcon, ShoppingCart, MessageCircle, Camera, Music, MapPin, Calendar, User, Settings, Check, Heart, Star, Video, Image, Link, Phone, Mail, Github, Youtube, Linkedin, Twitter, Instagram, Facebook, Play, ArrowUpIcon, ArrowDownIcon } from 'lucide-react';
9
+ import { SendIcon, PaperclipIcon, FileTextIcon, MicIcon, ImageIcon, XIcon, SearchIcon, UploadIcon, FileIcon, UserCircleIcon, CheckIcon, SparklesIcon, BookmarkIcon, InfoIcon, CheckCircle2Icon, AlertTriangleIcon, LightbulbIcon, BrainIcon, ChevronDownIcon, ZapIcon, CopyIcon, ThumbsUpIcon, ThumbsDownIcon, BotIcon, UserIcon, DownloadIcon, MinusIcon, TrendingDownIcon, TrendingUpIcon, ChevronUpIcon, ArrowUpDownIcon, LinkIcon, PlayIcon, ExternalLinkIcon, WandIcon, LayoutGridIcon, Grid3X3Icon, ArrowUpRightIcon, ShuffleIcon, SkipForwardIcon, ChevronLeftIcon, ChevronRightIcon, XCircleIcon, HelpCircleIcon, Minimize2Icon, Maximize2Icon, RotateCcwIcon, MessageSquareIcon, GripVerticalIcon, PanelLeftOpenIcon, PanelLeftCloseIcon, CheckCircleIcon, AlertCircleIcon, MoreHorizontalIcon, Globe, X, Loader2, CornerDownLeft, Pencil, Trash2, CircleCheck, ClipboardListIcon, ArrowLeftIcon, MoreVerticalIcon, ArrowUp, PanelLeft, PanelRight, RotateCcw, ChevronDown, Sparkles, MessageSquare, Paperclip, Loader2Icon, ArrowRightIcon, AlignLeftIcon, ListIcon, HashIcon, TypeIcon, ClockIcon, CoinsIcon, ActivityIcon, Play, Check, ArrowUpIcon, ArrowDownIcon, ShoppingCart, MessageCircle, Camera, Music, MapPin, Calendar, User, Settings, Heart, Star, Video, Image, Link, Phone, Mail } from 'lucide-react';
10
10
  import { Slot } from '@radix-ui/react-slot';
11
11
  import { cva } from 'class-variance-authority';
12
12
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
@@ -9923,46 +9923,64 @@ function AudioPlayer({
9923
9923
  }) })
9924
9924
  ] });
9925
9925
  }
9926
+ function BrandFacebook({ className }) {
9927
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" }) });
9928
+ }
9929
+ function BrandInstagram({ className }) {
9930
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z" }) });
9931
+ }
9932
+ function BrandX({ className }) {
9933
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932zM17.61 20.644h2.039L6.486 3.24H4.298z" }) });
9934
+ }
9935
+ function BrandLinkedin({ className }) {
9936
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.225 0z" }) });
9937
+ }
9938
+ function BrandYoutube({ className }) {
9939
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" }) });
9940
+ }
9941
+ function BrandGithub({ className }) {
9942
+ return /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", fill: "currentColor", className, children: /* @__PURE__ */ jsx("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12z" }) });
9943
+ }
9926
9944
  var ICON_MAP = {
9927
- globe: Globe,
9928
- facebook: Facebook,
9929
- instagram: Instagram,
9930
- twitter: Twitter,
9931
- x: Twitter,
9932
- linkedin: Linkedin,
9933
- youtube: Youtube,
9934
- github: Github,
9935
- mail: Mail,
9936
- email: Mail,
9937
- phone: Phone,
9938
- link: Link,
9939
- url: Link,
9940
- image: Image,
9941
- photo: Image,
9942
- video: Video,
9943
- star: Star,
9944
- heart: Heart,
9945
- check: Check,
9946
- settings: Settings,
9947
- user: User,
9948
- account: User,
9949
- calendar: Calendar,
9950
- "map-pin": MapPin,
9951
- mappin: MapPin,
9952
- location: MapPin,
9953
- music: Music,
9954
- camera: Camera,
9955
- message: MessageCircle,
9956
- chat: MessageCircle,
9957
- cart: ShoppingCart,
9958
- shop: ShoppingCart
9945
+ globe: (c) => /* @__PURE__ */ jsx(Globe, { "aria-hidden": "true", className: c }),
9946
+ facebook: (c) => /* @__PURE__ */ jsx(BrandFacebook, { className: c }),
9947
+ instagram: (c) => /* @__PURE__ */ jsx(BrandInstagram, { className: c }),
9948
+ twitter: (c) => /* @__PURE__ */ jsx(BrandX, { className: c }),
9949
+ x: (c) => /* @__PURE__ */ jsx(BrandX, { className: c }),
9950
+ linkedin: (c) => /* @__PURE__ */ jsx(BrandLinkedin, { className: c }),
9951
+ youtube: (c) => /* @__PURE__ */ jsx(BrandYoutube, { className: c }),
9952
+ github: (c) => /* @__PURE__ */ jsx(BrandGithub, { className: c }),
9953
+ mail: (c) => /* @__PURE__ */ jsx(Mail, { "aria-hidden": "true", className: c }),
9954
+ email: (c) => /* @__PURE__ */ jsx(Mail, { "aria-hidden": "true", className: c }),
9955
+ phone: (c) => /* @__PURE__ */ jsx(Phone, { "aria-hidden": "true", className: c }),
9956
+ link: (c) => /* @__PURE__ */ jsx(Link, { "aria-hidden": "true", className: c }),
9957
+ url: (c) => /* @__PURE__ */ jsx(Link, { "aria-hidden": "true", className: c }),
9958
+ image: (c) => /* @__PURE__ */ jsx(Image, { "aria-hidden": "true", className: c }),
9959
+ photo: (c) => /* @__PURE__ */ jsx(Image, { "aria-hidden": "true", className: c }),
9960
+ video: (c) => /* @__PURE__ */ jsx(Video, { "aria-hidden": "true", className: c }),
9961
+ star: (c) => /* @__PURE__ */ jsx(Star, { "aria-hidden": "true", className: c }),
9962
+ heart: (c) => /* @__PURE__ */ jsx(Heart, { "aria-hidden": "true", className: c }),
9963
+ check: (c) => /* @__PURE__ */ jsx(Check, { "aria-hidden": "true", className: c }),
9964
+ settings: (c) => /* @__PURE__ */ jsx(Settings, { "aria-hidden": "true", className: c }),
9965
+ user: (c) => /* @__PURE__ */ jsx(User, { "aria-hidden": "true", className: c }),
9966
+ account: (c) => /* @__PURE__ */ jsx(User, { "aria-hidden": "true", className: c }),
9967
+ calendar: (c) => /* @__PURE__ */ jsx(Calendar, { "aria-hidden": "true", className: c }),
9968
+ "map-pin": (c) => /* @__PURE__ */ jsx(MapPin, { "aria-hidden": "true", className: c }),
9969
+ mappin: (c) => /* @__PURE__ */ jsx(MapPin, { "aria-hidden": "true", className: c }),
9970
+ location: (c) => /* @__PURE__ */ jsx(MapPin, { "aria-hidden": "true", className: c }),
9971
+ music: (c) => /* @__PURE__ */ jsx(Music, { "aria-hidden": "true", className: c }),
9972
+ camera: (c) => /* @__PURE__ */ jsx(Camera, { "aria-hidden": "true", className: c }),
9973
+ message: (c) => /* @__PURE__ */ jsx(MessageCircle, { "aria-hidden": "true", className: c }),
9974
+ chat: (c) => /* @__PURE__ */ jsx(MessageCircle, { "aria-hidden": "true", className: c }),
9975
+ cart: (c) => /* @__PURE__ */ jsx(ShoppingCart, { "aria-hidden": "true", className: c }),
9976
+ shop: (c) => /* @__PURE__ */ jsx(ShoppingCart, { "aria-hidden": "true", className: c })
9959
9977
  };
9960
9978
  function resolveIconName(name, className = "size-5 shrink-0") {
9961
9979
  if (!name) return null;
9962
- const Icon = ICON_MAP[name.trim().toLowerCase()];
9963
- return Icon ? /* @__PURE__ */ jsx(Icon, { "aria-hidden": "true", className }) : null;
9980
+ const render = ICON_MAP[name.trim().toLowerCase()];
9981
+ return render ? render(className) : null;
9964
9982
  }
9965
- var DEFAULT_OPEN_GRAPH_ENDPOINT = "/api/opengraph";
9983
+ var DEFAULT_OPEN_GRAPH_ENDPOINT = "https://octane.cdn.ing/api/v1/extract/open-graph";
9966
9984
  function firstString(...values) {
9967
9985
  for (const value of values) {
9968
9986
  if (typeof value === "string" && value.trim()) {