@buoy-gg/zustand 7.0.36 → 7.0.38

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 (63) hide show
  1. package/README.md +27 -5
  2. package/lib/commonjs/index.js +1 -105
  3. package/lib/commonjs/preset.js +1 -102
  4. package/lib/commonjs/zustand/components/ZustandActionButton.js +1 -118
  5. package/lib/commonjs/zustand/components/ZustandDetailViewToggle.js +1 -48
  6. package/lib/commonjs/zustand/components/ZustandEventFilterView.js +1 -43
  7. package/lib/commonjs/zustand/components/ZustandIcon.js +1 -18
  8. package/lib/commonjs/zustand/components/ZustandModal.js +1 -772
  9. package/lib/commonjs/zustand/components/ZustandStateChangeItem.js +1 -117
  10. package/lib/commonjs/zustand/components/ZustandStateDetailContent.js +1 -372
  11. package/lib/commonjs/zustand/components/ZustandStateInfoView.js +1 -488
  12. package/lib/commonjs/zustand/components/ZustandStoreBrowser.js +1 -204
  13. package/lib/commonjs/zustand/components/ZustandStoreDetailContent.js +1 -471
  14. package/lib/commonjs/zustand/components/ZustandStoreEditorScreen.js +1 -393
  15. package/lib/commonjs/zustand/hooks/useZustandStateChanges.js +1 -72
  16. package/lib/commonjs/zustand/sync/zustandSyncAdapter.js +1 -382
  17. package/lib/commonjs/zustand/utils/buoyZustandMiddleware.js +1 -284
  18. package/lib/commonjs/zustand/utils/editableState.js +1 -139
  19. package/lib/commonjs/zustand/utils/snapshotProvider.js +1 -209
  20. package/lib/commonjs/zustand/utils/testIDs.js +1 -82
  21. package/lib/commonjs/zustand/utils/zustandStateStore.js +1 -375
  22. package/lib/module/index.js +1 -90
  23. package/lib/module/preset.js +1 -98
  24. package/lib/module/zustand/components/ZustandActionButton.js +1 -114
  25. package/lib/module/zustand/components/ZustandDetailViewToggle.js +1 -43
  26. package/lib/module/zustand/components/ZustandEventFilterView.js +1 -39
  27. package/lib/module/zustand/components/ZustandIcon.js +1 -11
  28. package/lib/module/zustand/components/ZustandModal.js +1 -767
  29. package/lib/module/zustand/components/ZustandStateChangeItem.js +1 -113
  30. package/lib/module/zustand/components/ZustandStateDetailContent.js +1 -368
  31. package/lib/module/zustand/components/ZustandStateInfoView.js +1 -483
  32. package/lib/module/zustand/components/ZustandStoreBrowser.js +1 -200
  33. package/lib/module/zustand/components/ZustandStoreDetailContent.js +1 -469
  34. package/lib/module/zustand/components/ZustandStoreEditorScreen.js +1 -389
  35. package/lib/module/zustand/hooks/useZustandStateChanges.js +1 -68
  36. package/lib/module/zustand/sync/zustandSyncAdapter.js +1 -380
  37. package/lib/module/zustand/utils/buoyZustandMiddleware.js +1 -278
  38. package/lib/module/zustand/utils/editableState.js +1 -131
  39. package/lib/module/zustand/utils/snapshotProvider.js +1 -209
  40. package/lib/module/zustand/utils/testIDs.js +1 -74
  41. package/lib/module/zustand/utils/zustandStateStore.js +1 -371
  42. package/package.json +4 -4
  43. package/lib/typescript/index.d.ts.map +0 -1
  44. package/lib/typescript/preset.d.ts.map +0 -1
  45. package/lib/typescript/zustand/components/ZustandActionButton.d.ts.map +0 -1
  46. package/lib/typescript/zustand/components/ZustandDetailViewToggle.d.ts.map +0 -1
  47. package/lib/typescript/zustand/components/ZustandEventFilterView.d.ts.map +0 -1
  48. package/lib/typescript/zustand/components/ZustandIcon.d.ts.map +0 -1
  49. package/lib/typescript/zustand/components/ZustandModal.d.ts.map +0 -1
  50. package/lib/typescript/zustand/components/ZustandStateChangeItem.d.ts.map +0 -1
  51. package/lib/typescript/zustand/components/ZustandStateDetailContent.d.ts.map +0 -1
  52. package/lib/typescript/zustand/components/ZustandStateInfoView.d.ts.map +0 -1
  53. package/lib/typescript/zustand/components/ZustandStoreBrowser.d.ts.map +0 -1
  54. package/lib/typescript/zustand/components/ZustandStoreDetailContent.d.ts.map +0 -1
  55. package/lib/typescript/zustand/components/ZustandStoreEditorScreen.d.ts.map +0 -1
  56. package/lib/typescript/zustand/hooks/useZustandStateChanges.d.ts.map +0 -1
  57. package/lib/typescript/zustand/sync/zustandSyncAdapter.d.ts.map +0 -1
  58. package/lib/typescript/zustand/types/index.d.ts.map +0 -1
  59. package/lib/typescript/zustand/utils/buoyZustandMiddleware.d.ts.map +0 -1
  60. package/lib/typescript/zustand/utils/editableState.d.ts.map +0 -1
  61. package/lib/typescript/zustand/utils/snapshotProvider.d.ts.map +0 -1
  62. package/lib/typescript/zustand/utils/testIDs.d.ts.map +0 -1
  63. package/lib/typescript/zustand/utils/zustandStateStore.d.ts.map +0 -1
@@ -1,43 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * ZustandDetailViewToggle
5
- *
6
- * Three-card toggle for switching between Change, State, and Diff views.
7
- * The cards themselves are the shared `DetailViewToggle`; this file owns
8
- * the zustand view list and testID prefix.
9
- */
10
-
11
- import React, { memo } from "react";
12
- import { DetailViewToggle, FileText, Database, GitBranch } from "@buoy-gg/shared-ui";
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- const VIEWS = [{
15
- key: "change",
16
- label: "CHANGE",
17
- description: "View change details",
18
- icon: FileText
19
- }, {
20
- key: "state",
21
- label: "STATE",
22
- description: "View current state",
23
- icon: Database
24
- }, {
25
- key: "diff",
26
- label: "DIFF",
27
- description: "Compare changes",
28
- icon: GitBranch
29
- }];
30
- const DIFF_DISABLED = ["diff"];
31
- export const ZustandDetailViewToggle = /*#__PURE__*/memo(function ZustandDetailViewToggle({
32
- activeView,
33
- onViewChange,
34
- diffDisabled = false
35
- }) {
36
- return /*#__PURE__*/_jsx(DetailViewToggle, {
37
- views: VIEWS,
38
- activeView: activeView,
39
- onViewChange: onViewChange,
40
- disabledKeys: diffDisabled ? DIFF_DISABLED : undefined,
41
- testIDPrefix: "buoy-zustand"
42
- });
43
- });
1
+ "use strict";import React,{memo}from"react";import{DetailViewToggle,FileText,Database,GitBranch}from"@buoy-gg/shared-ui";import{jsx as _jsx}from"react/jsx-runtime";const VIEWS=[{key:"change",label:"CHANGE",description:"View change details",icon:FileText},{key:"state",label:"STATE",description:"View current state",icon:Database},{key:"diff",label:"DIFF",description:"Compare changes",icon:GitBranch}],DIFF_DISABLED=["diff"];export const ZustandDetailViewToggle=memo(function({activeView:e,onViewChange:i,diffDisabled:t=!1}){return _jsx(DetailViewToggle,{views:VIEWS,activeView:e,onViewChange:i,disabledKeys:t?DIFF_DISABLED:void 0,testIDPrefix:"buoy-zustand"})});
@@ -1,39 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * ZustandEventFilterView
5
- *
6
- * The shared `EntityFilterView` with zustand's nouns: registered stores you
7
- * can tap to hide, active store-name patterns, and how it works.
8
- */
9
-
10
- import { useMemo } from "react";
11
- import { EntityFilterView } from "@buoy-gg/shared-ui";
12
- import { zustandStateStore } from "../utils/zustandStateStore";
13
- import { ZUSTAND_TEST_ID, slugForTestID } from "../utils/testIDs";
14
- import { jsx as _jsx } from "react/jsx-runtime";
15
- const EXAMPLES = ["• auth → hides authStore from stores & events", "• temp → hides tempStore, tempUserStore", "• cart → hides cartStore from both tabs"];
16
- export function ZustandEventFilterView({
17
- ignoredPatterns,
18
- onTogglePattern,
19
- onAddPattern,
20
- stores
21
- }) {
22
- const entities = useMemo(() => stores.map(store => ({
23
- name: store.name,
24
- color: zustandStateStore.getStoreColor(store.name)
25
- })), [stores]);
26
- return /*#__PURE__*/_jsx(EntityFilterView, {
27
- entities: entities,
28
- ignoredPatterns: ignoredPatterns,
29
- onTogglePattern: onTogglePattern,
30
- onAddPattern: onAddPattern,
31
- entityNoun: "STORES",
32
- entitySingular: "store",
33
- entityKey: "store",
34
- testIDPrefix: ZUSTAND_TEST_ID,
35
- slug: slugForTestID,
36
- howItWorks: "Patterns hide matching stores from both the Stores tab and the Events tab. Tap a store above to quickly add it as a filter.",
37
- examples: EXAMPLES
38
- });
39
- }
1
+ "use strict";import{useMemo}from"react";import{EntityFilterView}from"@buoy-gg/shared-ui";import{zustandStateStore}from"../utils/zustandStateStore";import{ZUSTAND_TEST_ID,slugForTestID}from"../utils/testIDs";import{jsx as _jsx}from"react/jsx-runtime";const EXAMPLES=["• auth → hides authStore from stores & events","• temp → hides tempStore, tempUserStore","• cart → hides cartStore from both tabs"];export function ZustandEventFilterView({ignoredPatterns:t,onTogglePattern:e,onAddPattern:r,stores:o}){const s=useMemo(()=>o.map(t=>({name:t.name,color:zustandStateStore.getStoreColor(t.name)})),[o]);return _jsx(EntityFilterView,{entities:s,ignoredPatterns:t,onTogglePattern:e,onAddPattern:r,entityNoun:"STORES",entitySingular:"store",entityKey:"store",testIDPrefix:ZUSTAND_TEST_ID,slug:slugForTestID,howItWorks:"Patterns hide matching stores from both the Stores tab and the Events tab. Tap a store above to quickly add it as a filter.",examples:EXAMPLES})}
@@ -1,11 +1 @@
1
- "use strict";
2
-
3
- /**
4
- * ZustandIcon — re-exported from the Buoy Icon Format.
5
- *
6
- * The artwork lives in shared/icons/zustand.json and is generated into
7
- * @buoy-gg/floating-tools-core, so React Native, the desktop dashboard and
8
- * Flutter all render the same drawing. Edit the JSON, then `pnpm icons`.
9
- */
10
-
11
- export { ZustandIcon, ZUSTAND_ICON_COLOR } from "@buoy-gg/shared-ui";
1
+ "use strict";export{ZustandIcon,ZUSTAND_ICON_COLOR}from"@buoy-gg/shared-ui";