@univerjs/thread-comment-ui 0.2.7 → 0.2.8

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/lib/index.css CHANGED
@@ -1 +1 @@
1
- .univer-thread-comment-editor-buttons{margin-top:12px;display:flex;flex-direction:row;justify-content:flex-end}.univer-thread-comment-editor-suggestion{display:flex;align-items:center;font-size:13px;color:rgb(var(--color-black))}.univer-thread-comment-editor-suggestionActive{background-color:rgba(var(--grey-50))}.univer-thread-comment-editor-suggestion-icon{width:24px;height:24px;border-radius:12px;margin-right:6px}.univer-thread-comment{padding:16px;background:rgba(var(--color-white));border:1px solid rgba(var(--grey-200));width:279px;border-radius:8px;box-sizing:border-box;position:relative}.univer-thread-comment-active{box-shadow:var(--box-shadow-base)}.univer-thread-comment-content{max-height:300px;overflow-y:auto;overflow-x:hidden;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-thread-comment-highlight{background-color:rgb(var(--gold-400));position:absolute;top:0;left:0;right:0;height:6px;border-top-left-radius:6px;border-top-right-radius:6px}.univer-thread-comment-icon-container{display:flex;flex-direction:row;flex-shrink:0;flex-grow:0}.univer-thread-comment-icon{width:24px;height:24px;border-radius:3px;margin-left:4px;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:16px}.univer-thread-comment-icon:hover{background-color:rgba(var(--grey-50))}.univer-thread-comment-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:14px;line-height:20px}.univer-thread-comment-title-position{display:flex;flex-direction:row;align-items:center;flex:1 1 0;overflow:hidden}.univer-thread-comment-title-highlight{width:3px;height:14px;border-radius:1.5px;background-color:rgba(var(--gold-400));margin-right:8px;flex-shrink:0;flex-grow:0}.univer-thread-comment-title-position-text{flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.univer-thread-comment-username{font-size:14px;font-weight:500;line-height:20px}.univer-thread-comment-item{margin-bottom:12px;padding-left:30px;position:relative}.univer-thread-comment-item-head{width:24px;height:24px;border-radius:12px;position:absolute;left:0;top:0}.univer-thread-comment-item-title{display:flex;justify-content:space-between;height:24px;align-items:center;margin-bottom:4px}.univer-thread-comment-item-title-position{color:rgba(var(--color-black));font-size:14px;line-height:20px}.univer-thread-comment-item-title-highlight{width:3px;height:14px;border-radius:2px;margin-right:8px;margin-top:3px;background-color:rgba(var(--gold-400))}.univer-thread-comment-item-time{font-size:12px;line-height:1.5;margin-bottom:4px;color:rgba(var(--grey-600))}.univer-thread-comment-item-content{font-size:13px;line-height:20px;word-break:break-all;color:rgba(var(--color-black))}.univer-thread-comment-item-at{color:rgba(var(--blue-400))}.univer-thread-comment-panel{min-height:100%;display:flex;flex-direction:column;padding-bottom:12px}.univer-thread-comment-panel .univer-thread-comment{margin-top:12px}.univer-thread-comment-panel-forms{display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}.univer-thread-comment-panel-forms .univer-select{width:120px}.univer-thread-comment-panel-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--grey-600));font-size:13px;flex:1}.univer-thread-comment-panel-add{margin-top:8px;display:flex;flex-direction:row}.univer-thread-comment-panel-add svg{margin-right:6px}.univer-thread-comment-panel-solved{margin-top:12px;font-size:var(--font-size-xs)}
1
+ .univer-thread-comment-editor-buttons{margin-top:12px;display:flex;flex-direction:row;justify-content:flex-end}.univer-thread-comment-editor-suggestion{display:flex;align-items:center;font-size:13px;color:rgb(var(--color-black))}.univer-thread-comment-editor-suggestionActive{background-color:rgba(var(--grey-50))}.univer-thread-comment-editor-suggestion-icon{width:24px;height:24px;border-radius:12px;margin-right:6px}.univer-thread-comment{padding:16px;background:rgba(var(--color-white));border:1px solid rgba(var(--grey-200));width:279px;border-radius:8px;box-sizing:border-box;position:relative}.univer-thread-comment-active{box-shadow:var(--box-shadow-base)}.univer-thread-comment-content{max-height:300px;overflow-y:auto;overflow-x:hidden;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-thread-comment-highlight{background-color:rgb(var(--gold-400));position:absolute;top:0;left:0;right:0;height:6px;border-top-left-radius:6px;border-top-right-radius:6px}.univer-thread-comment-icon-container{display:flex;flex-direction:row;flex-shrink:0;flex-grow:0}.univer-thread-comment-icon{width:24px;height:24px;border-radius:3px;margin-left:4px;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:16px}.univer-thread-comment-icon:hover{background-color:rgba(var(--grey-50))}.univer-thread-comment-title{display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:16px;font-size:14px;line-height:20px}.univer-thread-comment-title-position{display:flex;flex-direction:row;align-items:center;flex:1 1 0;overflow:hidden}.univer-thread-comment-title-highlight{width:3px;height:14px;border-radius:1.5px;background-color:rgba(var(--gold-400));margin-right:8px;flex-shrink:0;flex-grow:0}.univer-thread-comment-title-position-text{flex:1 1 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.univer-thread-comment-username{font-size:14px;font-weight:500;line-height:20px}.univer-thread-comment-item{margin-bottom:12px;padding-left:30px;position:relative}.univer-thread-comment-item-head{width:24px;height:24px;border-radius:12px;position:absolute;left:0;top:0}.univer-thread-comment-item-title{display:flex;justify-content:space-between;height:24px;align-items:center;margin-bottom:4px}.univer-thread-comment-item-title-position{color:rgba(var(--color-black));font-size:14px;line-height:20px}.univer-thread-comment-item-title-highlight{width:3px;height:14px;border-radius:2px;margin-right:8px;margin-top:3px;background-color:rgba(var(--gold-400))}.univer-thread-comment-item-time{font-size:12px;line-height:1.5;margin-bottom:4px;color:rgba(var(--grey-600))}.univer-thread-comment-item-content{font-size:13px;line-height:20px;color:rgba(var(--color-black))}.univer-thread-comment-item-at{color:rgba(var(--blue-400))}.univer-thread-comment-panel{min-height:100%;display:flex;flex-direction:column;padding-bottom:12px}.univer-thread-comment-panel .univer-thread-comment{margin-top:12px}.univer-thread-comment-panel-forms{display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}.univer-thread-comment-panel-forms .univer-select{width:120px}.univer-thread-comment-panel-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--grey-600));font-size:13px;flex:1}.univer-thread-comment-panel-add{margin-top:8px;display:flex;flex-direction:row}.univer-thread-comment-panel-add svg{margin-right:6px}.univer-thread-comment-panel-solved{margin-top:12px;font-size:var(--font-size-xs)}
@@ -1,5 +1,4 @@
1
1
  import { ICommand } from '@univerjs/core';
2
-
3
2
  export declare const ToggleSheetCommentPanelOperation: ICommand;
4
3
  export interface ISetActiveCommentOperationParams {
5
4
  unitId: string;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const enUS: typeof zhCN;
4
3
  export default enUS;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const enUS: typeof zhCN;
4
3
  export default enUS;
@@ -1,4 +1,3 @@
1
1
  import { default as zhCN } from './zh-CN';
2
-
3
2
  declare const enUS: typeof zhCN;
4
3
  export default enUS;
@@ -1,5 +1,4 @@
1
1
  import { DependencyOverride, ICommandService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
2
-
3
2
  export interface IUniverThreadCommentUIConfig {
4
3
  overrides?: DependencyOverride;
5
4
  }
@@ -1,7 +1,6 @@
1
1
  import { Nullable } from '@univerjs/core';
2
2
  import { MentionProps } from '@univerjs/design';
3
3
  import { IThreadCommentMention } from '@univerjs/thread-comment';
4
-
5
4
  export interface IThreadCommentMentionDataSource {
6
5
  getMentions(search: string, unitId: string, subUnitId: string): Promise<IThreadCommentMention[]>;
7
6
  }
@@ -1,6 +1,5 @@
1
1
  import { Nullable, Disposable, IUniverInstanceService } from '@univerjs/core';
2
2
  import { ISidebarService } from '@univerjs/ui';
3
-
4
3
  export type ActiveCommentInfo = Nullable<{
5
4
  unitId: string;
6
5
  subUnitId: string;
@@ -1,7 +1,6 @@
1
1
  import { IThreadComment } from '@univerjs/thread-comment';
2
2
  import { default as React } from 'react';
3
3
  import { IDocumentBody } from '@univerjs/core';
4
-
5
4
  export interface IThreadCommentEditorProps {
6
5
  id?: string;
7
6
  comment?: Pick<IThreadComment, 'attachments' | 'text' | 'mentions'>;
@@ -1,6 +1,5 @@
1
1
  import { IDocumentBody } from '@univerjs/core';
2
2
  import { IThreadCommentMention } from '@univerjs/thread-comment';
3
-
4
3
  export type TextNode = {
5
4
  type: 'text';
6
5
  content: string;
@@ -3,7 +3,6 @@ import { UniverInstanceType, Nullable } from '@univerjs/core';
3
3
  import { IThreadComment } from '@univerjs/thread-comment';
4
4
  import { Observable } from 'rxjs';
5
5
  import { IThreadCommentTreeProps } from '../thread-comment-tree';
6
-
7
6
  export interface IThreadCommentPanelProps {
8
7
  unitId: string;
9
8
  subUnitId$: Observable<string | undefined>;
@@ -1,7 +1,6 @@
1
1
  import { IThreadComment } from '@univerjs/thread-comment';
2
2
  import { default as React } from 'react';
3
3
  import { IUser, UniverInstanceType } from '@univerjs/core';
4
-
5
4
  export interface IThreadCommentTreeProps {
6
5
  id?: string;
7
6
  unitId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/thread-comment-ui",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "private": false,
5
5
  "description": "Univer common thread comment UI plugin",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -52,16 +52,16 @@
52
52
  "dayjs": ">=1.11.0",
53
53
  "react": "^16.9.0 || ^17.0.0 || ^18.0.0",
54
54
  "rxjs": ">=7.0.0",
55
- "@univerjs/core": "0.2.7",
56
- "@univerjs/design": "0.2.7",
57
- "@univerjs/docs": "0.2.7",
58
- "@univerjs/engine-render": "0.2.7",
59
- "@univerjs/ui": "0.2.7",
60
- "@univerjs/thread-comment": "0.2.7"
55
+ "@univerjs/core": "0.2.8",
56
+ "@univerjs/docs": "0.2.8",
57
+ "@univerjs/design": "0.2.8",
58
+ "@univerjs/engine-render": "0.2.8",
59
+ "@univerjs/thread-comment": "0.2.8",
60
+ "@univerjs/ui": "0.2.8"
61
61
  },
62
62
  "dependencies": {
63
- "@univerjs/icons": "^0.1.72",
64
- "@univerjs/protocol": "0.1.38"
63
+ "@univerjs/icons": "^0.1.73",
64
+ "@univerjs/protocol": "0.1.39-alpha.3"
65
65
  },
66
66
  "devDependencies": {
67
67
  "clsx": "^2.1.1",
@@ -70,15 +70,15 @@
70
70
  "react": "18.3.1",
71
71
  "rxjs": "^7.8.1",
72
72
  "typescript": "^5.5.4",
73
- "vite": "^5.3.5",
73
+ "vite": "^5.4.0",
74
74
  "vitest": "^2.0.5",
75
- "@univerjs/core": "0.2.7",
76
- "@univerjs/design": "0.2.7",
77
- "@univerjs/docs": "0.2.7",
78
- "@univerjs/engine-render": "0.2.7",
79
- "@univerjs/shared": "0.2.7",
80
- "@univerjs/thread-comment": "0.2.7",
81
- "@univerjs/ui": "0.2.7"
75
+ "@univerjs/core": "0.2.8",
76
+ "@univerjs/design": "0.2.8",
77
+ "@univerjs/engine-render": "0.2.8",
78
+ "@univerjs/docs": "0.2.8",
79
+ "@univerjs/shared": "0.2.8",
80
+ "@univerjs/thread-comment": "0.2.8",
81
+ "@univerjs/ui": "0.2.8"
82
82
  },
83
83
  "univerSpace": {
84
84
  ".": {