@infonomic/payload-alternative-lexical-editor 1.4.0 → 1.5.2
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,11 +1,11 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest';
|
|
2
|
-
import { createEmptyEditorState } from './createEmptyEditorState';
|
|
3
2
|
import { hasText } from './hasText';
|
|
3
|
+
import { createEmptyEditorState } from './createEmptyEditorState';
|
|
4
4
|
function rootState(children) {
|
|
5
5
|
return {
|
|
6
6
|
root: {
|
|
7
7
|
children,
|
|
8
|
-
direction:
|
|
8
|
+
direction: null,
|
|
9
9
|
format: '',
|
|
10
10
|
indent: 0,
|
|
11
11
|
type: 'root',
|
|
@@ -16,11 +16,13 @@ function rootState(children) {
|
|
|
16
16
|
function emptyParagraph(children = []) {
|
|
17
17
|
return {
|
|
18
18
|
children,
|
|
19
|
-
direction:
|
|
19
|
+
direction: null,
|
|
20
20
|
format: '',
|
|
21
21
|
indent: 0,
|
|
22
22
|
type: 'paragraph',
|
|
23
23
|
version: 1,
|
|
24
|
+
textFormat: 0,
|
|
25
|
+
textStyle: '',
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
28
|
function textNode(text) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasText.test.js","sourceRoot":"","sources":["../../src/validate/hasText.test.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"hasText.test.js","sourceRoot":"","sources":["../../src/validate/hasText.test.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;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IT",
|
|
6
6
|
"type": "module",
|
|
@@ -59,47 +59,47 @@
|
|
|
59
59
|
"react-dom": "^19.0.0"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@lexical/clipboard": "0.
|
|
63
|
-
"@lexical/code": "0.
|
|
64
|
-
"@lexical/hashtag": "0.
|
|
65
|
-
"@lexical/headless": "0.
|
|
66
|
-
"@lexical/html": "0.
|
|
67
|
-
"@lexical/link": "0.
|
|
68
|
-
"@lexical/list": "0.
|
|
69
|
-
"@lexical/mark": "0.
|
|
70
|
-
"@lexical/markdown": "0.
|
|
71
|
-
"@lexical/overflow": "0.
|
|
72
|
-
"@lexical/react": "0.
|
|
73
|
-
"@lexical/rich-text": "0.
|
|
74
|
-
"@lexical/selection": "0.
|
|
75
|
-
"@lexical/table": "0.
|
|
76
|
-
"@lexical/utils": "0.
|
|
62
|
+
"@lexical/clipboard": "0.41.0",
|
|
63
|
+
"@lexical/code": "0.41.0",
|
|
64
|
+
"@lexical/hashtag": "0.41.0",
|
|
65
|
+
"@lexical/headless": "0.41.0",
|
|
66
|
+
"@lexical/html": "0.41.0",
|
|
67
|
+
"@lexical/link": "0.41.0",
|
|
68
|
+
"@lexical/list": "0.41.0",
|
|
69
|
+
"@lexical/mark": "0.41.0",
|
|
70
|
+
"@lexical/markdown": "0.41.0",
|
|
71
|
+
"@lexical/overflow": "0.41.0",
|
|
72
|
+
"@lexical/react": "0.41.0",
|
|
73
|
+
"@lexical/rich-text": "0.41.0",
|
|
74
|
+
"@lexical/selection": "0.41.0",
|
|
75
|
+
"@lexical/table": "0.41.0",
|
|
76
|
+
"@lexical/utils": "0.41.0",
|
|
77
77
|
"classnames": "^2.5.1",
|
|
78
78
|
"cross-env": "^10.1.0",
|
|
79
|
-
"eslint": "^
|
|
79
|
+
"eslint": "^10.0.3",
|
|
80
80
|
"json-schema": "^0.4.0",
|
|
81
|
-
"lexical": "0.
|
|
82
|
-
"react-error-boundary": "^6.1.
|
|
81
|
+
"lexical": "0.41.0",
|
|
82
|
+
"react-error-boundary": "^6.1.1",
|
|
83
83
|
"uuid": "^13.0.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@biomejs/biome": "2.
|
|
87
|
-
"@payloadcms/translations": "3.
|
|
88
|
-
"@payloadcms/ui": "3.
|
|
86
|
+
"@biomejs/biome": "2.4.6",
|
|
87
|
+
"@payloadcms/translations": "^3.79.0",
|
|
88
|
+
"@payloadcms/ui": "^3.79.0",
|
|
89
89
|
"@types/json-schema": "^7.0.15",
|
|
90
|
-
"@types/node": "^25.
|
|
91
|
-
"@types/react": "19.2.
|
|
92
|
-
"@types/react-dom": "19.2.3",
|
|
93
|
-
"@vitejs/plugin-react": "^5.1.
|
|
90
|
+
"@types/node": "^25.4.0",
|
|
91
|
+
"@types/react": "^19.2.14",
|
|
92
|
+
"@types/react-dom": "^19.2.3",
|
|
93
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
94
94
|
"chokidar": "^5.0.0",
|
|
95
95
|
"chokidar-cli": "^3.0.0",
|
|
96
|
-
"dotenv": "^17.
|
|
97
|
-
"jsdom": "^28.
|
|
98
|
-
"next": "16.1.6",
|
|
96
|
+
"dotenv": "^17.3.1",
|
|
97
|
+
"jsdom": "^28.1.0",
|
|
98
|
+
"next": "^16.1.6",
|
|
99
99
|
"npm-run-all": "^4.1.5",
|
|
100
|
-
"payload": "3.
|
|
101
|
-
"react": "19.2.4",
|
|
102
|
-
"react-dom": "19.2.4",
|
|
100
|
+
"payload": "^3.79.0",
|
|
101
|
+
"react": "^19.2.4",
|
|
102
|
+
"react-dom": "^19.2.4",
|
|
103
103
|
"tsc-alias": "^1.8.16",
|
|
104
104
|
"tsx": "^4.21.0",
|
|
105
105
|
"typescript": "^5.9.3",
|