@ceed/cds 1.2.2-next.3 → 1.2.2-next.4
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 -1
- package/dist/index.cjs +14 -16
- package/dist/index.js +15 -17
- package/framer/index.js +34 -34
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4235,7 +4235,6 @@ var import_joy41 = require("@mui/joy");
|
|
|
4235
4235
|
|
|
4236
4236
|
// src/components/Markdown/Markdown.tsx
|
|
4237
4237
|
var import_react31 = __toESM(require("react"));
|
|
4238
|
-
var import_react_markdown = __toESM(require("react-markdown"));
|
|
4239
4238
|
var import_joy42 = require("@mui/joy");
|
|
4240
4239
|
|
|
4241
4240
|
// src/libs/rehype-accent/index.ts
|
|
@@ -4276,6 +4275,7 @@ function rehypeAccent(options) {
|
|
|
4276
4275
|
}
|
|
4277
4276
|
|
|
4278
4277
|
// src/components/Markdown/Markdown.tsx
|
|
4278
|
+
var LazyReactMarkdown = (0, import_react31.lazy)(() => import("react-markdown"));
|
|
4279
4279
|
var Markdown = (props) => {
|
|
4280
4280
|
const {
|
|
4281
4281
|
color,
|
|
@@ -4297,8 +4297,8 @@ var Markdown = (props) => {
|
|
|
4297
4297
|
level: defaultLevel,
|
|
4298
4298
|
...innerProps
|
|
4299
4299
|
},
|
|
4300
|
-
/* @__PURE__ */ import_react31.default.createElement(
|
|
4301
|
-
|
|
4300
|
+
/* @__PURE__ */ import_react31.default.createElement(import_react31.Suspense, { fallback: null }, /* @__PURE__ */ import_react31.default.createElement(
|
|
4301
|
+
LazyReactMarkdown,
|
|
4302
4302
|
{
|
|
4303
4303
|
...markdownOptions,
|
|
4304
4304
|
children: content,
|
|
@@ -4308,18 +4308,16 @@ var Markdown = (props) => {
|
|
|
4308
4308
|
h2: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
4309
4309
|
h3: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
4310
4310
|
h4: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
4311
|
-
p: ({ children, node }) =>
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
);
|
|
4322
|
-
},
|
|
4311
|
+
p: ({ children, node }) => /* @__PURE__ */ import_react31.default.createElement(
|
|
4312
|
+
Typography,
|
|
4313
|
+
{
|
|
4314
|
+
color,
|
|
4315
|
+
textColor,
|
|
4316
|
+
level: defaultLevel,
|
|
4317
|
+
...node?.properties
|
|
4318
|
+
},
|
|
4319
|
+
children
|
|
4320
|
+
),
|
|
4323
4321
|
a: ({ children, href }) => /* @__PURE__ */ import_react31.default.createElement(import_joy42.Link, { href, target: defaultLinkAction }, children),
|
|
4324
4322
|
hr: () => /* @__PURE__ */ import_react31.default.createElement(Divider, null),
|
|
4325
4323
|
b: ({ children }) => /* @__PURE__ */ import_react31.default.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
@@ -4327,7 +4325,7 @@ var Markdown = (props) => {
|
|
|
4327
4325
|
...markdownOptions?.components
|
|
4328
4326
|
}
|
|
4329
4327
|
}
|
|
4330
|
-
)
|
|
4328
|
+
))
|
|
4331
4329
|
);
|
|
4332
4330
|
};
|
|
4333
4331
|
Markdown.displayName = "Markdown";
|
package/dist/index.js
CHANGED
|
@@ -4202,8 +4202,7 @@ InsetDrawer.displayName = "InsetDrawer";
|
|
|
4202
4202
|
import { Grid } from "@mui/joy";
|
|
4203
4203
|
|
|
4204
4204
|
// src/components/Markdown/Markdown.tsx
|
|
4205
|
-
import React29 from "react";
|
|
4206
|
-
import ReactMarkdown from "react-markdown";
|
|
4205
|
+
import React29, { lazy, Suspense } from "react";
|
|
4207
4206
|
import { Link as Link2 } from "@mui/joy";
|
|
4208
4207
|
|
|
4209
4208
|
// src/libs/rehype-accent/index.ts
|
|
@@ -4244,6 +4243,7 @@ function rehypeAccent(options) {
|
|
|
4244
4243
|
}
|
|
4245
4244
|
|
|
4246
4245
|
// src/components/Markdown/Markdown.tsx
|
|
4246
|
+
var LazyReactMarkdown = lazy(() => import("react-markdown"));
|
|
4247
4247
|
var Markdown = (props) => {
|
|
4248
4248
|
const {
|
|
4249
4249
|
color,
|
|
@@ -4265,8 +4265,8 @@ var Markdown = (props) => {
|
|
|
4265
4265
|
level: defaultLevel,
|
|
4266
4266
|
...innerProps
|
|
4267
4267
|
},
|
|
4268
|
-
/* @__PURE__ */ React29.createElement(
|
|
4269
|
-
|
|
4268
|
+
/* @__PURE__ */ React29.createElement(Suspense, { fallback: null }, /* @__PURE__ */ React29.createElement(
|
|
4269
|
+
LazyReactMarkdown,
|
|
4270
4270
|
{
|
|
4271
4271
|
...markdownOptions,
|
|
4272
4272
|
children: content,
|
|
@@ -4276,18 +4276,16 @@ var Markdown = (props) => {
|
|
|
4276
4276
|
h2: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h2" }, children),
|
|
4277
4277
|
h3: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h3" }, children),
|
|
4278
4278
|
h4: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { color, textColor, level: "h4" }, children),
|
|
4279
|
-
p: ({ children, node }) =>
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
);
|
|
4290
|
-
},
|
|
4279
|
+
p: ({ children, node }) => /* @__PURE__ */ React29.createElement(
|
|
4280
|
+
Typography,
|
|
4281
|
+
{
|
|
4282
|
+
color,
|
|
4283
|
+
textColor,
|
|
4284
|
+
level: defaultLevel,
|
|
4285
|
+
...node?.properties
|
|
4286
|
+
},
|
|
4287
|
+
children
|
|
4288
|
+
),
|
|
4291
4289
|
a: ({ children, href }) => /* @__PURE__ */ React29.createElement(Link2, { href, target: defaultLinkAction }, children),
|
|
4292
4290
|
hr: () => /* @__PURE__ */ React29.createElement(Divider, null),
|
|
4293
4291
|
b: ({ children }) => /* @__PURE__ */ React29.createElement(Typography, { fontWeight: boldFontWeight }, children),
|
|
@@ -4295,7 +4293,7 @@ var Markdown = (props) => {
|
|
|
4295
4293
|
...markdownOptions?.components
|
|
4296
4294
|
}
|
|
4297
4295
|
}
|
|
4298
|
-
)
|
|
4296
|
+
))
|
|
4299
4297
|
);
|
|
4300
4298
|
};
|
|
4301
4299
|
Markdown.displayName = "Markdown";
|