@ai-matrx/summon 0.1.4 → 0.1.5
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 +3 -1
- package/README.md +2 -2
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/persistence-data.cjs +9 -0
- package/dist/persistence-data.cjs.map +1 -1
- package/dist/persistence-data.d.cts +2 -1
- package/dist/persistence-data.d.ts +2 -1
- package/dist/persistence-data.js +9 -0
- package/dist/persistence-data.js.map +1 -1
- package/dist/persistence.cjs +6 -4
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.js +6 -4
- package/dist/persistence.js.map +1 -1
- package/dist/react.cjs +19 -0
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +8 -1
- package/dist/react.d.ts +8 -1
- package/dist/react.js +19 -0
- package/dist/react.js.map +1 -1
- package/dist/url.cjs +32 -50
- package/dist/url.cjs.map +1 -1
- package/dist/url.d.cts +2 -8
- package/dist/url.d.ts +2 -8
- package/dist/url.js +8 -24
- package/dist/url.js.map +1 -1
- package/dist/window-host.cjs +43 -1
- package/dist/window-host.cjs.map +1 -1
- package/dist/window-host.d.cts +45 -1
- package/dist/window-host.d.ts +45 -1
- package/dist/window-host.js +44 -2
- package/dist/window-host.js.map +1 -1
- package/dist/window.cjs +127 -149
- package/dist/window.cjs.map +1 -1
- package/dist/window.d.cts +2 -46
- package/dist/window.d.ts +2 -46
- package/dist/window.js +14 -34
- package/dist/window.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -215,6 +215,12 @@ interface OverlayPersistencePort {
|
|
|
215
215
|
}>;
|
|
216
216
|
remove(key: string): Promise<void>;
|
|
217
217
|
list?(prefix: string): Promise<readonly string[]>;
|
|
218
|
+
/**
|
|
219
|
+
* Every saved value at once (key → value), for stores where one read is cheaper than several.
|
|
220
|
+
* When present, restoring an identity costs exactly this one call: the workspace and every
|
|
221
|
+
* saved component state come out of it, and `load`/`list` are not called on boot.
|
|
222
|
+
*/
|
|
223
|
+
loadAll?(): Promise<ReadonlyMap<string, StoredValue>>;
|
|
218
224
|
}
|
|
219
225
|
interface SummonPorts {
|
|
220
226
|
readonly identity: IdentityPort;
|
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,12 @@ interface OverlayPersistencePort {
|
|
|
215
215
|
}>;
|
|
216
216
|
remove(key: string): Promise<void>;
|
|
217
217
|
list?(prefix: string): Promise<readonly string[]>;
|
|
218
|
+
/**
|
|
219
|
+
* Every saved value at once (key → value), for stores where one read is cheaper than several.
|
|
220
|
+
* When present, restoring an identity costs exactly this one call: the workspace and every
|
|
221
|
+
* saved component state come out of it, and `load`/`list` are not called on boot.
|
|
222
|
+
*/
|
|
223
|
+
loadAll?(): Promise<ReadonlyMap<string, StoredValue>>;
|
|
218
224
|
}
|
|
219
225
|
interface SummonPorts {
|
|
220
226
|
readonly identity: IdentityPort;
|
package/dist/index.js
CHANGED
|
@@ -1145,11 +1145,14 @@ var windowManagerSlice = createSlice2({
|
|
|
1145
1145
|
if (!Number.isFinite(viewportWidth) || !Number.isFinite(viewportHeight) || viewportWidth <= 0 || viewportHeight <= 0) {
|
|
1146
1146
|
return;
|
|
1147
1147
|
}
|
|
1148
|
-
state2.trayViewport = { width: viewportWidth, height: viewportHeight };
|
|
1149
1148
|
const minimized = Object.values(state2.windows).filter(
|
|
1150
1149
|
(w) => w.state === "minimized" && w.traySlot !== null
|
|
1151
1150
|
);
|
|
1152
1151
|
if (minimized.length === 0) return;
|
|
1152
|
+
const tv = state2.trayViewport;
|
|
1153
|
+
if (!tv || tv.width !== viewportWidth || tv.height !== viewportHeight) {
|
|
1154
|
+
state2.trayViewport = { width: viewportWidth, height: viewportHeight };
|
|
1155
|
+
}
|
|
1153
1156
|
recomputeAllTrayRects(state2);
|
|
1154
1157
|
},
|
|
1155
1158
|
/**
|