@arbidocs/blocks 0.5.190 → 0.5.192

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 (113) hide show
  1. package/bin/arbidocs-mix-take.mjs +34 -0
  2. package/bin/arbidocs-record-take.mjs +77 -11
  3. package/bin/arbidocs-voice-take.mjs +32 -0
  4. package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs → ConnectedNativeDocxComparison-PPVXDQY3.cjs} +7 -7
  5. package/dist/{ConnectedNativeDocxComparison-XE5NMZMY.cjs.map → ConnectedNativeDocxComparison-PPVXDQY3.cjs.map} +1 -1
  6. package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs → ConnectedStreamedWordArtifact-GAACBGTY.cjs} +7 -7
  7. package/dist/{ConnectedStreamedWordArtifact-EY3YWYDD.cjs.map → ConnectedStreamedWordArtifact-GAACBGTY.cjs.map} +1 -1
  8. package/dist/{DocumentReviewCard-RFE4THHR.cjs → DocumentReviewCard-Q3NKJLSM.cjs} +14 -14
  9. package/dist/{DocumentReviewCard-RFE4THHR.cjs.map → DocumentReviewCard-Q3NKJLSM.cjs.map} +1 -1
  10. package/dist/{FilesViewerDialog-VO247UEI.cjs → FilesViewerDialog-4JWDTDO7.cjs} +11 -11
  11. package/dist/{FilesViewerDialog-VO247UEI.cjs.map → FilesViewerDialog-4JWDTDO7.cjs.map} +1 -1
  12. package/dist/agents/index.cjs +172 -172
  13. package/dist/{chunk-PGKCL6YA.cjs → chunk-33236Q7Y.cjs} +8 -8
  14. package/dist/{chunk-PGKCL6YA.cjs.map → chunk-33236Q7Y.cjs.map} +1 -1
  15. package/dist/{chunk-E7BSG5IS.cjs → chunk-633ZCYVN.cjs} +37 -37
  16. package/dist/{chunk-E7BSG5IS.cjs.map → chunk-633ZCYVN.cjs.map} +1 -1
  17. package/dist/{chunk-U4MJIYGD.cjs → chunk-65NQW4RR.cjs} +4 -4
  18. package/dist/{chunk-U4MJIYGD.cjs.map → chunk-65NQW4RR.cjs.map} +1 -1
  19. package/dist/{chunk-JAKLLNLL.cjs → chunk-AWQEN6WW.cjs} +9 -7
  20. package/dist/chunk-AWQEN6WW.cjs.map +1 -0
  21. package/dist/{chunk-GENUGV6V.cjs → chunk-AZUPMHZI.cjs} +4 -4
  22. package/dist/{chunk-GENUGV6V.cjs.map → chunk-AZUPMHZI.cjs.map} +1 -1
  23. package/dist/{chunk-72O4YH5M.cjs → chunk-EAH7LFJN.cjs} +5 -5
  24. package/dist/{chunk-72O4YH5M.cjs.map → chunk-EAH7LFJN.cjs.map} +1 -1
  25. package/dist/{chunk-UNT2VY3B.cjs → chunk-EFV52SZ6.cjs} +4 -4
  26. package/dist/{chunk-UNT2VY3B.cjs.map → chunk-EFV52SZ6.cjs.map} +1 -1
  27. package/dist/{chunk-IXSOSISW.cjs → chunk-ELN3YOXF.cjs} +28 -28
  28. package/dist/{chunk-IXSOSISW.cjs.map → chunk-ELN3YOXF.cjs.map} +1 -1
  29. package/dist/{chunk-NAEBNQTO.cjs → chunk-GLNL5AL5.cjs} +29 -29
  30. package/dist/{chunk-NAEBNQTO.cjs.map → chunk-GLNL5AL5.cjs.map} +1 -1
  31. package/dist/{chunk-HTH3XIFF.cjs → chunk-GZPNBSRE.cjs} +8 -8
  32. package/dist/{chunk-HTH3XIFF.cjs.map → chunk-GZPNBSRE.cjs.map} +1 -1
  33. package/dist/chunk-HME72RFP.cjs +145 -0
  34. package/dist/chunk-HME72RFP.cjs.map +1 -0
  35. package/dist/{chunk-GW5LTX66.cjs → chunk-J46Y2L26.cjs} +4 -4
  36. package/dist/{chunk-GW5LTX66.cjs.map → chunk-J46Y2L26.cjs.map} +1 -1
  37. package/dist/{chunk-LHWFSXM5.cjs → chunk-KD37PODE.cjs} +3 -3
  38. package/dist/{chunk-LHWFSXM5.cjs.map → chunk-KD37PODE.cjs.map} +1 -1
  39. package/dist/{chunk-VCCAG4GQ.cjs → chunk-KZH6HMJL.cjs} +4 -4
  40. package/dist/{chunk-VCCAG4GQ.cjs.map → chunk-KZH6HMJL.cjs.map} +1 -1
  41. package/dist/{chunk-AQYCL2IJ.cjs → chunk-QDIIOZBP.cjs} +5 -5
  42. package/dist/{chunk-AQYCL2IJ.cjs.map → chunk-QDIIOZBP.cjs.map} +1 -1
  43. package/dist/{chunk-USYCBTKK.cjs → chunk-R6HGMPF4.cjs} +41 -7
  44. package/dist/chunk-R6HGMPF4.cjs.map +1 -0
  45. package/dist/{chunk-QSVYI72E.cjs → chunk-RNQ3MDTR.cjs} +4 -4
  46. package/dist/{chunk-QSVYI72E.cjs.map → chunk-RNQ3MDTR.cjs.map} +1 -1
  47. package/dist/{chunk-HZ35LMO3.cjs → chunk-VJHDCYKE.cjs} +4 -4
  48. package/dist/{chunk-HZ35LMO3.cjs.map → chunk-VJHDCYKE.cjs.map} +1 -1
  49. package/dist/{chunk-3GWYFQSI.cjs → chunk-Z6M2CI63.cjs} +84 -79
  50. package/dist/chunk-Z6M2CI63.cjs.map +1 -0
  51. package/dist/collaboration/index.cjs +3 -3
  52. package/dist/collaboration/sharing/ShareControl.d.ts +10 -1
  53. package/dist/collaboration/sharing/ShareControl.js +64 -4
  54. package/dist/collaboration/sharing/ShareControl.js.map +2 -2
  55. package/dist/components/GridRowNavigator.d.ts +8 -1
  56. package/dist/components/GridRowNavigator.js +4 -2
  57. package/dist/components/GridRowNavigator.js.map +2 -2
  58. package/dist/connect/docx.cjs +10 -10
  59. package/dist/connect/index.cjs +816 -767
  60. package/dist/connect/index.cjs.map +1 -1
  61. package/dist/connect/viewer.cjs +9 -9
  62. package/dist/connection/billing/ProjectDetail.d.ts +5 -1
  63. package/dist/connection/billing/ProjectDetail.js +82 -69
  64. package/dist/connection/billing/ProjectDetail.js.map +2 -2
  65. package/dist/connection/databases/ConnectedDatabasesPage.d.ts +7 -1
  66. package/dist/connection/databases/ConnectedDatabasesPage.js +18 -9
  67. package/dist/connection/databases/ConnectedDatabasesPage.js.map +2 -2
  68. package/dist/connection/databases/DatabaseWorkbench.d.ts +6 -1
  69. package/dist/connection/databases/DatabaseWorkbench.js +20 -15
  70. package/dist/connection/databases/DatabaseWorkbench.js.map +2 -2
  71. package/dist/connection/facts/factsSource.d.ts +2 -0
  72. package/dist/connection/facts/factsSource.js +10 -3
  73. package/dist/connection/facts/factsSource.js.map +2 -2
  74. package/dist/connection/files/page/ConnectedFilesPage.js +2 -1
  75. package/dist/connection/files/page/ConnectedFilesPage.js.map +2 -2
  76. package/dist/connection/projects/ConnectedProjectPage.d.ts +8 -1
  77. package/dist/connection/projects/ConnectedProjectPage.js +15 -1
  78. package/dist/connection/projects/ConnectedProjectPage.js.map +2 -2
  79. package/dist/connection/viewer/ConnectedDocumentViewer.d.ts +7 -0
  80. package/dist/connection/viewer/ConnectedDocumentViewer.js +28 -23
  81. package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
  82. package/dist/databases/DatabaseFilterMenu.d.ts +6 -1
  83. package/dist/databases/DatabaseFilterMenu.js +13 -4
  84. package/dist/databases/DatabaseFilterMenu.js.map +2 -2
  85. package/dist/databases/DatabaseToolbar.d.ts +11 -1
  86. package/dist/databases/DatabaseToolbar.js +26 -1
  87. package/dist/databases/DatabaseToolbar.js.map +2 -2
  88. package/dist/databases/index.cjs +70 -69
  89. package/dist/embed/index.cjs +13 -13
  90. package/dist/files/index.cjs +221 -221
  91. package/dist/index.cjs +242 -242
  92. package/dist/pages/index.cjs +21 -21
  93. package/dist/record/band.d.ts +95 -0
  94. package/dist/record/index.cjs +414 -13
  95. package/dist/record/index.cjs.map +1 -1
  96. package/dist/record/index.d.ts +35 -2
  97. package/dist/record/index.js +402 -15
  98. package/dist/record/index.js.map +1 -1
  99. package/dist/record/narration.d.ts +71 -0
  100. package/dist/shell/index.cjs +1 -1
  101. package/dist/styles.css +1 -1
  102. package/dist/workflow-canvas/index.cjs +24 -24
  103. package/node_modules/@arbidocs/coedit/package.json +1 -1
  104. package/package.json +11 -6
  105. package/record/SKILL.md +178 -26
  106. package/record/mix-take.py +320 -0
  107. package/record/recap-slide.mjs +118 -0
  108. package/record/voice-take.py +129 -0
  109. package/dist/chunk-3GWYFQSI.cjs.map +0 -1
  110. package/dist/chunk-JAKLLNLL.cjs.map +0 -1
  111. package/dist/chunk-USYCBTKK.cjs.map +0 -1
  112. package/dist/chunk-WCT6FT2K.cjs +0 -87
  113. package/dist/chunk-WCT6FT2K.cjs.map +0 -1
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  var chunkK5F2VNCX_cjs = require('../chunk-K5F2VNCX.cjs');
5
- var chunkHTH3XIFF_cjs = require('../chunk-HTH3XIFF.cjs');
5
+ var chunkGZPNBSRE_cjs = require('../chunk-GZPNBSRE.cjs');
6
6
  require('../chunk-DWRUGOTQ.cjs');
7
7
  require('../chunk-KD66CBYO.cjs');
8
8
  require('../chunk-OHWYQI3B.cjs');
@@ -10,7 +10,7 @@ require('../chunk-ER2MRSLT.cjs');
10
10
  require('../chunk-UNSZLNA4.cjs');
11
11
  var chunkJ5CBCUQE_cjs = require('../chunk-J5CBCUQE.cjs');
12
12
  require('../chunk-JWCVA4LC.cjs');
13
- var chunk72O4YH5M_cjs = require('../chunk-72O4YH5M.cjs');
13
+ var chunkEAH7LFJN_cjs = require('../chunk-EAH7LFJN.cjs');
14
14
  require('../chunk-223D4727.cjs');
15
15
  require('../chunk-DTMBAFIL.cjs');
16
16
  require('../chunk-SOT7NPIB.cjs');
@@ -20,7 +20,7 @@ var chunkLNYICHFJ_cjs = require('../chunk-LNYICHFJ.cjs');
20
20
  var chunkYSAUOJA7_cjs = require('../chunk-YSAUOJA7.cjs');
21
21
  var chunkJ37DOAGN_cjs = require('../chunk-J37DOAGN.cjs');
22
22
  require('../chunk-QEMGGJB6.cjs');
23
- var chunkUSYCBTKK_cjs = require('../chunk-USYCBTKK.cjs');
23
+ var chunkR6HGMPF4_cjs = require('../chunk-R6HGMPF4.cjs');
24
24
  require('../chunk-HUAABZ2C.cjs');
25
25
  require('../chunk-GISMY7J7.cjs');
26
26
  require('../chunk-V5P5MRSR.cjs');
@@ -30,7 +30,7 @@ var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
30
30
  require('../chunk-7G2LJMUG.cjs');
31
31
  require('../chunk-WRTEKOQP.cjs');
32
32
  require('../chunk-SK6HQ46Q.cjs');
33
- require('../chunk-WCT6FT2K.cjs');
33
+ require('../chunk-HME72RFP.cjs');
34
34
  require('../chunk-C25KF2TM.cjs');
35
35
  require('../chunk-ZU2B2RZK.cjs');
36
36
  require('../chunk-U46OGRCO.cjs');
@@ -43,13 +43,13 @@ require('../chunk-II2OEXHW.cjs');
43
43
  require('../chunk-5FSULBPE.cjs');
44
44
  require('../chunk-AHDJXIUB.cjs');
45
45
  require('../chunk-S3GVFAFB.cjs');
46
- require('../chunk-6UZC4XVV.cjs');
47
46
  require('../chunk-IXCWZ4HC.cjs');
48
47
  require('../chunk-SQCCQU3K.cjs');
49
48
  require('../chunk-UDSHVNU3.cjs');
50
49
  require('../chunk-DKY67DA6.cjs');
51
50
  require('../chunk-ZQQVXRYZ.cjs');
52
51
  require('../chunk-IPSHAMO2.cjs');
52
+ require('../chunk-6UZC4XVV.cjs');
53
53
  require('../chunk-ZVEW3JBT.cjs');
54
54
  var chunkMHIG6GGS_cjs = require('../chunk-MHIG6GGS.cjs');
55
55
  require('../chunk-VG24E4JJ.cjs');
@@ -80,7 +80,7 @@ var documentTools = require('@arbidocs/react/document-tools');
80
80
  var viewers = require('@arbidocs/react/viewers');
81
81
 
82
82
  var PAGE_TEMPLATES = [
83
- chunkHTH3XIFF_cjs.WORKSPACE_DASHBOARD_PAGE,
83
+ chunkGZPNBSRE_cjs.WORKSPACE_DASHBOARD_PAGE,
84
84
  ...chunkYSAUOJA7_cjs.DASHBOARD_TEMPLATES
85
85
  ];
86
86
  function pageOfTemplate(template) {
@@ -1181,7 +1181,7 @@ var toRowView = (r) => ({
1181
1181
  });
1182
1182
  var toColumnView = (c) => ({
1183
1183
  ...c,
1184
- type: chunkHTH3XIFF_cjs.kitTypeOf(c.type) ?? "text"
1184
+ type: chunkGZPNBSRE_cjs.kitTypeOf(c.type) ?? "text"
1185
1185
  });
1186
1186
  function TableViewBlock({
1187
1187
  viewId,
@@ -1204,7 +1204,7 @@ function TableViewBlock({
1204
1204
  body = /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: l.loading });
1205
1205
  } else {
1206
1206
  body = /* @__PURE__ */ jsxRuntime.jsx(
1207
- chunkUSYCBTKK_cjs.DatabaseTable,
1207
+ chunkR6HGMPF4_cjs.DatabaseTable,
1208
1208
  {
1209
1209
  columns,
1210
1210
  rows,
@@ -1259,7 +1259,7 @@ function WithNewFileMenu({ children }) {
1259
1259
  const [open, setOpen] = react$1.useState(false);
1260
1260
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1261
1261
  children(() => setOpen(true)),
1262
- /* @__PURE__ */ jsxRuntime.jsx(chunkHTH3XIFF_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
1262
+ /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedNewFileMenu, { open, onOpenChange: setOpen })
1263
1263
  ] });
1264
1264
  }
1265
1265
  function PageBlockView({
@@ -1340,18 +1340,18 @@ function PageBlockView({
1340
1340
  ) });
1341
1341
  case "list":
1342
1342
  return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: block.config.source === "documents" ? /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(
1343
- chunkHTH3XIFF_cjs.ConnectedListBlock,
1343
+ chunkGZPNBSRE_cjs.ConnectedListBlock,
1344
1344
  {
1345
1345
  config: block.config,
1346
1346
  onCreateNew,
1347
1347
  testId: testId && `${testId}-list`
1348
1348
  }
1349
- ) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkHTH3XIFF_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
1349
+ ) }) : /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedListBlock, { config: block.config, testId: testId && `${testId}-list` }) });
1350
1350
  case "carousel":
1351
- return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkHTH3XIFF_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
1351
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedCarouselBlock, { config: block.config, testId: testId && `${testId}-carousel` }) });
1352
1352
  case "agenda":
1353
1353
  return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(
1354
- chunkHTH3XIFF_cjs.ConnectedAgendaBlock,
1354
+ chunkGZPNBSRE_cjs.ConnectedAgendaBlock,
1355
1355
  {
1356
1356
  config: block.config,
1357
1357
  className: "border-0 p-0",
@@ -1359,7 +1359,7 @@ function PageBlockView({
1359
1359
  }
1360
1360
  ) });
1361
1361
  case "start":
1362
- return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunkHTH3XIFF_cjs.ConnectedStartBlock, { onCreateNew }) }) });
1362
+ return /* @__PURE__ */ jsxRuntime.jsx(LiveBlockCard, { actions, className, testId, children: /* @__PURE__ */ jsxRuntime.jsx(WithNewFileMenu, { children: (onCreateNew) => /* @__PURE__ */ jsxRuntime.jsx(chunkGZPNBSRE_cjs.ConnectedStartBlock, { onCreateNew }) }) });
1363
1363
  }
1364
1364
  }
1365
1365
  function NewPageButton({
@@ -1615,8 +1615,8 @@ function OpenPageTransferDialog({
1615
1615
  }) {
1616
1616
  const l = { ...DEFAULT_PAGE_TRANSFER_LABELS, ...labels };
1617
1617
  const { notify } = chunkHN56WWBR_cjs.useBlocksEnvironment();
1618
- const { options, nameOf } = chunkHTH3XIFF_cjs.useTransferTargets();
1619
- const trackTransfer = chunkHTH3XIFF_cjs.useExportStore((state) => state.trackTransfer);
1618
+ const { options, nameOf } = chunkGZPNBSRE_cjs.useTransferTargets();
1619
+ const trackTransfer = chunkGZPNBSRE_cjs.useExportStore((state) => state.trackTransfer);
1620
1620
  const [targetId, setTargetId] = react$1.useState(null);
1621
1621
  const [references, setReferences] = react$1.useState("link");
1622
1622
  const [jobId, setJobId] = react$1.useState(null);
@@ -1628,7 +1628,7 @@ function OpenPageTransferDialog({
1628
1628
  isFetching: isPlanning,
1629
1629
  refetch: refetchPlan
1630
1630
  } = react.usePlanWorkspaceTransfer(scope, mode, { enabled: !jobId });
1631
- const failure = chunkHTH3XIFF_cjs.planFailure(planError);
1631
+ const failure = chunkGZPNBSRE_cjs.planFailure(planError);
1632
1632
  const start = react.useStartWorkspaceTransfer();
1633
1633
  const cancel = react.useCancelWorkspaceTransfer();
1634
1634
  const switchToPages = react.useSwitchToWorkspacePages();
@@ -1673,7 +1673,7 @@ function OpenPageTransferDialog({
1673
1673
  if (!jobId) {
1674
1674
  body = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
1675
1675
  /* @__PURE__ */ jsxRuntime.jsx(
1676
- chunk72O4YH5M_cjs.ExportWorkspacePicker,
1676
+ chunkEAH7LFJN_cjs.ExportWorkspacePicker,
1677
1677
  {
1678
1678
  workspaces: options,
1679
1679
  selectedId: targetId,
@@ -1682,7 +1682,7 @@ function OpenPageTransferDialog({
1682
1682
  }
1683
1683
  ),
1684
1684
  documents > 0 && /* @__PURE__ */ jsxRuntime.jsx(
1685
- chunk72O4YH5M_cjs.TransferReferencesChooser,
1685
+ chunkEAH7LFJN_cjs.TransferReferencesChooser,
1686
1686
  {
1687
1687
  value: references,
1688
1688
  onChange: setReferences,
@@ -1696,7 +1696,7 @@ function OpenPageTransferDialog({
1696
1696
  ),
1697
1697
  views > 0 && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "pt-2 text-sm text-muted-foreground", "data-testid": `${testId}-views`, children: l.viewsStay(views) }),
1698
1698
  failure && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
1699
- chunk72O4YH5M_cjs.TransferPlanError,
1699
+ chunkEAH7LFJN_cjs.TransferPlanError,
1700
1700
  {
1701
1701
  detail: typeof failure === "string" ? failure : void 0,
1702
1702
  onRetry: () => void refetchPlan(),
@@ -1730,7 +1730,7 @@ function OpenPageTransferDialog({
1730
1730
  ] });
1731
1731
  } else if (!finished || !items) {
1732
1732
  body = job ? /* @__PURE__ */ jsxRuntime.jsx(
1733
- chunk72O4YH5M_cjs.TransferProgressView,
1733
+ chunkEAH7LFJN_cjs.TransferProgressView,
1734
1734
  {
1735
1735
  title: l.progress(mode, target),
1736
1736
  processed: job.processed ?? 0,
@@ -0,0 +1,95 @@
1
+ /**
2
+ * The frame of a demo recording around the app (the house style of every demo video):
3
+ * - a band at the top carries the feature being shown (left, kept for the whole chapter) and the
4
+ * captions (right), revealed a phrase at a time, so neither ever covers the app;
5
+ * - a strip at the bottom is left empty, so a video player's controls (pause, the timeline) cover
6
+ * nothing of the app;
7
+ * - every click shows: a ring pulses where it lands and the cursor presses.
8
+ * `createCinematic` installs it with the stage unless the story asks for `style: 'overlay'`;
9
+ * `feature` names the feature and `bandSay` captions, and both survive navigations and reloads.
10
+ *
11
+ * `@playwright/test` is used for types only.
12
+ */
13
+ import type { Page } from '@playwright/test';
14
+ /** The band's height, in page pixels. */
15
+ export declare const BAND_HEIGHT = 64;
16
+ /**
17
+ * Left empty for a player's controls. Chrome's (play, time, timeline) stand about 56 px tall on
18
+ * screen whatever the video's size, so a 1600x900 video shown at 0.68 (a laptop's window) needs
19
+ * about 82 px of the frame clear; 64 px was measured too small.
20
+ */
21
+ export declare const PLAYER_STRIP = 84;
22
+ /** A caption appears a phrase at a time (see `captionChunks`), this often (ms). */
23
+ export declare const CHUNK_MS = 100;
24
+ /** The width of the band's feature label, in page pixels. */
25
+ export declare const BAND_LABEL_WIDTH = 360;
26
+ /** Where the captions are, in a 1600 px wide page: a narrated line is logged here as a focus event. */
27
+ export declare const BAND_BOX: {
28
+ x: number;
29
+ y: number;
30
+ width: number;
31
+ height: number;
32
+ };
33
+ /** In `BandOptions.css`: replaced by the app's frame height (`calc(100dvh - <band + strip>px)`). */
34
+ export declare const BAND_FRAME = "__BAND_FRAME__";
35
+ /** What a site may change of the band. */
36
+ export interface BandOptions {
37
+ /** The app's root element, fitted between the band and the strip (default `#root`). */
38
+ root?: string;
39
+ /**
40
+ * More CSS for the recording, for a site's own elements sized from the viewport: `BAND_FRAME`
41
+ * stands for the app's frame height, e.g.
42
+ * `[class~="h-[calc(100dvh-11rem)]"] { height: calc(${BAND_FRAME} - 11rem) !important; }`.
43
+ */
44
+ css?: string;
45
+ /**
46
+ * The band's typeface (CSS font-family): apart from the app's, so the band never reads as part
47
+ * of it. Default Space Grotesk, loaded from `fontUrl`.
48
+ */
49
+ font?: string;
50
+ /** A stylesheet that loads `font` (default Google Fonts' Space Grotesk; `null` loads nothing). */
51
+ fontUrl?: string | null;
52
+ /** The band's ground and text colours (defaults near-black and warm white). */
53
+ ground?: string;
54
+ text?: string;
55
+ }
56
+ /** The colours the band takes from the brand. */
57
+ export interface BandSkin {
58
+ ink: string;
59
+ accent: string;
60
+ sansFont: string;
61
+ }
62
+ /**
63
+ * A caption as it is revealed: up to three words at a time, a chunk ending where its punctuation
64
+ * does, so it reads as a narrator's phrases (not a word at a time, not all at once).
65
+ */
66
+ export declare function captionChunks(text: string): string[];
67
+ /** How long a caption nobody speaks stays up (ms): long enough to read it. */
68
+ export declare function readingMs(text: string): number;
69
+ /** Install the band, the player strip and the click pulse. Call after the stage's own install. */
70
+ export declare function installBand(page: Page, skin: BandSkin, options?: BandOptions): Promise<void>;
71
+ /** Name the feature on screen: it stays in the band until the next call. */
72
+ export declare function feature(page: Page, kicker: string, name: string): Promise<void>;
73
+ /**
74
+ * Caption in the band, a phrase at a time. Returns once it has been on screen `holdMs` (by default,
75
+ * long enough to read it) and at least a moment after its last words; `holdMs` 0 returns at once.
76
+ * With `clearMs` it goes that long after it showed, else it stays until the next. "" clears it.
77
+ */
78
+ export declare function bandSay(page: Page, text: string, holdMs?: number, clearMs?: number): Promise<void>;
79
+ /** Show a click where there is no pointer press (a native select's option chosen by the test). */
80
+ export declare function pulseAt(page: Page, box: {
81
+ x: number;
82
+ y: number;
83
+ width: number;
84
+ height: number;
85
+ } | null): Promise<void>;
86
+ /**
87
+ * A chapter card inside the page: centred over the app, which stays visible (dimmed) around it, so
88
+ * the viewer sees the story carry on where it was. Fades in, holds `holdMs`, fades out. The frame
89
+ * must be still first (`cine.still`): no dialog closing, caption clearing or toast moving under it.
90
+ */
91
+ export declare function interlude(page: Page, skin: BandSkin, card: {
92
+ kicker: string;
93
+ title: string;
94
+ subtitle?: string;
95
+ }, holdMs: number): Promise<void>;