@superdoc/react 2.5.0-next.5 → 2.5.0-next.7

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 +30 -0
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -5,9 +5,19 @@ import { CommentsLayout } from 'superdoc';
5
5
  import { CommentsResponsiveConfig } from 'superdoc';
6
6
  import { CSSProperties } from 'react';
7
7
  import { ForwardRefExoticComponent } from 'react';
8
+ import { HyperlinkActivationContext } from 'superdoc';
9
+ import { HyperlinkActivationHandler } from 'superdoc';
10
+ import { HyperlinkActivationResult } from 'superdoc';
11
+ import { HyperlinkRenderContext } from 'superdoc';
12
+ import { HyperlinksConfig } from 'superdoc';
13
+ import { HyperlinkTarget } from 'superdoc';
8
14
  import { ReactNode } from 'react';
9
15
  import { RefAttributes } from 'react';
16
+ import { SearchConfig } from 'superdoc';
17
+ import { SearchFloatingConfig } from 'superdoc';
18
+ import { SearchStrings } from 'superdoc';
10
19
  import { SuperDoc } from 'superdoc';
20
+ import { SuperDocExceptionHyperlinkPayload } from 'superdoc';
11
21
  import { SuperDocExceptionPayload } from 'superdoc';
12
22
  import { ToolbarConfig } from 'superdoc';
13
23
 
@@ -58,6 +68,18 @@ export declare type EditorSurface = 'body' | 'header' | 'footer';
58
68
  */
59
69
  declare type ExplicitCallbackProps = 'onReady' | 'onEditorCreate' | 'onEditorDestroy' | 'onEditorUpdate' | 'onTransaction' | 'onContentError' | 'onException' | 'onZoomChange' | 'onViewportChange';
60
70
 
71
+ export { HyperlinkActivationContext }
72
+
73
+ export { HyperlinkActivationHandler }
74
+
75
+ export { HyperlinkActivationResult }
76
+
77
+ export { HyperlinkRenderContext }
78
+
79
+ export { HyperlinksConfig }
80
+
81
+ export { HyperlinkTarget }
82
+
61
83
  /**
62
84
  * Props managed internally by the React component (not exposed to users).
63
85
  * - selector: managed by component (creates internal container)
@@ -98,6 +120,12 @@ declare interface ReactProps {
98
120
  style?: CSSProperties;
99
121
  }
100
122
 
123
+ export { SearchConfig }
124
+
125
+ export { SearchFloatingConfig }
126
+
127
+ export { SearchStrings }
128
+
101
129
  declare type SuperDocActiveEditor = NonNullable<SuperDocInstance['activeEditor']>;
102
130
 
103
131
  declare type SuperDocActiveEditorDoc = SuperDocActiveEditor extends {
@@ -159,6 +187,8 @@ export declare type SuperDocEditorUpdateEvent = Parameters<NonNullable<SuperDocC
159
187
  */
160
188
  export declare type SuperDocExceptionEvent = SuperDocExceptionPayload;
161
189
 
190
+ export { SuperDocExceptionHyperlinkPayload }
191
+
162
192
  /** SuperDoc instance type - from superdoc package */
163
193
  export declare type SuperDocInstance = InstanceType<typeof SuperDoc>;
164
194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/react",
3
- "version": "2.5.0-next.5",
3
+ "version": "2.5.0-next.7",
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.5"
30
+ "superdoc": "2.10.0-next.7"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "react": ">=16.8.0",
34
34
  "react-dom": ">=16.8.0",
35
- "superdoc": "2.10.0-next.5"
35
+ "superdoc": "2.10.0-next.7"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@testing-library/react": "^16.3.0",