@buoy-gg/time-machine 7.0.17 → 7.0.18

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.
Files changed (69) hide show
  1. package/lib/commonjs/components/HeaderReloadButton.js +61 -0
  2. package/lib/commonjs/components/HeaderReloadButton.js.map +1 -0
  3. package/lib/commonjs/components/TimeMachineBody.js +343 -127
  4. package/lib/commonjs/components/TimeMachineBody.js.map +1 -1
  5. package/lib/commonjs/components/TimeMachineModal.js +1 -0
  6. package/lib/commonjs/components/TimeMachineModal.js.map +1 -1
  7. package/lib/commonjs/components/preview/ItemDetailScreen.js +189 -0
  8. package/lib/commonjs/components/preview/ItemDetailScreen.js.map +1 -0
  9. package/lib/commonjs/components/preview/RestorePreviewScreen.js +1056 -0
  10. package/lib/commonjs/components/preview/RestorePreviewScreen.js.map +1 -0
  11. package/lib/commonjs/components/preview/verdictMeta.js +58 -0
  12. package/lib/commonjs/components/preview/verdictMeta.js.map +1 -0
  13. package/lib/commonjs/preset.js +11 -2
  14. package/lib/commonjs/preset.js.map +1 -1
  15. package/lib/commonjs/store/snapshotVault.js +19 -0
  16. package/lib/commonjs/store/snapshotVault.js.map +1 -1
  17. package/lib/commonjs/store/timeMachineStore.js +298 -7
  18. package/lib/commonjs/store/timeMachineStore.js.map +1 -1
  19. package/lib/commonjs/sync/timeMachineSyncAdapter.js +62 -2
  20. package/lib/commonjs/sync/timeMachineSyncAdapter.js.map +1 -1
  21. package/lib/module/components/HeaderReloadButton.js +56 -0
  22. package/lib/module/components/HeaderReloadButton.js.map +1 -0
  23. package/lib/module/components/TimeMachineBody.js +345 -129
  24. package/lib/module/components/TimeMachineBody.js.map +1 -1
  25. package/lib/module/components/TimeMachineModal.js +1 -0
  26. package/lib/module/components/TimeMachineModal.js.map +1 -1
  27. package/lib/module/components/preview/ItemDetailScreen.js +184 -0
  28. package/lib/module/components/preview/ItemDetailScreen.js.map +1 -0
  29. package/lib/module/components/preview/RestorePreviewScreen.js +1051 -0
  30. package/lib/module/components/preview/RestorePreviewScreen.js.map +1 -0
  31. package/lib/module/components/preview/verdictMeta.js +53 -0
  32. package/lib/module/components/preview/verdictMeta.js.map +1 -0
  33. package/lib/module/preset.js +11 -2
  34. package/lib/module/preset.js.map +1 -1
  35. package/lib/module/store/snapshotVault.js +18 -0
  36. package/lib/module/store/snapshotVault.js.map +1 -1
  37. package/lib/module/store/timeMachineStore.js +299 -8
  38. package/lib/module/store/timeMachineStore.js.map +1 -1
  39. package/lib/module/sync/timeMachineSyncAdapter.js +62 -2
  40. package/lib/module/sync/timeMachineSyncAdapter.js.map +1 -1
  41. package/lib/typescript/components/HeaderReloadButton.d.ts +2 -0
  42. package/lib/typescript/components/HeaderReloadButton.d.ts.map +1 -0
  43. package/lib/typescript/components/TimeMachineBody.d.ts.map +1 -1
  44. package/lib/typescript/components/TimeMachineModal.d.ts.map +1 -1
  45. package/lib/typescript/components/preview/ItemDetailScreen.d.ts +11 -0
  46. package/lib/typescript/components/preview/ItemDetailScreen.d.ts.map +1 -0
  47. package/lib/typescript/components/preview/RestorePreviewScreen.d.ts +15 -0
  48. package/lib/typescript/components/preview/RestorePreviewScreen.d.ts.map +1 -0
  49. package/lib/typescript/components/preview/verdictMeta.d.ts +10 -0
  50. package/lib/typescript/components/preview/verdictMeta.d.ts.map +1 -0
  51. package/lib/typescript/preset.d.ts +15 -3
  52. package/lib/typescript/preset.d.ts.map +1 -1
  53. package/lib/typescript/store/snapshotVault.d.ts +7 -0
  54. package/lib/typescript/store/snapshotVault.d.ts.map +1 -1
  55. package/lib/typescript/store/timeMachineStore.d.ts +49 -2
  56. package/lib/typescript/store/timeMachineStore.d.ts.map +1 -1
  57. package/lib/typescript/sync/timeMachineSyncAdapter.d.ts +36 -0
  58. package/lib/typescript/sync/timeMachineSyncAdapter.d.ts.map +1 -1
  59. package/package.json +13 -6
  60. package/src/components/HeaderReloadButton.tsx +45 -0
  61. package/src/components/TimeMachineBody.tsx +416 -137
  62. package/src/components/TimeMachineModal.tsx +1 -0
  63. package/src/components/preview/ItemDetailScreen.tsx +172 -0
  64. package/src/components/preview/RestorePreviewScreen.tsx +1089 -0
  65. package/src/components/preview/verdictMeta.ts +40 -0
  66. package/src/preset.tsx +11 -2
  67. package/src/store/snapshotVault.ts +28 -0
  68. package/src/store/timeMachineStore.ts +330 -7
  69. package/src/sync/timeMachineSyncAdapter.ts +63 -3
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.HeaderReloadButton = HeaderReloadButton;
7
+ var _reactNative = require("react-native");
8
+ var _sharedUi = require("@buoy-gg/shared-ui");
9
+ var _jsxRuntime = require("react/jsx-runtime");
10
+ /**
11
+ * Labeled "RELOAD APP" header action — the one reload affordance in the tool.
12
+ * Plain JS-bundle reload (no restore): in-memory state rebuilds from whatever
13
+ * is persisted. Registered as the preset's default headerActions, so it shows
14
+ * on every screen unless a screen overrides the header actions.
15
+ */
16
+
17
+ function HeaderReloadButton() {
18
+ const onPress = () => {
19
+ try {
20
+ (0, _sharedUi.scheduleReloadApp)({
21
+ reason: "buoy time-machine reload app"
22
+ });
23
+ } catch {
24
+ // No reload mechanism available (bare production build) — nothing to do.
25
+ }
26
+ };
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
28
+ style: styles.button,
29
+ onPress: onPress,
30
+ hitSlop: {
31
+ top: 8,
32
+ bottom: 8,
33
+ left: 8,
34
+ right: 8
35
+ },
36
+ accessibilityLabel: "Reload app",
37
+ accessibilityRole: "button",
38
+ testID: "time-machine-reload-app",
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.RefreshCw, {
40
+ size: 12,
41
+ color: _sharedUi.buoyColors.textSecondary
42
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
43
+ style: styles.label,
44
+ children: "RELOAD APP"
45
+ })]
46
+ });
47
+ }
48
+ const styles = _reactNative.StyleSheet.create({
49
+ button: {
50
+ flexDirection: "row",
51
+ alignItems: "center",
52
+ gap: 6,
53
+ padding: 4
54
+ },
55
+ label: {
56
+ color: _sharedUi.buoyColors.textSecondary,
57
+ fontSize: 12,
58
+ fontWeight: "600"
59
+ }
60
+ });
61
+ //# sourceMappingURL=HeaderReloadButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_sharedUi","_jsxRuntime","HeaderReloadButton","onPress","scheduleReloadApp","reason","jsxs","TouchableOpacity","style","styles","button","hitSlop","top","bottom","left","right","accessibilityLabel","accessibilityRole","testID","children","jsx","RefreshCw","size","color","buoyColors","textSecondary","Text","label","StyleSheet","create","flexDirection","alignItems","gap","padding","fontSize","fontWeight"],"sourceRoot":"../../../src","sources":["components/HeaderReloadButton.tsx"],"mappings":";;;;;;AAMA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAA8E,IAAAE,WAAA,GAAAF,OAAA;AAP9E;AACA;AACA;AACA;AACA;AACA;;AAIO,SAASG,kBAAkBA,CAAA,EAAG;EACnC,MAAMC,OAAO,GAAGA,CAAA,KAAM;IACpB,IAAI;MACF,IAAAC,2BAAiB,EAAC;QAAEC,MAAM,EAAE;MAA+B,CAAC,CAAC;IAC/D,CAAC,CAAC,MAAM;MACN;IAAA;EAEJ,CAAC;EACD,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACR,YAAA,CAAAS,gBAAgB;IACfC,KAAK,EAAEC,MAAM,CAACC,MAAO;IACrBP,OAAO,EAAEA,OAAQ;IACjBQ,OAAO,EAAE;MAAEC,GAAG,EAAE,CAAC;MAAEC,MAAM,EAAE,CAAC;MAAEC,IAAI,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAE;IAClDC,kBAAkB,EAAC,YAAY;IAC/BC,iBAAiB,EAAC,QAAQ;IAC1BC,MAAM,EAAC,yBAAyB;IAAAC,QAAA,gBAEhC,IAAAlB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