superdoc 2.11.0-next.8 → 2.11.0

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.
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
19
19
  var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
20
20
  var ENGINE_INFO = Object.freeze({
21
21
  ...PRIVATE_ENGINE_INFO,
22
- superdocVersion: "2.11.0-next.8",
22
+ superdocVersion: "2.11.0",
23
23
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
24
24
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
25
25
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
18
18
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
19
19
  var ENGINE_INFO = Object.freeze({
20
20
  ...PRIVATE_ENGINE_INFO,
21
- superdocVersion: "2.11.0-next.8",
21
+ superdocVersion: "2.11.0",
22
22
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
23
23
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
24
24
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
package/dist/style.css CHANGED
@@ -1818,11 +1818,11 @@ img[data-v-c95b2073] {
1818
1818
  pointer-events: auto;
1819
1819
  }
1820
1820
 
1821
- .superdoc[data-v-31bb6dd9] {
1821
+ .superdoc[data-v-01062725] {
1822
1822
  display: flex;
1823
1823
  position: relative;
1824
1824
  }
1825
- .sd-visually-hidden[data-v-31bb6dd9] {
1825
+ .sd-visually-hidden[data-v-01062725] {
1826
1826
  position: absolute;
1827
1827
  width: 1px;
1828
1828
  height: 1px;
@@ -1833,30 +1833,55 @@ img[data-v-c95b2073] {
1833
1833
  white-space: nowrap;
1834
1834
  border: 0;
1835
1835
  }
1836
- .right-sidebar[data-v-31bb6dd9] {
1836
+ .superdoc__mutation-status[data-v-01062725] {
1837
+ position: sticky;
1838
+ z-index: 10;
1839
+ top: 12px;
1840
+ height: 0;
1841
+ pointer-events: none;
1842
+ }
1843
+ .superdoc__edit-rejected-status[data-v-01062725] {
1844
+ position: absolute;
1845
+ top: 0;
1846
+ left: 50%;
1847
+ max-width: min(480px, calc(100% - 32px));
1848
+ margin: 0;
1849
+ padding: 8px 12px;
1850
+ transform: translateX(-50%);
1851
+ border: 1px solid var(--sd-ui-border, #dadce0);
1852
+ border-radius: 6px;
1853
+ background: var(--sd-ui-surface-bg, #fff);
1854
+ box-shadow: var(--sd-ui-surface-shadow, 0 2px 8px rgba(60, 64, 67, 0.2));
1855
+ color: var(--sd-ui-text, #202124);
1856
+ font-family: var(--sd-ui-font-family, Arial, sans-serif);
1857
+ font-size: 13px;
1858
+ line-height: 20px;
1859
+ pointer-events: none;
1860
+ }
1861
+ .right-sidebar[data-v-01062725] {
1837
1862
  min-width: 320px;
1838
1863
  height: 100%;
1839
1864
  }
1840
- .floating-comments[data-v-31bb6dd9] {
1865
+ .floating-comments[data-v-01062725] {
1841
1866
  min-width: 300px;
1842
1867
  width: 300px;
1843
1868
  height: 100%;
1844
1869
  overflow: visible;
1845
1870
  }
1846
- .superdoc__layers[data-v-31bb6dd9] {
1871
+ .superdoc__layers[data-v-01062725] {
1847
1872
  height: 100%;
1848
1873
  position: relative;
1849
1874
  box-sizing: border-box;
1850
1875
  }
1851
- .superdoc__document[data-v-31bb6dd9] {
1876
+ .superdoc__document[data-v-01062725] {
1852
1877
  width: 100%;
1853
1878
  position: relative;
1854
1879
  }
1855
- .superdoc__sub-document[data-v-31bb6dd9] {
1880
+ .superdoc__sub-document[data-v-01062725] {
1856
1881
  width: 100%;
1857
1882
  position: relative;
1858
1883
  }
1859
- .superdoc__selection-layer[data-v-31bb6dd9] {
1884
+ .superdoc__selection-layer[data-v-01062725] {
1860
1885
  position: absolute;
1861
1886
  min-width: 100%;
1862
1887
  min-height: 100%;
@@ -1867,13 +1892,13 @@ img[data-v-c95b2073] {
1867
1892
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1868
1893
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1869
1894
  clickable, and below the selection layer (z-index 10). */
1870
- .superdoc__whiteboard-layer[data-v-31bb6dd9] {
1895
+ .superdoc__whiteboard-layer[data-v-01062725] {
1871
1896
  z-index: 4;
1872
1897
  }
1873
- .superdoc__temp-selection[data-v-31bb6dd9] {
1898
+ .superdoc__temp-selection[data-v-01062725] {
1874
1899
  position: absolute;
1875
1900
  }
1876
- .superdoc__right-sidebar[data-v-31bb6dd9] {
1901
+ .superdoc__right-sidebar[data-v-01062725] {
1877
1902
  width: 320px;
1878
1903
  min-width: 320px;
1879
1904
  padding: 0 10px;
@@ -1881,7 +1906,7 @@ img[data-v-c95b2073] {
1881
1906
  position: relative;
1882
1907
  z-index: 2;
1883
1908
  }
1884
- .superdoc__compact-comment-popover[data-v-31bb6dd9] {
1909
+ .superdoc__compact-comment-popover[data-v-01062725] {
1885
1910
  position: absolute;
1886
1911
  top: 12px;
1887
1912
  right: 12px;
@@ -1890,14 +1915,14 @@ img[data-v-c95b2073] {
1890
1915
  }
1891
1916
 
1892
1917
  /* Tools styles */
1893
- .tools[data-v-31bb6dd9] {
1918
+ .tools[data-v-01062725] {
1894
1919
  position: absolute;
1895
1920
  z-index: 3;
1896
1921
  display: flex;
1897
1922
  flex-direction: column;
1898
1923
  gap: var(--sd-ui-tools-gap, 6px);
1899
1924
  }
1900
- .tools-item[data-v-31bb6dd9] {
1925
+ .tools-item[data-v-01062725] {
1901
1926
  display: flex;
1902
1927
  align-items: center;
1903
1928
  justify-content: center;
@@ -1908,10 +1933,10 @@ img[data-v-c95b2073] {
1908
1933
  cursor: pointer;
1909
1934
  position: relative;
1910
1935
  }
1911
- .tools-item i[data-v-31bb6dd9] {
1936
+ .tools-item i[data-v-01062725] {
1912
1937
  cursor: pointer;
1913
1938
  }
1914
- .superdoc__tools-icon[data-v-31bb6dd9] {
1939
+ .superdoc__tools-icon[data-v-01062725] {
1915
1940
  width: var(--sd-ui-tools-icon-size, 20px);
1916
1941
  height: var(--sd-ui-tools-icon-size, 20px);
1917
1942
  flex-shrink: 0;
@@ -1926,22 +1951,22 @@ img[data-v-c95b2073] {
1926
1951
 
1927
1952
  /* 834px is iPad screen size in portrait orientation */
1928
1953
  @media (max-width: 834px) {
1929
- .superdoc .superdoc__layers[data-v-31bb6dd9] {
1954
+ .superdoc .superdoc__layers[data-v-01062725] {
1930
1955
  margin: 0;
1931
1956
  border: 0 !important;
1932
1957
  box-shadow: none;
1933
1958
  }
1934
- .superdoc__sub-document[data-v-31bb6dd9] {
1959
+ .superdoc__sub-document[data-v-01062725] {
1935
1960
  max-width: 100%;
1936
1961
  }
1937
- .superdoc__right-sidebar[data-v-31bb6dd9] {
1962
+ .superdoc__right-sidebar[data-v-01062725] {
1938
1963
  padding: 10px;
1939
1964
  position: relative;
1940
1965
  }
1941
1966
  }
1942
1967
 
1943
1968
  /* AI Writer styles */
1944
- .ai-writer-container[data-v-31bb6dd9] {
1969
+ .ai-writer-container[data-v-01062725] {
1945
1970
  position: fixed;
1946
1971
  z-index: 1000;
1947
1972
  background: white;
@@ -1957,10 +1982,10 @@ img[data-v-c95b2073] {
1957
1982
  transform: translateY(-50%);
1958
1983
  z-index: 50;
1959
1984
  } */
1960
- .ai-tool > svg[data-v-31bb6dd9] {
1985
+ .ai-tool > svg[data-v-01062725] {
1961
1986
  fill: transparent;
1962
1987
  }
1963
- .ai-tool[data-v-31bb6dd9]::before {
1988
+ .ai-tool[data-v-01062725]::before {
1964
1989
  content: '';
1965
1990
  position: absolute;
1966
1991
  width: 20px;
@@ -1981,7 +2006,7 @@ img[data-v-c95b2073] {
1981
2006
  filter: brightness(1.2);
1982
2007
  transition: filter 0.2s ease;
1983
2008
  }
1984
- .ai-tool[data-v-31bb6dd9]:hover::before {
2009
+ .ai-tool[data-v-01062725]:hover::before {
1985
2010
  filter: brightness(1.3);
1986
2011
  }
1987
2012
 
@@ -1818,11 +1818,11 @@ img[data-v-c95b2073] {
1818
1818
  pointer-events: auto;
1819
1819
  }
1820
1820
 
1821
- .superdoc[data-v-31bb6dd9] {
1821
+ .superdoc[data-v-01062725] {
1822
1822
  display: flex;
1823
1823
  position: relative;
1824
1824
  }
1825
- .sd-visually-hidden[data-v-31bb6dd9] {
1825
+ .sd-visually-hidden[data-v-01062725] {
1826
1826
  position: absolute;
1827
1827
  width: 1px;
1828
1828
  height: 1px;
@@ -1833,30 +1833,55 @@ img[data-v-c95b2073] {
1833
1833
  white-space: nowrap;
1834
1834
  border: 0;
1835
1835
  }
1836
- .right-sidebar[data-v-31bb6dd9] {
1836
+ .superdoc__mutation-status[data-v-01062725] {
1837
+ position: sticky;
1838
+ z-index: 10;
1839
+ top: 12px;
1840
+ height: 0;
1841
+ pointer-events: none;
1842
+ }
1843
+ .superdoc__edit-rejected-status[data-v-01062725] {
1844
+ position: absolute;
1845
+ top: 0;
1846
+ left: 50%;
1847
+ max-width: min(480px, calc(100% - 32px));
1848
+ margin: 0;
1849
+ padding: 8px 12px;
1850
+ transform: translateX(-50%);
1851
+ border: 1px solid var(--sd-ui-border, #dadce0);
1852
+ border-radius: 6px;
1853
+ background: var(--sd-ui-surface-bg, #fff);
1854
+ box-shadow: var(--sd-ui-surface-shadow, 0 2px 8px rgba(60, 64, 67, 0.2));
1855
+ color: var(--sd-ui-text, #202124);
1856
+ font-family: var(--sd-ui-font-family, Arial, sans-serif);
1857
+ font-size: 13px;
1858
+ line-height: 20px;
1859
+ pointer-events: none;
1860
+ }
1861
+ .right-sidebar[data-v-01062725] {
1837
1862
  min-width: 320px;
1838
1863
  height: 100%;
1839
1864
  }
1840
- .floating-comments[data-v-31bb6dd9] {
1865
+ .floating-comments[data-v-01062725] {
1841
1866
  min-width: 300px;
1842
1867
  width: 300px;
1843
1868
  height: 100%;
1844
1869
  overflow: visible;
1845
1870
  }
1846
- .superdoc__layers[data-v-31bb6dd9] {
1871
+ .superdoc__layers[data-v-01062725] {
1847
1872
  height: 100%;
1848
1873
  position: relative;
1849
1874
  box-sizing: border-box;
1850
1875
  }
1851
- .superdoc__document[data-v-31bb6dd9] {
1876
+ .superdoc__document[data-v-01062725] {
1852
1877
  width: 100%;
1853
1878
  position: relative;
1854
1879
  }
1855
- .superdoc__sub-document[data-v-31bb6dd9] {
1880
+ .superdoc__sub-document[data-v-01062725] {
1856
1881
  width: 100%;
1857
1882
  position: relative;
1858
1883
  }
1859
- .superdoc__selection-layer[data-v-31bb6dd9] {
1884
+ .superdoc__selection-layer[data-v-01062725] {
1860
1885
  position: absolute;
1861
1886
  min-width: 100%;
1862
1887
  min-height: 100%;
@@ -1867,13 +1892,13 @@ img[data-v-c95b2073] {
1867
1892
  /* SD-3497: PDF whiteboard overlay sits above the rendered PDF canvas but below
1868
1893
  the PDF comment anchors (z-index 6 in PdfCommentsLayer) so anchors stay
1869
1894
  clickable, and below the selection layer (z-index 10). */
1870
- .superdoc__whiteboard-layer[data-v-31bb6dd9] {
1895
+ .superdoc__whiteboard-layer[data-v-01062725] {
1871
1896
  z-index: 4;
1872
1897
  }
1873
- .superdoc__temp-selection[data-v-31bb6dd9] {
1898
+ .superdoc__temp-selection[data-v-01062725] {
1874
1899
  position: absolute;
1875
1900
  }
1876
- .superdoc__right-sidebar[data-v-31bb6dd9] {
1901
+ .superdoc__right-sidebar[data-v-01062725] {
1877
1902
  width: 320px;
1878
1903
  min-width: 320px;
1879
1904
  padding: 0 10px;
@@ -1881,7 +1906,7 @@ img[data-v-c95b2073] {
1881
1906
  position: relative;
1882
1907
  z-index: 2;
1883
1908
  }
1884
- .superdoc__compact-comment-popover[data-v-31bb6dd9] {
1909
+ .superdoc__compact-comment-popover[data-v-01062725] {
1885
1910
  position: absolute;
1886
1911
  top: 12px;
1887
1912
  right: 12px;
@@ -1890,14 +1915,14 @@ img[data-v-c95b2073] {
1890
1915
  }
1891
1916
 
1892
1917
  /* Tools styles */
1893
- .tools[data-v-31bb6dd9] {
1918
+ .tools[data-v-01062725] {
1894
1919
  position: absolute;
1895
1920
  z-index: 3;
1896
1921
  display: flex;
1897
1922
  flex-direction: column;
1898
1923
  gap: var(--sd-ui-tools-gap, 6px);
1899
1924
  }
1900
- .tools-item[data-v-31bb6dd9] {
1925
+ .tools-item[data-v-01062725] {
1901
1926
  display: flex;
1902
1927
  align-items: center;
1903
1928
  justify-content: center;
@@ -1908,10 +1933,10 @@ img[data-v-c95b2073] {
1908
1933
  cursor: pointer;
1909
1934
  position: relative;
1910
1935
  }
1911
- .tools-item i[data-v-31bb6dd9] {
1936
+ .tools-item i[data-v-01062725] {
1912
1937
  cursor: pointer;
1913
1938
  }
1914
- .superdoc__tools-icon[data-v-31bb6dd9] {
1939
+ .superdoc__tools-icon[data-v-01062725] {
1915
1940
  width: var(--sd-ui-tools-icon-size, 20px);
1916
1941
  height: var(--sd-ui-tools-icon-size, 20px);
1917
1942
  flex-shrink: 0;
@@ -1926,22 +1951,22 @@ img[data-v-c95b2073] {
1926
1951
 
1927
1952
  /* 834px is iPad screen size in portrait orientation */
1928
1953
  @media (max-width: 834px) {
1929
- .superdoc .superdoc__layers[data-v-31bb6dd9] {
1954
+ .superdoc .superdoc__layers[data-v-01062725] {
1930
1955
  margin: 0;
1931
1956
  border: 0 !important;
1932
1957
  box-shadow: none;
1933
1958
  }
1934
- .superdoc__sub-document[data-v-31bb6dd9] {
1959
+ .superdoc__sub-document[data-v-01062725] {
1935
1960
  max-width: 100%;
1936
1961
  }
1937
- .superdoc__right-sidebar[data-v-31bb6dd9] {
1962
+ .superdoc__right-sidebar[data-v-01062725] {
1938
1963
  padding: 10px;
1939
1964
  position: relative;
1940
1965
  }
1941
1966
  }
1942
1967
 
1943
1968
  /* AI Writer styles */
1944
- .ai-writer-container[data-v-31bb6dd9] {
1969
+ .ai-writer-container[data-v-01062725] {
1945
1970
  position: fixed;
1946
1971
  z-index: 1000;
1947
1972
  background: white;
@@ -1957,10 +1982,10 @@ img[data-v-c95b2073] {
1957
1982
  transform: translateY(-50%);
1958
1983
  z-index: 50;
1959
1984
  } */
1960
- .ai-tool > svg[data-v-31bb6dd9] {
1985
+ .ai-tool > svg[data-v-01062725] {
1961
1986
  fill: transparent;
1962
1987
  }
1963
- .ai-tool[data-v-31bb6dd9]::before {
1988
+ .ai-tool[data-v-01062725]::before {
1964
1989
  content: '';
1965
1990
  position: absolute;
1966
1991
  width: 20px;
@@ -1981,7 +2006,7 @@ img[data-v-c95b2073] {
1981
2006
  filter: brightness(1.2);
1982
2007
  transition: filter 0.2s ease;
1983
2008
  }
1984
- .ai-tool[data-v-31bb6dd9]:hover::before {
2009
+ .ai-tool[data-v-01062725]:hover::before {
1985
2010
  filter: brightness(1.3);
1986
2011
  }
1987
2012
 
@@ -0,0 +1,17 @@
1
+ export function isV2KeyboardEditRejection(event: any): boolean;
2
+ export function createV2KeyboardEditRejectionException(documentId: any): {
3
+ documentId?: string | undefined;
4
+ error: Error;
5
+ code: string;
6
+ editor: null;
7
+ };
8
+ export function resolveV2MutationNoticeStatuses(scope: any, authorRequiredMessages: any, editRejectedMessages: any): {
9
+ authorRequired: any;
10
+ editRejected: any;
11
+ };
12
+ export function createV2KeyboardEditRejectionNotificationGate(): {
13
+ shouldNotify(scope: any, event: any): boolean;
14
+ clear(scope: any): void;
15
+ };
16
+ export const V2_EDIT_REJECTED_CODE: "edit-rejected";
17
+ export const V2_EDIT_REJECTED_MESSAGE: "This edit couldn\u2019t be completed. Adjust the selection and try again.";