@opensite/ui 3.2.9 → 3.3.1
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/about-expandable-values.cjs +2 -18
- package/dist/about-expandable-values.js +2 -18
- package/dist/about-minimal-story.cjs +1 -9
- package/dist/about-minimal-story.js +1 -9
- package/dist/about-startup-team.cjs +3 -3
- package/dist/about-startup-team.js +3 -3
- package/dist/about-story-hero.cjs +1 -1
- package/dist/about-story-hero.js +1 -1
- package/dist/article-breadcrumb-social.cjs +4 -7
- package/dist/article-breadcrumb-social.d.cts +2 -11
- package/dist/article-breadcrumb-social.d.ts +2 -11
- package/dist/article-breadcrumb-social.js +4 -7
- package/dist/article-chapters-author.cjs +3 -6
- package/dist/article-chapters-author.d.cts +2 -11
- package/dist/article-chapters-author.d.ts +2 -11
- package/dist/article-chapters-author.js +3 -6
- package/dist/article-compact-toc.cjs +4 -7
- package/dist/article-compact-toc.d.cts +2 -11
- package/dist/article-compact-toc.d.ts +2 -11
- package/dist/article-compact-toc.js +4 -7
- package/dist/article-hero-prose.cjs +4 -7
- package/dist/article-hero-prose.d.cts +2 -11
- package/dist/article-hero-prose.d.ts +2 -11
- package/dist/article-hero-prose.js +4 -7
- package/dist/article-sidebar-sticky.cjs +3 -6
- package/dist/article-sidebar-sticky.d.cts +2 -11
- package/dist/article-sidebar-sticky.d.ts +2 -11
- package/dist/article-sidebar-sticky.js +3 -6
- package/dist/article-toc-sidebar.cjs +3 -6
- package/dist/article-toc-sidebar.d.cts +1 -10
- package/dist/article-toc-sidebar.d.ts +1 -10
- package/dist/article-toc-sidebar.js +3 -6
- package/dist/badge.d.cts +1 -1
- package/dist/badge.d.ts +1 -1
- package/dist/components.cjs +1 -17
- package/dist/components.js +1 -17
- package/dist/index.cjs +1 -17
- package/dist/index.js +1 -17
- package/dist/longform-content.cjs +1 -1
- package/dist/longform-content.d.cts +1 -1
- package/dist/longform-content.d.ts +1 -1
- package/dist/longform-content.js +1 -1
- package/dist/registry.cjs +22 -64
- package/dist/registry.js +22 -64
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
6
|
var tailwindMerge = require('tailwind-merge');
|
|
7
|
-
var pressable = require('@page-speed/pressable');
|
|
8
7
|
var icon = require('@page-speed/icon');
|
|
9
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
9
|
var reactSlot = require('@radix-ui/react-slot');
|
|
11
10
|
var classVarianceAuthority = require('class-variance-authority');
|
|
11
|
+
var pressable = require('@page-speed/pressable');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
14
14
|
if (e && e.__esModule) return e;
|
|
@@ -545,22 +545,6 @@ function AboutExpandableValues({
|
|
|
545
545
|
const toggleExpand = React.useCallback((id) => {
|
|
546
546
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
547
547
|
}, []);
|
|
548
|
-
React.useMemo(() => {
|
|
549
|
-
if (actionsSlot) return actionsSlot;
|
|
550
|
-
if (!actions || actions.length === 0) return null;
|
|
551
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
552
|
-
pressable.Pressable,
|
|
553
|
-
{
|
|
554
|
-
href: action.href,
|
|
555
|
-
onClick: action.onClick,
|
|
556
|
-
variant: action.variant || "default",
|
|
557
|
-
size: action.size,
|
|
558
|
-
asButton: true,
|
|
559
|
-
children: action.label
|
|
560
|
-
},
|
|
561
|
-
idx
|
|
562
|
-
)) });
|
|
563
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
564
548
|
const valuesContent = React.useMemo(() => {
|
|
565
549
|
if (valuesSlot) return valuesSlot;
|
|
566
550
|
if (!values || values.length === 0) return null;
|
|
@@ -674,7 +658,7 @@ function AboutExpandableValues({
|
|
|
674
658
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
675
659
|
ctaClassName
|
|
676
660
|
),
|
|
677
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl
|
|
661
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
678
662
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
679
663
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
680
664
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3,11 +3,11 @@ import * as React from 'react';
|
|
|
3
3
|
import React__default, { useCallback, useMemo } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { Pressable } from '@page-speed/pressable';
|
|
7
6
|
import { Icon } from '@page-speed/icon';
|
|
8
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
9
8
|
import { Slot } from '@radix-ui/react-slot';
|
|
10
9
|
import { cva } from 'class-variance-authority';
|
|
10
|
+
import { Pressable } from '@page-speed/pressable';
|
|
11
11
|
|
|
12
12
|
// components/blocks/about/about-expandable-values.tsx
|
|
13
13
|
function cn(...inputs) {
|
|
@@ -524,22 +524,6 @@ function AboutExpandableValues({
|
|
|
524
524
|
const toggleExpand = useCallback((id) => {
|
|
525
525
|
setExpandedValue((prev) => prev === id ? null : id);
|
|
526
526
|
}, []);
|
|
527
|
-
useMemo(() => {
|
|
528
|
-
if (actionsSlot) return actionsSlot;
|
|
529
|
-
if (!actions || actions.length === 0) return null;
|
|
530
|
-
return /* @__PURE__ */ jsx("div", { className: actionsClassName, children: actions.map((action, idx) => /* @__PURE__ */ jsx(
|
|
531
|
-
Pressable,
|
|
532
|
-
{
|
|
533
|
-
href: action.href,
|
|
534
|
-
onClick: action.onClick,
|
|
535
|
-
variant: action.variant || "default",
|
|
536
|
-
size: action.size,
|
|
537
|
-
asButton: true,
|
|
538
|
-
children: action.label
|
|
539
|
-
},
|
|
540
|
-
idx
|
|
541
|
-
)) });
|
|
542
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
543
527
|
const valuesContent = useMemo(() => {
|
|
544
528
|
if (valuesSlot) return valuesSlot;
|
|
545
529
|
if (!values || values.length === 0) return null;
|
|
@@ -653,7 +637,7 @@ function AboutExpandableValues({
|
|
|
653
637
|
"relative mt-8 rounded-lg p-8 bg-muted text-muted-foreground",
|
|
654
638
|
ctaClassName
|
|
655
639
|
),
|
|
656
|
-
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl
|
|
640
|
+
children: /* @__PURE__ */ jsxs("div", { className: "mx-auto max-w-3xl text-center flex flex-col items-center gap-4", children: [
|
|
657
641
|
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
658
642
|
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn(ctaDescriptionClassName), children: ctaDescription }) : ctaDescription),
|
|
659
643
|
/* @__PURE__ */ jsx(
|
|
@@ -423,15 +423,7 @@ function AboutMinimalStory({
|
|
|
423
423
|
className: "h-16 w-16 rounded-full object-cover",
|
|
424
424
|
optixFlowConfig
|
|
425
425
|
}
|
|
426
|
-
) :
|
|
427
|
-
"div",
|
|
428
|
-
{
|
|
429
|
-
className: cn(
|
|
430
|
-
"flex h-16 w-16 items-center justify-center rounded-full text-2xl font-bold"
|
|
431
|
-
),
|
|
432
|
-
children: author.name.charAt(0)
|
|
433
|
-
}
|
|
434
|
-
),
|
|
426
|
+
) : null,
|
|
435
427
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
436
428
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: author.name }),
|
|
437
429
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: author.role })
|
|
@@ -417,15 +417,7 @@ function AboutMinimalStory({
|
|
|
417
417
|
className: "h-16 w-16 rounded-full object-cover",
|
|
418
418
|
optixFlowConfig
|
|
419
419
|
}
|
|
420
|
-
) :
|
|
421
|
-
"div",
|
|
422
|
-
{
|
|
423
|
-
className: cn(
|
|
424
|
-
"flex h-16 w-16 items-center justify-center rounded-full text-2xl font-bold"
|
|
425
|
-
),
|
|
426
|
-
children: author.name.charAt(0)
|
|
427
|
-
}
|
|
428
|
-
),
|
|
420
|
+
) : null,
|
|
429
421
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
430
422
|
/* @__PURE__ */ jsx("p", { className: "font-semibold", children: author.name }),
|
|
431
423
|
/* @__PURE__ */ jsx("p", { className: "text-sm", children: author.role })
|
|
@@ -554,13 +554,13 @@ function AboutStartupTeam({
|
|
|
554
554
|
if (sidebarSlot) return null;
|
|
555
555
|
if (!effectiveTabs || effectiveTabs.length === 0) return null;
|
|
556
556
|
if (!teamMembers || teamMembers.length === 0) return null;
|
|
557
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full min-w-0 max-w-
|
|
557
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full min-w-0 max-w-full overflow-hidden lg:hidden", children: /* @__PURE__ */ jsxRuntime.jsx("nav", { className: "flex w-full min-w-0 gap-2 overflow-x-auto pb-2", children: effectiveTabs.map((link, idx) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
558
558
|
pressable.Pressable,
|
|
559
559
|
{
|
|
560
560
|
componentType: "button",
|
|
561
561
|
onClick: () => handleTabChange(link.value),
|
|
562
562
|
className: cn(
|
|
563
|
-
"shrink-0 rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
563
|
+
"shrink-0 whitespace-nowrap rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
564
564
|
activeTab === link.value ? "bg-primary text-primary-foreground" : "bg-card text-card-foreground hover:bg-primary hover:text-primary-foreground"
|
|
565
565
|
),
|
|
566
566
|
children: link.label
|
|
@@ -589,7 +589,7 @@ function AboutStartupTeam({
|
|
|
589
589
|
children: renderTabsNav
|
|
590
590
|
}
|
|
591
591
|
),
|
|
592
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lg:col-span-3", children: [
|
|
592
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 lg:col-span-3", children: [
|
|
593
593
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
594
594
|
"h1",
|
|
595
595
|
{
|
|
@@ -533,13 +533,13 @@ function AboutStartupTeam({
|
|
|
533
533
|
if (sidebarSlot) return null;
|
|
534
534
|
if (!effectiveTabs || effectiveTabs.length === 0) return null;
|
|
535
535
|
if (!teamMembers || teamMembers.length === 0) return null;
|
|
536
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full min-w-0 max-w-
|
|
536
|
+
return /* @__PURE__ */ jsx("div", { className: "w-full min-w-0 max-w-full overflow-hidden lg:hidden", children: /* @__PURE__ */ jsx("nav", { className: "flex w-full min-w-0 gap-2 overflow-x-auto pb-2", children: effectiveTabs.map((link, idx) => /* @__PURE__ */ jsx(
|
|
537
537
|
Pressable,
|
|
538
538
|
{
|
|
539
539
|
componentType: "button",
|
|
540
540
|
onClick: () => handleTabChange(link.value),
|
|
541
541
|
className: cn(
|
|
542
|
-
"shrink-0 rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
542
|
+
"shrink-0 whitespace-nowrap rounded-lg px-4 py-2 text-sm font-medium transition-colors",
|
|
543
543
|
activeTab === link.value ? "bg-primary text-primary-foreground" : "bg-card text-card-foreground hover:bg-primary hover:text-primary-foreground"
|
|
544
544
|
),
|
|
545
545
|
children: link.label
|
|
@@ -568,7 +568,7 @@ function AboutStartupTeam({
|
|
|
568
568
|
children: renderTabsNav
|
|
569
569
|
}
|
|
570
570
|
),
|
|
571
|
-
/* @__PURE__ */ jsxs("div", { className: "lg:col-span-3", children: [
|
|
571
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 lg:col-span-3", children: [
|
|
572
572
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
573
573
|
"h1",
|
|
574
574
|
{
|
package/dist/about-story-hero.js
CHANGED
|
@@ -547,7 +547,7 @@ var Section = React5__namespace.default.forwardRef(
|
|
|
547
547
|
Section.displayName = "Section";
|
|
548
548
|
function LongformContent({
|
|
549
549
|
children,
|
|
550
|
-
renderMode = "
|
|
550
|
+
renderMode = "markdown",
|
|
551
551
|
markdownString,
|
|
552
552
|
optixFlowConfig,
|
|
553
553
|
markdownStyles
|
|
@@ -599,8 +599,6 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
599
599
|
heroImageSrc,
|
|
600
600
|
heroImageAlt,
|
|
601
601
|
heroMediaSlot,
|
|
602
|
-
children,
|
|
603
|
-
renderMode = "jsx",
|
|
604
602
|
markdownString,
|
|
605
603
|
markdownStyles,
|
|
606
604
|
enableTocTracking,
|
|
@@ -746,7 +744,7 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
746
744
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
747
745
|
breadcrumbsContent,
|
|
748
746
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-10 lg:grid-cols-[minmax(0,1fr)_280px]", children: [
|
|
749
|
-
|
|
747
|
+
markdownString && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
750
748
|
"article",
|
|
751
749
|
{
|
|
752
750
|
className: cn(
|
|
@@ -769,11 +767,10 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
769
767
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
770
768
|
LongformContent,
|
|
771
769
|
{
|
|
772
|
-
renderMode,
|
|
770
|
+
renderMode: "markdown",
|
|
773
771
|
markdownString,
|
|
774
772
|
optixFlowConfig,
|
|
775
|
-
markdownStyles
|
|
776
|
-
children
|
|
773
|
+
markdownStyles
|
|
777
774
|
}
|
|
778
775
|
),
|
|
779
776
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -118,16 +118,7 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
118
118
|
*/
|
|
119
119
|
heroMediaSlot?: React.ReactNode;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
children?: React.ReactNode;
|
|
124
|
-
/**
|
|
125
|
-
* Render mode for content
|
|
126
|
-
* @default "jsx"
|
|
127
|
-
*/
|
|
128
|
-
renderMode?: "jsx" | "markdown";
|
|
129
|
-
/**
|
|
130
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
121
|
+
* Markdown string to render
|
|
131
122
|
*/
|
|
132
123
|
markdownString?: string;
|
|
133
124
|
/**
|
|
@@ -170,6 +161,6 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
170
161
|
/** Optional Section ID */
|
|
171
162
|
sectionId?: string;
|
|
172
163
|
}
|
|
173
|
-
declare function ArticleBreadcrumbSocialComponent({ sectionId, className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
164
|
+
declare function ArticleBreadcrumbSocialComponent({ sectionId, className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
|
|
174
165
|
|
|
175
166
|
export { type ArticleBreadcrumbSection, ArticleBreadcrumbSocialComponent as ArticleBreadcrumbSocial, type ArticleBreadcrumbSocialProps };
|
|
@@ -118,16 +118,7 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
118
118
|
*/
|
|
119
119
|
heroMediaSlot?: React.ReactNode;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
122
|
-
*/
|
|
123
|
-
children?: React.ReactNode;
|
|
124
|
-
/**
|
|
125
|
-
* Render mode for content
|
|
126
|
-
* @default "jsx"
|
|
127
|
-
*/
|
|
128
|
-
renderMode?: "jsx" | "markdown";
|
|
129
|
-
/**
|
|
130
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
121
|
+
* Markdown string to render
|
|
131
122
|
*/
|
|
132
123
|
markdownString?: string;
|
|
133
124
|
/**
|
|
@@ -170,6 +161,6 @@ interface ArticleBreadcrumbSocialProps {
|
|
|
170
161
|
/** Optional Section ID */
|
|
171
162
|
sectionId?: string;
|
|
172
163
|
}
|
|
173
|
-
declare function ArticleBreadcrumbSocialComponent({ sectionId, className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
164
|
+
declare function ArticleBreadcrumbSocialComponent({ sectionId, className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
|
|
174
165
|
|
|
175
166
|
export { type ArticleBreadcrumbSection, ArticleBreadcrumbSocialComponent as ArticleBreadcrumbSocial, type ArticleBreadcrumbSocialProps };
|
|
@@ -525,7 +525,7 @@ var Section = React5__default.forwardRef(
|
|
|
525
525
|
Section.displayName = "Section";
|
|
526
526
|
function LongformContent({
|
|
527
527
|
children,
|
|
528
|
-
renderMode = "
|
|
528
|
+
renderMode = "markdown",
|
|
529
529
|
markdownString,
|
|
530
530
|
optixFlowConfig,
|
|
531
531
|
markdownStyles
|
|
@@ -577,8 +577,6 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
577
577
|
heroImageSrc,
|
|
578
578
|
heroImageAlt,
|
|
579
579
|
heroMediaSlot,
|
|
580
|
-
children,
|
|
581
|
-
renderMode = "jsx",
|
|
582
580
|
markdownString,
|
|
583
581
|
markdownStyles,
|
|
584
582
|
enableTocTracking,
|
|
@@ -724,7 +722,7 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
724
722
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
725
723
|
breadcrumbsContent,
|
|
726
724
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-10 lg:grid-cols-[minmax(0,1fr)_280px]", children: [
|
|
727
|
-
|
|
725
|
+
markdownString && /* @__PURE__ */ jsxs(
|
|
728
726
|
"article",
|
|
729
727
|
{
|
|
730
728
|
className: cn(
|
|
@@ -747,11 +745,10 @@ function ArticleBreadcrumbSocialComponent({
|
|
|
747
745
|
/* @__PURE__ */ jsx(
|
|
748
746
|
LongformContent,
|
|
749
747
|
{
|
|
750
|
-
renderMode,
|
|
748
|
+
renderMode: "markdown",
|
|
751
749
|
markdownString,
|
|
752
750
|
optixFlowConfig,
|
|
753
|
-
markdownStyles
|
|
754
|
-
children
|
|
751
|
+
markdownStyles
|
|
755
752
|
}
|
|
756
753
|
),
|
|
757
754
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx(
|
|
@@ -636,7 +636,7 @@ var SocialLinkIcon = React6__namespace.forwardRef(
|
|
|
636
636
|
SocialLinkIcon.displayName = "SocialLinkIcon";
|
|
637
637
|
function LongformContent({
|
|
638
638
|
children,
|
|
639
|
-
renderMode = "
|
|
639
|
+
renderMode = "markdown",
|
|
640
640
|
markdownString,
|
|
641
641
|
optixFlowConfig,
|
|
642
642
|
markdownStyles
|
|
@@ -693,8 +693,6 @@ function ArticleChaptersAuthorComponent({
|
|
|
693
693
|
conclusionDescription,
|
|
694
694
|
conclusionActions,
|
|
695
695
|
conclusionSlot,
|
|
696
|
-
children,
|
|
697
|
-
renderMode = "jsx",
|
|
698
696
|
markdownString,
|
|
699
697
|
markdownStyles,
|
|
700
698
|
enableChapterTracking = true,
|
|
@@ -953,11 +951,10 @@ function ArticleChaptersAuthorComponent({
|
|
|
953
951
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
954
952
|
LongformContent,
|
|
955
953
|
{
|
|
956
|
-
renderMode,
|
|
954
|
+
renderMode: "markdown",
|
|
957
955
|
markdownString,
|
|
958
956
|
optixFlowConfig,
|
|
959
|
-
markdownStyles
|
|
960
|
-
children
|
|
957
|
+
markdownStyles
|
|
961
958
|
}
|
|
962
959
|
),
|
|
963
960
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -146,16 +146,7 @@ interface ArticleChaptersAuthorProps {
|
|
|
146
146
|
*/
|
|
147
147
|
conclusionSlot?: React.ReactNode;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
151
|
-
children?: React.ReactNode;
|
|
152
|
-
/**
|
|
153
|
-
* Render mode for content
|
|
154
|
-
* @default "jsx"
|
|
155
|
-
*/
|
|
156
|
-
renderMode?: "jsx" | "markdown";
|
|
157
|
-
/**
|
|
158
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
149
|
+
* Markdown string to render
|
|
159
150
|
*/
|
|
160
151
|
markdownString?: string;
|
|
161
152
|
/**
|
|
@@ -195,6 +186,6 @@ interface ArticleChaptersAuthorProps {
|
|
|
195
186
|
/** Optional Section ID */
|
|
196
187
|
sectionId?: string;
|
|
197
188
|
}
|
|
198
|
-
declare function ArticleChaptersAuthorComponent({ sectionId, className, breadcrumbClassName, headerClassName, titleClassName, subtitleClassName, sidebarClassName, articleClassName, chaptersClassName, authorClassName, conclusionClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, subtitle, chapters, chaptersSlot, renderChapterLink, author, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, conclusionTitle, conclusionDescription, conclusionActions, conclusionSlot,
|
|
189
|
+
declare function ArticleChaptersAuthorComponent({ sectionId, className, breadcrumbClassName, headerClassName, titleClassName, subtitleClassName, sidebarClassName, articleClassName, chaptersClassName, authorClassName, conclusionClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, subtitle, chapters, chaptersSlot, renderChapterLink, author, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, conclusionTitle, conclusionDescription, conclusionActions, conclusionSlot, markdownString, markdownStyles, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
|
|
199
190
|
|
|
200
191
|
export { type ArticleAuthor, type ArticleChapter, ArticleChaptersAuthorComponent as ArticleChaptersAuthor, type ArticleChaptersAuthorProps };
|
|
@@ -146,16 +146,7 @@ interface ArticleChaptersAuthorProps {
|
|
|
146
146
|
*/
|
|
147
147
|
conclusionSlot?: React.ReactNode;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
*/
|
|
151
|
-
children?: React.ReactNode;
|
|
152
|
-
/**
|
|
153
|
-
* Render mode for content
|
|
154
|
-
* @default "jsx"
|
|
155
|
-
*/
|
|
156
|
-
renderMode?: "jsx" | "markdown";
|
|
157
|
-
/**
|
|
158
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
149
|
+
* Markdown string to render
|
|
159
150
|
*/
|
|
160
151
|
markdownString?: string;
|
|
161
152
|
/**
|
|
@@ -195,6 +186,6 @@ interface ArticleChaptersAuthorProps {
|
|
|
195
186
|
/** Optional Section ID */
|
|
196
187
|
sectionId?: string;
|
|
197
188
|
}
|
|
198
|
-
declare function ArticleChaptersAuthorComponent({ sectionId, className, breadcrumbClassName, headerClassName, titleClassName, subtitleClassName, sidebarClassName, articleClassName, chaptersClassName, authorClassName, conclusionClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, subtitle, chapters, chaptersSlot, renderChapterLink, author, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, conclusionTitle, conclusionDescription, conclusionActions, conclusionSlot,
|
|
189
|
+
declare function ArticleChaptersAuthorComponent({ sectionId, className, breadcrumbClassName, headerClassName, titleClassName, subtitleClassName, sidebarClassName, articleClassName, chaptersClassName, authorClassName, conclusionClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, subtitle, chapters, chaptersSlot, renderChapterLink, author, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, conclusionTitle, conclusionDescription, conclusionActions, conclusionSlot, markdownString, markdownStyles, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
|
|
199
190
|
|
|
200
191
|
export { type ArticleAuthor, type ArticleChapter, ArticleChaptersAuthorComponent as ArticleChaptersAuthor, type ArticleChaptersAuthorProps };
|
|
@@ -614,7 +614,7 @@ var SocialLinkIcon = React6.forwardRef(
|
|
|
614
614
|
SocialLinkIcon.displayName = "SocialLinkIcon";
|
|
615
615
|
function LongformContent({
|
|
616
616
|
children,
|
|
617
|
-
renderMode = "
|
|
617
|
+
renderMode = "markdown",
|
|
618
618
|
markdownString,
|
|
619
619
|
optixFlowConfig,
|
|
620
620
|
markdownStyles
|
|
@@ -671,8 +671,6 @@ function ArticleChaptersAuthorComponent({
|
|
|
671
671
|
conclusionDescription,
|
|
672
672
|
conclusionActions,
|
|
673
673
|
conclusionSlot,
|
|
674
|
-
children,
|
|
675
|
-
renderMode = "jsx",
|
|
676
674
|
markdownString,
|
|
677
675
|
markdownStyles,
|
|
678
676
|
enableChapterTracking = true,
|
|
@@ -931,11 +929,10 @@ function ArticleChaptersAuthorComponent({
|
|
|
931
929
|
/* @__PURE__ */ jsx(
|
|
932
930
|
LongformContent,
|
|
933
931
|
{
|
|
934
|
-
renderMode,
|
|
932
|
+
renderMode: "markdown",
|
|
935
933
|
markdownString,
|
|
936
934
|
optixFlowConfig,
|
|
937
|
-
markdownStyles
|
|
938
|
-
children
|
|
935
|
+
markdownStyles
|
|
939
936
|
}
|
|
940
937
|
),
|
|
941
938
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx(
|
|
@@ -554,7 +554,7 @@ function PopoverContent({
|
|
|
554
554
|
}
|
|
555
555
|
function LongformContent({
|
|
556
556
|
children,
|
|
557
|
-
renderMode = "
|
|
557
|
+
renderMode = "markdown",
|
|
558
558
|
markdownString,
|
|
559
559
|
optixFlowConfig,
|
|
560
560
|
markdownStyles
|
|
@@ -606,8 +606,6 @@ function ArticleCompactTocComponent({
|
|
|
606
606
|
heroImageSrc,
|
|
607
607
|
heroImageAlt,
|
|
608
608
|
heroMediaSlot,
|
|
609
|
-
children,
|
|
610
|
-
renderMode = "jsx",
|
|
611
609
|
markdownString,
|
|
612
610
|
markdownStyles,
|
|
613
611
|
enableTocTracking = true,
|
|
@@ -784,7 +782,7 @@ function ArticleCompactTocComponent({
|
|
|
784
782
|
}
|
|
785
783
|
),
|
|
786
784
|
tocContent,
|
|
787
|
-
|
|
785
|
+
markdownString && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
788
786
|
"article",
|
|
789
787
|
{
|
|
790
788
|
className: cn(
|
|
@@ -796,11 +794,10 @@ function ArticleCompactTocComponent({
|
|
|
796
794
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
797
795
|
LongformContent,
|
|
798
796
|
{
|
|
799
|
-
renderMode,
|
|
797
|
+
renderMode: "markdown",
|
|
800
798
|
markdownString,
|
|
801
799
|
optixFlowConfig,
|
|
802
|
-
markdownStyles
|
|
803
|
-
children
|
|
800
|
+
markdownStyles
|
|
804
801
|
}
|
|
805
802
|
),
|
|
806
803
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -113,16 +113,7 @@ interface ArticleCompactTocProps {
|
|
|
113
113
|
*/
|
|
114
114
|
heroMediaSlot?: React.ReactNode;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
children?: React.ReactNode;
|
|
119
|
-
/**
|
|
120
|
-
* Render mode for content
|
|
121
|
-
* @default "jsx"
|
|
122
|
-
*/
|
|
123
|
-
renderMode?: "jsx" | "markdown";
|
|
124
|
-
/**
|
|
125
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
116
|
+
* Markdown string to render
|
|
126
117
|
*/
|
|
127
118
|
markdownString?: string;
|
|
128
119
|
/**
|
|
@@ -162,6 +153,6 @@ interface ArticleCompactTocProps {
|
|
|
162
153
|
/** Optional Section ID */
|
|
163
154
|
sectionId?: string;
|
|
164
155
|
}
|
|
165
|
-
declare function ArticleCompactTocComponent({ sectionId, className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
156
|
+
declare function ArticleCompactTocComponent({ sectionId, className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
|
|
166
157
|
|
|
167
158
|
export { ArticleCompactTocComponent as ArticleCompactToc, type ArticleCompactTocProps, type ArticleCompactTocSection };
|
|
@@ -113,16 +113,7 @@ interface ArticleCompactTocProps {
|
|
|
113
113
|
*/
|
|
114
114
|
heroMediaSlot?: React.ReactNode;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
children?: React.ReactNode;
|
|
119
|
-
/**
|
|
120
|
-
* Render mode for content
|
|
121
|
-
* @default "jsx"
|
|
122
|
-
*/
|
|
123
|
-
renderMode?: "jsx" | "markdown";
|
|
124
|
-
/**
|
|
125
|
-
* Markdown string to render (when renderMode is "markdown")
|
|
116
|
+
* Markdown string to render
|
|
126
117
|
*/
|
|
127
118
|
markdownString?: string;
|
|
128
119
|
/**
|
|
@@ -162,6 +153,6 @@ interface ArticleCompactTocProps {
|
|
|
162
153
|
/** Optional Section ID */
|
|
163
154
|
sectionId?: string;
|
|
164
155
|
}
|
|
165
|
-
declare function ArticleCompactTocComponent({ sectionId, className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot,
|
|
156
|
+
declare function ArticleCompactTocComponent({ sectionId, className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
|
|
166
157
|
|
|
167
158
|
export { ArticleCompactTocComponent as ArticleCompactToc, type ArticleCompactTocProps, type ArticleCompactTocSection };
|
|
@@ -531,7 +531,7 @@ function PopoverContent({
|
|
|
531
531
|
}
|
|
532
532
|
function LongformContent({
|
|
533
533
|
children,
|
|
534
|
-
renderMode = "
|
|
534
|
+
renderMode = "markdown",
|
|
535
535
|
markdownString,
|
|
536
536
|
optixFlowConfig,
|
|
537
537
|
markdownStyles
|
|
@@ -583,8 +583,6 @@ function ArticleCompactTocComponent({
|
|
|
583
583
|
heroImageSrc,
|
|
584
584
|
heroImageAlt,
|
|
585
585
|
heroMediaSlot,
|
|
586
|
-
children,
|
|
587
|
-
renderMode = "jsx",
|
|
588
586
|
markdownString,
|
|
589
587
|
markdownStyles,
|
|
590
588
|
enableTocTracking = true,
|
|
@@ -761,7 +759,7 @@ function ArticleCompactTocComponent({
|
|
|
761
759
|
}
|
|
762
760
|
),
|
|
763
761
|
tocContent,
|
|
764
|
-
|
|
762
|
+
markdownString && /* @__PURE__ */ jsxs(
|
|
765
763
|
"article",
|
|
766
764
|
{
|
|
767
765
|
className: cn(
|
|
@@ -773,11 +771,10 @@ function ArticleCompactTocComponent({
|
|
|
773
771
|
/* @__PURE__ */ jsx(
|
|
774
772
|
LongformContent,
|
|
775
773
|
{
|
|
776
|
-
renderMode,
|
|
774
|
+
renderMode: "markdown",
|
|
777
775
|
markdownString,
|
|
778
776
|
optixFlowConfig,
|
|
779
|
-
markdownStyles
|
|
780
|
-
children
|
|
777
|
+
markdownStyles
|
|
781
778
|
}
|
|
782
779
|
),
|
|
783
780
|
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ jsx(
|
|
@@ -467,7 +467,7 @@ var Section = React4__namespace.default.forwardRef(
|
|
|
467
467
|
Section.displayName = "Section";
|
|
468
468
|
function LongformContent({
|
|
469
469
|
children,
|
|
470
|
-
renderMode = "
|
|
470
|
+
renderMode = "markdown",
|
|
471
471
|
markdownString,
|
|
472
472
|
optixFlowConfig,
|
|
473
473
|
markdownStyles
|
|
@@ -506,8 +506,6 @@ function ArticleHeroProseComponent({
|
|
|
506
506
|
proseClassName,
|
|
507
507
|
heroMediaSlot,
|
|
508
508
|
authorSlot,
|
|
509
|
-
children,
|
|
510
|
-
renderMode = "jsx",
|
|
511
509
|
markdownString,
|
|
512
510
|
markdownStyles,
|
|
513
511
|
dateFormat = "MMMM d, yyyy",
|
|
@@ -621,7 +619,7 @@ function ArticleHeroProseComponent({
|
|
|
621
619
|
]
|
|
622
620
|
}
|
|
623
621
|
) }),
|
|
624
|
-
|
|
622
|
+
markdownString && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col items-center", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
625
623
|
"div",
|
|
626
624
|
{
|
|
627
625
|
className: cn(
|
|
@@ -632,11 +630,10 @@ function ArticleHeroProseComponent({
|
|
|
632
630
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
633
631
|
LongformContent,
|
|
634
632
|
{
|
|
635
|
-
renderMode,
|
|
633
|
+
renderMode: "markdown",
|
|
636
634
|
markdownString,
|
|
637
635
|
optixFlowConfig,
|
|
638
|
-
markdownStyles
|
|
639
|
-
children
|
|
636
|
+
markdownStyles
|
|
640
637
|
}
|
|
641
638
|
)
|
|
642
639
|
}
|