@kayjs/kay 1.107.0 → 1.108.0
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 +50 -29
- package/editors/zed/extension.toml +2 -2
- package/llms/actions-from-islands.md +1 -1
- package/llms/component-libraries.md +1 -1
- package/llms/deprecated-lints.md +0 -1
- package/llms/islands.md +1 -1
- package/llms/upgrading.md +6 -0
- package/llms/whats-new-archive.md +36 -1
- package/llms/whats-new.md +9 -39
- package/llms.txt +1 -1
- package/package.json +6 -6
- package/src/build/client.ts +7 -6
- package/src/build/icon-slots.ts +140 -0
- package/src/build/libraries.ts +24 -2
- package/src/build/plugin.ts +10 -0
- package/src/build/runtime-chunk.ts +2 -2
- package/src/build/source-files.ts +8 -3
- package/src/build/variants.ts +90 -1
- package/src/check/project.ts +4 -4
- package/src/check/renamed-packages.ts +3 -63
- package/src/check/shadow-types.ts +4 -18
- package/src/compiler/dead-code.ts +22 -0
- package/src/compiler/deprecated-lints.ts +1 -10
- package/src/compiler/dom-property.ts +23 -0
- package/src/compiler/dom.ts +15 -15
- package/src/package-names.ts +1 -1
- package/src/runtime/action-call.ts +39 -327
- package/src/runtime/action-run.ts +357 -0
- package/types/build/client.d.ts +1 -1
- package/types/build/client.d.ts.map +1 -1
- package/types/build/icon-slots.d.ts +7 -0
- package/types/build/icon-slots.d.ts.map +1 -0
- package/types/build/libraries.d.ts +2 -0
- package/types/build/libraries.d.ts.map +1 -1
- package/types/build/plugin.d.ts +1 -0
- package/types/build/plugin.d.ts.map +1 -1
- package/types/build/source-files.d.ts.map +1 -1
- package/types/build/variants.d.ts.map +1 -1
- package/types/check/renamed-packages.d.ts +0 -3
- package/types/check/renamed-packages.d.ts.map +1 -1
- package/types/check/shadow-types.d.ts.map +1 -1
- package/types/compiler/dead-code.d.ts +9 -0
- package/types/compiler/dead-code.d.ts.map +1 -0
- package/types/compiler/deprecated-lints.d.ts +0 -9
- package/types/compiler/deprecated-lints.d.ts.map +1 -1
- package/types/compiler/dom-property.d.ts +9 -0
- package/types/compiler/dom-property.d.ts.map +1 -0
- package/types/compiler/dom.d.ts +1 -0
- package/types/compiler/dom.d.ts.map +1 -1
- package/types/compiler/lints.d.ts +0 -9
- package/types/compiler/lints.d.ts.map +1 -1
- package/types/runtime/action-call.d.ts.map +1 -1
- package/types/runtime/action-run.d.ts +23 -0
- package/types/runtime/action-run.d.ts.map +1 -0
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import type { Caller } from './action-owner'
|
|
2
|
+
import type { ActionStream, CallOptions, CallQueue, Outcome } from './action-shared'
|
|
3
|
+
import type { Duration } from './duration'
|
|
4
|
+
import type { ConnectionStatus } from './live'
|
|
5
|
+
import { ActionError, ActionRedirectError } from './action-error'
|
|
6
|
+
import { networkFailures, superseding } from './action-marks'
|
|
7
|
+
import { refreshed, refreshedIn, refreshedUnlessFollowed } from './action-navigate'
|
|
8
|
+
import { onStreamEnd, SETTLED } from './action-owner'
|
|
9
|
+
import { post } from './action-post'
|
|
10
|
+
import { apiErrorOf } from './api-error'
|
|
11
|
+
import { durationSeconds, isZeroDuration } from './duration'
|
|
12
|
+
import { navigation } from './navigation'
|
|
13
|
+
import { released } from './optimistic'
|
|
14
|
+
import { randomId } from './random-id'
|
|
15
|
+
import { untrack } from './reactive'
|
|
16
|
+
|
|
17
|
+
// What runs a call of an action: its queue, timeout and retries, the post and what follows the answer. An action shows its state to a page before any call, so that part stays with the action (`action-call.ts`) and a page that calls nothing does not carry this one, which the first call loads.
|
|
18
|
+
|
|
19
|
+
const RETRY_DELAY_MS = 500
|
|
20
|
+
|
|
21
|
+
// The calls of an action, or of one `track()` handle, that `queue` orders: `tail` settles when the last `serial` call is done, `latest` is the call in flight a newer one aborts.
|
|
22
|
+
export interface Lane {
|
|
23
|
+
tail: Promise<unknown>
|
|
24
|
+
queue?: CallQueue | undefined
|
|
25
|
+
latest?: AbortController | undefined
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// What the action keeps for a call to change: its URL, the calls in flight, the outcome of the last call and the progress of an upload.
|
|
29
|
+
export interface Host {
|
|
30
|
+
url: () => string
|
|
31
|
+
shift: (by: number) => void
|
|
32
|
+
called: (page: number, outcome: Outcome | null, turn: number) => unknown
|
|
33
|
+
progress: (sent: number | undefined) => void
|
|
34
|
+
// Whether the call numbered `turn` is the one started last, which owns the outcome and the progress.
|
|
35
|
+
latest: (turn: number) => boolean
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// What the call captured when it was made, before this code was loaded: the page it was made on, the visits so far, who called, and its number.
|
|
39
|
+
export interface Start {
|
|
40
|
+
page: number
|
|
41
|
+
visits: number | undefined
|
|
42
|
+
caller: Caller
|
|
43
|
+
turn: number
|
|
44
|
+
// Puts back what the call's `optimistic` change wrote, which the action applied before this code loaded.
|
|
45
|
+
undo?: (() => void) | undefined
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function idempotencyKey(): string {
|
|
49
|
+
return randomId()
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// One signal for several, aborting with the reason of the first to abort. A lone one is returned as it is, so a browser that has no `AbortSignal.any` still runs the call; `stop` lets go of the listeners, and `always` makes a signal of its own whose sources can be let go of before the call ends.
|
|
53
|
+
function join(sources: (AbortSignal | undefined)[], always = false): { signal: AbortSignal | undefined, stop: (only?: AbortSignal) => void } {
|
|
54
|
+
const list = sources.filter(source => source !== undefined)
|
|
55
|
+
|
|
56
|
+
if (list.length < 2 && !always)
|
|
57
|
+
return { signal: list[0], stop: () => undefined }
|
|
58
|
+
|
|
59
|
+
const controller = new AbortController()
|
|
60
|
+
const forwards = list.map(source => [source, () => controller.abort(source.reason)] as const)
|
|
61
|
+
|
|
62
|
+
for (const [source, forward] of forwards) {
|
|
63
|
+
if (source.aborted) {
|
|
64
|
+
controller.abort(source.reason)
|
|
65
|
+
|
|
66
|
+
break
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
source.addEventListener('abort', forward, { once: true })
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
signal: controller.signal,
|
|
74
|
+
stop: (only) => {
|
|
75
|
+
for (const [source, forward] of forwards) {
|
|
76
|
+
if (only === undefined || only === source)
|
|
77
|
+
source.removeEventListener('abort', forward)
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Waits for `ms`, or for the calls ahead when given a promise, giving up at once when the signal aborts meanwhile.
|
|
84
|
+
async function waitFor(wait: number | Promise<unknown>, signal: AbortSignal | undefined): Promise<void> {
|
|
85
|
+
signal?.throwIfAborted()
|
|
86
|
+
|
|
87
|
+
let stop = () => undefined as void
|
|
88
|
+
|
|
89
|
+
try {
|
|
90
|
+
await new Promise<unknown>((resolve, reject) => {
|
|
91
|
+
const abort = () => reject(signal!.reason)
|
|
92
|
+
const id = typeof wait === 'number' ? setTimeout(resolve, wait) : undefined
|
|
93
|
+
|
|
94
|
+
if (typeof wait !== 'number') {
|
|
95
|
+
void (async () => {
|
|
96
|
+
try {
|
|
97
|
+
resolve(await wait)
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
reject(error)
|
|
101
|
+
}
|
|
102
|
+
})()
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
signal?.addEventListener('abort', abort, { once: true })
|
|
106
|
+
stop = () => {
|
|
107
|
+
clearTimeout(id)
|
|
108
|
+
signal?.removeEventListener('abort', abort)
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
}
|
|
112
|
+
finally {
|
|
113
|
+
stop()
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// How long a wait of the call's lasts: nothing for a zero, a clear error for text that is no duration.
|
|
118
|
+
function waitOf(value: Duration | undefined, what: string): number | undefined {
|
|
119
|
+
return value === undefined || isZeroDuration(value) ? undefined : durationSeconds(value, what) * 1000
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Whether a failure is one a retry may repeat: the server's answer or the network's failure, never a redirect, an abort or something thrown before the post was sent. Unless `when` says otherwise, a 503 (the server turned the call away) and a failure before the post was sent are, and nothing else, as a post that reached the server may have run.
|
|
123
|
+
function retryOf(retry: CallOptions['retry']): { times: number, delay: number, again: (error: unknown, sent: boolean) => boolean } {
|
|
124
|
+
const options = typeof retry === 'number' ? { times: retry } : retry
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
times: options?.times ?? 0,
|
|
128
|
+
delay: waitOf(options?.delay, 'retry.delay') ?? RETRY_DELAY_MS,
|
|
129
|
+
again: (error, sent) => {
|
|
130
|
+
if (error instanceof ActionRedirectError || !(error instanceof ActionError || networkFailures.has(error as object) || (error as { name?: unknown } | null)?.name === 'TimeoutError'))
|
|
131
|
+
return false
|
|
132
|
+
|
|
133
|
+
const failure = apiErrorOf(error)
|
|
134
|
+
|
|
135
|
+
return options?.when ? options.when(failure) : failure.status === 503 || (!sent && (failure.status === 0 || failure.status === 502))
|
|
136
|
+
},
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// A hook never fails the call it observes: a throw, or a rejection, is logged.
|
|
141
|
+
async function hooked<Event>(hook: ((event: Event) => unknown) | undefined, event: Event): Promise<void> {
|
|
142
|
+
try {
|
|
143
|
+
await hook?.(event)
|
|
144
|
+
}
|
|
145
|
+
catch (error) {
|
|
146
|
+
console.error(error)
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// A call of an action `with()` fixed fields of is made with them, over the ones it is given, as a form posting to its URL does: a field fixed to `null` or `undefined` is left out there, so the given one stays.
|
|
151
|
+
function withFixed(input: unknown, fixed: Record<string, unknown> | undefined): unknown {
|
|
152
|
+
if (fixed === undefined)
|
|
153
|
+
return input
|
|
154
|
+
|
|
155
|
+
const set = Object.entries(fixed).filter(([name, value]) => name !== '__proto__' && value !== undefined && value !== null)
|
|
156
|
+
|
|
157
|
+
if (!(input instanceof FormData))
|
|
158
|
+
return { ...input as object | undefined, ...Object.fromEntries(set) }
|
|
159
|
+
|
|
160
|
+
const names = new Set(set.map(([name]) => name))
|
|
161
|
+
const copy = new FormData()
|
|
162
|
+
|
|
163
|
+
for (const [name, value] of input) {
|
|
164
|
+
if (!names.has(name))
|
|
165
|
+
copy.append(name, value)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
for (const [name, value] of set) {
|
|
169
|
+
for (const item of Array.isArray(value) ? value : [value])
|
|
170
|
+
copy.append(name, item instanceof Date ? item.toISOString() : String(item))
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return copy
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// Refreshes what a call changed once it is done, started before the caller goes on, so a navigation it starts next supersedes the refresh rather than the other way round; a site with `navigation: false` shows a call's effects itself.
|
|
177
|
+
function refresher(options: CallOptions | undefined, caller: Caller, left: () => boolean): () => void {
|
|
178
|
+
return () => {
|
|
179
|
+
const scope = options?.refresh
|
|
180
|
+
|
|
181
|
+
if (scope === false || left())
|
|
182
|
+
return
|
|
183
|
+
|
|
184
|
+
if (scope === undefined || scope === true) {
|
|
185
|
+
if (navigation.hooks)
|
|
186
|
+
void (scope === true ? refreshed() : refreshedUnlessFollowed(caller.invalidated))
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
const asked = [scope].flat()
|
|
190
|
+
const names = asked.filter(source => typeof source === 'string')
|
|
191
|
+
|
|
192
|
+
if (names.length > 0 && navigation.hooks)
|
|
193
|
+
void refreshed(names)
|
|
194
|
+
|
|
195
|
+
void refreshedIn(asked.filter(source => typeof source !== 'string'))
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Posts the call, again as its retry option allows. What the post found out of the call's own, whether it was sent and whether its timeout passed, is left in `flags`.
|
|
201
|
+
async function postTries(host: Host, input: unknown, options: CallOptions | undefined, signal: AbortSignal | undefined, caller: Caller, left: () => boolean, flags: { sent: boolean, timedOut: boolean }): Promise<unknown> {
|
|
202
|
+
const timeoutOption = options?.timeout
|
|
203
|
+
const timeout = waitOf(timeoutOption, 'timeout')
|
|
204
|
+
const attempts = retryOf(options?.retry)
|
|
205
|
+
// One key for every try of the call, which a handler reads from `ctx.request` to tell a repeat from a new call.
|
|
206
|
+
const key = attempts.times > 0 ? idempotencyKey() : undefined
|
|
207
|
+
|
|
208
|
+
for (let attempt = 0; ; attempt++) {
|
|
209
|
+
// The wait for the answer counts from the moment the post is sent, and each try has its own.
|
|
210
|
+
const limit = timeout === undefined ? undefined : new AbortController()
|
|
211
|
+
const attemptSignal = join([signal, limit?.signal])
|
|
212
|
+
let timer: ReturnType<typeof setTimeout> | undefined
|
|
213
|
+
let sentNow = false
|
|
214
|
+
|
|
215
|
+
try {
|
|
216
|
+
return await post(host.url(), input, host.progress, attemptSignal.signal, () => {
|
|
217
|
+
flags.sent = sentNow = true
|
|
218
|
+
clearTimeout(timer)
|
|
219
|
+
timer = limit && setTimeout(() => {
|
|
220
|
+
flags.timedOut = true
|
|
221
|
+
limit.abort(new DOMException(`The action call timeout of ${String(timeoutOption)} passed before the server answered`, 'TimeoutError'))
|
|
222
|
+
}, timeout)
|
|
223
|
+
}, left, caller, { key, options })
|
|
224
|
+
}
|
|
225
|
+
catch (error) {
|
|
226
|
+
// Only the upload path says `sent: false`, as `fetch` gives no such signal and `onSent` has run before it: the default retry of an unsent post covers an upload alone.
|
|
227
|
+
if (attempt >= attempts.times || signal?.aborted === true || !attempts.again(error, sentNow && (error as { sent?: unknown } | null)?.sent !== false))
|
|
228
|
+
throw error
|
|
229
|
+
|
|
230
|
+
await waitFor(attempts.delay * 2 ** attempt, signal)
|
|
231
|
+
}
|
|
232
|
+
finally {
|
|
233
|
+
clearTimeout(timer)
|
|
234
|
+
attemptSignal.stop()
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
// A call of a `latest` queue aborts the one in flight before it.
|
|
240
|
+
function supersede(lane: Lane, later: AbortController): void {
|
|
241
|
+
const reason = new DOMException('Superseded by a later call', 'AbortError')
|
|
242
|
+
|
|
243
|
+
superseding.add(reason)
|
|
244
|
+
lane.latest?.abort(reason)
|
|
245
|
+
lane.latest = later
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Runs a call in its lane, whose in flight count the action started and this ends.
|
|
249
|
+
export async function run(host: Host, start: Start, lane: Lane, given: unknown, fixed: Record<string, unknown> | undefined, options?: CallOptions): Promise<unknown> {
|
|
250
|
+
const { page, visits, caller, turn, undo } = start
|
|
251
|
+
const input = withFixed(given, fixed)
|
|
252
|
+
const left = () => navigation.visits !== visits
|
|
253
|
+
const mode = options?.queue ?? lane.queue ?? 'parallel'
|
|
254
|
+
|
|
255
|
+
void hooked(options?.onStart, { input })
|
|
256
|
+
|
|
257
|
+
let posted = false
|
|
258
|
+
const flags = { sent: false, timedOut: false }
|
|
259
|
+
// A stream keeps the call in flight until it ends.
|
|
260
|
+
let streaming = false
|
|
261
|
+
let answer: unknown
|
|
262
|
+
let failure: unknown
|
|
263
|
+
let release: (() => void) | undefined
|
|
264
|
+
const refreshPage = refresher(options, caller, left)
|
|
265
|
+
const later = mode === 'latest' ? new AbortController() : undefined
|
|
266
|
+
// What aborts the call as a whole: its own signal, and a later call of a `latest` queue, which stops mattering once the post is answered.
|
|
267
|
+
const whole = join([options?.signal, later?.signal], later !== undefined)
|
|
268
|
+
|
|
269
|
+
try {
|
|
270
|
+
if (later)
|
|
271
|
+
supersede(lane, later)
|
|
272
|
+
|
|
273
|
+
if (mode === 'serial') {
|
|
274
|
+
const before = lane.tail
|
|
275
|
+
|
|
276
|
+
lane.tail = Promise.all([before, new Promise<void>((resolve) => {
|
|
277
|
+
release = resolve
|
|
278
|
+
})])
|
|
279
|
+
await waitFor(before, whole.signal)
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
answer = await postTries(host, input, options, whole.signal, caller, left, flags)
|
|
283
|
+
|
|
284
|
+
posted = true
|
|
285
|
+
whole.stop(later?.signal)
|
|
286
|
+
release?.()
|
|
287
|
+
release = undefined
|
|
288
|
+
|
|
289
|
+
const streamEnded = (status: ConnectionStatus) => {
|
|
290
|
+
if (status === 'done') {
|
|
291
|
+
host.called(page, { action: host.url(), succeeded: true, data: untrack((answer as ActionStream<unknown>).last) }, turn)
|
|
292
|
+
refreshPage()
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
host.shift(-1)
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
streaming = onStreamEnd(answer, streamEnded)
|
|
299
|
+
|
|
300
|
+
if (streaming) {
|
|
301
|
+
// A retry of the stream is the call running again.
|
|
302
|
+
caller.retried = (again) => {
|
|
303
|
+
host.shift(1)
|
|
304
|
+
again[SETTLED](streamEnded)
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
if (!streaming) {
|
|
309
|
+
host.called(page, { action: host.url(), succeeded: true, data: answer }, turn)
|
|
310
|
+
refreshPage()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
void hooked(options?.onSuccess, { data: answer })
|
|
314
|
+
|
|
315
|
+
return answer
|
|
316
|
+
}
|
|
317
|
+
catch (error) {
|
|
318
|
+
failure = error
|
|
319
|
+
|
|
320
|
+
// A redirect leaves the page as it is until the next one shows.
|
|
321
|
+
if (!posted && !(error instanceof ActionRedirectError))
|
|
322
|
+
undo?.()
|
|
323
|
+
|
|
324
|
+
// The server may have run a call aborted or timed out once it was sent, which the page then shows as it stands.
|
|
325
|
+
if (flags.sent && (options?.signal?.aborted === true || flags.timedOut))
|
|
326
|
+
refreshPage()
|
|
327
|
+
|
|
328
|
+
if (error instanceof ActionError && !(error instanceof ActionRedirectError))
|
|
329
|
+
host.called(page, { action: host.url(), status: error.status, values: {}, errors: error.errors, data: error.data }, turn)
|
|
330
|
+
|
|
331
|
+
if (!(error instanceof ActionRedirectError) && whole.signal?.aborted !== true)
|
|
332
|
+
void hooked(options?.onError, { error: apiErrorOf(error) })
|
|
333
|
+
|
|
334
|
+
throw error
|
|
335
|
+
}
|
|
336
|
+
finally {
|
|
337
|
+
// A stream is aborted by the call's own signal until it ends.
|
|
338
|
+
if (!streaming)
|
|
339
|
+
whole.stop()
|
|
340
|
+
|
|
341
|
+
release?.()
|
|
342
|
+
|
|
343
|
+
if (undo)
|
|
344
|
+
released(undo)
|
|
345
|
+
|
|
346
|
+
if (!streaming)
|
|
347
|
+
host.shift(-1)
|
|
348
|
+
|
|
349
|
+
if (host.latest(turn))
|
|
350
|
+
host.progress(undefined)
|
|
351
|
+
|
|
352
|
+
if (lane.latest === later)
|
|
353
|
+
lane.latest = undefined
|
|
354
|
+
|
|
355
|
+
void hooked(options?.onSettled, failure === undefined ? { data: answer } : { error: apiErrorOf(failure) })
|
|
356
|
+
}
|
|
357
|
+
}
|
package/types/build/client.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ interface Bundled {
|
|
|
68
68
|
inputs: ChunkInputs;
|
|
69
69
|
maps: string[];
|
|
70
70
|
}
|
|
71
|
-
declare function bundleIslands(root: string, islands: Map<string, string>, files: string[], actionForms: boolean, actionProps: boolean, options: ClientOptions, classTable?: ClassTable, islandTable?: ClassTable): Promise<Bundled>;
|
|
71
|
+
declare function bundleIslands(root: string, islands: Map<string, string>, files: string[], actionForms: boolean, actionProps: boolean, options: ClientOptions, classTable?: ClassTable, islandTable?: ClassTable, iconSlots?: ReadonlySet<string>): Promise<Bundled>;
|
|
72
72
|
declare function bundleStyles(root: string, { pages, files, libraries, classes, shorthand, islands }: Pick<ClientSources, 'pages' | 'files' | 'libraries' | 'classes' | 'shorthand' | 'islands'>, options: ClientOptions): Promise<{
|
|
73
73
|
styles: Record<string, string>;
|
|
74
74
|
inputs: 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;AAC1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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,CA+CxJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ImportGraph, KayLibrary } from './libraries';
|
|
2
|
+
export declare const REGISTRY_FILE: RegExp;
|
|
3
|
+
export declare function isUiRegistry(file: string): boolean;
|
|
4
|
+
export declare function iconSlotsOf(root: string, entries: Iterable<string>, libraries: KayLibrary[], graph?: ImportGraph): Promise<ReadonlySet<string> | undefined>;
|
|
5
|
+
export declare function registryWith(source: string, slots: ReadonlySet<string>): string;
|
|
6
|
+
export declare function slotsKey(slots: ReadonlySet<string> | undefined): string;
|
|
7
|
+
//# sourceMappingURL=icon-slots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-slots.d.ts","sourceRoot":"","sources":["../../src/build/icon-slots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAyB1D,eAAO,MAAM,aAAa,QAAsG,CAAA;AAGhI,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAOlD;AAoBD,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CA8DjK;AAMD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,CAW/E;AAGD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,GAAG,MAAM,CAEvE"}
|
|
@@ -29,6 +29,8 @@ export interface KayCopy {
|
|
|
29
29
|
to: string;
|
|
30
30
|
}
|
|
31
31
|
export declare function packageRoot(dir: string): string;
|
|
32
|
+
export declare function linkedOutside(root: string, path: string): boolean;
|
|
33
|
+
export declare function extensionPackages(root: string, libraries: KayLibrary[], extensionDirs: string[]): Promise<KayLibrary[]>;
|
|
32
34
|
export declare function libraryOf(libraries: KayLibrary[], file: string): KayLibrary | undefined;
|
|
33
35
|
export declare function throughNodeModules(library: KayLibrary, file: string): string;
|
|
34
36
|
export declare function exportsFile(library: KayLibrary, file: string): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraries.d.ts","sourceRoot":"","sources":["../../src/build/libraries.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IAEZ,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,EAAE,CAAA;IAEf,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAE/B,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,CAAA;IAEvC,SAAS,CAAC,EAAE,IAAI,CAAA;CACjB;AAGD,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE9C,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;IACrB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;CACjB;AAUD,wBAAsB,g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AAM,EAAE,CAyBpD;AAmCD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAIhD;AAGD,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAEhF;AAeD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAa7C"}
|
package/types/build/plugin.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export interface KayPluginOptions {
|
|
|
25
25
|
componentFiles?: boolean | undefined;
|
|
26
26
|
rewrite?: ((file: string, source: string) => string) | undefined;
|
|
27
27
|
variants?: VariantIndex | undefined;
|
|
28
|
+
iconSlots?: ReadonlySet<string> | undefined;
|
|
28
29
|
}
|
|
29
30
|
export declare function kay(options?: KayPluginOptions): BunPlugin;
|
|
30
31
|
export declare function kayPlugin(options: KayPluginOptions, workers: string[]): BunPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/build/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/build/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAu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,SAAS,CAAA;IAEhE,QAAQ,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IAEnC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;CAC5C;AA4ED,wBAAgB,GAAG,CAAC,OAAO,GAAE,gBAAqB,GAAG,SAAS,CAE7D;AAGD,wBAAgB,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,SAAS,CA4NjF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../../src/build/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"source-files.d.ts","sourceRoot":"","sources":["../../src/build/source-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAO1D,MAAM,WAAW,UAAU;IAEzB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,EAAE,MAAM,EAAE,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,UAAU,EAAE,CAAA;IACvB,aAAa,EAAE;QAAE,UAAU,EAAE,MAAM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CAC3D;AAID,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,SAAS,EAAE,KAAK,GAAE,WAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,CAe1I"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/build/variants.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,UAAU,QAAwC,CAAA;AAI/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AA4KD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,SAAK,GAAG,MAAM,EAAE,CAE7D;
|
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/build/variants.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,UAAU,QAAwC,CAAA;AAI/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AA4KD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,SAAK,GAAG,MAAM,EAAE,CAE7D;AAkND,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,SAAK,GAAG,MAAM,CAgDjG;AAGD,eAAO,MAAM,GAAG,eAAgB,CAAA;AAOhC,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,GAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAa,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,GAAG,CAAC,CA0D7K;AAkCD,qBAAa,YAAY;IAMX,OAAO,CAAC,QAAQ,CAAC,KAAK;IALlC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8C;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAC3D,OAAO,CAAC,IAAI,CAA2B;IAGvC,YAA6B,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EAAI;YAGpD,OAAO;YAUP,GAAG;YAWH,IAAI;IAwBlB,OAAO,CAAC,MAAM;IAUR,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASzC;IAGK,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBhF;CACF;AAGD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAwB9C"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import type { CheckDiagnostic } from '.';
|
|
2
|
-
import type { LintLevels } from '../compiler/lints';
|
|
3
1
|
export declare function oldNamesIn(file: string, source: string): RegExpExecArray[];
|
|
4
2
|
export declare function renameProjectFiles(root: string): Promise<void>;
|
|
5
|
-
export declare function renamedPackages(root: string, levels: LintLevels | undefined): Promise<CheckDiagnostic[]>;
|
|
6
3
|
//# sourceMappingURL=renamed-packages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renamed-packages.d.ts","sourceRoot":"","sources":["../../src/check/renamed-packages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renamed-packages.d.ts","sourceRoot":"","sources":["../../src/check/renamed-packages.ts"],"names":[],"mappings":"AAmEA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,eAAe,EAAE,CAK1E;AAGD,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBpE"}
|
|
@@ -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,EA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O,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAE5G;AAqHD,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,YAAY,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAa5K;AA2LD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAInG;AAoED,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,9 @@
|
|
|
1
|
+
import type { IfBranch, IfNode, Span } from './ast';
|
|
2
|
+
export declare function neverTaken(src: string, branch: IfBranch): boolean;
|
|
3
|
+
export declare function neverShown(src: string, node: IfNode): boolean;
|
|
4
|
+
export declare function neverSet(src: string, attribute: {
|
|
5
|
+
name: string;
|
|
6
|
+
expression: Span;
|
|
7
|
+
action: boolean;
|
|
8
|
+
}): boolean;
|
|
9
|
+
//# sourceMappingURL=dead-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dead-code.d.ts","sourceRoot":"","sources":["../../src/compiler/dead-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AASnD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAEjE;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAGD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAE7G"}
|
|
@@ -104,15 +104,6 @@ export declare const DEPRECATED_LINTS: {
|
|
|
104
104
|
readonly wrong: '---\nimport Card from \'./card.kay\'\n---\nCard(class={{ head: \'p-6\' }})';
|
|
105
105
|
readonly right: '---\nimport Card from \'./card.kay\'\n---\nCard(parts={{ head: \'p-6\' }})';
|
|
106
106
|
};
|
|
107
|
-
readonly 'deprecated-package-names': {
|
|
108
|
-
readonly level: 'warn';
|
|
109
|
-
readonly group: 'deprecated';
|
|
110
|
-
readonly since: '1.104';
|
|
111
|
-
readonly site: true;
|
|
112
|
-
readonly summary: 'A package of kay under the `@kaynooo` scope, `@kayjs` since 1.104: `@kaynooo/kayjs` is `@kayjs/kay`, and `@kaynooo/kayjs-ui`, `-auth`, `-mail`, `-cms` and `-ai` are `@kayjs/ui`, `@kayjs/auth`, `@kayjs/mail`, `@kayjs/cms` and `@kayjs/ai`. The old names stop at 1.103, which stays installable, so an app on them installs and checks as before until it moves; this lint goes in 1.107. Found where a name is an `import` or `export ... from` specifier, a `require()`, `import()` or `mock.module()` argument or a config key (a quoted name keyed to anything but a package name or a version, as `librarySettings`) of the project\'s TypeScript and `.kay` files, in the `@import` and `@plugin` paths of its CSS, and in its package.json and tsconfig files; a name in a comment or any other string, as data a tool reads or a table of renames, is left alone. The fix writes the new name; a package.json that lists the new name already is reported with a fix that is not safe, and `kay upgrade` does the whole move, package.json and install included.';
|
|
113
|
-
readonly wrong: '---\nimport Button from \'@kaynooo/kayjs-ui/button.kay\'\n---\nButton Save';
|
|
114
|
-
readonly right: '---\nimport Button from \'@kayjs/ui/button.kay\'\n---\nButton Save';
|
|
115
|
-
};
|
|
116
107
|
readonly 'deprecated-test-helpers': {
|
|
117
108
|
readonly level: 'warn';
|
|
118
109
|
readonly group: 'deprecated';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,MAAM;iBACb,OAAO,EAAE,0gBAA0gB;iBACnhB,KAAK,EAAE,kGAAkG;iBACzG,KAAK,EAAE,iGAAiG;;;iBAGxG,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,OAAO,EAAE,4bAA4b;iBACrc,KAAK,EAAE,mFAAmF;iBAC1F,KAAK,EAAE,sDAAsD;;;iBAG7D,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,OAAO,EAAE,2tBAA2tB;iBACpuB,KAAK,EAAE,4EAA4E;iBACnF,KAAK,EAAE,4EAA4E;;;iBAGnF,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deprecated-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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4oB;iBACrpB,KAAK,EAAE,yJAAyJ;iBAChK,KAAK,EAAE,qKAAqK;;CAEvI,CAAA;AAGzC,eAAO,MAAM,kBAAkB,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAgC9E,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Span } from './ast';
|
|
2
|
+
import type { CodeBuilder } from './mapping';
|
|
3
|
+
import type { LinkPlan } from './plan';
|
|
4
|
+
export declare function propertyBindings<Node>(b: CodeBuilder, src: string, attribute: {
|
|
5
|
+
name: string;
|
|
6
|
+
expression: Span;
|
|
7
|
+
action: boolean;
|
|
8
|
+
}, link: LinkPlan, node: Node): ((variable: (node: Node) => string) => void)[];
|
|
9
|
+
//# sourceMappingURL=dom-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-property.d.ts","sourceRoot":"","sources":["../../src/compiler/dom-property.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAItC,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,KAAK,IAAI,CAAC,EAAE,CAgB9M"}
|
package/types/compiler/dom.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.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AAE,MAAM,EAAE,EAAE,EAAE,MAAM,KAAK,OAAO,EAAmB,MAAM,CAAC,EAAE,aAAa,YAAA,EAAmB,OAAO,CAAC,GAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,GAAG,SAAS,aAAA,EAAE,UAAU,CAAC,EAAE,UAAU,EAAmB,UAAU,SAAK,EAG3R;IAGD,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAYzB;IAID,YAAY,CAAC,SAAS,EAAE,OAAO,GAAG,MAAM,CAEvC;IAGD,OAAO,CAAC,IAAI;IAQZ,OAAO,CAAC,QAAQ;IAmChB,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,OAAO;IAyFf,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,EAAE;IAwBV,OAAO,CAAC,KAAK;IAsBb,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,GAAG;IAmCX,OAAO,CAAC,GAAG;IA8BX,OAAO,CAAC,KAAK;IAyCb,OAAO,CAAC,OAAO;IA8Cf,OAAO,CAAC,KAAK;IASb,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,UAAU;IAwMlB,OAAO,CAAC,SAAS;IA2CjB,OAAO,CAAC,IAAI;IAyBZ,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,aAAa;IAwBrB,OAAO,CAAC,SAAS;IA0BjB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,CAEtC;IAGD,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;IAGD,OAAO,CAAC,SAAS;CAGlB"}
|
|
@@ -194,15 +194,6 @@ export declare const LINTS: {
|
|
|
194
194
|
readonly wrong: '---\nimport Card from \'./card.kay\'\n---\nCard(class={{ head: \'p-6\' }})';
|
|
195
195
|
readonly right: '---\nimport Card from \'./card.kay\'\n---\nCard(parts={{ head: \'p-6\' }})';
|
|
196
196
|
};
|
|
197
|
-
readonly 'deprecated-package-names': {
|
|
198
|
-
readonly level: 'warn';
|
|
199
|
-
readonly group: 'deprecated';
|
|
200
|
-
readonly since: '1.104';
|
|
201
|
-
readonly site: true;
|
|
202
|
-
readonly summary: 'A package of kay under the `@kaynooo` scope, `@kayjs` since 1.104: `@kaynooo/kayjs` is `@kayjs/kay`, and `@kaynooo/kayjs-ui`, `-auth`, `-mail`, `-cms` and `-ai` are `@kayjs/ui`, `@kayjs/auth`, `@kayjs/mail`, `@kayjs/cms` and `@kayjs/ai`. The old names stop at 1.103, which stays installable, so an app on them installs and checks as before until it moves; this lint goes in 1.107. Found where a name is an `import` or `export ... from` specifier, a `require()`, `import()` or `mock.module()` argument or a config key (a quoted name keyed to anything but a package name or a version, as `librarySettings`) of the project\'s TypeScript and `.kay` files, in the `@import` and `@plugin` paths of its CSS, and in its package.json and tsconfig files; a name in a comment or any other string, as data a tool reads or a table of renames, is left alone. The fix writes the new name; a package.json that lists the new name already is reported with a fix that is not safe, and `kay upgrade` does the whole move, package.json and install included.';
|
|
203
|
-
readonly wrong: '---\nimport Button from \'@kaynooo/kayjs-ui/button.kay\'\n---\nButton Save';
|
|
204
|
-
readonly right: '---\nimport Button from \'@kayjs/ui/button.kay\'\n---\nButton Save';
|
|
205
|
-
};
|
|
206
197
|
readonly 'deprecated-test-helpers': {
|
|
207
198
|
readonly level: 'warn';
|
|
208
199
|
readonly group: 'deprecated';
|