Skip to content

Commit

Permalink
feat: update to 0.5.5 (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: YuHong <[email protected]>
  • Loading branch information
hexf00 and yuhongz authored Jan 20, 2025
1 parent b65432b commit 286ceb9
Show file tree
Hide file tree
Showing 27 changed files with 1,006 additions and 1,037 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ jobs:
run: |
pnpm build:demo
pnpm build:node-demo
- name: Run test
run: |
pnpm exec tsx ./examples-node/src/sheets-node-basic/main.ts
node ./examples-node/dist/main.js
1 change: 1 addition & 0 deletions examples-node/src/sheets-node-basic/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { UniverSheetsNodeCorePreset } from '@univerjs/presets/preset-sheets-node
async function run(): Promise<void> {
const { univerAPI } = createUniver({
locale: LocaleType.ZH_CN,
locales: {},
presets: [
UniverSheetsNodeCorePreset({ workerSrc: './worker.js' }),
],
Expand Down
2 changes: 1 addition & 1 deletion examples-umd/sheets-collaboration.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
collaboration,
}),
UniverSheetsAdvancedPreset({
useWorker: true,
// useWorker: false,
// if univer page is not in the same domain as the server, you need to set the following parameters
UNIVER_SERVER_ENDPOINT,
// if you want to use the no-limit business feature, you can get 30-day trial license from https://univer.ai/pro/license
Expand Down
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@univerjs/presets": "workspace:*",
"@univerjs/sheets-zen-editor": "0.5.4",
"@univerjs/sheets-zen-editor": "0.5.5",
"clsx": "^2.1.1",
"monaco-editor": "0.52.0",
"react": "18.3.1",
Expand Down
4 changes: 3 additions & 1 deletion examples/src/sheets-collaboration-with-worker/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import '@univerjs/presets/lib/styles/preset-sheets-drawing.css';
import '@univerjs/presets/lib/styles/preset-sheets-advanced.css';
import '@univerjs/presets/lib/styles/preset-sheets-collaboration.css';

createUniver({
const { univerAPI } = createUniver({
locale: LocaleType.ZH_CN,
locales: {
zhCN: merge(
Expand Down Expand Up @@ -46,3 +46,5 @@ createUniver({
UniverSheetsCollaborationPreset(),
],
});

window.univerAPI = univerAPI;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint:types": "turbo lint:types",
"release": "release-it",
"update:sdk": "tsx scripts/update-dependencies.ts",
"update:sdk-nightly": "cross-env RELEASE_CHANNEL=nightly pnpm update:sdk"
"update:sdk-nightly": "cross-env SDK_RELEASE_CHANNEL=nightly pnpm update:sdk"
},
"devDependencies": {
"@antfu/eslint-config": "^3.11.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/preset-docs-collaboration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs-pro/collaboration": "0.5.4",
"@univerjs-pro/collaboration-client": "0.5.4",
"@univerjs-pro/collaboration-client-ui": "0.5.4"
"@univerjs-pro/collaboration": "0.5.5",
"@univerjs-pro/collaboration-client": "0.5.5",
"@univerjs-pro/collaboration-client-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
14 changes: 7 additions & 7 deletions packages/preset-docs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/design": "0.5.4",
"@univerjs/docs": "0.5.4",
"@univerjs/docs-ui": "0.5.4",
"@univerjs/engine-formula": "0.5.4",
"@univerjs/engine-render": "0.5.4",
"@univerjs/ui": "0.5.4"
"@univerjs/design": "0.5.5",
"@univerjs/docs": "0.5.5",
"@univerjs/docs-ui": "0.5.5",
"@univerjs/engine-formula": "0.5.5",
"@univerjs/engine-render": "0.5.5",
"@univerjs/ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
10 changes: 5 additions & 5 deletions packages/preset-docs-drawing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/docs-drawing": "0.5.4",
"@univerjs/docs-drawing-ui": "0.5.4",
"@univerjs/drawing": "0.5.4",
"@univerjs/drawing-ui": "0.5.4"
"@univerjs/docs-drawing": "0.5.5",
"@univerjs/docs-drawing-ui": "0.5.5",
"@univerjs/drawing": "0.5.5",
"@univerjs/drawing-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/preset-docs-hyper-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/docs-hyper-link": "0.5.4",
"@univerjs/docs-hyper-link-ui": "0.5.4"
"@univerjs/docs-hyper-link": "0.5.5",
"@univerjs/docs-hyper-link-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/preset-docs-thread-comment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/docs-thread-comment-ui": "0.5.4",
"@univerjs/thread-comment-ui": "0.5.4"
"@univerjs/docs-thread-comment-ui": "0.5.5",
"@univerjs/thread-comment-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
32 changes: 16 additions & 16 deletions packages/preset-sheets-advanced/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,25 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs-pro/engine-formula": "0.5.4",
"@univerjs-pro/exchange-client": "0.5.4",
"@univerjs-pro/license": "0.5.4",
"@univerjs-pro/sheets-chart": "0.5.4",
"@univerjs-pro/sheets-chart-ui": "0.5.4",
"@univerjs-pro/sheets-exchange-client": "0.5.4",
"@univerjs-pro/sheets-pivot": "0.5.4",
"@univerjs-pro/sheets-pivot-ui": "0.5.4",
"@univerjs-pro/sheets-print": "0.5.4",
"@univerjs-pro/sheets-sparkline": "0.5.4",
"@univerjs-pro/sheets-sparkline-ui": "0.5.4",
"@univerjs/network": "0.5.4",
"@univerjs/sheets-graphics": "0.5.4"
"@univerjs-pro/engine-formula": "0.5.5",
"@univerjs-pro/exchange-client": "0.5.5",
"@univerjs-pro/license": "0.5.5",
"@univerjs-pro/sheets-chart": "0.5.5",
"@univerjs-pro/sheets-chart-ui": "0.5.5",
"@univerjs-pro/sheets-exchange-client": "0.5.5",
"@univerjs-pro/sheets-pivot": "0.5.5",
"@univerjs-pro/sheets-pivot-ui": "0.5.5",
"@univerjs-pro/sheets-print": "0.5.5",
"@univerjs-pro/sheets-sparkline": "0.5.5",
"@univerjs-pro/sheets-sparkline-ui": "0.5.5",
"@univerjs/network": "0.5.5",
"@univerjs/sheets-graphics": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs-pro/engine-pivot": "0.5.4",
"@univerjs-pro/print": "0.5.4",
"@univerjs/core": "0.5.4",
"@univerjs-pro/engine-pivot": "0.5.5",
"@univerjs-pro/print": "0.5.5",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
14 changes: 7 additions & 7 deletions packages/preset-sheets-collaboration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs-pro/collaboration": "0.5.4",
"@univerjs-pro/collaboration-client": "0.5.4",
"@univerjs-pro/collaboration-client-ui": "0.5.4",
"@univerjs-pro/edit-history-loader": "0.5.4",
"@univerjs-pro/edit-history-viewer": "0.5.4",
"@univerjs-pro/thread-comment-datasource": "0.5.4",
"@univerjs-pro/collaboration": "0.5.5",
"@univerjs-pro/collaboration-client": "0.5.5",
"@univerjs-pro/collaboration-client-ui": "0.5.5",
"@univerjs-pro/edit-history-loader": "0.5.5",
"@univerjs-pro/edit-history-viewer": "0.5.5",
"@univerjs-pro/thread-comment-datasource": "0.5.5",
"@univerjs/preset-sheets-advanced": "workspace:*"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
2 changes: 1 addition & 1 deletion packages/preset-sheets-collaboration/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function transformUrlProtocolToWs(url: string) {
* @param {Partial<IUniverSheetsCollaborationPresetConfig>} config - The configuration object.
*/
export function UniverSheetsCollaborationPreset(config: Partial<IUniverSheetsCollaborationPresetConfig> = {}): IPreset {
const { universerEndpoint, univerContainerId } = config;
const { universerEndpoint, univerContainerId = 'app' } = config;

const serverEndpoint = universerEndpoint ?? `${window.location.protocol}//${window.location.host}`;

Expand Down
6 changes: 3 additions & 3 deletions packages/preset-sheets-conditional-formatting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/sheets-conditional-formatting": "0.5.4",
"@univerjs/sheets-conditional-formatting-ui": "0.5.4"
"@univerjs/sheets-conditional-formatting": "0.5.5",
"@univerjs/sheets-conditional-formatting-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
30 changes: 15 additions & 15 deletions packages/preset-sheets-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,24 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/design": "0.5.4",
"@univerjs/docs": "0.5.4",
"@univerjs/docs-ui": "0.5.4",
"@univerjs/engine-formula": "0.5.4",
"@univerjs/engine-render": "0.5.4",
"@univerjs/facade": "0.5.4",
"@univerjs/rpc": "0.5.4",
"@univerjs/sheets": "0.5.4",
"@univerjs/sheets-formula": "0.5.4",
"@univerjs/sheets-formula-ui": "0.5.4",
"@univerjs/sheets-numfmt": "0.5.4",
"@univerjs/sheets-numfmt-ui": "0.5.4",
"@univerjs/sheets-ui": "0.5.4",
"@univerjs/ui": "0.5.4"
"@univerjs/design": "0.5.5",
"@univerjs/docs": "0.5.5",
"@univerjs/docs-ui": "0.5.5",
"@univerjs/engine-formula": "0.5.5",
"@univerjs/engine-render": "0.5.5",
"@univerjs/facade": "0.5.5",
"@univerjs/rpc": "0.5.5",
"@univerjs/sheets": "0.5.5",
"@univerjs/sheets-formula": "0.5.5",
"@univerjs/sheets-formula-ui": "0.5.5",
"@univerjs/sheets-numfmt": "0.5.5",
"@univerjs/sheets-numfmt-ui": "0.5.5",
"@univerjs/sheets-ui": "0.5.5",
"@univerjs/ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
8 changes: 4 additions & 4 deletions packages/preset-sheets-data-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/data-validation": "0.5.4",
"@univerjs/sheets-data-validation": "0.5.4",
"@univerjs/sheets-data-validation-ui": "0.5.4"
"@univerjs/data-validation": "0.5.5",
"@univerjs/sheets-data-validation": "0.5.5",
"@univerjs/sheets-data-validation-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
12 changes: 6 additions & 6 deletions packages/preset-sheets-drawing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/docs-drawing": "0.5.4",
"@univerjs/drawing": "0.5.4",
"@univerjs/drawing-ui": "0.5.4",
"@univerjs/sheets-drawing": "0.5.4",
"@univerjs/sheets-drawing-ui": "0.5.4"
"@univerjs/docs-drawing": "0.5.5",
"@univerjs/drawing": "0.5.5",
"@univerjs/drawing-ui": "0.5.5",
"@univerjs/sheets-drawing": "0.5.5",
"@univerjs/sheets-drawing-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/preset-sheets-filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/sheets-filter": "0.5.4",
"@univerjs/sheets-filter-ui": "0.5.4"
"@univerjs/sheets-filter": "0.5.5",
"@univerjs/sheets-filter-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/preset-sheets-find-replace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/find-replace": "0.5.4",
"@univerjs/sheets-find-replace": "0.5.4"
"@univerjs/find-replace": "0.5.5",
"@univerjs/sheets-find-replace": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions packages/preset-sheets-hyper-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@univerjs/sheets-hyper-link": "0.5.4",
"@univerjs/sheets-hyper-link-ui": "0.5.4"
"@univerjs/sheets-hyper-link": "0.5.5",
"@univerjs/sheets-hyper-link-ui": "0.5.5"
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
"@univerjs/core": "0.5.4",
"@univerjs/core": "0.5.5",
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit 286ceb9

Please sign in to comment.