@tdacorp/hyle-sdk 0.24.1 → 0.26.1

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 (44) hide show
  1. package/README.md +2 -2
  2. package/dist/{embed-BaLQbE_n.d.ts → brand-CwXvdSkk.d.ts} +14 -2
  3. package/dist/{embed-BrrGgkgQ.d.cts → brand-IuZSB9UX.d.cts} +14 -2
  4. package/dist/{chunk-RCK4NCYC.js → chunk-3UQGU62T.js} +12 -0
  5. package/dist/{chunk-O4QWHXVH.js → chunk-IDBQSMWT.js} +1 -1
  6. package/dist/{chunk-5TKJH2XC.js → chunk-NUQQ6VHH.js} +267 -43
  7. package/dist/{chunk-Y3BACEWA.js → chunk-T4EZAQFU.js} +129 -3
  8. package/dist/chunk-VAR2B7S6.js +82 -0
  9. package/dist/{chunk-U74B7AUG.js → chunk-ZWKAEWEW.js} +22 -74
  10. package/dist/{client-DN38IP63.d.ts → client-B2zi_BGq.d.ts} +1 -1
  11. package/dist/{client-CI-3cHtc.d.cts → client-DBZTvcCh.d.cts} +1 -1
  12. package/dist/comments.cjs +25 -1
  13. package/dist/comments.js +4 -2
  14. package/dist/html.cjs +129 -3
  15. package/dist/html.js +1 -1
  16. package/dist/index.cjs +12 -0
  17. package/dist/index.d.cts +4 -4
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +1 -1
  20. package/dist/next.cjs +593 -177
  21. package/dist/next.d.cts +27 -11
  22. package/dist/next.d.ts +27 -11
  23. package/dist/next.js +188 -124
  24. package/dist/react.cjs +401 -46
  25. package/dist/react.d.cts +114 -4
  26. package/dist/react.d.ts +114 -4
  27. package/dist/react.js +14 -4
  28. package/dist/reactions.cjs +25 -1
  29. package/dist/reactions.js +4 -2
  30. package/dist/{resolve-Ce_yz8gC.d.cts → resolve-0nGnsIHo.d.cts} +1 -1
  31. package/dist/{resolve-DMHbYyTS.d.ts → resolve-CguSaZLa.d.ts} +1 -1
  32. package/dist/{revalidation-callback-BQl77tQR.d.cts → revalidation-callback-FT9ik1dh.d.cts} +11 -0
  33. package/dist/{revalidation-callback-BQl77tQR.d.ts → revalidation-callback-FT9ik1dh.d.ts} +11 -0
  34. package/dist/share-client.cjs +498 -0
  35. package/dist/share-client.d.cts +99 -0
  36. package/dist/share-client.d.ts +99 -0
  37. package/dist/share-client.js +390 -0
  38. package/dist/styles.css +176 -1
  39. package/dist/{types-CxE8kLeo.d.cts → types-CdaIzSjg.d.cts} +2 -0
  40. package/dist/{types-CxE8kLeo.d.ts → types-CdaIzSjg.d.ts} +2 -0
  41. package/dist/use-cache.d.cts +3 -3
  42. package/dist/use-cache.d.ts +3 -3
  43. package/dist/use-cache.js +2 -2
  44. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -58,6 +58,11 @@
58
58
  --h-gutter: var(--hyle-gutter, 24px);
59
59
  --h-toc-width: var(--hyle-toc-width, 240px);
60
60
  --h-nav-width: var(--hyle-nav-width, 272px);
61
+ --h-chrome-bg: var(--hyle-chrome-bg, var(--hyle-bg, var(--sig-bg)));
62
+ --h-chrome-bar-bg: var(--hyle-chrome-bar-bg, var(--hyle-surface, var(--sig-surface)));
63
+ --h-chrome-side-bg: var(--hyle-chrome-side-bg, var(--hyle-bg, var(--sig-bg)));
64
+ --h-chrome-bar-height: var(--hyle-chrome-bar-height, 48px);
65
+ --h-chrome-side-width: var(--hyle-chrome-side-width, 260px);
61
66
  --h-sticky-top: var(--hyle-sticky-top, 0px);
62
67
  --h-paragraph-gap: var(--hyle-paragraph-gap, 16px);
63
68
  --h-block-gap: var(--hyle-block-gap, 24px);
@@ -225,7 +230,7 @@ html:has(.hyle-nav-d:popover-open){overflow:hidden}
225
230
  .hyle-tree a:hover{color:var(--h-text)}
226
231
  .hyle-tree li>a:hover{background:var(--h-surface-2)}
227
232
  .hyle-tree a[aria-current="page"]{color:var(--h-text);font-weight:600}
228
- .hyle-tree li>a[aria-current="page"],.hyle-tree summary:has(>a[aria-current="page"]){background:var(--h-surface-2);box-shadow:inset 2px 0 0 var(--h-accent)}
233
+ .hyle-tree li>a[aria-current="page"],.hyle-tree summary:has(>a[aria-current="page"]){background:var(--h-surface-2)}
229
234
  .hyle-tree li a .hyle-badge{margin-left:auto;height:20px;font-size:11px}
230
235
  .hyle-docs-main .hyle-crumbs{margin-bottom:16px}
231
236
  .hyle-docs-main .hyle-title{font-size:calc(var(--h-h1-size) * .9)}
@@ -670,3 +675,173 @@ html.hyle-viewer-lock.hyle-viewer-fs{scrollbar-gutter:auto}
670
675
  .hyle-embed[data-layout="grid"] .hyle-items>li{border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius-lg)}
671
676
  .hyle-embed[data-layout="grid"] .hyle-item{grid-template-columns:minmax(0,1fr);gap:4px;height:100%;padding:16px}
672
677
  .hyle-embed[data-layout="grid"] .hyle-item time{order:-1;font-size:13px;line-height:1.4}
678
+
679
+
680
+ /* ---- Protected share chrome (DECISIONS 109 to 124): the full-page frame of a protected share. Top bar, left document list, article, right contents.
681
+ Reads --h-* only. Replaces the host's page (no host header or footer), so it paints its own background (--hyle-chrome-bg). Markup: site_share_parts in gen_share_chrome.py. ---- */
682
+ .hyle-share{min-height:100dvh;background:var(--h-chrome-bg);--h-sticky-top:calc(var(--h-chrome-bar-height) + var(--h-notice-h,0px))}
683
+ .hyle-share .hyle-skip{position:absolute;left:8px;top:-64px;z-index:60;display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:var(--h-radius);background:var(--h-text);color:var(--h-chrome-bg);font-size:14px;font-weight:600;text-decoration:none}
684
+ .hyle-share .hyle-skip:focus{top:6px}
685
+ .hyle-share :where(button,input,a,[tabindex]):focus-visible{outline:2px solid var(--h-focus);outline-offset:2px}
686
+
687
+ /* top bar */
688
+ .hyle-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:8px;height:var(--h-chrome-bar-height);padding:0 12px;border-bottom:1px solid var(--h-hairline);background:var(--h-chrome-bar-bg);font-size:14px}
689
+ .hyle-bar .sp{flex:1;min-width:0}
690
+ .hyle-bar-btn{display:inline-grid;place-items:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:min(var(--h-radius),6px);background:transparent;color:var(--h-text-muted);cursor:pointer;text-decoration:none}
691
+ .hyle-bar-btn:hover{background:var(--h-surface-2);color:var(--h-text)}
692
+ .hyle-bar-btn[aria-expanded="true"]{background:var(--h-surface-2);color:var(--h-text)}
693
+ .hyle-bar-menu,.hyle-search-open,.hyle-statusrow{display:none}
694
+ .hyle-brand{display:inline-flex;align-items:center;gap:8px;flex:none;padding:0 4px;color:var(--h-text);font-weight:600;text-decoration:none;white-space:nowrap}
695
+ .hyle-brand img,.hyle-brand svg.mark{width:20px;height:20px;flex:none}
696
+ .hyle-bar-title{display:flex;align-items:center;gap:8px;min-width:0;margin-left:4px;padding-left:12px;border-left:1px solid var(--h-hairline)}
697
+ .hyle-bar-title .share{flex:0 1 auto;min-width:0;max-width:220px;overflow:hidden;color:var(--h-text-muted);text-overflow:ellipsis;white-space:nowrap}
698
+ .hyle-bar-title .sep{color:var(--h-text-faint)}
699
+ .hyle-bar-title .doc{min-width:0;overflow:hidden;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
700
+ .hyle-chip{display:inline-flex;align-items:center;gap:8px;flex:none;height:28px;padding:0 10px;border:var(--h-border-width) solid var(--h-border);border-radius:min(var(--h-radius),6px);background:var(--h-surface-2);color:var(--h-text);font-size:13px;white-space:nowrap}
701
+ .hyle-chip b{font-weight:600}
702
+ .hyle-chip .exp{color:var(--h-text-muted)}
703
+ .hyle-chip[data-state="soon"]{border-color:color-mix(in srgb,var(--h-warn) 40%,var(--h-border));background:color-mix(in srgb,var(--h-warn) 12%,var(--h-surface))}
704
+ .hyle-chip[data-state="soon"] .hyle-ic{color:var(--h-warn)}
705
+ .hyle-chip[data-state="expired"]{border-color:color-mix(in srgb,var(--h-bad) 40%,var(--h-border));background:color-mix(in srgb,var(--h-bad) 10%,var(--h-surface))}
706
+ .hyle-chip[data-state="expired"] .hyle-ic{color:var(--h-bad)}
707
+ .hyle-lock{display:inline-flex;align-items:center;gap:8px;flex:none;height:32px;padding:0 12px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius);background:transparent;color:var(--h-text);font:500 14px/1 var(--h-font-sans);cursor:pointer}
708
+ .hyle-lock:hover{background:var(--h-surface-2)}
709
+ .hyle-lock-form{display:contents}
710
+
711
+ /* search: a combobox in the bar on a wide mount, an icon that opens a sheet on a narrow one */
712
+ .hyle-search{position:relative;flex:none}
713
+ .hyle-search-field{display:flex;align-items:center;gap:8px;width:272px;height:32px;padding:0 8px 0 10px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius);background:var(--h-chrome-bg);color:var(--h-text-muted)}
714
+ .hyle-search-field:focus-within{outline:2px solid var(--h-focus);outline-offset:1px}
715
+ /* the field draws the one ring; the input inside it does not add its own */
716
+ .hyle-search-field input:focus-visible{outline:0}
717
+ .hyle-search-field:focus-within kbd{display:none}
718
+ .hyle-search-field input{flex:1;min-width:0;height:100%;padding:0;border:0;outline:0;background:transparent;color:var(--h-text);font:400 14px/1 var(--h-font-sans)}
719
+ .hyle-search-field input::placeholder{color:var(--h-text-faint)}
720
+ .hyle-search-field kbd{flex:none;display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border:var(--h-border-width) solid var(--h-border);border-radius:4px;background:var(--h-surface);color:var(--h-text-faint);font:500 11px/1 var(--h-font-mono)}
721
+ .hyle-search-back{display:none}
722
+ .hyle-results{position:absolute;right:0;top:calc(100% + 8px);width:min(480px,92vw);max-height:min(440px,calc(100dvh - 96px));overflow:auto;padding:4px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius-lg);background:var(--h-surface);box-shadow:var(--h-shadow)}
723
+ .hyle-results[hidden]{display:none}
724
+ .hyle-opt{display:block;padding:8px 12px;border-radius:min(var(--h-radius),6px);color:var(--h-text);text-decoration:none}
725
+ .hyle-opt[aria-selected="true"],.hyle-opt:hover{background:var(--h-surface-2)}
726
+ .hyle-opt .t{display:block;font-size:14px;font-weight:600;line-height:1.35}
727
+ .hyle-opt .s{display:-webkit-box;margin-top:2px;overflow:hidden;color:var(--h-text-muted);font-size:13px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
728
+ .hyle-opt .at{display:block;margin-top:4px;color:var(--h-text-faint);font-size:12px}
729
+ .hyle-opt mark{padding:0;border-radius:2px;background:color-mix(in srgb,var(--h-text) 16%,transparent);color:inherit;font-weight:inherit}
730
+ .hyle-results-note{padding:16px 12px;color:var(--h-text-muted);font-size:14px;line-height:1.5}
731
+ .hyle-results-note b{display:block;color:var(--h-text);font-weight:600}
732
+ .hyle-results-foot{display:flex;gap:16px;margin-top:4px;padding:8px 12px 4px;border-top:1px solid var(--h-hairline);color:var(--h-text-faint);font-size:12px}
733
+ .hyle-results-foot kbd{padding:0 4px;border:var(--h-border-width) solid var(--h-border);border-radius:4px;font:500 11px/16px var(--h-font-mono)}
734
+
735
+ /* theme: one button, a menu of three radios */
736
+ .hyle-theme{position:relative;flex:none}
737
+ .hyle-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:168px;padding:4px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius-lg);background:var(--h-surface);box-shadow:var(--h-shadow)}
738
+ .hyle-menu button{display:flex;align-items:center;gap:8px;width:100%;height:32px;padding:0 8px;border:0;border-radius:min(var(--h-radius),6px);background:transparent;color:var(--h-text);font:400 14px/1 var(--h-font-sans);text-align:left;cursor:pointer}
739
+ .hyle-menu button:hover{background:var(--h-surface-2)}
740
+ .hyle-menu button[aria-checked="true"]{font-weight:600}
741
+ .hyle-menu .ck{margin-left:auto;visibility:hidden}
742
+ .hyle-menu button[aria-checked="true"] .ck{visibility:visible}
743
+
744
+ /* notice under the bar (expires soon, expired while open) */
745
+ .hyle-notice{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--h-hairline);font-size:14px;line-height:1.45;color:var(--h-text-muted)}
746
+ .hyle-notice b{color:var(--h-text);font-weight:600}
747
+ .hyle-share:has(.hyle-notice){--h-notice-h:42px}
748
+ .hyle-notice{position:sticky;top:var(--h-chrome-bar-height);z-index:25}
749
+ .hyle-notice[data-kind="warn"]{background:color-mix(in srgb,var(--h-warn) 9%,var(--h-surface))}
750
+ .hyle-notice[data-kind="warn"] .hyle-ic{color:var(--h-warn)}
751
+ .hyle-notice[data-kind="bad"]{background:color-mix(in srgb,var(--h-bad) 8%,var(--h-surface))}
752
+ .hyle-notice[data-kind="bad"] .hyle-ic{color:var(--h-bad)}
753
+
754
+ /* body: document list, article, contents */
755
+ .hyle-share-body{display:grid;grid-template-columns:var(--h-chrome-side-width) minmax(0,1fr);align-items:start}
756
+ .hyle-share-body[data-side="closed"],.hyle-share-body[data-side="none"]{grid-template-columns:minmax(0,1fr)}
757
+ .hyle-share-body[data-side="closed"]>.hyle-side,.hyle-share-body[data-side="none"]>.hyle-side{display:none}
758
+ .hyle-side{position:sticky;top:calc(var(--h-chrome-bar-height) + var(--h-notice-h,0px));display:flex;flex-direction:column;height:calc(100dvh - var(--h-chrome-bar-height) - var(--h-notice-h,0px));overflow:hidden;border-right:1px solid var(--h-hairline);background:var(--h-chrome-side-bg)}
759
+ .hyle-share .hyle-side-head{display:block;margin:0;padding:16px 16px 12px}
760
+ .hyle-share .hyle-side-head .nm{display:block;font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
761
+ .hyle-share .hyle-side-head .n{display:block;margin-top:2px;color:var(--h-text-muted);font-size:13px}
762
+ .hyle-side-x{display:none}
763
+ .hyle-side-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 12px}
764
+ .hyle-side-list ol{list-style:none}
765
+ .hyle-side-list li+li{margin-top:2px}
766
+ .hyle-side-list a{display:block;padding:6px 8px;border-radius:min(var(--h-radius),6px);color:var(--h-text-muted);font-size:14px;line-height:1.4;text-decoration:none}
767
+ .hyle-side-list a>span{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
768
+ .hyle-side-list a:hover{background:var(--h-surface-2);color:var(--h-text)}
769
+ .hyle-side-list a[aria-current="page"]{background:var(--h-surface-2);color:var(--h-text);font-weight:600}
770
+ .hyle-side-foot{padding:12px 16px 16px;border-top:1px solid var(--h-hairline);color:var(--h-text-muted);font-size:13px;line-height:1.45}
771
+ .hyle-side-foot p{display:flex;gap:8px;align-items:flex-start}
772
+ .hyle-side-foot p+p{margin-top:8px}
773
+ .hyle-side-foot .hyle-ic{margin-top:2px;color:var(--h-text-faint)}
774
+ .hyle-side-foot [data-state="soon"]{color:var(--h-text)}
775
+ .hyle-scrim{display:none}
776
+ .hyle-share-main{display:grid;grid-template-columns:minmax(0,var(--h-measure));justify-content:center;column-gap:48px;min-width:0;padding:40px var(--h-gutter) 96px}
777
+ .hyle-share-main>*{min-width:0}
778
+ .hyle-share-main .hyle-doc>*{max-width:var(--h-measure)}
779
+ .hyle-share-main .hyle-eyebrow{margin-bottom:12px;color:var(--h-text-muted);font-size:13px}
780
+ .hyle-share-main .hyle-title{font-size:calc(var(--h-h1-size) * .9)}
781
+ .hyle-share-main .hyle-updated{display:flex;align-items:center;gap:8px;margin-top:16px;color:var(--h-text-muted);font-size:14px}
782
+ .hyle-share-main .hyle-prose{margin-top:32px}
783
+ .hyle-share-main .hyle-toc-d{display:none;position:sticky;top:calc(var(--h-chrome-bar-height) + 24px);grid-column:2;grid-row:1;align-self:start;max-height:calc(100dvh - var(--h-chrome-bar-height) - 48px);padding-top:8px;overflow:auto}
784
+ @container hyle (min-width:1280px){
785
+ .hyle-share-main{grid-template-columns:minmax(0,var(--h-measure)) var(--h-toc-width)}
786
+ .hyle-share-main>.hyle-doc>.hyle-toc-m{display:none}
787
+ .hyle-share-main>.hyle-toc-d{display:block}
788
+ }
789
+ @container hyle (min-width:1040px){
790
+ .hyle-share-body[data-side="closed"] .hyle-share-main,.hyle-share-body[data-side="none"] .hyle-share-main{grid-template-columns:minmax(0,var(--h-measure)) var(--h-toc-width)}
791
+ .hyle-share-body[data-side="closed"] .hyle-share-main>.hyle-doc>.hyle-toc-m,.hyle-share-body[data-side="none"] .hyle-share-main>.hyle-doc>.hyle-toc-m{display:none}
792
+ .hyle-share-body[data-side="closed"] .hyle-share-main>.hyle-toc-d,.hyle-share-body[data-side="none"] .hyle-share-main>.hyle-toc-d{display:block}
793
+ }
794
+ @container hyle (max-width:1180px){.hyle-chip .exp{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
795
+
796
+ /* gate and refusal pages: the same bar (brand and theme only), one centred card. No share name here: it is behind the password. */
797
+ .hyle-gate{display:grid;place-items:start center;min-height:calc(100dvh - var(--h-chrome-bar-height));padding:12vh 16px 48px}
798
+ .hyle-card{width:min(400px,100%);padding:32px 24px 24px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius-lg);background:var(--h-surface);text-align:center}
799
+ .hyle-card .glyph{display:inline-grid;place-items:center;width:40px;height:40px;margin-bottom:16px;border:var(--h-border-width) solid var(--h-border);border-radius:50%;background:var(--h-surface-2);color:var(--h-text-muted)}
800
+ .hyle-card .glyph .hyle-ic{width:20px;height:20px}
801
+ .hyle-card[data-kind="warn"] .glyph{color:var(--h-warn)}
802
+ .hyle-card h1{font-family:var(--h-font-heading);font-size:20px;font-weight:var(--h-heading-weight);letter-spacing:var(--h-heading-tracking);line-height:1.25}
803
+ .hyle-card>p{margin-top:8px;color:var(--h-text-muted);font-size:14px;line-height:1.5}
804
+ .hyle-card form{display:flex;flex-direction:column;gap:12px;margin-top:24px;text-align:left}
805
+ .hyle-card label{font-size:13px;font-weight:600}
806
+ .hyle-card input[type="password"]{width:100%;height:40px;padding:0 12px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius);background:var(--h-chrome-bg);color:var(--h-text);font:400 15px/1 var(--h-font-sans)}
807
+ .hyle-card input[aria-invalid="true"]{border-color:var(--h-bad)}
808
+ .hyle-card .err{color:var(--h-bad);font-size:13px}
809
+ .hyle-card .hyle-btn{width:100%}
810
+ .hyle-toast{position:fixed;left:50%;bottom:24px;z-index:50;display:flex;align-items:center;gap:8px;padding:10px 16px;border:var(--h-border-width) solid var(--h-border);border-radius:var(--h-radius);background:var(--h-surface);box-shadow:var(--h-shadow);color:var(--h-text);font-size:14px;transform:translateX(-50%)}
811
+ .hyle-toast .hyle-ic{color:var(--h-ok)}
812
+
813
+ /* narrow mount: the list is a drawer from the menu button, search is a sheet, the chip is a row under the bar */
814
+ @container hyle (max-width:760px){
815
+ .hyle-bar{gap:4px;padding:0 8px}
816
+ .hyle-bar-btn,.hyle-lock{width:40px;height:40px}
817
+ .hyle-lock{padding:0;justify-content:center}
818
+ .hyle-lock span,.hyle-brand .nm,.hyle-bar-title .share,.hyle-bar-title .sep,.hyle-bar-fold,.hyle-bar>.hyle-chip{display:none}
819
+ .hyle-bar-menu,.hyle-search-open{display:inline-grid}
820
+ .hyle-bar-title{margin-left:0;padding-left:8px;border-left:0}
821
+ .hyle-bar-title .doc{font-size:15px}
822
+ .hyle-notice{position:static}
823
+ .hyle-share{--h-sticky-top:var(--h-chrome-bar-height)}
824
+ .hyle-statusrow{display:flex;padding:8px 16px;border-bottom:1px solid var(--h-hairline);background:var(--h-chrome-bg)}
825
+ .hyle-share-body{grid-template-columns:minmax(0,1fr)}
826
+ .hyle-share-main{padding:24px 16px 64px}
827
+ /* the drawer is a popover="auto" (native Escape, light dismiss and top layer, no script needed); closed, it is not rendered */
828
+ .hyle-side{position:fixed;inset:0 auto 0 0;z-index:50;width:min(320px,86vw);max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:var(--h-surface);box-shadow:var(--h-shadow)}
829
+ .hyle-side:not(:popover-open){display:none}
830
+ .hyle-share-body[data-side] > .hyle-side:popover-open{display:flex}
831
+ .hyle-side::backdrop{background:rgb(0 0 0/.5)}
832
+ html:has(.hyle-side:popover-open){overflow:hidden}
833
+ .hyle-share .hyle-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
834
+ .hyle-side-x{display:inline-grid;flex:none;margin:-4px -8px 0 0}
835
+ .hyle-search{position:static}
836
+ .hyle-search-field{display:none}
837
+ .hyle-search[data-sheet]{position:fixed;inset:0;z-index:55;display:flex;flex-direction:column;background:var(--h-chrome-bg)}
838
+ .hyle-search[data-sheet] .hyle-search-open{display:none}
839
+ .hyle-search[data-sheet] .hyle-search-top{display:flex;align-items:center;gap:4px;height:var(--h-chrome-bar-height);padding:0 8px;border-bottom:1px solid var(--h-hairline);background:var(--h-chrome-bar-bg)}
840
+ .hyle-search[data-sheet] .hyle-search-field{display:flex;flex:1;height:40px;width:auto}
841
+ .hyle-search[data-sheet] .hyle-search-back{display:inline-grid}
842
+ .hyle-search[data-sheet] .hyle-results{position:static;flex:1;width:auto;max-height:none;border:0;border-radius:0;background:var(--h-chrome-bg);box-shadow:none;padding:8px}
843
+ .hyle-search[data-sheet] .hyle-search-field kbd,.hyle-search[data-sheet] .hyle-results-foot{display:none}
844
+ .hyle-opt{padding:12px}
845
+ .hyle-gate{padding-top:8vh}
846
+ }
847
+ .hyle-search-top{display:contents}
@@ -285,10 +285,12 @@ interface HyleProtectedShare {
285
285
  readonly name: string;
286
286
  /** When the share stops working, or null for none. */
287
287
  readonly expires_at: string | null;
288
+ /** `description` is the document's first paragraph (hyle 0115 and later); absent or null from an older hyle. */
288
289
  readonly documents: readonly {
289
290
  readonly doc_slug: string;
290
291
  readonly title: string;
291
292
  readonly position: number;
293
+ readonly description?: string | null;
292
294
  }[];
293
295
  /** The document this answer draws. */
294
296
  readonly doc_slug: string;
@@ -285,10 +285,12 @@ interface HyleProtectedShare {
285
285
  readonly name: string;
286
286
  /** When the share stops working, or null for none. */
287
287
  readonly expires_at: string | null;
288
+ /** `description` is the document's first paragraph (hyle 0115 and later); absent or null from an older hyle. */
288
289
  readonly documents: readonly {
289
290
  readonly doc_slug: string;
290
291
  readonly title: string;
291
292
  readonly position: number;
293
+ readonly description?: string | null;
292
294
  }[];
293
295
  /** The document this answer draws. */
294
296
  readonly doc_slug: string;
@@ -1,6 +1,6 @@
1
- import { H as HyleAuth } from './client-CI-3cHtc.cjs';
2
- import { H as HyleResolver } from './resolve-Ce_yz8gC.cjs';
3
- import './types-CxE8kLeo.cjs';
1
+ import { H as HyleAuth } from './client-DBZTvcCh.cjs';
2
+ import { H as HyleResolver } from './resolve-0nGnsIHo.cjs';
3
+ import './types-CdaIzSjg.cjs';
4
4
 
5
5
  /**
6
6
  * The exact caching strategy: a `'use cache'` function that fetches, then tags its own entry with the tags the response
@@ -1,6 +1,6 @@
1
- import { H as HyleAuth } from './client-DN38IP63.js';
2
- import { H as HyleResolver } from './resolve-DMHbYyTS.js';
3
- import './types-CxE8kLeo.js';
1
+ import { H as HyleAuth } from './client-B2zi_BGq.js';
2
+ import { H as HyleResolver } from './resolve-CguSaZLa.js';
3
+ import './types-CdaIzSjg.js';
4
4
 
5
5
  /**
6
6
  * The exact caching strategy: a `'use cache'` function that fetches, then tags its own entry with the tags the response
package/dist/use-cache.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DEFAULT_REVALIDATE
3
- } from "./chunk-O4QWHXVH.js";
3
+ } from "./chunk-IDBQSMWT.js";
4
4
  import {
5
5
  createHyleClient,
6
6
  isValidCacheTag
7
- } from "./chunk-RCK4NCYC.js";
7
+ } from "./chunk-3UQGU62T.js";
8
8
  import "./chunk-BDFMNY76.js";
9
9
 
10
10
  // src/next/use-cache.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tdacorp/hyle-sdk",
3
- "version": "0.24.1",
3
+ "version": "0.26.1",
4
4
  "description": "hyle SDK: a typed client for hyle's resolve endpoint, a hast renderer for React, and a Next.js catch-all page with tag-based revalidation.",
5
5
  "license": "MIT",
6
6
  "repository": {