react-reason-editor 1.0.59 → 1.0.60
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-CvyvnAnK.js → ReasonDocs-Bgyy-dnb.js} +85 -81
- package/dist/ReasonDocs-CIatd_iE.cjs +1 -0
- 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/relatedDocuments.d.ts +13 -0
- package/package.json +1 -1
- package/dist/ReasonDocs-L1Bik398.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-CIatd_iE.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-Bgyy-dnb.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-CIatd_iE.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-Bgyy-dnb.js";export{o as ReasonDocs};
|
|
@@ -22,3 +22,16 @@ export interface RelatedDocumentResult {
|
|
|
22
22
|
* @param limit - Maximum number of suggestions to return (default 10).
|
|
23
23
|
*/
|
|
24
24
|
export declare function findRelatedDocuments(documents: Document[], activeDocument: Document | undefined | null, limit?: number): RelatedDocumentResult[];
|
|
25
|
+
/** The single top-ranked suggestion, split from the rest, returned by {@link splitTopSuggestion}. */
|
|
26
|
+
export interface RelatedDocumentsSplit {
|
|
27
|
+
/** The highest-ranked related document, or `null` when there are no results. */
|
|
28
|
+
suggested: RelatedDocumentResult | null;
|
|
29
|
+
/** The remaining results, in their existing rank order. */
|
|
30
|
+
others: RelatedDocumentResult[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Splits an already-ranked {@link findRelatedDocuments} result list into its
|
|
34
|
+
* single top match — the "suggested next" document — and the rest, so the
|
|
35
|
+
* sidebar can render the top match more prominently than the flat list.
|
|
36
|
+
*/
|
|
37
|
+
export declare function splitTopSuggestion(results: RelatedDocumentResult[]): RelatedDocumentsSplit;
|