@marimo-team/islands 0.20.3-dev83 → 0.20.3-dev88
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/main.js
CHANGED
|
@@ -70347,7 +70347,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
70347
70347
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
70348
70348
|
}
|
|
70349
70349
|
}
|
|
70350
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.3-
|
|
70350
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.20.3-dev88"), showCodeInRunModeAtom = atom(true);
|
|
70351
70351
|
atom(null);
|
|
70352
70352
|
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
70353
70353
|
function useKeydownOnElement(e, r) {
|
package/package.json
CHANGED
|
@@ -240,6 +240,11 @@ const StorageEntryRow: React.FC<{
|
|
|
240
240
|
const name = displayName(entry.path);
|
|
241
241
|
const hasSearch = !!searchValue.trim();
|
|
242
242
|
|
|
243
|
+
const selfMatches =
|
|
244
|
+
isDir &&
|
|
245
|
+
hasSearch &&
|
|
246
|
+
name.toLowerCase().includes(searchValue.trim().toLowerCase());
|
|
247
|
+
|
|
243
248
|
// During a search, auto-expand directories whose loaded descendants match
|
|
244
249
|
const hasMatchingDescendants =
|
|
245
250
|
isDir &&
|
|
@@ -380,7 +385,7 @@ const StorageEntryRow: React.FC<{
|
|
|
380
385
|
prefix={entry.path}
|
|
381
386
|
depth={depth + 1}
|
|
382
387
|
locale={locale}
|
|
383
|
-
searchValue={searchValue}
|
|
388
|
+
searchValue={selfMatches ? "" : searchValue} // When a parent directory matches the search, we don't need to filter the children.
|
|
384
389
|
onOpenFile={onOpenFile}
|
|
385
390
|
/>
|
|
386
391
|
)}
|