@rasenganjs/mdx 1.2.0-beta.8 → 1.2.0
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 +2 -0
- package/dist/index.cjs +89 -81
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +82 -74
- package/dist/plugin.cjs +4 -0
- package/dist/plugin.js +4 -0
- package/package.json +1 -3
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -307,7 +307,9 @@ var MDXRenderer = ({
|
|
|
307
307
|
className,
|
|
308
308
|
config,
|
|
309
309
|
// TOC Extracted from the original MDX file
|
|
310
|
-
toc: originalTocData
|
|
310
|
+
toc: originalTocData,
|
|
311
|
+
// Original markdown content
|
|
312
|
+
raw
|
|
311
313
|
}) => {
|
|
312
314
|
const {
|
|
313
315
|
components = {},
|
|
@@ -387,14 +389,6 @@ var MDXRenderer = ({
|
|
|
387
389
|
);
|
|
388
390
|
};
|
|
389
391
|
|
|
390
|
-
// src/components/table.tsx
|
|
391
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
392
|
-
var Table = ({
|
|
393
|
-
children
|
|
394
|
-
}) => {
|
|
395
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "ra-table-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("table", { children }) });
|
|
396
|
-
};
|
|
397
|
-
|
|
398
392
|
// src/components/markdown.tsx
|
|
399
393
|
var import_react_markdown = __toESM(require("react-markdown"), 1);
|
|
400
394
|
var import_remark_gfm = __toESM(require("remark-gfm"), 1);
|
|
@@ -409,7 +403,7 @@ var import_react6 = __toESM(require("react"), 1);
|
|
|
409
403
|
// src/components/codeblock.tsx
|
|
410
404
|
var import_react5 = __toESM(require("react"), 1);
|
|
411
405
|
var import_server = require("react-dom/server");
|
|
412
|
-
var
|
|
406
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
413
407
|
var CodeBlock = ({
|
|
414
408
|
children = "",
|
|
415
409
|
className = "",
|
|
@@ -437,15 +431,15 @@ var CodeBlock = ({
|
|
|
437
431
|
return doc.body.textContent || "";
|
|
438
432
|
};
|
|
439
433
|
if (!language) {
|
|
440
|
-
return /* @__PURE__ */ (0,
|
|
434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SimpleBlock, { children });
|
|
441
435
|
}
|
|
442
|
-
return /* @__PURE__ */ (0,
|
|
436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
443
437
|
"div",
|
|
444
438
|
{
|
|
445
439
|
onMouseEnter: () => setHover(true),
|
|
446
440
|
onMouseLeave: () => setHover(false),
|
|
447
441
|
children: [
|
|
448
|
-
hover ? /* @__PURE__ */ (0,
|
|
442
|
+
hover ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
449
443
|
"button",
|
|
450
444
|
{
|
|
451
445
|
onClick: handleCopy,
|
|
@@ -456,7 +450,7 @@ var CodeBlock = ({
|
|
|
456
450
|
transition: "all 0.2s",
|
|
457
451
|
zIndex: 10
|
|
458
452
|
},
|
|
459
|
-
children: copied ? /* @__PURE__ */ (0,
|
|
453
|
+
children: copied ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
460
454
|
"svg",
|
|
461
455
|
{
|
|
462
456
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -466,7 +460,7 @@ var CodeBlock = ({
|
|
|
466
460
|
color: "#f0f0f0",
|
|
467
461
|
fill: "none",
|
|
468
462
|
children: [
|
|
469
|
-
/* @__PURE__ */ (0,
|
|
463
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
470
464
|
"path",
|
|
471
465
|
{
|
|
472
466
|
d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",
|
|
@@ -474,7 +468,7 @@ var CodeBlock = ({
|
|
|
474
468
|
strokeWidth: "1.5"
|
|
475
469
|
}
|
|
476
470
|
),
|
|
477
|
-
/* @__PURE__ */ (0,
|
|
471
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
478
472
|
"path",
|
|
479
473
|
{
|
|
480
474
|
d: "M8 12.5L10.5 15L16 9",
|
|
@@ -486,7 +480,7 @@ var CodeBlock = ({
|
|
|
486
480
|
)
|
|
487
481
|
]
|
|
488
482
|
}
|
|
489
|
-
) : /* @__PURE__ */ (0,
|
|
483
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
490
484
|
"svg",
|
|
491
485
|
{
|
|
492
486
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -496,7 +490,7 @@ var CodeBlock = ({
|
|
|
496
490
|
color: "#f0f0f0",
|
|
497
491
|
fill: "none",
|
|
498
492
|
children: [
|
|
499
|
-
/* @__PURE__ */ (0,
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
500
494
|
"path",
|
|
501
495
|
{
|
|
502
496
|
d: "M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",
|
|
@@ -506,7 +500,7 @@ var CodeBlock = ({
|
|
|
506
500
|
strokeLinejoin: "round"
|
|
507
501
|
}
|
|
508
502
|
),
|
|
509
|
-
/* @__PURE__ */ (0,
|
|
503
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
510
504
|
"path",
|
|
511
505
|
{
|
|
512
506
|
d: "M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",
|
|
@@ -520,7 +514,7 @@ var CodeBlock = ({
|
|
|
520
514
|
}
|
|
521
515
|
)
|
|
522
516
|
}
|
|
523
|
-
) : /* @__PURE__ */ (0,
|
|
517
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
524
518
|
"span",
|
|
525
519
|
{
|
|
526
520
|
style: {
|
|
@@ -533,7 +527,7 @@ var CodeBlock = ({
|
|
|
533
527
|
children: language
|
|
534
528
|
}
|
|
535
529
|
),
|
|
536
|
-
/* @__PURE__ */ (0,
|
|
530
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
537
531
|
"code",
|
|
538
532
|
{
|
|
539
533
|
className: `${className} code-block`,
|
|
@@ -548,11 +542,11 @@ var CodeBlock = ({
|
|
|
548
542
|
var SimpleBlock = ({
|
|
549
543
|
children
|
|
550
544
|
}) => {
|
|
551
|
-
return /* @__PURE__ */ (0,
|
|
545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("code", { className: "simple-block", children });
|
|
552
546
|
};
|
|
553
547
|
|
|
554
548
|
// src/components/codeblock2.tsx
|
|
555
|
-
var
|
|
549
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
556
550
|
var CodeBlock2 = ({
|
|
557
551
|
children = "",
|
|
558
552
|
className = "",
|
|
@@ -561,10 +555,10 @@ var CodeBlock2 = ({
|
|
|
561
555
|
const language = className.replace(/language-/, "");
|
|
562
556
|
const [hover, setHover] = import_react6.default.useState(false);
|
|
563
557
|
if (!language) {
|
|
564
|
-
return /* @__PURE__ */ (0,
|
|
558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SimpleBlock, { children });
|
|
565
559
|
}
|
|
566
560
|
console.log({ children, className, rest });
|
|
567
|
-
return /* @__PURE__ */ (0,
|
|
561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
568
562
|
import_prism_react_renderer.Highlight,
|
|
569
563
|
{
|
|
570
564
|
theme: import_prism_react_renderer.themes.oneDark,
|
|
@@ -582,14 +576,14 @@ var CodeBlock2 = ({
|
|
|
582
576
|
navigator.clipboard.writeText((children ?? "").toString().trim());
|
|
583
577
|
setCopied(true);
|
|
584
578
|
};
|
|
585
|
-
return /* @__PURE__ */ (0,
|
|
579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("figure", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
586
580
|
"pre",
|
|
587
581
|
{
|
|
588
582
|
onMouseEnter: () => setHover(true),
|
|
589
583
|
onMouseLeave: () => setHover(false),
|
|
590
584
|
"data-language": language,
|
|
591
|
-
children: /* @__PURE__ */ (0,
|
|
592
|
-
hover ? /* @__PURE__ */ (0,
|
|
585
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { children: [
|
|
586
|
+
hover ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("button", { className: "copy-button", onClick: handleCopy, children: copied ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
593
587
|
"svg",
|
|
594
588
|
{
|
|
595
589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -599,7 +593,7 @@ var CodeBlock2 = ({
|
|
|
599
593
|
color: "#f0f0f0",
|
|
600
594
|
fill: "none",
|
|
601
595
|
children: [
|
|
602
|
-
/* @__PURE__ */ (0,
|
|
596
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
603
597
|
"path",
|
|
604
598
|
{
|
|
605
599
|
d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",
|
|
@@ -607,7 +601,7 @@ var CodeBlock2 = ({
|
|
|
607
601
|
strokeWidth: "1.5"
|
|
608
602
|
}
|
|
609
603
|
),
|
|
610
|
-
/* @__PURE__ */ (0,
|
|
604
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
611
605
|
"path",
|
|
612
606
|
{
|
|
613
607
|
d: "M8 12.5L10.5 15L16 9",
|
|
@@ -619,7 +613,7 @@ var CodeBlock2 = ({
|
|
|
619
613
|
)
|
|
620
614
|
]
|
|
621
615
|
}
|
|
622
|
-
) : /* @__PURE__ */ (0,
|
|
616
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
623
617
|
"svg",
|
|
624
618
|
{
|
|
625
619
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -629,7 +623,7 @@ var CodeBlock2 = ({
|
|
|
629
623
|
color: "#f0f0f0",
|
|
630
624
|
fill: "none",
|
|
631
625
|
children: [
|
|
632
|
-
/* @__PURE__ */ (0,
|
|
626
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
633
627
|
"path",
|
|
634
628
|
{
|
|
635
629
|
d: "M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",
|
|
@@ -639,7 +633,7 @@ var CodeBlock2 = ({
|
|
|
639
633
|
strokeLinejoin: "round"
|
|
640
634
|
}
|
|
641
635
|
),
|
|
642
|
-
/* @__PURE__ */ (0,
|
|
636
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
643
637
|
"path",
|
|
644
638
|
{
|
|
645
639
|
d: "M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",
|
|
@@ -651,10 +645,10 @@ var CodeBlock2 = ({
|
|
|
651
645
|
)
|
|
652
646
|
]
|
|
653
647
|
}
|
|
654
|
-
) }) : /* @__PURE__ */ (0,
|
|
655
|
-
/* @__PURE__ */ (0,
|
|
656
|
-
/* @__PURE__ */ (0,
|
|
657
|
-
line.map((token, key) => /* @__PURE__ */ (0,
|
|
648
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "lang", children: language }),
|
|
649
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("code", { className: `${className2} code-block`, "data-line-numbers": true, children: tokens.map((line, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { "data-line": true, ...getLineProps({ line }), children: [
|
|
650
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: " " }),
|
|
651
|
+
line.map((token, key) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { ...getTokenProps({ token }) }, key))
|
|
658
652
|
] }, i)) })
|
|
659
653
|
] })
|
|
660
654
|
}
|
|
@@ -665,29 +659,24 @@ var CodeBlock2 = ({
|
|
|
665
659
|
};
|
|
666
660
|
|
|
667
661
|
// src/components/markdown.tsx
|
|
668
|
-
var
|
|
662
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
669
663
|
function Markdown({
|
|
670
664
|
content,
|
|
671
665
|
className,
|
|
672
666
|
overwriteStyle
|
|
673
667
|
}) {
|
|
674
|
-
return /* @__PURE__ */ (0,
|
|
668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
675
669
|
"section",
|
|
676
670
|
{
|
|
677
671
|
className: `${className} ${overwriteStyle ? "" : "rasengan-markdown-body"}`,
|
|
678
|
-
children: /* @__PURE__ */ (0,
|
|
672
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
679
673
|
import_react_markdown.default,
|
|
680
674
|
{
|
|
681
675
|
children: content,
|
|
682
676
|
remarkPlugins: [import_remark_parse.default, import_remark_gfm.default],
|
|
683
|
-
rehypePlugins: [
|
|
684
|
-
import_remark_rehype.default,
|
|
685
|
-
import_rehype_stringify.default
|
|
686
|
-
// rehypePrettyCode
|
|
687
|
-
],
|
|
677
|
+
rehypePlugins: [import_remark_rehype.default, import_rehype_stringify.default],
|
|
688
678
|
components: {
|
|
689
679
|
code: CodeBlock2,
|
|
690
|
-
table: Table,
|
|
691
680
|
h1: Heading({ variant: "h1" }),
|
|
692
681
|
h2: Heading({ variant: "h2" }),
|
|
693
682
|
h3: Heading({ variant: "h3" }),
|
|
@@ -703,11 +692,11 @@ function Markdown({
|
|
|
703
692
|
|
|
704
693
|
// src/components/icons.tsx
|
|
705
694
|
var import_lucide_react = require("lucide-react");
|
|
706
|
-
var
|
|
695
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
707
696
|
var Icons = {
|
|
708
|
-
logo: (props) => /* @__PURE__ */ (0,
|
|
709
|
-
/* @__PURE__ */ (0,
|
|
710
|
-
/* @__PURE__ */ (0,
|
|
697
|
+
logo: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("rect", { width: "256", height: "256", fill: "none" }),
|
|
699
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
711
700
|
"line",
|
|
712
701
|
{
|
|
713
702
|
x1: "208",
|
|
@@ -721,7 +710,7 @@ var Icons = {
|
|
|
721
710
|
strokeWidth: "32"
|
|
722
711
|
}
|
|
723
712
|
),
|
|
724
|
-
/* @__PURE__ */ (0,
|
|
713
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
725
714
|
"line",
|
|
726
715
|
{
|
|
727
716
|
x1: "192",
|
|
@@ -736,7 +725,7 @@ var Icons = {
|
|
|
736
725
|
}
|
|
737
726
|
)
|
|
738
727
|
] }),
|
|
739
|
-
twitter: (props) => /* @__PURE__ */ (0,
|
|
728
|
+
twitter: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
740
729
|
"svg",
|
|
741
730
|
{
|
|
742
731
|
...props,
|
|
@@ -744,26 +733,26 @@ var Icons = {
|
|
|
744
733
|
viewBox: "0 0 1200 1227",
|
|
745
734
|
width: "23",
|
|
746
735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
747
|
-
children: /* @__PURE__ */ (0,
|
|
736
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" })
|
|
748
737
|
}
|
|
749
738
|
),
|
|
750
|
-
gitHub: (props) => /* @__PURE__ */ (0,
|
|
739
|
+
gitHub: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 438.549 438.549", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
751
740
|
"path",
|
|
752
741
|
{
|
|
753
742
|
fill: "currentColor",
|
|
754
743
|
d: "M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8-33.598-19.607-70.277-29.408-110.063-29.408-39.781 0-76.472 9.804-110.063 29.408-33.596 19.605-60.192 46.204-79.8 79.8C9.803 148.168 0 184.854 0 224.63c0 47.78 13.94 90.745 41.827 128.906 27.884 38.164 63.906 64.572 108.063 79.227 5.14.954 8.945.283 11.419-1.996 2.475-2.282 3.711-5.14 3.711-8.562 0-.571-.049-5.708-.144-15.417a2549.81 2549.81 0 01-.144-25.406l-6.567 1.136c-4.187.767-9.469 1.092-15.846 1-6.374-.089-12.991-.757-19.842-1.999-6.854-1.231-13.229-4.086-19.13-8.559-5.898-4.473-10.085-10.328-12.56-17.556l-2.855-6.57c-1.903-4.374-4.899-9.233-8.992-14.559-4.093-5.331-8.232-8.945-12.419-10.848l-1.999-1.431c-1.332-.951-2.568-2.098-3.711-3.429-1.142-1.331-1.997-2.663-2.568-3.997-.572-1.335-.098-2.43 1.427-3.289 1.525-.859 4.281-1.276 8.28-1.276l5.708.853c3.807.763 8.516 3.042 14.133 6.851 5.614 3.806 10.229 8.754 13.846 14.842 4.38 7.806 9.657 13.754 15.846 17.847 6.184 4.093 12.419 6.136 18.699 6.136 6.28 0 11.704-.476 16.274-1.423 4.565-.952 8.848-2.383 12.847-4.285 1.713-12.758 6.377-22.559 13.988-29.41-10.848-1.14-20.601-2.857-29.264-5.14-8.658-2.286-17.605-5.996-26.835-11.14-9.235-5.137-16.896-11.516-22.985-19.126-6.09-7.614-11.088-17.61-14.987-29.979-3.901-12.374-5.852-26.648-5.852-42.826 0-23.035 7.52-42.637 22.557-58.817-7.044-17.318-6.379-36.732 1.997-58.24 5.52-1.715 13.706-.428 24.554 3.853 10.85 4.283 18.794 7.952 23.84 10.994 5.046 3.041 9.089 5.618 12.135 7.708 17.705-4.947 35.976-7.421 54.818-7.421s37.117 2.474 54.823 7.421l10.849-6.849c7.419-4.57 16.18-8.758 26.262-12.565 10.088-3.805 17.802-4.853 23.134-3.138 8.562 21.509 9.325 40.922 2.279 58.24 15.036 16.18 22.559 35.787 22.559 58.817 0 16.178-1.958 30.497-5.853 42.966-3.9 12.471-8.941 22.457-15.125 29.979-6.191 7.521-13.901 13.85-23.131 18.986-9.232 5.14-18.182 8.85-26.84 11.136-8.662 2.286-18.415 4.004-29.263 5.146 9.894 8.562 14.842 22.077 14.842 40.539v60.237c0 3.422 1.19 6.279 3.572 8.562 2.379 2.279 6.136 2.95 11.276 1.995 44.163-14.653 80.185-41.062 108.068-79.226 27.88-38.161 41.825-81.126 41.825-128.906-.01-39.771-9.818-76.454-29.414-110.049z"
|
|
755
744
|
}
|
|
756
745
|
) }),
|
|
757
|
-
radix: (props) => /* @__PURE__ */ (0,
|
|
758
|
-
/* @__PURE__ */ (0,
|
|
746
|
+
radix: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("svg", { viewBox: "0 0 25 25", fill: "none", ...props, children: [
|
|
747
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
759
748
|
"path",
|
|
760
749
|
{
|
|
761
750
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
762
751
|
fill: "currentcolor"
|
|
763
752
|
}
|
|
764
753
|
),
|
|
765
|
-
/* @__PURE__ */ (0,
|
|
766
|
-
/* @__PURE__ */ (0,
|
|
754
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }),
|
|
755
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
767
756
|
"path",
|
|
768
757
|
{
|
|
769
758
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
@@ -771,64 +760,64 @@ var Icons = {
|
|
|
771
760
|
}
|
|
772
761
|
)
|
|
773
762
|
] }),
|
|
774
|
-
aria: (props) => /* @__PURE__ */ (0,
|
|
775
|
-
npm: (props) => /* @__PURE__ */ (0,
|
|
763
|
+
aria: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" }) }),
|
|
764
|
+
npm: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
776
765
|
"path",
|
|
777
766
|
{
|
|
778
767
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
779
768
|
fill: "currentColor"
|
|
780
769
|
}
|
|
781
770
|
) }),
|
|
782
|
-
yarn: (props) => /* @__PURE__ */ (0,
|
|
771
|
+
yarn: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
783
772
|
"path",
|
|
784
773
|
{
|
|
785
774
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
786
775
|
fill: "currentColor"
|
|
787
776
|
}
|
|
788
777
|
) }),
|
|
789
|
-
pnpm: (props) => /* @__PURE__ */ (0,
|
|
778
|
+
pnpm: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
790
779
|
"path",
|
|
791
780
|
{
|
|
792
781
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
793
782
|
fill: "currentColor"
|
|
794
783
|
}
|
|
795
784
|
) }),
|
|
796
|
-
react: (props) => /* @__PURE__ */ (0,
|
|
785
|
+
react: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
797
786
|
"path",
|
|
798
787
|
{
|
|
799
788
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
800
789
|
fill: "currentColor"
|
|
801
790
|
}
|
|
802
791
|
) }),
|
|
803
|
-
tailwind: (props) => /* @__PURE__ */ (0,
|
|
792
|
+
tailwind: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
804
793
|
"path",
|
|
805
794
|
{
|
|
806
795
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
807
796
|
fill: "currentColor"
|
|
808
797
|
}
|
|
809
798
|
) }),
|
|
810
|
-
google: (props) => /* @__PURE__ */ (0,
|
|
799
|
+
google: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
811
800
|
"path",
|
|
812
801
|
{
|
|
813
802
|
fill: "currentColor",
|
|
814
803
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
815
804
|
}
|
|
816
805
|
) }),
|
|
817
|
-
apple: (props) => /* @__PURE__ */ (0,
|
|
806
|
+
apple: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
818
807
|
"path",
|
|
819
808
|
{
|
|
820
809
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
821
810
|
fill: "currentColor"
|
|
822
811
|
}
|
|
823
812
|
) }),
|
|
824
|
-
paypal: (props) => /* @__PURE__ */ (0,
|
|
813
|
+
paypal: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
825
814
|
"path",
|
|
826
815
|
{
|
|
827
816
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
828
817
|
fill: "currentColor"
|
|
829
818
|
}
|
|
830
819
|
) }),
|
|
831
|
-
spinner: (props) => /* @__PURE__ */ (0,
|
|
820
|
+
spinner: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
832
821
|
"svg",
|
|
833
822
|
{
|
|
834
823
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -841,20 +830,38 @@ var Icons = {
|
|
|
841
830
|
strokeLinecap: "round",
|
|
842
831
|
strokeLinejoin: "round",
|
|
843
832
|
...props,
|
|
844
|
-
children: /* @__PURE__ */ (0,
|
|
833
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
845
834
|
}
|
|
846
835
|
),
|
|
847
|
-
json: (props) => /* @__PURE__ */ (0,
|
|
836
|
+
json: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
848
837
|
"path",
|
|
849
838
|
{
|
|
850
839
|
fill: "currentColor",
|
|
851
840
|
d: "M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 0 0 3.146-.863 12.404 12.404 0 0 0 3.793-2.542 11.977 11.977 0 0 0 2.44-3.427 11.794 11.794 0 0 0 1.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 0 0-.793-2.788 11.197 11.197 0 0 0-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 0 0-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 0 1 1.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 0 1-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 0 1-.748-.258 4.692 4.692 0 0 1-.779-.45 6.08 6.08 0 0 1-1.244-1.105 6.507 6.507 0 0 1-1.049-1.747 7.366 7.366 0 0 1-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 0 1 1.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 0 0-1.441-.12 4.963 4.963 0 0 0-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 0 0-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 0 0 1.348 2.173 8.14 8.14 0 0 0 3.132 2.23 7.934 7.934 0 0 0 2.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 0 1-.45-.228 8.5 8.5 0 0 1-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 0 1-.495-3.172 12.14 12.14 0 0 1 .046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 0 1 1.783-2.053 6.23 6.23 0 0 1 1.633-.9 5.363 5.363 0 0 1 3.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 0 1 2.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 0 1-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 0 0 .509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 0 0-.555-.719 9.868 9.868 0 0 0-1.063-1.034 8.477 8.477 0 0 0-1.363-.915 9.927 9.927 0 0 0-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 0 0-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 0 0 .238 9.801a11.81 11.81 0 0 0-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"
|
|
852
841
|
}
|
|
853
842
|
) }),
|
|
854
|
-
ts: (props) => /* @__PURE__ */ (0,
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
843
|
+
ts: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
844
|
+
"path",
|
|
845
|
+
{
|
|
846
|
+
d: "M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",
|
|
847
|
+
fill: "currentColor"
|
|
848
|
+
}
|
|
849
|
+
) }),
|
|
850
|
+
css: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
851
|
+
"path",
|
|
852
|
+
{
|
|
853
|
+
d: "M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63",
|
|
854
|
+
fill: "currentColor"
|
|
855
|
+
}
|
|
856
|
+
) }),
|
|
857
|
+
bash: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
858
|
+
"path",
|
|
859
|
+
{
|
|
860
|
+
d: "M21.038 4.9 13.461.402a2.86 2.86 0 0 0-2.923.001L2.961 4.9A3.023 3.023 0 0 0 1.5 7.503v8.995c0 1.073.557 2.066 1.462 2.603l7.577 4.497a2.86 2.86 0 0 0 2.922 0l7.577-4.497a3.023 3.023 0 0 0 1.462-2.603V7.503A3.021 3.021 0 0 0 21.038 4.9zM15.17 18.946l.013.646c.001.078-.05.167-.111.198l-.383.22c-.061.031-.111-.007-.112-.085l-.007-.635c-.328.136-.66.169-.872.084-.04-.016-.057-.075-.041-.142l.139-.584a.24.24 0 0 1 .069-.121.163.163 0 0 1 .036-.026c.022-.011.043-.014.062-.006.229.077.521.041.802-.101.357-.181.596-.545.592-.907-.003-.328-.181-.465-.613-.468-.55.001-1.064-.107-1.072-.917-.007-.667.34-1.361.889-1.8l-.007-.652c-.001-.08.048-.168.111-.2l.37-.236c.061-.031.111.007.112.087l.006.653c.273-.109.511-.138.726-.088.047.012.067.076.048.151l-.144.578a.255.255 0 0 1-.065.116.161.161 0 0 1-.038.028.083.083 0 0 1-.057.009c-.098-.022-.332-.073-.699.113-.385.195-.52.53-.517.778.003.297.155.387.681.396.7.012 1.003.318 1.01 1.023.007.689-.362 1.433-.928 1.888zm3.973-1.087c0 .06-.008.116-.058.145l-1.916 1.164c-.05.029-.09.004-.09-.056v-.494c0-.06.037-.093.087-.122l1.887-1.129c.05-.029.09-.004.09.056v.436zm1.316-11.062-7.168 4.427c-.894.523-1.553 1.109-1.553 2.187v8.833c0 .645.26 1.063.66 1.184a2.304 2.304 0 0 1-.398.039c-.42 0-.833-.114-1.197-.33L3.226 18.64a2.494 2.494 0 0 1-1.201-2.142V7.503c0-.881.46-1.702 1.201-2.142L10.803.863a2.342 2.342 0 0 1 2.394 0l7.577 4.498a2.479 2.479 0 0 1 1.164 1.732c-.252-.536-.818-.682-1.479-.296z",
|
|
861
|
+
fill: "currentColor"
|
|
862
|
+
}
|
|
863
|
+
) }),
|
|
864
|
+
v0: (props) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
|
|
858
865
|
"svg",
|
|
859
866
|
{
|
|
860
867
|
viewBox: "0 0 40 20",
|
|
@@ -862,14 +869,14 @@ var Icons = {
|
|
|
862
869
|
xmlns: "http://www.w3.org/2000/svg",
|
|
863
870
|
...props,
|
|
864
871
|
children: [
|
|
865
|
-
/* @__PURE__ */ (0,
|
|
872
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
866
873
|
"path",
|
|
867
874
|
{
|
|
868
875
|
d: "M23.3919 0H32.9188C36.7819 0 39.9136 3.13165 39.9136 6.99475V16.0805H36.0006V6.99475C36.0006 6.90167 35.9969 6.80925 35.9898 6.71766L26.4628 16.079C26.4949 16.08 26.5272 16.0805 26.5595 16.0805H36.0006V19.7762H26.5595C22.6964 19.7762 19.4788 16.6139 19.4788 12.7508V3.68923H23.3919V12.7508C23.3919 12.9253 23.4054 13.0977 23.4316 13.2668L33.1682 3.6995C33.0861 3.6927 33.003 3.68923 32.9188 3.68923H23.3919V0Z",
|
|
869
876
|
fill: "currentColor"
|
|
870
877
|
}
|
|
871
878
|
),
|
|
872
|
-
/* @__PURE__ */ (0,
|
|
879
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
873
880
|
"path",
|
|
874
881
|
{
|
|
875
882
|
d: "M13.7688 19.0956L0 3.68759H5.53933L13.6231 12.7337V3.68759H17.7535V17.5746C17.7535 19.6705 15.1654 20.6584 13.7688 19.0956Z",
|
|
@@ -883,21 +890,22 @@ var Icons = {
|
|
|
883
890
|
function getIconForLanguageExtension(language) {
|
|
884
891
|
switch (language) {
|
|
885
892
|
case "json":
|
|
886
|
-
return /* @__PURE__ */ (0,
|
|
893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icons.json, {});
|
|
887
894
|
case "bash":
|
|
888
895
|
case "sh":
|
|
889
896
|
case "shell":
|
|
890
|
-
return /* @__PURE__ */ (0,
|
|
897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icons.bash, {});
|
|
891
898
|
case "css":
|
|
892
|
-
return /* @__PURE__ */ (0,
|
|
899
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icons.css, { className: "fill-foreground" });
|
|
893
900
|
case "js":
|
|
901
|
+
case "javascript":
|
|
894
902
|
case "jsx":
|
|
895
903
|
case "ts":
|
|
896
904
|
case "tsx":
|
|
897
905
|
case "typescript":
|
|
898
|
-
return /* @__PURE__ */ (0,
|
|
906
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Icons.ts, { className: "fill-foreground" });
|
|
899
907
|
default:
|
|
900
|
-
return /* @__PURE__ */ (0,
|
|
908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react.FileIcon, {});
|
|
901
909
|
}
|
|
902
910
|
}
|
|
903
911
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.d.cts
CHANGED
|
@@ -39,6 +39,7 @@ type MDXRendererProps = {
|
|
|
39
39
|
className?: string;
|
|
40
40
|
config?: MDXConfigProps;
|
|
41
41
|
toc?: Array<TOCItem>;
|
|
42
|
+
raw?: string;
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
45
|
* A React functional component that represents a simple block element.
|
|
@@ -88,7 +89,7 @@ declare function defineMDXConfig(config: MDXConfigProps): MDXConfigProps;
|
|
|
88
89
|
* @param {string} [props.className] - An optional CSS class name to apply to the rendered section.
|
|
89
90
|
* @returns {React.ReactElement} - The rendered MDX content with the custom code block component.
|
|
90
91
|
*/
|
|
91
|
-
declare const MDXRenderer: ({ children: MDXContent, className, config, toc: originalTocData, }: MDXRendererProps) => React$1.ReactElement;
|
|
92
|
+
declare const MDXRenderer: ({ children: MDXContent, className, config, toc: originalTocData, raw, }: MDXRendererProps) => React$1.ReactElement;
|
|
92
93
|
|
|
93
94
|
declare function Markdown({ content, className, overwriteStyle, }: {
|
|
94
95
|
content: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ type MDXRendererProps = {
|
|
|
39
39
|
className?: string;
|
|
40
40
|
config?: MDXConfigProps;
|
|
41
41
|
toc?: Array<TOCItem>;
|
|
42
|
+
raw?: string;
|
|
42
43
|
};
|
|
43
44
|
/**
|
|
44
45
|
* A React functional component that represents a simple block element.
|
|
@@ -88,7 +89,7 @@ declare function defineMDXConfig(config: MDXConfigProps): MDXConfigProps;
|
|
|
88
89
|
* @param {string} [props.className] - An optional CSS class name to apply to the rendered section.
|
|
89
90
|
* @returns {React.ReactElement} - The rendered MDX content with the custom code block component.
|
|
90
91
|
*/
|
|
91
|
-
declare const MDXRenderer: ({ children: MDXContent, className, config, toc: originalTocData, }: MDXRendererProps) => React$1.ReactElement;
|
|
92
|
+
declare const MDXRenderer: ({ children: MDXContent, className, config, toc: originalTocData, raw, }: MDXRendererProps) => React$1.ReactElement;
|
|
92
93
|
|
|
93
94
|
declare function Markdown({ content, className, overwriteStyle, }: {
|
|
94
95
|
content: string;
|
package/dist/index.js
CHANGED
|
@@ -184,7 +184,9 @@ var MDXRenderer = ({
|
|
|
184
184
|
className,
|
|
185
185
|
config,
|
|
186
186
|
// TOC Extracted from the original MDX file
|
|
187
|
-
toc: originalTocData
|
|
187
|
+
toc: originalTocData,
|
|
188
|
+
// Original markdown content
|
|
189
|
+
raw
|
|
188
190
|
}) => {
|
|
189
191
|
const {
|
|
190
192
|
components = {},
|
|
@@ -264,14 +266,6 @@ var MDXRenderer = ({
|
|
|
264
266
|
);
|
|
265
267
|
};
|
|
266
268
|
|
|
267
|
-
// src/components/table.tsx
|
|
268
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
269
|
-
var Table = ({
|
|
270
|
-
children
|
|
271
|
-
}) => {
|
|
272
|
-
return /* @__PURE__ */ jsx5("div", { className: "ra-table-wrapper", children: /* @__PURE__ */ jsx5("table", { children }) });
|
|
273
|
-
};
|
|
274
|
-
|
|
275
269
|
// src/components/markdown.tsx
|
|
276
270
|
import MarkdownComponent from "react-markdown";
|
|
277
271
|
import remarkGfm from "remark-gfm";
|
|
@@ -286,7 +280,7 @@ import React3 from "react";
|
|
|
286
280
|
// src/components/codeblock.tsx
|
|
287
281
|
import React2 from "react";
|
|
288
282
|
import { renderToString } from "react-dom/server";
|
|
289
|
-
import { jsx as
|
|
283
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
290
284
|
var CodeBlock = ({
|
|
291
285
|
children = "",
|
|
292
286
|
className = "",
|
|
@@ -314,7 +308,7 @@ var CodeBlock = ({
|
|
|
314
308
|
return doc.body.textContent || "";
|
|
315
309
|
};
|
|
316
310
|
if (!language) {
|
|
317
|
-
return /* @__PURE__ */
|
|
311
|
+
return /* @__PURE__ */ jsx5(SimpleBlock, { children });
|
|
318
312
|
}
|
|
319
313
|
return /* @__PURE__ */ jsxs4(
|
|
320
314
|
"div",
|
|
@@ -322,7 +316,7 @@ var CodeBlock = ({
|
|
|
322
316
|
onMouseEnter: () => setHover(true),
|
|
323
317
|
onMouseLeave: () => setHover(false),
|
|
324
318
|
children: [
|
|
325
|
-
hover ? /* @__PURE__ */
|
|
319
|
+
hover ? /* @__PURE__ */ jsx5(
|
|
326
320
|
"button",
|
|
327
321
|
{
|
|
328
322
|
onClick: handleCopy,
|
|
@@ -343,7 +337,7 @@ var CodeBlock = ({
|
|
|
343
337
|
color: "#f0f0f0",
|
|
344
338
|
fill: "none",
|
|
345
339
|
children: [
|
|
346
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ jsx5(
|
|
347
341
|
"path",
|
|
348
342
|
{
|
|
349
343
|
d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",
|
|
@@ -351,7 +345,7 @@ var CodeBlock = ({
|
|
|
351
345
|
strokeWidth: "1.5"
|
|
352
346
|
}
|
|
353
347
|
),
|
|
354
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ jsx5(
|
|
355
349
|
"path",
|
|
356
350
|
{
|
|
357
351
|
d: "M8 12.5L10.5 15L16 9",
|
|
@@ -373,7 +367,7 @@ var CodeBlock = ({
|
|
|
373
367
|
color: "#f0f0f0",
|
|
374
368
|
fill: "none",
|
|
375
369
|
children: [
|
|
376
|
-
/* @__PURE__ */
|
|
370
|
+
/* @__PURE__ */ jsx5(
|
|
377
371
|
"path",
|
|
378
372
|
{
|
|
379
373
|
d: "M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",
|
|
@@ -383,7 +377,7 @@ var CodeBlock = ({
|
|
|
383
377
|
strokeLinejoin: "round"
|
|
384
378
|
}
|
|
385
379
|
),
|
|
386
|
-
/* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ jsx5(
|
|
387
381
|
"path",
|
|
388
382
|
{
|
|
389
383
|
d: "M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",
|
|
@@ -397,7 +391,7 @@ var CodeBlock = ({
|
|
|
397
391
|
}
|
|
398
392
|
)
|
|
399
393
|
}
|
|
400
|
-
) : /* @__PURE__ */
|
|
394
|
+
) : /* @__PURE__ */ jsx5(
|
|
401
395
|
"span",
|
|
402
396
|
{
|
|
403
397
|
style: {
|
|
@@ -410,7 +404,7 @@ var CodeBlock = ({
|
|
|
410
404
|
children: language
|
|
411
405
|
}
|
|
412
406
|
),
|
|
413
|
-
/* @__PURE__ */
|
|
407
|
+
/* @__PURE__ */ jsx5(
|
|
414
408
|
"code",
|
|
415
409
|
{
|
|
416
410
|
className: `${className} code-block`,
|
|
@@ -425,11 +419,11 @@ var CodeBlock = ({
|
|
|
425
419
|
var SimpleBlock = ({
|
|
426
420
|
children
|
|
427
421
|
}) => {
|
|
428
|
-
return /* @__PURE__ */
|
|
422
|
+
return /* @__PURE__ */ jsx5("code", { className: "simple-block", children });
|
|
429
423
|
};
|
|
430
424
|
|
|
431
425
|
// src/components/codeblock2.tsx
|
|
432
|
-
import { jsx as
|
|
426
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
433
427
|
var CodeBlock2 = ({
|
|
434
428
|
children = "",
|
|
435
429
|
className = "",
|
|
@@ -438,10 +432,10 @@ var CodeBlock2 = ({
|
|
|
438
432
|
const language = className.replace(/language-/, "");
|
|
439
433
|
const [hover, setHover] = React3.useState(false);
|
|
440
434
|
if (!language) {
|
|
441
|
-
return /* @__PURE__ */
|
|
435
|
+
return /* @__PURE__ */ jsx6(SimpleBlock, { children });
|
|
442
436
|
}
|
|
443
437
|
console.log({ children, className, rest });
|
|
444
|
-
return /* @__PURE__ */
|
|
438
|
+
return /* @__PURE__ */ jsx6(
|
|
445
439
|
Highlight,
|
|
446
440
|
{
|
|
447
441
|
theme: themes.oneDark,
|
|
@@ -459,14 +453,14 @@ var CodeBlock2 = ({
|
|
|
459
453
|
navigator.clipboard.writeText((children ?? "").toString().trim());
|
|
460
454
|
setCopied(true);
|
|
461
455
|
};
|
|
462
|
-
return /* @__PURE__ */
|
|
456
|
+
return /* @__PURE__ */ jsx6("figure", { children: /* @__PURE__ */ jsx6(
|
|
463
457
|
"pre",
|
|
464
458
|
{
|
|
465
459
|
onMouseEnter: () => setHover(true),
|
|
466
460
|
onMouseLeave: () => setHover(false),
|
|
467
461
|
"data-language": language,
|
|
468
462
|
children: /* @__PURE__ */ jsxs5("div", { children: [
|
|
469
|
-
hover ? /* @__PURE__ */
|
|
463
|
+
hover ? /* @__PURE__ */ jsx6("button", { className: "copy-button", onClick: handleCopy, children: copied ? /* @__PURE__ */ jsxs5(
|
|
470
464
|
"svg",
|
|
471
465
|
{
|
|
472
466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -476,7 +470,7 @@ var CodeBlock2 = ({
|
|
|
476
470
|
color: "#f0f0f0",
|
|
477
471
|
fill: "none",
|
|
478
472
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
473
|
+
/* @__PURE__ */ jsx6(
|
|
480
474
|
"path",
|
|
481
475
|
{
|
|
482
476
|
d: "M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",
|
|
@@ -484,7 +478,7 @@ var CodeBlock2 = ({
|
|
|
484
478
|
strokeWidth: "1.5"
|
|
485
479
|
}
|
|
486
480
|
),
|
|
487
|
-
/* @__PURE__ */
|
|
481
|
+
/* @__PURE__ */ jsx6(
|
|
488
482
|
"path",
|
|
489
483
|
{
|
|
490
484
|
d: "M8 12.5L10.5 15L16 9",
|
|
@@ -506,7 +500,7 @@ var CodeBlock2 = ({
|
|
|
506
500
|
color: "#f0f0f0",
|
|
507
501
|
fill: "none",
|
|
508
502
|
children: [
|
|
509
|
-
/* @__PURE__ */
|
|
503
|
+
/* @__PURE__ */ jsx6(
|
|
510
504
|
"path",
|
|
511
505
|
{
|
|
512
506
|
d: "M9 15C9 12.1716 9 10.7574 9.87868 9.87868C10.7574 9 12.1716 9 15 9L16 9C18.8284 9 20.2426 9 21.1213 9.87868C22 10.7574 22 12.1716 22 15V16C22 18.8284 22 20.2426 21.1213 21.1213C20.2426 22 18.8284 22 16 22H15C12.1716 22 10.7574 22 9.87868 21.1213C9 20.2426 9 18.8284 9 16L9 15Z",
|
|
@@ -516,7 +510,7 @@ var CodeBlock2 = ({
|
|
|
516
510
|
strokeLinejoin: "round"
|
|
517
511
|
}
|
|
518
512
|
),
|
|
519
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ jsx6(
|
|
520
514
|
"path",
|
|
521
515
|
{
|
|
522
516
|
d: "M16.9999 9C16.9975 6.04291 16.9528 4.51121 16.092 3.46243C15.9258 3.25989 15.7401 3.07418 15.5376 2.90796C14.4312 2 12.7875 2 9.5 2C6.21252 2 4.56878 2 3.46243 2.90796C3.25989 3.07417 3.07418 3.25989 2.90796 3.46243C2 4.56878 2 6.21252 2 9.5C2 12.7875 2 14.4312 2.90796 15.5376C3.07417 15.7401 3.25989 15.9258 3.46243 16.092C4.51121 16.9528 6.04291 16.9975 9 16.9999",
|
|
@@ -528,10 +522,10 @@ var CodeBlock2 = ({
|
|
|
528
522
|
)
|
|
529
523
|
]
|
|
530
524
|
}
|
|
531
|
-
) }) : /* @__PURE__ */
|
|
532
|
-
/* @__PURE__ */
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
line.map((token, key) => /* @__PURE__ */
|
|
525
|
+
) }) : /* @__PURE__ */ jsx6("span", { className: "lang", children: language }),
|
|
526
|
+
/* @__PURE__ */ jsx6("code", { className: `${className2} code-block`, "data-line-numbers": true, children: tokens.map((line, i) => /* @__PURE__ */ jsxs5("span", { "data-line": true, ...getLineProps({ line }), children: [
|
|
527
|
+
/* @__PURE__ */ jsx6("span", { children: " " }),
|
|
528
|
+
line.map((token, key) => /* @__PURE__ */ jsx6("span", { ...getTokenProps({ token }) }, key))
|
|
535
529
|
] }, i)) })
|
|
536
530
|
] })
|
|
537
531
|
}
|
|
@@ -542,29 +536,24 @@ var CodeBlock2 = ({
|
|
|
542
536
|
};
|
|
543
537
|
|
|
544
538
|
// src/components/markdown.tsx
|
|
545
|
-
import { jsx as
|
|
539
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
546
540
|
function Markdown({
|
|
547
541
|
content,
|
|
548
542
|
className,
|
|
549
543
|
overwriteStyle
|
|
550
544
|
}) {
|
|
551
|
-
return /* @__PURE__ */
|
|
545
|
+
return /* @__PURE__ */ jsx7(
|
|
552
546
|
"section",
|
|
553
547
|
{
|
|
554
548
|
className: `${className} ${overwriteStyle ? "" : "rasengan-markdown-body"}`,
|
|
555
|
-
children: /* @__PURE__ */
|
|
549
|
+
children: /* @__PURE__ */ jsx7(
|
|
556
550
|
MarkdownComponent,
|
|
557
551
|
{
|
|
558
552
|
children: content,
|
|
559
553
|
remarkPlugins: [remarkParse, remarkGfm],
|
|
560
|
-
rehypePlugins: [
|
|
561
|
-
remarkRehype,
|
|
562
|
-
rehypeStringify
|
|
563
|
-
// rehypePrettyCode
|
|
564
|
-
],
|
|
554
|
+
rehypePlugins: [remarkRehype, rehypeStringify],
|
|
565
555
|
components: {
|
|
566
556
|
code: CodeBlock2,
|
|
567
|
-
table: Table,
|
|
568
557
|
h1: Heading({ variant: "h1" }),
|
|
569
558
|
h2: Heading({ variant: "h2" }),
|
|
570
559
|
h3: Heading({ variant: "h3" }),
|
|
@@ -579,12 +568,12 @@ function Markdown({
|
|
|
579
568
|
}
|
|
580
569
|
|
|
581
570
|
// src/components/icons.tsx
|
|
582
|
-
import { FileIcon
|
|
583
|
-
import { jsx as
|
|
571
|
+
import { FileIcon } from "lucide-react";
|
|
572
|
+
import { jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
584
573
|
var Icons = {
|
|
585
574
|
logo: (props) => /* @__PURE__ */ jsxs6("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ...props, children: [
|
|
586
|
-
/* @__PURE__ */
|
|
587
|
-
/* @__PURE__ */
|
|
575
|
+
/* @__PURE__ */ jsx8("rect", { width: "256", height: "256", fill: "none" }),
|
|
576
|
+
/* @__PURE__ */ jsx8(
|
|
588
577
|
"line",
|
|
589
578
|
{
|
|
590
579
|
x1: "208",
|
|
@@ -598,7 +587,7 @@ var Icons = {
|
|
|
598
587
|
strokeWidth: "32"
|
|
599
588
|
}
|
|
600
589
|
),
|
|
601
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ jsx8(
|
|
602
591
|
"line",
|
|
603
592
|
{
|
|
604
593
|
x1: "192",
|
|
@@ -613,7 +602,7 @@ var Icons = {
|
|
|
613
602
|
}
|
|
614
603
|
)
|
|
615
604
|
] }),
|
|
616
|
-
twitter: (props) => /* @__PURE__ */
|
|
605
|
+
twitter: (props) => /* @__PURE__ */ jsx8(
|
|
617
606
|
"svg",
|
|
618
607
|
{
|
|
619
608
|
...props,
|
|
@@ -621,10 +610,10 @@ var Icons = {
|
|
|
621
610
|
viewBox: "0 0 1200 1227",
|
|
622
611
|
width: "23",
|
|
623
612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
624
|
-
children: /* @__PURE__ */
|
|
613
|
+
children: /* @__PURE__ */ jsx8("path", { d: "M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" })
|
|
625
614
|
}
|
|
626
615
|
),
|
|
627
|
-
gitHub: (props) => /* @__PURE__ */
|
|
616
|
+
gitHub: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 438.549 438.549", ...props, children: /* @__PURE__ */ jsx8(
|
|
628
617
|
"path",
|
|
629
618
|
{
|
|
630
619
|
fill: "currentColor",
|
|
@@ -632,15 +621,15 @@ var Icons = {
|
|
|
632
621
|
}
|
|
633
622
|
) }),
|
|
634
623
|
radix: (props) => /* @__PURE__ */ jsxs6("svg", { viewBox: "0 0 25 25", fill: "none", ...props, children: [
|
|
635
|
-
/* @__PURE__ */
|
|
624
|
+
/* @__PURE__ */ jsx8(
|
|
636
625
|
"path",
|
|
637
626
|
{
|
|
638
627
|
d: "M12 25C7.58173 25 4 21.4183 4 17C4 12.5817 7.58173 9 12 9V25Z",
|
|
639
628
|
fill: "currentcolor"
|
|
640
629
|
}
|
|
641
630
|
),
|
|
642
|
-
/* @__PURE__ */
|
|
643
|
-
/* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ jsx8("path", { d: "M12 0H4V8H12V0Z", fill: "currentcolor" }),
|
|
632
|
+
/* @__PURE__ */ jsx8(
|
|
644
633
|
"path",
|
|
645
634
|
{
|
|
646
635
|
d: "M17 8C19.2091 8 21 6.20914 21 4C21 1.79086 19.2091 0 17 0C14.7909 0 13 1.79086 13 4C13 6.20914 14.7909 8 17 8Z",
|
|
@@ -648,64 +637,64 @@ var Icons = {
|
|
|
648
637
|
}
|
|
649
638
|
)
|
|
650
639
|
] }),
|
|
651
|
-
aria: (props) => /* @__PURE__ */
|
|
652
|
-
npm: (props) => /* @__PURE__ */
|
|
640
|
+
aria: (props) => /* @__PURE__ */ jsx8("svg", { role: "img", viewBox: "0 0 24 24", fill: "currentColor", ...props, children: /* @__PURE__ */ jsx8("path", { d: "M13.966 22.624l-1.69-4.281H8.122l3.892-9.144 5.662 13.425zM8.884 1.376H0v21.248zm15.116 0h-8.884L24 22.624Z" }) }),
|
|
641
|
+
npm: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
653
642
|
"path",
|
|
654
643
|
{
|
|
655
644
|
d: "M1.763 0C.786 0 0 .786 0 1.763v20.474C0 23.214.786 24 1.763 24h20.474c.977 0 1.763-.786 1.763-1.763V1.763C24 .786 23.214 0 22.237 0zM5.13 5.323l13.837.019-.009 13.836h-3.464l.01-10.382h-3.456L12.04 19.17H5.113z",
|
|
656
645
|
fill: "currentColor"
|
|
657
646
|
}
|
|
658
647
|
) }),
|
|
659
|
-
yarn: (props) => /* @__PURE__ */
|
|
648
|
+
yarn: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
660
649
|
"path",
|
|
661
650
|
{
|
|
662
651
|
d: "M12 0C5.375 0 0 5.375 0 12s5.375 12 12 12 12-5.375 12-12S18.625 0 12 0zm.768 4.105c.183 0 .363.053.525.157.125.083.287.185.755 1.154.31-.088.468-.042.551-.019.204.056.366.19.463.375.477.917.542 2.553.334 3.605-.241 1.232-.755 2.029-1.131 2.576.324.329.778.899 1.117 1.825.278.774.31 1.478.273 2.015a5.51 5.51 0 0 0 .602-.329c.593-.366 1.487-.917 2.553-.931.714-.009 1.269.445 1.353 1.103a1.23 1.23 0 0 1-.945 1.362c-.649.158-.95.278-1.821.843-1.232.797-2.539 1.242-3.012 1.39a1.686 1.686 0 0 1-.704.343c-.737.181-3.266.315-3.466.315h-.046c-.783 0-1.214-.241-1.45-.491-.658.329-1.51.19-2.122-.134a1.078 1.078 0 0 1-.58-1.153 1.243 1.243 0 0 1-.153-.195c-.162-.25-.528-.936-.454-1.946.056-.723.556-1.367.88-1.71a5.522 5.522 0 0 1 .408-2.256c.306-.727.885-1.348 1.32-1.737-.32-.537-.644-1.367-.329-2.21.227-.602.412-.936.82-1.08h-.005c.199-.074.389-.153.486-.259a3.418 3.418 0 0 1 2.298-1.103c.037-.093.079-.185.125-.283.31-.658.639-1.029 1.024-1.168a.94.94 0 0 1 .328-.06zm.006.7c-.507.016-1.001 1.519-1.001 1.519s-1.27-.204-2.266.871c-.199.218-.468.334-.746.44-.079.028-.176.023-.417.672-.371.991.625 2.094.625 2.094s-1.186.839-1.626 1.881c-.486 1.144-.338 2.261-.338 2.261s-.843.732-.899 1.487c-.051.663.139 1.2.343 1.515.227.343.51.176.51.176s-.561.653-.037.931c.477.25 1.283.394 1.71-.037.31-.31.371-1.001.486-1.283.028-.065.12.111.209.199.097.093.264.195.264.195s-.755.324-.445 1.066c.102.246.468.403 1.066.398.222-.005 2.664-.139 3.313-.296.375-.088.505-.283.505-.283s1.566-.431 2.998-1.357c.917-.598 1.293-.76 2.034-.936.612-.148.57-1.098-.241-1.084-.839.009-1.575.44-2.196.825-1.163.718-1.742.672-1.742.672l-.018-.032c-.079-.13.371-1.293-.134-2.678-.547-1.515-1.413-1.881-1.344-1.997.297-.5 1.038-1.297 1.334-2.78.176-.899.13-2.377-.269-3.151-.074-.144-.732.241-.732.241s-.616-1.371-.788-1.483a.271.271 0 0 0-.157-.046z",
|
|
663
652
|
fill: "currentColor"
|
|
664
653
|
}
|
|
665
654
|
) }),
|
|
666
|
-
pnpm: (props) => /* @__PURE__ */
|
|
655
|
+
pnpm: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
667
656
|
"path",
|
|
668
657
|
{
|
|
669
658
|
d: "M0 0v7.5h7.5V0zm8.25 0v7.5h7.498V0zm8.25 0v7.5H24V0zM8.25 8.25v7.5h7.498v-7.5zm8.25 0v7.5H24v-7.5zM0 16.5V24h7.5v-7.5zm8.25 0V24h7.498v-7.5zm8.25 0V24H24v-7.5z",
|
|
670
659
|
fill: "currentColor"
|
|
671
660
|
}
|
|
672
661
|
) }),
|
|
673
|
-
react: (props) => /* @__PURE__ */
|
|
662
|
+
react: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
674
663
|
"path",
|
|
675
664
|
{
|
|
676
665
|
d: "M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z",
|
|
677
666
|
fill: "currentColor"
|
|
678
667
|
}
|
|
679
668
|
) }),
|
|
680
|
-
tailwind: (props) => /* @__PURE__ */
|
|
669
|
+
tailwind: (props) => /* @__PURE__ */ jsx8("svg", { viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
681
670
|
"path",
|
|
682
671
|
{
|
|
683
672
|
d: "M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z",
|
|
684
673
|
fill: "currentColor"
|
|
685
674
|
}
|
|
686
675
|
) }),
|
|
687
|
-
google: (props) => /* @__PURE__ */
|
|
676
|
+
google: (props) => /* @__PURE__ */ jsx8("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
688
677
|
"path",
|
|
689
678
|
{
|
|
690
679
|
fill: "currentColor",
|
|
691
680
|
d: "M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"
|
|
692
681
|
}
|
|
693
682
|
) }),
|
|
694
|
-
apple: (props) => /* @__PURE__ */
|
|
683
|
+
apple: (props) => /* @__PURE__ */ jsx8("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
695
684
|
"path",
|
|
696
685
|
{
|
|
697
686
|
d: "M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701",
|
|
698
687
|
fill: "currentColor"
|
|
699
688
|
}
|
|
700
689
|
) }),
|
|
701
|
-
paypal: (props) => /* @__PURE__ */
|
|
690
|
+
paypal: (props) => /* @__PURE__ */ jsx8("svg", { role: "img", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
702
691
|
"path",
|
|
703
692
|
{
|
|
704
693
|
d: "M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z",
|
|
705
694
|
fill: "currentColor"
|
|
706
695
|
}
|
|
707
696
|
) }),
|
|
708
|
-
spinner: (props) => /* @__PURE__ */
|
|
697
|
+
spinner: (props) => /* @__PURE__ */ jsx8(
|
|
709
698
|
"svg",
|
|
710
699
|
{
|
|
711
700
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -718,19 +707,37 @@ var Icons = {
|
|
|
718
707
|
strokeLinecap: "round",
|
|
719
708
|
strokeLinejoin: "round",
|
|
720
709
|
...props,
|
|
721
|
-
children: /* @__PURE__ */
|
|
710
|
+
children: /* @__PURE__ */ jsx8("path", { d: "M21 12a9 9 0 1 1-6.219-8.56" })
|
|
722
711
|
}
|
|
723
712
|
),
|
|
724
|
-
json: (props) => /* @__PURE__ */
|
|
713
|
+
json: (props) => /* @__PURE__ */ jsx8("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
725
714
|
"path",
|
|
726
715
|
{
|
|
727
716
|
fill: "currentColor",
|
|
728
717
|
d: "M12.043 23.968c.479-.004.953-.029 1.426-.094a11.805 11.805 0 0 0 3.146-.863 12.404 12.404 0 0 0 3.793-2.542 11.977 11.977 0 0 0 2.44-3.427 11.794 11.794 0 0 0 1.02-3.476c.149-1.16.135-2.346-.045-3.499a11.96 11.96 0 0 0-.793-2.788 11.197 11.197 0 0 0-.854-1.617c-1.168-1.837-2.861-3.314-4.81-4.3a12.835 12.835 0 0 0-2.172-.87h-.005c.119.063.24.132.345.201.12.074.239.146.351.225a8.93 8.93 0 0 1 1.559 1.33c1.063 1.145 1.797 2.548 2.218 4.041.284.982.434 1.998.495 3.017.044.743.044 1.491-.047 2.229-.149 1.27-.554 2.51-1.228 3.596a7.475 7.475 0 0 1-1.903 2.084c-1.244.928-2.877 1.482-4.436 1.114a3.916 3.916 0 0 1-.748-.258 4.692 4.692 0 0 1-.779-.45 6.08 6.08 0 0 1-1.244-1.105 6.507 6.507 0 0 1-1.049-1.747 7.366 7.366 0 0 1-.494-2.54c-.03-1.273.225-2.553.854-3.67a6.43 6.43 0 0 1 1.663-1.918c.225-.178.464-.333.704-.479l.016-.007a5.121 5.121 0 0 0-1.441-.12 4.963 4.963 0 0 0-1.228.24c-.359.12-.704.27-1.019.45a6.146 6.146 0 0 0-.733.494c-.211.18-.42.36-.615.555-1.123 1.153-1.768 2.682-2.022 4.256-.15.973-.15 1.96-.091 2.95.105 1.395.391 2.787.945 4.062a8.518 8.518 0 0 0 1.348 2.173 8.14 8.14 0 0 0 3.132 2.23 7.934 7.934 0 0 0 2.113.54c.074.015.149.015.209.015zm-2.934-.398a4.102 4.102 0 0 1-.45-.228 8.5 8.5 0 0 1-2.038-1.534c-1.094-1.137-1.827-2.566-2.247-4.08a15.184 15.184 0 0 1-.495-3.172 12.14 12.14 0 0 1 .046-2.082c.135-1.257.495-2.501 1.124-3.58a6.889 6.889 0 0 1 1.783-2.053 6.23 6.23 0 0 1 1.633-.9 5.363 5.363 0 0 1 3.522-.045c.029 0 .029 0 .045.03.015.015.045.015.06.03.045.016.104.045.165.074.239.12.479.271.704.42a6.294 6.294 0 0 1 2.097 2.502c.42.914.615 1.934.631 2.938.014 1.079-.18 2.157-.645 3.146a6.42 6.42 0 0 1-2.638 2.832c.09.03.18.045.271.075.225.044.449.074.688.074 1.468.045 2.892-.66 3.94-1.647.195-.18.375-.375.54-.585.225-.27.435-.54.614-.823.239-.375.435-.75.614-1.154a8.112 8.112 0 0 0 .509-1.664c.196-1.004.211-2.022.149-3.026-.135-2.022-.673-4.045-1.842-5.724a9.054 9.054 0 0 0-.555-.719 9.868 9.868 0 0 0-1.063-1.034 8.477 8.477 0 0 0-1.363-.915 9.927 9.927 0 0 0-1.692-.598l-.3-.06c-.209-.03-.42-.044-.634-.06a8.453 8.453 0 0 0-1.015.016c-.704.045-1.412.16-2.112.337C5.799 1.227 2.863 3.566 1.3 6.67A11.834 11.834 0 0 0 .238 9.801a11.81 11.81 0 0 0-.104 3.775c.12 1.02.374 2.023.778 2.977.227.57.511 1.124.825 1.648 1.094 1.783 2.683 3.236 4.51 4.24.688.39 1.408.69 2.157.944.226.074.45.15.689.21z"
|
|
729
718
|
}
|
|
730
719
|
) }),
|
|
731
|
-
ts: (props) => /* @__PURE__ */
|
|
732
|
-
|
|
733
|
-
|
|
720
|
+
ts: (props) => /* @__PURE__ */ jsx8("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
721
|
+
"path",
|
|
722
|
+
{
|
|
723
|
+
d: "M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z",
|
|
724
|
+
fill: "currentColor"
|
|
725
|
+
}
|
|
726
|
+
) }),
|
|
727
|
+
css: (props) => /* @__PURE__ */ jsx8("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
728
|
+
"path",
|
|
729
|
+
{
|
|
730
|
+
d: "M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63",
|
|
731
|
+
fill: "currentColor"
|
|
732
|
+
}
|
|
733
|
+
) }),
|
|
734
|
+
bash: (props) => /* @__PURE__ */ jsx8("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx8(
|
|
735
|
+
"path",
|
|
736
|
+
{
|
|
737
|
+
d: "M21.038 4.9 13.461.402a2.86 2.86 0 0 0-2.923.001L2.961 4.9A3.023 3.023 0 0 0 1.5 7.503v8.995c0 1.073.557 2.066 1.462 2.603l7.577 4.497a2.86 2.86 0 0 0 2.922 0l7.577-4.497a3.023 3.023 0 0 0 1.462-2.603V7.503A3.021 3.021 0 0 0 21.038 4.9zM15.17 18.946l.013.646c.001.078-.05.167-.111.198l-.383.22c-.061.031-.111-.007-.112-.085l-.007-.635c-.328.136-.66.169-.872.084-.04-.016-.057-.075-.041-.142l.139-.584a.24.24 0 0 1 .069-.121.163.163 0 0 1 .036-.026c.022-.011.043-.014.062-.006.229.077.521.041.802-.101.357-.181.596-.545.592-.907-.003-.328-.181-.465-.613-.468-.55.001-1.064-.107-1.072-.917-.007-.667.34-1.361.889-1.8l-.007-.652c-.001-.08.048-.168.111-.2l.37-.236c.061-.031.111.007.112.087l.006.653c.273-.109.511-.138.726-.088.047.012.067.076.048.151l-.144.578a.255.255 0 0 1-.065.116.161.161 0 0 1-.038.028.083.083 0 0 1-.057.009c-.098-.022-.332-.073-.699.113-.385.195-.52.53-.517.778.003.297.155.387.681.396.7.012 1.003.318 1.01 1.023.007.689-.362 1.433-.928 1.888zm3.973-1.087c0 .06-.008.116-.058.145l-1.916 1.164c-.05.029-.09.004-.09-.056v-.494c0-.06.037-.093.087-.122l1.887-1.129c.05-.029.09-.004.09.056v.436zm1.316-11.062-7.168 4.427c-.894.523-1.553 1.109-1.553 2.187v8.833c0 .645.26 1.063.66 1.184a2.304 2.304 0 0 1-.398.039c-.42 0-.833-.114-1.197-.33L3.226 18.64a2.494 2.494 0 0 1-1.201-2.142V7.503c0-.881.46-1.702 1.201-2.142L10.803.863a2.342 2.342 0 0 1 2.394 0l7.577 4.498a2.479 2.479 0 0 1 1.164 1.732c-.252-.536-.818-.682-1.479-.296z",
|
|
738
|
+
fill: "currentColor"
|
|
739
|
+
}
|
|
740
|
+
) }),
|
|
734
741
|
v0: (props) => /* @__PURE__ */ jsxs6(
|
|
735
742
|
"svg",
|
|
736
743
|
{
|
|
@@ -739,14 +746,14 @@ var Icons = {
|
|
|
739
746
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
747
|
...props,
|
|
741
748
|
children: [
|
|
742
|
-
/* @__PURE__ */
|
|
749
|
+
/* @__PURE__ */ jsx8(
|
|
743
750
|
"path",
|
|
744
751
|
{
|
|
745
752
|
d: "M23.3919 0H32.9188C36.7819 0 39.9136 3.13165 39.9136 6.99475V16.0805H36.0006V6.99475C36.0006 6.90167 35.9969 6.80925 35.9898 6.71766L26.4628 16.079C26.4949 16.08 26.5272 16.0805 26.5595 16.0805H36.0006V19.7762H26.5595C22.6964 19.7762 19.4788 16.6139 19.4788 12.7508V3.68923H23.3919V12.7508C23.3919 12.9253 23.4054 13.0977 23.4316 13.2668L33.1682 3.6995C33.0861 3.6927 33.003 3.68923 32.9188 3.68923H23.3919V0Z",
|
|
746
753
|
fill: "currentColor"
|
|
747
754
|
}
|
|
748
755
|
),
|
|
749
|
-
/* @__PURE__ */
|
|
756
|
+
/* @__PURE__ */ jsx8(
|
|
750
757
|
"path",
|
|
751
758
|
{
|
|
752
759
|
d: "M13.7688 19.0956L0 3.68759H5.53933L13.6231 12.7337V3.68759H17.7535V17.5746C17.7535 19.6705 15.1654 20.6584 13.7688 19.0956Z",
|
|
@@ -760,21 +767,22 @@ var Icons = {
|
|
|
760
767
|
function getIconForLanguageExtension(language) {
|
|
761
768
|
switch (language) {
|
|
762
769
|
case "json":
|
|
763
|
-
return /* @__PURE__ */
|
|
770
|
+
return /* @__PURE__ */ jsx8(Icons.json, {});
|
|
764
771
|
case "bash":
|
|
765
772
|
case "sh":
|
|
766
773
|
case "shell":
|
|
767
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ jsx8(Icons.bash, {});
|
|
768
775
|
case "css":
|
|
769
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ jsx8(Icons.css, { className: "fill-foreground" });
|
|
770
777
|
case "js":
|
|
778
|
+
case "javascript":
|
|
771
779
|
case "jsx":
|
|
772
780
|
case "ts":
|
|
773
781
|
case "tsx":
|
|
774
782
|
case "typescript":
|
|
775
|
-
return /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ jsx8(Icons.ts, { className: "fill-foreground" });
|
|
776
784
|
default:
|
|
777
|
-
return /* @__PURE__ */
|
|
785
|
+
return /* @__PURE__ */ jsx8(FileIcon, {});
|
|
778
786
|
}
|
|
779
787
|
}
|
|
780
788
|
export {
|
package/dist/plugin.cjs
CHANGED
|
@@ -223,9 +223,13 @@ async function plugin(options) {
|
|
|
223
223
|
|
|
224
224
|
const metadata = ${JSON.stringify(metadata)};
|
|
225
225
|
const toc = ${isTocVisible ? JSON.stringify(toc) : void 0};
|
|
226
|
+
const raw = ${content};
|
|
226
227
|
|
|
227
228
|
|
|
229
|
+
// This object is handled by packages/rasengan itself
|
|
230
|
+
// It will turn it into a PageComponent component
|
|
228
231
|
const MDXWrapper = {
|
|
232
|
+
raw,
|
|
229
233
|
metadata,
|
|
230
234
|
toc,
|
|
231
235
|
type: "MDXPageComponent", // Helps to differentiate PageComponent from MDXPageComponent
|
package/dist/plugin.js
CHANGED
|
@@ -105,9 +105,13 @@ async function plugin(options) {
|
|
|
105
105
|
|
|
106
106
|
const metadata = ${JSON.stringify(metadata)};
|
|
107
107
|
const toc = ${isTocVisible ? JSON.stringify(toc) : void 0};
|
|
108
|
+
const raw = ${content};
|
|
108
109
|
|
|
109
110
|
|
|
111
|
+
// This object is handled by packages/rasengan itself
|
|
112
|
+
// It will turn it into a PageComponent component
|
|
110
113
|
const MDXWrapper = {
|
|
114
|
+
raw,
|
|
111
115
|
metadata,
|
|
112
116
|
toc,
|
|
113
117
|
type: "MDXPageComponent", // Helps to differentiate PageComponent from MDXPageComponent
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rasenganjs/mdx",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"description": "RasenganJS plugin for MDX support",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"gray-matter": "^4.0.3",
|
|
47
47
|
"lucide-react": "^0.477.0",
|
|
48
48
|
"micromatch": "^4.0.8",
|
|
49
|
-
"path-browserify": "^1.0.1",
|
|
50
49
|
"prism-react-renderer": "^2.4.1",
|
|
51
50
|
"react-markdown": "^10.1.0",
|
|
52
51
|
"rehype-pretty-code": "^0.14.1",
|
|
@@ -55,7 +54,6 @@
|
|
|
55
54
|
"remark-gfm": "^4.0.1",
|
|
56
55
|
"remark-parse": "^11.0.0",
|
|
57
56
|
"remark-rehype": "^11.1.2",
|
|
58
|
-
"remark-toc": "^9.0.0",
|
|
59
57
|
"unified": "^11.0.5"
|
|
60
58
|
},
|
|
61
59
|
"peerDependencies": {
|