@zag-js/popover 0.0.0-dev-20240216185224 → 0.0.0-dev-20240218175520

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.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
- import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, MaybeElement, Context, NormalizeProps } from '@zag-js/types';
2
+ import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, MaybeElement, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
4
  import { StateMachine } from '@zag-js/core';
5
5
  import { DismissableElementHandlers } from '@zag-js/dismissable';
@@ -84,7 +84,8 @@ type ComputedContext = Readonly<{
84
84
  */
85
85
  currentPortalled: boolean;
86
86
  }>;
87
- type PrivateContext = Context<{}>;
87
+ interface PrivateContext {
88
+ }
88
89
  interface MachineContext extends PublicContext, ComputedContext, PrivateContext {
89
90
  }
90
91
  interface MachineState {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _zag_js_anatomy from '@zag-js/anatomy';
2
- import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, MaybeElement, Context, NormalizeProps } from '@zag-js/types';
2
+ import { RequiredBy, PropTypes, CommonProperties, DirectionProperty, MaybeElement, NormalizeProps } from '@zag-js/types';
3
3
  import * as _zag_js_core from '@zag-js/core';
4
4
  import { StateMachine } from '@zag-js/core';
5
5
  import { DismissableElementHandlers } from '@zag-js/dismissable';
@@ -84,7 +84,8 @@ type ComputedContext = Readonly<{
84
84
  */
85
85
  currentPortalled: boolean;
86
86
  }>;
87
- type PrivateContext = Context<{}>;
87
+ interface PrivateContext {
88
+ }
88
89
  interface MachineContext extends PublicContext, ComputedContext, PrivateContext {
89
90
  }
90
91
  interface MachineState {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/popover",
3
- "version": "0.0.0-dev-20240216185224",
3
+ "version": "0.0.0-dev-20240218175520",
4
4
  "description": "Core logic for the popover widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -28,16 +28,16 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "focus-trap": "7.5.4",
31
- "@zag-js/anatomy": "0.0.0-dev-20240216185224",
32
- "@zag-js/aria-hidden": "0.0.0-dev-20240216185224",
33
- "@zag-js/core": "0.0.0-dev-20240216185224",
34
- "@zag-js/dom-query": "0.0.0-dev-20240216185224",
35
- "@zag-js/utils": "0.0.0-dev-20240216185224",
36
- "@zag-js/dismissable": "0.0.0-dev-20240216185224",
37
- "@zag-js/tabbable": "0.0.0-dev-20240216185224",
38
- "@zag-js/popper": "0.0.0-dev-20240216185224",
39
- "@zag-js/remove-scroll": "0.0.0-dev-20240216185224",
40
- "@zag-js/types": "0.0.0-dev-20240216185224"
31
+ "@zag-js/anatomy": "0.0.0-dev-20240218175520",
32
+ "@zag-js/aria-hidden": "0.0.0-dev-20240218175520",
33
+ "@zag-js/core": "0.0.0-dev-20240218175520",
34
+ "@zag-js/dom-query": "0.0.0-dev-20240218175520",
35
+ "@zag-js/utils": "0.0.0-dev-20240218175520",
36
+ "@zag-js/dismissable": "0.0.0-dev-20240218175520",
37
+ "@zag-js/tabbable": "0.0.0-dev-20240218175520",
38
+ "@zag-js/popper": "0.0.0-dev-20240218175520",
39
+ "@zag-js/remove-scroll": "0.0.0-dev-20240218175520",
40
+ "@zag-js/types": "0.0.0-dev-20240218175520"
41
41
  },
42
42
  "devDependencies": {
43
43
  "clean-package": "2.2.0"
@@ -1,7 +1,7 @@
1
1
  import type { StateMachine as S } from "@zag-js/core"
2
2
  import type { DismissableElementHandlers } from "@zag-js/dismissable"
3
3
  import type { Placement, PositioningOptions } from "@zag-js/popper"
4
- import type { CommonProperties, Context, DirectionProperty, MaybeElement, PropTypes, RequiredBy } from "@zag-js/types"
4
+ import type { CommonProperties, DirectionProperty, MaybeElement, PropTypes, RequiredBy } from "@zag-js/types"
5
5
 
6
6
  /* -----------------------------------------------------------------------------
7
7
  * Callback details
@@ -92,7 +92,7 @@ type ComputedContext = Readonly<{
92
92
  currentPortalled: boolean
93
93
  }>
94
94
 
95
- type PrivateContext = Context<{
95
+ interface PrivateContext {
96
96
  /**
97
97
  * @internal
98
98
  * The elements that are rendered on mount
@@ -106,7 +106,7 @@ type PrivateContext = Context<{
106
106
  * The computed placement (maybe different from initial placement)
107
107
  */
108
108
  currentPlacement?: Placement
109
- }>
109
+ }
110
110
 
111
111
  export interface MachineContext extends PublicContext, ComputedContext, PrivateContext {}
112
112