@lax-wp/editor 0.3.21 → 0.3.23
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/components/sidebar/content/ShareDocumentContent.d.ts +4 -0
- package/dist/components/sidebar/content/SidebarContentHeader.d.ts +7 -0
- package/dist/components/sidebar/content/index.d.ts +1 -0
- package/dist/config/EditorConfig.d.ts +6 -2
- package/dist/index.es.js +6562 -6473
- package/dist/index.umd.js +60 -60
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export interface SidebarContentHeaderProps {
|
|
3
|
+
title: string;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
leftContent?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const SidebarContentHeader: ({ title, onClose, leftContent, }: SidebarContentHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ExportContent, type ExportContentProps } from './ExportContent';
|
|
2
2
|
export { SearchContent, type SearchContentProps } from './SearchContent';
|
|
3
3
|
export { AddElementContent, type AddElementContentProps } from './AddElementContent';
|
|
4
|
+
export { ShareDocumentContent, type ShareDocumentContentProps } from './ShareDocumentContent';
|
|
4
5
|
export { ImageContent, type ImageContentProps, type ImageData } from './ImageContent';
|
|
5
6
|
export { PIIAnonymization, type PIIAnonymizationProps } from './anonymization-page/PIIAnonymization';
|
|
6
7
|
export { AnonymizationSettings, type AnonymizationSettingsProps } from './anonymization-page/AnonymizationSettings';
|
|
@@ -135,8 +135,12 @@ export interface EditorConfig {
|
|
|
135
135
|
ydoc?: unknown | null;
|
|
136
136
|
provider?: unknown | null;
|
|
137
137
|
};
|
|
138
|
-
/**
|
|
139
|
-
|
|
138
|
+
/** Share configuration */
|
|
139
|
+
shareConfig?: {
|
|
140
|
+
enabled?: boolean;
|
|
141
|
+
documentURL?: string;
|
|
142
|
+
onExternalUserInvite?: (emails: string[], permission: 'view' | 'suggest') => void;
|
|
143
|
+
};
|
|
140
144
|
/** Callback when content changes */
|
|
141
145
|
onContentChange?: (editor: Editor) => void;
|
|
142
146
|
/** Callback when editor is ready with helper methods */
|