dom-expressions 0.40.6 → 0.40.8

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dom-expressions",
3
3
  "description": "A Fine-Grained Runtime for Performant DOM Rendering",
4
- "version": "0.40.6",
4
+ "version": "0.40.8",
5
5
  "author": "Ryan Carniato",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -24,10 +24,10 @@
24
24
  "seroval-plugins": "~1.5.0"
25
25
  },
26
26
  "devDependencies": {
27
- "babel-plugin-jsx-dom-expressions": "^0.40.6",
27
+ "babel-plugin-jsx-dom-expressions": "^0.40.7",
28
28
  "csstype": "^3.1",
29
29
  "seroval": "~1.5.0",
30
30
  "seroval-plugins": "~1.5.0"
31
31
  },
32
- "gitHead": "4f1ff795b280004134c0c3e16dec1dc0c9148141"
32
+ "gitHead": "56bd4054237b031c0cca8c1ec69da162c52ed4a6"
33
33
  }
package/src/client.d.ts CHANGED
@@ -56,9 +56,9 @@ export function addEventListener(
56
56
  ): void;
57
57
  export function classList(
58
58
  node: Element,
59
- value: { [k: string]: boolean },
60
- prev?: { [k: string]: boolean }
61
- ): { [k: string]: boolean };
59
+ value: JSX.ClassList,
60
+ prev?: JSX.ClassList
61
+ ): JSX.ClassList;
62
62
  export function style(
63
63
  node: Element,
64
64
  value: { [k: string]: string },
package/src/jsx-h.d.ts CHANGED
@@ -140,14 +140,13 @@ export namespace JSX {
140
140
  interface IntrinsicAttributes {
141
141
  ref?: unknown | ((e: unknown) => void) | undefined;
142
142
  }
143
+ export type ClassList = {
144
+ [k: string]: boolean | undefined;
145
+ };
143
146
  interface CustomAttributes<T> {
144
147
  ref?: T | ((el: T) => void) | undefined;
145
148
  children?: FunctionMaybe<Element | undefined>;
146
- classList?:
147
- | {
148
- [k: string]: boolean | undefined;
149
- }
150
- | undefined;
149
+ classList?: ClassList | undefined;
151
150
  $ServerOnly?: boolean | undefined;
152
151
  }
153
152
  type Accessor<T> = () => T;
package/src/jsx.d.ts CHANGED
@@ -137,14 +137,13 @@ export namespace JSX {
137
137
  interface IntrinsicAttributes {
138
138
  ref?: unknown | ((e: unknown) => void) | undefined;
139
139
  }
140
+ export type ClassList = {
141
+ [k: string]: boolean | undefined;
142
+ };
140
143
  interface CustomAttributes<T> {
141
144
  ref?: T | ((el: T) => void) | undefined;
142
145
  children?: Element | undefined;
143
- classList?:
144
- | {
145
- [k: string]: boolean | undefined;
146
- }
147
- | undefined;
146
+ classList?: ClassList | undefined;
148
147
  $ServerOnly?: boolean | undefined;
149
148
  }
150
149
  type Accessor<T> = () => T;
package/src/server.d.ts CHANGED
@@ -50,7 +50,7 @@ export function ssrElement(
50
50
  children: any,
51
51
  needsId: boolean
52
52
  ): { t: string };
53
- export function ssrClassList(value: { [k: string]: boolean }): string;
53
+ export function ssrClassList(value: JSX.ClassList): string;
54
54
  export function ssrStyle(value: { [k: string]: string }): string;
55
55
  export function ssrAttribute(key: string, value: any, isBoolean: boolean): string;
56
56
  export function ssrHydrationKey(): string;
@@ -107,9 +107,9 @@ export function untrack<T>(fn: () => T): T;
107
107
  /** @deprecated not supported on the server side */
108
108
  export function classList(
109
109
  node: Element,
110
- value: { [k: string]: boolean },
111
- prev?: { [k: string]: boolean }
112
- ): { [k: string]: boolean };
110
+ value: JSX.ClassList,
111
+ prev?: JSX.ClassList
112
+ ): JSX.ClassList;
113
113
 
114
114
  /** @deprecated not supported on the server side */
115
115
  export function style(
@@ -175,3 +175,13 @@ export function getNextElement(template?: HTMLTemplateElement): Element;
175
175
  export function getNextMatch(start: Node, elementName: string): Element;
176
176
  /** @deprecated not supported on the server side */
177
177
  export function getNextMarker(start: Node): [Node, Array<Node>];
178
+ /** @deprecated not supported on the server side */
179
+ export function runHydrationEvents(): void;
180
+ /** @deprecated not supported on the server side */
181
+ export function use<Arg, Ret>(fn: (node: Element, arg: Arg) => Ret, node: Element, arg?: Arg): Ret;
182
+ /** @deprecated not supported on the server side */
183
+ export function setBoolAttribute(node: Element, name: string, value: any): void;
184
+ /** @deprecated not supported on the server side */
185
+ export function setStyleProperty(node: Element, name: string, value: any): void;
186
+ /** @deprecated not supported on the server side */
187
+ export function clearDelegatedEvents(d?: Document): void;
package/src/server.js CHANGED
@@ -730,7 +730,11 @@ export {
730
730
  notSup as getNextElement,
731
731
  notSup as getNextMatch,
732
732
  notSup as getNextMarker,
733
- notSup as runHydrationEvents
733
+ notSup as runHydrationEvents,
734
+ notSup as use,
735
+ notSup as setBoolAttribute,
736
+ notSup as setStyleProperty,
737
+ notSup as clearDelegatedEvents
734
738
  };
735
739
 
736
740
  function notSup() {