@flamingo-stack/openframe-frontend-core 0.0.624-snapshot.20260914031520 → 0.0.624

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.
Files changed (110) hide show
  1. package/dist/{chunk-IYQRUTJI.js → chunk-56CBPVCF.js} +3 -3
  2. package/dist/{chunk-AT44NN6G.cjs → chunk-5JOKGJSG.cjs} +4 -4
  3. package/dist/{chunk-AT44NN6G.cjs.map → chunk-5JOKGJSG.cjs.map} +1 -1
  4. package/dist/{chunk-NDUNUXS2.cjs → chunk-AO6CJFQU.cjs} +10 -10
  5. package/dist/{chunk-NDUNUXS2.cjs.map → chunk-AO6CJFQU.cjs.map} +1 -1
  6. package/dist/{chunk-F7UZDBZZ.cjs → chunk-BC4GLCNE.cjs} +25 -25
  7. package/dist/{chunk-F7UZDBZZ.cjs.map → chunk-BC4GLCNE.cjs.map} +1 -1
  8. package/dist/{chunk-XOREK735.cjs → chunk-C4Y3TEKO.cjs} +2 -66
  9. package/dist/chunk-C4Y3TEKO.cjs.map +1 -0
  10. package/dist/{chunk-VGZ7WZ7F.js → chunk-CP4YNYQA.js} +2 -2
  11. package/dist/{chunk-ETH2WO6U.cjs → chunk-D3IW3CSH.cjs} +5 -5
  12. package/dist/{chunk-ETH2WO6U.cjs.map → chunk-D3IW3CSH.cjs.map} +1 -1
  13. package/dist/{chunk-ELU7SGM6.cjs → chunk-DPFMA6JD.cjs} +45 -45
  14. package/dist/{chunk-ELU7SGM6.cjs.map → chunk-DPFMA6JD.cjs.map} +1 -1
  15. package/dist/{chunk-OFRCNA6N.cjs → chunk-DY4XQFGC.cjs} +10 -10
  16. package/dist/{chunk-OFRCNA6N.cjs.map → chunk-DY4XQFGC.cjs.map} +1 -1
  17. package/dist/{chunk-PSANPD64.js → chunk-F2G5BTBR.js} +6 -6
  18. package/dist/{chunk-HOASBISN.js → chunk-GRZHXAX6.js} +2 -2
  19. package/dist/{chunk-C2E3TDRF.js → chunk-HAYYFOUU.js} +2 -2
  20. package/dist/{chunk-YSCRM2AG.cjs → chunk-IUMRVY4I.cjs} +22 -22
  21. package/dist/{chunk-YSCRM2AG.cjs.map → chunk-IUMRVY4I.cjs.map} +1 -1
  22. package/dist/{chunk-CWK7BQTZ.cjs → chunk-JEMBYNOG.cjs} +3 -3
  23. package/dist/{chunk-CWK7BQTZ.cjs.map → chunk-JEMBYNOG.cjs.map} +1 -1
  24. package/dist/{chunk-YCO4UA62.js → chunk-JT4FL2DK.js} +5 -5
  25. package/dist/{chunk-35JUSLEJ.js → chunk-KEHI5NAD.js} +2 -2
  26. package/dist/{chunk-2RTH6JR5.js → chunk-KKD35GSD.js} +3 -3
  27. package/dist/{chunk-627V5GNY.js → chunk-LDR3QNOT.js} +3 -3
  28. package/dist/{chunk-7VOLW4WX.cjs → chunk-N3CTSPDZ.cjs} +3 -3
  29. package/dist/{chunk-7VOLW4WX.cjs.map → chunk-N3CTSPDZ.cjs.map} +1 -1
  30. package/dist/{chunk-BNH76PZH.cjs → chunk-NOQDSRSK.cjs} +9 -9
  31. package/dist/{chunk-BNH76PZH.cjs.map → chunk-NOQDSRSK.cjs.map} +1 -1
  32. package/dist/{chunk-DKNDJNSW.js → chunk-NULR47FR.js} +3 -3
  33. package/dist/{chunk-CP5QJZGS.cjs → chunk-OKMMP5PU.cjs} +161 -161
  34. package/dist/{chunk-CP5QJZGS.cjs.map → chunk-OKMMP5PU.cjs.map} +1 -1
  35. package/dist/{chunk-7H2H6HYE.cjs → chunk-OYP7ZNHW.cjs} +22 -22
  36. package/dist/{chunk-7H2H6HYE.cjs.map → chunk-OYP7ZNHW.cjs.map} +1 -1
  37. package/dist/{chunk-7LH2LC6N.js → chunk-Q6QF35QE.js} +5 -5
  38. package/dist/{chunk-P52MUJTG.js → chunk-QHH2GXHS.js} +2 -2
  39. package/dist/{chunk-NCY7J6YZ.js → chunk-RFUYCKBZ.js} +563 -627
  40. package/dist/chunk-RFUYCKBZ.js.map +1 -0
  41. package/dist/{chunk-QAYRZTFU.cjs → chunk-TTSGX6AB.cjs} +33 -33
  42. package/dist/{chunk-QAYRZTFU.cjs.map → chunk-TTSGX6AB.cjs.map} +1 -1
  43. package/dist/{chunk-CXTOKOMK.cjs → chunk-WKDNZXJK.cjs} +71 -71
  44. package/dist/{chunk-CXTOKOMK.cjs.map → chunk-WKDNZXJK.cjs.map} +1 -1
  45. package/dist/{chunk-FDE52ADN.js → chunk-WSEDVYDY.js} +4 -4
  46. package/dist/{chunk-UQWJWIEK.js → chunk-YBEAX6QC.js} +5 -5
  47. package/dist/{chunk-RSJMF2YO.js → chunk-ZYPB57IM.js} +3 -3
  48. package/dist/{chunk-VOKLGRHX.cjs → chunk-ZZECM2I2.cjs} +15 -15
  49. package/dist/{chunk-VOKLGRHX.cjs.map → chunk-ZZECM2I2.cjs.map} +1 -1
  50. package/dist/components/case-studies/index.cjs +9 -9
  51. package/dist/components/case-studies/index.js +3 -3
  52. package/dist/components/chat/entity-cards/index.d.ts +0 -1
  53. package/dist/components/chat/entity-cards/index.d.ts.map +1 -1
  54. package/dist/components/chat/index.cjs +2 -8
  55. package/dist/components/chat/index.cjs.map +1 -1
  56. package/dist/components/chat/index.js +1 -7
  57. package/dist/components/contact/index.cjs +4 -4
  58. package/dist/components/contact/index.js +3 -3
  59. package/dist/components/docs/index.cjs +7 -7
  60. package/dist/components/docs/index.js +6 -6
  61. package/dist/components/embeds/index.cjs +4 -4
  62. package/dist/components/embeds/index.js +3 -3
  63. package/dist/components/faq/index.cjs +4 -4
  64. package/dist/components/faq/index.js +3 -3
  65. package/dist/components/features/index.cjs +3 -3
  66. package/dist/components/features/index.js +2 -2
  67. package/dist/components/help-center-pages/index.cjs +23 -23
  68. package/dist/components/help-center-pages/index.js +14 -14
  69. package/dist/components/index.cjs +38 -44
  70. package/dist/components/index.cjs.map +1 -1
  71. package/dist/components/index.js +13 -19
  72. package/dist/components/index.js.map +1 -1
  73. package/dist/components/meeting-scheduler/index.cjs +24 -24
  74. package/dist/components/meeting-scheduler/index.js +2 -2
  75. package/dist/components/navigation/index.cjs +6 -6
  76. package/dist/components/navigation/index.js +5 -5
  77. package/dist/components/onboarding-guides/index.cjs +6 -6
  78. package/dist/components/onboarding-guides/index.js +5 -5
  79. package/dist/components/tickets/index.cjs +7 -7
  80. package/dist/components/tickets/index.js +6 -6
  81. package/dist/components/ui/index.cjs +3 -9
  82. package/dist/components/ui/index.cjs.map +1 -1
  83. package/dist/components/ui/index.js +2 -8
  84. package/dist/index.cjs +7 -13
  85. package/dist/index.cjs.map +1 -1
  86. package/dist/index.js +6 -12
  87. package/dist/index.js.map +1 -1
  88. package/package.json +1 -1
  89. package/src/components/chat/entity-cards/index.ts +0 -6
  90. package/dist/chunk-NCY7J6YZ.js.map +0 -1
  91. package/dist/chunk-XOREK735.cjs.map +0 -1
  92. package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts +0 -45
  93. package/dist/components/chat/entity-cards/admin-content-card-grid.d.ts.map +0 -1
  94. package/src/components/chat/entity-cards/__tests__/admin-content-card-grid.test.tsx +0 -58
  95. package/src/components/chat/entity-cards/admin-content-card-grid.tsx +0 -127
  96. /package/dist/{chunk-IYQRUTJI.js.map → chunk-56CBPVCF.js.map} +0 -0
  97. /package/dist/{chunk-VGZ7WZ7F.js.map → chunk-CP4YNYQA.js.map} +0 -0
  98. /package/dist/{chunk-PSANPD64.js.map → chunk-F2G5BTBR.js.map} +0 -0
  99. /package/dist/{chunk-HOASBISN.js.map → chunk-GRZHXAX6.js.map} +0 -0
  100. /package/dist/{chunk-C2E3TDRF.js.map → chunk-HAYYFOUU.js.map} +0 -0
  101. /package/dist/{chunk-YCO4UA62.js.map → chunk-JT4FL2DK.js.map} +0 -0
  102. /package/dist/{chunk-35JUSLEJ.js.map → chunk-KEHI5NAD.js.map} +0 -0
  103. /package/dist/{chunk-2RTH6JR5.js.map → chunk-KKD35GSD.js.map} +0 -0
  104. /package/dist/{chunk-627V5GNY.js.map → chunk-LDR3QNOT.js.map} +0 -0
  105. /package/dist/{chunk-DKNDJNSW.js.map → chunk-NULR47FR.js.map} +0 -0
  106. /package/dist/{chunk-7LH2LC6N.js.map → chunk-Q6QF35QE.js.map} +0 -0
  107. /package/dist/{chunk-P52MUJTG.js.map → chunk-QHH2GXHS.js.map} +0 -0
  108. /package/dist/{chunk-FDE52ADN.js.map → chunk-WSEDVYDY.js.map} +0 -0
  109. /package/dist/{chunk-UQWJWIEK.js.map → chunk-YBEAX6QC.js.map} +0 -0
  110. /package/dist/{chunk-RSJMF2YO.js.map → chunk-ZYPB57IM.js.map} +0 -0
@@ -1,45 +0,0 @@
1
- import type { ComponentType, ReactNode } from 'react';
2
- /** THE admin card grid: columns and gap shared by the live grid and its skeleton. */
3
- export declare const ADMIN_CONTENT_CARD_GRID_CLASS = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]";
4
- /**
5
- * One `AdminContentCard`-shaped placeholder. It mirrors the card box for box (3:2
6
- * cover, then a `gap-3 p-5` column: two-line title, subtitle, two-line summary,
7
- * badges row, meta row, bordered actions row) so a skeleton, a real card and a
8
- * reserved slot are the same height. `p-5` has no ODS token (20px); it is the
9
- * card's own padding and must match it exactly.
10
- */
11
- export declare function AdminContentCardSkeleton({ className }: {
12
- className?: string;
13
- }): import("react").JSX.Element;
14
- export interface AdminContentCardGridProps<T> {
15
- items: readonly T[];
16
- /** One page of cards: the loading skeleton count and the reserved slot count. */
17
- pageSize: number;
18
- loading: boolean;
19
- itemKey: (item: T) => string | number;
20
- renderCard: (item: T) => ReactNode;
21
- /** Rendered when `items` is empty, floated top-aligned over a full page of reserved slots. */
22
- empty: ReactNode;
23
- /**
24
- * The placeholder card, used for loading and for reserved slots. Default
25
- * `AdminContentCardSkeleton`; a grid of another card (e.g. `HowIWorkCard`)
26
- * passes that card's own skeleton so the heights match.
27
- */
28
- Skeleton?: ComponentType<{
29
- className?: string;
30
- }>;
31
- className?: string;
32
- }
33
- /**
34
- * A paginated card grid that is ONE height in every state: the card-grid
35
- * counterpart of the admin `Table`'s `skeletonRows` + `keepHeightWhenEmpty`.
36
- *
37
- * - loading: `pageSize` skeleton cards;
38
- * - a short page: the cards, then invisible skeleton-shaped slots up to `pageSize`;
39
- * - empty: `empty` floats top-aligned over a full page of invisible slots.
40
- *
41
- * Pair it with a pagination control that keeps its space on a single page, so the
42
- * pagination row holds too.
43
- */
44
- export declare function AdminContentCardGrid<T>({ items, pageSize, loading, itemKey, renderCard, empty, Skeleton, className, }: AdminContentCardGridProps<T>): import("react").JSX.Element;
45
- //# sourceMappingURL=admin-content-card-grid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin-content-card-grid.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/entity-cards/admin-content-card-grid.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,qFAAqF;AACrF,eAAO,MAAM,6BAA6B,kFACuC,CAAC;AAElF;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BA4B7E;AAED,MAAM,WAAW,yBAAyB,CAAC,CAAC;IAC1C,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC;IACtC,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,SAAS,CAAC;IACnC,8FAA8F;IAC9F,KAAK,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,EACtC,KAAK,EACL,QAAQ,EACR,OAAO,EACP,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAmC,EACnC,SAAS,GACV,EAAE,yBAAyB,CAAC,CAAC,CAAC,+BA0C9B"}
@@ -1,58 +0,0 @@
1
- /**
2
- * `AdminContentCardGrid` — one height in every state, pinned by slot count:
3
- *
4
- * 1. loading renders `pageSize` visible skeletons and no cards;
5
- * 2. a short page renders its cards plus invisible slots up to `pageSize`;
6
- * 3. an empty list renders the empty node over a full page of invisible slots;
7
- * 4. a full page reserves nothing.
8
- *
9
- * A test `Skeleton` carries a test id, so the counts read through Testing Library.
10
- */
11
-
12
- import { render, screen } from '@testing-library/react';
13
- import { describe, expect, it } from 'vitest';
14
- import { AdminContentCardGrid } from '../admin-content-card-grid';
15
-
16
- type Row = { id: number; name: string };
17
- const rows = (n: number): Row[] => Array.from({ length: n }, (_, i) => ({ id: i + 1, name: `Row ${i + 1}` }));
18
-
19
- const TestSkeleton = ({ className }: { className?: string }) => <div data-testid="skeleton" className={className} />;
20
-
21
- const base = {
22
- pageSize: 6,
23
- itemKey: (r: Row) => r.id,
24
- renderCard: (r: Row) => <article>{r.name}</article>,
25
- empty: <p>Nothing here</p>,
26
- Skeleton: TestSkeleton,
27
- };
28
-
29
- const skeletons = () => screen.queryAllByTestId('skeleton');
30
- const invisible = () => skeletons().filter((el) => el.className.includes('invisible'));
31
-
32
- describe('AdminContentCardGrid', () => {
33
- it('renders pageSize visible skeletons while loading', () => {
34
- render(<AdminContentCardGrid {...base} items={rows(2)} loading />);
35
- expect(skeletons()).toHaveLength(6);
36
- expect(invisible()).toHaveLength(0);
37
- expect(screen.queryByText('Row 1')).toBeNull();
38
- });
39
-
40
- it('pads a short page with invisible slots up to pageSize', () => {
41
- render(<AdminContentCardGrid {...base} items={rows(2)} loading={false} />);
42
- expect(screen.getByText('Row 1')).toBeTruthy();
43
- expect(screen.getByText('Row 2')).toBeTruthy();
44
- expect(invisible()).toHaveLength(4);
45
- });
46
-
47
- it('floats the empty state over a full page of invisible slots', () => {
48
- render(<AdminContentCardGrid {...base} items={[]} loading={false} />);
49
- expect(screen.getByText('Nothing here')).toBeTruthy();
50
- expect(invisible()).toHaveLength(6);
51
- });
52
-
53
- it('reserves nothing on a full page', () => {
54
- render(<AdminContentCardGrid {...base} items={rows(6)} loading={false} />);
55
- expect(screen.getByText('Row 6')).toBeTruthy();
56
- expect(skeletons()).toHaveLength(0);
57
- });
58
- });
@@ -1,127 +0,0 @@
1
- 'use client';
2
-
3
- import type { ComponentType, ReactNode } from 'react';
4
- import { cn } from '../../../utils/cn';
5
-
6
- /** THE admin card grid: columns and gap shared by the live grid and its skeleton. */
7
- export const ADMIN_CONTENT_CARD_GRID_CLASS =
8
- 'grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-[var(--spacing-system-lf)]';
9
-
10
- /**
11
- * One `AdminContentCard`-shaped placeholder. It mirrors the card box for box (3:2
12
- * cover, then a `gap-3 p-5` column: two-line title, subtitle, two-line summary,
13
- * badges row, meta row, bordered actions row) so a skeleton, a real card and a
14
- * reserved slot are the same height. `p-5` has no ODS token (20px); it is the
15
- * card's own padding and must match it exactly.
16
- */
17
- export function AdminContentCardSkeleton({ className }: { className?: string }) {
18
- return (
19
- <div
20
- className={cn(
21
- 'flex h-full flex-col overflow-hidden rounded-2xl border border-ods-border bg-ods-card animate-pulse',
22
- className,
23
- )}
24
- >
25
- <div className="aspect-[3/2] w-full shrink-0 bg-ods-border/20" />
26
- <div className="flex flex-1 flex-col gap-[var(--spacing-system-sf)] p-5">
27
- <div className="h-12 w-full rounded bg-ods-border" />
28
- <div className="h-5 w-1/2 rounded bg-ods-border" />
29
- <div className="h-10 w-full rounded bg-ods-border" />
30
- <div className="flex items-center gap-[var(--spacing-system-xsf)]">
31
- <div className="h-5 w-20 rounded-full bg-ods-border" />
32
- <div className="h-5 w-24 rounded-full bg-ods-border" />
33
- </div>
34
- <div className="h-5 w-32 rounded bg-ods-border" />
35
- <div className="mt-auto flex items-center justify-between border-t border-ods-border pt-[var(--spacing-system-sf)]">
36
- <div className="h-10 w-24 rounded bg-ods-border" />
37
- <div className="flex gap-[var(--spacing-system-xsf)]">
38
- <div className="h-10 w-20 rounded bg-ods-border" />
39
- <div className="h-10 w-20 rounded bg-ods-border" />
40
- </div>
41
- </div>
42
- </div>
43
- </div>
44
- );
45
- }
46
-
47
- export interface AdminContentCardGridProps<T> {
48
- items: readonly T[];
49
- /** One page of cards: the loading skeleton count and the reserved slot count. */
50
- pageSize: number;
51
- loading: boolean;
52
- itemKey: (item: T) => string | number;
53
- renderCard: (item: T) => ReactNode;
54
- /** Rendered when `items` is empty, floated top-aligned over a full page of reserved slots. */
55
- empty: ReactNode;
56
- /**
57
- * The placeholder card, used for loading and for reserved slots. Default
58
- * `AdminContentCardSkeleton`; a grid of another card (e.g. `HowIWorkCard`)
59
- * passes that card's own skeleton so the heights match.
60
- */
61
- Skeleton?: ComponentType<{ className?: string }>;
62
- className?: string;
63
- }
64
-
65
- /**
66
- * A paginated card grid that is ONE height in every state: the card-grid
67
- * counterpart of the admin `Table`'s `skeletonRows` + `keepHeightWhenEmpty`.
68
- *
69
- * - loading: `pageSize` skeleton cards;
70
- * - a short page: the cards, then invisible skeleton-shaped slots up to `pageSize`;
71
- * - empty: `empty` floats top-aligned over a full page of invisible slots.
72
- *
73
- * Pair it with a pagination control that keeps its space on a single page, so the
74
- * pagination row holds too.
75
- */
76
- export function AdminContentCardGrid<T>({
77
- items,
78
- pageSize,
79
- loading,
80
- itemKey,
81
- renderCard,
82
- empty,
83
- Skeleton = AdminContentCardSkeleton,
84
- className,
85
- }: AdminContentCardGridProps<T>) {
86
- const gridClass = cn(ADMIN_CONTENT_CARD_GRID_CLASS, className);
87
-
88
- if (loading) {
89
- return (
90
- <div className={gridClass} data-state="loading">
91
- {Array.from({ length: pageSize }, (_, i) => (
92
- <Skeleton key={i} />
93
- ))}
94
- </div>
95
- );
96
- }
97
-
98
- const slots = Array.from({ length: Math.max(0, pageSize - items.length) }, (_, i) => (
99
- <Skeleton key={`slot-${i}`} className="invisible" />
100
- ));
101
-
102
- if (items.length === 0) {
103
- return (
104
- <div className="relative" data-state="empty">
105
- <div aria-hidden className={gridClass}>
106
- {slots}
107
- </div>
108
- <div className="absolute inset-x-0 top-0">{empty}</div>
109
- </div>
110
- );
111
- }
112
-
113
- return (
114
- <div className={gridClass} data-state="items">
115
- {items.map((item) => (
116
- <div key={itemKey(item)} className="h-full">
117
- {renderCard(item)}
118
- </div>
119
- ))}
120
- {slots.length > 0 && (
121
- <div aria-hidden className="contents">
122
- {slots}
123
- </div>
124
- )}
125
- </div>
126
- );
127
- }