@foldkit/ui 0.155.0 → 0.156.0-canary.4aab52dcbe58

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.
@@ -21,7 +21,7 @@ export type InitConfig = Readonly<{
21
21
  openDelay?: Duration.Input;
22
22
  closeDelay?: Duration.Input;
23
23
  }>;
24
- /** Creates a HoverIntent Model. Pointer entry opens after 200 milliseconds and full disengagement closes after 300 milliseconds by default. */
24
+ /** Creates a HoverIntent Model. Pointer entry opens after 200 milliseconds and pointer departure closes after a 300-millisecond grace period by default. Focus entry opens immediately, and focus departure closes without that pointer grace period. */
25
25
  export declare const init: (config?: InitConfig) => Model;
26
26
  /** Waits before opening, then emits the version that scheduled the wait. */
27
27
  export declare const WaitBeforeOpening: Command.CommandDefinitionWithArgs<"WaitBeforeOpening", {
@@ -40,6 +40,9 @@ export declare const WaitBeforeClosing: Command.CommandDefinitionWithArgs<"WaitB
40
40
  readonly version: number;
41
41
  }, never, never>>;
42
42
  type UpdateReturn = Update.ReturnWithOutMessage<Model, Message, OutMessage>;
43
+ /** Programmatically closes HoverIntent immediately, invalidating pending
44
+ * transitions and suppressing reopening until the trigger disengages. */
45
+ export declare const close: (model: Model) => UpdateReturn;
43
46
  /** Processes a HoverIntent Message and returns the next Model, optional Commands, and an optional OutMessage. */
44
47
  export declare const update: (model: Model, message: Message) => UpdateReturn;
45
48
  /** Render-time payload published to the consumer's `toView`.
@@ -1 +1 @@
1
- {"version":3,"file":"hoverIntent.d.ts","sourceRoot":"","sources":["../../src/hoverIntent/hoverIntent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,MAAM,EAGN,MAAM,EACN,MAAM,IAAI,CAAC,EACZ,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,KAAK,MA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AAG,YAyCpD,CAAA;AAIJ;;;;kEAIkE;AAClE,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACtC,KAAK,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IACpC,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC,CAAA;AAEF,qFAAqF;AACrF,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,uLAAuL;IACvL,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;CACrC,CAAC,CAAA;AAEF,8GAA8G;AAC9G,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IANf,uLAAuL;2BAChK,MAAM;YACrB,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;GAiDrC,CAAA"}
@@ -21,7 +21,7 @@ export const Model = S.Struct({
21
21
  });
22
22
  const DEFAULT_OPEN_DELAY = Duration.millis(200);
23
23
  const DEFAULT_CLOSE_DELAY = Duration.millis(300);
24
- /** Creates a HoverIntent Model. Pointer entry opens after 200 milliseconds and full disengagement closes after 300 milliseconds by default. */
24
+ /** Creates a HoverIntent Model. Pointer entry opens after 200 milliseconds and pointer departure closes after a 300-millisecond grace period by default. Focus entry opens immediately, and focus departure closes without that pointer grace period. */
25
25
  export const init = (config = {}) => (__foldkitBrandViewResult(({
26
26
  isOpen: false,
27
27
  isTriggerHovered: false,
@@ -61,14 +61,14 @@ const open = (model) => {
61
61
  outMessage: OutMessage.Opened(),
62
62
  }), "@foldkit/ui/hoverIntent/hoverIntent.js#open");
63
63
  };
64
- const close = (model) => {
64
+ const finishClosing = (model) => {
65
65
  if (!model.isOpen) {
66
- return __foldkitBrandViewResult(({ model }), "@foldkit/ui/hoverIntent/hoverIntent.js#close");
66
+ return __foldkitBrandViewResult(({ model }), "@foldkit/ui/hoverIntent/hoverIntent.js#finishClosing");
67
67
  }
68
68
  return __foldkitBrandViewResult(({
69
69
  model: evo(model, { isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isOpen~2") }),
70
70
  outMessage: OutMessage.Closed(),
71
- }), "@foldkit/ui/hoverIntent/hoverIntent.js#close");
71
+ }), "@foldkit/ui/hoverIntent/hoverIntent.js#finishClosing");
72
72
  };
73
73
  const scheduleOpen = (model) => {
74
74
  const version = Number.increment(model.pendingOpenVersion);
@@ -77,11 +77,11 @@ const scheduleOpen = (model) => {
77
77
  commands: [WaitBeforeOpening({ delay: model.openDelay, version })],
78
78
  }), "@foldkit/ui/hoverIntent/hoverIntent.js#scheduleOpen");
79
79
  };
80
- const scheduleClose = (model) => {
80
+ const scheduleClose = (model, delay) => {
81
81
  const version = Number.increment(model.pendingCloseVersion);
82
82
  return __foldkitBrandViewResult(({
83
83
  model: evo(model, { pendingCloseVersion: () => __foldkitBrandViewResult((version), "@foldkit/ui/hoverIntent/hoverIntent.js#pendingCloseVersion") }),
84
- commands: [WaitBeforeClosing({ delay: model.closeDelay, version })],
84
+ commands: [WaitBeforeClosing({ delay, version })],
85
85
  }), "@foldkit/ui/hoverIntent/hoverIntent.js#scheduleClose");
86
86
  };
87
87
  const entered = (model) => {
@@ -106,7 +106,7 @@ const left = (model) => {
106
106
  if (!leftModel.isOpen) {
107
107
  return __foldkitBrandViewResult(({ model: leftModel }), "@foldkit/ui/hoverIntent/hoverIntent.js#left");
108
108
  }
109
- return __foldkitBrandViewResult((scheduleClose(leftModel)), "@foldkit/ui/hoverIntent/hoverIntent.js#left");
109
+ return __foldkitBrandViewResult((scheduleClose(leftModel, leftModel.closeDelay)), "@foldkit/ui/hoverIntent/hoverIntent.js#left");
110
110
  };
111
111
  const focused = (model, focusLocation) => {
112
112
  const focusedModel = evo(model, {
@@ -133,37 +133,40 @@ const blurred = (model) => {
133
133
  if (!blurredModel.isOpen) {
134
134
  return __foldkitBrandViewResult(({ model: blurredModel }), "@foldkit/ui/hoverIntent/hoverIntent.js#blurred");
135
135
  }
136
- return __foldkitBrandViewResult((scheduleClose(blurredModel)), "@foldkit/ui/hoverIntent/hoverIntent.js#blurred");
136
+ return __foldkitBrandViewResult((scheduleClose(blurredModel, Duration.zero)), "@foldkit/ui/hoverIntent/hoverIntent.js#blurred");
137
137
  };
138
+ const dismiss = (model, isTriggerFocused) => {
139
+ const maybeFocusLocation = Option.liftPredicate('Trigger', () => __foldkitBrandViewResult((isTriggerFocused), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous"));
140
+ const dismissedModel = evo(model, {
141
+ isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isOpen~3"),
142
+ isPanelHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered"),
143
+ maybeFocusLocation: () => __foldkitBrandViewResult((maybeFocusLocation), "@foldkit/ui/hoverIntent/hoverIntent.js#maybeFocusLocation~3"),
144
+ isDismissed: () => __foldkitBrandViewResult((model.isTriggerHovered || isTriggerFocused), "@foldkit/ui/hoverIntent/hoverIntent.js#isDismissed~3"),
145
+ pendingOpenVersion: Number.increment,
146
+ pendingCloseVersion: Number.increment,
147
+ });
148
+ if (model.isOpen) {
149
+ return __foldkitBrandViewResult(({ model: dismissedModel, outMessage: OutMessage.Closed() }), "@foldkit/ui/hoverIntent/hoverIntent.js#dismiss");
150
+ }
151
+ return __foldkitBrandViewResult(({ model: dismissedModel }), "@foldkit/ui/hoverIntent/hoverIntent.js#dismiss");
152
+ };
153
+ /** Programmatically closes HoverIntent immediately, invalidating pending
154
+ * transitions and suppressing reopening until the trigger disengages. */
155
+ export const close = (model) => __foldkitBrandViewResult((dismiss(model, Option.exists(model.maybeFocusLocation, focusLocation => __foldkitBrandViewResult((focusLocation === 'Trigger'), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~2")))), "@foldkit/ui/hoverIntent/hoverIntent.js#close");
138
156
  /** Processes a HoverIntent Message and returns the next Model, optional Commands, and an optional OutMessage. */
139
157
  export const update = (model, message) => __foldkitBrandViewResult((Message.match(message, {
140
158
  EnteredTrigger: () => __foldkitBrandViewResult((entered(evo(model, { isTriggerHovered: () => __foldkitBrandViewResult((true), "@foldkit/ui/hoverIntent/hoverIntent.js#isTriggerHovered") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#EnteredTrigger"),
141
159
  LeftTrigger: () => __foldkitBrandViewResult((left(evo(model, { isTriggerHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isTriggerHovered~2") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#LeftTrigger"),
142
- EnteredPanel: () => __foldkitBrandViewResult((entered(evo(model, { isPanelHovered: () => __foldkitBrandViewResult((true), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#EnteredPanel"),
143
- LeftPanel: () => __foldkitBrandViewResult((left(evo(model, { isPanelHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered~2") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#LeftPanel"),
160
+ EnteredPanel: () => __foldkitBrandViewResult((entered(evo(model, { isPanelHovered: () => __foldkitBrandViewResult((true), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered~2") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#EnteredPanel"),
161
+ LeftPanel: () => __foldkitBrandViewResult((left(evo(model, { isPanelHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered~3") }))), "@foldkit/ui/hoverIntent/hoverIntent.js#LeftPanel"),
144
162
  FocusedTrigger: () => __foldkitBrandViewResult((focused(model, 'Trigger')), "@foldkit/ui/hoverIntent/hoverIntent.js#FocusedTrigger"),
145
163
  BlurredTrigger: () => __foldkitBrandViewResult((blurred(model)), "@foldkit/ui/hoverIntent/hoverIntent.js#BlurredTrigger"),
146
164
  FocusedPanel: () => __foldkitBrandViewResult((focused(model, 'Panel')), "@foldkit/ui/hoverIntent/hoverIntent.js#FocusedPanel"),
147
165
  BlurredPanel: () => __foldkitBrandViewResult((blurred(model)), "@foldkit/ui/hoverIntent/hoverIntent.js#BlurredPanel"),
148
166
  PressedEscape: ({ source }) => {
149
167
  const isTriggerFocused = source === 'Trigger' ||
150
- Option.exists(model.maybeFocusLocation, focusLocation => __foldkitBrandViewResult((focusLocation === 'Trigger'), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous"));
151
- const maybeFocusLocation = isTriggerFocused
152
- ? Option.some('Trigger')
153
- : Option.none();
154
- const isDismissed = model.isTriggerHovered || isTriggerFocused;
155
- const dismissedModel = evo(model, {
156
- isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isOpen~3"),
157
- isPanelHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/hoverIntent/hoverIntent.js#isPanelHovered~3"),
158
- maybeFocusLocation: () => __foldkitBrandViewResult((maybeFocusLocation), "@foldkit/ui/hoverIntent/hoverIntent.js#maybeFocusLocation~3"),
159
- isDismissed: () => __foldkitBrandViewResult((isDismissed), "@foldkit/ui/hoverIntent/hoverIntent.js#isDismissed~3"),
160
- pendingOpenVersion: Number.increment,
161
- pendingCloseVersion: Number.increment,
162
- });
163
- if (model.isOpen) {
164
- return __foldkitBrandViewResult(({ model: dismissedModel, outMessage: OutMessage.Closed() }), "@foldkit/ui/hoverIntent/hoverIntent.js#PressedEscape");
165
- }
166
- return __foldkitBrandViewResult(({ model: dismissedModel }), "@foldkit/ui/hoverIntent/hoverIntent.js#PressedEscape");
168
+ Option.exists(model.maybeFocusLocation, focusLocation => __foldkitBrandViewResult((focusLocation === 'Trigger'), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~3"));
169
+ return __foldkitBrandViewResult((dismiss(model, isTriggerFocused)), "@foldkit/ui/hoverIntent/hoverIntent.js#PressedEscape");
167
170
  },
168
171
  CompletedWaitBeforeOpening: ({ version }) => {
169
172
  if (version !== model.pendingOpenVersion) {
@@ -178,18 +181,18 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
178
181
  if (version !== model.pendingCloseVersion || isEngaged(model)) {
179
182
  return __foldkitBrandViewResult(({ model }), "@foldkit/ui/hoverIntent/hoverIntent.js#CompletedWaitBeforeClosing");
180
183
  }
181
- return __foldkitBrandViewResult((close(model)), "@foldkit/ui/hoverIntent/hoverIntent.js#CompletedWaitBeforeClosing");
184
+ return __foldkitBrandViewResult((finishClosing(model)), "@foldkit/ui/hoverIntent/hoverIntent.js#CompletedWaitBeforeClosing");
182
185
  },
183
186
  })), "@foldkit/ui/hoverIntent/hoverIntent.js#update");
184
187
  /** Renders headless HoverIntent event bundles. It owns no markup, ARIA semantics, positioning, or styling. */
185
188
  export const view = defineView((model, { focusTriggerSelector, toView }, h) => {
186
- const toPressedEscape = (source) => __foldkitBrandViewResult(((key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Message.PressedEscape({ source }))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~4")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~5")))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~3")), "@foldkit/ui/hoverIntent/hoverIntent.js#toPressedEscape");
189
+ const toPressedEscape = (source) => __foldkitBrandViewResult(((key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Message.PressedEscape({ source }))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~6")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~7")))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~5")), "@foldkit/ui/hoverIntent/hoverIntent.js#toPressedEscape");
187
190
  const panelEscapeHandler = focusTriggerSelector === undefined
188
191
  ? h.OnKeyDownPreventDefault(toPressedEscape('Panel'))
189
192
  : h.OnKeyDownFocus(key => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some({
190
193
  focusSelector: focusTriggerSelector,
191
194
  message: Message.PressedEscape({ source: 'Panel' }),
192
- })), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~7")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~8")))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~6"));
195
+ })), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~9")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~10")))), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~8"));
193
196
  return __foldkitBrandViewResult((toView({
194
197
  trigger: childAttributes([
195
198
  h.OnMouseEnter(Message.EnteredTrigger()),
@@ -206,5 +209,5 @@ export const view = defineView((model, { focusTriggerSelector, toView }, h) => {
206
209
  panelEscapeHandler,
207
210
  ]),
208
211
  isVisible: model.isOpen,
209
- })), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~2");
212
+ })), "@foldkit/ui/hoverIntent/hoverIntent.js#anonymous~4");
210
213
  });
@@ -1,3 +1,3 @@
1
- export { init, update, view, Model, Message, OutMessage, type BlurredPanel, type BlurredTrigger, type Closed, type CompletedWaitBeforeClosing, type CompletedWaitBeforeOpening, type EnteredPanel, type EnteredTrigger, type FocusedPanel, type FocusedTrigger, type LeftPanel, type LeftTrigger, type Opened, type PressedEscape, WaitBeforeClosing, WaitBeforeOpening, } from './index.js';
1
+ export { close, init, update, view, Model, Message, OutMessage, type BlurredPanel, type BlurredTrigger, type Closed, type CompletedWaitBeforeClosing, type CompletedWaitBeforeOpening, type EnteredPanel, type EnteredTrigger, type FocusedPanel, type FocusedTrigger, type LeftPanel, type LeftTrigger, type Opened, type PressedEscape, WaitBeforeClosing, WaitBeforeOpening, } from './index.js';
2
2
  export type { InitConfig, RenderInfo, ViewInputs } from './index.js';
3
3
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/hoverIntent/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/hoverIntent/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,EACP,UAAU,EACV,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,MAAM,EACX,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA"}
@@ -1 +1 @@
1
- export { init, update, view, Model, Message, OutMessage, WaitBeforeClosing, WaitBeforeOpening, } from './index.js';
1
+ export { close, init, update, view, Model, Message, OutMessage, WaitBeforeClosing, WaitBeforeOpening, } from './index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/ui",
3
- "version": "0.155.0",
3
+ "version": "0.156.0-canary.4aab52dcbe58",
4
4
  "description": "Headless, accessible UI components for Foldkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -122,7 +122,7 @@
122
122
  ],
123
123
  "peerDependencies": {
124
124
  "effect": "4.0.0-rc.112",
125
- "foldkit": ">=0.155.0"
125
+ "foldkit": "0.156.0-canary.4aab52dcbe58"
126
126
  },
127
127
  "dependencies": {
128
128
  "@floating-ui/dom": "^1.8.0"
@@ -134,8 +134,8 @@
134
134
  "rimraf": "^6.1.3",
135
135
  "typescript": "^7.0.2",
136
136
  "vitest": "^4.1.11",
137
- "@foldkit/vite-plugin": "0.20.0",
138
- "foldkit": "0.155.0"
137
+ "@foldkit/vite-plugin": "0.20.0-canary.4aab52dcbe58",
138
+ "foldkit": "0.156.0-canary.4aab52dcbe58"
139
139
  },
140
140
  "keywords": [
141
141
  "foldkit",