react-reason-editor 1.0.29 → 1.0.31
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/ReasonDocs-DWRwDR5E.cjs +1 -0
- package/dist/{ReasonDocs-CK-Glhub.js → ReasonDocs-WH3JUyEX.js} +157 -157
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/reason-docs.cjs +1 -1
- package/dist/reason-docs.js +1 -1
- package/dist/search/OutlineView.d.ts +14 -0
- package/package.json +1 -1
- package/dist/ReasonDocs-BsqLLRX5.cjs +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./editorConfig-Cx4ilZJV.cjs"),o=require("./ReasonDocs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./editorConfig-Cx4ilZJV.cjs"),o=require("./ReasonDocs-DWRwDR5E.cjs"),r=require("./RichTextProvider-CSKrKcEv.cjs"),t=require("./externalLibsMode-Dm8a-Jd9.cjs");exports.NovelEditor=e.NovelEditor,exports.ReasonDocs=o.Index,exports.RichTextProvider=r.RichTextProvider,exports.externalLibsModeActions=t.externalLibsModeActions,exports.getExternalLibsMode=t.getExternalLibsMode,exports.useExternalLibsMode=t.useExternalLibsMode,exports.useNovelEditor=e.useNovelEditor;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o,i as s}from"./editorConfig-BDVG1hyU.js";import{t as r}from"./ReasonDocs-
|
|
1
|
+
import{a as o,i as s}from"./editorConfig-BDVG1hyU.js";import{t as r}from"./ReasonDocs-WH3JUyEX.js";import{t as a}from"./RichTextProvider-CHcaIPMd.js";import{n as t,r as i,t as e}from"./externalLibsMode-DEDBnK98.js";export{s as NovelEditor,r as ReasonDocs,a as RichTextProvider,e as externalLibsModeActions,t as getExternalLibsMode,i as useExternalLibsMode,o as useNovelEditor};
|
package/dist/reason-docs.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./ReasonDocs-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./rolldown-runtime-BeavJI0R.cjs");const e=require("./ReasonDocs-DWRwDR5E.cjs");exports.ReasonDocs=e.Index;
|
package/dist/reason-docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o}from"./ReasonDocs-
|
|
1
|
+
import{t as o}from"./ReasonDocs-WH3JUyEX.js";export{o as ReasonDocs};
|
|
@@ -28,6 +28,20 @@ interface OutlineViewProps {
|
|
|
28
28
|
*/
|
|
29
29
|
editorRef?: RefObject<ActiveHeadingEditorHandle | null>;
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Given the outline panel's own scroll container (`scrollTop`/`clientHeight`)
|
|
33
|
+
* and the active row's offset within it (`offsetTop`/`offsetHeight`), returns
|
|
34
|
+
* the `scrollTop` needed to bring the row fully into view — scrolling up if
|
|
35
|
+
* it's above the visible area, down if it's below — or `null` if the row is
|
|
36
|
+
* already fully visible and no scrolling is needed.
|
|
37
|
+
*/
|
|
38
|
+
export declare function computeScrollIntoViewOffset(container: {
|
|
39
|
+
scrollTop: number;
|
|
40
|
+
clientHeight: number;
|
|
41
|
+
}, row: {
|
|
42
|
+
offsetTop: number;
|
|
43
|
+
offsetHeight: number;
|
|
44
|
+
}): number | null;
|
|
31
45
|
/**
|
|
32
46
|
* Collapsible document outline panel. Renders a heading tree built from
|
|
33
47
|
* `headings` with click-to-navigate, expand/collapse, drag-to-reorder,
|