Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed Dec 31, 2023
1 parent c49dd8f commit 2d308c9
Show file tree
Hide file tree
Showing 24 changed files with 1,203 additions and 912 deletions.
25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"name": "orca-pocket",
"version": "1.0.0",
"type": "module",
"workspaces": [
"packages/*"
],
"scripts": {
"start": "dumi dev",
"docs:build": "dumi build",
Expand Down Expand Up @@ -38,25 +41,25 @@
},
"dependencies": {
"@ant-design/icons": "^5.2.6",
"@babel/runtime": "^7.23.5",
"@babel/runtime": "^7.23.6",
"@changesets/cli": "^2.27.1",
"@orca-fe/clsx-dedupe": "^1.2.1",
"@types/lodash-es": "^4.17.12",
"@types/react": "18.2.25",
"@types/react-dom": "^18.2.17",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@types/react-router": "^5.1.20",
"ahooks": "^3.7.8",
"antd": "^5.12.1",
"antd": "^5.12.5",
"babel-plugin-import": "^1.13.8",
"classnames": "^2.3.2",
"dumi": "^2.2.14",
"father": "^4.3.7",
"dumi": "^2.2.16",
"father": "^4.3.8",
"file-saver": "^2.0.5",
"gh-pages": "^5.0.0",
"gh-pages": "^6.1.1",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"moment": "^2.29.4",
"prettier": "^3.1.0",
"prettier": "^3.1.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"ts-jest": "^29.1.1",
Expand All @@ -73,16 +76,16 @@
"@types/file-saver": "^2.0.7",
"@types/inquirer": "^9.0.7",
"@types/jest": "^29.5.11",
"@types/node": "^18.19.2",
"@types/node": "^18.19.3",
"chalk": "^5.3.0",
"cross-env": "^7.0.3",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"globby": "^13.2.2",
"inquirer": "^9.2.12",
"jest": "^29.7.0",
"jss": "^10.10.0",
"react-json-view": "^1.21.3",
"semver": "^7.5.4",
"ts-node": "^10.9.1"
"ts-node": "^10.9.2"
}
}
9 changes: 9 additions & 0 deletions packages/antd-plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @orca-fe/painter

## 0.3.17

### Patch Changes

- chore: update dependencies
- Updated dependencies
- @orca-fe/pocket@3.4.2
- @orca-fe/hooks@1.11.1

## 0.3.16

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/antd-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/antd-plus",
"version": "0.3.16",
"version": "0.3.17",
"description": "Transformer Container",
"keywords": [
"react",
Expand Down Expand Up @@ -36,15 +36,15 @@
"clear": "rimraf lib es"
},
"dependencies": {
"@orca-fe/hooks": "^1.11.0",
"@orca-fe/hooks": "^1.11.1",
"@orca-fe/jss-plugin-auto-prefix": "^0.0.1",
"@orca-fe/pocket": "^3.4.1",
"@orca-fe/pocket": "^3.4.2",
"@orca-fe/simple-jss": "^0.0.3",
"@orca-fe/tools": "^0.10.0",
"ahooks": "^3.7.8",
"classnames": "^2.3.2",
"json5": "^2.2.3",
"lunar-javascript": "^1.6.2",
"lunar-javascript": "^1.6.7",
"moment": "^2.29.4",
"prefix-classnames": "^0.0.7",
"react-custom-scrollbars-2": "^4.5.0",
Expand All @@ -57,9 +57,9 @@
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@types/react": "18.2.25",
"@types/react": "^18.2.45",
"autod": "^3.1.2",
"dayjs": "^1.11.9",
"dayjs": "^1.11.10",
"jss": "^10.10.0"
}
}
6 changes: 6 additions & 0 deletions packages/dnd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/dnd

## 1.2.1

### Patch Changes

- chore: update dependencies

## 1.2.0

### Minor Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/dnd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/dnd",
"version": "1.2.0",
"version": "1.2.1",
"description": "A collection of commonly used drag-and-drop functions.",
"keywords": [
"react",
Expand Down Expand Up @@ -36,22 +36,22 @@
"clear": "rimraf lib es"
},
"dependencies": {
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"@dnd-kit/utilities": "^3.2.2",
"@orca-fe/jss-plugin-auto-prefix": "^0.0.1",
"@orca-fe/simple-jss": "^0.0.3",
"ahooks": "^3.7.8",
"classnames": "^2.3.2",
"immer": "^9.0.21",
"tslib": "^2.6.0"
"tslib": "^2.6.2"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@types/react": "18.2.25",
"@types/react": "^18.2.45",
"autod": "^3.1.2",
"jss": "^10.10.0"
}
Expand Down
6 changes: 6 additions & 0 deletions packages/hooks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/hooks

## 1.11.1

### Patch Changes

- chore: update dependencies

## 1.11.0

### Minor Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/hooks",
"version": "1.11.0",
"version": "1.11.1",
"description": "React Hooks Collections",
"keywords": [
"react",
Expand Down Expand Up @@ -33,16 +33,16 @@
"clear": "rimraf lib"
},
"dependencies": {
"@babel/runtime": "^7.22.6",
"@babel/runtime": "^7.23.6",
"detect-browser": "^5.3.0",
"events": "^3.3.0",
"lodash-es": "^4.17.21",
"resize-observer-polyfill": "^1.5.1",
"tslib": "^2.6.0"
"tslib": "^2.6.2"
},
"peerDependencies": {
"ahooks": "^3.5.2",
"react": ">=16"
},
"gitHead": "0f38f477546c9603891bad4b0c847554147262df"
}
}
15 changes: 12 additions & 3 deletions packages/hooks/src/usePan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export type UsePanCallbackParams = {

/** 触发拖动事件的 HTML 元素 */
target: HTMLElement;

/** 触发拖动事件的 HTML 元素的边界 */
bounds: DOMRect;
};

export default function usePan<T extends Target = Target>(
Expand All @@ -41,14 +44,16 @@ export default function usePan<T extends Target = Target>(
_this.mousedownPosition = [e.clientX, e.clientY];
_this.target = e.currentTarget as HTMLElement;
_this.triggerTarget = e.target as HTMLElement;
const { left, top } = _this.target.getBoundingClientRect();
const bounds = _this.target.getBoundingClientRect();
const { left, top } = bounds;
const res = callback({
start: true,
finish: false,
startPosition: [_this.mousedownPosition[0] - left, _this.mousedownPosition[1] - top],
offset: [0, 0],
ev: e,
target: _this.triggerTarget,
bounds,
});
if (res === false) {
_this.mousedownPosition = undefined;
Expand All @@ -63,14 +68,16 @@ export default function usePan<T extends Target = Target>(
if (_this.mousedownPosition && _this.target && _this.triggerTarget) {
const offsetX = e.clientX - _this.mousedownPosition[0];
const offsetY = e.clientY - _this.mousedownPosition[1];
const { left, top } = _this.target.getBoundingClientRect();
const bounds = _this.target.getBoundingClientRect();
const { left, top } = bounds;
const res = callback({
start: false,
finish: false,
startPosition: [_this.mousedownPosition[0] - left, _this.mousedownPosition[1] - top],
offset: [offsetX, offsetY],
ev: e,
target: _this.triggerTarget,
bounds,
});
if (res === false) {
_this.mousedownPosition = undefined;
Expand All @@ -84,14 +91,16 @@ export default function usePan<T extends Target = Target>(
if (_this.mousedownPosition && _this.target && _this.triggerTarget) {
const offsetX = e.clientX - _this.mousedownPosition[0];
const offsetY = e.clientY - _this.mousedownPosition[1];
const { left, top } = _this.target.getBoundingClientRect();
const bounds = _this.target.getBoundingClientRect();
const { left, top } = bounds;
callback({
start: false,
finish: true,
startPosition: [_this.mousedownPosition[0] - left, _this.mousedownPosition[1] - top],
offset: [offsetX, offsetY],
ev: e,
target: _this.triggerTarget,
bounds,
});
_this.mousedownPosition = undefined;
}
Expand Down
10 changes: 10 additions & 0 deletions packages/painter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @orca-fe/painter

## 1.4.52

### Patch Changes

- chore: update dependencies
- Updated dependencies
- @orca-fe/transformer@0.3.29
- @orca-fe/pocket@3.4.2
- @orca-fe/hooks@1.11.1

## 1.4.51

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/painter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/painter",
"version": "1.4.51",
"version": "1.4.52",
"description": "Konva Painter",
"keywords": [
"react",
Expand Down Expand Up @@ -37,25 +37,25 @@
"clear": "rimraf lib es"
},
"dependencies": {
"@orca-fe/hooks": "^1.11.0",
"@orca-fe/hooks": "^1.11.1",
"@orca-fe/jss-plugin-auto-prefix": "^0.0.1",
"@orca-fe/pocket": "^3.4.1",
"@orca-fe/pocket": "^3.4.2",
"@orca-fe/simple-jss": "^0.0.3",
"@orca-fe/tools": "^0.10.0",
"ahooks": "^3.7.8",
"classnames": "^2.3.2",
"color": "^4.2.3",
"react-colorful": "^5.6.1",
"tslib": "^2.6.0",
"@orca-fe/transformer": "^0.3.28"
"tslib": "^2.6.2",
"@orca-fe/transformer": "^0.3.29"
},
"peerDependencies": {
"@ant-design/icons": "^4.7.0",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@types/react": "18.2.25",
"@types/react": "^18.2.45",
"autod": "^3.1.2",
"jss": "^10.10.0"
}
Expand Down
10 changes: 10 additions & 0 deletions packages/pdf-viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @orca-fe/pdf-viewer

## 1.21.5

### Patch Changes

- chore: update dependencies
- Updated dependencies
- @orca-fe/painter@1.4.52
- @orca-fe/pocket@3.4.2
- @orca-fe/hooks@1.11.1

## 1.21.4

### Patch Changes
Expand Down
12 changes: 6 additions & 6 deletions packages/pdf-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/pdf-viewer",
"version": "1.21.4",
"version": "1.21.5",
"description": "PDF Viewer",
"keywords": [
"react",
Expand Down Expand Up @@ -38,11 +38,11 @@
"clear": "rimraf lib es"
},
"dependencies": {
"@orca-fe/hooks": "^1.11.0",
"@orca-fe/hooks": "^1.11.1",
"@orca-fe/jss-plugin-auto-prefix": "^0.0.1",
"@orca-fe/painter": "^1.4.51",
"@orca-fe/painter": "^1.4.52",
"@orca-fe/pdfjs-dist-browserify": "^3.8.24",
"@orca-fe/pocket": "^3.4.1",
"@orca-fe/pocket": "^3.4.2",
"@orca-fe/simple-jss": "^0.0.3",
"@orca-fe/tools": "^0.10.0",
"ahooks": "^3.7.8",
Expand All @@ -51,7 +51,7 @@
"immer": "^9.0.21",
"print-js": "^1.6.0",
"rfdc": "^1.3.0",
"tslib": "^2.6.0"
"tslib": "^2.6.2"
},
"peerDependencies": {
"@ant-design/icons": "^4.7.0",
Expand All @@ -61,7 +61,7 @@
"react-router-dom": ">=5.0.0"
},
"devDependencies": {
"@types/react": "18.2.25",
"@types/react": "^18.2.45",
"autod": "^3.1.2",
"jss": "^10.10.0"
}
Expand Down
8 changes: 8 additions & 0 deletions packages/pocket/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @orca-fe/pocket

## 3.4.2

### Patch Changes

- chore: update dependencies
- Updated dependencies
- @orca-fe/hooks@1.11.1

## 3.4.1

### Patch Changes
Expand Down
Loading

1 comment on commit 2d308c9

@vercel
Copy link

@vercel vercel bot commented on 2d308c9 Dec 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.