managarten/packages/shared-links/src/index.ts
Till JS 4cee74e15d feat(shared-links): deep-link navigation to target app detail views
ManaLinkBadge now resolves the correct URL for the linked record's
detail view (e.g. /event/{id}, /contacts/{id}, /deck/{id}) instead
of just linking to the app's root page.

Uses an anchor tag by default for standard browser navigation, with
onclick prop override for custom behavior. Supports all 12 apps with
their specific routing patterns.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 12:14:29 +02:00

29 lines
585 B
TypeScript

// Store
export { linkLocalStore, linkCollection } from './store.js';
// Types
export type {
LocalManaLink,
CreateManaLinkInput,
LinkCachedData,
ManaRecordRef,
ManaLinkType,
} from './types.js';
export { LINK_TYPE_INVERSIONS } from './types.js';
// Mutations
export { linkMutations } from './mutations.svelte.js';
// Queries
export {
useLinksForRecord,
useLinksForApp,
useLinksOfType,
useLinkCount,
} from './queries.svelte.js';
// Resolvers
export { buildCachedData, isCacheStale } from './resolvers.js';
// Deep Links
export { resolveDeepLink } from './deep-links.js';