@editorcn/editor 0.2.0 → 0.3.0

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/style.css CHANGED
@@ -431,7 +431,10 @@ button.rte-control-button:active {
431
431
  min-width: 1.625rem;
432
432
  height: 1.625rem;
433
433
  background-color: var(--background);
434
- transition: background-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
434
+ transition:
435
+ background-color 150ms ease-out,
436
+ color 150ms ease-out,
437
+ box-shadow 150ms ease-out;
435
438
  }
436
439
  .rte-root[data-variant="default"]
437
440
  .rte-controls-group
@@ -485,7 +488,9 @@ button.rte-control-button:active {
485
488
  min-width: 2rem;
486
489
  height: 2rem;
487
490
  background-color: transparent;
488
- transition: background-color 150ms ease-out, color 150ms ease-out;
491
+ transition:
492
+ background-color 150ms ease-out,
493
+ color 150ms ease-out;
489
494
  }
490
495
  .rte-root[data-variant="subtle"] .rte-controls-group > button:hover {
491
496
  background-color: var(--accent);
@@ -523,7 +528,9 @@ button.rte-control-button:active {
523
528
  min-width: 1.5rem;
524
529
  height: 1.5rem;
525
530
  background-color: transparent;
526
- transition: background-color 150ms ease-out, color 150ms ease-out;
531
+ transition:
532
+ background-color 150ms ease-out,
533
+ color 150ms ease-out;
527
534
  }
528
535
  .rte-root[data-variant="compact"] .rte-controls-group > button:hover {
529
536
  background-color: var(--accent);
@@ -798,8 +805,14 @@ button.rte-control-button:active {
798
805
 
799
806
  /* ── Bubble Menu ── */
800
807
  @keyframes rte-bubble-pop-in {
801
- 0% { opacity: 0; transform: scale(0.96) translateY(4px); }
802
- 100% { opacity: 1; transform: scale(1) translateY(0); }
808
+ 0% {
809
+ opacity: 0;
810
+ transform: scale(0.96) translateY(4px);
811
+ }
812
+ 100% {
813
+ opacity: 1;
814
+ transform: scale(1) translateY(0);
815
+ }
803
816
  }
804
817
 
805
818
  .rte-bubble-menu {
@@ -841,7 +854,10 @@ button.rte-control-button:active {
841
854
  cursor: pointer;
842
855
  font-size: 0.8125rem;
843
856
  white-space: nowrap;
844
- transition: background-color 150ms ease-out, color 150ms ease-out, transform 100ms ease-out;
857
+ transition:
858
+ background-color 150ms ease-out,
859
+ color 150ms ease-out,
860
+ transform 100ms ease-out;
845
861
  }
846
862
 
847
863
  .rte-bubble-btn:hover {
@@ -910,7 +926,7 @@ button.rte-control-button:active {
910
926
  .rte-bubble-dropdown-item {
911
927
  display: flex;
912
928
  align-items: center;
913
- justify-content:flex-start;
929
+ justify-content: flex-start;
914
930
  gap: 0.5rem;
915
931
  width: 100%;
916
932
  padding: 0.375rem 0.5rem;
@@ -921,7 +937,9 @@ button.rte-control-button:active {
921
937
  border-radius: calc(var(--radius) - 4px);
922
938
  cursor: pointer;
923
939
  text-align: left;
924
- transition: background-color 100ms ease-out, color 100ms ease-out;
940
+ transition:
941
+ background-color 100ms ease-out,
942
+ color 100ms ease-out;
925
943
  }
926
944
 
927
945
  .rte-bubble-dropdown-item:hover {
@@ -958,4 +976,4 @@ button.rte-control-button:active {
958
976
  .rte-theme-transitioning *::before,
959
977
  .rte-theme-transitioning *::after {
960
978
  transition: none !important;
961
- }
979
+ }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@editorcn/editor",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
+ "files": [
5
+ "dist"
6
+ ],
4
7
  "type": "module",
5
8
  "main": "./dist/index.cjs",
6
9
  "module": "./dist/index.js",
@@ -16,29 +19,36 @@
16
19
  "publishConfig": {
17
20
  "access": "public"
18
21
  },
19
- "files": [
20
- "dist"
21
- ],
22
22
  "scripts": {
23
23
  "build": "tsup && node -e \"require('fs').copyFileSync('src/style.css','dist/style.css')\"",
24
24
  "dev": "tsup --watch",
25
- "check-types": "tsc --noEmit",
25
+ "typecheck": "tsc --noEmit",
26
26
  "prepublishOnly": "pnpm build"
27
27
  },
28
+ "dependencies": {
29
+ "clsx": "^2.1.1",
30
+ "tailwind-merge": "^3.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/react": "^19",
34
+ "tsup": "^8.4.0",
35
+ "typescript": "^5"
36
+ },
28
37
  "peerDependencies": {
29
38
  "@base-ui/react": "^1.0.0",
30
- "@tiptap/core": ">=2.11.5 <4",
31
- "@tiptap/extension-link": ">=2.11.5 <4",
32
- "@tiptap/extension-placeholder": ">=2.11.5 <4",
33
- "@tiptap/extension-underline": ">=2.11.5 <4",
34
- "@tiptap/pm": ">=2.11.5 <4",
35
- "@tiptap/react": ">=2.11.5 <4",
36
- "@tiptap/starter-kit": ">=2.11.5 <4",
39
+ "@floating-ui/dom": "^1.6.0",
40
+ "@tiptap/core": ">=3.0.0 <4",
41
+ "@tiptap/extension-code-block-lowlight": ">=3.0.0 <4",
42
+ "@tiptap/extension-link": ">=3.0.0 <4",
43
+ "@tiptap/extension-placeholder": ">=3.0.0 <4",
44
+ "@tiptap/extension-underline": ">=3.0.0 <4",
45
+ "@tiptap/pm": ">=3.0.0 <4",
46
+ "@tiptap/react": ">=3.0.0 <4",
47
+ "@tiptap/starter-kit": ">=3.0.0 <4",
37
48
  "class-variance-authority": "^0.7.1",
49
+ "lowlight": ">=3.0.0 <4",
38
50
  "react": "^18 || ^19",
39
- "react-dom": "^18 || ^19",
40
- "@tiptap/extension-code-block-lowlight": ">=2.11.5 <4",
41
- "lowlight": ">=3.0.0 <4"
51
+ "react-dom": "^18 || ^19"
42
52
  },
43
53
  "peerDependenciesMeta": {
44
54
  "@tiptap/extension-code-block-lowlight": {
@@ -50,14 +60,5 @@
50
60
  "@tiptap/extension-placeholder": {
51
61
  "optional": true
52
62
  }
53
- },
54
- "dependencies": {
55
- "clsx": "^2.1.1",
56
- "tailwind-merge": "^3.0.0"
57
- },
58
- "devDependencies": {
59
- "@types/react": "^19",
60
- "tsup": "^8.4.0",
61
- "typescript": "^5"
62
63
  }
63
64
  }