@superdoc/react 2.5.0-next.1 → 2.5.0-next.10

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +75 -0
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -1,9 +1,34 @@
1
+ import { CommentInteractionConfig } from 'superdoc';
2
+ import { CommentInteractionLevel } from 'superdoc';
3
+ import { CommentsConfig } from 'superdoc';
4
+ import { CommentsLayout } from 'superdoc';
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';
1
15
  import { CSSProperties } from 'react';
2
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';
3
23
  import { ReactNode } from 'react';
4
24
  import { RefAttributes } from 'react';
25
+ import { SearchConfig } from 'superdoc';
26
+ import { SearchFloatingConfig } from 'superdoc';
27
+ import { SearchStrings } from 'superdoc';
5
28
  import { SuperDoc } from 'superdoc';
29
+ import { SuperDocExceptionHyperlinkPayload } from 'superdoc';
6
30
  import { SuperDocExceptionPayload } from 'superdoc';
31
+ import { ToolbarConfig } from 'superdoc';
7
32
 
8
33
  /**
9
34
  * Explicitly typed callback props to ensure proper TypeScript inference.
@@ -30,6 +55,34 @@ export declare interface CallbackProps {
30
55
  onViewportChange?: (event: SuperDocViewportChangeEvent) => void;
31
56
  }
32
57
 
58
+ export { CommentInteractionConfig }
59
+
60
+ export { CommentInteractionLevel }
61
+
62
+ export { CommentsConfig }
63
+
64
+ export { CommentsLayout }
65
+
66
+ export { CommentsResponsiveConfig }
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
+
33
86
  /** Document mode - extracted from Config.documentMode */
34
87
  export declare type DocumentMode = NonNullable<SuperDocConstructorConfig['documentMode']>;
35
88
 
@@ -42,6 +95,18 @@ export declare type EditorSurface = 'body' | 'header' | 'footer';
42
95
  */
43
96
  declare type ExplicitCallbackProps = 'onReady' | 'onEditorCreate' | 'onEditorDestroy' | 'onEditorUpdate' | 'onTransaction' | 'onContentError' | 'onException' | 'onZoomChange' | 'onViewportChange';
44
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
+
45
110
  /**
46
111
  * Props managed internally by the React component (not exposed to users).
47
112
  * - selector: managed by component (creates internal container)
@@ -82,6 +147,12 @@ declare interface ReactProps {
82
147
  style?: CSSProperties;
83
148
  }
84
149
 
150
+ export { SearchConfig }
151
+
152
+ export { SearchFloatingConfig }
153
+
154
+ export { SearchStrings }
155
+
85
156
  declare type SuperDocActiveEditor = NonNullable<SuperDocInstance['activeEditor']>;
86
157
 
87
158
  declare type SuperDocActiveEditorDoc = SuperDocActiveEditor extends {
@@ -143,6 +214,8 @@ export declare type SuperDocEditorUpdateEvent = Parameters<NonNullable<SuperDocC
143
214
  */
144
215
  export declare type SuperDocExceptionEvent = SuperDocExceptionPayload;
145
216
 
217
+ export { SuperDocExceptionHyperlinkPayload }
218
+
146
219
  /** SuperDoc instance type - from superdoc package */
147
220
  export declare type SuperDocInstance = InstanceType<typeof SuperDoc>;
148
221
 
@@ -202,6 +275,8 @@ export declare type SuperDocViewportChangeEvent = Parameters<NonNullable<SuperDo
202
275
  */
203
276
  export declare type SuperDocZoomChangeEvent = Parameters<NonNullable<SuperDocConfig['onZoomChange']>>[0];
204
277
 
278
+ export { ToolbarConfig }
279
+
205
280
  /** User role - extracted from Config.role */
206
281
  export declare type UserRole = NonNullable<SuperDocConstructorConfig['role']>;
207
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/react",
3
- "version": "2.5.0-next.1",
3
+ "version": "2.5.0-next.10",
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.1"
30
+ "superdoc": "2.10.0-next.10"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
- "superdoc": "2.10.0-next.1"
35
+ "superdoc": "2.10.0-next.10"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@testing-library/react": "^16.3.0",