@ai-matrx/summon 0.1.7 → 0.1.9
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 -2
- package/dist/gate-CfjdNWP6.d.cts +397 -0
- package/dist/gate-CfjdNWP6.d.ts +397 -0
- package/dist/handles.cjs +1 -0
- package/dist/handles.cjs.map +1 -1
- package/dist/handles.d.cts +3 -61
- package/dist/handles.d.ts +3 -61
- package/dist/handles.js +1 -0
- package/dist/handles.js.map +1 -1
- package/dist/helpers-2NY1ha0V.d.cts +63 -0
- package/dist/helpers-2NY1ha0V.d.ts +63 -0
- package/dist/index.cjs +194 -159
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -350
- package/dist/index.d.ts +12 -350
- package/dist/index.js +200 -165
- package/dist/index.js.map +1 -1
- package/dist/instanceBody-CgZAFnic.d.cts +23 -0
- package/dist/instanceBody-CgZAFnic.d.ts +23 -0
- package/dist/open.cjs +408 -0
- package/dist/open.cjs.map +1 -0
- package/dist/open.d.cts +23 -0
- package/dist/open.d.ts +23 -0
- package/dist/open.js +375 -0
- package/dist/open.js.map +1 -0
- package/dist/react.cjs +249 -352
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +11 -151
- package/dist/react.d.ts +11 -151
- package/dist/react.js +210 -306
- package/dist/react.js.map +1 -1
- package/dist/root.cjs +277 -0
- package/dist/root.cjs.map +1 -0
- package/dist/root.d.cts +175 -0
- package/dist/root.d.ts +175 -0
- package/dist/root.js +254 -0
- package/dist/root.js.map +1 -0
- package/dist/window-host.cjs +11 -2
- package/dist/window-host.cjs.map +1 -1
- package/dist/window-host.d.cts +1 -0
- package/dist/window-host.d.ts +1 -0
- package/dist/window-host.js +11 -2
- package/dist/window-host.js.map +1 -1
- package/dist/window.cjs +2 -1
- package/dist/window.cjs.map +1 -1
- package/dist/window.d.cts +3 -2
- package/dist/window.d.ts +3 -2
- package/dist/window.js +2 -1
- package/dist/window.js.map +1 -1
- package/package.json +28 -5
package/dist/window.d.cts
CHANGED
|
@@ -47,8 +47,9 @@ interface UseWindowPanelOptions {
|
|
|
47
47
|
*/
|
|
48
48
|
onAutoNoRoom?: (() => void) | undefined;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
50
|
+
* Explicit placement: open at exactly this rect (any of x, y, width, height). Overrides
|
|
51
|
+
* width/height/position and is never auto-placed — for hosts that place windows themselves,
|
|
52
|
+
* e.g. a canvas full of controls where auto-placement finds no free gutter.
|
|
52
53
|
*/
|
|
53
54
|
initialRect?: Partial<WindowRect> | undefined;
|
|
54
55
|
/** Maximum width the user can resize to. */
|
package/dist/window.d.ts
CHANGED
|
@@ -47,8 +47,9 @@ interface UseWindowPanelOptions {
|
|
|
47
47
|
*/
|
|
48
48
|
onAutoNoRoom?: (() => void) | undefined;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
50
|
+
* Explicit placement: open at exactly this rect (any of x, y, width, height). Overrides
|
|
51
|
+
* width/height/position and is never auto-placed — for hosts that place windows themselves,
|
|
52
|
+
* e.g. a canvas full of controls where auto-placement finds no free gutter.
|
|
52
53
|
*/
|
|
53
54
|
initialRect?: Partial<WindowRect> | undefined;
|
|
54
55
|
/** Maximum width the user can resize to. */
|
package/dist/window.js
CHANGED
|
@@ -496,7 +496,8 @@ function useWindowPanel(opts = {}) {
|
|
|
496
496
|
const h = opts.initialRect?.height ?? resolveSize(opts.height, DEFAULT_HEIGHT);
|
|
497
497
|
const { vw, vh } = safeViewportDims();
|
|
498
498
|
let autoPlaced = null;
|
|
499
|
-
|
|
499
|
+
const explicitlyPlaced = opts.initialRect?.x !== void 0 || opts.initialRect?.y !== void 0;
|
|
500
|
+
if (opts.autoOpened && !explicitlyPlaced && vw >= NARROW_VIEWPORT) {
|
|
500
501
|
{
|
|
501
502
|
const ap = autoPlacement();
|
|
502
503
|
if (!ap.order.has(id)) ap.order.set(id, ap.next++);
|