@textbus/xnote 0.0.5 → 0.0.6

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 (65) hide show
  1. package/bundles/components/button/button.d.ts +2 -3
  2. package/bundles/components/component-toolbar/component-toolbar.d.ts +1 -1
  3. package/bundles/components/divider/divider.d.ts +1 -1
  4. package/bundles/components/drag-resize/drag-resize.d.ts +1 -1
  5. package/bundles/components/dropdown/dropdown-menu.d.ts +1 -1
  6. package/bundles/components/dropdown/dropdown.d.ts +1 -1
  7. package/bundles/components/keymap/keymap.d.ts +2 -1
  8. package/bundles/components/menu-heading/menu-heading.d.ts +1 -1
  9. package/bundles/components/menu-item/menu-item.d.ts +1 -1
  10. package/bundles/components/popup/popup.d.ts +1 -1
  11. package/bundles/components/toolbar-item/toolbar-item.d.ts +1 -1
  12. package/bundles/fonts/textbus.svg +8 -2
  13. package/bundles/fonts/textbus.ttf +0 -0
  14. package/bundles/fonts/textbus.woff +0 -0
  15. package/bundles/index.css +1 -1
  16. package/bundles/index.esm.css +1 -1
  17. package/bundles/index.esm.js +904 -377
  18. package/bundles/index.js +908 -376
  19. package/bundles/plugins/_common/_api.d.ts +1 -0
  20. package/bundles/plugins/_common/attr.tool.d.ts +1 -1
  21. package/bundles/plugins/_common/block.tool.d.ts +1 -1
  22. package/bundles/plugins/_common/bold.tool.d.ts +1 -1
  23. package/bundles/plugins/_common/code.tool.d.ts +1 -1
  24. package/bundles/plugins/_common/color.tool.d.ts +1 -1
  25. package/bundles/plugins/_common/font-family.tool.d.ts +1 -1
  26. package/bundles/plugins/_common/font-size.tool.d.ts +1 -1
  27. package/bundles/plugins/_common/italic.tool.d.ts +1 -1
  28. package/bundles/plugins/_common/link.tool.d.ts +1 -1
  29. package/bundles/plugins/_common/strike-through.tool.d.ts +1 -1
  30. package/bundles/plugins/_common/table/_api.d.ts +4 -0
  31. package/bundles/plugins/_common/table/cell-align.tool.d.ts +1 -0
  32. package/bundles/plugins/_common/table/cell-background.tool.d.ts +1 -0
  33. package/bundles/plugins/_common/table/merge-cells.tool.d.ts +1 -0
  34. package/bundles/plugins/_common/table/split-cells.tool.d.ts +1 -0
  35. package/bundles/plugins/_common/underline.tool.d.ts +1 -1
  36. package/bundles/plugins/left-toolbar/insert-tool.d.ts +1 -1
  37. package/bundles/plugins/link-jump/link-jump.d.ts +1 -1
  38. package/bundles/plugins/toolbar/toolbar.d.ts +1 -1
  39. package/bundles/textbus/attributes/_api.d.ts +1 -0
  40. package/bundles/textbus/attributes/cell-align.attr.d.ts +4 -0
  41. package/bundles/textbus/components/at/at-component.view.d.ts +1 -1
  42. package/bundles/textbus/components/blockqoute/blockquote.component.d.ts +1 -1
  43. package/bundles/textbus/components/highlight-box/highlight-box.component.d.ts +1 -1
  44. package/bundles/textbus/components/image/image.component.d.ts +1 -1
  45. package/bundles/textbus/components/katex/katex.component.d.ts +1 -1
  46. package/bundles/textbus/components/list/list.component.d.ts +1 -1
  47. package/bundles/textbus/components/paragraph/paragraph.component.d.ts +1 -1
  48. package/bundles/textbus/components/root/root.component.d.ts +1 -1
  49. package/bundles/textbus/components/source-code/source-code.component.d.ts +1 -1
  50. package/bundles/textbus/components/step/step-component.view.d.ts +1 -1
  51. package/bundles/textbus/components/table/components/left-bar.d.ts +1 -1
  52. package/bundles/textbus/components/table/components/resize-column.d.ts +1 -1
  53. package/bundles/textbus/components/table/components/resize-row.d.ts +1 -1
  54. package/bundles/textbus/components/table/components/scroll.d.ts +1 -1
  55. package/bundles/textbus/components/table/components/selection-mask.d.ts +1 -1
  56. package/bundles/textbus/components/table/components/top-bar.d.ts +1 -1
  57. package/bundles/textbus/components/table/table-component.view.d.ts +2 -3
  58. package/bundles/textbus/components/table/table.component.d.ts +30 -7
  59. package/bundles/textbus/components/table/table.service.d.ts +0 -8
  60. package/bundles/textbus/components/table/tools/complete.d.ts +19 -0
  61. package/bundles/textbus/components/table/tools/merge.d.ts +23 -0
  62. package/bundles/textbus/components/timeline/timeline-component.view.d.ts +1 -1
  63. package/bundles/textbus/components/todolist/todolist.component.d.ts +1 -1
  64. package/bundles/textbus/components/video/video.component.d.ts +1 -1
  65. package/package.json +13 -10
@@ -9,3 +9,4 @@ export * from './italic.tool';
9
9
  export * from './link.tool';
10
10
  export * from './strike-through.tool';
11
11
  export * from './underline.tool';
12
+ export * from './table/_api';
@@ -8,4 +8,4 @@ export interface AttrToolProps extends Props {
8
8
  slot?: Slot | null;
9
9
  applyBefore?(): void;
10
10
  }
11
- export declare function AttrTool(props: AttrToolProps): () => any;
11
+ export declare function AttrTool(props: AttrToolProps): () => import("@viewfly/core").JSXNode;
@@ -1 +1 @@
1
- export declare function BlockTool(): () => any;
1
+ export declare function BlockTool(): () => import("@viewfly/core").JSXNode;
@@ -1 +1 @@
1
- export declare function BoldTool(): () => any;
1
+ export declare function BoldTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare function CodeTool(): () => any;
1
+ export declare function CodeTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -8,4 +8,4 @@ export interface ColorToolProps extends Props {
8
8
  slot?: Slot | null;
9
9
  applyBefore?(): void;
10
10
  }
11
- export declare function ColorTool(props: ColorToolProps): () => any;
11
+ export declare function ColorTool(props: ColorToolProps): () => import("@viewfly/core").JSXNode;
@@ -1,2 +1,2 @@
1
1
  export declare const isSupportFont: (fontName: string) => boolean;
2
- export declare function FontFamilyTool(): () => any;
2
+ export declare function FontFamilyTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare function FontSizeTool(): () => any;
1
+ export declare function FontSizeTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare function ItalicTool(): () => any;
1
+ export declare function ItalicTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export interface LinkToolProps {
2
2
  hideToolbar?(): void;
3
3
  }
4
- export declare function LinkTool(props: LinkToolProps): () => any;
4
+ export declare function LinkTool(props: LinkToolProps): () => import("@viewfly/core").JSXNode;
@@ -1 +1 @@
1
- export declare function StrikeThroughTool(): () => any;
1
+ export declare function StrikeThroughTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './cell-align.tool';
2
+ export * from './cell-background.tool';
3
+ export * from './merge-cells.tool';
4
+ export * from './split-cells.tool';
@@ -0,0 +1 @@
1
+ export declare function CellAlignTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function CellBackgroundTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function MergeCellsTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function SplitCellsTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare function UnderlineTool(): () => any;
1
+ export declare function UnderlineTool(): () => import("@viewfly/core/jsx-runtime").JSX.Element;
@@ -4,4 +4,4 @@ export interface InsertToolProps {
4
4
  hideTitle?: boolean;
5
5
  replace?: boolean;
6
6
  }
7
- export declare function InsertTool(props: InsertToolProps): () => any;
7
+ export declare function InsertTool(props: InsertToolProps): () => import("@viewfly/core").JSXNode;
@@ -1,4 +1,4 @@
1
1
  export declare function LinkJump(): {
2
2
  $portalHost: HTMLElement;
3
- $render: () => import("@viewfly/core").ViewFlyNode<string | import("@viewfly/core").ComponentSetup<any>>;
3
+ $render: () => import("@viewfly/core").JSXNode;
4
4
  };
@@ -1 +1 @@
1
- export declare const Toolbar: () => () => any;
1
+ export declare const Toolbar: () => () => import("@viewfly/core").JSXNode;
@@ -1,3 +1,4 @@
1
+ export * from './cell-align.attr';
1
2
  export * from './heading.attr';
2
3
  export * from './text-align.attr';
3
4
  export * from './text-indent.attr';
@@ -0,0 +1,4 @@
1
+ import { Attribute } from '@textbus/core';
2
+ import { AttributeLoader } from '@textbus/platform-browser';
3
+ export declare const cellAlignAttr: Attribute<string>;
4
+ export declare const cellAlignAttrLoader: AttributeLoader<string>;
@@ -2,5 +2,5 @@ import { ViewComponentProps } from '@textbus/adapter-viewfly';
2
2
  import { ComponentLoader } from '@textbus/platform-browser';
3
3
  import { AtComponent } from './at.component';
4
4
  import './at.component.scss';
5
- export declare function AtComponentView(props: ViewComponentProps<AtComponent>): () => any;
5
+ export declare function AtComponentView(props: ViewComponentProps<AtComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
6
6
  export declare const atComponentLoader: ComponentLoader;
@@ -16,5 +16,5 @@ export declare class BlockquoteComponent extends Component<BlockquoteComponentSt
16
16
  }
17
17
  export declare function toBlockquote(textbus: Textbus): void;
18
18
  export declare function registerBlockquoteShortcut(textbus: Textbus): void;
19
- export declare function BlockquoteView(props: ViewComponentProps<BlockquoteComponent>): () => any;
19
+ export declare function BlockquoteView(props: ViewComponentProps<BlockquoteComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
20
20
  export declare const blockquoteComponentLoader: ComponentLoader;
@@ -15,5 +15,5 @@ export declare class HighlightBoxComponent extends Component<HighlightBoxCompone
15
15
  getSlots(): Slot[];
16
16
  setup(): void;
17
17
  }
18
- export declare function HighlightBoxView(props: ViewComponentProps<HighlightBoxComponent>): () => any;
18
+ export declare function HighlightBoxView(props: ViewComponentProps<HighlightBoxComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
19
19
  export declare const highlightBoxComponentLoader: ComponentLoader;
@@ -13,5 +13,5 @@ export declare class ImageComponent extends Component<ImageComponentState> {
13
13
  static fromJSON(textbus: Textbus, json: ComponentStateLiteral<ImageComponentState>): ImageComponent;
14
14
  getSlots(): Slot[];
15
15
  }
16
- export declare function ImageView(props: ViewComponentProps<ImageComponent>): () => any;
16
+ export declare function ImageView(props: ViewComponentProps<ImageComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
17
17
  export declare const imageComponentLoader: ComponentLoader;
@@ -12,5 +12,5 @@ export declare class KatexComponent extends Component<KatexComponentState> {
12
12
  constructor(textbus: Textbus, state?: KatexComponentState);
13
13
  getSlots(): Slot[];
14
14
  }
15
- export declare function KatexComponentView(props: ViewComponentProps<KatexComponent>): () => any;
15
+ export declare function KatexComponentView(props: ViewComponentProps<KatexComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
16
16
  export declare const katexComponentLoader: ComponentLoader;
@@ -17,5 +17,5 @@ export declare class ListComponent extends Component<ListComponentState> {
17
17
  getSlots(): Slot[];
18
18
  setup(): void;
19
19
  }
20
- export declare function ListComponentView(props: ViewComponentProps<ListComponent>): () => any;
20
+ export declare function ListComponentView(props: ViewComponentProps<ListComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
21
21
  export declare const listComponentLoader: ComponentLoader;
@@ -13,6 +13,6 @@ export declare class ParagraphComponent extends Component<ParagraphComponentStat
13
13
  getSlots(): Slot[];
14
14
  setup(): void;
15
15
  }
16
- export declare function ParagraphView(props: ViewComponentProps<ParagraphComponent>): () => any;
16
+ export declare function ParagraphView(props: ViewComponentProps<ParagraphComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
17
17
  export declare const paragraphComponentLoader: ComponentLoader;
18
18
  export declare function deltaToBlock(delta: DeltaLite, textbus: Textbus): Component<import("@textbus/core").State>[];
@@ -14,5 +14,5 @@ export declare class RootComponent extends Component<RootComponentState> {
14
14
  setup(): void;
15
15
  afterCheck(): void;
16
16
  }
17
- export declare function RootView(props: ViewComponentProps<RootComponent>): () => any;
17
+ export declare function RootView(props: ViewComponentProps<RootComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
18
18
  export declare const rootComponentLoader: ComponentLoader;
@@ -33,5 +33,5 @@ export declare class SourceCodeComponent extends Component<SourceCodeComponentSt
33
33
  cancelEmphasize: () => void;
34
34
  emphasize: () => void;
35
35
  }
36
- export declare function SourceCodeView(props: ViewComponentProps<SourceCodeComponent>): () => any;
36
+ export declare function SourceCodeView(props: ViewComponentProps<SourceCodeComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
37
37
  export declare const sourceCodeComponentLoader: ComponentLoader;
@@ -2,5 +2,5 @@ import { ViewComponentProps } from '@textbus/adapter-viewfly';
2
2
  import { ComponentLoader } from '@textbus/platform-browser';
3
3
  import { StepComponent } from './step.component';
4
4
  import './step.component.scss';
5
- export declare function StepComponentView(props: ViewComponentProps<StepComponent>): () => any;
5
+ export declare function StepComponentView(props: ViewComponentProps<StepComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
6
6
  export declare const stepComponentLoader: ComponentLoader;
@@ -5,4 +5,4 @@ export interface TopBarProps {
5
5
  isFocus: Signal<boolean>;
6
6
  component: TableComponent;
7
7
  }
8
- export declare function LeftBar(props: TopBarProps): () => any;
8
+ export declare function LeftBar(props: TopBarProps): () => import("@viewfly/core").JSXNode;
@@ -6,4 +6,4 @@ export interface ResizeColumnProps {
6
6
  layoutWidth: Signal<number[]>;
7
7
  onActiveStateChange(isActive: boolean): void;
8
8
  }
9
- export declare function ResizeColumn(props: ResizeColumnProps): () => any;
9
+ export declare function ResizeColumn(props: ResizeColumnProps): () => import("@viewfly/core").JSXNode;
@@ -4,4 +4,4 @@ export interface ResizeRowProps {
4
4
  tableRef: StaticRef<HTMLTableElement>;
5
5
  component: TableComponent;
6
6
  }
7
- export declare function ResizeRow(props: ResizeRowProps): () => any;
7
+ export declare function ResizeRow(props: ResizeRowProps): () => import("@viewfly/core").JSXNode;
@@ -2,4 +2,4 @@ import { Props, Signal } from '@viewfly/core';
2
2
  export interface ScrollProps extends Props {
3
3
  isFocus: Signal<boolean>;
4
4
  }
5
- export declare function Scroll(props: ScrollProps): () => any;
5
+ export declare function Scroll(props: ScrollProps): () => import("@viewfly/core").JSXNode;
@@ -10,4 +10,4 @@ export interface SelectionMaskProps {
10
10
  component: TableComponent;
11
11
  tableRef: StaticRef<HTMLTableElement>;
12
12
  }
13
- export declare function SelectionMask(props: SelectionMaskProps): () => any;
13
+ export declare function SelectionMask(props: SelectionMaskProps): () => import("@viewfly/core").JSXNode;
@@ -5,4 +5,4 @@ export interface TopBarProps {
5
5
  component: TableComponent;
6
6
  layoutWidth: Signal<number[]>;
7
7
  }
8
- export declare function TopBar(props: TopBarProps): () => any;
8
+ export declare function TopBar(props: TopBarProps): () => import("@viewfly/core").JSXNode;
@@ -1,7 +1,6 @@
1
1
  import { ViewComponentProps } from '@textbus/adapter-viewfly';
2
2
  import { ComponentLoader } from '@textbus/platform-browser';
3
3
  import './table.component.scss';
4
- import { TableCellConfig, TableComponent } from './table.component';
5
- export declare const TableComponentView: (props: ViewComponentProps<TableComponent>) => () => any;
4
+ import { TableComponent } from './table.component';
5
+ export declare const TableComponentView: (props: ViewComponentProps<TableComponent>) => () => import("@viewfly/core/jsx-runtime").JSX.Element;
6
6
  export declare const tableComponentLoader: ComponentLoader;
7
- export declare function autoComplete(table: TableCellConfig[][]): TableCellConfig[][];
@@ -1,30 +1,53 @@
1
1
  import { Component, ComponentStateLiteral, ContentType, Slot, Subject, Textbus } from '@textbus/core';
2
2
  import { TableSelection } from './components/selection-mask';
3
- export interface TableCellConfig {
4
- rowspan: number;
5
- colspan: number;
3
+ import { Rectangle, RenderRow } from './tools/merge';
4
+ export interface Cell {
5
+ id: string;
6
6
  slot: Slot;
7
7
  }
8
8
  export interface Row {
9
9
  height: number;
10
- cells: TableCellConfig[];
10
+ cells: Cell[];
11
11
  }
12
+ export type TableComponentMergeCellConfig = Record<string, string>;
12
13
  export interface TableComponentState {
13
- layoutWidth: number[];
14
+ columnsConfig: number[];
14
15
  rows: Row[];
16
+ mergeConfig: TableComponentMergeCellConfig;
15
17
  }
16
18
  export declare class TableComponent extends Component<TableComponentState> {
17
19
  static componentName: string;
18
20
  static type: ContentType;
19
21
  static fromJSON(textbus: Textbus, json: ComponentStateLiteral<TableComponentState>): TableComponent;
20
22
  private selection;
23
+ private commander;
21
24
  constructor(textbus: Textbus, state?: TableComponentState);
22
25
  focus: Subject<boolean>;
23
26
  tableSelection: import("@viewfly/core").Signal<TableSelection | null>;
27
+ ignoreSelectionChanges: boolean;
28
+ private normalizedData;
24
29
  getSlots(): Slot[];
30
+ mergeCellBySelection(): void;
31
+ splitCellsBySelection(): void;
32
+ getMaxRectangle(startSlot: Slot, endSlot: Slot): Rectangle | null;
33
+ getSelectedNormalizedSlots(): {
34
+ row: Row;
35
+ cells: import("./tools/merge").RenderCell[];
36
+ }[] | null;
37
+ getSelectedRect(): Rectangle | null;
38
+ getSelectedNormalizedSlotsByRectangle(rectangle: Rectangle): {
39
+ row: Row;
40
+ cells: import("./tools/merge").RenderCell[];
41
+ }[];
42
+ getCellBySlot(slot: Slot): Cell | null;
43
+ getNormalizedData(): RenderRow[];
44
+ selectRow(startIndex: number, endIndex?: number): void;
45
+ selectColumn(startIndex: number, endIndex?: number): void;
46
+ private getMergedRectangles;
47
+ private getCoordinateById;
25
48
  setup(): void;
26
- deleteColumn(index: number): void;
27
- deleteRow(index: number): void;
49
+ deleteColumns(): void;
50
+ deleteRows(): void;
28
51
  insertColumn(index: number): void;
29
52
  insertRow(index: number): void;
30
53
  }
@@ -2,13 +2,5 @@ import { Subject } from '@textbus/core';
2
2
  export declare class TableService {
3
3
  onInsertRowBefore: Subject<number | null>;
4
4
  onInsertColumnBefore: Subject<number | null>;
5
- onSelectColumns: Subject<{
6
- start: number;
7
- end: number;
8
- } | null>;
9
- onSelectRows: Subject<{
10
- start: number;
11
- end: number;
12
- } | null>;
13
5
  onScroll: Subject<number>;
14
6
  }
@@ -0,0 +1,19 @@
1
+ import { Slot } from '@textbus/core';
2
+ import { TableComponentMergeCellConfig } from '../table.component';
3
+ export interface TableCellConfig {
4
+ rowspan: number;
5
+ colspan: number;
6
+ slot: Slot;
7
+ id: string;
8
+ }
9
+ /**
10
+ * 修复不规范表格,并补全空位
11
+ * @param table
12
+ */
13
+ export declare function autoComplete(table: TableCellConfig[][]): {
14
+ mergedConfig: TableComponentMergeCellConfig;
15
+ table: {
16
+ id: string;
17
+ slot: Slot;
18
+ }[][];
19
+ };
@@ -0,0 +1,23 @@
1
+ import { Cell, Row } from '../table.component';
2
+ export declare class Rectangle {
3
+ x1: number;
4
+ y1: number;
5
+ x2: number;
6
+ y2: number;
7
+ constructor(x1: number, y1: number, x2: number, y2: number);
8
+ intersects(other: Rectangle): boolean;
9
+ merge(other: Rectangle): Rectangle;
10
+ }
11
+ export declare function findNonIntersectingRectangles(rectangles: Rectangle[]): Rectangle[];
12
+ export declare function getMaxRectangle(start: Rectangle, rectangles: Rectangle[]): Rectangle;
13
+ export interface RenderRow {
14
+ row: Row;
15
+ cells: RenderCell[];
16
+ }
17
+ export interface RenderCell {
18
+ rowspan: number;
19
+ colspan: number;
20
+ visible: boolean;
21
+ raw: Cell;
22
+ }
23
+ export declare function applyRectangles(rows: Row[], rectangles: Rectangle[]): RenderRow[];
@@ -2,5 +2,5 @@ import { ViewComponentProps } from '@textbus/adapter-viewfly';
2
2
  import { ComponentLoader } from '@textbus/platform-browser';
3
3
  import { TimelineComponent } from './timeline.component';
4
4
  import './timeline.component.scss';
5
- export declare function TimelineComponentView(props: ViewComponentProps<TimelineComponent>): () => any;
5
+ export declare function TimelineComponentView(props: ViewComponentProps<TimelineComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
6
6
  export declare const timelineComponentLoader: ComponentLoader;
@@ -14,5 +14,5 @@ export declare class TodolistComponent extends Component<TodolistComponentState>
14
14
  getSlots(): Slot[];
15
15
  setup(): void;
16
16
  }
17
- export declare function TodolistView(props: ViewComponentProps<TodolistComponent>): () => any;
17
+ export declare function TodolistView(props: ViewComponentProps<TodolistComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
18
18
  export declare const todolistComponentLoader: ComponentLoader;
@@ -13,5 +13,5 @@ export declare class VideoComponent extends Component<VideoComponentState> {
13
13
  static fromJSON(textbus: Textbus, json: ComponentStateLiteral<VideoComponentState>): VideoComponent;
14
14
  getSlots(): never[];
15
15
  }
16
- export declare function VideoView(props: ViewComponentProps<VideoComponent>): () => any;
16
+ export declare function VideoView(props: ViewComponentProps<VideoComponent>): () => import("@viewfly/core/jsx-runtime").JSX.Element;
17
17
  export declare const videoComponentLoader: ComponentLoader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textbus/xnote",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "A high-performance rich text editor that supports multiplayer online collaboration.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -27,22 +27,24 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@tanbo/color": "^0.1.1",
30
- "@textbus/adapter-viewfly": "^4.0.3",
31
- "@textbus/collaborate": "^4.0.3",
32
- "@textbus/core": "^4.0.3",
33
- "@textbus/platform-browser": "^4.0.3",
34
- "@viewfly/core": "^1.0.2",
35
- "@viewfly/hooks": "^1.0.2",
36
- "@viewfly/platform-browser": "^1.0.3",
37
- "@viewfly/scoped-css": "^1.0.2",
30
+ "@textbus/adapter-viewfly": "^4.1.0",
31
+ "@textbus/collaborate": "^4.1.0",
32
+ "@textbus/core": "^4.1.0",
33
+ "@textbus/platform-browser": "^4.1.0",
34
+ "@viewfly/core": "^1.0.5",
35
+ "@viewfly/hooks": "^1.0.5",
36
+ "@viewfly/platform-browser": "^1.0.5",
37
+ "@viewfly/scoped-css": "^1.0.5",
38
38
  "highlight.js": "^11.9.0",
39
- "katex": "^0.16.10"
39
+ "katex": "^0.16.10",
40
+ "uuid": "^10.0.0"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@babel/core": "^7.16.5",
43
44
  "@babel/preset-env": "^7.16.5",
44
45
  "@rollup/plugin-commonjs": "^25.0.7",
45
46
  "@types/jest": "^29.5.2",
47
+ "@types/uuid": "^10.0.0",
46
48
  "@typescript-eslint/eslint-plugin": "^5.8.0",
47
49
  "@typescript-eslint/parser": "^5.8.0",
48
50
  "@viewfly/devtools": "^1.0.2",
@@ -60,6 +62,7 @@
60
62
  "ip": "^2.0.1",
61
63
  "less": "^4.1.3",
62
64
  "less-loader": "^11.1.3",
65
+ "lerna": "^8.1.8",
63
66
  "mini-css-extract-plugin": "^2.4.5",
64
67
  "postcss": "^8.4.38",
65
68
  "postcss-loader": "^7.3.3",