@ixo/editor 3.0.0-beta.24 → 3.0.0-beta.26

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/index.mjs CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  useCreateCollaborativeIxoEditor,
27
27
  useCreateIxoEditor,
28
28
  useTrackBlockFocus
29
- } from "./chunk-F53CG3GO.mjs";
29
+ } from "./chunk-K75BAQDR.mjs";
30
30
  import {
31
31
  buildAuthzFromProps,
32
32
  buildFlowNodeFromBlock,
@@ -38,7 +38,7 @@ import {
38
38
  isActorAuthorized,
39
39
  isNodeActive,
40
40
  validateCapabilityChain
41
- } from "./chunk-3RYZSIC2.mjs";
41
+ } from "./chunk-SUFKRSSM.mjs";
42
42
 
43
43
  // src/index.ts
44
44
  import { cloneDocument } from "@ixo/matrix-crdt";
@@ -23,21 +23,17 @@ import {
23
23
  StakeType,
24
24
  ValidatorActionType,
25
25
  blockSpecs,
26
- didToMatrixUserId,
27
- findOrCreateDMRoom,
28
26
  getAllHookedActionTypes,
29
27
  getBlockActions,
30
28
  getDMNotificationState,
31
29
  getEntity,
32
30
  getExtraSlashMenuItems,
33
- getHomeserver,
34
31
  getHookedActionType,
35
32
  initializeHookedActions,
36
33
  ixoGraphQLClient,
37
34
  registerBlockActions,
38
35
  registerBuiltInActionTypes,
39
36
  registerHookedActionType,
40
- sendDirectMessage,
41
37
  setDMNotificationRecord,
42
38
  shouldNotify,
43
39
  useBlockPresence,
@@ -52,8 +48,13 @@ import {
52
48
  usePanel,
53
49
  usePanelStore,
54
50
  useTrackBlockFocus
55
- } from "../chunk-F53CG3GO.mjs";
56
- import "../chunk-3RYZSIC2.mjs";
51
+ } from "../chunk-K75BAQDR.mjs";
52
+ import {
53
+ didToMatrixUserId,
54
+ findOrCreateDMRoom,
55
+ getHomeserver,
56
+ sendDirectMessage
57
+ } from "../chunk-SUFKRSSM.mjs";
57
58
  export {
58
59
  ApiRequestBlockSpec,
59
60
  AuthorizationTab,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixo/editor",
3
- "version": "3.0.0-beta.24",
3
+ "version": "3.0.0-beta.26",
4
4
  "description": "A custom BlockNote editor wrapper for IXO team",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -37,7 +37,8 @@
37
37
  "clean": "rimraf dist style.css",
38
38
  "prepare": "husky install && npm run clean && npm run build",
39
39
  "type-check": "tsc --noEmit",
40
- "test": "echo \"Error: no test specified\" && exit 1",
40
+ "test": "vitest run --passWithNoTests",
41
+ "test:watch": "vitest",
41
42
  "format": "prettier --write \"src/**/*.{ts,tsx}\"",
42
43
  "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
43
44
  "lint-staged": "lint-staged"
@@ -90,6 +91,9 @@
90
91
  "@semantic-release/git": "^10.0.1",
91
92
  "@semantic-release/npm": "^11.0.2",
92
93
  "@semantic-release/release-notes-generator": "^12.1.0",
94
+ "@testing-library/jest-dom": "^6.6.3",
95
+ "@testing-library/react": "^16.3.2",
96
+ "@testing-library/react-hooks": "^8.0.1",
93
97
  "@types/react": "^18.2.0",
94
98
  "@types/react-dom": "^18.2.0",
95
99
  "@typescript-eslint/eslint-plugin": "^8.44.1",
@@ -99,7 +103,9 @@
99
103
  "eslint-plugin-jsx-a11y": "^6.10.2",
100
104
  "eslint-plugin-react": "^7.37.5",
101
105
  "eslint-plugin-react-hooks": "^5.2.0",
106
+ "happy-dom": "^18.0.1",
102
107
  "husky": "^8.0.3",
108
+ "jsdom": "^28.1.0",
103
109
  "lint-staged": "^16.2.0",
104
110
  "nodemon": "^3.1.11",
105
111
  "prettier": "^3.2.5",
@@ -109,7 +115,8 @@
109
115
  "rimraf": "^5.0.0",
110
116
  "semantic-release": "^22.0.12",
111
117
  "tsup": "^8.5.0",
112
- "typescript": "^5.0.0"
118
+ "typescript": "^5.0.0",
119
+ "vitest": "^4.0.18"
113
120
  },
114
121
  "repository": {
115
122
  "type": "git",