@ones-editor/editor 0.0.9 → 1.0.1

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.
@@ -11,10 +11,11 @@ export declare class TextColorItem extends TypedEmitter<ColorPaletteEvents> impl
11
11
  children: CommandItem[];
12
12
  element: HTMLButtonElement;
13
13
  colorPaletteItem: ColorPaletteItem;
14
- private latestColors;
14
+ latestColors: [number | null, number | null];
15
15
  constructor(editor: OnesEditor);
16
16
  destroy(): void;
17
17
  handlePaletteClick: (type: 'color' | 'backgroundColor' | 'clearColor', value: number) => void;
18
+ setLatestColors: (type: 'color' | 'backgroundColor' | 'clearColor', value: number) => void;
18
19
  beforePopup: () => void;
19
20
  updatePaletteColor(colors: [number | null, number | null]): void;
20
21
  updateButtonColor(colors: [number | null, number | null]): void;
@@ -18,6 +18,7 @@ export default class HistoryDoc extends EventCallbacks<OnesEditorDocCallbacks> i
18
18
  localDeleteChildContainers(): void;
19
19
  uploadResource(): Promise<UploadResourceResult>;
20
20
  addResources(resourceIds: string[]): Promise<string[]>;
21
+ patchSyncResources(resourceIds: string[]): Promise<string[]>;
21
22
  getServerMeta(): OnesEditorDocServerMeta;
22
23
  buildResourceUrl(src: string): string;
23
24
  request<T>(): Promise<T>;
@@ -8,7 +8,7 @@ export type VersionElement = HTMLDivElement & {
8
8
  };
9
9
  interface VersionListOptions {
10
10
  versions: DocVersion[];
11
- selectedVersion?: number;
11
+ selectedVersion?: DocVersion;
12
12
  versionHelper: OnesEditorDocVersionHelper;
13
13
  getMarkColor: (user: HistoryUser) => string;
14
14
  onSelectVersion: (version: DocVersion) => void;
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ export * from '../@ones-editor/misc';
15
15
  export * from '../@ones-editor/versions';
16
16
  export * from '../@ones-editor/misc';
17
17
  export * from '../@ones-editor/block-locker';
18
- export { Popup, ManualMenu, OnesEditorAutoSuggest, tippy, ManualToolbar, ManualCloseDialog } from '../@ones-editor/ui-base';
18
+ export { Popup, ManualMenu, OnesEditorAutoSuggest, tippy, ManualToolbar, ManualCloseDialog, TextColorItem } from '../@ones-editor/ui-base';
19
19
  export * from '../@ones-editor/drawio-embed';
20
20
  export * from '../@ones-editor/block-resizer';
21
21
  export { editorAddComment } from '../@ones-editor/comments';