@flamingo-stack/openframe-frontend-core 0.0.789 → 0.0.790

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 (93) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/{case-study-card-FDDS5EG3.cjs → case-study-card-MCAM232N.cjs} +5 -5
  3. package/dist/{chunk-W4RRVQZQ.cjs → chunk-5FV2FQQD.cjs} +246 -241
  4. package/dist/{chunk-IKCMAIJ7.cjs → chunk-6YPT2BD4.cjs} +80 -80
  5. package/dist/{chunk-G33O32RX.cjs → chunk-72NE4G63.cjs} +4 -4
  6. package/dist/{chunk-ZH7SZ46Q.cjs → chunk-7GNSCDUK.cjs} +847 -847
  7. package/dist/{chunk-ORIXQCPX.cjs → chunk-7VXMO4XJ.cjs} +8 -8
  8. package/dist/{chunk-JHFSLLQ6.cjs → chunk-ANQCSCNU.cjs} +2 -2
  9. package/dist/{chunk-YWPYSQYG.cjs → chunk-AT4C2YMA.cjs} +30 -1
  10. package/dist/{chunk-7A23WZY7.cjs → chunk-BIYLAAFI.cjs} +15 -15
  11. package/dist/{chunk-GDOJPPOF.cjs → chunk-C5EPWKM7.cjs} +50 -50
  12. package/dist/{chunk-3IJDTTOY.cjs → chunk-DRWPSN3A.cjs} +2 -2
  13. package/dist/{chunk-GMGM3JV3.cjs → chunk-EU3NQPFE.cjs} +54 -54
  14. package/dist/{chunk-HDCAH4AT.cjs → chunk-EY64NXE7.cjs} +90 -90
  15. package/dist/{chunk-XI4KB7EF.cjs → chunk-F4RCB5LB.cjs} +14 -14
  16. package/dist/{chunk-OCTDWSTS.cjs → chunk-F62QXKNL.cjs} +39 -39
  17. package/dist/{chunk-EQNNPLCN.cjs → chunk-F7UIQ6UG.cjs} +14 -14
  18. package/dist/{chunk-F2GRQ2RL.cjs → chunk-GYSRYYDM.cjs} +4 -4
  19. package/dist/{chunk-FJBE3WIJ.cjs → chunk-HCXNFMLO.cjs} +4 -4
  20. package/dist/{chunk-MFPTTZI5.cjs → chunk-HKMEI2NX.cjs} +40 -40
  21. package/dist/{chunk-UB3C22AW.cjs → chunk-ISSBE5JP.cjs} +121 -121
  22. package/dist/{chunk-ZKNEKZS5.cjs → chunk-IYWVS3SS.cjs} +6 -6
  23. package/dist/{chunk-MMC7H7C6.cjs → chunk-KI5TJDK3.cjs} +9 -9
  24. package/dist/{chunk-QVF5A6UT.cjs → chunk-LL6PXI6C.cjs} +2 -2
  25. package/dist/{chunk-RJIFPWO4.cjs → chunk-LZG7PBF3.cjs} +24 -24
  26. package/dist/{chunk-KO4IF7R2.cjs → chunk-O4XBGLMA.cjs} +3 -3
  27. package/dist/{chunk-QELEIFHA.cjs → chunk-OWKLWCLZ.cjs} +52 -52
  28. package/dist/{chunk-4ZLLUZQB.cjs → chunk-PHWLEYAG.cjs} +55 -55
  29. package/dist/{chunk-PPBNMZC5.cjs → chunk-PLNLTN4R.cjs} +13 -13
  30. package/dist/{chunk-7VEYDE3T.cjs → chunk-PQIWR4Q2.cjs} +23 -23
  31. package/dist/{chunk-7NUFHVR6.cjs → chunk-QPXC3LEV.cjs} +19 -19
  32. package/dist/{chunk-IODLD4VM.cjs → chunk-RFIBRGXG.cjs} +3 -3
  33. package/dist/{chunk-WDUHSGRT.cjs → chunk-RIIMY7XW.cjs} +4 -4
  34. package/dist/{chunk-6TFNJDEQ.cjs → chunk-RPC4P7GY.cjs} +60 -87
  35. package/dist/{chunk-DNJVLDCH.cjs → chunk-RYSEW4XI.cjs} +31 -31
  36. package/dist/{chunk-N3PYKA3B.cjs → chunk-TIDJN3OQ.cjs} +5 -5
  37. package/dist/{chunk-KB7SPZFI.cjs → chunk-V4RKY4ZY.cjs} +253 -253
  38. package/dist/{chunk-HOYSVWKQ.cjs → chunk-WTNAXQJW.cjs} +6 -6
  39. package/dist/{chunk-SBC7RG7O.cjs → chunk-ZCMXBX4Z.cjs} +14 -14
  40. package/dist/{cloud-tenants-3SFM4VJZ.cjs → cloud-tenants-D6DYR6UV.cjs} +18 -18
  41. package/dist/components/case-studies/index.cjs +33 -33
  42. package/dist/components/chat/index.cjs +14 -14
  43. package/dist/components/contact/index.cjs +19 -19
  44. package/dist/components/docs/index.cjs +22 -22
  45. package/dist/components/embeds/index.cjs +19 -19
  46. package/dist/components/faq/index.cjs +20 -20
  47. package/dist/components/features/index.cjs +18 -18
  48. package/dist/components/help-center-pages/index.cjs +120 -120
  49. package/dist/components/index.cjs +122 -120
  50. package/dist/components/layout/page-heading.d.ts +7 -3
  51. package/dist/components/layout/page-heading.d.ts.map +1 -1
  52. package/dist/components/layout/page-heading.js +10 -3
  53. package/dist/components/layout/page-layout.d.ts +2 -2
  54. package/dist/components/layout/page-layout.d.ts.map +1 -1
  55. package/dist/components/layout/title-block.d.ts +2 -7
  56. package/dist/components/layout/title-block.d.ts.map +1 -1
  57. package/dist/components/layout/title-block.js +6 -31
  58. package/dist/components/loading/index.d.ts +1 -1
  59. package/dist/components/loading/index.d.ts.map +1 -1
  60. package/dist/components/loading/index.js +2 -0
  61. package/dist/components/loading/unified-skeleton.d.ts +17 -0
  62. package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
  63. package/dist/components/loading/unified-skeleton.js +30 -1
  64. package/dist/components/meeting-scheduler/index.cjs +104 -104
  65. package/dist/components/navigation/index.cjs +21 -21
  66. package/dist/components/onboarding-guides/index.cjs +21 -21
  67. package/dist/components/product-demo/index.cjs +30 -30
  68. package/dist/components/related-content/index.cjs +11 -11
  69. package/dist/components/tickets/index.cjs +25 -25
  70. package/dist/components/ui/file-manager/index.cjs +13 -13
  71. package/dist/components/ui/index.cjs +18 -18
  72. package/dist/components/ui/index.d.ts +1 -1
  73. package/dist/components/ui/index.d.ts.map +1 -1
  74. package/dist/{devices-PE57CA5O.cjs → devices-MZQ4573H.cjs} +19 -19
  75. package/dist/embed-shims/index.cjs +3 -3
  76. package/dist/embed-shims/next-image.cjs +3 -3
  77. package/dist/{embeddable-chat-TIUNTOXQ.cjs → embeddable-chat-QLJ2KSWT.cjs} +81 -81
  78. package/dist/hooks/index.cjs +4 -4
  79. package/dist/index.cjs +26 -26
  80. package/dist/{knowledge-ZFJQMMR2.cjs → knowledge-QZTFICLS.cjs} +19 -19
  81. package/dist/{logs-4GKGMB7A.cjs → logs-2YOR2SUA.cjs} +26 -26
  82. package/dist/{policies-TRWFGAEE.cjs → policies-KKFC4UOU.cjs} +22 -22
  83. package/dist/{remote-session-WMAV72M7.cjs → remote-session-WKLEYACD.cjs} +10 -10
  84. package/dist/{scripts-2SHRGH3L.cjs → scripts-UA46WAET.cjs} +25 -25
  85. package/dist/{software-update-ROHSE2BE.cjs → software-update-IN6TJL73.cjs} +22 -22
  86. package/dist/{tickets-board-37LBIQ65.cjs → tickets-board-URMIIAKD.cjs} +10 -10
  87. package/package.json +1 -1
  88. package/src/components/layout/page-heading.tsx +30 -8
  89. package/src/components/layout/page-layout.tsx +3 -2
  90. package/src/components/layout/title-block.tsx +7 -29
  91. package/src/components/loading/index.ts +2 -0
  92. package/src/components/loading/unified-skeleton.tsx +42 -0
  93. package/src/components/ui/index.ts +1 -1
@@ -15,12 +15,12 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
15
15
 
16
16
 
17
17
 
18
- var _chunkZH7SZ46Qcjs = require('./chunk-ZH7SZ46Q.cjs');
19
- require('./chunk-7VEYDE3T.cjs');
18
+ var _chunk7GNSCDUKcjs = require('./chunk-7GNSCDUK.cjs');
19
+ require('./chunk-PQIWR4Q2.cjs');
20
20
  require('./chunk-HJBJHQKE.cjs');
21
21
 
22
22
 
23
- var _chunk6TFNJDEQcjs = require('./chunk-6TFNJDEQ.cjs');
23
+ var _chunkRPC4P7GYcjs = require('./chunk-RPC4P7GY.cjs');
24
24
  require('./chunk-HQQE74RO.cjs');
25
25
  require('./chunk-DEY6XXGO.cjs');
26
26
  require('./chunk-CWA6J7KC.cjs');
@@ -28,12 +28,12 @@ require('./chunk-VXAKQRV7.cjs');
28
28
  require('./chunk-24I6RFVU.cjs');
29
29
  require('./chunk-A6P6DHEZ.cjs');
30
30
  require('./chunk-MZ4KBSH7.cjs');
31
- require('./chunk-IODLD4VM.cjs');
32
- require('./chunk-UB3C22AW.cjs');
33
- require('./chunk-KB7SPZFI.cjs');
34
- require('./chunk-7A23WZY7.cjs');
31
+ require('./chunk-RFIBRGXG.cjs');
32
+ require('./chunk-ISSBE5JP.cjs');
33
+ require('./chunk-V4RKY4ZY.cjs');
34
+ require('./chunk-BIYLAAFI.cjs');
35
35
  require('./chunk-RKWEFZ6P.cjs');
36
- require('./chunk-SBC7RG7O.cjs');
36
+ require('./chunk-ZCMXBX4Z.cjs');
37
37
  require('./chunk-QVKWKY4O.cjs');
38
38
  require('./chunk-ZOZR3QI2.cjs');
39
39
  require('./chunk-OMV5S5PI.cjs');
@@ -1831,13 +1831,13 @@ require('./chunk-7DNL734S.cjs');
1831
1831
  require('./chunk-WWUSFOJ7.cjs');
1832
1832
  require('./chunk-SKI6NKOE.cjs');
1833
1833
  require('./chunk-EWPR7662.cjs');
1834
- require('./chunk-XI4KB7EF.cjs');
1835
- require('./chunk-W4RRVQZQ.cjs');
1836
- require('./chunk-GDOJPPOF.cjs');
1834
+ require('./chunk-F4RCB5LB.cjs');
1835
+ require('./chunk-5FV2FQQD.cjs');
1836
+ require('./chunk-C5EPWKM7.cjs');
1837
1837
  require('./chunk-QVC5CMC5.cjs');
1838
1838
  require('./chunk-JXQNECXM.cjs');
1839
- require('./chunk-G33O32RX.cjs');
1840
- require('./chunk-ORIXQCPX.cjs');
1839
+ require('./chunk-72NE4G63.cjs');
1840
+ require('./chunk-7VXMO4XJ.cjs');
1841
1841
  require('./chunk-S5C3OZCO.cjs');
1842
1842
  require('./chunk-32ASZMTV.cjs');
1843
1843
  require('./chunk-OOYBIS7D.cjs');
@@ -1846,7 +1846,7 @@ require('./chunk-6VOOPMP5.cjs');
1846
1846
  require('./chunk-ORO54HDF.cjs');
1847
1847
  require('./chunk-RUHKTWGB.cjs');
1848
1848
  require('./chunk-BLH2SFOO.cjs');
1849
- require('./chunk-QVF5A6UT.cjs');
1849
+ require('./chunk-LL6PXI6C.cjs');
1850
1850
  require('./chunk-7PNRXJX2.cjs');
1851
1851
  require('./chunk-NTPX5GXI.cjs');
1852
1852
  require('./chunk-AQXKXZWB.cjs');
@@ -1854,15 +1854,15 @@ require('./chunk-V4FXUIMH.cjs');
1854
1854
  require('./chunk-SZHDXXMK.cjs');
1855
1855
  require('./chunk-75PJ2SAZ.cjs');
1856
1856
  require('./chunk-5GJM7VRR.cjs');
1857
- require('./chunk-3IJDTTOY.cjs');
1857
+ require('./chunk-DRWPSN3A.cjs');
1858
1858
  require('./chunk-UJ7AXHRZ.cjs');
1859
- require('./chunk-FJBE3WIJ.cjs');
1859
+ require('./chunk-HCXNFMLO.cjs');
1860
1860
  require('./chunk-JRTDBPJT.cjs');
1861
1861
  require('./chunk-HYF4LPXF.cjs');
1862
1862
  require('./chunk-Z74QE57T.cjs');
1863
1863
  require('./chunk-XZJCBIYR.cjs');
1864
1864
  require('./chunk-GD6RPLHX.cjs');
1865
- require('./chunk-YWPYSQYG.cjs');
1865
+ require('./chunk-AT4C2YMA.cjs');
1866
1866
  require('./chunk-K7I3YYYU.cjs');
1867
1867
  require('./chunk-6YZNUHXT.cjs');
1868
1868
  require('./chunk-V45KLJQP.cjs');
@@ -1920,14 +1920,14 @@ var noop = () => {
1920
1920
  var HIDDEN_WHEN_COMPACT = ["organization"];
1921
1921
  function StaticPackageField({ value }) {
1922
1922
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1923
- _chunk6TFNJDEQcjs.Autocomplete,
1923
+ _chunkRPC4P7GYcjs.Autocomplete,
1924
1924
  {
1925
- label: _chunkZH7SZ46Qcjs.PACKAGE_SEARCH_LABEL,
1925
+ label: _chunk7GNSCDUKcjs.PACKAGE_SEARCH_LABEL,
1926
1926
  labelVariant: "large",
1927
1927
  options: value ? [{ value: value.id, label: value.name, description: _nullishCoalesce(value.description, () => ( void 0)) }] : [],
1928
1928
  value: _nullishCoalesce(_optionalChain([value, 'optionalAccess', _ => _.id]), () => ( null)),
1929
1929
  onChange: noop,
1930
- placeholder: _chunkZH7SZ46Qcjs.PACKAGE_SEARCH_PLACEHOLDER
1930
+ placeholder: _chunk7GNSCDUKcjs.PACKAGE_SEARCH_PLACEHOLDER
1931
1931
  }
1932
1932
  );
1933
1933
  }
@@ -1941,7 +1941,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1941
1941
  [fixture.devices, fixture.selectedIds]
1942
1942
  );
1943
1943
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg pt-[var(--spacing-system-l)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1944
- _chunkZH7SZ46Qcjs.SoftwareActionForm,
1944
+ _chunk7GNSCDUKcjs.SoftwareActionForm,
1945
1945
  {
1946
1946
  action: fixture.action,
1947
1947
  showHeader: false,
@@ -1953,7 +1953,7 @@ function SoftwareUpdateScreen({ compact = false }) {
1953
1953
  initialValues: fixture.initialValues,
1954
1954
  renderPackageSearch,
1955
1955
  renderDevicePicker: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1956
- _chunkZH7SZ46Qcjs.DeviceSelector,
1956
+ _chunk7GNSCDUKcjs.DeviceSelector,
1957
1957
  {
1958
1958
  devices: selected,
1959
1959
  loading: false,
@@ -10,9 +10,9 @@ var _chunkDKOLQPE7cjs = require('./chunk-DKOLQPE7.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunk7VEYDE3Tcjs = require('./chunk-7VEYDE3T.cjs');
13
+ var _chunkPQIWR4Q2cjs = require('./chunk-PQIWR4Q2.cjs');
14
14
  require('./chunk-VXAKQRV7.cjs');
15
- require('./chunk-7A23WZY7.cjs');
15
+ require('./chunk-BIYLAAFI.cjs');
16
16
  require('./chunk-QVKWKY4O.cjs');
17
17
  require('./chunk-ZOZR3QI2.cjs');
18
18
  require('./chunk-OMV5S5PI.cjs');
@@ -1806,7 +1806,7 @@ require('./chunk-HBAVHYXO.cjs');
1806
1806
  require('./chunk-WWUSFOJ7.cjs');
1807
1807
  require('./chunk-SKI6NKOE.cjs');
1808
1808
  require('./chunk-QVC5CMC5.cjs');
1809
- require('./chunk-ORIXQCPX.cjs');
1809
+ require('./chunk-7VXMO4XJ.cjs');
1810
1810
  require('./chunk-S5C3OZCO.cjs');
1811
1811
  require('./chunk-32ASZMTV.cjs');
1812
1812
  require('./chunk-OOYBIS7D.cjs');
@@ -1819,11 +1819,11 @@ require('./chunk-V4FXUIMH.cjs');
1819
1819
  require('./chunk-SZHDXXMK.cjs');
1820
1820
  require('./chunk-75PJ2SAZ.cjs');
1821
1821
  require('./chunk-5GJM7VRR.cjs');
1822
- require('./chunk-3IJDTTOY.cjs');
1822
+ require('./chunk-DRWPSN3A.cjs');
1823
1823
  require('./chunk-HYF4LPXF.cjs');
1824
1824
  require('./chunk-Z74QE57T.cjs');
1825
1825
  require('./chunk-XZJCBIYR.cjs');
1826
- require('./chunk-YWPYSQYG.cjs');
1826
+ require('./chunk-AT4C2YMA.cjs');
1827
1827
  require('./chunk-K7I3YYYU.cjs');
1828
1828
  require('./chunk-6YZNUHXT.cjs');
1829
1829
  require('./chunk-V45KLJQP.cjs');
@@ -1840,7 +1840,7 @@ function buildTicketsBoardFixture(cast) {
1840
1840
  const dana = assignee(cast.person("dana"));
1841
1841
  const alex = assignee(cast.person("alex"));
1842
1842
  return [
1843
- _chunk7VEYDE3Tcjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
1843
+ _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ACTIVE", [
1844
1844
  ticket("tk-1051", "Printer offline at the front desk", "ACTIVE", {
1845
1845
  ticketNumber: "1051",
1846
1846
  agent: "fae",
@@ -1858,7 +1858,7 @@ function buildTicketsBoardFixture(cast) {
1858
1858
  tags: ["onboarding"]
1859
1859
  })
1860
1860
  ]),
1861
- _chunk7VEYDE3Tcjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
1861
+ _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "TECH_REQUIRED", [
1862
1862
  ticket("tk-1049", "Acrobat Pro for Maya", "TECH_REQUIRED", {
1863
1863
  ticketNumber: "1049",
1864
1864
  agent: "fae",
@@ -1882,7 +1882,7 @@ function buildTicketsBoardFixture(cast) {
1882
1882
  escalatedByUser: true
1883
1883
  })
1884
1884
  ]),
1885
- _chunk7VEYDE3Tcjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
1885
+ _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0, "ON_HOLD", [
1886
1886
  ticket("tk-1046", "Replace the conference room display", "ON_HOLD", {
1887
1887
  ticketNumber: "1046",
1888
1888
  organizationName: _chunkDKOLQPE7cjs.DEMO_ORGANIZATIONS.acme.name,
@@ -1891,7 +1891,7 @@ function buildTicketsBoardFixture(cast) {
1891
1891
  activity: { kind: "waiting-external" }
1892
1892
  })
1893
1893
  ]),
1894
- _chunk7VEYDE3Tcjs.columnFromTicketStatus.call(void 0,
1894
+ _chunkPQIWR4Q2cjs.columnFromTicketStatus.call(void 0,
1895
1895
  "RESOLVED",
1896
1896
  [
1897
1897
  ticket("tk-1048", "Slow laptop", "RESOLVED", {
@@ -1927,7 +1927,7 @@ function TicketsBoardScreen({ compact = false }) {
1927
1927
  const cast = _chunkSTEJZPIOcjs.useProductDemoCast.call(void 0, );
1928
1928
  const board = _react.useMemo.call(void 0, () => buildTicketsBoardFixture(cast), [cast]);
1929
1929
  const columns = compact ? board.filter((column) => column.id !== "ON_HOLD") : board;
1930
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VEYDE3Tcjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
1930
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "h-full bg-ods-bg p-[var(--spacing-system-m)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPQIWR4Q2cjs.Board, { columns, onChange: noop, initialCollapsed: compact ? void 0 : FOLDED }) });
1931
1931
  }
1932
1932
 
1933
1933
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flamingo-stack/openframe-frontend-core",
3
- "version": "0.0.789",
3
+ "version": "0.0.790",
4
4
  "description": "Shared design system and components for all Flamingo platforms",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -1,6 +1,10 @@
1
1
  import { Children, Fragment, cloneElement, isValidElement, type ReactElement, type ReactNode } from 'react';
2
2
  import { getPlatformBrandClasses } from '../../utils/platform-identity';
3
- import { TextLineSkeleton } from '../loading/unified-skeleton';
3
+ import {
4
+ type TextLinesByBreakpoint,
5
+ TextLineSkeleton,
6
+ TextLinesByBreakpointSkeleton,
7
+ } from '../loading/unified-skeleton';
4
8
 
5
9
  /**
6
10
  * THE page-title style — the ODS `text-h1` token (`--font-size-h1-title` =
@@ -233,10 +237,14 @@ export interface SectionHeadingProps {
233
237
  /**
234
238
  * The title and intro are read data still being read: the heading draws its own loading form (the eyebrow and the
235
239
  * action for real, a bar at the heading's type step, `intro` lines at the intro's). `true` draws the title alone;
236
- * an object also says how many intro lines the loaded heading has and the title bar's width. The heading renders on
237
- * the server and cannot read a loading scope: a host passes its own switch (`useLoadingScope() || loading`).
240
+ * an object also says how many intro lines the loaded heading has and the title bar's width. A title or an intro
241
+ * that wraps differently with the width gives its typical lines per breakpoint (`titleLines`, `intro` as an
242
+ * object). The heading renders on the server and cannot read a loading scope: a host passes its own switch
243
+ * (`useLoadingScope() || loading`).
238
244
  */
239
- loading?: boolean | { intro?: boolean | 1 | 2 | 3; titleWidth?: string };
245
+ loading?:
246
+ | boolean
247
+ | { intro?: boolean | 1 | 2 | 3 | TextLinesByBreakpoint; titleWidth?: string; titleLines?: TextLinesByBreakpoint };
240
248
  }
241
249
 
242
250
  /**
@@ -289,6 +297,7 @@ export function SectionHeading({
289
297
  level={level}
290
298
  eyebrow={eyebrow}
291
299
  titleWidth={shape.titleWidth}
300
+ titleLines={shape.titleLines}
292
301
  intro={shape.intro}
293
302
  action={action}
294
303
  platform={platform}
@@ -354,8 +363,10 @@ interface SectionHeadingSkeletonProps {
354
363
  eyebrow?: ReactNode;
355
364
  /** The title bar's width (a width class). Default `w-2/3`. */
356
365
  titleWidth?: string;
357
- /** The intro's lines: `true` is two. Omitted: no intro. */
358
- intro?: boolean | 1 | 2 | 3;
366
+ /** The title's lines per breakpoint, for a title that wraps. Omitted: one bar of `titleWidth`. */
367
+ titleLines?: TextLinesByBreakpoint;
368
+ /** The intro's lines: `true` is two, or the lines per breakpoint. Omitted: no intro. */
369
+ intro?: boolean | 1 | 2 | 3 | TextLinesByBreakpoint;
359
370
  /** Something at the far end of the row, drawn as given. */
360
371
  action?: ReactNode;
361
372
  platform?: string | null;
@@ -372,6 +383,7 @@ function SectionHeadingSkeleton({
372
383
  level = 'section',
373
384
  eyebrow,
374
385
  titleWidth = 'w-2/3',
386
+ titleLines,
375
387
  intro,
376
388
  action,
377
389
  platform,
@@ -379,7 +391,8 @@ function SectionHeadingSkeleton({
379
391
  className,
380
392
  }: SectionHeadingSkeletonProps) {
381
393
  const layout = SECTION_HEADING_LAYOUT[level];
382
- const introLines = intro === true ? 2 : intro || 0;
394
+ const introByBreakpoint = typeof intro === 'object' ? intro : null;
395
+ const introLines = typeof intro === 'number' ? intro : intro === true ? 2 : 0;
383
396
  const stack = (
384
397
  <div className={layout.stack} aria-hidden>
385
398
  {eyebrow ? (
@@ -388,8 +401,17 @@ function SectionHeadingSkeleton({
388
401
  </SectionEyebrow>
389
402
  ) : null}
390
403
  <div className={layout.heading}>
391
- <TextLineSkeleton type="inherit" className={titleWidth} />
404
+ {titleLines ? (
405
+ <TextLinesByBreakpointSkeleton lines={titleLines} />
406
+ ) : (
407
+ <TextLineSkeleton type="inherit" className={titleWidth} />
408
+ )}
392
409
  </div>
410
+ {introByBreakpoint ? (
411
+ <div className={layout.intro}>
412
+ <TextLinesByBreakpointSkeleton lines={introByBreakpoint} />
413
+ </div>
414
+ ) : null}
393
415
  {introLines > 0 ? (
394
416
  <div className={layout.intro}>
395
417
  {Array.from({ length: introLines }, (_, i) => (
@@ -46,9 +46,10 @@
46
46
 
47
47
  import type React from 'react';
48
48
  import { cn } from '../../utils/cn';
49
+ import type { TextLinesByBreakpoint } from '../loading/unified-skeleton';
49
50
  import type { ActionsMenuGroup } from '../ui/actions-menu';
50
51
  import type { PageActionButton } from '../ui/page-actions';
51
- import { TitleBlock, type TitleSkeletonLines } from './title-block';
52
+ import { TitleBlock } from './title-block';
52
53
 
53
54
  export interface PageLayoutProps {
54
55
  children: React.ReactNode;
@@ -85,7 +86,7 @@ export interface PageLayoutProps {
85
86
  * data of arbitrary length. Additive + default-preserving. */
86
87
  titleWrap?: boolean;
87
88
  /** With `titleWrap`, the loading title's lines per breakpoint (forwarded to `TitleBlock`). */
88
- titleSkeletonLines?: TitleSkeletonLines;
89
+ titleSkeletonLines?: TextLinesByBreakpoint;
89
90
  }
90
91
 
91
92
  /**
@@ -90,7 +90,11 @@
90
90
  import type React from 'react';
91
91
  import { useIsTruncated } from '../../hooks/ui/use-is-truncated';
92
92
  import { cn } from '../../utils/cn';
93
- import { TextLineSkeleton, UnifiedSkeleton } from '../loading/unified-skeleton';
93
+ import {
94
+ type TextLinesByBreakpoint,
95
+ TextLinesByBreakpointSkeleton,
96
+ UnifiedSkeleton,
97
+ } from '../loading/unified-skeleton';
94
98
  import type { ActionsMenuGroup } from '../ui/actions-menu';
95
99
  import { EntityImage } from '../ui/entity-image';
96
100
  import { FloatingTooltip } from '../ui/floating-tooltip';
@@ -168,14 +172,7 @@ export interface TitleBlockProps {
168
172
  * With `titleWrap`: the lines a typical title of the page takes per breakpoint, drawn by the loading title (a
169
173
  * record's title is read; a long one growing past them is a settle). Absent: one bar.
170
174
  */
171
- titleSkeletonLines?: TitleSkeletonLines;
172
- }
173
-
174
- /** Lines a wrapping title's skeleton draws: on a phone, from `content-md`, from `content-lg`. */
175
- export interface TitleSkeletonLines {
176
- phone: number;
177
- md: number;
178
- lg: number;
175
+ titleSkeletonLines?: TextLinesByBreakpoint;
179
176
  }
180
177
 
181
178
  /**
@@ -251,26 +248,7 @@ export function TitleBlock({
251
248
  );
252
249
  const titleNode =
253
250
  titleLoading && titleWrap && titleSkeletonLines ? (
254
- <>
255
- <TextLineSkeleton
256
- type="inherit"
257
- as="span"
258
- lines={titleSkeletonLines.phone}
259
- className="w-full content-md:hidden"
260
- />
261
- <TextLineSkeleton
262
- type="inherit"
263
- as="span"
264
- lines={titleSkeletonLines.md}
265
- className="hidden w-full content-md:flex content-lg:hidden"
266
- />
267
- <TextLineSkeleton
268
- type="inherit"
269
- as="span"
270
- lines={titleSkeletonLines.lg}
271
- className="hidden w-full content-lg:flex"
272
- />
273
- </>
251
+ <TextLinesByBreakpointSkeleton as="span" lines={titleSkeletonLines} />
274
252
  ) : titleLoading ? (
275
253
  <UnifiedSkeleton
276
254
  as="span"
@@ -6,6 +6,8 @@ export {
6
6
  UnifiedSkeleton,
7
7
  TextSkeleton,
8
8
  TextLineSkeleton,
9
+ TextLinesByBreakpointSkeleton,
10
+ type TextLinesByBreakpoint,
9
11
  MediaSkeleton,
10
12
  InteractiveSkeleton,
11
13
  } from './unified-skeleton';
@@ -179,6 +179,48 @@ export function TextLineSkeleton({ type, lines = 1, as = 'div', width, className
179
179
  );
180
180
  }
181
181
 
182
+ /** The lines a text run takes per breakpoint: on a phone, from `content-md`, and from `content-lg`. */
183
+ export interface TextLinesByBreakpoint {
184
+ phone: number;
185
+ md: number;
186
+ lg: number;
187
+ }
188
+
189
+ /**
190
+ * A text run whose line count changes with the width (a heading or a paragraph that wraps): `TextLineSkeleton` at
191
+ * the typical lines of each step of the content area. Exactly one of the three bars is shown at any width, so the
192
+ * loaded text takes its place at every breakpoint.
193
+ */
194
+ export function TextLinesByBreakpointSkeleton({
195
+ lines,
196
+ type = 'inherit',
197
+ as = 'div',
198
+ className,
199
+ }: {
200
+ lines: TextLinesByBreakpoint;
201
+ type?: TextLineType;
202
+ as?: 'div' | 'span';
203
+ className?: string;
204
+ }) {
205
+ return (
206
+ <>
207
+ <TextLineSkeleton type={type} as={as} lines={lines.phone} className={cn('w-full content-md:hidden', className)} />
208
+ <TextLineSkeleton
209
+ type={type}
210
+ as={as}
211
+ lines={lines.md}
212
+ className={cn('hidden w-full content-md:flex content-lg:hidden', className)}
213
+ />
214
+ <TextLineSkeleton
215
+ type={type}
216
+ as={as}
217
+ lines={lines.lg}
218
+ className={cn('hidden w-full content-lg:flex', className)}
219
+ />
220
+ </>
221
+ );
222
+ }
223
+
182
224
  /**
183
225
  * Text skeleton variants at fixed heights. A skeleton that must take exactly
184
226
  * the space of the text it stands for (a card whose loaded and loading boxes
@@ -234,7 +234,7 @@ export { IconTile } from './icon-tile';
234
234
  export { PolicyLink } from './policy-link';
235
235
  export type { DateRange } from 'react-day-picker';
236
236
  export { TitleBlock, TITLE_BLOCK_MIN_HEIGHT } from '../layout/title-block';
237
- export type { TitleBlockProps, TitleSkeletonLines } from '../layout/title-block';
237
+ export type { TitleBlockProps } from '../layout/title-block';
238
238
  export type { SortableColumn, SortConfig, SortDirection } from './sort-column-item';
239
239
  export {
240
240
  ORGANIZATION_CARD_RADIUS_CLASS,