@superdoc/react 2.5.0-next.6 → 2.5.0-next.8
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/index.d.ts +48 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,30 @@ import { CommentInteractionLevel } from 'superdoc';
|
|
|
3
3
|
import { CommentsConfig } from 'superdoc';
|
|
4
4
|
import { CommentsLayout } from 'superdoc';
|
|
5
5
|
import { CommentsResponsiveConfig } from 'superdoc';
|
|
6
|
+
import { ContextMenuConfig } from 'superdoc';
|
|
7
|
+
import { ContextMenuItem } from 'superdoc';
|
|
8
|
+
import { ContextMenuOpenContext } from 'superdoc';
|
|
9
|
+
import { ContextMenuResolvedItem } from 'superdoc';
|
|
10
|
+
import { ContextMenuResolvedSection } from 'superdoc';
|
|
11
|
+
import { ContextMenuSection } from 'superdoc';
|
|
12
|
+
import { ContextMenuSelectContext } from 'superdoc';
|
|
13
|
+
import { ContextMenuSelectPayload } from 'superdoc';
|
|
14
|
+
import { ContextMenuSelectReadiness } from 'superdoc';
|
|
6
15
|
import { CSSProperties } from 'react';
|
|
7
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { HyperlinkActivationContext } from 'superdoc';
|
|
18
|
+
import { HyperlinkActivationHandler } from 'superdoc';
|
|
19
|
+
import { HyperlinkActivationResult } from 'superdoc';
|
|
20
|
+
import { HyperlinkRenderContext } from 'superdoc';
|
|
21
|
+
import { HyperlinksConfig } from 'superdoc';
|
|
22
|
+
import { HyperlinkTarget } from 'superdoc';
|
|
8
23
|
import { ReactNode } from 'react';
|
|
9
24
|
import { RefAttributes } from 'react';
|
|
10
25
|
import { SearchConfig } from 'superdoc';
|
|
11
26
|
import { SearchFloatingConfig } from 'superdoc';
|
|
12
27
|
import { SearchStrings } from 'superdoc';
|
|
13
28
|
import { SuperDoc } from 'superdoc';
|
|
29
|
+
import { SuperDocExceptionHyperlinkPayload } from 'superdoc';
|
|
14
30
|
import { SuperDocExceptionPayload } from 'superdoc';
|
|
15
31
|
import { ToolbarConfig } from 'superdoc';
|
|
16
32
|
|
|
@@ -49,6 +65,24 @@ export { CommentsLayout }
|
|
|
49
65
|
|
|
50
66
|
export { CommentsResponsiveConfig }
|
|
51
67
|
|
|
68
|
+
export { ContextMenuConfig }
|
|
69
|
+
|
|
70
|
+
export { ContextMenuItem }
|
|
71
|
+
|
|
72
|
+
export { ContextMenuOpenContext }
|
|
73
|
+
|
|
74
|
+
export { ContextMenuResolvedItem }
|
|
75
|
+
|
|
76
|
+
export { ContextMenuResolvedSection }
|
|
77
|
+
|
|
78
|
+
export { ContextMenuSection }
|
|
79
|
+
|
|
80
|
+
export { ContextMenuSelectContext }
|
|
81
|
+
|
|
82
|
+
export { ContextMenuSelectPayload }
|
|
83
|
+
|
|
84
|
+
export { ContextMenuSelectReadiness }
|
|
85
|
+
|
|
52
86
|
/** Document mode - extracted from Config.documentMode */
|
|
53
87
|
export declare type DocumentMode = NonNullable<SuperDocConstructorConfig['documentMode']>;
|
|
54
88
|
|
|
@@ -61,6 +95,18 @@ export declare type EditorSurface = 'body' | 'header' | 'footer';
|
|
|
61
95
|
*/
|
|
62
96
|
declare type ExplicitCallbackProps = 'onReady' | 'onEditorCreate' | 'onEditorDestroy' | 'onEditorUpdate' | 'onTransaction' | 'onContentError' | 'onException' | 'onZoomChange' | 'onViewportChange';
|
|
63
97
|
|
|
98
|
+
export { HyperlinkActivationContext }
|
|
99
|
+
|
|
100
|
+
export { HyperlinkActivationHandler }
|
|
101
|
+
|
|
102
|
+
export { HyperlinkActivationResult }
|
|
103
|
+
|
|
104
|
+
export { HyperlinkRenderContext }
|
|
105
|
+
|
|
106
|
+
export { HyperlinksConfig }
|
|
107
|
+
|
|
108
|
+
export { HyperlinkTarget }
|
|
109
|
+
|
|
64
110
|
/**
|
|
65
111
|
* Props managed internally by the React component (not exposed to users).
|
|
66
112
|
* - selector: managed by component (creates internal container)
|
|
@@ -168,6 +214,8 @@ export declare type SuperDocEditorUpdateEvent = Parameters<NonNullable<SuperDocC
|
|
|
168
214
|
*/
|
|
169
215
|
export declare type SuperDocExceptionEvent = SuperDocExceptionPayload;
|
|
170
216
|
|
|
217
|
+
export { SuperDocExceptionHyperlinkPayload }
|
|
218
|
+
|
|
171
219
|
/** SuperDoc instance type - from superdoc package */
|
|
172
220
|
export declare type SuperDocInstance = InstanceType<typeof SuperDoc>;
|
|
173
221
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superdoc/react",
|
|
3
|
-
"version": "2.5.0-next.
|
|
3
|
+
"version": "2.5.0-next.8",
|
|
4
4
|
"description": "Official React wrapper for the SuperDoc document editor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "AGPL-3.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"superdoc": "2.10.0-next.
|
|
30
|
+
"superdoc": "2.10.0-next.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">=16.8.0",
|
|
34
34
|
"react-dom": ">=16.8.0",
|
|
35
|
-
"superdoc": "2.10.0-next.
|
|
35
|
+
"superdoc": "2.10.0-next.8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@testing-library/react": "^16.3.0",
|