@ai-matrx/summon 0.1.0 → 0.1.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/CHANGELOG.md +15 -0
- package/README.md +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/persistence-data.cjs.map +1 -1
- package/dist/persistence-data.d.cts +2 -2
- package/dist/persistence-data.d.ts +2 -2
- package/dist/persistence-data.js.map +1 -1
- package/dist/persistence.cjs +3 -1
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js +3 -1
- package/dist/persistence.js.map +1 -1
- package/dist/react.cjs +15 -10
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +6 -1
- package/dist/react.d.ts +6 -1
- package/dist/react.js +17 -12
- package/dist/react.js.map +1 -1
- package/dist/sheet.cjs +4 -26
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.d.cts +3 -2
- package/dist/sheet.d.ts +3 -2
- package/dist/sheet.js +1 -23
- package/dist/sheet.js.map +1 -1
- package/dist/window.cjs +24 -20
- package/dist/window.cjs.map +1 -1
- package/dist/window.js +24 -20
- package/dist/window.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2
|
|
4
|
+
|
|
5
|
+
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
|
+
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/summon/src`.
|
|
7
|
+
|
|
8
|
+
## 0.1.1
|
|
9
|
+
### Unreleased
|
|
10
|
+
|
|
11
|
+
- Window auto-placement bookkeeping lives in a global slot instead of module state (one record across duplicated module graphs). `./sheet` reads the close binding through `@ai-matrx/summon/dialog`. New guard `fullStackReload.test.tsx`: a window opened with data survives a full teardown and remount through `OverlayPersistence` (red without persistence). Consumer action: none.
|
|
12
|
+
- **Fixed: an open overlay re-rendered on every render of the host's parent** (runtime sweep, 2026-10-16: a `shareLinkDialog` opened without its file id logged its refusal 425 times in its first 2 s inside AI Matrx). SummonHost's per-definition slot, its per-instance slot and every definition's instance body are now `memo` components (SummonHost itself stays a plain function), so an open overlay re-renders only when ITS instance changes (data reference, hidden), never because the app shell above the host re-rendered. Guard: `src/react/__tests__/renderStorm.test.tsx` (null-render under host churn, `parse()` refusal closes once, close-on-mount renders once, Controller never reopens a self-closed overlay, keepAlive hidden not re-rendered) — red on 0.1.0 (21 renders vs 1). Consumer action: none.
|
|
13
|
+
- **New: `useOptionalSummonStore()`** (`./react`) — the nearest provider's store or `null`, for a package that mounts its own `SummonProvider` only when the host has none (`@ai-matrx/chat` does). Consumer action: none.
|
|
14
|
+
- Source passes stricter consumer compilers (`verbatimModuleSyntax`, `erasableSyntaxOnly`, `noUnusedLocals`): type-only import in the window-manager slice, no constructor parameter properties in `KeepAliveRegistry` / `LoaderCache`, four unused names removed. Consumer action: none.
|
|
15
|
+
|
|
3
16
|
## 0.1.0 — 2026-10-16
|
|
4
17
|
|
|
5
18
|
First release (C38): the Redux-driven render system carved out of matrx-frontend.
|
|
@@ -11,3 +24,5 @@ First release (C38): the Redux-driven render system carved out of matrx-frontend
|
|
|
11
24
|
- window-host (root-mountable config, tray sync, tray previews), lite window, dialog and sheet wrappers.
|
|
12
25
|
- Links: `?panels=` manager, grammar v2 (percent-encoded, v1-compatible), one open-from-link door. Fixed: link vs restore race (link data wins, restored geometry wins).
|
|
13
26
|
- Persistence: browser-local store (per tab or per person) and `@ai-matrx/data` adapter over `users.user_surface_state`; Next.js router port; testing helpers.
|
|
27
|
+
|
|
28
|
+
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ pnpm add @ai-matrx/summon react react-dom react-redux @reduxjs/toolkit
|
|
|
25
25
|
| `html-to-image` (optional) | tray thumbnails of minimized windows (without it the tile shows no preview) |
|
|
26
26
|
| `@supabase/supabase-js` | only `./persistence/data`, through `@ai-matrx/data` |
|
|
27
27
|
|
|
28
|
-
Entries: `.` (core, no React), `./handles` (no React, no Redux), `./react`, `./window`, `./dialog`, `./sheet`, `./lite`, `./url`, `./persistence`, `./persistence/data`, `./next`, `./testing`, `./styles.css`.
|
|
28
|
+
Entries: `.` (core, no React), `./handles` (no React, no Redux), `./react`, `./window`, `./window-host` (the root-mountable half of the window section: `WindowsProvider`, `WindowTraySync`, `registerTrayPreview` — never loads WindowPanel), `./dialog`, `./sheet`, `./lite`, `./url`, `./persistence`, `./persistence/data`, `./next`, `./testing`, `./styles.css`.
|
|
29
29
|
|
|
30
30
|
## Quick start
|
|
31
31
|
|
|
@@ -331,7 +331,7 @@ Behaviour you can rely on: maximize, minimize, pop-out and dock never remount th
|
|
|
331
331
|
|
|
332
332
|
**`WindowsProvider`** is optional; options: `escapeYieldSelector` (visible elements matching it own the Escape key; default `[data-overlay-escape-yield]`), `mobileTopOffset` (default `var(--header-height, 0px)`), `selectionSurface` (a component wrapping every window body, for a host's selection or right-click menu).
|
|
333
333
|
|
|
334
|
-
Also exported from `./window`: `WindowTraySync
|
|
334
|
+
Also exported from `./window`: `WindowTraySync` and `registerTrayPreview` (a semantic preview for a minimized tile; both also on the light `./window-host` entry — mount providers from there at the app root), `LayoutIcon`, `usePopoutControl`, `MobileDrawerSurface`, `MobileCardSurface`, `useWindowPanel`.
|
|
335
335
|
|
|
336
336
|
### Dialog, sheet, light window
|
|
337
337
|
|