@flamingo-stack/openframe-frontend-core 0.0.313-snapshot.20260623203621 → 0.0.313
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/{chunk-ZPK5HW7B.cjs → chunk-2ZHDP22R.cjs} +3 -3
- package/dist/{chunk-ZPK5HW7B.cjs.map → chunk-2ZHDP22R.cjs.map} +1 -1
- package/dist/{chunk-NH2RY6VM.js → chunk-66JU4VP2.js} +3 -15
- package/dist/{chunk-NH2RY6VM.js.map → chunk-66JU4VP2.js.map} +1 -1
- package/dist/{chunk-OD3BEWDQ.js → chunk-6FZD5KFP.js} +3 -3
- package/dist/{chunk-WJCOWYAP.cjs → chunk-BFNTSETG.cjs} +14 -14
- package/dist/{chunk-WJCOWYAP.cjs.map → chunk-BFNTSETG.cjs.map} +1 -1
- package/dist/{chunk-BHOGI57O.cjs → chunk-BFSKFC6S.cjs} +38 -38
- package/dist/{chunk-BHOGI57O.cjs.map → chunk-BFSKFC6S.cjs.map} +1 -1
- package/dist/{chunk-JWX6NIQ4.js → chunk-BVDHLEP2.js} +2 -2
- package/dist/{chunk-46UZAYUT.cjs → chunk-DDLJTRF4.cjs} +29 -29
- package/dist/{chunk-46UZAYUT.cjs.map → chunk-DDLJTRF4.cjs.map} +1 -1
- package/dist/{chunk-VCJOLKED.cjs → chunk-DE2BQKQV.cjs} +12 -12
- package/dist/{chunk-VCJOLKED.cjs.map → chunk-DE2BQKQV.cjs.map} +1 -1
- package/dist/{chunk-XKVSR3IV.js → chunk-E6BHNYTA.js} +4 -4
- package/dist/{chunk-UO27TVAO.js → chunk-FXTT7K3A.js} +3 -3
- package/dist/{chunk-5ATH263N.cjs → chunk-G56GYN7Z.cjs} +1 -4
- package/dist/chunk-G56GYN7Z.cjs.map +1 -0
- package/dist/{chunk-DD35H7HA.cjs → chunk-GHK2FCIM.cjs} +40 -40
- package/dist/{chunk-DD35H7HA.cjs.map → chunk-GHK2FCIM.cjs.map} +1 -1
- package/dist/{chunk-E4CQ4RUG.js → chunk-JQ2EYXWR.js} +1 -4
- package/dist/chunk-JQ2EYXWR.js.map +1 -0
- package/dist/{chunk-TRSDXD23.js → chunk-JQLC2FVM.js} +2 -2
- package/dist/{chunk-BJ6JXN5Z.js → chunk-OZYAAJHM.js} +5 -5
- package/dist/{chunk-UNKIRZVY.cjs → chunk-REHUG3RH.cjs} +19 -19
- package/dist/{chunk-UNKIRZVY.cjs.map → chunk-REHUG3RH.cjs.map} +1 -1
- package/dist/{chunk-E2LC43T3.js → chunk-RM3M3SZ6.js} +2 -2
- package/dist/{chunk-ZW3NHMG7.js → chunk-SPFGSUNE.js} +3 -3
- package/dist/{chunk-EC4DGRN6.cjs → chunk-SQQXCVZZ.cjs} +53 -65
- package/dist/chunk-SQQXCVZZ.cjs.map +1 -0
- package/dist/{chunk-AD7TII2A.cjs → chunk-XHGE5XBH.cjs} +5 -5
- package/dist/{chunk-AD7TII2A.cjs.map → chunk-XHGE5XBH.cjs.map} +1 -1
- package/dist/{chunk-L7BROXZ7.js → chunk-YI2ACYRX.js} +2 -2
- package/dist/{chunk-2LFQJYLQ.cjs → chunk-YSMKPNYZ.cjs} +7 -7
- package/dist/{chunk-2LFQJYLQ.cjs.map → chunk-YSMKPNYZ.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +9 -9
- package/dist/components/case-studies/index.js +3 -3
- package/dist/components/chat/index.cjs +3 -3
- package/dist/components/chat/index.js +2 -2
- package/dist/components/contact/index.cjs +4 -4
- package/dist/components/contact/index.js +3 -3
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +4 -4
- package/dist/components/embeds/index.js +3 -3
- package/dist/components/faq/index.cjs +5 -5
- package/dist/components/faq/index.js +4 -4
- package/dist/components/features/index.cjs +3 -3
- package/dist/components/features/index.js +2 -2
- package/dist/components/index.cjs +188 -190
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +10 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/layout/page-layout.d.ts +1 -1
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +0 -10
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +3 -3
- package/dist/components/navigation/index.js +2 -2
- package/dist/components/onboarding-guides/index.cjs +29 -29
- package/dist/components/onboarding-guides/index.js +5 -5
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/related-content/index.js +4 -4
- package/dist/components/tickets/help-center-list.d.ts +1 -5
- package/dist/components/tickets/help-center-list.d.ts.map +1 -1
- package/dist/components/tickets/index.cjs +73 -84
- package/dist/components/tickets/index.cjs.map +1 -1
- package/dist/components/tickets/index.js +10 -21
- package/dist/components/tickets/index.js.map +1 -1
- package/dist/components/tool-icon.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +3 -5
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.js +2 -4
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +3 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -4
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/tool.types.d.ts +0 -1
- package/dist/types/tool.types.d.ts.map +1 -1
- package/dist/utils/index.cjs +0 -11
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +0 -11
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/tool-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/page-layout.tsx +1 -1
- package/src/components/layout/title-block.tsx +1 -12
- package/src/components/tickets/help-center-list.tsx +4 -16
- package/src/components/tool-icon.tsx +0 -1
- package/src/types/tool.types.ts +0 -2
- package/src/utils/tool-utils.ts +0 -11
- package/dist/chunk-5ATH263N.cjs.map +0 -1
- package/dist/chunk-E4CQ4RUG.js.map +0 -1
- package/dist/chunk-EC4DGRN6.cjs.map +0 -1
- /package/dist/{chunk-OD3BEWDQ.js.map → chunk-6FZD5KFP.js.map} +0 -0
- /package/dist/{chunk-JWX6NIQ4.js.map → chunk-BVDHLEP2.js.map} +0 -0
- /package/dist/{chunk-XKVSR3IV.js.map → chunk-E6BHNYTA.js.map} +0 -0
- /package/dist/{chunk-UO27TVAO.js.map → chunk-FXTT7K3A.js.map} +0 -0
- /package/dist/{chunk-TRSDXD23.js.map → chunk-JQLC2FVM.js.map} +0 -0
- /package/dist/{chunk-BJ6JXN5Z.js.map → chunk-OZYAAJHM.js.map} +0 -0
- /package/dist/{chunk-E2LC43T3.js.map → chunk-RM3M3SZ6.js.map} +0 -0
- /package/dist/{chunk-ZW3NHMG7.js.map → chunk-SPFGSUNE.js.map} +0 -0
- /package/dist/{chunk-L7BROXZ7.js.map → chunk-YI2ACYRX.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-utils.d.ts","sourceRoot":"","sources":["../../src/utils/tool-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"tool-utils.d.ts","sourceRoot":"","sources":["../../src/utils/tool-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,QAAQ,EAAc,MAAM,qBAAqB,CAAA;AA2E1D;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAgBtE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAEtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CASlD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,CAI/D;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEvD"}
|
package/package.json
CHANGED
|
@@ -99,6 +99,6 @@ export function PageLayout({
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export type { PageActionButton } from '../ui/page-actions'
|
|
102
|
-
export { TitleBlock
|
|
102
|
+
export { TitleBlock } from './title-block'
|
|
103
103
|
export type { TitleBlockProps } from './title-block'
|
|
104
104
|
export default PageLayout
|
|
@@ -31,17 +31,6 @@ import { EntityImage } from '../ui/entity-image'
|
|
|
31
31
|
import { PageActions, type PageActionButton } from '../ui/page-actions'
|
|
32
32
|
import { BackButton } from './back-button'
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* Minimum height of the title block's content column, matched to the action
|
|
36
|
-
* button height: the icon button on mobile (`h-11` → 44px) and the default
|
|
37
|
-
* button on desktop (`md:h-12` → 48px). Applied to the inner title column (which
|
|
38
|
-
* has no padding) rather than the root — the root's `pt`/`mb` are box-sizing
|
|
39
|
-
* border-box and would otherwise absorb the floor. Keeps the header a consistent
|
|
40
|
-
* height across pages whether or not they render action buttons, so the content
|
|
41
|
-
* below starts at the same baseline. Exported so other page chrome can reuse it.
|
|
42
|
-
*/
|
|
43
|
-
export const TITLE_BLOCK_MIN_HEIGHT = 'min-h-11 md:min-h-12'
|
|
44
|
-
|
|
45
34
|
export interface TitleBlockProps {
|
|
46
35
|
title?: string
|
|
47
36
|
subtitle?: string
|
|
@@ -94,7 +83,7 @@ export function TitleBlock({
|
|
|
94
83
|
className,
|
|
95
84
|
)}
|
|
96
85
|
>
|
|
97
|
-
<div className=
|
|
86
|
+
<div className="flex flex-col gap-[var(--spacing-system-xs)] flex-1 min-w-0">
|
|
98
87
|
{backButton && (
|
|
99
88
|
<BackButton
|
|
100
89
|
onClick={backButton.onClick}
|
|
@@ -55,13 +55,9 @@ export interface HelpCenterListProps {
|
|
|
55
55
|
* to hide). Omit ⇒ `DevSectionPage`'s default (`Back to home` → `/`), which
|
|
56
56
|
* embedders whose home isn't `/` MUST override. */
|
|
57
57
|
backButton?: { label?: string; href?: string } | false
|
|
58
|
-
/** Override the hero title (forwarded to `DevSectionPage.title`). Defaults to
|
|
59
|
-
* the `tickets` section copy ("Help Center"). Set this to brand the surface
|
|
60
|
-
* for an embed that wants its own label (e.g. "Support Tickets"). */
|
|
61
|
-
title?: string
|
|
62
58
|
}
|
|
63
59
|
|
|
64
|
-
export function HelpCenterList({ toast = defaultToast, backButton
|
|
60
|
+
export function HelpCenterList({ toast = defaultToast, backButton }: HelpCenterListProps = {}) {
|
|
65
61
|
const identity = useChatIdentity()
|
|
66
62
|
const searchParams = useSearchParams()
|
|
67
63
|
const router = useRouter()
|
|
@@ -89,19 +85,14 @@ export function HelpCenterList({ toast = defaultToast, backButton, title }: Help
|
|
|
89
85
|
// mounts in the `preControls` slot.
|
|
90
86
|
if (identity.isLoading) {
|
|
91
87
|
return (
|
|
92
|
-
<DevSectionPage
|
|
93
|
-
sectionKey="tickets"
|
|
94
|
-
backButton={backButton}
|
|
95
|
-
title={title}
|
|
96
|
-
preControls={<HelpCenterCreateFormSkeleton />}
|
|
97
|
-
>
|
|
88
|
+
<DevSectionPage sectionKey="tickets" backButton={backButton} preControls={<HelpCenterCreateFormSkeleton />}>
|
|
98
89
|
<DevCardRowSkeletonList />
|
|
99
90
|
</DevSectionPage>
|
|
100
91
|
)
|
|
101
92
|
}
|
|
102
93
|
if (identity.authTier === 'anon' || !identity.user?.email) {
|
|
103
94
|
return (
|
|
104
|
-
<DevSectionPage sectionKey="tickets" backButton={backButton}
|
|
95
|
+
<DevSectionPage sectionKey="tickets" backButton={backButton}>
|
|
105
96
|
<EmptyState
|
|
106
97
|
type="generic"
|
|
107
98
|
title="Sign in to manage tickets"
|
|
@@ -137,7 +128,6 @@ export function HelpCenterList({ toast = defaultToast, backButton, title }: Help
|
|
|
137
128
|
sessionName={sessionName}
|
|
138
129
|
sessionEmail={sessionEmail}
|
|
139
130
|
backButton={backButton}
|
|
140
|
-
title={title}
|
|
141
131
|
/>
|
|
142
132
|
)
|
|
143
133
|
}
|
|
@@ -155,7 +145,6 @@ interface AuthedProps {
|
|
|
155
145
|
sessionName: string
|
|
156
146
|
sessionEmail: string
|
|
157
147
|
backButton?: { label?: string; href?: string } | false
|
|
158
|
-
title?: string
|
|
159
148
|
}
|
|
160
149
|
|
|
161
150
|
function HelpCenterListAuthed({
|
|
@@ -170,7 +159,6 @@ function HelpCenterListAuthed({
|
|
|
170
159
|
sessionName,
|
|
171
160
|
sessionEmail,
|
|
172
161
|
backButton,
|
|
173
|
-
title,
|
|
174
162
|
}: AuthedProps) {
|
|
175
163
|
const queryClient = useQueryClient()
|
|
176
164
|
const [optimisticTickets, setOptimisticTickets] = useState<OptimisticTicket[]>([])
|
|
@@ -398,7 +386,7 @@ function HelpCenterListAuthed({
|
|
|
398
386
|
)
|
|
399
387
|
|
|
400
388
|
return (
|
|
401
|
-
<DevSectionPage sectionKey="tickets" backButton={backButton}
|
|
389
|
+
<DevSectionPage sectionKey="tickets" backButton={backButton} preControls={form}>
|
|
402
390
|
{body}
|
|
403
391
|
</DevSectionPage>
|
|
404
392
|
)
|
|
@@ -25,7 +25,6 @@ const toolIconMap: Record<ToolType, (size: number, className?: string) => React.
|
|
|
25
25
|
[ToolTypeValues.OPENFRAME]: renderOpenFrameLogo,
|
|
26
26
|
[ToolTypeValues.OPENFRAME_CHAT]: renderOpenFrameLogo,
|
|
27
27
|
[ToolTypeValues.OPENFRAME_CLIENT]: renderOpenFrameLogo,
|
|
28
|
-
[ToolTypeValues.OPENFRAME_RMM]: renderOpenFrameLogo,
|
|
29
28
|
[ToolTypeValues.AUTHENTIK]: (size, className) => <AuthentikLogoGreyIcon size={size} className={className} />,
|
|
30
29
|
[ToolTypeValues.OSQUERY]: (size, className) => <OsqueryLogoGreyIcon size={size} className={className} />,
|
|
31
30
|
[ToolTypeValues.SYSTEM]: () => null,
|
package/src/types/tool.types.ts
CHANGED
|
@@ -13,7 +13,6 @@ export const ToolTypeValues = {
|
|
|
13
13
|
OPENFRAME: 'OPENFRAME',
|
|
14
14
|
OPENFRAME_CHAT: 'OPENFRAME_CHAT',
|
|
15
15
|
OPENFRAME_CLIENT: 'OPENFRAME_CLIENT',
|
|
16
|
-
OPENFRAME_RMM: 'OPENFRAME_RMM',
|
|
17
16
|
OSQUERY: 'OSQUERY',
|
|
18
17
|
SYSTEM: 'SYSTEM'
|
|
19
18
|
} as const
|
|
@@ -31,7 +30,6 @@ export const toolLabels: Record<ToolType, string> = {
|
|
|
31
30
|
OPENFRAME: 'OpenFrame',
|
|
32
31
|
OPENFRAME_CHAT: 'OpenFrame Chat',
|
|
33
32
|
OPENFRAME_CLIENT: 'OpenFrame Client',
|
|
34
|
-
OPENFRAME_RMM: 'OpenFrame RMM',
|
|
35
33
|
OSQUERY: 'Osquery',
|
|
36
34
|
SYSTEM: 'System'
|
|
37
35
|
}
|
package/src/utils/tool-utils.ts
CHANGED
|
@@ -73,17 +73,6 @@ const toolAliasMap: Record<string, ToolType> = {
|
|
|
73
73
|
'openframe-client': 'OPENFRAME_CLIENT',
|
|
74
74
|
'openframeclient': 'OPENFRAME_CLIENT',
|
|
75
75
|
|
|
76
|
-
// OpenFrame RMM
|
|
77
|
-
'RMM': 'OPENFRAME_RMM',
|
|
78
|
-
'rmm': 'OPENFRAME_RMM',
|
|
79
|
-
'OPENFRAME_RMM': 'OPENFRAME_RMM',
|
|
80
|
-
'OPENFRAME-RMM': 'OPENFRAME_RMM',
|
|
81
|
-
'OPENFRAMERMM': 'OPENFRAME_RMM',
|
|
82
|
-
'openframe_rmm': 'OPENFRAME_RMM',
|
|
83
|
-
'openframe-rmm': 'OPENFRAME_RMM',
|
|
84
|
-
'openframermm': 'OPENFRAME_RMM',
|
|
85
|
-
'openframe-rmm-agent': 'OPENFRAME_RMM',
|
|
86
|
-
|
|
87
76
|
// OSQUERY
|
|
88
77
|
'OSQUERY': 'OSQUERY',
|
|
89
78
|
|