microboard-temp 0.1.3 → 0.1.5

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.
@@ -1,3 +1,4 @@
1
- export { Events, BoardEventBody } from "./Events";
2
- export { ItemOperation, EventsOperation, Operation } from "./EventsOperations";
3
- export { Command } from "./Command";
1
+ export { Events, createEvents } from "./Events";
2
+ export type { BoardEventBody } from "./Events";
3
+ export type { ItemOperation, EventsOperation, Operation } from "./EventsOperations";
4
+ export type { Command } from "./Command";
@@ -1,2 +1,11 @@
1
- import i18n from 'i18next';
1
+ import i18n from "i18next";
2
+ export declare const defaultNS = "default";
3
+ export declare const resources: {
4
+ en: {
5
+ default: {};
6
+ };
7
+ ru: {
8
+ default: {};
9
+ };
10
+ };
2
11
  export declare function initI18N(isNode?: boolean): typeof i18n;
@@ -0,0 +1 @@
1
+ export * from "./index";
@@ -0,0 +1 @@
1
+ export * from "./index";
package/package.json CHANGED
@@ -1,14 +1,24 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./dist/index.js",
11
- "require": "./dist/cjs/index.js",
10
+ "browser": {
11
+ "import": "./dist/esm/browser.js",
12
+ "require": "./dist/cjs/browser.js"
13
+ },
14
+ "node": {
15
+ "import": "./dist/esm/node.js",
16
+ "require": "./dist/cjs/node.js"
17
+ },
18
+ "default": {
19
+ "import": "./dist/esm/index.js",
20
+ "require": "./dist/cjs/index.js"
21
+ },
12
22
  "types": "./dist/types/index.d.ts"
13
23
  }
14
24
  },
@@ -16,10 +26,14 @@
16
26
  "dist"
17
27
  ],
18
28
  "scripts": {
19
- "build": "bun build ./src/index.ts --outdir ./dist --target browser --format esm --declaration",
20
- "build:cjs": "bun build ./src/index.ts --outdir ./dist/cjs --target browser --format cjs --declaration",
29
+ "build:browser:esm": "bun build ./src/browser-entry.ts --outdir ./dist/esm --target browser --format esm",
30
+ "build:browser:cjs": "bun build ./src/browser-entry.ts --outdir ./dist/cjs --target browser --format cjs",
31
+ "build:node:esm": "bun build ./src/node-entry.ts --outdir ./dist/esm --target node --format esm",
32
+ "build:node:cjs": "bun build ./src/node-entry.ts --outdir ./dist/cjs --target node --format cjs",
33
+ "build:index:esm": "bun build ./src/index.ts --outdir ./dist/esm --target browser --format esm",
34
+ "build:index:cjs": "bun build ./src/index.ts --outdir ./dist/cjs --target browser --format cjs",
21
35
  "build:types": "tsc --noEmit false --emitDeclarationOnly --declaration --declarationDir ./dist/types --skipLibCheck",
22
- "build:all": "bun run build && bun run build:cjs && bun run build:types",
36
+ "build": "bun run build:browser:esm && bun run build:browser:cjs && bun run build:node:esm && bun run build:node:cjs && bun run build:index:esm && bun run build:index:cjs && bun run build:types",
23
37
  "dev": "bun build ./src/index.ts --outdir ./dist --target browser --format esm --watch",
24
38
  "test": "bun test",
25
39
  "lint": "eslint src/**/*.{ts,tsx}"
@@ -47,7 +61,13 @@
47
61
  "slate-history": "^0.113.1",
48
62
  "unified": "^11.0.5",
49
63
  "remark-parse": "^11.0.0",
50
- "remark-slate": "^1.8.6"
64
+ "remark-slate": "^1.8.6",
65
+ "canvas": "^2.11.2",
66
+ "css.escape": "^1.5.1",
67
+ "i18next": "^23.4.4",
68
+ "i18next-browser-languagedetector": "^7.1.0",
69
+ "react-i18next": "^13.4.1",
70
+ "jsdom": "26.1.0"
51
71
  },
52
72
  "repository": {
53
73
  "type": "git",