@zag-js/slider 0.0.0-dev-20220709181637 → 0.0.0-dev-20220710093812

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/dist/index.js CHANGED
@@ -116,7 +116,8 @@ function defineDomHelpers(domUtils) {
116
116
  var _a;
117
117
  return (_a = roots.getDoc(ctx).defaultView) != null ? _a : window;
118
118
  },
119
- getActiveElement: (ctx) => roots.getDoc(ctx).activeElement
119
+ getActiveElement: (ctx) => roots.getDoc(ctx).activeElement,
120
+ getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id)
120
121
  };
121
122
  return __spreadValues2(__spreadValues2({}, roots), domUtils);
122
123
  }
package/dist/index.mjs CHANGED
@@ -91,7 +91,8 @@ function defineDomHelpers(domUtils) {
91
91
  var _a;
92
92
  return (_a = roots.getDoc(ctx).defaultView) != null ? _a : window;
93
93
  },
94
- getActiveElement: (ctx) => roots.getDoc(ctx).activeElement
94
+ getActiveElement: (ctx) => roots.getDoc(ctx).activeElement,
95
+ getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id)
95
96
  };
96
97
  return __spreadValues2(__spreadValues2({}, roots), domUtils);
97
98
  }
@@ -12,6 +12,9 @@ export declare const dom: {
12
12
  getActiveElement: (ctx: {
13
13
  getRootNode?: () => Node | Document | ShadowRoot;
14
14
  }) => HTMLElement;
15
+ getById: (ctx: {
16
+ getRootNode?: () => Node | Document | ShadowRoot;
17
+ }, id: string) => HTMLElement;
15
18
  } & {
16
19
  getRootId: (ctx: Ctx) => string;
17
20
  getThumbId: (ctx: Ctx) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "0.0.0-dev-20220709181637",
3
+ "version": "0.0.0-dev-20220710093812",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -30,9 +30,11 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@zag-js/core": "0.1.7",
33
- "@zag-js/dom-utils": "0.0.0-dev-20220709181637",
33
+ "@zag-js/types": "0.0.0-dev-20220710093812"
34
+ },
35
+ "devDependencies": {
36
+ "@zag-js/dom-utils": "0.0.0-dev-20220710093812",
34
37
  "@zag-js/number-utils": "0.1.2",
35
- "@zag-js/types": "0.0.0-dev-20220709181637",
36
38
  "@zag-js/utils": "0.1.2"
37
39
  },
38
40
  "scripts": {