syntaxic-react-editor 1.0.9 → 1.0.11

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.
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { ActiveStyles, WordEditorPlugin, CommandExec } from '../../types';
2
+ import { ActiveStyles, WordEditorPlugin, CommandExec, FileOptions } from '../../types';
3
3
  export interface FileTabProps {
4
4
  onSave: () => void;
5
5
  onSaveAsDocs: () => void;
@@ -15,5 +15,6 @@ export interface FileTabProps {
15
15
  label: string;
16
16
  value: string;
17
17
  }[];
18
+ fileConf?: FileOptions | false;
18
19
  }
19
20
  export declare const FileTab: React.FC<FileTabProps>;
@@ -41,8 +41,18 @@ export interface EditingOptions {
41
41
  find?: boolean;
42
42
  replace?: boolean;
43
43
  lock?: boolean;
44
+ source?: boolean;
45
+ }
46
+ export interface FileOptions {
47
+ [key: string]: boolean | undefined;
48
+ save?: boolean;
49
+ saveAs?: boolean;
50
+ print?: boolean;
51
+ html?: boolean;
52
+ import?: boolean;
44
53
  }
45
54
  export interface ToolbarOptions {
55
+ file?: boolean | FileOptions;
46
56
  clipboard?: boolean | ClipboardOptions;
47
57
  font?: boolean | FontOptions;
48
58
  paragraph?: boolean | ParagraphOptions;
@@ -52,6 +62,9 @@ export interface ToolbarOptions {
52
62
  media?: boolean;
53
63
  pages?: boolean;
54
64
  code?: boolean;
65
+ help?: boolean;
66
+ collapsible?: boolean;
67
+ collapsed?: boolean;
55
68
  }
56
69
  export interface ActiveStyles {
57
70
  bold: boolean;
@@ -98,6 +111,7 @@ export interface WordEditorPlugin {
98
111
  paragraphConf?: ParagraphOptions | false;
99
112
  clipboardConf?: ClipboardOptions | false;
100
113
  editingConf?: EditingOptions | false;
114
+ fileConf?: FileOptions | false;
101
115
  }>;
102
116
  }[];
103
117
  }
@@ -1,4 +1,4 @@
1
- export type TableAction = 'insertRowAbove' | 'insertRowBelow' | 'insertColLeft' | 'insertColRight' | 'deleteRow' | 'deleteCol' | 'deleteTable' | 'mergeRight' | 'mergeDown' | 'splitCell' | 'mergeCells' | 'alignTop' | 'alignMiddle' | 'alignBottom' | 'justifyLeft' | 'justifyCenter' | 'justifyRight' | 'justifyFull' | 'cellColor' | 'cellBorder' | 'cellPadding' | 'borderTop' | 'borderBottom' | 'borderLeft' | 'borderRight' | 'borderAll' | 'borderNone' | 'paddingTopPlus' | 'paddingTopMinus' | 'paddingTopSet' | 'paddingBottomPlus' | 'paddingBottomMinus' | 'paddingBottomSet' | 'paddingLeftPlus' | 'paddingLeftMinus' | 'paddingLeftSet' | 'paddingRightPlus' | 'paddingRightMinus' | 'paddingRightSet';
1
+ export type TableAction = 'insertRowAbove' | 'insertRowBelow' | 'insertColLeft' | 'insertColRight' | 'deleteRow' | 'deleteCol' | 'deleteTable' | 'mergeRight' | 'mergeDown' | 'splitCell' | 'mergeCells' | 'alignTop' | 'alignMiddle' | 'alignBottom' | 'justifyLeft' | 'justifyCenter' | 'justifyRight' | 'justifyFull' | 'cellColor' | 'cellBorder' | 'cellPadding' | 'borderTop' | 'borderBottom' | 'borderLeft' | 'borderRight' | 'borderAll' | 'borderNone' | 'paddingTopPlus' | 'paddingTopMinus' | 'paddingTopSet' | 'paddingBottomPlus' | 'paddingBottomMinus' | 'paddingBottomSet' | 'paddingLeftPlus' | 'paddingLeftMinus' | 'paddingLeftSet' | 'paddingRightPlus' | 'paddingRightMinus' | 'paddingRightSet' | 'paddingSet' | 'paddingAllSet';
2
2
  export declare function executeTableAction(action: TableAction | string, activeTableCell: HTMLElement | null, value?: string | number, callbacks?: {
3
3
  onTableDeleted?: () => void;
4
4
  onContentChanged?: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syntaxic-react-editor",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "A powerful and customizable Microsoft Word-like editor for React.",
5
5
  "author": "Syntaxic Labs",
6
6
  "license": "MIT",