@flamingo-stack/openframe-frontend-core 0.0.191 → 0.0.192-snapshot.20260518123256

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 (54) hide show
  1. package/dist/{chunk-EWIC26TW.cjs → chunk-4CWSZPXH.cjs} +8 -8
  2. package/dist/{chunk-EWIC26TW.cjs.map → chunk-4CWSZPXH.cjs.map} +1 -1
  3. package/dist/{chunk-HIMEIPED.cjs → chunk-CVMSC7M4.cjs} +38 -38
  4. package/dist/{chunk-HIMEIPED.cjs.map → chunk-CVMSC7M4.cjs.map} +1 -1
  5. package/dist/{chunk-QAXTP73H.js → chunk-E6VCRL42.js} +86 -34
  6. package/dist/chunk-E6VCRL42.js.map +1 -0
  7. package/dist/{chunk-LVBPFEK2.cjs → chunk-GMC5VU7X.cjs} +1316 -1264
  8. package/dist/chunk-GMC5VU7X.cjs.map +1 -0
  9. package/dist/{chunk-F7ETWH2M.js → chunk-N57KWHDB.js} +2 -2
  10. package/dist/{chunk-6XYXWVYY.js → chunk-PJ5KFD2V.js} +3 -3
  11. package/dist/{chunk-DV5GLSYR.js → chunk-SZPJ5R5B.js} +2 -1
  12. package/dist/{chunk-HSTU7Y4R.js → chunk-TMD44IKJ.js} +2 -2
  13. package/dist/{chunk-OFAYLG6D.cjs → chunk-UC43NICZ.cjs} +3 -2
  14. package/dist/chunk-UC43NICZ.cjs.map +1 -0
  15. package/dist/{chunk-BJTOSUT4.cjs → chunk-V2FNIPZJ.cjs} +49 -49
  16. package/dist/{chunk-BJTOSUT4.cjs.map → chunk-V2FNIPZJ.cjs.map} +1 -1
  17. package/dist/components/chat/chat-ref.types.d.ts +7 -0
  18. package/dist/components/chat/chat-ref.types.d.ts.map +1 -1
  19. package/dist/components/features/board/board.d.ts.map +1 -1
  20. package/dist/components/features/index.cjs +6 -6
  21. package/dist/components/features/index.js +5 -5
  22. package/dist/components/icons/index.cjs +3 -3
  23. package/dist/components/icons/index.js +2 -2
  24. package/dist/components/index.cjs +6 -6
  25. package/dist/components/index.js +5 -5
  26. package/dist/components/navigation/index.cjs +6 -6
  27. package/dist/components/navigation/index.js +5 -5
  28. package/dist/components/ui/file-manager/index.cjs +69 -69
  29. package/dist/components/ui/file-manager/index.js +2 -2
  30. package/dist/components/ui/index.cjs +6 -6
  31. package/dist/components/ui/index.js +5 -5
  32. package/dist/components/ui/search-input.d.ts +15 -2
  33. package/dist/components/ui/search-input.d.ts.map +1 -1
  34. package/dist/hooks/index.cjs +4 -4
  35. package/dist/hooks/index.js +3 -3
  36. package/dist/index.cjs +8 -6
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.js +8 -6
  39. package/dist/utils/index.cjs +1 -0
  40. package/dist/utils/index.d.ts +1 -1
  41. package/dist/utils/index.d.ts.map +1 -1
  42. package/dist/utils/index.js +1 -1
  43. package/package.json +1 -1
  44. package/src/components/chat/chat-ref.types.ts +7 -0
  45. package/src/components/features/board/board.tsx +64 -25
  46. package/src/components/ui/search-input.tsx +29 -5
  47. package/src/utils/index.ts +1 -1
  48. package/dist/chunk-LVBPFEK2.cjs.map +0 -1
  49. package/dist/chunk-OFAYLG6D.cjs.map +0 -1
  50. package/dist/chunk-QAXTP73H.js.map +0 -1
  51. /package/dist/{chunk-F7ETWH2M.js.map → chunk-N57KWHDB.js.map} +0 -0
  52. /package/dist/{chunk-6XYXWVYY.js.map → chunk-PJ5KFD2V.js.map} +0 -0
  53. /package/dist/{chunk-DV5GLSYR.js.map → chunk-SZPJ5R5B.js.map} +0 -0
  54. /package/dist/{chunk-HSTU7Y4R.js.map → chunk-TMD44IKJ.js.map} +0 -0
@@ -46,8 +46,18 @@ export interface SearchInputProps {
46
46
  results?: SearchResult[]
47
47
  /** Whether results are loading */
48
48
  isLoading?: boolean
49
- /** Called when a result row is selected */
50
- onResultSelect?: (result: SearchResult) => void
49
+ /** Called when a result row is selected.
50
+ *
51
+ * `modifiers` carries the click event's modifier-key state when the
52
+ * user picked the row via mouse — pass through so the consumer can
53
+ * honor cmd/ctrl/shift/middle-click for background-tab navigation
54
+ * (the row is a `<div role="option">` rather than an `<a>`, so the
55
+ * browser doesn't background-tab natively even with `target="_blank"`).
56
+ * Empty `{}` when the row was selected via keyboard Enter. */
57
+ onResultSelect?: (
58
+ result: SearchResult,
59
+ modifiers?: { metaKey?: boolean; ctrlKey?: boolean; shiftKey?: boolean; altKey?: boolean; button?: number },
60
+ ) => void
51
61
  /** Debounce delay in ms. 0 disables debounce. Default 300 */
52
62
  debounceMs?: number
53
63
  /** Custom renderer for a single result row */
@@ -245,8 +255,22 @@ export function SearchInput({
245
255
  inputRef.current?.focus()
246
256
  }
247
257
 
248
- const handleResultClick = (result: SearchResult) => {
249
- onResultSelect?.(result)
258
+ const handleResultClick = (
259
+ result: SearchResult,
260
+ e?: React.MouseEvent,
261
+ ) => {
262
+ onResultSelect?.(
263
+ result,
264
+ e
265
+ ? {
266
+ metaKey: e.metaKey,
267
+ ctrlKey: e.ctrlKey,
268
+ shiftKey: e.shiftKey,
269
+ altKey: e.altKey,
270
+ button: e.button,
271
+ }
272
+ : undefined,
273
+ )
250
274
  setIsOpen(false)
251
275
  }
252
276
 
@@ -331,7 +355,7 @@ export function SearchInput({
331
355
  isHighlighted && "bg-ods-bg-hover",
332
356
  !isHighlighted && "hover:bg-ods-bg-hover"
333
357
  )}
334
- onClick={() => handleResultClick(result)}
358
+ onClick={(e) => handleResultClick(result, e)}
335
359
  onMouseEnter={() => setHighlightedIndex(index)}
336
360
  >
337
361
  {renderResult ? renderResult(result, isHighlighted) : defaultRenderResult(result, isHighlighted)}
@@ -4,7 +4,7 @@ export { cn, formatDate, formatNumber, formatPrice, formatBytes, getAllPlatformB
4
4
  export { PLAY_ICON_PATH } from '../components/icons-v2-generated/media-playback/play-icon'
5
5
  export { getPlatformAccentColor, getCurrentPlatform, type ColorCategory } from './ods-color-utils'
6
6
  export { delay, generateRandomString, truncateString, deepClone, getSlackCommunityJoinUrl } from './common'
7
- export { getBaseUrl } from '../utils/cn'
7
+ export { getBaseUrl, getPlatformProductionUrl } from '../utils/cn'
8
8
 
9
9
  export * from './platform-config'
10
10
  export * from './os-platforms'