Skip to content

Commit

Permalink
fix: add ignore comments for facade (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai authored Jan 23, 2025
1 parent adf4c39 commit 1780109
Show file tree
Hide file tree
Showing 111 changed files with 1,735 additions and 2,152 deletions.
10 changes: 5 additions & 5 deletions common/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"univer-cli": "bin/index.ts"
},
"dependencies": {
"@typescript-eslint/parser": "^8.19.1",
"@typescript-eslint/parser": "^8.21.0",
"@vitejs/plugin-react": "^4.3.4",
"@vitejs/plugin-vue": "^5.2.1",
"@vitest/coverage-istanbul": "^2.1.8",
"autoprefixer": "^10.4.20",
"eslint-plugin-readable-tailwind": "^1.8.2",
"eslint-plugin-readable-tailwind": "^1.9.0",
"fs-extra": "^11.2.0",
"happy-dom": "15.0.0",
"javascript-obfuscator": "^4.1.1",
Expand All @@ -44,8 +44,8 @@
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons-svg": "^0.2.12",
"@univerjs/protocol": "0.1.40"
"@univerjs/icons": "^0.2.14",
"@univerjs/icons-svg": "^0.2.14",
"@univerjs/protocol": "0.1.43"
}
}
2 changes: 1 addition & 1 deletion common/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"storybook-addon-swc": "^1.2.0",
"style-loader": "^4.0.0",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
Expand Down
2 changes: 1 addition & 1 deletion examples-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"@univerjs-infra/shared": "workspace:*",
"esbuild": "^0.24.2",
"fs-extra": "^11.2.0",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
}
}
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
}
}
2 changes: 1 addition & 1 deletion mockdata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.2"
"typescript": "^5.7.3"
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,35 @@
"@antfu/eslint-config": "3.12.1",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@eslint-react/eslint-plugin": "^1.22.2",
"@eslint-react/eslint-plugin": "^1.24.1",
"@playwright/test": "^1.49.1",
"@release-it-plugins/workspaces": "^4.2.0",
"@release-it/conventional-changelog": "^9.0.4",
"@storybook/react": "8.4.7",
"@types/node": "^22.10.2",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@types/node": "^22.10.9",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@univerjs-infra/shared": "workspace:*",
"@univerjs/design": "workspace:*",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "9.17.0",
"eslint": "9.18.0",
"eslint-plugin-format": "^0.1.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-jsdoc": "^50.6.2",
"eslint-plugin-no-barrel-import": "^0.0.2",
"eslint-plugin-no-penetrating-import": "^0.0.1",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "5.1.0",
"eslint-plugin-react-refresh": "^0.4.16",
"eslint-plugin-react-refresh": "^0.4.18",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"lint-staged": "^15.4.1",
"react": "19.0.0",
"react-dom": "19.0.0",
"release-it": "^17.11.0",
"serve": "^14.2.4",
"tsx": "^4.19.2",
"turbo": "^2.3.3",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vitest": "^2.1.8"
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/action-recorder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-filter": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
Expand All @@ -81,7 +81,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/mockdata": "workspace:*",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
Expand All @@ -78,7 +78,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8",
"vue": "^3.5.12"
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/sheets-source-binding/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-docs-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"postcss": "^8.4.49",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-formula-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/rpc": "workspace:*",
"@univerjs/sheets-formula": "workspace:*",
"@univerjs/sheets-formula-ui": "workspace:*",
Expand All @@ -85,7 +85,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
2 changes: 1 addition & 1 deletion packages-experimental/uni-formula/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-sheets-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@univerjs/design": "workspace:*",
"@univerjs/docs": "workspace:*",
"@univerjs/docs-ui": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-drawing-ui": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
Expand All @@ -78,7 +78,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uni-slides-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"@univerjs/core": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/slides-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
"@univerjs/uniui": "workspace:*",
Expand All @@ -74,7 +74,7 @@
"react": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages-experimental/uniui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@univerjs/core": "workspace:*",
"@univerjs/design": "workspace:*",
"@univerjs/engine-render": "workspace:*",
"@univerjs/icons": "^0.2.12",
"@univerjs/icons": "^0.2.14",
"@univerjs/sheets": "workspace:*",
"@univerjs/sheets-ui": "workspace:*",
"@univerjs/ui": "workspace:*",
Expand All @@ -81,7 +81,7 @@
"react-dom": "18.3.1",
"rxjs": "^7.8.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/protocol": "0.1.40",
"@univerjs/protocol": "0.1.43",
"@wendellhu/redi": "0.17.0",
"dayjs": "^1.11.13",
"fast-diff": "1.3.0",
Expand All @@ -80,7 +80,7 @@
"@types/rbush": "^4.0.0",
"@univerjs-infra/shared": "workspace:*",
"rxjs": "^7.8.1",
"typescript": "^5.7.2",
"typescript": "^5.7.3",
"vite": "^6.0.7",
"vitest": "^2.1.8"
}
Expand Down
37 changes: 19 additions & 18 deletions packages/core/src/facade/f-event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import type { FDoc } from './f-doc';
/**
* Base interface for all event parameters
* @interface IEventBase
* @ignore
*/
export interface IEventBase {
/** Flag to cancel the event if supported */
Expand Down Expand Up @@ -134,8 +135,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.DocCreated, (params) => {
* const { unitId, type, doc, unit } = params;
* console.log('doc created', params);
* const { unitId, type, doc, unit } = params;
* console.log('doc created', params);
* });
* ```
*/
Expand All @@ -149,8 +150,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.DocDisposed, (params) => {
* const { unitId, unitType, snapshot } = params;
* console.log('doc disposed', params);
* const { unitId, unitType, snapshot } = params;
* console.log('doc disposed', params);
* });
* ```
*/
Expand All @@ -164,8 +165,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.LifeCycleChanged, (params) => {
* const { stage } = params;
* console.log('life cycle changed', params);
* const { stage } = params;
* console.log('life cycle changed', params);
* });
* ```
*/
Expand All @@ -179,8 +180,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.Redo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -194,8 +195,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.Undo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -209,8 +210,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeRedo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -224,8 +225,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeUndo, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -239,8 +240,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.CommandExecuted, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand All @@ -254,8 +255,8 @@ export class FEventName {
* @example
* ```ts
* univerAPI.addEvent(univerAPI.event.BeforeCommandExecute, (event) => {
* const { params, id, type } = event;
* console.log('command executed', event);
* const { params, id, type } = event;
* console.log('command executed', event);
* });
* ```
*/
Expand Down
Loading

0 comments on commit 1780109

Please sign in to comment.