@carlonicora/nextjs-jsonapi 1.131.1 → 1.132.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/{BlockNoteEditor-BR3IRGJW.js → BlockNoteEditor-JAELO23S.js} +19 -19
- package/dist/{BlockNoteEditor-BR3IRGJW.js.map → BlockNoteEditor-JAELO23S.js.map} +1 -1
- package/dist/{BlockNoteEditor-PVBZYPMF.mjs → BlockNoteEditor-WZFEJS2B.mjs} +4 -4
- package/dist/billing/index.js +357 -357
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-LBMNRFCY.js → chunk-5IE6DZ2D.js} +153 -77
- package/dist/chunk-5IE6DZ2D.js.map +1 -0
- package/dist/{chunk-MDXT47V4.mjs → chunk-67LIVKYU.mjs} +198 -203
- package/dist/chunk-67LIVKYU.mjs.map +1 -0
- package/dist/{chunk-5MNE72ZE.mjs → chunk-DZL2G7NB.mjs} +77 -1
- package/dist/chunk-DZL2G7NB.mjs.map +1 -0
- package/dist/{chunk-XTLTQQ7X.js → chunk-F6KBHC2X.js} +7 -7
- package/dist/{chunk-XTLTQQ7X.js.map → chunk-F6KBHC2X.js.map} +1 -1
- package/dist/{chunk-5SQFK35K.js → chunk-MP5VURBB.js} +1028 -1033
- package/dist/chunk-MP5VURBB.js.map +1 -0
- package/dist/{chunk-NATPK5ME.mjs → chunk-VSAAVVHY.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +3 -2
- package/dist/components/index.d.ts +3 -2
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.d.mts +9 -2
- package/dist/contexts/index.d.ts +9 -2
- package/dist/contexts/index.js +6 -4
- package/dist/contexts/index.js.map +1 -1
- package/dist/contexts/index.mjs +5 -3
- package/dist/core/index.d.mts +11 -1
- package/dist/core/index.d.ts +11 -1
- package/dist/core/index.js +12 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +13 -3
- package/dist/features/help/index.js +39 -39
- package/dist/features/help/index.js.map +1 -1
- package/dist/features/help/index.mjs +5 -5
- package/dist/features/help/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/containers/ReactMarkdownContainer.tsx +1 -1
- package/src/components/containers/RoundPageContainer.tsx +7 -0
- package/src/components/forms/EditorSheet.tsx +24 -1
- package/src/components/forms/FormDateTime.tsx +5 -0
- package/src/components/navigations/Breadcrumb.tsx +13 -11
- package/src/components/navigations/Header.tsx +3 -1
- package/src/contexts/HeaderChildrenContext.tsx +17 -2
- package/src/features/assistant-message/components/MessageItem.tsx +1 -1
- package/src/features/auth/components/GdprConsentSection.tsx +2 -2
- package/src/features/auth/components/forms/Register.tsx +2 -2
- package/src/features/help/components/HelpArticleBody.tsx +2 -2
- package/src/features/notification/components/common/NotificationErrorBoundary.tsx +1 -4
- package/src/features/notification/contexts/__tests__/NotificationContext.spec.tsx +34 -8
- package/src/features/oauth/components/consent/OAuthConsentScreen.tsx +2 -2
- package/src/features/user/contexts/CurrentUserContext.tsx +43 -9
- package/src/features/user/contexts/__tests__/CurrentUserContext.spec.tsx +149 -6
- package/src/features/waitlist/components/forms/WaitlistForm.tsx +2 -2
- package/src/features/waitlist/components/lists/WaitlistList.tsx +13 -2
- package/src/shadcnui/custom/link.tsx +1 -1
- package/src/shadcnui/ui/accordion.tsx +1 -1
- package/src/shadcnui/ui/alert-dialog.tsx +1 -1
- package/src/shadcnui/ui/alert.tsx +2 -5
- package/src/shadcnui/ui/badge.tsx +1 -1
- package/src/shadcnui/ui/button.tsx +1 -1
- package/src/shadcnui/ui/dialog.tsx +1 -4
- package/src/shadcnui/ui/field.tsx +1 -1
- package/src/utils/__tests__/italian-validators.test.ts +63 -0
- package/src/utils/index.ts +8 -0
- package/src/utils/italian-validators.ts +18 -5
- package/dist/chunk-5MNE72ZE.mjs.map +0 -1
- package/dist/chunk-5SQFK35K.js.map +0 -1
- package/dist/chunk-LBMNRFCY.js.map +0 -1
- package/dist/chunk-MDXT47V4.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-PVBZYPMF.mjs.map → BlockNoteEditor-WZFEJS2B.mjs.map} +0 -0
- /package/dist/{chunk-NATPK5ME.mjs.map → chunk-VSAAVVHY.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/features/help/contexts/HelpContext.tsx","../../../src/features/help/components/HelpHeader.tsx","../../../src/features/help/components/HelpAskAi.tsx","../../../src/features/help/components/HelpAssistantSheet.tsx","../../../src/features/help/components/HelpSideNav.tsx","../../../src/features/help/hooks/useHelpFilter.ts","../../../src/features/help/components/HelpArticleBody.tsx","../../../src/features/help/components/HelpTOC.tsx","../../../src/features/help/components/HelpHint.tsx","../../../src/features/help/components/HelpSearchResultRow.tsx","../../../src/features/help/utils/articleUrl.ts","../../../src/features/help/i18n-keys.ts"],"sourcesContent":["\"use client\";\nimport { createContext, useContext, ReactNode } from \"react\";\nimport { _getStaticHelpContent } from \"../../../core/registry/helpStore\";\nimport type { HelpContentConfig } from \"../interfaces/help-content-config.interface\";\n\nconst HelpContext = createContext<HelpContentConfig | null>(null);\n\nexport function HelpProvider({ children }: { children: ReactNode }) {\n const cfg = _getStaticHelpContent<HelpContentConfig>();\n if (!cfg) {\n throw new Error(\n \"Help content not configured — call configureJsonApi({ helpContent: {...} }) before importing help components.\",\n );\n }\n return <HelpContext.Provider value={cfg}>{children}</HelpContext.Provider>;\n}\n\nexport function useHelp(): HelpContentConfig {\n const ctx = useContext(HelpContext);\n if (!ctx) {\n throw new Error(\"useHelp() called outside <HelpProvider>. Wrap your help route group with <HelpProvider>.\");\n }\n return ctx;\n}\n","\"use client\";\nimport Link from \"next/link\";\nimport Image from \"next/image\";\nimport { useTranslations } from \"next-intl\";\nimport { useCurrentUserContext } from \"../../user/contexts/CurrentUserContext\";\nimport { Button } from \"../../../shadcnui\";\nimport { useHelp } from \"../contexts/HelpContext\";\nimport { HelpAskAi } from \"./HelpAskAi\";\n\nexport function HelpHeader() {\n const t = useTranslations();\n const { currentUser } = useCurrentUserContext();\n const { brand } = useHelp();\n const logo = brand?.logo;\n const label = brand?.label ?? \"Help\";\n const appHref = brand?.appHref ?? \"/\";\n\n return (\n <header className=\"border-border bg-background flex items-center justify-between border-b px-4 py-3\">\n <Link href=\"/help\" className=\"flex items-center gap-2\">\n {logo ? <Image src={logo} alt={label} width={28} height={28} /> : null}\n <span className=\"text-base font-semibold\">\n {label} · {t(\"help.footerLink\")}\n </span>\n </Link>\n <div className=\"flex items-center gap-2\">\n <HelpAskAi />\n {currentUser ? (\n <Button render={<Link href={appHref} />} nativeButton={false} variant=\"outline\" size=\"sm\">\n {t(\"help.header.openApp\")}\n </Button>\n ) : (\n <Button render={<Link href=\"/login\" />} nativeButton={false} variant=\"outline\" size=\"sm\">\n {t(\"help.header.login\")}\n </Button>\n )}\n </div>\n </header>\n );\n}\n","\"use client\";\nimport { useState } from \"react\";\nimport { SparklesIcon } from \"lucide-react\";\nimport { useTranslations } from \"next-intl\";\nimport { useCurrentUserContext } from \"../../user/contexts/CurrentUserContext\";\nimport { Button, Tooltip, TooltipTrigger, TooltipContent } from \"../../../shadcnui\";\nimport { HelpAssistantSheet } from \"./HelpAssistantSheet\";\n\nexport function HelpAskAi() {\n const t = useTranslations();\n const { currentUser } = useCurrentUserContext();\n const [open, setOpen] = useState(false);\n const disabled = !currentUser;\n\n if (disabled) {\n return (\n <Tooltip>\n <TooltipTrigger render={<Button variant=\"outline\" size=\"sm\" disabled />}>\n <SparklesIcon className=\"h-4 w-4\" />\n {t(\"help.askAi.button\")}\n </TooltipTrigger>\n <TooltipContent>{t(\"help.askAi.loginTooltip\")}</TooltipContent>\n </Tooltip>\n );\n }\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" onClick={() => setOpen(true)}>\n <SparklesIcon className=\"h-4 w-4\" />\n {t(\"help.askAi.button\")}\n </Button>\n <HelpAssistantSheet open={open} onOpenChange={setOpen} />\n </>\n );\n}\n","\"use client\";\nimport { useTranslations } from \"next-intl\";\nimport { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from \"../../../shadcnui\";\nimport { AssistantProvider, useAssistantContext } from \"../../assistant/contexts/AssistantContext\";\nimport { AssistantThread } from \"../../assistant/components/parts/AssistantThread\";\nimport { AssistantComposer } from \"../../assistant/components/parts/AssistantComposer\";\nimport { AssistantEmptyState } from \"../../assistant/components/parts/AssistantEmptyState\";\n\nexport function HelpAssistantSheet({ open, onOpenChange }: { open: boolean; onOpenChange: (o: boolean) => void }) {\n return (\n <Sheet open={open} onOpenChange={onOpenChange}>\n <SheetContent\n side=\"right\"\n className=\"flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl\"\n >\n <AssistantProvider manageUrl={false}>\n <HelpAssistantSheetBody />\n </AssistantProvider>\n </SheetContent>\n </Sheet>\n );\n}\n\nfunction HelpAssistantSheetBody() {\n const t = useTranslations();\n const ctx = useAssistantContext();\n const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;\n const send = (content: string) => ctx.sendMessage(content, { howToMode: true });\n\n return (\n <>\n <SheetHeader>\n <SheetTitle>{t(\"help.askAi.sheet.title\")}</SheetTitle>\n <SheetDescription>{t(\"help.askAi.sheet.subtitle\")}</SheetDescription>\n </SheetHeader>\n {!showThread ? (\n <AssistantEmptyState onSend={send} />\n ) : (\n <>\n <AssistantThread\n messages={ctx.messages}\n sending={ctx.sending}\n status={ctx.status}\n onSelectFollowUp={send}\n failedMessageIds={ctx.failedMessageIds}\n onRetry={ctx.retrySend}\n />\n <AssistantComposer onSend={send} disabled={ctx.sending} />\n </>\n )}\n </>\n );\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\nimport { HELP_MODES } from \"../types/help-article.types\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { useHelpFilter } from \"../hooks/useHelpFilter\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport function HelpSideNav() {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const pathname = usePathname();\n const [articles, setArticles] = useState<HowToInterface[]>([]);\n\n useEffect(() => {\n let active = true;\n HowToService.findPublished()\n .then((list) => active && setArticles(list))\n .catch(() => active && setArticles([]));\n return () => {\n active = false;\n };\n }, []);\n\n // useHelpFilter indexes by title/summary/tags — map HowTo getters into the shape it expects.\n const indexable = useMemo(\n () =>\n articles.map((a) => ({\n id: a.id,\n title: a.name,\n summary: a.summary ?? \"\",\n tags: a.tags,\n mode: a.howToType ?? \"\",\n slug: a.slug ?? \"\",\n })),\n [articles],\n );\n const { query, setQuery, filtered } = useHelpFilter(indexable as any);\n const filtering = query.trim().length > 0;\n\n const groups = useMemo(\n () =>\n HELP_MODES.map((mode) => ({\n mode,\n articles: articles\n .filter((a) => a.howToType === mode && !a.draft)\n .sort((x, y) => (x.order ?? 0) - (y.order ?? 0)),\n })),\n [articles],\n );\n\n const isActive = (mode: string, slug: string) => pathname.endsWith(`/help/${mode}/${slug}`);\n\n return (\n <nav aria-label=\"Help navigation\" className=\"flex h-full flex-col gap-3 overflow-y-auto p-4\">\n <input\n type=\"search\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n placeholder={t(\"help.sideNav.filterPlaceholder\")}\n className=\"border-input bg-background w-full rounded-md border px-3 py-2 text-sm\"\n />\n {filtering ? (\n (filtered as any[]).length === 0 ? (\n <p className=\"text-muted-foreground text-sm\">{t(\"help.sideNav.noMatches\")}</p>\n ) : (\n <ul className=\"space-y-1\">\n {(filtered as any[]).map((a) => (\n <li key={a.id}>\n <Link\n href={generateUrl({ page: `/help/${a.mode}/${a.slug}` })}\n className={\n \"hover:bg-muted block rounded px-2 py-1 text-sm \" +\n (isActive(a.mode, a.slug) ? \"bg-muted font-medium\" : \"\")\n }\n >\n {a.title}\n </Link>\n </li>\n ))}\n </ul>\n )\n ) : (\n groups.map((group) => {\n if (group.articles.length === 0) return null;\n return (\n <div key={group.mode}>\n <Link\n href={generateUrl({ page: `/help/${group.mode}` })}\n className=\"text-muted-foreground hover:text-foreground mb-1 block text-xs font-semibold tracking-wider uppercase\"\n >\n {t(`help.modes.${group.mode}`)}\n </Link>\n <ul className=\"space-y-0.5\">\n {group.articles.map((a) => (\n <li key={a.id}>\n <Link\n href={generateUrl({ page: `/help/${a.howToType}/${a.slug}` })}\n className={\n \"hover:bg-muted block rounded px-2 py-1 text-sm \" +\n (isActive(a.howToType ?? \"\", a.slug ?? \"\") ? \"bg-muted font-medium\" : \"\")\n }\n >\n {a.name}\n </Link>\n </li>\n ))}\n </ul>\n </div>\n );\n })\n )}\n </nav>\n );\n}\n","\"use client\";\nimport { useMemo, useState } from \"react\";\nimport Fuse from \"fuse.js\";\nimport type { HelpArticle } from \"../types/help-article.types\";\n\nexport function useHelpFilter(articles: readonly HelpArticle[]) {\n const [query, setQuery] = useState(\"\");\n const fuse = useMemo(\n () =>\n new Fuse([...articles], {\n keys: [\n { name: \"title\", weight: 0.5 },\n { name: \"summary\", weight: 0.3 },\n { name: \"tags\", weight: 0.1 },\n { name: \"headings.text\", weight: 0.1 },\n ],\n threshold: 0.4,\n ignoreLocation: true,\n }),\n [articles],\n );\n const filtered = useMemo(() => {\n if (!query.trim()) return [...articles];\n return fuse.search(query).map((r) => r.item);\n }, [query, articles, fuse]);\n return { query, setQuery, filtered };\n}\n","\"use client\";\n\nimport { ReactNode } from \"react\";\nimport Link from \"next/link\";\nimport { useFormatter, useTranslations } from \"next-intl\";\nimport { usePageUrlGenerator } from \"../../../client\";\n\ntype Sibling = { howToType: string; slug: string; title: string };\n\nexport function HelpArticleBody(props: {\n howToType: string;\n title: string;\n summary?: string;\n updatedAt?: string;\n prev?: Sibling | null;\n next?: Sibling | null;\n children: ReactNode;\n}) {\n const t = useTranslations();\n const format = useFormatter();\n const generateUrl = usePageUrlGenerator();\n const { howToType, title, summary, updatedAt, prev, next, children } = props;\n\n return (\n <article className=\"prose dark:prose-invert max-w-none\">\n <nav className=\"text-muted-foreground mb-2 text-xs\">\n <Link href={generateUrl({ page: \"/help\" })}>Help</Link>\n {\" · \"}\n <Link href={generateUrl({ page: `/help/${howToType}` })}>{t(`help.modes.${howToType}`)}</Link>\n </nav>\n <h1>{title}</h1>\n {summary ? <p className=\"text-muted-foreground !mt-0 text-base\">{summary}</p> : null}\n {children}\n <hr className=\"my-6\" />\n {updatedAt ? (\n <div className=\"text-muted-foreground text-xs\">\n <span>\n {t(\"help.article.lastUpdated\", {\n date: format.dateTime(new Date(updatedAt), { dateStyle: \"short\" }),\n })}\n </span>\n </div>\n ) : null}\n <div className=\"mt-4 flex justify-between text-sm\">\n {prev ? (\n <Link href={generateUrl({ page: `/help/${prev.howToType}/${prev.slug}` })} className=\"hover:underline\">\n ← {t(\"help.article.previous\")}: {prev.title}\n </Link>\n ) : (\n <span />\n )}\n {next ? (\n <Link href={generateUrl({ page: `/help/${next.howToType}/${next.slug}` })} className=\"hover:underline\">\n {t(\"help.article.next\")}: {next.title} →\n </Link>\n ) : (\n <span />\n )}\n </div>\n </article>\n );\n}\n","\"use client\";\nimport { useEffect, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport type { HelpHeading } from \"../types/help-article.types\";\nimport { MicroLabel } from \"../../../components/typography\";\n\nexport function HelpTOC({ headings }: { headings: readonly HelpHeading[] }) {\n const t = useTranslations();\n const [active, setActive] = useState<string | null>(null);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n (entries) => {\n for (const e of entries) {\n if (e.isIntersecting) setActive(e.target.id);\n }\n },\n { rootMargin: \"0px 0px -70% 0px\", threshold: 0 },\n );\n headings.forEach((h) => {\n const el = document.getElementById(h.slug);\n if (el) observer.observe(el);\n });\n return () => observer.disconnect();\n }, [headings]);\n\n if (headings.length === 0) return null;\n return (\n <nav aria-label={t(\"help.toc.title\")} className=\"hidden lg:block\">\n <MicroLabel className=\"mb-2\">{t(\"help.toc.title\")}</MicroLabel>\n <ul className=\"space-y-1 text-sm\">\n {headings.map((h) => (\n <li key={h.slug} style={{ paddingLeft: `${(h.depth - 2) * 0.75}rem` }}>\n <a\n href={`#${h.slug}`}\n className={\n \"block truncate hover:text-foreground \" +\n (active === h.slug ? \"text-foreground font-medium\" : \"text-muted-foreground\")\n }\n >\n {h.text}\n </a>\n </li>\n ))}\n </ul>\n </nav>\n );\n}\n","\"use client\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport Link from \"next/link\";\nimport { HelpCircleIcon } from \"lucide-react\";\nimport {\n Button,\n Sheet,\n SheetContent,\n SheetTrigger,\n SheetHeader,\n SheetTitle,\n SheetDescription,\n} from \"../../../shadcnui\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport function HelpHint({ contextKey }: { contextKey: string }) {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const [open, setOpen] = useState(false);\n const [picked, setPicked] = useState<HowToInterface | null>(null);\n\n const [articles, setArticles] = useState<HowToInterface[]>([]);\n useEffect(() => {\n let active = true;\n HowToService.findPublished()\n .then((list) => active && setArticles(list))\n .catch(() => active && setArticles([]));\n return () => {\n active = false;\n };\n }, []);\n\n const matches = useMemo(\n () => articles.filter((a) => a.contextualKeys.includes(contextKey) && !a.draft),\n [articles, contextKey],\n );\n\n if (matches.length === 0) return null;\n const active = picked ?? (matches.length === 1 ? matches[0] : null);\n\n return (\n <Sheet\n open={open}\n onOpenChange={(o) => {\n setOpen(o);\n if (!o) setPicked(null);\n }}\n >\n <SheetTrigger render={<Button variant=\"ghost\" size=\"icon-sm\" aria-label={t(\"help.hint.trigger\")} />}>\n <HelpCircleIcon className=\"h-4 w-4\" />\n </SheetTrigger>\n <SheetContent side=\"right\" className=\"w-full max-w-md sm:max-w-lg\">\n <SheetHeader>\n <SheetTitle>{active ? active.name : t(\"help.hint.pickArticle\")}</SheetTitle>\n <SheetDescription>{active?.summary ?? \"\"}</SheetDescription>\n </SheetHeader>\n {active ? (\n <div className=\"mt-4 space-y-3\">\n <p className=\"text-muted-foreground text-sm\">{active.summary}</p>\n <Link href={generateUrl({ page: `/help/${active.howToType}/${active.slug}` })} className=\"text-sm\">\n {t(\"help.hint.viewArticle\")}\n </Link>\n </div>\n ) : (\n <ul className=\"mt-4 space-y-1\">\n {matches.map((a) => (\n <li key={a.id}>\n <button\n type=\"button\"\n onClick={() => setPicked(a)}\n className=\"hover:bg-muted block w-full rounded px-2 py-1 text-left text-sm\"\n >\n <div className=\"font-medium\">{a.name}</div>\n <div className=\"text-muted-foreground text-xs\">{a.summary}</div>\n </button>\n </li>\n ))}\n </ul>\n )}\n </SheetContent>\n </Sheet>\n );\n}\n","\"use client\";\nimport Link from \"next/link\";\nimport { useTranslations } from \"next-intl\";\nimport { useEffect, useState } from \"react\";\nimport { LifeBuoyIcon, ArrowUpRightIcon } from \"lucide-react\";\nimport { CommandItem } from \"../../../shadcnui\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport interface HelpSearchResultRowProps {\n result: { id: string; name: string; entityType: string };\n onSelect?: () => void;\n}\n\nexport function HelpSearchResultRow({ result, onSelect }: HelpSearchResultRowProps) {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const [article, setArticle] = useState<HowToInterface | null>(null);\n useEffect(() => {\n let active = true;\n HowToService.findOne({ id: result.id })\n .then((a) => active && setArticle(a))\n .catch(() => active && setArticle(null));\n return () => {\n active = false;\n };\n }, [result.id]);\n\n if (!article) {\n return (\n <CommandItem\n value={result.id}\n disabled\n className=\"text-muted-foreground cursor-not-allowed px-3 py-1.5 text-sm italic\"\n >\n {t(\"help.search.removed\")}\n </CommandItem>\n );\n }\n\n return (\n <CommandItem value={result.id} onSelect={onSelect} className=\"cursor-pointer p-0\">\n <Link\n href={generateUrl({ page: `/help/${article.howToType}/${article.slug}` })}\n className=\"hover:bg-muted flex w-full items-center gap-3 rounded px-3 py-2\"\n >\n <div className=\"bg-muted text-muted-foreground flex h-10 w-10 shrink-0 items-center justify-center rounded-full\">\n <LifeBuoyIcon className=\"h-5 w-5\" />\n </div>\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-foreground truncate text-sm font-semibold\">{article.name}</span>\n <span className=\"text-muted-foreground truncate text-xs\">\n {t(`help.modes.${article.howToType}`)} · {article.summary}\n </span>\n </div>\n <ArrowUpRightIcon className=\"text-muted-foreground h-5 w-5 shrink-0\" />\n </Link>\n </CommandItem>\n );\n}\n","import type { HelpMode } from \"../types/help-article.types\";\nimport type { usePageUrlGenerator } from \"../../../client\";\n\nexport function articleUrl(\n generateUrl: ReturnType<typeof usePageUrlGenerator>,\n article: { mode: HelpMode; slug: string },\n): string {\n return generateUrl({ page: `/help/${article.mode}/${article.slug}` });\n}\n\nexport function modeUrl(generateUrl: ReturnType<typeof usePageUrlGenerator>, mode: HelpMode): string {\n return generateUrl({ page: `/help/${mode}` });\n}\n","/**\n * The fixed namespace of i18n keys this feature reads via useTranslations/getTranslations.\n * Consuming apps must define each entry in their messages/<locale>.json.\n */\nexport const HELP_I18N_KEYS = [\n \"help.modes.tutorial\",\n \"help.modes.how-to\",\n \"help.modes.reference\",\n \"help.modes.explanation\",\n \"help.sideNav.filterPlaceholder\",\n \"help.sideNav.noMatches\",\n \"help.toc.title\",\n \"help.article.lastUpdated\",\n \"help.article.previous\",\n \"help.article.next\",\n \"help.article.related\",\n \"help.askAi.button\",\n \"help.askAi.loginTooltip\",\n \"help.askAi.sheet.title\",\n \"help.askAi.sheet.subtitle\",\n \"help.header.search\",\n \"help.header.login\",\n \"help.header.openApp\",\n \"help.hint.trigger\",\n \"help.hint.viewArticle\",\n \"help.hint.pickArticle\",\n \"help.landing.heading\",\n \"help.landing.subheading\",\n \"help.landing.featuredTutorials\",\n \"help.landing.browseByMode\",\n \"help.modeIndex.empty\",\n \"help.search.removed\",\n \"help.footerLink\",\n] as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,eAAe,kBAA6B;AAa5C;AATT,IAAM,cAAc,cAAwC,IAAI;AAEzD,SAAS,aAAa,EAAE,SAAS,GAA4B;AAClE,QAAM,MAAM,sBAAyC;AACrD,MAAI,CAAC,KAAK;AACR,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,oBAAC,YAAY,UAAZ,EAAqB,OAAO,KAAM,UAAS;AACrD;AARgB;AAUT,SAAS,UAA6B;AAC3C,QAAM,MAAM,WAAW,WAAW;AAClC,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,0FAA0F;AAAA,EAC5G;AACA,SAAO;AACT;AANgB;;;AChBhB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,mBAAAA,wBAAuB;;;ACFhC,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,mBAAAC,wBAAuB;;;ACFhC,SAAS,uBAAuB;AAetB,SAsBF,UAtBE,OAAAC,MAeJ,YAfI;AARH,SAAS,mBAAmB,EAAE,MAAM,aAAa,GAA0D;AAChH,SACE,gBAAAA,KAAC,SAAM,MAAY,cACjB,0BAAAA;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,WAAU;AAAA,MAEV,0BAAAA,KAAC,qBAAkB,WAAW,OAC5B,0BAAAA,KAAC,0BAAuB,GAC1B;AAAA;AAAA,EACF,GACF;AAEJ;AAbgB;AAehB,SAAS,yBAAyB;A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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":["useTranslations","useTranslations","jsx","Fragment","jsx","jsxs","useTranslations","jsx","jsxs","useTranslations","useMemo","useState","useTranslations","Link","useState","useState","jsx","jsxs","useTranslations","useState","useMemo","Link","Link","useTranslations","jsx","jsxs","useTranslations","Link","useEffect","useState","useTranslations","jsx","jsxs","useTranslations","useState","useEffect","useEffect","useMemo","useState","useTranslations","Link","jsx","jsxs","useTranslations","useState","useEffect","active","useMemo","Link","Link","useTranslations","useEffect","useState","jsx","jsxs","useTranslations","useState","useEffect","Link"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/features/help/contexts/HelpContext.tsx","../../../src/features/help/components/HelpHeader.tsx","../../../src/features/help/components/HelpAskAi.tsx","../../../src/features/help/components/HelpAssistantSheet.tsx","../../../src/features/help/components/HelpSideNav.tsx","../../../src/features/help/hooks/useHelpFilter.ts","../../../src/features/help/components/HelpArticleBody.tsx","../../../src/features/help/components/HelpTOC.tsx","../../../src/features/help/components/HelpHint.tsx","../../../src/features/help/components/HelpSearchResultRow.tsx","../../../src/features/help/utils/articleUrl.ts","../../../src/features/help/i18n-keys.ts"],"sourcesContent":["\"use client\";\nimport { createContext, useContext, ReactNode } from \"react\";\nimport { _getStaticHelpContent } from \"../../../core/registry/helpStore\";\nimport type { HelpContentConfig } from \"../interfaces/help-content-config.interface\";\n\nconst HelpContext = createContext<HelpContentConfig | null>(null);\n\nexport function HelpProvider({ children }: { children: ReactNode }) {\n const cfg = _getStaticHelpContent<HelpContentConfig>();\n if (!cfg) {\n throw new Error(\n \"Help content not configured — call configureJsonApi({ helpContent: {...} }) before importing help components.\",\n );\n }\n return <HelpContext.Provider value={cfg}>{children}</HelpContext.Provider>;\n}\n\nexport function useHelp(): HelpContentConfig {\n const ctx = useContext(HelpContext);\n if (!ctx) {\n throw new Error(\"useHelp() called outside <HelpProvider>. Wrap your help route group with <HelpProvider>.\");\n }\n return ctx;\n}\n","\"use client\";\nimport Link from \"next/link\";\nimport Image from \"next/image\";\nimport { useTranslations } from \"next-intl\";\nimport { useCurrentUserContext } from \"../../user/contexts/CurrentUserContext\";\nimport { Button } from \"../../../shadcnui\";\nimport { useHelp } from \"../contexts/HelpContext\";\nimport { HelpAskAi } from \"./HelpAskAi\";\n\nexport function HelpHeader() {\n const t = useTranslations();\n const { currentUser } = useCurrentUserContext();\n const { brand } = useHelp();\n const logo = brand?.logo;\n const label = brand?.label ?? \"Help\";\n const appHref = brand?.appHref ?? \"/\";\n\n return (\n <header className=\"border-border bg-background flex items-center justify-between border-b px-4 py-3\">\n <Link href=\"/help\" className=\"flex items-center gap-2\">\n {logo ? <Image src={logo} alt={label} width={28} height={28} /> : null}\n <span className=\"text-base font-semibold\">\n {label} · {t(\"help.footerLink\")}\n </span>\n </Link>\n <div className=\"flex items-center gap-2\">\n <HelpAskAi />\n {currentUser ? (\n <Button render={<Link href={appHref} />} nativeButton={false} variant=\"outline\" size=\"sm\">\n {t(\"help.header.openApp\")}\n </Button>\n ) : (\n <Button render={<Link href=\"/login\" />} nativeButton={false} variant=\"outline\" size=\"sm\">\n {t(\"help.header.login\")}\n </Button>\n )}\n </div>\n </header>\n );\n}\n","\"use client\";\nimport { useState } from \"react\";\nimport { SparklesIcon } from \"lucide-react\";\nimport { useTranslations } from \"next-intl\";\nimport { useCurrentUserContext } from \"../../user/contexts/CurrentUserContext\";\nimport { Button, Tooltip, TooltipTrigger, TooltipContent } from \"../../../shadcnui\";\nimport { HelpAssistantSheet } from \"./HelpAssistantSheet\";\n\nexport function HelpAskAi() {\n const t = useTranslations();\n const { currentUser } = useCurrentUserContext();\n const [open, setOpen] = useState(false);\n const disabled = !currentUser;\n\n if (disabled) {\n return (\n <Tooltip>\n <TooltipTrigger render={<Button variant=\"outline\" size=\"sm\" disabled />}>\n <SparklesIcon className=\"h-4 w-4\" />\n {t(\"help.askAi.button\")}\n </TooltipTrigger>\n <TooltipContent>{t(\"help.askAi.loginTooltip\")}</TooltipContent>\n </Tooltip>\n );\n }\n\n return (\n <>\n <Button variant=\"outline\" size=\"sm\" onClick={() => setOpen(true)}>\n <SparklesIcon className=\"h-4 w-4\" />\n {t(\"help.askAi.button\")}\n </Button>\n <HelpAssistantSheet open={open} onOpenChange={setOpen} />\n </>\n );\n}\n","\"use client\";\nimport { useTranslations } from \"next-intl\";\nimport { Sheet, SheetContent, SheetHeader, SheetTitle, SheetDescription } from \"../../../shadcnui\";\nimport { AssistantProvider, useAssistantContext } from \"../../assistant/contexts/AssistantContext\";\nimport { AssistantThread } from \"../../assistant/components/parts/AssistantThread\";\nimport { AssistantComposer } from \"../../assistant/components/parts/AssistantComposer\";\nimport { AssistantEmptyState } from \"../../assistant/components/parts/AssistantEmptyState\";\n\nexport function HelpAssistantSheet({ open, onOpenChange }: { open: boolean; onOpenChange: (o: boolean) => void }) {\n return (\n <Sheet open={open} onOpenChange={onOpenChange}>\n <SheetContent\n side=\"right\"\n className=\"flex w-full flex-col data-[side=right]:sm:max-w-2xl data-[side=right]:lg:max-w-3xl\"\n >\n <AssistantProvider manageUrl={false}>\n <HelpAssistantSheetBody />\n </AssistantProvider>\n </SheetContent>\n </Sheet>\n );\n}\n\nfunction HelpAssistantSheetBody() {\n const t = useTranslations();\n const ctx = useAssistantContext();\n const showThread = !!ctx.assistant || ctx.sending || ctx.messages.length > 0;\n const send = (content: string) => ctx.sendMessage(content, { howToMode: true });\n\n return (\n <>\n <SheetHeader>\n <SheetTitle>{t(\"help.askAi.sheet.title\")}</SheetTitle>\n <SheetDescription>{t(\"help.askAi.sheet.subtitle\")}</SheetDescription>\n </SheetHeader>\n {!showThread ? (\n <AssistantEmptyState onSend={send} />\n ) : (\n <>\n <AssistantThread\n messages={ctx.messages}\n sending={ctx.sending}\n status={ctx.status}\n onSelectFollowUp={send}\n failedMessageIds={ctx.failedMessageIds}\n onRetry={ctx.retrySend}\n />\n <AssistantComposer onSend={send} disabled={ctx.sending} />\n </>\n )}\n </>\n );\n}\n","\"use client\";\n\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport Link from \"next/link\";\nimport { usePathname } from \"next/navigation\";\nimport { HELP_MODES } from \"../types/help-article.types\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { useHelpFilter } from \"../hooks/useHelpFilter\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport function HelpSideNav() {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const pathname = usePathname();\n const [articles, setArticles] = useState<HowToInterface[]>([]);\n\n useEffect(() => {\n let active = true;\n HowToService.findPublished()\n .then((list) => active && setArticles(list))\n .catch(() => active && setArticles([]));\n return () => {\n active = false;\n };\n }, []);\n\n // useHelpFilter indexes by title/summary/tags — map HowTo getters into the shape it expects.\n const indexable = useMemo(\n () =>\n articles.map((a) => ({\n id: a.id,\n title: a.name,\n summary: a.summary ?? \"\",\n tags: a.tags,\n mode: a.howToType ?? \"\",\n slug: a.slug ?? \"\",\n })),\n [articles],\n );\n const { query, setQuery, filtered } = useHelpFilter(indexable as any);\n const filtering = query.trim().length > 0;\n\n const groups = useMemo(\n () =>\n HELP_MODES.map((mode) => ({\n mode,\n articles: articles\n .filter((a) => a.howToType === mode && !a.draft)\n .sort((x, y) => (x.order ?? 0) - (y.order ?? 0)),\n })),\n [articles],\n );\n\n const isActive = (mode: string, slug: string) => pathname.endsWith(`/help/${mode}/${slug}`);\n\n return (\n <nav aria-label=\"Help navigation\" className=\"flex h-full flex-col gap-3 overflow-y-auto p-4\">\n <input\n type=\"search\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n placeholder={t(\"help.sideNav.filterPlaceholder\")}\n className=\"border-input bg-background w-full rounded-md border px-3 py-2 text-sm\"\n />\n {filtering ? (\n (filtered as any[]).length === 0 ? (\n <p className=\"text-muted-foreground text-sm\">{t(\"help.sideNav.noMatches\")}</p>\n ) : (\n <ul className=\"space-y-1\">\n {(filtered as any[]).map((a) => (\n <li key={a.id}>\n <Link\n href={generateUrl({ page: `/help/${a.mode}/${a.slug}` })}\n className={\n \"hover:bg-muted block rounded px-2 py-1 text-sm \" +\n (isActive(a.mode, a.slug) ? \"bg-muted font-medium\" : \"\")\n }\n >\n {a.title}\n </Link>\n </li>\n ))}\n </ul>\n )\n ) : (\n groups.map((group) => {\n if (group.articles.length === 0) return null;\n return (\n <div key={group.mode}>\n <Link\n href={generateUrl({ page: `/help/${group.mode}` })}\n className=\"text-muted-foreground hover:text-foreground mb-1 block text-xs font-semibold tracking-wider uppercase\"\n >\n {t(`help.modes.${group.mode}`)}\n </Link>\n <ul className=\"space-y-0.5\">\n {group.articles.map((a) => (\n <li key={a.id}>\n <Link\n href={generateUrl({ page: `/help/${a.howToType}/${a.slug}` })}\n className={\n \"hover:bg-muted block rounded px-2 py-1 text-sm \" +\n (isActive(a.howToType ?? \"\", a.slug ?? \"\") ? \"bg-muted font-medium\" : \"\")\n }\n >\n {a.name}\n </Link>\n </li>\n ))}\n </ul>\n </div>\n );\n })\n )}\n </nav>\n );\n}\n","\"use client\";\nimport { useMemo, useState } from \"react\";\nimport Fuse from \"fuse.js\";\nimport type { HelpArticle } from \"../types/help-article.types\";\n\nexport function useHelpFilter(articles: readonly HelpArticle[]) {\n const [query, setQuery] = useState(\"\");\n const fuse = useMemo(\n () =>\n new Fuse([...articles], {\n keys: [\n { name: \"title\", weight: 0.5 },\n { name: \"summary\", weight: 0.3 },\n { name: \"tags\", weight: 0.1 },\n { name: \"headings.text\", weight: 0.1 },\n ],\n threshold: 0.4,\n ignoreLocation: true,\n }),\n [articles],\n );\n const filtered = useMemo(() => {\n if (!query.trim()) return [...articles];\n return fuse.search(query).map((r) => r.item);\n }, [query, articles, fuse]);\n return { query, setQuery, filtered };\n}\n","\"use client\";\n\nimport { ReactNode } from \"react\";\nimport Link from \"next/link\";\nimport { useFormatter, useTranslations } from \"next-intl\";\nimport { usePageUrlGenerator } from \"../../../client\";\n\ntype Sibling = { howToType: string; slug: string; title: string };\n\nexport function HelpArticleBody(props: {\n howToType: string;\n title: string;\n summary?: string;\n updatedAt?: string;\n prev?: Sibling | null;\n next?: Sibling | null;\n children: ReactNode;\n}) {\n const t = useTranslations();\n const format = useFormatter();\n const generateUrl = usePageUrlGenerator();\n const { howToType, title, summary, updatedAt, prev, next, children } = props;\n\n return (\n <article className=\"prose dark:prose-invert max-w-none\">\n <nav className=\"text-muted-foreground mb-2 text-xs\">\n <Link href={generateUrl({ page: \"/help\" })}>Help</Link>\n {\" · \"}\n <Link href={generateUrl({ page: `/help/${howToType}` })}>{t(`help.modes.${howToType}`)}</Link>\n </nav>\n <h1>{title}</h1>\n {summary ? <p className=\"text-muted-foreground !mt-0 text-base\">{summary}</p> : null}\n {children}\n <hr className=\"my-6\" />\n {updatedAt ? (\n <div className=\"text-muted-foreground text-xs\">\n <span>\n {t(\"help.article.lastUpdated\", {\n date: format.dateTime(new Date(updatedAt), { dateStyle: \"short\" }),\n })}\n </span>\n </div>\n ) : null}\n <div className=\"mt-4 flex justify-between text-sm\">\n {prev ? (\n <Link href={generateUrl({ page: `/help/${prev.howToType}/${prev.slug}` })}>\n ← {t(\"help.article.previous\")}: {prev.title}\n </Link>\n ) : (\n <span />\n )}\n {next ? (\n <Link href={generateUrl({ page: `/help/${next.howToType}/${next.slug}` })}>\n {t(\"help.article.next\")}: {next.title} →\n </Link>\n ) : (\n <span />\n )}\n </div>\n </article>\n );\n}\n","\"use client\";\nimport { useEffect, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport type { HelpHeading } from \"../types/help-article.types\";\nimport { MicroLabel } from \"../../../components/typography\";\n\nexport function HelpTOC({ headings }: { headings: readonly HelpHeading[] }) {\n const t = useTranslations();\n const [active, setActive] = useState<string | null>(null);\n\n useEffect(() => {\n const observer = new IntersectionObserver(\n (entries) => {\n for (const e of entries) {\n if (e.isIntersecting) setActive(e.target.id);\n }\n },\n { rootMargin: \"0px 0px -70% 0px\", threshold: 0 },\n );\n headings.forEach((h) => {\n const el = document.getElementById(h.slug);\n if (el) observer.observe(el);\n });\n return () => observer.disconnect();\n }, [headings]);\n\n if (headings.length === 0) return null;\n return (\n <nav aria-label={t(\"help.toc.title\")} className=\"hidden lg:block\">\n <MicroLabel className=\"mb-2\">{t(\"help.toc.title\")}</MicroLabel>\n <ul className=\"space-y-1 text-sm\">\n {headings.map((h) => (\n <li key={h.slug} style={{ paddingLeft: `${(h.depth - 2) * 0.75}rem` }}>\n <a\n href={`#${h.slug}`}\n className={\n \"block truncate hover:text-foreground \" +\n (active === h.slug ? \"text-foreground font-medium\" : \"text-muted-foreground\")\n }\n >\n {h.text}\n </a>\n </li>\n ))}\n </ul>\n </nav>\n );\n}\n","\"use client\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useTranslations } from \"next-intl\";\nimport Link from \"next/link\";\nimport { HelpCircleIcon } from \"lucide-react\";\nimport {\n Button,\n Sheet,\n SheetContent,\n SheetTrigger,\n SheetHeader,\n SheetTitle,\n SheetDescription,\n} from \"../../../shadcnui\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport function HelpHint({ contextKey }: { contextKey: string }) {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const [open, setOpen] = useState(false);\n const [picked, setPicked] = useState<HowToInterface | null>(null);\n\n const [articles, setArticles] = useState<HowToInterface[]>([]);\n useEffect(() => {\n let active = true;\n HowToService.findPublished()\n .then((list) => active && setArticles(list))\n .catch(() => active && setArticles([]));\n return () => {\n active = false;\n };\n }, []);\n\n const matches = useMemo(\n () => articles.filter((a) => a.contextualKeys.includes(contextKey) && !a.draft),\n [articles, contextKey],\n );\n\n if (matches.length === 0) return null;\n const active = picked ?? (matches.length === 1 ? matches[0] : null);\n\n return (\n <Sheet\n open={open}\n onOpenChange={(o) => {\n setOpen(o);\n if (!o) setPicked(null);\n }}\n >\n <SheetTrigger render={<Button variant=\"ghost\" size=\"icon-sm\" aria-label={t(\"help.hint.trigger\")} />}>\n <HelpCircleIcon className=\"h-4 w-4\" />\n </SheetTrigger>\n <SheetContent side=\"right\" className=\"w-full max-w-md sm:max-w-lg\">\n <SheetHeader>\n <SheetTitle>{active ? active.name : t(\"help.hint.pickArticle\")}</SheetTitle>\n <SheetDescription>{active?.summary ?? \"\"}</SheetDescription>\n </SheetHeader>\n {active ? (\n <div className=\"mt-4 space-y-3\">\n <p className=\"text-muted-foreground text-sm\">{active.summary}</p>\n <Link href={generateUrl({ page: `/help/${active.howToType}/${active.slug}` })} className=\"text-sm\">\n {t(\"help.hint.viewArticle\")}\n </Link>\n </div>\n ) : (\n <ul className=\"mt-4 space-y-1\">\n {matches.map((a) => (\n <li key={a.id}>\n <button\n type=\"button\"\n onClick={() => setPicked(a)}\n className=\"hover:bg-muted block w-full rounded px-2 py-1 text-left text-sm\"\n >\n <div className=\"font-medium\">{a.name}</div>\n <div className=\"text-muted-foreground text-xs\">{a.summary}</div>\n </button>\n </li>\n ))}\n </ul>\n )}\n </SheetContent>\n </Sheet>\n );\n}\n","\"use client\";\nimport Link from \"next/link\";\nimport { useTranslations } from \"next-intl\";\nimport { useEffect, useState } from \"react\";\nimport { LifeBuoyIcon, ArrowUpRightIcon } from \"lucide-react\";\nimport { CommandItem } from \"../../../shadcnui\";\nimport { usePageUrlGenerator } from \"../../../client\";\nimport { HowToService } from \"../../how-to/data/HowToService\";\nimport type { HowToInterface } from \"../../how-to/data/HowToInterface\";\n\nexport interface HelpSearchResultRowProps {\n result: { id: string; name: string; entityType: string };\n onSelect?: () => void;\n}\n\nexport function HelpSearchResultRow({ result, onSelect }: HelpSearchResultRowProps) {\n const t = useTranslations();\n const generateUrl = usePageUrlGenerator();\n const [article, setArticle] = useState<HowToInterface | null>(null);\n useEffect(() => {\n let active = true;\n HowToService.findOne({ id: result.id })\n .then((a) => active && setArticle(a))\n .catch(() => active && setArticle(null));\n return () => {\n active = false;\n };\n }, [result.id]);\n\n if (!article) {\n return (\n <CommandItem\n value={result.id}\n disabled\n className=\"text-muted-foreground cursor-not-allowed px-3 py-1.5 text-sm italic\"\n >\n {t(\"help.search.removed\")}\n </CommandItem>\n );\n }\n\n return (\n <CommandItem value={result.id} onSelect={onSelect} className=\"cursor-pointer p-0\">\n <Link\n href={generateUrl({ page: `/help/${article.howToType}/${article.slug}` })}\n className=\"hover:bg-muted flex w-full items-center gap-3 rounded px-3 py-2\"\n >\n <div className=\"bg-muted text-muted-foreground flex h-10 w-10 shrink-0 items-center justify-center rounded-full\">\n <LifeBuoyIcon className=\"h-5 w-5\" />\n </div>\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <span className=\"text-foreground truncate text-sm font-semibold\">{article.name}</span>\n <span className=\"text-muted-foreground truncate text-xs\">\n {t(`help.modes.${article.howToType}`)} · {article.summary}\n </span>\n </div>\n <ArrowUpRightIcon className=\"text-muted-foreground h-5 w-5 shrink-0\" />\n </Link>\n </CommandItem>\n );\n}\n","import type { HelpMode } from \"../types/help-article.types\";\nimport type { usePageUrlGenerator } from \"../../../client\";\n\nexport function articleUrl(\n generateUrl: ReturnType<typeof usePageUrlGenerator>,\n article: { mode: HelpMode; slug: string },\n): string {\n return generateUrl({ page: `/help/${article.mode}/${article.slug}` });\n}\n\nexport function modeUrl(generateUrl: ReturnType<typeof usePageUrlGenerator>, mode: HelpMode): string {\n return generateUrl({ page: `/help/${mode}` });\n}\n","/**\n * The fixed namespace of i18n keys this feature reads via useTranslations/getTranslations.\n * Consuming apps must define each entry in their messages/<locale>.json.\n */\nexport const HELP_I18N_KEYS = [\n \"help.modes.tutorial\",\n \"help.modes.how-to\",\n \"help.modes.reference\",\n \"help.modes.explanation\",\n \"help.sideNav.filterPlaceholder\",\n \"help.sideNav.noMatches\",\n \"help.toc.title\",\n \"help.article.lastUpdated\",\n \"help.article.previous\",\n \"help.article.next\",\n \"help.article.related\",\n \"help.askAi.button\",\n \"help.askAi.loginTooltip\",\n \"help.askAi.sheet.title\",\n \"help.askAi.sheet.subtitle\",\n \"help.header.search\",\n \"help.header.login\",\n \"help.header.openApp\",\n \"help.hint.trigger\",\n \"help.hint.viewArticle\",\n \"help.hint.pickArticle\",\n \"help.landing.heading\",\n \"help.landing.subheading\",\n \"help.landing.featuredTutorials\",\n \"help.landing.browseByMode\",\n \"help.modeIndex.empty\",\n \"help.search.removed\",\n \"help.footerLink\",\n] as const;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,eAAe,kBAA6B;AAa5C;AATT,IAAM,cAAc,cAAwC,IAAI;AAEzD,SAAS,aAAa,EAAE,SAAS,GAA4B;AAClE,QAAM,MAAM,sBAAyC;AACrD,MAAI,CAAC,KAAK;AACR,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,oBAAC,YAAY,UAAZ,EAAqB,OAAO,KAAM,UAAS;AACrD;AARgB;AAUT,SAAS,UAA6B;AAC3C,QAAM,MAAM,WAAW,WAAW;AAClC,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,0FAA0F;AAAA,EAC5G;AACA,SAAO;AACT;AANgB;;;AChBhB,OAAO,UAAU;AACjB,OAAO,WAAW;AAClB,SAAS,mBAAAA,wBAAuB;;;ACFhC,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,mBAAAC,wBAAuB;;;ACFhC,SAAS,uBAAuB;AAetB,SAsBF,UAtBE,OAAAC,MAeJ,YAfI;AARH,SAAS,mBAAmB,EAAE,MAAM,aAAa,GAA0D;AAChH,SACE,gBAAAA,KAAC,SAAM,MAAY,cAC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T,SAAS,QAAQ,aAAqD,MAAwB;AACnG,SAAO,YAAY,EAAE,MAAM,SAAS,IAAI,GAAG,CAAC;AAC9C;AAFgB;;;ACNT,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":["useTranslations","useTranslations","jsx","Fragment","jsx","jsxs","useTranslations","jsx","jsxs","useTranslations","useMemo","useState","useTranslations","Link","useState","useState","jsx","jsxs","useTranslations","useState","useMemo","Link","Link","useTranslations","jsx","jsxs","useTranslations","Link","useEffect","useState","useTranslations","jsx","jsxs","useTranslations","useState","useEffect","useEffect","useMemo","useState","useTranslations","Link","jsx","jsxs","useTranslations","useState","useEffect","active","useMemo","Link","Link","useTranslations","useEffect","useState","jsx","jsxs","useTranslations","useState","useEffect","Link"]}
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
|
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.mjs';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-rsXRL_Hn.mjs';
|
|
5
5
|
import { AbstractApiData } from './core/index.mjs';
|
|
6
|
-
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.mjs';
|
|
6
|
+
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, CodiceFiscaleValidationOptions, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatCodiceFiscale, formatDate, formatLocalDate, formatPartitaIva, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema, validateCodiceFiscale, validateItalianTaxCode, validatePartitaIva } from './core/index.mjs';
|
|
7
7
|
import { b as AbstractService } from './s3.service-CBqyDZyz.mjs';
|
|
8
8
|
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-CBqyDZyz.mjs';
|
|
9
9
|
export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-DH1QwtC_.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { A as ApiDataInterface, J as JsonApiHydratedDataInterface } from './ApiD
|
|
|
3
3
|
export { A as ApiRequestDataTypeInterface, F as FieldSelector, G as GetterKeys, c as createJsonApiInclusion } from './ApiRequestDataTypeInterface-CYEcRUrh.js';
|
|
4
4
|
export { A as ApiResponseInterface } from './ApiResponseInterface-CWLvSCvS.js';
|
|
5
5
|
import { AbstractApiData } from './core/index.js';
|
|
6
|
-
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatDate, formatLocalDate, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema } from './core/index.js';
|
|
6
|
+
export { AppModuleDefinitions, Assistant, AssistantMessage, AssistantMessageModule, AssistantMessageService, AssistantModule, AssistantService, AuditLog, AuditLogInterface, AuditLogModule, AuditLogService, Auth, AuthModule, AuthorModule, BackupCodeVerify, BackupCodeVerifyInput, BackupCodeVerifyModule, Billing, BillingModule, BillingService, BlockDiffOptions, BlockNoteDiffUtil, BlockNoteWordDiffRendererUtil, Chunk, ChunkInput, ChunkModule, ClientAbstractService, ClientHttpMethod, ClientNextRef, ClientPreviousRef, ClientSelfRef, ClientTotalRef, CodiceFiscaleValidationOptions, Company, CompanyFields, CompanyModule, Content, ContentModule, DataClass, DataClass as DataClassRegistry, DiffBlock, DiffResult, EndpointCreator, EndpointQuery, EntityObject, Feature, FeatureModule, FormatOption, FoundationModuleDefinitions, HowTo, HowToFields, HowToModule, HowToService, InviteValidation, JsonApiDataFactory, Module, ModuleDefinitions, ModuleModule, ModulePathsModule, ModuleRegistrar, ModuleRegistry, Modules, Notification, NotificationFields, NotificationModule, OAuthClient, OAuthModule, OAuthService, Passkey, PasskeyAuthenticationOptions, PasskeyAuthenticationOptionsInput, PasskeyAuthenticationOptionsInterface, PasskeyAuthenticationOptionsModule, PasskeyModule, PasskeyRegistrationOptions, PasskeyRegistrationOptionsInput, PasskeyRegistrationOptionsInterface, PasskeyRegistrationOptionsModule, PasskeyRegistrationVerify, PasskeyRegistrationVerifyInput, PasskeyRegistrationVerifyModule, PasskeyRename, PasskeyRenameInput, PasskeyRenameModule, PasskeyVerifyLogin, PasskeyVerifyLoginInput, PasskeyVerifyLoginModule, PaymentMethod, PermissionMappingModule, Push, PushInput, PushInterface, PushModule, RbacMatrixModule, ReferralModule, ReferralService, ReferralStats, ReferralStatsModule, RehydrationFactory, Role, RoleModule, S3, S3Module, SearchResultInterface, StripeCustomer, StripeCustomerModule, StripeCustomerService, StripeInvoice, StripeInvoiceModule, StripeInvoiceService, StripePaymentMethodModule, StripePrice, StripePriceModule, StripePriceService, StripeProduct, StripeProductModule, StripeProductService, StripePromotionCode, StripePromotionCodeModule, StripePromotionCodeService, StripeSubscription, StripeSubscriptionModule, StripeSubscriptionService, StripeUsage, StripeUsageModule, StripeUsageService, TableOptions, ToastOptions, TotpAuthenticator, TotpAuthenticatorModule, TotpSetup, TotpSetupInput, TotpSetupInterface, TotpSetupModule, TotpVerify, TotpVerifyInput, TotpVerifyLogin, TotpVerifyLoginInput, TotpVerifyLoginModule, TotpVerifyModule, TwoFactorChallenge, TwoFactorChallengeInput, TwoFactorChallengeModule, TwoFactorEnable, TwoFactorEnableInput, TwoFactorEnableModule, TwoFactorService, TwoFactorStatus, TwoFactorStatusInterface, TwoFactorStatusModule, User, UserModule, UserObject, Waitlist, WaitlistInput, WaitlistInterface, WaitlistModule, WaitlistService, WaitlistStats, WaitlistStatsInterface, WaitlistStatsModule, WaitlistStatus, WordDiff, checkPermissions, checkPermissionsFromServer, cn, composeRefs, dismissToast, entityObjectSchema, exists, formatCodiceFiscale, formatDate, formatLocalDate, formatPartitaIva, getBootstrapper, getClientGlobalErrorHandler, getTableComponents, getTableOptions, getValueFromPath, hasBootstrapper, rehydrate, rehydrateList, resetBootstrapStore, setBootstrapper, setClientGlobalErrorHandler, showCustomToast, showError, showToast, translateData, translateResponse, tryBootstrap, useComposedRefs, useIsMobile, userObjectSchema, validateCodiceFiscale, validateItalianTaxCode, validatePartitaIva } from './core/index.js';
|
|
7
7
|
import { b as AbstractService } from './s3.service-gcEjq8gF.js';
|
|
8
8
|
export { A as AuthService, C as CompanyService, a as ContentService, F as FeatureService, H as HttpMethod, c as NextRef, N as NotificationService, d as PreviousRef, P as PushService, R as RoleService, j as S3Input, k as S3Interface, S as S3Service, e as SelfRef, T as TotalRef, i as TwoFactorChallengeInterface, U as UserService, f as clearLastApiTotal, h as getGlobalErrorHandler, g as getLastApiTotal, s as setGlobalErrorHandler } from './s3.service-gcEjq8gF.js';
|
|
9
9
|
export { c as AssistantMessageInput, d as AssistantMessageInterface, A as AssistantMessageRole, b as AssistantMessageType, B as BreadcrumbItemData, e as ChunkInterface, C as ChunkRelationshipMeta, H as HowToInput, a as HowToInterface } from './AssistantMessageInterface-giWvsOrX.js';
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkF6KBHC2Xjs = require('./chunk-F6KBHC2X.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
@@ -199,7 +199,12 @@ var _chunkXTLTQQ7Xjs = require('./chunk-XTLTQQ7X.js');
|
|
|
199
199
|
|
|
200
200
|
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
var _chunk5IE6DZ2Djs = require('./chunk-5IE6DZ2D.js');
|
|
203
208
|
require('./chunk-LXKSUWAV.js');
|
|
204
209
|
require('./chunk-IBS6NI7D.js');
|
|
205
210
|
|
|
@@ -423,5 +428,10 @@ require('./chunk-7QVYU63E.js');
|
|
|
423
428
|
|
|
424
429
|
|
|
425
430
|
|
|
426
|
-
exports.ACTION_TYPES = _chunkXTLTQQ7Xjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunkLBMNRFCYjs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunkLBMNRFCYjs.AbstractApiData; exports.AbstractService = _chunkLBMNRFCYjs.AbstractService; exports.Action = _chunkLBMNRFCYjs.Action; exports.Assistant = _chunkLBMNRFCYjs.Assistant; exports.AssistantMessage = _chunkLBMNRFCYjs.AssistantMessage; exports.AssistantMessageModule = _chunkLBMNRFCYjs.AssistantMessageModule; exports.AssistantMessageService = _chunkLBMNRFCYjs.AssistantMessageService; exports.AssistantModule = _chunkLBMNRFCYjs.AssistantModule; exports.AssistantService = _chunkLBMNRFCYjs.AssistantService; exports.AuditLog = _chunkLBMNRFCYjs.AuditLog; exports.AuditLogModule = _chunkLBMNRFCYjs.AuditLogModule; exports.AuditLogService = _chunkLBMNRFCYjs.AuditLogService; exports.Auth = _chunkLBMNRFCYjs.Auth; exports.AuthComponent = _chunkLBMNRFCYjs.AuthComponent; exports.AuthModule = _chunkLBMNRFCYjs.AuthModule; exports.AuthService = _chunkLBMNRFCYjs.AuthService; exports.AuthorModule = _chunkLBMNRFCYjs.AuthorModule; exports.BackupCodeVerify = _chunkLBMNRFCYjs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunkLBMNRFCYjs.BackupCodeVerifyModule; exports.Billing = _chunkLBMNRFCYjs.Billing; exports.BillingModule = _chunkLBMNRFCYjs.BillingModule; exports.BillingService = _chunkLBMNRFCYjs.BillingService; exports.BlockNoteDiffUtil = _chunkLBMNRFCYjs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunkLBMNRFCYjs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkXTLTQQ7Xjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunkLBMNRFCYjs.Chunk; exports.ChunkModule = _chunkLBMNRFCYjs.ChunkModule; exports.ClientAbstractService = _chunkLBMNRFCYjs.ClientAbstractService; exports.ClientHttpMethod = _chunkLBMNRFCYjs.ClientHttpMethod; exports.Company = _chunkLBMNRFCYjs.Company; exports.CompanyFields = _chunkLBMNRFCYjs.CompanyFields; exports.CompanyModule = _chunkLBMNRFCYjs.CompanyModule; exports.CompanyService = _chunkLBMNRFCYjs.CompanyService; exports.Content = _chunkLBMNRFCYjs.Content; exports.ContentFields = _chunkLBMNRFCYjs.ContentFields; exports.ContentModule = _chunkLBMNRFCYjs.ContentModule; exports.ContentService = _chunkLBMNRFCYjs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunkLBMNRFCYjs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunkLBMNRFCYjs.EndpointCreator; exports.Feature = _chunkLBMNRFCYjs.Feature; exports.FeatureModule = _chunkLBMNRFCYjs.FeatureModule; exports.FeatureService = _chunkLBMNRFCYjs.FeatureService; exports.HowTo = _chunkLBMNRFCYjs.HowTo; exports.HowToFields = _chunkLBMNRFCYjs.HowToFields; exports.HowToModule = _chunkLBMNRFCYjs.HowToModule; exports.HowToService = _chunkLBMNRFCYjs.HowToService; exports.HttpMethod = _chunkLBMNRFCYjs.HttpMethod; exports.InvoiceStatus = _chunkLBMNRFCYjs.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.Module = _chunkLBMNRFCYjs.Module; exports.ModuleModule = _chunkLBMNRFCYjs.ModuleModule; exports.ModulePaths = _chunkLBMNRFCYjs.ModulePaths; exports.ModulePathsModule = _chunkLBMNRFCYjs.ModulePathsModule; exports.ModuleRegistrar = _chunkLBMNRFCYjs.ModuleRegistrar; exports.ModuleRegistry = _chunkLBMNRFCYjs.ModuleRegistry; exports.Modules = _chunkLBMNRFCYjs.Modules; exports.Notification = _chunkLBMNRFCYjs.Notification; exports.NotificationFields = _chunkLBMNRFCYjs.NotificationFields; exports.NotificationModule = _chunkLBMNRFCYjs.NotificationModule; exports.NotificationService = _chunkLBMNRFCYjs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunkLBMNRFCYjs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunkLBMNRFCYjs.OAuthClient; exports.OAuthModule = _chunkLBMNRFCYjs.OAuthModule; exports.OAuthService = _chunkLBMNRFCYjs.OAuthService; exports.Passkey = _chunkLBMNRFCYjs.Passkey; exports.PasskeyAuthenticationOptions = _chunkLBMNRFCYjs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunkLBMNRFCYjs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunkLBMNRFCYjs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunkLBMNRFCYjs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunkLBMNRFCYjs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunkLBMNRFCYjs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunkLBMNRFCYjs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunkLBMNRFCYjs.PasskeyRename; exports.PasskeyRenameModule = _chunkLBMNRFCYjs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunkLBMNRFCYjs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunkLBMNRFCYjs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunkLBMNRFCYjs.PaymentMethod; exports.PermissionMapping = _chunkLBMNRFCYjs.PermissionMapping; exports.PermissionMappingModule = _chunkLBMNRFCYjs.PermissionMappingModule; exports.Push = _chunkLBMNRFCYjs.Push; exports.PushModule = _chunkLBMNRFCYjs.PushModule; exports.PushService = _chunkLBMNRFCYjs.PushService; exports.RbacMatrixModel = _chunkLBMNRFCYjs.RbacMatrixModel; exports.RbacMatrixModule = _chunkLBMNRFCYjs.RbacMatrixModule; exports.RbacService = _chunkXTLTQQ7Xjs.RbacService; exports.ReferralModule = _chunkLBMNRFCYjs.ReferralModule; exports.ReferralService = _chunkLBMNRFCYjs.ReferralService; exports.ReferralStats = _chunkLBMNRFCYjs.ReferralStats; exports.ReferralStatsModule = _chunkLBMNRFCYjs.ReferralStatsModule; exports.RehydrationFactory = _chunkLBMNRFCYjs.RehydrationFactory; exports.Role = _chunkLBMNRFCYjs.Role; exports.RoleFields = _chunkLBMNRFCYjs.RoleFields; exports.RoleModule = _chunkLBMNRFCYjs.RoleModule; exports.RoleService = _chunkLBMNRFCYjs.RoleService; exports.S3 = _chunkLBMNRFCYjs.S3; exports.S3Module = _chunkLBMNRFCYjs.S3Module; exports.S3Service = _chunkLBMNRFCYjs.S3Service; exports.StripeCustomer = _chunkLBMNRFCYjs.StripeCustomer; exports.StripeCustomerModule = _chunkLBMNRFCYjs.StripeCustomerModule; exports.StripeCustomerService = _chunkLBMNRFCYjs.StripeCustomerService; exports.StripeInvoice = _chunkLBMNRFCYjs.StripeInvoice; exports.StripeInvoiceModule = _chunkLBMNRFCYjs.StripeInvoiceModule; exports.StripeInvoiceService = _chunkLBMNRFCYjs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunkLBMNRFCYjs.StripePaymentMethodModule; exports.StripePrice = _chunkLBMNRFCYjs.StripePrice; exports.StripePriceModule = _chunkLBMNRFCYjs.StripePriceModule; exports.StripePriceService = _chunkLBMNRFCYjs.StripePriceService; exports.StripeProduct = _chunkLBMNRFCYjs.StripeProduct; exports.StripeProductModule = _chunkLBMNRFCYjs.StripeProductModule; exports.StripeProductService = _chunkLBMNRFCYjs.StripeProductService; exports.StripePromotionCode = _chunkLBMNRFCYjs.StripePromotionCode; exports.StripePromotionCodeModule = _chunkLBMNRFCYjs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunkLBMNRFCYjs.StripePromotionCodeService; exports.StripeSubscription = _chunkLBMNRFCYjs.StripeSubscription; exports.StripeSubscriptionModule = _chunkLBMNRFCYjs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunkLBMNRFCYjs.StripeSubscriptionService; exports.StripeUsage = _chunkLBMNRFCYjs.StripeUsage; exports.StripeUsageModule = _chunkLBMNRFCYjs.StripeUsageModule; exports.StripeUsageService = _chunkLBMNRFCYjs.StripeUsageService; exports.SubscriptionStatus = _chunkLBMNRFCYjs.SubscriptionStatus; exports.TableOptions = _chunkLBMNRFCYjs.TableOptions; exports.TotpAuthenticator = _chunkLBMNRFCYjs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunkLBMNRFCYjs.TotpAuthenticatorModule; exports.TotpSetup = _chunkLBMNRFCYjs.TotpSetup; exports.TotpSetupModule = _chunkLBMNRFCYjs.TotpSetupModule; exports.TotpVerify = _chunkLBMNRFCYjs.TotpVerify; exports.TotpVerifyLogin = _chunkLBMNRFCYjs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunkLBMNRFCYjs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunkLBMNRFCYjs.TotpVerifyModule; exports.TwoFactorChallenge = _chunkLBMNRFCYjs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunkLBMNRFCYjs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunkLBMNRFCYjs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunkLBMNRFCYjs.TwoFactorEnableModule; exports.TwoFactorService = _chunkLBMNRFCYjs.TwoFactorService; exports.TwoFactorStatus = _chunkLBMNRFCYjs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunkLBMNRFCYjs.TwoFactorStatusModule; exports.User = _chunkLBMNRFCYjs.User; exports.UserFields = _chunkLBMNRFCYjs.UserFields; exports.UserModule = _chunkLBMNRFCYjs.UserModule; exports.UserService = _chunkLBMNRFCYjs.UserService; exports.Waitlist = _chunkLBMNRFCYjs.Waitlist; exports.WaitlistModule = _chunkLBMNRFCYjs.WaitlistModule; exports.WaitlistService = _chunkLBMNRFCYjs.WaitlistService; exports.WaitlistStats = _chunkLBMNRFCYjs.WaitlistStats; exports.WaitlistStatsModule = _chunkLBMNRFCYjs.WaitlistStatsModule; exports.checkPermissions = _chunkLBMNRFCYjs.checkPermissions; exports.checkPermissionsFromServer = _chunkLBMNRFCYjs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunkLBMNRFCYjs.clearLastApiTotal; exports.cn = _chunkLBMNRFCYjs.cn; exports.composeRefs = _chunkLBMNRFCYjs.composeRefs; exports.configureAuth = _chunkLBMNRFCYjs.configureAuth; exports.configureI18n = _chunkXTLTQQ7Xjs.configureI18n; exports.configureJsonApi = _chunkXTLTQQ7Xjs.configureJsonApi; exports.configureLogin = _chunkXTLTQQ7Xjs.configureLogin; exports.configureReferral = _chunkXTLTQQ7Xjs.configureReferral; exports.configureRoles = _chunkXTLTQQ7Xjs.configureRoles; exports.configureWaitlist = _chunkXTLTQQ7Xjs.configureWaitlist; exports.createJsonApiInclusion = _chunkLBMNRFCYjs.createJsonApiInclusion; exports.dismissToast = _chunkLBMNRFCYjs.dismissToast; exports.entityObjectSchema = _chunkLBMNRFCYjs.entityObjectSchema; exports.exists = _chunkLBMNRFCYjs.exists; exports.formatDate = _chunkLBMNRFCYjs.formatDate; exports.formatLocalDate = _chunkLBMNRFCYjs.formatLocalDate; exports.getApiUrl = _chunkXTLTQQ7Xjs.getApiUrl; exports.getAppUrl = _chunkXTLTQQ7Xjs.getAppUrl; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunkLBMNRFCYjs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunkLBMNRFCYjs.getGlobalErrorHandler; exports.getIcon = _chunkLBMNRFCYjs.getIcon; exports.getIconByModule = _chunkLBMNRFCYjs.getIconByModule; exports.getIconByModuleName = _chunkLBMNRFCYjs.getIconByModuleName; exports.getInitials = _chunkLBMNRFCYjs.getInitials; exports.getLastApiTotal = _chunkLBMNRFCYjs.getLastApiTotal; exports.getLucideIcon = _chunkLBMNRFCYjs.getLucideIcon; exports.getLucideIconByModule = _chunkLBMNRFCYjs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunkLBMNRFCYjs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkXTLTQQ7Xjs.getPublicApiUrl; exports.getReferralConfig = _chunkXTLTQQ7Xjs.getReferralConfig; exports.getRoleId = _chunkXTLTQQ7Xjs.getRoleId; exports.getStripePublishableKey = _chunkXTLTQQ7Xjs.getStripePublishableKey; exports.getTableComponents = _chunkLBMNRFCYjs.getTableComponents; exports.getTableOptions = _chunkLBMNRFCYjs.getTableOptions; exports.getTokenHandler = _chunkLBMNRFCYjs.getTokenHandler; exports.getTrackablePages = _chunkXTLTQQ7Xjs.getTrackablePages; exports.getValueFromPath = _chunkLBMNRFCYjs.getValueFromPath; exports.getWaitlistConfig = _chunkXTLTQQ7Xjs.getWaitlistConfig; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isReferralEnabled = _chunkXTLTQQ7Xjs.isReferralEnabled; exports.isRolesConfigured = _chunkXTLTQQ7Xjs.isRolesConfigured; exports.rehydrate = _chunkLBMNRFCYjs.rehydrate; exports.rehydrateList = _chunkLBMNRFCYjs.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunkLBMNRFCYjs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunkLBMNRFCYjs.setGlobalErrorHandler; exports.showCustomToast = _chunkLBMNRFCYjs.showCustomToast; exports.showError = _chunkLBMNRFCYjs.showError; exports.showToast = _chunkLBMNRFCYjs.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunkLBMNRFCYjs.useComposedRefs; exports.useIsMobile = _chunkLBMNRFCYjs.useIsMobile; exports.userObjectSchema = _chunkLBMNRFCYjs.userObjectSchema;
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
exports.ACTION_TYPES = _chunkF6KBHC2Xjs.ACTION_TYPES; exports.AVAILABLE_OAUTH_SCOPES = _chunk5IE6DZ2Djs.AVAILABLE_OAUTH_SCOPES; exports.AbstractApiData = _chunk5IE6DZ2Djs.AbstractApiData; exports.AbstractService = _chunk5IE6DZ2Djs.AbstractService; exports.Action = _chunk5IE6DZ2Djs.Action; exports.Assistant = _chunk5IE6DZ2Djs.Assistant; exports.AssistantMessage = _chunk5IE6DZ2Djs.AssistantMessage; exports.AssistantMessageModule = _chunk5IE6DZ2Djs.AssistantMessageModule; exports.AssistantMessageService = _chunk5IE6DZ2Djs.AssistantMessageService; exports.AssistantModule = _chunk5IE6DZ2Djs.AssistantModule; exports.AssistantService = _chunk5IE6DZ2Djs.AssistantService; exports.AuditLog = _chunk5IE6DZ2Djs.AuditLog; exports.AuditLogModule = _chunk5IE6DZ2Djs.AuditLogModule; exports.AuditLogService = _chunk5IE6DZ2Djs.AuditLogService; exports.Auth = _chunk5IE6DZ2Djs.Auth; exports.AuthComponent = _chunk5IE6DZ2Djs.AuthComponent; exports.AuthModule = _chunk5IE6DZ2Djs.AuthModule; exports.AuthService = _chunk5IE6DZ2Djs.AuthService; exports.AuthorModule = _chunk5IE6DZ2Djs.AuthorModule; exports.BackupCodeVerify = _chunk5IE6DZ2Djs.BackupCodeVerify; exports.BackupCodeVerifyModule = _chunk5IE6DZ2Djs.BackupCodeVerifyModule; exports.Billing = _chunk5IE6DZ2Djs.Billing; exports.BillingModule = _chunk5IE6DZ2Djs.BillingModule; exports.BillingService = _chunk5IE6DZ2Djs.BillingService; exports.BlockNoteDiffUtil = _chunk5IE6DZ2Djs.BlockNoteDiffUtil; exports.BlockNoteWordDiffRendererUtil = _chunk5IE6DZ2Djs.BlockNoteWordDiffRendererUtil; exports.COMPANY_ADMINISTRATOR_ROLE_ID = _chunkF6KBHC2Xjs.COMPANY_ADMINISTRATOR_ROLE_ID; exports.Chunk = _chunk5IE6DZ2Djs.Chunk; exports.ChunkModule = _chunk5IE6DZ2Djs.ChunkModule; exports.ClientAbstractService = _chunk5IE6DZ2Djs.ClientAbstractService; exports.ClientHttpMethod = _chunk5IE6DZ2Djs.ClientHttpMethod; exports.Company = _chunk5IE6DZ2Djs.Company; exports.CompanyFields = _chunk5IE6DZ2Djs.CompanyFields; exports.CompanyModule = _chunk5IE6DZ2Djs.CompanyModule; exports.CompanyService = _chunk5IE6DZ2Djs.CompanyService; exports.Content = _chunk5IE6DZ2Djs.Content; exports.ContentFields = _chunk5IE6DZ2Djs.ContentFields; exports.ContentModule = _chunk5IE6DZ2Djs.ContentModule; exports.ContentService = _chunk5IE6DZ2Djs.ContentService; exports.DEFAULT_GRANT_TYPES = _chunk5IE6DZ2Djs.DEFAULT_GRANT_TYPES; exports.DataClass = _chunkQWCAOLBDjs.DataClassRegistry; exports.DataClassRegistry = _chunkQWCAOLBDjs.DataClassRegistry; exports.EndpointCreator = _chunk5IE6DZ2Djs.EndpointCreator; exports.Feature = _chunk5IE6DZ2Djs.Feature; exports.FeatureModule = _chunk5IE6DZ2Djs.FeatureModule; exports.FeatureService = _chunk5IE6DZ2Djs.FeatureService; exports.HowTo = _chunk5IE6DZ2Djs.HowTo; exports.HowToFields = _chunk5IE6DZ2Djs.HowToFields; exports.HowToModule = _chunk5IE6DZ2Djs.HowToModule; exports.HowToService = _chunk5IE6DZ2Djs.HowToService; exports.HttpMethod = _chunk5IE6DZ2Djs.HttpMethod; exports.InvoiceStatus = _chunk5IE6DZ2Djs.InvoiceStatus; exports.JsonApiDataFactory = _chunkQWCAOLBDjs.JsonApiDataFactory; exports.Module = _chunk5IE6DZ2Djs.Module; exports.ModuleModule = _chunk5IE6DZ2Djs.ModuleModule; exports.ModulePaths = _chunk5IE6DZ2Djs.ModulePaths; exports.ModulePathsModule = _chunk5IE6DZ2Djs.ModulePathsModule; exports.ModuleRegistrar = _chunk5IE6DZ2Djs.ModuleRegistrar; exports.ModuleRegistry = _chunk5IE6DZ2Djs.ModuleRegistry; exports.Modules = _chunk5IE6DZ2Djs.Modules; exports.Notification = _chunk5IE6DZ2Djs.Notification; exports.NotificationFields = _chunk5IE6DZ2Djs.NotificationFields; exports.NotificationModule = _chunk5IE6DZ2Djs.NotificationModule; exports.NotificationService = _chunk5IE6DZ2Djs.NotificationService; exports.OAUTH_SCOPE_DISPLAY = _chunk5IE6DZ2Djs.OAUTH_SCOPE_DISPLAY; exports.OAuthClient = _chunk5IE6DZ2Djs.OAuthClient; exports.OAuthModule = _chunk5IE6DZ2Djs.OAuthModule; exports.OAuthService = _chunk5IE6DZ2Djs.OAuthService; exports.Passkey = _chunk5IE6DZ2Djs.Passkey; exports.PasskeyAuthenticationOptions = _chunk5IE6DZ2Djs.PasskeyAuthenticationOptions; exports.PasskeyAuthenticationOptionsModule = _chunk5IE6DZ2Djs.PasskeyAuthenticationOptionsModule; exports.PasskeyModule = _chunk5IE6DZ2Djs.PasskeyModule; exports.PasskeyRegistrationOptions = _chunk5IE6DZ2Djs.PasskeyRegistrationOptions; exports.PasskeyRegistrationOptionsModule = _chunk5IE6DZ2Djs.PasskeyRegistrationOptionsModule; exports.PasskeyRegistrationVerify = _chunk5IE6DZ2Djs.PasskeyRegistrationVerify; exports.PasskeyRegistrationVerifyModule = _chunk5IE6DZ2Djs.PasskeyRegistrationVerifyModule; exports.PasskeyRename = _chunk5IE6DZ2Djs.PasskeyRename; exports.PasskeyRenameModule = _chunk5IE6DZ2Djs.PasskeyRenameModule; exports.PasskeyVerifyLogin = _chunk5IE6DZ2Djs.PasskeyVerifyLogin; exports.PasskeyVerifyLoginModule = _chunk5IE6DZ2Djs.PasskeyVerifyLoginModule; exports.PaymentMethod = _chunk5IE6DZ2Djs.PaymentMethod; exports.PermissionMapping = _chunk5IE6DZ2Djs.PermissionMapping; exports.PermissionMappingModule = _chunk5IE6DZ2Djs.PermissionMappingModule; exports.Push = _chunk5IE6DZ2Djs.Push; exports.PushModule = _chunk5IE6DZ2Djs.PushModule; exports.PushService = _chunk5IE6DZ2Djs.PushService; exports.RbacMatrixModel = _chunk5IE6DZ2Djs.RbacMatrixModel; exports.RbacMatrixModule = _chunk5IE6DZ2Djs.RbacMatrixModule; exports.RbacService = _chunkF6KBHC2Xjs.RbacService; exports.ReferralModule = _chunk5IE6DZ2Djs.ReferralModule; exports.ReferralService = _chunk5IE6DZ2Djs.ReferralService; exports.ReferralStats = _chunk5IE6DZ2Djs.ReferralStats; exports.ReferralStatsModule = _chunk5IE6DZ2Djs.ReferralStatsModule; exports.RehydrationFactory = _chunk5IE6DZ2Djs.RehydrationFactory; exports.Role = _chunk5IE6DZ2Djs.Role; exports.RoleFields = _chunk5IE6DZ2Djs.RoleFields; exports.RoleModule = _chunk5IE6DZ2Djs.RoleModule; exports.RoleService = _chunk5IE6DZ2Djs.RoleService; exports.S3 = _chunk5IE6DZ2Djs.S3; exports.S3Module = _chunk5IE6DZ2Djs.S3Module; exports.S3Service = _chunk5IE6DZ2Djs.S3Service; exports.StripeCustomer = _chunk5IE6DZ2Djs.StripeCustomer; exports.StripeCustomerModule = _chunk5IE6DZ2Djs.StripeCustomerModule; exports.StripeCustomerService = _chunk5IE6DZ2Djs.StripeCustomerService; exports.StripeInvoice = _chunk5IE6DZ2Djs.StripeInvoice; exports.StripeInvoiceModule = _chunk5IE6DZ2Djs.StripeInvoiceModule; exports.StripeInvoiceService = _chunk5IE6DZ2Djs.StripeInvoiceService; exports.StripePaymentMethodModule = _chunk5IE6DZ2Djs.StripePaymentMethodModule; exports.StripePrice = _chunk5IE6DZ2Djs.StripePrice; exports.StripePriceModule = _chunk5IE6DZ2Djs.StripePriceModule; exports.StripePriceService = _chunk5IE6DZ2Djs.StripePriceService; exports.StripeProduct = _chunk5IE6DZ2Djs.StripeProduct; exports.StripeProductModule = _chunk5IE6DZ2Djs.StripeProductModule; exports.StripeProductService = _chunk5IE6DZ2Djs.StripeProductService; exports.StripePromotionCode = _chunk5IE6DZ2Djs.StripePromotionCode; exports.StripePromotionCodeModule = _chunk5IE6DZ2Djs.StripePromotionCodeModule; exports.StripePromotionCodeService = _chunk5IE6DZ2Djs.StripePromotionCodeService; exports.StripeSubscription = _chunk5IE6DZ2Djs.StripeSubscription; exports.StripeSubscriptionModule = _chunk5IE6DZ2Djs.StripeSubscriptionModule; exports.StripeSubscriptionService = _chunk5IE6DZ2Djs.StripeSubscriptionService; exports.StripeUsage = _chunk5IE6DZ2Djs.StripeUsage; exports.StripeUsageModule = _chunk5IE6DZ2Djs.StripeUsageModule; exports.StripeUsageService = _chunk5IE6DZ2Djs.StripeUsageService; exports.SubscriptionStatus = _chunk5IE6DZ2Djs.SubscriptionStatus; exports.TableOptions = _chunk5IE6DZ2Djs.TableOptions; exports.TotpAuthenticator = _chunk5IE6DZ2Djs.TotpAuthenticator; exports.TotpAuthenticatorModule = _chunk5IE6DZ2Djs.TotpAuthenticatorModule; exports.TotpSetup = _chunk5IE6DZ2Djs.TotpSetup; exports.TotpSetupModule = _chunk5IE6DZ2Djs.TotpSetupModule; exports.TotpVerify = _chunk5IE6DZ2Djs.TotpVerify; exports.TotpVerifyLogin = _chunk5IE6DZ2Djs.TotpVerifyLogin; exports.TotpVerifyLoginModule = _chunk5IE6DZ2Djs.TotpVerifyLoginModule; exports.TotpVerifyModule = _chunk5IE6DZ2Djs.TotpVerifyModule; exports.TwoFactorChallenge = _chunk5IE6DZ2Djs.TwoFactorChallenge; exports.TwoFactorChallengeModule = _chunk5IE6DZ2Djs.TwoFactorChallengeModule; exports.TwoFactorEnable = _chunk5IE6DZ2Djs.TwoFactorEnable; exports.TwoFactorEnableModule = _chunk5IE6DZ2Djs.TwoFactorEnableModule; exports.TwoFactorService = _chunk5IE6DZ2Djs.TwoFactorService; exports.TwoFactorStatus = _chunk5IE6DZ2Djs.TwoFactorStatus; exports.TwoFactorStatusModule = _chunk5IE6DZ2Djs.TwoFactorStatusModule; exports.User = _chunk5IE6DZ2Djs.User; exports.UserFields = _chunk5IE6DZ2Djs.UserFields; exports.UserModule = _chunk5IE6DZ2Djs.UserModule; exports.UserService = _chunk5IE6DZ2Djs.UserService; exports.Waitlist = _chunk5IE6DZ2Djs.Waitlist; exports.WaitlistModule = _chunk5IE6DZ2Djs.WaitlistModule; exports.WaitlistService = _chunk5IE6DZ2Djs.WaitlistService; exports.WaitlistStats = _chunk5IE6DZ2Djs.WaitlistStats; exports.WaitlistStatsModule = _chunk5IE6DZ2Djs.WaitlistStatsModule; exports.checkPermissions = _chunk5IE6DZ2Djs.checkPermissions; exports.checkPermissionsFromServer = _chunk5IE6DZ2Djs.checkPermissionsFromServer; exports.clearLastApiTotal = _chunk5IE6DZ2Djs.clearLastApiTotal; exports.cn = _chunk5IE6DZ2Djs.cn; exports.composeRefs = _chunk5IE6DZ2Djs.composeRefs; exports.configureAuth = _chunk5IE6DZ2Djs.configureAuth; exports.configureI18n = _chunkF6KBHC2Xjs.configureI18n; exports.configureJsonApi = _chunkF6KBHC2Xjs.configureJsonApi; exports.configureLogin = _chunkF6KBHC2Xjs.configureLogin; exports.configureReferral = _chunkF6KBHC2Xjs.configureReferral; exports.configureRoles = _chunkF6KBHC2Xjs.configureRoles; exports.configureWaitlist = _chunkF6KBHC2Xjs.configureWaitlist; exports.createJsonApiInclusion = _chunk5IE6DZ2Djs.createJsonApiInclusion; exports.dismissToast = _chunk5IE6DZ2Djs.dismissToast; exports.entityObjectSchema = _chunk5IE6DZ2Djs.entityObjectSchema; exports.exists = _chunk5IE6DZ2Djs.exists; exports.formatCodiceFiscale = _chunk5IE6DZ2Djs.formatCodiceFiscale; exports.formatDate = _chunk5IE6DZ2Djs.formatDate; exports.formatLocalDate = _chunk5IE6DZ2Djs.formatLocalDate; exports.formatPartitaIva = _chunk5IE6DZ2Djs.formatPartitaIva; exports.getApiUrl = _chunkF6KBHC2Xjs.getApiUrl; exports.getAppUrl = _chunkF6KBHC2Xjs.getAppUrl; exports.getBootstrapper = _chunkQWCAOLBDjs.getBootstrapper; exports.getClientGlobalErrorHandler = _chunk5IE6DZ2Djs.getClientGlobalErrorHandler; exports.getGlobalErrorHandler = _chunk5IE6DZ2Djs.getGlobalErrorHandler; exports.getIcon = _chunk5IE6DZ2Djs.getIcon; exports.getIconByModule = _chunk5IE6DZ2Djs.getIconByModule; exports.getIconByModuleName = _chunk5IE6DZ2Djs.getIconByModuleName; exports.getInitials = _chunk5IE6DZ2Djs.getInitials; exports.getLastApiTotal = _chunk5IE6DZ2Djs.getLastApiTotal; exports.getLucideIcon = _chunk5IE6DZ2Djs.getLucideIcon; exports.getLucideIconByModule = _chunk5IE6DZ2Djs.getLucideIconByModule; exports.getLucideIconByModuleName = _chunk5IE6DZ2Djs.getLucideIconByModuleName; exports.getPublicApiUrl = _chunkF6KBHC2Xjs.getPublicApiUrl; exports.getReferralConfig = _chunkF6KBHC2Xjs.getReferralConfig; exports.getRoleId = _chunkF6KBHC2Xjs.getRoleId; exports.getStripePublishableKey = _chunkF6KBHC2Xjs.getStripePublishableKey; exports.getTableComponents = _chunk5IE6DZ2Djs.getTableComponents; exports.getTableOptions = _chunk5IE6DZ2Djs.getTableOptions; exports.getTokenHandler = _chunk5IE6DZ2Djs.getTokenHandler; exports.getTrackablePages = _chunkF6KBHC2Xjs.getTrackablePages; exports.getValueFromPath = _chunk5IE6DZ2Djs.getValueFromPath; exports.getWaitlistConfig = _chunkF6KBHC2Xjs.getWaitlistConfig; exports.hasBootstrapper = _chunkQWCAOLBDjs.hasBootstrapper; exports.isReferralEnabled = _chunkF6KBHC2Xjs.isReferralEnabled; exports.isRolesConfigured = _chunkF6KBHC2Xjs.isRolesConfigured; exports.rehydrate = _chunk5IE6DZ2Djs.rehydrate; exports.rehydrateList = _chunk5IE6DZ2Djs.rehydrateList; exports.resetBootstrapStore = _chunkQWCAOLBDjs.resetBootstrapStore; exports.setBootstrapper = _chunkQWCAOLBDjs.setBootstrapper; exports.setClientGlobalErrorHandler = _chunk5IE6DZ2Djs.setClientGlobalErrorHandler; exports.setGlobalErrorHandler = _chunk5IE6DZ2Djs.setGlobalErrorHandler; exports.showCustomToast = _chunk5IE6DZ2Djs.showCustomToast; exports.showError = _chunk5IE6DZ2Djs.showError; exports.showToast = _chunk5IE6DZ2Djs.showToast; exports.translateData = _chunkQWCAOLBDjs.translateData; exports.translateResponse = _chunkQWCAOLBDjs.translateResponse; exports.tryBootstrap = _chunkQWCAOLBDjs.tryBootstrap; exports.useComposedRefs = _chunk5IE6DZ2Djs.useComposedRefs; exports.useIsMobile = _chunk5IE6DZ2Djs.useIsMobile; exports.userObjectSchema = _chunk5IE6DZ2Djs.userObjectSchema; exports.validateCodiceFiscale = _chunk5IE6DZ2Djs.validateCodiceFiscale; exports.validateItalianTaxCode = _chunk5IE6DZ2Djs.validateItalianTaxCode; exports.validatePartitaIva = _chunk5IE6DZ2Djs.validatePartitaIva;
|
|
427
437
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,6lZAAC","file":"/home/runner/work/nextjs-jsonapi/nextjs-jsonapi/dist/index.js"}
|
package/dist/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
getWaitlistConfig,
|
|
19
19
|
isReferralEnabled,
|
|
20
20
|
isRolesConfigured
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VSAAVVHY.mjs";
|
|
22
22
|
import {
|
|
23
23
|
AVAILABLE_OAUTH_SCOPES,
|
|
24
24
|
AbstractApiData,
|
|
@@ -173,8 +173,10 @@ import {
|
|
|
173
173
|
dismissToast,
|
|
174
174
|
entityObjectSchema,
|
|
175
175
|
exists,
|
|
176
|
+
formatCodiceFiscale,
|
|
176
177
|
formatDate,
|
|
177
178
|
formatLocalDate,
|
|
179
|
+
formatPartitaIva,
|
|
178
180
|
getClientGlobalErrorHandler,
|
|
179
181
|
getGlobalErrorHandler,
|
|
180
182
|
getIcon,
|
|
@@ -198,8 +200,11 @@ import {
|
|
|
198
200
|
showToast,
|
|
199
201
|
useComposedRefs,
|
|
200
202
|
useIsMobile,
|
|
201
|
-
userObjectSchema
|
|
202
|
-
|
|
203
|
+
userObjectSchema,
|
|
204
|
+
validateCodiceFiscale,
|
|
205
|
+
validateItalianTaxCode,
|
|
206
|
+
validatePartitaIva
|
|
207
|
+
} from "./chunk-DZL2G7NB.mjs";
|
|
203
208
|
import "./chunk-AUXK7QSA.mjs";
|
|
204
209
|
import "./chunk-C7C7VY4F.mjs";
|
|
205
210
|
import {
|
|
@@ -380,8 +385,10 @@ export {
|
|
|
380
385
|
dismissToast,
|
|
381
386
|
entityObjectSchema,
|
|
382
387
|
exists,
|
|
388
|
+
formatCodiceFiscale,
|
|
383
389
|
formatDate,
|
|
384
390
|
formatLocalDate,
|
|
391
|
+
formatPartitaIva,
|
|
385
392
|
getApiUrl,
|
|
386
393
|
getAppUrl,
|
|
387
394
|
getBootstrapper,
|
|
@@ -422,6 +429,9 @@ export {
|
|
|
422
429
|
tryBootstrap,
|
|
423
430
|
useComposedRefs,
|
|
424
431
|
useIsMobile,
|
|
425
|
-
userObjectSchema
|
|
432
|
+
userObjectSchema,
|
|
433
|
+
validateCodiceFiscale,
|
|
434
|
+
validateItalianTaxCode,
|
|
435
|
+
validatePartitaIva
|
|
426
436
|
};
|
|
427
437
|
//# sourceMappingURL=index.mjs.map
|
package/dist/server/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _chunkIOLU4ASDjs = require('../chunk-IOLU4ASD.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5IE6DZ2Djs = require('../chunk-5IE6DZ2D.js');
|
|
19
19
|
require('../chunk-LXKSUWAV.js');
|
|
20
20
|
require('../chunk-IBS6NI7D.js');
|
|
21
21
|
|
|
@@ -86,7 +86,7 @@ var ServerSession = class {
|
|
|
86
86
|
if (!rawModules) return false;
|
|
87
87
|
const modules = JSON.parse(_pako2.default.ungzip(Buffer.from(rawModules, "base64"), { to: "string" }));
|
|
88
88
|
const selectedModule = modules.find((module) => module.id === params.module.moduleId);
|
|
89
|
-
return
|
|
89
|
+
return _chunk5IE6DZ2Djs.checkPermissionsFromServer.call(void 0, {
|
|
90
90
|
module: params.module,
|
|
91
91
|
action: params.action,
|
|
92
92
|
data: params.data,
|
|
@@ -296,5 +296,5 @@ _chunk7QVYU63Ejs.__name.call(void 0, ServerJsonApiDelete, "ServerJsonApiDelete")
|
|
|
296
296
|
|
|
297
297
|
|
|
298
298
|
|
|
299
|
-
exports.ServerAuthService =
|
|
299
|
+
exports.ServerAuthService = _chunk5IE6DZ2Djs.AuthService; exports.ServerCompanyService = _chunk5IE6DZ2Djs.CompanyService; exports.ServerContentService = _chunk5IE6DZ2Djs.ContentService; exports.ServerFeatureService = _chunk5IE6DZ2Djs.FeatureService; exports.ServerJsonApiDelete = ServerJsonApiDelete; exports.ServerJsonApiGet = ServerJsonApiGet; exports.ServerJsonApiPatch = ServerJsonApiPatch; exports.ServerJsonApiPost = ServerJsonApiPost; exports.ServerJsonApiPut = ServerJsonApiPut; exports.ServerNotificationService = _chunk5IE6DZ2Djs.NotificationService; exports.ServerPushService = _chunk5IE6DZ2Djs.PushService; exports.ServerRoleService = _chunk5IE6DZ2Djs.RoleService; exports.ServerS3Service = _chunk5IE6DZ2Djs.S3Service; exports.ServerSession = ServerSession; exports.ServerUserService = _chunk5IE6DZ2Djs.UserService; exports.configureServerJsonApi = configureServerJsonApi; exports.getServerApiUrl = getServerApiUrl; exports.getServerAppUrl = getServerAppUrl; exports.getServerToken = _chunkYUO55Q5Ajs.getServerToken; exports.getServerTrackablePages = getServerTrackablePages; exports.invalidateCacheTag = invalidateCacheTag; exports.invalidateCacheTags = invalidateCacheTags; exports.serverRequest = _chunkIOLU4ASDjs.serverRequest;
|
|
300
300
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ export function ReactMarkdownContainer({
|
|
|
106
106
|
<div className="mt-2 flex justify-end">
|
|
107
107
|
<button
|
|
108
108
|
onClick={handleToggle}
|
|
109
|
-
className="text-primary flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium transition-colors hover:bg-gray-100
|
|
109
|
+
className="text-primary flex items-center gap-1 rounded-md px-3 py-1.5 text-sm font-medium transition-colors hover:bg-gray-100"
|
|
110
110
|
aria-label={isExpanded ? t("show_less") : t("show_more")}
|
|
111
111
|
>
|
|
112
112
|
<span>{isExpanded ? t("show_less") : t("show_more")}</span>
|
|
@@ -143,6 +143,11 @@ export function RoundPageContainer({
|
|
|
143
143
|
// Rail partition — only consumed by `layout="rail"` but cheap to compute.
|
|
144
144
|
const { ungrouped, groups } = useMemo(() => partitionTabs(tabs ?? []), [tabs]);
|
|
145
145
|
|
|
146
|
+
const tabItems = useMemo(
|
|
147
|
+
() => Object.fromEntries((tabs ?? []).map((tab) => [tabValue(tab), tab.contentLabel ?? tab.label])),
|
|
148
|
+
[tabs],
|
|
149
|
+
);
|
|
150
|
+
|
|
146
151
|
const isReady = mounted && isMobile !== undefined;
|
|
147
152
|
|
|
148
153
|
if (!isReady) {
|
|
@@ -231,6 +236,7 @@ export function RoundPageContainer({
|
|
|
231
236
|
{/* Section Select — below md */}
|
|
232
237
|
<div data-testid="round-page-rail-select" className="p-2 md:hidden">
|
|
233
238
|
<Select
|
|
239
|
+
items={tabItems}
|
|
234
240
|
value={activeTab}
|
|
235
241
|
onValueChange={(value) => {
|
|
236
242
|
if (value) handleTabChange(value);
|
|
@@ -313,6 +319,7 @@ export function RoundPageContainer({
|
|
|
313
319
|
{isMobile ? (
|
|
314
320
|
<div className="p-0">
|
|
315
321
|
<Select
|
|
322
|
+
items={tabItems}
|
|
316
323
|
value={activeTab}
|
|
317
324
|
onValueChange={(value) => {
|
|
318
325
|
if (value) handleTabChange(value);
|
|
@@ -123,12 +123,35 @@ export function EditorSheet<T extends FieldValues>({
|
|
|
123
123
|
);
|
|
124
124
|
|
|
125
125
|
const hasBeenOpen = useRef(false);
|
|
126
|
+
// Fingerprint of the values the form was last seeded with, used to detect that
|
|
127
|
+
// the entity behind `onReset` has changed while the sheet was closed.
|
|
128
|
+
const seeded = useRef<string | undefined>(undefined);
|
|
126
129
|
|
|
127
130
|
useEffect(() => {
|
|
128
131
|
if (open) {
|
|
129
132
|
hasBeenOpen.current = true;
|
|
133
|
+
|
|
134
|
+
// Re-seed from current props when reopening an edit form. The close branch
|
|
135
|
+
// below runs during `wrappedOnSubmit`, BEFORE `onSuccess` has refetched the
|
|
136
|
+
// parent, so it necessarily captures pre-save values; without this the form
|
|
137
|
+
// stays stale until the component remounts, and a field the user cleared
|
|
138
|
+
// reappears on reopen.
|
|
139
|
+
//
|
|
140
|
+
// Two deliberate limits:
|
|
141
|
+
// - Only when `isEdit`. Create-mode defaults typically contain a freshly
|
|
142
|
+
// generated uuid, so they would never compare equal and every open would
|
|
143
|
+
// reset — clobbering parents that pre-fill via `form.setValue`.
|
|
144
|
+
// - Only when the values actually differ. Reseeding unconditionally would
|
|
145
|
+
// equally clobber effect-driven pre-fills on edit forms.
|
|
146
|
+
if (!isEdit) return;
|
|
147
|
+
const next = onReset();
|
|
148
|
+
const fingerprint = JSON.stringify(next);
|
|
149
|
+
if (seeded.current !== undefined && seeded.current !== fingerprint) form.reset(next);
|
|
150
|
+
seeded.current = fingerprint;
|
|
130
151
|
} else if (hasBeenOpen.current) {
|
|
131
|
-
|
|
152
|
+
const next = onReset();
|
|
153
|
+
form.reset(next);
|
|
154
|
+
if (isEdit) seeded.current = JSON.stringify(next);
|
|
132
155
|
onClose?.();
|
|
133
156
|
}
|
|
134
157
|
}, [open]);
|
|
@@ -88,6 +88,9 @@ export function FormDateTime({
|
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
90
|
|
|
91
|
+
const hoursItems = Object.fromEntries(hoursOptions.map((option) => [String(option.value), option.label]));
|
|
92
|
+
const minutesItems = Object.fromEntries(minutesOptions.map((option) => [String(option.value), option.label]));
|
|
93
|
+
|
|
91
94
|
function roundToNearestFiveMinutes(minutes: number): number {
|
|
92
95
|
return (Math.round(minutes / 5) * 5) % 60;
|
|
93
96
|
}
|
|
@@ -172,6 +175,7 @@ export function FormDateTime({
|
|
|
172
175
|
<div className="flex flex-col space-y-2">
|
|
173
176
|
<Label htmlFor="hours-select">{t(`common.hours`)}</Label>
|
|
174
177
|
<Select
|
|
178
|
+
items={hoursItems}
|
|
175
179
|
value={String(field.value ? new Date(field.value).getHours() : selectedHours)}
|
|
176
180
|
onValueChange={(value) => {
|
|
177
181
|
if (!value) return;
|
|
@@ -201,6 +205,7 @@ export function FormDateTime({
|
|
|
201
205
|
<div className="flex flex-col space-y-2">
|
|
202
206
|
<Label htmlFor="minutes-select">{t(`common.minutes`)}</Label>
|
|
203
207
|
<Select
|
|
208
|
+
items={minutesItems}
|
|
204
209
|
value={String(
|
|
205
210
|
field.value ? roundToNearestFiveMinutes(new Date(field.value).getMinutes()) : selectedMinutes,
|
|
206
211
|
)}
|