ct-rich-text-editor 1.3.28 → 1.3.29
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/assets/style.css +353 -54
- package/dist/components/ConfigurableEditorWithAuth.d.ts +10 -0
- package/dist/components/VoiceTranscriptIcon/VoiceTranscriptIcon.d.ts +2 -0
- package/dist/components/VoiceTranscriptIcon/index.d.ts +1 -0
- package/dist/hooks/useReactNativeBridge.d.ts +54 -0
- package/dist/{html2pdf.bundle-0e71462c.js → html2pdf.bundle-2638cd01.js} +2 -2
- package/dist/{html2pdf.bundle-0e71462c.js.map → html2pdf.bundle-2638cd01.js.map} +1 -1
- package/dist/{html2pdf.bundle.min-d2f5d9cb.js → html2pdf.bundle.min-726a8ef6.js} +2 -2
- package/dist/{html2pdf.bundle.min-d2f5d9cb.js.map → html2pdf.bundle.min-726a8ef6.js.map} +1 -1
- package/dist/{index-03cae849.js → index-0b30b971.js} +2 -4
- package/dist/{index-03cae849.js.map → index-0b30b971.js.map} +1 -1
- package/dist/{index-0533674e.js → index-0c07c5e0.js} +1484 -1008
- package/dist/index-0c07c5e0.js.map +1 -0
- package/dist/{index-c26337f6.js → index-433130d7.js} +2 -4
- package/dist/{index-c26337f6.js.map → index-433130d7.js.map} +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/nodes/EmbedNode.d.ts +9 -3
- package/dist/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +1 -0
- package/package.json +2 -2
- package/dist/index-0533674e.js.map +0 -1
|
@@ -9,6 +9,16 @@ interface ConfigurableEditorWithAuthProps {
|
|
|
9
9
|
onAuthSuccess?: () => void;
|
|
10
10
|
onAuthError?: (error: string) => void;
|
|
11
11
|
customVerifyKey?: (apiKey: string) => Promise<ApiResponse>;
|
|
12
|
+
/** Enable React Native bridge for WebView communication */
|
|
13
|
+
enableReactNativeBridge?: boolean;
|
|
14
|
+
/** Called when editor is fully loaded and ready (React Native bridge) */
|
|
15
|
+
onEditorReady?: () => void;
|
|
16
|
+
/** Called on editor focus (React Native bridge) */
|
|
17
|
+
onFocus?: () => void;
|
|
18
|
+
/** Called on editor blur (React Native bridge) */
|
|
19
|
+
onBlur?: () => void;
|
|
20
|
+
/** Called when editor height changes (React Native bridge) */
|
|
21
|
+
onHeightChange?: (height: number) => void;
|
|
12
22
|
}
|
|
13
23
|
declare const ConfigurableEditorWithAuth: React.FC<ConfigurableEditorWithAuthProps>;
|
|
14
24
|
export default ConfigurableEditorWithAuth;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoiceTranscriptIcon } from './VoiceTranscriptIcon';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React Native Bridge Hook
|
|
3
|
+
* Provides seamless communication between the editor and React Native WebView
|
|
4
|
+
*/
|
|
5
|
+
export type ReactNativeMessageType = "EDITOR_READY" | "CONTENT_CHANGE" | "AUTH_SUCCESS" | "AUTH_ERROR" | "FOCUS" | "BLUR" | "HEIGHT_CHANGE" | "ERROR";
|
|
6
|
+
export interface ReactNativeMessage {
|
|
7
|
+
type: ReactNativeMessageType;
|
|
8
|
+
payload?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface ReactNativeBridgeConfig {
|
|
11
|
+
/** Enable the React Native bridge */
|
|
12
|
+
enabled?: boolean;
|
|
13
|
+
/** Callback when editor is ready */
|
|
14
|
+
onReady?: () => void;
|
|
15
|
+
/** Callback when content changes */
|
|
16
|
+
onContentChange?: (content: string) => void;
|
|
17
|
+
/** Callback on authentication success */
|
|
18
|
+
onAuthSuccess?: () => void;
|
|
19
|
+
/** Callback on authentication error */
|
|
20
|
+
onAuthError?: (error: string) => void;
|
|
21
|
+
/** Callback on focus */
|
|
22
|
+
onFocus?: () => void;
|
|
23
|
+
/** Callback on blur */
|
|
24
|
+
onBlur?: () => void;
|
|
25
|
+
/** Callback when editor height changes */
|
|
26
|
+
onHeightChange?: (height: number) => void;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface Window {
|
|
30
|
+
ReactNativeWebView?: {
|
|
31
|
+
postMessage: (message: string) => void;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if running inside a React Native WebView
|
|
37
|
+
*/
|
|
38
|
+
export declare const isReactNativeWebView: () => boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Hook for React Native WebView communication
|
|
41
|
+
*/
|
|
42
|
+
export declare const useReactNativeBridge: (config?: ReactNativeBridgeConfig) => {
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
postMessage: (type: ReactNativeMessageType, payload?: Record<string, unknown>) => void;
|
|
45
|
+
notifyReady: () => void;
|
|
46
|
+
notifyContentChange: (content: string) => void;
|
|
47
|
+
notifyAuthSuccess: () => void;
|
|
48
|
+
notifyAuthError: (error: string) => void;
|
|
49
|
+
notifyFocus: () => void;
|
|
50
|
+
notifyBlur: () => void;
|
|
51
|
+
notifyHeightChange: (height: number) => void;
|
|
52
|
+
notifyError: (message: string, details?: Record<string, unknown>) => void;
|
|
53
|
+
};
|
|
54
|
+
export default useReactNativeBridge;
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-
|
|
7
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-0c07c5e0.js";
|
|
8
8
|
function _mergeNamespaces(n, m) {
|
|
9
9
|
for (var i = 0; i < m.length; i++) {
|
|
10
10
|
const e = m[i];
|
|
@@ -46125,4 +46125,4 @@ const html2pdf_bundle$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
|
46125
46125
|
export {
|
|
46126
46126
|
html2pdf_bundle$1 as h
|
|
46127
46127
|
};
|
|
46128
|
-
//# sourceMappingURL=html2pdf.bundle-
|
|
46128
|
+
//# sourceMappingURL=html2pdf.bundle-2638cd01.js.map
|