oasis-editor 0.0.344 → 0.0.345

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.
@@ -554,7 +554,7 @@ export interface EssentialsFieldsCapability {
554
554
  }
555
555
  export interface EssentialsDialogCapability {
556
556
  openFontDialog: () => void;
557
- openParagraphDialog: () => void;
557
+ openParagraphDialog: (tabPosition?: number) => void;
558
558
  requestAcceptAllRevisions: () => void;
559
559
  requestRejectAllRevisions: () => void;
560
560
  }
@@ -79,7 +79,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
79
79
  applyLinkCommand: (href: string | null) => void;
80
80
  promptForLink: () => void;
81
81
  openFontDialog: () => void;
82
- openParagraphDialog: () => void;
82
+ openParagraphDialog: (tabPosition?: number) => void;
83
83
  openStylesDialog: () => void;
84
84
  openPageSetupDialog: () => void;
85
85
  removeLinkCommand: () => void;
@@ -136,7 +136,7 @@ declare function createAppCommandsControllerImpl(deps: AppCommandsControllerDeps
136
136
  applyLinkCommand: (href: string | null) => void;
137
137
  promptForLink: () => void;
138
138
  openFontDialog: () => void;
139
- openParagraphDialog: () => void;
139
+ openParagraphDialog: (tabPosition?: number) => void;
140
140
  openStylesDialog: () => void;
141
141
  openPageSetupDialog: () => void;
142
142
  removeLinkCommand: () => void;
@@ -138,7 +138,7 @@ declare function createEditorCommandRuntimeImpl(deps: EditorCommandRuntimeDeps):
138
138
  applyLinkCommand: (href: string | null) => void;
139
139
  promptForLink: () => void;
140
140
  openFontDialog: () => void;
141
- openParagraphDialog: () => void;
141
+ openParagraphDialog: (tabPosition?: number) => void;
142
142
  openStylesDialog: () => void;
143
143
  openPageSetupDialog: () => void;
144
144
  removeLinkCommand: () => void;
@@ -46,7 +46,7 @@ export interface CreateEditorEssentialsPluginOptions {
46
46
  /** Opens the Font dialog. */
47
47
  openFontDialog: () => void;
48
48
  /** Opens the Paragraph dialog. */
49
- openParagraphDialog: () => void;
49
+ openParagraphDialog: (tabPosition?: number) => void;
50
50
  /** Opens the Accept All confirmation dialog. */
51
51
  requestAcceptAllRevisions: () => void;
52
52
  /** Opens the Reject All confirmation dialog. */
@@ -1,9 +1,12 @@
1
1
  import { JSX } from 'solid-js';
2
2
  import { EditorTabStop } from '../../../core/model.js';
3
+ import { ParagraphTabStopsChange } from '../../../core/commands/paragraphTabs.js';
3
4
  export interface TabStopsDialogProps {
4
5
  isOpen: boolean;
5
6
  initial: EditorTabStop[];
7
+ initialDefault?: number;
8
+ selectedPosition?: number;
6
9
  onClose: () => void;
7
- onApply: (tabs: EditorTabStop[]) => void;
10
+ onApply: (tabs: EditorTabStop[], changes: ParagraphTabStopsChange[]) => void;
8
11
  }
9
12
  export declare function TabStopsDialog(props: TabStopsDialogProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { ParagraphTabStopsChange } from '../../../../core/commands/paragraphTabs.js';
1
2
  import { EditorBorderStyle, EditorParagraphStyle, EditorTabStop } from '../../../../core/model.js';
2
3
  export type SpecialIndent = "none" | "firstLine" | "hanging";
3
4
  export type BorderStyleValue = "none" | "solid" | "dashed" | "dotted";
@@ -34,6 +35,9 @@ export interface ParagraphDialogInitialValues {
34
35
  keepLinesTogether: boolean;
35
36
  widowControl: boolean;
36
37
  tabs: EditorTabStop[];
38
+ defaultTabStop?: number;
39
+ tabsOnly?: boolean;
40
+ selectedTabPosition?: number;
37
41
  }
38
42
  export interface ParagraphDialogBorders {
39
43
  top: EditorBorderStyle | null;
@@ -65,6 +69,7 @@ export interface ParagraphDialogApplyValues {
65
69
  keepLinesTogether: boolean;
66
70
  widowControl: boolean;
67
71
  tabs: EditorTabStop[];
72
+ tabChanges?: ParagraphTabStopsChange[];
68
73
  }
69
74
  export interface ParagraphDialogProps {
70
75
  isOpen: boolean;
@@ -57,6 +57,9 @@ export declare function useParagraphDialogController(props: ParagraphDialogProps
57
57
  setWidowControl: import('solid-js').Setter<boolean>;
58
58
  tabs: import('solid-js').Accessor<EditorTabStop[]>;
59
59
  setTabs: import('solid-js').Setter<EditorTabStop[]>;
60
+ defaultTabStop: import('solid-js').Accessor<number>;
61
+ setDefaultTabStop: import('solid-js').Setter<number>;
62
+ setTabChanges: import('solid-js').Setter<import('../../../../core/commands/paragraphTabs.js').ParagraphTabStopsChange[]>;
60
63
  atEnabled: () => boolean;
61
64
  previewStyle: import('solid-js').Accessor<Record<string, string | undefined>>;
62
65
  handleApply: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.344",
3
+ "version": "0.0.345",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {