@fayz-ai/admin 0.10.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/LICENSE +21 -0
- package/README.md +44 -0
- package/dist/CommandPalette-2AL327XQ.js +258 -0
- package/dist/CommandPalette-2AL327XQ.js.map +1 -0
- package/dist/ImportWizard-CISHGNQC.js +3 -0
- package/dist/ImportWizard-CISHGNQC.js.map +1 -0
- package/dist/ScheduleEditor-BSFF7LME.js +1040 -0
- package/dist/ScheduleEditor-BSFF7LME.js.map +1 -0
- package/dist/SubscriptionPage-NLZAZO4P.js +7 -0
- package/dist/SubscriptionPage-NLZAZO4P.js.map +1 -0
- package/dist/access/context.d.ts +47 -0
- package/dist/access/context.d.ts.map +1 -0
- package/dist/access/headless.d.ts +21 -0
- package/dist/access/headless.d.ts.map +1 -0
- package/dist/access/index.d.ts +12 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/limits-registry.d.ts +33 -0
- package/dist/access/limits-registry.d.ts.map +1 -0
- package/dist/access/module-nav.d.ts +15 -0
- package/dist/access/module-nav.d.ts.map +1 -0
- package/dist/access/resolver.d.ts +2 -0
- package/dist/access/resolver.d.ts.map +1 -0
- package/dist/access/types.d.ts +43 -0
- package/dist/access/types.d.ts.map +1 -0
- package/dist/access/upgrade-modal-store.d.ts +23 -0
- package/dist/access/upgrade-modal-store.d.ts.map +1 -0
- package/dist/app/AdminShell.d.ts +65 -0
- package/dist/app/AdminShell.d.ts.map +1 -0
- package/dist/app/LoginPage.d.ts +3 -0
- package/dist/app/LoginPage.d.ts.map +1 -0
- package/dist/app/admin-app.d.ts +23 -0
- package/dist/app/admin-app.d.ts.map +1 -0
- package/dist/app/config.d.ts +277 -0
- package/dist/app/config.d.ts.map +1 -0
- package/dist/app/core-entities.d.ts +25 -0
- package/dist/app/core-entities.d.ts.map +1 -0
- package/dist/app/derive-contract.d.ts +8 -0
- package/dist/app/derive-contract.d.ts.map +1 -0
- package/dist/app/nav-contributions.store.d.ts +17 -0
- package/dist/app/nav-contributions.store.d.ts.map +1 -0
- package/dist/app/routing.d.ts +10 -0
- package/dist/app/routing.d.ts.map +1 -0
- package/dist/app/scaffold.d.ts +17 -0
- package/dist/app/scaffold.d.ts.map +1 -0
- package/dist/billing/index.d.ts +5 -0
- package/dist/billing/index.d.ts.map +1 -0
- package/dist/billing/index.js +3 -0
- package/dist/billing/index.js.map +1 -0
- package/dist/billing/plan-badge.d.ts +17 -0
- package/dist/billing/plan-badge.d.ts.map +1 -0
- package/dist/billing/store.d.ts +40 -0
- package/dist/billing/store.d.ts.map +1 -0
- package/dist/chunk-5O2UJAQ7.js +534 -0
- package/dist/chunk-5O2UJAQ7.js.map +1 -0
- package/dist/chunk-PNAJODZM.js +315 -0
- package/dist/chunk-PNAJODZM.js.map +1 -0
- package/dist/chunk-RKXZ7RUG.js +20 -0
- package/dist/chunk-RKXZ7RUG.js.map +1 -0
- package/dist/chunk-TNTZHUL6.js +817 -0
- package/dist/chunk-TNTZHUL6.js.map +1 -0
- package/dist/chunk-UMRN6427.js +510 -0
- package/dist/chunk-UMRN6427.js.map +1 -0
- package/dist/chunk-VN5NTK26.js +36 -0
- package/dist/chunk-VN5NTK26.js.map +1 -0
- package/dist/chunk-VTEP2AQX.js +101 -0
- package/dist/chunk-VTEP2AQX.js.map +1 -0
- package/dist/chunk-YUHCC7JY.js +11 -0
- package/dist/chunk-YUHCC7JY.js.map +1 -0
- package/dist/components/RightRail.d.ts +8 -0
- package/dist/components/RightRail.d.ts.map +1 -0
- package/dist/components/auth/CenteredLogin.d.ts +13 -0
- package/dist/components/auth/CenteredLogin.d.ts.map +1 -0
- package/dist/components/auth/LoginForm.d.ts +12 -0
- package/dist/components/auth/LoginForm.d.ts.map +1 -0
- package/dist/components/auth/LoginPage.d.ts +15 -0
- package/dist/components/auth/LoginPage.d.ts.map +1 -0
- package/dist/components/auth/OAuthButtons.d.ts +10 -0
- package/dist/components/auth/OAuthButtons.d.ts.map +1 -0
- package/dist/components/auth/ProtectedRoute.d.ts +11 -0
- package/dist/components/auth/ProtectedRoute.d.ts.map +1 -0
- package/dist/components/auth/RecoveryForm.d.ts +9 -0
- package/dist/components/auth/RecoveryForm.d.ts.map +1 -0
- package/dist/components/auth/SignupForm.d.ts +10 -0
- package/dist/components/auth/SignupForm.d.ts.map +1 -0
- package/dist/components/auth/SplitLogin.d.ts +14 -0
- package/dist/components/auth/SplitLogin.d.ts.map +1 -0
- package/dist/components/auth/index.d.ts +7 -0
- package/dist/components/auth/index.d.ts.map +1 -0
- package/dist/components/billing/InvoiceList.d.ts +9 -0
- package/dist/components/billing/InvoiceList.d.ts.map +1 -0
- package/dist/components/billing/PlanSelector.d.ts +13 -0
- package/dist/components/billing/PlanSelector.d.ts.map +1 -0
- package/dist/components/billing/SoftLimitBanner.d.ts +5 -0
- package/dist/components/billing/SoftLimitBanner.d.ts.map +1 -0
- package/dist/components/billing/SubscriptionCard.d.ts +12 -0
- package/dist/components/billing/SubscriptionCard.d.ts.map +1 -0
- package/dist/components/billing/SubscriptionPage.d.ts +5 -0
- package/dist/components/billing/SubscriptionPage.d.ts.map +1 -0
- package/dist/components/billing/UpgradeModal.d.ts +3 -0
- package/dist/components/billing/UpgradeModal.d.ts.map +1 -0
- package/dist/components/billing/UpgradeOverlay.d.ts +15 -0
- package/dist/components/billing/UpgradeOverlay.d.ts.map +1 -0
- package/dist/components/billing/UpgradePrompt.d.ts +10 -0
- package/dist/components/billing/UpgradePrompt.d.ts.map +1 -0
- package/dist/components/billing/access-contract.d.ts +18 -0
- package/dist/components/billing/access-contract.d.ts.map +1 -0
- package/dist/components/billing/gates.d.ts +14 -0
- package/dist/components/billing/gates.d.ts.map +1 -0
- package/dist/components/billing/index.d.ts +15 -0
- package/dist/components/billing/index.d.ts.map +1 -0
- package/dist/components/billing/plan-feature.d.ts +11 -0
- package/dist/components/billing/plan-feature.d.ts.map +1 -0
- package/dist/components/chat/ChatAttachments.d.ts +23 -0
- package/dist/components/chat/ChatAttachments.d.ts.map +1 -0
- package/dist/components/chat/ChatComposer.d.ts +21 -0
- package/dist/components/chat/ChatComposer.d.ts.map +1 -0
- package/dist/components/chat/ChatConversation.d.ts +20 -0
- package/dist/components/chat/ChatConversation.d.ts.map +1 -0
- package/dist/components/chat/ChatFab.d.ts +17 -0
- package/dist/components/chat/ChatFab.d.ts.map +1 -0
- package/dist/components/chat/ChatHistory.d.ts +16 -0
- package/dist/components/chat/ChatHistory.d.ts.map +1 -0
- package/dist/components/chat/ChatMessages.d.ts +16 -0
- package/dist/components/chat/ChatMessages.d.ts.map +1 -0
- package/dist/components/chat/ChatSuggestions.d.ts +17 -0
- package/dist/components/chat/ChatSuggestions.d.ts.map +1 -0
- package/dist/components/chat/ConfirmActionCard.d.ts +19 -0
- package/dist/components/chat/ConfirmActionCard.d.ts.map +1 -0
- package/dist/components/chat/RecordChip.d.ts +12 -0
- package/dist/components/chat/RecordChip.d.ts.map +1 -0
- package/dist/components/chat/index.d.ts +4 -0
- package/dist/components/chat/index.d.ts.map +1 -0
- package/dist/components/chat/markdown.d.ts +5 -0
- package/dist/components/chat/markdown.d.ts.map +1 -0
- package/dist/components/connect/AddConnectorPanel.d.ts +32 -0
- package/dist/components/connect/AddConnectorPanel.d.ts.map +1 -0
- package/dist/components/connect/ConnectConsentPage.d.ts +12 -0
- package/dist/components/connect/ConnectConsentPage.d.ts.map +1 -0
- package/dist/components/connect/ConnectorDetail.d.ts +29 -0
- package/dist/components/connect/ConnectorDetail.d.ts.map +1 -0
- package/dist/components/connect/ConnectorMark.d.ts +20 -0
- package/dist/components/connect/ConnectorMark.d.ts.map +1 -0
- package/dist/components/connect/ConnectorRow.d.ts +33 -0
- package/dist/components/connect/ConnectorRow.d.ts.map +1 -0
- package/dist/components/connect/ConnectorsPanel.d.ts +40 -0
- package/dist/components/connect/ConnectorsPanel.d.ts.map +1 -0
- package/dist/components/connect/ConnectorsTab.d.ts +16 -0
- package/dist/components/connect/ConnectorsTab.d.ts.map +1 -0
- package/dist/components/connect/client-marks.d.ts +31 -0
- package/dist/components/connect/client-marks.d.ts.map +1 -0
- package/dist/components/connect/index.d.ts +12 -0
- package/dist/components/connect/index.d.ts.map +1 -0
- package/dist/components/connect/model.d.ts +151 -0
- package/dist/components/connect/model.d.ts.map +1 -0
- package/dist/components/connect/useConnectors.d.ts +24 -0
- package/dist/components/connect/useConnectors.d.ts.map +1 -0
- package/dist/components/layout/BottomNav.d.ts +24 -0
- package/dist/components/layout/BottomNav.d.ts.map +1 -0
- package/dist/components/layout/CommandPalette.d.ts +23 -0
- package/dist/components/layout/CommandPalette.d.ts.map +1 -0
- package/dist/components/layout/LocationSwitchOverlay.d.ts +3 -0
- package/dist/components/layout/LocationSwitchOverlay.d.ts.map +1 -0
- package/dist/components/layout/MockModeBanner.d.ts +3 -0
- package/dist/components/layout/MockModeBanner.d.ts.map +1 -0
- package/dist/components/layout/PrintChrome.d.ts +10 -0
- package/dist/components/layout/PrintChrome.d.ts.map +1 -0
- package/dist/components/layout/index.d.ts +6 -0
- package/dist/components/layout/index.d.ts.map +1 -0
- package/dist/components/notes/NotesPanel.d.ts +13 -0
- package/dist/components/notes/NotesPanel.d.ts.map +1 -0
- package/dist/components/notifications/ChangelogFeed.d.ts +8 -0
- package/dist/components/notifications/ChangelogFeed.d.ts.map +1 -0
- package/dist/components/notifications/NotificationBell.d.ts +9 -0
- package/dist/components/notifications/NotificationBell.d.ts.map +1 -0
- package/dist/components/notifications/NotificationInbox.d.ts +13 -0
- package/dist/components/notifications/NotificationInbox.d.ts.map +1 -0
- package/dist/components/notifications/ToastProvider.d.ts +2 -0
- package/dist/components/notifications/ToastProvider.d.ts.map +1 -0
- package/dist/components/notifications/index.d.ts +5 -0
- package/dist/components/notifications/index.d.ts.map +1 -0
- package/dist/components/organization/InviteMemberDialog.d.ts +10 -0
- package/dist/components/organization/InviteMemberDialog.d.ts.map +1 -0
- package/dist/components/organization/OrgInitializer.d.ts +7 -0
- package/dist/components/organization/OrgInitializer.d.ts.map +1 -0
- package/dist/components/organization/OrgSwitcher.d.ts +7 -0
- package/dist/components/organization/OrgSwitcher.d.ts.map +1 -0
- package/dist/components/organization/PermissionMatrixEditor.d.ts +22 -0
- package/dist/components/organization/PermissionMatrixEditor.d.ts.map +1 -0
- package/dist/components/organization/PermissionProfilesTab.d.ts +3 -0
- package/dist/components/organization/PermissionProfilesTab.d.ts.map +1 -0
- package/dist/components/organization/TeamTab.d.ts +3 -0
- package/dist/components/organization/TeamTab.d.ts.map +1 -0
- package/dist/components/organization/TenantOnboarding.d.ts +9 -0
- package/dist/components/organization/TenantOnboarding.d.ts.map +1 -0
- package/dist/components/organization/index.d.ts +7 -0
- package/dist/components/organization/index.d.ts.map +1 -0
- package/dist/components/plugins/ConnectorsHub.d.ts +5 -0
- package/dist/components/plugins/ConnectorsHub.d.ts.map +1 -0
- package/dist/components/plugins/PluginSettingsPanel.d.ts +28 -0
- package/dist/components/plugins/PluginSettingsPanel.d.ts.map +1 -0
- package/dist/components/right-rail.d.ts +58 -0
- package/dist/components/right-rail.d.ts.map +1 -0
- package/dist/components/settings/BrandingSettings.d.ts +12 -0
- package/dist/components/settings/BrandingSettings.d.ts.map +1 -0
- package/dist/components/settings/CompanySettings.d.ts +13 -0
- package/dist/components/settings/CompanySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedBrandingSettings.d.ts +2 -0
- package/dist/components/settings/ConnectedBrandingSettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedCompanySettings.d.ts +2 -0
- package/dist/components/settings/ConnectedCompanySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedFieldRulesSettings.d.ts +2 -0
- package/dist/components/settings/ConnectedFieldRulesSettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedSecuritySettings.d.ts +2 -0
- package/dist/components/settings/ConnectedSecuritySettings.d.ts.map +1 -0
- package/dist/components/settings/ConnectedUserProfile.d.ts +3 -0
- package/dist/components/settings/ConnectedUserProfile.d.ts.map +1 -0
- package/dist/components/settings/FieldRulesSettings.d.ts +11 -0
- package/dist/components/settings/FieldRulesSettings.d.ts.map +1 -0
- package/dist/components/settings/HolidaysSettings.d.ts +21 -0
- package/dist/components/settings/HolidaysSettings.d.ts.map +1 -0
- package/dist/components/settings/LocationsCrudPage.d.ts +6 -0
- package/dist/components/settings/LocationsCrudPage.d.ts.map +1 -0
- package/dist/components/settings/LocationsOverview.d.ts +19 -0
- package/dist/components/settings/LocationsOverview.d.ts.map +1 -0
- package/dist/components/settings/SecuritySettings.d.ts +17 -0
- package/dist/components/settings/SecuritySettings.d.ts.map +1 -0
- package/dist/components/settings/SettingsPage.d.ts +46 -0
- package/dist/components/settings/SettingsPage.d.ts.map +1 -0
- package/dist/components/settings/UserProfile.d.ts +12 -0
- package/dist/components/settings/UserProfile.d.ts.map +1 -0
- package/dist/components/settings/index.d.ts +11 -0
- package/dist/components/settings/index.d.ts.map +1 -0
- package/dist/components/shared/ContactPicker.d.ts +92 -0
- package/dist/components/shared/ContactPicker.d.ts.map +1 -0
- package/dist/components/shared/PersonLink.d.ts +29 -0
- package/dist/components/shared/PersonLink.d.ts.map +1 -0
- package/dist/components/shared/create-person.d.ts +20 -0
- package/dist/components/shared/create-person.d.ts.map +1 -0
- package/dist/crud/CrudCardGrid.d.ts +13 -0
- package/dist/crud/CrudCardGrid.d.ts.map +1 -0
- package/dist/crud/CrudDetailPage.d.ts +23 -0
- package/dist/crud/CrudDetailPage.d.ts.map +1 -0
- package/dist/crud/CrudFormPage.d.ts +18 -0
- package/dist/crud/CrudFormPage.d.ts.map +1 -0
- package/dist/crud/CrudListView.d.ts +92 -0
- package/dist/crud/CrudListView.d.ts.map +1 -0
- package/dist/crud/CrudPage.d.ts +27 -0
- package/dist/crud/CrudPage.d.ts.map +1 -0
- package/dist/crud/CrudSkeletons.d.ts +21 -0
- package/dist/crud/CrudSkeletons.d.ts.map +1 -0
- package/dist/crud/DeleteConfirmDialog.d.ts +11 -0
- package/dist/crud/DeleteConfirmDialog.d.ts.map +1 -0
- package/dist/crud/EntityOverview.d.ts +14 -0
- package/dist/crud/EntityOverview.d.ts.map +1 -0
- package/dist/crud/ImportWizard.d.ts +18 -0
- package/dist/crud/ImportWizard.d.ts.map +1 -0
- package/dist/crud/archetype-lookup.d.ts +30 -0
- package/dist/crud/archetype-lookup.d.ts.map +1 -0
- package/dist/crud/archetypes/ActiveToggle.d.ts +8 -0
- package/dist/crud/archetypes/ActiveToggle.d.ts.map +1 -0
- package/dist/crud/archetypes/AddressesTab.d.ts +21 -0
- package/dist/crud/archetypes/AddressesTab.d.ts.map +1 -0
- package/dist/crud/archetypes/ArchetypeStatusBar.d.ts +11 -0
- package/dist/crud/archetypes/ArchetypeStatusBar.d.ts.map +1 -0
- package/dist/crud/archetypes/BlockSettingsPopover.d.ts +15 -0
- package/dist/crud/archetypes/BlockSettingsPopover.d.ts.map +1 -0
- package/dist/crud/archetypes/ClientOrdersTab.d.ts +18 -0
- package/dist/crud/archetypes/ClientOrdersTab.d.ts.map +1 -0
- package/dist/crud/archetypes/EntityLink.d.ts +32 -0
- package/dist/crud/archetypes/EntityLink.d.ts.map +1 -0
- package/dist/crud/archetypes/LocationDetailTabs.d.ts +11 -0
- package/dist/crud/archetypes/LocationDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/LocationFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/LocationFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderDetailView.d.ts +115 -0
- package/dist/crud/archetypes/OrderDetailView.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderFormView.d.ts +112 -0
- package/dist/crud/archetypes/OrderFormView.d.ts.map +1 -0
- package/dist/crud/archetypes/OrderListView.d.ts +36 -0
- package/dist/crud/archetypes/OrderListView.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonDetailTabs.d.ts +35 -0
- package/dist/crud/archetypes/PersonDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonFormLayout.d.ts +13 -0
- package/dist/crud/archetypes/PersonFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/PersonPicker.d.ts +23 -0
- package/dist/crud/archetypes/PersonPicker.d.ts.map +1 -0
- package/dist/crud/archetypes/ProductDetailTabs.d.ts +11 -0
- package/dist/crud/archetypes/ProductDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/ProductFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/ProductFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/ScheduleEditor.d.ts +7 -0
- package/dist/crud/archetypes/ScheduleEditor.d.ts.map +1 -0
- package/dist/crud/archetypes/ServiceDetailTabs.d.ts +10 -0
- package/dist/crud/archetypes/ServiceDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/ServiceFormLayout.d.ts +12 -0
- package/dist/crud/archetypes/ServiceFormLayout.d.ts.map +1 -0
- package/dist/crud/archetypes/SubjectDetailTabs.d.ts +12 -0
- package/dist/crud/archetypes/SubjectDetailTabs.d.ts.map +1 -0
- package/dist/crud/archetypes/SubjectFormLayout.d.ts +14 -0
- package/dist/crud/archetypes/SubjectFormLayout.d.ts.map +1 -0
- package/dist/crud/createCrudPage.d.ts +34 -0
- package/dist/crud/createCrudPage.d.ts.map +1 -0
- package/dist/crud/csv-export.d.ts +3 -0
- package/dist/crud/csv-export.d.ts.map +1 -0
- package/dist/crud/fieldToColumn.d.ts +14 -0
- package/dist/crud/fieldToColumn.d.ts.map +1 -0
- package/dist/crud/index.d.ts +16 -0
- package/dist/crud/index.d.ts.map +1 -0
- package/dist/crud/placeholder.d.ts +7 -0
- package/dist/crud/placeholder.d.ts.map +1 -0
- package/dist/crud/relation-field.d.ts +28 -0
- package/dist/crud/relation-field.d.ts.map +1 -0
- package/dist/data/client.d.ts +14 -0
- package/dist/data/client.d.ts.map +1 -0
- package/dist/db.cjs +14 -0
- package/dist/db.cjs.map +1 -0
- package/dist/db.d.ts +2 -0
- package/dist/db.d.ts.map +1 -0
- package/dist/db.js +3 -0
- package/dist/db.js.map +1 -0
- package/dist/hooks/index.d.ts +20 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAITools.d.ts +23 -0
- package/dist/hooks/useAITools.d.ts.map +1 -0
- package/dist/hooks/useAgentSurface.d.ts +15 -0
- package/dist/hooks/useAgentSurface.d.ts.map +1 -0
- package/dist/hooks/useAuth.d.ts +16 -0
- package/dist/hooks/useAuth.d.ts.map +1 -0
- package/dist/hooks/useChat.d.ts +38 -0
- package/dist/hooks/useChat.d.ts.map +1 -0
- package/dist/hooks/useDictation.d.ts +31 -0
- package/dist/hooks/useDictation.d.ts.map +1 -0
- package/dist/hooks/useFieldRules.d.ts +6 -0
- package/dist/hooks/useFieldRules.d.ts.map +1 -0
- package/dist/hooks/useFormatters.d.ts +7 -0
- package/dist/hooks/useFormatters.d.ts.map +1 -0
- package/dist/hooks/useGlobalSearch.d.ts +10 -0
- package/dist/hooks/useGlobalSearch.d.ts.map +1 -0
- package/dist/hooks/useLayout.d.ts +16 -0
- package/dist/hooks/useLayout.d.ts.map +1 -0
- package/dist/hooks/useMicLevels.d.ts +10 -0
- package/dist/hooks/useMicLevels.d.ts.map +1 -0
- package/dist/hooks/useModuleNavigation.d.ts +27 -0
- package/dist/hooks/useModuleNavigation.d.ts.map +1 -0
- package/dist/hooks/useNotifications.d.ts +11 -0
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/hooks/usePluginPrefs.d.ts +23 -0
- package/dist/hooks/usePluginPrefs.d.ts.map +1 -0
- package/dist/hooks/usePlugins.d.ts +5 -0
- package/dist/hooks/usePlugins.d.ts.map +1 -0
- package/dist/hooks/useSystemPermission.d.ts +3 -0
- package/dist/hooks/useSystemPermission.d.ts.map +1 -0
- package/dist/hooks/useTenant.d.ts +23 -0
- package/dist/hooks/useTenant.d.ts.map +1 -0
- package/dist/hooks/useTenantPluginSettings.d.ts +12 -0
- package/dist/hooks/useTenantPluginSettings.d.ts.map +1 -0
- package/dist/hooks/useTenantPlugins.d.ts +10 -0
- package/dist/hooks/useTenantPlugins.d.ts.map +1 -0
- package/dist/hooks/useTranslation.d.ts +5 -0
- package/dist/hooks/useTranslation.d.ts.map +1 -0
- package/dist/index.d.ts +93 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +17207 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/agent-approvals.d.ts +27 -0
- package/dist/lib/agent-approvals.d.ts.map +1 -0
- package/dist/lib/agent-surface.d.ts +78 -0
- package/dist/lib/agent-surface.d.ts.map +1 -0
- package/dist/lib/ai-tool-handlers.d.ts +154 -0
- package/dist/lib/ai-tool-handlers.d.ts.map +1 -0
- package/dist/lib/apply-field-rules.d.ts +4 -0
- package/dist/lib/apply-field-rules.d.ts.map +1 -0
- package/dist/lib/assistant-delegation.d.ts +5 -0
- package/dist/lib/assistant-delegation.d.ts.map +1 -0
- package/dist/lib/assistant-feature.d.ts +8 -0
- package/dist/lib/assistant-feature.d.ts.map +1 -0
- package/dist/lib/attachments.d.ts +95 -0
- package/dist/lib/attachments.d.ts.map +1 -0
- package/dist/lib/auth-context.d.ts +5 -0
- package/dist/lib/auth-context.d.ts.map +1 -0
- package/dist/lib/cache.d.ts +18 -0
- package/dist/lib/cache.d.ts.map +1 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/core-ai-tools.d.ts +49 -0
- package/dist/lib/core-ai-tools.d.ts.map +1 -0
- package/dist/lib/create-client-orders-provider.d.ts +3 -0
- package/dist/lib/create-client-orders-provider.d.ts.map +1 -0
- package/dist/lib/csv.d.ts +14 -0
- package/dist/lib/csv.d.ts.map +1 -0
- package/dist/lib/currency.d.ts +7 -0
- package/dist/lib/currency.d.ts.map +1 -0
- package/dist/lib/dedup.d.ts +2 -0
- package/dist/lib/dedup.d.ts.map +1 -0
- package/dist/lib/entity-registry.d.ts +19 -0
- package/dist/lib/entity-registry.d.ts.map +1 -0
- package/dist/lib/entity-routes.d.ts +48 -0
- package/dist/lib/entity-routes.d.ts.map +1 -0
- package/dist/lib/fayz-agent.d.ts +23 -0
- package/dist/lib/fayz-agent.d.ts.map +1 -0
- package/dist/lib/format.d.ts +7 -0
- package/dist/lib/format.d.ts.map +1 -0
- package/dist/lib/locale-config.d.ts +8 -0
- package/dist/lib/locale-config.d.ts.map +1 -0
- package/dist/lib/notes-tasks-bridge.d.ts +28 -0
- package/dist/lib/notes-tasks-bridge.d.ts.map +1 -0
- package/dist/lib/org-context.d.ts +5 -0
- package/dist/lib/org-context.d.ts.map +1 -0
- package/dist/lib/plugins.d.ts +2 -0
- package/dist/lib/plugins.d.ts.map +1 -0
- package/dist/lib/record-refs.d.ts +31 -0
- package/dist/lib/record-refs.d.ts.map +1 -0
- package/dist/lib/router.d.ts +15 -0
- package/dist/lib/router.d.ts.map +1 -0
- package/dist/lib/schedule-config.d.ts +32 -0
- package/dist/lib/schedule-config.d.ts.map +1 -0
- package/dist/lib/schedule-service.d.ts +76 -0
- package/dist/lib/schedule-service.d.ts.map +1 -0
- package/dist/lib/search-targets.d.ts +12 -0
- package/dist/lib/search-targets.d.ts.map +1 -0
- package/dist/lib/speech.d.ts +36 -0
- package/dist/lib/speech.d.ts.map +1 -0
- package/dist/lib/supabase.d.ts +10 -0
- package/dist/lib/supabase.d.ts.map +1 -0
- package/dist/org/adapters/mock.d.ts +4 -0
- package/dist/org/adapters/mock.d.ts.map +1 -0
- package/dist/org/adapters/supabase.d.ts +33 -0
- package/dist/org/adapters/supabase.d.ts.map +1 -0
- package/dist/org/cache.d.ts +29 -0
- package/dist/org/cache.d.ts.map +1 -0
- package/dist/org/context.d.ts +36 -0
- package/dist/org/context.d.ts.map +1 -0
- package/dist/org/index.d.ts +10 -0
- package/dist/org/index.d.ts.map +1 -0
- package/dist/org/index.js +5 -0
- package/dist/org/index.js.map +1 -0
- package/dist/org/store.d.ts +20 -0
- package/dist/org/store.d.ts.map +1 -0
- package/dist/org/team-rows.d.ts +45 -0
- package/dist/org/team-rows.d.ts.map +1 -0
- package/dist/permissions/PermissionGate.d.ts +12 -0
- package/dist/permissions/PermissionGate.d.ts.map +1 -0
- package/dist/permissions/context.d.ts +39 -0
- package/dist/permissions/context.d.ts.map +1 -0
- package/dist/permissions/index.d.ts +5 -0
- package/dist/permissions/index.d.ts.map +1 -0
- package/dist/permissions/index.js +3 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/permissions/roles.d.ts +7 -0
- package/dist/permissions/roles.d.ts.map +1 -0
- package/dist/permissions/store.d.ts +21 -0
- package/dist/permissions/store.d.ts.map +1 -0
- package/dist/plugins/ModuleActionBar.d.ts +27 -0
- package/dist/plugins/ModuleActionBar.d.ts.map +1 -0
- package/dist/plugins/PluginRegistryManager.d.ts +13 -0
- package/dist/plugins/PluginRegistryManager.d.ts.map +1 -0
- package/dist/plugins/QuickActionsButton.d.ts +12 -0
- package/dist/plugins/QuickActionsButton.d.ts.map +1 -0
- package/dist/plugins/SettingsGroup.d.ts +25 -0
- package/dist/plugins/SettingsGroup.d.ts.map +1 -0
- package/dist/plugins/WidgetSlot.d.ts +8 -0
- package/dist/plugins/WidgetSlot.d.ts.map +1 -0
- package/dist/plugins/createPluginContext.d.ts +28 -0
- package/dist/plugins/createPluginContext.d.ts.map +1 -0
- package/dist/plugins/createViewRouter.d.ts +38 -0
- package/dist/plugins/createViewRouter.d.ts.map +1 -0
- package/dist/projects/ProjectsSettings.d.ts +3 -0
- package/dist/projects/ProjectsSettings.d.ts.map +1 -0
- package/dist/projects/SeuSiteWidget.d.ts +7 -0
- package/dist/projects/SeuSiteWidget.d.ts.map +1 -0
- package/dist/projects/provider.d.ts +8 -0
- package/dist/projects/provider.d.ts.map +1 -0
- package/dist/projects/store.d.ts +16 -0
- package/dist/projects/store.d.ts.map +1 -0
- package/dist/projects/types.d.ts +46 -0
- package/dist/projects/types.d.ts.map +1 -0
- package/dist/stores/auth.store.d.ts +12 -0
- package/dist/stores/auth.store.d.ts.map +1 -0
- package/dist/stores/billing.store.d.ts +2 -0
- package/dist/stores/billing.store.d.ts.map +1 -0
- package/dist/stores/chat.store.d.ts +208 -0
- package/dist/stores/chat.store.d.ts.map +1 -0
- package/dist/stores/createCrudStore.d.ts +54 -0
- package/dist/stores/createCrudStore.d.ts.map +1 -0
- package/dist/stores/index.d.ts +13 -0
- package/dist/stores/index.d.ts.map +1 -0
- package/dist/stores/invite.store.d.ts +11 -0
- package/dist/stores/invite.store.d.ts.map +1 -0
- package/dist/stores/layout.store.d.ts +2 -0
- package/dist/stores/layout.store.d.ts.map +1 -0
- package/dist/stores/locale.store.d.ts +17 -0
- package/dist/stores/locale.store.d.ts.map +1 -0
- package/dist/stores/location.store.d.ts +20 -0
- package/dist/stores/location.store.d.ts.map +1 -0
- package/dist/stores/notifications.store.d.ts +12 -0
- package/dist/stores/notifications.store.d.ts.map +1 -0
- package/dist/stores/organization.store.d.ts +2 -0
- package/dist/stores/organization.store.d.ts.map +1 -0
- package/dist/stores/permissions.store.d.ts +2 -0
- package/dist/stores/permissions.store.d.ts.map +1 -0
- package/dist/stores/plugin.store.d.ts +24 -0
- package/dist/stores/plugin.store.d.ts.map +1 -0
- package/dist/stores/tenant.store.d.ts +11 -0
- package/dist/stores/tenant.store.d.ts.map +1 -0
- package/dist/stores/theme.store.d.ts +17 -0
- package/dist/stores/theme.store.d.ts.map +1 -0
- package/dist/theme/dark.d.ts +3 -0
- package/dist/theme/dark.d.ts.map +1 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/light.d.ts +3 -0
- package/dist/theme/light.d.ts.map +1 -0
- package/dist/theme/tailwind-preset.d.ts +4 -0
- package/dist/theme/tailwind-preset.d.ts.map +1 -0
- package/dist/theme/tokens.d.ts +119 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/theme/utils.d.ts +31 -0
- package/dist/theme/utils.d.ts.map +1 -0
- package/dist/types/auth-adapter.d.ts +14 -0
- package/dist/types/auth-adapter.d.ts.map +1 -0
- package/dist/types/auth.d.ts +34 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/billing.d.ts +81 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/client-orders.d.ts +47 -0
- package/dist/types/client-orders.d.ts.map +1 -0
- package/dist/types/crud.d.ts +137 -0
- package/dist/types/crud.d.ts.map +1 -0
- package/dist/types/entities.d.ts +150 -0
- package/dist/types/entities.d.ts.map +1 -0
- package/dist/types/entity-lookup.d.ts +18 -0
- package/dist/types/entity-lookup.d.ts.map +1 -0
- package/dist/types/index.d.ts +17 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/integrations.d.ts +48 -0
- package/dist/types/integrations.d.ts.map +1 -0
- package/dist/types/invite.d.ts +23 -0
- package/dist/types/invite.d.ts.map +1 -0
- package/dist/types/layout.d.ts +26 -0
- package/dist/types/layout.d.ts.map +1 -0
- package/dist/types/notifications.d.ts +31 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/org-adapter.d.ts +92 -0
- package/dist/types/org-adapter.d.ts.map +1 -0
- package/dist/types/permissions.d.ts +39 -0
- package/dist/types/permissions.d.ts.map +1 -0
- package/dist/types/platform.d.ts +25 -0
- package/dist/types/platform.d.ts.map +1 -0
- package/dist/types/plugins.d.ts +269 -0
- package/dist/types/plugins.d.ts.map +1 -0
- package/dist/types/tenant.d.ts +74 -0
- package/dist/types/tenant.d.ts.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +3 -0
- package/dist/ui.js.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CrudNavTab } from './CrudListView';
|
|
3
|
+
import type { StatTileData } from '@fayz-ai/ui';
|
|
4
|
+
import type { EntityDef } from '@fayz-ai/core';
|
|
5
|
+
import type { DataProvider } from '@fayz-ai/core';
|
|
6
|
+
interface CreateCrudPageOptions<T extends {
|
|
7
|
+
id: string;
|
|
8
|
+
}> {
|
|
9
|
+
mockData?: T[];
|
|
10
|
+
dataProvider?: DataProvider<T>;
|
|
11
|
+
/** List display mode: 'table' (default) or 'cards' */
|
|
12
|
+
display?: 'table' | 'cards';
|
|
13
|
+
/** Feature ID for permission gating on CRUD actions */
|
|
14
|
+
feature?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sibling lists this one heads a tab strip with (Clientes / Grupos /
|
|
17
|
+
* Segmentos). Built lazily per render so a tab can navigate — the routing
|
|
18
|
+
* primitive isn't available at module scope, where the page is defined.
|
|
19
|
+
*/
|
|
20
|
+
navTabs?: () => CrudNavTab[];
|
|
21
|
+
/** Which of `navTabs` is this page. */
|
|
22
|
+
activeNavTab?: string;
|
|
23
|
+
/** If true, hides create/edit/delete actions — list and detail view only. */
|
|
24
|
+
readOnly?: boolean;
|
|
25
|
+
/** Summary tiles for the list, derived from the rows currently loaded. */
|
|
26
|
+
stats?: (items: T[] | null, total: number) => StatTileData[];
|
|
27
|
+
}
|
|
28
|
+
export declare function createCrudPage<T extends {
|
|
29
|
+
id: string;
|
|
30
|
+
}>(entityDef: EntityDef<T>, options?: CreateCrudPageOptions<T>): React.ComponentType & {
|
|
31
|
+
__crudBasePath?: string;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=createCrudPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createCrudPage.d.ts","sourceRoot":"","sources":["../../src/crud/createCrudPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,UAAU,qBAAqB,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE;IACtD,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAA;IACd,YAAY,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IAC9B,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3B,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,UAAU,EAAE,CAAA;IAC5B,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,YAAY,EAAE,CAAA;CAC7D;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EACrD,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,EACvB,OAAO,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,GACjC,KAAK,CAAC,aAAa,GAAG;IAAE,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAuDnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csv-export.d.ts","sourceRoot":"","sources":["../../src/crud/csv-export.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACvD,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,EAAE,SAAS,GACnB,IAAI,CASN"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldDef } from '@fayz-ai/core';
|
|
3
|
+
export interface ColumnDef {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
sortable: boolean;
|
|
7
|
+
render: (value: any, row: any) => React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export interface FieldToColumnsOptions {
|
|
10
|
+
/** Callback for inline field updates (e.g. toggle active) */
|
|
11
|
+
onInlineUpdate?: (id: string, field: string, value: any) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function fieldToColumns(fields: FieldDef[], options?: FieldToColumnsOptions): ColumnDef[];
|
|
14
|
+
//# sourceMappingURL=fieldToColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldToColumn.d.ts","sourceRoot":"","sources":["../../src/crud/fieldToColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAyB7C,MAAM,WAAW,SAAS;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,KAAK,CAAC,SAAS,CAAA;CAClD;AAED,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CACjE;AAsBD,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,SAAS,EAAE,CAqD/F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { createCrudPage } from './createCrudPage';
|
|
2
|
+
export { CrudPage } from './CrudPage';
|
|
3
|
+
export { CrudListView } from './CrudListView';
|
|
4
|
+
export type { CrudListViewProps, CrudFacet, CrudNavTab } from './CrudListView';
|
|
5
|
+
export { CrudFormPage } from './CrudFormPage';
|
|
6
|
+
export { CrudDetailPage } from './CrudDetailPage';
|
|
7
|
+
export { CrudCardGrid } from './CrudCardGrid';
|
|
8
|
+
export { DeleteConfirmDialog } from './DeleteConfirmDialog';
|
|
9
|
+
export { ImportWizard } from './ImportWizard';
|
|
10
|
+
export type { ImportRowError } from './ImportWizard';
|
|
11
|
+
export { exportToCSV } from './csv-export';
|
|
12
|
+
export { RelationSelect, RelationCell, useRelationOptions, loadRelationOptions, invalidateRelationOptions } from './relation-field';
|
|
13
|
+
export { EntityLink, registerEntityPath, getPersonPath } from './archetypes/EntityLink';
|
|
14
|
+
export { CrudDetailSkeleton, CrudFormSkeleton } from './CrudSkeletons';
|
|
15
|
+
export type { CrudSkeletonProps, CrudFormSkeletonProps } from './CrudSkeletons';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/crud/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,YAAY,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAMnI,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACtE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Page stub for modules that are planned but not built yet.
|
|
4
|
+
* Usage: { path: '/marketing', label: 'Marketing', icon: 'Megaphone', component: createPlaceholder('Marketing') }
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPlaceholder(title: string, description?: string): React.FC;
|
|
7
|
+
//# sourceMappingURL=placeholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"placeholder.d.ts","sourceRoot":"","sources":["../../src/crud/placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,EAAE,CAyB/E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FieldRelation } from '@fayz-ai/core';
|
|
3
|
+
type Option = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function loadRelationOptions(r: FieldRelation): Promise<Option[]>;
|
|
8
|
+
/** Drop cached relation options (call after creating/editing a related row). */
|
|
9
|
+
export declare function invalidateRelationOptions(): void;
|
|
10
|
+
export declare function useRelationOptions(r: FieldRelation | undefined): {
|
|
11
|
+
options: Option[];
|
|
12
|
+
loading: boolean;
|
|
13
|
+
labelFor: (value: any) => string;
|
|
14
|
+
};
|
|
15
|
+
export declare function RelationSelect({ relation, value, onChange, className, required, placeholder, }: {
|
|
16
|
+
relation?: FieldRelation;
|
|
17
|
+
value: any;
|
|
18
|
+
onChange: (value: any) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
}): React.JSX.Element;
|
|
23
|
+
export declare function RelationCell({ relation, value }: {
|
|
24
|
+
relation?: FieldRelation;
|
|
25
|
+
value: any;
|
|
26
|
+
}): React.JSX.Element;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=relation-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-field.d.ts","sourceRoot":"","sources":["../../src/crud/relation-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAQlD,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAiC9C,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAMvE;AAED,gFAAgF;AAChF,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,aAAa,GAAG,SAAS,GAAG;IAChE,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM,CAAA;CACjC,CAeA;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,GACZ,EAAE;IACD,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,qBAeA;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,GAAG,CAAA;CAAE,qBAKzF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type SupabaseClient } from '@supabase/supabase-js';
|
|
2
|
+
/**
|
|
3
|
+
* Create (and cache) the Supabase client for the Fayz app.
|
|
4
|
+
* Also registers it as the global client in @fayz-ai/core so data providers
|
|
5
|
+
* can resolve it without prop-drilling.
|
|
6
|
+
*
|
|
7
|
+
* Idempotent — subsequent calls with the same URL return the cached client.
|
|
8
|
+
*/
|
|
9
|
+
export declare function createFayzSupabaseClient(url: string, anonKey: string): SupabaseClient;
|
|
10
|
+
/** Get the cached client — throws if not initialised */
|
|
11
|
+
export declare function getFayzSupabaseClient(): SupabaseClient;
|
|
12
|
+
/** Safe getter — returns null if not initialised (mock/offline mode) */
|
|
13
|
+
export declare function getFayzSupabaseClientOptional(): SupabaseClient | null;
|
|
14
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/data/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAKzE;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,CAkBrF;AAED,wDAAwD;AACxD,wBAAgB,qBAAqB,IAAI,cAAc,CAOtD;AAED,wEAAwE;AACxE,wBAAgB,6BAA6B,IAAI,cAAc,GAAG,IAAI,CAErE"}
|
package/dist/db.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var db = require('@fayz-ai/db');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(db).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return db[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=db.cjs.map
|
|
14
|
+
//# sourceMappingURL=db.cjs.map
|
package/dist/db.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"db.cjs","sourcesContent":[]}
|
package/dist/db.d.ts
ADDED
package/dist/db.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../src/db.ts"],"names":[],"mappings":"AAWA,cAAc,aAAa,CAAA"}
|
package/dist/db.js
ADDED
package/dist/db.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"db.js","sourcesContent":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { useAuth } from './useAuth';
|
|
2
|
+
export { useTenant } from './useTenant';
|
|
3
|
+
export { useSystemPermission } from './useSystemPermission';
|
|
4
|
+
export { useLayout } from './useLayout';
|
|
5
|
+
export { useNotifications } from './useNotifications';
|
|
6
|
+
export { useTranslation } from './useTranslation';
|
|
7
|
+
export { useFormatters } from './useFormatters';
|
|
8
|
+
export { useChat } from './useChat';
|
|
9
|
+
export { useAITools } from './useAITools';
|
|
10
|
+
export type { ResolvedSuggestion, ResolvedToolGroup, ResolvedToolEntry } from './useAITools';
|
|
11
|
+
export { usePlugins, usePluginsOptional, useWidgets } from './usePlugins';
|
|
12
|
+
export { useTenantPlugins } from './useTenantPlugins';
|
|
13
|
+
export { useModuleNavigation } from './useModuleNavigation';
|
|
14
|
+
export type { NavDirection, DepthMap } from './useModuleNavigation';
|
|
15
|
+
export { usePluginPrefs, getPluginPref, setPluginPref } from './usePluginPrefs';
|
|
16
|
+
export type { PluginPrefs } from './usePluginPrefs';
|
|
17
|
+
export { useTenantPluginSettings } from './useTenantPluginSettings';
|
|
18
|
+
export type { TenantPluginSettings } from './useTenantPluginSettings';
|
|
19
|
+
export { useFieldRules } from './useFieldRules';
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAC5F,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACnE,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC/E,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PluginAITool, AIToolSuggestion } from '../types/plugins';
|
|
2
|
+
export interface ResolvedSuggestion extends AIToolSuggestion {
|
|
3
|
+
toolId: string;
|
|
4
|
+
category: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ResolvedToolEntry {
|
|
7
|
+
tool: PluginAITool;
|
|
8
|
+
signature: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ResolvedToolGroup {
|
|
11
|
+
category: string;
|
|
12
|
+
tools: ResolvedToolEntry[];
|
|
13
|
+
}
|
|
14
|
+
export declare function useAITools(): {
|
|
15
|
+
tools: PluginAITool[];
|
|
16
|
+
/** Plugin owning the current route, or null on non-plugin pages. */
|
|
17
|
+
activePluginId: string | null;
|
|
18
|
+
suggestions: ResolvedSuggestion[];
|
|
19
|
+
/** Suggestions from the currently active plugin only (empty on non-plugin pages) */
|
|
20
|
+
contextualSuggestions: ResolvedSuggestion[];
|
|
21
|
+
toolGroups: ResolvedToolGroup[];
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=useAITools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAITools.d.ts","sourceRoot":"","sources":["../../src/hooks/useAITools.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEtE,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;IAC1D,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B;AA+BD,wBAAgB,UAAU,IAAI;IAC5B,KAAK,EAAE,YAAY,EAAE,CAAA;IACrB,oEAAoE;IACpE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,WAAW,EAAE,kBAAkB,EAAE,CAAA;IACjC,oFAAoF;IACpF,qBAAqB,EAAE,kBAAkB,EAAE,CAAA;IAC3C,UAAU,EAAE,iBAAiB,EAAE,CAAA;CAChC,CAuGA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type AgentSurfaceContribution } from '../lib/agent-surface';
|
|
2
|
+
/**
|
|
3
|
+
* Publish the current screen to the assistant. Call it from an interactive
|
|
4
|
+
* surface (a form builder, a calendar) with a description of what's on screen,
|
|
5
|
+
* plus the tools that act on it. The contribution is live while the component
|
|
6
|
+
* is mounted and gone when it unmounts.
|
|
7
|
+
*
|
|
8
|
+
* Freshness without churn: register once (by `id`), but read the contribution
|
|
9
|
+
* through a ref so `describe()` and every `execute()` always see the latest
|
|
10
|
+
* state and closures — even though the effect runs a single time. Pass a
|
|
11
|
+
* `contribution` with a STABLE identity (memoize it) whose functions read
|
|
12
|
+
* current state via refs; do not rebuild it every render.
|
|
13
|
+
*/
|
|
14
|
+
export declare function useAgentSurface(contribution: AgentSurfaceContribution): void;
|
|
15
|
+
//# sourceMappingURL=useAgentSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAgentSurface.d.ts","sourceRoot":"","sources":["../../src/hooks/useAgentSurface.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAA;AAG7B;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,wBAAwB,GAAG,IAAI,CA0B5E"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AuthProvider } from '../types';
|
|
2
|
+
export declare function useAuth(): {
|
|
3
|
+
user: import("../types").AuthUser | null;
|
|
4
|
+
session: import("../types").AuthSession | null;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
initialized: boolean;
|
|
7
|
+
pendingEmailVerification: boolean;
|
|
8
|
+
signIn: (email: string, password: string) => Promise<void>;
|
|
9
|
+
signUp: (email: string, password: string, fullName: string) => Promise<{
|
|
10
|
+
requiresEmailVerification: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
signOut: () => Promise<void>;
|
|
13
|
+
signInWithOAuth: (provider: AuthProvider) => Promise<void>;
|
|
14
|
+
resetPassword: (email: string) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../src/hooks/useAuth.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,OAAO;;;;;;oBAqCoB,MAAM,YAAY,MAAM;oBAYxB,MAAM,YAAY,MAAM,YAAY,MAAM;;;;gCAgC9B,YAAY;2BAKjB,MAAM;EAiBvD"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ChatMessage } from '../stores/chat.store';
|
|
2
|
+
import { type FayzAgentConnectionConfig } from '../lib/fayz-agent';
|
|
3
|
+
interface UseChatOptions {
|
|
4
|
+
/** Bring-your-own backend. Takes precedence over the Fayz agent connection. */
|
|
5
|
+
apiEndpoint?: string;
|
|
6
|
+
systemPrompt?: string;
|
|
7
|
+
/** Fayz agent overrides; defaults to the env the container injects. */
|
|
8
|
+
agent?: FayzAgentConnectionConfig | false;
|
|
9
|
+
}
|
|
10
|
+
export declare function useChat(options?: UseChatOptions): {
|
|
11
|
+
messages: ChatMessage[];
|
|
12
|
+
isOpen: boolean;
|
|
13
|
+
isStreaming: boolean;
|
|
14
|
+
/** True when a real backend is wired — the project's Fayz agent or a custom endpoint. */
|
|
15
|
+
isConfigured: boolean;
|
|
16
|
+
sendMessage: (content: string) => Promise<void>;
|
|
17
|
+
toggleOpen: () => void;
|
|
18
|
+
setOpen: (open: boolean) => void;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
/** Write awaiting human confirmation (render the ConfirmActionCard; the
|
|
21
|
+
* composer should stay disabled while set). */
|
|
22
|
+
pendingAction: import("../stores/chat.store").PendingAgentAction | null;
|
|
23
|
+
/** Card decision: true executes/approves, false declines. */
|
|
24
|
+
resolvePendingAction: (approved: boolean, values?: Record<string, unknown>) => void;
|
|
25
|
+
/** Tool names executing right now (live activity chips). */
|
|
26
|
+
activeTools: string[];
|
|
27
|
+
/** History drawer data + actions. */
|
|
28
|
+
conversations: {
|
|
29
|
+
id: string;
|
|
30
|
+
title: string | null;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
}[];
|
|
33
|
+
loadConversations: () => Promise<void>;
|
|
34
|
+
resumeConversation: (conversationId: string) => Promise<void>;
|
|
35
|
+
startNewConversation: () => void;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=useChat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChat.d.ts","sourceRoot":"","sources":["../../src/hooks/useChat.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,WAAW,EAAuB,MAAM,sBAAsB,CAAA;AAiC1F,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,mBAAmB,CAAA;AA0B1B,UAAU,cAAc;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,yBAAyB,GAAG,KAAK,CAAA;CAC1C;AAED,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,cAAc;;;;IA0e5C,yFAAyF;;2BAvLzE,MAAM;;;;IA6LtB;oDACgD;;IAEhD,6DAA6D;;IAE7D,4DAA4D;;IAE5D,qCAAqC;;;;;;;yCA/Ed,MAAM;;EAqFhC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type DictationState = 'idle' | 'listening' | 'transcribing' | 'error';
|
|
2
|
+
export type DictationError = 'denied' | 'unsupported' | 'network' | 'no-speech' | 'failed';
|
|
3
|
+
interface UseDictationOptions {
|
|
4
|
+
/** BCP-47 tag for recognition. Defaults to the browser's language. */
|
|
5
|
+
locale?: string;
|
|
6
|
+
/** POST endpoint that returns `{ text }` — the Whisper seam. */
|
|
7
|
+
transcribeEndpoint?: string;
|
|
8
|
+
/** Settled transcript, non-empty. */
|
|
9
|
+
onTranscript: (text: string) => void;
|
|
10
|
+
/** Partial words while speaking, so the composer shows it working. */
|
|
11
|
+
onInterim?: (text: string) => void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Push-to-talk state machine for the composer's mic.
|
|
15
|
+
*
|
|
16
|
+
* One rule shapes it: the user must always see what was heard BEFORE it is
|
|
17
|
+
* sent. Interim words land in the composer while speaking; the settled
|
|
18
|
+
* transcript is handed back for the caller to send.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDictation({ locale, transcribeEndpoint, onTranscript, onInterim, }: UseDictationOptions): {
|
|
21
|
+
supported: boolean;
|
|
22
|
+
state: DictationState;
|
|
23
|
+
error: DictationError | null;
|
|
24
|
+
start: () => void;
|
|
25
|
+
stop: () => void;
|
|
26
|
+
cancel: () => void;
|
|
27
|
+
toggle: () => void;
|
|
28
|
+
clearError: () => void;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=useDictation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDictation.d.ts","sourceRoot":"","sources":["../../src/hooks/useDictation.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,CAAA;AAC5E,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAA;AAE1F,UAAU,mBAAmB;IAC3B,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gEAAgE;IAChE,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qCAAqC;IACrC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,sEAAsE;IACtE,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACnC;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,kBAAkB,EAClB,YAAY,EACZ,SAAS,GACV,EAAE,mBAAmB;;;;;;;;;EAsErB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFieldRules.d.ts","sourceRoot":"","sources":["../../src/hooks/useFieldRules.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAoB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEjF,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM;;yBAUpB,QAAQ,EAAE;EAGpC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useFormatters(): {
|
|
2
|
+
formatCurrency: (amount: number, currency?: string, options?: Intl.NumberFormatOptions) => string;
|
|
3
|
+
formatDate: (date: Date | string, options?: Intl.DateTimeFormatOptions) => string;
|
|
4
|
+
formatNumber: (value: number, options?: Intl.NumberFormatOptions) => string;
|
|
5
|
+
formatRelativeTime: (date: Date | string) => string;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useFormatters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormatters.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormatters.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa;6BAOf,MAAM,+BAEJ,IAAI,CAAC,mBAAmB,KACjC,MAAM;uBASD,IAAI,GAAG,MAAM,YACT,IAAI,CAAC,qBAAqB,KACnC,MAAM;0BAWA,MAAM,YACH,IAAI,CAAC,mBAAmB,KACjC,MAAM;+BAIyB,IAAI,GAAG,MAAM,KAAG,MAAM;EAc3D"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type GlobalSearchResult, type SearchHit } from '@fayz-ai/core';
|
|
2
|
+
/** The palette's data half: one search across every entity the user may see,
|
|
3
|
+
* plus the navigation that opening a result performs. */
|
|
4
|
+
export declare function useGlobalSearch(): {
|
|
5
|
+
search: (query: string, onPartial?: (result: GlobalSearchResult) => void) => Promise<GlobalSearchResult>;
|
|
6
|
+
select: (hit: SearchHit) => void;
|
|
7
|
+
canOpen: (hit: SearchHit) => boolean;
|
|
8
|
+
targetCount: number;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useGlobalSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalSearch.d.ts","sourceRoot":"","sources":["../../src/hooks/useGlobalSearch.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAA;AAKzF;0DAC0D;AAC1D,wBAAgB,eAAe;oBAgBb,MAAM,cAAc,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,KAAG,OAAO,CAAC,kBAAkB,CAAC;kBAYrE,SAAS;mBAMlC,SAAS;;EAKlB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Breakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2
|
+
export declare function useLayout(): {
|
|
3
|
+
isMobile: boolean;
|
|
4
|
+
currentBreakpoint: Breakpoint;
|
|
5
|
+
closeMobileDrawer: () => void;
|
|
6
|
+
sidebarOpen: boolean;
|
|
7
|
+
sidebarCollapsed: boolean;
|
|
8
|
+
mobileDrawerOpen: boolean;
|
|
9
|
+
commandPaletteOpen: boolean;
|
|
10
|
+
toggleSidebar: () => void;
|
|
11
|
+
setSidebarCollapsed: (collapsed: boolean) => void;
|
|
12
|
+
toggleMobileDrawer: () => void;
|
|
13
|
+
setCommandPaletteOpen: (open: boolean) => void;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=useLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"AAGA,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAA;AAkBnD,wBAAgB,SAAS;;;;;;;;;;;;EAsDxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Live mic amplitude for the composer's waveform. Its own analysis-only
|
|
3
|
+
* `getUserMedia` stream, because neither dictation transport exposes one; a
|
|
4
|
+
* refused stream just reports `available: false`. Values land in a ref — the
|
|
5
|
+
* render loop belongs to the waveform, not to React at 60fps. */
|
|
6
|
+
export declare function useMicLevels(active: boolean, bandCount?: number): {
|
|
7
|
+
levelsRef: React.MutableRefObject<Float32Array<ArrayBufferLike>>;
|
|
8
|
+
available: boolean;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useMicLevels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMicLevels.d.ts","sourceRoot":"","sources":["../../src/hooks/useMicLevels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;kEAGkE;AAClE,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,SAAK;;;EA2E3D"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation direction for transition animations.
|
|
3
|
+
* 'forward' = deeper into content (list → detail → edit, or main → settings)
|
|
4
|
+
* 'back' = returning to parent (edit → detail → list, or settings → main)
|
|
5
|
+
*/
|
|
6
|
+
export type NavDirection = 'forward' | 'back';
|
|
7
|
+
/**
|
|
8
|
+
* View depth mapping — used to determine animation direction.
|
|
9
|
+
* Higher depth = deeper in the navigation hierarchy.
|
|
10
|
+
*/
|
|
11
|
+
export type DepthMap = Record<string, number>;
|
|
12
|
+
/**
|
|
13
|
+
* Reusable module navigation hook for plugins.
|
|
14
|
+
* Manages view state, hash synchronization, and animation direction.
|
|
15
|
+
*
|
|
16
|
+
* @param hashBase — the base hash path for this module (e.g. '/financial')
|
|
17
|
+
* @param depthMap — optional custom depth mapping for views
|
|
18
|
+
*/
|
|
19
|
+
export declare function useModuleNavigation(hashBase: string, depthMap?: DepthMap, homeView?: string): {
|
|
20
|
+
view: string;
|
|
21
|
+
direction: NavDirection;
|
|
22
|
+
animationClass: string;
|
|
23
|
+
navigate: (nextView: string, hash?: string) => void;
|
|
24
|
+
previousView: string | null;
|
|
25
|
+
back: (fallbackView?: string) => void;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useModuleNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModuleNavigation.d.ts","sourceRoot":"","sources":["../../src/hooks/useModuleNavigation.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,CAAA;AAE7C;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAW7C;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,SAAY;;;;yBAmFrD,MAAM,SAAS,MAAM;;0BA8BpB,MAAM;EAWhD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Notification } from '../types';
|
|
2
|
+
export declare function useNotifications(): {
|
|
3
|
+
notifications: Notification[];
|
|
4
|
+
unreadCount: number;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
fetchNotifications: () => Promise<void>;
|
|
7
|
+
markAsRead: (id: string) => Promise<void>;
|
|
8
|
+
markAllAsRead: () => Promise<void>;
|
|
9
|
+
subscribeToRealtime: () => void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=useNotifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../src/hooks/useNotifications.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAE5C,wBAAgB,gBAAgB;;;;;qBA0BjB,MAAM;;;EAkFpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface PluginPrefs<T extends Record<string, unknown>> {
|
|
2
|
+
/** Get a single preference value */
|
|
3
|
+
get<K extends keyof T>(key: K): T[K];
|
|
4
|
+
/** Set a single preference value (persists immediately) */
|
|
5
|
+
set<K extends keyof T>(key: K, value: T[K]): void;
|
|
6
|
+
/** Update multiple preferences at once */
|
|
7
|
+
update(partial: Partial<T>): void;
|
|
8
|
+
/** Get all preferences as an object */
|
|
9
|
+
getAll(): T;
|
|
10
|
+
/** Reset all preferences to defaults */
|
|
11
|
+
reset(): void;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Hook for localStorage-backed plugin preferences.
|
|
15
|
+
*
|
|
16
|
+
* @param pluginId Unique plugin identifier (e.g. 'agenda', 'financial')
|
|
17
|
+
* @param defaults Default values — also defines the shape of the prefs object
|
|
18
|
+
* @returns PluginPrefs accessor with get/set/update/reset
|
|
19
|
+
*/
|
|
20
|
+
export declare function usePluginPrefs<T extends Record<string, unknown>>(pluginId: string, defaults: T): PluginPrefs<T>;
|
|
21
|
+
export declare function getPluginPref<T>(pluginId: string, key: string, defaultValue: T): T;
|
|
22
|
+
export declare function setPluginPref(pluginId: string, key: string, value: unknown): void;
|
|
23
|
+
//# sourceMappingURL=usePluginPrefs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePluginPrefs.d.ts","sourceRoot":"","sources":["../../src/hooks/usePluginPrefs.ts"],"names":[],"mappings":"AAkCA,MAAM,WAAW,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC5D,oCAAoC;IACpC,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACpC,2DAA2D;IAC3D,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACjD,0CAA0C;IAC1C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACjC,uCAAuC;IACvC,MAAM,IAAI,CAAC,CAAA;IACX,wCAAwC;IACxC,KAAK,IAAI,IAAI,CAAA;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9D,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,GACV,WAAW,CAAC,CAAC,CAAC,CA+BhB;AAMD,wBAAgB,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAG,CAAC,CASlF;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAOjF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PluginRuntimeContext, PluginWidgetZone, ResolvedPluginWidget } from '../types/plugins';
|
|
2
|
+
export declare function usePlugins(): import("@fayz-ai/core").PluginRuntime;
|
|
3
|
+
export declare function usePluginsOptional(): import("@fayz-ai/core").PluginRuntime | null;
|
|
4
|
+
export declare function useWidgets(zone: PluginWidgetZone, contextOverrides?: Partial<PluginRuntimeContext>): ResolvedPluginWidget[];
|
|
5
|
+
//# sourceMappingURL=usePlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePlugins.d.ts","sourceRoot":"","sources":["../../src/hooks/usePlugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAGpG,wBAAgB,UAAU,0CAEzB;AAED,wBAAgB,kBAAkB,iDAEjC;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,gBAAgB,EACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,GAC/C,oBAAoB,EAAE,CAGxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSystemPermission.d.ts","sourceRoot":"","sources":["../../src/hooks/useSystemPermission.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAYrD,wBAAgB,mBAAmB,IAAI,CAAC,IAAI,EAAE,gBAAgB,KAAK,OAAO,CAMzE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TenantSettings } from '../types';
|
|
2
|
+
export declare function useTenant(): {
|
|
3
|
+
tenant: import("../types").Tenant | null;
|
|
4
|
+
members: import("../types").TenantMember[];
|
|
5
|
+
currentRole: import("../types").MemberRole | null;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
fetchTenant: (tenantId: string) => Promise<any>;
|
|
8
|
+
fetchMembers: () => Promise<{
|
|
9
|
+
id: any;
|
|
10
|
+
userId: any;
|
|
11
|
+
tenantId: any;
|
|
12
|
+
role: any;
|
|
13
|
+
user: {
|
|
14
|
+
id: any;
|
|
15
|
+
email: any;
|
|
16
|
+
fullName: any;
|
|
17
|
+
avatarUrl: any;
|
|
18
|
+
};
|
|
19
|
+
joinedAt: any;
|
|
20
|
+
}[]>;
|
|
21
|
+
updateSettings: (settings: Partial<TenantSettings>) => Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=useTenant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTenant.d.ts","sourceRoot":"","sources":["../../src/hooks/useTenant.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,wBAAgB,SAAS;;;;;4BAI0B,MAAM;;;;;;;;;;;;;;+BA6DH,OAAO,CAAC,cAAc,CAAC;EAmC5E"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TenantPluginSettings<T extends Record<string, unknown>> {
|
|
2
|
+
/** Get a single setting value (falls back to the provided default). */
|
|
3
|
+
get<K extends keyof T>(key: K): T[K];
|
|
4
|
+
/** Set a single setting value — optimistic + debounced persistence. */
|
|
5
|
+
set<K extends keyof T>(key: K, value: T[K]): void;
|
|
6
|
+
/** Get all settings merged over defaults. */
|
|
7
|
+
getAll(): T;
|
|
8
|
+
/** Whether values are persisted per-tenant (true) or per-browser fallback (false). */
|
|
9
|
+
isTenantScoped: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function useTenantPluginSettings<T extends Record<string, unknown>>(pluginId: string, defaults: T): TenantPluginSettings<T>;
|
|
12
|
+
//# sourceMappingURL=useTenantPluginSettings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTenantPluginSettings.d.ts","sourceRoot":"","sources":["../../src/hooks/useTenantPluginSettings.ts"],"names":[],"mappings":"AA2BA,MAAM,WAAW,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACrE,uEAAuE;IACvE,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACpC,uEAAuE;IACvE,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACjD,6CAA6C;IAC7C,MAAM,IAAI,CAAC,CAAA;IACX,sFAAsF;IACtF,cAAc,EAAE,OAAO,CAAA;CACxB;AAiBD,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvE,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,CAAC,GACV,oBAAoB,CAAC,CAAC,CAAC,CAsEzB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function useTenantPlugins(options?: {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}): {
|
|
4
|
+
tenantId: string | null;
|
|
5
|
+
tenantPlugins: import("../types").TenantPluginBinding[];
|
|
6
|
+
activePlugins: import("../stores/plugin.store").ActiveTenantPluginRecord[];
|
|
7
|
+
loading: boolean;
|
|
8
|
+
error: string | null;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useTenantPlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTenantPlugins.d.ts","sourceRoot":"","sources":["../../src/hooks/useTenantPlugins.ts"],"names":[],"mappings":"AAeA,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE;;;;;;EAuF/D"}
|