Rename sw-* source files to yk-*
commit 84fca238b7dadf9349fd8f4789caa495361db7ca · parent a24a232c5b
· browse this tree
Ximianth, 2026-10-10 06:04:17 UTC
File renames and the import and package.json paths that point at them; contents follow in the next commit. The e2e scenario that drives the button is now yk-button-drive.ts, named like its siblings by the thing it drives.
diff --git a/packages/e2e/main.ts b/packages/e2e/main.ts index f23b4c4..b457e8c 100644 --- a/packages/e2e/main.ts +++ b/packages/e2e/main.ts @@ -9,7 +9,7 @@ import { Harness } from "./harness.ts"; import { ipDrive } from "./scenarios/ip-drive.ts"; import { lcDrive } from "./scenarios/lc-drive.ts"; import { mcDrive } from "./scenarios/mc-drive.ts"; -import { swDrive } from "./scenarios/sw-drive.ts"; +import { swDrive } from "./scenarios/yk-button-drive.ts"; const ALL: Scenario[] = [mcDrive, swDrive, ipDrive, lcDrive]; diff --git a/packages/e2e/scenarios/sw-drive.ts b/packages/e2e/scenarios/yk-button-drive.ts similarity index 100% rename from packages/e2e/scenarios/sw-drive.ts rename to packages/e2e/scenarios/yk-button-drive.ts diff --git a/packages/yukey/package.json b/packages/yukey/package.json index 705c093..3f297da 100644 --- a/packages/yukey/package.json +++ b/packages/yukey/package.json @@ -4,29 +4,29 @@ "description": "a ui framework for the keyboard lover: Lit web components where the keyboard is on par with the mouse", "license": "Apache-2.0 OR MIT", "sideEffects": [ - "./src/sw-button.ts", - "./src/sw-infopop.ts", - "./src/sw-list.ts", - "./src/sw-live-list.ts", - "./src/gallery/sw-gallery.ts", + "./src/yk-button.ts", + "./src/yk-infopop.ts", + "./src/yk-list.ts", + "./src/yk-live-list.ts", + "./src/gallery/yk-gallery.ts", "./src/gallery/main.ts", "./src/megacolumn.gallery.ts", - "./src/sw-button.gallery.ts", - "./src/sw-infopop.gallery.ts", - "./src/sw-list.gallery.ts", - "./src/sw-live-list.gallery.ts", + "./src/yk-button.gallery.ts", + "./src/yk-infopop.gallery.ts", + "./src/yk-list.gallery.ts", + "./src/yk-live-list.gallery.ts", "./src/tokens.gallery.ts", - "./dist/sw-button.js", - "./dist/sw-infopop.js", - "./dist/sw-list.js", - "./dist/sw-live-list.js", - "./dist/gallery/sw-gallery.js", + "./dist/yk-button.js", + "./dist/yk-infopop.js", + "./dist/yk-list.js", + "./dist/yk-live-list.js", + "./dist/gallery/yk-gallery.js", "./dist/gallery/main.js", "./dist/megacolumn.gallery.js", - "./dist/sw-button.gallery.js", - "./dist/sw-infopop.gallery.js", - "./dist/sw-list.gallery.js", - "./dist/sw-live-list.gallery.js", + "./dist/yk-button.gallery.js", + "./dist/yk-infopop.gallery.js", + "./dist/yk-list.gallery.js", + "./dist/yk-live-list.gallery.js", "./dist/tokens.gallery.js" ], "type": "module", diff --git a/packages/yukey/src/gallery/main.ts b/packages/yukey/src/gallery/main.ts index 5a08eb8..8c6a61e 100644 --- a/packages/yukey/src/gallery/main.ts +++ b/packages/yukey/src/gallery/main.ts @@ -1,6 +1,6 @@ // Gallery entry point (esbuild bundles this to static/gallery.js; gallery.html hosts it). // Registering <sw-gallery> is all that's needed; it pulls the entry registry in turn. import { installTokens } from "../tokens.js"; -import "./sw-gallery.js"; +import "./yk-gallery.js"; installTokens(); diff --git a/packages/yukey/src/gallery/registry.ts b/packages/yukey/src/gallery/registry.ts index 72744a7..07d1fab 100644 --- a/packages/yukey/src/gallery/registry.ts +++ b/packages/yukey/src/gallery/registry.ts @@ -3,11 +3,11 @@ // (See entry.ts for the convention itself.) import megacolumn from "../megacolumn.gallery.js"; -import swButton from "../sw-button.gallery.js"; -import swInfopop from "../sw-infopop.gallery.js"; -import swList from "../sw-list.gallery.js"; -import swLiveList from "../sw-live-list.gallery.js"; import tokens from "../tokens.gallery.js"; +import swButton from "../yk-button.gallery.js"; +import swInfopop from "../yk-infopop.gallery.js"; +import swList from "../yk-list.gallery.js"; +import swLiveList from "../yk-live-list.gallery.js"; import type { GalleryEntry } from "./entry.js"; export const entries: GalleryEntry[] = [ diff --git a/packages/yukey/src/gallery/sw-gallery.ts b/packages/yukey/src/gallery/yk-gallery.ts similarity index 99% rename from packages/yukey/src/gallery/sw-gallery.ts rename to packages/yukey/src/gallery/yk-gallery.ts index 8e3bbb8..16c5d9e 100644 --- a/packages/yukey/src/gallery/sw-gallery.ts +++ b/packages/yukey/src/gallery/yk-gallery.ts @@ -5,7 +5,7 @@ import { css, html, LitElement, type PropertyValues, type TemplateResult } from "lit"; import { customElement, state } from "lit/decorators.js"; -import "../sw-infopop.js"; +import "../yk-infopop.js"; import { deepTabbables, installTabContainment } from "../tab-cycle.js"; import type { GalleryEntry } from "./entry.js"; import { entries } from "./registry.js"; diff --git a/packages/yukey/src/megacolumn-controller.test.ts b/packages/yukey/src/megacolumn-controller.test.ts index 86c1853..3edf71b 100644 --- a/packages/yukey/src/megacolumn-controller.test.ts +++ b/packages/yukey/src/megacolumn-controller.test.ts @@ -13,7 +13,7 @@ import { MegacolumnController, type MegacolumnKeyDetail, } from "./megacolumn-controller.js"; -import type { SwInfoDetail } from "./sw-info.js"; +import type { SwInfoDetail } from "./yk-info.js"; // jsdom has no layout and implements no scrollIntoView; the controller calls it // on every focus-identity change (logical focus must never sit off-screen). diff --git a/packages/yukey/src/megacolumn-controller.ts b/packages/yukey/src/megacolumn-controller.ts index 0b7ee16..93d1785 100644 --- a/packages/yukey/src/megacolumn-controller.ts +++ b/packages/yukey/src/megacolumn-controller.ts @@ -163,7 +163,7 @@ import type { ReactiveController, ReactiveControllerHost } from "lit"; import { css } from "lit"; import { MegacolumnNav, type NavRow, type RowPosition } from "./megacolumn-nav.js"; -import { dispatchSwInfo } from "./sw-info.js"; +import { dispatchSwInfo } from "./yk-info.js"; export interface MegacolumnKeyDetail { key: string; diff --git a/packages/yukey/src/tokens.gallery.ts b/packages/yukey/src/tokens.gallery.ts index ec6c03e..7db5667 100644 --- a/packages/yukey/src/tokens.gallery.ts +++ b/packages/yukey/src/tokens.gallery.ts @@ -7,7 +7,7 @@ import { css, html, LitElement, type TemplateResult } from "lit"; import { customElement, property } from "lit/decorators.js"; import type { GalleryEntry } from "./gallery/entry.js"; -import "./sw-button.js"; +import "./yk-button.js"; import { type TokenDef, tokenGroups } from "./tokens.js"; // One demo element, four faces (palette / spacing / type / focus): the variants diff --git a/packages/yukey/src/sw-button.gallery.ts b/packages/yukey/src/yk-button.gallery.ts similarity index 99% rename from packages/yukey/src/sw-button.gallery.ts rename to packages/yukey/src/yk-button.gallery.ts index fae6f8a..63982ea 100644 --- a/packages/yukey/src/sw-button.gallery.ts +++ b/packages/yukey/src/yk-button.gallery.ts @@ -6,9 +6,9 @@ import { css, html, LitElement, type TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import type { GalleryEntry } from "./gallery/entry.js"; import { MegacolumnController, type MegacolumnKeyDetail, megacolumnStyles } from "./megacolumn-controller.js"; -import "./sw-button.js"; +import "./yk-button.js"; import { flashPress } from "./press-flash.js"; -import type { SwInfoDetail } from "./sw-info.js"; +import type { SwInfoDetail } from "./yk-info.js"; // Shared demo chrome: a title, a log line that shows what fired. const demoStyles = css` diff --git a/packages/yukey/src/sw-button.test.ts b/packages/yukey/src/yk-button.test.ts similarity index 99% rename from packages/yukey/src/sw-button.test.ts rename to packages/yukey/src/yk-button.test.ts index 241509d..ebe87f2 100644 --- a/packages/yukey/src/sw-button.test.ts +++ b/packages/yukey/src/yk-button.test.ts @@ -7,10 +7,10 @@ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { MegacolumnController } from "./megacolumn-controller.js"; -import type { SwButton } from "./sw-button.js"; -import "./sw-button.js"; -import type { SwInfoDetail } from "./sw-info.js"; +import type { SwButton } from "./yk-button.js"; +import "./yk-button.js"; import { installTokens, tokenGroups } from "./tokens.js"; +import type { SwInfoDetail } from "./yk-info.js"; // jsdom implements no scrollIntoView; the controller scrolls the focused row // into view on every focus identity change. A no-op stands in. diff --git a/packages/yukey/src/sw-button.ts b/packages/yukey/src/yk-button.ts similarity index 99% rename from packages/yukey/src/sw-button.ts rename to packages/yukey/src/yk-button.ts index 54142c5..1eda933 100644 --- a/packages/yukey/src/sw-button.ts +++ b/packages/yukey/src/yk-button.ts @@ -78,7 +78,7 @@ import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; import type { MegacolumnKeyDetail } from "./megacolumn-controller.js"; import { flashPress } from "./press-flash.js"; -import { dispatchSwInfo } from "./sw-info.js"; +import { dispatchSwInfo } from "./yk-info.js"; @customElement("sw-button") export class SwButton extends LitElement { diff --git a/packages/yukey/src/sw-info.ts b/packages/yukey/src/yk-info.ts similarity index 100% rename from packages/yukey/src/sw-info.ts rename to packages/yukey/src/yk-info.ts diff --git a/packages/yukey/src/sw-infopop.gallery.ts b/packages/yukey/src/yk-infopop.gallery.ts similarity index 99% rename from packages/yukey/src/sw-infopop.gallery.ts rename to packages/yukey/src/yk-infopop.gallery.ts index 15e5a42..67a0294 100644 --- a/packages/yukey/src/sw-infopop.gallery.ts +++ b/packages/yukey/src/yk-infopop.gallery.ts @@ -7,7 +7,7 @@ import { css, html, LitElement, type TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import type { GalleryEntry } from "./gallery/entry.js"; import { MegacolumnController, type MegacolumnKeyDetail, megacolumnStyles } from "./megacolumn-controller.js"; -import "./sw-button.js"; +import "./yk-button.js"; // A megacolumn where every row flavor carries info: sw-buttons answer i // themselves; the plain text main, the slider row, and the aux x are answered diff --git a/packages/yukey/src/sw-infopop.test.ts b/packages/yukey/src/yk-infopop.test.ts similarity index 98% rename from packages/yukey/src/sw-infopop.test.ts rename to packages/yukey/src/yk-infopop.test.ts index b1736f0..19171c9 100644 --- a/packages/yukey/src/sw-infopop.test.ts +++ b/packages/yukey/src/yk-infopop.test.ts @@ -6,9 +6,9 @@ // browser verification covers the real flip. Hover timing runs on fake timers. import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { dispatchSwInfo } from "./sw-info.js"; -import { HOVER_DELAY_MS, type SwInfopop } from "./sw-infopop.js"; -import "./sw-infopop.js"; +import { dispatchSwInfo } from "./yk-info.js"; +import { HOVER_DELAY_MS, type SwInfopop } from "./yk-infopop.js"; +import "./yk-infopop.js"; interface Rig { pop: SwInfopop; diff --git a/packages/yukey/src/sw-infopop.ts b/packages/yukey/src/yk-infopop.ts similarity index 99% rename from packages/yukey/src/sw-infopop.ts rename to packages/yukey/src/yk-infopop.ts index d879d7d..744e9f2 100644 --- a/packages/yukey/src/sw-infopop.ts +++ b/packages/yukey/src/yk-infopop.ts @@ -48,7 +48,7 @@ import { css, html, LitElement, type TemplateResult } from "lit"; import { customElement, state } from "lit/decorators.js"; import { placeInfopop } from "./infopop-place.js"; -import type { SwInfoDetail } from "./sw-info.js"; +import type { SwInfoDetail } from "./yk-info.js"; export const HOVER_DELAY_MS = 350; diff --git a/packages/yukey/src/sw-list.gallery.test.ts b/packages/yukey/src/yk-list.gallery.test.ts similarity index 99% rename from packages/yukey/src/sw-list.gallery.test.ts rename to packages/yukey/src/yk-list.gallery.test.ts index 5fa3731..014266b 100644 --- a/packages/yukey/src/sw-list.gallery.test.ts +++ b/packages/yukey/src/yk-list.gallery.test.ts @@ -13,9 +13,9 @@ // untouched even then. The trusted-input version runs in lc-drive.py. import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import "./sw-list.gallery.js"; -import type { SwList } from "./sw-list.js"; +import "./yk-list.gallery.js"; import { installTokens } from "./tokens.js"; +import type { SwList } from "./yk-list.js"; // The task removal path flashes the x (press-flash resolves --sw-press-ms from // the live cascade and throws when it can't), so the tokens must be installed. diff --git a/packages/yukey/src/sw-list.gallery.ts b/packages/yukey/src/yk-list.gallery.ts similarity index 99% rename from packages/yukey/src/sw-list.gallery.ts rename to packages/yukey/src/yk-list.gallery.ts index 69b0b29..8d68147 100644 --- a/packages/yukey/src/sw-list.gallery.ts +++ b/packages/yukey/src/yk-list.gallery.ts @@ -14,10 +14,10 @@ import { classMap } from "lit/directives/class-map.js"; import type { GalleryEntry } from "./gallery/entry.js"; import { MegacolumnController, type MegacolumnKeyDetail, megacolumnStyles } from "./megacolumn-controller.js"; import { flashPress } from "./press-flash.js"; -import type { SwListAddDetail } from "./sw-list.js"; -import type { LiveListPhase } from "./sw-live-list.js"; -import "./sw-list.js"; -import "./sw-button.js"; +import type { SwListAddDetail } from "./yk-list.js"; +import type { LiveListPhase } from "./yk-live-list.js"; +import "./yk-list.js"; +import "./yk-button.js"; interface QueueTask { id: string; diff --git a/packages/yukey/src/sw-list.test.ts b/packages/yukey/src/yk-list.test.ts similarity index 99% rename from packages/yukey/src/sw-list.test.ts rename to packages/yukey/src/yk-list.test.ts index d63c578..7a9460c 100644 --- a/packages/yukey/src/sw-list.test.ts +++ b/packages/yukey/src/yk-list.test.ts @@ -14,9 +14,9 @@ import { html, LitElement, nothing, type TemplateResult } from "lit"; import { customElement, property } from "lit/decorators.js"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { MegacolumnController, megacolumnStyles } from "./megacolumn-controller.js"; -import type { SwList, SwListAddDetail } from "./sw-list.js"; -import type { LiveListPhase } from "./sw-live-list.js"; -import "./sw-list.js"; +import type { SwList, SwListAddDetail } from "./yk-list.js"; +import type { LiveListPhase } from "./yk-live-list.js"; +import "./yk-list.js"; interface Item { id: string; diff --git a/packages/yukey/src/sw-list.ts b/packages/yukey/src/yk-list.ts similarity index 99% rename from packages/yukey/src/sw-list.ts rename to packages/yukey/src/yk-list.ts index 02a56b7..57e437e 100644 --- a/packages/yukey/src/sw-list.ts +++ b/packages/yukey/src/yk-list.ts @@ -109,8 +109,8 @@ import { css, html, LitElement, nothing, type TemplateResult } from "lit"; import { customElement, property } from "lit/decorators.js"; import { adoptIntoRoot } from "./adopt-into-root.js"; import type { MegacolumnKeyDetail } from "./megacolumn-controller.js"; -import type { LiveListPhase } from "./sw-live-list.js"; -import "./sw-live-list.js"; +import type { LiveListPhase } from "./yk-live-list.js"; +import "./yk-live-list.js"; export interface SwListAddDetail { text: string; // trimmed, never empty diff --git a/packages/yukey/src/sw-live-list.gallery.ts b/packages/yukey/src/yk-live-list.gallery.ts similarity index 98% rename from packages/yukey/src/sw-live-list.gallery.ts rename to packages/yukey/src/yk-live-list.gallery.ts index 3bac560..b796b3d 100644 --- a/packages/yukey/src/sw-live-list.gallery.ts +++ b/packages/yukey/src/yk-live-list.gallery.ts @@ -7,8 +7,8 @@ import { css, html, LitElement, type TemplateResult } from "lit"; import { customElement, property, state } from "lit/decorators.js"; import type { GalleryEntry } from "./gallery/entry.js"; -import type { LiveListPhase } from "./sw-live-list.js"; -import "./sw-live-list.js"; +import type { LiveListPhase } from "./yk-live-list.js"; +import "./yk-live-list.js"; interface DemoRow { id: string; diff --git a/packages/yukey/src/sw-live-list.test.ts b/packages/yukey/src/yk-live-list.test.ts similarity index 99% rename from packages/yukey/src/sw-live-list.test.ts rename to packages/yukey/src/yk-live-list.test.ts index 07334ab..2f00598 100644 --- a/packages/yukey/src/sw-live-list.test.ts +++ b/packages/yukey/src/yk-live-list.test.ts @@ -15,8 +15,8 @@ import { html, type TemplateResult } from "lit"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { MegacolumnController } from "./megacolumn-controller.js"; -import type { LiveListPhase, SwLiveList } from "./sw-live-list.js"; -import "./sw-live-list.js"; +import type { LiveListPhase, SwLiveList } from "./yk-live-list.js"; +import "./yk-live-list.js"; interface Item { id: string; diff --git a/packages/yukey/src/sw-live-list.ts b/packages/yukey/src/yk-live-list.ts similarity index 100% rename from packages/yukey/src/sw-live-list.ts rename to packages/yukey/src/yk-live-list.ts