@object-ui/plugin-markdown 3.1.3 → 3.1.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.
package/dist/index.js CHANGED
@@ -1,8 +1,32 @@
1
- import { M as p, m as t } from "./index-Dr10kVgr.js";
2
- import "react";
3
- import "@object-ui/core";
4
- import "@object-ui/components";
5
- export {
6
- p as MarkdownRenderer,
7
- t as markdownComponents
8
- };
1
+ import { t as e } from "./jsx-runtime-B1W8iDPg.js";
2
+ import t, { Suspense as n } from "react";
3
+ import { ComponentRegistry as r } from "@object-ui/core";
4
+ import { Skeleton as i } from "@object-ui/components";
5
+ //#region src/index.tsx
6
+ var a = e(), o = t.lazy(() => import("./MarkdownImpl-zSR34qzi.js")), s = ({ schema: e }) => /* @__PURE__ */ (0, a.jsx)(n, {
7
+ fallback: /* @__PURE__ */ (0, a.jsx)(i, { className: "w-full h-[200px]" }),
8
+ children: /* @__PURE__ */ (0, a.jsx)(o, {
9
+ content: e.content || "",
10
+ className: e.className
11
+ })
12
+ });
13
+ r.register("markdown", s, {
14
+ namespace: "plugin-markdown",
15
+ label: "Markdown",
16
+ category: "plugin",
17
+ inputs: [{
18
+ name: "content",
19
+ type: "string",
20
+ label: "Markdown Content",
21
+ required: !0,
22
+ inputType: "textarea"
23
+ }, {
24
+ name: "className",
25
+ type: "string",
26
+ label: "CSS Class"
27
+ }],
28
+ defaultProps: { content: "# Hello World\n\nThis is a **markdown** component with *formatting* support.\n\n- Item 1\n- Item 2\n- Item 3" }
29
+ });
30
+ var c = { markdown: s };
31
+ //#endregion
32
+ export { s as MarkdownRenderer, c as markdownComponents };