superdoc 2.29.0-next.1 → 2.29.0-next.2

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 (35) hide show
  1. package/dist/chunks/{create-super-doc-ui-0OA8hCNb.cjs → create-super-doc-ui-BAGOnYGM.cjs} +2 -2
  2. package/dist/chunks/{create-super-doc-ui-Duf65d0b.es.js → create-super-doc-ui-BFt8agAI.es.js} +2 -2
  3. package/dist/collaboration-upgrade-engine.cjs +1 -1
  4. package/dist/collaboration-upgrade-engine.es.js +1 -1
  5. package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
  6. package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
  7. package/dist/document-api/src/tables/tables.d.ts +2 -1
  8. package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
  9. package/dist/layout-engine/contracts/src/index.d.ts +1 -1
  10. package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
  11. package/dist/public/ui-react.cjs +1 -1
  12. package/dist/public/ui-react.es.js +1 -1
  13. package/dist/public/ui-vue.cjs +1 -1
  14. package/dist/public/ui-vue.es.js +1 -1
  15. package/dist/public/ui.cjs +1 -1
  16. package/dist/public/ui.es.js +1 -1
  17. package/dist/style.css +1 -1
  18. package/dist/style.layered.css +1 -1
  19. package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +699 -28
  20. package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +107 -22
  21. package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +689 -14
  22. package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
  23. package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
  24. package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
  25. package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
  26. package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
  27. package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +1 -0
  28. package/dist/superdoc/src/components/general/Avatar.vue.d.ts +12 -5
  29. package/dist/superdoc/src/core/collaboration/permissions.d.ts +1 -1
  30. package/dist/superdoc.cjs +94 -59
  31. package/dist/superdoc.es.js +86 -52
  32. package/dist-cdn/style.layered.css +1 -1
  33. package/dist-cdn/superdoc.min.css +1 -1
  34. package/dist-cdn/superdoc.min.js +23 -23
  35. package/package.json +2 -2
@@ -1,4 +1,5 @@
1
1
  import { PropType, Ref } from 'vue';
2
+ import { User } from '../../core/types/index.js';
2
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
4
  comment: {
4
5
  type: PropType<{
@@ -1666,22 +1667,358 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1666
1667
  }[] | null;
1667
1668
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
1668
1669
  commentDialogElement: HTMLDivElement;
1669
- commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {
1670
- focus: (options: any) => void;
1671
- $emit: (event: "focus", ...args: any[]) => void;
1672
- config: Record<string, any>;
1670
+ commentInput: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
1671
+ users: {
1672
+ type: PropType<readonly (User & {
1673
+ access?: string | {
1674
+ role?: string;
1675
+ } | null;
1676
+ })[]>;
1677
+ required: false;
1678
+ default: () => never[];
1679
+ };
1680
+ config: {
1681
+ type: PropType<{
1682
+ readOnly?: boolean;
1683
+ allowResolve?: boolean;
1684
+ }>;
1685
+ required: true;
1686
+ };
1687
+ isFocused: {
1688
+ type: BooleanConstructor;
1689
+ default: boolean;
1690
+ };
1691
+ includeHeader: {
1692
+ type: BooleanConstructor;
1693
+ default: boolean;
1694
+ };
1695
+ comment: {
1696
+ type: PropType<{
1697
+ uid: string | undefined;
1698
+ commentId: string;
1699
+ importedId: string | null | undefined;
1700
+ parentCommentId: string | null | undefined;
1701
+ trackedChangeParentId: string | null | undefined;
1702
+ trackedChangeThreadParentId: string | null | undefined;
1703
+ trackedChangeSide: string | null | undefined;
1704
+ fileId: string | null | undefined;
1705
+ fileType: string | null | undefined;
1706
+ mentions: {
1707
+ name?: string | null | undefined;
1708
+ email?: string | null | undefined;
1709
+ }[];
1710
+ commentElement: HTMLElement | null;
1711
+ isFocused: boolean;
1712
+ creatorId: string | null;
1713
+ creatorEmail: string | null;
1714
+ creatorName: string | null;
1715
+ creatorImage: string | null;
1716
+ createdTime: number;
1717
+ isInternal: boolean;
1718
+ commentText: string;
1719
+ selection: {
1720
+ documentId: any;
1721
+ page: any;
1722
+ selectionBounds: any;
1723
+ getValues: () => {
1724
+ documentId: any;
1725
+ page: any;
1726
+ selectionBounds: any;
1727
+ source: any;
1728
+ };
1729
+ getContainerId: () => string;
1730
+ getContainerLocation: (parentContainer: any) => {
1731
+ top: number;
1732
+ left: number;
1733
+ };
1734
+ source: any;
1735
+ };
1736
+ floatingPosition: {
1737
+ top?: number | undefined;
1738
+ left?: number | undefined;
1739
+ right?: number | undefined;
1740
+ bottom?: number | undefined;
1741
+ };
1742
+ trackedChange: boolean | undefined;
1743
+ deletedText: string | null;
1744
+ trackedChangeType: string | null;
1745
+ trackedChangeText: string | null;
1746
+ trackedChangeDisplayType: string | null;
1747
+ semanticColorKey: string | null;
1748
+ semanticColor: string | null;
1749
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1750
+ trackedChangeStoryKind: string | null;
1751
+ trackedChangeStoryLabel: string;
1752
+ trackedChangeAnchorKey: string | null;
1753
+ trackedChangeCanonicalId: string | null;
1754
+ trackedChangePositionAliases: string[];
1755
+ trackedChangeDecision: ("accept" | "reject") | null;
1756
+ trackedChangeLabel: string | null;
1757
+ trackedChangeDetailLines: {
1758
+ excerpt: string;
1759
+ label: string;
1760
+ }[] | null;
1761
+ trackedChangeImagePreview: {
1762
+ src: string;
1763
+ contentType: string;
1764
+ role: "deleted" | "inserted" | "before" | "after";
1765
+ partUri?: string | undefined;
1766
+ relationshipId?: string | undefined;
1767
+ width?: number | undefined;
1768
+ height?: number | undefined;
1769
+ alt?: string | undefined;
1770
+ } | null;
1771
+ customAttributes: readonly {
1772
+ name: string;
1773
+ namespaceUri: string;
1774
+ localName: string;
1775
+ value: string;
1776
+ }[] | null;
1777
+ resolvedTime: number | null;
1778
+ resolvedById: string | null;
1779
+ resolvedByEmail: string | null | undefined;
1780
+ resolvedByName: string | null | undefined;
1781
+ importedAuthor: {
1782
+ name?: string | null | undefined;
1783
+ email?: string | null | undefined;
1784
+ } | null;
1785
+ docxCommentJSON: {} | null;
1786
+ origin: "word" | "google-docs" | "unknown" | undefined;
1787
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1788
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1789
+ threadingParentCommentId: string | null | undefined;
1790
+ originalXmlStructure: {
1791
+ hasCommentsExtended: boolean;
1792
+ hasCommentsExtensible: boolean;
1793
+ hasCommentsIds: boolean;
1794
+ } | undefined;
1795
+ setText: ({ text, superdoc, suppressUpdate }: {
1796
+ text: string;
1797
+ superdoc?: {
1798
+ emit: (event: "comments-update", payload: {
1799
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1800
+ changes?: {
1801
+ key: string;
1802
+ value: unknown;
1803
+ previousValue?: unknown;
1804
+ }[];
1805
+ comment: unknown;
1806
+ }) => unknown;
1807
+ commentsStore?: {
1808
+ getConfig?: {
1809
+ readOnly?: boolean;
1810
+ };
1811
+ };
1812
+ config?: {
1813
+ modules?: import('../../public/index.js').Modules;
1814
+ };
1815
+ };
1816
+ suppressUpdate: true;
1817
+ } | {
1818
+ text: string;
1819
+ superdoc: {
1820
+ emit: (event: "comments-update", payload: {
1821
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1822
+ changes?: {
1823
+ key: string;
1824
+ value: unknown;
1825
+ previousValue?: unknown;
1826
+ }[];
1827
+ comment: unknown;
1828
+ }) => unknown;
1829
+ commentsStore?: {
1830
+ getConfig?: {
1831
+ readOnly?: boolean;
1832
+ };
1833
+ };
1834
+ config?: {
1835
+ modules?: import('../../public/index.js').Modules;
1836
+ };
1837
+ };
1838
+ suppressUpdate?: false;
1839
+ }) => {
1840
+ ok: false;
1841
+ reason: "read-only-document";
1842
+ } | undefined;
1843
+ getValues: () => {
1844
+ uid: string | undefined;
1845
+ commentId: string | undefined;
1846
+ importedId: string | null | undefined;
1847
+ parentCommentId: string | null | undefined;
1848
+ trackedChangeParentId: string | null | undefined;
1849
+ trackedChangeThreadParentId: string | null | undefined;
1850
+ trackedChangeSide: string | null | undefined;
1851
+ fileId: string | null | undefined;
1852
+ fileType: string | null | undefined;
1853
+ mentions: {
1854
+ name: string | null | undefined;
1855
+ email?: string | null | undefined;
1856
+ }[];
1857
+ createdAtVersionNumber: number | null | undefined;
1858
+ creatorId: string | null;
1859
+ creatorEmail: string | null;
1860
+ creatorName: string | null;
1861
+ creatorImage: string | null;
1862
+ createdTime: number;
1863
+ importedAuthor: {
1864
+ name?: string | null | undefined;
1865
+ email?: string | null | undefined;
1866
+ } | null;
1867
+ docxCommentJSON: {} | null;
1868
+ isInternal: boolean;
1869
+ commentText: string;
1870
+ selection: {
1871
+ documentId: any;
1872
+ page: any;
1873
+ selectionBounds: any;
1874
+ source: any;
1875
+ } | null;
1876
+ trackedChange: boolean | undefined;
1877
+ trackedChangeText: string | null;
1878
+ trackedChangeType: string | null;
1879
+ trackedChangeDisplayType: string | null;
1880
+ semanticColorKey: string | null;
1881
+ semanticColor: string | null;
1882
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
1883
+ trackedChangeStoryKind: string | null;
1884
+ trackedChangeStoryLabel: string;
1885
+ trackedChangeAnchorKey: string | null;
1886
+ trackedChangeCanonicalId: string | null;
1887
+ trackedChangePositionAliases: string[];
1888
+ trackedChangeDecision: ("accept" | "reject") | null;
1889
+ trackedChangeLabel: string | null;
1890
+ trackedChangeDetailLines: {
1891
+ excerpt: string;
1892
+ label: string;
1893
+ }[] | null;
1894
+ trackedChangeImagePreview: {
1895
+ src: string;
1896
+ contentType: string;
1897
+ role: "deleted" | "inserted" | "before" | "after";
1898
+ partUri?: string | undefined;
1899
+ relationshipId?: string | undefined;
1900
+ width?: number | undefined;
1901
+ height?: number | undefined;
1902
+ alt?: string | undefined;
1903
+ } | null;
1904
+ customAttributes: readonly {
1905
+ name: string;
1906
+ namespaceUri: string;
1907
+ localName: string;
1908
+ value: string;
1909
+ }[] | null;
1910
+ deletedText: string | null;
1911
+ resolvedTime: number | null;
1912
+ resolvedById: string | null;
1913
+ resolvedByEmail: string | null | undefined;
1914
+ resolvedByName: string | null | undefined;
1915
+ origin: "word" | "google-docs" | "unknown" | undefined;
1916
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
1917
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
1918
+ threadingParentCommentId: string | null | undefined;
1919
+ originalXmlStructure: {
1920
+ hasCommentsExtended: boolean;
1921
+ hasCommentsExtensible: boolean;
1922
+ hasCommentsIds: boolean;
1923
+ } | undefined;
1924
+ };
1925
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
1926
+ id?: string | null;
1927
+ email?: string | null;
1928
+ name?: string | null;
1929
+ superdoc: {
1930
+ emit: (event: "comments-update", payload: {
1931
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1932
+ changes?: {
1933
+ key: string;
1934
+ value: unknown;
1935
+ previousValue?: unknown;
1936
+ }[];
1937
+ comment: unknown;
1938
+ }) => unknown;
1939
+ commentsStore?: {
1940
+ getConfig?: {
1941
+ readOnly?: boolean;
1942
+ };
1943
+ };
1944
+ config?: {
1945
+ modules?: import('../../public/index.js').Modules;
1946
+ };
1947
+ };
1948
+ decision?: "accept" | "reject";
1949
+ reconciliationToken?: symbol;
1950
+ }) => {
1951
+ ok: false;
1952
+ reason: "read-only-document";
1953
+ } | undefined;
1954
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
1955
+ isInternal: boolean;
1956
+ superdoc: {
1957
+ emit: (event: "comments-update", payload: {
1958
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
1959
+ changes?: {
1960
+ key: string;
1961
+ value: unknown;
1962
+ previousValue?: unknown;
1963
+ }[];
1964
+ comment: unknown;
1965
+ }) => unknown;
1966
+ commentsStore?: {
1967
+ getConfig?: {
1968
+ readOnly?: boolean;
1969
+ };
1970
+ };
1971
+ config?: {
1972
+ modules?: import('../../public/index.js').Modules;
1973
+ };
1974
+ };
1975
+ }) => {
1976
+ ok: false;
1977
+ reason: "read-only-document";
1978
+ } | undefined;
1979
+ updatePosition: (coords: {
1980
+ top: number;
1981
+ left: number;
1982
+ right: number;
1983
+ bottom: number;
1984
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
1985
+ getCommentUser: () => {
1986
+ name: string;
1987
+ email: string | null | undefined;
1988
+ id?: undefined;
1989
+ image?: undefined;
1990
+ } | {
1991
+ id: string | null;
1992
+ name: string | null;
1993
+ email: string | null;
1994
+ image: string | null;
1995
+ };
1996
+ updateIdentityValues: (updates?: {
1997
+ commentId?: string;
1998
+ importedId?: string | null;
1999
+ parentCommentId?: string | null;
2000
+ trackedChangeParentId?: string | null;
2001
+ trackedChangeThreadParentId?: string | null;
2002
+ threadingParentCommentId?: string | null;
2003
+ }) => void;
2004
+ }>;
2005
+ required: true;
2006
+ };
2007
+ }>> & Readonly<{
2008
+ onFocus?: ((...args: any[]) => any) | undefined;
2009
+ }>, {
2010
+ focus: (options?: FocusOptions) => void;
2011
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2012
+ focus: (...args: any[]) => void;
2013
+ }, import('vue').PublicProps, {
1673
2014
  isFocused: boolean;
1674
- users: unknown[];
2015
+ users: readonly (User & {
2016
+ access?: string | {
2017
+ role?: string;
2018
+ } | null;
2019
+ })[];
1675
2020
  includeHeader: boolean;
1676
- comment?: Record<string, any> | undefined;
1677
- $props: {
1678
- readonly config?: Record<string, any> | undefined;
1679
- readonly isFocused?: boolean | undefined;
1680
- readonly users?: unknown[] | undefined;
1681
- readonly includeHeader?: boolean | undefined;
1682
- readonly comment?: Record<string, any> | undefined;
1683
- };
1684
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
2021
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
1685
2022
  inputRef: HTMLTextAreaElement;
1686
2023
  }, HTMLDivElement, import('vue').ComponentProvideOptions, {
1687
2024
  P: {};
@@ -1690,21 +2027,355 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
1690
2027
  C: {};
1691
2028
  M: {};
1692
2029
  Defaults: {};
1693
- }, Readonly<{}> & Readonly<{}>, {
1694
- focus: (options: any) => void;
1695
- $emit: (event: "focus", ...args: any[]) => void;
1696
- config: Record<string, any>;
2030
+ }, Readonly<import('vue').ExtractPropTypes<{
2031
+ users: {
2032
+ type: PropType<readonly (User & {
2033
+ access?: string | {
2034
+ role?: string;
2035
+ } | null;
2036
+ })[]>;
2037
+ required: false;
2038
+ default: () => never[];
2039
+ };
2040
+ config: {
2041
+ type: PropType<{
2042
+ readOnly?: boolean;
2043
+ allowResolve?: boolean;
2044
+ }>;
2045
+ required: true;
2046
+ };
2047
+ isFocused: {
2048
+ type: BooleanConstructor;
2049
+ default: boolean;
2050
+ };
2051
+ includeHeader: {
2052
+ type: BooleanConstructor;
2053
+ default: boolean;
2054
+ };
2055
+ comment: {
2056
+ type: PropType<{
2057
+ uid: string | undefined;
2058
+ commentId: string;
2059
+ importedId: string | null | undefined;
2060
+ parentCommentId: string | null | undefined;
2061
+ trackedChangeParentId: string | null | undefined;
2062
+ trackedChangeThreadParentId: string | null | undefined;
2063
+ trackedChangeSide: string | null | undefined;
2064
+ fileId: string | null | undefined;
2065
+ fileType: string | null | undefined;
2066
+ mentions: {
2067
+ name?: string | null | undefined;
2068
+ email?: string | null | undefined;
2069
+ }[];
2070
+ commentElement: HTMLElement | null;
2071
+ isFocused: boolean;
2072
+ creatorId: string | null;
2073
+ creatorEmail: string | null;
2074
+ creatorName: string | null;
2075
+ creatorImage: string | null;
2076
+ createdTime: number;
2077
+ isInternal: boolean;
2078
+ commentText: string;
2079
+ selection: {
2080
+ documentId: any;
2081
+ page: any;
2082
+ selectionBounds: any;
2083
+ getValues: () => {
2084
+ documentId: any;
2085
+ page: any;
2086
+ selectionBounds: any;
2087
+ source: any;
2088
+ };
2089
+ getContainerId: () => string;
2090
+ getContainerLocation: (parentContainer: any) => {
2091
+ top: number;
2092
+ left: number;
2093
+ };
2094
+ source: any;
2095
+ };
2096
+ floatingPosition: {
2097
+ top?: number | undefined;
2098
+ left?: number | undefined;
2099
+ right?: number | undefined;
2100
+ bottom?: number | undefined;
2101
+ };
2102
+ trackedChange: boolean | undefined;
2103
+ deletedText: string | null;
2104
+ trackedChangeType: string | null;
2105
+ trackedChangeText: string | null;
2106
+ trackedChangeDisplayType: string | null;
2107
+ semanticColorKey: string | null;
2108
+ semanticColor: string | null;
2109
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
2110
+ trackedChangeStoryKind: string | null;
2111
+ trackedChangeStoryLabel: string;
2112
+ trackedChangeAnchorKey: string | null;
2113
+ trackedChangeCanonicalId: string | null;
2114
+ trackedChangePositionAliases: string[];
2115
+ trackedChangeDecision: ("accept" | "reject") | null;
2116
+ trackedChangeLabel: string | null;
2117
+ trackedChangeDetailLines: {
2118
+ excerpt: string;
2119
+ label: string;
2120
+ }[] | null;
2121
+ trackedChangeImagePreview: {
2122
+ src: string;
2123
+ contentType: string;
2124
+ role: "deleted" | "inserted" | "before" | "after";
2125
+ partUri?: string | undefined;
2126
+ relationshipId?: string | undefined;
2127
+ width?: number | undefined;
2128
+ height?: number | undefined;
2129
+ alt?: string | undefined;
2130
+ } | null;
2131
+ customAttributes: readonly {
2132
+ name: string;
2133
+ namespaceUri: string;
2134
+ localName: string;
2135
+ value: string;
2136
+ }[] | null;
2137
+ resolvedTime: number | null;
2138
+ resolvedById: string | null;
2139
+ resolvedByEmail: string | null | undefined;
2140
+ resolvedByName: string | null | undefined;
2141
+ importedAuthor: {
2142
+ name?: string | null | undefined;
2143
+ email?: string | null | undefined;
2144
+ } | null;
2145
+ docxCommentJSON: {} | null;
2146
+ origin: "word" | "google-docs" | "unknown" | undefined;
2147
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
2148
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
2149
+ threadingParentCommentId: string | null | undefined;
2150
+ originalXmlStructure: {
2151
+ hasCommentsExtended: boolean;
2152
+ hasCommentsExtensible: boolean;
2153
+ hasCommentsIds: boolean;
2154
+ } | undefined;
2155
+ setText: ({ text, superdoc, suppressUpdate }: {
2156
+ text: string;
2157
+ superdoc?: {
2158
+ emit: (event: "comments-update", payload: {
2159
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2160
+ changes?: {
2161
+ key: string;
2162
+ value: unknown;
2163
+ previousValue?: unknown;
2164
+ }[];
2165
+ comment: unknown;
2166
+ }) => unknown;
2167
+ commentsStore?: {
2168
+ getConfig?: {
2169
+ readOnly?: boolean;
2170
+ };
2171
+ };
2172
+ config?: {
2173
+ modules?: import('../../public/index.js').Modules;
2174
+ };
2175
+ };
2176
+ suppressUpdate: true;
2177
+ } | {
2178
+ text: string;
2179
+ superdoc: {
2180
+ emit: (event: "comments-update", payload: {
2181
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2182
+ changes?: {
2183
+ key: string;
2184
+ value: unknown;
2185
+ previousValue?: unknown;
2186
+ }[];
2187
+ comment: unknown;
2188
+ }) => unknown;
2189
+ commentsStore?: {
2190
+ getConfig?: {
2191
+ readOnly?: boolean;
2192
+ };
2193
+ };
2194
+ config?: {
2195
+ modules?: import('../../public/index.js').Modules;
2196
+ };
2197
+ };
2198
+ suppressUpdate?: false;
2199
+ }) => {
2200
+ ok: false;
2201
+ reason: "read-only-document";
2202
+ } | undefined;
2203
+ getValues: () => {
2204
+ uid: string | undefined;
2205
+ commentId: string | undefined;
2206
+ importedId: string | null | undefined;
2207
+ parentCommentId: string | null | undefined;
2208
+ trackedChangeParentId: string | null | undefined;
2209
+ trackedChangeThreadParentId: string | null | undefined;
2210
+ trackedChangeSide: string | null | undefined;
2211
+ fileId: string | null | undefined;
2212
+ fileType: string | null | undefined;
2213
+ mentions: {
2214
+ name: string | null | undefined;
2215
+ email?: string | null | undefined;
2216
+ }[];
2217
+ createdAtVersionNumber: number | null | undefined;
2218
+ creatorId: string | null;
2219
+ creatorEmail: string | null;
2220
+ creatorName: string | null;
2221
+ creatorImage: string | null;
2222
+ createdTime: number;
2223
+ importedAuthor: {
2224
+ name?: string | null | undefined;
2225
+ email?: string | null | undefined;
2226
+ } | null;
2227
+ docxCommentJSON: {} | null;
2228
+ isInternal: boolean;
2229
+ commentText: string;
2230
+ selection: {
2231
+ documentId: any;
2232
+ page: any;
2233
+ selectionBounds: any;
2234
+ source: any;
2235
+ } | null;
2236
+ trackedChange: boolean | undefined;
2237
+ trackedChangeText: string | null;
2238
+ trackedChangeType: string | null;
2239
+ trackedChangeDisplayType: string | null;
2240
+ semanticColorKey: string | null;
2241
+ semanticColor: string | null;
2242
+ trackedChangeStory: import('../../public/index.js').StoryLocator | null;
2243
+ trackedChangeStoryKind: string | null;
2244
+ trackedChangeStoryLabel: string;
2245
+ trackedChangeAnchorKey: string | null;
2246
+ trackedChangeCanonicalId: string | null;
2247
+ trackedChangePositionAliases: string[];
2248
+ trackedChangeDecision: ("accept" | "reject") | null;
2249
+ trackedChangeLabel: string | null;
2250
+ trackedChangeDetailLines: {
2251
+ excerpt: string;
2252
+ label: string;
2253
+ }[] | null;
2254
+ trackedChangeImagePreview: {
2255
+ src: string;
2256
+ contentType: string;
2257
+ role: "deleted" | "inserted" | "before" | "after";
2258
+ partUri?: string | undefined;
2259
+ relationshipId?: string | undefined;
2260
+ width?: number | undefined;
2261
+ height?: number | undefined;
2262
+ alt?: string | undefined;
2263
+ } | null;
2264
+ customAttributes: readonly {
2265
+ name: string;
2266
+ namespaceUri: string;
2267
+ localName: string;
2268
+ value: string;
2269
+ }[] | null;
2270
+ deletedText: string | null;
2271
+ resolvedTime: number | null;
2272
+ resolvedById: string | null;
2273
+ resolvedByEmail: string | null | undefined;
2274
+ resolvedByName: string | null | undefined;
2275
+ origin: "word" | "google-docs" | "unknown" | undefined;
2276
+ threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
2277
+ threadingStyleOverride: import('../../../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
2278
+ threadingParentCommentId: string | null | undefined;
2279
+ originalXmlStructure: {
2280
+ hasCommentsExtended: boolean;
2281
+ hasCommentsExtensible: boolean;
2282
+ hasCommentsIds: boolean;
2283
+ } | undefined;
2284
+ };
2285
+ resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
2286
+ id?: string | null;
2287
+ email?: string | null;
2288
+ name?: string | null;
2289
+ superdoc: {
2290
+ emit: (event: "comments-update", payload: {
2291
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2292
+ changes?: {
2293
+ key: string;
2294
+ value: unknown;
2295
+ previousValue?: unknown;
2296
+ }[];
2297
+ comment: unknown;
2298
+ }) => unknown;
2299
+ commentsStore?: {
2300
+ getConfig?: {
2301
+ readOnly?: boolean;
2302
+ };
2303
+ };
2304
+ config?: {
2305
+ modules?: import('../../public/index.js').Modules;
2306
+ };
2307
+ };
2308
+ decision?: "accept" | "reject";
2309
+ reconciliationToken?: symbol;
2310
+ }) => {
2311
+ ok: false;
2312
+ reason: "read-only-document";
2313
+ } | undefined;
2314
+ setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
2315
+ isInternal: boolean;
2316
+ superdoc: {
2317
+ emit: (event: "comments-update", payload: {
2318
+ type: import('../../../../../shared/common/event-types.js').CommentEvent;
2319
+ changes?: {
2320
+ key: string;
2321
+ value: unknown;
2322
+ previousValue?: unknown;
2323
+ }[];
2324
+ comment: unknown;
2325
+ }) => unknown;
2326
+ commentsStore?: {
2327
+ getConfig?: {
2328
+ readOnly?: boolean;
2329
+ };
2330
+ };
2331
+ config?: {
2332
+ modules?: import('../../public/index.js').Modules;
2333
+ };
2334
+ };
2335
+ }) => {
2336
+ ok: false;
2337
+ reason: "read-only-document";
2338
+ } | undefined;
2339
+ updatePosition: (coords: {
2340
+ top: number;
2341
+ left: number;
2342
+ right: number;
2343
+ bottom: number;
2344
+ }, parentElement: Pick<Element, "getBoundingClientRect">) => void;
2345
+ getCommentUser: () => {
2346
+ name: string;
2347
+ email: string | null | undefined;
2348
+ id?: undefined;
2349
+ image?: undefined;
2350
+ } | {
2351
+ id: string | null;
2352
+ name: string | null;
2353
+ email: string | null;
2354
+ image: string | null;
2355
+ };
2356
+ updateIdentityValues: (updates?: {
2357
+ commentId?: string;
2358
+ importedId?: string | null;
2359
+ parentCommentId?: string | null;
2360
+ trackedChangeParentId?: string | null;
2361
+ trackedChangeThreadParentId?: string | null;
2362
+ threadingParentCommentId?: string | null;
2363
+ }) => void;
2364
+ }>;
2365
+ required: true;
2366
+ };
2367
+ }>> & Readonly<{
2368
+ onFocus?: ((...args: any[]) => any) | undefined;
2369
+ }>, {
2370
+ focus: (options?: FocusOptions) => void;
2371
+ }, {}, {}, {}, {
1697
2372
  isFocused: boolean;
1698
- users: unknown[];
2373
+ users: readonly (User & {
2374
+ access?: string | {
2375
+ role?: string;
2376
+ } | null;
2377
+ })[];
1699
2378
  includeHeader: boolean;
1700
- comment?: Record<string, any> | undefined;
1701
- $props: {
1702
- readonly config?: Record<string, any> | undefined;
1703
- readonly isFocused?: boolean | undefined;
1704
- readonly users?: unknown[] | undefined;
1705
- readonly includeHeader?: boolean | undefined;
1706
- readonly comment?: Record<string, any> | undefined;
1707
- };
1708
- }, {}, {}, {}, {}> | null;
2379
+ }> | null;
1709
2380
  }, HTMLDivElement>;
1710
2381
  export default _default;