All files / blong-browser/src index.ts

100% Statements 128/128
100% Branches 1/1
100% Functions 0/0
100% Lines 128/128

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 1291x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
/**
 * @feasibleone/blong-browser — public API.
 *
 * Primary entry point. Import from here for all UI components, hooks,
 * and types.
 *
 * For the blong realm integration (browser entry, adapters, orchestrators),
 * import from '@feasibleone/blong-browser/browser.js'.
 */
 
// ── Context ──────────────────────────────────────────────────────────────────
export {BlongProvider, makeHandlerProxy, useBlong} from './context/BlongContext.js';
export type {
    IBlongContextValue,
    IBlongPortalConfig,
    IBlongProviderProps,
} from './context/BlongContext.js';
 
// ── State ────────────────────────────────────────────────────────────────────
export {useAppStore} from './state/appStore.js';
 
// ── Hooks ────────────────────────────────────────────────────────────────────
export {useAction} from './hooks/useAction.js';
export {useAsync} from './hooks/useAsync.js';
export {useAuth} from './hooks/useAuth.js';
export {useDarkMode} from './hooks/useDarkMode.js';
export {useFilter} from './hooks/useFilter.js';
export {useHandler, useHandlerCall, useHandlerMutation} from './hooks/useHandler.js';
export {useLayout} from './hooks/useLayout.js';
export {useLoader} from './hooks/useLoader.js';
export {useLocalStorage} from './hooks/useLocalStorage.js';
export {usePermission} from './hooks/usePermission.js';
export {usePortal} from './hooks/usePortal.js';
export {useSubmit} from './hooks/useSubmit.js';
export {useText} from './hooks/useText.js';
export {useToast} from './hooks/useToast.js';
 
// ── Components ───────────────────────────────────────────────────────────────
export {ActionButton} from './components/ActionButton/ActionButton.js';
export {App, type IAppProps} from './components/App/App.js';
export {Async} from './components/Async/Async.js';
export {Card} from './components/Card/Card.js';
export {DateRange} from './components/DateRange/DateRange.js';
export {Deck} from './components/Deck/Deck.js';
export {Editor, resolveTabTitle, type EditorMode} from './components/Editor/Editor.js';
export {ErrorDialog} from './components/Error/Error.js';
export {Explorer} from './components/Explorer/Explorer.js';
export {Form} from './components/Form/Form.js';
export {Hint} from './components/Hint/Hint.js';
export {Json} from './components/Json/Json.js';
export {Loader} from './components/Loader/Loader.js';
export {Login} from './components/Login/Login.js';
export {Navigator} from './components/Navigator/Navigator.js';
export {Page} from './components/Page/Page.js';
export {Permission} from './components/Permission/Permission.js';
export {Portal} from './components/Portal/Portal.js';
export {Report} from './components/Report/Report.js';
export {Text} from './components/Text/Text.js';
export {Theme} from './components/Theme/Theme.js';
export {ThumbIndex} from './components/ThumbIndex/ThumbIndex.js';
 
// ── Design Mode ──────────────────────────────────────────────────────────────
export {DesignModeContext, DesignModeProvider} from './design/DesignModeContext.js';
export {DesignToolbar} from './design/DesignToolbar.js';
export {useDesignMode} from './design/useDesignMode.js';
 
// ── Widgets ──────────────────────────────────────────────────────────────────
export {registerBuiltinWidgets, widgetRegistry} from './widgets/index.js';
 
// ── Schema ───────────────────────────────────────────────────────────────────
export {schemaRegistry} from './schema/registry.js';
export {buildValidationRules} from './schema/validate.js';
 
// ── Event bus ────────────────────────────────────────────────────────────────
export {blongEvents} from './lib/eventBus.js';
export type {BlongEventMap} from './lib/eventBus.js';
 
// ── Types ────────────────────────────────────────────────────────────────────
export type {
    ActionRegistry,
    IBlongError,
    IMutationAction,
    IPageAction,
    IQueryAction,
    ITypedAction,
    IUseActionResult,
} from './types/action.js';
 
export type {
    IAction,
    ICardConfig,
    IEnrichedFieldSchema,
    IEnrichedSchema,
    IFieldConfig,
    IToolbarButton,
    IWidgetConfig,
    IWidgetProps,
    IWidgetRegistry,
    WidgetType,
} from '@feasibleone/blong';
 
export type {IMenuItem, IPortalConfig, IPortalState, ITab} from './types/portal.js';
 
export type {IAuthState, IUserProfile, PermissionMap} from './types/permission.js';
 
export type {ISchemaDocument, ISchemaRegistry} from './types/schema.js';
 
export type {ILayoutResult, IResolvedCard, LayoutConfig} from './hooks/useLayout.js';
 
// ── Model system ─────────────────────────────────────────────────────────────
export {dropdownRegistry} from './model/index.js';
export type {
    IBrowserConfig,
    IBrowserPermissions,
    IDropdownOption,
    IEditorConfig,
    ILayoutTab,
    IMethodsConfig,
    IModelSpec,
    IPartialModelSpec,
    IPropertyOverride,
    IReportConfig,
    IResolvedModelSpec,
    ISchemaOverlay,
    IWidgetOverride,
} from './model/index.js';
 
export {Model} from './model/Model.js';