@buoy-gg/shared-ui 7.0.33 → 7.0.34
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/JsModal.js +57 -22
- package/lib/commonjs/hooks/index.js +26 -0
- package/lib/commonjs/hooks/safe-area-impl.js +1 -1
- package/lib/commonjs/hooks/useChangeLog.js +55 -0
- package/lib/commonjs/hooks/useEventStoreEvents.js +65 -0
- package/lib/commonjs/hooks/usePersistedState.js +45 -10
- package/lib/commonjs/index.js +143 -0
- package/lib/commonjs/storage/definePersistedSetting.js +67 -0
- package/lib/commonjs/storage/index.js +8 -1
- package/lib/commonjs/stores/ChangeLog.js +197 -0
- package/lib/commonjs/stores/createToolStore.js +175 -0
- package/lib/commonjs/stores/index.js +15 -1
- package/lib/commonjs/sync/toolSyncAdapter.js +63 -0
- package/lib/commonjs/sync/wireForm.js +172 -0
- package/lib/commonjs/tools/defineTool.js +79 -0
- package/lib/commonjs/ui/components/ChangeRow.js +110 -0
- package/lib/commonjs/ui/components/ChipStrip.js +94 -0
- package/lib/commonjs/ui/components/DetailViewToggle.js +130 -0
- package/lib/commonjs/ui/components/DevToolsCard.js +3 -1
- package/lib/commonjs/ui/components/EntityFilterView.js +354 -0
- package/lib/commonjs/ui/components/ExportPreview.js +174 -0
- package/lib/commonjs/ui/components/InfoRow.js +90 -0
- package/lib/commonjs/ui/components/ModalHeader.js +40 -7
- package/lib/commonjs/ui/components/Pill.js +114 -0
- package/lib/commonjs/ui/components/ToggleRow.js +116 -0
- package/lib/commonjs/ui/components/ToolFooter.js +204 -0
- package/lib/commonjs/ui/components/index.js +100 -1
- package/lib/commonjs/ui/index.js +24 -2
- package/lib/commonjs/ui/listPresets.js +43 -0
- package/lib/commonjs/ui/night/primitives.js +3 -1
- package/lib/commonjs/utils/snapshotProviderKit.js +167 -0
- package/lib/commonjs/utils/stateTools.js +160 -0
- package/lib/module/JsModal.js +57 -22
- package/lib/module/hooks/index.js +3 -1
- package/lib/module/hooks/safe-area-impl.js +1 -1
- package/lib/module/hooks/useChangeLog.js +50 -0
- package/lib/module/hooks/useEventStoreEvents.js +61 -0
- package/lib/module/hooks/usePersistedState.js +44 -10
- package/lib/module/index.js +11 -1
- package/lib/module/storage/definePersistedSetting.js +63 -0
- package/lib/module/storage/index.js +2 -1
- package/lib/module/stores/ChangeLog.js +192 -0
- package/lib/module/stores/createToolStore.js +171 -0
- package/lib/module/stores/index.js +3 -1
- package/lib/module/sync/toolSyncAdapter.js +58 -0
- package/lib/module/sync/wireForm.js +159 -0
- package/lib/module/tools/defineTool.js +74 -0
- package/lib/module/ui/components/ChangeRow.js +105 -0
- package/lib/module/ui/components/ChipStrip.js +91 -0
- package/lib/module/ui/components/DetailViewToggle.js +125 -0
- package/lib/module/ui/components/DevToolsCard.js +3 -1
- package/lib/module/ui/components/EntityFilterView.js +350 -0
- package/lib/module/ui/components/ExportPreview.js +169 -0
- package/lib/module/ui/components/InfoRow.js +86 -0
- package/lib/module/ui/components/ModalHeader.js +40 -7
- package/lib/module/ui/components/Pill.js +110 -0
- package/lib/module/ui/components/ToggleRow.js +112 -0
- package/lib/module/ui/components/ToolFooter.js +196 -0
- package/lib/module/ui/components/index.js +10 -1
- package/lib/module/ui/index.js +4 -1
- package/lib/module/ui/listPresets.js +39 -0
- package/lib/module/ui/night/primitives.js +3 -1
- package/lib/module/utils/snapshotProviderKit.js +156 -0
- package/lib/module/utils/stateTools.js +154 -0
- package/lib/typescript/commonjs/JsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/index.d.ts +3 -1
- package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/hooks/useChangeLog.d.ts +38 -0
- package/lib/typescript/commonjs/hooks/useChangeLog.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/useEventStoreEvents.d.ts +25 -0
- package/lib/typescript/commonjs/hooks/useEventStoreEvents.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/usePersistedState.d.ts +34 -5
- package/lib/typescript/commonjs/hooks/usePersistedState.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +6 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/storage/definePersistedSetting.d.ts +39 -0
- package/lib/typescript/commonjs/storage/definePersistedSetting.d.ts.map +1 -0
- package/lib/typescript/commonjs/storage/index.d.ts +1 -0
- package/lib/typescript/commonjs/storage/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/stores/ChangeLog.d.ts +100 -0
- package/lib/typescript/commonjs/stores/ChangeLog.d.ts.map +1 -0
- package/lib/typescript/commonjs/stores/createToolStore.d.ts +92 -0
- package/lib/typescript/commonjs/stores/createToolStore.d.ts.map +1 -0
- package/lib/typescript/commonjs/stores/index.d.ts +2 -0
- package/lib/typescript/commonjs/stores/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/sync/toolSyncAdapter.d.ts +66 -0
- package/lib/typescript/commonjs/sync/toolSyncAdapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/sync/wireForm.d.ts +100 -0
- package/lib/typescript/commonjs/sync/wireForm.d.ts.map +1 -0
- package/lib/typescript/commonjs/tools/defineTool.d.ts +100 -0
- package/lib/typescript/commonjs/tools/defineTool.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ChangeRow.d.ts +52 -0
- package/lib/typescript/commonjs/ui/components/ChangeRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ChipStrip.d.ts +41 -0
- package/lib/typescript/commonjs/ui/components/ChipStrip.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DetailViewToggle.d.ts +36 -0
- package/lib/typescript/commonjs/ui/components/DetailViewToggle.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/DevToolsCard.d.ts +8 -1
- package/lib/typescript/commonjs/ui/components/DevToolsCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/EntityFilterView.d.ts +51 -0
- package/lib/typescript/commonjs/ui/components/EntityFilterView.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ExportPreview.d.ts +48 -0
- package/lib/typescript/commonjs/ui/components/ExportPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/InfoRow.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/InfoRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts +31 -1
- package/lib/typescript/commonjs/ui/components/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Pill.d.ts +38 -0
- package/lib/typescript/commonjs/ui/components/Pill.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ToggleRow.d.ts +33 -0
- package/lib/typescript/commonjs/ui/components/ToggleRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/ToolFooter.d.ts +69 -0
- package/lib/typescript/commonjs/ui/components/ToolFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts +9 -0
- package/lib/typescript/commonjs/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts +1 -0
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/listPresets.d.ts +28 -0
- package/lib/typescript/commonjs/ui/listPresets.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/night/primitives.d.ts +3 -1
- package/lib/typescript/commonjs/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/snapshotProviderKit.d.ts +81 -0
- package/lib/typescript/commonjs/utils/snapshotProviderKit.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/stateTools.d.ts +44 -0
- package/lib/typescript/commonjs/utils/stateTools.d.ts.map +1 -0
- package/lib/typescript/module/JsModal.d.ts.map +1 -1
- package/lib/typescript/module/hooks/index.d.ts +3 -1
- package/lib/typescript/module/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/hooks/useChangeLog.d.ts +38 -0
- package/lib/typescript/module/hooks/useChangeLog.d.ts.map +1 -0
- package/lib/typescript/module/hooks/useEventStoreEvents.d.ts +25 -0
- package/lib/typescript/module/hooks/useEventStoreEvents.d.ts.map +1 -0
- package/lib/typescript/module/hooks/usePersistedState.d.ts +34 -5
- package/lib/typescript/module/hooks/usePersistedState.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +6 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/storage/definePersistedSetting.d.ts +39 -0
- package/lib/typescript/module/storage/definePersistedSetting.d.ts.map +1 -0
- package/lib/typescript/module/storage/index.d.ts +1 -0
- package/lib/typescript/module/storage/index.d.ts.map +1 -1
- package/lib/typescript/module/stores/ChangeLog.d.ts +100 -0
- package/lib/typescript/module/stores/ChangeLog.d.ts.map +1 -0
- package/lib/typescript/module/stores/createToolStore.d.ts +92 -0
- package/lib/typescript/module/stores/createToolStore.d.ts.map +1 -0
- package/lib/typescript/module/stores/index.d.ts +2 -0
- package/lib/typescript/module/stores/index.d.ts.map +1 -1
- package/lib/typescript/module/sync/toolSyncAdapter.d.ts +66 -0
- package/lib/typescript/module/sync/toolSyncAdapter.d.ts.map +1 -0
- package/lib/typescript/module/sync/wireForm.d.ts +100 -0
- package/lib/typescript/module/sync/wireForm.d.ts.map +1 -0
- package/lib/typescript/module/tools/defineTool.d.ts +100 -0
- package/lib/typescript/module/tools/defineTool.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ChangeRow.d.ts +52 -0
- package/lib/typescript/module/ui/components/ChangeRow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ChipStrip.d.ts +41 -0
- package/lib/typescript/module/ui/components/ChipStrip.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DetailViewToggle.d.ts +36 -0
- package/lib/typescript/module/ui/components/DetailViewToggle.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/DevToolsCard.d.ts +8 -1
- package/lib/typescript/module/ui/components/DevToolsCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/EntityFilterView.d.ts +51 -0
- package/lib/typescript/module/ui/components/EntityFilterView.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ExportPreview.d.ts +48 -0
- package/lib/typescript/module/ui/components/ExportPreview.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/InfoRow.d.ts +33 -0
- package/lib/typescript/module/ui/components/InfoRow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ModalHeader.d.ts +31 -1
- package/lib/typescript/module/ui/components/ModalHeader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Pill.d.ts +38 -0
- package/lib/typescript/module/ui/components/Pill.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ToggleRow.d.ts +33 -0
- package/lib/typescript/module/ui/components/ToggleRow.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/ToolFooter.d.ts +69 -0
- package/lib/typescript/module/ui/components/ToolFooter.d.ts.map +1 -0
- package/lib/typescript/module/ui/components/index.d.ts +9 -0
- package/lib/typescript/module/ui/components/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts +1 -0
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/listPresets.d.ts +28 -0
- package/lib/typescript/module/ui/listPresets.d.ts.map +1 -0
- package/lib/typescript/module/ui/night/primitives.d.ts +3 -1
- package/lib/typescript/module/ui/night/primitives.d.ts.map +1 -1
- package/lib/typescript/module/utils/snapshotProviderKit.d.ts +81 -0
- package/lib/typescript/module/utils/snapshotProviderKit.d.ts.map +1 -0
- package/lib/typescript/module/utils/stateTools.d.ts +44 -0
- package/lib/typescript/module/utils/stateTools.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolFooter.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ToolFooter.tsx"],"names":[],"mappings":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,MAAM,GAAG,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,+BAMA;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,iEAAiE;IACjE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8DAA8D;IAC9D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,OAAO,EACP,MAAc,EACd,MAAc,EACd,QAAgB,EAChB,IAAI,EACJ,IAAW,EACX,IAAW,EACX,MAAM,EACN,kBAAkB,EAClB,KAAK,GACN,EAAE,iBAAiB,+BAiCnB"}
|
|
@@ -46,4 +46,13 @@ export type { PowerToggleButtonProps } from "./PowerToggleButton";
|
|
|
46
46
|
export { ExpandedInfoRow, PillBadge } from "./ExpandedInfoRow";
|
|
47
47
|
export { EventHistoryViewer, ViewToggleCards, DiffModeTabs, CompareBar, EventPickerModal, } from "./EventHistoryViewer";
|
|
48
48
|
export type { ViewMode, DiffModeTab, EventDisplayInfo, IconComponent, ViewToggleCardsProps, CompareBarProps, DiffModeTabsProps, EventPickerItem, EventPickerModalProps, EventHistoryViewerProps, } from "./EventHistoryViewer";
|
|
49
|
+
export { InfoRow, type InfoRowProps } from "./InfoRow";
|
|
50
|
+
export { DetailViewToggle, type DetailViewOption, type DetailViewToggleProps, } from "./DetailViewToggle";
|
|
51
|
+
export { ChangeRow, type ChangeRowProps } from "./ChangeRow";
|
|
52
|
+
export { Pill, type PillProps, type PillVariant, type PillSize } from "./Pill";
|
|
53
|
+
export { ToolFooter, FooterRow, FooterCaption, FooterMessage, FooterButton, type ToolFooterProps, type FooterButtonProps, } from "./ToolFooter";
|
|
54
|
+
export { EntityFilterView, type EntityFilterViewProps, type FilterableEntity, } from "./EntityFilterView";
|
|
55
|
+
export { ToggleRow, type ToggleRowProps } from "./ToggleRow";
|
|
56
|
+
export { ChipStrip, useChipTap, type ChipStripProps, type ChipTap } from "./ChipStrip";
|
|
57
|
+
export { ExportPreview, sizeWarningLevel, type ExportPreviewProps, type ExportPreviewTestIDs, type SizeWarningLevel, } from "./ExportPreview";
|
|
49
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EACL,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,aAAa,EACb,WA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|
4
4
|
export { CyberpunkSectionButton } from "./console/CyberpunkSectionButton";
|
|
5
5
|
export * from "./gameUI";
|
|
6
6
|
export * from "./otto";
|
|
7
|
+
export { EVENT_LIST_PRESET, LOG_LIST_PRESET, CLIP_OFFSCREEN_CELLS } from "./listPresets";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,cAAc,UAAU,CAAC;AAGzB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ui/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAG1E,cAAc,UAAU,CAAC;AAGzB,cAAc,QAAQ,CAAC;AAGvB,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FlatList presets for tool lists — the tuned window/batch values and the
|
|
3
|
+
* E2E clipping guard that eleven list sites carried as copy-pasted props.
|
|
4
|
+
*
|
|
5
|
+
* Spread them onto a FlatList: `<FlatList {...EVENT_LIST_PRESET} … />`.
|
|
6
|
+
* A tool that later moves to FlashList changes this file, not eleven.
|
|
7
|
+
*/
|
|
8
|
+
import type { FlatListProps } from "react-native";
|
|
9
|
+
/**
|
|
10
|
+
* `removeClippedSubviews` is off in E2E bundles: clipped rows leave the
|
|
11
|
+
* hierarchy entirely, so a row past the fold reads to the test as "the tool
|
|
12
|
+
* stopped capturing".
|
|
13
|
+
*/
|
|
14
|
+
export declare const CLIP_OFFSCREEN_CELLS: boolean;
|
|
15
|
+
type ListPreset = Pick<FlatListProps<unknown>, "initialNumToRender" | "maxToRenderPerBatch" | "windowSize" | "updateCellsBatchingPeriod" | "removeClippedSubviews">;
|
|
16
|
+
/**
|
|
17
|
+
* Event / change / request lists: rows are tall-ish and arrive in bursts.
|
|
18
|
+
* Window and batch values are the "tuned" winner of the buoy-optimize
|
|
19
|
+
* batch run on the network tool (2026-07-06, batch-1783396983529-6l7w).
|
|
20
|
+
*/
|
|
21
|
+
export declare const EVENT_LIST_PRESET: ListPreset;
|
|
22
|
+
/**
|
|
23
|
+
* Log tails (console, sentry): rows are short single lines, the list is
|
|
24
|
+
* read from the bottom, and a scroll-to-end must not land on blank cells.
|
|
25
|
+
*/
|
|
26
|
+
export declare const LOG_LIST_PRESET: ListPreset;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=listPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listPresets.d.ts","sourceRoot":"","sources":["../../../../src/ui/listPresets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAElC,CAAC;AAEF,KAAK,UAAU,GAAG,IAAI,CACpB,aAAa,CAAC,OAAO,CAAC,EACpB,oBAAoB,GACpB,qBAAqB,GACrB,YAAY,GACZ,2BAA2B,GAC3B,uBAAuB,CAC1B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAM/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,UAK7B,CAAC"}
|
|
@@ -62,12 +62,14 @@ export declare function NightSwitch({ value, onValueChange, disabled, }: {
|
|
|
62
62
|
* Zone-style pill chip. The fill never changes — selection is signaled by the
|
|
63
63
|
* border and label color only, exactly like the Everlights zone row.
|
|
64
64
|
*/
|
|
65
|
-
export declare function NightChip({ label, selected, onPress, disabled, icon, }: {
|
|
65
|
+
export declare function NightChip({ label, selected, onPress, disabled, icon, testID, }: {
|
|
66
66
|
label: string;
|
|
67
67
|
selected?: boolean;
|
|
68
68
|
onPress?: () => void;
|
|
69
69
|
disabled?: boolean;
|
|
70
70
|
icon?: ReactNode;
|
|
71
|
+
/** Automation handle — a strip of chips needs one per chip to be drivable. */
|
|
72
|
+
testID?: string;
|
|
71
73
|
}): import("react").JSX.Element;
|
|
72
74
|
export type NightButtonVariant = "primary" | "secondary" | "tertiary" | "destructive" | "ghost";
|
|
73
75
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../src/ui/night/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,+BAEA;AAED,uEAAuE;AACvE,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,IAAiB,EACjB,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;IACvD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,+BAeA;AAED,6EAA6E;AAC7E,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,MAAM,EACN,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,+BAMA;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,EAAE,KAAqB,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,+BAE3E;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,KAAqB,GACtB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,+BAaA;AASD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,+BA2CA;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,IAAI,
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../../../../../src/ui/night/primitives.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,2DAA2D;AAC3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,KAAK,GACN,EAAE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AAEd,+DAA+D;AAC/D,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,cAAc,CAAC;CACvB,+BA0BA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* snapshotProviderKit — the parts of a Time Machine `StateSnapshotProvider`
|
|
3
|
+
* that are the same for every source.
|
|
4
|
+
*
|
|
5
|
+
* storage, redux, zustand, jotai and react-query each register a provider
|
|
6
|
+
* (see stateSnapshotRegistry.ts). What differs is how they read and write
|
|
7
|
+
* their source. What was copied five times is:
|
|
8
|
+
*
|
|
9
|
+
* - the restore SCOPE gate: `excludeKeys` (touch all but these) and
|
|
10
|
+
* `includeKeys` (touch only these), the "N item(s) excluded by you"
|
|
11
|
+
* warning, and the empty `StateSnapshotRestoreResult`;
|
|
12
|
+
* - the preview VERDICT ladder: removed → added → unchanged → too-large →
|
|
13
|
+
* changed, with the 256 KB per-item render cap;
|
|
14
|
+
* - the "won't apply" override: a difference restore cannot apply must say
|
|
15
|
+
* so instead of rendering as a green change.
|
|
16
|
+
*
|
|
17
|
+
* The parts that stay per-tool are the ones that matter: redux verifies the
|
|
18
|
+
* jump by reference identity, zustand grafts action functions back, jotai
|
|
19
|
+
* leaves derived atoms to recompute, storage gates MMKV buffers and
|
|
20
|
+
* biometric keys, react-query diffs a comparable projection.
|
|
21
|
+
*/
|
|
22
|
+
import type { StateSnapshotPreviewItem, StateSnapshotRestoreResult } from "./stateSnapshotRegistry";
|
|
23
|
+
/** Beyond this a preview item is "too-large": restore still applies it, the diff isn't drawn. */
|
|
24
|
+
export declare const PREVIEW_ITEM_RENDER_BYTE_LIMIT: number;
|
|
25
|
+
export interface RestoreScopeOptions {
|
|
26
|
+
excludeKeys?: readonly string[];
|
|
27
|
+
includeKeys?: readonly string[];
|
|
28
|
+
}
|
|
29
|
+
export interface RestoreScope {
|
|
30
|
+
/** May this item be touched? (in scope and not excluded). Does not count. */
|
|
31
|
+
touch(key: string): boolean;
|
|
32
|
+
/** `touch()`, and count a refusal as a user exclusion. */
|
|
33
|
+
allows(key: string): boolean;
|
|
34
|
+
/** Add to the exclusion count directly (batch paths that filter arrays). */
|
|
35
|
+
countExcluded(n: number): void;
|
|
36
|
+
readonly excludedHits: number;
|
|
37
|
+
/** `"3 store(s) excluded by you"`, or null when nothing was excluded. */
|
|
38
|
+
excludedWarning(noun: string): string | null;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Both option lists use preview item keys, and both mean "leave everything
|
|
42
|
+
* else untouched in BOTH directions". `includeKeys` wins when present;
|
|
43
|
+
* `excludeKeys` still applies on top.
|
|
44
|
+
*/
|
|
45
|
+
export declare function createRestoreScope(options?: RestoreScopeOptions): RestoreScope;
|
|
46
|
+
/** A fresh, successful, empty result to accumulate into. */
|
|
47
|
+
export declare function emptyRestoreResult(): StateSnapshotRestoreResult;
|
|
48
|
+
/** A failed result with one warning (an empty or unusable snapshot). */
|
|
49
|
+
export declare function failedRestore(warning: string): StateSnapshotRestoreResult;
|
|
50
|
+
/** A failed result with one skipped item and its reason. */
|
|
51
|
+
export declare function skippedRestore(id: string, reason: string): StateSnapshotRestoreResult;
|
|
52
|
+
export interface ClassifyOptions {
|
|
53
|
+
/** Equality test. Default: `boundedDeepEqual`. */
|
|
54
|
+
equal?: (a: unknown, b: unknown) => boolean;
|
|
55
|
+
/** Per-value size gate. Default: `jsonLikelyLargerThan(v, 256 KB)`. */
|
|
56
|
+
tooLarge?: (value: unknown) => boolean;
|
|
57
|
+
/** Reason shown on a too-large item. Default names "value". */
|
|
58
|
+
tooLargeReason?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface ClassifyInput {
|
|
61
|
+
key: string;
|
|
62
|
+
label: string;
|
|
63
|
+
oldValue?: unknown;
|
|
64
|
+
newValue?: unknown;
|
|
65
|
+
inOld: boolean;
|
|
66
|
+
inNew: boolean;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* The verdict ladder: removed → added → unchanged → too-large → changed.
|
|
70
|
+
* Callers layer source-specific verdicts (`wont-apply`, `recomputes`) on top
|
|
71
|
+
* with `wontApply()`.
|
|
72
|
+
*/
|
|
73
|
+
export declare function classifyPreviewItem(input: ClassifyInput, options?: ClassifyOptions): StateSnapshotPreviewItem;
|
|
74
|
+
/**
|
|
75
|
+
* Mark an item as something restore cannot apply. An unchanged item is left
|
|
76
|
+
* alone — there is nothing to apply, so nothing is being refused.
|
|
77
|
+
*/
|
|
78
|
+
export declare function wontApply(item: StateSnapshotPreviewItem, reason: string): StateSnapshotPreviewItem;
|
|
79
|
+
/** Every key present in either record, once. */
|
|
80
|
+
export declare function unionKeys(a: Record<string, unknown> | Map<string, unknown> | undefined, b: Record<string, unknown> | Map<string, unknown> | undefined): Set<string>;
|
|
81
|
+
//# sourceMappingURL=snapshotProviderKit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshotProviderKit.d.ts","sourceRoot":"","sources":["../../../../src/utils/snapshotProviderKit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,yBAAyB,CAAC;AAEjC,iGAAiG;AACjG,eAAO,MAAM,8BAA8B,QAAa,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,0DAA0D;IAC1D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,4EAA4E;IAC5E,aAAa,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B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M,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EAC7D,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5D,GAAG,CAAC,MAAM,CAAC,CAIb"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* stateTools — helpers the state tools (redux / zustand / jotai) each carried
|
|
3
|
+
* a private copy of. Pure functions; no React, no RN.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Consistent color for a named entity (a zustand store, a jotai atom, a redux
|
|
7
|
+
* slice). Exact match on `known` wins, then a substring match, then a stable
|
|
8
|
+
* HSL hash of the name rendered as `#rrggbb` so the "color + alpha hex"
|
|
9
|
+
* pattern works everywhere.
|
|
10
|
+
*/
|
|
11
|
+
export declare function entityColor(name: string, known?: Record<string, string>): string;
|
|
12
|
+
export interface ValuePreviewOptions {
|
|
13
|
+
/** Max characters before collapsing to a count. Default 40. */
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
/** What `undefined` renders as. zustand used `""`, jotai `"undefined"`. */
|
|
16
|
+
undefinedLabel?: string;
|
|
17
|
+
/** What a function renders as. zustand used `"(updater fn)"`, jotai `"(fn)"`. */
|
|
18
|
+
functionLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* One-line preview of an arbitrary value for a list row: strings quoted and
|
|
22
|
+
* truncated, arrays and objects stringified when short, otherwise collapsed
|
|
23
|
+
* to `[N items]` / `{ N keys }`. Never throws.
|
|
24
|
+
*/
|
|
25
|
+
export declare function formatValuePreview(value: unknown, options?: ValuePreviewOptions): string;
|
|
26
|
+
export interface ShallowDiffSummary {
|
|
27
|
+
/** `"no change"`, `"changed"`, `"nested change"`, or `"+1 -2 ~3 keys"`. */
|
|
28
|
+
summary: string;
|
|
29
|
+
/** Top-level keys added, removed, or whose reference changed. */
|
|
30
|
+
changedKeys: string[];
|
|
31
|
+
/** `changedKeys.length` — and nothing else, so row and detail agree. */
|
|
32
|
+
changedCount: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Top-level, reference-equality diff between two states. Enough for a list
|
|
36
|
+
* row ("+1 ~2 keys"); the detail view runs the real tree diff.
|
|
37
|
+
*
|
|
38
|
+
* A state object that was REPLACED without any top-level value moving —
|
|
39
|
+
* exactly what zustand's persist middleware does when it rehydrates — is
|
|
40
|
+
* reported as `"nested change"` with no keys, never as one changed key with
|
|
41
|
+
* none named.
|
|
42
|
+
*/
|
|
43
|
+
export declare function shallowDiffSummary(prev: unknown, next: unknown): ShallowDiffSummary;
|
|
44
|
+
//# sourceMappingURL=stateTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateTools.d.ts","sourceRoot":"","sources":["../../../../src/utils/stateTools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,MAAM,CA2CpF;AAMD,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CAkC5F;AAMD,MAAM,WAAW,kBAAkB;IACjC,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,wEAAwE;IACxE,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,kBAAkB,CAuCnF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/shared-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.34",
|
|
4
4
|
"description": "Shared UI components, hooks, and utilities",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -136,10 +136,10 @@
|
|
|
136
136
|
],
|
|
137
137
|
"sideEffects": false,
|
|
138
138
|
"dependencies": {
|
|
139
|
-
"@buoy-gg/floating-tools-core": "^7.0.
|
|
139
|
+
"@buoy-gg/floating-tools-core": "^7.0.34"
|
|
140
140
|
},
|
|
141
141
|
"peerDependencies": {
|
|
142
|
-
"@buoy-gg/license": "7.0.
|
|
142
|
+
"@buoy-gg/license": "7.0.34",
|
|
143
143
|
"@react-native-clipboard/clipboard": "*",
|
|
144
144
|
"expo-clipboard": "*",
|
|
145
145
|
"expo-file-system": "*",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"expo-clipboard": "~7.1.5",
|
|
168
168
|
"react-native-safe-area-context": "^5.6.2",
|
|
169
169
|
"typescript": "~5.8.3",
|
|
170
|
-
"@buoy-gg/license": "^7.0.
|
|
170
|
+
"@buoy-gg/license": "^7.0.34"
|
|
171
171
|
},
|
|
172
172
|
"react-native-builder-bob": {
|
|
173
173
|
"source": "src",
|