@flamingo-stack/openframe-frontend-core 0.0.797 → 0.0.798
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/build/export-map.json +1 -1
- package/dist/{chunk-PBL66EVT.cjs → chunk-2M6HS23A.cjs} +30 -30
- package/dist/{chunk-ZPTHTGHK.cjs → chunk-5IU64YEA.cjs} +39 -39
- package/dist/{chunk-GAFNJDZV.cjs → chunk-6F2UHDCB.cjs} +3 -3
- package/dist/{chunk-YHCC3BLP.cjs → chunk-6YCUP6JJ.cjs} +14 -14
- package/dist/{chunk-NBUHCGGG.cjs → chunk-AVAE5B2A.cjs} +2 -2
- package/dist/{chunk-RD57WBJK.cjs → chunk-BWTCULUN.cjs} +4 -4
- package/dist/{chunk-CHF6PHOR.cjs → chunk-C2UZWRU5.cjs} +16 -16
- package/dist/{chunk-BUCCV72E.cjs → chunk-EYE5FLHZ.cjs} +11 -11
- package/dist/{chunk-QKXXHOOD.cjs → chunk-FIKIPO4F.cjs} +13 -0
- package/dist/{chunk-CO6FB4DR.cjs → chunk-FO3N6HDS.cjs} +13 -13
- package/dist/{chunk-5CEXT3V7.cjs → chunk-KFDAL6NA.cjs} +2 -2
- package/dist/{chunk-3H3CQ7BQ.cjs → chunk-ND7ECICK.cjs} +37 -37
- package/dist/{chunk-UKLSEI7S.cjs → chunk-NK2FSEWD.cjs} +4 -4
- package/dist/{chunk-OZUUCVDZ.cjs → chunk-O6KQ64RI.cjs} +2 -2
- package/dist/{chunk-VFCPLZFY.cjs → chunk-PTQVGWJE.cjs} +61 -61
- package/dist/{chunk-IS77JFF6.cjs → chunk-SDV335EO.cjs} +4 -4
- package/dist/{chunk-7MLK7BGF.cjs → chunk-T5OCU3EL.cjs} +4 -4
- package/dist/{chunk-LAJNO2EW.cjs → chunk-TJQGKIXB.cjs} +32 -32
- package/dist/{chunk-YMWK7GOC.cjs → chunk-VUHPWSAE.cjs} +139 -119
- package/dist/{chunk-KWINW3FC.cjs → chunk-W25OB2R6.cjs} +11 -11
- package/dist/{chunk-FFEE2ON2.cjs → chunk-W5ZQDEDT.cjs} +128 -127
- package/dist/{chunk-7GFKJGWH.cjs → chunk-WUBTAN27.cjs} +68 -68
- package/dist/{chunk-7AMU2ZD2.cjs → chunk-XJD7IZR2.cjs} +48 -48
- package/dist/{chunk-NX4QOEPJ.cjs → chunk-ZOK4OWMJ.cjs} +2 -2
- package/dist/{chunk-4M5JIVAH.cjs → chunk-ZXRAYCNB.cjs} +3 -3
- package/dist/{cloud-tenants-THCY3N2P.cjs → cloud-tenants-XGL3DYSG.cjs} +6 -6
- package/dist/components/case-studies/index.cjs +20 -20
- package/dist/components/chat/entity-cards/roadmap-card.d.ts +5 -0
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +16 -1
- package/dist/components/chat/index.cjs +5 -5
- package/dist/components/chat/types/entities/roadmap-item.d.ts +8 -0
- package/dist/components/chat/types/entities/roadmap-item.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +7 -7
- package/dist/components/docs/index.cjs +10 -10
- package/dist/components/embeds/index.cjs +7 -7
- package/dist/components/faq/index.cjs +8 -8
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/help-center-pages/index.cjs +82 -82
- package/dist/components/index.cjs +52 -52
- package/dist/components/meeting-scheduler/index.cjs +38 -38
- package/dist/components/navigation/index.cjs +9 -9
- package/dist/components/onboarding-guides/index.cjs +9 -9
- package/dist/components/product-demo/index.cjs +15 -15
- package/dist/components/related-content/index.cjs +5 -5
- package/dist/components/tickets/index.cjs +13 -13
- package/dist/components/ui/feature-card.d.ts +1 -1
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-card.js +1 -0
- package/dist/components/ui/index.cjs +6 -6
- package/dist/{devices-N4EF5QDS.cjs → devices-U2NQYDI7.cjs} +7 -7
- package/dist/{embeddable-chat-7Z2OQK3X.cjs → embeddable-chat-MPJLN4C6.cjs} +62 -62
- package/dist/index.cjs +12 -10
- package/dist/{knowledge-TL4DSXYQ.cjs → knowledge-BUY6TSK6.cjs} +7 -7
- package/dist/{logs-4VRUBGKE.cjs → logs-FUPQ7XYE.cjs} +14 -14
- package/dist/{policies-TLNVCQGG.cjs → policies-NASADYBK.cjs} +10 -10
- package/dist/{scripts-4LFWHIMH.cjs → scripts-BGLTDQKV.cjs} +11 -11
- package/dist/{software-update-J4ZXQABW.cjs → software-update-QDIZ32KU.cjs} +9 -9
- package/dist/utils/clickup-drop-down.cjs +22 -0
- package/dist/utils/clickup-drop-down.d.ts +26 -0
- package/dist/utils/clickup-drop-down.d.ts.map +1 -0
- package/dist/utils/clickup-drop-down.js +20 -0
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/package.json +7 -1
- package/src/components/chat/entity-cards/roadmap-card.tsx +18 -1
- package/src/components/chat/types/entities/roadmap-item.ts +8 -0
- package/src/components/ui/feature-card.tsx +2 -1
- package/src/utils/clickup-drop-down.ts +41 -0
- package/src/utils/index.ts +1 -0
|
@@ -32,6 +32,14 @@ export interface RoadmapItem {
|
|
|
32
32
|
downvotes: number;
|
|
33
33
|
quarter: string;
|
|
34
34
|
clickupUrl: string;
|
|
35
|
+
/** The team the item belongs to (the ClickUp `Team` field), when the reader states it. */
|
|
36
|
+
team?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the item is on the public roadmap (the ClickUp `Public` checkbox). Stated only by a reader that also
|
|
39
|
+
* serves team-only items (an internal hub); the public roadmap serves public items only and leaves it out. When it
|
|
40
|
+
* is stated, the card says which it is, so a team-only plan is never read as announced.
|
|
41
|
+
*/
|
|
42
|
+
isPublic?: boolean;
|
|
35
43
|
/** ClickUp canonical task-type taxonomy ID (1008=Bug, 1009=Request,
|
|
36
44
|
* 1010=Feature, …). Drives the type-specific icon rendered in the
|
|
37
45
|
* chat's compact card for the internal-tasks variant — see
|
|
@@ -39,7 +39,7 @@ export interface FeatureCardItem {
|
|
|
39
39
|
export interface FeatureCardGridProps {
|
|
40
40
|
items: FeatureCardItem[];
|
|
41
41
|
/** Items per row from the widest breakpoint (4 shows two per row at `md`). */
|
|
42
|
-
columns?: 2 | 3 | 4;
|
|
42
|
+
columns?: 1 | 2 | 3 | 4;
|
|
43
43
|
className?: string;
|
|
44
44
|
cardClassName?: string;
|
|
45
45
|
itemClassName?: string;
|
|
@@ -86,6 +86,7 @@ export interface FeatureCardGridSkeletonShape {
|
|
|
86
86
|
const FEATURE_CARD_GRID_SKELETON_ITEMS = 3;
|
|
87
87
|
|
|
88
88
|
const GRID_COLUMNS = {
|
|
89
|
+
1: 'grid-cols-1',
|
|
89
90
|
2: 'grid-cols-1 content-md:grid-cols-2',
|
|
90
91
|
3: 'grid-cols-1 content-md:grid-cols-3',
|
|
91
92
|
4: 'grid-cols-1 content-md:grid-cols-2 content-lg:grid-cols-4',
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reading a ClickUp drop-down custom field off a task (pure, server-safe).
|
|
3
|
+
*
|
|
4
|
+
* ClickUp sends a task's custom fields with each field's options as they are now: a drop-down's `value` is the chosen
|
|
5
|
+
* option's POSITION (`orderindex`), and newer answers may send the option's id. The option's id is stable; its name
|
|
6
|
+
* changes when the field's owner renames it (the Team field's "Design" became "Product"), so a reader resolves the
|
|
7
|
+
* chosen option's id first and its name from the field's own options.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export interface ClickUpDropDownOption {
|
|
11
|
+
id?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
orderindex?: number | string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ClickUpCustomFieldValue {
|
|
17
|
+
id?: string;
|
|
18
|
+
value?: unknown;
|
|
19
|
+
type_config?: { options?: ClickUpDropDownOption[] };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function optionsOf(field: ClickUpCustomFieldValue | undefined): ClickUpDropDownOption[] {
|
|
23
|
+
return Array.isArray(field?.type_config?.options) ? field.type_config.options : [];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function fieldOf(fields: unknown, fieldId: string): ClickUpCustomFieldValue | undefined {
|
|
27
|
+
return Array.isArray(fields) ? (fields as ClickUpCustomFieldValue[]).find(f => f?.id === fieldId) : undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/** The chosen option of a drop-down field, or null when the task has no value (or one its options do not hold). */
|
|
31
|
+
export function clickUpDropDownOption(fields: unknown, fieldId: string): { id: string; name: string | null } | null {
|
|
32
|
+
const field = fieldOf(fields, fieldId);
|
|
33
|
+
const value = field?.value;
|
|
34
|
+
if (value === null || value === undefined || value === '') return null;
|
|
35
|
+
const options = optionsOf(field);
|
|
36
|
+
const byId = typeof value === 'string' ? options.find(o => o.id === value) : undefined;
|
|
37
|
+
const position = Number(value);
|
|
38
|
+
const option = byId ?? (Number.isFinite(position) ? options.find(o => Number(o.orderindex) === position) : undefined);
|
|
39
|
+
if (!option?.id) return null;
|
|
40
|
+
return { id: option.id, name: option.name?.trim() || null };
|
|
41
|
+
}
|
package/src/utils/index.ts
CHANGED
|
@@ -71,6 +71,7 @@ export { SEO_DESCRIPTION_MAX_LENGTH } from './seo-description';
|
|
|
71
71
|
// consumers (e.g. company-hub deck) don't ship their own copies of the marks.
|
|
72
72
|
export * from './brand-marks';
|
|
73
73
|
export * from './design-doc-readiness';
|
|
74
|
+
export * from './clickup-drop-down';
|
|
74
75
|
export * from './platform-config';
|
|
75
76
|
export * from './os-platforms';
|
|
76
77
|
export * from './access-code-client';
|