craft-native 0.0.158 → 0.0.161

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/mobile.js CHANGED
@@ -1348,6 +1348,18 @@ var health = {
1348
1348
  if (!craft?.health?.getSleepIntervals)
1349
1349
  throw new Error("Reading sleep intervals is unavailable");
1350
1350
  return craft.health.getSleepIntervals(options);
1351
+ },
1352
+ async saveMindfulSession(session) {
1353
+ const craft = getCraftRoot();
1354
+ if (!craft?.health?.saveMindfulSession)
1355
+ throw new Error("Saving mindful sessions is unavailable");
1356
+ return craft.health.saveMindfulSession(session);
1357
+ },
1358
+ async getMindfulSessions(options = {}) {
1359
+ const craft = getCraftRoot();
1360
+ if (!craft?.health?.getMindfulSessions)
1361
+ throw new Error("Reading mindful sessions is unavailable");
1362
+ return craft.health.getMindfulSessions(options);
1351
1363
  }
1352
1364
  };
1353
1365
  async function updateLiveActivity(idOrState, state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.158",
3
+ "version": "0.0.161",
4
4
  "type": "module",
5
5
  "description": "Build desktop apps with web languages - TypeScript SDK for Craft",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",