mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-22 17:22:47 +00:00
* fix(app): restore character-paced streaming reveal Restore the v0.8 character reveal model and remove the word-level fade implementation so streamed assistant and reasoning text remains opaque, grapheme-safe, and immediately completes when a turn ends. * fix(android): preserve inverted timeline selection React Native's prebuilt Android library does not consume source patches under node_modules. Register the compiled scroll manager before the core package so inverted child-reveal calculations leave focus and text selection in place while normal and explicit scrolling remain unchanged.
22 lines
784 B
JavaScript
22 lines
784 B
JavaScript
const { withMainApplication } = require("expo/config-plugins");
|
|
|
|
const PACKAGE_LIST = "PackageList(this).packages.apply {";
|
|
const REGISTRATION = "add(0, sh.paseo.scroll.PaseoScrollPackage())";
|
|
|
|
function configureScrollPackage(contents) {
|
|
if (contents.includes(REGISTRATION)) return contents;
|
|
if (!contents.includes(PACKAGE_LIST)) {
|
|
throw new Error(
|
|
"Could not register Android scroll behavior before React Native's core package",
|
|
);
|
|
}
|
|
return contents.replace(PACKAGE_LIST, `${PACKAGE_LIST}\n ${REGISTRATION}`);
|
|
}
|
|
|
|
module.exports = (config) =>
|
|
withMainApplication(config, (mod) => {
|
|
mod.modResults.contents = configureScrollPackage(mod.modResults.contents);
|
|
return mod;
|
|
});
|
|
module.exports.configureScrollPackage = configureScrollPackage;
|