docx-diff-editor 1.0.31 → 1.0.32

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.
Files changed (2) hide show
  1. package/dist/styles.css +41 -35
  2. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -18,7 +18,7 @@
18
18
  * SVG has its own rendering model and doesn't need CSS isolation the same way text content does.
19
19
  */
20
20
  .sd-editor-scoped,
21
- .sd-editor-scoped :where(*:not(svg):not(svg *)),
21
+ .sd-editor-scoped :where(*:not(svg):not(svg *):not(.annotation):not([data-drag-handle])),
22
22
  .sd-editor-scoped :where(*:not(svg):not(svg *)::before),
23
23
  .sd-editor-scoped :where(*:not(svg):not(svg *)::after) {
24
24
  all: revert;
@@ -1807,7 +1807,7 @@ to {
1807
1807
  align-items: center;
1808
1808
  margin-right: 10px;
1809
1809
  }
1810
- .slash-menu-item-icon svg {
1810
+ .slash-menu .slash-menu-item-icon svg {
1811
1811
  height: 12px;
1812
1812
  width: 12px;
1813
1813
  }
@@ -1989,10 +1989,10 @@ to {
1989
1989
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
1990
1990
  }
1991
1991
 
1992
- .editor-element[data-v-8dd4cf59] {
1992
+ .editor-element[data-v-f5c4f915] {
1993
1993
  position: relative;
1994
1994
  }
1995
- .super-editor-container[data-v-8dd4cf59] {
1995
+ .super-editor-container[data-v-f5c4f915] {
1996
1996
  width: auto;
1997
1997
  height: auto;
1998
1998
  /* min-width is controlled via inline style (containerStyle) to scale with zoom */
@@ -2001,14 +2001,20 @@ to {
2001
2001
  display: flex;
2002
2002
  flex-direction: column;
2003
2003
  }
2004
- .ruler[data-v-8dd4cf59] {
2004
+ .ruler-host[data-v-f5c4f915] {
2005
+ display: flex;
2006
+ justify-content: center;
2007
+ width: 100%;
2008
+ box-sizing: border-box;
2009
+ }
2010
+ .ruler[data-v-f5c4f915] {
2005
2011
  margin-bottom: 2px;
2006
2012
  }
2007
- .super-editor[data-v-8dd4cf59] {
2013
+ .super-editor[data-v-f5c4f915] {
2008
2014
  color: initial;
2009
2015
  overflow: hidden;
2010
2016
  }
2011
- .placeholder-editor[data-v-8dd4cf59] {
2017
+ .placeholder-editor[data-v-f5c4f915] {
2012
2018
  position: absolute;
2013
2019
  top: 0;
2014
2020
  left: 0;
@@ -2020,7 +2026,7 @@ to {
2020
2026
  background-color: white;
2021
2027
  box-sizing: border-box;
2022
2028
  }
2023
- .placeholder-title[data-v-8dd4cf59] {
2029
+ .placeholder-title[data-v-f5c4f915] {
2024
2030
  display: flex;
2025
2031
  justify-content: center;
2026
2032
  margin-bottom: 40px;
@@ -2564,46 +2570,46 @@ img[data-v-7dd69850] {
2564
2570
  display: none;
2565
2571
  }
2566
2572
 
2567
- .superdoc[data-v-1e96f708] {
2573
+ .superdoc[data-v-5196811d] {
2568
2574
  display: flex;
2569
2575
  }
2570
- .right-sidebar[data-v-1e96f708] {
2576
+ .right-sidebar[data-v-5196811d] {
2571
2577
  min-width: 320px;
2572
2578
  }
2573
- .floating-comments[data-v-1e96f708] {
2579
+ .floating-comments[data-v-5196811d] {
2574
2580
  min-width: 300px;
2575
2581
  width: 300px;
2576
2582
  }
2577
- .superdoc__layers[data-v-1e96f708] {
2583
+ .superdoc__layers[data-v-5196811d] {
2578
2584
  height: 100%;
2579
2585
  position: relative;
2580
2586
  box-sizing: border-box;
2581
2587
  }
2582
- .superdoc__document[data-v-1e96f708] {
2588
+ .superdoc__document[data-v-5196811d] {
2583
2589
  width: 100%;
2584
2590
  position: relative;
2585
2591
  }
2586
- .superdoc__sub-document[data-v-1e96f708] {
2592
+ .superdoc__sub-document[data-v-5196811d] {
2587
2593
  width: 100%;
2588
2594
  position: relative;
2589
2595
  }
2590
- .superdoc__selection-layer[data-v-1e96f708] {
2596
+ .superdoc__selection-layer[data-v-5196811d] {
2591
2597
  position: absolute;
2592
2598
  min-width: 100%;
2593
2599
  min-height: 100%;
2594
2600
  z-index: 10;
2595
2601
  pointer-events: none;
2596
2602
  }
2597
- .superdoc__temp-selection[data-v-1e96f708] {
2603
+ .superdoc__temp-selection[data-v-5196811d] {
2598
2604
  position: absolute;
2599
2605
  }
2600
- .superdoc__comments-layer[data-v-1e96f708] {
2606
+ .superdoc__comments-layer[data-v-5196811d] {
2601
2607
  /* position: absolute; */
2602
2608
  top: 0;
2603
2609
  height: 100%;
2604
2610
  position: relative;
2605
2611
  }
2606
- .superdoc__right-sidebar[data-v-1e96f708] {
2612
+ .superdoc__right-sidebar[data-v-5196811d] {
2607
2613
  width: 320px;
2608
2614
  min-width: 320px;
2609
2615
  padding: 0 10px;
@@ -2613,14 +2619,14 @@ img[data-v-7dd69850] {
2613
2619
  }
2614
2620
 
2615
2621
  /* Tools styles */
2616
- .tools[data-v-1e96f708] {
2622
+ .tools[data-v-5196811d] {
2617
2623
  position: absolute;
2618
2624
  z-index: 3;
2619
2625
  display: flex;
2620
2626
  flex-direction: column;
2621
2627
  gap: 6px;
2622
2628
  }
2623
- .tools .tool-icon[data-v-1e96f708] {
2629
+ .tools .tool-icon[data-v-5196811d] {
2624
2630
  font-size: 20px;
2625
2631
  border-radius: 12px;
2626
2632
  border: none;
@@ -2628,7 +2634,7 @@ img[data-v-7dd69850] {
2628
2634
  background-color: #dbdbdb;
2629
2635
  cursor: pointer;
2630
2636
  }
2631
- .tools-item[data-v-1e96f708] {
2637
+ .tools-item[data-v-5196811d] {
2632
2638
  display: flex;
2633
2639
  align-items: center;
2634
2640
  justify-content: center;
@@ -2638,10 +2644,10 @@ img[data-v-7dd69850] {
2638
2644
  border-radius: 12px;
2639
2645
  cursor: pointer;
2640
2646
  }
2641
- .tools-item i[data-v-1e96f708] {
2647
+ .tools-item i[data-v-5196811d] {
2642
2648
  cursor: pointer;
2643
2649
  }
2644
- .superdoc__tools-icon[data-v-1e96f708] {
2650
+ .superdoc__tools-icon[data-v-5196811d] {
2645
2651
  width: 20px;
2646
2652
  height: 20px;
2647
2653
  flex-shrink: 0;
@@ -2656,15 +2662,15 @@ img[data-v-7dd69850] {
2656
2662
 
2657
2663
  /* 834px is iPad screen size in portrait orientation */
2658
2664
  @media (max-width: 834px) {
2659
- .superdoc .superdoc__layers[data-v-1e96f708] {
2665
+ .superdoc .superdoc__layers[data-v-5196811d] {
2660
2666
  margin: 0;
2661
2667
  border: 0 !important;
2662
2668
  box-shadow: none;
2663
2669
  }
2664
- .superdoc__sub-document[data-v-1e96f708] {
2670
+ .superdoc__sub-document[data-v-5196811d] {
2665
2671
  max-width: 100%;
2666
2672
  }
2667
- .superdoc__right-sidebar[data-v-1e96f708] {
2673
+ .superdoc__right-sidebar[data-v-5196811d] {
2668
2674
  padding: 10px;
2669
2675
  width: 55px;
2670
2676
  position: relative;
@@ -2672,7 +2678,7 @@ img[data-v-7dd69850] {
2672
2678
  }
2673
2679
 
2674
2680
  /* AI Writer styles */
2675
- .ai-writer-container[data-v-1e96f708] {
2681
+ .ai-writer-container[data-v-5196811d] {
2676
2682
  position: fixed;
2677
2683
  z-index: 1000;
2678
2684
  background: white;
@@ -2690,13 +2696,13 @@ img[data-v-7dd69850] {
2690
2696
  } */
2691
2697
 
2692
2698
  /* Tools styles */
2693
- .tools[data-v-1e96f708] {
2699
+ .tools[data-v-5196811d] {
2694
2700
  position: absolute;
2695
2701
  z-index: 3;
2696
2702
  display: flex;
2697
2703
  gap: 6px;
2698
2704
  }
2699
- .tools .tool-icon[data-v-1e96f708] {
2705
+ .tools .tool-icon[data-v-5196811d] {
2700
2706
  font-size: 20px;
2701
2707
  border-radius: 12px;
2702
2708
  border: none;
@@ -2704,7 +2710,7 @@ img[data-v-7dd69850] {
2704
2710
  background-color: #dbdbdb;
2705
2711
  cursor: pointer;
2706
2712
  }
2707
- .tools-item[data-v-1e96f708] {
2713
+ .tools-item[data-v-5196811d] {
2708
2714
  display: flex;
2709
2715
  align-items: center;
2710
2716
  justify-content: center;
@@ -2715,18 +2721,18 @@ img[data-v-7dd69850] {
2715
2721
  border-radius: 12px;
2716
2722
  cursor: pointer;
2717
2723
  }
2718
- .tools-item i[data-v-1e96f708] {
2724
+ .tools-item i[data-v-5196811d] {
2719
2725
  cursor: pointer;
2720
2726
  }
2721
- .superdoc__tools-icon[data-v-1e96f708] {
2727
+ .superdoc__tools-icon[data-v-5196811d] {
2722
2728
  width: 20px;
2723
2729
  height: 20px;
2724
2730
  flex-shrink: 0;
2725
2731
  }
2726
- .ai-tool > svg[data-v-1e96f708] {
2732
+ .ai-tool > svg[data-v-5196811d] {
2727
2733
  fill: transparent;
2728
2734
  }
2729
- .ai-tool[data-v-1e96f708]::before {
2735
+ .ai-tool[data-v-5196811d]::before {
2730
2736
  content: '';
2731
2737
  position: absolute;
2732
2738
  width: 20px;
@@ -2747,7 +2753,7 @@ img[data-v-7dd69850] {
2747
2753
  filter: brightness(1.2);
2748
2754
  transition: filter 0.2s ease;
2749
2755
  }
2750
- .ai-tool[data-v-1e96f708]:hover::before {
2756
+ .ai-tool[data-v-5196811d]:hover::before {
2751
2757
  filter: brightness(1.3);
2752
2758
  }
2753
2759
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-diff-editor",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "React component for DOCX document comparison with track changes visualization",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Pablo Schaffner",
@@ -57,7 +57,7 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "diff-match-patch": "^1.0.5",
60
- "superdoc": "^1.2.1",
60
+ "superdoc": "^1.3.0",
61
61
  "uuid": "^9.0.0"
62
62
  },
63
63
  "devDependencies": {