@buoy-gg/storage 7.0.33 → 7.0.35

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 (49) hide show
  1. package/lib/commonjs/preset.js +8 -22
  2. package/lib/commonjs/storage/components/DiffViewer/DiffOptionsPanel.js +10 -10
  3. package/lib/commonjs/storage/components/DiffViewer/components/DiffSummary.js +4 -3
  4. package/lib/commonjs/storage/components/GameUIStorageBrowser.js +5 -5
  5. package/lib/commonjs/storage/components/MMKVInstanceInfoPanel.js +1 -1
  6. package/lib/commonjs/storage/components/MMKVInstanceSelector.js +2 -2
  7. package/lib/commonjs/storage/components/SelectionActionBar.js +1 -1
  8. package/lib/commonjs/storage/components/StorageActionButtons.js +1 -1
  9. package/lib/commonjs/storage/components/StorageEventActionButton.js +1 -1
  10. package/lib/commonjs/storage/components/StorageEventDetailContent.js +2 -2
  11. package/lib/commonjs/storage/components/StorageFilterCards.js +1 -1
  12. package/lib/commonjs/storage/components/StorageKeyCard.js +4 -4
  13. package/lib/commonjs/storage/components/StorageKeyDetailScreen.js +8 -8
  14. package/lib/commonjs/storage/components/StorageKeyEditorScreen.js +3 -3
  15. package/lib/commonjs/storage/components/StorageKeyRow.js +6 -6
  16. package/lib/commonjs/storage/components/StorageModalWithTabs.js +45 -147
  17. package/lib/commonjs/storage/components/StorageTypeFilterBar.js +1 -1
  18. package/lib/commonjs/storage/hooks/useStorageEvents.js +15 -52
  19. package/lib/commonjs/storage/utils/snapshotProvider.js +37 -100
  20. package/lib/module/preset.js +7 -20
  21. package/lib/module/storage/components/DiffViewer/DiffOptionsPanel.js +11 -11
  22. package/lib/module/storage/components/DiffViewer/components/DiffSummary.js +4 -3
  23. package/lib/module/storage/components/GameUIStorageBrowser.js +6 -6
  24. package/lib/module/storage/components/MMKVInstanceInfoPanel.js +2 -2
  25. package/lib/module/storage/components/MMKVInstanceSelector.js +3 -3
  26. package/lib/module/storage/components/SelectionActionBar.js +2 -2
  27. package/lib/module/storage/components/StorageActionButtons.js +2 -2
  28. package/lib/module/storage/components/StorageEventActionButton.js +2 -2
  29. package/lib/module/storage/components/StorageEventDetailContent.js +3 -3
  30. package/lib/module/storage/components/StorageFilterCards.js +2 -2
  31. package/lib/module/storage/components/StorageKeyCard.js +5 -5
  32. package/lib/module/storage/components/StorageKeyDetailScreen.js +9 -9
  33. package/lib/module/storage/components/StorageKeyEditorScreen.js +4 -4
  34. package/lib/module/storage/components/StorageKeyRow.js +7 -7
  35. package/lib/module/storage/components/StorageModalWithTabs.js +46 -148
  36. package/lib/module/storage/components/StorageTypeFilterBar.js +2 -2
  37. package/lib/module/storage/hooks/useStorageEvents.js +16 -53
  38. package/lib/module/storage/utils/snapshotProvider.js +38 -101
  39. package/lib/typescript/preset.d.ts +2 -8
  40. package/lib/typescript/preset.d.ts.map +1 -1
  41. package/lib/typescript/storage/components/DiffViewer/DiffOptionsPanel.d.ts.map +1 -1
  42. package/lib/typescript/storage/components/DiffViewer/components/DiffSummary.d.ts.map +1 -1
  43. package/lib/typescript/storage/components/StorageEventDetailContent.d.ts.map +1 -1
  44. package/lib/typescript/storage/components/StorageKeyCard.d.ts.map +1 -1
  45. package/lib/typescript/storage/components/StorageKeyDetailScreen.d.ts.map +1 -1
  46. package/lib/typescript/storage/components/StorageKeyEditorScreen.d.ts.map +1 -1
  47. package/lib/typescript/storage/components/StorageModalWithTabs.d.ts.map +1 -1
  48. package/lib/typescript/storage/hooks/useStorageEvents.d.ts.map +1 -1
  49. package/package.json +5 -5
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.createStorageTool = createStorageTool;
7
- exports.storageToolPreset = void 0;
6
+ exports.storageToolPreset = exports.createStorageTool = void 0;
8
7
  var _floatingToolsCore = require("@buoy-gg/floating-tools-core");
8
+ var _sharedUi = require("@buoy-gg/shared-ui");
9
9
  var _StorageModalWithTabs = require("./storage/components/StorageModalWithTabs");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  /**
@@ -33,7 +33,7 @@ var _jsxRuntime = require("react/jsx-runtime");
33
33
  * - Live storage event monitoring
34
34
  * - Required key validation
35
35
  */
36
- const storageToolPreset = exports.storageToolPreset = {
36
+ const storageToolPreset = exports.storageToolPreset = (0, _sharedUi.defineToolPreset)({
37
37
  id: "storage",
38
38
  name: "STORAGE",
39
39
  description: "AsyncStorage browser",
@@ -48,7 +48,7 @@ const storageToolPreset = exports.storageToolPreset = {
48
48
  requiredStorageKeys: [],
49
49
  enableSharedModalDimensions: false
50
50
  }
51
- };
51
+ });
52
52
 
53
53
  /**
54
54
  * Create a custom AsyncStorage browser tool configuration.
@@ -74,21 +74,7 @@ const storageToolPreset = exports.storageToolPreset = {
74
74
  * });
75
75
  * ```
76
76
  */
77
- function createStorageTool(options) {
78
- return {
79
- id: options?.id || "storage",
80
- name: options?.name || "STORAGE",
81
- description: options?.description || "AsyncStorage browser",
82
- slot: "both",
83
- icon: ({
84
- size
85
- }) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_floatingToolsCore.StorageIcon, {
86
- size: size
87
- }),
88
- component: _StorageModalWithTabs.StorageModalWithTabs,
89
- props: {
90
- requiredStorageKeys: options?.requiredStorageKeys || [],
91
- enableSharedModalDimensions: options?.enableSharedModalDimensions !== undefined ? options.enableSharedModalDimensions : false
92
- }
93
- };
94
- }
77
+ const createStorageTool = exports.createStorageTool = (0, _sharedUi.createToolFactory)(storageToolPreset, options => ({
78
+ requiredStorageKeys: options.requiredStorageKeys || [],
79
+ enableSharedModalDimensions: options.enableSharedModalDimensions ?? false
80
+ }));
@@ -212,13 +212,13 @@ const styles = _reactNative.StyleSheet.create({
212
212
  fontSize: 10,
213
213
  fontWeight: "600",
214
214
  color: _sharedUi.night.color.accent,
215
- fontFamily: "monospace",
215
+ fontFamily: _sharedUi.monoFont,
216
216
  flex: 1
217
217
  },
218
218
  toggleIndicator: {
219
219
  fontSize: 8,
220
220
  color: _sharedUi.night.color.textTertiary,
221
- fontFamily: "monospace"
221
+ fontFamily: _sharedUi.monoFont
222
222
  },
223
223
  optionsContent: {
224
224
  marginTop: 8,
@@ -234,7 +234,7 @@ const styles = _reactNative.StyleSheet.create({
234
234
  fontSize: 9,
235
235
  fontWeight: "700",
236
236
  color: _sharedUi.night.color.accent,
237
- fontFamily: "monospace",
237
+ fontFamily: _sharedUi.monoFont,
238
238
  letterSpacing: 0.5,
239
239
  marginBottom: 4
240
240
  },
@@ -255,12 +255,12 @@ const styles = _reactNative.StyleSheet.create({
255
255
  optionLabel: {
256
256
  fontSize: 11,
257
257
  color: _sharedUi.night.color.text,
258
- fontFamily: "monospace"
258
+ fontFamily: _sharedUi.monoFont
259
259
  },
260
260
  optionDescription: {
261
261
  fontSize: 9,
262
262
  color: _sharedUi.night.color.textTertiary,
263
- fontFamily: "monospace",
263
+ fontFamily: _sharedUi.monoFont,
264
264
  marginTop: 4,
265
265
  marginLeft: 19,
266
266
  lineHeight: 12
@@ -291,7 +291,7 @@ const styles = _reactNative.StyleSheet.create({
291
291
  },
292
292
  methodButtonText: {
293
293
  fontSize: 9,
294
- fontFamily: "monospace",
294
+ fontFamily: _sharedUi.monoFont,
295
295
  color: _sharedUi.night.color.textTertiary,
296
296
  fontWeight: "600"
297
297
  },
@@ -301,7 +301,7 @@ const styles = _reactNative.StyleSheet.create({
301
301
  methodDescription: {
302
302
  fontSize: 9,
303
303
  color: _sharedUi.night.color.textTertiary,
304
- fontFamily: "monospace",
304
+ fontFamily: _sharedUi.monoFont,
305
305
  marginTop: 8,
306
306
  lineHeight: 12
307
307
  },
@@ -325,7 +325,7 @@ const styles = _reactNative.StyleSheet.create({
325
325
  },
326
326
  contextButtonText: {
327
327
  fontSize: 10,
328
- fontFamily: "monospace",
328
+ fontFamily: _sharedUi.monoFont,
329
329
  color: _sharedUi.night.color.textTertiary,
330
330
  fontWeight: "600"
331
331
  },
@@ -335,7 +335,7 @@ const styles = _reactNative.StyleSheet.create({
335
335
  contextDescription: {
336
336
  fontSize: 9,
337
337
  color: _sharedUi.night.color.textTertiary,
338
- fontFamily: "monospace",
338
+ fontFamily: _sharedUi.monoFont,
339
339
  marginTop: 8,
340
340
  lineHeight: 12
341
341
  },
@@ -349,7 +349,7 @@ const styles = _reactNative.StyleSheet.create({
349
349
  },
350
350
  activeIndicatorText: {
351
351
  fontSize: 8,
352
- fontFamily: "monospace",
352
+ fontFamily: _sharedUi.monoFont,
353
353
  color: _sharedUi.night.color.warning,
354
354
  fontWeight: "600"
355
355
  }
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.DiffSummary = DiffSummary;
7
7
  var _reactNative = require("react-native");
8
+ var _sharedUi = require("@buoy-gg/shared-ui");
8
9
  var _jsxRuntime = require("react/jsx-runtime");
9
10
  function DiffSummary({
10
11
  added,
@@ -105,17 +106,17 @@ const styles = _reactNative.StyleSheet.create({
105
106
  },
106
107
  icon: {
107
108
  fontSize: 11,
108
- fontFamily: "monospace",
109
+ fontFamily: _sharedUi.monoFont,
109
110
  fontWeight: "700"
110
111
  },
111
112
  count: {
112
113
  fontSize: 10,
113
- fontFamily: "monospace",
114
+ fontFamily: _sharedUi.monoFont,
114
115
  fontWeight: "600"
115
116
  },
116
117
  label: {
117
118
  fontSize: 9,
118
- fontFamily: "monospace",
119
+ fontFamily: _sharedUi.monoFont,
119
120
  opacity: 0.9
120
121
  }
121
122
  });
@@ -1030,7 +1030,7 @@ const styles = _reactNative.StyleSheet.create({
1030
1030
  techFooter: {
1031
1031
  fontSize: 8,
1032
1032
  color: _sharedUi.night.color.textTertiary,
1033
- fontFamily: "monospace",
1033
+ fontFamily: _sharedUi.monoFont,
1034
1034
  textAlign: "center",
1035
1035
  marginTop: 20,
1036
1036
  letterSpacing: 1,
@@ -1078,7 +1078,7 @@ const styles = _reactNative.StyleSheet.create({
1078
1078
  fontSize: 11,
1079
1079
  fontWeight: "600",
1080
1080
  color: _sharedUi.night.color.text,
1081
- fontFamily: "monospace"
1081
+ fontFamily: _sharedUi.monoFont
1082
1082
  },
1083
1083
  // Empty state
1084
1084
  emptyState: {
@@ -1122,7 +1122,7 @@ const styles = _reactNative.StyleSheet.create({
1122
1122
  },
1123
1123
  emptyMMKVCode: {
1124
1124
  fontSize: 10,
1125
- fontFamily: "monospace",
1125
+ fontFamily: _sharedUi.monoFont,
1126
1126
  color: _sharedUi.night.color.accent,
1127
1127
  backgroundColor: _sharedUi.night.color.bg,
1128
1128
  padding: 12,
@@ -1192,7 +1192,7 @@ const styles = _reactNative.StyleSheet.create({
1192
1192
  fontSize: 11,
1193
1193
  fontWeight: '600',
1194
1194
  color: _sharedUi.night.color.textSecondary,
1195
- fontFamily: 'monospace',
1195
+ fontFamily: _sharedUi.monoFont,
1196
1196
  flex: 1
1197
1197
  },
1198
1198
  instanceNavbarButtonTextActive: {
@@ -1211,7 +1211,7 @@ const styles = _reactNative.StyleSheet.create({
1211
1211
  fontSize: 10,
1212
1212
  fontWeight: '700',
1213
1213
  color: _sharedUi.night.color.textSecondary,
1214
- fontFamily: 'monospace'
1214
+ fontFamily: _sharedUi.monoFont
1215
1215
  },
1216
1216
  clearSearchButton: {
1217
1217
  marginTop: 16,
@@ -223,7 +223,7 @@ const styles = _reactNative.StyleSheet.create({
223
223
  color: _sharedUi.night.color.accent
224
224
  },
225
225
  monoValue: {
226
- fontFamily: 'monospace'
226
+ fontFamily: _sharedUi.monoFont
227
227
  },
228
228
  // Notices
229
229
  notice: {
@@ -370,7 +370,7 @@ const styles = _reactNative.StyleSheet.create({
370
370
  fontSize: 13,
371
371
  fontWeight: '500',
372
372
  color: _sharedUi.night.color.text,
373
- fontFamily: 'monospace'
373
+ fontFamily: _sharedUi.monoFont
374
374
  },
375
375
  instanceIdSelected: {
376
376
  fontWeight: '600',
@@ -407,7 +407,7 @@ const styles = _reactNative.StyleSheet.create({
407
407
  fontSize: 16,
408
408
  fontWeight: '600',
409
409
  color: _sharedUi.night.color.text,
410
- fontFamily: 'monospace'
410
+ fontFamily: _sharedUi.monoFont
411
411
  },
412
412
  keyCountLabel: {
413
413
  fontSize: 9,
@@ -187,7 +187,7 @@ const styles = _reactNative.StyleSheet.create({
187
187
  fontSize: 11,
188
188
  fontWeight: "700",
189
189
  color: _sharedUi.night.color.accent,
190
- fontFamily: "monospace"
190
+ fontFamily: _sharedUi.monoFont
191
191
  },
192
192
  actionsSection: {
193
193
  flexDirection: "row",
@@ -236,6 +236,6 @@ const styles = _reactNative.StyleSheet.create({
236
236
  fontSize: 10,
237
237
  fontWeight: "700",
238
238
  color: _sharedUi.night.color.accent,
239
- fontFamily: "monospace"
239
+ fontFamily: _sharedUi.monoFont
240
240
  }
241
241
  });
@@ -115,7 +115,7 @@ const styles = _reactNative.StyleSheet.create({
115
115
  fontWeight: "600",
116
116
  letterSpacing: 0.5,
117
117
  textTransform: "uppercase",
118
- fontFamily: "monospace",
118
+ fontFamily: _sharedUi.monoFont,
119
119
  height: 12
120
120
  }
121
121
  });
@@ -477,7 +477,7 @@ const styles = _reactNative.StyleSheet.create({
477
477
  valueText: {
478
478
  fontSize: 12,
479
479
  color: _sharedUi.night.color.text,
480
- fontFamily: "monospace",
480
+ fontFamily: _sharedUi.monoFont,
481
481
  lineHeight: 18
482
482
  },
483
483
  // Action badges for compare bar
@@ -489,6 +489,6 @@ const styles = _reactNative.StyleSheet.create({
489
489
  actionTextSmall: {
490
490
  fontSize: 8,
491
491
  fontWeight: "700",
492
- fontFamily: "monospace"
492
+ fontFamily: _sharedUi.monoFont
493
493
  }
494
494
  });
@@ -225,7 +225,7 @@ const styles = _reactNative.StyleSheet.create({
225
225
  filterValue: {
226
226
  fontSize: 18,
227
227
  fontWeight: "600",
228
- fontFamily: "monospace",
228
+ fontFamily: _sharedUi.monoFont,
229
229
  lineHeight: 20
230
230
  }
231
231
  });
@@ -399,7 +399,7 @@ const styles = _reactNative.StyleSheet.create({
399
399
  instanceText: {
400
400
  fontSize: 9,
401
401
  fontWeight: "700",
402
- fontFamily: "monospace",
402
+ fontFamily: _sharedUi.monoFont,
403
403
  letterSpacing: 0.3
404
404
  },
405
405
  valueBadge: {
@@ -450,7 +450,7 @@ const styles = _reactNative.StyleSheet.create({
450
450
  simpleValueContent: {
451
451
  color: _sharedUi.gameUIColors.success,
452
452
  fontSize: 12,
453
- fontFamily: "monospace",
453
+ fontFamily: _sharedUi.monoFont,
454
454
  lineHeight: 16
455
455
  },
456
456
  valueTypeText: {
@@ -478,7 +478,7 @@ const styles = _reactNative.StyleSheet.create({
478
478
  valueContent: {
479
479
  color: _sharedUi.night.color.text,
480
480
  fontSize: 10,
481
- fontFamily: "monospace",
481
+ fontFamily: _sharedUi.monoFont,
482
482
  lineHeight: 14
483
483
  },
484
484
  expectedValueBox: {
@@ -491,7 +491,7 @@ const styles = _reactNative.StyleSheet.create({
491
491
  expectedValueContent: {
492
492
  color: _sharedUi.night.color.text,
493
493
  fontSize: 10,
494
- fontFamily: "monospace",
494
+ fontFamily: _sharedUi.monoFont,
495
495
  lineHeight: 14
496
496
  },
497
497
  emptyValueContainer: {
@@ -438,7 +438,7 @@ const styles = _reactNative.StyleSheet.create({
438
438
  color: _sharedUi.night.color.accent,
439
439
  letterSpacing: 0.5,
440
440
  textTransform: "uppercase",
441
- fontFamily: "monospace"
441
+ fontFamily: _sharedUi.monoFont
442
442
  },
443
443
  rawButton: {
444
444
  flexDirection: "row",
@@ -485,7 +485,7 @@ const styles = _reactNative.StyleSheet.create({
485
485
  borderBottomColor: _sharedUi.night.color.border,
486
486
  letterSpacing: 0.5,
487
487
  textTransform: "uppercase",
488
- fontFamily: "monospace"
488
+ fontFamily: _sharedUi.monoFont
489
489
  },
490
490
  infoBody: {
491
491
  padding: 12,
@@ -501,17 +501,17 @@ const styles = _reactNative.StyleSheet.create({
501
501
  color: _sharedUi.night.color.textTertiary,
502
502
  fontWeight: "600",
503
503
  minWidth: 64,
504
- fontFamily: "monospace"
504
+ fontFamily: _sharedUi.monoFont
505
505
  },
506
506
  infoDim: {
507
507
  color: _sharedUi.night.color.textTertiary,
508
508
  fontSize: 10,
509
- fontFamily: "monospace"
509
+ fontFamily: _sharedUi.monoFont
510
510
  },
511
511
  infoExpected: {
512
512
  fontSize: 11,
513
513
  color: _sharedUi.macOSColors.semantic.warning,
514
- fontFamily: "monospace",
514
+ fontFamily: _sharedUi.monoFont,
515
515
  flex: 1
516
516
  },
517
517
  infoDescription: {
@@ -522,7 +522,7 @@ const styles = _reactNative.StyleSheet.create({
522
522
  rawValueText: {
523
523
  color: _sharedUi.night.color.textSecondary,
524
524
  fontSize: 11,
525
- fontFamily: "monospace",
525
+ fontFamily: _sharedUi.monoFont,
526
526
  lineHeight: 16,
527
527
  padding: 12
528
528
  },
@@ -536,7 +536,7 @@ const styles = _reactNative.StyleSheet.create({
536
536
  inlineLinkText: {
537
537
  fontSize: 10,
538
538
  fontWeight: "600",
539
- fontFamily: "monospace",
539
+ fontFamily: _sharedUi.monoFont,
540
540
  color: _sharedUi.night.color.accent
541
541
  },
542
542
  actionRow: {
@@ -567,6 +567,6 @@ const styles = _reactNative.StyleSheet.create({
567
567
  actionChipText: {
568
568
  fontSize: 11,
569
569
  fontWeight: "600",
570
- fontFamily: "monospace"
570
+ fontFamily: _sharedUi.monoFont
571
571
  }
572
572
  });
@@ -323,7 +323,7 @@ const styles = _reactNative.StyleSheet.create({
323
323
  color: _sharedUi.night.color.text,
324
324
  fontSize: 13,
325
325
  fontWeight: "600",
326
- fontFamily: "monospace"
326
+ fontFamily: _sharedUi.monoFont
327
327
  },
328
328
  headerState: {
329
329
  color: _sharedUi.night.color.textTertiary,
@@ -342,7 +342,7 @@ const styles = _reactNative.StyleSheet.create({
342
342
  metaText: {
343
343
  color: _sharedUi.night.color.textTertiary,
344
344
  fontSize: 11,
345
- fontFamily: "monospace"
345
+ fontFamily: _sharedUi.monoFont
346
346
  },
347
347
  treeScroll: {
348
348
  flex: 1
@@ -367,7 +367,7 @@ const styles = _reactNative.StyleSheet.create({
367
367
  error: {
368
368
  color: _sharedUi.night.color.danger,
369
369
  fontSize: 11,
370
- fontFamily: "monospace",
370
+ fontFamily: _sharedUi.monoFont,
371
371
  paddingHorizontal: 12,
372
372
  paddingBottom: 6
373
373
  },
@@ -437,18 +437,18 @@ const styles = _reactNative.StyleSheet.create({
437
437
  color: _sharedUi.night.color.textTertiary,
438
438
  fontWeight: "600",
439
439
  minWidth: 70,
440
- fontFamily: "monospace"
440
+ fontFamily: _sharedUi.monoFont
441
441
  },
442
442
  expandedValue: {
443
443
  fontSize: 11,
444
444
  color: _sharedUi.night.color.textSecondary,
445
- fontFamily: "monospace",
445
+ fontFamily: _sharedUi.monoFont,
446
446
  flex: 1
447
447
  },
448
448
  expandedExpected: {
449
449
  fontSize: 11,
450
450
  color: _sharedUi.macOSColors.semantic.warning,
451
- fontFamily: "monospace",
451
+ fontFamily: _sharedUi.monoFont,
452
452
  flex: 1
453
453
  },
454
454
  expandedDescription: {
@@ -500,7 +500,7 @@ const styles = _reactNative.StyleSheet.create({
500
500
  absCountText: {
501
501
  fontSize: 9,
502
502
  fontWeight: "700",
503
- fontFamily: "monospace"
503
+ fontFamily: _sharedUi.monoFont
504
504
  },
505
505
  actionRow: {
506
506
  flexDirection: "row",
@@ -545,7 +545,7 @@ const styles = _reactNative.StyleSheet.create({
545
545
  actionChipText: {
546
546
  fontSize: 11,
547
547
  fontWeight: "600",
548
- fontFamily: "monospace"
548
+ fontFamily: _sharedUi.monoFont
549
549
  },
550
550
  viewHistoryButton: {
551
551
  marginLeft: 4
@@ -553,7 +553,7 @@ const styles = _reactNative.StyleSheet.create({
553
553
  viewHistoryText: {
554
554
  fontSize: 10,
555
555
  fontWeight: "600",
556
- fontFamily: "monospace",
556
+ fontFamily: _sharedUi.monoFont,
557
557
  color: _sharedUi.night.color.accent
558
558
  }
559
559
  });