@buoy-gg/jotai 7.0.4 → 7.0.6
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/index.js +6 -0
- package/lib/commonjs/jotai/components/JotaiIcon.js +13 -30
- package/lib/commonjs/jotai/components/JotaiModal.js +55 -10
- package/lib/module/index.js +3 -1
- package/lib/module/jotai/components/JotaiIcon.js +6 -26
- package/lib/module/jotai/components/JotaiModal.js +54 -10
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/jotai/components/JotaiIcon.d.ts +6 -7
- package/lib/typescript/jotai/components/JotaiIcon.d.ts.map +1 -1
- package/lib/typescript/jotai/components/JotaiModal.d.ts +8 -1
- package/lib/typescript/jotai/components/JotaiModal.d.ts.map +1 -1
- package/lib/typescript/jotai/types/index.d.ts +7 -0
- package/lib/typescript/jotai/types/index.d.ts.map +1 -1
- package/package.json +3 -3
package/lib/commonjs/index.js
CHANGED
|
@@ -39,6 +39,12 @@ Object.defineProperty(exports, "JotaiModal", {
|
|
|
39
39
|
return _JotaiModal.JotaiModal;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
+
Object.defineProperty(exports, "JotaiToolView", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _JotaiModal.JotaiToolView;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
42
48
|
Object.defineProperty(exports, "createJotaiTool", {
|
|
43
49
|
enumerable: true,
|
|
44
50
|
get: function () {
|
|
@@ -3,33 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
20
|
-
style: {
|
|
21
|
-
width: size,
|
|
22
|
-
height: size,
|
|
23
|
-
justifyContent: "center",
|
|
24
|
-
alignItems: "center"
|
|
25
|
-
},
|
|
26
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
27
|
-
style: {
|
|
28
|
-
fontSize: size * 0.75,
|
|
29
|
-
color: color || JOTAI_ICON_COLOR,
|
|
30
|
-
fontWeight: "700"
|
|
31
|
-
},
|
|
32
|
-
children: "J"
|
|
33
|
-
})
|
|
34
|
-
});
|
|
35
|
-
}
|
|
6
|
+
Object.defineProperty(exports, "JOTAI_ICON_COLOR", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _sharedUi.JOTAI_ICON_COLOR;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "JotaiIcon", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _sharedUi.JotaiIcon;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.JotaiModal = JotaiModal;
|
|
7
|
+
exports.JotaiToolView = JotaiToolView;
|
|
7
8
|
var _react = require("react");
|
|
8
9
|
var _reactNative = require("react-native");
|
|
9
10
|
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
@@ -45,7 +46,8 @@ function JotaiModal({
|
|
|
45
46
|
onClose,
|
|
46
47
|
onBack,
|
|
47
48
|
onMinimize,
|
|
48
|
-
enableSharedModalDimensions = false
|
|
49
|
+
enableSharedModalDimensions = false,
|
|
50
|
+
inline = false
|
|
49
51
|
}) {
|
|
50
52
|
const isPro = (0, _license.useIsPro)();
|
|
51
53
|
const [showProModal, setShowProModal] = (0, _react.useState)(false);
|
|
@@ -433,6 +435,29 @@ function JotaiModal({
|
|
|
433
435
|
// The change lists own their scrolling so FlatList virtualization works
|
|
434
436
|
// (see ZustandModal — same pattern, same tool-bench evidence).
|
|
435
437
|
const listOwnsScroll = !showFilters && !(selectedChange && selectedChangeIndex !== null) && (selectedHistoryAtom != null || activeTab === "events");
|
|
438
|
+
const body = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
439
|
+
style: styles.container,
|
|
440
|
+
children: renderContent()
|
|
441
|
+
});
|
|
442
|
+
const upgradeModal = /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ProUpgradeModal, {
|
|
443
|
+
visible: showProModal,
|
|
444
|
+
onClose: () => setShowProModal(false),
|
|
445
|
+
featureName: "Full Atom History"
|
|
446
|
+
});
|
|
447
|
+
|
|
448
|
+
// The ONLY difference between the phone and the desktop dashboard is which
|
|
449
|
+
// shell the header, body and footer go in. Everything above this is shared.
|
|
450
|
+
if (inline) {
|
|
451
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.TickProvider, {
|
|
452
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
453
|
+
style: styles.inlineRoot,
|
|
454
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
455
|
+
style: styles.inlineHeader,
|
|
456
|
+
children: renderHeaderContent()
|
|
457
|
+
}), body, footerNode]
|
|
458
|
+
}), upgradeModal]
|
|
459
|
+
});
|
|
460
|
+
}
|
|
436
461
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_sharedUi.TickProvider, {
|
|
437
462
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.JsModal, {
|
|
438
463
|
visible: visible,
|
|
@@ -451,18 +476,38 @@ function JotaiModal({
|
|
|
451
476
|
styles: {},
|
|
452
477
|
footer: footerNode,
|
|
453
478
|
footerHeight: footerHeight,
|
|
454
|
-
children:
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
479
|
+
children: body
|
|
480
|
+
}), upgradeModal]
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The same Jotai tool as `JotaiModal`, rendered INLINE for hosts that
|
|
486
|
+
* place tools in a panel rather than a modal. Exists so there is exactly one
|
|
487
|
+
* implementation — the desktop dashboard used to ship its own copy of this
|
|
488
|
+
* component's header, list and detail router.
|
|
489
|
+
*/
|
|
490
|
+
function JotaiToolView(props = {}) {
|
|
491
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(JotaiModal, {
|
|
492
|
+
...props,
|
|
493
|
+
inline: true,
|
|
494
|
+
visible: true,
|
|
495
|
+
onClose: () => {}
|
|
463
496
|
});
|
|
464
497
|
}
|
|
465
498
|
const styles = _reactNative.StyleSheet.create({
|
|
499
|
+
inlineRoot: {
|
|
500
|
+
flex: 1,
|
|
501
|
+
minHeight: 0,
|
|
502
|
+
backgroundColor: _sharedUi.macOSColors.background.base
|
|
503
|
+
},
|
|
504
|
+
inlineHeader: {
|
|
505
|
+
paddingHorizontal: 12,
|
|
506
|
+
paddingVertical: 8,
|
|
507
|
+
borderBottomWidth: 1,
|
|
508
|
+
borderBottomColor: _sharedUi.macOSColors.border.default,
|
|
509
|
+
backgroundColor: _sharedUi.macOSColors.background.card
|
|
510
|
+
},
|
|
466
511
|
container: {
|
|
467
512
|
flex: 1,
|
|
468
513
|
backgroundColor: _sharedUi.macOSColors.background.base
|
package/lib/module/index.js
CHANGED
|
@@ -58,7 +58,9 @@ export { useJotaiAtomChanges } from "./jotai/hooks/useJotaiAtomChanges";
|
|
|
58
58
|
// =============================================================================
|
|
59
59
|
// COMPONENTS (For custom UI implementations)
|
|
60
60
|
// =============================================================================
|
|
61
|
-
|
|
61
|
+
// `JotaiToolView` is the same tool rendered inline (header bar + body + footer)
|
|
62
|
+
// instead of inside a JsModal — for hosts that show tools in a panel.
|
|
63
|
+
export { JotaiModal, JotaiToolView } from "./jotai/components/JotaiModal";
|
|
62
64
|
export { JotaiAtomChangeItem } from "./jotai/components/JotaiAtomChangeItem";
|
|
63
65
|
export { JotaiAtomDetailContent, JotaiAtomDetailFooter } from "./jotai/components/JotaiAtomDetailContent";
|
|
64
66
|
export { JotaiIcon, JOTAI_ICON_COLOR } from "./jotai/components/JotaiIcon";
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* JotaiIcon — re-exported from the Buoy Icon Format.
|
|
5
|
+
*
|
|
6
|
+
* The artwork lives in shared/icons/jotai.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`.
|
|
5
9
|
*/
|
|
6
10
|
|
|
7
|
-
|
|
8
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const JOTAI_ICON_COLOR = "#6C47FF";
|
|
10
|
-
export function JotaiIcon({
|
|
11
|
-
size,
|
|
12
|
-
color
|
|
13
|
-
}) {
|
|
14
|
-
return /*#__PURE__*/_jsx(View, {
|
|
15
|
-
style: {
|
|
16
|
-
width: size,
|
|
17
|
-
height: size,
|
|
18
|
-
justifyContent: "center",
|
|
19
|
-
alignItems: "center"
|
|
20
|
-
},
|
|
21
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
22
|
-
style: {
|
|
23
|
-
fontSize: size * 0.75,
|
|
24
|
-
color: color || JOTAI_ICON_COLOR,
|
|
25
|
-
fontWeight: "700"
|
|
26
|
-
},
|
|
27
|
-
children: "J"
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
export { JOTAI_ICON_COLOR };
|
|
11
|
+
export { JotaiIcon, JOTAI_ICON_COLOR } from "@buoy-gg/shared-ui";
|
|
@@ -41,7 +41,8 @@ export function JotaiModal({
|
|
|
41
41
|
onClose,
|
|
42
42
|
onBack,
|
|
43
43
|
onMinimize,
|
|
44
|
-
enableSharedModalDimensions = false
|
|
44
|
+
enableSharedModalDimensions = false,
|
|
45
|
+
inline = false
|
|
45
46
|
}) {
|
|
46
47
|
const isPro = useIsPro();
|
|
47
48
|
const [showProModal, setShowProModal] = useState(false);
|
|
@@ -429,6 +430,29 @@ export function JotaiModal({
|
|
|
429
430
|
// The change lists own their scrolling so FlatList virtualization works
|
|
430
431
|
// (see ZustandModal — same pattern, same tool-bench evidence).
|
|
431
432
|
const listOwnsScroll = !showFilters && !(selectedChange && selectedChangeIndex !== null) && (selectedHistoryAtom != null || activeTab === "events");
|
|
433
|
+
const body = /*#__PURE__*/_jsx(View, {
|
|
434
|
+
style: styles.container,
|
|
435
|
+
children: renderContent()
|
|
436
|
+
});
|
|
437
|
+
const upgradeModal = /*#__PURE__*/_jsx(ProUpgradeModal, {
|
|
438
|
+
visible: showProModal,
|
|
439
|
+
onClose: () => setShowProModal(false),
|
|
440
|
+
featureName: "Full Atom History"
|
|
441
|
+
});
|
|
442
|
+
|
|
443
|
+
// The ONLY difference between the phone and the desktop dashboard is which
|
|
444
|
+
// shell the header, body and footer go in. Everything above this is shared.
|
|
445
|
+
if (inline) {
|
|
446
|
+
return /*#__PURE__*/_jsxs(TickProvider, {
|
|
447
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
448
|
+
style: styles.inlineRoot,
|
|
449
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
450
|
+
style: styles.inlineHeader,
|
|
451
|
+
children: renderHeaderContent()
|
|
452
|
+
}), body, footerNode]
|
|
453
|
+
}), upgradeModal]
|
|
454
|
+
});
|
|
455
|
+
}
|
|
432
456
|
return /*#__PURE__*/_jsxs(TickProvider, {
|
|
433
457
|
children: [/*#__PURE__*/_jsx(JsModal, {
|
|
434
458
|
visible: visible,
|
|
@@ -447,18 +471,38 @@ export function JotaiModal({
|
|
|
447
471
|
styles: {},
|
|
448
472
|
footer: footerNode,
|
|
449
473
|
footerHeight: footerHeight,
|
|
450
|
-
children:
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
474
|
+
children: body
|
|
475
|
+
}), upgradeModal]
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The same Jotai tool as `JotaiModal`, rendered INLINE for hosts that
|
|
481
|
+
* place tools in a panel rather than a modal. Exists so there is exactly one
|
|
482
|
+
* implementation — the desktop dashboard used to ship its own copy of this
|
|
483
|
+
* component's header, list and detail router.
|
|
484
|
+
*/
|
|
485
|
+
export function JotaiToolView(props = {}) {
|
|
486
|
+
return /*#__PURE__*/_jsx(JotaiModal, {
|
|
487
|
+
...props,
|
|
488
|
+
inline: true,
|
|
489
|
+
visible: true,
|
|
490
|
+
onClose: () => {}
|
|
459
491
|
});
|
|
460
492
|
}
|
|
461
493
|
const styles = StyleSheet.create({
|
|
494
|
+
inlineRoot: {
|
|
495
|
+
flex: 1,
|
|
496
|
+
minHeight: 0,
|
|
497
|
+
backgroundColor: macOSColors.background.base
|
|
498
|
+
},
|
|
499
|
+
inlineHeader: {
|
|
500
|
+
paddingHorizontal: 12,
|
|
501
|
+
paddingVertical: 8,
|
|
502
|
+
borderBottomWidth: 1,
|
|
503
|
+
borderBottomColor: macOSColors.border.default,
|
|
504
|
+
backgroundColor: macOSColors.background.card
|
|
505
|
+
},
|
|
462
506
|
container: {
|
|
463
507
|
flex: 1,
|
|
464
508
|
backgroundColor: macOSColors.background.base
|
|
@@ -36,7 +36,7 @@ export { isAtomWatched } from "./jotai/utils/watchAtoms";
|
|
|
36
36
|
export type { JotaiStoreAPI } from "./jotai/utils/watchAtoms";
|
|
37
37
|
export { useJotaiAtomChanges } from "./jotai/hooks/useJotaiAtomChanges";
|
|
38
38
|
export type { UseJotaiAtomChangesResult } from "./jotai/hooks/useJotaiAtomChanges";
|
|
39
|
-
export { JotaiModal } from "./jotai/components/JotaiModal";
|
|
39
|
+
export { JotaiModal, JotaiToolView } from "./jotai/components/JotaiModal";
|
|
40
40
|
export { JotaiAtomChangeItem } from "./jotai/components/JotaiAtomChangeItem";
|
|
41
41
|
export { JotaiAtomDetailContent, JotaiAtomDetailFooter, } from "./jotai/components/JotaiAtomDetailContent";
|
|
42
42
|
export { JotaiIcon, JOTAI_ICON_COLOR } from "./jotai/components/JotaiIcon";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAKH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAKtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAKH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAKtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAOnF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAK3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAKjE,YAAY,EACV,eAAe,EACf,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAKvB,gBAAgB;AAChB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* JotaiIcon — re-exported from the Buoy Icon Format.
|
|
3
|
+
*
|
|
4
|
+
* The artwork lives in shared/icons/jotai.json and is generated into
|
|
5
|
+
* @buoy-gg/floating-tools-core, so React Native, the desktop dashboard and
|
|
6
|
+
* Flutter all render the same drawing. Edit the JSON, then `pnpm icons`.
|
|
3
7
|
*/
|
|
4
|
-
|
|
5
|
-
export declare function JotaiIcon({ size, color, }: {
|
|
6
|
-
size: number;
|
|
7
|
-
color?: string;
|
|
8
|
-
}): import("react").JSX.Element;
|
|
9
|
-
export { JOTAI_ICON_COLOR };
|
|
8
|
+
export { JotaiIcon, JOTAI_ICON_COLOR } from "@buoy-gg/shared-ui";
|
|
10
9
|
//# sourceMappingURL=JotaiIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JotaiIcon.d.ts","sourceRoot":"","sources":["../../../../src/jotai/components/JotaiIcon.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"JotaiIcon.d.ts","sourceRoot":"","sources":["../../../../src/jotai/components/JotaiIcon.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -6,5 +6,12 @@
|
|
|
6
6
|
* - Events tab: Live atom change monitoring with diffs
|
|
7
7
|
*/
|
|
8
8
|
import type { JotaiModalProps } from "../types";
|
|
9
|
-
export declare function JotaiModal({ visible, onClose, onBack, onMinimize, enableSharedModalDimensions, }: JotaiModalProps): import("react").JSX.Element | null;
|
|
9
|
+
export declare function JotaiModal({ visible, onClose, onBack, onMinimize, enableSharedModalDimensions, inline, }: JotaiModalProps): import("react").JSX.Element | null;
|
|
10
|
+
/**
|
|
11
|
+
* The same Jotai tool as `JotaiModal`, rendered INLINE for hosts that
|
|
12
|
+
* place tools in a panel rather than a modal. Exists so there is exactly one
|
|
13
|
+
* implementation — the desktop dashboard used to ship its own copy of this
|
|
14
|
+
* component's header, list and detail router.
|
|
15
|
+
*/
|
|
16
|
+
export declare function JotaiToolView(props?: Omit<JotaiModalProps, "visible" | "onClose" | "inline">): import("react").JSX.Element;
|
|
10
17
|
//# sourceMappingURL=JotaiModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JotaiModal.d.ts","sourceRoot":"","sources":["../../../../src/jotai/components/JotaiModal.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwCH,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,UAAU,CAAC;AAoBjE,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,2BAAmC,
|
|
1
|
+
{"version":3,"file":"JotaiModal.d.ts","sourceRoot":"","sources":["../../../../src/jotai/components/JotaiModal.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwCH,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,UAAU,CAAC;AAoBjE,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,OAAO,EACP,MAAM,EACN,UAAU,EACV,2BAAmC,EACnC,MAAc,GACf,EAAE,eAAe,sCA6gBjB;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,KAAK,GAAE,IAAI,CAAC,eAAe,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAM,+BAGpE"}
|
|
@@ -56,6 +56,13 @@ export interface JotaiFilter {
|
|
|
56
56
|
* Modal props for JotaiModal
|
|
57
57
|
*/
|
|
58
58
|
export interface JotaiModalProps {
|
|
59
|
+
/**
|
|
60
|
+
* Render as a header-bar + body (+ footer) stack instead of inside `JsModal`,
|
|
61
|
+
* for hosts that place tools in a panel rather than a modal (Buoy Desktop).
|
|
62
|
+
* Only the shell differs — header, screens and state are shared. See
|
|
63
|
+
* `JotaiToolView`.
|
|
64
|
+
*/
|
|
65
|
+
inline?: boolean;
|
|
59
66
|
visible: boolean;
|
|
60
67
|
onClose: () => void;
|
|
61
68
|
onBack?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/jotai/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IAGxB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,gBAA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BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/jotai",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"description": "Jotai devtools inside your React Native app — every atom write shows prev → next, with per-atom history & live values. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/
|
|
30
|
-
"@buoy-gg/
|
|
29
|
+
"@buoy-gg/shared-ui": "7.0.6",
|
|
30
|
+
"@buoy-gg/license": "7.0.6"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"jotai": ">=2.0.0",
|