@zag-js/types 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +16 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1174,8 +1174,22 @@ declare type CommonProperties = {
1174
1174
  */
1175
1175
  getRootNode?: () => ShadowRoot | Document | Node;
1176
1176
  };
1177
- declare type RootProperties = {};
1178
- declare type Context<T> = T & RootProperties & {};
1177
+ declare type RootProperties = {
1178
+ /**
1179
+ * The owner document of the machine.
1180
+ */
1181
+ doc?: Document;
1182
+ /**
1183
+ * The root node of the machine. Useful for shadow DOM.
1184
+ */
1185
+ rootNode?: ShadowRoot;
1186
+ /**
1187
+ * The related target when the element is blurred.
1188
+ * Used as a polyfill for `e.relatedTarget`
1189
+ */
1190
+ pointerdownNode?: HTMLElement | null;
1191
+ };
1192
+ declare type Context<T> = T & RootProperties;
1179
1193
  declare type Style = JSX.CSSProperties;
1180
1194
 
1181
1195
  export { CommonProperties, Context, Direction, DirectionProperty, JSX, MaybeElement, NormalizeProps, Orientation, PropTypes, RequiredBy, RootProperties, Style, createNormalizer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/types",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "keywords": [
5
5
  "js",
6
6
  "utils",