@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.
- package/CHANGELOG.md +20 -0
- package/README.md +1 -1
- package/assets/agent.js +1 -1
- package/assets/native.js +25 -25
- package/assets/react.js +38 -37
- package/dist/browser/diagnostics/schema.d.ts +15 -12
- package/dist/browser/diagnostics/schema.d.ts.map +1 -1
- package/dist/browser/diagnostics/schema.js +12 -2
- package/dist/browser/diagnostics/schema.js.map +1 -1
- package/dist/browser/views/remaining.d.ts +20 -12
- package/dist/browser/views/remaining.d.ts.map +1 -1
- package/dist/client/client.d.ts +1 -0
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +1 -1
- package/dist/client/client.js.map +1 -1
- package/dist/client/formStatus.d.ts +12 -0
- package/dist/client/formStatus.d.ts.map +1 -0
- package/dist/client/formStatus.js +27 -0
- package/dist/client/formStatus.js.map +1 -0
- package/dist/client/react/BoardShell.d.ts.map +1 -1
- package/dist/client/react/BoardShell.js +15 -21
- package/dist/client/react/BoardShell.js.map +1 -1
- package/dist/client/react/DocumentContext.d.ts.map +1 -1
- package/dist/client/react/DocumentContext.js +6 -3
- package/dist/client/react/DocumentContext.js.map +1 -1
- package/dist/client/react/FormContext.d.ts +5 -0
- package/dist/client/react/FormContext.d.ts.map +1 -0
- package/dist/client/react/FormContext.js +10 -0
- package/dist/client/react/FormContext.js.map +1 -0
- package/dist/client/react/LiveControls.d.ts +4 -3
- package/dist/client/react/LiveControls.d.ts.map +1 -1
- package/dist/client/react/LiveControls.js +5 -19
- package/dist/client/react/LiveControls.js.map +1 -1
- package/dist/client/react/MainLocationContext.d.ts +3 -0
- package/dist/client/react/MainLocationContext.d.ts.map +1 -0
- package/dist/client/react/MainLocationContext.js +7 -0
- package/dist/client/react/MainLocationContext.js.map +1 -0
- package/dist/client/react/ProjectionFrame.d.ts +1 -2
- package/dist/client/react/ProjectionFrame.d.ts.map +1 -1
- package/dist/client/react/ProjectionFrame.js +10 -4
- package/dist/client/react/ProjectionFrame.js.map +1 -1
- package/dist/client/react/ReadingLibrary.d.ts.map +1 -1
- package/dist/client/react/ReadingLibrary.js +7 -8
- package/dist/client/react/ReadingLibrary.js.map +1 -1
- package/dist/client/react/SystemPage.d.ts.map +1 -1
- package/dist/client/react/SystemPage.js +2 -1
- package/dist/client/react/SystemPage.js.map +1 -1
- package/dist/client/react/TodayOptions.d.ts.map +1 -1
- package/dist/client/react/TodayOptions.js +23 -14
- package/dist/client/react/TodayOptions.js.map +1 -1
- package/dist/client/react/VisualViewer.d.ts.map +1 -1
- package/dist/client/react/VisualViewer.js +6 -5
- package/dist/client/react/VisualViewer.js.map +1 -1
- package/dist/client/react/boardRouter.d.ts +3 -2
- package/dist/client/react/boardRouter.d.ts.map +1 -1
- package/dist/client/react/boardRouter.js +2 -1
- package/dist/client/react/boardRouter.js.map +1 -1
- package/dist/client/react/createResponse.d.ts +32 -4
- package/dist/client/react/createResponse.d.ts.map +1 -1
- package/dist/client/react/createResponse.js +7 -28
- package/dist/client/react/createResponse.js.map +1 -1
- package/dist/client/react/diagnosticsValues.d.ts.map +1 -1
- package/dist/client/react/diagnosticsValues.js +5 -7
- package/dist/client/react/diagnosticsValues.js.map +1 -1
- package/dist/client/react/entry.d.ts.map +1 -1
- package/dist/client/react/entry.js +2 -34
- package/dist/client/react/entry.js.map +1 -1
- package/dist/client/react/githubLimited.d.ts +3 -0
- package/dist/client/react/githubLimited.d.ts.map +1 -0
- package/dist/client/react/githubLimited.js +4 -0
- package/dist/client/react/githubLimited.js.map +1 -0
- package/dist/client/react/loadProjection.d.ts +135 -135
- package/dist/client/react/loadRemaining.d.ts +37 -29
- package/dist/client/react/loadRemaining.d.ts.map +1 -1
- package/dist/client/react/mainLocation.d.ts +4 -2
- package/dist/client/react/mainLocation.d.ts.map +1 -1
- package/dist/client/react/mainLocation.js +1 -8
- package/dist/client/react/mainLocation.js.map +1 -1
- package/dist/client/react/mountBoard.d.ts +3 -0
- package/dist/client/react/mountBoard.d.ts.map +1 -0
- package/dist/client/react/mountBoard.js +45 -0
- package/dist/client/react/mountBoard.js.map +1 -0
- package/dist/client/react/navigationLocation.d.ts +1 -1
- package/dist/client/react/navigationLocation.d.ts.map +1 -1
- package/dist/client/react/navigationLocation.js +1 -1
- package/dist/client/react/navigationLocation.js.map +1 -1
- package/dist/client/react/retryPage.d.ts +2 -1
- package/dist/client/react/retryPage.d.ts.map +1 -1
- package/dist/client/react/retryPage.js +3 -4
- package/dist/client/react/retryPage.js.map +1 -1
- package/dist/client/react/useBoardNavigation.d.ts.map +1 -1
- package/dist/client/react/useBoardNavigation.js +18 -8
- package/dist/client/react/useBoardNavigation.js.map +1 -1
- package/dist/client/react/useDocumentPage.d.ts +1 -1
- package/dist/client/react/useDocumentPage.d.ts.map +1 -1
- package/dist/client/react/useDocumentPage.js +9 -6
- package/dist/client/react/useDocumentPage.js.map +1 -1
- package/dist/client/react/useHandoffForm.d.ts +56 -30
- package/dist/client/react/useHandoffForm.d.ts.map +1 -1
- package/dist/client/react/useHandoffForm.js +19 -30
- package/dist/client/react/useHandoffForm.js.map +1 -1
- package/dist/client/react/useResponseForm.d.ts +72 -43
- package/dist/client/react/useResponseForm.d.ts.map +1 -1
- package/dist/client/react/useResponseForm.js +20 -17
- package/dist/client/react/useResponseForm.js.map +1 -1
- package/dist/client/react/visualSources.d.ts.map +1 -1
- package/dist/client/react/visualSources.js +10 -8
- package/dist/client/react/visualSources.js.map +1 -1
- package/dist/client/saveFailure.d.ts +8 -0
- package/dist/client/saveFailure.d.ts.map +1 -0
- package/dist/client/saveFailure.js +8 -0
- package/dist/client/saveFailure.js.map +1 -0
- package/dist/diagnostics/daemonContract.d.ts +65 -38
- package/dist/diagnostics/daemonContract.d.ts.map +1 -1
- package/dist/diagnostics/daemonContract.js +2 -1
- package/dist/diagnostics/daemonContract.js.map +1 -1
- package/dist/diagnostics/health.d.ts +10 -0
- package/dist/diagnostics/health.d.ts.map +1 -1
- package/dist/diagnostics/health.js +2 -0
- package/dist/diagnostics/health.js.map +1 -1
- package/dist/diagnostics/source.d.ts +55 -36
- package/dist/diagnostics/source.d.ts.map +1 -1
- package/dist/diagnostics/source.js +1 -2
- package/dist/diagnostics/source.js.map +1 -1
- package/dist/rpc/contract.d.ts +60 -36
- package/dist/rpc/contract.d.ts.map +1 -1
- package/dist/server/diagnostics/daemon.d.ts +41 -25
- package/dist/server/diagnostics/daemon.d.ts.map +1 -1
- package/dist/server/diagnostics/fleetHealth.d.ts +10 -0
- package/dist/server/diagnostics/fleetHealth.d.ts.map +1 -1
- package/dist/server/diagnostics/githubLimits.d.ts +12 -13
- package/dist/server/diagnostics/githubLimits.d.ts.map +1 -1
- package/dist/server/diagnostics/githubLimits.js +6 -6
- package/dist/server/diagnostics/githubLimits.js.map +1 -1
- package/dist/server/integration/diagnostics.d.ts +74 -38
- package/dist/server/integration/diagnostics.d.ts.map +1 -1
- package/dist/server/mcp/client.d.ts +20 -12
- package/dist/server/mcp/client.d.ts.map +1 -1
- package/dist/server/mcp/queries.d.ts +60 -36
- package/dist/server/mcp/queries.d.ts.map +1 -1
- package/dist/server/metadata/fields.js +1 -1
- package/dist/server/metadata/fields.js.map +1 -1
- package/dist/server/packageInfo.d.ts +1 -1
- package/dist/server/packageInfo.js +1 -1
- package/dist/server/views/remainingQueries.d.ts +20 -12
- package/dist/server/views/remainingQueries.d.ts.map +1 -1
- package/package.json +7 -6
- package/src/browser/diagnostics/schema.ts +12 -2
- package/src/client/client.ts +2 -1
- package/src/client/formStatus.ts +35 -0
- package/src/client/react/BoardShell.tsx +19 -26
- package/src/client/react/DocumentContext.tsx +6 -3
- package/src/client/react/FormContext.ts +13 -0
- package/src/client/react/LiveControls.tsx +5 -25
- package/src/client/react/MainLocationContext.ts +8 -0
- package/src/client/react/ProjectionFrame.tsx +13 -5
- package/src/client/react/ReadingLibrary.tsx +7 -8
- package/src/client/react/SystemPage.tsx +2 -1
- package/src/client/react/TodayOptions.tsx +40 -33
- package/src/client/react/VisualViewer.tsx +6 -6
- package/src/client/react/boardRouter.ts +3 -2
- package/src/client/react/createResponse.ts +10 -35
- package/src/client/react/diagnosticsValues.tsx +20 -12
- package/src/client/react/entry.tsx +2 -37
- package/src/client/react/githubLimited.ts +5 -0
- package/src/client/react/mainLocation.ts +5 -8
- package/src/client/react/mountBoard.tsx +49 -0
- package/src/client/react/navigationLocation.ts +2 -2
- package/src/client/react/retryPage.ts +4 -4
- package/src/client/react/useBoardNavigation.ts +20 -8
- package/src/client/react/useDocumentPage.ts +12 -6
- package/src/client/react/useHandoffForm.ts +25 -33
- package/src/client/react/useResponseForm.ts +20 -18
- package/src/client/react/visualSources.ts +10 -8
- package/src/client/saveFailure.ts +14 -0
- package/src/diagnostics/daemonContract.ts +2 -1
- package/src/diagnostics/health.ts +2 -0
- package/src/diagnostics/source.ts +1 -2
- package/src/server/diagnostics/githubLimits.ts +9 -11
- package/src/server/metadata/fields.ts +1 -1
- package/src/server/packageInfo.ts +1 -1
- package/dist/client/handoffs/failureStatus.d.ts +0 -2
- package/dist/client/handoffs/failureStatus.d.ts.map +0 -1
- package/dist/client/handoffs/failureStatus.js +0 -7
- package/dist/client/handoffs/failureStatus.js.map +0 -1
- package/dist/client/responses/failure.d.ts +0 -5
- package/dist/client/responses/failure.d.ts.map +0 -1
- package/dist/client/responses/failure.js +0 -13
- package/dist/client/responses/failure.js.map +0 -1
- package/dist/server/diagnostics/readCommand.d.ts +0 -4
- package/dist/server/diagnostics/readCommand.d.ts.map +0 -1
- package/dist/server/diagnostics/readCommand.js +0 -20
- package/dist/server/diagnostics/readCommand.js.map +0 -1
- package/src/client/handoffs/failureStatus.ts +0 -6
- package/src/client/responses/failure.ts +0 -13
- 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":"
|
|
1
|
+
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../src/client/react/entry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,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 @@
|
|
|
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 @@
|
|
|
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
|
|
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
|
|
8
|
-
readonly
|
|
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
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
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
|
|
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
|
|
278
|
-
readonly
|
|
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
|
|
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
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
readonly
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
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,aAAa,CAC5B,QAAQ,EAAE,YAAY,CAAC,YAAY,EACnC,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,eAAe
|
|
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,aAAa,CAC5B,QAAQ,EAAE,YAAY,CAAC,YAAY,EACnC,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,cAAc,EACrB,GAAG,EAAE,MAAM,EACX,eAAe,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
|
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,
|
|
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
|
|
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":"
|
|
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 @@
|
|
|
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:
|
|
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,
|
|
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 +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,
|
|
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,MAAc;IAC/C,MAAM,IAAI,GAAG,MAAM,CAAC;IACpB,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;QAChB,OAAO,EAAE,CAAC;IACX,CAAC;IACD,OAAO,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,0CAA0C,CAAC,CAAC,CAAC,kEAAkE,CAAC;AACvI,CAAC;AACD,MAAM,UAAU,YAAY,CAAC,KAAa,EAAE,SAAiB,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,
|
|
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;
|
|
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,
|
|
3
|
-
const
|
|
4
|
-
|
|
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":"
|
|
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;
|
|
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"}
|