@gcforms/editor 1.0.12 → 1.0.14

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
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.14] - 2025-12-22
9
+
10
+ - Update config to load QuoteNode for future use
11
+
12
+ ## [1.0.13] - 2026-01-07
13
+
14
+ - Add editor styles to prevent "double bullets" in nested lists
8
15
 
9
16
  ## [1.0.12] - 2025-12-08
10
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/editor",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "packageManager": "yarn@4.10.3",
10
10
  "dependencies": {
11
- "@lexical/react": "^0.36.2",
12
- "lexical": "^0.36.2"
11
+ "@lexical/react": "^0.39.0",
12
+ "lexical": "^0.39.0"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^19.1.0",
package/src/config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { HeadingNode } from "@lexical/rich-text";
1
+ import { HeadingNode, QuoteNode } from "@lexical/rich-text";
2
2
  import { LinkNode } from "@lexical/link";
3
3
  import { ListItemNode, ListNode } from "@lexical/list";
4
4
 
@@ -15,5 +15,5 @@ export const editorConfig = {
15
15
  throw error;
16
16
  },
17
17
  // Any custom nodes go here
18
- nodes: [HeadingNode, LinkNode, ListItemNode, ListNode],
18
+ nodes: [HeadingNode, QuoteNode, LinkNode, ListItemNode, ListNode],
19
19
  };
package/src/styles.css CHANGED
@@ -1,3 +1,10 @@
1
1
  .gc-editor-container {
2
2
  position: relative;
3
3
  }
4
+
5
+ /* Fix for Lexical's incorrect list nesting structure where nested ul/ol
6
+ are placed in separate li elements, causing extra bullets to appear */
7
+ .gc-editor-container li:has(> ul:only-child),
8
+ .gc-editor-container li:has(> ol:only-child) {
9
+ list-style-type: none;
10
+ }