paintcannon-react 0.0.15 → 0.0.16

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/README.md CHANGED
@@ -124,6 +124,7 @@ All host components accept these event props:
124
124
 
125
125
  - `onKeyDown`
126
126
  - `onKeyUp`
127
+ - `onPaste`
127
128
  - `onClick`
128
129
  - `onMouseEnter`
129
130
  - `onMouseLeave`
@@ -136,6 +137,9 @@ All host components accept these event props:
136
137
  - `onTransitionEnd`
137
138
  - `onScroll`
138
139
 
140
+ `onPaste` receives the same `PaintClipboardEvent` as core, including detected terminal image paths
141
+ through `event.clipboardData.files`.
142
+
139
143
  `style` accepts the following CSS property names. Kebab-case and camelCase are
140
144
  both supported:
141
145
 
@@ -11,6 +11,7 @@ export type HostComponent<Props, Element extends PaintElement> = React.ForwardRe
11
11
  export declare const EVENT_PROP_NAMES: {
12
12
  readonly keydown: "onKeyDown";
13
13
  readonly keyup: "onKeyUp";
14
+ readonly paste: "onPaste";
14
15
  readonly click: "onClick";
15
16
  readonly mouseenter: "onMouseEnter";
16
17
  readonly mouseleave: "onMouseLeave";
@@ -4,6 +4,7 @@ export function typeString(type) {
4
4
  export const EVENT_PROP_NAMES = {
5
5
  keydown: "onKeyDown",
6
6
  keyup: "onKeyUp",
7
+ paste: "onPaste",
7
8
  click: "onClick",
8
9
  mouseenter: "onMouseEnter",
9
10
  mouseleave: "onMouseLeave",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paintcannon-react",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "scheduler": "^0.25.0"
37
37
  },
38
38
  "peerDependencies": {
39
- "paintcannon": "^0.0.15",
39
+ "paintcannon": "^0.0.16",
40
40
  "react": "^19.0.0"
41
41
  },
42
42
  "devDependencies": {