docx-diff-editor 1.0.21 → 1.0.26

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/styles.css CHANGED
@@ -1,20 +1,14 @@
1
1
  /* ==========================================================================
2
2
  DocxDiffEditor Styles
3
3
 
4
- This CSS uses @layer to ensure proper specificity over CSS frameworks
5
- like Tailwind that use aggressive resets.
4
+ This file bundles SuperDoc CSS + our custom styles.
5
+ Import AFTER your CSS framework (e.g., Tailwind) for proper specificity.
6
6
 
7
- Layer order (lowest to highest priority):
8
- 1. base - CSS framework base/reset styles
9
- 2. superdoc - SuperDoc editor styles
10
- 3. dde - DocxDiffEditor custom styles
7
+ Usage:
8
+ import 'docx-diff-editor/styles.css';
11
9
  ========================================================================== */
12
10
 
13
- /* Define layer order - later layers have higher priority */
14
- @layer base, superdoc, dde;
15
-
16
- /* SuperDoc styles in their own layer */
17
- @layer superdoc {
11
+ /* SuperDoc Editor Styles */
18
12
  :root {
19
13
  /* CSS variables */
20
14
  }
@@ -5435,10 +5429,8 @@ img[data-v-7dd69850] {
5435
5429
  mix-blend-mode: difference;
5436
5430
  }
5437
5431
 
5438
- }
5439
5432
 
5440
- /* DocxDiffEditor custom styles */
5441
- @layer dde {
5433
+ /* DocxDiffEditor Custom Styles */
5442
5434
  /**
5443
5435
  * DocxDiffEditor Styles
5444
5436
  *
@@ -5829,17 +5821,17 @@ img[data-v-7dd69850] {
5829
5821
  }
5830
5822
 
5831
5823
 
5832
- }
5833
5824
 
5834
5825
  /* ==========================================================================
5835
- Critical overrides outside layers (highest specificity)
5836
- These ensure SuperDoc UI elements display correctly regardless of external CSS
5826
+ Tailwind CSS Compatibility Overrides
5827
+
5828
+ These overrides ensure SuperDoc UI elements display correctly when used
5829
+ with Tailwind CSS, which applies aggressive resets.
5837
5830
 
5838
- NOTE: We intentionally do NOT override SVG width/height here because
5839
- that breaks toolbar icons. Toolbar icons need their sizing preserved.
5831
+ NOTE: We do NOT override SVG width/height as that breaks toolbar icons.
5840
5832
  ========================================================================== */
5841
5833
 
5842
- /* Context menu fixes - revert Tailwind resets */
5834
+ /* Context menu - revert Tailwind resets */
5843
5835
  .sd-context-menu,
5844
5836
  .superdoc-context-menu,
5845
5837
  [class*="context-menu"] {
@@ -5847,7 +5839,7 @@ img[data-v-7dd69850] {
5847
5839
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
5848
5840
  }
5849
5841
 
5850
- /* Button resets for SuperDoc UI */
5842
+ /* Button resets for SuperDoc UI elements */
5851
5843
  .sd-editor-scoped button,
5852
5844
  .superdoc button,
5853
5845
  [class*="superdoc"] button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-diff-editor",
3
- "version": "1.0.21",
3
+ "version": "1.0.26",
4
4
  "description": "React component for DOCX document comparison with track changes visualization",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Pablo Schaffner",
@@ -19,18 +19,18 @@
19
19
  "superdoc",
20
20
  "prosemirror"
21
21
  ],
22
- "main": "./dist/index.cjs",
23
- "module": "./dist/index.js",
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.mjs",
24
24
  "types": "./dist/index.d.ts",
25
25
  "exports": {
26
26
  ".": {
27
27
  "import": {
28
28
  "types": "./dist/index.d.ts",
29
- "default": "./dist/index.js"
29
+ "default": "./dist/index.mjs"
30
30
  },
31
31
  "require": {
32
32
  "types": "./dist/index.d.ts",
33
- "default": "./dist/index.cjs"
33
+ "default": "./dist/index.js"
34
34
  }
35
35
  },
36
36
  "./styles.css": "./dist/styles.css"