@lumir-company/editor 0.4.11 → 0.4.13
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/README.md +1511 -1511
- package/dist/api/link-preview.js.map +1 -1
- package/dist/api/link-preview.mjs.map +1 -1
- package/dist/index.js +473 -70
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +482 -51
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +40 -4
- package/package.json +94 -93
package/dist/style.css
CHANGED
|
@@ -75,10 +75,18 @@
|
|
|
75
75
|
* BlockNote `.bn-default-styles { font-size: 16px }` + `p { font-size: inherit }` 때문에
|
|
76
76
|
* `p.bn-inline-content`에 명시적으로 14px (`.bn-block-content`에 data-type이 붙음)
|
|
77
77
|
*/
|
|
78
|
-
.lumirEditor
|
|
79
|
-
.
|
|
80
|
-
|
|
81
|
-
.lumirEditor
|
|
78
|
+
.lumirEditor
|
|
79
|
+
.bn-block-content[data-content-type="paragraph"]
|
|
80
|
+
p.bn-inline-content,
|
|
81
|
+
.lumirEditor
|
|
82
|
+
.bn-block-content[data-content-type="numberedListItem"]
|
|
83
|
+
p.bn-inline-content,
|
|
84
|
+
.lumirEditor
|
|
85
|
+
.bn-block-content[data-content-type="bulletListItem"]
|
|
86
|
+
p.bn-inline-content,
|
|
87
|
+
.lumirEditor
|
|
88
|
+
.bn-block-content[data-content-type="checkListItem"]
|
|
89
|
+
p.bn-inline-content {
|
|
82
90
|
font-size: 14px;
|
|
83
91
|
}
|
|
84
92
|
|
|
@@ -1003,3 +1011,31 @@
|
|
|
1003
1011
|
background-color: #292524 !important;
|
|
1004
1012
|
border-color: #44403c !important;
|
|
1005
1013
|
}
|
|
1014
|
+
|
|
1015
|
+
/* 인용·코드·테이블 본문 14px */
|
|
1016
|
+
.lumirEditor .bn-block-content[data-content-type="quote"] p.bn-inline-content,
|
|
1017
|
+
.lumirEditor [data-content-type="quote"] blockquote {
|
|
1018
|
+
font-size: 14px;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
.lumirEditor .bn-block-content[data-content-type="codeBlock"] pre,
|
|
1022
|
+
.lumirEditor .bn-block-content[data-content-type="codeBlock"] pre code {
|
|
1023
|
+
font-size: 14px;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.lumirEditor .bn-editor [data-content-type="table"] th,
|
|
1027
|
+
.lumirEditor .bn-editor [data-content-type="table"] td,
|
|
1028
|
+
.lumirEditor .bn-editor [data-content-type="table"] p.bn-inline-content {
|
|
1029
|
+
font-size: 14px;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
/* 테이블 셀 세로 정렬 (VerticalAlignmentExtension) */
|
|
1033
|
+
.lumirEditor .bn-editor [data-content-type="table"] td[data-vertical-alignment="middle"],
|
|
1034
|
+
.lumirEditor .bn-editor [data-content-type="table"] th[data-vertical-alignment="middle"] {
|
|
1035
|
+
vertical-align: middle;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
.lumirEditor .bn-editor [data-content-type="table"] td[data-vertical-alignment="bottom"],
|
|
1039
|
+
.lumirEditor .bn-editor [data-content-type="table"] th[data-vertical-alignment="bottom"] {
|
|
1040
|
+
vertical-align: bottom;
|
|
1041
|
+
}
|
package/package.json
CHANGED
|
@@ -1,93 +1,94 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lumir-company/editor",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "Image-only BlockNote rich text editor with S3 upload, customizable filename transforms, UUID support, and loading spinner",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"editor",
|
|
8
|
-
"blocknote",
|
|
9
|
-
"rich-text",
|
|
10
|
-
"react",
|
|
11
|
-
"typescript",
|
|
12
|
-
"image-editor",
|
|
13
|
-
"wysiwyg",
|
|
14
|
-
"s3-upload",
|
|
15
|
-
"loading-spinner",
|
|
16
|
-
"filename-transform",
|
|
17
|
-
"uuid",
|
|
18
|
-
"file-upload",
|
|
19
|
-
"lumir"
|
|
20
|
-
],
|
|
21
|
-
"main": "dist/index.js",
|
|
22
|
-
"module": "dist/index.mjs",
|
|
23
|
-
"types": "dist/index.d.ts",
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">=18"
|
|
26
|
-
},
|
|
27
|
-
"repository": {
|
|
28
|
-
"type": "git",
|
|
29
|
-
"url": "git+https://github.com/lumir-company/editor.git"
|
|
30
|
-
},
|
|
31
|
-
"homepage": "https://github.com/lumir-company/editor#readme",
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/lumir-company/editor/issues"
|
|
34
|
-
},
|
|
35
|
-
"exports": {
|
|
36
|
-
".": {
|
|
37
|
-
"types": "./dist/index.d.ts",
|
|
38
|
-
"import": "./dist/index.mjs",
|
|
39
|
-
"require": "./dist/index.js"
|
|
40
|
-
},
|
|
41
|
-
"./style.css": "./dist/style.css",
|
|
42
|
-
"./api/link-preview": {
|
|
43
|
-
"types": "./dist/api/link-preview.d.ts",
|
|
44
|
-
"import": "./dist/api/link-preview.mjs",
|
|
45
|
-
"require": "./dist/api/link-preview.js"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"files": [
|
|
49
|
-
"dist"
|
|
50
|
-
],
|
|
51
|
-
"license": "MIT",
|
|
52
|
-
"publishConfig": {
|
|
53
|
-
"access": "public"
|
|
54
|
-
},
|
|
55
|
-
"scripts": {
|
|
56
|
-
"build": "tsup src/index.ts src/api/link-preview.ts --dts --format cjs,esm --sourcemap && node scripts/copy-style.js",
|
|
57
|
-
"dev": "tsup src/index.ts src/api/link-preview.ts --dts --format cjs,esm --sourcemap --watch --onSuccess \"node scripts/copy-style.js\"",
|
|
58
|
-
"type-check": "tsc --noEmit",
|
|
59
|
-
"test": "vitest run",
|
|
60
|
-
"test:watch": "vitest",
|
|
61
|
-
"test:coverage": "vitest run --coverage",
|
|
62
|
-
"test:ui": "vitest --ui",
|
|
63
|
-
"prepublishOnly": "npm run type-check && npm run build"
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"react": ">=18.0.0",
|
|
67
|
-
"react-dom": ">=18.0.0"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"@blocknote/
|
|
72
|
-
"@blocknote/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"@types/react
|
|
79
|
-
"react": "^18.2.0",
|
|
80
|
-
"react
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"@vitest/
|
|
84
|
-
"@
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"@testing-library/
|
|
88
|
-
"@testing-library/
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@lumir-company/editor",
|
|
3
|
+
"version": "0.4.13",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Image-only BlockNote rich text editor with S3 upload, customizable filename transforms, UUID support, and loading spinner",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"editor",
|
|
8
|
+
"blocknote",
|
|
9
|
+
"rich-text",
|
|
10
|
+
"react",
|
|
11
|
+
"typescript",
|
|
12
|
+
"image-editor",
|
|
13
|
+
"wysiwyg",
|
|
14
|
+
"s3-upload",
|
|
15
|
+
"loading-spinner",
|
|
16
|
+
"filename-transform",
|
|
17
|
+
"uuid",
|
|
18
|
+
"file-upload",
|
|
19
|
+
"lumir"
|
|
20
|
+
],
|
|
21
|
+
"main": "dist/index.js",
|
|
22
|
+
"module": "dist/index.mjs",
|
|
23
|
+
"types": "dist/index.d.ts",
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/lumir-company/editor.git"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/lumir-company/editor#readme",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/lumir-company/editor/issues"
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/index.d.ts",
|
|
38
|
+
"import": "./dist/index.mjs",
|
|
39
|
+
"require": "./dist/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./style.css": "./dist/style.css",
|
|
42
|
+
"./api/link-preview": {
|
|
43
|
+
"types": "./dist/api/link-preview.d.ts",
|
|
44
|
+
"import": "./dist/api/link-preview.mjs",
|
|
45
|
+
"require": "./dist/api/link-preview.js"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"dist"
|
|
50
|
+
],
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsup src/index.ts src/api/link-preview.ts --dts --format cjs,esm --sourcemap --external @tiptap/core && node scripts/copy-style.js",
|
|
57
|
+
"dev": "tsup src/index.ts src/api/link-preview.ts --dts --format cjs,esm --sourcemap --external @tiptap/core --watch --onSuccess \"node scripts/copy-style.js\"",
|
|
58
|
+
"type-check": "tsc --noEmit",
|
|
59
|
+
"test": "vitest run",
|
|
60
|
+
"test:watch": "vitest",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"test:ui": "vitest --ui",
|
|
63
|
+
"prepublishOnly": "npm run type-check && npm run build"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"react": ">=18.0.0",
|
|
67
|
+
"react-dom": ">=18.0.0",
|
|
68
|
+
"@tiptap/core": ">=2.0.0"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@blocknote/core": "^0.35.0",
|
|
72
|
+
"@blocknote/react": "^0.35.0",
|
|
73
|
+
"@blocknote/mantine": "^0.35.0"
|
|
74
|
+
},
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"typescript": "^5.4.0",
|
|
77
|
+
"tsup": "^8.0.1",
|
|
78
|
+
"@types/react": "^18.2.0",
|
|
79
|
+
"@types/react-dom": "^18.2.0",
|
|
80
|
+
"react": "^18.2.0",
|
|
81
|
+
"react-dom": "^18.2.0",
|
|
82
|
+
"vitest": "^3.0.0",
|
|
83
|
+
"@vitest/coverage-v8": "^3.0.0",
|
|
84
|
+
"@vitest/ui": "^3.0.0",
|
|
85
|
+
"@vitejs/plugin-react": "^4.0.0",
|
|
86
|
+
"jsdom": "^26.0.0",
|
|
87
|
+
"@testing-library/react": "^16.0.0",
|
|
88
|
+
"@testing-library/jest-dom": "^6.0.0",
|
|
89
|
+
"@testing-library/user-event": "^14.0.0"
|
|
90
|
+
},
|
|
91
|
+
"sideEffects": [
|
|
92
|
+
"**/*.css"
|
|
93
|
+
]
|
|
94
|
+
}
|