docx-diff-editor 1.0.5 → 1.0.7
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +65 -0
- package/package.json +2 -2
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
DocxDiffEditor Styles
|
|
3
|
+
|
|
4
|
+
This CSS uses @layer to ensure proper specificity over CSS frameworks
|
|
5
|
+
like Tailwind that use aggressive resets.
|
|
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
|
|
11
|
+
========================================================================== */
|
|
12
|
+
|
|
13
|
+
/* Define layer order - unlayered styles have highest priority */
|
|
14
|
+
@layer base, superdoc, dde;
|
|
15
|
+
|
|
16
|
+
/* SuperDoc styles in their own layer */
|
|
17
|
+
@layer superdoc {
|
|
1
18
|
:root {
|
|
2
19
|
/* CSS variables */
|
|
3
20
|
}
|
|
@@ -5417,6 +5434,11 @@ img[data-v-7dd69850] {
|
|
|
5417
5434
|
background-color: #1355ff66;
|
|
5418
5435
|
mix-blend-mode: difference;
|
|
5419
5436
|
}
|
|
5437
|
+
|
|
5438
|
+
}
|
|
5439
|
+
|
|
5440
|
+
/* DocxDiffEditor custom styles */
|
|
5441
|
+
@layer dde {
|
|
5420
5442
|
/**
|
|
5421
5443
|
* DocxDiffEditor Styles
|
|
5422
5444
|
*
|
|
@@ -5453,6 +5475,7 @@ img[data-v-7dd69850] {
|
|
|
5453
5475
|
/* Track Changes - SuperDoc track change styling */
|
|
5454
5476
|
/* @import './track-changes.css'; */
|
|
5455
5477
|
|
|
5478
|
+
|
|
5456
5479
|
/**
|
|
5457
5480
|
* CSS Variables for DocxDiffEditor
|
|
5458
5481
|
* Users can override these in their own CSS to customize the component.
|
|
@@ -5518,6 +5541,7 @@ img[data-v-7dd69850] {
|
|
|
5518
5541
|
--dde-z-error: 100;
|
|
5519
5542
|
}
|
|
5520
5543
|
|
|
5544
|
+
|
|
5521
5545
|
/**
|
|
5522
5546
|
* Base styles for DocxDiffEditor
|
|
5523
5547
|
* Container layout and structure.
|
|
@@ -5555,6 +5579,7 @@ img[data-v-7dd69850] {
|
|
|
5555
5579
|
height: 100%;
|
|
5556
5580
|
}
|
|
5557
5581
|
|
|
5582
|
+
|
|
5558
5583
|
/**
|
|
5559
5584
|
* Loading state styles for DocxDiffEditor
|
|
5560
5585
|
*/
|
|
@@ -5599,6 +5624,7 @@ img[data-v-7dd69850] {
|
|
|
5599
5624
|
}
|
|
5600
5625
|
}
|
|
5601
5626
|
|
|
5627
|
+
|
|
5602
5628
|
/**
|
|
5603
5629
|
* Error state styles for DocxDiffEditor
|
|
5604
5630
|
*/
|
|
@@ -5645,6 +5671,7 @@ img[data-v-7dd69850] {
|
|
|
5645
5671
|
max-width: 400px;
|
|
5646
5672
|
}
|
|
5647
5673
|
|
|
5674
|
+
|
|
5648
5675
|
/**
|
|
5649
5676
|
* Track Changes styles for DocxDiffEditor
|
|
5650
5677
|
* Styles for SuperDoc track change marks (insert, delete, format).
|
|
@@ -5801,3 +5828,41 @@ img[data-v-7dd69850] {
|
|
|
5801
5828
|
outline-offset: 1px;
|
|
5802
5829
|
}
|
|
5803
5830
|
|
|
5831
|
+
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
/* Critical overrides outside layers (highest specificity) */
|
|
5835
|
+
/* These ensure SuperDoc UI elements display correctly regardless of external CSS */
|
|
5836
|
+
|
|
5837
|
+
/* Context menu fixes */
|
|
5838
|
+
.sd-context-menu,
|
|
5839
|
+
.superdoc-context-menu,
|
|
5840
|
+
[class*="context-menu"] {
|
|
5841
|
+
all: revert;
|
|
5842
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
|
|
5843
|
+
}
|
|
5844
|
+
|
|
5845
|
+
/* Ensure SVG icons in SuperDoc render correctly */
|
|
5846
|
+
.sd-editor-scoped svg,
|
|
5847
|
+
.superdoc svg,
|
|
5848
|
+
[class*="superdoc"] svg {
|
|
5849
|
+
display: inline-block !important;
|
|
5850
|
+
width: auto !important;
|
|
5851
|
+
height: auto !important;
|
|
5852
|
+
fill: currentColor;
|
|
5853
|
+
}
|
|
5854
|
+
|
|
5855
|
+
/* Track changes sidebar visibility */
|
|
5856
|
+
.superdoc__right-sidebar,
|
|
5857
|
+
.right-sidebar,
|
|
5858
|
+
[class*="right-sidebar"] {
|
|
5859
|
+
display: flex !important;
|
|
5860
|
+
visibility: visible !important;
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5863
|
+
/* Button resets for SuperDoc UI */
|
|
5864
|
+
.sd-editor-scoped button,
|
|
5865
|
+
.superdoc button,
|
|
5866
|
+
[class*="superdoc"] button {
|
|
5867
|
+
all: revert;
|
|
5868
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docx-diff-editor",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "React component for DOCX document comparison with track changes visualization",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Pablo Schaffner",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
],
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsup && npm run build:css",
|
|
48
|
-
"build:css": "
|
|
48
|
+
"build:css": "node scripts/build-css.js",
|
|
49
49
|
"dev": "tsup --watch",
|
|
50
50
|
"clean": "rm -rf dist",
|
|
51
51
|
"prepublishOnly": "npm run build",
|