@object-ui/plugin-markdown 3.1.5 → 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/CHANGELOG.md +28 -0
- package/README.md +24 -0
- package/dist/{MarkdownImpl-zSR34qzi.js → MarkdownImpl-wVg1IIeS.js} +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.umd.cjs +7 -7
- package/dist/{jsx-runtime-B1W8iDPg.js → jsx-runtime-DW-7Xb_Z.js} +1 -1
- package/dist/packages/plugin-markdown/src/MarkdownImpl.d.ts.map +1 -0
- package/dist/packages/plugin-markdown/src/index.d.ts.map +1 -0
- package/dist/packages/plugin-markdown/src/types.d.ts.map +1 -0
- package/package.json +32 -9
- package/.turbo/turbo-build.log +0 -28
- package/dist/src/MarkdownImpl.d.ts.map +0 -1
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/types.d.ts.map +0 -1
- package/src/MarkdownImpl.tsx +0 -72
- package/src/index.test.ts +0 -63
- package/src/index.tsx +0 -71
- package/src/types.ts +0 -36
- package/tsconfig.json +0 -19
- package/vite.config.ts +0 -59
- /package/dist/{src → packages/plugin-markdown/src}/MarkdownImpl.d.ts +0 -0
- /package/dist/{src → packages/plugin-markdown/src}/index.d.ts +0 -0
- /package/dist/{src → packages/plugin-markdown/src}/types.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @object-ui/plugin-markdown
|
|
2
2
|
|
|
3
|
+
## 3.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b429568]
|
|
8
|
+
- @object-ui/components@3.3.1
|
|
9
|
+
- @object-ui/types@3.3.1
|
|
10
|
+
- @object-ui/core@3.3.1
|
|
11
|
+
- @object-ui/react@3.3.1
|
|
12
|
+
|
|
13
|
+
## 3.3.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- @object-ui/types@3.3.0
|
|
18
|
+
- @object-ui/core@3.3.0
|
|
19
|
+
- @object-ui/react@3.3.0
|
|
20
|
+
- @object-ui/components@3.3.0
|
|
21
|
+
|
|
22
|
+
## 3.2.0
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- @object-ui/types@3.2.0
|
|
27
|
+
- @object-ui/core@3.2.0
|
|
28
|
+
- @object-ui/react@3.2.0
|
|
29
|
+
- @object-ui/components@3.2.0
|
|
30
|
+
|
|
3
31
|
## 3.1.5
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -109,3 +109,27 @@ pnpm build
|
|
|
109
109
|
|
|
110
110
|
# The package will generate proper ESM and UMD builds with lazy loading preserved
|
|
111
111
|
```
|
|
112
|
+
|
|
113
|
+
<!-- release-metadata:v3.3.0 -->
|
|
114
|
+
|
|
115
|
+
## Compatibility
|
|
116
|
+
|
|
117
|
+
- **React:** 18.x or 19.x
|
|
118
|
+
- **Node.js:** ≥ 18
|
|
119
|
+
- **TypeScript:** ≥ 5.0 (strict mode)
|
|
120
|
+
- **`@objectstack/spec`:** ^3.3.0
|
|
121
|
+
- **`@objectstack/client`:** ^3.3.0
|
|
122
|
+
- **Tailwind CSS:** ≥ 3.4 (for packages with UI)
|
|
123
|
+
|
|
124
|
+
## Links
|
|
125
|
+
|
|
126
|
+
- 📚 [Documentation](https://www.objectui.org/docs/plugins/plugin-markdown)
|
|
127
|
+
- 📦 [npm package](https://www.npmjs.com/package/@object-ui/plugin-markdown)
|
|
128
|
+
- 📝 [Changelog](./CHANGELOG.md)
|
|
129
|
+
- 🐛 [Report an issue](https://github.com/objectstack-ai/objectui/issues)
|
|
130
|
+
- 🤝 [Contributing Guide](https://github.com/objectstack-ai/objectui/blob/main/CONTRIBUTING.md)
|
|
131
|
+
- 🗺️ [Roadmap](https://github.com/objectstack-ai/objectui/blob/main/ROADMAP.md)
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
MIT — see [LICENSE](./LICENSE).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./jsx-runtime-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./jsx-runtime-DW-7Xb_Z.js";
|
|
2
2
|
import "react";
|
|
3
3
|
//#endregion
|
|
4
4
|
//#region ../../node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
|
|
@@ -2233,6 +2233,7 @@ function tn(e) {
|
|
|
2233
2233
|
return e !== 96 || this.events[this.events.length - 1][1].type === "characterEscape";
|
|
2234
2234
|
}
|
|
2235
2235
|
function nn(e, t, n) {
|
|
2236
|
+
this;
|
|
2236
2237
|
let r = 0, i, a;
|
|
2237
2238
|
return o;
|
|
2238
2239
|
function o(t) {
|
|
@@ -5544,7 +5545,7 @@ function Va(e) {
|
|
|
5544
5545
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
5545
5546
|
}
|
|
5546
5547
|
//#endregion
|
|
5547
|
-
//#region ../../node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.2.14_react@19.2.
|
|
5548
|
+
//#region ../../node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.2.14_react@19.2.5/node_modules/react-markdown/lib/index.js
|
|
5548
5549
|
var Ha = r(), Ua = [], Wa = { allowDangerousHtml: !0 }, Ga = /^(https?|ircs?|mailto|xmpp)$/i, Ka = [
|
|
5549
5550
|
{
|
|
5550
5551
|
from: "astPlugins",
|
|
@@ -7796,10 +7797,9 @@ function fl(e) {
|
|
|
7796
7797
|
//#endregion
|
|
7797
7798
|
//#region src/MarkdownImpl.tsx
|
|
7798
7799
|
function pl({ content: e, className: t }) {
|
|
7799
|
-
let n = (...e) => e.filter(Boolean).join(" ");
|
|
7800
7800
|
return /* @__PURE__ */ (0, Ha.jsx)("div", {
|
|
7801
7801
|
"data-slot": "markdown",
|
|
7802
|
-
className:
|
|
7802
|
+
className: ((...e) => e.filter(Boolean).join(" "))("prose prose-sm dark:prose-invert max-w-none", "prose-headings:font-semibold prose-headings:tracking-tight", "prose-h1:text-3xl prose-h2:text-2xl prose-h3:text-xl", "prose-p:leading-relaxed prose-p:text-foreground", "prose-a:text-primary prose-a:no-underline hover:prose-a:underline", "prose-code:text-foreground prose-code:bg-muted prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none", "prose-pre:bg-muted prose-pre:text-foreground prose-pre:border", "prose-blockquote:border-l-primary prose-blockquote:text-muted-foreground", "prose-strong:text-foreground prose-strong:font-semibold", "prose-ul:list-disc prose-ol:list-decimal", "prose-li:text-foreground prose-li:marker:text-muted-foreground", "prose-table:border prose-th:border prose-th:bg-muted prose-td:border", "prose-img:rounded-md prose-img:border", t),
|
|
7803
7803
|
children: /* @__PURE__ */ (0, Ha.jsx)(qa, {
|
|
7804
7804
|
remarkPlugins: [Yc],
|
|
7805
7805
|
rehypePlugins: [fl],
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './src/index'
|
|
1
|
+
export * from './packages/plugin-markdown/src/index'
|
|
2
2
|
export {}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./jsx-runtime-
|
|
1
|
+
import { t as e } from "./jsx-runtime-DW-7Xb_Z.js";
|
|
2
2
|
import t, { Suspense as n } from "react";
|
|
3
3
|
import { ComponentRegistry as r } from "@object-ui/core";
|
|
4
4
|
import { Skeleton as i } from "@object-ui/components";
|
|
5
5
|
//#region src/index.tsx
|
|
6
|
-
var a = e(), o = t.lazy(() => import("./MarkdownImpl-
|
|
6
|
+
var a = e(), o = t.lazy(() => import("./MarkdownImpl-wVg1IIeS.js")), s = ({ schema: e }) => /* @__PURE__ */ (0, a.jsx)(n, {
|
|
7
7
|
fallback: /* @__PURE__ */ (0, a.jsx)(i, { className: "w-full h-[200px]" }),
|
|
8
8
|
children: /* @__PURE__ */ (0, a.jsx)(o, {
|
|
9
9
|
content: e.content || "",
|