@ceed/ads 1.2.2-next.5 → 1.2.3-next.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/dist/components/Markdown/Markdown.d.ts +1 -0
- package/dist/index.cjs +198 -190
- package/dist/index.js +37 -29
- package/framer/index.js +24 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -145,7 +145,7 @@ import {
|
|
|
145
145
|
StepButton,
|
|
146
146
|
stepButtonClasses,
|
|
147
147
|
stepperClasses,
|
|
148
|
-
Skeleton,
|
|
148
|
+
Skeleton as Skeleton2,
|
|
149
149
|
skeletonClasses
|
|
150
150
|
} from "@mui/joy";
|
|
151
151
|
|
|
@@ -4696,6 +4696,7 @@ import { Grid } from "@mui/joy";
|
|
|
4696
4696
|
|
|
4697
4697
|
// src/components/Markdown/Markdown.tsx
|
|
4698
4698
|
import React30, { lazy, Suspense, useEffect as useEffect8, useState as useState9 } from "react";
|
|
4699
|
+
import { Skeleton } from "@mui/joy";
|
|
4699
4700
|
import { Link as Link2 } from "@mui/joy";
|
|
4700
4701
|
var LazyReactMarkdown = lazy(() => import("react-markdown"));
|
|
4701
4702
|
var Markdown = (props) => {
|
|
@@ -4716,6 +4717,7 @@ var Markdown = (props) => {
|
|
|
4716
4717
|
markdownOptions,
|
|
4717
4718
|
boldFontWeight,
|
|
4718
4719
|
content,
|
|
4720
|
+
fallback,
|
|
4719
4721
|
...innerProps
|
|
4720
4722
|
} = props;
|
|
4721
4723
|
if (!rehypeAccent2) {
|
|
@@ -4730,35 +4732,41 @@ var Markdown = (props) => {
|
|
|
4730
4732
|
level: defaultLevel,
|
|
4731
4733
|
...innerProps
|
|
4732
4734
|
},
|
|
4733
|
-
/* @__PURE__ */ React30.createElement(
|
|
4734
|
-
|
|
4735
|
+
/* @__PURE__ */ React30.createElement(
|
|
4736
|
+
Suspense,
|
|
4735
4737
|
{
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
Typography,
|
|
4746
|
-
{
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4738
|
+
fallback: fallback || /* @__PURE__ */ React30.createElement(Skeleton, { level: defaultLevel })
|
|
4739
|
+
},
|
|
4740
|
+
/* @__PURE__ */ React30.createElement(
|
|
4741
|
+
LazyReactMarkdown,
|
|
4742
|
+
{
|
|
4743
|
+
...markdownOptions,
|
|
4744
|
+
children: content,
|
|
4745
|
+
rehypePlugins: [[rehypeAccent2, { accentColor }]],
|
|
4746
|
+
components: {
|
|
4747
|
+
h1: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { color, textColor, level: "h1" }, children),
|
|
4748
|
+
h2: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
4749
|
+
h3: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
4750
|
+
h4: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
4751
|
+
p: ({ children, node }) => /* @__PURE__ */ React30.createElement(
|
|
4752
|
+
Typography,
|
|
4753
|
+
{
|
|
4754
|
+
color,
|
|
4755
|
+
textColor,
|
|
4756
|
+
level: defaultLevel,
|
|
4757
|
+
...node?.properties
|
|
4758
|
+
},
|
|
4759
|
+
children
|
|
4760
|
+
),
|
|
4761
|
+
a: ({ children, href }) => /* @__PURE__ */ React30.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
4762
|
+
hr: () => /* @__PURE__ */ React30.createElement(Divider, null),
|
|
4763
|
+
b: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4764
|
+
strong: ({ children }) => /* @__PURE__ */ React30.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
4765
|
+
...markdownOptions?.components
|
|
4766
|
+
}
|
|
4759
4767
|
}
|
|
4760
|
-
|
|
4761
|
-
)
|
|
4768
|
+
)
|
|
4769
|
+
)
|
|
4762
4770
|
);
|
|
4763
4771
|
};
|
|
4764
4772
|
Markdown.displayName = "Markdown";
|
|
@@ -6244,7 +6252,7 @@ export {
|
|
|
6244
6252
|
RadioList,
|
|
6245
6253
|
Select,
|
|
6246
6254
|
Sheet,
|
|
6247
|
-
Skeleton,
|
|
6255
|
+
Skeleton2 as Skeleton,
|
|
6248
6256
|
Slider,
|
|
6249
6257
|
Stack,
|
|
6250
6258
|
Step,
|