create-waku 0.6.2 → 0.6.3

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.
Files changed (97) hide show
  1. package/package.json +5 -3
  2. package/template/01_counter/package.json +4 -4
  3. package/template/02_async/package.json +4 -4
  4. package/template/03_promise/package.json +4 -4
  5. package/template/04_callserver/package.json +4 -4
  6. package/template/05_mutation/package.json +4 -4
  7. package/template/06_nesting/package.json +4 -4
  8. package/template/07_router/package.json +4 -4
  9. package/template/08_cookies/db/items.json +12 -0
  10. package/template/08_cookies/package.json +4 -4
  11. package/template/08_cookies/src/components/App.tsx +2 -1
  12. package/template/08_cookies/src/entries.tsx +13 -1
  13. package/template/09_cssmodules/package.json +4 -4
  14. package/template/10_dynamicroute/package.json +4 -4
  15. package/template/11_form/package.json +4 -4
  16. package/template/01_counter/dist/components/App.js +0 -6
  17. package/template/01_counter/dist/components/Counter.js +0 -7
  18. package/template/01_counter/dist/entries.js +0 -32
  19. package/template/01_counter/dist/main.js +0 -11
  20. package/template/02_async/dist/components/App.js +0 -13
  21. package/template/02_async/dist/components/Counter.js +0 -7
  22. package/template/02_async/dist/entries.js +0 -32
  23. package/template/02_async/dist/main.js +0 -11
  24. package/template/03_promise/dist/components/App.js +0 -9
  25. package/template/03_promise/dist/components/Counter.js +0 -8
  26. package/template/03_promise/dist/entries.js +0 -32
  27. package/template/03_promise/dist/main.js +0 -11
  28. package/template/04_callserver/dist/components/App.js +0 -7
  29. package/template/04_callserver/dist/components/Counter.js +0 -15
  30. package/template/04_callserver/dist/components/TextBox.js +0 -6
  31. package/template/04_callserver/dist/components/funcs.js +0 -2
  32. package/template/04_callserver/dist/entries.js +0 -32
  33. package/template/04_callserver/dist/main.js +0 -11
  34. package/template/05_mutation/dist/components/App.js +0 -8
  35. package/template/05_mutation/dist/components/Counter.js +0 -13
  36. package/template/05_mutation/dist/components/funcs.js +0 -9
  37. package/template/05_mutation/dist/entries.js +0 -32
  38. package/template/05_mutation/dist/main.js +0 -11
  39. package/template/06_nesting/dist/components/App.js +0 -6
  40. package/template/06_nesting/dist/components/Counter.js +0 -24
  41. package/template/06_nesting/dist/components/InnerApp.js +0 -6
  42. package/template/06_nesting/dist/entries.js +0 -46
  43. package/template/06_nesting/dist/main.js +0 -11
  44. package/template/07_router/dist/node/tsconfig.node.tsbuildinfo +0 -1
  45. package/template/07_router/dist/node/vite.config.d.ts +0 -15
  46. package/template/07_router/dist/node/vite.config.js +0 -19
  47. package/template/07_router/dist/src/components/Counter.d.ts +0 -1
  48. package/template/07_router/dist/src/components/Counter.js +0 -8
  49. package/template/07_router/dist/src/components/ErrorBoundary.d.ts +0 -7
  50. package/template/07_router/dist/src/components/ErrorBoundary.js +0 -17
  51. package/template/07_router/dist/src/entries.d.ts +0 -6
  52. package/template/07_router/dist/src/entries.js +0 -29
  53. package/template/07_router/dist/src/main.d.ts +0 -1
  54. package/template/07_router/dist/src/main.js +0 -12
  55. package/template/07_router/dist/src/routes/bar/page.d.ts +0 -2
  56. package/template/07_router/dist/src/routes/bar/page.js +0 -4
  57. package/template/07_router/dist/src/routes/foo/page.d.ts +0 -2
  58. package/template/07_router/dist/src/routes/foo/page.js +0 -4
  59. package/template/07_router/dist/src/routes/layout.d.ts +0 -5
  60. package/template/07_router/dist/src/routes/layout.js +0 -9
  61. package/template/07_router/dist/src/routes/nested/baz/page.d.ts +0 -2
  62. package/template/07_router/dist/src/routes/nested/baz/page.js +0 -3
  63. package/template/07_router/dist/src/routes/nested/layout.d.ts +0 -5
  64. package/template/07_router/dist/src/routes/nested/layout.js +0 -4
  65. package/template/07_router/dist/src/routes/nested/qux/page.d.ts +0 -2
  66. package/template/07_router/dist/src/routes/nested/qux/page.js +0 -3
  67. package/template/07_router/dist/src/routes/page.d.ts +0 -2
  68. package/template/07_router/dist/src/routes/page.js +0 -3
  69. package/template/07_router/dist/tsconfig.tsbuildinfo +0 -1
  70. package/template/08_cookies/dist/components/App.js +0 -8
  71. package/template/08_cookies/dist/components/Counter.js +0 -7
  72. package/template/08_cookies/dist/entries.js +0 -35
  73. package/template/08_cookies/dist/main.js +0 -11
  74. package/template/09_cssmodules/dist/components/App.js +0 -8
  75. package/template/09_cssmodules/dist/components/Counter.js +0 -7
  76. package/template/09_cssmodules/dist/entries.js +0 -32
  77. package/template/09_cssmodules/dist/main.js +0 -11
  78. package/template/10_dynamicroute/dist/node/tsconfig.node.tsbuildinfo +0 -1
  79. package/template/10_dynamicroute/dist/node/vite.config.d.ts +0 -15
  80. package/template/10_dynamicroute/dist/node/vite.config.js +0 -19
  81. package/template/10_dynamicroute/dist/src/entries.d.ts +0 -6
  82. package/template/10_dynamicroute/dist/src/entries.js +0 -61
  83. package/template/10_dynamicroute/dist/src/main.d.ts +0 -1
  84. package/template/10_dynamicroute/dist/src/main.js +0 -11
  85. package/template/10_dynamicroute/dist/src/routes/[name]/page.d.ts +0 -4
  86. package/template/10_dynamicroute/dist/src/routes/[name]/page.js +0 -3
  87. package/template/10_dynamicroute/dist/src/routes/layout.d.ts +0 -5
  88. package/template/10_dynamicroute/dist/src/routes/layout.js +0 -4
  89. package/template/10_dynamicroute/dist/src/routes/page.d.ts +0 -2
  90. package/template/10_dynamicroute/dist/src/routes/page.js +0 -3
  91. package/template/10_dynamicroute/dist/tsconfig.tsbuildinfo +0 -1
  92. package/template/11_form/dist/components/App.js +0 -8
  93. package/template/11_form/dist/components/Counter.js +0 -13
  94. package/template/11_form/dist/components/Form.js +0 -10
  95. package/template/11_form/dist/components/funcs.js +0 -10
  96. package/template/11_form/dist/entries.js +0 -32
  97. package/template/11_form/dist/main.js +0 -11
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { lazy } from 'react';
3
- import { defineEntries } from 'waku/server';
4
- import { Slot } from 'waku/client';
5
- const App = lazy(() => import('./components/App.js'));
6
- export default defineEntries(
7
- // renderEntries
8
- async (input) => {
9
- return {
10
- App: _jsx(App, { name: input || 'Waku' }),
11
- };
12
- },
13
- // getBuildConfig
14
- async () => {
15
- return {
16
- '/': {
17
- entries: [['']],
18
- },
19
- };
20
- },
21
- // getSsrConfig
22
- async (pathStr) => {
23
- switch (pathStr) {
24
- case '/':
25
- return {
26
- input: '',
27
- unstable_render: () => _jsx(Slot, { id: "App" }),
28
- };
29
- default:
30
- return null;
31
- }
32
- });
@@ -1,11 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { StrictMode } from 'react';
3
- import { createRoot, hydrateRoot } from 'react-dom/client';
4
- import { Root, Slot } from 'waku/client';
5
- const rootElement = (_jsx(StrictMode, { children: _jsx(Root, { children: _jsx(Slot, { id: "App" }) }) }));
6
- if (globalThis.__WAKU_SSR_ENABLED__) {
7
- hydrateRoot(document.getElementById('root'), rootElement);
8
- }
9
- else {
10
- createRoot(document.getElementById('root')).render(rootElement);
11
- }