foldkit-primitives 0.15.2 → 0.15.3

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.
@@ -225,10 +225,6 @@ export declare const mediaStream: <const Name extends string>(config: {
225
225
  readonly status: "denied" | "idle" | "live" | "requesting";
226
226
  readonly lastError: string | null;
227
227
  }, {
228
- readonly _tag: "Started";
229
- } | {
230
- readonly _tag: "Stopped";
231
- } | {
232
228
  readonly _tag: "Denied";
233
229
  } | {
234
230
  readonly _tag: "Ended";
@@ -237,15 +233,15 @@ export declare const mediaStream: <const Name extends string>(config: {
237
233
  readonly message: string;
238
234
  } | {
239
235
  readonly _tag: "Live";
236
+ } | {
237
+ readonly _tag: "Started";
238
+ } | {
239
+ readonly _tag: "Stopped";
240
240
  }, never, never, never, void, {
241
241
  stream: ManagedResource.Entry<{
242
242
  readonly status: "denied" | "idle" | "live" | "requesting";
243
243
  readonly lastError: string | null;
244
244
  }, {
245
- readonly _tag: "Started";
246
- } | {
247
- readonly _tag: "Stopped";
248
- } | {
249
245
  readonly _tag: "Denied";
250
246
  } | {
251
247
  readonly _tag: "Ended";
@@ -254,6 +250,10 @@ export declare const mediaStream: <const Name extends string>(config: {
254
250
  readonly message: string;
255
251
  } | {
256
252
  readonly _tag: "Live";
253
+ } | {
254
+ readonly _tag: "Started";
255
+ } | {
256
+ readonly _tag: "Stopped";
257
257
  }, Option.Option<{
258
258
  readonly audio: boolean;
259
259
  readonly video: boolean;
@@ -324,11 +324,11 @@ export declare const permissions: <const Name extends string>(config: {
324
324
  };
325
325
  readonly lastError: string | null;
326
326
  }, {
327
- readonly _tag: "Cleared";
328
- } | {
329
327
  readonly _tag: "Changed";
330
328
  readonly name: string;
331
329
  readonly state: "denied" | "granted" | "prompt";
330
+ } | {
331
+ readonly _tag: "Cleared";
332
332
  } | {
333
333
  readonly _tag: "Failed";
334
334
  readonly message: string;
@@ -134,16 +134,16 @@ declare const Tween: Bundle.Bundle<"Tween", {
134
134
  readonly value: number;
135
135
  readonly running: boolean;
136
136
  }, {
137
- readonly _tag: "Finished";
138
- readonly value: number;
139
- } | {
140
137
  readonly _tag: "Started";
141
138
  } | {
142
139
  readonly _tag: "Stopped";
140
+ } | {
141
+ readonly _tag: "Finished";
142
+ readonly value: number;
143
143
  } | {
144
144
  readonly _tag: "Ticked";
145
145
  readonly value: number;
146
146
  }, never, never, never, void, {}, {}>;
147
147
  //#endregion
148
148
  export { SpringMessage as a, PresenceMessage as c, motion_d_exports as d, Spring as i, PresenceModel as l, TweenMessage as n, SpringModel as o, TweenModel as r, Presence as s, Tween as t, isVisible as u };
149
- //# sourceMappingURL=index-BC8kcar9.d.mts.map
149
+ //# sourceMappingURL=index-CmmxqSEi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BC8kcar9.d.mts","names":[],"sources":["../src/motion/motion.ts","../src/motion/presence.ts","../src/motion/spring.ts","../src/motion/tween.ts"],"mappings":";;;;;UAUiB;WACN,SAAS,OAAO;;;cAGd,eAAe;;cAGf,QAAK,qBAAuB,MAAM,MAAM;cAGxC,SAAS,MAAM,MAAM;cACrB,MAAM,MAAM,MAAM;;cAGlB,MAAM,MAAM,MAAM;;cAUlB,eAAe,OAAO;;;cC5BtB,eAAa,OAAA;;;;KAId,uBAAuB,cAAc;cAEpC,2CAAe;;;;IAGhB,YAAU,OAAA;;;KAEV,yBAAyB,gBAAgB;;cAGxC,YAAS,OAAW;;;;;;;cAQpB,UAAQ,OAAA;WAII;;;;;;;;;;;;;;cC1BZ,aAAW,OAAA;;;;;KAKZ,qBAAqB,YAAY;cAEhC,yCAAa;;;;IAGd,OAAK,OAAA;IAAiB,UAAQ,OAAA;;;;IAE5B,OAAK,OAAA;;;KAEP,uBAAuB,cAAc;;;;;;;;cAoBpC,QAAM,OAAA;;;;;;;;;;;;;;;;;;;;;;;cClCN,YAAU,OAAA;;;;KACX,oBAAoB,WAAW;cAE9B,wCAAY;;;;IAGb,OAAK,OAAA;;;;IAEH,OAAK,OAAA;;;KAEP,sBAAsB,aAAa;;;;;;;cAQlC,OAAK,OAAA"}
1
+ {"version":3,"file":"index-CmmxqSEi.d.mts","names":[],"sources":["../src/motion/motion.ts","../src/motion/presence.ts","../src/motion/spring.ts","../src/motion/tween.ts"],"mappings":";;;;;UAUiB;WACN,SAAS,OAAO;;;cAGd,eAAe;;cAGf,QAAK,qBAAuB,MAAM,MAAM;cAGxC,SAAS,MAAM,MAAM;cACrB,MAAM,MAAM,MAAM;;cAGlB,MAAM,MAAM,MAAM;;cAUlB,eAAe,OAAO;;;cC5BtB,eAAa,OAAA;;;;KAId,uBAAuB,cAAc;cAEpC,2CAAe;;;;IAGhB,YAAU,OAAA;;;KAEV,yBAAyB,gBAAgB;;cAGxC,YAAS,OAAW;;;;;;;cAQpB,UAAQ,OAAA;WAII;;;;;;;;;;;;;;cC1BZ,aAAW,OAAA;;;;;KAKZ,qBAAqB,YAAY;cAEhC,yCAAa;;;;IAGd,OAAK,OAAA;IAAiB,UAAQ,OAAA;;;;IAE5B,OAAK,OAAA;;;KAEP,uBAAuB,cAAc;;;;;;;;cAoBpC,QAAM,OAAA;;;;;;;;;;;;;;;;;;;;;;;cClCN,YAAU,OAAA;;;;KACX,oBAAoB,WAAW;cAE9B,wCAAY;;;;IAGb,OAAK,OAAA;;;;IAEH,OAAK,OAAA;;;KAEP,sBAAsB,aAAa;;;;;;;cAQlC,OAAK,OAAA"}
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { Autofocus, ClipboardMessage, ClipboardReadMessage, FLUID_HELD_ATTRIBUTE
4
4
  import { a as modalityOfKey, i as Modality, n as InputModalityMessage, r as InputModalityModel, t as InputModality } from "./input-modality-BY-bSrEc.mjs";
5
5
  import { ActiveElementMessage, Idle, IdleMessage, IdleModel, KeyPress, KeyboardMessage, PointerMessage, ScrollMessage, Visibility, VisibilityMessage, VisibilityModel, WindowSize, WindowSizeMessage, WindowSizeModel, activeElementEvents, keyboardEvents, matchHotkey, pointerEvents, scrollEvents } from "./events/index.mjs";
6
6
  import { Breakpoints, BreakpointsMessage, BreakpointsModel, MediaQuery, MediaQueryMessage, MediaQueryModel, Platform, PlatformHints, PrefersDark, PrefersReducedMotion, breakpointFor, isBrowser, isServer, platformFromUA } from "./media/index.mjs";
7
- import { a as SpringMessage, c as PresenceMessage, d as motion_d_exports, i as Spring, l as PresenceModel, n as TweenMessage, o as SpringModel, r as TweenModel, s as Presence, t as Tween, u as isVisible } from "./index-BC8kcar9.mjs";
7
+ import { a as SpringMessage, c as PresenceMessage, d as motion_d_exports, i as Spring, l as PresenceModel, n as TweenMessage, o as SpringModel, r as TweenModel, s as Presence, t as Tween, u as isVisible } from "./index-CmmxqSEi.mjs";
8
8
  import { Acquired, AcquiredSource, BroadcastChannelHandle, BroadcastMessage, Conversation, ConversationHandler, Online, OnlineMessage, OnlineModel, SharedHost, SharedHostConnection, SharedHostOptions, Socket, SocketHandle, SocketService, SocketView, Source, SourceHandle, SourceService, SseMessage, SseModel, SseView, StartHost, WebSocketMessage, WebSocketModel, broadcastMessages, isLive, isOpen, postBroadcast, sse, viewOf, viewOfSse, websocket } from "./net/index.mjs";
9
9
  import { Bounds, Intersection, IntersectionChanged, Measured, Mutated, Mutation, Resize, Resized } from "./observers/index.mjs";
10
10
  import { History, HistoryModel, Locale, LocaleMessage, LocaleModel, MasonryPlacement, MeasureRow, Pagination, PaginationMessage, PaginationModel, RowMeasured, SelectionSet, SelectionSetMessage, SelectionSetModel, Viewport, ViewportScrolled, Virtual, VirtualLayout, VirtualMessage, VirtualModel, VirtualWindow, canRedo, canUndo, distanceToEnd, history, isAtEnd, isSelected, masonry, offset, offsetFor, pageCount, range, stickyHeader, totalHeight, visibleRange, windowFor } from "./state/index.mjs";
@@ -1,2 +1,2 @@
1
- import { a as SpringMessage, c as PresenceMessage, d as motion_d_exports, i as Spring, l as PresenceModel, n as TweenMessage, o as SpringModel, r as TweenModel, s as Presence, t as Tween, u as isVisible } from "../index-BC8kcar9.mjs";
1
+ import { a as SpringMessage, c as PresenceMessage, d as motion_d_exports, i as Spring, l as PresenceModel, n as TweenMessage, o as SpringModel, r as TweenModel, s as Presence, t as Tween, u as isVisible } from "../index-CmmxqSEi.mjs";
2
2
  export { motion_d_exports as Motion, Presence, PresenceMessage, PresenceModel, Spring, SpringMessage, SpringModel, Tween, TweenMessage, TweenModel, isVisible };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldkit-primitives",
3
- "version": "0.15.2",
3
+ "version": "0.15.3",
4
4
  "description": "Ready-made primitives for the Elm architecture, packaged with foldkit-bundle: media queries, presence, timers, pagination, history, sockets, observers, clipboard, and interaction Bundles with their Behaviors.",
5
5
  "keywords": [
6
6
  "foldkit",
@@ -89,23 +89,23 @@
89
89
  "LICENSE"
90
90
  ],
91
91
  "dependencies": {
92
- "foldkit-bundle": "0.8.0"
92
+ "foldkit-bundle": "0.8.1"
93
93
  },
94
94
  "peerDependencies": {
95
95
  "effect": "^4.0.0",
96
- "foldkit": "^0.168.0",
97
- "foldkit-mixins": "^0.19.0"
96
+ "foldkit": "^0.169.0",
97
+ "foldkit-mixins": "^0.19.1"
98
98
  },
99
99
  "devDependencies": {
100
- "@effect/platform-browser": "^4.0.4",
100
+ "@effect/platform-browser": "^4.0.5",
101
101
  "@types/ws": "^8.18.2",
102
- "effect": "^4.0.4",
103
- "foldkit": "0.168.0",
104
- "jsdom": "30.1.2",
102
+ "effect": "^4.0.5",
103
+ "foldkit": "0.169.0",
104
+ "jsdom": "30.1.3",
105
105
  "tsdown": "^0.23.1",
106
106
  "typescript": "7.0.2",
107
107
  "ws": "^8.22.0",
108
- "foldkit-mixins": "0.19.0"
108
+ "foldkit-mixins": "0.19.1"
109
109
  },
110
110
  "peerDependenciesMeta": {
111
111
  "foldkit-mixins": {