@vllnt/ui 0.2.1-canary.53afe90 → 0.2.1-canary.614266d
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
10
10
|
|
|
11
11
|
### Added
|
|
12
12
|
|
|
13
|
+
- **Release intelligence surface** — `/changelog`, `/releases`, `/rss.xml`, and `/atom.xml` expose one changelog source through HTML, GitHub release cards, and feed readers. `/docs/changelog` redirects to `/changelog`.
|
|
13
14
|
- **Hooks + utility primitives** — `CopyButton` (+ `useCopyToClipboard` hook), `Banner` + `BannerAction`, `Kbd`, `EmptyState`, `DocumentSiblingNav`.
|
|
14
15
|
- **Pricing + identity cards** — `PricingTable` + `PricingPlan`, `HistoricalFigureCard`, `CivilizationCard` (+ `CivilizationComparison`).
|
|
15
16
|
- **Newsletter** — `NewsletterSignup` (state-machine driven submit flow).
|
|
@@ -2,6 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { evaluate } from "@mdx-js/mdx";
|
|
3
3
|
import * as runtime from "react/jsx-runtime";
|
|
4
4
|
import ReactMarkdown from "react-markdown";
|
|
5
|
+
import remarkGfm from "remark-gfm";
|
|
5
6
|
import { CodeBlock } from "../code-block/code-block";
|
|
6
7
|
const MDXComponents = {
|
|
7
8
|
a: ({ children, href, ...props }) => /* @__PURE__ */ jsx(
|
|
@@ -97,6 +98,7 @@ const proseClasses = [
|
|
|
97
98
|
"prose-td:border prose-td:border-border prose-td:p-2",
|
|
98
99
|
"prose-img:rounded-lg prose-img:border prose-img:border-border prose-img:shadow-lg"
|
|
99
100
|
].join(" ");
|
|
101
|
+
const markdownPlugins = [remarkGfm];
|
|
100
102
|
function removeImportStatements(content, componentNames) {
|
|
101
103
|
let processed = content.replaceAll(/^import\s+.*CodeBlock.*from.*$/gm, "");
|
|
102
104
|
componentNames.forEach((name) => {
|
|
@@ -143,9 +145,16 @@ async function MDXContent({
|
|
|
143
145
|
if (Component) {
|
|
144
146
|
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(Component, { components: allComponents }) });
|
|
145
147
|
}
|
|
146
|
-
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(
|
|
148
|
+
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(
|
|
149
|
+
ReactMarkdown,
|
|
150
|
+
{
|
|
151
|
+
components: allComponents,
|
|
152
|
+
remarkPlugins: markdownPlugins,
|
|
153
|
+
children: content
|
|
154
|
+
}
|
|
155
|
+
) });
|
|
147
156
|
}
|
|
148
|
-
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, children: content }) });
|
|
157
|
+
return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, remarkPlugins: markdownPlugins, children: content }) });
|
|
149
158
|
}
|
|
150
159
|
export {
|
|
151
160
|
MDXContent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vllnt/ui",
|
|
3
|
-
"version": "0.2.1-canary.
|
|
3
|
+
"version": "0.2.1-canary.614266d",
|
|
4
4
|
"description": "React component library — 225 components built on Radix UI, Tailwind CSS, and CVA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vllnt",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"react-day-picker": "^9.13.0",
|
|
106
106
|
"react-hook-form": "^7.73.1",
|
|
107
107
|
"react-markdown": "^10.1.0",
|
|
108
|
+
"remark-gfm": "^4.0.1",
|
|
108
109
|
"react-resizable-panels": "^4.3.3",
|
|
109
110
|
"react-syntax-highlighter": "^16.1.1",
|
|
110
111
|
"sonner": "^1.7.4",
|
|
@@ -137,7 +138,6 @@
|
|
|
137
138
|
"jsdom": "^26.1.0",
|
|
138
139
|
"playwright": "^1.57.0",
|
|
139
140
|
"postcss": "^8.5.10",
|
|
140
|
-
"remark-gfm": "^4.0.1",
|
|
141
141
|
"storybook": "^10.2.17",
|
|
142
142
|
"tailwindcss": "^3.4.17",
|
|
143
143
|
"tailwindcss-animate": "^1.0.7",
|