@kayjs/kay 1.104.1 → 1.104.2
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/eslint.js +1 -1
- package/editors/zed/extension.toml +2 -2
- package/package.json +6 -6
- package/src/build/client.ts +3 -3
- package/src/build/styles.ts +32 -21
- package/types/build/client.d.ts +1 -1
- package/types/build/client.d.ts.map +1 -1
- package/types/build/styles.d.ts +1 -1
- package/types/build/styles.d.ts.map +1 -1
package/dist/eslint.js
CHANGED
|
@@ -25,7 +25,7 @@ var __esm = (fn, res, err) => () => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
// package.json
|
|
28
|
-
var version = "1.104.
|
|
28
|
+
var version = "1.104.2", peerDependencies;
|
|
29
29
|
var init_package = __esm(() => {
|
|
30
30
|
peerDependencies = {
|
|
31
31
|
"@happy-dom/global-registrator": "^20.14.6 || ^21.0.3",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
id = "kay"
|
|
2
2
|
name = "Kay"
|
|
3
3
|
description = "Highlighting and the kay language server for .kay components"
|
|
4
|
-
version = "1.104.
|
|
4
|
+
version = "1.104.2"
|
|
5
5
|
schema_version = 1
|
|
6
6
|
authors = [ "Kaynooo" ]
|
|
7
7
|
repository = "https://github.com/Kayno0o/kayjs"
|
|
8
8
|
|
|
9
9
|
[grammars.kay]
|
|
10
10
|
repository = "https://github.com/Kayno0o/kayjs"
|
|
11
|
-
rev = "v1.104.
|
|
11
|
+
rev = "v1.104.2"
|
|
12
12
|
path = "editors/tree-sitter-kay"
|
|
13
13
|
|
|
14
14
|
[language_servers.kay]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kayjs/kay",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.104.
|
|
4
|
+
"version": "1.104.2",
|
|
5
5
|
"description": "A Bun web framework: one .kay file per component, pages rendered to plain HTML on the server, interactive islands in the browser",
|
|
6
6
|
"author": "Kaynooo <https://github.com/Kayno0o>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -293,11 +293,11 @@
|
|
|
293
293
|
"@fontsource/inter": "^5.3.0",
|
|
294
294
|
"@happy-dom/global-registrator": "^21.0.4",
|
|
295
295
|
"@iconify-json/tabler": "^1.2.42",
|
|
296
|
-
"@kayjs/ai": "1.104.
|
|
297
|
-
"@kayjs/auth": "1.104.
|
|
298
|
-
"@kayjs/cms": "1.104.
|
|
299
|
-
"@kayjs/mail": "1.104.
|
|
300
|
-
"@kayjs/ui": "1.104.
|
|
296
|
+
"@kayjs/ai": "1.104.2",
|
|
297
|
+
"@kayjs/auth": "1.104.2",
|
|
298
|
+
"@kayjs/cms": "1.104.2",
|
|
299
|
+
"@kayjs/mail": "1.104.2",
|
|
300
|
+
"@kayjs/ui": "1.104.2",
|
|
301
301
|
"@kaynooo/eslint": "^7.1.6",
|
|
302
302
|
"@kaynooo/pg-orm": "^8.1.4",
|
|
303
303
|
"@oxc-parser/binding-wasm32-wasip1": "0.155.0",
|
package/src/build/client.ts
CHANGED
|
@@ -48,7 +48,7 @@ import { inSignalsScope } from './signals'
|
|
|
48
48
|
import { buildFiles } from './source-files'
|
|
49
49
|
import { forgetBundleMaps } from './sourcemap'
|
|
50
50
|
import { styleUses } from './style-uses'
|
|
51
|
-
import { styleImports, withoutStyles,
|
|
51
|
+
import { styleImports, withoutStyles, writeComponentStylesheets } from './styles'
|
|
52
52
|
import { mergingSupports } from './supports'
|
|
53
53
|
import { warnBuiltThemeVariables } from './theme-vars'
|
|
54
54
|
import { analyzeKayCached, KayCompileError, keepAnalyses } from './transform'
|
|
@@ -679,7 +679,7 @@ async function islandDirectives(root: string, outputs: Bun.BuildArtifact[]): Pro
|
|
|
679
679
|
// Each page and layout is an entry whose code shrinks to its imports, so what comes out is the stylesheet of everything it renders: each one's URL by the file relative to the root, and every module the build read, `followed` adding the ones it shrank to their imports, which the bundler's list of inputs leaves out.
|
|
680
680
|
// The rules of a kay library's stylesheets needing a class nothing names are left out, `unused` listing those classes.
|
|
681
681
|
// `uses` tells which of the classes the stylesheets style each page and layout names, for a production server to leave the rules of the rest out of a page's head; development links the stylesheets whole and compares what the page sets with it.
|
|
682
|
-
async function bundleStyles(root: string, { pages, libraries, classes, shorthand, islands }: Pick<ClientSources, 'pages' | 'libraries' | 'classes' | 'shorthand' | 'islands'>, options: ClientOptions): Promise<{ styles: Record<string, string>, inputs: string[], followed: string[], unused: Set<string>, uses?: StyleUses, server: UnresolvedClass[] }> {
|
|
682
|
+
async function bundleStyles(root: string, { pages, files, libraries, classes, shorthand, islands }: Pick<ClientSources, 'pages' | 'files' | 'libraries' | 'classes' | 'shorthand' | 'islands'>, options: ClientOptions): Promise<{ styles: Record<string, string>, inputs: string[], followed: string[], unused: Set<string>, uses?: StyleUses, server: UnresolvedClass[] }> {
|
|
683
683
|
if (pages.length === 0)
|
|
684
684
|
return { styles: {}, inputs: [], followed: [], unused: new Set(), server: [] }
|
|
685
685
|
|
|
@@ -688,7 +688,7 @@ async function bundleStyles(root: string, { pages, libraries, classes, shorthand
|
|
|
688
688
|
// Read while Bun.build parses and bundles: a stylesheet waits for it only once it is loaded.
|
|
689
689
|
const unusedClasses = unusedLibraryClasses(root, libraries, classes)
|
|
690
690
|
|
|
691
|
-
await
|
|
691
|
+
await writeComponentStylesheets(root, files)
|
|
692
692
|
|
|
693
693
|
const since = raisedMark()
|
|
694
694
|
const [build, unused] = await Promise.all([Bun.build({
|
package/src/build/styles.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BunPlugin } from 'bun'
|
|
2
2
|
import type { KayLibrary } from './libraries'
|
|
3
3
|
import { readFileSync, statSync } from 'node:fs'
|
|
4
|
-
import { rename } from 'node:fs/promises'
|
|
4
|
+
import { realpath, rename } from 'node:fs/promises'
|
|
5
5
|
import { dirname, join, relative, sep } from 'node:path'
|
|
6
6
|
import { islandId, withoutTwin } from '../compiler'
|
|
7
7
|
import { parseKay } from '../compiler/parser'
|
|
@@ -82,6 +82,23 @@ async function keepStylesheet(file: string, contents: string): Promise<void> {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// Writes a `--- style` fence as a stylesheet of its own under the cache, its selectors scoped, and gives its path.
|
|
86
|
+
async function writeScopedStylesheet(root: string, path: string, css: string, reference: () => Promise<string | undefined>): Promise<string> {
|
|
87
|
+
const moduleId = islandId(throughLinks(root, path), root)
|
|
88
|
+
const file = join(cacheDir(root, 'scoped'), `${scopeHash(moduleId)}.css`)
|
|
89
|
+
|
|
90
|
+
scopedTouched = true
|
|
91
|
+
touchCacheFile(file)
|
|
92
|
+
|
|
93
|
+
const scoped = rebaseUrls(scopeCss(css, scopeAttribute(moduleId)), dirname(path), dirname(file))
|
|
94
|
+
// `@apply` in a stylesheet of its own needs the app's Tailwind entry as a reference, which kay writes so the fence needs no line of it.
|
|
95
|
+
const entry = THEME_USE.test(scoped) ? await reference() : undefined
|
|
96
|
+
|
|
97
|
+
await keepStylesheet(file, entry === undefined ? scoped : `@reference ${JSON.stringify(relative(dirname(file), entry).split(sep).join('/'))};\n${scoped}`)
|
|
98
|
+
|
|
99
|
+
return file
|
|
100
|
+
}
|
|
101
|
+
|
|
85
102
|
// Writes the stylesheet of the classes a component's recipe lifted, undefined when it lifts none.
|
|
86
103
|
async function writeRecipeStylesheet(root: string, path: string, source: string, reference: () => Promise<string | undefined>): Promise<string | undefined> {
|
|
87
104
|
const rules = source.includes('recipe(') ? (await recipeLifter(root))?.lift(source, path)?.rules : undefined
|
|
@@ -99,16 +116,24 @@ async function writeRecipeStylesheet(root: string, path: string, source: string,
|
|
|
99
116
|
return file
|
|
100
117
|
}
|
|
101
118
|
|
|
102
|
-
// Writes the stylesheets of the recipes among `files` before the bundler runs: Bun reads a folder once, so a file written into it while it bundles can fail to resolve.
|
|
103
|
-
|
|
119
|
+
// Writes the stylesheets of the `--- style` fences and recipes among `files` before the bundler runs: Bun reads a folder once, so a file written into it while it bundles can fail to resolve.
|
|
120
|
+
// Each is written under the file's real path, the one Bun hands the plugin, so both name and rebase it alike: a library under Bun's isolated store is reached through a link inside the root.
|
|
121
|
+
export async function writeComponentStylesheets(root: string, files: string[]): Promise<void> {
|
|
104
122
|
const reference = tailwindEntry(root, true)
|
|
105
123
|
|
|
106
|
-
await Promise.all(files.filter(file => KAY_FILE.test(file)).map(async (
|
|
124
|
+
await Promise.all(files.filter(file => KAY_FILE.test(file)).map(async (listed) => {
|
|
107
125
|
try {
|
|
108
|
-
|
|
126
|
+
const file = await realpath(listed)
|
|
127
|
+
const source = await Bun.file(file).text()
|
|
128
|
+
const style = source.includes('style') ? parseKay(source).style : undefined
|
|
129
|
+
|
|
130
|
+
await Promise.all([
|
|
131
|
+
style && writeScopedStylesheet(root, file, source.slice(style.start, style.end), async () => reference),
|
|
132
|
+
writeRecipeStylesheet(root, file, source, async () => reference),
|
|
133
|
+
])
|
|
109
134
|
}
|
|
110
135
|
catch (error) {
|
|
111
|
-
// A file deleted since the listing
|
|
136
|
+
// A file deleted since the listing has no stylesheet to write.
|
|
112
137
|
if ((error as NodeJS.ErrnoException).code !== 'ENOENT')
|
|
113
138
|
throw error
|
|
114
139
|
}
|
|
@@ -179,21 +204,7 @@ export function styleImports(root: string, libraries: KayLibrary[] = [], loaded?
|
|
|
179
204
|
// The app's Tailwind entry, looked up once per build for every fence using `@apply`.
|
|
180
205
|
let tailwindReference: Promise<string | undefined> | undefined
|
|
181
206
|
// A `--- style` fence reaches the bundler as a stylesheet of its own, written under the cache with its selectors scoped.
|
|
182
|
-
const scopedStylesheet = async (path: string, css: string) =>
|
|
183
|
-
const moduleId = islandId(throughLinks(root, path), root)
|
|
184
|
-
const file = join(cacheDir(root, 'scoped'), `${scopeHash(moduleId)}.css`)
|
|
185
|
-
|
|
186
|
-
scopedTouched = true
|
|
187
|
-
touchCacheFile(file)
|
|
188
|
-
|
|
189
|
-
const scoped = rebaseUrls(scopeCss(css, scopeAttribute(moduleId)), dirname(path), dirname(file))
|
|
190
|
-
// `@apply` in a stylesheet of its own needs the app's Tailwind entry as a reference, which kay writes so the fence needs no line of it.
|
|
191
|
-
const entry = THEME_USE.test(scoped) ? await (tailwindReference ??= tailwindEntry(root, true)) : undefined
|
|
192
|
-
|
|
193
|
-
await keepStylesheet(file, entry === undefined ? scoped : `@reference ${JSON.stringify(relative(dirname(file), entry).split(sep).join('/'))};\n${scoped}`)
|
|
194
|
-
|
|
195
|
-
return importing(note(path, [file]))
|
|
196
|
-
}
|
|
207
|
+
const scopedStylesheet = async (path: string, css: string) => importing(note(path, [await writeScopedStylesheet(root, path, css, async () => tailwindReference ??= tailwindEntry(root, true))]))
|
|
197
208
|
// The rules of the classes a component's recipe lifted into the stylesheet, which the pages rendering the component carry as they carry a `--- style` fence's.
|
|
198
209
|
const recipeStylesheet = async (path: string, source: string) => {
|
|
199
210
|
const file = await writeRecipeStylesheet(root, path, source, async () => tailwindReference ??= tailwindEntry(root, true))
|
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;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BAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,CAOzG;AAOD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,QAAQ,CAAC,CA2CxJ"}
|
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"}
|