@buoy-gg/shared-ui 7.0.4 → 7.0.5
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/colors/index.js +49 -0
- package/lib/commonjs/dataViewer/DataTreeActionBar.js +389 -0
- package/lib/commonjs/dataViewer/DataTreeActionDock.js +222 -0
- package/lib/commonjs/dataViewer/DataViewer.js +18 -3
- package/lib/commonjs/dataViewer/VirtualizedDataExplorer.js +227 -28
- package/lib/commonjs/dataViewer/index.js +88 -0
- package/lib/commonjs/dataViewer/jsonOps.js +320 -0
- package/lib/commonjs/dataViewer/lineDiff.js +285 -83
- package/lib/commonjs/dataViewer/tree/TreeDiffViewer.js +20 -5
- package/lib/commonjs/dataViewer/treeActions.js +167 -0
- package/lib/commonjs/env/EnvironmentSelector.js +2 -2
- package/lib/commonjs/env/EnvironmentSelectorInline.js +2 -2
- package/lib/commonjs/hooks/safe-area-impl.js +1 -1
- package/lib/commonjs/icons/index.js +79 -3
- package/lib/commonjs/icons/lucide-icons-original-full.js +5 -1
- package/lib/commonjs/icons/lucide-icons.js +59 -2
- package/lib/commonjs/index.js +35 -0
- package/lib/commonjs/settings/components/BubbleSettingsSection.js +21 -19
- package/lib/commonjs/storage/devToolsStorageKeys.js +6 -3
- package/lib/commonjs/ui/components/Badge.js +2 -0
- package/lib/commonjs/ui/components/CompactRow.js +7 -0
- package/lib/commonjs/ui/components/CopyButton.js +27 -4
- package/lib/commonjs/ui/components/DevToolsCard.js +11 -0
- package/lib/commonjs/ui/components/DynamicFilterView.js +8 -1
- package/lib/commonjs/ui/components/EmptyState.js +12 -5
- package/lib/commonjs/ui/components/ErrorBoundary.js +3 -2
- package/lib/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.js +63 -11
- package/lib/commonjs/ui/components/ExpandableSection.js +4 -3
- package/lib/commonjs/ui/components/ExpandableSectionHeader.js +2 -1
- package/lib/commonjs/ui/components/FilterViewPattern.js +8 -7
- package/lib/commonjs/ui/components/ListItem.js +7 -5
- package/lib/commonjs/ui/components/PowerToggleButton.js +4 -1
- package/lib/commonjs/ui/components/TabSelector.js +3 -0
- package/lib/commonjs/ui/console/CyberpunkConsoleSection.js +1 -1
- package/lib/commonjs/ui/console/GalaxyButton.js +1 -1
- package/lib/commonjs/ui/gameUI/components/GameUICompactStats.js +2 -2
- package/lib/commonjs/ui/gameUI/constants/gameUIColors.js +28 -6
- package/lib/commonjs/ui/gameUI/constants/macOSDesignSystemColors.js +22 -4
- package/lib/commonjs/utils/index.js +25 -0
- package/lib/commonjs/utils/reloadApp.js +144 -0
- package/lib/module/colors/index.js +21 -0
- package/lib/module/dataViewer/DataTreeActionBar.js +384 -0
- package/lib/module/dataViewer/DataTreeActionDock.js +218 -0
- package/lib/module/dataViewer/DataViewer.js +18 -3
- package/lib/module/dataViewer/VirtualizedDataExplorer.js +228 -30
- package/lib/module/dataViewer/index.js +16 -1
- package/lib/module/dataViewer/jsonOps.js +311 -0
- package/lib/module/dataViewer/lineDiff.js +284 -82
- package/lib/module/dataViewer/tree/TreeDiffViewer.js +20 -5
- package/lib/module/dataViewer/treeActions.js +161 -0
- package/lib/module/env/EnvironmentSelector.js +2 -2
- package/lib/module/env/EnvironmentSelectorInline.js +2 -2
- package/lib/module/hooks/safe-area-impl.js +1 -1
- package/lib/module/icons/index.js +10 -1
- package/lib/module/icons/lucide-icons-original-full.js +5 -1
- package/lib/module/icons/lucide-icons.js +56 -0
- package/lib/module/index.js +4 -0
- package/lib/module/settings/components/BubbleSettingsSection.js +21 -19
- package/lib/module/storage/devToolsStorageKeys.js +6 -3
- package/lib/module/ui/components/Badge.js +2 -0
- package/lib/module/ui/components/CompactRow.js +7 -0
- package/lib/module/ui/components/CopyButton.js +29 -6
- package/lib/module/ui/components/DevToolsCard.js +11 -0
- package/lib/module/ui/components/DynamicFilterView.js +8 -1
- package/lib/module/ui/components/EmptyState.js +12 -5
- package/lib/module/ui/components/ErrorBoundary.js +3 -2
- package/lib/module/ui/components/EventHistoryViewer/EventHistoryViewer.js +63 -11
- package/lib/module/ui/components/ExpandableSection.js +4 -3
- package/lib/module/ui/components/ExpandableSectionHeader.js +2 -1
- package/lib/module/ui/components/FilterViewPattern.js +9 -7
- package/lib/module/ui/components/ListItem.js +7 -5
- package/lib/module/ui/components/PowerToggleButton.js +4 -1
- package/lib/module/ui/components/TabSelector.js +3 -0
- package/lib/module/ui/console/CyberpunkConsoleSection.js +1 -1
- package/lib/module/ui/console/GalaxyButton.js +1 -1
- package/lib/module/ui/gameUI/components/GameUICompactStats.js +2 -2
- package/lib/module/ui/gameUI/constants/gameUIColors.js +27 -6
- package/lib/module/ui/gameUI/constants/macOSDesignSystemColors.js +19 -2
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/reloadApp.js +137 -0
- package/lib/typescript/commonjs/colors/index.d.ts +22 -0
- package/lib/typescript/commonjs/colors/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/DataTreeActionBar.d.ts +53 -0
- package/lib/typescript/commonjs/dataViewer/DataTreeActionBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/DataTreeActionDock.d.ts +33 -0
- package/lib/typescript/commonjs/dataViewer/DataTreeActionDock.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts +14 -1
- package/lib/typescript/commonjs/dataViewer/DataViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts +30 -1
- package/lib/typescript/commonjs/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/__tests__/jsonOps.test.d.ts +19 -0
- package/lib/typescript/commonjs/dataViewer/__tests__/jsonOps.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/index.d.ts +5 -1
- package/lib/typescript/commonjs/dataViewer/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/jsonOps.d.ts +124 -0
- package/lib/typescript/commonjs/dataViewer/jsonOps.d.ts.map +1 -0
- package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts +27 -0
- package/lib/typescript/commonjs/dataViewer/lineDiff.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts +8 -1
- package/lib/typescript/commonjs/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/dataViewer/treeActions.d.ts +83 -0
- package/lib/typescript/commonjs/dataViewer/treeActions.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts +6 -1
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/lucide-icons-original-full.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/lucide-icons.d.ts +9 -0
- package/lib/typescript/commonjs/icons/lucide-icons.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings/components/BubbleSettingsSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts +5 -1
- package/lib/typescript/commonjs/storage/devToolsStorageKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/CopyButton.d.ts +7 -1
- package/lib/typescript/commonjs/ui/components/CopyButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/EmptyState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts +23 -7
- package/lib/typescript/commonjs/ui/components/EventHistoryViewer/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ExpandableSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ExpandableSectionHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FilterViewPattern.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ListItem.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts +36 -30
- package/lib/typescript/commonjs/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts +5 -0
- package/lib/typescript/commonjs/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/reloadApp.d.ts +68 -0
- package/lib/typescript/commonjs/utils/reloadApp.d.ts.map +1 -0
- package/lib/typescript/module/colors/index.d.ts +22 -0
- package/lib/typescript/module/colors/index.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/DataTreeActionBar.d.ts +53 -0
- package/lib/typescript/module/dataViewer/DataTreeActionBar.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/DataTreeActionDock.d.ts +33 -0
- package/lib/typescript/module/dataViewer/DataTreeActionDock.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/DataViewer.d.ts +14 -1
- package/lib/typescript/module/dataViewer/DataViewer.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts +30 -1
- package/lib/typescript/module/dataViewer/VirtualizedDataExplorer.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/__tests__/jsonOps.test.d.ts +19 -0
- package/lib/typescript/module/dataViewer/__tests__/jsonOps.test.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/index.d.ts +5 -1
- package/lib/typescript/module/dataViewer/index.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/jsonOps.d.ts +124 -0
- package/lib/typescript/module/dataViewer/jsonOps.d.ts.map +1 -0
- package/lib/typescript/module/dataViewer/lineDiff.d.ts +27 -0
- package/lib/typescript/module/dataViewer/lineDiff.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts +8 -1
- package/lib/typescript/module/dataViewer/tree/TreeDiffViewer.d.ts.map +1 -1
- package/lib/typescript/module/dataViewer/treeActions.d.ts +83 -0
- package/lib/typescript/module/dataViewer/treeActions.d.ts.map +1 -0
- package/lib/typescript/module/hooks/safe-area-impl.d.ts +1 -1
- package/lib/typescript/module/icons/index.d.ts +6 -1
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/icons/lucide-icons-original-full.d.ts.map +1 -1
- package/lib/typescript/module/icons/lucide-icons.d.ts +9 -0
- package/lib/typescript/module/icons/lucide-icons.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/settings/components/BubbleSettingsSection.d.ts.map +1 -1
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts +5 -1
- package/lib/typescript/module/storage/devToolsStorageKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/CopyButton.d.ts +7 -1
- package/lib/typescript/module/ui/components/CopyButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/EmptyState.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/EventHistoryViewer/EventHistoryViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts +23 -7
- package/lib/typescript/module/ui/components/EventHistoryViewer/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ExpandableSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ExpandableSectionHeader.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FilterViewPattern.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ListItem.d.ts.map +1 -1
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts +36 -30
- package/lib/typescript/module/ui/gameUI/constants/gameUIColors.d.ts.map +1 -1
- package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts +5 -0
- package/lib/typescript/module/ui/gameUI/constants/macOSDesignSystemColors.d.ts.map +1 -1
- package/lib/typescript/module/utils/index.d.ts +1 -0
- package/lib/typescript/module/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/reloadApp.d.ts +68 -0
- package/lib/typescript/module/utils/reloadApp.d.ts.map +1 -0
- package/package.json +15 -4
- package/lib/commonjs/icons/ImageOverlayIcon.js +0 -142
- package/lib/module/icons/ImageOverlayIcon.js +0 -137
- package/lib/typescript/commonjs/icons/ImageOverlayIcon.d.ts +0 -14
- package/lib/typescript/commonjs/icons/ImageOverlayIcon.d.ts.map +0 -1
- package/lib/typescript/module/icons/ImageOverlayIcon.d.ts +0 -14
- package/lib/typescript/module/icons/ImageOverlayIcon.d.ts.map +0 -1
|
@@ -146,16 +146,23 @@ export interface EventPickerModalProps {
|
|
|
146
146
|
* Props for the main EventHistoryViewer component
|
|
147
147
|
*/
|
|
148
148
|
export interface EventHistoryViewerProps {
|
|
149
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* Currently active view.
|
|
151
|
+
*
|
|
152
|
+
* The toggle is only rendered when there IS a current view to switch to —
|
|
153
|
+
* i.e. when `renderCurrentView` is supplied. Omit it and this component is a
|
|
154
|
+
* diff viewer with no chrome above it, which is what a host that shows the
|
|
155
|
+
* live value elsewhere wants.
|
|
156
|
+
*/
|
|
150
157
|
activeView: ViewMode;
|
|
151
|
-
/** Callback when view changes */
|
|
152
|
-
onViewChange
|
|
158
|
+
/** Callback when view changes. Unused when there is no current view. */
|
|
159
|
+
onViewChange?: (view: ViewMode) => void;
|
|
153
160
|
/** Label for current view card */
|
|
154
|
-
currentViewLabel
|
|
161
|
+
currentViewLabel?: string;
|
|
155
162
|
/** Description for current view card */
|
|
156
|
-
currentViewDescription
|
|
163
|
+
currentViewDescription?: string;
|
|
157
164
|
/** Icon for current view card */
|
|
158
|
-
currentViewIcon
|
|
165
|
+
currentViewIcon?: IconComponent;
|
|
159
166
|
/** Label for diff view card */
|
|
160
167
|
diffViewLabel: string;
|
|
161
168
|
/** Description for diff view card */
|
|
@@ -163,7 +170,8 @@ export interface EventHistoryViewerProps {
|
|
|
163
170
|
/** Icon for diff view card */
|
|
164
171
|
diffViewIcon: IconComponent;
|
|
165
172
|
/** Render function for current view content */
|
|
166
|
-
|
|
173
|
+
/** Omit to drop the current-value view (and its toggle) entirely. */
|
|
174
|
+
renderCurrentView?: () => ReactNode;
|
|
167
175
|
/** Diff mode tabs (optional - omit for single diff view) */
|
|
168
176
|
diffModeTabs?: DiffModeTab[];
|
|
169
177
|
/** Active diff mode key */
|
|
@@ -198,6 +206,14 @@ export interface EventHistoryViewerProps {
|
|
|
198
206
|
onLeftPickerOpen?: () => void;
|
|
199
207
|
/** Callback when right side is pressed (opens picker) */
|
|
200
208
|
onRightPickerOpen?: () => void;
|
|
209
|
+
/**
|
|
210
|
+
* Scroll the whole diff section as one page (mode tabs, compare bar and diff
|
|
211
|
+
* content move together) instead of confining the scroll to the diff pane.
|
|
212
|
+
* Only set this when `renderDiffContent()` returns content that lays out at
|
|
213
|
+
* its natural height — content that scrolls internally would be unbounded
|
|
214
|
+
* inside the page ScrollView and stop scrolling entirely.
|
|
215
|
+
*/
|
|
216
|
+
scrollDiffSection?: boolean;
|
|
201
217
|
/** Disable internal footer (use external modal footer) */
|
|
202
218
|
disableInternalFooter?: boolean;
|
|
203
219
|
/** Current index for footer navigation */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/EventHistoryViewer/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,WAA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AAO,CAAC;IAChB,kCAAkC;IAClC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,qCAAqC;IACrC,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,wCAAwC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IAEtC
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/EventHistoryViewer/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,4BAA4B;IAC5B,UAAU,EAAE,QAAQ,CAAC;IACrB,iCAAi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OAAO,CAAC;IAG5B,0DAA0D;IAC1D,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,gBAAgB,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,eAAe,EAAE,MAAM,CAAC;IACxB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,sCAAsC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableSection.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ExpandableSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpandableSection.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ExpandableSection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,UAAU,sBAAsB;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,SAAS,EACT,mBAAmB,EACnB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,eAAuB,EACvB,OAAO,GACR,EAAE,sBAAsB,+BAgCxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandableSectionHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ExpandableSectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpandableSectionHeader.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ExpandableSectionHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,UAAU,4BAA4B;IACpC,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,IAAI,EAAE,IAAI,EACV,SAAS,EACT,mBAAmB,EACnB,KAAK,EACL,QAAQ,EACR,UAAU,EACV,OAAO,GACR,EAAE,4BAA4B,+BAqC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterViewPattern.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FilterViewPattern.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FilterViewPattern.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/FilterViewPattern.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,cAAc,EACd,eAAe,EACf,YAAY,EACZ,IAAI,EAAE,IAAI,EACV,SAAgC,EAChC,WAA6B,EAC7B,SAAoC,EACpC,gBAAoC,EACpC,IAAI,GACL,EAAE,sBAAsB,+BAwGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ListItem.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/ListItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,QAAgB,EAChB,KAAK,GACN,EAAE,aAAa,+BASf;yBAde,QAAQ;sCAsBa,WAAW;uCAUV,YAAY;sCAUb,WAAW;oDAWO,UAAU;uDAeP,aAAa;wCAchC,aAAa;uCAUd,YAAY;;AA3ElD,UAAU,WAAW;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAOD,UAAU,YAAY;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAOD,UAAU,WAAW;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAOD,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAWD,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAWD,UAAU,aAAa;IACrB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb;AAOD,UAAU,YAAY;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,GAAG,CAAC;CACb"}
|
|
@@ -7,29 +7,27 @@
|
|
|
7
7
|
* 3. Save and refresh
|
|
8
8
|
*/
|
|
9
9
|
export declare const gameUIColors: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly network: string;
|
|
32
|
-
readonly dataTypes: {
|
|
10
|
+
background: string;
|
|
11
|
+
panel: string;
|
|
12
|
+
backdrop: string;
|
|
13
|
+
buttonBackground: string;
|
|
14
|
+
pureBlack: string;
|
|
15
|
+
border: string;
|
|
16
|
+
blackTint1: string;
|
|
17
|
+
blackTint2: string;
|
|
18
|
+
blackTint3: string;
|
|
19
|
+
success: string;
|
|
20
|
+
warning: string;
|
|
21
|
+
error: string;
|
|
22
|
+
info: string;
|
|
23
|
+
critical: string;
|
|
24
|
+
optional: string;
|
|
25
|
+
env: string;
|
|
26
|
+
storage: string;
|
|
27
|
+
query: string;
|
|
28
|
+
debug: string;
|
|
29
|
+
network: string;
|
|
30
|
+
dataTypes: {
|
|
33
31
|
object: string;
|
|
34
32
|
array: string;
|
|
35
33
|
string: string;
|
|
@@ -39,11 +37,13 @@ export declare const gameUIColors: {
|
|
|
39
37
|
undefined: string;
|
|
40
38
|
null: string;
|
|
41
39
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
40
|
+
text: string;
|
|
41
|
+
primary: string;
|
|
42
|
+
primaryLight: string;
|
|
43
|
+
secondary: string;
|
|
44
|
+
tertiary: string;
|
|
45
|
+
muted: string;
|
|
46
|
+
diff: {
|
|
47
47
|
addedBackground: string;
|
|
48
48
|
removedBackground: string;
|
|
49
49
|
modifiedBackground: string;
|
|
@@ -63,13 +63,19 @@ export declare const gameUIColors: {
|
|
|
63
63
|
markerModifiedBackground: string;
|
|
64
64
|
markerText: string;
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
neonGlow: {
|
|
67
67
|
primary: string;
|
|
68
68
|
secondary: string;
|
|
69
69
|
tertiary: string;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
export type GameUIColorKey = keyof typeof gameUIColors;
|
|
73
|
+
/** Re-derive the theme-driven values in place after `macOSColors` has been
|
|
74
|
+
* re-tinted at runtime (desktop dashboard theme switch only — see
|
|
75
|
+
* in place). Keeps object identity so every
|
|
76
|
+
* `gameUIColors.x` read at render time picks the new value up. Module-level
|
|
77
|
+
* captures (`const BG = gameUIColors.panel`) still need a reload. */
|
|
78
|
+
export declare const refreshGameUIColors: () => void;
|
|
73
79
|
/**
|
|
74
80
|
* Buoy brand colors - EXACT values from web docs site dark theme.
|
|
75
81
|
* Use these for consistent branding across all Buoy dev tools.
|
|
@@ -92,7 +98,7 @@ export declare const buoyColors: {
|
|
|
92
98
|
};
|
|
93
99
|
export type BuoyColorKey = keyof typeof buoyColors;
|
|
94
100
|
export declare const dialColors: {
|
|
95
|
-
dialBackground:
|
|
101
|
+
dialBackground: string;
|
|
96
102
|
dialGradient1: string;
|
|
97
103
|
dialGradient2: string;
|
|
98
104
|
dialGradient3: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gameUIColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/gameUIColors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"gameUIColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/gameUIColors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA+HH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,YAAY,CAAC;AAEvD;;;;qEAIqE;AACrE,eAAO,MAAM,mBAAmB,YAG/B,CAAC;AAKF;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;CAsBb,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,UAAU,CAAC;AAGnD,eAAO,MAAM,UAAU;;;;;;;;CAQtB,CAAC"}
|
|
@@ -153,5 +153,10 @@ export declare const macOSGameUIColors: {
|
|
|
153
153
|
tertiary: string;
|
|
154
154
|
};
|
|
155
155
|
};
|
|
156
|
+
/** Re-derive the snapshot above from the current `macOSColors` values, keeping
|
|
157
|
+
* the object identity so existing importers see the new colors. Only the
|
|
158
|
+
* desktop dashboard's theme switcher calls this; on device the palette never
|
|
159
|
+
* changes, so this is a no-op that is never invoked. */
|
|
160
|
+
export declare const refreshMacOSGameUIColors: () => void;
|
|
156
161
|
export type MacOSColorKey = keyof typeof macOSColors;
|
|
157
162
|
//# sourceMappingURL=macOSDesignSystemColors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"macOSDesignSystemColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/macOSDesignSystemColors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHvB,CAAC;
|
|
1
|
+
{"version":3,"file":"macOSDesignSystemColors.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/gameUI/constants/macOSDesignSystemColors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHvB,CAAC;AA6DF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA2B,CAAC;AAE1D;;;wDAGwD;AACxD,eAAO,MAAM,wBAAwB,YAEpC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,WAAW,CAAC"}
|
|
@@ -7,6 +7,7 @@ export { getValueType, isPrimitive, isJsonSerializable, isValidJson, getConstruc
|
|
|
7
7
|
export { parseValue, formatValue, getTypeColor, truncateText, flattenObject, formatPath, } from "./valueFormatting";
|
|
8
8
|
export { loadOptionalModule, getCachedOptionalModule } from "./loadOptionalModule";
|
|
9
9
|
export { setRenderCaptureProvider, getRenderCaptureProvider, type RenderCaptureProvider, type RenderCaptureSummary, type RenderCaptureTopComponent, } from "./renderCaptureRegistry";
|
|
10
|
+
export { reloadApp, scheduleReloadApp, resolveReloadStrategy, REMOTE_RELOAD_DELAY_MS, type ReloadStrategy, type ResolvedReloadStrategy, } from "./reloadApp";
|
|
10
11
|
export { Subscribable, type SubscribableListener } from "./subscribable";
|
|
11
12
|
export { subscriberCountNotifier, subscribeToSubscriberCountChanges, notifySubscriberCountChange, } from "./subscriberCountNotifier";
|
|
12
13
|
export { useSafeRouter, useSafePathname, useSafeSegments, useSafeGlobalSearchParams, getSafeRouter, getSafeCurrentPathname, isExpoRouterAvailable, } from "./safeExpoRouter";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,EACrB,KAAK,eAAe,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,OAAO,EACP,YAAY,GACb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,GAC/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EACL,uBAAuB,EACvB,iCAAiC,EACjC,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* reloadApp
|
|
3
|
+
*
|
|
4
|
+
* Programmatic JS-bundle reload primitive. Two strategies, picked at runtime:
|
|
5
|
+
*
|
|
6
|
+
* - `dev-settings`: React Native core's `DevSettings.reload()`. Works in
|
|
7
|
+
* __DEV__ builds (including Expo Go) with zero deps, but throws in
|
|
8
|
+
* release.
|
|
9
|
+
* - `expo-updates`: `Updates.reloadAsync()` from the `expo-updates`
|
|
10
|
+
* package. Works in dev clients and production, but fails in Expo Go
|
|
11
|
+
* and is not bundled with any Buoy package — host apps opt in by
|
|
12
|
+
* installing `expo-updates` separately.
|
|
13
|
+
*
|
|
14
|
+
* "auto" prefers `dev-settings` in __DEV__ and falls back to
|
|
15
|
+
* `expo-updates` otherwise. The dynamic `require` keeps `expo-updates` an
|
|
16
|
+
* optional peer — Expo Go users never load it.
|
|
17
|
+
*
|
|
18
|
+
* Lives in shared (not in a tool package) because BOTH the always-installed
|
|
19
|
+
* core — whose `app` sync adapter exposes reload to remote drivers like the
|
|
20
|
+
* MCP server — and perf-monitor's batch runner (reload between cases) need it,
|
|
21
|
+
* and reloading must not require a tool with native peer deps.
|
|
22
|
+
*
|
|
23
|
+
* IMPORTANT: callers must persist any state they need to survive BEFORE
|
|
24
|
+
* invoking this. Once the reload fires, the JS realm is gone — there is
|
|
25
|
+
* no "after" code path.
|
|
26
|
+
*/
|
|
27
|
+
export type ReloadStrategy = "auto" | "dev-settings" | "expo-updates";
|
|
28
|
+
/** The concrete mechanism a `ReloadStrategy` resolves to at runtime. */
|
|
29
|
+
export type ResolvedReloadStrategy = "dev-settings" | "expo-updates";
|
|
30
|
+
/**
|
|
31
|
+
* Which mechanism `strategy` would actually use right now, or null when none
|
|
32
|
+
* is available. Lets a caller check reloadability BEFORE committing (e.g. a
|
|
33
|
+
* remote driver that must answer "will this work?" over the wire, since after
|
|
34
|
+
* the reload fires there is no code path left to answer from).
|
|
35
|
+
*/
|
|
36
|
+
export declare function resolveReloadStrategy(strategy?: ReloadStrategy): ResolvedReloadStrategy | null;
|
|
37
|
+
/**
|
|
38
|
+
* Trigger a full JS bundle reload. Resolves to a never-resolving promise
|
|
39
|
+
* because the realm is being torn down — code after the call should not
|
|
40
|
+
* execute. Throws synchronously if no strategy is available.
|
|
41
|
+
*/
|
|
42
|
+
export declare function reloadApp(strategy?: ReloadStrategy, reason?: string): Promise<never>;
|
|
43
|
+
/**
|
|
44
|
+
* Delay before a remotely-requested reload actually fires. The realm dies the
|
|
45
|
+
* instant it does, so a remote caller's acknowledgement (an action result on
|
|
46
|
+
* the sync socket) must be flushed to the broker first — this is the window
|
|
47
|
+
* that lets it get out.
|
|
48
|
+
*/
|
|
49
|
+
export declare const REMOTE_RELOAD_DELAY_MS = 250;
|
|
50
|
+
/**
|
|
51
|
+
* Arm a reload to fire shortly, and report which mechanism will do it.
|
|
52
|
+
*
|
|
53
|
+
* Unlike {@link reloadApp}, this returns — synchronously and BEFORE the realm
|
|
54
|
+
* is torn down — so a remote driver (Buoy Desktop, the MCP server) can answer
|
|
55
|
+
* "reload accepted, via dev-settings" over the socket. Throws (without
|
|
56
|
+
* scheduling anything) when no mechanism is available, so an impossible reload
|
|
57
|
+
* fails loudly instead of looking accepted and silently doing nothing.
|
|
58
|
+
*/
|
|
59
|
+
export declare function scheduleReloadApp(options?: {
|
|
60
|
+
strategy?: ReloadStrategy;
|
|
61
|
+
/** @default REMOTE_RELOAD_DELAY_MS */
|
|
62
|
+
delayMs?: number;
|
|
63
|
+
reason?: string;
|
|
64
|
+
}): {
|
|
65
|
+
strategy: ResolvedReloadStrategy;
|
|
66
|
+
delayMs: number;
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=reloadApp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reloadApp.d.ts","sourceRoot":"","sources":["../../../../src/utils/reloadApp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAIH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc,CAAC;AAEtE,wEAAwE;AACxE,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,cAAc,CAAC;AAgCrE;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,GAAE,cAAuB,GAChC,sBAAsB,GAAG,IAAI,CAS/B;AAaD;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,QAAQ,GAAE,cAAuB,EACjC,MAAM,SAAgB,GACrB,OAAO,CAAC,KAAK,CAAC,CAUhB;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,CAAC,EAAE;IAC1C,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG;IAAE,QAAQ,EAAE,sBAAsB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAgBxD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Palette-only entry point.
|
|
3
|
+
*
|
|
4
|
+
* WHY THIS EXISTS: the desktop dashboard re-tints the design system by mutating
|
|
5
|
+
* these objects in place, and that has to happen BEFORE any component module is
|
|
6
|
+
* evaluated — React Native `StyleSheet.create({...})` calls run at module load
|
|
7
|
+
* and freeze whatever colors they read.
|
|
8
|
+
*
|
|
9
|
+
* Importing the palettes from the package root (`@buoy-gg/shared-ui`) does the
|
|
10
|
+
* opposite: the root barrel re-exports every component, so pulling one constant
|
|
11
|
+
* out of it evaluates all of their StyleSheets first, and the re-tint lands too
|
|
12
|
+
* late — panels keep dark surfaces while inline reads go light.
|
|
13
|
+
*
|
|
14
|
+
* This subpath pulls in the two constants modules and nothing else, so the
|
|
15
|
+
* bootstrap can swap palettes with an empty component graph behind it. Import
|
|
16
|
+
* from here in anything that runs before the app mounts.
|
|
17
|
+
*/
|
|
18
|
+
export { macOSColors, macOSGameUIColors, refreshMacOSGameUIColors, } from "../ui/gameUI/constants/macOSDesignSystemColors";
|
|
19
|
+
export { gameUIColors, buoyColors, dialColors, refreshGameUIColors, } from "../ui/gameUI/constants/gameUIColors";
|
|
20
|
+
export type { GameUIColorKey, BuoyColorKey, } from "../ui/gameUI/constants/gameUIColors";
|
|
21
|
+
export type { MacOSColorKey } from "../ui/gameUI/constants/macOSDesignSystemColors";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/colors/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,wBAAwB,GACzB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,YAAY,EACZ,UAAU,EACV,UAAU,EACV,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACV,cAAc,EACd,YAAY,GACb,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Footer bar for the data explorer's selected node — the editor's controls.
|
|
3
|
+
*
|
|
4
|
+
* Ports the action strip from the desktop mockup ("Desktop app network dev
|
|
5
|
+
* tools redesign" → Value card footer): the selected node's label and type on
|
|
6
|
+
* the left, its available operations on the right, and a hint line when nothing
|
|
7
|
+
* is selected yet.
|
|
8
|
+
*
|
|
9
|
+
* The controls deliberately do NOT live inside the tree rows. A row is 28px
|
|
10
|
+
* tall and already carries a caret, a key, a value and a copy button, so
|
|
11
|
+
* per-row icon buttons land around 20px — under the touch target a phone needs,
|
|
12
|
+
* and immediately beside the copy button, which makes mis-taps easy. Hosting
|
|
13
|
+
* them in one bar keeps every target full size and in a predictable place.
|
|
14
|
+
*
|
|
15
|
+
* So the split is: the tree owns SELECTION, this bar owns ACTIONS.
|
|
16
|
+
*
|
|
17
|
+
* Nothing here mutates. Each control emits a {@link JsonOp} against the
|
|
18
|
+
* selection's path and the host applies it, so the explorer stays a pure view.
|
|
19
|
+
*/
|
|
20
|
+
import { type ViewStyle } from "react-native";
|
|
21
|
+
import type { JsonOp } from "./jsonOps";
|
|
22
|
+
import { type DataTreeSelection } from "./treeActions";
|
|
23
|
+
export type { DataTreeSelection };
|
|
24
|
+
export interface DataTreeActionBarProps {
|
|
25
|
+
/** The whole document, so the bar can see the selection's PARENT. */
|
|
26
|
+
root: unknown;
|
|
27
|
+
/** Null renders the discoverability hint instead of controls. */
|
|
28
|
+
selection: DataTreeSelection | null;
|
|
29
|
+
onEdit: (op: JsonOp) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Start editing the selected scalar. The tree renders the field in the row
|
|
32
|
+
* itself (matching the mockup), so the host owns that state — this is the
|
|
33
|
+
* button-driven way in, alongside double-tapping the row.
|
|
34
|
+
*/
|
|
35
|
+
onRequestInlineEdit: () => void;
|
|
36
|
+
/** Extra style for the buttons, so a host can match its own chrome. */
|
|
37
|
+
chipStyle?: ViewStyle;
|
|
38
|
+
}
|
|
39
|
+
export declare function DataTreeActionBar({ root, selection, onEdit, onRequestInlineEdit, chipStyle, }: DataTreeActionBarProps): import("react").JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* The field that replaces a row's value while editing it, per the mockup.
|
|
42
|
+
*
|
|
43
|
+
* Type-preserving by construction rather than by parsing guesswork: the
|
|
44
|
+
* ORIGINAL value's type decides how the draft is read back, so editing a number
|
|
45
|
+
* can only ever produce a number. Booleans skip text entirely — there is
|
|
46
|
+
* nothing to type, so they commit straight from a two-way toggle.
|
|
47
|
+
*/
|
|
48
|
+
export declare function DataTreeInlineEditor({ value, onCommit, onCancel, }: {
|
|
49
|
+
value: unknown;
|
|
50
|
+
onCommit: (next: unknown) => void;
|
|
51
|
+
onCancel: () => void;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=DataTreeActionBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTreeActionBar.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/DataTreeActionBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAKL,KAAK,iBAAiB,EACvB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAsBlC,MAAM,WAAW,sBAAsB;IACrC,qEAAqE;IACrE,IAAI,EAAE,OAAO,CAAC;IACd,iEAAiE;IACjE,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,uEAAuE;IACvE,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AA+CD,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,SAAS,EACT,MAAM,EACN,mBAAmB,EACnB,SAAS,GACV,EAAE,sBAAsB,+BA4ExB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAClC,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,+BAuEA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The phone's edit controls — a fixed grid of six thumb-sized tiles, docked
|
|
3
|
+
* under a full-screen tree.
|
|
4
|
+
*
|
|
5
|
+
* The dashboard renders the same six actions as {@link DataTreeActionBar}: a
|
|
6
|
+
* row of small chips, which is right beside a cursor and wrong under a thumb.
|
|
7
|
+
* Both read their list from `treeActionsFor`, so what's legal can't drift
|
|
8
|
+
* between them — only the shape does.
|
|
9
|
+
*
|
|
10
|
+
* Two tiles per row of three, always in the same slots, disabled rather than
|
|
11
|
+
* hidden. See `treeActionsFor` for why the list is fixed-length.
|
|
12
|
+
*/
|
|
13
|
+
import type { JsonOp } from "./jsonOps";
|
|
14
|
+
import { type DataTreeSelection } from "./treeActions";
|
|
15
|
+
export interface DataTreeActionDockProps {
|
|
16
|
+
/** The whole document, so the dock can see the selection's PARENT. */
|
|
17
|
+
root: unknown;
|
|
18
|
+
/** Null dims every tile and shows the discoverability hint. */
|
|
19
|
+
selection: DataTreeSelection | null;
|
|
20
|
+
/** Apply one structural edit. */
|
|
21
|
+
onEdit: (op: JsonOp) => void;
|
|
22
|
+
/** Move the highlight, for the ops that create or relocate a node. */
|
|
23
|
+
onSelectPath: (path: string[]) => void;
|
|
24
|
+
/** Open the host's value editor for the current selection. */
|
|
25
|
+
onEditValue: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the host's value editor handles arrays and objects (a raw-JSON
|
|
28
|
+
* mode). The phone's does.
|
|
29
|
+
*/
|
|
30
|
+
containersEditable?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function DataTreeActionDock({ root, selection, onEdit, onSelectPath, onEditValue, containersEditable, }: DataTreeActionDockProps): import("react").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=DataTreeActionDock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTreeActionDock.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/DataTreeActionDock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAIL,KAAK,iBAAiB,EAGvB,MAAM,eAAe,CAAC;AAqCvB,MAAM,WAAW,uBAAuB;IACtC,sEAAsE;IACtE,IAAI,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,SAAS,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACpC,iCAAiC;IACjC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,sEAAsE;IACtE,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACvC,8DAA8D;IAC9D,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAoCD,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,MAAM,EACN,YAAY,EACZ,WAAW,EACX,kBAAyB,GAC1B,EAAE,uBAAuB,+BAwCzB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
1
|
+
import { type FC, type ReactElement } from "react";
|
|
2
2
|
import { JsonValue } from "../types/types";
|
|
3
|
+
import type { DataTreeSelection } from "./DataTreeActionBar";
|
|
3
4
|
interface DataViewerProps {
|
|
4
5
|
title: string;
|
|
5
6
|
data: JsonValue;
|
|
@@ -9,6 +10,18 @@ interface DataViewerProps {
|
|
|
9
10
|
initialExpanded?: boolean;
|
|
10
11
|
/** When true, disables copy functionality and shows upgrade modal (for Pro gating) */
|
|
11
12
|
disableCopy?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Opt in to selection — see `VirtualizedDataExplorer`. Pair with
|
|
15
|
+
* `DataTreeActionBar` to turn the selection into edit actions.
|
|
16
|
+
*
|
|
17
|
+
* Ignored while a type filter is active (see below).
|
|
18
|
+
*/
|
|
19
|
+
onSelectionChange?: (selection: DataTreeSelection | null) => void;
|
|
20
|
+
/** Inline editing pass-throughs — see `VirtualizedDataExplorer`. */
|
|
21
|
+
onRequestInlineEdit?: (selection: DataTreeSelection) => void;
|
|
22
|
+
inlineEditPath?: string[] | null;
|
|
23
|
+
renderInlineEditor?: (selection: DataTreeSelection) => ReactElement | null;
|
|
24
|
+
selectPath?: string[] | null;
|
|
12
25
|
}
|
|
13
26
|
/**
|
|
14
27
|
* DataViewer component that combines VirtualizedDataExplorer with TypeLegend
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataViewer.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/DataViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DataViewer.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/DataViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAiB,MAAM,gBAAgB,CAAC;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IAClE,oEAAoE;IACpE,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7D,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,YAAY,GAAG,IAAI,CAAC;IAC3E,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA2J1C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { JsonValue } from "../types/types";
|
|
2
|
-
import { FC } from "react";
|
|
2
|
+
import { FC, ReactElement } from "react";
|
|
3
|
+
import type { DataTreeSelection } from "./DataTreeActionBar";
|
|
3
4
|
interface VirtualizedDataExplorerProps {
|
|
4
5
|
title: string;
|
|
5
6
|
description?: string;
|
|
@@ -8,6 +9,34 @@ interface VirtualizedDataExplorerProps {
|
|
|
8
9
|
rawMode?: boolean;
|
|
9
10
|
initialExpanded?: boolean;
|
|
10
11
|
disableCopy?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Opt in to selection: rows become tappable-to-select (including leaves) and
|
|
14
|
+
* the chosen node is reported here. Pair it with `DataTreeActionBar`, which
|
|
15
|
+
* turns a selection into edit actions — those live OUTSIDE the tree because a
|
|
16
|
+
* 24px row cannot hold a touch-sized button.
|
|
17
|
+
*
|
|
18
|
+
* Omit this and every row renders and behaves exactly as it always has.
|
|
19
|
+
*/
|
|
20
|
+
onSelectionChange?: (selection: DataTreeSelection | null) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Double-tapping a scalar row asks the host to start editing it. The field
|
|
23
|
+
* renders in the row itself (see `inlineEditPath` / `renderInlineEditor`),
|
|
24
|
+
* matching the mockup's double-click-to-edit.
|
|
25
|
+
*/
|
|
26
|
+
onRequestInlineEdit?: (selection: DataTreeSelection) => void;
|
|
27
|
+
/** Data path of the row currently being edited, or null. */
|
|
28
|
+
inlineEditPath?: string[] | null;
|
|
29
|
+
/** Renders the editing field for that row. */
|
|
30
|
+
renderInlineEditor?: (selection: DataTreeSelection) => ReactElement | null;
|
|
31
|
+
/**
|
|
32
|
+
* Move the selection from outside. The host sets this after an edit that
|
|
33
|
+
* relocates the selected node (see `selectionPathAfterOp`) so the highlight
|
|
34
|
+
* follows the thing that moved instead of staying on the slot it left.
|
|
35
|
+
*
|
|
36
|
+
* Semi-controlled on purpose: the explorer still owns selection for ordinary
|
|
37
|
+
* taps, and only re-syncs when this path CHANGES.
|
|
38
|
+
*/
|
|
39
|
+
selectPath?: string[] | null;
|
|
11
40
|
}
|
|
12
41
|
export declare const VirtualizedDataExplorer: FC<VirtualizedDataExplorerProps>;
|
|
13
42
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualizedDataExplorer.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/VirtualizedDataExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAOL,EAAE,
|
|
1
|
+
{"version":3,"file":"VirtualizedDataExplorer.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/VirtualizedDataExplorer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAOL,EAAE,EACF,YAAY,EACb,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAkoC7D,UAAU,4BAA4B;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IAClE;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7D,4DAA4D;IAC5D,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACjC,8CAA8C;IAC9C,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAAE,iBAAiB,KAAK,YAAY,GAAG,IAAI,CAAC;IAC3E;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAqUpE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unit tests for `jsonOps.ts` — the structural edit primitives behind the data
|
|
3
|
+
* explorer's per-node actions (append / insert / remove / move / rename / …).
|
|
4
|
+
*
|
|
5
|
+
* These are worth testing away from the UI because every one of them is a way
|
|
6
|
+
* to silently corrupt a user's stored document: an off-by-one in `insert`, a
|
|
7
|
+
* `rename` that reshuffles key order, or a `duplicate` that aliases instead of
|
|
8
|
+
* copying all look fine on screen and only bite later.
|
|
9
|
+
*
|
|
10
|
+
* Same self-contained harness as the perf-monitor tests (no Jest wired up
|
|
11
|
+
* yet): run via `npx tsx <path>`.
|
|
12
|
+
*
|
|
13
|
+
* No runtime JS is emitted for `__tests__` by either bob target, so nothing
|
|
14
|
+
* here executes in a consumer's app. (A `.d.ts` does get emitted — bob ignores
|
|
15
|
+
* `tsconfig.build.json`, which is why perf-monitor's tests leak declarations
|
|
16
|
+
* too. Harmless, and not this file's problem to fix.)
|
|
17
|
+
*/
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=jsonOps.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonOps.test.d.ts","sourceRoot":"","sources":["../../../../../src/dataViewer/__tests__/jsonOps.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG"}
|
|
@@ -5,10 +5,14 @@ export { CyberpunkInput } from "./CyberpunkInput";
|
|
|
5
5
|
export { IndentGuides } from "./IndentGuides";
|
|
6
6
|
export { IndentGuidesOverlay } from "./IndentGuidesOverlay";
|
|
7
7
|
export { default as TreeDiffViewer } from "./tree/TreeDiffViewer";
|
|
8
|
+
export { applyJsonOp, getAtPath, isEditableContainer, suggestedNewValue, selectionPathAfterOp, type JsonOp, } from "./jsonOps";
|
|
9
|
+
export { treeActionsFor, treeActionMap, breadcrumb, typeLabel, type DataTreeSelection, type TreeAction, type TreeActionId, type TreeActionOptions, } from "./treeActions";
|
|
10
|
+
export { DataTreeActionBar, DataTreeInlineEditor, type DataTreeActionBarProps, } from "./DataTreeActionBar";
|
|
11
|
+
export { DataTreeActionDock, type DataTreeActionDockProps, } from "./DataTreeActionDock";
|
|
8
12
|
export { SplitDiffViewer } from "./SplitDiffViewer";
|
|
9
13
|
export type { SplitDiffViewerProps, SplitDiffViewerOptions } from "./SplitDiffViewer";
|
|
10
14
|
export { DiffSummary } from "./DiffSummary";
|
|
11
15
|
export type { DiffSummaryProps } from "./DiffSummary";
|
|
12
|
-
export { computeLineDiff, DiffType, type LineDiffInfo, type WordDiff, type DiffComputeOptions, } from "./lineDiff";
|
|
16
|
+
export { computeLineDiff, DiffType, ABSENT_VALUE, isAbsent, type LineDiffInfo, type WordDiff, type DiffComputeOptions, } from "./lineDiff";
|
|
13
17
|
export { diffThemes, gitClassicTheme, devToolsDefaultTheme, type DiffTheme, type DiffThemeKey, } from "./diffThemes";
|
|
14
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/dataViewer/index.ts"],"names":[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