@atom.io/template-react-node-backend 0.0.48 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>vite-react</title>
8
- <script type="module" crossorigin src="/assets/index-xEiwt4mJ.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-CqTfTEH3.css">
8
+ <script type="module" crossorigin src="/assets/index-Cvh7dANX.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-BQGFgLeJ.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/eslint.config.ts CHANGED
@@ -144,7 +144,9 @@ const commonRules = {
144
144
  "@typescript-eslint/unbound-method": 0,
145
145
  "@typescript-eslint/unified-signatures": ERROR,
146
146
 
147
+ "atom.io/exact-catch-types": ERROR,
147
148
  "atom.io/explicit-state-types": ERROR,
149
+ "atom.io/naming-convention": ERROR,
148
150
 
149
151
  "import/newline-after-import": ERROR,
150
152
  "import/no-duplicates": ERROR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom.io/template-react-node-backend",
3
- "version": "0.0.48",
3
+ "version": "0.0.50",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -17,19 +17,19 @@
17
17
  "atom.io": "0.46.24"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/node": "25.2.2",
21
- "@types/react": "19.2.13",
20
+ "@types/node": "25.4.0",
21
+ "@types/react": "19.2.14",
22
22
  "@types/react-dom": "19.2.3",
23
- "@vitejs/plugin-react": "5.1.3",
23
+ "@vitejs/plugin-react": "5.1.4",
24
24
  "babel-plugin-react-compiler": "1.0.0",
25
25
  "concurrently": "9.2.1",
26
- "eslint": "10.0.0",
26
+ "eslint": "10.0.3",
27
27
  "eslint-plugin-react-hooks": "7.0.1",
28
- "eslint-plugin-react-refresh": "0.5.0",
29
- "globals": "17.3.0",
28
+ "eslint-plugin-react-refresh": "0.5.2",
29
+ "globals": "17.4.0",
30
30
  "typescript": "5.9.3",
31
- "typescript-eslint": "8.55.0",
32
- "vite": "npm:rolldown-vite@7.3.1"
31
+ "typescript-eslint": "8.57.0",
32
+ "vite": "7.3.1"
33
33
  },
34
34
  "scripts": {
35
35
  "dev": "concurrently vite ./node/server.ts ./node/authenticator.ts",
package/src/App.tsx CHANGED
@@ -58,7 +58,7 @@ const todoKeysAtom = atom<Loadable<number[]>, Error>({
58
58
  * when the atom has never been gotten or set before.
59
59
  */
60
60
  const todoAtoms = atomFamily<Loadable<Todo>, number, Error>({
61
- key: `todos`,
61
+ key: `todo`,
62
62
  default: async (id) => {
63
63
  const url = new URL(`/todos`, SERVER_URL)
64
64
  url.searchParams.set(`id`, id.toString())
@@ -243,7 +243,7 @@ function Todo({ todoKey }: { todoKey: number }): React.JSX.Element {
243
243
 
244
244
  /** This atom holds the text of the new todo entry. */
245
245
  const newTodoTextAtom = atom<string>({
246
- key: `newTodo`,
246
+ key: `newTodoText`,
247
247
  default: ``,
248
248
  })
249
249
  function NewTodo(): React.JSX.Element {
@@ -1 +0,0 @@
1
- :root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:#ffffffde;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#242424;font-family:Charter,serif;font-weight:400;line-height:1.5}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}a{color:#646cff;-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:500}a:hover{color:#535bf2}body{flex-flow:column;place-items:center;min-width:320px;min-height:100vh;margin:0;display:flex}body #root{flex-flow:column;place-items:center;width:100%;height:100%;display:flex}body #root>header{z-index:100;box-sizing:border-box;justify-content:flex-end;align-items:center;gap:10px;width:100%;padding:20px;display:flex;position:fixed;top:0;left:0}body #root>header>.spacer{flex-grow:1}body #root>header>.pfp{border:1px solid #ccc3;border-radius:50%;place-content:center;place-items:center;width:40px;height:40px;display:flex;position:relative}body #root>header>.pfp.signed-in:before{content:"👤"}body #root>main{flex-direction:column;gap:10px;width:100%;max-width:600px;height:100%;display:flex;position:relative}body #root>main>header{flex-flow:column;justify-content:flex-end;height:200px;display:flex}body #root>main>header>h1{margin:0;padding:0;font-size:72px;line-height:72px}body #root>main>main{flex-flow:column;gap:5px;height:100%;display:flex;position:relative}body #root>main>main>.todo{box-sizing:border-box;text-align:center;border:1px solid #ccc3;flex-flow:row;place-items:center;gap:5px;width:100%;height:29px;padding:0 3px;font-size:18px;display:flex;position:relative}body #root>main>main>.todo>span,body #root>main>main>.todo input[type=text]{text-align:left;flex-grow:1;font-family:Charter,serif;font-size:18px}body #root>main>main>.todo>button.delete:disabled{opacity:.5;background:0 0}body #root>main>main>.todo>button.delete:after{content:"×"}body #root>.takeover{z-index:100;box-sizing:border-box;background-color:#00000080;place-content:center;place-items:center;width:100svw;height:100svh;padding-bottom:60px;display:flex;position:fixed;top:0;left:0}body #root>.takeover>main.card{background-color:#444;flex-direction:column;place-items:center;gap:10px;display:flex}@media (prefers-color-scheme:light){body #root>.takeover>main.card{background-color:#fff}}body #root>.takeover>main.card{border-radius:8px;width:100%;max-width:200px;padding:20px}.loading{background:linear-gradient(90deg,#7773,#7771,#7773) 0 0/200% 100%;animation:4s ease-in-out infinite pulse}.loading:after{content:"⏳";color:#fff;font-size:10px;position:absolute;top:-5px;right:-5px}button{border:1px solid #0000;border-radius:8px}@keyframes pulse{0%{background-position:200% 0}50%{background-position:0 0}to{background-position:200% 0}}