@arbidocs/blocks 0.5.133 → 0.5.134

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/index.cjs CHANGED
@@ -10,7 +10,7 @@ var chunkICZSVCDT_cjs = require('./chunk-ICZSVCDT.cjs');
10
10
  var chunkSRTSMA5K_cjs = require('./chunk-SRTSMA5K.cjs');
11
11
  require('./chunk-TS2XVXYK.cjs');
12
12
  var chunkVZKTOGZR_cjs = require('./chunk-VZKTOGZR.cjs');
13
- var chunk5JK3232B_cjs = require('./chunk-5JK3232B.cjs');
13
+ var chunkO5WVYUFT_cjs = require('./chunk-O5WVYUFT.cjs');
14
14
  var chunkEYXU32D7_cjs = require('./chunk-EYXU32D7.cjs');
15
15
  var chunkNEGFHF3V_cjs = require('./chunk-NEGFHF3V.cjs');
16
16
  var chunkZ3LFF3YT_cjs = require('./chunk-Z3LFF3YT.cjs');
@@ -24,7 +24,7 @@ var chunkP7VUIW24_cjs = require('./chunk-P7VUIW24.cjs');
24
24
  require('./chunk-7G2LJMUG.cjs');
25
25
  var chunkUKOYN2WD_cjs = require('./chunk-UKOYN2WD.cjs');
26
26
  require('./chunk-RC25WMVB.cjs');
27
- var chunkVCEX7COE_cjs = require('./chunk-VCEX7COE.cjs');
27
+ var chunkLIDXIX36_cjs = require('./chunk-LIDXIX36.cjs');
28
28
  var chunk34HQO4ZQ_cjs = require('./chunk-34HQO4ZQ.cjs');
29
29
  var chunkIFJBE7M5_cjs = require('./chunk-IFJBE7M5.cjs');
30
30
  var chunkK4763GD5_cjs = require('./chunk-K4763GD5.cjs');
@@ -416,191 +416,191 @@ Object.defineProperty(exports, "vCardFilename", {
416
416
  });
417
417
  Object.defineProperty(exports, "DEFAULT_GLOSSARY_LABELS", {
418
418
  enumerable: true,
419
- get: function () { return chunk5JK3232B_cjs.DEFAULT_GLOSSARY_LABELS; }
419
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_GLOSSARY_LABELS; }
420
420
  });
421
421
  Object.defineProperty(exports, "DEFAULT_TAG_COLUMNS_EDITOR_LABELS", {
422
422
  enumerable: true,
423
- get: function () { return chunk5JK3232B_cjs.DEFAULT_TAG_COLUMNS_EDITOR_LABELS; }
423
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_TAG_COLUMNS_EDITOR_LABELS; }
424
424
  });
425
425
  Object.defineProperty(exports, "DEFAULT_TAG_DETAIL_LABELS", {
426
426
  enumerable: true,
427
- get: function () { return chunk5JK3232B_cjs.DEFAULT_TAG_DETAIL_LABELS; }
427
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_TAG_DETAIL_LABELS; }
428
428
  });
429
429
  Object.defineProperty(exports, "DEFAULT_TAG_TABLE_DOCX_LABELS", {
430
430
  enumerable: true,
431
- get: function () { return chunk5JK3232B_cjs.DEFAULT_TAG_TABLE_DOCX_LABELS; }
431
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_TAG_TABLE_DOCX_LABELS; }
432
432
  });
433
433
  Object.defineProperty(exports, "DEFAULT_TAG_TABLE_LABELS", {
434
434
  enumerable: true,
435
- get: function () { return chunk5JK3232B_cjs.DEFAULT_TAG_TABLE_LABELS; }
435
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_TAG_TABLE_LABELS; }
436
436
  });
437
437
  Object.defineProperty(exports, "DEFAULT_WORKSPACE_ACTIVITY_LABELS", {
438
438
  enumerable: true,
439
- get: function () { return chunk5JK3232B_cjs.DEFAULT_WORKSPACE_ACTIVITY_LABELS; }
439
+ get: function () { return chunkO5WVYUFT_cjs.DEFAULT_WORKSPACE_ACTIVITY_LABELS; }
440
440
  });
441
441
  Object.defineProperty(exports, "EXTRACT_LIMIT", {
442
442
  enumerable: true,
443
- get: function () { return chunk5JK3232B_cjs.EXTRACT_LIMIT; }
443
+ get: function () { return chunkO5WVYUFT_cjs.EXTRACT_LIMIT; }
444
444
  });
445
445
  Object.defineProperty(exports, "EntityIdentityBar", {
446
446
  enumerable: true,
447
- get: function () { return chunk5JK3232B_cjs.EntityIdentityBar; }
447
+ get: function () { return chunkO5WVYUFT_cjs.EntityIdentityBar; }
448
448
  });
449
449
  Object.defineProperty(exports, "ExtractEntitiesDialog", {
450
450
  enumerable: true,
451
- get: function () { return chunk5JK3232B_cjs.ExtractEntitiesDialog; }
451
+ get: function () { return chunkO5WVYUFT_cjs.ExtractEntitiesDialog; }
452
452
  });
453
453
  Object.defineProperty(exports, "GridRowNavigator", {
454
454
  enumerable: true,
455
- get: function () { return chunk5JK3232B_cjs.GridRowNavigator; }
455
+ get: function () { return chunkO5WVYUFT_cjs.GridRowNavigator; }
456
456
  });
457
457
  Object.defineProperty(exports, "GuidedCursor", {
458
458
  enumerable: true,
459
- get: function () { return chunk5JK3232B_cjs.GuidedCursor; }
459
+ get: function () { return chunkO5WVYUFT_cjs.GuidedCursor; }
460
460
  });
461
461
  Object.defineProperty(exports, "IDENTITY_NAME_MAX_LENGTH", {
462
462
  enumerable: true,
463
- get: function () { return chunk5JK3232B_cjs.IDENTITY_NAME_MAX_LENGTH; }
463
+ get: function () { return chunkO5WVYUFT_cjs.IDENTITY_NAME_MAX_LENGTH; }
464
464
  });
465
465
  Object.defineProperty(exports, "KIT_CHUNK_LOADERS", {
466
466
  enumerable: true,
467
- get: function () { return chunk5JK3232B_cjs.KIT_CHUNK_LOADERS; }
467
+ get: function () { return chunkO5WVYUFT_cjs.KIT_CHUNK_LOADERS; }
468
468
  });
469
469
  Object.defineProperty(exports, "LoadingIndicator", {
470
470
  enumerable: true,
471
- get: function () { return chunk5JK3232B_cjs.LoadingIndicator; }
471
+ get: function () { return chunkO5WVYUFT_cjs.LoadingIndicator; }
472
472
  });
473
473
  Object.defineProperty(exports, "TAG_TABLE_DOCX_LANDSCAPE_AFTER", {
474
474
  enumerable: true,
475
- get: function () { return chunk5JK3232B_cjs.TAG_TABLE_DOCX_LANDSCAPE_AFTER; }
475
+ get: function () { return chunkO5WVYUFT_cjs.TAG_TABLE_DOCX_LANDSCAPE_AFTER; }
476
476
  });
477
477
  Object.defineProperty(exports, "TagColumnsEditor", {
478
478
  enumerable: true,
479
- get: function () { return chunk5JK3232B_cjs.TagColumnsEditor; }
479
+ get: function () { return chunkO5WVYUFT_cjs.TagColumnsEditor; }
480
480
  });
481
481
  Object.defineProperty(exports, "TagDetail", {
482
482
  enumerable: true,
483
- get: function () { return chunk5JK3232B_cjs.TagDetail; }
483
+ get: function () { return chunkO5WVYUFT_cjs.TagDetail; }
484
484
  });
485
485
  Object.defineProperty(exports, "TagTable", {
486
486
  enumerable: true,
487
- get: function () { return chunk5JK3232B_cjs.TagTable; }
487
+ get: function () { return chunkO5WVYUFT_cjs.TagTable; }
488
488
  });
489
489
  Object.defineProperty(exports, "TagTableCell", {
490
490
  enumerable: true,
491
- get: function () { return chunk5JK3232B_cjs.TagTableCell; }
491
+ get: function () { return chunkO5WVYUFT_cjs.TagTableCell; }
492
492
  });
493
493
  Object.defineProperty(exports, "Toolbar", {
494
494
  enumerable: true,
495
- get: function () { return chunk5JK3232B_cjs.Toolbar; }
495
+ get: function () { return chunkO5WVYUFT_cjs.Toolbar; }
496
496
  });
497
497
  Object.defineProperty(exports, "WorkspaceActivityList", {
498
498
  enumerable: true,
499
- get: function () { return chunk5JK3232B_cjs.WorkspaceActivityList; }
499
+ get: function () { return chunkO5WVYUFT_cjs.WorkspaceActivityList; }
500
500
  });
501
501
  Object.defineProperty(exports, "cellText", {
502
502
  enumerable: true,
503
- get: function () { return chunk5JK3232B_cjs.cellText; }
503
+ get: function () { return chunkO5WVYUFT_cjs.cellText; }
504
504
  });
505
505
  Object.defineProperty(exports, "cellValue", {
506
506
  enumerable: true,
507
- get: function () { return chunk5JK3232B_cjs.cellValue; }
507
+ get: function () { return chunkO5WVYUFT_cjs.cellValue; }
508
508
  });
509
509
  Object.defineProperty(exports, "documentCount", {
510
510
  enumerable: true,
511
- get: function () { return chunk5JK3232B_cjs.documentCount; }
511
+ get: function () { return chunkO5WVYUFT_cjs.documentCount; }
512
512
  });
513
513
  Object.defineProperty(exports, "entitiesPhrase", {
514
514
  enumerable: true,
515
- get: function () { return chunk5JK3232B_cjs.entitiesPhrase; }
515
+ get: function () { return chunkO5WVYUFT_cjs.entitiesPhrase; }
516
516
  });
517
517
  Object.defineProperty(exports, "fieldWrites", {
518
518
  enumerable: true,
519
- get: function () { return chunk5JK3232B_cjs.fieldWrites; }
519
+ get: function () { return chunkO5WVYUFT_cjs.fieldWrites; }
520
520
  });
521
521
  Object.defineProperty(exports, "glossaryDocumentXml", {
522
522
  enumerable: true,
523
- get: function () { return chunk5JK3232B_cjs.glossaryDocumentXml; }
523
+ get: function () { return chunkO5WVYUFT_cjs.glossaryDocumentXml; }
524
524
  });
525
525
  Object.defineProperty(exports, "glossaryDocx", {
526
526
  enumerable: true,
527
- get: function () { return chunk5JK3232B_cjs.glossaryDocx; }
527
+ get: function () { return chunkO5WVYUFT_cjs.glossaryDocx; }
528
528
  });
529
529
  Object.defineProperty(exports, "glossaryEntries", {
530
530
  enumerable: true,
531
- get: function () { return chunk5JK3232B_cjs.glossaryEntries; }
531
+ get: function () { return chunkO5WVYUFT_cjs.glossaryEntries; }
532
532
  });
533
533
  Object.defineProperty(exports, "glossaryFileName", {
534
534
  enumerable: true,
535
- get: function () { return chunk5JK3232B_cjs.glossaryFileName; }
535
+ get: function () { return chunkO5WVYUFT_cjs.glossaryFileName; }
536
536
  });
537
537
  Object.defineProperty(exports, "glossaryMarkdown", {
538
538
  enumerable: true,
539
- get: function () { return chunk5JK3232B_cjs.glossaryMarkdown; }
539
+ get: function () { return chunkO5WVYUFT_cjs.glossaryMarkdown; }
540
540
  });
541
541
  Object.defineProperty(exports, "isGap", {
542
542
  enumerable: true,
543
- get: function () { return chunk5JK3232B_cjs.isGap; }
543
+ get: function () { return chunkO5WVYUFT_cjs.isGap; }
544
544
  });
545
545
  Object.defineProperty(exports, "parseCell", {
546
546
  enumerable: true,
547
- get: function () { return chunk5JK3232B_cjs.parseCell; }
547
+ get: function () { return chunkO5WVYUFT_cjs.parseCell; }
548
548
  });
549
549
  Object.defineProperty(exports, "prefetchViewerChunks", {
550
550
  enumerable: true,
551
- get: function () { return chunk5JK3232B_cjs.prefetchViewerChunks; }
551
+ get: function () { return chunkO5WVYUFT_cjs.prefetchViewerChunks; }
552
552
  });
553
553
  Object.defineProperty(exports, "preloadKitChunks", {
554
554
  enumerable: true,
555
- get: function () { return chunk5JK3232B_cjs.preloadKitChunks; }
555
+ get: function () { return chunkO5WVYUFT_cjs.preloadKitChunks; }
556
556
  });
557
557
  Object.defineProperty(exports, "rowLinks", {
558
558
  enumerable: true,
559
- get: function () { return chunk5JK3232B_cjs.rowLinks; }
559
+ get: function () { return chunkO5WVYUFT_cjs.rowLinks; }
560
560
  });
561
561
  Object.defineProperty(exports, "tagDetailLabels", {
562
562
  enumerable: true,
563
- get: function () { return chunk5JK3232B_cjs.tagDetailLabels; }
563
+ get: function () { return chunkO5WVYUFT_cjs.tagDetailLabels; }
564
564
  });
565
565
  Object.defineProperty(exports, "tagKindDescription", {
566
566
  enumerable: true,
567
- get: function () { return chunk5JK3232B_cjs.tagKindDescription; }
567
+ get: function () { return chunkO5WVYUFT_cjs.tagKindDescription; }
568
568
  });
569
569
  Object.defineProperty(exports, "tagNoteLabel", {
570
570
  enumerable: true,
571
- get: function () { return chunk5JK3232B_cjs.tagNoteLabel; }
571
+ get: function () { return chunkO5WVYUFT_cjs.tagNoteLabel; }
572
572
  });
573
573
  Object.defineProperty(exports, "tagTableDocumentXml", {
574
574
  enumerable: true,
575
- get: function () { return chunk5JK3232B_cjs.tagTableDocumentXml; }
575
+ get: function () { return chunkO5WVYUFT_cjs.tagTableDocumentXml; }
576
576
  });
577
577
  Object.defineProperty(exports, "tagTableDocx", {
578
578
  enumerable: true,
579
- get: function () { return chunk5JK3232B_cjs.tagTableDocx; }
579
+ get: function () { return chunkO5WVYUFT_cjs.tagTableDocx; }
580
580
  });
581
581
  Object.defineProperty(exports, "tagTableLabels", {
582
582
  enumerable: true,
583
- get: function () { return chunk5JK3232B_cjs.tagTableLabels; }
583
+ get: function () { return chunkO5WVYUFT_cjs.tagTableLabels; }
584
584
  });
585
585
  Object.defineProperty(exports, "tagTableMarkdown", {
586
586
  enumerable: true,
587
- get: function () { return chunk5JK3232B_cjs.tagTableMarkdown; }
587
+ get: function () { return chunkO5WVYUFT_cjs.tagTableMarkdown; }
588
588
  });
589
589
  Object.defineProperty(exports, "tagsPageNouns", {
590
590
  enumerable: true,
591
- get: function () { return chunk5JK3232B_cjs.tagsPageNouns; }
591
+ get: function () { return chunkO5WVYUFT_cjs.tagsPageNouns; }
592
592
  });
593
593
  Object.defineProperty(exports, "useTipsPlacement", {
594
594
  enumerable: true,
595
- get: function () { return chunk5JK3232B_cjs.useTipsPlacement; }
595
+ get: function () { return chunkO5WVYUFT_cjs.useTipsPlacement; }
596
596
  });
597
597
  Object.defineProperty(exports, "workspaceActivityHeadline", {
598
598
  enumerable: true,
599
- get: function () { return chunk5JK3232B_cjs.workspaceActivityHeadline; }
599
+ get: function () { return chunkO5WVYUFT_cjs.workspaceActivityHeadline; }
600
600
  });
601
601
  Object.defineProperty(exports, "workspaceActivityTarget", {
602
602
  enumerable: true,
603
- get: function () { return chunk5JK3232B_cjs.workspaceActivityTarget; }
603
+ get: function () { return chunkO5WVYUFT_cjs.workspaceActivityTarget; }
604
604
  });
605
605
  Object.defineProperty(exports, "ThemeEditor", {
606
606
  enumerable: true,
@@ -1256,55 +1256,55 @@ Object.defineProperty(exports, "toDefinitionSource", {
1256
1256
  });
1257
1257
  Object.defineProperty(exports, "AccountDeletionBanner", {
1258
1258
  enumerable: true,
1259
- get: function () { return chunkVCEX7COE_cjs.AccountDeletionBanner; }
1259
+ get: function () { return chunkLIDXIX36_cjs.AccountDeletionBanner; }
1260
1260
  });
1261
1261
  Object.defineProperty(exports, "DEFAULT_ACCOUNT_DELETION_BANNER_TEXT", {
1262
1262
  enumerable: true,
1263
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_ACCOUNT_DELETION_BANNER_TEXT; }
1263
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_ACCOUNT_DELETION_BANNER_TEXT; }
1264
1264
  });
1265
1265
  Object.defineProperty(exports, "DEFAULT_INSECURE_SESSION_BANNER_TEXT", {
1266
1266
  enumerable: true,
1267
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_INSECURE_SESSION_BANNER_TEXT; }
1267
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_INSECURE_SESSION_BANNER_TEXT; }
1268
1268
  });
1269
1269
  Object.defineProperty(exports, "DEFAULT_INSTALL_PROMPT_LABELS", {
1270
1270
  enumerable: true,
1271
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
1271
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
1272
1272
  });
1273
1273
  Object.defineProperty(exports, "INSTALL_PROMPT_DISMISSED_KEY", {
1274
1274
  enumerable: true,
1275
- get: function () { return chunkVCEX7COE_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
1275
+ get: function () { return chunkLIDXIX36_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
1276
1276
  });
1277
1277
  Object.defineProperty(exports, "InsecureSessionBanner", {
1278
1278
  enumerable: true,
1279
- get: function () { return chunkVCEX7COE_cjs.InsecureSessionBanner; }
1279
+ get: function () { return chunkLIDXIX36_cjs.InsecureSessionBanner; }
1280
1280
  });
1281
1281
  Object.defineProperty(exports, "InstallPrompt", {
1282
1282
  enumerable: true,
1283
- get: function () { return chunkVCEX7COE_cjs.InstallPrompt; }
1283
+ get: function () { return chunkLIDXIX36_cjs.InstallPrompt; }
1284
1284
  });
1285
1285
  Object.defineProperty(exports, "NotificationBell", {
1286
1286
  enumerable: true,
1287
- get: function () { return chunkVCEX7COE_cjs.NotificationBell; }
1287
+ get: function () { return chunkLIDXIX36_cjs.NotificationBell; }
1288
1288
  });
1289
1289
  Object.defineProperty(exports, "SplitLayout", {
1290
1290
  enumerable: true,
1291
- get: function () { return chunkVCEX7COE_cjs.SplitLayout; }
1291
+ get: function () { return chunkLIDXIX36_cjs.SplitLayout; }
1292
1292
  });
1293
1293
  Object.defineProperty(exports, "UserMenu", {
1294
1294
  enumerable: true,
1295
- get: function () { return chunkVCEX7COE_cjs.UserMenu; }
1295
+ get: function () { return chunkLIDXIX36_cjs.UserMenu; }
1296
1296
  });
1297
1297
  Object.defineProperty(exports, "initInstallPrompt", {
1298
1298
  enumerable: true,
1299
- get: function () { return chunkVCEX7COE_cjs.initInstallPrompt; }
1299
+ get: function () { return chunkLIDXIX36_cjs.initInstallPrompt; }
1300
1300
  });
1301
1301
  Object.defineProperty(exports, "promptAppInstall", {
1302
1302
  enumerable: true,
1303
- get: function () { return chunkVCEX7COE_cjs.promptAppInstall; }
1303
+ get: function () { return chunkLIDXIX36_cjs.promptAppInstall; }
1304
1304
  });
1305
1305
  Object.defineProperty(exports, "useInstallPrompt", {
1306
1306
  enumerable: true,
1307
- get: function () { return chunkVCEX7COE_cjs.useInstallPrompt; }
1307
+ get: function () { return chunkLIDXIX36_cjs.useInstallPrompt; }
1308
1308
  });
1309
1309
  Object.defineProperty(exports, "Banner", {
1310
1310
  enumerable: true,
@@ -1,14 +1,9 @@
1
- export declare const DEFAULT_INSECURE_SESSION_BANNER_TEXT = "This connection is not secure (no HTTPS), so your session is kept in memory only and you will be signed out when you reload. Use https:// or localhost for a persistent, encrypted session.";
1
+ export declare const DEFAULT_INSECURE_SESSION_BANNER_TEXT = "Temporary session \u2014 reloading requires sign-in.";
2
2
  export interface InsecureSessionBannerProps {
3
3
  text?: string;
4
4
  className?: string;
5
5
  }
6
- /**
7
- * Shown whenever the browser has no Web Crypto (a plain-HTTP origin other than localhost,
8
- * Tracking Prevention, some embedded webviews). Encryption at rest needs a non-extractable key,
9
- * so the session is held in memory only: everything works, but a reload signs the user out. Said
10
- * out loud rather than silently degrading. Renders nothing in a secure context.
11
- */
6
+ /** Warn when encrypted persistence is unavailable, including browser storage failures. */
12
7
  export declare function InsecureSessionBanner({ text, className, }: InsecureSessionBannerProps): import("react").JSX.Element | null;
13
8
  export declare const DEFAULT_ACCOUNT_DELETION_BANNER_TEXT: (date: string) => string;
14
9
  export interface AccountDeletionBannerProps {
@@ -1,13 +1,19 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { canPersistSession } from "@arbidocs/client";
3
+ import { useSyncExternalStore } from "react";
4
+ import { canPersistSession, subscribeSessionPersistence } from "@arbidocs/client";
4
5
  import { Banner } from "../components/Banner.js";
5
- const DEFAULT_INSECURE_SESSION_BANNER_TEXT = "This connection is not secure (no HTTPS), so your session is kept in memory only and you will be signed out when you reload. Use https:// or localhost for a persistent, encrypted session.";
6
+ const DEFAULT_INSECURE_SESSION_BANNER_TEXT = "Temporary session \u2014 reloading requires sign-in.";
6
7
  function InsecureSessionBanner({
7
8
  text = DEFAULT_INSECURE_SESSION_BANNER_TEXT,
8
9
  className
9
10
  }) {
10
- if (canPersistSession()) return null;
11
+ const persistent = useSyncExternalStore(
12
+ subscribeSessionPersistence,
13
+ canPersistSession,
14
+ canPersistSession
15
+ );
16
+ if (persistent) return null;
11
17
  return /* @__PURE__ */ jsx(
12
18
  Banner,
13
19
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/shell/AccountBanners.tsx"],
4
- "sourcesContent": ["import { canPersistSession } from '@arbidocs/client'\nimport { Banner } from '../components/Banner'\n\nexport const DEFAULT_INSECURE_SESSION_BANNER_TEXT =\n 'This connection is not secure (no HTTPS), so your session is kept in memory only and you will be signed out when you reload. Use https:// or localhost for a persistent, encrypted session.'\n\nexport interface InsecureSessionBannerProps {\n text?: string\n className?: string\n}\n\n/**\n * Shown whenever the browser has no Web Crypto (a plain-HTTP origin other than localhost,\n * Tracking Prevention, some embedded webviews). Encryption at rest needs a non-extractable key,\n * so the session is held in memory only: everything works, but a reload signs the user out. Said\n * out loud rather than silently degrading. Renders nothing in a secure context.\n */\nexport function InsecureSessionBanner({\n text = DEFAULT_INSECURE_SESSION_BANNER_TEXT,\n className,\n}: InsecureSessionBannerProps) {\n if (canPersistSession()) return null\n return (\n <Banner\n variant=\"alert\"\n tone=\"warning\"\n text={text}\n className={className}\n testId=\"insecure-context-banner\"\n />\n )\n}\n\nexport const DEFAULT_ACCOUNT_DELETION_BANNER_TEXT = (date: string) =>\n `Account deletion requested on ${date}. Your account and all data will be permanently deleted shortly.`\n\nexport interface AccountDeletionBannerProps {\n /** When the user asked for the deletion (ISO timestamp, the user setting `deletion_requested_at`). */\n requestedAt: string\n /** The notice, given the formatted request date. */\n text?: (date: string) => string\n className?: string\n}\n\n/** The account is due for deletion: a standing notice until it goes. */\nexport function AccountDeletionBanner({\n requestedAt,\n text = DEFAULT_ACCOUNT_DELETION_BANNER_TEXT,\n className,\n}: AccountDeletionBannerProps) {\n const date = new Date(requestedAt).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n return (\n <Banner\n variant=\"alert\"\n tone=\"destructive\"\n text={text(date)}\n className={className}\n testId=\"account-deletion-banner\"\n />\n )\n}\n"],
5
- "mappings": ";AAuBI;AAvBJ,SAAS,yBAAyB;AAClC,SAAS,cAAc;AAEhB,MAAM,uCACX;AAaK,SAAS,sBAAsB;AAAA,EACpC,OAAO;AAAA,EACP;AACF,GAA+B;AAC7B,MAAI,kBAAkB,EAAG,QAAO;AAChC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,QAAO;AAAA;AAAA,EACT;AAEJ;AAEO,MAAM,uCAAuC,CAAC,SACnD,iCAAiC,IAAI;AAWhC,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA,OAAO;AAAA,EACP;AACF,GAA+B;AAC7B,QAAM,OAAO,IAAI,KAAK,WAAW,EAAE,mBAAmB,SAAS;AAAA,IAC7D,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,MAAM,KAAK,IAAI;AAAA,MACf;AAAA,MACA,QAAO;AAAA;AAAA,EACT;AAEJ;",
4
+ "sourcesContent": ["import { useSyncExternalStore } from 'react'\nimport { canPersistSession, subscribeSessionPersistence } from '@arbidocs/client'\nimport { Banner } from '../components/Banner'\n\nexport const DEFAULT_INSECURE_SESSION_BANNER_TEXT =\n 'Temporary session \u2014 reloading requires sign-in.'\n\nexport interface InsecureSessionBannerProps {\n text?: string\n className?: string\n}\n\n/** Warn when encrypted persistence is unavailable, including browser storage failures. */\nexport function InsecureSessionBanner({\n text = DEFAULT_INSECURE_SESSION_BANNER_TEXT,\n className,\n}: InsecureSessionBannerProps) {\n const persistent = useSyncExternalStore(\n subscribeSessionPersistence,\n canPersistSession,\n canPersistSession\n )\n if (persistent) return null\n return (\n <Banner\n variant=\"alert\"\n tone=\"warning\"\n text={text}\n className={className}\n testId=\"insecure-context-banner\"\n />\n )\n}\n\nexport const DEFAULT_ACCOUNT_DELETION_BANNER_TEXT = (date: string) =>\n `Account deletion requested on ${date}. Your account and all data will be permanently deleted shortly.`\n\nexport interface AccountDeletionBannerProps {\n /** When the user asked for the deletion (ISO timestamp, the user setting `deletion_requested_at`). */\n requestedAt: string\n /** The notice, given the formatted request date. */\n text?: (date: string) => string\n className?: string\n}\n\n/** The account is due for deletion: a standing notice until it goes. */\nexport function AccountDeletionBanner({\n requestedAt,\n text = DEFAULT_ACCOUNT_DELETION_BANNER_TEXT,\n className,\n}: AccountDeletionBannerProps) {\n const date = new Date(requestedAt).toLocaleDateString('en-US', {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n })\n return (\n <Banner\n variant=\"alert\"\n tone=\"destructive\"\n text={text(date)}\n className={className}\n testId=\"account-deletion-banner\"\n />\n )\n}\n"],
5
+ "mappings": ";AAwBI;AAxBJ,SAAS,4BAA4B;AACrC,SAAS,mBAAmB,mCAAmC;AAC/D,SAAS,cAAc;AAEhB,MAAM,uCACX;AAQK,SAAS,sBAAsB;AAAA,EACpC,OAAO;AAAA,EACP;AACF,GAA+B;AAC7B,QAAM,aAAa;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACA,MAAI,WAAY,QAAO;AACvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA,QAAO;AAAA;AAAA,EACT;AAEJ;AAEO,MAAM,uCAAuC,CAAC,SACnD,iCAAiC,IAAI;AAWhC,SAAS,sBAAsB;AAAA,EACpC;AAAA,EACA,OAAO;AAAA,EACP;AACF,GAA+B;AAC7B,QAAM,OAAO,IAAI,KAAK,WAAW,EAAE,mBAAmB,SAAS;AAAA,IAC7D,OAAO;AAAA,IACP,KAAK;AAAA,IACL,MAAM;AAAA,EACR,CAAC;AACD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,MAAM,KAAK,IAAI;AAAA,MACf;AAAA,MACA,QAAO;AAAA;AAAA,EACT;AAEJ;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var chunkVCEX7COE_cjs = require('../chunk-VCEX7COE.cjs');
4
+ var chunkLIDXIX36_cjs = require('../chunk-LIDXIX36.cjs');
5
5
  require('../chunk-34HQO4ZQ.cjs');
6
6
  var chunkIFJBE7M5_cjs = require('../chunk-IFJBE7M5.cjs');
7
7
  var chunkK4763GD5_cjs = require('../chunk-K4763GD5.cjs');
@@ -31,55 +31,55 @@ require('../chunk-PLIF5CUV.cjs');
31
31
 
32
32
  Object.defineProperty(exports, "AccountDeletionBanner", {
33
33
  enumerable: true,
34
- get: function () { return chunkVCEX7COE_cjs.AccountDeletionBanner; }
34
+ get: function () { return chunkLIDXIX36_cjs.AccountDeletionBanner; }
35
35
  });
36
36
  Object.defineProperty(exports, "DEFAULT_ACCOUNT_DELETION_BANNER_TEXT", {
37
37
  enumerable: true,
38
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_ACCOUNT_DELETION_BANNER_TEXT; }
38
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_ACCOUNT_DELETION_BANNER_TEXT; }
39
39
  });
40
40
  Object.defineProperty(exports, "DEFAULT_INSECURE_SESSION_BANNER_TEXT", {
41
41
  enumerable: true,
42
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_INSECURE_SESSION_BANNER_TEXT; }
42
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_INSECURE_SESSION_BANNER_TEXT; }
43
43
  });
44
44
  Object.defineProperty(exports, "DEFAULT_INSTALL_PROMPT_LABELS", {
45
45
  enumerable: true,
46
- get: function () { return chunkVCEX7COE_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
46
+ get: function () { return chunkLIDXIX36_cjs.DEFAULT_INSTALL_PROMPT_LABELS; }
47
47
  });
48
48
  Object.defineProperty(exports, "INSTALL_PROMPT_DISMISSED_KEY", {
49
49
  enumerable: true,
50
- get: function () { return chunkVCEX7COE_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
50
+ get: function () { return chunkLIDXIX36_cjs.INSTALL_PROMPT_DISMISSED_KEY; }
51
51
  });
52
52
  Object.defineProperty(exports, "InsecureSessionBanner", {
53
53
  enumerable: true,
54
- get: function () { return chunkVCEX7COE_cjs.InsecureSessionBanner; }
54
+ get: function () { return chunkLIDXIX36_cjs.InsecureSessionBanner; }
55
55
  });
56
56
  Object.defineProperty(exports, "InstallPrompt", {
57
57
  enumerable: true,
58
- get: function () { return chunkVCEX7COE_cjs.InstallPrompt; }
58
+ get: function () { return chunkLIDXIX36_cjs.InstallPrompt; }
59
59
  });
60
60
  Object.defineProperty(exports, "NotificationBell", {
61
61
  enumerable: true,
62
- get: function () { return chunkVCEX7COE_cjs.NotificationBell; }
62
+ get: function () { return chunkLIDXIX36_cjs.NotificationBell; }
63
63
  });
64
64
  Object.defineProperty(exports, "SplitLayout", {
65
65
  enumerable: true,
66
- get: function () { return chunkVCEX7COE_cjs.SplitLayout; }
66
+ get: function () { return chunkLIDXIX36_cjs.SplitLayout; }
67
67
  });
68
68
  Object.defineProperty(exports, "UserMenu", {
69
69
  enumerable: true,
70
- get: function () { return chunkVCEX7COE_cjs.UserMenu; }
70
+ get: function () { return chunkLIDXIX36_cjs.UserMenu; }
71
71
  });
72
72
  Object.defineProperty(exports, "initInstallPrompt", {
73
73
  enumerable: true,
74
- get: function () { return chunkVCEX7COE_cjs.initInstallPrompt; }
74
+ get: function () { return chunkLIDXIX36_cjs.initInstallPrompt; }
75
75
  });
76
76
  Object.defineProperty(exports, "promptAppInstall", {
77
77
  enumerable: true,
78
- get: function () { return chunkVCEX7COE_cjs.promptAppInstall; }
78
+ get: function () { return chunkLIDXIX36_cjs.promptAppInstall; }
79
79
  });
80
80
  Object.defineProperty(exports, "useInstallPrompt", {
81
81
  enumerable: true,
82
- get: function () { return chunkVCEX7COE_cjs.useInstallPrompt; }
82
+ get: function () { return chunkLIDXIX36_cjs.useInstallPrompt; }
83
83
  });
84
84
  Object.defineProperty(exports, "ActionCluster", {
85
85
  enumerable: true,