@ciridae/ui 2.78.0-nightly.20261109055402.g8ffafb6 → 2.78.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.
@@ -5,11 +5,11 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
5
5
  import { useMemo, useState } from "react";
6
6
  import { FeedbackSheet, formatFeedbackDescription, } from "../components/feedback-sheet.js";
7
7
  import { useCiridaeLocale } from "../components/locale.js";
8
+ import { errorTraceId, reportedInlineMeta } from "../components/request-failure.js";
8
9
  import { useToast } from "../components/toast.js";
9
10
  import { createFeedbackClient } from "../feedback/client.js";
10
11
  import { feedbackMaxLengths } from "../feedback/contract.js";
11
12
  import { CopyableErrorId } from "./copyable-error-id.js";
12
- import { errorTraceId, reportedInlineMeta } from "./request-errors.js";
13
13
  /** Sends feedback about the app and follows up on earlier submissions. */
14
14
  export function FeedbackDialog({ scope, open, onOpenChange, }) {
15
15
  const { auth, session } = useCiridaeAuth();
@@ -6,13 +6,24 @@ import { Button } from "../components/button.js";
6
6
  import { FieldError } from "../components/form-layout.js";
7
7
  import { Stack } from "../components/layout.js";
8
8
  import { englishLabels, useCiridaeLocale } from "../components/locale.js";
9
- import { errorMessage, errorStatus, errorTraceId, isReportedInline, RequestError, } from "../components/request-failure.js";
9
+ import { errorMessage, errorStatus, errorTraceId, isReportedInline, } from "../components/request-failure.js";
10
10
  import { StatusBanner } from "../components/status-banner.js";
11
11
  import { addToast } from "../components/toast.js";
12
12
  import { readTraceIdFromResponse } from "../feedback/read-trace-id-from-response.js";
13
13
  import { CopyableErrorId } from "./copyable-error-id.js";
14
14
  import { setLastFailedRequestTraceIdInSentry } from "./sentry.js";
15
15
  export { errorMessage, errorStatus, errorTraceId, reportedInline, reportedInlineMeta, } from "../components/request-failure.js";
16
+ /**
17
+ * A generated client's failure as `normalizeResponseErrorAndRecordTraceIdInSentry` returns it:
18
+ * `errorStatus` and `errorTraceId` read its `status` and `traceId`.
19
+ */
20
+ class RequestError extends Error {
21
+ constructor(message, status, traceId) {
22
+ super(message);
23
+ this.status = status;
24
+ this.traceId = traceId;
25
+ }
26
+ }
16
27
  function messageFromResponse(error) {
17
28
  if (error instanceof Error)
18
29
  return error.message;
@@ -0,0 +1,2 @@
1
+ declare const stylesheet: string;
2
+ export default stylesheet;
@@ -209,9 +209,9 @@ export const englishLabels = {
209
209
  includeScreenshot: "Include a screenshot",
210
210
  attachments: "Attachments",
211
211
  /** A feedback type's word, in the form's Type choices and on what the person filed. */
212
- typeBug: "Bug",
213
- typeFeature: "Feature",
214
- typeGeneral: "General",
212
+ typeBug: "Something is wrong",
213
+ typeFeature: "An idea",
214
+ typeGeneral: "A question",
215
215
  statusReceived: "Received",
216
216
  statusInProgress: "In progress",
217
217
  statusNeedsReply: "Needs reply",
@@ -1,9 +1,3 @@
1
- /** A generated client's failure as `normalizeResponseErrorAndRecordTraceIdInSentry` returns it. */
2
- export declare class RequestError extends Error {
3
- readonly status: number | null;
4
- readonly traceId: string | null;
5
- constructor(message: string, status: number | null, traceId: string | null);
6
- }
7
1
  /** The failed request's HTTP status, when it got a response. */
8
2
  export declare function errorStatus(error: unknown): number | null;
9
3
  /** The failed request's trace ID, which support looks the request up by. */
@@ -3,26 +3,14 @@
3
3
  * whether something on screen reports it. The app integrations in `app/request-errors.tsx` build
4
4
  * on these and re-export them; nothing here loads an app peer.
5
5
  */
6
- /** A generated client's failure as `normalizeResponseErrorAndRecordTraceIdInSentry` returns it. */
7
- export class RequestError extends Error {
8
- constructor(message, status, traceId) {
9
- super(message);
10
- this.status = status;
11
- this.traceId = traceId;
12
- }
13
- }
14
6
  /** The failed request's HTTP status, when it got a response. */
15
7
  export function errorStatus(error) {
16
- if (error instanceof RequestError)
17
- return error.status;
18
8
  return error instanceof Error && "status" in error && typeof error.status === "number"
19
9
  ? error.status
20
10
  : null;
21
11
  }
22
12
  /** The failed request's trace ID, which support looks the request up by. */
23
13
  export function errorTraceId(error) {
24
- if (error instanceof RequestError)
25
- return error.traceId;
26
14
  return error instanceof Error && "traceId" in error && typeof error.traceId === "string"
27
15
  ? error.traceId
28
16
  : null;
@@ -29,7 +29,6 @@ export declare function useVirtualizedTimelineRows({ rootRef, listRef, entryIds,
29
29
  /** Marks the entry the timeline was brought to, once it is drawn, such as with a pop and focus. */
30
30
  showEntry: (entryId: string) => void;
31
31
  }): {
32
- scroller: HTMLElement | null | undefined;
33
32
  /**
34
33
  * Whether the timeline draws only the rows near the view: not when it has no scrolling area to
35
34
  * draw them in, and not on a server, which has no document to measure and draws every entry as
@@ -267,7 +267,6 @@ export function useVirtualizedTimelineRows({ rootRef, listRef, entryIds, newestR
267
267
  virtualizer.scrollToEnd();
268
268
  });
269
269
  return {
270
- scroller,
271
270
  /**
272
271
  * Whether the timeline draws only the rows near the view: not when it has no scrolling area to
273
272
  * draw them in, and not on a server, which has no document to measure and draws every entry as
@@ -157,5 +157,5 @@ declare const feedbackAttachmentLimits: {
157
157
  };
158
158
  type FeedbackErrorCode = FeedbackErrorDetail["code"];
159
159
  type FeedbackStatus = FeedbackSummary["status"];
160
- type FeedbackType = FeedbackSummary["type"];
160
+ type FeedbackType = FeedbackCreateRequest["type"];
161
161
  export { feedbackAttachmentLimits, feedbackErrorResponseSchema, feedbackItemSchema, feedbackListResponseSchema, feedbackMessageSchema, feedbackMaxLengths, feedbackStatusSchema, feedbackTypes, type FeedbackCreateRequest, type FeedbackErrorCode, type FeedbackItem, type FeedbackMessage, type FeedbackStatus, type FeedbackStatusEvent, type FeedbackSummary, type FeedbackType, type FeedbackUpdateRequest, };
@@ -0,0 +1,2 @@
1
+ declare const stylesheet: string;
2
+ export default stylesheet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ciridae/ui",
3
- "version": "2.78.0-nightly.20261109055402.g8ffafb6",
3
+ "version": "2.78.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",