Commit 248012e
feat(content-preview): forward monitoring dimensions (#4542)
* feat(content-preview): forward monitoring dimensions to Preview
Accept accessPattern, previewMode, sharedLinkAuth as props on
ContentPreview and pass them through to the underlying Preview library
so emitted metric/error events are tagged for the monitoring dashboard.
PREVIEW-225
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(content-preview): forward preload/prefetch status to Preview
Accepts two new optional props on ContentPreview — prefetchStatus
and preloadStatus — and threads them into previewOptions so
box-content-preview can tag emitted load/error/outcome events.
PREVIEW-225
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* revert(content-preview): stop forwarding preload/prefetch status
box-content-preview now derives both signals internally. The wrapper
no longer accepts these props.
PREVIEW-225
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* feat(content-preview): forward preloadStatus to Preview
Wrapper accepts preloadStatus prop and threads it into previewOptions
so box-content-preview can tag emitted load/error/outcome events.
PREVIEW-225
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* style(content-preview): sort new Props alphabetically
Addresses PR comment: merge the 4 new monitoring-dimension props into
alphabetical order with the existing Props type members.
PREVIEW-225
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent aa05a39 commit 248012e
2 files changed
Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
| 135 | + | |
133 | 136 | | |
134 | 137 | | |
135 | 138 | | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
899 | 903 | | |
900 | 904 | | |
901 | 905 | | |
| 906 | + | |
902 | 907 | | |
903 | 908 | | |
904 | 909 | | |
| |||
909 | 914 | | |
910 | 915 | | |
911 | 916 | | |
| 917 | + | |
912 | 918 | | |
| 919 | + | |
| 920 | + | |
913 | 921 | | |
914 | 922 | | |
915 | 923 | | |
| |||
951 | 959 | | |
952 | 960 | | |
953 | 961 | | |
| 962 | + | |
954 | 963 | | |
955 | 964 | | |
956 | 965 | | |
| |||
960 | 969 | | |
961 | 970 | | |
962 | 971 | | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
963 | 975 | | |
964 | 976 | | |
965 | 977 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
388 | 423 | | |
389 | 424 | | |
390 | 425 | | |
| |||
0 commit comments