@lukekaalim/act-web 6.0.1 → 6.2.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lukekaalim/act-web
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3488b7b: Add onContextMenu, and add extensible Event Name interface for user-space HTML event definition
8
+
9
+ ## 6.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 1b7eec1: Allow kebab and camel case inline CSS propreties
14
+
3
15
  ## 6.0.1
4
16
 
5
17
  ### Patch Changes
package/element.ts CHANGED
@@ -137,6 +137,7 @@ export const svg = svgRegistry.elements;
137
137
 
138
138
  type EventMap = {
139
139
  onClick: "click",
140
+ onContextMenu: "contextmenu"
140
141
 
141
142
  onMouseEnter: "mouseenter",
142
143
  onMouseMove: "mousemove",
@@ -154,4 +155,6 @@ type EventMap = {
154
155
 
155
156
  onInput: "input",
156
157
  onChange: "change",
157
- }
158
+ } & ExtendedEventNames;
159
+
160
+ export interface ExtendedEventNames {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukekaalim/act-web",
3
- "version": "6.0.1",
3
+ "version": "6.2.0",
4
4
  "type": "module",
5
5
  "main": "mod.ts",
6
6
  "exports": {
package/props.ts CHANGED
@@ -113,8 +113,11 @@ export const setStyleProp = (
113
113
  style: null | Record<keyof CSSStyleDeclaration, string | number>,
114
114
  prevStyle: null | Record<keyof CSSStyleDeclaration, string | number>,
115
115
  ) => {
116
- setPropObject(node as any, style, prevStyle, (name, value) =>
117
- (node.setProperty(name, value as string), true))
116
+ setPropObject(node as any, style, prevStyle, (name, value) => {
117
+ (node as any)[name] = value;
118
+ node.setProperty(name, value as string);
119
+ return true;
120
+ });
118
121
  }
119
122
 
120
123
  const setPropObject = (