@openviking/react 0.1.7 → 0.1.8-beta.11.1.gc6def608a25e

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 (127) hide show
  1. package/README.md +11 -1
  2. package/dist/1~0.js +57 -0
  3. package/dist/3~0.js +171 -5
  4. package/dist/5~0.js +181 -0
  5. package/dist/6~0.js +48 -0
  6. package/dist/ark-message-list-view~0.js +50 -8
  7. package/dist/components/agent-connect/style.css +4 -2
  8. package/dist/components/api-key-login-form/api-key-login-form.d.ts +2 -0
  9. package/dist/components/api-key-login-form/index.d.ts +3 -0
  10. package/dist/components/api-key-login-form/style.css +438 -0
  11. package/dist/components/api-key-login-form/style.js +0 -0
  12. package/dist/components/api-key-login-form/types.d.ts +7 -0
  13. package/dist/components/api-key-login-form.js +1 -0
  14. package/dist/components/directory-tour/directory-tour-intro.d.ts +3 -0
  15. package/dist/components/directory-tour/index.d.ts +2 -1
  16. package/dist/components/directory-tour/style.css +154 -26
  17. package/dist/components/directory-tour/tour-card.d.ts +14 -0
  18. package/dist/components/directory-tour/types.d.ts +24 -1
  19. package/dist/components/directory-tour/use-tour-anchor.d.ts +1 -0
  20. package/dist/components/directory-tour/use-tour-position.d.ts +4 -1
  21. package/dist/components/directory-tour/use-tour-theme.d.ts +2 -0
  22. package/dist/components/directory-tour.js +52 -1
  23. package/dist/components/email-login-form/email-login-form.d.ts +2 -0
  24. package/dist/components/email-login-form/index.d.ts +3 -0
  25. package/dist/components/email-login-form/style.css +438 -0
  26. package/dist/components/email-login-form/style.js +0 -0
  27. package/dist/components/email-login-form/types.d.ts +11 -0
  28. package/dist/components/email-login-form.js +1 -0
  29. package/dist/components/experience-dashboard/experience-impact.d.ts +3 -1
  30. package/dist/components/experience-dashboard/style.css +4 -2
  31. package/dist/components/file-browser-entries/style.css +12 -6
  32. package/dist/components/file-preview/file-preview-header.d.ts +4 -21
  33. package/dist/components/file-preview/file-preview-toolbar.d.ts +7 -0
  34. package/dist/components/file-preview/locales/en-US.d.ts +9 -0
  35. package/dist/components/file-preview/locales/zh-CN.d.ts +9 -0
  36. package/dist/components/file-preview/style.css +116 -2
  37. package/dist/components/file-preview/types.d.ts +14 -21
  38. package/dist/components/file-tree/style.css +4 -2
  39. package/dist/components/invitation-confirmation/index.d.ts +3 -0
  40. package/dist/components/invitation-confirmation/invitation-confirmation.d.ts +2 -0
  41. package/dist/components/invitation-confirmation/style.css +438 -0
  42. package/dist/components/invitation-confirmation/style.js +0 -0
  43. package/dist/components/invitation-confirmation/types.d.ts +20 -0
  44. package/dist/components/invitation-confirmation.js +1 -0
  45. package/dist/components/login-method-selector/index.d.ts +2 -0
  46. package/dist/components/login-method-selector/login-method-selector.d.ts +2 -0
  47. package/dist/components/login-method-selector/style.css +438 -0
  48. package/dist/components/login-method-selector/style.js +0 -0
  49. package/dist/components/login-method-selector/types.d.ts +14 -0
  50. package/dist/components/login-method-selector.js +1 -0
  51. package/dist/components/password-reset-request-form/index.d.ts +3 -0
  52. package/dist/components/password-reset-request-form/password-reset-request-form.d.ts +2 -0
  53. package/dist/components/password-reset-request-form/style.css +438 -0
  54. package/dist/components/password-reset-request-form/style.js +0 -0
  55. package/dist/components/password-reset-request-form/types.d.ts +13 -0
  56. package/dist/components/password-reset-request-form.js +1 -0
  57. package/dist/components/password-setup-form/index.d.ts +3 -0
  58. package/dist/components/password-setup-form/password-setup-form.d.ts +2 -0
  59. package/dist/components/password-setup-form/style.css +438 -0
  60. package/dist/components/password-setup-form/style.js +0 -0
  61. package/dist/components/password-setup-form/types.d.ts +10 -0
  62. package/dist/components/password-setup-form.js +1 -0
  63. package/dist/components/scope-switcher/style.css +4 -2
  64. package/dist/components/scope-switcher.js +1 -1
  65. package/dist/components/style.css +3120 -79
  66. package/dist/components/tui/style.css +8 -4
  67. package/dist/components/viking-bot/bot-popover.d.ts +2 -1
  68. package/dist/components/viking-bot/composer-reference-tags.d.ts +8 -0
  69. package/dist/components/viking-bot/composer-references.d.ts +0 -5
  70. package/dist/components/viking-bot/locales/en-US.d.ts +1 -0
  71. package/dist/components/viking-bot/locales/zh-CN.d.ts +1 -0
  72. package/dist/components/viking-bot/model.d.ts +1 -0
  73. package/dist/components/viking-bot/popover-tab-navigation.d.ts +3 -0
  74. package/dist/components/viking-bot/style.css +166 -27
  75. package/dist/components/viking-bot/types.d.ts +3 -1
  76. package/dist/components/viking-bot/user-message-group.d.ts +9 -0
  77. package/dist/components/wiki-dashboard/index.d.ts +1 -1
  78. package/dist/components/wiki-dashboard/style.css +16 -4
  79. package/dist/components/wiki-dashboard/types.d.ts +12 -16
  80. package/dist/components/wiki-dashboard/wiki-action-button.d.ts +2 -9
  81. package/dist/components/wiki-dashboard/wiki-conflict-card.d.ts +3 -10
  82. package/dist/c~0.js +77 -6
  83. package/dist/d~0.js +28 -0
  84. package/dist/ep~0.js +281 -133
  85. package/dist/fi~0.js +339 -0
  86. package/dist/fj~0.js +32 -67
  87. package/dist/fl~0.js +3 -2
  88. package/dist/f~0.js +63 -326
  89. package/dist/g~0.js +135 -0
  90. package/dist/icons/index.d.ts +2 -0
  91. package/dist/icons/viking-bot-icons.d.ts +1 -1
  92. package/dist/icons.js +1 -1
  93. package/dist/index.d.ts +12 -0
  94. package/dist/index.js +8 -2
  95. package/dist/k~0.js +44 -4
  96. package/dist/l5~0.js +3813 -0
  97. package/dist/lg~0.js +41 -1
  98. package/dist/lk~0.js +1 -1
  99. package/dist/l~0.js +54 -3811
  100. package/dist/modules/console/style.css +182 -35
  101. package/dist/modules/file-browser/file-browser-detail-icons.d.ts +0 -6
  102. package/dist/modules/file-browser/file-browser-detail.d.ts +2 -23
  103. package/dist/modules/file-browser/file-browser.d.ts +1 -1
  104. package/dist/modules/file-browser/fs-file-editing.d.ts +4 -0
  105. package/dist/modules/file-browser/fs-preview-images.d.ts +3 -0
  106. package/dist/modules/file-browser/fs-read-file.d.ts +1 -1
  107. package/dist/modules/file-browser/style.css +156 -70
  108. package/dist/modules/file-browser/types.d.ts +2 -0
  109. package/dist/modules/file-browser/use-file-browser-acl.d.ts +1 -0
  110. package/dist/modules/file-browser/wiki-dashboard-pane.d.ts +2 -4
  111. package/dist/modules/file-browser.js +1 -1
  112. package/dist/modules/scope-cascade/style.css +4 -2
  113. package/dist/modules/style.css +346 -109
  114. package/dist/n~0.js +1 -1
  115. package/dist/p0~0.js +27 -0
  116. package/dist/p~0.js +34 -25
  117. package/dist/shared/auth/agreements.d.ts +10 -0
  118. package/dist/shared/auth/fields.d.ts +15 -0
  119. package/dist/shared/auth/form-frame.d.ts +12 -0
  120. package/dist/shared/auth/locales/en-US.d.ts +24 -0
  121. package/dist/shared/auth/locales/zh-CN.d.ts +24 -0
  122. package/dist/shared/auth/types.d.ts +61 -0
  123. package/dist/shared/auth/use-auth-labels.d.ts +3 -0
  124. package/dist/shared/auth/use-form.d.ts +8 -0
  125. package/dist/style.css +3690 -410
  126. package/dist/viking-bot-composer~0.js +86 -29
  127. package/package.json +32 -2
@@ -167,9 +167,11 @@
167
167
  }
168
168
  }
169
169
 
170
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
170
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
171
171
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
172
172
  --ov-ui-tour-highlight-default: #5252ff14;
173
+ --ov-ui-auth-on-primary-default: #fff;
174
+ --ov-ui-auth-backdrop-default: #0006;
173
175
  --ov-ui-primary-default: #5252ff;
174
176
  --ov-ui-primary-hover-default: #7075ff;
175
177
  --ov-ui-primary-active-default: #3833d2;
@@ -226,7 +228,7 @@
226
228
  #bd9cff 100%);
227
229
  }
228
230
 
229
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
231
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
230
232
  --ov-ui-primary-default: #5f5fff;
231
233
  --ov-ui-primary-hover-default: #7075ff;
232
234
  --ov-ui-primary-active-default: #4242ba;
@@ -519,9 +521,11 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
519
521
  }
520
522
  }
521
523
 
522
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
524
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
523
525
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
524
526
  --ov-ui-tour-highlight-default: #5252ff14;
527
+ --ov-ui-auth-on-primary-default: #fff;
528
+ --ov-ui-auth-backdrop-default: #0006;
525
529
  --ov-ui-primary-default: #5252ff;
526
530
  --ov-ui-primary-hover-default: #7075ff;
527
531
  --ov-ui-primary-active-default: #3833d2;
@@ -578,7 +582,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
578
582
  #bd9cff 100%);
579
583
  }
580
584
 
581
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
585
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
582
586
  --ov-ui-primary-default: #5f5fff;
583
587
  --ov-ui-primary-hover-default: #7075ff;
584
588
  --ov-ui-primary-active-default: #4242ba;
@@ -702,9 +706,11 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
702
706
  --ov-ui-dashboard-success-default: var(--ov-ui-status-success-default);
703
707
  }
704
708
 
705
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
709
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
706
710
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
707
711
  --ov-ui-tour-highlight-default: #5252ff14;
712
+ --ov-ui-auth-on-primary-default: #fff;
713
+ --ov-ui-auth-backdrop-default: #0006;
708
714
  --ov-ui-primary-default: #5252ff;
709
715
  --ov-ui-primary-hover-default: #7075ff;
710
716
  --ov-ui-primary-active-default: #3833d2;
@@ -761,7 +767,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
761
767
  #bd9cff 100%);
762
768
  }
763
769
 
764
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
770
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
765
771
  --ov-ui-primary-default: #5f5fff;
766
772
  --ov-ui-primary-hover-default: #7075ff;
767
773
  --ov-ui-primary-active-default: #4242ba;
@@ -2823,9 +2829,11 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
2823
2829
  }
2824
2830
  }
2825
2831
 
2826
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
2832
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
2827
2833
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
2828
2834
  --ov-ui-tour-highlight-default: #5252ff14;
2835
+ --ov-ui-auth-on-primary-default: #fff;
2836
+ --ov-ui-auth-backdrop-default: #0006;
2829
2837
  --ov-ui-primary-default: #5252ff;
2830
2838
  --ov-ui-primary-hover-default: #7075ff;
2831
2839
  --ov-ui-primary-active-default: #3833d2;
@@ -2882,7 +2890,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
2882
2890
  #bd9cff 100%);
2883
2891
  }
2884
2892
 
2885
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
2893
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
2886
2894
  --ov-ui-primary-default: #5f5fff;
2887
2895
  --ov-ui-primary-hover-default: #7075ff;
2888
2896
  --ov-ui-primary-active-default: #4242ba;
@@ -3217,7 +3225,6 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
3217
3225
  border: 1px solid var(--ov-viking-bot-border);
3218
3226
  border-radius: var(--ov-viking-bot-radius);
3219
3227
  max-width: 100%;
3220
- color: var(--ov-viking-bot-accent);
3221
3228
  font: inherit;
3222
3229
  overflow-wrap: anywhere;
3223
3230
  cursor: pointer;
@@ -3227,6 +3234,14 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
3227
3234
  font-size: 12px;
3228
3235
  }
3229
3236
 
3237
+ .ov-viking-bot__context {
3238
+ color: var(--ov-viking-bot-accent);
3239
+ }
3240
+
3241
+ .ov-viking-bot__attachment {
3242
+ color: var(--ov-ui-color-text-2, var(--ov-ui-text-2-default));
3243
+ }
3244
+
3230
3245
  .ov-viking-bot__context:hover, .ov-viking-bot__attachment:hover {
3231
3246
  background: var(--ov-viking-bot-surface-hover);
3232
3247
  }
@@ -5003,6 +5018,23 @@ textarea.ov-viking-bot__interaction-input {
5003
5018
  }
5004
5019
  }
5005
5020
 
5021
+ /*!
5022
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
5023
+ * SPDX-License-Identifier: MIT
5024
+ */
5025
+ /*!
5026
+ * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
5027
+ * SPDX-License-Identifier: MIT
5028
+ */
5029
+ .ark-agentic-user-message-file-list-user-message-file-list-1 {
5030
+ justify-content: flex-end;
5031
+ align-items: flex-start;
5032
+ gap: .5rem;
5033
+ width: 100%;
5034
+ display: flex;
5035
+ overflow: auto hidden;
5036
+ }
5037
+
5006
5038
  /*!
5007
5039
  * Copyright (c) 2026 Bytedance, Inc. and its affiliates.
5008
5040
  * SPDX-License-Identifier: MIT
@@ -10367,9 +10399,11 @@ textarea.ov-viking-bot__interaction-input {
10367
10399
  }
10368
10400
  }
10369
10401
 
10370
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
10402
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
10371
10403
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
10372
10404
  --ov-ui-tour-highlight-default: #5252ff14;
10405
+ --ov-ui-auth-on-primary-default: #fff;
10406
+ --ov-ui-auth-backdrop-default: #0006;
10373
10407
  --ov-ui-primary-default: #5252ff;
10374
10408
  --ov-ui-primary-hover-default: #7075ff;
10375
10409
  --ov-ui-primary-active-default: #3833d2;
@@ -10426,7 +10460,7 @@ textarea.ov-viking-bot__interaction-input {
10426
10460
  #bd9cff 100%);
10427
10461
  }
10428
10462
 
10429
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
10463
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
10430
10464
  --ov-ui-primary-default: #5f5fff;
10431
10465
  --ov-ui-primary-hover-default: #7075ff;
10432
10466
  --ov-ui-primary-active-default: #4242ba;
@@ -11059,9 +11093,11 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11059
11093
 
11060
11094
 
11061
11095
 
11062
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
11096
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
11063
11097
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
11064
11098
  --ov-ui-tour-highlight-default: #5252ff14;
11099
+ --ov-ui-auth-on-primary-default: #fff;
11100
+ --ov-ui-auth-backdrop-default: #0006;
11065
11101
  --ov-ui-primary-default: #5252ff;
11066
11102
  --ov-ui-primary-hover-default: #7075ff;
11067
11103
  --ov-ui-primary-active-default: #3833d2;
@@ -11118,7 +11154,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11118
11154
  #bd9cff 100%);
11119
11155
  }
11120
11156
 
11121
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
11157
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
11122
11158
  --ov-ui-primary-default: #5f5fff;
11123
11159
  --ov-ui-primary-hover-default: #7075ff;
11124
11160
  --ov-ui-primary-active-default: #4242ba;
@@ -11572,54 +11608,134 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11572
11608
  outline: none;
11573
11609
  }
11574
11610
 
11575
- .ov-viking-bot__reference-tags {
11576
- flex-wrap: wrap;
11611
+ .ov-viking-bot__quick-inputs button:not(.ov-button):focus-visible, .ov-viking-bot__session-history button:not(.ov-button):focus-visible {
11612
+ outline: 2px solid var(--ov-ui-color-focus, var(--ov-ui-focus-default));
11613
+ outline-offset: 2px;
11614
+ }
11615
+
11616
+ .ov-viking-bot__quick-inputs button:not(.ov-button):disabled {
11617
+ opacity: .5;
11618
+ cursor: not-allowed;
11619
+ }
11620
+
11621
+ .ov-viking-bot__attach > svg {
11622
+ width: 10.208px;
11623
+ height: 10.208px;
11624
+ }
11625
+
11626
+ .ov-viking-bot__reference-tags, .ov-viking-bot__reference-overflow {
11627
+ flex-direction: column;
11628
+ align-items: flex-start;
11577
11629
  gap: 6px;
11578
- margin: 0 0 8px;
11579
- padding: 0;
11580
- list-style: none;
11630
+ min-width: 0;
11581
11631
  display: flex;
11582
11632
  }
11583
11633
 
11584
- .ov-viking-bot__reference-tags li {
11585
- background: var(--ov-ui-color-bg-5, var(--ov-ui-bg-5-default));
11586
- border-radius: 6px;
11634
+ .ov-viking-bot__reference-tags {
11635
+ margin-bottom: 10px;
11636
+ }
11637
+
11638
+ .ov-viking-bot__reference-row {
11587
11639
  align-items: center;
11588
11640
  gap: 4px;
11589
11641
  min-width: 0;
11590
11642
  max-width: 100%;
11591
- padding: 4px 6px;
11643
+ display: flex;
11644
+ }
11645
+
11646
+ .ov-viking-bot__reference-tag, .ov-viking-bot__reference-more {
11647
+ box-sizing: border-box;
11648
+ background: var(--ov-ui-color-bg-3, var(--ov-ui-bg-3-default));
11649
+ max-width: 100%;
11650
+ height: 26px;
11651
+ color: var(--ov-ui-color-text-2, var(--ov-ui-text-2-default));
11652
+ letter-spacing: .036px;
11653
+ border: 0;
11654
+ border-radius: 6px;
11655
+ align-items: center;
11656
+ gap: 4px;
11657
+ padding: 3px 8px;
11658
+ font-family: Roboto, PingFang SC, sans-serif;
11659
+ font-size: 12px;
11660
+ font-weight: 400;
11661
+ line-height: 20px;
11592
11662
  display: inline-flex;
11593
11663
  }
11594
11664
 
11595
- .ov-viking-bot__reference-tags li > span {
11665
+ .ov-viking-bot__reference-tag {
11666
+ min-width: 0;
11667
+ }
11668
+
11669
+ .ov-viking-bot__reference-tag > svg {
11670
+ flex-shrink: 0;
11671
+ }
11672
+
11673
+ .ov-viking-bot__reference-icon {
11674
+ color: var(--ov-ui-viking-bot-reference-icon-light);
11675
+ }
11676
+
11677
+ .dark .ov-viking-bot__reference-icon {
11678
+ color: var(--ov-ui-viking-bot-reference-icon-dark);
11679
+ }
11680
+
11681
+ .ov-viking-bot__reference-path {
11596
11682
  text-overflow: ellipsis;
11597
11683
  white-space: nowrap;
11598
11684
  min-width: 0;
11599
11685
  overflow: hidden;
11600
11686
  }
11601
11687
 
11602
- .ov-viking-bot__reference-tags button:not(.ov-button) {
11688
+ .ov-viking-bot__reference-open {
11689
+ min-width: 0;
11603
11690
  color: inherit;
11691
+ font: inherit;
11692
+ text-align: start;
11604
11693
  cursor: pointer;
11605
11694
  background: none;
11606
11695
  border: 0;
11607
- padding: 0 2px;
11696
+ padding: 0;
11697
+ display: inline-flex;
11698
+ overflow: hidden;
11608
11699
  }
11609
11700
 
11610
- .ov-viking-bot__quick-inputs button:not(.ov-button):focus-visible, .ov-viking-bot__session-history button:not(.ov-button):focus-visible, .ov-viking-bot__reference-tags button:not(.ov-button):focus-visible {
11701
+ .ov-viking-bot__reference-open:hover {
11702
+ color: var(--ov-ui-color-primary, var(--ov-ui-primary-default));
11703
+ }
11704
+
11705
+ .ov-viking-bot__reference-remove {
11706
+ width: 14px;
11707
+ height: 14px;
11708
+ color: var(--ov-ui-color-text-3, var(--ov-ui-text-3-default));
11709
+ cursor: pointer;
11710
+ background: none;
11711
+ border: 0;
11712
+ border-radius: 2px;
11713
+ flex-shrink: 0;
11714
+ justify-content: center;
11715
+ align-items: center;
11716
+ padding: 0;
11717
+ display: inline-flex;
11718
+ }
11719
+
11720
+ .ov-viking-bot__reference-more {
11721
+ cursor: pointer;
11722
+ flex-shrink: 0;
11723
+ }
11724
+
11725
+ .ov-viking-bot__reference-open:focus-visible, .ov-viking-bot__reference-more:focus-visible, .ov-viking-bot__reference-remove:focus-visible {
11611
11726
  outline: 2px solid var(--ov-ui-color-focus, var(--ov-ui-focus-default));
11612
11727
  outline-offset: 2px;
11613
11728
  }
11614
11729
 
11615
- .ov-viking-bot__quick-inputs button:not(.ov-button):disabled {
11616
- opacity: .5;
11730
+ .ov-viking-bot__reference-remove:disabled {
11617
11731
  cursor: not-allowed;
11732
+ opacity: .5;
11618
11733
  }
11619
11734
 
11620
- .ov-viking-bot__attach > svg {
11621
- width: 10.208px;
11622
- height: 10.208px;
11735
+ .ov-viking-bot__reference-overflow {
11736
+ max-width: min(440px, 100vw - 48px);
11737
+ max-height: min(360px, 50vh);
11738
+ overflow-y: auto;
11623
11739
  }
11624
11740
 
11625
11741
  .ov-viking-bot__list {
@@ -11640,6 +11756,15 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11640
11756
  padding-left: 32px;
11641
11757
  }
11642
11758
 
11759
+ .ov-viking-bot__user-message-group {
11760
+ flex-direction: column;
11761
+ align-items: flex-end;
11762
+ gap: 6px;
11763
+ width: min(88%, 960px);
11764
+ max-width: 100%;
11765
+ display: flex;
11766
+ }
11767
+
11643
11768
  .ov-viking-bot__user-bubble {
11644
11769
  --agentic-bubble-content-max-width: 100%;
11645
11770
  --agentic-bubble-content-filled-bg: var(--ov-ui-color-bg-3, var(--ov-ui-bg-3-default));
@@ -11648,10 +11773,30 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11648
11773
  --agentic-bubble-content-radius-default: 16px;
11649
11774
  --agentic-bubble-content-font-size: 14px;
11650
11775
  --agentic-bubble-content-line-height: 22px;
11651
- width: min(88%, 960px);
11652
11776
  max-width: 100%;
11653
11777
  }
11654
11778
 
11779
+ .ov-viking-bot__user-message-content {
11780
+ flex-direction: column;
11781
+ align-items: flex-start;
11782
+ gap: 6px;
11783
+ width: max-content;
11784
+ max-width: 100%;
11785
+ display: flex;
11786
+ }
11787
+
11788
+ .ov-viking-bot__user-message-attachments {
11789
+ flex-wrap: wrap;
11790
+ justify-content: flex-end;
11791
+ align-self: flex-end;
11792
+ align-items: center;
11793
+ gap: 8px;
11794
+ width: 100%;
11795
+ max-width: 100%;
11796
+ display: flex;
11797
+ overflow: visible;
11798
+ }
11799
+
11655
11800
  .ov-viking-bot__user-bubble .ark-agentic-bubble__content {
11656
11801
  inline-size: max-content;
11657
11802
  max-inline-size: 100%;
@@ -11697,7 +11842,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11697
11842
  display: inline-flex;
11698
11843
  }
11699
11844
 
11700
- .ov-viking-bot__message:hover .ov-viking-bot__message-footer, .ov-viking-bot__message:focus-within .ov-viking-bot__message-footer {
11845
+ .ov-viking-bot__message:not(.ov-viking-bot__message--user):hover .ov-viking-bot__message-footer, .ov-viking-bot__message:not(.ov-viking-bot__message--user):focus-within .ov-viking-bot__message-footer, .ov-viking-bot__user-message-group:hover .ov-viking-bot__message-footer, .ov-viking-bot__user-message-group:focus-within .ov-viking-bot__message-footer {
11701
11846
  opacity: 1;
11702
11847
  pointer-events: auto;
11703
11848
  }
@@ -11884,9 +12029,11 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11884
12029
 
11885
12030
 
11886
12031
 
11887
- .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
12032
+ .ov-button, .ov-input, .ov-textarea, .ov-directory-tour, .ov-wiki-dashboard, .ov-experience-dashboard, .ov-auth, .ov-agent-connect, .ov-console, .ov-divider, .ov-file-browser-entries, .ov-drawer, .ov-modal, .ov-file-browser, .ov-file-preview, .ov-file-tree, .ov-module-placeholder, .ov-popover, .ov-scope-switcher, .ov-tooltip, .ov-tui, .ov-viking-bot, .ov-viking-bot__popover, .ov-viking-bot__reference-picker--mention, .ov-viking-bot__interaction {
11888
12033
  --ov-ui-tour-shadow-default: 0 15px 35px #0000000d, 0 5px 15px #0000000d;
11889
12034
  --ov-ui-tour-highlight-default: #5252ff14;
12035
+ --ov-ui-auth-on-primary-default: #fff;
12036
+ --ov-ui-auth-backdrop-default: #0006;
11890
12037
  --ov-ui-primary-default: #5252ff;
11891
12038
  --ov-ui-primary-hover-default: #7075ff;
11892
12039
  --ov-ui-primary-active-default: #3833d2;
@@ -11943,7 +12090,7 @@ html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, html.dark .ov-
11943
12090
  #bd9cff 100%);
11944
12091
  }
11945
12092
 
11946
- html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
12093
+ html.dark .ov-button, html.dark .ov-input, html.dark .ov-textarea, .dark .ov-directory-tour, html.dark .ov-wiki-dashboard, html.dark .ov-experience-dashboard, .dark .ov-auth, .dark .ov-agent-connect, .dark .ov-console, .dark .ov-divider, .dark .ov-file-browser-entries, .dark .ov-drawer, .dark .ov-modal, .dark .ov-file-browser, .dark .ov-file-preview, .dark .ov-file-tree, .dark .ov-module-placeholder, .dark .ov-popover, .dark .ov-scope-switcher, .dark .ov-tooltip, .dark .ov-tui, .dark .ov-viking-bot, .dark .ov-viking-bot__popover, .dark .ov-viking-bot__reference-picker--mention, .dark .ov-viking-bot__interaction {
11947
12094
  --ov-ui-primary-default: #5f5fff;
11948
12095
  --ov-ui-primary-hover-default: #7075ff;
11949
12096
  --ov-ui-primary-active-default: #4242ba;
@@ -1,10 +1,4 @@
1
- /** 复制图标。Copy icon. */
2
- export declare function CopyIcon({ size }: {
3
- size?: number;
4
- }): import("react").JSX.Element;
5
1
  /** 历史图标。History icon. */
6
2
  export declare function HistoryIcon(): import("react").JSX.Element;
7
3
  /** 看板图标。Dashboard icon. */
8
4
  export declare function DashboardIcon(): import("react").JSX.Element;
9
- /** 下载图标。Download icon. */
10
- export declare function DownloadIcon(): import("react").JSX.Element;
@@ -2,19 +2,6 @@ import type { Locale } from '../../shared/locale.js';
2
2
  import { type FilePreviewTab } from '../../components/file-preview/index.js';
3
3
  import type { ReactNode } from 'react';
4
4
  import type { FileBrowserLabels } from './types.js';
5
- /**
6
- * 详情区:页签行与正文。分段器(预览 / 源码)与右侧图标按钮由这里渲染,通过
7
- * `slots.actions` 拿到预览的视图状态。
8
- *
9
- * 目录的摘要层级不在这里——它是 `directory` 页签内部的一层,由组件自己渲染。
10
- *
11
- * The detail pane: tab row and body. The segmented control (preview / source) and
12
- * the icon buttons on the right are rendered here, reading the view state from the
13
- * preview through `slots.actions`.
14
- *
15
- * A directory's summary levels are not here: they are a layer inside the
16
- * `directory` tab, rendered by the component itself.
17
- */
18
5
  export interface FileBrowserDetailProps {
19
6
  tabs: readonly FilePreviewTab[];
20
7
  activeKey: string | null;
@@ -23,15 +10,7 @@ export interface FileBrowserDetailProps {
23
10
  footer?: string;
24
11
  titleExtra?: ReactNode;
25
12
  extraActions?: ReactNode;
26
- /** 分段器与图标按钮的文案。Copy for the segmented control and icon buttons. */
27
- viewLabels: {
28
- preview: string;
29
- source: string;
30
- copyPath: string;
31
- copyContent: string;
32
- download: string;
33
- viewSwitch: string;
34
- };
13
+ readOnly?: boolean;
35
14
  onActiveKeyChange: (key: string) => void;
36
15
  }
37
- export declare function FileBrowserDetail({ tabs, activeKey, locale, labels, footer, titleExtra, extraActions, viewLabels, onActiveKeyChange, }: FileBrowserDetailProps): import("react").JSX.Element;
16
+ export declare function FileBrowserDetail({ tabs, activeKey, locale, labels, footer, titleExtra, extraActions, readOnly, onActiveKeyChange, }: FileBrowserDetailProps): import("react").JSX.Element;
@@ -12,4 +12,4 @@ export type { FileBrowserActions, FileBrowserApi, FileBrowserLabels, FileBrowser
12
12
  * tree; loading and coordination live in {@link useFileBrowser}, and this only
13
13
  * assembles the view.
14
14
  */
15
- export declare function FileBrowser({ uri, defaultUri, rootUri, defaultExpandedUri, locale: localeProp, agentConnect, dashboardKinds, renderDashboard, acl, onUriChange, onImportResources, renderImportResources, labels, requestOptions, className, style, ...rest }: FileBrowserProps): import("react").JSX.Element;
15
+ export declare function FileBrowser({ uri, defaultUri, rootUri, defaultExpandedUri, locale: localeProp, agentConnect, dashboardKinds, renderDashboard, acl, readOnly, onUriChange, onImportResources, renderImportResources, labels, requestOptions, className, style, ...rest }: FileBrowserProps): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { OvClient, OvRequestOptions } from '../../client/types.js';
2
+ import type { FilePreviewEditing } from '../../components/file-preview/index.js';
3
+ /** Load the full file before editing; the preview can contain only its first page. */
4
+ export declare function createFileEditing(client: OvClient, uri: string, name: string, options: OvRequestOptions, onSave?: () => void): FilePreviewEditing | undefined;
@@ -0,0 +1,3 @@
1
+ import type { OvClient, OvRequestOptions } from '../../client/types.js';
2
+ import type { FilePreviewFileTab } from '../../components/file-preview/index.js';
3
+ export declare function createPreviewImageResolver(client: OvClient, uri: string, directory: boolean, options: OvRequestOptions): NonNullable<FilePreviewFileTab['resolveImage']>;
@@ -11,4 +11,4 @@ export declare const MAX_LINES = 2000;
11
11
  * through `content/download` for the raw bytes: the former returns content as
12
12
  * text, so a binary file only yields mojibake and images or PDFs never render.
13
13
  */
14
- export declare function readFile(client: OvClient, uri: string, options: OvRequestOptions, openParent?: (uri: string) => Promise<void>): Promise<FilePreviewFileTab>;
14
+ export declare function readFile(client: OvClient, uri: string, options: OvRequestOptions, openParent?: (uri: string) => Promise<void>, onSave?: () => void): Promise<FilePreviewFileTab>;