Skip to content

Commit

Permalink
[fix] some Publishing bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Feb 14, 2024
1 parent 769b618 commit 6fb0fb7
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 22 deletions.
2 changes: 1 addition & 1 deletion React/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"types": "dist/index.d.ts",
"dependencies": {
"@swc/helpers": "^0.5.6",
"edkit": "^1.1.0-rc.0",
"edkit": "^1.1.0",
"mobx": ">=6.11",
"mobx-react": ">=9.1",
"web-utility": "^4.1.3"
Expand Down
8 changes: 4 additions & 4 deletions React/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions WebCell/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"types": "dist/index.d.ts",
"dependencies": {
"@swc/helpers": "^0.5.6",
"edkit": "^1.1.0-rc.0",
"dom-renderer": "^2.1.3",
"edkit": "^1.1.0",
"mobx": ">=6.11",
"web-cell": "^3.0.0-rc.15",
"web-utility": "^4.1.3"
Expand All @@ -31,7 +32,6 @@
"@parcel/packager-ts": "~2.11.0",
"@parcel/transformer-typescript-tsc": "~2.11.0",
"@parcel/transformer-typescript-types": "~2.11.0",
"dom-renderer": "^2.1.3",
"parcel": "~2.11.0",
"typescript": "~5.3.3"
},
Expand Down
18 changes: 11 additions & 7 deletions WebCell/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edkit",
"version": "1.1.0",
"version": "1.1.1",
"license": "LGPL-3.0",
"author": "shiy2008@gmail.com",
"contributors": [
Expand Down
1 change: 1 addition & 0 deletions publish-wrappers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ for name in $*; do
pnpm i --frozen-lockfile
npm publish
mv test/dist ../docs/$name
cd ..
done
14 changes: 7 additions & 7 deletions source/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ import {

import { AudioTool, ImageTool, VideoTool } from './tools/Media';

export type DataTransferEvent = Pick<
Event,
'type' | 'currentTarget' | 'preventDefault'
> &
(Pick<ClipboardEvent, 'clipboardData'> | Pick<DragEvent, 'dataTransfer'>);

export interface EditorComponent {
imageTool: ImageTool | undefined;
audioTool: AudioTool | undefined;
Expand All @@ -20,15 +26,9 @@ export interface EditorComponent {

clearHTML: (markup: string) => Promise<DocumentFragment>;

handlePasteDrop: (event: ClipboardEvent | DragEvent) => Promise<void>;
handlePasteDrop: (event: DataTransferEvent) => Promise<void>;
}

export type DataTransferEvent = Pick<
Event,
'type' | 'currentTarget' | 'preventDefault'
> &
(Pick<ClipboardEvent, 'clipboardData'> | Pick<DragEvent, 'dataTransfer'>);

export const editor = <T extends Constructor<any>>(
Class: T,
{}: ClassDecoratorContext
Expand Down

0 comments on commit 6fb0fb7

Please sign in to comment.