@danxbot/ui 20.12.0 → 20.12.2

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.
@@ -98,9 +98,12 @@ export declare class PagedWindowStore<T> {
98
98
  /** The viewer moved to another page. Ignored while frozen, applied on thaw. */
99
99
  setAnchorPage(page: number): void;
100
100
  /**
101
- * While true the window neither loads nor drops pages, whatever the anchor or
102
- * the total does. A drag needs it: the carried card is mounted in its page,
103
- * and dropping that page mid-drag would unmount the card and cancel the drag.
101
+ * While true nothing about the window changes: it neither loads nor drops
102
+ * pages, starts no refresh and applies no answer, whatever the anchor or the
103
+ * total does (all of it waits for the thaw). A drag needs it: the carried card
104
+ * is mounted in its page, and dropping that page mid-drag would unmount the
105
+ * card and cancel the drag. Only `reset()` ignores it — a query change is a
106
+ * different list.
104
107
  */
105
108
  setFrozen(frozen: boolean): void;
106
109
  /** `count` holds and requests no cards, only the length (see the file header). */
@@ -127,14 +130,22 @@ export declare class PagedWindowStore<T> {
127
130
  private wanted;
128
131
  /** Bring the held pages to the wanted ones — unless frozen, when that waits for the thaw. */
129
132
  private sync;
133
+ /** `force` is `reset()`'s alone: it brings the window to its (new) list even while frozen. */
130
134
  private reconcile;
131
135
  /** Everything the frozen window put off, in the order the header promises. */
132
136
  private thaw;
133
137
  /** Start (or restart) a page's request; whatever was in flight is abandoned. */
134
138
  private request;
135
139
  private settle;
140
+ /**
141
+ * Record an answer on its page — no window change, no notification: callers
142
+ * sync once. Re-checks the token because a held answer is replayed on thaw,
143
+ * after which its request may have been abandoned.
144
+ */
145
+ private applyPage;
136
146
  private requestCount;
137
147
  private settleCount;
148
+ private applyCount;
138
149
  private abortCount;
139
150
  private dropAll;
140
151
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "20.12.0",
3
+ "version": "20.12.2",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",