@cedarjs/web 2.4.1 → 2.4.2-next.143

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.
@@ -1 +1 @@
1
- {"version":3,"file":"typeOverride.d.ts","sourceRoot":"","sources":["../../src/apollo/typeOverride.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,wBAAwB,EACzB,MAAM,gBAAgB,CAAA;AAGvB,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,oBAAoB,CAC5B,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,CAC1D,SAAQ,WAAW,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAG3C,UAAU,uBAAuB,CAAC,KAAK,EAAE,UAAU,CACjD,SAAQ,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAG7C,UAAU,2BAA2B,CACnC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,CAC1D,SAAQ,kBAAkB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGlD,UAAU,uBAAuB,CAC/B,KAAK,EACL,UAAU,SAAS,kBAAkB,CACrC,SAAQ,gBAAgB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGhD,UAAU,0BAA0B,CAAC,KAAK,EAAE,UAAU,CACpD,SAAQ,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGnD,UAAU,8BAA8B,CACtC,KAAK,EACL,UAAU,SAAS,kBAAkB,CACrC,SAAQ,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGvD,UAAU,4BAA4B,CACpC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,CAC1D,SAAQ,s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tC,KAAK,EACL,UAAU,SAAS,kBAAkB,CACrC,SAAQ,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGvD,UAAU,4BAA4B,CACpC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,kBAAkB,CAC1D,SAAQ,sBAAsB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;IAGtD,UAAU,+BAA+B,CACvC,KAAK,EACL,UAAU,SAAS,kBAAkB,CACrC,SAAQ,wBAAwB,CAAC,KAAK,EAAE,UAAU,CAAC;KAAG;CACzD;AAED,OAAO,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"DevFatalErrorPage.d.ts","sourceRoot":"","sources":["../../../src/components/DevFatalErrorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmB3C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACf,CAAA;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC7C,sBAAsB,EAAE,cAAc,CAAA;CACvC;AAGD,KAAK,oBAAoB,GAAG,KAAK,GAAG;IAClC,iBAAiB,CAAC,EAAE,cAAc,CAAA;IAClC,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAClC,kBAAkB,CAAC,EAAE,GAAG,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,OAAO;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,sBAsDxE,CAAA"}
1
+ {"version":3,"file":"DevFatalErrorPage.d.ts","sourceRoot":"","sources":["../../../src/components/DevFatalErrorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmB3C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACf,CAAA;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC7C,sBAAsB,EAAE,cAAc,CAAA;CACvC;AAGD,KAAK,oBAAoB,GAAG,KAAK,GAAG;IAClC,iBAAiB,CAAC,EAAE,cAAc,CAAA;IAClC,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAClC,kBAAkB,CAAC,EAAE,GAAG,CAAA;CACzB,CAAA;AAiGD,eAAO,MAAM,iBAAiB,GAAI,OAAO;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,sBA4FxE,CAAA"}
@@ -43,7 +43,84 @@ if (/^[A-Z]:\\/.test(srcRoot)) {
43
43
  } else {
44
44
  appRoot = srcRoot.substring(1);
45
45
  }
46
+ function formatErrorForClipboard(err, stack, typeName, msg, errorWithMeta) {
47
+ const lines = [];
48
+ lines.push("=".repeat(80));
49
+ lines.push("FATAL ERROR REPORT");
50
+ lines.push("=".repeat(80));
51
+ lines.push("");
52
+ lines.push(`ERROR TYPE: ${typeName}`);
53
+ lines.push(`ERROR MESSAGE: ${msg}`);
54
+ lines.push("");
55
+ const mostRecentRequest = errorWithMeta.mostRecentRequest || errorWithMeta.graphQLErrors?.find((gqlErr) => gqlErr.__RedwoodEnhancedError)?.__RedwoodEnhancedError;
56
+ if (mostRecentRequest) {
57
+ lines.push("-".repeat(80));
58
+ lines.push("REQUEST CONTEXT");
59
+ lines.push("-".repeat(80));
60
+ lines.push(`Operation: ${mostRecentRequest.operationName}`);
61
+ lines.push(`Kind: ${mostRecentRequest.operationKind}`);
62
+ lines.push("");
63
+ lines.push("Variables:");
64
+ try {
65
+ lines.push(JSON.stringify(mostRecentRequest.variables, null, 2));
66
+ } catch {
67
+ lines.push("Unable to stringify variables");
68
+ }
69
+ lines.push("");
70
+ lines.push("Query:");
71
+ lines.push(mostRecentRequest.query);
72
+ lines.push("");
73
+ }
74
+ if (errorWithMeta.mostRecentResponse) {
75
+ lines.push("-".repeat(80));
76
+ lines.push("RESPONSE CONTEXT");
77
+ lines.push("-".repeat(80));
78
+ try {
79
+ lines.push(JSON.stringify(errorWithMeta.mostRecentResponse, null, 2));
80
+ } catch {
81
+ lines.push("Unable to stringify response");
82
+ }
83
+ lines.push("");
84
+ }
85
+ lines.push("-".repeat(80));
86
+ lines.push("STACK TRACE");
87
+ lines.push("-".repeat(80));
88
+ stack.items.forEach((entry, i) => {
89
+ const fileShort = entry.fileShort || "[Unknown]";
90
+ const callee = entry.callee || "[Anonymous]";
91
+ const line = entry.line || "?";
92
+ const column = entry.column || "?";
93
+ lines.push(`[${i}] ${fileShort}:${line}:${column} in ${callee}`);
94
+ const sourceFile = entry.sourceFile;
95
+ if (sourceFile?.lines && sourceFile.lines.length > 0) {
96
+ const lineIndex = (entry.line || 1) - 1;
97
+ const window = 2;
98
+ const start = Math.max(0, lineIndex - window);
99
+ const end = Math.min(sourceFile.lines.length, lineIndex + window + 1);
100
+ lines.push(" Source context:");
101
+ for (let idx = start; idx < end; idx++) {
102
+ const marker = idx === lineIndex ? "> " : " ";
103
+ lines.push(
104
+ ` ${marker}${(idx + 1).toString().padStart(4)} | ${sourceFile.lines[idx]}`
105
+ );
106
+ }
107
+ lines.push("");
108
+ }
109
+ });
110
+ lines.push("");
111
+ lines.push("=".repeat(80));
112
+ return lines.join("\n");
113
+ }
46
114
  const DevFatalErrorPage = (props) => {
115
+ const [copyFeedback, setCopyFeedback] = (0, import_react.useState)("");
116
+ const timeoutRef = (0, import_react.useRef)(null);
117
+ (0, import_react.useEffect)(() => {
118
+ return () => {
119
+ if (timeoutRef.current) {
120
+ clearTimeout(timeoutRef.current);
121
+ }
122
+ };
123
+ }, []);
47
124
  if (!props.error) {
48
125
  return /* @__PURE__ */ import_react.default.createElement("h3", null, "Could not render the error page due to a missing error, please see the console for more details.");
49
126
  }
@@ -54,6 +131,18 @@ const DevFatalErrorPage = (props) => {
54
131
  );
55
132
  const msg = String(err && err.message);
56
133
  const FileRef = stack.items[0] ? /* @__PURE__ */ import_react.default.createElement("a", { href: toVSCodeURL(stack.items[0]) }, stack.items[0].fileName) : null;
134
+ const handleCopyAll = async () => {
135
+ const errorText = formatErrorForClipboard(err, stack, typeName, msg, err);
136
+ try {
137
+ await navigator.clipboard.writeText(errorText);
138
+ setCopyFeedback("\u2713 Copied to clipboard");
139
+ timeoutRef.current = setTimeout(() => setCopyFeedback(""), 3e3);
140
+ } catch (clipboardError) {
141
+ setCopyFeedback("Failed to copy");
142
+ timeoutRef.current = setTimeout(() => setCopyFeedback(""), 3e3);
143
+ console.error("Failed to copy error to clipboard:", clipboardError);
144
+ }
145
+ };
57
146
  return /* @__PURE__ */ import_react.default.createElement("main", { className: "error-page" }, /* @__PURE__ */ import_react.default.createElement(
58
147
  "style",
59
148
  {
@@ -61,7 +150,15 @@ const DevFatalErrorPage = (props) => {
61
150
  __html: css
62
151
  }
63
152
  }
64
- ), /* @__PURE__ */ import_react.default.createElement("nav", null, /* @__PURE__ */ import_react.default.createElement("h1", null, "A fatal runtime error occurred when rendering ", FileRef), /* @__PURE__ */ import_react.default.createElement("div", null, "Get help via ", /* @__PURE__ */ import_react.default.createElement(Discord, null), " or ", /* @__PURE__ */ import_react.default.createElement(Discourse, null))), /* @__PURE__ */ import_react.default.createElement("section", { className: "panic-overlay" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "error" }, /* @__PURE__ */ import_react.default.createElement("h3", { className: "error-title" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "error-type" }, typeName), /* @__PURE__ */ import_react.default.createElement("span", { className: "error-message" }, prettyMessage(msg))), /* @__PURE__ */ import_react.default.createElement("div", { className: "error-stack" }, stack.items.map((entry, i) => /* @__PURE__ */ import_react.default.createElement(StackEntry, { key: i, entry, i, message: msg })))), /* @__PURE__ */ import_react.default.createElement(ResponseRequest, { error: props.error })));
153
+ ), /* @__PURE__ */ import_react.default.createElement("nav", null, /* @__PURE__ */ import_react.default.createElement("h1", null, "A fatal runtime error occurred when rendering ", FileRef), /* @__PURE__ */ import_react.default.createElement("div", null, /* @__PURE__ */ import_react.default.createElement(
154
+ "button",
155
+ {
156
+ onClick: handleCopyAll,
157
+ className: "copy-button",
158
+ title: "Copy all error context to clipboard"
159
+ },
160
+ "\u{1F4CB} Copy All"
161
+ ), copyFeedback && /* @__PURE__ */ import_react.default.createElement("span", { className: "copy-feedback" }, copyFeedback), "Get help via ", /* @__PURE__ */ import_react.default.createElement(Discord, null))), /* @__PURE__ */ import_react.default.createElement("section", { className: "panic-overlay" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "error" }, /* @__PURE__ */ import_react.default.createElement("h3", { className: "error-title" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "error-type" }, typeName), /* @__PURE__ */ import_react.default.createElement("span", { className: "error-message" }, prettyMessage(msg)))), /* @__PURE__ */ import_react.default.createElement(ResponseRequest, { error: props.error }), /* @__PURE__ */ import_react.default.createElement("div", { className: "error" }, /* @__PURE__ */ import_react.default.createElement("h3", { className: "section-title" }, "Stack Trace"), /* @__PURE__ */ import_react.default.createElement("div", { className: "error-stack" }, stack.items.map((entry, i) => /* @__PURE__ */ import_react.default.createElement(StackEntry, { key: i, entry, i, message: msg }))))));
65
162
  };
66
163
  function hideStackLine(fileReference) {
67
164
  return fileReference.length === 1 || fileReference.includes("node_modules/react-dom");
@@ -118,7 +215,7 @@ function StackEntry({
118
215
  }
119
216
  }
120
217
  function toVSCodeURL(entry) {
121
- const scheme = RWJS_DEBUG_ENV.REDWOOD_ENV_EDITOR || "vscode";
218
+ const scheme = typeof RWJS_DEBUG_ENV !== "undefined" && RWJS_DEBUG_ENV.REDWOOD_ENV_EDITOR || "vscode";
122
219
  return `${scheme}://file/${entry.fileShort}:${entry.line}:${entry.column}`;
123
220
  }
124
221
  function prettyMessage(msg) {
@@ -197,6 +294,29 @@ main.error-page nav div a {
197
294
  margin: 0 0.3em;
198
295
  }
199
296
 
297
+ main.error-page nav .copy-button {
298
+ background-color: rgb(191, 71, 34);
299
+ color: white;
300
+ border: none;
301
+ padding: 0.5em 1em;
302
+ border-radius: 4px;
303
+ cursor: pointer;
304
+ font-size: 0.9em;
305
+ margin-right: 1em;
306
+ transition: background-color 0.2s;
307
+ font-family: inherit;
308
+ }
309
+
310
+ main.error-page nav .copy-button:hover {
311
+ background-color: rgb(200, 32, 32);
312
+ }
313
+
314
+ main.error-page nav .copy-feedback {
315
+ color: rgb(191, 71, 34);
316
+ font-weight: bold;
317
+ margin-right: 1em;
318
+ }
319
+
200
320
  main.error-page nav svg {
201
321
  width: 24px;
202
322
  height: 24px;
@@ -241,6 +361,18 @@ main.error-page nav svg:hover {
241
361
  white-space: nowrap;
242
362
  text-align: center;
243
363
  }
364
+
365
+ .panic-overlay .section-title {
366
+ display: flex;
367
+ align-items: center;
368
+ padding: 1em 1em;
369
+ background: rgb(195, 74, 37);
370
+ color: white;
371
+ font-size: 1.1em;
372
+ font-weight: 600;
373
+ margin: 2em 0 1em 0;
374
+ }
375
+
244
376
  .panic-overlay .error-counter {
245
377
  color: white;
246
378
  opacity: 0.3;
@@ -413,23 +545,7 @@ main.error-page nav svg:hover {
413
545
  }
414
546
  }
415
547
  `;
416
- const Discourse = () => /* @__PURE__ */ import_react.default.createElement(
417
- "a",
418
- {
419
- href: "https://community.redwoodjs.com",
420
- title: "Go to Redwood's Discourse server"
421
- },
422
- /* @__PURE__ */ import_react.default.createElement(
423
- "svg",
424
- {
425
- className: "discourse",
426
- xmlns: "http://www.w3.org/2000/svg",
427
- viewBox: "0 0 32 32"
428
- },
429
- /* @__PURE__ */ import_react.default.createElement("path", { d: "M16.1357143,0 C7.37857143,0 0,7.03571429 0,15.7214286 C0,16 0.00714285714,32 0.00714285714,32 L16.1357143,31.9857143 C24.9,31.9857143 32,24.6785714 32,15.9928571 C32,7.30714286 24.9,0 16.1357143,0 Z M16,25.1428571 C14.6142857,25.1428571 13.2928571,24.8357143 12.1142857,24.2785714 L6.32142857,25.7142857 L7.95714286,20.3571429 C7.25714286,19.0642857 6.85714286,17.5785714 6.85714286,16 C6.85714286,10.95 10.95,6.85714286 16,6.85714286 C21.05,6.85714286 25.1428571,10.95 25.1428571,16 C25.1428571,21.05 21.05,25.1428571 16,25.1428571 Z" })
430
- )
431
- );
432
- const Discord = () => /* @__PURE__ */ import_react.default.createElement("a", { href: "https://discord.gg/redwoodjs", title: "Go to Redwood's Discord server" }, /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 36 36", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react.default.createElement("path", { d: "M29.9699 7.7544C27.1043 5.44752 22.5705 5.05656 22.3761 5.04288C22.2284 5.03072 22.0806 5.0648 21.9531 5.1404C21.8257 5.216 21.7249 5.32937 21.6647 5.4648C21.5783 5.65936 21.5049 5.85949 21.4451 6.06384C23.3409 6.38424 25.6694 7.02864 27.7761 8.33616C27.8565 8.38604 27.9262 8.45126 27.9814 8.52809C28.0366 8.60493 28.0761 8.69187 28.0976 8.78397C28.1192 8.87607 28.1224 8.97151 28.1071 9.06485C28.0917 9.15819 28.0582 9.24759 28.0083 9.32796C27.9584 9.40833 27.8932 9.47809 27.8164 9.53325C27.7395 9.58842 27.6526 9.62791 27.5605 9.64947C27.4684 9.67103 27.373 9.67424 27.2796 9.65892C27.1863 9.6436 27.0969 9.61004 27.0165 9.56016C23.3949 7.3116 18.8719 7.2 17.9999 7.2C17.1287 7.2 12.6028 7.31232 8.98338 9.55944C8.90301 9.60932 8.81361 9.64288 8.72027 9.6582C8.62693 9.67352 8.53149 9.67031 8.43939 9.64875C8.25339 9.6052 8.09231 9.48955 7.99158 9.32724C7.89085 9.16493 7.85873 8.96925 7.90227 8.78325C7.94582 8.59725 8.06147 8.43617 8.22378 8.33544C10.3305 7.03152 12.659 6.38424 14.5547 6.06672C14.4453 5.7096 14.3459 5.48424 14.3387 5.4648C14.2788 5.32841 14.1776 5.2143 14.0493 5.13859C13.921 5.06288 13.7721 5.0294 13.6238 5.04288C13.4294 5.05728 8.89554 5.44752 5.99034 7.78536C4.47474 9.18792 1.43994 17.3894 1.43994 24.48C1.43994 24.6067 1.47378 24.7277 1.5357 24.8371C3.62802 28.5163 9.3405 29.4775 10.6423 29.52H10.6646C10.7782 29.5203 10.8903 29.4937 10.9916 29.4424C11.093 29.3911 11.1808 29.3165 11.2478 29.2248L12.5632 27.4133C9.01146 26.4967 7.19706 24.9386 7.09338 24.8458C6.95017 24.7194 6.86303 24.5412 6.85115 24.3506C6.83927 24.1599 6.90361 23.9723 7.03002 23.8291C7.15643 23.6859 7.33456 23.5988 7.52522 23.5869C7.71588 23.575 7.90345 23.6394 8.04666 23.7658C8.08842 23.8054 11.4299 26.64 17.9999 26.64C24.5807 26.64 27.9223 23.7938 27.9561 23.7658C28.0998 23.6403 28.2874 23.5769 28.4777 23.5896C28.668 23.6023 28.8456 23.69 28.9713 23.8334C29.0335 23.9042 29.0812 23.9864 29.1117 24.0756C29.1421 24.1647 29.1546 24.259 29.1486 24.353C29.1426 24.447 29.1181 24.5389 29.0766 24.6235C29.035 24.708 28.9772 24.7836 28.9065 24.8458C28.8028 24.9386 26.9884 26.4967 23.4367 27.4133L24.7528 29.2248C24.8198 29.3164 24.9074 29.3909 25.0087 29.4422C25.1099 29.4935 25.2218 29.5202 25.3353 29.52H25.3569C26.6601 29.4775 32.3719 28.5156 34.4649 24.8371C34.5261 24.7277 34.5599 24.6067 34.5599 24.48C34.5599 17.3894 31.5251 9.18864 29.9699 7.7544V7.7544ZM13.3199 21.6C11.9275 21.6 10.7999 20.3112 10.7999 18.72C10.7999 17.1288 11.9275 15.84 13.3199 15.84C14.7124 15.84 15.8399 17.1288 15.8399 18.72C15.8399 20.3112 14.7124 21.6 13.3199 21.6ZM22.6799 21.6C21.2875 21.6 20.1599 20.3112 20.1599 18.72C20.1599 17.1288 21.2875 15.84 22.6799 15.84C24.0724 15.84 25.1999 17.1288 25.1999 18.72C25.1999 20.3112 24.0724 21.6 22.6799 21.6Z" })));
548
+ const Discord = () => /* @__PURE__ */ import_react.default.createElement("a", { href: "https://cedarjs.com/discord", title: "Go to CedarJS's Discord server" }, /* @__PURE__ */ import_react.default.createElement("svg", { viewBox: "0 0 36 36", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ import_react.default.createElement("path", { d: "M29.9699 7.7544C27.1043 5.44752 22.5705 5.05656 22.3761 5.04288C22.2284 5.03072 22.0806 5.0648 21.9531 5.1404C21.8257 5.216 21.7249 5.32937 21.6647 5.4648C21.5783 5.65936 21.5049 5.85949 21.4451 6.06384C23.3409 6.38424 25.6694 7.02864 27.7761 8.33616C27.8565 8.38604 27.9262 8.45126 27.9814 8.52809C28.0366 8.60493 28.0761 8.69187 28.0976 8.78397C28.1192 8.87607 28.1224 8.97151 28.1071 9.06485C28.0917 9.15819 28.0582 9.24759 28.0083 9.32796C27.9584 9.40833 27.8932 9.47809 27.8164 9.53325C27.7395 9.58842 27.6526 9.62791 27.5605 9.64947C27.4684 9.67103 27.373 9.67424 27.2796 9.65892C27.1863 9.6436 27.0969 9.61004 27.0165 9.56016C23.3949 7.3116 18.8719 7.2 17.9999 7.2C17.1287 7.2 12.6028 7.31232 8.98338 9.55944C8.90301 9.60932 8.81361 9.64288 8.72027 9.6582C8.62693 9.67352 8.53149 9.67031 8.43939 9.64875C8.25339 9.6052 8.09231 9.48955 7.99158 9.32724C7.89085 9.16493 7.85873 8.96925 7.90227 8.78325C7.94582 8.59725 8.06147 8.43617 8.22378 8.33544C10.3305 7.03152 12.659 6.38424 14.5547 6.06672C14.4453 5.7096 14.3459 5.48424 14.3387 5.4648C14.2788 5.32841 14.1776 5.2143 14.0493 5.13859C13.921 5.06288 13.7721 5.0294 13.6238 5.04288C13.4294 5.05728 8.89554 5.44752 5.99034 7.78536C4.47474 9.18792 1.43994 17.3894 1.43994 24.48C1.43994 24.6067 1.47378 24.7277 1.5357 24.8371C3.62802 28.5163 9.3405 29.4775 10.6423 29.52H10.6646C10.7782 29.5203 10.8903 29.4937 10.9916 29.4424C11.093 29.3911 11.1808 29.3165 11.2478 29.2248L12.5632 27.4133C9.01146 26.4967 7.19706 24.9386 7.09338 24.8458C6.95017 24.7194 6.86303 24.5412 6.85115 24.3506C6.83927 24.1599 6.90361 23.9723 7.03002 23.8291C7.15643 23.6859 7.33456 23.5988 7.52522 23.5869C7.71588 23.575 7.90345 23.6394 8.04666 23.7658C8.08842 23.8054 11.4299 26.64 17.9999 26.64C24.5807 26.64 27.9223 23.7938 27.9561 23.7658C28.0998 23.6403 28.2874 23.5769 28.4777 23.5896C28.668 23.6023 28.8456 23.69 28.9713 23.8334C29.0335 23.9042 29.0812 23.9864 29.1117 24.0756C29.1421 24.1647 29.1546 24.259 29.1486 24.353C29.1426 24.447 29.1181 24.5389 29.0766 24.6235C29.035 24.708 28.9772 24.7836 28.9065 24.8458C28.8028 24.9386 26.9884 26.4967 23.4367 27.4133L24.7528 29.2248C24.8198 29.3164 24.9074 29.3909 25.0087 29.4422C25.1099 29.4935 25.2218 29.5202 25.3353 29.52H25.3569C26.6601 29.4775 32.3719 28.5156 34.4649 24.8371C34.5261 24.7277 34.5599 24.6067 34.5599 24.48C34.5599 17.3894 31.5251 9.18864 29.9699 7.7544V7.7544ZM13.3199 21.6C11.9275 21.6 10.7999 20.3112 10.7999 18.72C10.7999 17.1288 11.9275 15.84 13.3199 15.84C14.7124 15.84 15.8399 17.1288 15.8399 18.72C15.8399 20.3112 14.7124 21.6 13.3199 21.6ZM22.6799 21.6C21.2875 21.6 20.1599 20.3112 20.1599 18.72C20.1599 17.1288 21.2875 15.84 22.6799 15.84C24.0724 15.84 25.1999 17.1288 25.1999 18.72C25.1999 20.3112 24.0724 21.6 22.6799 21.6Z" })));
433
549
  // Annotate the CommonJS export names for ESM import in node:
434
550
  0 && (module.exports = {
435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wBAAgB,WAAW,CACzB,KAAK,GAAG,GAAG,EACX,UAAU,GAAG,yBAAyB,EAEtC,QAAQ,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC7D,OAAO,CAAC,EAAE,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC,GACtD,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC,CAK5C;AAED,wBAAgB,eAAe,CAC7B,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1D,OAAO,CAAC,EAAE,8BAA8B,CAAC,KAAK,EAAE,UAAU,CAAC,GAC1D,2BAA2B,CAAC,KAAK,EAAE,UAAU,CAAC,CAKhD;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1D,OAAO,CAAC,EAAE,+BAA+B,CAAC,KAAK,EAAE,UAAU,CAAC,GAC3D,4BAA4B,CAAC,KAAK,EAAE,UAAU,CAAC,CAKjD;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,wBAAwB,CAAC,GAAG,CAOnE,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,kBAEjC,CAAA"}
@@ -21,7 +21,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
22
  mod
23
23
  ));
24
- var import_react = __toESM(require("react"), 1);
25
24
  var import_client = require("react-dom/client");
26
25
  var import_redwood_app_root = __toESM(require("~redwood-app-root"), 1);
27
26
  var import_redwood_app_routes = __toESM(require("~redwood-app-routes"), 1);
@@ -29,11 +28,11 @@ const redwoodAppElement = document.getElementById("redwood-app");
29
28
  if (redwoodAppElement.children?.length > 0) {
30
29
  (0, import_client.hydrateRoot)(
31
30
  redwoodAppElement,
32
- /* @__PURE__ */ import_react.default.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ import_react.default.createElement(import_redwood_app_routes.default, null))
31
+ /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
33
32
  );
34
33
  } else {
35
34
  const root = (0, import_client.createRoot)(redwoodAppElement);
36
35
  root.render(
37
- /* @__PURE__ */ import_react.default.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ import_react.default.createElement(import_redwood_app_routes.default, null))
36
+ /* @__PURE__ */ React.createElement(import_redwood_app_root.default, null, /* @__PURE__ */ React.createElement(import_redwood_app_routes.default, null))
38
37
  );
39
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DevFatalErrorPage.d.ts","sourceRoot":"","sources":["../../src/components/DevFatalErrorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmB3C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACf,CAAA;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC7C,sBAAsB,EAAE,cAAc,CAAA;CACvC;AAGD,KAAK,oBAAoB,GAAG,KAAK,GAAG;IAClC,iBAAiB,CAAC,EAAE,cAAc,CAAA;IAClC,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAClC,kBAAkB,CAAC,EAAE,GAAG,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,OAAO;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,sBAsDxE,CAAA"}
1
+ {"version":3,"file":"DevFatalErrorPage.d.ts","sourceRoot":"","sources":["../../src/components/DevFatalErrorPage.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAsC,MAAM,OAAO,CAAA;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAmB3C,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACf,CAAA;AAED,UAAU,gBAAiB,SAAQ,YAAY;IAC7C,sBAAsB,EAAE,cAAc,CAAA;CACvC;AAGD,KAAK,oBAAoB,GAAG,KAAK,GAAG;IAClC,iBAAiB,CAAC,EAAE,cAAc,CAAA;IAClC,aAAa,CAAC,EAAE,gBAAgB,EAAE,CAAA;IAClC,kBAAkB,CAAC,EAAE,GAAG,CAAA;CACzB,CAAA;AAiGD,eAAO,MAAM,iBAAiB,GAAI,OAAO;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,sBA4FxE,CAAA"}
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react";
1
+ import React, { useState, useEffect, useRef } from "react";
2
2
  import StackTracey from "stacktracey";
3
3
  let srcRoot = "";
4
4
  if (typeof RWJS_DEBUG_ENV !== "undefined") {
@@ -10,7 +10,84 @@ if (/^[A-Z]:\\/.test(srcRoot)) {
10
10
  } else {
11
11
  appRoot = srcRoot.substring(1);
12
12
  }
13
+ function formatErrorForClipboard(err, stack, typeName, msg, errorWithMeta) {
14
+ const lines = [];
15
+ lines.push("=".repeat(80));
16
+ lines.push("FATAL ERROR REPORT");
17
+ lines.push("=".repeat(80));
18
+ lines.push("");
19
+ lines.push(`ERROR TYPE: ${typeName}`);
20
+ lines.push(`ERROR MESSAGE: ${msg}`);
21
+ lines.push("");
22
+ const mostRecentRequest = errorWithMeta.mostRecentRequest || errorWithMeta.graphQLErrors?.find((gqlErr) => gqlErr.__RedwoodEnhancedError)?.__RedwoodEnhancedError;
23
+ if (mostRecentRequest) {
24
+ lines.push("-".repeat(80));
25
+ lines.push("REQUEST CONTEXT");
26
+ lines.push("-".repeat(80));
27
+ lines.push(`Operation: ${mostRecentRequest.operationName}`);
28
+ lines.push(`Kind: ${mostRecentRequest.operationKind}`);
29
+ lines.push("");
30
+ lines.push("Variables:");
31
+ try {
32
+ lines.push(JSON.stringify(mostRecentRequest.variables, null, 2));
33
+ } catch {
34
+ lines.push("Unable to stringify variables");
35
+ }
36
+ lines.push("");
37
+ lines.push("Query:");
38
+ lines.push(mostRecentRequest.query);
39
+ lines.push("");
40
+ }
41
+ if (errorWithMeta.mostRecentResponse) {
42
+ lines.push("-".repeat(80));
43
+ lines.push("RESPONSE CONTEXT");
44
+ lines.push("-".repeat(80));
45
+ try {
46
+ lines.push(JSON.stringify(errorWithMeta.mostRecentResponse, null, 2));
47
+ } catch {
48
+ lines.push("Unable to stringify response");
49
+ }
50
+ lines.push("");
51
+ }
52
+ lines.push("-".repeat(80));
53
+ lines.push("STACK TRACE");
54
+ lines.push("-".repeat(80));
55
+ stack.items.forEach((entry, i) => {
56
+ const fileShort = entry.fileShort || "[Unknown]";
57
+ const callee = entry.callee || "[Anonymous]";
58
+ const line = entry.line || "?";
59
+ const column = entry.column || "?";
60
+ lines.push(`[${i}] ${fileShort}:${line}:${column} in ${callee}`);
61
+ const sourceFile = entry.sourceFile;
62
+ if (sourceFile?.lines && sourceFile.lines.length > 0) {
63
+ const lineIndex = (entry.line || 1) - 1;
64
+ const window = 2;
65
+ const start = Math.max(0, lineIndex - window);
66
+ const end = Math.min(sourceFile.lines.length, lineIndex + window + 1);
67
+ lines.push(" Source context:");
68
+ for (let idx = start; idx < end; idx++) {
69
+ const marker = idx === lineIndex ? "> " : " ";
70
+ lines.push(
71
+ ` ${marker}${(idx + 1).toString().padStart(4)} | ${sourceFile.lines[idx]}`
72
+ );
73
+ }
74
+ lines.push("");
75
+ }
76
+ });
77
+ lines.push("");
78
+ lines.push("=".repeat(80));
79
+ return lines.join("\n");
80
+ }
13
81
  const DevFatalErrorPage = (props) => {
82
+ const [copyFeedback, setCopyFeedback] = useState("");
83
+ const timeoutRef = useRef(null);
84
+ useEffect(() => {
85
+ return () => {
86
+ if (timeoutRef.current) {
87
+ clearTimeout(timeoutRef.current);
88
+ }
89
+ };
90
+ }, []);
14
91
  if (!props.error) {
15
92
  return /* @__PURE__ */ React.createElement("h3", null, "Could not render the error page due to a missing error, please see the console for more details.");
16
93
  }
@@ -21,6 +98,18 @@ const DevFatalErrorPage = (props) => {
21
98
  );
22
99
  const msg = String(err && err.message);
23
100
  const FileRef = stack.items[0] ? /* @__PURE__ */ React.createElement("a", { href: toVSCodeURL(stack.items[0]) }, stack.items[0].fileName) : null;
101
+ const handleCopyAll = async () => {
102
+ const errorText = formatErrorForClipboard(err, stack, typeName, msg, err);
103
+ try {
104
+ await navigator.clipboard.writeText(errorText);
105
+ setCopyFeedback("\u2713 Copied to clipboard");
106
+ timeoutRef.current = setTimeout(() => setCopyFeedback(""), 3e3);
107
+ } catch (clipboardError) {
108
+ setCopyFeedback("Failed to copy");
109
+ timeoutRef.current = setTimeout(() => setCopyFeedback(""), 3e3);
110
+ console.error("Failed to copy error to clipboard:", clipboardError);
111
+ }
112
+ };
24
113
  return /* @__PURE__ */ React.createElement("main", { className: "error-page" }, /* @__PURE__ */ React.createElement(
25
114
  "style",
26
115
  {
@@ -28,7 +117,15 @@ const DevFatalErrorPage = (props) => {
28
117
  __html: css
29
118
  }
30
119
  }
31
- ), /* @__PURE__ */ React.createElement("nav", null, /* @__PURE__ */ React.createElement("h1", null, "A fatal runtime error occurred when rendering ", FileRef), /* @__PURE__ */ React.createElement("div", null, "Get help via ", /* @__PURE__ */ React.createElement(Discord, null), " or ", /* @__PURE__ */ React.createElement(Discourse, null))), /* @__PURE__ */ React.createElement("section", { className: "panic-overlay" }, /* @__PURE__ */ React.createElement("div", { className: "error" }, /* @__PURE__ */ React.createElement("h3", { className: "error-title" }, /* @__PURE__ */ React.createElement("span", { className: "error-type" }, typeName), /* @__PURE__ */ React.createElement("span", { className: "error-message" }, prettyMessage(msg))), /* @__PURE__ */ React.createElement("div", { className: "error-stack" }, stack.items.map((entry, i) => /* @__PURE__ */ React.createElement(StackEntry, { key: i, entry, i, message: msg })))), /* @__PURE__ */ React.createElement(ResponseRequest, { error: props.error })));
120
+ ), /* @__PURE__ */ React.createElement("nav", null, /* @__PURE__ */ React.createElement("h1", null, "A fatal runtime error occurred when rendering ", FileRef), /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement(
121
+ "button",
122
+ {
123
+ onClick: handleCopyAll,
124
+ className: "copy-button",
125
+ title: "Copy all error context to clipboard"
126
+ },
127
+ "\u{1F4CB} Copy All"
128
+ ), copyFeedback && /* @__PURE__ */ React.createElement("span", { className: "copy-feedback" }, copyFeedback), "Get help via ", /* @__PURE__ */ React.createElement(Discord, null))), /* @__PURE__ */ React.createElement("section", { className: "panic-overlay" }, /* @__PURE__ */ React.createElement("div", { className: "error" }, /* @__PURE__ */ React.createElement("h3", { className: "error-title" }, /* @__PURE__ */ React.createElement("span", { className: "error-type" }, typeName), /* @__PURE__ */ React.createElement("span", { className: "error-message" }, prettyMessage(msg)))), /* @__PURE__ */ React.createElement(ResponseRequest, { error: props.error }), /* @__PURE__ */ React.createElement("div", { className: "error" }, /* @__PURE__ */ React.createElement("h3", { className: "section-title" }, "Stack Trace"), /* @__PURE__ */ React.createElement("div", { className: "error-stack" }, stack.items.map((entry, i) => /* @__PURE__ */ React.createElement(StackEntry, { key: i, entry, i, message: msg }))))));
32
129
  };
33
130
  function hideStackLine(fileReference) {
34
131
  return fileReference.length === 1 || fileReference.includes("node_modules/react-dom");
@@ -85,7 +182,7 @@ function StackEntry({
85
182
  }
86
183
  }
87
184
  function toVSCodeURL(entry) {
88
- const scheme = RWJS_DEBUG_ENV.REDWOOD_ENV_EDITOR || "vscode";
185
+ const scheme = typeof RWJS_DEBUG_ENV !== "undefined" && RWJS_DEBUG_ENV.REDWOOD_ENV_EDITOR || "vscode";
89
186
  return `${scheme}://file/${entry.fileShort}:${entry.line}:${entry.column}`;
90
187
  }
91
188
  function prettyMessage(msg) {
@@ -164,6 +261,29 @@ main.error-page nav div a {
164
261
  margin: 0 0.3em;
165
262
  }
166
263
 
264
+ main.error-page nav .copy-button {
265
+ background-color: rgb(191, 71, 34);
266
+ color: white;
267
+ border: none;
268
+ padding: 0.5em 1em;
269
+ border-radius: 4px;
270
+ cursor: pointer;
271
+ font-size: 0.9em;
272
+ margin-right: 1em;
273
+ transition: background-color 0.2s;
274
+ font-family: inherit;
275
+ }
276
+
277
+ main.error-page nav .copy-button:hover {
278
+ background-color: rgb(200, 32, 32);
279
+ }
280
+
281
+ main.error-page nav .copy-feedback {
282
+ color: rgb(191, 71, 34);
283
+ font-weight: bold;
284
+ margin-right: 1em;
285
+ }
286
+
167
287
  main.error-page nav svg {
168
288
  width: 24px;
169
289
  height: 24px;
@@ -208,6 +328,18 @@ main.error-page nav svg:hover {
208
328
  white-space: nowrap;
209
329
  text-align: center;
210
330
  }
331
+
332
+ .panic-overlay .section-title {
333
+ display: flex;
334
+ align-items: center;
335
+ padding: 1em 1em;
336
+ background: rgb(195, 74, 37);
337
+ color: white;
338
+ font-size: 1.1em;
339
+ font-weight: 600;
340
+ margin: 2em 0 1em 0;
341
+ }
342
+
211
343
  .panic-overlay .error-counter {
212
344
  color: white;
213
345
  opacity: 0.3;
@@ -380,23 +512,7 @@ main.error-page nav svg:hover {
380
512
  }
381
513
  }
382
514
  `;
383
- const Discourse = () => /* @__PURE__ */ React.createElement(
384
- "a",
385
- {
386
- href: "https://community.redwoodjs.com",
387
- title: "Go to Redwood's Discourse server"
388
- },
389
- /* @__PURE__ */ React.createElement(
390
- "svg",
391
- {
392
- className: "discourse",
393
- xmlns: "http://www.w3.org/2000/svg",
394
- viewBox: "0 0 32 32"
395
- },
396
- /* @__PURE__ */ React.createElement("path", { d: "M16.1357143,0 C7.37857143,0 0,7.03571429 0,15.7214286 C0,16 0.00714285714,32 0.00714285714,32 L16.1357143,31.9857143 C24.9,31.9857143 32,24.6785714 32,15.9928571 C32,7.30714286 24.9,0 16.1357143,0 Z M16,25.1428571 C14.6142857,25.1428571 13.2928571,24.8357143 12.1142857,24.2785714 L6.32142857,25.7142857 L7.95714286,20.3571429 C7.25714286,19.0642857 6.85714286,17.5785714 6.85714286,16 C6.85714286,10.95 10.95,6.85714286 16,6.85714286 C21.05,6.85714286 25.1428571,10.95 25.1428571,16 C25.1428571,21.05 21.05,25.1428571 16,25.1428571 Z" })
397
- )
398
- );
399
- const Discord = () => /* @__PURE__ */ React.createElement("a", { href: "https://discord.gg/redwoodjs", title: "Go to Redwood's Discord server" }, /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 36 36", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React.createElement("path", { d: "M29.9699 7.7544C27.1043 5.44752 22.5705 5.05656 22.3761 5.04288C22.2284 5.03072 22.0806 5.0648 21.9531 5.1404C21.8257 5.216 21.7249 5.32937 21.6647 5.4648C21.5783 5.65936 21.5049 5.85949 21.4451 6.06384C23.3409 6.38424 25.6694 7.02864 27.7761 8.33616C27.8565 8.38604 27.9262 8.45126 27.9814 8.52809C28.0366 8.60493 28.0761 8.69187 28.0976 8.78397C28.1192 8.87607 28.1224 8.97151 28.1071 9.06485C28.0917 9.15819 28.0582 9.24759 28.0083 9.32796C27.9584 9.40833 27.8932 9.47809 27.8164 9.53325C27.7395 9.58842 27.6526 9.62791 27.5605 9.64947C27.4684 9.67103 27.373 9.67424 27.2796 9.65892C27.1863 9.6436 27.0969 9.61004 27.0165 9.56016C23.3949 7.3116 18.8719 7.2 17.9999 7.2C17.1287 7.2 12.6028 7.31232 8.98338 9.55944C8.90301 9.60932 8.81361 9.64288 8.72027 9.6582C8.62693 9.67352 8.53149 9.67031 8.43939 9.64875C8.25339 9.6052 8.09231 9.48955 7.99158 9.32724C7.89085 9.16493 7.85873 8.96925 7.90227 8.78325C7.94582 8.59725 8.06147 8.43617 8.22378 8.33544C10.3305 7.03152 12.659 6.38424 14.5547 6.06672C14.4453 5.7096 14.3459 5.48424 14.3387 5.4648C14.2788 5.32841 14.1776 5.2143 14.0493 5.13859C13.921 5.06288 13.7721 5.0294 13.6238 5.04288C13.4294 5.05728 8.89554 5.44752 5.99034 7.78536C4.47474 9.18792 1.43994 17.3894 1.43994 24.48C1.43994 24.6067 1.47378 24.7277 1.5357 24.8371C3.62802 28.5163 9.3405 29.4775 10.6423 29.52H10.6646C10.7782 29.5203 10.8903 29.4937 10.9916 29.4424C11.093 29.3911 11.1808 29.3165 11.2478 29.2248L12.5632 27.4133C9.01146 26.4967 7.19706 24.9386 7.09338 24.8458C6.95017 24.7194 6.86303 24.5412 6.85115 24.3506C6.83927 24.1599 6.90361 23.9723 7.03002 23.8291C7.15643 23.6859 7.33456 23.5988 7.52522 23.5869C7.71588 23.575 7.90345 23.6394 8.04666 23.7658C8.08842 23.8054 11.4299 26.64 17.9999 26.64C24.5807 26.64 27.9223 23.7938 27.9561 23.7658C28.0998 23.6403 28.2874 23.5769 28.4777 23.5896C28.668 23.6023 28.8456 23.69 28.9713 23.8334C29.0335 23.9042 29.0812 23.9864 29.1117 24.0756C29.1421 24.1647 29.1546 24.259 29.1486 24.353C29.1426 24.447 29.1181 24.5389 29.0766 24.6235C29.035 24.708 28.9772 24.7836 28.9065 24.8458C28.8028 24.9386 26.9884 26.4967 23.4367 27.4133L24.7528 29.2248C24.8198 29.3164 24.9074 29.3909 25.0087 29.4422C25.1099 29.4935 25.2218 29.5202 25.3353 29.52H25.3569C26.6601 29.4775 32.3719 28.5156 34.4649 24.8371C34.5261 24.7277 34.5599 24.6067 34.5599 24.48C34.5599 17.3894 31.5251 9.18864 29.9699 7.7544V7.7544ZM13.3199 21.6C11.9275 21.6 10.7999 20.3112 10.7999 18.72C10.7999 17.1288 11.9275 15.84 13.3199 15.84C14.7124 15.84 15.8399 17.1288 15.8399 18.72C15.8399 20.3112 14.7124 21.6 13.3199 21.6ZM22.6799 21.6C21.2875 21.6 20.1599 20.3112 20.1599 18.72C20.1599 17.1288 21.2875 15.84 22.6799 15.84C24.0724 15.84 25.1999 17.1288 25.1999 18.72C25.1999 20.3112 24.0724 21.6 22.6799 21.6Z" })));
515
+ const Discord = () => /* @__PURE__ */ React.createElement("a", { href: "https://cedarjs.com/discord", title: "Go to CedarJS's Discord server" }, /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 36 36", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ React.createElement("path", { d: "M29.9699 7.7544C27.1043 5.44752 22.5705 5.05656 22.3761 5.04288C22.2284 5.03072 22.0806 5.0648 21.9531 5.1404C21.8257 5.216 21.7249 5.32937 21.6647 5.4648C21.5783 5.65936 21.5049 5.85949 21.4451 6.06384C23.3409 6.38424 25.6694 7.02864 27.7761 8.33616C27.8565 8.38604 27.9262 8.45126 27.9814 8.52809C28.0366 8.60493 28.0761 8.69187 28.0976 8.78397C28.1192 8.87607 28.1224 8.97151 28.1071 9.06485C28.0917 9.15819 28.0582 9.24759 28.0083 9.32796C27.9584 9.40833 27.8932 9.47809 27.8164 9.53325C27.7395 9.58842 27.6526 9.62791 27.5605 9.64947C27.4684 9.67103 27.373 9.67424 27.2796 9.65892C27.1863 9.6436 27.0969 9.61004 27.0165 9.56016C23.3949 7.3116 18.8719 7.2 17.9999 7.2C17.1287 7.2 12.6028 7.31232 8.98338 9.55944C8.90301 9.60932 8.81361 9.64288 8.72027 9.6582C8.62693 9.67352 8.53149 9.67031 8.43939 9.64875C8.25339 9.6052 8.09231 9.48955 7.99158 9.32724C7.89085 9.16493 7.85873 8.96925 7.90227 8.78325C7.94582 8.59725 8.06147 8.43617 8.22378 8.33544C10.3305 7.03152 12.659 6.38424 14.5547 6.06672C14.4453 5.7096 14.3459 5.48424 14.3387 5.4648C14.2788 5.32841 14.1776 5.2143 14.0493 5.13859C13.921 5.06288 13.7721 5.0294 13.6238 5.04288C13.4294 5.05728 8.89554 5.44752 5.99034 7.78536C4.47474 9.18792 1.43994 17.3894 1.43994 24.48C1.43994 24.6067 1.47378 24.7277 1.5357 24.8371C3.62802 28.5163 9.3405 29.4775 10.6423 29.52H10.6646C10.7782 29.5203 10.8903 29.4937 10.9916 29.4424C11.093 29.3911 11.1808 29.3165 11.2478 29.2248L12.5632 27.4133C9.01146 26.4967 7.19706 24.9386 7.09338 24.8458C6.95017 24.7194 6.86303 24.5412 6.85115 24.3506C6.83927 24.1599 6.90361 23.9723 7.03002 23.8291C7.15643 23.6859 7.33456 23.5988 7.52522 23.5869C7.71588 23.575 7.90345 23.6394 8.04666 23.7658C8.08842 23.8054 11.4299 26.64 17.9999 26.64C24.5807 26.64 27.9223 23.7938 27.9561 23.7658C28.0998 23.6403 28.2874 23.5769 28.4777 23.5896C28.668 23.6023 28.8456 23.69 28.9713 23.8334C29.0335 23.9042 29.0812 23.9864 29.1117 24.0756C29.1421 24.1647 29.1546 24.259 29.1486 24.353C29.1426 24.447 29.1181 24.5389 29.0766 24.6235C29.035 24.708 28.9772 24.7836 28.9065 24.8458C28.8028 24.9386 26.9884 26.4967 23.4367 27.4133L24.7528 29.2248C24.8198 29.3164 24.9074 29.3909 25.0087 29.4422C25.1099 29.4935 25.2218 29.5202 25.3353 29.52H25.3569C26.6601 29.4775 32.3719 28.5156 34.4649 24.8371C34.5261 24.7277 34.5599 24.6067 34.5599 24.48C34.5599 17.3894 31.5251 9.18864 29.9699 7.7544V7.7544ZM13.3199 21.6C11.9275 21.6 10.7999 20.3112 10.7999 18.72C10.7999 17.1288 11.9275 15.84 13.3199 15.84C14.7124 15.84 15.8399 17.1288 15.8399 18.72C15.8399 20.3112 14.7124 21.6 13.3199 21.6ZM22.6799 21.6C21.2875 21.6 20.1599 20.3112 20.1599 18.72C20.1599 17.1288 21.2875 15.84 22.6799 15.84C24.0724 15.84 25.1999 17.1288 25.1999 18.72C25.1999 20.3112 24.0724 21.6 22.6799 21.6Z" })));
400
516
  export {
401
517
  DevFatalErrorPage
402
518
  };
@@ -1 +1 @@
1
- {"version":3,"file":"GraphQLHooksProvider.d.ts","sourceRoot":"","sources":["../../src/components/GraphQLHooksProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,IAAI,wBAAwB,EAC9C,YAAY,IAAI,kBAAkB,EACnC,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,YAAY,EAAE,iBAAiB,EAAE,CAAA;AAEjC;;;;;;;;GAQG;AAEH,KAAK,mBAAmB,GAAG,CACzB,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1D,OAAO,CAAC,EAAE,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC,KACjD,oBAAoB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;AAE5C,KAAK,sBAAsB,GAAG,CAC5B,KAAK,GAAG,GAAG,EACX,UAAU,GAAG,yBAAyB,EAEtC,QAAQ,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC7D,OAAO,CAAC,EAAE,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC,KACpD,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA;AAE/C,KAAK,0BAA0B,GAAG,CAChC,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,YAAY,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EACjE,OAAO,CAAC,EAAE,8BAA8B,CAAC,KAAK,EAAE,UAAU,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AU,CAAC,CAKzC;AAED,wBAAgB,WAAW,CACzB,KAAK,GAAG,GAAG,EACX,UAAU,GAAG,yBAAyB,EAEtC,QAAQ,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC7D,OAAO,CAAC,EAAE,0BAA0B,CAAC,KAAK,EAAE,UAAU,CAAC,GACtD,uBAAuB,CAAC,KAAK,EAAE,UAAU,CAAC,CAK5C;AAED,wBAAgB,eAAe,CAC7B,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1D,OAAO,CAAC,EAAE,8BAA8B,CAAC,KAAK,EAAE,UAAU,CAAC,GAC1D,2BAA2B,CAAC,KAAK,EAAE,UAAU,CAAC,CAKhD;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,GAAG,GAAG,EACX,UAAU,SAAS,kBAAkB,GAAG,yBAAyB,EAEjE,KAAK,EAAE,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,UAAU,CAAC,EAC1D,OAAO,CAAC,EAAE,+BAA+B,CAAC,KAAK,EAAE,UAAU,CAAC,GAC3D,4BAA4B,CAAC,KAAK,EAAE,UAAU,CAAC,CAKjD;AAED,eAAO,MAAM,kBAAkB,EAAE,OAAO,wBAAwB,CAAC,GAAG,CAOnE,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,OAAO,kBAEjC,CAAA"}
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { hydrateRoot, createRoot } from "react-dom/client";
3
2
  import App from "~redwood-app-root";
4
3
  import Routes from "~redwood-app-routes";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/web",
3
- "version": "2.4.1",
3
+ "version": "2.4.2-next.143+b69a4494c",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -144,14 +144,14 @@
144
144
  },
145
145
  "dependencies": {
146
146
  "@apollo/client": "3.13.9",
147
- "@babel/runtime-corejs3": "7.28.4",
148
- "@cedarjs/auth": "2.4.1",
149
- "@cedarjs/server-store": "2.4.1",
147
+ "@babel/runtime-corejs3": "7.28.6",
148
+ "@cedarjs/auth": "2.4.2-next.143+b69a4494c",
149
+ "@cedarjs/server-store": "2.4.2-next.143+b69a4494c",
150
150
  "@dr.pogodin/react-helmet": "2.0.4",
151
151
  "@whatwg-node/fetch": "0.10.13",
152
152
  "apollo-upload-client": "18.0.1",
153
153
  "cookie": "1.1.1",
154
- "core-js": "3.47.0",
154
+ "core-js": "3.48.0",
155
155
  "graphql": "16.12.0",
156
156
  "graphql-sse": "2.6.0",
157
157
  "graphql-tag": "2.12.6",
@@ -162,12 +162,12 @@
162
162
  "devDependencies": {
163
163
  "@apollo/client-react-streaming": "0.12.3",
164
164
  "@arethetypeswrong/cli": "0.18.2",
165
- "@babel/cli": "7.28.3",
165
+ "@babel/cli": "7.28.6",
166
166
  "@babel/core": "^7.26.10",
167
167
  "@babel/plugin-transform-runtime": "7.28.5",
168
- "@babel/runtime": "7.28.4",
169
- "@cedarjs/framework-tools": "0.0.0",
170
- "@cedarjs/internal": "2.4.1",
168
+ "@babel/runtime": "7.28.6",
169
+ "@cedarjs/framework-tools": "2.4.2-next.143",
170
+ "@cedarjs/internal": "2.4.2-next.143+b69a4494c",
171
171
  "@rollup/plugin-babel": "6.1.0",
172
172
  "@testing-library/jest-dom": "6.9.1",
173
173
  "@testing-library/react": "14.3.1",
@@ -176,7 +176,7 @@
176
176
  "@types/react-dom": "^18.2.19",
177
177
  "concurrently": "9.2.1",
178
178
  "nodemon": "3.1.11",
179
- "publint": "0.3.16",
179
+ "publint": "0.3.17",
180
180
  "react": "18.3.1",
181
181
  "react-dom": "18.3.1",
182
182
  "tstyche": "5.0.2",
@@ -191,5 +191,5 @@
191
191
  "publishConfig": {
192
192
  "access": "public"
193
193
  },
194
- "gitHead": "d42ba2ec10b823aeb18587f04678bfec340d533a"
194
+ "gitHead": "b69a4494c40b0a4807f6b492ae65d0596f374e8a"
195
195
  }
@@ -1,5 +1,3 @@
1
- import React from 'react'
2
-
3
1
  import { hydrateRoot, createRoot } from 'react-dom/client'
4
2
 
5
3
  import App from '~redwood-app-root'