@ones-editor/editor 1.1.17-beta.9 → 1.1.18

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.
Files changed (53) hide show
  1. package/@ones-editor/block-menu/src/block-menu/items/insert-block-items/index.d.ts +1 -1
  2. package/@ones-editor/code-block/src/code-block/languages.d.ts +1 -1
  3. package/@ones-editor/code-block/src/locale/en-us.d.ts +0 -1
  4. package/@ones-editor/code-block/src/locale/ja-jp.d.ts +0 -1
  5. package/@ones-editor/code-block/src/locale/zh-cn.d.ts +0 -1
  6. package/@ones-editor/comments/src/comment-quick-reply/index.d.ts +0 -1
  7. package/@ones-editor/comments/src/comments-render/index.d.ts +0 -1
  8. package/@ones-editor/context-menu/src/menu/index.d.ts +0 -1
  9. package/@ones-editor/core/src/core/blocks/complex-blocks/complex-block-helper.d.ts +1 -2
  10. package/@ones-editor/core/src/core/composition/editor-input.d.ts +0 -1
  11. package/@ones-editor/core/src/core/doc/rich-text/text-style.d.ts +0 -1
  12. package/@ones-editor/core/src/core/editor/actions/update-block-text.d.ts +3 -3
  13. package/@ones-editor/core/src/core/editor/actions/update-box-data.d.ts +2 -2
  14. package/@ones-editor/core/src/core/editor-doc/editor-doc.d.ts +0 -1
  15. package/@ones-editor/core/src/core/input-handler/input-handler.d.ts +1 -3
  16. package/@ones-editor/core/src/core/types.d.ts +1 -5
  17. package/@ones-editor/core/src/utils/dom.d.ts +0 -4
  18. package/@ones-editor/core/src/utils/file.d.ts +1 -2
  19. package/@ones-editor/input-handlers/src/enforce-with-document-title/types.d.ts +0 -2
  20. package/@ones-editor/sharedb-doc/src/doc/auth-connection.d.ts +0 -1
  21. package/@ones-editor/templates/src/index.d.ts +2 -2
  22. package/@ones-editor/templates/src/templates/select-template.d.ts +0 -4
  23. package/@ones-editor/templates/src/templates/types.d.ts +0 -1
  24. package/@ones-editor/tsconfig.tsbuildinfo +1 -1
  25. package/@ones-editor/ui/src/index.d.ts +2 -2
  26. package/@ones-editor/ui/src/quick-menu/quick-menu-items.d.ts +1 -2
  27. package/@ones-editor/ui/src/quick-menu/types.d.ts +1 -1
  28. package/@ones-editor/ui-base/src/command-bar/manual-menu.d.ts +1 -1
  29. package/@ones-editor/ui-base/src/command-bar/types.d.ts +0 -1
  30. package/@ones-editor/ui-base/src/icons/index.d.ts +1 -2
  31. package/@ones-editor/ui-base/src/input/create-input.d.ts +2 -3
  32. package/@ones-editor/ui-base/src/popup/popup.d.ts +0 -1
  33. package/@ones-editor/versions/src/types.d.ts +1 -3
  34. package/@ones-editor/versions/src/version-dialog/size-limit-textarea.d.ts +1 -2
  35. package/@ones-editor/versions/src/version-dialog/version-list.d.ts +0 -1
  36. package/dist/index.d.ts +1 -1
  37. package/dist/index.js +198 -209
  38. package/dist/types.d.ts +0 -4
  39. package/package.json +1 -1
  40. package/@ones-editor/status/package.json +0 -7
  41. package/@ones-editor/status/src/dom/input.d.ts +0 -1
  42. package/@ones-editor/status/src/dom/overflow-tooltip-tag.d.ts +0 -10
  43. package/@ones-editor/status/src/dom/status-palette.d.ts +0 -6
  44. package/@ones-editor/status/src/index.d.ts +0 -4
  45. package/@ones-editor/status/src/locale/en-us.d.ts +0 -25
  46. package/@ones-editor/status/src/locale/index.d.ts +0 -1
  47. package/@ones-editor/status/src/locale/ja-jp.d.ts +0 -25
  48. package/@ones-editor/status/src/locale/zh-cn.d.ts +0 -25
  49. package/@ones-editor/status/src/status-box-command.d.ts +0 -7
  50. package/@ones-editor/status/src/status-box-data.d.ts +0 -5
  51. package/@ones-editor/status/src/status-box-editor.d.ts +0 -21
  52. package/@ones-editor/status/src/status-box.d.ts +0 -4
  53. package/@ones-editor/status/src/types.d.ts +0 -8
package/dist/types.d.ts CHANGED
@@ -56,9 +56,6 @@ export interface CreateOnesEditorOptions {
56
56
  lang?: i18n.LANGS;
57
57
  logLevel?: LogLevel;
58
58
  hideTitle?: boolean;
59
- placeholder?: {
60
- applyContentPlaceholder?: (editor: OnesEditor) => boolean;
61
- };
62
59
  onReauth?: (userId: string, docId: string, permission: OnesEditorUserPermission) => Promise<string>;
63
60
  user: {
64
61
  userId: string;
@@ -71,7 +68,6 @@ export interface CreateOnesEditorOptions {
71
68
  embeds?: Embed[];
72
69
  boxes?: Box[];
73
70
  blockHooks?: OnesEditorBlockHook[];
74
- textRenders?: OnesEditorBlockRenderer[];
75
71
  commandProviders?: OnesEditorCommandProvider[];
76
72
  };
77
73
  events?: EditorEvents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.17-beta.9",
3
+ "version": "1.1.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@ones-editor/status",
3
- "version": "1.0.0",
4
- "main": "./src/index.js",
5
- "license": "MIT",
6
- "types": "src/index.d.ts"
7
- }
@@ -1 +0,0 @@
1
- export declare function createStatusInput(parent: HTMLElement, defaultValue: string, onChange: ((e: Event) => void), onKeyDown: (e: KeyboardEvent, composing: boolean) => void): void;
@@ -1,10 +0,0 @@
1
- import { OnesEditor } from '../../../../@ones-editor/core';
2
- export declare class OverflowTooltipTag {
3
- private editor;
4
- constructor(editor: OnesEditor);
5
- private check;
6
- private onMouseOver;
7
- destroy(): void;
8
- static create(classes: string[], title: string): HTMLAnchorElement;
9
- static replaceTitleSpace(title: string): string;
10
- }
@@ -1,6 +0,0 @@
1
- import { StatusColor } from '../types';
2
- export declare function createPalette(): HTMLDivElement;
3
- export declare class StatusPalette {
4
- root: HTMLElement;
5
- changeColor: (color: StatusColor) => void;
6
- }
@@ -1,4 +0,0 @@
1
- import StatusBox from './status-box';
2
- import { StatusBoxCommand } from './status-box-command';
3
- import './locale';
4
- export { StatusBox, StatusBoxCommand, };
@@ -1,25 +0,0 @@
1
- declare const _default: {
2
- status: {
3
- empty: string;
4
- command: {
5
- name: string;
6
- };
7
- color: {
8
- red: string;
9
- yellow: string;
10
- green: string;
11
- blue: string;
12
- purple: string;
13
- grey: string;
14
- };
15
- colorDefaultTitle: {
16
- red: string;
17
- yellow: string;
18
- green: string;
19
- blue: string;
20
- purple: string;
21
- grey: string;
22
- };
23
- };
24
- };
25
- export default _default;
@@ -1 +0,0 @@
1
- export {};
@@ -1,25 +0,0 @@
1
- declare const _default: {
2
- status: {
3
- empty: string;
4
- command: {
5
- name: string;
6
- };
7
- color: {
8
- red: string;
9
- yellow: string;
10
- green: string;
11
- blue: string;
12
- purple: string;
13
- grey: string;
14
- };
15
- colorDefaultTitle: {
16
- red: string;
17
- yellow: string;
18
- green: string;
19
- blue: string;
20
- purple: string;
21
- grey: string;
22
- };
23
- };
24
- };
25
- export default _default;
@@ -1,25 +0,0 @@
1
- declare const _default: {
2
- status: {
3
- empty: string;
4
- command: {
5
- name: string;
6
- };
7
- color: {
8
- red: string;
9
- yellow: string;
10
- green: string;
11
- blue: string;
12
- purple: string;
13
- grey: string;
14
- };
15
- colorDefaultTitle: {
16
- red: string;
17
- yellow: string;
18
- green: string;
19
- blue: string;
20
- purple: string;
21
- grey: string;
22
- };
23
- };
24
- };
25
- export default _default;
@@ -1,7 +0,0 @@
1
- import { CommandItem, OnesEditor } from '../../../@ones-editor/core';
2
- export declare class StatusBoxCommand {
3
- static id: string;
4
- static get commands(): CommandItem[];
5
- static insertStatus(editor: OnesEditor, containerId: string, blockIndex: number): void;
6
- static insertEmptyBlockStatus(editor: OnesEditor, containerId: string, blockIndex: number): import("@ones-editor/core").BlockElement;
7
- }
@@ -1,5 +0,0 @@
1
- import { DocBlockTextOp } from '../../../@ones-editor/core';
2
- import { StatusBoxData, StatusColor } from './types';
3
- export declare function recordLastStatusBoxData(box: StatusBoxData): void;
4
- export declare function getLastStatusBoxTitle(color: StatusColor): string;
5
- export declare function createEmptyStatusBox(): DocBlockTextOp;
@@ -1,21 +0,0 @@
1
- import { BoxElement, OnesEditor } from '../../../@ones-editor/core';
2
- import { Popup } from '../../../@ones-editor/ui-base';
3
- import { StatusColor } from './types';
4
- import { StatusPalette } from './dom/status-palette';
5
- export declare class StatusBoxEditor {
6
- private editor;
7
- linkPopup: Popup | null;
8
- boxElement?: BoxElement;
9
- statusPalette: StatusPalette;
10
- isEditing: boolean;
11
- constructor(editor: OnesEditor);
12
- editorStatus: (boxElement: BoxElement) => void;
13
- focus(): void;
14
- handleShow: () => void;
15
- handClose: () => void;
16
- handleKeyDown: (e: KeyboardEvent, composing: boolean) => void;
17
- createPopupContent(title: string, color: StatusColor, subtle: boolean): HTMLDivElement;
18
- onColorChange: (e: Event) => void;
19
- onTitleChange: (e: Event) => void;
20
- destroy(): void;
21
- }
@@ -1,4 +0,0 @@
1
- import { Box } from '../../../@ones-editor/core';
2
- import './status-box.scss';
3
- declare const StatusBox: Box;
4
- export default StatusBox;
@@ -1,8 +0,0 @@
1
- import { DocBox } from '../../../@ones-editor/core';
2
- export declare const STATUS_COLORS: readonly ["Blue", "Grey", "Yellow", "Red", "Green", "Purple"];
3
- export type StatusColor = typeof STATUS_COLORS[number];
4
- export interface StatusBoxData extends DocBox {
5
- title: string;
6
- subtle: boolean;
7
- color: StatusColor;
8
- }