@lax-wp/editor 0.3.21 → 0.3.22

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.
@@ -0,0 +1,4 @@
1
+ export interface ShareDocumentContentProps {
2
+ onClose?: () => void;
3
+ }
4
+ export declare const ShareDocumentContent: ({ onClose }: ShareDocumentContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -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
- /** Callback when share is clicked */
139
- onShare?: () => void;
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 */