@shivaedev/work-board 0.14.2 → 0.15.0

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.
Files changed (196) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/assets/agent.js +1 -1
  4. package/assets/native.js +25 -25
  5. package/assets/react.js +38 -37
  6. package/dist/browser/diagnostics/schema.d.ts +15 -12
  7. package/dist/browser/diagnostics/schema.d.ts.map +1 -1
  8. package/dist/browser/diagnostics/schema.js +12 -2
  9. package/dist/browser/diagnostics/schema.js.map +1 -1
  10. package/dist/browser/views/remaining.d.ts +20 -12
  11. package/dist/browser/views/remaining.d.ts.map +1 -1
  12. package/dist/client/client.d.ts +1 -0
  13. package/dist/client/client.d.ts.map +1 -1
  14. package/dist/client/client.js +1 -1
  15. package/dist/client/client.js.map +1 -1
  16. package/dist/client/formStatus.d.ts +12 -0
  17. package/dist/client/formStatus.d.ts.map +1 -0
  18. package/dist/client/formStatus.js +27 -0
  19. package/dist/client/formStatus.js.map +1 -0
  20. package/dist/client/react/BoardShell.d.ts.map +1 -1
  21. package/dist/client/react/BoardShell.js +15 -21
  22. package/dist/client/react/BoardShell.js.map +1 -1
  23. package/dist/client/react/DocumentContext.d.ts.map +1 -1
  24. package/dist/client/react/DocumentContext.js +6 -3
  25. package/dist/client/react/DocumentContext.js.map +1 -1
  26. package/dist/client/react/FormContext.d.ts +5 -0
  27. package/dist/client/react/FormContext.d.ts.map +1 -0
  28. package/dist/client/react/FormContext.js +10 -0
  29. package/dist/client/react/FormContext.js.map +1 -0
  30. package/dist/client/react/LiveControls.d.ts +4 -3
  31. package/dist/client/react/LiveControls.d.ts.map +1 -1
  32. package/dist/client/react/LiveControls.js +5 -19
  33. package/dist/client/react/LiveControls.js.map +1 -1
  34. package/dist/client/react/MainLocationContext.d.ts +3 -0
  35. package/dist/client/react/MainLocationContext.d.ts.map +1 -0
  36. package/dist/client/react/MainLocationContext.js +7 -0
  37. package/dist/client/react/MainLocationContext.js.map +1 -0
  38. package/dist/client/react/ProjectionFrame.d.ts +1 -2
  39. package/dist/client/react/ProjectionFrame.d.ts.map +1 -1
  40. package/dist/client/react/ProjectionFrame.js +10 -4
  41. package/dist/client/react/ProjectionFrame.js.map +1 -1
  42. package/dist/client/react/ReadingLibrary.d.ts.map +1 -1
  43. package/dist/client/react/ReadingLibrary.js +7 -8
  44. package/dist/client/react/ReadingLibrary.js.map +1 -1
  45. package/dist/client/react/SystemPage.d.ts.map +1 -1
  46. package/dist/client/react/SystemPage.js +2 -1
  47. package/dist/client/react/SystemPage.js.map +1 -1
  48. package/dist/client/react/TodayOptions.d.ts.map +1 -1
  49. package/dist/client/react/TodayOptions.js +23 -14
  50. package/dist/client/react/TodayOptions.js.map +1 -1
  51. package/dist/client/react/VisualViewer.d.ts.map +1 -1
  52. package/dist/client/react/VisualViewer.js +6 -5
  53. package/dist/client/react/VisualViewer.js.map +1 -1
  54. package/dist/client/react/boardRouter.d.ts +3 -2
  55. package/dist/client/react/boardRouter.d.ts.map +1 -1
  56. package/dist/client/react/boardRouter.js +2 -1
  57. package/dist/client/react/boardRouter.js.map +1 -1
  58. package/dist/client/react/createResponse.d.ts +32 -4
  59. package/dist/client/react/createResponse.d.ts.map +1 -1
  60. package/dist/client/react/createResponse.js +7 -28
  61. package/dist/client/react/createResponse.js.map +1 -1
  62. package/dist/client/react/diagnosticsValues.d.ts.map +1 -1
  63. package/dist/client/react/diagnosticsValues.js +5 -7
  64. package/dist/client/react/diagnosticsValues.js.map +1 -1
  65. package/dist/client/react/entry.d.ts.map +1 -1
  66. package/dist/client/react/entry.js +2 -34
  67. package/dist/client/react/entry.js.map +1 -1
  68. package/dist/client/react/githubLimited.d.ts +3 -0
  69. package/dist/client/react/githubLimited.d.ts.map +1 -0
  70. package/dist/client/react/githubLimited.js +4 -0
  71. package/dist/client/react/githubLimited.js.map +1 -0
  72. package/dist/client/react/loadProjection.d.ts +135 -135
  73. package/dist/client/react/loadRemaining.d.ts +37 -29
  74. package/dist/client/react/loadRemaining.d.ts.map +1 -1
  75. package/dist/client/react/mainLocation.d.ts +4 -2
  76. package/dist/client/react/mainLocation.d.ts.map +1 -1
  77. package/dist/client/react/mainLocation.js +1 -8
  78. package/dist/client/react/mainLocation.js.map +1 -1
  79. package/dist/client/react/mountBoard.d.ts +3 -0
  80. package/dist/client/react/mountBoard.d.ts.map +1 -0
  81. package/dist/client/react/mountBoard.js +45 -0
  82. package/dist/client/react/mountBoard.js.map +1 -0
  83. package/dist/client/react/navigationLocation.d.ts +1 -1
  84. package/dist/client/react/navigationLocation.d.ts.map +1 -1
  85. package/dist/client/react/navigationLocation.js +1 -1
  86. package/dist/client/react/navigationLocation.js.map +1 -1
  87. package/dist/client/react/retryPage.d.ts +2 -1
  88. package/dist/client/react/retryPage.d.ts.map +1 -1
  89. package/dist/client/react/retryPage.js +3 -4
  90. package/dist/client/react/retryPage.js.map +1 -1
  91. package/dist/client/react/useBoardNavigation.d.ts.map +1 -1
  92. package/dist/client/react/useBoardNavigation.js +18 -8
  93. package/dist/client/react/useBoardNavigation.js.map +1 -1
  94. package/dist/client/react/useDocumentPage.d.ts +1 -1
  95. package/dist/client/react/useDocumentPage.d.ts.map +1 -1
  96. package/dist/client/react/useDocumentPage.js +9 -6
  97. package/dist/client/react/useDocumentPage.js.map +1 -1
  98. package/dist/client/react/useHandoffForm.d.ts +56 -30
  99. package/dist/client/react/useHandoffForm.d.ts.map +1 -1
  100. package/dist/client/react/useHandoffForm.js +19 -30
  101. package/dist/client/react/useHandoffForm.js.map +1 -1
  102. package/dist/client/react/useResponseForm.d.ts +72 -43
  103. package/dist/client/react/useResponseForm.d.ts.map +1 -1
  104. package/dist/client/react/useResponseForm.js +20 -17
  105. package/dist/client/react/useResponseForm.js.map +1 -1
  106. package/dist/client/react/visualSources.d.ts.map +1 -1
  107. package/dist/client/react/visualSources.js +10 -8
  108. package/dist/client/react/visualSources.js.map +1 -1
  109. package/dist/client/saveFailure.d.ts +8 -0
  110. package/dist/client/saveFailure.d.ts.map +1 -0
  111. package/dist/client/saveFailure.js +8 -0
  112. package/dist/client/saveFailure.js.map +1 -0
  113. package/dist/diagnostics/daemonContract.d.ts +65 -38
  114. package/dist/diagnostics/daemonContract.d.ts.map +1 -1
  115. package/dist/diagnostics/daemonContract.js +2 -1
  116. package/dist/diagnostics/daemonContract.js.map +1 -1
  117. package/dist/diagnostics/health.d.ts +10 -0
  118. package/dist/diagnostics/health.d.ts.map +1 -1
  119. package/dist/diagnostics/health.js +2 -0
  120. package/dist/diagnostics/health.js.map +1 -1
  121. package/dist/diagnostics/source.d.ts +55 -36
  122. package/dist/diagnostics/source.d.ts.map +1 -1
  123. package/dist/diagnostics/source.js +1 -2
  124. package/dist/diagnostics/source.js.map +1 -1
  125. package/dist/rpc/contract.d.ts +60 -36
  126. package/dist/rpc/contract.d.ts.map +1 -1
  127. package/dist/server/diagnostics/daemon.d.ts +41 -25
  128. package/dist/server/diagnostics/daemon.d.ts.map +1 -1
  129. package/dist/server/diagnostics/fleetHealth.d.ts +10 -0
  130. package/dist/server/diagnostics/fleetHealth.d.ts.map +1 -1
  131. package/dist/server/diagnostics/githubLimits.d.ts +12 -13
  132. package/dist/server/diagnostics/githubLimits.d.ts.map +1 -1
  133. package/dist/server/diagnostics/githubLimits.js +6 -6
  134. package/dist/server/diagnostics/githubLimits.js.map +1 -1
  135. package/dist/server/integration/diagnostics.d.ts +74 -38
  136. package/dist/server/integration/diagnostics.d.ts.map +1 -1
  137. package/dist/server/mcp/client.d.ts +20 -12
  138. package/dist/server/mcp/client.d.ts.map +1 -1
  139. package/dist/server/mcp/queries.d.ts +60 -36
  140. package/dist/server/mcp/queries.d.ts.map +1 -1
  141. package/dist/server/metadata/fields.js +1 -1
  142. package/dist/server/metadata/fields.js.map +1 -1
  143. package/dist/server/packageInfo.d.ts +1 -1
  144. package/dist/server/packageInfo.js +1 -1
  145. package/dist/server/views/remainingQueries.d.ts +20 -12
  146. package/dist/server/views/remainingQueries.d.ts.map +1 -1
  147. package/package.json +7 -6
  148. package/src/browser/diagnostics/schema.ts +12 -2
  149. package/src/client/client.ts +2 -1
  150. package/src/client/formStatus.ts +35 -0
  151. package/src/client/react/BoardShell.tsx +19 -26
  152. package/src/client/react/DocumentContext.tsx +6 -3
  153. package/src/client/react/FormContext.ts +13 -0
  154. package/src/client/react/LiveControls.tsx +5 -25
  155. package/src/client/react/MainLocationContext.ts +8 -0
  156. package/src/client/react/ProjectionFrame.tsx +13 -5
  157. package/src/client/react/ReadingLibrary.tsx +7 -8
  158. package/src/client/react/SystemPage.tsx +2 -1
  159. package/src/client/react/TodayOptions.tsx +40 -33
  160. package/src/client/react/VisualViewer.tsx +6 -6
  161. package/src/client/react/boardRouter.ts +3 -2
  162. package/src/client/react/createResponse.ts +10 -35
  163. package/src/client/react/diagnosticsValues.tsx +20 -12
  164. package/src/client/react/entry.tsx +2 -37
  165. package/src/client/react/githubLimited.ts +5 -0
  166. package/src/client/react/mainLocation.ts +5 -8
  167. package/src/client/react/mountBoard.tsx +49 -0
  168. package/src/client/react/navigationLocation.ts +2 -2
  169. package/src/client/react/retryPage.ts +4 -4
  170. package/src/client/react/useBoardNavigation.ts +20 -8
  171. package/src/client/react/useDocumentPage.ts +12 -6
  172. package/src/client/react/useHandoffForm.ts +25 -33
  173. package/src/client/react/useResponseForm.ts +20 -18
  174. package/src/client/react/visualSources.ts +10 -8
  175. package/src/client/saveFailure.ts +14 -0
  176. package/src/diagnostics/daemonContract.ts +2 -1
  177. package/src/diagnostics/health.ts +2 -0
  178. package/src/diagnostics/source.ts +1 -2
  179. package/src/server/diagnostics/githubLimits.ts +9 -11
  180. package/src/server/metadata/fields.ts +1 -1
  181. package/src/server/packageInfo.ts +1 -1
  182. package/dist/client/handoffs/failureStatus.d.ts +0 -2
  183. package/dist/client/handoffs/failureStatus.d.ts.map +0 -1
  184. package/dist/client/handoffs/failureStatus.js +0 -7
  185. package/dist/client/handoffs/failureStatus.js.map +0 -1
  186. package/dist/client/responses/failure.d.ts +0 -5
  187. package/dist/client/responses/failure.d.ts.map +0 -1
  188. package/dist/client/responses/failure.js +0 -13
  189. package/dist/client/responses/failure.js.map +0 -1
  190. package/dist/server/diagnostics/readCommand.d.ts +0 -4
  191. package/dist/server/diagnostics/readCommand.d.ts.map +0 -1
  192. package/dist/server/diagnostics/readCommand.js +0 -20
  193. package/dist/server/diagnostics/readCommand.js.map +0 -1
  194. package/src/client/handoffs/failureStatus.ts +0 -6
  195. package/src/client/responses/failure.ts +0 -13
  196. package/src/server/diagnostics/readCommand.ts +0 -24
@@ -1 +1 @@
1
- {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../src/client/react/entry.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,yBAAyB,CAAC;AAEjC,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AACpE,IAAI,SAAS,EAAE,CAAC;IACf,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IACnC,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,SAAS,KAAK;QACb,IAAI,OAAO,EAAE,CAAC;YACb,OAAO;QACR,CAAC;QACD,OAAO,GAAG,IAAI,CAAC;QACf,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC;QACrD,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC;IAC9C,CAAC;IACD,MAAM,OA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EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AAC9C,OAAO,yBAAyB,CAAC;AAEjC,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AACpE,IAAI,SAAS,EAAE,CAAC;IACf,UAAU,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { GithubWindow } from "#browser/diagnostics/schema.ts";
2
+ export declare function githubLimited(window: GithubWindow, now: number): boolean;
3
+ //# sourceMappingURL=githubLimited.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"githubLimited.d.ts","sourceRoot":"","sources":["../../../src/client/react/githubLimited.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnE,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAE9D"}
@@ -0,0 +1,4 @@
1
+ export function githubLimited(window, now) {
2
+ return window.remaining === 0 || (window.limitedUntil !== null && window.limitedUntil > now);
3
+ }
4
+ //# sourceMappingURL=githubLimited.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"githubLimited.js","sourceRoot":"","sources":["../../../src/client/react/githubLimited.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,aAAa,CAAC,MAAoB,EAAE,GAAW;IAC9D,OAAO,MAAM,CAAC,SAAS,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,IAAI,IAAI,MAAM,CAAC,YAAY,GAAG,GAAG,CAAC,CAAC;AAC9F,CAAC"}
@@ -2,10 +2,21 @@ import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
2
2
  import type { ProjectionRoute } from "./projectionRoute.ts";
3
3
  import type { ShellApi } from "./ShellApi.ts";
4
4
  export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api: ShellApi, route: ProjectionRoute, url: string, abortController: AbortController): Promise<unknown[]> | Promise<{
5
- readonly boards: readonly {
5
+ readonly counts: readonly {
6
+ readonly count: number;
7
+ readonly title: string;
8
+ }[];
9
+ readonly document: {
10
+ readonly diagnostics: readonly {
11
+ readonly field?: string | undefined;
12
+ readonly line: number;
13
+ readonly message: string;
14
+ }[];
6
15
  readonly file: string;
7
- readonly fleetApproved?: boolean | undefined;
8
- readonly id: string;
16
+ readonly identity?: string | undefined;
17
+ readonly links: {
18
+ readonly [x: string]: string;
19
+ };
9
20
  readonly metadata: {
10
21
  readonly areas?: readonly string[] | undefined;
11
22
  readonly attention?: readonly {
@@ -87,11 +98,107 @@ export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api:
87
98
  } | undefined;
88
99
  readonly status?: string | undefined;
89
100
  };
90
- readonly title: string;
91
- readonly waiting?: string | undefined;
92
- }[];
93
- readonly issues: readonly string[];
94
- readonly items: readonly {
101
+ readonly modified: number;
102
+ readonly questionActions: {
103
+ readonly [x: string]: string;
104
+ };
105
+ readonly reading?: {
106
+ readonly backlinks: readonly {
107
+ readonly href: string;
108
+ readonly kind: string;
109
+ readonly label: string;
110
+ readonly status?: string | undefined;
111
+ readonly title?: string | undefined;
112
+ }[];
113
+ readonly board: boolean;
114
+ readonly claims: {
115
+ readonly [x: string]: readonly {
116
+ readonly href?: string | undefined;
117
+ readonly label: string;
118
+ }[];
119
+ };
120
+ readonly evidenceSources: readonly {
121
+ readonly href?: string | undefined;
122
+ readonly problem: string;
123
+ }[];
124
+ readonly lines: {
125
+ readonly [x: string]: number;
126
+ };
127
+ readonly proseLine: number;
128
+ readonly raw?: string | undefined;
129
+ readonly receipts: {
130
+ readonly [x: string]: {
131
+ readonly disposition: "applied" | "superseded";
132
+ readonly question: string;
133
+ readonly recordedAt: number;
134
+ readonly response?: string | undefined;
135
+ readonly reviewedRevision: string;
136
+ };
137
+ };
138
+ } | undefined;
139
+ readonly referenceDetails?: {
140
+ readonly [x: string]: {
141
+ readonly status?: string | undefined;
142
+ readonly title: string;
143
+ };
144
+ } | undefined;
145
+ readonly references: {
146
+ readonly [x: string]: string;
147
+ };
148
+ readonly requests: readonly {
149
+ readonly id: string;
150
+ readonly open: boolean;
151
+ readonly options?: readonly {
152
+ readonly description: string;
153
+ readonly label: string;
154
+ }[] | undefined;
155
+ readonly preview?: {
156
+ readonly context: string;
157
+ readonly id: string;
158
+ readonly item: string;
159
+ readonly reason: string;
160
+ readonly request: string;
161
+ readonly reviewedRevision: string;
162
+ readonly source: string;
163
+ } | undefined;
164
+ readonly prompts?: readonly {
165
+ readonly id: string;
166
+ readonly mode: "many" | "one" | "text";
167
+ readonly options: readonly {
168
+ readonly id: string;
169
+ readonly source: string;
170
+ }[];
171
+ readonly source: string;
172
+ }[] | undefined;
173
+ readonly promptUnavailable?: string | undefined;
174
+ readonly recommended?: string | undefined;
175
+ readonly responses?: readonly {
176
+ readonly body: string;
177
+ readonly id: string;
178
+ readonly response: {
179
+ readonly answers?: readonly {
180
+ readonly prompt: string;
181
+ readonly selected: readonly string[];
182
+ readonly text: string;
183
+ }[] | undefined;
184
+ readonly author: string;
185
+ readonly question: string;
186
+ readonly recordedAt: number;
187
+ readonly reviewedRevision: string;
188
+ readonly supersedes?: string | undefined;
189
+ readonly type: "answer" | "clarify" | "not_now";
190
+ };
191
+ }[] | undefined;
192
+ readonly sourceOpen?: boolean | undefined;
193
+ readonly title?: string | undefined;
194
+ readonly unavailable?: string | undefined;
195
+ }[];
196
+ readonly source: string;
197
+ readonly unavailable: readonly string[];
198
+ readonly writable: boolean;
199
+ };
200
+ }> | Promise<{
201
+ readonly boards: readonly {
95
202
  readonly file: string;
96
203
  readonly fleetApproved?: boolean | undefined;
97
204
  readonly id: string;
@@ -179,7 +286,8 @@ export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api:
179
286
  readonly title: string;
180
287
  readonly waiting?: string | undefined;
181
288
  }[];
182
- readonly rows: readonly {
289
+ readonly issues: readonly string[];
290
+ readonly items: readonly {
183
291
  readonly file: string;
184
292
  readonly fleetApproved?: boolean | undefined;
185
293
  readonly id: string;
@@ -267,17 +375,10 @@ export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api:
267
375
  readonly title: string;
268
376
  readonly waiting?: string | undefined;
269
377
  }[];
270
- readonly selected?: {
271
- readonly diagnostics: readonly {
272
- readonly field?: string | undefined;
273
- readonly line: number;
274
- readonly message: string;
275
- }[];
378
+ readonly rows: readonly {
276
379
  readonly file: string;
277
- readonly identity?: string | undefined;
278
- readonly links: {
279
- readonly [x: string]: string;
280
- };
380
+ readonly fleetApproved?: boolean | undefined;
381
+ readonly id: string;
281
382
  readonly metadata: {
282
383
  readonly areas?: readonly string[] | undefined;
283
384
  readonly attention?: readonly {
@@ -359,124 +460,10 @@ export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api:
359
460
  } | undefined;
360
461
  readonly status?: string | undefined;
361
462
  };
362
- readonly modified: number;
363
- readonly questionActions: {
364
- readonly [x: string]: string;
365
- };
366
- readonly reading?: {
367
- readonly backlinks: readonly {
368
- readonly href: string;
369
- readonly kind: string;
370
- readonly label: string;
371
- readonly status?: string | undefined;
372
- readonly title?: string | undefined;
373
- }[];
374
- readonly board: boolean;
375
- readonly claims: {
376
- readonly [x: string]: readonly {
377
- readonly href?: string | undefined;
378
- readonly label: string;
379
- }[];
380
- };
381
- readonly evidenceSources: readonly {
382
- readonly href?: string | undefined;
383
- readonly problem: string;
384
- }[];
385
- readonly lines: {
386
- readonly [x: string]: number;
387
- };
388
- readonly proseLine: number;
389
- readonly raw?: string | undefined;
390
- readonly receipts: {
391
- readonly [x: string]: {
392
- readonly disposition: "applied" | "superseded";
393
- readonly question: string;
394
- readonly recordedAt: number;
395
- readonly response?: string | undefined;
396
- readonly reviewedRevision: string;
397
- };
398
- };
399
- } | undefined;
400
- readonly referenceDetails?: {
401
- readonly [x: string]: {
402
- readonly status?: string | undefined;
403
- readonly title: string;
404
- };
405
- } | undefined;
406
- readonly references: {
407
- readonly [x: string]: string;
408
- };
409
- readonly requests: readonly {
410
- readonly id: string;
411
- readonly open: boolean;
412
- readonly options?: readonly {
413
- readonly description: string;
414
- readonly label: string;
415
- }[] | undefined;
416
- readonly preview?: {
417
- readonly context: string;
418
- readonly id: string;
419
- readonly item: string;
420
- readonly reason: string;
421
- readonly request: string;
422
- readonly reviewedRevision: string;
423
- readonly source: string;
424
- } | undefined;
425
- readonly prompts?: readonly {
426
- readonly id: string;
427
- readonly mode: "many" | "one" | "text";
428
- readonly options: readonly {
429
- readonly id: string;
430
- readonly source: string;
431
- }[];
432
- readonly source: string;
433
- }[] | undefined;
434
- readonly promptUnavailable?: string | undefined;
435
- readonly recommended?: string | undefined;
436
- readonly responses?: readonly {
437
- readonly body: string;
438
- readonly id: string;
439
- readonly response: {
440
- readonly answers?: readonly {
441
- readonly prompt: string;
442
- readonly selected: readonly string[];
443
- readonly text: string;
444
- }[] | undefined;
445
- readonly author: string;
446
- readonly question: string;
447
- readonly recordedAt: number;
448
- readonly reviewedRevision: string;
449
- readonly supersedes?: string | undefined;
450
- readonly type: "answer" | "clarify" | "not_now";
451
- };
452
- }[] | undefined;
453
- readonly sourceOpen?: boolean | undefined;
454
- readonly title?: string | undefined;
455
- readonly unavailable?: string | undefined;
456
- }[];
457
- readonly source: string;
458
- readonly unavailable: readonly string[];
459
- readonly writable: boolean;
460
- } | undefined;
461
- readonly selectedOutside: boolean;
462
- readonly selectionProblem?: string | undefined;
463
- readonly state: {
464
- readonly board: string;
465
- readonly item: string;
466
- readonly owner: string;
467
- readonly query: string;
468
- readonly sort: "owner" | "status" | "title";
469
- readonly status: string;
470
- readonly view: "board" | "now" | "table";
471
- };
472
- readonly title: string;
473
- readonly validBoard: boolean;
474
- }> | Promise<{
475
- readonly counts: readonly {
476
- readonly count: number;
477
463
  readonly title: string;
464
+ readonly waiting?: string | undefined;
478
465
  }[];
479
- readonly document: {
466
+ readonly selected?: {
480
467
  readonly diagnostics: readonly {
481
468
  readonly field?: string | undefined;
482
469
  readonly line: number;
@@ -666,6 +653,19 @@ export declare function loadProjection(registry: AtomRegistry.AtomRegistry, api:
666
653
  readonly source: string;
667
654
  readonly unavailable: readonly string[];
668
655
  readonly writable: boolean;
656
+ } | undefined;
657
+ readonly selectedOutside: boolean;
658
+ readonly selectionProblem?: string | undefined;
659
+ readonly state: {
660
+ readonly board: string;
661
+ readonly item: string;
662
+ readonly owner: string;
663
+ readonly query: string;
664
+ readonly sort: "owner" | "status" | "title";
665
+ readonly status: string;
666
+ readonly view: "board" | "now" | "table";
669
667
  };
668
+ readonly title: string;
669
+ readonly validBoard: boolean;
670
670
  }>;
671
671
  //# sourceMappingURL=loadProjection.d.ts.map
@@ -2,6 +2,23 @@ import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
2
2
  import type { RemainingRoute } from "./remainingRoute.ts";
3
3
  import type { ShellApi } from "./ShellApi.ts";
4
4
  export declare function loadRemaining(registry: AtomRegistry.AtomRegistry, api: ShellApi, route: RemainingRoute, url: string, abortController: AbortController): Promise<{
5
+ readonly files: readonly {
6
+ readonly href: string;
7
+ readonly kind: string;
8
+ readonly modified: number;
9
+ readonly path: string;
10
+ readonly status: string;
11
+ readonly title: string;
12
+ }[];
13
+ readonly fleetCount: number;
14
+ readonly folders: readonly {
15
+ readonly count: number;
16
+ readonly name: string;
17
+ readonly path: string;
18
+ }[];
19
+ readonly kinds: readonly string[];
20
+ readonly statuses: readonly string[];
21
+ }> | Promise<{
5
22
  readonly closedGoals: readonly {
6
23
  readonly counts: {
7
24
  readonly done: number;
@@ -681,23 +698,6 @@ export declare function loadRemaining(registry: AtomRegistry.AtomRegistry, api:
681
698
  };
682
699
  readonly status?: string | undefined;
683
700
  }[];
684
- }> | Promise<{
685
- readonly files: readonly {
686
- readonly href: string;
687
- readonly kind: string;
688
- readonly modified: number;
689
- readonly path: string;
690
- readonly status: string;
691
- readonly title: string;
692
- }[];
693
- readonly fleetCount: number;
694
- readonly folders: readonly {
695
- readonly count: number;
696
- readonly name: string;
697
- readonly path: string;
698
- }[];
699
- readonly kinds: readonly string[];
700
- readonly statuses: readonly string[];
701
701
  }> | Promise<[{
702
702
  readonly now: number;
703
703
  readonly sources: {
@@ -726,6 +726,16 @@ export declare function loadRemaining(registry: AtomRegistry.AtomRegistry, api:
726
726
  readonly state: "ready";
727
727
  readonly value: {
728
728
  readonly concurrency: number;
729
+ readonly github?: readonly {
730
+ readonly limit: number;
731
+ readonly limitedBy: "rate-limit" | "reserve" | null;
732
+ readonly limitedUntil: number | null;
733
+ readonly observedAt: number;
734
+ readonly remaining: number;
735
+ readonly reset: number;
736
+ readonly resource: string;
737
+ readonly used: number;
738
+ }[] | undefined;
729
739
  readonly lastCapacityRejection: {
730
740
  readonly at: number;
731
741
  readonly cause: string;
@@ -750,18 +760,16 @@ export declare function loadRemaining(registry: AtomRegistry.AtomRegistry, api:
750
760
  readonly github: {
751
761
  readonly observedAt: number;
752
762
  readonly state: "ready";
753
- readonly value: {
754
- readonly core: {
755
- readonly limit: number;
756
- readonly remaining: number;
757
- readonly reset: number;
758
- };
759
- readonly graphql: {
760
- readonly limit: number;
761
- readonly remaining: number;
762
- readonly reset: number;
763
- };
764
- };
763
+ readonly value: readonly {
764
+ readonly limit: number;
765
+ readonly limitedBy: "rate-limit" | "reserve" | null;
766
+ readonly limitedUntil: number | null;
767
+ readonly observedAt: number;
768
+ readonly remaining: number;
769
+ readonly reset: number;
770
+ readonly resource: string;
771
+ readonly used: number;
772
+ }[];
765
773
  } | {
766
774
  readonly cause: string;
767
775
  readonly observedAt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"loadRemaining.d.ts","sourceRoot":"","sources":["../../../src/client/react/loadRemaining.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAGpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,wBAAgB,aAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqBhC"}
@@ -1,8 +1,10 @@
1
1
  export interface MainLocation {
2
2
  readonly file: string;
3
+ readonly projection: string;
4
+ readonly route: string;
5
+ readonly status: number;
3
6
  readonly title?: string | undefined;
4
7
  readonly view: string;
5
8
  }
6
- export declare function displayedLocation(main: HTMLElement | null): MainLocation;
7
- export declare function sameMainLocation(previous: MainLocation, next: MainLocation): boolean;
9
+ export declare const emptyMainLocation: MainLocation;
8
10
  //# sourceMappingURL=mainLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mainLocation.d.ts","sourceRoot":"","sources":["../../../src/client/react/mainLocation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AACD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,YAAY,CAIxE;AACD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,WAE1E"}
1
+ {"version":3,"file":"mainLocation.d.ts","sourceRoot":"","sources":["../../../src/client/react/mainLocation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAqF,CAAC"}
@@ -1,9 +1,2 @@
1
- export function displayedLocation(main) {
2
- const file = main?.dataset.file ?? "";
3
- const title = main?.querySelector("h1")?.textContent?.trim();
4
- return { file, title, view: main?.dataset.view ?? "" };
5
- }
6
- export function sameMainLocation(previous, next) {
7
- return previous.file === next.file && previous.view === next.view && previous.title === next.title;
8
- }
1
+ export const emptyMainLocation = { file: "", projection: "document", route: "", status: 200, view: "" };
9
2
  //# sourceMappingURL=mainLocation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mainLocation.js","sourceRoot":"","sources":["../../../src/client/react/mainLocation.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,iBAAiB,CAAC,IAAwB;IACzD,MAAM,IAAI,GAAG,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,EAAE,aAAa,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC;IAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,EAAE,CAAC;AACxD,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,QAAsB,EAAE,IAAkB;IAC1E,OAAO,QAAQ,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC;AACpG,CAAC"}
1
+ {"version":3,"file":"mainLocation.js","sourceRoot":"","sources":["../../../src/client/react/mainLocation.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,iBAAiB,GAAiB,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BrowserClient } from "#client/client.ts";
2
+ export declare function mountBoard(container: Element, readSession: () => BrowserClient): () => void;
3
+ //# sourceMappingURL=mountBoard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mountBoard.d.ts","sourceRoot":"","sources":["../../../src/client/react/mountBoard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,wBAAgB,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,cA0C9E"}
@@ -0,0 +1,45 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { RegistryContext } from "@effect/atom-react";
3
+ import { RouterProvider } from "@tanstack/react-router";
4
+ import { createRoot } from "react-dom/client";
5
+ import { boardRouter } from "./boardRouter.js";
6
+ export function mountBoard(container, readSession) {
7
+ const root = createRoot(container);
8
+ let native = readSession();
9
+ let generation = 0;
10
+ let started = false;
11
+ function ready() {
12
+ if (started) {
13
+ return;
14
+ }
15
+ started = true;
16
+ document.documentElement.dataset.boardReady = "true";
17
+ document.documentElement.dataset.js = "true";
18
+ }
19
+ const reading = history.state?.workBoard;
20
+ let router = boardRouter({ api: native.api, client: native, reading, ready, registry: native.registry });
21
+ const navigation = router.history;
22
+ if (reading) {
23
+ history.replaceState({ ...history.state, workBoard: reading }, "");
24
+ }
25
+ function render() {
26
+ root.render(_jsx(RegistryContext.Provider, { value: native.registry, children: _jsx(RouterProvider, { router: router }) }, generation));
27
+ }
28
+ render();
29
+ function restore(event) {
30
+ if (!event.persisted) {
31
+ return;
32
+ }
33
+ native = readSession();
34
+ generation += 1;
35
+ router = boardRouter({ api: native.api, client: native, reading, ready, registry: native.registry }, navigation);
36
+ render();
37
+ }
38
+ window.addEventListener("pageshow", restore);
39
+ return () => {
40
+ window.removeEventListener("pageshow", restore);
41
+ root.unmount();
42
+ navigation.destroy();
43
+ };
44
+ }
45
+ //# sourceMappingURL=mountBoard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mountBoard.js","sourceRoot":"","sources":["../../../src/client/react/mountBoard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,UAAU,UAAU,CAAC,SAAkB,EAAE,WAAgC;IAC9E,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;IACnC,IAAI,MAAM,GAAG,WAAW,EAAE,CAAC;IAC3B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,SAAS,KAAK;QACb,IAAI,OAAO,EAAE,CAAC;YACb,OAAO;QACR,CAAC;QACD,OAAO,GAAG,IAAI,CAAC;QACf,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC;QACrD,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC;IAC9C,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC;IACzC,IAAI,MAAM,GAAG,WAAW,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IACzG,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC;IAClC,IAAI,OAAO,EAAE,CAAC;QACb,OAAO,CAAC,YAAY,CAAC,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,SAAS,MAAM;QACd,IAAI,CAAC,MAAM,CACV,KAAC,eAAe,CAAC,QAAQ,IAAkB,KAAK,EAAE,MAAM,CAAC,QAAQ,YAChE,KAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI,IADJ,UAAU,CAEd,CAC3B,CAAC;IACH,CAAC;IACD,MAAM,EAAE,CAAC;IACT,SAAS,OAAO,CAAC,KAA0B;QAC1C,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACtB,OAAO;QACR,CAAC;QACD,MAAM,GAAG,WAAW,EAAE,CAAC;QACvB,UAAU,IAAI,CAAC,CAAC;QAChB,MAAM,GAAG,WAAW,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,EAAE,UAAU,CAAC,CAAC;QACjH,MAAM,EAAE,CAAC;IACV,CAAC;IACD,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7C,OAAO,GAAG,EAAE;QACX,MAAM,CAAC,mBAAmB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,UAAU,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { readingEntry } from "#client/react/storedReadings.ts";
2
- export declare function navigationFailure(status: string | undefined): "" | "Could not open this document. Retry the link or reload the page." | "This document is missing or was renamed.";
2
+ export declare function navigationFailure(status: number): "" | "Could not open this document. Retry the link or reload the page." | "This document is missing or was renamed.";
3
3
  export declare function currentEntry(state: object, displayed: string, initial: ReturnType<typeof readingEntry>): {
4
4
  readonly id: string;
5
5
  readonly reading?: {
@@ -1 +1 @@
1
- {"version":3,"file":"navigationLocation.d.ts","sourceRoot":"","sources":["../../../src/client/react/navigationLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,wHAM3D;AACD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC;;;;;;;;;;;;;;;;;cAGtG;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,UAK/G;AAED,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAChF,IAAI,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,WAG5E"}
1
+ {"version":3,"file":"navigationLocation.d.ts","sourceRoot":"","sources":["../../../src/client/react/navigationLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,wHAM/C;AACD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC;;;;;;;;;;;;;;;;;cAGtG;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,UAK/G;AAED,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAChF,IAAI,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,WAG5E"}
@@ -1,6 +1,6 @@
1
1
  import { readingEntry } from "#client/react/storedReadings.ts";
2
2
  export function navigationFailure(status) {
3
- const code = Number(status ?? 200);
3
+ const code = status;
4
4
  if (code < 400) {
5
5
  return "";
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"navigationLocation.js","sourceRoot":"","sources":["../../../src/client/react/navigationLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,UAAU,iBAAiB,CAAC,MAA0B;IAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;IACnC,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACX,CAAC;IACD,OAAO,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,0CAA0C,C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AAiB,EAAE,OAAwC;IACtG,MAAM,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;IAC9D,OAAO,OAAO,IAAI,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAW,EAAE,KAA0C,EAAE,OAA4B;IAC/G,IAAI,KAAK,EAAE,CAAC;QACX,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5B,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,mBAAmB,CAClC,QAAgF,EAChF,IAA4E;IAE5E,OAAO,QAAQ,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,IAAI,QAAQ,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC;AAChG,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
2
+ import type { MainLocation } from "./mainLocation.ts";
2
3
  import type { ShellApi } from "./ShellApi.ts";
3
- export declare function retryPage(api: ShellApi, registry: AtomRegistry.AtomRegistry, url: string): boolean;
4
+ export declare function retryPage(api: ShellApi, registry: AtomRegistry.AtomRegistry, page: MainLocation): boolean;
4
5
  //# sourceMappingURL=retryPage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retryPage.d.ts","sourceRoot":"","sources":["../../../src/client/react/retryPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,YAAY,MAAM,gCAAgC,CAAC;AAEpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,YAAY,EAAE,GAAG,EAAE,MAAM,WAUxF"}
1
+ {"version":3,"file":"retryPage.d.ts","sourceRoot":"","sources":["../../../src/client/react/retryPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,YAAY,MAAM,gCAAgC,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,YAAY,WAS/F"}
@@ -1,8 +1,7 @@
1
1
  import { pageQueries } from "./pageQueries.js";
2
- export function retryPage(api, registry, url) {
3
- const doc = document.getElementById("doc");
4
- const queries = pageQueries(api, doc?.dataset.projection ?? "document", url);
5
- if (Number(doc?.dataset.status ?? 200) < 400 && !queries.some((query) => registry.get(query)._tag === "Failure")) {
2
+ export function retryPage(api, registry, page) {
3
+ const queries = pageQueries(api, page.projection, page.route);
4
+ if (page.status < 400 && !queries.some((query) => registry.get(query)._tag === "Failure")) {
6
5
  return false;
7
6
  }
8
7
  for (const query of queries) {
@@ -1 +1 @@
1
- {"version":3,"file":"retryPage.js","sourceRoot":"","sources":["../../../src/client/react/retryPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,MAAM,UAAU,SAAS,CAAC,GAAa,EAAE,QAAmC,EAAE,GAAW;IACxF,MAAM,GAAG,GAAG,QAAQ,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC3C,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,UAAU,IAAI,UAAU,EAAE,GAAG,CAAC,CAAC;IAC7E,IAAI,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,CAAC;QAClH,OAAO,KAAK,CAAC;IACd,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC7B,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
1
+ {"version":3,"file":"retryPage.js","sourceRoot":"","sources":["../../../src/client/react/retryPage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,MAAM,UAAU,SAAS,CAAC,GAAa,EAAE,QAAmC,EAAE,IAAkB;IAC/F,MAAM,OAAO,GAAG,WAAW,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,CAAC;QAC3F,OAAO,KAAK,CAAC;IACd,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC7B,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,IAAI,CAAC;AACb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBoardNavigation.d.ts","sourceRoot":"","sources":["../../../src/client/react/useBoardNavigation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAQlE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,UAgHpD"}
1
+ {"version":3,"file":"useBoardNavigation.d.ts","sourceRoot":"","sources":["../../../src/client/react/useBoardNavigation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AASlE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,UA2HpD"}