@flamingo-stack/openframe-frontend-core 0.0.521-1672.4346.1 → 0.0.521

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 (105) hide show
  1. package/dist/{chunk-3YD5L6CF.js → chunk-5NQTT7D5.js} +5 -5
  2. package/dist/{chunk-R7NAIAJL.cjs → chunk-67R53SBT.cjs} +5 -5
  3. package/dist/{chunk-R7NAIAJL.cjs.map → chunk-67R53SBT.cjs.map} +1 -1
  4. package/dist/{chunk-YJMEJ5CK.js → chunk-6AQKSCZ5.js} +3516 -3564
  5. package/dist/chunk-6AQKSCZ5.js.map +1 -0
  6. package/dist/{chunk-PCLGSY3H.cjs → chunk-6Q55DOM2.cjs} +3 -3
  7. package/dist/{chunk-PCLGSY3H.cjs.map → chunk-6Q55DOM2.cjs.map} +1 -1
  8. package/dist/{chunk-T4V6HUWL.js → chunk-7QEBK5ZY.js} +2 -2
  9. package/dist/{chunk-IUSGKPCB.cjs → chunk-AAM6IP3G.cjs} +7 -7
  10. package/dist/{chunk-IUSGKPCB.cjs.map → chunk-AAM6IP3G.cjs.map} +1 -1
  11. package/dist/{chunk-F26FP3TD.js → chunk-AIVZKRDL.js} +2 -2
  12. package/dist/{chunk-D7NEBU3I.js → chunk-ATN5CTEP.js} +6 -6
  13. package/dist/{chunk-CXVFRZGE.cjs → chunk-BFGMIDQN.cjs} +9 -9
  14. package/dist/{chunk-CXVFRZGE.cjs.map → chunk-BFGMIDQN.cjs.map} +1 -1
  15. package/dist/{chunk-OPDQLZBE.cjs → chunk-BSJAHSOO.cjs} +4 -4
  16. package/dist/{chunk-OPDQLZBE.cjs.map → chunk-BSJAHSOO.cjs.map} +1 -1
  17. package/dist/{chunk-BYLOB3WX.cjs → chunk-FBK7CPXN.cjs} +31 -31
  18. package/dist/{chunk-BYLOB3WX.cjs.map → chunk-FBK7CPXN.cjs.map} +1 -1
  19. package/dist/{chunk-PESJRPTI.js → chunk-FHSZYVS5.js} +4 -4
  20. package/dist/{chunk-IEANKZKQ.cjs → chunk-GAU637M2.cjs} +11 -11
  21. package/dist/{chunk-IEANKZKQ.cjs.map → chunk-GAU637M2.cjs.map} +1 -1
  22. package/dist/{chunk-DSQVHOBJ.js → chunk-GGHXEEYL.js} +2 -2
  23. package/dist/{chunk-ROVPWLF6.cjs → chunk-KKQX7YWX.cjs} +26 -26
  24. package/dist/{chunk-ROVPWLF6.cjs.map → chunk-KKQX7YWX.cjs.map} +1 -1
  25. package/dist/{chunk-ZTMU46Z2.cjs → chunk-KSV7S3XR.cjs} +87 -87
  26. package/dist/{chunk-ZTMU46Z2.cjs.map → chunk-KSV7S3XR.cjs.map} +1 -1
  27. package/dist/{chunk-XPWY7QYA.js → chunk-NP62VGRO.js} +4 -4
  28. package/dist/{chunk-HI3QMNMF.js → chunk-R63KHYFN.js} +2 -2
  29. package/dist/{chunk-UCCMPYA2.cjs → chunk-RDGUBROF.cjs} +37 -37
  30. package/dist/{chunk-UCCMPYA2.cjs.map → chunk-RDGUBROF.cjs.map} +1 -1
  31. package/dist/{chunk-OOCRSYM5.cjs → chunk-SX7V35WT.cjs} +66 -114
  32. package/dist/chunk-SX7V35WT.cjs.map +1 -0
  33. package/dist/{chunk-A4QVRXV4.js → chunk-TFUSHMTY.js} +2 -2
  34. package/dist/{chunk-EYXECQ7S.js → chunk-TXO7WK2L.js} +2 -2
  35. package/dist/{chunk-ZH6R6YGT.js → chunk-VFYIFHJ3.js} +2 -2
  36. package/dist/{chunk-7MZLJW5X.cjs → chunk-WK5Z2Z5T.cjs} +14 -14
  37. package/dist/{chunk-7MZLJW5X.cjs.map → chunk-WK5Z2Z5T.cjs.map} +1 -1
  38. package/dist/{chunk-S4MSCGTI.cjs → chunk-XYVJKPUW.cjs} +26 -26
  39. package/dist/{chunk-S4MSCGTI.cjs.map → chunk-XYVJKPUW.cjs.map} +1 -1
  40. package/dist/{chunk-PP2AHKEI.js → chunk-Y3ES77KJ.js} +2 -2
  41. package/dist/{chunk-4OETDFIN.js → chunk-YJ4VCBRT.js} +2 -2
  42. package/dist/{chunk-LPYOUQMF.cjs → chunk-YPT3CBFR.cjs} +61 -61
  43. package/dist/{chunk-LPYOUQMF.cjs.map → chunk-YPT3CBFR.cjs.map} +1 -1
  44. package/dist/components/case-studies/index.cjs +8 -8
  45. package/dist/components/case-studies/index.js +2 -2
  46. package/dist/components/chat/index.cjs +2 -2
  47. package/dist/components/chat/index.js +1 -1
  48. package/dist/components/contact/index.cjs +3 -3
  49. package/dist/components/contact/index.js +2 -2
  50. package/dist/components/docs/index.cjs +5 -5
  51. package/dist/components/docs/index.js +4 -4
  52. package/dist/components/embeds/index.cjs +3 -3
  53. package/dist/components/embeds/index.js +2 -2
  54. package/dist/components/faq/index.cjs +3 -3
  55. package/dist/components/faq/index.js +2 -2
  56. package/dist/components/features/auth/sso-providers.d.ts +1 -1
  57. package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
  58. package/dist/components/features/index.cjs +2 -2
  59. package/dist/components/features/index.js +1 -1
  60. package/dist/components/help-center-pages/index.cjs +22 -22
  61. package/dist/components/help-center-pages/index.js +13 -13
  62. package/dist/components/index.cjs +132 -134
  63. package/dist/components/index.cjs.map +1 -1
  64. package/dist/components/index.js +11 -13
  65. package/dist/components/index.js.map +1 -1
  66. package/dist/components/meeting-scheduler/index.cjs +34 -34
  67. package/dist/components/meeting-scheduler/index.js +3 -3
  68. package/dist/components/navigation/index.cjs +2 -2
  69. package/dist/components/navigation/index.js +1 -1
  70. package/dist/components/onboarding-guides/index.cjs +5 -5
  71. package/dist/components/onboarding-guides/index.js +4 -4
  72. package/dist/components/related-content/index.cjs +3 -3
  73. package/dist/components/related-content/index.js +2 -2
  74. package/dist/components/tickets/index.cjs +6 -6
  75. package/dist/components/tickets/index.js +5 -5
  76. package/dist/components/ui/index.cjs +2 -4
  77. package/dist/components/ui/index.cjs.map +1 -1
  78. package/dist/components/ui/index.d.ts +0 -1
  79. package/dist/components/ui/index.d.ts.map +1 -1
  80. package/dist/components/ui/index.js +1 -3
  81. package/dist/index.cjs +2 -4
  82. package/dist/index.cjs.map +1 -1
  83. package/dist/index.js +1 -3
  84. package/package.json +1 -1
  85. package/src/components/features/auth/sso-providers.tsx +3 -1
  86. package/src/components/ui/index.ts +0 -1
  87. package/src/stories/auth/Login.stories.tsx +1 -1
  88. package/dist/chunk-OOCRSYM5.cjs.map +0 -1
  89. package/dist/chunk-YJMEJ5CK.js.map +0 -1
  90. package/dist/components/ui/json-detail-list.d.ts +0 -5
  91. package/dist/components/ui/json-detail-list.d.ts.map +0 -1
  92. package/src/components/ui/json-detail-list.tsx +0 -98
  93. /package/dist/{chunk-3YD5L6CF.js.map → chunk-5NQTT7D5.js.map} +0 -0
  94. /package/dist/{chunk-T4V6HUWL.js.map → chunk-7QEBK5ZY.js.map} +0 -0
  95. /package/dist/{chunk-F26FP3TD.js.map → chunk-AIVZKRDL.js.map} +0 -0
  96. /package/dist/{chunk-D7NEBU3I.js.map → chunk-ATN5CTEP.js.map} +0 -0
  97. /package/dist/{chunk-PESJRPTI.js.map → chunk-FHSZYVS5.js.map} +0 -0
  98. /package/dist/{chunk-DSQVHOBJ.js.map → chunk-GGHXEEYL.js.map} +0 -0
  99. /package/dist/{chunk-XPWY7QYA.js.map → chunk-NP62VGRO.js.map} +0 -0
  100. /package/dist/{chunk-HI3QMNMF.js.map → chunk-R63KHYFN.js.map} +0 -0
  101. /package/dist/{chunk-A4QVRXV4.js.map → chunk-TFUSHMTY.js.map} +0 -0
  102. /package/dist/{chunk-EYXECQ7S.js.map → chunk-TXO7WK2L.js.map} +0 -0
  103. /package/dist/{chunk-ZH6R6YGT.js.map → chunk-VFYIFHJ3.js.map} +0 -0
  104. /package/dist/{chunk-PP2AHKEI.js.map → chunk-Y3ES77KJ.js.map} +0 -0
  105. /package/dist/{chunk-4OETDFIN.js.map → chunk-YJ4VCBRT.js.map} +0 -0
@@ -1,5 +0,0 @@
1
- export declare function JsonDetailList({ data, depth }: {
2
- data: unknown;
3
- depth?: number;
4
- }): import("react").JSX.Element;
5
- //# sourceMappingURL=json-detail-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json-detail-list.d.ts","sourceRoot":"","sources":["../../../src/components/ui/json-detail-list.tsx"],"names":[],"mappings":"AA8DA,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,KAAS,EAAE,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAmCpF"}
@@ -1,98 +0,0 @@
1
- 'use client';
2
-
3
- import { formatRelativeTime } from '../../utils/date-utils';
4
-
5
- /**
6
- * THE generic JSON detail renderer — readable key/value prose for machine
7
- * payloads whose field names are NOT guaranteed (evidence blobs, audit
8
- * payloads, webhook bodies). No schema knowledge: keys are humanised,
9
- * ISO-dates become relative times, nested objects indent, and anything
10
- * unparseable falls back to raw. Use this instead of `<pre>{JSON.stringify}`
11
- * or a per-shape bespoke renderer.
12
- */
13
-
14
- const ISO_DATE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;
15
-
16
- function humanizeKey(key: string): string {
17
- const spaced = key
18
- .replace(/[_-]+/g, ' ')
19
- .replace(/([a-z])([A-Z])/g, '$1 $2')
20
- .trim();
21
- return spaced.charAt(0).toUpperCase() + spaced.slice(1);
22
- }
23
-
24
- function Value({ value, depth }: { value: unknown; depth: number }) {
25
- if (value === null || value === undefined) {
26
- return <span className="text-ods-text-secondary">—</span>;
27
- }
28
- if (typeof value === 'string') {
29
- if (ISO_DATE.test(value)) {
30
- return (
31
- <span title={value} className="text-ods-text-secondary">
32
- {formatRelativeTime(value)}
33
- </span>
34
- );
35
- }
36
- return <span className="whitespace-pre-wrap text-ods-text-primary">{value}</span>;
37
- }
38
- if (typeof value === 'number' || typeof value === 'boolean') {
39
- return <span className="text-code text-ods-text-primary">{String(value)}</span>;
40
- }
41
- if (Array.isArray(value)) {
42
- if (value.every(v => typeof v === 'string' || typeof v === 'number')) {
43
- return <span className="text-ods-text-primary">{value.join(', ')}</span>;
44
- }
45
- return (
46
- <div className="space-y-[var(--spacing-system-xxs)]">
47
- {value.map((v, i) => (
48
- <Value key={i} value={v} depth={depth + 1} />
49
- ))}
50
- </div>
51
- );
52
- }
53
- if (typeof value === 'object' && depth < 3) {
54
- return <JsonDetailList data={value} depth={depth + 1} />;
55
- }
56
- return (
57
- <pre className="whitespace-pre-wrap text-code text-ods-text-secondary">
58
- {JSON.stringify(value, null, 2)}
59
- </pre>
60
- );
61
- }
62
-
63
- export function JsonDetailList({ data, depth = 0 }: { data: unknown; depth?: number }) {
64
- const obj =
65
- typeof data === 'string'
66
- ? (() => {
67
- try {
68
- return JSON.parse(data) as unknown;
69
- } catch {
70
- return null;
71
- }
72
- })()
73
- : data;
74
-
75
- if (!obj || typeof obj !== 'object' || Array.isArray(obj)) {
76
- // Not an object — render whatever it is faithfully.
77
- return typeof data === 'string' ? (
78
- <p className="whitespace-pre-wrap text-h6 text-ods-text-primary">{data}</p>
79
- ) : (
80
- <pre className="whitespace-pre-wrap text-code text-ods-text-secondary">
81
- {JSON.stringify(data, null, 2)}
82
- </pre>
83
- );
84
- }
85
-
86
- return (
87
- <dl className={`space-y-[var(--spacing-system-xsf)]${depth > 0 ? ' pl-[var(--spacing-system-sf)] border-l border-ods-border' : ''}`}>
88
- {Object.entries(obj as Record<string, unknown>).map(([key, value]) => (
89
- <div key={key}>
90
- <dt className="text-h6 text-ods-text-secondary">{humanizeKey(key)}</dt>
91
- <dd className="text-h6">
92
- <Value value={value} depth={depth} />
93
- </dd>
94
- </div>
95
- ))}
96
- </dl>
97
- );
98
- }