@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.
- package/dist/{chunk-EWIC26TW.cjs → chunk-4CWSZPXH.cjs} +8 -8
- package/dist/{chunk-EWIC26TW.cjs.map → chunk-4CWSZPXH.cjs.map} +1 -1
- package/dist/{chunk-HIMEIPED.cjs → chunk-CVMSC7M4.cjs} +38 -38
- package/dist/{chunk-HIMEIPED.cjs.map → chunk-CVMSC7M4.cjs.map} +1 -1
- package/dist/{chunk-QAXTP73H.js → chunk-E6VCRL42.js} +86 -34
- package/dist/chunk-E6VCRL42.js.map +1 -0
- package/dist/{chunk-LVBPFEK2.cjs → chunk-GMC5VU7X.cjs} +1316 -1264
- package/dist/chunk-GMC5VU7X.cjs.map +1 -0
- package/dist/{chunk-F7ETWH2M.js → chunk-N57KWHDB.js} +2 -2
- package/dist/{chunk-6XYXWVYY.js → chunk-PJ5KFD2V.js} +3 -3
- package/dist/{chunk-DV5GLSYR.js → chunk-SZPJ5R5B.js} +2 -1
- package/dist/{chunk-HSTU7Y4R.js → chunk-TMD44IKJ.js} +2 -2
- package/dist/{chunk-OFAYLG6D.cjs → chunk-UC43NICZ.cjs} +3 -2
- package/dist/chunk-UC43NICZ.cjs.map +1 -0
- package/dist/{chunk-BJTOSUT4.cjs → chunk-V2FNIPZJ.cjs} +49 -49
- package/dist/{chunk-BJTOSUT4.cjs.map → chunk-V2FNIPZJ.cjs.map} +1 -1
- package/dist/components/chat/chat-ref.types.d.ts +7 -0
- package/dist/components/chat/chat-ref.types.d.ts.map +1 -1
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/index.cjs +6 -6
- package/dist/components/features/index.js +5 -5
- package/dist/components/icons/index.cjs +3 -3
- package/dist/components/icons/index.js +2 -2
- package/dist/components/index.cjs +6 -6
- package/dist/components/index.js +5 -5
- package/dist/components/navigation/index.cjs +6 -6
- package/dist/components/navigation/index.js +5 -5
- package/dist/components/ui/file-manager/index.cjs +69 -69
- package/dist/components/ui/file-manager/index.js +2 -2
- package/dist/components/ui/index.cjs +6 -6
- package/dist/components/ui/index.js +5 -5
- package/dist/components/ui/search-input.d.ts +15 -2
- package/dist/components/ui/search-input.d.ts.map +1 -1
- package/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/src/components/chat/chat-ref.types.ts +7 -0
- package/src/components/features/board/board.tsx +64 -25
- package/src/components/ui/search-input.tsx +29 -5
- package/src/utils/index.ts +1 -1
- package/dist/chunk-LVBPFEK2.cjs.map +0 -1
- package/dist/chunk-OFAYLG6D.cjs.map +0 -1
- package/dist/chunk-QAXTP73H.js.map +0 -1
- /package/dist/{chunk-F7ETWH2M.js.map → chunk-N57KWHDB.js.map} +0 -0
- /package/dist/{chunk-6XYXWVYY.js.map → chunk-PJ5KFD2V.js.map} +0 -0
- /package/dist/{chunk-DV5GLSYR.js.map → chunk-SZPJ5R5B.js.map} +0 -0
- /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
|
-
|
|
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 = (
|
|
249
|
-
|
|
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)}
|
package/src/utils/index.ts
CHANGED
|
@@ -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'
|