@buoy-gg/zustand 7.0.26 → 7.0.28
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/lib/commonjs/zustand/components/ZustandActionButton.js +21 -21
- package/lib/commonjs/zustand/components/ZustandDetailViewToggle.js +16 -15
- package/lib/commonjs/zustand/components/ZustandEventFilterView.js +23 -22
- package/lib/commonjs/zustand/components/ZustandModal.js +33 -28
- package/lib/commonjs/zustand/components/ZustandStateChangeItem.js +1 -1
- package/lib/commonjs/zustand/components/ZustandStateDetailContent.js +11 -9
- package/lib/commonjs/zustand/components/ZustandStateInfoView.js +27 -26
- package/lib/commonjs/zustand/components/ZustandStoreBrowser.js +11 -10
- package/lib/module/zustand/components/ZustandActionButton.js +22 -22
- package/lib/module/zustand/components/ZustandDetailViewToggle.js +17 -16
- package/lib/module/zustand/components/ZustandEventFilterView.js +24 -23
- package/lib/module/zustand/components/ZustandModal.js +34 -29
- package/lib/module/zustand/components/ZustandStateChangeItem.js +2 -2
- package/lib/module/zustand/components/ZustandStateDetailContent.js +12 -10
- package/lib/module/zustand/components/ZustandStateInfoView.js +28 -27
- package/lib/module/zustand/components/ZustandStoreBrowser.js +12 -11
- package/lib/typescript/zustand/components/ZustandActionButton.d.ts +11 -11
- package/lib/typescript/zustand/components/ZustandEventFilterView.d.ts.map +1 -1
- package/lib/typescript/zustand/components/ZustandStateInfoView.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import { useState, useMemo, useRef, useCallback, useEffect } from "react";
|
|
12
12
|
import { View, Text, StyleSheet, FlatList, TextInput, TouchableOpacity } from "react-native";
|
|
13
|
-
import { JsModal, ModalHeader, TabSelector, macOSColors,
|
|
13
|
+
import { JsModal, ModalHeader, TabSelector, macOSColors, night, Search, Filter, Power, X, Lock, Box, devToolsStorageKeys, ProUpgradeModal, PowerToggleButton, ToolbarCopyButton, ToolbarClearButton, truncatePayload, TickProvider, useLimit } from "@buoy-gg/shared-ui";
|
|
14
14
|
import { useIsPro } from "@buoy-gg/license";
|
|
15
15
|
import { useZustandStateChanges } from "../hooks/useZustandStateChanges";
|
|
16
16
|
import { ZustandStateChangeItem } from "./ZustandStateChangeItem";
|
|
@@ -25,7 +25,7 @@ function EventsEmptyState({
|
|
|
25
25
|
style: styles.emptyState,
|
|
26
26
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
27
27
|
size: 32,
|
|
28
|
-
color:
|
|
28
|
+
color: night.color.textTertiary
|
|
29
29
|
}), /*#__PURE__*/_jsx(Text, {
|
|
30
30
|
style: styles.emptyTitle,
|
|
31
31
|
children: "No state changes"
|
|
@@ -295,12 +295,12 @@ export function ZustandModal({
|
|
|
295
295
|
style: styles.headerSearchContainer,
|
|
296
296
|
children: [/*#__PURE__*/_jsx(Search, {
|
|
297
297
|
size: 14,
|
|
298
|
-
color:
|
|
298
|
+
color: night.color.textSecondary
|
|
299
299
|
}), /*#__PURE__*/_jsx(TextInput, {
|
|
300
300
|
ref: searchInputRef,
|
|
301
301
|
style: styles.headerSearchInput,
|
|
302
302
|
placeholder: activeTab === "stores" ? "Search stores..." : "Search events...",
|
|
303
|
-
placeholderTextColor:
|
|
303
|
+
placeholderTextColor: night.color.placeholder,
|
|
304
304
|
value: searchText,
|
|
305
305
|
onChangeText: handleSearch,
|
|
306
306
|
onSubmitEditing: () => setIsSearchActive(false),
|
|
@@ -316,7 +316,7 @@ export function ZustandModal({
|
|
|
316
316
|
style: styles.headerSearchClear,
|
|
317
317
|
children: /*#__PURE__*/_jsx(X, {
|
|
318
318
|
size: 14,
|
|
319
|
-
color:
|
|
319
|
+
color: night.color.textSecondary
|
|
320
320
|
})
|
|
321
321
|
})]
|
|
322
322
|
}) : /*#__PURE__*/_jsx(TabSelector, {
|
|
@@ -336,14 +336,14 @@ export function ZustandModal({
|
|
|
336
336
|
style: styles.headerActionButton,
|
|
337
337
|
children: /*#__PURE__*/_jsx(Search, {
|
|
338
338
|
size: 14,
|
|
339
|
-
color:
|
|
339
|
+
color: night.color.textSecondary
|
|
340
340
|
})
|
|
341
341
|
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
342
342
|
onPress: () => setShowFilters(true),
|
|
343
343
|
style: [styles.headerActionButton, hasActiveFilters && styles.headerActionButtonActive],
|
|
344
344
|
children: /*#__PURE__*/_jsx(Filter, {
|
|
345
345
|
size: 14,
|
|
346
|
-
color: hasActiveFilters ?
|
|
346
|
+
color: hasActiveFilters ? night.color.accent : night.color.textSecondary
|
|
347
347
|
})
|
|
348
348
|
}), activeTab === "stores" && /*#__PURE__*/_jsx(ToolbarCopyButton, {
|
|
349
349
|
value: getStoresSnapshot,
|
|
@@ -410,7 +410,7 @@ export function ZustandModal({
|
|
|
410
410
|
style: styles.emptyState,
|
|
411
411
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
412
412
|
size: 32,
|
|
413
|
-
color:
|
|
413
|
+
color: night.color.textTertiary
|
|
414
414
|
}), /*#__PURE__*/_jsx(Text, {
|
|
415
415
|
style: styles.emptyTitle,
|
|
416
416
|
children: "No history yet"
|
|
@@ -438,7 +438,7 @@ export function ZustandModal({
|
|
|
438
438
|
style: styles.disabledBanner,
|
|
439
439
|
children: [/*#__PURE__*/_jsx(Power, {
|
|
440
440
|
size: 14,
|
|
441
|
-
color:
|
|
441
|
+
color: night.color.warning
|
|
442
442
|
}), /*#__PURE__*/_jsx(Text, {
|
|
443
443
|
style: styles.disabledText,
|
|
444
444
|
children: "State capture is disabled"
|
|
@@ -449,7 +449,7 @@ export function ZustandModal({
|
|
|
449
449
|
activeOpacity: 0.8,
|
|
450
450
|
children: [/*#__PURE__*/_jsx(Lock, {
|
|
451
451
|
size: 14,
|
|
452
|
-
color:
|
|
452
|
+
color: night.color.accent
|
|
453
453
|
}), /*#__PURE__*/_jsxs(Text, {
|
|
454
454
|
style: styles.lockedText,
|
|
455
455
|
children: [lockedChangeCount, " older", " ", lockedChangeCount === 1 ? "change" : "changes", " locked"]
|
|
@@ -556,7 +556,9 @@ const styles = StyleSheet.create({
|
|
|
556
556
|
inlineRoot: {
|
|
557
557
|
flex: 1,
|
|
558
558
|
minHeight: 0,
|
|
559
|
-
|
|
559
|
+
// Transparent so the desktop workbench's hoisted sky (one field spanning
|
|
560
|
+
// sidebar + panel) shows through — the shell paints its base beneath it.
|
|
561
|
+
backgroundColor: "transparent"
|
|
560
562
|
},
|
|
561
563
|
inlineHeader: {
|
|
562
564
|
paddingHorizontal: 12,
|
|
@@ -567,21 +569,22 @@ const styles = StyleSheet.create({
|
|
|
567
569
|
},
|
|
568
570
|
container: {
|
|
569
571
|
flex: 1,
|
|
570
|
-
|
|
572
|
+
// Transparent so JsModal's ToolBackground shows through (the modal paints opaque base beneath it).
|
|
573
|
+
backgroundColor: "transparent"
|
|
571
574
|
},
|
|
572
575
|
headerSearchContainer: {
|
|
573
576
|
flexDirection: "row",
|
|
574
577
|
alignItems: "center",
|
|
575
|
-
backgroundColor:
|
|
576
|
-
borderRadius:
|
|
578
|
+
backgroundColor: night.color.surfaceElevated,
|
|
579
|
+
borderRadius: night.radius.row,
|
|
577
580
|
borderWidth: 1,
|
|
578
|
-
borderColor:
|
|
581
|
+
borderColor: night.color.border,
|
|
579
582
|
paddingHorizontal: 12,
|
|
580
583
|
paddingVertical: 5
|
|
581
584
|
},
|
|
582
585
|
headerSearchInput: {
|
|
583
586
|
flex: 1,
|
|
584
|
-
color:
|
|
587
|
+
color: night.color.text,
|
|
585
588
|
fontSize: 13,
|
|
586
589
|
marginLeft: 6,
|
|
587
590
|
paddingVertical: 2
|
|
@@ -594,9 +597,9 @@ const styles = StyleSheet.create({
|
|
|
594
597
|
width: 32,
|
|
595
598
|
height: 32,
|
|
596
599
|
borderRadius: 8,
|
|
597
|
-
backgroundColor:
|
|
600
|
+
backgroundColor: night.color.buttonSurface,
|
|
598
601
|
borderWidth: 1,
|
|
599
|
-
borderColor:
|
|
602
|
+
borderColor: night.color.border,
|
|
600
603
|
alignItems: "center",
|
|
601
604
|
justifyContent: "center"
|
|
602
605
|
},
|
|
@@ -604,7 +607,8 @@ const styles = StyleSheet.create({
|
|
|
604
607
|
opacity: 0.55
|
|
605
608
|
},
|
|
606
609
|
headerActionButtonActive: {
|
|
607
|
-
backgroundColor:
|
|
610
|
+
backgroundColor: night.color.accentSoft,
|
|
611
|
+
borderColor: night.color.accentBorderStrong
|
|
608
612
|
},
|
|
609
613
|
disabledBanner: {
|
|
610
614
|
flexDirection: "row",
|
|
@@ -613,13 +617,13 @@ const styles = StyleSheet.create({
|
|
|
613
617
|
padding: 10,
|
|
614
618
|
marginHorizontal: 12,
|
|
615
619
|
marginTop: 8,
|
|
616
|
-
backgroundColor:
|
|
620
|
+
backgroundColor: night.color.warningSoft,
|
|
617
621
|
borderRadius: 8,
|
|
618
622
|
borderWidth: 1,
|
|
619
|
-
borderColor:
|
|
623
|
+
borderColor: night.color.warning + "20"
|
|
620
624
|
},
|
|
621
625
|
disabledText: {
|
|
622
|
-
color:
|
|
626
|
+
color: night.color.warning,
|
|
623
627
|
fontSize: 11,
|
|
624
628
|
flex: 1
|
|
625
629
|
},
|
|
@@ -632,14 +636,14 @@ const styles = StyleSheet.create({
|
|
|
632
636
|
paddingVertical: 40
|
|
633
637
|
},
|
|
634
638
|
emptyTitle: {
|
|
635
|
-
color:
|
|
639
|
+
color: night.color.text,
|
|
636
640
|
fontSize: 14,
|
|
637
641
|
fontWeight: "600",
|
|
638
642
|
marginTop: 12,
|
|
639
643
|
marginBottom: 6
|
|
640
644
|
},
|
|
641
645
|
emptyText: {
|
|
642
|
-
color:
|
|
646
|
+
color: night.color.textTertiary,
|
|
643
647
|
fontSize: 12,
|
|
644
648
|
textAlign: "center",
|
|
645
649
|
lineHeight: 18
|
|
@@ -651,25 +655,26 @@ const styles = StyleSheet.create({
|
|
|
651
655
|
padding: 10,
|
|
652
656
|
marginHorizontal: 12,
|
|
653
657
|
marginTop: 8,
|
|
654
|
-
backgroundColor:
|
|
658
|
+
backgroundColor: night.color.accentSoft,
|
|
655
659
|
borderRadius: 8,
|
|
656
660
|
borderWidth: 1,
|
|
657
|
-
borderColor:
|
|
661
|
+
borderColor: night.color.accentBorder
|
|
658
662
|
},
|
|
659
663
|
lockedText: {
|
|
660
|
-
color:
|
|
664
|
+
color: night.color.accent,
|
|
661
665
|
fontSize: 11,
|
|
662
666
|
fontWeight: "500",
|
|
663
667
|
flex: 1
|
|
664
668
|
},
|
|
665
669
|
upgradeBadge: {
|
|
666
|
-
backgroundColor:
|
|
670
|
+
backgroundColor: night.color.accent,
|
|
667
671
|
paddingHorizontal: 8,
|
|
668
672
|
paddingVertical: 3,
|
|
669
673
|
borderRadius: 4
|
|
670
674
|
},
|
|
671
675
|
upgradeBadgeText: {
|
|
672
|
-
|
|
676
|
+
// Ink on a filled accent surface — the night accent takes dark ink.
|
|
677
|
+
color: night.color.onAccent,
|
|
673
678
|
fontSize: 9,
|
|
674
679
|
fontWeight: "700",
|
|
675
680
|
letterSpacing: 0.5
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { memo } from "react";
|
|
10
10
|
import { View, Text, StyleSheet } from "react-native";
|
|
11
|
-
import { CompactRow, buoyColors, Zap, Clock, RelativeTime } from "@buoy-gg/shared-ui";
|
|
11
|
+
import { CompactRow, buoyColors, night, Zap, Clock, RelativeTime } from "@buoy-gg/shared-ui";
|
|
12
12
|
import { zustandStateStore } from "../utils/zustandStateStore";
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
14
|
/**
|
|
@@ -37,7 +37,7 @@ function getCategoryColor(category, storeName) {
|
|
|
37
37
|
case "persist":
|
|
38
38
|
return buoyColors.info;
|
|
39
39
|
case "initial":
|
|
40
|
-
return
|
|
40
|
+
return night.color.textTertiary;
|
|
41
41
|
default:
|
|
42
42
|
return zustandStateStore.getStoreColor(storeName);
|
|
43
43
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
15
15
|
import { useState, useCallback, useMemo } from "react";
|
|
16
|
-
import {
|
|
16
|
+
import { night, EventStepperFooter, formatRelativeTime, parseValue } from "@buoy-gg/shared-ui";
|
|
17
17
|
import { DataViewer, SplitDiffViewer, TreeDiffViewer, diffThemes } from "@buoy-gg/shared-ui/dataViewer";
|
|
18
18
|
import { ZustandDetailViewToggle } from "./ZustandDetailViewToggle";
|
|
19
19
|
import { ZustandStateInfoView } from "./ZustandStateInfoView";
|
|
@@ -253,7 +253,8 @@ export function ZustandStateDetailFooter({
|
|
|
253
253
|
const styles = StyleSheet.create({
|
|
254
254
|
container: {
|
|
255
255
|
flex: 1,
|
|
256
|
-
|
|
256
|
+
// Transparent so the night sheet's star field shows through.
|
|
257
|
+
backgroundColor: "transparent"
|
|
257
258
|
},
|
|
258
259
|
contentArea: {
|
|
259
260
|
flex: 1,
|
|
@@ -264,11 +265,11 @@ const styles = StyleSheet.create({
|
|
|
264
265
|
padding: 14
|
|
265
266
|
},
|
|
266
267
|
contentCard: {
|
|
267
|
-
backgroundColor:
|
|
268
|
+
backgroundColor: night.color.surface,
|
|
268
269
|
borderRadius: 14,
|
|
269
270
|
padding: 14,
|
|
270
271
|
borderWidth: 1,
|
|
271
|
-
borderColor:
|
|
272
|
+
borderColor: night.color.border
|
|
272
273
|
},
|
|
273
274
|
valueHeader: {
|
|
274
275
|
flexDirection: "row",
|
|
@@ -278,7 +279,7 @@ const styles = StyleSheet.create({
|
|
|
278
279
|
},
|
|
279
280
|
valueLabel: {
|
|
280
281
|
fontSize: 10,
|
|
281
|
-
color:
|
|
282
|
+
color: night.color.textSecondary,
|
|
282
283
|
fontFamily: "monospace",
|
|
283
284
|
letterSpacing: 0.5,
|
|
284
285
|
fontWeight: "600"
|
|
@@ -303,24 +304,25 @@ const styles = StyleSheet.create({
|
|
|
303
304
|
paddingHorizontal: 8,
|
|
304
305
|
paddingVertical: 2,
|
|
305
306
|
borderRadius: 4,
|
|
306
|
-
backgroundColor:
|
|
307
|
+
backgroundColor: night.color.surfaceElevated
|
|
307
308
|
},
|
|
308
309
|
typeText: {
|
|
309
310
|
fontSize: 9,
|
|
310
311
|
fontWeight: "600",
|
|
311
|
-
color:
|
|
312
|
+
color: night.color.textTertiary,
|
|
312
313
|
fontFamily: "monospace"
|
|
313
314
|
},
|
|
314
315
|
valueBox: {
|
|
315
|
-
|
|
316
|
+
// Inset code box — darker than the card, the night track color.
|
|
317
|
+
backgroundColor: night.color.bg,
|
|
316
318
|
borderRadius: 6,
|
|
317
319
|
borderWidth: 1,
|
|
318
|
-
borderColor:
|
|
320
|
+
borderColor: night.color.border,
|
|
319
321
|
padding: 8
|
|
320
322
|
},
|
|
321
323
|
valueText: {
|
|
322
324
|
fontSize: 12,
|
|
323
|
-
color:
|
|
325
|
+
color: night.color.text,
|
|
324
326
|
fontFamily: "monospace",
|
|
325
327
|
lineHeight: 18
|
|
326
328
|
},
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import React, { memo, useCallback, useState, useEffect } from "react";
|
|
15
15
|
import { View, Text, StyleSheet, ScrollView } from "react-native";
|
|
16
|
-
import { buoyColors, Clock, AlertTriangle, Zap, Info, Box, Database, parseValue, ProUpgradeModal, copyToClipboard } from "@buoy-gg/shared-ui";
|
|
16
|
+
import { buoyColors, night, Clock, AlertTriangle, Zap, Info, Box, Database, parseValue, ProUpgradeModal, copyToClipboard } from "@buoy-gg/shared-ui";
|
|
17
17
|
import { useIsPro } from "@buoy-gg/license";
|
|
18
18
|
import { DataViewer } from "@buoy-gg/shared-ui/dataViewer";
|
|
19
19
|
import { ZustandActionButton } from "./ZustandActionButton";
|
|
@@ -36,8 +36,8 @@ function getCategoryInfo(category) {
|
|
|
36
36
|
case "initial":
|
|
37
37
|
return {
|
|
38
38
|
label: "INITIAL",
|
|
39
|
-
color:
|
|
40
|
-
bgColor:
|
|
39
|
+
color: night.color.textTertiary,
|
|
40
|
+
bgColor: night.color.textTertiary + "26"
|
|
41
41
|
};
|
|
42
42
|
default:
|
|
43
43
|
return {
|
|
@@ -63,7 +63,7 @@ function SectionHeader({
|
|
|
63
63
|
style: styles.sectionHeaderLeft,
|
|
64
64
|
children: [/*#__PURE__*/_jsx(Icon, {
|
|
65
65
|
size: 14,
|
|
66
|
-
color:
|
|
66
|
+
color: night.color.accent
|
|
67
67
|
}), /*#__PURE__*/_jsx(Text, {
|
|
68
68
|
style: styles.sectionTitle,
|
|
69
69
|
children: title
|
|
@@ -170,7 +170,7 @@ export const ZustandStateInfoView = /*#__PURE__*/memo(function ZustandStateInfoV
|
|
|
170
170
|
style: [styles.durationBadge, change.isSlowUpdate && styles.durationBadgeSlow],
|
|
171
171
|
children: [/*#__PURE__*/_jsx(Clock, {
|
|
172
172
|
size: 10,
|
|
173
|
-
color: change.isSlowUpdate ? buoyColors.error :
|
|
173
|
+
color: change.isSlowUpdate ? buoyColors.error : night.color.textSecondary
|
|
174
174
|
}), /*#__PURE__*/_jsx(Text, {
|
|
175
175
|
style: [styles.durationText, change.isSlowUpdate && styles.durationTextSlow],
|
|
176
176
|
children: formatDuration(change.duration)
|
|
@@ -299,12 +299,12 @@ const styles = StyleSheet.create({
|
|
|
299
299
|
gap: 16
|
|
300
300
|
},
|
|
301
301
|
card: {
|
|
302
|
-
backgroundColor:
|
|
302
|
+
backgroundColor: night.color.surface,
|
|
303
303
|
borderRadius: 6,
|
|
304
304
|
borderWidth: 1,
|
|
305
|
-
borderColor:
|
|
305
|
+
borderColor: night.color.accentBorderStrong,
|
|
306
306
|
overflow: "hidden",
|
|
307
|
-
shadowColor:
|
|
307
|
+
shadowColor: night.color.accent,
|
|
308
308
|
shadowOffset: {
|
|
309
309
|
width: 0,
|
|
310
310
|
height: 0
|
|
@@ -319,8 +319,8 @@ const styles = StyleSheet.create({
|
|
|
319
319
|
paddingHorizontal: 12,
|
|
320
320
|
paddingVertical: 10,
|
|
321
321
|
borderBottomWidth: 1,
|
|
322
|
-
borderBottomColor:
|
|
323
|
-
backgroundColor:
|
|
322
|
+
borderBottomColor: night.color.accentBorder,
|
|
323
|
+
backgroundColor: night.color.accentSoft
|
|
324
324
|
},
|
|
325
325
|
sectionHeaderLeft: {
|
|
326
326
|
flexDirection: "row",
|
|
@@ -331,7 +331,7 @@ const styles = StyleSheet.create({
|
|
|
331
331
|
fontSize: 12,
|
|
332
332
|
fontWeight: "600",
|
|
333
333
|
letterSpacing: 0.5,
|
|
334
|
-
color:
|
|
334
|
+
color: night.color.accent,
|
|
335
335
|
fontFamily: "monospace"
|
|
336
336
|
},
|
|
337
337
|
cardContent: {
|
|
@@ -345,12 +345,12 @@ const styles = StyleSheet.create({
|
|
|
345
345
|
},
|
|
346
346
|
infoLabel: {
|
|
347
347
|
fontSize: 11,
|
|
348
|
-
color:
|
|
348
|
+
color: night.color.textTertiary,
|
|
349
349
|
fontWeight: "500"
|
|
350
350
|
},
|
|
351
351
|
infoValue: {
|
|
352
352
|
fontSize: 11,
|
|
353
|
-
color:
|
|
353
|
+
color: night.color.text,
|
|
354
354
|
fontWeight: "500",
|
|
355
355
|
flex: 1,
|
|
356
356
|
textAlign: "right",
|
|
@@ -382,7 +382,7 @@ const styles = StyleSheet.create({
|
|
|
382
382
|
paddingHorizontal: 8,
|
|
383
383
|
paddingVertical: 3,
|
|
384
384
|
borderRadius: 4,
|
|
385
|
-
backgroundColor:
|
|
385
|
+
backgroundColor: night.color.surfaceElevated
|
|
386
386
|
},
|
|
387
387
|
durationBadgeSlow: {
|
|
388
388
|
backgroundColor: buoyColors.error + "26"
|
|
@@ -390,7 +390,7 @@ const styles = StyleSheet.create({
|
|
|
390
390
|
durationText: {
|
|
391
391
|
fontSize: 9,
|
|
392
392
|
fontWeight: "600",
|
|
393
|
-
color:
|
|
393
|
+
color: night.color.textSecondary,
|
|
394
394
|
fontFamily: "monospace"
|
|
395
395
|
},
|
|
396
396
|
durationTextSlow: {
|
|
@@ -414,12 +414,12 @@ const styles = StyleSheet.create({
|
|
|
414
414
|
paddingHorizontal: 8,
|
|
415
415
|
paddingVertical: 3,
|
|
416
416
|
borderRadius: 4,
|
|
417
|
-
backgroundColor:
|
|
417
|
+
backgroundColor: night.color.surfaceElevated
|
|
418
418
|
},
|
|
419
419
|
noChangesText: {
|
|
420
420
|
fontSize: 9,
|
|
421
421
|
fontWeight: "600",
|
|
422
|
-
color:
|
|
422
|
+
color: night.color.textTertiary
|
|
423
423
|
},
|
|
424
424
|
persistBadge: {
|
|
425
425
|
flexDirection: "row",
|
|
@@ -445,52 +445,53 @@ const styles = StyleSheet.create({
|
|
|
445
445
|
paddingHorizontal: 8,
|
|
446
446
|
paddingVertical: 4,
|
|
447
447
|
borderRadius: 4,
|
|
448
|
-
backgroundColor:
|
|
448
|
+
backgroundColor: night.color.accentSoft,
|
|
449
449
|
borderWidth: 1,
|
|
450
|
-
borderColor:
|
|
450
|
+
borderColor: night.color.accentBorder
|
|
451
451
|
},
|
|
452
452
|
keyText: {
|
|
453
453
|
fontSize: 11,
|
|
454
454
|
fontWeight: "600",
|
|
455
|
-
color:
|
|
455
|
+
color: night.color.accent,
|
|
456
456
|
fontFamily: "monospace"
|
|
457
457
|
},
|
|
458
458
|
countBadge: {
|
|
459
459
|
paddingHorizontal: 8,
|
|
460
460
|
paddingVertical: 3,
|
|
461
461
|
borderRadius: 4,
|
|
462
|
-
backgroundColor:
|
|
462
|
+
backgroundColor: night.color.accentFill
|
|
463
463
|
},
|
|
464
464
|
countText: {
|
|
465
465
|
fontSize: 9,
|
|
466
466
|
fontWeight: "700",
|
|
467
|
-
color:
|
|
467
|
+
color: night.color.accent,
|
|
468
468
|
fontFamily: "monospace"
|
|
469
469
|
},
|
|
470
470
|
typeBadge: {
|
|
471
471
|
paddingHorizontal: 6,
|
|
472
472
|
paddingVertical: 2,
|
|
473
473
|
borderRadius: 3,
|
|
474
|
-
backgroundColor:
|
|
474
|
+
backgroundColor: night.color.surfaceElevated
|
|
475
475
|
},
|
|
476
476
|
typeText: {
|
|
477
477
|
fontSize: 8,
|
|
478
478
|
fontWeight: "600",
|
|
479
|
-
color:
|
|
479
|
+
color: night.color.textTertiary,
|
|
480
480
|
fontFamily: "monospace"
|
|
481
481
|
},
|
|
482
482
|
dataViewerContainer: {
|
|
483
|
-
|
|
483
|
+
// Inset display panel — darker than the card, the night track color.
|
|
484
|
+
backgroundColor: night.color.bg,
|
|
484
485
|
minHeight: 60
|
|
485
486
|
},
|
|
486
487
|
updaterText: {
|
|
487
488
|
fontSize: 12,
|
|
488
|
-
color:
|
|
489
|
+
color: night.color.text,
|
|
489
490
|
fontFamily: "monospace"
|
|
490
491
|
},
|
|
491
492
|
updaterSubtext: {
|
|
492
493
|
fontSize: 11,
|
|
493
|
-
color:
|
|
494
|
+
color: night.color.textTertiary,
|
|
494
495
|
lineHeight: 16,
|
|
495
496
|
marginTop: 4
|
|
496
497
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { useState, useMemo, useCallback } from "react";
|
|
14
14
|
import { View, Text, StyleSheet, ScrollView, TouchableOpacity, ActivityIndicator } from "react-native";
|
|
15
|
-
import { CompactRow,
|
|
15
|
+
import { CompactRow, buoyColors, night, Database, parseValue, Box, ExpandedInfoRow, PillBadge } from "@buoy-gg/shared-ui";
|
|
16
16
|
import { DataViewer } from "@buoy-gg/shared-ui/dataViewer";
|
|
17
17
|
import { zustandStateStore } from "../utils/zustandStateStore";
|
|
18
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -116,7 +116,7 @@ function LoadingBrowserState() {
|
|
|
116
116
|
style: styles.emptyState,
|
|
117
117
|
children: [/*#__PURE__*/_jsx(ActivityIndicator, {
|
|
118
118
|
size: "small",
|
|
119
|
-
color:
|
|
119
|
+
color: night.color.textTertiary
|
|
120
120
|
}), /*#__PURE__*/_jsx(Text, {
|
|
121
121
|
style: styles.emptyTitle,
|
|
122
122
|
children: "Loading stores\u2026"
|
|
@@ -131,7 +131,7 @@ function EmptyBrowserState() {
|
|
|
131
131
|
style: styles.emptyState,
|
|
132
132
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
133
133
|
size: 32,
|
|
134
|
-
color:
|
|
134
|
+
color: night.color.textTertiary
|
|
135
135
|
}), /*#__PURE__*/_jsx(Text, {
|
|
136
136
|
style: styles.emptyTitle,
|
|
137
137
|
children: "No stores registered"
|
|
@@ -266,10 +266,10 @@ const styles = StyleSheet.create({
|
|
|
266
266
|
fontSize: 11,
|
|
267
267
|
fontWeight: "700",
|
|
268
268
|
letterSpacing: 0.5,
|
|
269
|
-
color:
|
|
269
|
+
color: night.color.textTertiary
|
|
270
270
|
},
|
|
271
271
|
sectionCountBadge: {
|
|
272
|
-
backgroundColor:
|
|
272
|
+
backgroundColor: night.color.accentFill,
|
|
273
273
|
paddingHorizontal: 8,
|
|
274
274
|
paddingVertical: 2,
|
|
275
275
|
borderRadius: 4
|
|
@@ -277,7 +277,7 @@ const styles = StyleSheet.create({
|
|
|
277
277
|
sectionCountText: {
|
|
278
278
|
fontSize: 10,
|
|
279
279
|
fontWeight: "700",
|
|
280
|
-
color:
|
|
280
|
+
color: night.color.accent,
|
|
281
281
|
fontFamily: "monospace"
|
|
282
282
|
},
|
|
283
283
|
emptyState: {
|
|
@@ -285,14 +285,14 @@ const styles = StyleSheet.create({
|
|
|
285
285
|
paddingVertical: 40
|
|
286
286
|
},
|
|
287
287
|
emptyTitle: {
|
|
288
|
-
color:
|
|
288
|
+
color: night.color.text,
|
|
289
289
|
fontSize: 14,
|
|
290
290
|
fontWeight: "600",
|
|
291
291
|
marginTop: 12,
|
|
292
292
|
marginBottom: 6
|
|
293
293
|
},
|
|
294
294
|
emptyText: {
|
|
295
|
-
color:
|
|
295
|
+
color: night.color.textTertiary,
|
|
296
296
|
fontSize: 12,
|
|
297
297
|
textAlign: "center",
|
|
298
298
|
lineHeight: 18
|
|
@@ -311,15 +311,16 @@ const expandedStyles = StyleSheet.create({
|
|
|
311
311
|
fontFamily: "monospace"
|
|
312
312
|
},
|
|
313
313
|
dataContainer: {
|
|
314
|
-
|
|
314
|
+
// Inset display panel — darker than the card, the night track color.
|
|
315
|
+
backgroundColor: night.color.bg,
|
|
315
316
|
borderRadius: 6,
|
|
316
317
|
borderWidth: 1,
|
|
317
|
-
borderColor:
|
|
318
|
+
borderColor: night.color.border,
|
|
318
319
|
overflow: "hidden",
|
|
319
320
|
minHeight: 60
|
|
320
321
|
},
|
|
321
322
|
emptyText: {
|
|
322
|
-
color:
|
|
323
|
+
color: night.color.textTertiary,
|
|
323
324
|
fontSize: 12,
|
|
324
325
|
padding: 14,
|
|
325
326
|
fontStyle: "italic"
|
|
@@ -7,27 +7,27 @@
|
|
|
7
7
|
declare const buttonConfigs: {
|
|
8
8
|
copy: {
|
|
9
9
|
color: "#20C997";
|
|
10
|
-
backgroundColor:
|
|
11
|
-
borderColor:
|
|
10
|
+
backgroundColor: "rgba(32, 201, 151, 0.12)";
|
|
11
|
+
borderColor: "rgba(32, 201, 151, 0.20)";
|
|
12
12
|
textColor: "#20C997";
|
|
13
13
|
};
|
|
14
14
|
reset: {
|
|
15
|
-
color: "#
|
|
16
|
-
backgroundColor:
|
|
15
|
+
color: "#FF8329";
|
|
16
|
+
backgroundColor: "rgba(255, 131, 41, 0.12)";
|
|
17
17
|
borderColor: string;
|
|
18
|
-
textColor: "#
|
|
18
|
+
textColor: "#FF8329";
|
|
19
19
|
};
|
|
20
20
|
clear: {
|
|
21
|
-
color: "#
|
|
22
|
-
backgroundColor:
|
|
21
|
+
color: "#FF3B30";
|
|
22
|
+
backgroundColor: "rgba(255, 59, 48, 0.10)";
|
|
23
23
|
borderColor: string;
|
|
24
|
-
textColor: "#
|
|
24
|
+
textColor: "#FF3B30";
|
|
25
25
|
};
|
|
26
26
|
jump: {
|
|
27
|
-
color: "#
|
|
28
|
-
backgroundColor:
|
|
27
|
+
color: "#FF8329";
|
|
28
|
+
backgroundColor: "rgba(255, 131, 41, 0.12)";
|
|
29
29
|
borderColor: string;
|
|
30
|
-
textColor: "#
|
|
30
|
+
textColor: "#FF8329";
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
export type ButtonType = keyof typeof buttonConfigs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZustandEventFilterView.d.ts","sourceRoot":"","sources":["../../../../src/zustand/components/ZustandEventFilterView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ZustandEventFilterView.d.ts","sourceRoot":"","sources":["../../../../src/zustand/components/ZustandEventFilterView.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGjD,UAAU,2BAA2B;IACnC,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC5B;AAuBD,wBAAgB,sBAAsB,CAAC,EACrC,eAAe,EACf,eAAe,EACf,YAAY,EACZ,MAAM,GACP,EAAE,2BAA2B,+BAgL7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZustandStateInfoView.d.ts","sourceRoot":"","sources":["../../../../src/zustand/components/ZustandStateInfoView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAiD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ZustandStateInfoView.d.ts","sourceRoot":"","sources":["../../../../src/zustand/components/ZustandStateInfoView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAiD,MAAM,OAAO,CAAC;AAiBtE,OAAO,KAAK,EAAE,kBAAkB,EAAuB,MAAM,UAAU,CAAC;AAIxE,UAAU,yBAAyB;IACjC,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AAmGD,eAAO,MAAM,oBAAoB,uDAmO/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/zustand",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.28",
|
|
4
4
|
"description": "Zustand devtools inside your React Native app — state diffs, jump-to-state & one-tap store reset, no middleware. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"**/snapshotProvider.ts"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@buoy-gg/shared-ui": "^7.0.
|
|
33
|
-
"@buoy-gg/license": "^7.0.
|
|
32
|
+
"@buoy-gg/shared-ui": "^7.0.28",
|
|
33
|
+
"@buoy-gg/license": "^7.0.28"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "*",
|