zkit-ui 2.0.13 → 2.0.14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;AAuoBjB,eAAO,MAAM,YAAY,sFAA+B,CAAC"}
1
+ {"version":3,"file":"ActionDialog.d.ts","sourceRoot":"","sources":["../../../src/services/ActionDialogService/ActionDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAyC/B,OAAO,KAAK,EAIV,iBAAiB,EACjB,eAAe,EAGhB,MAAM,SAAS,CAAC;AA0oBjB,eAAO,MAAM,YAAY,sFAA+B,CAAC"}
@@ -95,6 +95,9 @@ const BAR_ACTION_BUTTON_LAYOUT = {
95
95
  minHeight: BAR_FOOTER_HEIGHT,
96
96
  paddingVertical: 0,
97
97
  };
98
+ // tsc emits CommonJS namespace imports. Capturing that namespace in a worklet
99
+ // also captures the native Worklets module, which is not serializable.
100
+ const scheduleOnRNFromUI = react_native_worklets_1.scheduleOnRN;
98
101
  function getKeyboardTopInWindow(event) {
99
102
  var _a, _b;
100
103
  const windowHeight = react_native_1.Dimensions.get('window').height;
@@ -235,7 +238,7 @@ const ActionDialogRoot = React.forwardRef(function ActionDialog({ accessibilityL
235
238
  cardScale.value = (0, react_native_reanimated_1.withTiming)(motion === 'scale' ? CARD_EXIT_SCALE : 1, EXIT_CARD_TIMING);
236
239
  cardOpacity.value = (0, react_native_reanimated_1.withTiming)(0, EXIT_CARD_TIMING, (finished) => {
237
240
  if (finished) {
238
- (0, react_native_worklets_1.scheduleOnRN)(finishDismiss);
241
+ scheduleOnRNFromUI(finishDismiss);
239
242
  }
240
243
  });
241
244
  }, [actualOpen, backdropProgress, cardOpacity, cardScale, finishDismiss, motion]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkit-ui",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -104,6 +104,9 @@ const BAR_ACTION_BUTTON_LAYOUT: React.ComponentProps<typeof Button>['layout'] =
104
104
  minHeight: BAR_FOOTER_HEIGHT,
105
105
  paddingVertical: 0,
106
106
  };
107
+ // tsc emits CommonJS namespace imports. Capturing that namespace in a worklet
108
+ // also captures the native Worklets module, which is not serializable.
109
+ const scheduleOnRNFromUI = scheduleOnRN;
107
110
 
108
111
  function getKeyboardTopInWindow(event: KeyboardEvent) {
109
112
  const windowHeight = Dimensions.get('window').height;
@@ -288,7 +291,7 @@ const ActionDialogRoot = React.forwardRef<ActionDialogRef, ActionDialogProps>(fu
288
291
  cardScale.value = withTiming(motion === 'scale' ? CARD_EXIT_SCALE : 1, EXIT_CARD_TIMING);
289
292
  cardOpacity.value = withTiming(0, EXIT_CARD_TIMING, (finished) => {
290
293
  if (finished) {
291
- scheduleOnRN(finishDismiss);
294
+ scheduleOnRNFromUI(finishDismiss);
292
295
  }
293
296
  });
294
297
  }, [actualOpen, backdropProgress, cardOpacity, cardScale, finishDismiss, motion]);