@vokril/ui-solid 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/README.md +7 -1
- package/dist/{StatusBarNotificationBell-wO16mjon.cjs → StatusBarNotificationBell-BXPtDRks.cjs} +15 -15
- package/dist/{StatusBarNotificationBell-DKDoWK71.js → StatusBarNotificationBell-BjD8U_1v.js} +53 -52
- package/dist/_internal/contract/menuDensity.d.cts +3 -1
- package/dist/_internal/contract/menuDensity.d.ts +3 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +2 -2
- package/dist/server/{StatusBarNotificationBell-DEp4eEUv.cjs → StatusBarNotificationBell-CLNEipLk.cjs} +15 -15
- package/dist/server/{StatusBarNotificationBell-kOm2ZNkl.js → StatusBarNotificationBell-ek4X322Y.js} +52 -51
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +20 -19
- package/dist/server/tokens/menu-density/index.cjs +1 -0
- package/dist/server/tokens/menu-density/index.js +4 -0
- package/dist/server/{menuDensity-Cf74__OQ.cjs → useSettingsSubscription-DKjCwmRd.cjs} +1 -1
- package/dist/server/{menuDensity-6x_EqCGb.js → useSettingsSubscription-DLEk4k4j.js} +5 -7
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +20 -19
- package/dist/solid/tokens/menu-density/index.js +1 -0
- package/dist/style.css +1 -1
- package/dist/tokens/menu-density/index.cjs +1 -0
- package/dist/tokens/menu-density/index.d.cts +12 -0
- package/dist/tokens/menu-density/index.d.ts +12 -0
- package/dist/tokens/menu-density/index.js +4 -0
- package/dist/ui.css +1 -1
- package/dist/{menuDensity-Cf74__OQ.cjs → useSettingsSubscription-DKjCwmRd.cjs} +1 -1
- package/dist/{menuDensity-6x_EqCGb.js → useSettingsSubscription-DLEk4k4j.js} +5 -7
- package/package.json +25 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to `@vokril/ui-solid` are listed here. Versions follow
|
|
|
5
5
|
contain breaking changes. From 0.1.1 on, entries are written by Changesets
|
|
6
6
|
(`npm run release:version`) above the previous release.
|
|
7
7
|
|
|
8
|
+
## 0.33.1
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- A process that checks the native notification overlay's snapshot at its boundary can take the menu densities without loading solid-js. 0.33.0 added the snapshot's `menuDensity` and the list a checker holds it to, `MENU_DENSITIES`, but exported the list only from `@vokril/ui-solid/settings`, which carries the settings registry: its module graph imports `solid-js` under every export condition, so a main process validating the snapshot with a schema had to load solid-js for the list. `@vokril/ui-solid/tokens/menu-density` exports `MENU_DENSITIES` and the `MenuDensity` type, and its module graph holds no package and touches no DOM under every export condition (`solid`, `node` import and require, `import`, `require`). `@vokril/ui-solid/settings` keeps exporting both, unchanged, and the two entries hand out the same array: the list keeps its one home in the kit's contract. A build test walks each condition's module graph, reads the subpath's declarations for the names they export, imports and requires the subpath in a plain Node process, holds its list to be the very array `/settings` exports, and shows the walk finding `solid-js` in `/settings` (`tests/menu-density-subpath.test.mjs`). The palette subpath's test shares the walk (`tests/fixtures/subpath-graph.mjs`), reads its declarations and shows the walk's finds in `/tokens` the same way. The walk now reads each built file with TypeScript's parser: a pattern match lost an import that followed a `//` inside a string on a minified line. The test that imports every entry through the `node` condition takes the entries from `scripts/entries.mjs`. The README's entry table lists the subpath, and its notification overlay section names it for a schema that checks the snapshot.
|
|
13
|
+
|
|
8
14
|
## 0.33.0
|
|
9
15
|
|
|
10
16
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -194,6 +194,7 @@ Every subpath has ESM, CommonJS, type declarations, a server build and a Solid s
|
|
|
194
194
|
| `/a11y` | AriaAnnouncer and the announcement helpers |
|
|
195
195
|
| `/tokens` | ThemeProvider, `useTheme`, `applyAppTheme`, the palettes and their derivation |
|
|
196
196
|
| `/tokens/palette` | The palette's contract alone — `THEME_PALETTE_TOKENS`, `isThemePaletteColor`, the `ThemePalette` type — with no package and no DOM in its module graph, for code that checks a palette outside a window (a main process, a worker); `/tokens` exports the same |
|
|
197
|
+
| `/tokens/menu-density` | The menu densities alone — `MENU_DENSITIES`, the values of a root's `data-menu-density` the token sheet styles, and the `MenuDensity` type — with no package and no DOM in its module graph, for code that checks a density at a process boundary (a main process validating the [notification overlay](#the-native-notification-overlay)'s snapshot); `/settings` exports the same |
|
|
197
198
|
| `/i18n` | `t`, `setLocale`, `setMessages`, language registry |
|
|
198
199
|
| `/settings` | The settings registry the kit and its host share: `defineSettings`, field specs, the kit's own groups (notifications, header icon overrides) |
|
|
199
200
|
| `/host` | The ports an application plugs into the kit (see [Embedding in an application](#embedding-in-an-application)) |
|
|
@@ -483,7 +484,7 @@ theme's root markers select, below), so the overlay page:
|
|
|
483
484
|
factor of its own.
|
|
484
485
|
|
|
485
486
|
```ts
|
|
486
|
-
import type { MenuDensity } from '@vokril/ui-solid/
|
|
487
|
+
import type { MenuDensity } from '@vokril/ui-solid/tokens/menu-density';
|
|
487
488
|
|
|
488
489
|
// The overlay page, on every snapshot its window receives.
|
|
489
490
|
const written = new Set<string>();
|
|
@@ -502,6 +503,11 @@ function applyAppearance(state: { cssVariables?: Record<string, string>; menuDen
|
|
|
502
503
|
}
|
|
503
504
|
```
|
|
504
505
|
|
|
506
|
+
On its way to the overlay window the snapshot crosses a process boundary. A process that checks it
|
|
507
|
+
there — a schema in the host's main process — takes the densities from
|
|
508
|
+
`@vokril/ui-solid/tokens/menu-density`, whose module graph loads no package and touches no DOM;
|
|
509
|
+
`/settings` exports the same list, with the settings registry, which needs solid-js.
|
|
510
|
+
|
|
505
511
|
The snapshot carries every custom property written inline on the host's root, so the host keeps a
|
|
506
512
|
value that belongs to one window out of the root's inline style — in a stylesheet rule, as the
|
|
507
513
|
title bar inset in [Modals](#modals).
|