oasis-editor 0.0.207 → 0.0.209
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/{OasisEditorApp-Bvvtm0S1.js → OasisEditorApp-BZSScJOd.js} +1 -1
- package/dist/core/commands/headerFooter.d.ts +34 -0
- package/dist/core/model/types/documentReviewActivity.d.ts +5 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/app/createEditorCommentComposer.d.ts +6 -1
- package/dist/ui/components/ReviewCommentsPanel.d.ts +3 -0
- package/package.json +1 -1
|
@@ -18,7 +18,12 @@ export interface CommentComposerDeps {
|
|
|
18
18
|
focusInput: () => void;
|
|
19
19
|
access?: () => OasisReviewAccess | undefined;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* One instance per editor; never a global author, dialog, or comment state.
|
|
23
|
+
* The return type is intentionally the self-derived `EditorCommentComposer`
|
|
24
|
+
* alias, so annotating it here would circularly reference itself (TS2577);
|
|
25
|
+
* consumers use the exported alias instead.
|
|
26
|
+
*/
|
|
22
27
|
export declare function createEditorCommentComposer(deps: CommentComposerDeps): {
|
|
23
28
|
draft: import('solid-js').Accessor<CommentComposerDraft | null>;
|
|
24
29
|
lastAuthor: import('solid-js').Accessor<string>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { Accessor, JSX } from 'solid-js';
|
|
2
2
|
import { EditorState } from '../../core/model.js';
|
|
3
3
|
import { EditorCommentComposer } from '../app/createEditorCommentComposer.js';
|
|
4
|
+
import { Locale } from '../../i18n/index.js';
|
|
4
5
|
export interface ReviewCommentsPanelProps {
|
|
5
6
|
state: Accessor<EditorState>;
|
|
6
7
|
composer: EditorCommentComposer;
|
|
7
8
|
onNavigate: (id: string) => void;
|
|
8
9
|
onClose: () => void;
|
|
10
|
+
/** Active UI locale, so timestamps render in the app language, not the OS one. */
|
|
11
|
+
locale?: () => Locale;
|
|
9
12
|
}
|
|
10
13
|
/** All thread actions share the command-side permission controller. */
|
|
11
14
|
export declare function ReviewCommentsPanel(props: ReviewCommentsPanelProps): JSX.Element;
|