@fayz-ai/admin 0.42.0 → 0.43.0
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/dist/app/AdminShell.d.ts.map +1 -1
- package/dist/app/bottom-nav.d.ts +1 -1
- package/dist/app/bottom-nav.d.ts.map +1 -1
- package/dist/components/RightRail.d.ts.map +1 -1
- package/dist/components/chat/ChatConversation.d.ts.map +1 -1
- package/dist/components/chat/ChatFab.d.ts.map +1 -1
- package/dist/components/chat/MascotFlight.d.ts +14 -0
- package/dist/components/chat/MascotFlight.d.ts.map +1 -0
- package/dist/components/organization/PermissionProfilesTab.d.ts.map +1 -1
- package/dist/components/right-rail.d.ts +23 -0
- package/dist/components/right-rail.d.ts.map +1 -1
- package/dist/components/shared/RecordPickerModal.d.ts.map +1 -1
- package/dist/crud/CrudListView.d.ts +3 -1
- package/dist/crud/CrudListView.d.ts.map +1 -1
- package/dist/crud/fieldToColumn.d.ts +2 -0
- package/dist/crud/fieldToColumn.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1336 -973
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-staff.d.ts +6 -1
- package/dist/lib/agent-staff.d.ts.map +1 -1
- package/dist/lib/mascot-flight.d.ts +32 -0
- package/dist/lib/mascot-flight.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -22,7 +22,11 @@ import type { AgentRole, AgentStaffDef } from '@fayz-ai/core';
|
|
|
22
22
|
interface AgentState {
|
|
23
23
|
/** The app's agent. Null until the shell registers one. */
|
|
24
24
|
agent: AgentStaffDef | null;
|
|
25
|
-
|
|
25
|
+
/** The answer in `agent` is final. False while a per-trade cast is still
|
|
26
|
+
* waiting for the account's apps — the corner holds its entrance until then
|
|
27
|
+
* rather than introducing one face and swapping it for another. */
|
|
28
|
+
resolved: boolean;
|
|
29
|
+
setAgent: (agent: AgentStaffDef | null, resolved?: boolean) => void;
|
|
26
30
|
}
|
|
27
31
|
export declare const useAgentStore: import("zustand").UseBoundStore<import("zustand").StoreApi<AgentState>>;
|
|
28
32
|
/**
|
|
@@ -85,6 +89,7 @@ export declare function agentForApps(apps: ReadonlyArray<{
|
|
|
85
89
|
/** Publishes the app's agent for the lifetime of the shell. */
|
|
86
90
|
export declare function useRegisterStaff(staff: AgentStaffDef[] | undefined, staffByApp?: Record<string, AgentStaffDef>): void;
|
|
87
91
|
export declare function useAgent(): AgentStaffDef | undefined;
|
|
92
|
+
export declare function useAgentResolved(): boolean;
|
|
88
93
|
/** @deprecated One agent per app — use {@link useAgent}. */
|
|
89
94
|
export declare const useActiveAgent: typeof useAgent;
|
|
90
95
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-staff.d.ts","sourceRoot":"","sources":["../../src/lib/agent-staff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAK7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,UAAU,UAAU;IAClB,2DAA2D;IAC3D,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"agent-staff.d.ts","sourceRoot":"","sources":["../../src/lib/agent-staff.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAK7D;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,UAAU,UAAU;IAClB,2DAA2D;IAC3D,KAAK,EAAE,aAAa,GAAG,IAAI,CAAA;IAC3B;;wEAEoE;IACpE,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CACpE;AAED,eAAO,MAAM,aAAa,yEAIvB,CAAA;AAEH;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,SAAS,GAAG,aAAa,GAAG,IAAI,CAGlF;AAED,wBAAgB,QAAQ,IAAI,aAAa,GAAG,SAAS,CAEpD;AAED,4DAA4D;AAC5D,eAAO,MAAM,cAAc,iBAAW,CAAA;AACtC,4DAA4D;AAC5D,eAAO,MAAM,OAAO,iBAAW,CAAA;AAE/B;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAIxD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,IAAI,MAAM,GAAG,SAAS,CAKlD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAwB7C;AAMD,gFAAgF;AAChF,wBAAgB,YAAY,CAC1B,IAAI,EAAE,aAAa,CAAC;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,SAAS,EACjE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GAAG,SAAS,GAC/C,aAAa,GAAG,IAAI,CAQtB;AAED,+DAA+D;AAC/D,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EAAE,GAAG,SAAS,EAClC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,GACzC,IAAI,CAsBN;AAED,wBAAgB,QAAQ,IAAI,aAAa,GAAG,SAAS,CAEpD;AAED,wBAAgB,gBAAgB,IAAI,OAAO,CAE1C;AAED,4DAA4D;AAC5D,eAAO,MAAM,cAAc,iBAAW,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** A viewport box, detached from the element it was read from. */
|
|
2
|
+
export interface FlightBox {
|
|
3
|
+
left: number;
|
|
4
|
+
top: number;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
interface MascotFlightState {
|
|
9
|
+
/** The mascot peeking from the corner while the panel is shut. */
|
|
10
|
+
corner: HTMLElement | null;
|
|
11
|
+
setCorner: (corner: HTMLElement | null) => void;
|
|
12
|
+
/** Where the mascot sits in the panel's header while it is open. */
|
|
13
|
+
seat: HTMLElement | null;
|
|
14
|
+
setSeat: (seat: HTMLElement | null) => void;
|
|
15
|
+
/** Viewport y of the edge the corner mascot hides behind. */
|
|
16
|
+
floor: number | null;
|
|
17
|
+
setFloor: (floor: number | null) => void;
|
|
18
|
+
/** The hop in progress. Both ends stay hidden while it lasts, so there is
|
|
19
|
+
* only ever one mascot on screen. */
|
|
20
|
+
flight: {
|
|
21
|
+
from: FlightBox;
|
|
22
|
+
to: 'seat' | 'corner';
|
|
23
|
+
} | null;
|
|
24
|
+
launch: (from: FlightBox, to: 'seat' | 'corner') => void;
|
|
25
|
+
land: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const useMascotFlightStore: import("zustand").UseBoundStore<import("zustand").StoreApi<MascotFlightState>>;
|
|
28
|
+
export declare function flightBoxOf(el: HTMLElement | null): FlightBox | null;
|
|
29
|
+
/** Send the mascot off from wherever `from` is standing right now. */
|
|
30
|
+
export declare function launchMascot(from: HTMLElement | null, to: 'seat' | 'corner'): void;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=mascot-flight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mascot-flight.d.ts","sourceRoot":"","sources":["../../src/lib/mascot-flight.ts"],"names":[],"mappings":"AAEA,kEAAkE;AAClE,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,iBAAiB;IACzB,kEAAkE;IAClE,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAC/C,oEAAoE;IACpE,IAAI,EAAE,WAAW,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;IAC3C,6DAA6D;IAC7D,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC;0CACsC;IACtC,MAAM,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,CAAA;KAAE,GAAG,IAAI,CAAA;IACzD,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,KAAK,IAAI,CAAA;IACxD,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,oBAAoB,gFAU9B,CAAA;AAEH,wBAAgB,WAAW,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAIpE;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAKlF"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"fayz": {
|
|
4
4
|
"status": "beta"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.43.0",
|
|
7
7
|
"description": "Fayz SDK admin layer — the admin shell, CRUD engine, multi-tenancy, billing, permissions and org management",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"sideEffects": [
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"@radix-ui/react-dialog": "^1.1.0",
|
|
60
60
|
"@tanstack/react-table": "^8.20.0",
|
|
61
61
|
"cmdk": "^1.0.0",
|
|
62
|
-
"@fayz-ai/auth": "^0.
|
|
63
|
-
"@fayz-ai/core": "^0.
|
|
62
|
+
"@fayz-ai/auth": "^0.43.0",
|
|
63
|
+
"@fayz-ai/core": "^0.43.0",
|
|
64
64
|
"@fayz-ai/db": "^0.23.1",
|
|
65
|
-
"@fayz-ai/plugin-auth": "^0.12.
|
|
65
|
+
"@fayz-ai/plugin-auth": "^0.12.22",
|
|
66
66
|
"@fayz-ai/sdk": "^0.38.0",
|
|
67
|
-
"@fayz-ai/ui": "^0.
|
|
67
|
+
"@fayz-ai/ui": "^0.43.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@supabase/supabase-js": "^2.45.0",
|