robindoc 0.0.0-experimental-d3b6410 → 0.0.0-experimental-7bcc2d8
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import e,{useState as r,useRef as t,useCallback as n,useEffect as o}from"react";import{HeadingsContext as l,CurrentHeadingContext as c}from"./context.js";const i=({children:i})=>{const[s,
|
|
2
|
+
import e,{useState as r,useRef as t,useCallback as n,useEffect as o}from"react";import{HeadingsContext as l,CurrentHeadingContext as c}from"./context.js";const i=({children:i})=>{const[s,u]=r(null),d=t([]),m=n(e=>{if(e.scrollTop+20>e.scrollHeight-window.innerHeight)u(d.current.length-1);else{const r=d.current.findLastIndex(r=>r.offsetTop<e.scrollTop+100);e.scrollTop+100>e.scrollHeight-window.innerHeight&&r<d.current.length-2?u(d.current.length-2):u(r)}},[]);return o(()=>{let e=!1;const r=document.querySelector(".r-root");if(!r)return;const t=r===document.documentElement?window:r,n=()=>{!e&&window.innerWidth>1080&&(e=!0,setTimeout(()=>{m(r),e=!1},100))};return m(r),t.addEventListener("scroll",n),()=>{t.removeEventListener("scroll",n)}},[]),e.createElement(l.Provider,{value:d.current},e.createElement(c.Provider,{value:s},i))};export{i as ContentsProvider};
|
|
3
3
|
//# sourceMappingURL=provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sources":["../../../../src/components/contexts/contents/provider.tsx"],"sourcesContent":["\"use client\";\n\nimport React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CurrentHeadingContext, HeadingsContext } from \"./context\";\n\nexport const ContentsProvider: React.FC<React.PropsWithChildren> = ({ children }) => {\n const [activeIndex, setActiveIndex] = useState<number | null>(null);\n const headings = useRef<HTMLHeadingElement[]>([]);\n\n const updateTargetSection = useCallback((rootElement: HTMLElement) => {\n if (rootElement.scrollTop + 20 > rootElement.scrollHeight - window.innerHeight) {\n setActiveIndex(headings.current.length - 1);\n } else {\n const headingIndex = headings.current.findLastIndex((el) => el.offsetTop < rootElement.scrollTop + 100);\n if (\n rootElement.scrollTop + 100 > rootElement.scrollHeight - window.innerHeight &&\n headingIndex < headings.current.length - 2\n ) {\n setActiveIndex(headings.current.length - 2);\n } else {\n setActiveIndex(headingIndex);\n }\n }\n }, []);\n\n useEffect(() => {\n let scheduledAnimationFrame = false;\n const rootElement = document.querySelector<HTMLElement>(\".r-root\");\n\n if (!rootElement) return;\n\n const scrollElement = rootElement
|
|
1
|
+
{"version":3,"file":"provider.js","sources":["../../../../src/components/contexts/contents/provider.tsx"],"sourcesContent":["\"use client\";\n\nimport React, { useCallback, useEffect, useRef, useState } from \"react\";\nimport { CurrentHeadingContext, HeadingsContext } from \"./context\";\n\nexport const ContentsProvider: React.FC<React.PropsWithChildren> = ({ children }) => {\n const [activeIndex, setActiveIndex] = useState<number | null>(null);\n const headings = useRef<HTMLHeadingElement[]>([]);\n\n const updateTargetSection = useCallback((rootElement: HTMLElement) => {\n if (rootElement.scrollTop + 20 > rootElement.scrollHeight - window.innerHeight) {\n setActiveIndex(headings.current.length - 1);\n } else {\n const headingIndex = headings.current.findLastIndex((el) => el.offsetTop < rootElement.scrollTop + 100);\n if (\n rootElement.scrollTop + 100 > rootElement.scrollHeight - window.innerHeight &&\n headingIndex < headings.current.length - 2\n ) {\n setActiveIndex(headings.current.length - 2);\n } else {\n setActiveIndex(headingIndex);\n }\n }\n }, []);\n\n useEffect(() => {\n let scheduledAnimationFrame = false;\n const rootElement = document.querySelector<HTMLElement>(\".r-root\");\n\n if (!rootElement) return;\n\n const scrollElement = rootElement === document.documentElement ? window : rootElement;\n\n const scrollHandler = () => {\n if (!scheduledAnimationFrame && window.innerWidth > 1080) {\n scheduledAnimationFrame = true;\n setTimeout(() => {\n updateTargetSection(rootElement);\n scheduledAnimationFrame = false;\n }, 100);\n }\n };\n\n updateTargetSection(rootElement);\n scrollElement.addEventListener(\"scroll\", scrollHandler);\n\n return () => {\n scrollElement.removeEventListener(\"scroll\", scrollHandler);\n };\n }, []);\n\n return (\n <HeadingsContext.Provider value={headings.current}>\n <CurrentHeadingContext.Provider value={activeIndex}>{children}</CurrentHeadingContext.Provider>\n </HeadingsContext.Provider>\n );\n};\n"],"names":["ContentsProvider","children","activeIndex","setActiveIndex","useState","headings","useRef","updateTargetSection","useCallback","rootElement","scrollTop","scrollHeight","window","innerHeight","current","length","headingIndex","findLastIndex","el","offsetTop","useEffect","scheduledAnimationFrame","document","querySelector","scrollElement","documentElement","scrollHandler","innerWidth","setTimeout","addEventListener","removeEventListener","React","createElement","HeadingsContext","Provider","value","CurrentHeadingContext"],"mappings":";gKAKaA,CAAAA,CAAsD,CAAA,CAAGC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAClE,MAAOC,CAAAA,CAAaC,CAAAA,CAAAA,CAAkBC,CAAAA,CAAwB,CAAA,CAAA,CAAA,CAAA,CAAA,CACxDC,CAAAA,CAAWC,CAAAA,CAA6B,CAAA,CAAA,CAAA,CAExCC,CAAAA,CAAsBC,CAAAA,CAAaC,CAAAA,CAAAA,CAAAA,CACrC,CAAA,CAAA,CAAIA,CAAAA,CAAYC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAY,CAAA,CAAA,CAAKD,CAAAA,CAAYE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAeC,OAAOC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAC/DV,CAAAA,CAAeE,CAAAA,CAASS,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAQC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAS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;
|
|
472
|
+
}.r-article {
|
|
473
|
+
padding: 20px 0 80px;
|
|
474
|
+
grid-area: content;
|
|
475
|
+
}
|
|
476
|
+
@media screen and (width >= 1180px) {
|
|
477
|
+
.r-article {
|
|
478
|
+
padding: 32px 0 80px;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
.r-article > *:first-child {
|
|
482
|
+
margin-top: 0;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.r-checkbox {
|
|
486
|
+
cursor: pointer;
|
|
487
|
+
width: 20px;
|
|
488
|
+
height: 20px;
|
|
489
|
+
margin: 4px;
|
|
490
|
+
vertical-align: middle;
|
|
491
|
+
box-sizing: border-box;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.r-label {
|
|
495
|
+
cursor: pointer;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.r-task-ol,
|
|
499
|
+
.r-task-ul {
|
|
500
|
+
list-style: none;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.r-task-label {
|
|
504
|
+
display: block;
|
|
505
|
+
width: 100%;
|
|
506
|
+
padding-top: 2px;
|
|
507
|
+
padding-bottom: 2px;
|
|
508
|
+
box-sizing: border-box;
|
|
509
|
+
}
|
|
510
|
+
.r-task-label:hover .r-checkbox {
|
|
511
|
+
filter: brightness(0.8);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.r-task-li.r-task-li {
|
|
515
|
+
margin-block-start: 2px;
|
|
516
|
+
margin-block-end: 2px;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.r-label-text {
|
|
520
|
+
vertical-align: middle;
|
|
470
521
|
}.r-sidebar {
|
|
471
522
|
grid-area: sidebar;
|
|
472
523
|
box-sizing: border-box;
|
|
@@ -741,57 +792,6 @@
|
|
|
741
792
|
|
|
742
793
|
.r-sidebar-drop[open] > .r-sidebar-drop-btn > .r-sidebar-drop-icon {
|
|
743
794
|
transform: rotate(90deg);
|
|
744
|
-
}.keylink-to-navigation {
|
|
745
|
-
margin-top: -40px;
|
|
746
|
-
}.r-article {
|
|
747
|
-
padding: 20px 0 80px;
|
|
748
|
-
grid-area: content;
|
|
749
|
-
}
|
|
750
|
-
@media screen and (width >= 1180px) {
|
|
751
|
-
.r-article {
|
|
752
|
-
padding: 32px 0 80px;
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
.r-article > *:first-child {
|
|
756
|
-
margin-top: 0;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
.r-checkbox {
|
|
760
|
-
cursor: pointer;
|
|
761
|
-
width: 20px;
|
|
762
|
-
height: 20px;
|
|
763
|
-
margin: 4px;
|
|
764
|
-
vertical-align: middle;
|
|
765
|
-
box-sizing: border-box;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
.r-label {
|
|
769
|
-
cursor: pointer;
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
.r-task-ol,
|
|
773
|
-
.r-task-ul {
|
|
774
|
-
list-style: none;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
.r-task-label {
|
|
778
|
-
display: block;
|
|
779
|
-
width: 100%;
|
|
780
|
-
padding-top: 2px;
|
|
781
|
-
padding-bottom: 2px;
|
|
782
|
-
box-sizing: border-box;
|
|
783
|
-
}
|
|
784
|
-
.r-task-label:hover .r-checkbox {
|
|
785
|
-
filter: brightness(0.8);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
.r-task-li.r-task-li {
|
|
789
|
-
margin-block-start: 2px;
|
|
790
|
-
margin-block-end: 2px;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.r-label-text {
|
|
794
|
-
vertical-align: middle;
|
|
795
795
|
}.r-header-menu {
|
|
796
796
|
display: flex;
|
|
797
797
|
justify-content: flex-end;
|
|
@@ -1075,6 +1075,13 @@
|
|
|
1075
1075
|
|
|
1076
1076
|
.r-dropdown-link._active {
|
|
1077
1077
|
color: var(--r-primary-700);
|
|
1078
|
+
}.r-container {
|
|
1079
|
+
max-width: 1180px;
|
|
1080
|
+
padding-right: 12px;
|
|
1081
|
+
padding-left: 12px;
|
|
1082
|
+
margin-right: auto;
|
|
1083
|
+
margin-left: auto;
|
|
1084
|
+
box-sizing: border-box;
|
|
1078
1085
|
}.r-header-social {
|
|
1079
1086
|
display: flex;
|
|
1080
1087
|
flex: 1;
|
|
@@ -1093,13 +1100,6 @@
|
|
|
1093
1100
|
}
|
|
1094
1101
|
.r-header-social-git:hover, .r-header-social-git:focus {
|
|
1095
1102
|
color: var(--r-neutral-950);
|
|
1096
|
-
}.r-container {
|
|
1097
|
-
max-width: 1180px;
|
|
1098
|
-
padding-right: 12px;
|
|
1099
|
-
padding-left: 12px;
|
|
1100
|
-
margin-right: auto;
|
|
1101
|
-
margin-left: auto;
|
|
1102
|
-
box-sizing: border-box;
|
|
1103
1103
|
}.r-theme-switcher {
|
|
1104
1104
|
position: relative;
|
|
1105
1105
|
display: flex;
|
|
@@ -1424,6 +1424,50 @@
|
|
|
1424
1424
|
}
|
|
1425
1425
|
.r-contents-git:hover {
|
|
1426
1426
|
color: var(--r-neutral-900);
|
|
1427
|
+
}.r-breadcrumbs {
|
|
1428
|
+
grid-area: breadcrumbs;
|
|
1429
|
+
list-style: none;
|
|
1430
|
+
margin: 0;
|
|
1431
|
+
padding: 20px 0 0;
|
|
1432
|
+
line-height: 2;
|
|
1433
|
+
}
|
|
1434
|
+
@media screen and (width >= 768px) {
|
|
1435
|
+
.r-breadcrumbs {
|
|
1436
|
+
padding: 32px 0 0;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.r-breadcrumb {
|
|
1441
|
+
display: inline;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.r-breadcrumb._previous::after {
|
|
1445
|
+
content: "/";
|
|
1446
|
+
font-weight: 600;
|
|
1447
|
+
margin-inline: 8px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.r-breadcrumb-link {
|
|
1451
|
+
color: var(--r-neutral-700);
|
|
1452
|
+
text-decoration: none;
|
|
1453
|
+
}
|
|
1454
|
+
.r-breadcrumb-link:hover {
|
|
1455
|
+
color: var(--r-primary-800);
|
|
1456
|
+
}
|
|
1457
|
+
|
|
1458
|
+
.r-breadcrumb-link,
|
|
1459
|
+
.r-breadcrumb-title {
|
|
1460
|
+
display: inline;
|
|
1461
|
+
padding: 6px 0;
|
|
1462
|
+
margin: 0;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.r-breadcrumb-title {
|
|
1466
|
+
color: var(--r-neutral-950);
|
|
1467
|
+
font-weight: 600;
|
|
1468
|
+
}.r-last-modified {
|
|
1469
|
+
color: var(--r-neutral-700);
|
|
1470
|
+
margin-block-start: 16px;
|
|
1427
1471
|
}.r-pagination {
|
|
1428
1472
|
grid-area: pagination;
|
|
1429
1473
|
display: grid;
|
|
@@ -1498,50 +1542,6 @@
|
|
|
1498
1542
|
|
|
1499
1543
|
.r-pagination-svg {
|
|
1500
1544
|
display: block;
|
|
1501
|
-
}.r-breadcrumbs {
|
|
1502
|
-
grid-area: breadcrumbs;
|
|
1503
|
-
list-style: none;
|
|
1504
|
-
margin: 0;
|
|
1505
|
-
padding: 20px 0 0;
|
|
1506
|
-
line-height: 2;
|
|
1507
|
-
}
|
|
1508
|
-
@media screen and (width >= 768px) {
|
|
1509
|
-
.r-breadcrumbs {
|
|
1510
|
-
padding: 32px 0 0;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
.r-breadcrumb {
|
|
1515
|
-
display: inline;
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
.r-breadcrumb._previous::after {
|
|
1519
|
-
content: "/";
|
|
1520
|
-
font-weight: 600;
|
|
1521
|
-
margin-inline: 8px;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
.r-breadcrumb-link {
|
|
1525
|
-
color: var(--r-neutral-700);
|
|
1526
|
-
text-decoration: none;
|
|
1527
|
-
}
|
|
1528
|
-
.r-breadcrumb-link:hover {
|
|
1529
|
-
color: var(--r-primary-800);
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
.r-breadcrumb-link,
|
|
1533
|
-
.r-breadcrumb-title {
|
|
1534
|
-
display: inline;
|
|
1535
|
-
padding: 6px 0;
|
|
1536
|
-
margin: 0;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
.r-breadcrumb-title {
|
|
1540
|
-
color: var(--r-neutral-950);
|
|
1541
|
-
font-weight: 600;
|
|
1542
|
-
}.r-last-modified {
|
|
1543
|
-
color: var(--r-neutral-700);
|
|
1544
|
-
margin-block-start: 16px;
|
|
1545
1545
|
}.r-git-logo {
|
|
1546
1546
|
display: block;
|
|
1547
1547
|
}.r-external-mark {
|
|
@@ -1702,6 +1702,21 @@
|
|
|
1702
1702
|
}
|
|
1703
1703
|
.r-blockquote-caution .r-blockquote-title {
|
|
1704
1704
|
color: var(--r-caution);
|
|
1705
|
+
}.r-code-block {
|
|
1706
|
+
font-family: var(--monospace-font, monospace, monospace);
|
|
1707
|
+
font-size: 16px;
|
|
1708
|
+
line-height: 1.33;
|
|
1709
|
+
border-radius: 6px;
|
|
1710
|
+
padding: 16px 20px;
|
|
1711
|
+
margin-block-start: 1.5em;
|
|
1712
|
+
margin-block-end: 1.75em;
|
|
1713
|
+
color: var(--r-primary-800);
|
|
1714
|
+
background-color: var(--r-neutral-50);
|
|
1715
|
+
border: 1px solid var(--r-neutral-300);
|
|
1716
|
+
overflow-x: auto;
|
|
1717
|
+
scrollbar-width: thin;
|
|
1718
|
+
scrollbar-color: var(--r-neutral-200) transparent;
|
|
1719
|
+
box-sizing: border-box;
|
|
1705
1720
|
}.r-code-span {
|
|
1706
1721
|
font-family: var(--monospace-font, monospace, monospace);
|
|
1707
1722
|
background-color: var(--r-neutral-200);
|
|
@@ -1754,21 +1769,6 @@
|
|
|
1754
1769
|
line-height: 1.4;
|
|
1755
1770
|
margin-block-start: 1.8em;
|
|
1756
1771
|
margin-block-end: 1.8em;
|
|
1757
|
-
}.r-code-block {
|
|
1758
|
-
font-family: var(--monospace-font, monospace, monospace);
|
|
1759
|
-
font-size: 16px;
|
|
1760
|
-
line-height: 1.33;
|
|
1761
|
-
border-radius: 6px;
|
|
1762
|
-
padding: 16px 20px;
|
|
1763
|
-
margin-block-start: 1.5em;
|
|
1764
|
-
margin-block-end: 1.75em;
|
|
1765
|
-
color: var(--r-primary-800);
|
|
1766
|
-
background-color: var(--r-neutral-50);
|
|
1767
|
-
border: 1px solid var(--r-neutral-300);
|
|
1768
|
-
overflow-x: auto;
|
|
1769
|
-
scrollbar-width: thin;
|
|
1770
|
-
scrollbar-color: var(--r-neutral-200) transparent;
|
|
1771
|
-
box-sizing: border-box;
|
|
1772
1772
|
}.r-img {
|
|
1773
1773
|
max-width: 100%;
|
|
1774
1774
|
box-sizing: border-box;
|
|
@@ -1854,14 +1854,6 @@
|
|
|
1854
1854
|
.r-modal._visible {
|
|
1855
1855
|
transform: translateX(-50%) scale(1);
|
|
1856
1856
|
}
|
|
1857
|
-
}.r-kbd-container {
|
|
1858
|
-
display: flex;
|
|
1859
|
-
gap: 4px;
|
|
1860
|
-
font-size: 14px;
|
|
1861
|
-
cursor: pointer;
|
|
1862
|
-
}
|
|
1863
|
-
.r-kbd-container:hover {
|
|
1864
|
-
color: var(--r-neutral-950);
|
|
1865
1857
|
}.r-kbd-key {
|
|
1866
1858
|
background-color: var(--r-neutral-200);
|
|
1867
1859
|
font-size: 12px;
|
|
@@ -1870,6 +1862,14 @@
|
|
|
1870
1862
|
min-width: 24px;
|
|
1871
1863
|
text-align: center;
|
|
1872
1864
|
box-sizing: border-box;
|
|
1865
|
+
}.r-kbd-container {
|
|
1866
|
+
display: flex;
|
|
1867
|
+
gap: 4px;
|
|
1868
|
+
font-size: 14px;
|
|
1869
|
+
cursor: pointer;
|
|
1870
|
+
}
|
|
1871
|
+
.r-kbd-container:hover {
|
|
1872
|
+
color: var(--r-neutral-950);
|
|
1873
1873
|
}.r-copy-button {
|
|
1874
1874
|
position: relative;
|
|
1875
1875
|
padding: 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "robindoc",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-7bcc2d8",
|
|
4
4
|
"description": "Robindoc is a framework for automatically creating documentation websites based on markdown files, built on React.js Server Components",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"scripts": {
|