@eventuras/scribo 0.8.0 → 0.8.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.
package/CHANGELOG.md CHANGED
@@ -1,31 +1,48 @@
1
1
  # @eventuras/scribo
2
2
 
3
+ ## 0.8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: update deps
8
+
9
+ ## 0.8.1
10
+
11
+ ### Patch Changes
12
+
13
+ - chore: update dependencies across frontend packages
14
+
3
15
  ## 0.8.0
4
16
 
5
17
  ### Minor Changes
6
18
 
7
- ### Features
8
- - 🧱 feat(scribo): auto heigh expanding (6ca2322) [@eventuras/scribo]
19
+ ### 🧱 Features
20
+
21
+ - feat(scribo): auto heigh expanding (6ca2322) [@eventuras/scribo]
22
+
23
+ ### 🐞 Bug Fixes
24
+
25
+ - fix(scribo): import MarkdownEditor.css for styling (d1eec7a) [@eventuras/scribo]
26
+ - fix(scribo): disable swc in scribo (ebce6db) [@eventuras/scribo]
27
+
28
+ ### ♻️ Refactoring
29
+
30
+ - refactor(scribo): merge markdowninput into scribo with flexible styling (373587e) [@eventuras/scribo]
9
31
 
10
- ### Bug Fixes
11
- - 🐞 fix(scribo): import MarkdownEditor.css for styling (d1eec7a) [@eventuras/scribo]
12
- - 🐞 fix(scribo): disable swc in scribo (ebce6db) [@eventuras/scribo]
32
+ ### 🧹 Maintenance
13
33
 
14
- ### Refactoring
15
- - ♻️ refactor(scribo): merge markdowninput into scribo with flexible styling (373587e) [@eventuras/scribo]
34
+ - chore(scribo): externalize Lexical packages in build configuration (7c7caaf) [@eventuras/scribo]
35
+ - chore(convertoapi,docsite,web,markdown,scribo,sdk): upgrade deps (b2de638) [@eventuras/scribo]
16
36
 
17
- ### Maintenance
18
- - 🧹 chore(scribo): externalize Lexical packages in build configuration (7c7caaf) [@eventuras/scribo]
19
- - 🧹 chore(convertoapi,docsite,web,markdown,scribo,sdk): upgrade deps (b2de638) [@eventuras/scribo]
37
+ ### ⚙️ CI/CD
20
38
 
21
- ### CI/CD
22
- - ⚙️ ci(scribo): implement automated release workflow for Scribo (36d6ba1) [@eventuras/scribo]
39
+ - ci(scribo): implement automated release workflow for Scribo (36d6ba1) [@eventuras/scribo]
23
40
 
24
41
  ## 0.7.1
25
42
 
26
43
  ### Patch Changes
27
44
 
28
- - - 🧹 chore(convertoapi,docsite,web,markdown,scribo,sdk): upgrade deps (51e931b) [@eventuras/scribo]
45
+ - - chore(convertoapi,docsite,web,markdown,scribo,sdk): upgrade deps (51e931b) [@eventuras/scribo]
29
46
 
30
47
  ## 0.7.0
31
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventuras/scribo",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/losol/eventuras.git",
@@ -45,22 +45,21 @@
45
45
  "@eventuras/eslint-config": "workspace:*",
46
46
  "@eventuras/typescript-config": "workspace:*",
47
47
  "@eventuras/vite-config": "workspace:*",
48
- "@testing-library/react": "^16.3.0",
48
+ "@testing-library/react": "^16.3.1",
49
49
  "@types/react": "^19.2.7",
50
50
  "@types/react-dom": "^19.2.3",
51
- "@vitejs/plugin-react": "^4.3.4",
51
+ "@vitejs/plugin-react": "^5.1.2",
52
52
  "lightningcss": "^1.30.2",
53
53
  "typescript": "^5.9.3",
54
- "vite": "^7.2.6",
55
- "vitest": "^4.0.15"
54
+ "vite": "^7.3.0",
55
+ "vitest": "^4.0.16"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^19.2.1",
59
- "react-dom": "^19.2.1"
58
+ "react": "^19.2.3",
59
+ "react-dom": "^19.2.3"
60
60
  },
61
- "packageManager": "pnpm@10.24.0",
61
+ "packageManager": "pnpm@10.27.0",
62
62
  "engines": {
63
- "node": ">=20.0.0 <23.0.0",
64
- "pnpm": ">=9.0.0"
63
+ "node": ">=22.0.0 <25.0.0"
65
64
  }
66
65
  }
@@ -452,7 +452,7 @@ function useFloatingLinkEditorToolbar(
452
452
  }
453
453
 
454
454
  export default function FloatingLinkEditorPlugin({
455
- anchorElem = document.body,
455
+ anchorElem,
456
456
  isLinkEditMode,
457
457
  setIsLinkEditMode,
458
458
  }: {
@@ -461,9 +461,19 @@ export default function FloatingLinkEditorPlugin({
461
461
  setIsLinkEditMode: Dispatch<boolean>;
462
462
  }): JSX.Element | null {
463
463
  const [editor] = useLexicalComposerContext();
464
+
465
+ // Use document.body as default, but only in browser environment
466
+ const defaultAnchorElem = typeof document !== 'undefined' ? document.body : null;
467
+ const effectiveAnchorElem = anchorElem ?? defaultAnchorElem;
468
+
469
+ // Don't render if we don't have a valid anchor element
470
+ if (!effectiveAnchorElem) {
471
+ return null;
472
+ }
473
+
464
474
  return useFloatingLinkEditorToolbar(
465
475
  editor,
466
- anchorElem,
476
+ effectiveAnchorElem,
467
477
  isLinkEditMode,
468
478
  setIsLinkEditMode,
469
479
  );