@papyrus-sdk/ui-react-native 0.2.35-beta.7 → 0.2.35-beta.8

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/README.md CHANGED
@@ -162,3 +162,7 @@ If large files fail to load or crash on mobile:
162
162
  - Runtime EPUB open/ready timeout: `180000ms`
163
163
  - Runtime EPUB display timeout: `30000ms`
164
164
  - For very large EPUBs, first-open can take longer on mid-tier Android. This is expected due to zip parsing and spine bootstrapping.
165
+
166
+ ## Native ink motion packaging check
167
+
168
+ Run `pnpm --filter @papyrus-sdk/ui-react-native check:ink-worklets` before publishing. This builds and verifies all three ink chrome callbacks through the Reanimated Babel plugin in both CJS and ESM artifacts. Keep explicit `"worklet"` directives: bundler aliases such as `useAnimatedStyle2` are not automatically recognized by the plugin.
package/dist/index.js CHANGED
@@ -29779,14 +29779,20 @@ var Topbar = ({
29779
29779
  const inkSession = useNativeInkSession();
29780
29780
  const t = getStrings(locale);
29781
29781
  const progress = useNativeInkMotion(inkSession.active, inkSession.supported);
29782
- const settingsMotion = (0, import_react_native_reanimated2.useAnimatedStyle)(() => ({
29783
- opacity: 1 - progress.value,
29784
- transform: [{ scale: 1 - progress.value * 0.04 }, { translateX: -progress.value * 6 }]
29785
- }));
29786
- const doneMotion = (0, import_react_native_reanimated2.useAnimatedStyle)(() => ({
29787
- opacity: progress.value,
29788
- transform: [{ scale: 0.96 + progress.value * 0.04 }, { translateX: (1 - progress.value) * 6 }]
29789
- }));
29782
+ const settingsMotion = (0, import_react_native_reanimated2.useAnimatedStyle)(() => {
29783
+ "worklet";
29784
+ return {
29785
+ opacity: 1 - progress.value,
29786
+ transform: [{ scale: 1 - progress.value * 0.04 }, { translateX: -progress.value * 6 }]
29787
+ };
29788
+ });
29789
+ const doneMotion = (0, import_react_native_reanimated2.useAnimatedStyle)(() => {
29790
+ "worklet";
29791
+ return {
29792
+ opacity: progress.value,
29793
+ transform: [{ scale: 0.96 + progress.value * 0.04 }, { translateX: (1 - progress.value) * 6 }]
29794
+ };
29795
+ });
29790
29796
  const [jumpModalOpen, setJumpModalOpen] = (0, import_react13.useState)(false);
29791
29797
  const isDark = uiTheme === "dark";
29792
29798
  const navIconColor = isDark ? "#e5e7eb" : "#111827";
@@ -32405,10 +32411,13 @@ var BottomBar = ({
32405
32411
  const drawing = supportsInkChrome && inkSession.active;
32406
32412
  const dockVisible = mobileChromeVisible && mobileDockVisible && !drawing;
32407
32413
  const dockProgress = useNativeInkMotion(dockVisible, supportsInkChrome);
32408
- const dockMotion = (0, import_react_native_reanimated3.useAnimatedStyle)(() => ({
32409
- opacity: dockProgress.value,
32410
- transform: [{ translateY: (1 - dockProgress.value) * 8 }]
32411
- }));
32414
+ const dockMotion = (0, import_react_native_reanimated3.useAnimatedStyle)(() => {
32415
+ "worklet";
32416
+ return {
32417
+ opacity: dockProgress.value,
32418
+ transform: [{ translateY: (1 - dockProgress.value) * 8 }]
32419
+ };
32420
+ });
32412
32421
  const isDark = uiTheme === "dark";
32413
32422
  const t = getStrings(locale);
32414
32423
  const { width, height } = (0, import_react_native16.useWindowDimensions)();