@theholocron/react-template 0.2.3 → 0.3.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.
@@ -0,0 +1,507 @@
1
+ import * as e from "react";
2
+ //#region \0rolldown/runtime.js
3
+ var t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
4
+ if (typeof require < "u") return require.apply(this, arguments);
5
+ throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
6
+ });
7
+ //#endregion
8
+ //#region src/auth/use-auth.ts
9
+ function r(e) {
10
+ return fetch("/authenticate", {
11
+ method: "POST",
12
+ ...e
13
+ }).then((e) => e.json());
14
+ }
15
+ function i(e, t) {
16
+ switch (t.type) {
17
+ case "LOG_IN": return t.user;
18
+ case "LOG_OUT": return null;
19
+ default: return e;
20
+ }
21
+ }
22
+ function a() {
23
+ let [t, n] = e.useReducer(i, null);
24
+ return [t, ({ username: e, password: t }) => {
25
+ r({ body: JSON.stringify({
26
+ username: e,
27
+ password: t
28
+ }) }).then(({ user: e }) => {
29
+ n({
30
+ type: "LOG_IN",
31
+ user: e
32
+ });
33
+ }).catch((e) => {
34
+ console.log(e);
35
+ });
36
+ }];
37
+ }
38
+ //#endregion
39
+ //#region node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js
40
+ var o = /* @__PURE__ */ t(((e) => {
41
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
42
+ function r(e, n, r) {
43
+ var i = null;
44
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
45
+ else r = n;
46
+ return n = r.ref, {
47
+ $$typeof: t,
48
+ type: e,
49
+ key: i,
50
+ ref: n === void 0 ? null : n,
51
+ props: r
52
+ };
53
+ }
54
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
55
+ })), s = /* @__PURE__ */ t(((e) => {
56
+ process.env.NODE_ENV !== "production" && (function() {
57
+ function t(e) {
58
+ if (e == null) return null;
59
+ if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
60
+ if (typeof e == "string") return e;
61
+ switch (e) {
62
+ case v: return "Fragment";
63
+ case b: return "Profiler";
64
+ case y: return "StrictMode";
65
+ case w: return "Suspense";
66
+ case T: return "SuspenseList";
67
+ case O: return "Activity";
68
+ }
69
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
70
+ case _: return "Portal";
71
+ case S: return e.displayName || "Context";
72
+ case x: return (e._context.displayName || "Context") + ".Consumer";
73
+ case C:
74
+ var n = e.render;
75
+ return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
76
+ case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
77
+ case D:
78
+ n = e._payload, e = e._init;
79
+ try {
80
+ return t(e(n));
81
+ } catch {}
82
+ }
83
+ return null;
84
+ }
85
+ function r(e) {
86
+ return "" + e;
87
+ }
88
+ function i(e) {
89
+ try {
90
+ r(e);
91
+ var t = !1;
92
+ } catch {
93
+ t = !0;
94
+ }
95
+ if (t) {
96
+ t = console;
97
+ var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
98
+ return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
99
+ }
100
+ }
101
+ function a(e) {
102
+ if (e === v) return "<>";
103
+ if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
104
+ try {
105
+ var n = t(e);
106
+ return n ? "<" + n + ">" : "<...>";
107
+ } catch {
108
+ return "<...>";
109
+ }
110
+ }
111
+ function o() {
112
+ var e = A.A;
113
+ return e === null ? null : e.getOwner();
114
+ }
115
+ function s() {
116
+ return Error("react-stack-top-frame");
117
+ }
118
+ function c(e) {
119
+ if (j.call(e, "key")) {
120
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
121
+ if (t && t.isReactWarning) return !1;
122
+ }
123
+ return e.key !== void 0;
124
+ }
125
+ function l(e, t) {
126
+ function n() {
127
+ P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
128
+ }
129
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
130
+ get: n,
131
+ configurable: !0
132
+ });
133
+ }
134
+ function u() {
135
+ var e = t(this.type);
136
+ return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
137
+ }
138
+ function d(e, t, n, r, i, a) {
139
+ var o = n.ref;
140
+ return e = {
141
+ $$typeof: g,
142
+ type: e,
143
+ key: t,
144
+ props: n,
145
+ _owner: r
146
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
147
+ enumerable: !1,
148
+ value: null
149
+ }) : Object.defineProperty(e, "ref", {
150
+ enumerable: !1,
151
+ get: u
152
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
153
+ configurable: !1,
154
+ enumerable: !1,
155
+ writable: !0,
156
+ value: 0
157
+ }), Object.defineProperty(e, "_debugInfo", {
158
+ configurable: !1,
159
+ enumerable: !1,
160
+ writable: !0,
161
+ value: null
162
+ }), Object.defineProperty(e, "_debugStack", {
163
+ configurable: !1,
164
+ enumerable: !1,
165
+ writable: !0,
166
+ value: i
167
+ }), Object.defineProperty(e, "_debugTask", {
168
+ configurable: !1,
169
+ enumerable: !1,
170
+ writable: !0,
171
+ value: a
172
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
173
+ }
174
+ function f(e, n, r, a, s, u) {
175
+ var f = n.children;
176
+ if (f !== void 0) if (a) if (M(f)) {
177
+ for (a = 0; a < f.length; a++) p(f[a]);
178
+ Object.freeze && Object.freeze(f);
179
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
180
+ else p(f);
181
+ if (j.call(n, "key")) {
182
+ f = t(e);
183
+ var m = Object.keys(n).filter(function(e) {
184
+ return e !== "key";
185
+ });
186
+ a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
187
+ }
188
+ if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
189
+ else r = n;
190
+ return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
191
+ }
192
+ function p(e) {
193
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
194
+ }
195
+ function m(e) {
196
+ return typeof e == "object" && !!e && e.$$typeof === g;
197
+ }
198
+ var h = n("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
199
+ return null;
200
+ };
201
+ h = { react_stack_bottom_frame: function(e) {
202
+ return e();
203
+ } };
204
+ var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
205
+ e.Fragment = v, e.jsx = function(e, t, n) {
206
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
207
+ return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
208
+ }, e.jsxs = function(e, t, n) {
209
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
210
+ return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
211
+ };
212
+ })();
213
+ })), c = (/* @__PURE__ */ t(((e, t) => {
214
+ t.exports = process.env.NODE_ENV === "production" ? o() : s();
215
+ })))();
216
+ function l(e) {
217
+ let { task: { id: t, title: n, state: r }, onArchiveTask: i, onTogglePinTask: a, onEditTitle: o, onDeleteTask: s } = e;
218
+ return /* @__PURE__ */ (0, c.jsxs)("div", {
219
+ className: `list-item ${r}`,
220
+ role: "listitem",
221
+ "aria-label": `task-${t}`,
222
+ children: [
223
+ /* @__PURE__ */ (0, c.jsxs)("label", {
224
+ htmlFor: "checked",
225
+ "aria-label": `archiveTask-${t}`,
226
+ className: "checkbox",
227
+ children: [/* @__PURE__ */ (0, c.jsx)("input", {
228
+ type: "checkbox",
229
+ disabled: !0,
230
+ name: "checked",
231
+ id: `archiveTask-${t}`,
232
+ checked: r === "TASK_ARCHIVED"
233
+ }), /* @__PURE__ */ (0, c.jsx)("span", {
234
+ className: "checkbox-custom",
235
+ onClick: () => i("ARCHIVE_TASK", t),
236
+ role: "button",
237
+ "aria-label": `archiveButton-${t}`
238
+ })]
239
+ }),
240
+ /* @__PURE__ */ (0, c.jsx)("label", {
241
+ htmlFor: "title",
242
+ "aria-label": n,
243
+ className: "title",
244
+ children: /* @__PURE__ */ (0, c.jsx)("input", {
245
+ type: "text",
246
+ value: n,
247
+ name: "title",
248
+ placeholder: "Input title",
249
+ style: { textOverflow: "ellipsis" },
250
+ onChange: (e) => o(e.target.value, t)
251
+ })
252
+ }),
253
+ /* @__PURE__ */ (0, c.jsx)("button", {
254
+ "aria-label": "delete",
255
+ className: "delete-button",
256
+ onClick: () => s(t),
257
+ children: /* @__PURE__ */ (0, c.jsx)("span", { className: "icon-trash" })
258
+ }),
259
+ r !== "TASK_ARCHIVED" && /* @__PURE__ */ (0, c.jsx)("button", {
260
+ className: "pin-button",
261
+ onClick: () => a(r, t),
262
+ id: `pinTask-${t}`,
263
+ "aria-label": r === "TASK_PINNED" ? "unpin" : "pin",
264
+ children: /* @__PURE__ */ (0, c.jsx)("span", { className: "icon-star" })
265
+ }, `pinTask-${t}`)
266
+ ]
267
+ });
268
+ }
269
+ //#endregion
270
+ //#region src/tasks/task-list.tsx
271
+ function u(e) {
272
+ let { loading: t = !1, tasks: n, onTogglePinTask: r, onArchiveTask: i, onEditTitle: a, onDeleteTask: o } = e, s = {
273
+ onTogglePinTask: r,
274
+ onArchiveTask: i,
275
+ onEditTitle: a,
276
+ onDeleteTask: o
277
+ }, u = /* @__PURE__ */ (0, c.jsxs)("div", {
278
+ className: "loading-item",
279
+ "data-testid": "loading-item",
280
+ children: [/* @__PURE__ */ (0, c.jsx)("span", { className: "glow-checkbox" }), /* @__PURE__ */ (0, c.jsxs)("span", {
281
+ className: "glow-text",
282
+ children: [
283
+ /* @__PURE__ */ (0, c.jsx)("span", { children: "Loading" }),
284
+ " ",
285
+ /* @__PURE__ */ (0, c.jsx)("span", { children: "cool" }),
286
+ " ",
287
+ /* @__PURE__ */ (0, c.jsx)("span", { children: "state" })
288
+ ]
289
+ })]
290
+ });
291
+ if (t) return /* @__PURE__ */ (0, c.jsxs)("div", {
292
+ className: "list-items",
293
+ "data-testid": "loading",
294
+ children: [
295
+ u,
296
+ u,
297
+ u,
298
+ u,
299
+ u,
300
+ u
301
+ ]
302
+ }, "loading");
303
+ if (n.length === 0) return /* @__PURE__ */ (0, c.jsx)("div", {
304
+ className: "list-items",
305
+ "data-testid": "empty",
306
+ children: /* @__PURE__ */ (0, c.jsxs)("div", {
307
+ className: "wrapper-message",
308
+ children: [
309
+ /* @__PURE__ */ (0, c.jsx)("span", { className: "icon-check" }),
310
+ /* @__PURE__ */ (0, c.jsx)("p", {
311
+ className: "title-message",
312
+ children: "You have no tasks"
313
+ }),
314
+ /* @__PURE__ */ (0, c.jsx)("p", {
315
+ className: "subtitle-message",
316
+ children: "Sit back and relax"
317
+ })
318
+ ]
319
+ })
320
+ }, "empty");
321
+ let d = [...n.filter((e) => e.state === "TASK_PINNED"), ...n.filter((e) => e.state !== "TASK_PINNED")];
322
+ return /* @__PURE__ */ (0, c.jsx)("div", {
323
+ className: "list-items",
324
+ "data-testid": "success",
325
+ role: "list",
326
+ "aria-label": "tasks",
327
+ children: d.map((e) => /* @__PURE__ */ (0, c.jsx)(l, {
328
+ task: e,
329
+ ...s
330
+ }, e.id))
331
+ }, "success");
332
+ }
333
+ //#endregion
334
+ //#region src/tasks/use-tasks.ts
335
+ var d = (e) => fetch("/tasks", e).then((e) => e.json()), f = (e, t, n) => e.map((e) => e.id === t ? {
336
+ ...e,
337
+ ...n
338
+ } : e), p = (e, t) => e.filter((e) => e.id !== t);
339
+ function m(e, t) {
340
+ switch (t.type) {
341
+ case "UPDATE_TASKS": return t.tasks;
342
+ case "ARCHIVE_TASK": return f(e, t.id, { state: "TASK_ARCHIVED" });
343
+ case "PIN_TASK": return f(e, t.id, { state: "TASK_PINNED" });
344
+ case "INBOX_TASK": return f(e, t.id, { state: "TASK_INBOX" });
345
+ case "DELETE_TASK": return p(e, t.id);
346
+ case "EDIT_TITLE": return f(e, t.id, { title: t.title });
347
+ default:
348
+ // c8 ignore next
349
+ return e;
350
+ }
351
+ }
352
+ function h() {
353
+ let [t, n] = e.useReducer(m, []);
354
+ return e.useEffect(() => {
355
+ let e = new AbortController(), t = e.signal;
356
+ return d({ signal: t }).then(({ tasks: e }) => {
357
+ n({
358
+ type: "UPDATE_TASKS",
359
+ tasks: e
360
+ });
361
+ }).catch((t) => {
362
+ // c8 ignore next 3 — requires a network-level fetch rejection, not an HTTP error response
363
+ e.signal.aborted || console.log(t);
364
+ }), () => {
365
+ e.abort();
366
+ };
367
+ }, []), [t, n];
368
+ }
369
+ //#endregion
370
+ //#region src/inbox/inbox.tsx
371
+ function g(e) {
372
+ let { error: t = "" } = e, [n, r] = h();
373
+ return t ? /* @__PURE__ */ (0, c.jsx)("div", {
374
+ className: "page lists-show",
375
+ children: /* @__PURE__ */ (0, c.jsxs)("div", {
376
+ className: "wrapper-message",
377
+ children: [
378
+ /* @__PURE__ */ (0, c.jsx)("span", { className: "icon-face-sad" }),
379
+ /* @__PURE__ */ (0, c.jsx)("p", {
380
+ className: "title-message",
381
+ children: "Oh no!"
382
+ }),
383
+ /* @__PURE__ */ (0, c.jsx)("p", {
384
+ className: "subtitle-message",
385
+ children: "Something went wrong"
386
+ })
387
+ ]
388
+ })
389
+ }) : /* @__PURE__ */ (0, c.jsxs)("div", {
390
+ className: "page lists-show",
391
+ children: [/* @__PURE__ */ (0, c.jsx)("nav", { children: /* @__PURE__ */ (0, c.jsx)("h1", {
392
+ className: "title-page",
393
+ children: "Taskbox"
394
+ }) }), /* @__PURE__ */ (0, c.jsx)(u, {
395
+ tasks: n,
396
+ onArchiveTask: (e, t) => {
397
+ r({
398
+ type: e,
399
+ id: t
400
+ });
401
+ },
402
+ onTogglePinTask: (e, t) => {
403
+ r({
404
+ type: e === "TASK_PINNED" ? "INBOX_TASK" : "PIN_TASK",
405
+ id: t
406
+ });
407
+ },
408
+ onEditTitle: (e, t) => {
409
+ r({
410
+ type: "EDIT_TITLE",
411
+ id: t,
412
+ title: e
413
+ });
414
+ },
415
+ onDeleteTask: (e) => {
416
+ r({
417
+ type: "DELETE_TASK",
418
+ id: e
419
+ });
420
+ }
421
+ })]
422
+ });
423
+ }
424
+ //#endregion
425
+ //#region src/login/login.tsx
426
+ function _(e) {
427
+ let { onSubmit: t, ...n } = e;
428
+ return /* @__PURE__ */ (0, c.jsxs)("form", {
429
+ className: "login-form-container",
430
+ onSubmit: (e) => {
431
+ e.preventDefault();
432
+ let n = Array.from(e.currentTarget.elements).reduce((e, t) => (t.name && (e[t.name] = t.value), e), {});
433
+ n.username && n.password ? t(n) : console.error("Both username and password are required.");
434
+ },
435
+ ...n,
436
+ children: [
437
+ /* @__PURE__ */ (0, c.jsx)("div", {
438
+ className: "login-form-wrapper",
439
+ children: /* @__PURE__ */ (0, c.jsxs)("div", {
440
+ role: "group",
441
+ className: "login-form-group",
442
+ children: [/* @__PURE__ */ (0, c.jsx)("label", {
443
+ htmlFor: "email",
444
+ id: "email-label",
445
+ className: "login-form-label",
446
+ children: "Email address"
447
+ }), /* @__PURE__ */ (0, c.jsx)("input", {
448
+ name: "username",
449
+ type: "email",
450
+ id: "username",
451
+ autoComplete: "email",
452
+ required: !0,
453
+ "aria-required": "true",
454
+ className: "login-form-input"
455
+ })]
456
+ })
457
+ }),
458
+ /* @__PURE__ */ (0, c.jsxs)("div", {
459
+ role: "group",
460
+ className: "login-form-group",
461
+ children: [/* @__PURE__ */ (0, c.jsx)("label", {
462
+ id: "password-label",
463
+ htmlFor: "password",
464
+ className: "login-form-label",
465
+ children: "Password"
466
+ }), /* @__PURE__ */ (0, c.jsx)("input", {
467
+ name: "password",
468
+ type: "password",
469
+ id: "password",
470
+ required: !0,
471
+ "aria-required": "true",
472
+ className: "login-form-input"
473
+ })]
474
+ }),
475
+ /* @__PURE__ */ (0, c.jsx)("button", {
476
+ type: "submit",
477
+ className: "submit-button",
478
+ children: "Sign in"
479
+ })
480
+ ]
481
+ });
482
+ }
483
+ function v(e) {
484
+ return /* @__PURE__ */ (0, c.jsx)("div", {
485
+ className: "page lists-show",
486
+ children: /* @__PURE__ */ (0, c.jsx)("div", {
487
+ className: "loginscreen",
488
+ children: /* @__PURE__ */ (0, c.jsxs)("div", {
489
+ className: "login-screen-container",
490
+ children: [/* @__PURE__ */ (0, c.jsxs)("header", {
491
+ className: "loginscreen-header",
492
+ children: [/* @__PURE__ */ (0, c.jsx)("h1", {
493
+ className: "loginscreen-heading",
494
+ children: "Taskbox"
495
+ }), /* @__PURE__ */ (0, c.jsx)("p", {
496
+ className: "loginscreen-text",
497
+ children: "Sign in to your account"
498
+ })]
499
+ }), /* @__PURE__ */ (0, c.jsx)(_, { onSubmit: e.onLogIn })]
500
+ })
501
+ })
502
+ });
503
+ }
504
+ //#endregion
505
+ export { g as Inbox, v as Login, _ as LoginForm, l as Task, u as TaskList, m as reducer, a as useAuth, h as useTasks };
506
+
507
+ //# sourceMappingURL=react-template.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react-template.es.js","names":[],"sources":["../src/auth/use-auth.ts","../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-runtime.js","../src/tasks/task.tsx","../src/tasks/task-list.tsx","../src/tasks/use-tasks.ts","../src/inbox/inbox.tsx","../src/login/login.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\n\nexport interface AuthOptions {\n\theaders?: { [key: string]: string };\n\tbody?: string;\n}\n\nexport interface User {\n\tid: string;\n\tname: string;\n\ttoken?: string;\n\t// [key: string]: any; // Allow any additional user properties\n}\n\nexport interface AuthResponse {\n\tuser: User;\n}\n\nfunction authenticate(options: AuthOptions): Promise<AuthResponse> {\n\treturn fetch(\"/authenticate\", {\n\t\tmethod: \"POST\",\n\t\t...options,\n\t}).then((res) => res.json());\n}\n\n// Define the action type for the reducer\ntype AuthAction = { type: \"LOG_IN\"; user: User } | { type: \"LOG_OUT\" };\n\n// Reducer function for managing user state\nfunction reducer(user: User | null, action: AuthAction): User | null {\n\tswitch (action.type) {\n\t\tcase \"LOG_IN\":\n\t\t\treturn action.user;\n\t\tcase \"LOG_OUT\":\n\t\t\treturn null;\n\t\tdefault:\n\t\t\treturn user;\n\t}\n}\n\n// Define the credentials type for login\nexport interface Credentials {\n\tusername: string;\n\tpassword: string;\n}\n\nexport function useAuth(): [User | null, (credentials: Credentials) => void] {\n\tconst [user, dispatch] = React.useReducer(reducer, null);\n\n\tconst logIn = ({ username, password }: Credentials) => {\n\t\tauthenticate({ body: JSON.stringify({ username, password }) })\n\t\t\t.then(({ user }) => {\n\t\t\t\tdispatch({ type: \"LOG_IN\", user });\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\tconsole.log(error);\n\t\t\t});\n\t};\n\n\treturn [user, logIn];\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","export interface TaskProps {\n\ttask: {\n\t\tid: string;\n\t\ttitle: string;\n\t\tstate: \"TASK_INBOX\" | \"TASK_PINNED\" | \"TASK_ARCHIVED\";\n\t};\n\tonArchiveTask: (archive: \"ARCHIVE_TASK\", id: string) => void;\n\tonTogglePinTask: (state: \"TASK_INBOX\" | \"TASK_PINNED\" | \"TASK_ARCHIVED\", id: string) => void;\n\tonEditTitle: (title: string, id: string) => void;\n\tonDeleteTask: (id: string) => void;\n}\n\nexport function Task (props: TaskProps) {\n\tconst {\n\t\ttask: { id, title, state },\n\t\tonArchiveTask,\n\t\tonTogglePinTask,\n\t\tonEditTitle,\n\t\tonDeleteTask,\n\t} = props;\n\n\treturn (\n\t\t<div className={`list-item ${state}`} role=\"listitem\" aria-label={`task-${id}`}>\n\t\t\t<label htmlFor=\"checked\" aria-label={`archiveTask-${id}`} className=\"checkbox\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tdisabled={true}\n\t\t\t\t\tname=\"checked\"\n\t\t\t\t\tid={`archiveTask-${id}`}\n\t\t\t\t\tchecked={state === \"TASK_ARCHIVED\"}\n\t\t\t\t/>\n\t\t\t\t<span\n\t\t\t\t\tclassName=\"checkbox-custom\"\n\t\t\t\t\tonClick={() => onArchiveTask(\"ARCHIVE_TASK\", id)}\n\t\t\t\t\trole=\"button\"\n\t\t\t\t\taria-label={`archiveButton-${id}`}\n\t\t\t\t/>\n\t\t\t</label>\n\n\t\t\t<label htmlFor=\"title\" aria-label={title} className=\"title\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tvalue={title}\n\t\t\t\t\tname=\"title\"\n\t\t\t\t\tplaceholder=\"Input title\"\n\t\t\t\t\tstyle={{ textOverflow: \"ellipsis\" }}\n\t\t\t\t\tonChange={(e) => onEditTitle(e.target.value, id)}\n\t\t\t\t/>\n\t\t\t</label>\n\t\t\t<button\n\t\t\t\taria-label=\"delete\"\n\t\t\t\tclassName=\"delete-button\"\n\t\t\t\tonClick={() => onDeleteTask(id)}\n\t\t\t>\n\t\t\t\t<span className=\"icon-trash\" />\n\t\t\t</button>\n\t\t\t{state !== \"TASK_ARCHIVED\" && (\n\t\t\t\t<button\n\t\t\t\t\tclassName=\"pin-button\"\n\t\t\t\t\tonClick={() => onTogglePinTask(state, id)}\n\t\t\t\t\tid={`pinTask-${id}`}\n\t\t\t\t\taria-label={state === \"TASK_PINNED\" ? \"unpin\" : \"pin\"}\n\t\t\t\t\tkey={`pinTask-${id}`}\n\t\t\t\t>\n\t\t\t\t\t<span className={`icon-star`} />\n\t\t\t\t</button>\n\t\t\t)}\n\t\t</div>\n\t);\n}\n","import { Task, type TaskProps } from \"./task\";\n\nexport interface TaskListProps {\n\tloading?: boolean;\n\ttasks: TaskProps[\"task\"][];\n\tonTogglePinTask: TaskProps[\"onTogglePinTask\"];\n\tonArchiveTask: TaskProps[\"onArchiveTask\"];\n\tonEditTitle: TaskProps[\"onEditTitle\"];\n\tonDeleteTask: TaskProps[\"onDeleteTask\"];\n}\n\nexport function TaskList(props: TaskListProps) {\n\tconst { loading = false, tasks, onTogglePinTask, onArchiveTask, onEditTitle, onDeleteTask } = props;\n\n\tconst events = {\n\t\tonTogglePinTask,\n\t\tonArchiveTask,\n\t\tonEditTitle,\n\t\tonDeleteTask,\n\t};\n\n\tconst LoadingRow = (\n\t\t<div className=\"loading-item\" data-testid=\"loading-item\">\n\t\t\t<span className=\"glow-checkbox\" />\n\t\t\t<span className=\"glow-text\">\n\t\t\t\t<span>Loading</span> <span>cool</span> <span>state</span>\n\t\t\t</span>\n\t\t</div>\n\t);\n\n\tif (loading) {\n\t\treturn (\n\t\t\t<div className=\"list-items\" data-testid=\"loading\" key=\"loading\">\n\t\t\t\t{LoadingRow}\n\t\t\t\t{LoadingRow}\n\t\t\t\t{LoadingRow}\n\t\t\t\t{LoadingRow}\n\t\t\t\t{LoadingRow}\n\t\t\t\t{LoadingRow}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (tasks.length === 0) {\n\t\treturn (\n\t\t\t<div className=\"list-items\" key={\"empty\"} data-testid=\"empty\">\n\t\t\t\t<div className=\"wrapper-message\">\n\t\t\t\t\t<span className=\"icon-check\" />\n\t\t\t\t\t<p className=\"title-message\">You have no tasks</p>\n\t\t\t\t\t<p className=\"subtitle-message\">Sit back and relax</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tconst tasksInOrder = [\n\t\t...tasks.filter((t) => t.state === \"TASK_PINNED\"),\n\t\t...tasks.filter((t) => t.state !== \"TASK_PINNED\"),\n\t];\n\n\treturn (\n\t\t<div className=\"list-items\" data-testid=\"success\" key={\"success\"} role=\"list\" aria-label=\"tasks\">\n\t\t\t{tasksInOrder.map((task) => (\n\t\t\t\t<Task key={task.id} task={task} {...events} />\n\t\t\t))}\n\t\t</div>\n\t);\n}\n","import * as React from \"react\";\n\ninterface Task {\n\tid: string;\n\ttitle: string;\n\tstate: \"TASK_INBOX\" | \"TASK_PINNED\" | \"TASK_ARCHIVED\";\n\t// [key: string]: any; // Allow any additional properties\n}\n\nexport interface TaskResponse {\n\ttasks: Task[];\n}\n\nconst getTasks = (options: RequestInit): Promise<TaskResponse> => fetch(\"/tasks\", options).then((res) => res.json());\n\nconst updateTask = (tasks: Task[], id: string, updatedTask: Partial<Task>): Task[] =>\n\ttasks.map((task) => (task.id === id ? { ...task, ...updatedTask } : task));\n\nconst deleteTask = (tasks: Task[], id: string): Task[] => tasks.filter((task) => task.id !== id);\n\nexport type TaskAction =\n\t| { type: \"UPDATE_TASKS\"; tasks: Task[] }\n\t| { type: \"ARCHIVE_TASK\"; id: string }\n\t| { type: \"PIN_TASK\"; id: string }\n\t| { type: \"INBOX_TASK\"; id: string }\n\t| { type: \"DELETE_TASK\"; id: string }\n\t| { type: \"EDIT_TITLE\"; id: string; title: string };\n\nexport function reducer(tasks: Task[], action: TaskAction): Task[] {\n\tswitch (action.type) {\n\t\tcase \"UPDATE_TASKS\":\n\t\t\treturn action.tasks;\n\t\tcase \"ARCHIVE_TASK\":\n\t\t\treturn updateTask(tasks, action.id, { state: \"TASK_ARCHIVED\" });\n\t\tcase \"PIN_TASK\":\n\t\t\treturn updateTask(tasks, action.id, { state: \"TASK_PINNED\" });\n\t\tcase \"INBOX_TASK\":\n\t\t\treturn updateTask(tasks, action.id, { state: \"TASK_INBOX\" });\n\t\tcase \"DELETE_TASK\":\n\t\t\treturn deleteTask(tasks, action.id);\n\t\tcase \"EDIT_TITLE\":\n\t\t\treturn updateTask(tasks, action.id, { title: action.title });\n\t\tdefault:\n\t\t\t// c8 ignore next\n\t\t\treturn tasks;\n\t}\n}\n\nexport function useTasks(): [Task[], React.Dispatch<TaskAction>] {\n\tconst [tasks, dispatch] = React.useReducer(reducer, []);\n\n\tReact.useEffect(() => {\n\t\tconst abortController = new AbortController();\n\t\tconst signal = abortController.signal;\n\n\t\tgetTasks({ signal })\n\t\t\t.then(({ tasks }) => {\n\t\t\t\tdispatch({ type: \"UPDATE_TASKS\", tasks });\n\t\t\t})\n\t\t\t.catch((error) => {\n\t\t\t\t// c8 ignore next 3 — requires a network-level fetch rejection, not an HTTP error response\n\t\t\t\tif (!abortController.signal.aborted) {\n\t\t\t\t\tconsole.log(error);\n\t\t\t\t}\n\t\t\t});\n\n\t\treturn () => {\n\t\t\tabortController.abort();\n\t\t};\n\t}, []);\n\n\treturn [tasks, dispatch];\n}\n","import { TaskList, useTasks } from \"../tasks\";\n\nexport interface InboxProps {\n\terror?: string;\n}\n\ntype TaskState = \"TASK_PINNED\" | \"TASK_INBOX\" | \"TASK_ARCHIVED\";\n\nexport function Inbox(props: InboxProps) {\n\tconst { error = \"\" } = props;\n\n\tconst [tasks, dispatch] = useTasks();\n\n\t// Archive or move the task back to inbox\n\tconst archiveTask = (actionType: \"ARCHIVE_TASK\" | \"INBOX_TASK\", id: string) => {\n\t\tdispatch({ type: actionType, id });\n\t};\n\n\t// Delete task by id\n\tconst deleteTask = (id: string) => {\n\t\tdispatch({ type: \"DELETE_TASK\", id });\n\t};\n\n\t// Toggle between pinning and unpinning the task\n\tconst togglePinTask = (state: TaskState, id: string) => {\n\t\tdispatch({\n\t\t\ttype: state === \"TASK_PINNED\" ? \"INBOX_TASK\" : \"PIN_TASK\",\n\t\t\tid,\n\t\t});\n\t};\n\n\t// Edit task title\n\tconst editTitle = (title: string, id: string) => {\n\t\tdispatch({ type: \"EDIT_TITLE\", id, title });\n\t};\n\n\tif (error) {\n\t\treturn (\n\t\t\t<div className=\"page lists-show\">\n\t\t\t\t<div className=\"wrapper-message\">\n\t\t\t\t\t<span className=\"icon-face-sad\" />\n\t\t\t\t\t<p className=\"title-message\">Oh no!</p>\n\t\t\t\t\t<p className=\"subtitle-message\">Something went wrong</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className=\"page lists-show\">\n\t\t\t<nav>\n\t\t\t\t<h1 className=\"title-page\">Taskbox</h1>\n\t\t\t</nav>\n\t\t\t<TaskList\n\t\t\t\ttasks={tasks}\n\t\t\t\tonArchiveTask={archiveTask}\n\t\t\t\tonTogglePinTask={togglePinTask}\n\t\t\t\tonEditTitle={editTitle}\n\t\t\t\tonDeleteTask={deleteTask}\n\t\t\t/>\n\t\t</div>\n\t);\n}\n","import \"./login.css\";\n\nimport type { Credentials } from \"../auth\";\n\nexport interface LoginFormProps {\n\tonSubmit: (formData: Credentials) => void;\n}\n\nexport function LoginForm(props: LoginFormProps) {\n\tconst { onSubmit, ...rest } = props;\n\n\treturn (\n\t\t<form\n\t\t\tclassName=\"login-form-container\"\n\t\t\tonSubmit={(event) => {\n\t\t\t\tevent.preventDefault();\n\t\t\t\tconst elementsArray = Array.from(event.currentTarget.elements) as HTMLInputElement[];\n\t\t\t\tconst formData = elementsArray.reduce((acc: Partial<Credentials>, elem: HTMLInputElement) => {\n\t\t\t\t\tif (elem.name) {\n\t\t\t\t\t\tacc[elem.name as keyof Credentials] = elem.value;\n\t\t\t\t\t}\n\t\t\t\t\treturn acc;\n\t\t\t\t}, {} as Partial<Credentials>);\n\n\t\t\t\t// Ensure `formData` includes both `username` and `password` before calling `onSubmit`\n\t\t\t\tif (formData.username && formData.password) {\n\t\t\t\t\tonSubmit(formData as Credentials); // Type assertion to `Credentials`\n\t\t\t\t} else {\n\t\t\t\t\tconsole.error(\"Both username and password are required.\");\n\t\t\t\t}\n\t\t\t}}\n\t\t\t{...rest}\n\t\t>\n\t\t\t<div className=\"login-form-wrapper\">\n\t\t\t\t<div role=\"group\" className=\"login-form-group\">\n\t\t\t\t\t<label htmlFor=\"email\" id=\"email-label\" className=\"login-form-label\">\n\t\t\t\t\t\tEmail address\n\t\t\t\t\t</label>\n\t\t\t\t\t<input\n\t\t\t\t\t\tname=\"username\"\n\t\t\t\t\t\ttype=\"email\"\n\t\t\t\t\t\tid=\"username\"\n\t\t\t\t\t\tautoComplete=\"email\"\n\t\t\t\t\t\trequired\n\t\t\t\t\t\taria-required=\"true\"\n\t\t\t\t\t\tclassName=\"login-form-input\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div role=\"group\" className=\"login-form-group\">\n\t\t\t\t<label id=\"password-label\" htmlFor=\"password\" className=\"login-form-label\">\n\t\t\t\t\tPassword\n\t\t\t\t</label>\n\t\t\t\t<input\n\t\t\t\t\tname=\"password\"\n\t\t\t\t\ttype=\"password\"\n\t\t\t\t\tid=\"password\"\n\t\t\t\t\trequired\n\t\t\t\t\taria-required=\"true\"\n\t\t\t\t\tclassName=\"login-form-input\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t<button type=\"submit\" className=\"submit-button\">\n\t\t\t\tSign in\n\t\t\t</button>\n\t\t</form>\n\t);\n}\n\nexport interface LoginProps {\n\tonLogIn: (credentials: Credentials) => void;\n}\n\nexport function Login(props: LoginProps) {\n\treturn (\n\t\t<div className=\"page lists-show\">\n\t\t\t<div className=\"loginscreen\">\n\t\t\t\t<div className=\"login-screen-container\">\n\t\t\t\t\t<header className=\"loginscreen-header\">\n\t\t\t\t\t\t<h1 className=\"loginscreen-heading\">Taskbox</h1>\n\t\t\t\t\t\t<p className=\"loginscreen-text\">Sign in to your account</p>\n\t\t\t\t\t</header>\n\t\t\t\t\t<LoginForm onSubmit={props.onLogIn} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n"],"x_google_ignoreList":[1,2,3],"mappings":";;;;;;;;AAoBA,SAAS,EAAa,GAA6C;CAClE,OAAO,MAAM,iBAAiB;EAC7B,QAAQ;EACR,GAAG;CACJ,CAAC,CAAC,CAAC,MAAM,MAAQ,EAAI,KAAK,CAAC;AAC5B;AAMA,SAAS,EAAQ,GAAmB,GAAiC;CACpE,QAAQ,EAAO,MAAf;EACC,KAAK,UACJ,OAAO,EAAO;EACf,KAAK,WACJ,OAAO;EACR,SACC,OAAO;CACT;AACD;AAQA,SAAgB,IAA6D;CAC5E,IAAM,CAAC,GAAM,KAAY,EAAM,WAAW,GAAS,IAAI;CAYvD,OAAO,CAAC,IAVO,EAAE,aAAU,kBAA4B;EACtD,EAAa,EAAE,MAAM,KAAK,UAAU;GAAE;GAAU;EAAS,CAAC,EAAE,CAAC,CAAC,CAC5D,MAAM,EAAE,cAAW;GACnB,EAAS;IAAE,MAAM;IAAU;GAAK,CAAC;EAClC,CAAC,CAAC,CACD,OAAO,MAAU;GACjB,QAAQ,IAAI,CAAK;EAClB,CAAC;CACH,CAEmB;AACpB;;;;CCnDA,IAAI,IAAqB,OAAO,IAAI,4BAA4B,GAC9D,IAAsB,OAAO,IAAI,gBAAgB;CACnD,SAAS,EAAQ,GAAM,GAAQ,GAAU;EACvC,IAAI,IAAM;EAGV,IAFW,MAAX,KAAK,MAAmB,IAAM,KAAK,IACxB,EAAO,QAAlB,KAAK,MAAqB,IAAM,KAAK,EAAO,MACxC,SAAS,GAEX,KAAK,IAAI,KADT,IAAW,CAAC,GACS,GACnB,AAAU,MAAV,UAAuB,EAAS,KAAY,EAAO;OAChD,IAAW;EAElB,OADA,IAAS,EAAS,KACX;GACL,UAAU;GAC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K;IAAS,WAAU;IAAgB,UAAA;GAExC,CAAA;EACH;;AAER;AAMA,SAAgB,EAAM,GAAmB;CACxC,OACC,iBAAA,GAAA,EAAA,IAAA,CAAC,OAAD;EAAK,WAAU;EACd,UAAA,iBAAA,GAAA,EAAA,IAAA,CAAC,OAAD;GAAK,WAAU;GACd,UAAA,iBAAA,GAAA,EAAA,KAAA,CAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACC,iBAAA,GAAA,EAAA,KAAA,CAAC,UAAD;KAAQ,WAAU;KAAlB,UAAA,CACC,iBAAA,GAAA,EAAA,IAAA,CAAC,MAAD;MAAI,WAAU;MAAsB,UAAA;KAAW,CAAA,GAC/C,iBAAA,GAAA,EAAA,IAAA,CAAC,KAAD;MAAG,WAAU;MAAmB,UAAA;KAA0B,CAAA,CACnD;IACR,CAAA,GAAA,iBAAA,GAAA,EAAA,IAAA,CAAC,GAAD,EAAW,UAAU,EAAM,QAAU,CAAA,CACjC;;EACD,CAAA;CACD,CAAA;AAEP"}
package/dist/react.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>