@quilted/create 0.2.20 → 0.2.21
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/CHANGELOG.md +6 -0
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +1 -1
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +1 -1
- package/package.json +1 -1
- package/templates/app-basic/App.tsx +2 -2
- package/templates/app-basic/browser.tsx +3 -3
- package/templates/app-basic/foundation/frame/Frame.tsx +2 -2
- package/templates/app-basic/foundation/html/HTML.tsx +3 -2
- package/templates/app-basic/package.json +0 -2
- package/templates/app-basic/tsconfig.json +1 -0
- package/templates/app-empty/browser.tsx +2 -2
- package/templates/app-empty/package.json +0 -2
- package/templates/app-graphql/App.tsx +2 -2
- package/templates/app-graphql/browser.tsx +3 -3
- package/templates/app-graphql/foundation/frame/Frame.tsx +2 -2
- package/templates/app-graphql/foundation/html/HTML.tsx +2 -2
- package/templates/app-graphql/package.json +0 -2
- package/templates/app-trpc/App.tsx +2 -2
- package/templates/app-trpc/browser.tsx +4 -3
- package/templates/app-trpc/foundation/frame/Frame.tsx +2 -2
- package/templates/app-trpc/foundation/html/HTML.tsx +2 -2
- package/templates/app-trpc/package.json +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @quilted/create
|
|
2
2
|
|
|
3
|
+
## 0.2.21
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`eaf0c45`](https://github.com/lemonmade/quilt/commit/eaf0c457f49c9bb60e854e42ffd35df4af59304f) Thanks [@lemonmade](https://github.com/lemonmade)! - Update templates
|
|
8
|
+
|
|
3
9
|
## 0.2.20
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -2,9 +2,9 @@ import { __exports as out } from '../../../../../../../_virtual/index5.mjs';
|
|
|
2
2
|
import './providers/async.mjs';
|
|
3
3
|
import './providers/sync.mjs';
|
|
4
4
|
import './settings.mjs';
|
|
5
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
6
|
-
import { __exports as async$1 } from '../../../../../../../_virtual/
|
|
7
|
-
import { __exports as sync$1 } from '../../../../../../../_virtual/
|
|
5
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
|
|
6
|
+
import { __exports as async$1 } from '../../../../../../../_virtual/async3.mjs';
|
|
7
|
+
import { __exports as sync$1 } from '../../../../../../../_virtual/sync3.mjs';
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(out, "__esModule", {
|
|
10
10
|
value: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
|
|
2
2
|
import './adapters/fs.mjs';
|
|
3
3
|
import { __exports as fs$1 } from '../../../../../../../_virtual/fs2.mjs';
|
|
4
4
|
|
|
@@ -3,10 +3,10 @@ import './providers/async.mjs';
|
|
|
3
3
|
import './providers/stream.mjs';
|
|
4
4
|
import './providers/sync.mjs';
|
|
5
5
|
import './settings.mjs';
|
|
6
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
7
|
-
import { __exports as async } from '../../../../../../../_virtual/
|
|
6
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
|
|
7
|
+
import { __exports as async } from '../../../../../../../_virtual/async4.mjs';
|
|
8
8
|
import { __exports as stream } from '../../../../../../../_virtual/stream4.mjs';
|
|
9
|
-
import { __exports as sync } from '../../../../../../../_virtual/
|
|
9
|
+
import { __exports as sync } from '../../../../../../../_virtual/sync4.mjs';
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(out, "__esModule", {
|
|
12
12
|
value: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as async } from '../../../../../../../../_virtual/
|
|
1
|
+
import { __exports as async } from '../../../../../../../../_virtual/async4.mjs';
|
|
2
2
|
import '../readers/async.mjs';
|
|
3
3
|
import { __exports as async$1 } from '../../../../../../../../_virtual/async5.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as sync } from '../../../../../../../../_virtual/
|
|
1
|
+
import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
|
|
2
2
|
import '../readers/sync.mjs';
|
|
3
3
|
import { __exports as sync$1 } from '../../../../../../../../_virtual/sync5.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as settings } from '../../../../../../../_virtual/
|
|
1
|
+
import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
|
|
2
2
|
import path__default from 'node:path';
|
|
3
3
|
import '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
|
|
4
4
|
import { __exports as out } from '../../../../../../../_virtual/index6.mjs';
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import {Routing, useRoutes} from '@quilted/quilt/navigate';
|
|
4
4
|
import {Localization, useLocaleFromEnvironment} from '@quilted/quilt/localize';
|
|
@@ -42,7 +42,7 @@ function Routes() {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// This component renders any app-wide context.
|
|
45
|
-
function AppContext({children, context}:
|
|
45
|
+
function AppContext({children, context}: RenderableProps<AppProps>) {
|
|
46
46
|
const locale = useLocaleFromEnvironment() ?? 'en';
|
|
47
47
|
|
|
48
48
|
return (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@quilted/quilt/globals';
|
|
2
|
-
import {
|
|
2
|
+
import {hydrate} from 'preact';
|
|
3
3
|
import {Browser, BrowserContext} from '@quilted/quilt/browser';
|
|
4
4
|
|
|
5
5
|
import {App} from './App.tsx';
|
|
@@ -7,9 +7,9 @@ import {App} from './App.tsx';
|
|
|
7
7
|
const element = document.querySelector('#app')!;
|
|
8
8
|
const browser = new Browser();
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
element,
|
|
10
|
+
hydrate(
|
|
12
11
|
<BrowserContext browser={browser}>
|
|
13
12
|
<App />
|
|
14
13
|
</BrowserContext>,
|
|
14
|
+
element,
|
|
15
15
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import styles from './Frame.module.css';
|
|
4
4
|
|
|
5
|
-
export function Frame({children}:
|
|
5
|
+
export function Frame({children}: RenderableProps<{}>) {
|
|
6
6
|
return <div className={styles.Frame}>{children}</div>;
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
|
+
import Env from '@quilted/quilt/env';
|
|
2
3
|
import {Title, Favicon, useBrowserRequest} from '@quilted/quilt/browser';
|
|
3
4
|
import {
|
|
4
5
|
CacheControl,
|
|
@@ -16,7 +17,7 @@ import {
|
|
|
16
17
|
// application you can read that state.
|
|
17
18
|
//
|
|
18
19
|
// @see https://github.com/lemonmade/quilt/blob/main/documentation/features/html.md
|
|
19
|
-
export function HTML({children}:
|
|
20
|
+
export function HTML({children}: RenderableProps<{}>) {
|
|
20
21
|
return (
|
|
21
22
|
<>
|
|
22
23
|
<Headers />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import {Routing, useRoutes} from '@quilted/quilt/navigate';
|
|
4
4
|
import {Localization, useLocaleFromEnvironment} from '@quilted/quilt/localize';
|
|
@@ -45,7 +45,7 @@ function Routes() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// This component renders any app-wide context.
|
|
48
|
-
function AppContext({children, context}:
|
|
48
|
+
function AppContext({children, context}: RenderableProps<AppProps>) {
|
|
49
49
|
const locale = useLocaleFromEnvironment() ?? 'en';
|
|
50
50
|
|
|
51
51
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@quilted/quilt/globals';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import {hydrate} from 'preact';
|
|
4
4
|
import {QueryClient} from '@tanstack/react-query';
|
|
5
5
|
import {createGraphQLFetch} from '@quilted/quilt/graphql';
|
|
6
6
|
import {Browser, BrowserContext} from '@quilted/quilt/browser';
|
|
@@ -13,9 +13,9 @@ const browser = new Browser();
|
|
|
13
13
|
const queryClient = new QueryClient();
|
|
14
14
|
const fetchGraphQL = createGraphQLFetch({url: '/api/graphql'});
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
element,
|
|
16
|
+
hydrate(
|
|
18
17
|
<BrowserContext browser={browser}>
|
|
19
18
|
<App context={{fetchGraphQL, queryClient}} />
|
|
20
19
|
</BrowserContext>,
|
|
20
|
+
element,
|
|
21
21
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import styles from './Frame.module.css';
|
|
4
4
|
|
|
5
|
-
export function Frame({children}:
|
|
5
|
+
export function Frame({children}: RenderableProps<{}>) {
|
|
6
6
|
return <div className={styles.Frame}>{children}</div>;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
import {Title, Favicon, useBrowserRequest} from '@quilted/quilt/browser';
|
|
3
3
|
import {
|
|
4
4
|
CacheControl,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
// application you can read that state.
|
|
17
17
|
//
|
|
18
18
|
// @see https://github.com/lemonmade/quilt/blob/main/documentation/features/html.md
|
|
19
|
-
export function HTML({children}:
|
|
19
|
+
export function HTML({children}: RenderableProps<{}>) {
|
|
20
20
|
return (
|
|
21
21
|
<>
|
|
22
22
|
<Headers />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import {Routing, useRoutes} from '@quilted/quilt/navigate';
|
|
4
4
|
import {Localization, useLocaleFromEnvironment} from '@quilted/quilt/localize';
|
|
@@ -45,7 +45,7 @@ function Routes() {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// This component renders any app-wide context.
|
|
48
|
-
function AppContext({children, context}:
|
|
48
|
+
function AppContext({children, context}: RenderableProps<AppProps>) {
|
|
49
49
|
const locale = useLocaleFromEnvironment() ?? 'en';
|
|
50
50
|
|
|
51
51
|
return (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '@quilted/quilt/globals';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import {hydrate} from 'preact';
|
|
3
4
|
import {httpBatchLink} from '@trpc/client';
|
|
4
5
|
import {QueryClient} from '@tanstack/react-query';
|
|
5
6
|
import {Browser, BrowserContext} from '@quilted/quilt/browser';
|
|
@@ -16,9 +17,9 @@ const trpcClient = trpc.createClient({
|
|
|
16
17
|
links: [httpBatchLink({url: new URL('/api', window.location.href).href})],
|
|
17
18
|
});
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
element,
|
|
20
|
+
hydrate(
|
|
21
21
|
<BrowserContext browser={browser}>
|
|
22
22
|
<App context={{trpc: trpcClient, queryClient}} />
|
|
23
23
|
</BrowserContext>,
|
|
24
|
+
element,
|
|
24
25
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
|
|
3
3
|
import styles from './Frame.module.css';
|
|
4
4
|
|
|
5
|
-
export function Frame({children}:
|
|
5
|
+
export function Frame({children}: RenderableProps<{}>) {
|
|
6
6
|
return <div className={styles.Frame}>{children}</div>;
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {RenderableProps} from 'preact';
|
|
2
2
|
import {Title, Favicon, useBrowserRequest} from '@quilted/quilt/browser';
|
|
3
3
|
import {
|
|
4
4
|
CacheControl,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
// application you can read that state.
|
|
17
17
|
//
|
|
18
18
|
// @see https://github.com/lemonmade/quilt/blob/main/documentation/features/html.md
|
|
19
|
-
export function HTML({children}:
|
|
19
|
+
export function HTML({children}: RenderableProps<{}>) {
|
|
20
20
|
return (
|
|
21
21
|
<>
|
|
22
22
|
<Headers />
|