@kayjs/kay 1.104.1 → 1.104.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.
- package/README.md +2 -7
- package/dist/eslint.js +208 -34
- package/editors/zed/extension.toml +2 -2
- package/llms/check-and-tools.md +5 -3
- package/llms/code-lints.md +1 -0
- package/llms/components.md +1 -1
- package/llms/islands.md +1 -1
- package/llms/project-new-and-add.md +5 -5
- package/llms/project.md +1 -2
- package/llms/styles-and-assets.md +1 -1
- package/llms/testing-browser.md +1 -0
- package/llms/upgrading.md +4 -0
- package/llms/whats-new-archive.md +17 -1
- package/llms/whats-new.md +20 -17
- package/llms.txt +1 -1
- package/package.json +9 -7
- package/src/add.ts +2 -0
- package/src/build/class-rules.ts +8 -0
- package/src/build/client.ts +9 -6
- package/src/build/recipe-classes.ts +11 -1
- package/src/build/recipe-utilities.ts +183 -0
- package/src/build/signals.ts +113 -14
- package/src/build/style-uses.ts +7 -6
- package/src/build/styles.ts +32 -21
- package/src/build/supports.ts +4 -4
- package/src/check/removed-ui-tokens.ts +2 -2
- package/src/check/shadow-types.ts +2 -0
- package/src/check/text-size-colour.ts +57 -0
- package/src/commands/new.ts +17 -7
- package/src/commands/upgrade-majors.ts +26 -0
- package/src/commands/upgrade-manifest.ts +23 -0
- package/src/commands/upgrade-messages.ts +16 -0
- package/src/commands/upgrade-peers.ts +89 -0
- package/src/commands/upgrade.ts +68 -36
- package/src/compiler/codegen.ts +1 -1
- package/src/compiler/dom.ts +12 -1
- package/src/compiler/index.ts +32 -17
- package/src/compiler/island-cause.ts +5 -2
- package/src/compiler/module-signals.ts +111 -8
- package/src/compiler/rewrite-reads.ts +1 -1
- package/src/compiler/route-lints.ts +8 -0
- package/src/compiler/script-props.ts +18 -1
- package/src/compiler/script-shared.ts +2 -0
- package/src/eslint/index.ts +19 -2
- package/src/features.ts +2 -2
- package/src/lsp/semantic-tokens.ts +2 -2
- package/src/migrate/project.ts +2 -2
- package/src/new.ts +6 -4
- package/src/runtime/dom.ts +11 -12
- package/src/template-config.ts +11 -4
- package/src/template-docker.ts +1 -1
- package/src/template-shared.ts +4 -1
- package/src/template-starter.ts +25 -4
- package/src/template-styles.ts +55 -43
- package/src/template-ws.ts +1 -1
- package/src/templates.ts +2 -4
- package/src/test/browser.ts +2 -5
- package/src/test/text-match.ts +44 -0
- package/types/add.d.ts.map +1 -1
- package/types/build/class-rules.d.ts +1 -0
- package/types/build/class-rules.d.ts.map +1 -1
- package/types/build/client.d.ts +1 -1
- package/types/build/client.d.ts.map +1 -1
- package/types/build/recipe-classes.d.ts +2 -0
- package/types/build/recipe-classes.d.ts.map +1 -1
- package/types/build/recipe-utilities.d.ts +4 -0
- package/types/build/recipe-utilities.d.ts.map +1 -0
- package/types/build/signals.d.ts.map +1 -1
- package/types/build/style-uses.d.ts +1 -0
- package/types/build/style-uses.d.ts.map +1 -1
- package/types/build/styles.d.ts +1 -1
- package/types/build/styles.d.ts.map +1 -1
- package/types/build/supports.d.ts +1 -1
- package/types/build/supports.d.ts.map +1 -1
- package/types/check/removed-ui-tokens.d.ts +2 -0
- package/types/check/removed-ui-tokens.d.ts.map +1 -1
- package/types/check/shadow-types.d.ts.map +1 -1
- package/types/check/text-size-colour.d.ts +3 -0
- package/types/check/text-size-colour.d.ts.map +1 -0
- package/types/commands/new.d.ts.map +1 -1
- package/types/commands/upgrade-majors.d.ts +7 -0
- package/types/commands/upgrade-majors.d.ts.map +1 -0
- package/types/commands/upgrade-manifest.d.ts +6 -0
- package/types/commands/upgrade-manifest.d.ts.map +1 -0
- package/types/commands/upgrade-messages.d.ts +4 -0
- package/types/commands/upgrade-messages.d.ts.map +1 -0
- package/types/commands/upgrade-peers.d.ts +23 -0
- package/types/commands/upgrade-peers.d.ts.map +1 -0
- package/types/commands/upgrade.d.ts +7 -0
- package/types/commands/upgrade.d.ts.map +1 -1
- package/types/compiler/dom.d.ts +1 -0
- package/types/compiler/dom.d.ts.map +1 -1
- package/types/compiler/index.d.ts.map +1 -1
- package/types/compiler/island-cause.d.ts +2 -2
- package/types/compiler/island-cause.d.ts.map +1 -1
- package/types/compiler/lints.d.ts +8 -0
- package/types/compiler/lints.d.ts.map +1 -1
- package/types/compiler/module-signals.d.ts +14 -1
- package/types/compiler/module-signals.d.ts.map +1 -1
- package/types/compiler/route-lints.d.ts +8 -0
- package/types/compiler/route-lints.d.ts.map +1 -1
- package/types/compiler/script-props.d.ts.map +1 -1
- package/types/compiler/script-shared.d.ts +1 -0
- package/types/compiler/script-shared.d.ts.map +1 -1
- package/types/new.d.ts.map +1 -1
- package/types/runtime/dom.d.ts +1 -0
- package/types/runtime/dom.d.ts.map +1 -1
- package/types/template-config.d.ts.map +1 -1
- package/types/template-shared.d.ts +1 -1
- package/types/template-shared.d.ts.map +1 -1
- package/types/template-starter.d.ts.map +1 -1
- package/types/template-styles.d.ts.map +1 -1
- package/types/templates.d.ts.map +1 -1
- package/types/test/browser.d.ts.map +1 -1
- package/types/test/text-match.d.ts +13 -0
- package/types/test/text-match.d.ts.map +1 -0
package/src/template-config.ts
CHANGED
|
@@ -1,26 +1,33 @@
|
|
|
1
|
-
import type { Setup } from './template-shared'
|
|
1
|
+
import type { ConfigSettings, Setup } from './template-shared'
|
|
2
2
|
import { lines, quote } from './template-shared'
|
|
3
3
|
|
|
4
|
+
// The space skin names Space Grotesk, and the starter's monospace is JetBrains Mono.
|
|
5
|
+
const UI_FONTS: NonNullable<ConfigSettings['fonts']> = [{ fontsource: '@fontsource-variable/space-grotesk' }, { fontsource: '@fontsource-variable/jetbrains-mono' }]
|
|
6
|
+
|
|
4
7
|
// Over the app's own database, loaded as the server starts so the config stays off it.
|
|
5
8
|
const POSTGRES_STORE = ', store: async () => (await import(\'@kayjs/auth/pg\')).pgAuth((await import(\'./src/db\')).db)'
|
|
6
9
|
|
|
7
10
|
export function config({ has, settings }: Setup): string {
|
|
8
11
|
const server = has('server')
|
|
12
|
+
// A static export cannot hold the extension's API routes, so a static site takes the theme from its stylesheet instead.
|
|
13
|
+
const mounted = has('ui') && server
|
|
14
|
+
const fonts = settings.fonts ?? (has('ui') ? UI_FONTS : [])
|
|
15
|
+
const extensions = [has('auth') && `auth({ name: '__SITE__'${has('postgres') ? POSTGRES_STORE : ''} })`, mounted && 'ui()'].filter(entry => entry !== false)
|
|
9
16
|
const base = settings.base === undefined ? undefined : quote(settings.base)
|
|
10
17
|
|
|
11
18
|
return lines(
|
|
12
19
|
has('auth') && 'import { auth } from \'@kayjs/auth\'',
|
|
13
|
-
|
|
20
|
+
mounted && 'import { ui } from \'@kayjs/ui\'',
|
|
14
21
|
!server && base !== undefined && 'import process from \'node:process\'',
|
|
15
22
|
'import { defineConfig } from \'kay/server\'',
|
|
16
23
|
'',
|
|
17
24
|
!server && '// kay reads the host the site is published on from SITE_URL and the path it is published under from SITE_BASE, which the Pages workflow sets when building.',
|
|
18
25
|
'export default defineConfig({',
|
|
19
|
-
|
|
26
|
+
extensions.length > 0 && ` extensions: [${extensions.join(', ')}],`,
|
|
20
27
|
` lang: ${quote(settings.lang ?? 'en')},`,
|
|
21
28
|
settings.site !== undefined && ` site: ${quote(settings.site)},`,
|
|
22
29
|
base !== undefined && ` base: ${server ? base : `process.env.SITE_BASE ?? ${base}`},`,
|
|
23
|
-
|
|
30
|
+
fonts.length > 0 && ` fonts: [${fonts.map(font => `{ fontsource: ${quote(font.fontsource)}${font.weights ? `, weights: [${font.weights.join(', ')}]` : ''}${font.styles ? `, styles: [${font.styles.map(quote).join(', ')}]` : ''}${font.subsets ? `, subsets: [${font.subsets.map(quote).join(', ')}]` : ''} }`).join(', ')}],`,
|
|
24
31
|
server && has('docker') && ' // The compose file binds 127.0.0.1 for a reverse proxy: with this the visitor\'s address, which rate limits count, is the one the proxy passes on and not the proxy\'s. It trusts private-range peers, so a dev server bound to 0.0.0.0 believes a LAN client\'s X-Forwarded-For.',
|
|
25
32
|
server && has('docker') && ' proxy: true,',
|
|
26
33
|
settings.seo !== false && ' seo: { name: \'__NAME__\', titleTemplate: \'%s | __NAME__\', description: \'__NAME__, made with kay\' },',
|
package/src/template-docker.ts
CHANGED
|
@@ -150,7 +150,7 @@ export function serverContainerFiles({ has }: Setup): Record<string, string> {
|
|
|
150
150
|
return {
|
|
151
151
|
'Dockerfile': `FROM oven/bun:${Bun.version} AS build
|
|
152
152
|
WORKDIR /app
|
|
153
|
-
COPY package.json bun.lock*
|
|
153
|
+
COPY package.json bun.lock* ./
|
|
154
154
|
RUN bun install --frozen-lockfile
|
|
155
155
|
COPY . .
|
|
156
156
|
RUN bun run compile
|
package/src/template-shared.ts
CHANGED
|
@@ -28,7 +28,10 @@ export interface Setup {
|
|
|
28
28
|
settings: ConfigSettings
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// The features a project holds: kayjs-auth draws its pages with kayjs-ui, so a project with `auth` holds `ui` too.
|
|
32
|
+
export function holds(features: ReadonlySet<Feature>): (feature: Feature) => boolean {
|
|
33
|
+
return feature => features.has(feature) || (feature === 'ui' && features.has('auth'))
|
|
34
|
+
}
|
|
32
35
|
|
|
33
36
|
// A file of these lines, each `false` left out.
|
|
34
37
|
export function lines(...entries: (string | false)[]): string {
|
package/src/template-starter.ts
CHANGED
|
@@ -4,12 +4,30 @@ import { fence, lines } from './template-shared'
|
|
|
4
4
|
function header({ has, tw }: Setup): string {
|
|
5
5
|
const links = has('auth') ? '[{ href: \'/\', label: \'Home\' }, { href: \'/auth/account\', label: \'Account\' }]' : '[{ href: \'/\', label: \'Home\' }]'
|
|
6
6
|
|
|
7
|
+
// kayjs-ui's AppHeader folds the links into a menu on a narrow screen and marks the one of the page on screen.
|
|
8
|
+
if (has('ui')) {
|
|
9
|
+
return lines(
|
|
10
|
+
'---',
|
|
11
|
+
'import AppHeader from \'@kayjs/ui/app-header.kay\'',
|
|
12
|
+
has('accents') && 'import AccentPicker from \'./accent-picker.kay\'',
|
|
13
|
+
'',
|
|
14
|
+
'const { current } = props<{ current: string }>()',
|
|
15
|
+
`const links = ${links}`,
|
|
16
|
+
'---',
|
|
17
|
+
'AppHeader(links={links} current={current} label="Main navigation")',
|
|
18
|
+
' @brand',
|
|
19
|
+
' a.text-xl.font-semibold.no-underline(href="/") __NAME__',
|
|
20
|
+
has('accents') && ' @actions',
|
|
21
|
+
has('accents') && ' AccentPicker',
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
|
|
7
25
|
return lines(
|
|
8
26
|
'---',
|
|
9
27
|
has('accents') && 'import AccentPicker from \'./accent-picker.kay\'\n',
|
|
10
28
|
`const links = ${links}`,
|
|
11
29
|
'---',
|
|
12
|
-
`header${tw('.border-b
|
|
30
|
+
`header${tw('.border-b.border-border.bg-background.px-8.py-3')}`,
|
|
13
31
|
` nav${tw('.mx-auto.flex.max-w-5xl.items-center.justify-between.gap-4')}(aria-label="Main navigation")`,
|
|
14
32
|
` a${tw('.text-xl.font-bold.no-underline')}(href="/") __NAME__`,
|
|
15
33
|
` ul${tw('.flex.gap-4')}`,
|
|
@@ -21,9 +39,12 @@ function header({ has, tw }: Setup): string {
|
|
|
21
39
|
}
|
|
22
40
|
|
|
23
41
|
export function layout({ has, tw }: Setup): string {
|
|
42
|
+
const current = has('starter') && has('ui')
|
|
43
|
+
|
|
24
44
|
return lines(
|
|
25
|
-
|
|
26
|
-
has('starter') && '
|
|
45
|
+
// The header marks the link of the page on screen.
|
|
46
|
+
fence(current ? '--- server\nconst path = ctx.url.pathname\n--- script' : '---', has('starter') && 'import Header from \'../components/header.kay\'', (has('starter') || has('tailwind')) && 'import \'../app.css\''),
|
|
47
|
+
has('starter') && `a.skip-link(href="#main-content") Skip to main content\nHeader${current ? '(current={path})' : ''}`,
|
|
27
48
|
`main${has('starter') ? '#main-content' : ''}${tw('.mx-auto.w-full.max-w-5xl.grow.px-8.py-6')}`,
|
|
28
49
|
' slot',
|
|
29
50
|
)
|
|
@@ -51,7 +72,7 @@ export function home({ has, tw }: Setup): string {
|
|
|
51
72
|
'---',
|
|
52
73
|
'head',
|
|
53
74
|
' title Home',
|
|
54
|
-
`section${tw('.flex.flex-col.items-center.gap-6.py-12')}`,
|
|
75
|
+
`section${tw('.flex.flex-col.items-center.gap-6.rounded-lg.border.border-border.bg-surface.py-12')}`,
|
|
55
76
|
` Rocket${tw('.size-16.text-accent.motion-safe:animate-bounce')}`,
|
|
56
77
|
` h1${tw('.text-3xl.font-bold')} {greeting}`,
|
|
57
78
|
' Counter(start={0})',
|
package/src/template-styles.ts
CHANGED
|
@@ -31,47 +31,59 @@ export function editorExtensions({ has }: Setup): { recommendations: string[] }
|
|
|
31
31
|
return { recommendations: ['kaynooo.kay', ...has('eslint') ? ['dbaeumer.vscode-eslint'] : [], ...has('tailwind') ? ['bradlc.vscode-tailwindcss'] : []] }
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
//
|
|
34
|
+
// The accents of the picker, orbit's own under names of the starter's.
|
|
35
|
+
const ACCENT_COLOURS = {
|
|
36
|
+
starlight: '#bcd4ff',
|
|
37
|
+
mint: '#7ee0b3',
|
|
38
|
+
orchid: '#e09af0',
|
|
39
|
+
periwinkle: '#9aa6ff',
|
|
40
|
+
rose: '#f28fb8',
|
|
41
|
+
sky: '#8fd3f4',
|
|
42
|
+
lime: '#c6e07a',
|
|
43
|
+
amber: '#e8c35a',
|
|
44
|
+
lilac: '#b9a3de',
|
|
45
|
+
sand: '#e6d7a3',
|
|
46
|
+
peach: '#f4a36b',
|
|
47
|
+
coral: '#f27b72',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// The look of orbit's apps: kayjs-ui's space skin over a near-black palette, a hairline on every box, kayjs-ui's `starfield` behind the page, and an accent the picker in the header changes.
|
|
51
|
+
// The colours carry kayjs-ui's names (`background`, `foreground`, `border`), none of them one of Tailwind's own utilities such as `text-base`.
|
|
35
52
|
export function tailwindCss({ has }: Setup): string {
|
|
53
|
+
const ui = has('ui')
|
|
54
|
+
// `ui()` gives the stylesheet the theme; a static site, which cannot mount it, imports it.
|
|
55
|
+
const theme = ui && !has('server') ? '\n@import \'@kayjs/ui/theme.css\';' : ''
|
|
56
|
+
|
|
36
57
|
return blocks(
|
|
37
|
-
'@import \'
|
|
58
|
+
`@import 'tailwindcss';${theme}${ui ? '\n@import \'@kayjs/ui/skins/space.css\';' : ''}`,
|
|
38
59
|
VIEW_TRANSITION,
|
|
39
60
|
has('accents') && `/* Static: the picker reads every accent through var(), which Tailwind cannot see. */
|
|
40
61
|
@theme static {
|
|
41
|
-
--accent
|
|
42
|
-
--accent-flamingo: #f2cdcd;
|
|
43
|
-
--accent-pink: #f5c2e7;
|
|
44
|
-
--accent-mauve: #cba6f7;
|
|
45
|
-
--accent-red: #f38ba8;
|
|
46
|
-
--accent-maroon: #eba0ac;
|
|
47
|
-
--accent-peach: #fab387;
|
|
48
|
-
--accent-yellow: #f9e2af;
|
|
49
|
-
--accent-green: #a6e3a1;
|
|
50
|
-
--accent-teal: #94e2d5;
|
|
51
|
-
--accent-sky: #89dceb;
|
|
52
|
-
--accent-sapphire: #74c7ec;
|
|
53
|
-
--accent-blue: #89b4fa;
|
|
54
|
-
--accent-lavender: #b4befe;
|
|
62
|
+
${Object.entries(ACCENT_COLOURS).map(([name, colour]) => ` --accent-${name}: ${colour};`).join('\n')}
|
|
55
63
|
}`,
|
|
56
64
|
`@theme {
|
|
57
|
-
--
|
|
58
|
-
--color-
|
|
59
|
-
--color-
|
|
60
|
-
--color-
|
|
61
|
-
--color-
|
|
62
|
-
--color-
|
|
63
|
-
--color-
|
|
64
|
-
--color-
|
|
65
|
-
--color-
|
|
66
|
-
--color-
|
|
67
|
-
--color-
|
|
68
|
-
--color-
|
|
69
|
-
--color-
|
|
70
|
-
|
|
65
|
+
${ui ? ' --font-mono: \'JetBrains Mono\', ui-monospace, monospace;\n\n' : ''} /* One ground for the page and its header, and boxes a step up from it framed by a hairline, since fill alone barely shows this close to black. */
|
|
66
|
+
--color-background: #090a10;
|
|
67
|
+
--color-surface: #11131a;
|
|
68
|
+
--color-surface-strong: #191c25;
|
|
69
|
+
--color-popover: #14161e;
|
|
70
|
+
--color-foreground: #d8dbe6;
|
|
71
|
+
--color-input: #646a7f;
|
|
72
|
+
--color-border: color-mix(in srgb, var(--color-foreground) 11%, transparent);
|
|
73
|
+
--color-border-strong: color-mix(in srgb, var(--color-foreground) 20%, transparent);
|
|
74
|
+
--color-muted: color-mix(in oklab, var(--color-foreground), var(--color-background) 30%);
|
|
75
|
+
${ui ? '' : ' --color-danger: #ff6b6b;\n'} --color-accent-hover: color-mix(in oklab, var(--color-accent), white 30%);
|
|
76
|
+
--color-accent-foreground: #05060a;
|
|
77
|
+
${has('accents') ? '\n /* The accent picker sets --accent on the page. */\n --color-accent: var(--accent, var(--accent-starlight));' : ' --color-accent: #bcd4ff;'}
|
|
78
|
+
|
|
79
|
+
/* What is pressed is never rounder than the box holding it. */
|
|
80
|
+
--radius-sm: 2px;
|
|
81
|
+
--radius-md: 3px;
|
|
82
|
+
--radius-lg: 4px;
|
|
71
83
|
}`,
|
|
72
84
|
`@layer base {
|
|
73
85
|
body {
|
|
74
|
-
@apply flex min-h-screen flex-col bg-
|
|
86
|
+
@apply ${ui ? 'starfield ' : ''}flex min-h-screen flex-col bg-background font-sans text-foreground;
|
|
75
87
|
}
|
|
76
88
|
|
|
77
89
|
a {
|
|
@@ -79,24 +91,24 @@ ${has('accents') ? '\n /* The accent picker sets --accent on the page. */\n --
|
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
button {
|
|
82
|
-
@apply cursor-pointer rounded border
|
|
94
|
+
@apply cursor-pointer rounded-md border border-input bg-transparent px-4 py-2 text-sm font-medium transition-colors hover:border-accent hover:text-accent focus-visible:ring-2 focus-visible:ring-accent focus-visible:outline-none disabled:opacity-50;
|
|
83
95
|
}
|
|
84
96
|
|
|
85
97
|
input {
|
|
86
|
-
@apply rounded border
|
|
98
|
+
@apply rounded-md border border-input bg-surface px-2 py-1 text-foreground focus:border-accent focus:outline-none;
|
|
87
99
|
}
|
|
88
100
|
|
|
89
101
|
label {
|
|
90
|
-
@apply text-sm font-medium text-
|
|
102
|
+
@apply text-sm font-medium text-muted;
|
|
91
103
|
}
|
|
92
104
|
|
|
93
105
|
::selection {
|
|
94
|
-
@apply bg-
|
|
106
|
+
@apply bg-foreground/25;
|
|
95
107
|
}
|
|
96
108
|
}`,
|
|
97
109
|
has('starter') && `@layer components {
|
|
98
110
|
.skip-link {
|
|
99
|
-
@apply absolute top-0 left-0 z-100 -translate-y-full bg-
|
|
111
|
+
@apply absolute top-0 left-0 z-100 -translate-y-full border border-border-strong bg-background px-2 py-1 text-accent transition-transform focus:translate-y-0;
|
|
100
112
|
}
|
|
101
113
|
}`,
|
|
102
114
|
)
|
|
@@ -117,18 +129,18 @@ export const PLAIN_CSS = blocks(VIEW_TRANSITION, `.skip-link {
|
|
|
117
129
|
export const ACCENT_FILES: Record<string, string> = {
|
|
118
130
|
'src/theme.ts': `import { persisted } from 'kay'
|
|
119
131
|
|
|
120
|
-
export const ACCENTS = [
|
|
132
|
+
export const ACCENTS = [${Object.keys(ACCENT_COLOURS).map(name => `'${name}'`).join(', ')}] as const
|
|
121
133
|
|
|
122
134
|
export type Accent = (typeof ACCENTS)[number]
|
|
123
135
|
|
|
124
136
|
// Kept in a cookie the server reads, so a page it renders shows the chosen accent from the first paint.
|
|
125
|
-
export const accent = persisted<Accent>('accent', '
|
|
137
|
+
export const accent = persisted<Accent>('accent', 'starlight')
|
|
126
138
|
|
|
127
139
|
// A cookie's value is not checked against the type, so anything but a known accent reads as the default.
|
|
128
140
|
export function currentAccent(): Accent {
|
|
129
141
|
const value = accent()
|
|
130
142
|
|
|
131
|
-
return ACCENTS.includes(value) ? value : '
|
|
143
|
+
return ACCENTS.includes(value) ? value : 'starlight'
|
|
132
144
|
}
|
|
133
145
|
`,
|
|
134
146
|
'src/components/accent-picker.kay': `---
|
|
@@ -138,17 +150,17 @@ import { accent, ACCENTS, currentAccent } from '../theme'
|
|
|
138
150
|
---
|
|
139
151
|
style {\`:root { --accent: var(--accent-\${currentAccent()}); }\`}
|
|
140
152
|
details.relative
|
|
141
|
-
summary.flex.cursor-pointer.list-none.items-center.gap-2.text-sm.text-
|
|
153
|
+
summary.flex.cursor-pointer.list-none.items-center.gap-2.text-sm.text-muted
|
|
142
154
|
Palette.size-5.text-accent
|
|
143
155
|
| Accent
|
|
144
156
|
div(
|
|
145
|
-
class="absolute right-0 mt-2 grid w-max grid-cols-
|
|
157
|
+
class="absolute right-0 mt-2 grid w-max grid-cols-6 gap-1 rounded-lg border border-border-strong bg-popover p-2"
|
|
146
158
|
role="radiogroup"
|
|
147
159
|
aria-label="Accent colour"
|
|
148
160
|
)
|
|
149
161
|
for name of ACCENTS
|
|
150
|
-
button.grid.size-6.place-items-center.rounded.border
|
|
162
|
+
button.grid.size-6.place-items-center.rounded-sm.border.border-border-strong.p-0(type="button" role="radio" aria-label={name} aria-checked={currentAccent() === name ? 'true' : 'false'} style={\`background-color: var(--accent-\${name})\`} onClick={() => accent = name})
|
|
151
163
|
if currentAccent() === name
|
|
152
|
-
Check.size-4.text-
|
|
164
|
+
Check.size-4.text-accent-foreground
|
|
153
165
|
`,
|
|
154
166
|
}
|
package/src/template-ws.ts
CHANGED
|
@@ -29,7 +29,7 @@ import online from '../api/online'
|
|
|
29
29
|
|
|
30
30
|
const live = socket(online, '/')
|
|
31
31
|
---
|
|
32
|
-
p${tw('.text-
|
|
32
|
+
p${tw('.text-muted')} {live.status() === 'open' ? \`\${live.last()?.online ?? 1} online now\` : 'Connecting...'}
|
|
33
33
|
`,
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/templates.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { authFiles, authTestFiles } from './template-auth'
|
|
|
3
3
|
import { pagesWorkflow, testWorkflow } from './template-ci'
|
|
4
4
|
import { config, SERVER_ENTRY } from './template-config'
|
|
5
5
|
import { serverContainerFiles, staticContainerFiles } from './template-docker'
|
|
6
|
-
import { blocks, DEFAULT_RUNNERS,
|
|
6
|
+
import { blocks, DEFAULT_RUNNERS, holds, lines } from './template-shared'
|
|
7
7
|
import { home, homeTest, layout, starterFiles } from './template-starter'
|
|
8
8
|
import { ACCENT_FILES, editorExtensions, editorSettings, PLAIN_CSS, tailwindCss } from './template-styles'
|
|
9
9
|
import { WS_TEST, wsFiles } from './template-ws'
|
|
@@ -41,13 +41,11 @@ export const AGENT_FILES: readonly string[] = ['AGENTS.md', 'CLAUDE.md', '.mcp.j
|
|
|
41
41
|
|
|
42
42
|
// Every file but package.json, tsconfig.json and the agents' instructions and MCP registration, which `createProject` writes from the same features and scripts.
|
|
43
43
|
export function templateFiles(features: ReadonlySet<Feature>, settings: ConfigSettings = {}, host: Host = 'forgejo', runner: string = DEFAULT_RUNNERS[host]): Record<string, string> {
|
|
44
|
-
const has = (
|
|
44
|
+
const has = holds(features)
|
|
45
45
|
const setup: Setup = { has, host, runner, tw: classes => has('tailwind') ? classes : '', settings }
|
|
46
46
|
const server = has('server')
|
|
47
47
|
|
|
48
48
|
return {
|
|
49
|
-
// kay itself is published there, as are @kaynooo/eslint and @kaynooo/pg-orm.
|
|
50
|
-
'.npmrc': `@kaynooo:registry=${REGISTRY}\n`,
|
|
51
49
|
'.gitignore': lines('node_modules', '.kay', has('eslint') && '.eslintcache', server ? '/server' : 'dist', (server || has('postgres')) && 'data', (server || has('postgres')) && 'data-prod', '.env', '.env.*', '!.env.example', '!.env.test'),
|
|
52
50
|
'kay.config.ts': config(setup),
|
|
53
51
|
'src/routes/_layout.kay': layout(setup),
|
package/src/test/browser.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { optionMs } from '../runtime/duration'
|
|
|
13
13
|
import { EAGER_ISLANDS } from '../runtime/markers'
|
|
14
14
|
import { installClock } from './clock'
|
|
15
15
|
import { createNetwork } from './network'
|
|
16
|
+
import { waitForText } from './text-match'
|
|
16
17
|
|
|
17
18
|
// A `Cookie` header, `name=value; other=value`, as a list; a value keeps any `=` after the first.
|
|
18
19
|
export function cookiePairs(cookies: BrowserOptions['cookies']): { name: string, value: string }[] {
|
|
@@ -747,11 +748,7 @@ export async function browse(url: string, options: BrowserOptions = {}): Promise
|
|
|
747
748
|
value: async selector => serial(async () => inView<string | null>(script((css: string) => document.querySelector<HTMLInputElement>(css)?.value ?? null, [selector]))),
|
|
748
749
|
count: async selector => serial(async () => inView<number>(script((css: string) => document.querySelectorAll(css).length, [selector]))),
|
|
749
750
|
evaluate: async (run, ...args) => serial(async () => inView(script(run, args))),
|
|
750
|
-
waitFor: async (selector, wait = {}) => atCaller(new Error('the call'), async () => serial(async () => {
|
|
751
|
-
const found = script((css: string, text?: string) => [...document.querySelectorAll(css)].some(element => text === undefined || element.textContent?.includes(text)), [selector, wait.text])
|
|
752
|
-
|
|
753
|
-
await poll(wait.gone ? `!${found}` : found, `${selector}${wait.text === undefined ? '' : ` with text "${wait.text}"`}${wait.gone ? ' to be gone' : ''}`, waitMs(wait.timeout))
|
|
754
|
-
})),
|
|
751
|
+
waitFor: async (selector, wait = {}) => atCaller(new Error('the call'), async () => serial(async () => waitForText({ poll, inView, selector, wait, timeout: waitMs(wait.timeout) }))),
|
|
755
752
|
a11y: async selector => serial(async () => {
|
|
756
753
|
// Injected again after each navigation, which drops it; through DevTools, which the page's CSP does not hold back.
|
|
757
754
|
if (!await inView<boolean>('!!window.axe')) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Both functions cross into the page as their source, so they read nothing from this module.
|
|
2
|
+
|
|
3
|
+
// Whether an element `css` matches holds `text`, the spaces kay's French typography writes (U+00A0, U+202F) read as plain ones in the page and in `text`.
|
|
4
|
+
export function textFound(css: string, text?: string): boolean {
|
|
5
|
+
const plain = (value: string) => value.replace(/[\xA0\u202F]/g, ' ')
|
|
6
|
+
|
|
7
|
+
return [...document.querySelectorAll(css)].some(element => text === undefined || plain(element.textContent ?? '').includes(plain(text)))
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// The same with every other whitespace run (a thin space, a line break) one space, for the message of a wait that timed out.
|
|
11
|
+
export function textHeldUpToWhitespace(css: string, text: string): boolean {
|
|
12
|
+
const squashed = (value: string) => value.replace(/\s+/g, ' ').trim()
|
|
13
|
+
|
|
14
|
+
return [...document.querySelectorAll(css)].some(element => squashed(element.textContent ?? '').includes(squashed(text)))
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Waits for an element `selector` matches, holding `wait.text` when given, or for none to; a timeout on text says so when an element holds it up to its whitespace, which prints as the plain spaces the wait used.
|
|
18
|
+
export async function waitForText({ poll, inView, selector, wait, timeout }: {
|
|
19
|
+
poll: (expression: string, wanted: string, wait?: number) => Promise<void>
|
|
20
|
+
inView: <T>(expression: string) => Promise<T>
|
|
21
|
+
selector: string
|
|
22
|
+
wait: { text?: string | undefined, gone?: boolean | undefined }
|
|
23
|
+
timeout: number | undefined
|
|
24
|
+
}): Promise<void> {
|
|
25
|
+
const found = `(${textFound.toString()})(${JSON.stringify(selector)}, ${JSON.stringify(wait.text)})`
|
|
26
|
+
const wanted = `${selector}${wait.text === undefined ? '' : ` with text "${wait.text}"`}${wait.gone ? ' to be gone' : ''}`
|
|
27
|
+
|
|
28
|
+
try {
|
|
29
|
+
await poll(wait.gone ? `!${found}` : found, wanted, timeout)
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (wait.text === undefined || wait.gone || !(error instanceof Error))
|
|
33
|
+
throw error
|
|
34
|
+
|
|
35
|
+
let held = false
|
|
36
|
+
|
|
37
|
+
try {
|
|
38
|
+
held = await inView<boolean>(`(${textHeldUpToWhitespace.toString()})(${JSON.stringify(selector)}, ${JSON.stringify(wait.text)})`)
|
|
39
|
+
}
|
|
40
|
+
catch {}
|
|
41
|
+
|
|
42
|
+
throw held ? new Error(`${error.message}; an element holds the text up to its whitespace, which differs from the plain spaces waited for (a thin or other special space, a line break)`, { cause: error.cause }) : error
|
|
43
|
+
}
|
|
44
|
+
}
|
package/types/add.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add.d.ts","sourceRoot":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AAM,GAAG,SAAS,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB/F;AA2BD,qBAAa,wBAAyB,SAAQ,KAAK;CAAG;AAiCtD,wBAAgB,OAAO,CAAC,GAAG,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhH;AA6KD,MAAM,WAAW,UAAU;IAEzB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAE7B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAExB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACjC;AAuBD,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,SAAS,CAAC,CA4BrH"}
|
|
@@ -8,6 +8,7 @@ export declare function kindOf(node: {
|
|
|
8
8
|
prelude: string;
|
|
9
9
|
}): 'conditional' | 'at-rule' | 'property' | 'rule';
|
|
10
10
|
export declare function pruneNodes(nodes: Node[], unused: ReadonlySet<string>): Node[];
|
|
11
|
+
export declare function pruneUtilityLayer(nodes: Node[], unused: ReadonlySet<string>): Node[];
|
|
11
12
|
export declare function unescapeClass(name: string): string;
|
|
12
13
|
export declare function pruneUnescaped(nodes: Node[], unused: ReadonlySet<string>): Node[];
|
|
13
14
|
export declare function styledClassNames(nodes: Node[]): Set<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class-rules.d.ts","sourceRoot":"","sources":["../../src/build/class-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAoBtC,MAAM,WAAW,QAAQ;IACvB,IAAI,EA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B,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,CAKpF;AAUD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAGD,wBAAgB,cAAc,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,CAEjF;AAGD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC,CAyB3D"}
|
package/types/build/client.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ declare function bundleIslands(root: string, islands: Map<string, string>, files
|
|
|
68
68
|
inputs: ChunkInputs;
|
|
69
69
|
maps: string[];
|
|
70
70
|
}>;
|
|
71
|
-
declare function bundleStyles(root: string, { pages, libraries, classes, shorthand, islands }: Pick<ClientSources, 'pages' | 'libraries' | 'classes' | 'shorthand' | 'islands'>, options: ClientOptions): Promise<{
|
|
71
|
+
declare function bundleStyles(root: string, { pages, files, libraries, classes, shorthand, islands }: Pick<ClientSources, 'pages' | 'files' | 'libraries' | 'classes' | 'shorthand' | 'islands'>, options: ClientOptions): Promise<{
|
|
72
72
|
styles: Record<string, string>;
|
|
73
73
|
inputs: string[];
|
|
74
74
|
followed: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/build/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAA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E,QAAQ,CAAC,CA2CxJ"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export interface Lifted {
|
|
2
2
|
source: string;
|
|
3
3
|
rules: string;
|
|
4
|
+
utilities: string[];
|
|
4
5
|
}
|
|
5
6
|
export declare function liftRecipes(source: string, moduleId: string, utility: (token: string) => boolean): Lifted | undefined;
|
|
6
7
|
export interface RecipeLifter {
|
|
7
8
|
readonly id: number;
|
|
8
9
|
lift: (source: string, file: string) => Lifted | undefined;
|
|
10
|
+
utilities: () => Set<string>;
|
|
9
11
|
}
|
|
10
12
|
export declare function recipeLifter(root: string): Promise<RecipeLifter | undefined>;
|
|
11
13
|
//# sourceMappingURL=recipe-classes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recipe-classes.d.ts","sourceRoot":"","sources":["../../src/build/recipe-classes.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,MAAM;IAErB,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"recipe-classes.d.ts","sourceRoot":"","sources":["../../src/build/recipe-classes.ts"],"names":[],"mappings":"AAuBA,MAAM,WAAW,MAAM;IAErB,MAAM,EAAE,MAAM,CAAA;IAEd,KAAK,EAAE,MAAM,CAAA;IAEb,SAAS,EAAE,MAAM,EAAE,CAAA;CACpB;AAsDD,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,MAAM,GAAG,SAAS,CA2DrH;AAED,MAAM,WAAW,YAAY;IAE3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IAE1D,SAAS,EAAE,MAAM,GAAG,CAAC,MAAM,CAAC,CAAA;CAC7B;AAQD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CA2ClF"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RecipeLifter } from './recipe-classes';
|
|
2
|
+
export declare function keptWordFiles(): string[];
|
|
3
|
+
export declare function recipeOnlyUtilities(root: string, lifter: RecipeLifter | undefined, named: Iterable<string>): Promise<Set<string>>;
|
|
4
|
+
//# sourceMappingURL=recipe-utilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe-utilities.d.ts","sourceRoot":"","sources":["../../src/build/recipe-utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AA4GpD,wBAAgB,aAAa,IAAI,MAAM,EAAE,CAExC;AAuBD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAiDvI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../src/build/signals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../src/build/signals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,4BAA4B,CAAA;AAuB7E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,CAY7E;AAID,wBAAsB,cAAc,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAczE;AAmCD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAKpE"}
|
|
@@ -4,6 +4,7 @@ export interface StyleUses {
|
|
|
4
4
|
classes: string[];
|
|
5
5
|
entries: Record<string, number[] | true>;
|
|
6
6
|
}
|
|
7
|
+
export declare function inlineClasses(css: string): string[];
|
|
7
8
|
export declare function expandInline(pattern: string): string[];
|
|
8
9
|
export interface StyleUsesOptions {
|
|
9
10
|
own?: ((file: string) => boolean) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-uses.d.ts","sourceRoot":"","sources":["../../src/build/style-uses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAUvC,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;CACzC;
|
|
1
|
+
{"version":3,"file":"style-uses.d.ts","sourceRoot":"","sources":["../../src/build/style-uses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAS,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAUvC,MAAM,WAAW,SAAS;IAExB,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;CACzC;AAmDD,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAqGD,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CA6DtD;AA+CD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,SAAS,CAAA;IAE7C,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IACtC,UAAU,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;CAC9D;AAGD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;IACf,EAAE,EAAE,MAAM,EAAE,CAAA;CACb;AAID,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAE,SAAS,MAAM,EAAO,EAAE,OAAO,GAAE,gBAAqB,GAAG,SAAS,CA6RzO"}
|
package/types/build/styles.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface Reached {
|
|
|
4
4
|
edges: Map<string, string[]>;
|
|
5
5
|
open: Set<string>;
|
|
6
6
|
}
|
|
7
|
-
export declare function
|
|
7
|
+
export declare function writeComponentStylesheets(root: string, files: string[]): Promise<void>;
|
|
8
8
|
export declare function styleSignature(path: string, source: string): Promise<string>;
|
|
9
9
|
export declare function pruneScopedStyles(cacheRoot: string): Promise<number>;
|
|
10
10
|
export declare function styleImports(root: string, libraries?: KayLibrary[], loaded?: Set<string>, reached?: Reached): BunPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/build/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAoE7C,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IAC5B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/build/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAoE7C,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;IAC5B,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAClB;AAgDD,wBAAsB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAoB5F;AAQD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAIlF;AAGD,wBAAsB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE1E;AAMD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,UAAU,EAAO,EAAE,MAAM,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAyI3H;AAID,wBAAgB,aAAa,IAAI,SAAS,CAoBzC"}
|
|
@@ -12,5 +12,5 @@ export interface StyleReferences {
|
|
|
12
12
|
root: string;
|
|
13
13
|
files: string[];
|
|
14
14
|
}
|
|
15
|
-
export declare function mergingSupports(plugins: BunPlugin[], transform?: (nodes: Node[]) => Node[] | Promise<Node[]>, references?: StyleReferences): BunPlugin[];
|
|
15
|
+
export declare function mergingSupports(plugins: BunPlugin[], transform?: (nodes: Node[], tailwind: boolean) => Node[] | Promise<Node[]>, references?: StyleReferences): BunPlugin[];
|
|
16
16
|
//# sourceMappingURL=supports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supports.d.ts","sourceRoot":"","sources":["../../src/build/supports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,KAAK,CAAA;AAOnD,eAAO,MAAM,QAAQ,QAAsB,CAAA;AAI3C,MAAM,MAAM,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,EAAE,CAAA;CAAE,CAAA;AAGvE,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,CAuEzC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAE3C;AA6DD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAoBD,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,SAAS,GAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAkB,EAAE,UAAU,CAAC,EAAE,eAAe,GAAG,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"supports.d.ts","sourceRoot":"","sources":["../../src/build/supports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAiB,MAAM,KAAK,CAAA;AAOnD,eAAO,MAAM,QAAQ,QAAsB,CAAA;AAI3C,MAAM,MAAM,IAAI,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,IAAI,EAAE,CAAA;CAAE,CAAA;AAGvE,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,CAuEzC;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,CAE3C;AA6DD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAoBD,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,SAAS,GAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAkB,EAAE,UAAU,CAAC,EAAE,eAAe,GAAG,SAAS,EAAE,CA2B3L"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { CheckDiagnostic, CheckOptions } from '.';
|
|
2
2
|
export declare function removedUiTokens(root: string, options: CheckOptions): Promise<CheckDiagnostic[]>;
|
|
3
|
+
export declare function blank(text: string): string;
|
|
4
|
+
export declare function blankComments(source: string): string;
|
|
3
5
|
//# sourceMappingURL=removed-ui-tokens.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removed-ui-tokens.d.ts","sourceRoot":"","sources":["../../src/check/removed-ui-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAuCtD,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA+BrG"}
|
|
1
|
+
{"version":3,"file":"removed-ui-tokens.d.ts","sourceRoot":"","sources":["../../src/check/removed-ui-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAuCtD,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA+BrG;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE1C;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAiFpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadow-types.d.ts","sourceRoot":"","sources":["../../src/check/shadow-types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAiC,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"shadow-types.d.ts","sourceRoot":"","sources":["../../src/check/shadow-types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AA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AAQ,EAAE,cAAc,GAAG,SAAS,CAAA;CACrC;AAiBD,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAE5G;AAuPD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAInG;AAkFD,wBAAsB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAIjG;AA8ID,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,UAAU,GAAG,eAAe,CAE5K"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-size-colour.d.ts","sourceRoot":"","sources":["../../src/check/text-size-colour.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAatD,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA2CpG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../src/commands/new.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAU,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"new.d.ts","sourceRoot":"","sources":["../../src/commands/new.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAU,MAAM,WAAW,CAAA;AAkChD,eAAO,MAAM,QAAQ,EAAE,OAwHtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrade-majors.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade-majors.ts"],"names":[],"mappings":"AAeA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAUzL"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ProblemFormat } from './command';
|
|
2
|
+
export declare function readManifest(manifest: string, root: string, format: ProblemFormat): Promise<{
|
|
3
|
+
original: string;
|
|
4
|
+
packageJson: Record<string, unknown>;
|
|
5
|
+
} | undefined>;
|
|
6
|
+
//# sourceMappingURL=upgrade-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrade-manifest.d.ts","sourceRoot":"","sources":["../../src/commands/upgrade-manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAK9C,wBAAsB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,SAAS,CAAC,CAiBzK"}
|