@univerjs/sheets-formula-ui 1.0.0-alpha.7 → 1.0.0-beta.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/lib/cjs/index.js +146 -165
- package/lib/es/index.js +139 -158
- package/lib/index.js +139 -158
- package/lib/types/services/prompt.service.d.ts +1 -2
- package/lib/types/views/formula-editor/help-function/HelpFunction.d.ts +2 -4
- package/lib/types/views/formula-editor/hooks/use-formula-search.d.ts +1 -2
- package/lib/types/views/formula-editor/hooks/use-highlight.d.ts +1 -1
- package/lib/types/views/formula-editor/index.d.ts +1 -1
- package/lib/umd/index.js +4 -4
- package/package.json +14 -16
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Direction, IDisposable } from '@univerjs/core';
|
|
17
|
-
import type { IFunctionInfo, ISequenceNode } from '@univerjs/engine-formula';
|
|
18
|
-
import type { ISearchItem } from '@univerjs/formula';
|
|
17
|
+
import type { IFunctionInfo, ISearchItem, ISequenceNode } from '@univerjs/engine-formula';
|
|
19
18
|
import type { Observable } from 'rxjs';
|
|
20
19
|
import { IContextService } from '@univerjs/core';
|
|
21
20
|
/** If the formula prompt is visible. */
|
|
@@ -14,12 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Editor } from '@univerjs/docs-ui';
|
|
17
|
-
|
|
17
|
+
export declare function HelpFunction(props: {
|
|
18
18
|
onParamsSwitch?: (index: number) => void;
|
|
19
19
|
onClose?: () => void;
|
|
20
20
|
editor: Editor;
|
|
21
21
|
isFocus: boolean;
|
|
22
22
|
formulaText: string;
|
|
23
|
-
}
|
|
24
|
-
export declare function HelpFunction(props: IHelpFunctionProps): import("react").JSX.Element | null;
|
|
25
|
-
export {};
|
|
23
|
+
}): import("react").JSX.Element | null;
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Editor } from '@univerjs/docs-ui';
|
|
17
|
-
import type { FunctionType } from '@univerjs/engine-formula';
|
|
18
|
-
import type { ISearchItemWithType } from '@univerjs/formula';
|
|
17
|
+
import type { FunctionType, ISearchItemWithType } from '@univerjs/engine-formula';
|
|
19
18
|
import type { INode } from './use-formula-token';
|
|
20
19
|
export declare const useFormulaSearch: (isNeed: boolean, nodes?: INode[], editor?: Editor) => {
|
|
21
20
|
searchList: ISearchItemWithType[];
|
|
@@ -46,7 +46,7 @@ export declare function calcHighlightRanges(opts: {
|
|
|
46
46
|
* @param {IRefSelection[]} refSelections
|
|
47
47
|
*/
|
|
48
48
|
export declare function useSheetHighlight(unitId: string, subUnitId: string): (refSelections: IRefSelection[], editor?: Editor, isEnd?: any) => void;
|
|
49
|
-
export declare function useDocHight(_leadingCharacter?: string): (editor: Editor, sequenceNodes: INode[], isNeedResetSelection?: any, newSelections?: ITextRange[], sourceText?: string) => import("@univerjs/formula
|
|
49
|
+
export declare function useDocHight(_leadingCharacter?: string): (editor: Editor, sequenceNodes: INode[], isNeedResetSelection?: any, newSelections?: ITextRange[], sourceText?: string) => import("@univerjs/engine-formula").IFormulaRefSelection[];
|
|
50
50
|
/**
|
|
51
51
|
* ReplaceTextRunsCommand shifts the editor's existing structural metadata when text changes.
|
|
52
52
|
* Its replacement body must therefore contain only inline formula data; carrying paragraphs
|
|
@@ -59,5 +59,5 @@ interface IFormulaEditorSelectionSyncService {
|
|
|
59
59
|
getEditor: (editorId: string) => Pick<Editor, 'setSelectionRanges'> | null | undefined | void;
|
|
60
60
|
}
|
|
61
61
|
export declare function syncCounterpartFormulaEditorSelection(editorService: IFormulaEditorSelectionSyncService, editorId: string, selections: ITextRange[] | undefined): void;
|
|
62
|
-
export { getSelectionAfterLaggingFormulaInput } from './hooks/use-formula-selection';
|
|
63
62
|
export declare const FormulaEditor: import("react").ForwardRefExoticComponent<IFormulaEditorProps & import("react").RefAttributes<IFormulaEditorRef>>;
|
|
63
|
+
export {};
|