@opensite/ui 3.0.4 → 3.0.5

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.
@@ -10,7 +10,7 @@ var icon = require('@page-speed/icon');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var AvatarPrimitive = require('@radix-ui/react-avatar');
12
12
  var reactSlot = require('@radix-ui/react-slot');
13
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
13
+ var core = require('@page-speed/markdown-to-jsx/core');
14
14
  var socialShare = require('@page-speed/social-share');
15
15
 
16
16
  function _interopNamespace(e) {
@@ -572,6 +572,7 @@ function ArticleBreadcrumbSocialComponent({
572
572
  children,
573
573
  renderMode = "jsx",
574
574
  markdownString,
575
+ markdownStyles,
575
576
  enableTocTracking,
576
577
  enableBackToTop,
577
578
  optixFlowConfig,
@@ -735,12 +736,13 @@ function ArticleBreadcrumbSocialComponent({
735
736
  authorContent,
736
737
  heroMediaContent,
737
738
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
738
- markdownToJsx.Markdown,
739
+ core.Markdown,
739
740
  {
740
741
  overrides: {
741
742
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
742
743
  a: pressable.Pressable
743
744
  },
745
+ markdownStyles,
744
746
  children: markdownString
745
747
  }
746
748
  ) : children,
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -129,6 +130,11 @@ interface ArticleBreadcrumbSocialProps {
129
130
  * Markdown string to render (when renderMode is "markdown")
130
131
  */
131
132
  markdownString?: string;
133
+ /**
134
+ * Custom className mappings for markdown elements
135
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
136
+ */
137
+ markdownStyles?: MarkdownStylesMap;
132
138
  /**
133
139
  * Enable scroll-based TOC tracking
134
140
  */
@@ -162,6 +168,6 @@ interface ArticleBreadcrumbSocialProps {
162
168
  */
163
169
  patternClassName?: string;
164
170
  }
165
- declare function ArticleBreadcrumbSocialComponent({ className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
171
+ declare function ArticleBreadcrumbSocialComponent({ className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
166
172
 
167
173
  export { type ArticleBreadcrumbSection, ArticleBreadcrumbSocialComponent as ArticleBreadcrumbSocial, type ArticleBreadcrumbSocialProps };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -129,6 +130,11 @@ interface ArticleBreadcrumbSocialProps {
129
130
  * Markdown string to render (when renderMode is "markdown")
130
131
  */
131
132
  markdownString?: string;
133
+ /**
134
+ * Custom className mappings for markdown elements
135
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
136
+ */
137
+ markdownStyles?: MarkdownStylesMap;
132
138
  /**
133
139
  * Enable scroll-based TOC tracking
134
140
  */
@@ -162,6 +168,6 @@ interface ArticleBreadcrumbSocialProps {
162
168
  */
163
169
  patternClassName?: string;
164
170
  }
165
- declare function ArticleBreadcrumbSocialComponent({ className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
171
+ declare function ArticleBreadcrumbSocialComponent({ className, breadcrumbClassName, articleClassName, sidebarClassName, titleClassName, authorClassName, heroImageClassName, tocClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, description, author, authorSlot, publishDate, readTime, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, enableBackToTop, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleBreadcrumbSocialProps): react_jsx_runtime.JSX.Element;
166
172
 
167
173
  export { type ArticleBreadcrumbSection, ArticleBreadcrumbSocialComponent as ArticleBreadcrumbSocial, type ArticleBreadcrumbSocialProps };
@@ -9,7 +9,7 @@ import { Icon } from '@page-speed/icon';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
11
  import { Slot } from '@radix-ui/react-slot';
12
- import { Markdown } from '@page-speed/markdown-to-jsx';
12
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
13
13
  import { SocialShare } from '@page-speed/social-share';
14
14
 
15
15
  // components/blocks/article/article-breadcrumb-social.tsx
@@ -550,6 +550,7 @@ function ArticleBreadcrumbSocialComponent({
550
550
  children,
551
551
  renderMode = "jsx",
552
552
  markdownString,
553
+ markdownStyles,
553
554
  enableTocTracking,
554
555
  enableBackToTop,
555
556
  optixFlowConfig,
@@ -719,6 +720,7 @@ function ArticleBreadcrumbSocialComponent({
719
720
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
720
721
  a: Pressable
721
722
  },
723
+ markdownStyles,
722
724
  children: markdownString
723
725
  }
724
726
  ) : children,
@@ -10,7 +10,7 @@ var icon = require('@page-speed/icon');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var AvatarPrimitive = require('@radix-ui/react-avatar');
12
12
  var reactSlot = require('@radix-ui/react-slot');
13
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
13
+ var core = require('@page-speed/markdown-to-jsx/core');
14
14
  var usePlatformFromUrl = require('@opensite/hooks/usePlatformFromUrl');
15
15
  var socialShare = require('@page-speed/social-share');
16
16
 
@@ -666,6 +666,7 @@ function ArticleChaptersAuthorComponent({
666
666
  children,
667
667
  renderMode = "jsx",
668
668
  markdownString,
669
+ markdownStyles,
669
670
  enableChapterTracking = true,
670
671
  optixFlowConfig,
671
672
  background,
@@ -919,12 +920,13 @@ function ArticleChaptersAuthorComponent({
919
920
  children: [
920
921
  heroMediaContent,
921
922
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
922
- markdownToJsx.Markdown,
923
+ core.Markdown,
923
924
  {
924
925
  overrides: {
925
926
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
926
927
  a: pressable.Pressable
927
928
  },
929
+ markdownStyles,
928
930
  children: markdownString
929
931
  }
930
932
  ) : children,
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { j as SocialLinkItem, A as ActionConfig, O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -157,6 +158,11 @@ interface ArticleChaptersAuthorProps {
157
158
  * Markdown string to render (when renderMode is "markdown")
158
159
  */
159
160
  markdownString?: string;
161
+ /**
162
+ * Custom className mappings for markdown elements
163
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
164
+ */
165
+ markdownStyles?: MarkdownStylesMap;
160
166
  /**
161
167
  * Enable scroll-based chapter tracking
162
168
  * @default true
@@ -187,6 +193,6 @@ interface ArticleChaptersAuthorProps {
187
193
  */
188
194
  patternClassName?: string;
189
195
  }
190
- declare function ArticleChaptersAuthorComponent({ 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, children, renderMode, markdownString, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
196
+ declare function ArticleChaptersAuthorComponent({ 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, children, renderMode, markdownString, markdownStyles, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
191
197
 
192
198
  export { type ArticleAuthor, type ArticleChapter, ArticleChaptersAuthorComponent as ArticleChaptersAuthor, type ArticleChaptersAuthorProps };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { j as SocialLinkItem, A as ActionConfig, O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -157,6 +158,11 @@ interface ArticleChaptersAuthorProps {
157
158
  * Markdown string to render (when renderMode is "markdown")
158
159
  */
159
160
  markdownString?: string;
161
+ /**
162
+ * Custom className mappings for markdown elements
163
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
164
+ */
165
+ markdownStyles?: MarkdownStylesMap;
160
166
  /**
161
167
  * Enable scroll-based chapter tracking
162
168
  * @default true
@@ -187,6 +193,6 @@ interface ArticleChaptersAuthorProps {
187
193
  */
188
194
  patternClassName?: string;
189
195
  }
190
- declare function ArticleChaptersAuthorComponent({ 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, children, renderMode, markdownString, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
196
+ declare function ArticleChaptersAuthorComponent({ 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, children, renderMode, markdownString, markdownStyles, enableChapterTracking, optixFlowConfig, background, containerClassName, spacing, patternClassName, pattern, patternOpacity, }: ArticleChaptersAuthorProps): react_jsx_runtime.JSX.Element;
191
197
 
192
198
  export { type ArticleAuthor, type ArticleChapter, ArticleChaptersAuthorComponent as ArticleChaptersAuthor, type ArticleChaptersAuthorProps };
@@ -9,7 +9,7 @@ import { Icon } from '@page-speed/icon';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
11
  import { Slot } from '@radix-ui/react-slot';
12
- import { Markdown } from '@page-speed/markdown-to-jsx';
12
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
13
13
  import { usePlatformFromUrl } from '@opensite/hooks/usePlatformFromUrl';
14
14
  import { SocialShare } from '@page-speed/social-share';
15
15
 
@@ -644,6 +644,7 @@ function ArticleChaptersAuthorComponent({
644
644
  children,
645
645
  renderMode = "jsx",
646
646
  markdownString,
647
+ markdownStyles,
647
648
  enableChapterTracking = true,
648
649
  optixFlowConfig,
649
650
  background,
@@ -903,6 +904,7 @@ function ArticleChaptersAuthorComponent({
903
904
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
904
905
  a: Pressable
905
906
  },
907
+ markdownStyles,
906
908
  children: markdownString
907
909
  }
908
910
  ) : children,
@@ -10,7 +10,7 @@ var icon = require('@page-speed/icon');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var reactSlot = require('@radix-ui/react-slot');
12
12
  var SeparatorPrimitive = require('@radix-ui/react-separator');
13
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
13
+ var core = require('@page-speed/markdown-to-jsx/core');
14
14
  var PopoverPrimitive = require('@radix-ui/react-popover');
15
15
  var socialShare = require('@page-speed/social-share');
16
16
 
@@ -579,6 +579,7 @@ function ArticleCompactTocComponent({
579
579
  children,
580
580
  renderMode = "jsx",
581
581
  markdownString,
582
+ markdownStyles,
582
583
  enableTocTracking = true,
583
584
  optixFlowConfig,
584
585
  background,
@@ -762,12 +763,13 @@ function ArticleCompactTocComponent({
762
763
  children: [
763
764
  heroMediaContent,
764
765
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
765
- markdownToJsx.Markdown,
766
+ core.Markdown,
766
767
  {
767
768
  overrides: {
768
769
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
769
770
  a: pressable.Pressable
770
771
  },
772
+ markdownStyles,
771
773
  children: markdownString
772
774
  }
773
775
  ) : children,
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -124,6 +125,11 @@ interface ArticleCompactTocProps {
124
125
  * Markdown string to render (when renderMode is "markdown")
125
126
  */
126
127
  markdownString?: string;
128
+ /**
129
+ * Custom className mappings for markdown elements
130
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
131
+ */
132
+ markdownStyles?: MarkdownStylesMap;
127
133
  /**
128
134
  * Enable scroll-based section tracking
129
135
  * @default true
@@ -154,6 +160,6 @@ interface ArticleCompactTocProps {
154
160
  */
155
161
  patternClassName?: string;
156
162
  }
157
- declare function ArticleCompactTocComponent({ className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
163
+ declare function ArticleCompactTocComponent({ className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
158
164
 
159
165
  export { ArticleCompactTocComponent as ArticleCompactToc, type ArticleCompactTocProps, type ArticleCompactTocSection };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -124,6 +125,11 @@ interface ArticleCompactTocProps {
124
125
  * Markdown string to render (when renderMode is "markdown")
125
126
  */
126
127
  markdownString?: string;
128
+ /**
129
+ * Custom className mappings for markdown elements
130
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
131
+ */
132
+ markdownStyles?: MarkdownStylesMap;
127
133
  /**
128
134
  * Enable scroll-based section tracking
129
135
  * @default true
@@ -154,6 +160,6 @@ interface ArticleCompactTocProps {
154
160
  */
155
161
  patternClassName?: string;
156
162
  }
157
- declare function ArticleCompactTocComponent({ className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
163
+ declare function ArticleCompactTocComponent({ className, breadcrumbClassName, contentClassName, titleClassName, metaClassName, tocClassName, articleClassName, heroImageClassName, breadcrumbs, breadcrumbsSlot, currentPage, title, authorName, authorHref, publishDate, readTime, sections, tocSlot, renderSectionLink, description, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleCompactTocProps): react_jsx_runtime.JSX.Element;
158
164
 
159
165
  export { ArticleCompactTocComponent as ArticleCompactToc, type ArticleCompactTocProps, type ArticleCompactTocSection };
@@ -9,7 +9,7 @@ import { Icon } from '@page-speed/icon';
9
9
  import { jsx, jsxs } from 'react/jsx-runtime';
10
10
  import { Slot } from '@radix-ui/react-slot';
11
11
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
12
- import { Markdown } from '@page-speed/markdown-to-jsx';
12
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
13
13
  import * as PopoverPrimitive from '@radix-ui/react-popover';
14
14
  import { SocialShare } from '@page-speed/social-share';
15
15
 
@@ -556,6 +556,7 @@ function ArticleCompactTocComponent({
556
556
  children,
557
557
  renderMode = "jsx",
558
558
  markdownString,
559
+ markdownStyles,
559
560
  enableTocTracking = true,
560
561
  optixFlowConfig,
561
562
  background,
@@ -745,6 +746,7 @@ function ArticleCompactTocComponent({
745
746
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
746
747
  a: Pressable
747
748
  },
749
+ markdownStyles,
748
750
  children: markdownString
749
751
  }
750
752
  ) : children,
@@ -3,14 +3,14 @@
3
3
 
4
4
  var socialShare = require('@page-speed/social-share');
5
5
  var React3 = require('react');
6
- var dateFns = require('date-fns');
6
+ var format = require('date-fns/format');
7
7
  var clsx = require('clsx');
8
8
  var tailwindMerge = require('tailwind-merge');
9
9
  var img = require('@page-speed/img');
10
10
  var pressable = require('@page-speed/pressable');
11
11
  var AvatarPrimitive = require('@radix-ui/react-avatar');
12
12
  var jsxRuntime = require('react/jsx-runtime');
13
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
13
+ var core = require('@page-speed/markdown-to-jsx/core');
14
14
 
15
15
  function _interopNamespace(e) {
16
16
  if (e && e.__esModule) return e;
@@ -479,6 +479,7 @@ function ArticleHeroProseComponent({
479
479
  children,
480
480
  renderMode = "jsx",
481
481
  markdownString,
482
+ markdownStyles,
482
483
  dateFormat = "MMMM d, yyyy",
483
484
  optixFlowConfig,
484
485
  background,
@@ -515,7 +516,7 @@ function ArticleHeroProseComponent({
515
516
  /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { href: authorHref || "#", className: "font-semibold", children: authorName }),
516
517
  pubDate && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-1", children: [
517
518
  "on ",
518
- dateFns.format(pubDate, dateFormat)
519
+ format.format(pubDate, dateFormat)
519
520
  ] })
520
521
  ] })
521
522
  ]
@@ -598,12 +599,13 @@ function ArticleHeroProseComponent({
598
599
  proseClassName
599
600
  ),
600
601
  children: renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
601
- markdownToJsx.Markdown,
602
+ core.Markdown,
602
603
  {
603
604
  overrides: {
604
605
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
605
606
  a: pressable.Pressable
606
607
  },
608
+ markdownStyles,
607
609
  children: markdownString
608
610
  }
609
611
  ) : children
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -73,6 +74,11 @@ interface ArticleHeroProseProps {
73
74
  * Markdown string to render (when renderMode is "markdown")
74
75
  */
75
76
  markdownString?: string;
77
+ /**
78
+ * Custom className mappings for markdown elements
79
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
80
+ */
81
+ markdownStyles?: MarkdownStylesMap;
76
82
  /**
77
83
  * Date format string (date-fns format)
78
84
  * @default "MMMM d, yyyy"
@@ -99,6 +105,6 @@ interface ArticleHeroProseProps {
99
105
  */
100
106
  patternOpacity?: number;
101
107
  }
102
- declare function ArticleHeroProseComponent({ post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, children, renderMode, markdownString, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
108
+ declare function ArticleHeroProseComponent({ post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, children, renderMode, markdownString, markdownStyles, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
103
109
 
104
110
  export { ArticleHeroProseComponent as ArticleHeroProse, type ArticleHeroProsePost, type ArticleHeroProseProps };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -73,6 +74,11 @@ interface ArticleHeroProseProps {
73
74
  * Markdown string to render (when renderMode is "markdown")
74
75
  */
75
76
  markdownString?: string;
77
+ /**
78
+ * Custom className mappings for markdown elements
79
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
80
+ */
81
+ markdownStyles?: MarkdownStylesMap;
76
82
  /**
77
83
  * Date format string (date-fns format)
78
84
  * @default "MMMM d, yyyy"
@@ -99,6 +105,6 @@ interface ArticleHeroProseProps {
99
105
  */
100
106
  patternOpacity?: number;
101
107
  }
102
- declare function ArticleHeroProseComponent({ post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, children, renderMode, markdownString, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
108
+ declare function ArticleHeroProseComponent({ post, className, headerClassName, titleClassName, descriptionClassName, authorClassName, heroImageClassName, proseClassName, heroMediaSlot, authorSlot, children, renderMode, markdownString, markdownStyles, dateFormat, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, }: ArticleHeroProseProps): react_jsx_runtime.JSX.Element;
103
109
 
104
110
  export { ArticleHeroProseComponent as ArticleHeroProse, type ArticleHeroProsePost, type ArticleHeroProseProps };
@@ -2,14 +2,14 @@
2
2
  import { SocialShare } from '@page-speed/social-share';
3
3
  import * as React3 from 'react';
4
4
  import React3__default from 'react';
5
- import { format } from 'date-fns';
5
+ import { format } from 'date-fns/format';
6
6
  import { clsx } from 'clsx';
7
7
  import { twMerge } from 'tailwind-merge';
8
8
  import { Img } from '@page-speed/img';
9
9
  import { Pressable } from '@page-speed/pressable';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
11
  import { jsx, jsxs } from 'react/jsx-runtime';
12
- import { Markdown } from '@page-speed/markdown-to-jsx';
12
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
13
13
 
14
14
  // components/blocks/article/article-hero-prose.tsx
15
15
  function cn(...inputs) {
@@ -457,6 +457,7 @@ function ArticleHeroProseComponent({
457
457
  children,
458
458
  renderMode = "jsx",
459
459
  markdownString,
460
+ markdownStyles,
460
461
  dateFormat = "MMMM d, yyyy",
461
462
  optixFlowConfig,
462
463
  background,
@@ -582,6 +583,7 @@ function ArticleHeroProseComponent({
582
583
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
583
584
  a: Pressable
584
585
  },
586
+ markdownStyles,
585
587
  children: markdownString
586
588
  }
587
589
  ) : children
@@ -9,7 +9,7 @@ var pressable = require('@page-speed/pressable');
9
9
  var icon = require('@page-speed/icon');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var AvatarPrimitive = require('@radix-ui/react-avatar');
12
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
12
+ var core = require('@page-speed/markdown-to-jsx/core');
13
13
  var socialShare = require('@page-speed/social-share');
14
14
 
15
15
  function _interopNamespace(e) {
@@ -499,6 +499,7 @@ function ArticleSidebarStickyComponent({
499
499
  children,
500
500
  renderMode = "jsx",
501
501
  markdownString,
502
+ markdownStyles,
502
503
  optixFlowConfig,
503
504
  background,
504
505
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -620,12 +621,13 @@ function ArticleSidebarStickyComponent({
620
621
  sidebarContent ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "not-prose mt-4 lg:hidden", children: sidebarContent }) : null,
621
622
  heroMediaContent,
622
623
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
623
- markdownToJsx.Markdown,
624
+ core.Markdown,
624
625
  {
625
626
  overrides: {
626
627
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
627
628
  a: pressable.Pressable
628
629
  },
630
+ markdownStyles,
629
631
  children: markdownString
630
632
  }
631
633
  ) : children,
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -112,6 +113,11 @@ interface ArticleSidebarStickyProps {
112
113
  * Markdown string to render (when renderMode is "markdown")
113
114
  */
114
115
  markdownString?: string;
116
+ /**
117
+ * Custom className mappings for markdown elements
118
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
119
+ */
120
+ markdownStyles?: MarkdownStylesMap;
115
121
  /**
116
122
  * Sidebar content
117
123
  */
@@ -137,6 +143,6 @@ interface ArticleSidebarStickyProps {
137
143
  */
138
144
  patternOpacity?: number;
139
145
  }
140
- declare function ArticleSidebarStickyComponent({ className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
146
+ declare function ArticleSidebarStickyComponent({ className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
141
147
 
142
148
  export { ArticleSidebarStickyComponent as ArticleSidebarSticky, type ArticleSidebarStickyProps };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -112,6 +113,11 @@ interface ArticleSidebarStickyProps {
112
113
  * Markdown string to render (when renderMode is "markdown")
113
114
  */
114
115
  markdownString?: string;
116
+ /**
117
+ * Custom className mappings for markdown elements
118
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
119
+ */
120
+ markdownStyles?: MarkdownStylesMap;
115
121
  /**
116
122
  * Sidebar content
117
123
  */
@@ -137,6 +143,6 @@ interface ArticleSidebarStickyProps {
137
143
  */
138
144
  patternOpacity?: number;
139
145
  }
140
- declare function ArticleSidebarStickyComponent({ className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
146
+ declare function ArticleSidebarStickyComponent({ className, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, summary, summaryClassName, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, renderMode, markdownString, markdownStyles, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, sidebarContent, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
141
147
 
142
148
  export { ArticleSidebarStickyComponent as ArticleSidebarSticky, type ArticleSidebarStickyProps };
@@ -8,7 +8,7 @@ import { Pressable } from '@page-speed/pressable';
8
8
  import { Icon } from '@page-speed/icon';
9
9
  import { jsx, jsxs } from 'react/jsx-runtime';
10
10
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
11
- import { Markdown } from '@page-speed/markdown-to-jsx';
11
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
12
12
  import { SocialShare } from '@page-speed/social-share';
13
13
 
14
14
  // components/blocks/article/article-sidebar-sticky.tsx
@@ -477,6 +477,7 @@ function ArticleSidebarStickyComponent({
477
477
  children,
478
478
  renderMode = "jsx",
479
479
  markdownString,
480
+ markdownStyles,
480
481
  optixFlowConfig,
481
482
  background,
482
483
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -604,6 +605,7 @@ function ArticleSidebarStickyComponent({
604
605
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
605
606
  a: Pressable
606
607
  },
608
+ markdownStyles,
607
609
  children: markdownString
608
610
  }
609
611
  ) : children,
@@ -10,7 +10,7 @@ var AvatarPrimitive = require('@radix-ui/react-avatar');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
  var reactSlot = require('@radix-ui/react-slot');
12
12
  var classVarianceAuthority = require('class-variance-authority');
13
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
13
+ var core = require('@page-speed/markdown-to-jsx/core');
14
14
  var socialShare = require('@page-speed/social-share');
15
15
 
16
16
  function _interopNamespace(e) {
@@ -532,6 +532,7 @@ function ArticleTocSidebarComponent({
532
532
  children,
533
533
  renderMode = "jsx",
534
534
  markdownString,
535
+ markdownStyles,
535
536
  enableTocTracking = true,
536
537
  optixFlowConfig,
537
538
  background,
@@ -718,12 +719,13 @@ function ArticleTocSidebarComponent({
718
719
  ] }),
719
720
  heroMediaContent,
720
721
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
721
- markdownToJsx.Markdown,
722
+ core.Markdown,
722
723
  {
723
724
  overrides: {
724
725
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
725
726
  a: pressable.Pressable
726
727
  },
728
+ markdownStyles,
727
729
  children: markdownString
728
730
  }
729
731
  ) : children,
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-2nI4WPsD.cjs';
4
5
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DL92rOxr.cjs';
5
6
  import 'class-variance-authority';
@@ -148,6 +149,11 @@ interface ArticleTocSidebarProps {
148
149
  * Markdown string to render (when renderMode is "markdown")
149
150
  */
150
151
  markdownString?: string;
152
+ /**
153
+ * Custom className mappings for markdown elements
154
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
155
+ */
156
+ markdownStyles?: MarkdownStylesMap;
151
157
  /**
152
158
  * Enable scroll-based section tracking
153
159
  * @default true
@@ -178,6 +184,6 @@ interface ArticleTocSidebarProps {
178
184
  */
179
185
  patternClassName?: string;
180
186
  }
181
- declare function ArticleTocSidebarComponent({ className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
187
+ declare function ArticleTocSidebarComponent({ className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
182
188
 
183
189
  export { type ArticleTocSection, ArticleTocSidebarComponent as ArticleTocSidebar, type ArticleTocSidebarProps };
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
+ import { MarkdownStylesMap } from '@page-speed/markdown-to-jsx';
3
4
  import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-RgHoLtLt.js';
4
5
  import { A as ActionConfig, O as OptixFlowConfig } from './blocks-DL92rOxr.js';
5
6
  import 'class-variance-authority';
@@ -148,6 +149,11 @@ interface ArticleTocSidebarProps {
148
149
  * Markdown string to render (when renderMode is "markdown")
149
150
  */
150
151
  markdownString?: string;
152
+ /**
153
+ * Custom className mappings for markdown elements
154
+ * @example { h2: 'text-3xl font-bold', img: 'rounded-lg shadow-md' }
155
+ */
156
+ markdownStyles?: MarkdownStylesMap;
151
157
  /**
152
158
  * Enable scroll-based section tracking
153
159
  * @default true
@@ -178,6 +184,6 @@ interface ArticleTocSidebarProps {
178
184
  */
179
185
  patternClassName?: string;
180
186
  }
181
- declare function ArticleTocSidebarComponent({ className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
187
+ declare function ArticleTocSidebarComponent({ className, articleClassName, sidebarClassName, headerClassName, titleClassName, descriptionClassName, authorClassName, tocClassName, ctaClassName, heroImageClassName, title, description, authorName, authorImage, authorHref, publishDate, readTime, authorSlot, category, categorySlot, sections, tocSlot, renderSectionLink, heroImageSrc, heroImageAlt, heroMediaSlot, ctaTitle, ctaDescription, ctaActions, ctaSlot, children, renderMode, markdownString, markdownStyles, enableTocTracking, optixFlowConfig, background, containerClassName, spacing, pattern, patternOpacity, patternClassName, }: ArticleTocSidebarProps): react_jsx_runtime.JSX.Element;
182
188
 
183
189
  export { type ArticleTocSection, ArticleTocSidebarComponent as ArticleTocSidebar, type ArticleTocSidebarProps };
@@ -9,7 +9,7 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import { Slot } from '@radix-ui/react-slot';
11
11
  import { cva } from 'class-variance-authority';
12
- import { Markdown } from '@page-speed/markdown-to-jsx';
12
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
13
13
  import { SocialShare } from '@page-speed/social-share';
14
14
 
15
15
  // components/blocks/article/article-toc-sidebar.tsx
@@ -510,6 +510,7 @@ function ArticleTocSidebarComponent({
510
510
  children,
511
511
  renderMode = "jsx",
512
512
  markdownString,
513
+ markdownStyles,
513
514
  enableTocTracking = true,
514
515
  optixFlowConfig,
515
516
  background,
@@ -702,6 +703,7 @@ function ArticleTocSidebarComponent({
702
703
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
703
704
  a: Pressable
704
705
  },
706
+ markdownStyles,
705
707
  children: markdownString
706
708
  }
707
709
  ) : children,
package/dist/registry.cjs CHANGED
@@ -28,8 +28,8 @@ var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
28
28
  var CheckboxPrimitive = require('@radix-ui/react-checkbox');
29
29
  var LabelPrimitive = require('@radix-ui/react-label');
30
30
  var socialShare = require('@page-speed/social-share');
31
- var dateFns = require('date-fns');
32
- var markdownToJsx = require('@page-speed/markdown-to-jsx');
31
+ var format = require('date-fns/format');
32
+ var core = require('@page-speed/markdown-to-jsx/core');
33
33
  var DialogPrimitive = require('@radix-ui/react-dialog');
34
34
  var forms = require('@page-speed/forms');
35
35
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
@@ -37317,6 +37317,7 @@ function ArticleHeroProseComponent({
37317
37317
  children,
37318
37318
  renderMode = "jsx",
37319
37319
  markdownString,
37320
+ markdownStyles,
37320
37321
  dateFormat = "MMMM d, yyyy",
37321
37322
  optixFlowConfig,
37322
37323
  background,
@@ -37353,7 +37354,7 @@ function ArticleHeroProseComponent({
37353
37354
  /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { href: authorHref || "#", className: "font-semibold", children: authorName }),
37354
37355
  pubDate && /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ml-1", children: [
37355
37356
  "on ",
37356
- dateFns.format(pubDate, dateFormat)
37357
+ format.format(pubDate, dateFormat)
37357
37358
  ] })
37358
37359
  ] })
37359
37360
  ]
@@ -37436,12 +37437,13 @@ function ArticleHeroProseComponent({
37436
37437
  proseClassName
37437
37438
  ),
37438
37439
  children: renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
37439
- markdownToJsx.Markdown,
37440
+ core.Markdown,
37440
37441
  {
37441
37442
  overrides: {
37442
37443
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
37443
37444
  a: pressable.Pressable
37444
37445
  },
37446
+ markdownStyles,
37445
37447
  children: markdownString
37446
37448
  }
37447
37449
  ) : children
@@ -37487,6 +37489,7 @@ function ArticleSidebarStickyComponent({
37487
37489
  children,
37488
37490
  renderMode = "jsx",
37489
37491
  markdownString,
37492
+ markdownStyles,
37490
37493
  optixFlowConfig,
37491
37494
  background,
37492
37495
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -37608,12 +37611,13 @@ function ArticleSidebarStickyComponent({
37608
37611
  sidebarContent ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "not-prose mt-4 lg:hidden", children: sidebarContent }) : null,
37609
37612
  heroMediaContent,
37610
37613
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
37611
- markdownToJsx.Markdown,
37614
+ core.Markdown,
37612
37615
  {
37613
37616
  overrides: {
37614
37617
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
37615
37618
  a: pressable.Pressable
37616
37619
  },
37620
+ markdownStyles,
37617
37621
  children: markdownString
37618
37622
  }
37619
37623
  ) : children,
@@ -37668,6 +37672,7 @@ function ArticleTocSidebarComponent({
37668
37672
  children,
37669
37673
  renderMode = "jsx",
37670
37674
  markdownString,
37675
+ markdownStyles,
37671
37676
  enableTocTracking = true,
37672
37677
  optixFlowConfig,
37673
37678
  background,
@@ -37854,12 +37859,13 @@ function ArticleTocSidebarComponent({
37854
37859
  ] }),
37855
37860
  heroMediaContent,
37856
37861
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
37857
- markdownToJsx.Markdown,
37862
+ core.Markdown,
37858
37863
  {
37859
37864
  overrides: {
37860
37865
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
37861
37866
  a: pressable.Pressable
37862
37867
  },
37868
+ markdownStyles,
37863
37869
  children: markdownString
37864
37870
  }
37865
37871
  ) : children,
@@ -37911,6 +37917,7 @@ function ArticleBreadcrumbSocialComponent({
37911
37917
  children,
37912
37918
  renderMode = "jsx",
37913
37919
  markdownString,
37920
+ markdownStyles,
37914
37921
  enableTocTracking,
37915
37922
  enableBackToTop,
37916
37923
  optixFlowConfig,
@@ -38074,12 +38081,13 @@ function ArticleBreadcrumbSocialComponent({
38074
38081
  authorContent,
38075
38082
  heroMediaContent,
38076
38083
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
38077
- markdownToJsx.Markdown,
38084
+ core.Markdown,
38078
38085
  {
38079
38086
  overrides: {
38080
38087
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
38081
38088
  a: pressable.Pressable
38082
38089
  },
38090
+ markdownStyles,
38083
38091
  children: markdownString
38084
38092
  }
38085
38093
  ) : children,
@@ -38139,6 +38147,7 @@ function ArticleCompactTocComponent({
38139
38147
  children,
38140
38148
  renderMode = "jsx",
38141
38149
  markdownString,
38150
+ markdownStyles,
38142
38151
  enableTocTracking = true,
38143
38152
  optixFlowConfig,
38144
38153
  background,
@@ -38322,12 +38331,13 @@ function ArticleCompactTocComponent({
38322
38331
  children: [
38323
38332
  heroMediaContent,
38324
38333
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
38325
- markdownToJsx.Markdown,
38334
+ core.Markdown,
38326
38335
  {
38327
38336
  overrides: {
38328
38337
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
38329
38338
  a: pressable.Pressable
38330
38339
  },
38340
+ markdownStyles,
38331
38341
  children: markdownString
38332
38342
  }
38333
38343
  ) : children,
@@ -38383,6 +38393,7 @@ function ArticleChaptersAuthorComponent({
38383
38393
  children,
38384
38394
  renderMode = "jsx",
38385
38395
  markdownString,
38396
+ markdownStyles,
38386
38397
  enableChapterTracking = true,
38387
38398
  optixFlowConfig,
38388
38399
  background,
@@ -38636,12 +38647,13 @@ function ArticleChaptersAuthorComponent({
38636
38647
  children: [
38637
38648
  heroMediaContent,
38638
38649
  renderMode === "markdown" && markdownString ? /* @__PURE__ */ jsxRuntime.jsx(
38639
- markdownToJsx.Markdown,
38650
+ core.Markdown,
38640
38651
  {
38641
38652
  overrides: {
38642
38653
  img: (props) => /* @__PURE__ */ jsxRuntime.jsx(img.Img, { ...props, optixFlowConfig }),
38643
38654
  a: pressable.Pressable
38644
38655
  },
38656
+ markdownStyles,
38645
38657
  children: markdownString
38646
38658
  }
38647
38659
  ) : children,
package/dist/registry.js CHANGED
@@ -27,8 +27,8 @@ import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
27
27
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
28
28
  import * as LabelPrimitive from '@radix-ui/react-label';
29
29
  import { SocialShare } from '@page-speed/social-share';
30
- import { format } from 'date-fns';
31
- import { Markdown } from '@page-speed/markdown-to-jsx';
30
+ import { format } from 'date-fns/format';
31
+ import { Markdown } from '@page-speed/markdown-to-jsx/core';
32
32
  import * as DialogPrimitive from '@radix-ui/react-dialog';
33
33
  import { Form, useForm, Field } from '@page-speed/forms';
34
34
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -37277,6 +37277,7 @@ function ArticleHeroProseComponent({
37277
37277
  children,
37278
37278
  renderMode = "jsx",
37279
37279
  markdownString,
37280
+ markdownStyles,
37280
37281
  dateFormat = "MMMM d, yyyy",
37281
37282
  optixFlowConfig,
37282
37283
  background,
@@ -37402,6 +37403,7 @@ function ArticleHeroProseComponent({
37402
37403
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
37403
37404
  a: Pressable
37404
37405
  },
37406
+ markdownStyles,
37405
37407
  children: markdownString
37406
37408
  }
37407
37409
  ) : children
@@ -37447,6 +37449,7 @@ function ArticleSidebarStickyComponent({
37447
37449
  children,
37448
37450
  renderMode = "jsx",
37449
37451
  markdownString,
37452
+ markdownStyles,
37450
37453
  optixFlowConfig,
37451
37454
  background,
37452
37455
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
@@ -37574,6 +37577,7 @@ function ArticleSidebarStickyComponent({
37574
37577
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
37575
37578
  a: Pressable
37576
37579
  },
37580
+ markdownStyles,
37577
37581
  children: markdownString
37578
37582
  }
37579
37583
  ) : children,
@@ -37628,6 +37632,7 @@ function ArticleTocSidebarComponent({
37628
37632
  children,
37629
37633
  renderMode = "jsx",
37630
37634
  markdownString,
37635
+ markdownStyles,
37631
37636
  enableTocTracking = true,
37632
37637
  optixFlowConfig,
37633
37638
  background,
@@ -37820,6 +37825,7 @@ function ArticleTocSidebarComponent({
37820
37825
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
37821
37826
  a: Pressable
37822
37827
  },
37828
+ markdownStyles,
37823
37829
  children: markdownString
37824
37830
  }
37825
37831
  ) : children,
@@ -37871,6 +37877,7 @@ function ArticleBreadcrumbSocialComponent({
37871
37877
  children,
37872
37878
  renderMode = "jsx",
37873
37879
  markdownString,
37880
+ markdownStyles,
37874
37881
  enableTocTracking,
37875
37882
  enableBackToTop,
37876
37883
  optixFlowConfig,
@@ -38040,6 +38047,7 @@ function ArticleBreadcrumbSocialComponent({
38040
38047
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
38041
38048
  a: Pressable
38042
38049
  },
38050
+ markdownStyles,
38043
38051
  children: markdownString
38044
38052
  }
38045
38053
  ) : children,
@@ -38099,6 +38107,7 @@ function ArticleCompactTocComponent({
38099
38107
  children,
38100
38108
  renderMode = "jsx",
38101
38109
  markdownString,
38110
+ markdownStyles,
38102
38111
  enableTocTracking = true,
38103
38112
  optixFlowConfig,
38104
38113
  background,
@@ -38288,6 +38297,7 @@ function ArticleCompactTocComponent({
38288
38297
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
38289
38298
  a: Pressable
38290
38299
  },
38300
+ markdownStyles,
38291
38301
  children: markdownString
38292
38302
  }
38293
38303
  ) : children,
@@ -38343,6 +38353,7 @@ function ArticleChaptersAuthorComponent({
38343
38353
  children,
38344
38354
  renderMode = "jsx",
38345
38355
  markdownString,
38356
+ markdownStyles,
38346
38357
  enableChapterTracking = true,
38347
38358
  optixFlowConfig,
38348
38359
  background,
@@ -38602,6 +38613,7 @@ function ArticleChaptersAuthorComponent({
38602
38613
  img: (props) => /* @__PURE__ */ jsx(Img, { ...props, optixFlowConfig }),
38603
38614
  a: Pressable
38604
38615
  },
38616
+ markdownStyles,
38605
38617
  children: markdownString
38606
38618
  }
38607
38619
  ) : children,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",
@@ -3414,7 +3414,7 @@
3414
3414
  "@page-speed/img": "0.4.6",
3415
3415
  "@page-speed/lightbox": "0.2.1",
3416
3416
  "@page-speed/maps": "0.2.4",
3417
- "@page-speed/markdown-to-jsx": "^0.0.2",
3417
+ "@page-speed/markdown-to-jsx": "0.0.4",
3418
3418
  "@page-speed/pdf-viewer": "0.1.9",
3419
3419
  "@page-speed/pressable": "^0.0.1",
3420
3420
  "@page-speed/social-share": "0.1.5",