microboard-temp 0.1.12 → 0.1.14
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.
- package/dist/cjs/browser.js +27 -73
- package/dist/cjs/canvas-ya3gk09w.node +0 -0
- package/dist/cjs/index.js +27 -1
- package/dist/cjs/node.js +11563 -3618
- package/dist/esm/browser.js +27 -73
- package/dist/esm/canvas-ya3gk09w.node +0 -0
- package/dist/esm/index.js +27 -1
- package/dist/esm/node.js +11563 -3618
- package/dist/types/Settings.d.ts +3 -2
- package/dist/types/api/MockDocumentFactory.d.ts +8 -0
- package/package.json +3 -3
- package/dist/cjs/canvas-dbaby9xg.node +0 -0
- package/dist/esm/canvas-dbaby9xg.node +0 -0
package/dist/types/Settings.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { DocumentFactory } from "./api/DocumentFactory";
|
|
2
1
|
import { Path2DFactory } from "./api/Path2DFactory";
|
|
3
2
|
import { BoardSnapshot } from "./Board";
|
|
3
|
+
import { BrowserDocumentFactory } from "./api/BrowserDocumentFactory";
|
|
4
4
|
import { BrowserPath2D } from "./api/BrowserPath2DFactory";
|
|
5
|
+
import { MockDocumentFactory } from "./api/MockDocumentFactory";
|
|
5
6
|
export interface Connection {
|
|
6
7
|
connectionId: number;
|
|
7
8
|
getCurrentUser: () => string;
|
|
@@ -117,7 +118,7 @@ type ReactEditorToSlatePoint = (editor: any, domNode: Node, offset: number, opti
|
|
|
117
118
|
export declare const conf: {
|
|
118
119
|
connection: Connection;
|
|
119
120
|
path2DFactory: typeof BrowserPath2D | typeof MockPath2D;
|
|
120
|
-
documentFactory:
|
|
121
|
+
documentFactory: BrowserDocumentFactory | MockDocumentFactory;
|
|
121
122
|
getDOMParser: GetDOMParser;
|
|
122
123
|
measureCtx: CanvasRenderingContext2D;
|
|
123
124
|
i18n: I18NextInterface;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DocumentFactory } from "./DocumentFactory";
|
|
2
|
+
export declare class MockDocumentFactory implements DocumentFactory {
|
|
3
|
+
private logPreInitializationCall;
|
|
4
|
+
createElement(tagName: string): HTMLElement;
|
|
5
|
+
createElementNS(namespace: string, tagName: string): Element;
|
|
6
|
+
caretPositionFromPoint(x: number, y: number, options?: CaretPositionFromPointOptions): CaretPosition | null;
|
|
7
|
+
caretRangeFromPoint(x: number, y: number): Range | null;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "microboard-temp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.14",
|
|
4
4
|
"description": "A flexible interactive whiteboard library",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"remark-slate": "^1.8.6",
|
|
66
66
|
"rehype-parse": "9.0.1",
|
|
67
67
|
"rehype-remark": "10.0.1",
|
|
68
|
-
"canvas": "^
|
|
68
|
+
"canvas": "^3.1.0",
|
|
69
69
|
"css.escape": "^1.5.1",
|
|
70
70
|
"i18next": "^23.4.4",
|
|
71
71
|
"i18next-browser-languagedetector": "^7.1.0",
|
|
72
72
|
"react-i18next": "^13.4.1",
|
|
73
|
-
"jsdom": "26.
|
|
73
|
+
"jsdom": "26.0.0",
|
|
74
74
|
"rimraf": "^6.0.1"
|
|
75
75
|
},
|
|
76
76
|
"repository": {
|
|
Binary file
|
|
Binary file
|