@vllnt/ui 0.2.1-canary.614266d → 0.2.1-canary.629f617

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.
@@ -2,7 +2,6 @@ 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";
6
5
  import { CodeBlock } from "../code-block/code-block";
7
6
  const MDXComponents = {
8
7
  a: ({ children, href, ...props }) => /* @__PURE__ */ jsx(
@@ -98,7 +97,6 @@ const proseClasses = [
98
97
  "prose-td:border prose-td:border-border prose-td:p-2",
99
98
  "prose-img:rounded-lg prose-img:border prose-img:border-border prose-img:shadow-lg"
100
99
  ].join(" ");
101
- const markdownPlugins = [remarkGfm];
102
100
  function removeImportStatements(content, componentNames) {
103
101
  let processed = content.replaceAll(/^import\s+.*CodeBlock.*from.*$/gm, "");
104
102
  componentNames.forEach((name) => {
@@ -145,16 +143,9 @@ async function MDXContent({
145
143
  if (Component) {
146
144
  return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(Component, { components: allComponents }) });
147
145
  }
148
- return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(
149
- ReactMarkdown,
150
- {
151
- components: allComponents,
152
- remarkPlugins: markdownPlugins,
153
- children: content
154
- }
155
- ) });
146
+ return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, children: content }) });
156
147
  }
157
- return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, remarkPlugins: markdownPlugins, children: content }) });
148
+ return /* @__PURE__ */ jsx("div", { className: proseClasses, children: /* @__PURE__ */ jsx(ReactMarkdown, { components: allComponents, children: content }) });
158
149
  }
159
150
  export {
160
151
  MDXContent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vllnt/ui",
3
- "version": "0.2.1-canary.614266d",
3
+ "version": "0.2.1-canary.629f617",
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,7 +105,6 @@
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",
109
108
  "react-resizable-panels": "^4.3.3",
110
109
  "react-syntax-highlighter": "^16.1.1",
111
110
  "sonner": "^1.7.4",
@@ -138,6 +137,7 @@
138
137
  "jsdom": "^26.1.0",
139
138
  "playwright": "^1.57.0",
140
139
  "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",