database-devtools 0.1.4 → 0.1.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/dist/{DatabaseDevTools-CdpQJBqG.d.ts → DatabaseDevTools-CQXd9NST.d.ts} +5 -1
- package/dist/{DatabaseDevTools-sw1wX5nW.d.cts → DatabaseDevTools-CZmvO9uq.d.cts} +5 -1
- package/dist/{chunk-KIQ3TEVO.js → chunk-SFLXGLHQ.js} +25 -14
- package/dist/chunk-SFLXGLHQ.js.map +1 -0
- package/dist/index.cjs +23 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/native.cjs +23 -12
- package/dist/native.cjs.map +1 -1
- package/dist/native.d.cts +1 -1
- package/dist/native.d.ts +1 -1
- package/dist/native.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-KIQ3TEVO.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { BroadcastMessage, BrowserConnectionInfo, ClientMessage, DEFAULT_DEVTOOL
|
|
|
3
3
|
export { A as AdapterCapabilities, D as DATABASE_DEVTOOLS_KIND, a as DatabaseKind, I as InspectorCapabilities, S as SNAPSHOT_KIND_HEADER, b as SNAPSHOT_MIME_HEADER, c as SNAPSHOT_NAME_HEADER, d as SQLITE_SNAPSHOT_MIME_TYPE, e as SnapshotExport, r as readDatabaseKindMarker } from './snapshot-Dknp_qP1.cjs';
|
|
4
4
|
import { D as DatabaseAdapter } from './adapter-DQyQ5ycj.cjs';
|
|
5
5
|
export { E as EditableDatabaseAdapter, W as WritableDatabaseAdapter, a as WriteResult, i as isEditableDatabaseAdapter, b as isWritableDatabaseAdapter } from './adapter-DQyQ5ycj.cjs';
|
|
6
|
-
export { D as DatabaseDevTools, a as DatabaseDevToolsProps, b as DatabaseDialect, F as FloatingButtonPosition } from './DatabaseDevTools-
|
|
6
|
+
export { D as DatabaseDevTools, a as DatabaseDevToolsProps, b as DatabaseDialect, F as FloatingButtonPosition } from './DatabaseDevTools-CZmvO9uq.cjs';
|
|
7
7
|
export { C as ColumnInfo, D as DatabaseInspector, I as InspectorDefinition, Q as QueryError, a as QueryResult, S as SchemaTable, T as TableInfo, b as TablePageRequest, c as TablePageResult } from './types-BQHZtFwx.cjs';
|
|
8
8
|
export { D as DeleteOperation, I as InsertOperation, U as UpdateOperation, W as WriteCellValue, a as WriteOperation } from './write-C3toEIMs.cjs';
|
|
9
9
|
export { A as AdapterDefinition, R as ResolveAdapterOptions } from './types-gT3gDw_T.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { BroadcastMessage, BrowserConnectionInfo, ClientMessage, DEFAULT_DEVTOOL
|
|
|
3
3
|
export { A as AdapterCapabilities, D as DATABASE_DEVTOOLS_KIND, a as DatabaseKind, I as InspectorCapabilities, S as SNAPSHOT_KIND_HEADER, b as SNAPSHOT_MIME_HEADER, c as SNAPSHOT_NAME_HEADER, d as SQLITE_SNAPSHOT_MIME_TYPE, e as SnapshotExport, r as readDatabaseKindMarker } from './snapshot-Dknp_qP1.js';
|
|
4
4
|
import { D as DatabaseAdapter } from './adapter-cIF5P6qI.js';
|
|
5
5
|
export { E as EditableDatabaseAdapter, W as WritableDatabaseAdapter, a as WriteResult, i as isEditableDatabaseAdapter, b as isWritableDatabaseAdapter } from './adapter-cIF5P6qI.js';
|
|
6
|
-
export { D as DatabaseDevTools, a as DatabaseDevToolsProps, b as DatabaseDialect, F as FloatingButtonPosition } from './DatabaseDevTools-
|
|
6
|
+
export { D as DatabaseDevTools, a as DatabaseDevToolsProps, b as DatabaseDialect, F as FloatingButtonPosition } from './DatabaseDevTools-CQXd9NST.js';
|
|
7
7
|
export { C as ColumnInfo, D as DatabaseInspector, I as InspectorDefinition, Q as QueryError, a as QueryResult, S as SchemaTable, T as TableInfo, b as TablePageRequest, c as TablePageResult } from './types-6nco_RRp.js';
|
|
8
8
|
export { D as DeleteOperation, I as InsertOperation, U as UpdateOperation, W as WriteCellValue, a as WriteOperation } from './write-C3toEIMs.js';
|
|
9
9
|
export { A as AdapterDefinition, R as ResolveAdapterOptions } from './types-DkVlU6t-.js';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DatabaseDevTools, handleBeginTransaction, handleCommitTransaction, handleExecuteWrite, handleRollbackTransaction, isEditableDatabaseAdapter, isWritableDatabaseAdapter } from './chunk-
|
|
1
|
+
export { DatabaseDevTools, handleBeginTransaction, handleCommitTransaction, handleExecuteWrite, handleRollbackTransaction, isEditableDatabaseAdapter, isWritableDatabaseAdapter } from './chunk-SFLXGLHQ.js';
|
|
2
2
|
import './chunk-O6AO7KHA.js';
|
|
3
3
|
export { fetchDeviceExportDatabase, fetchDeviceExportMeta, fetchDeviceExports, fetchProjectDatabase, fetchProjectDatabaseMeta, fetchProjectDatabases, resolveDeviceExportDatabaseMetaUrl, resolveDeviceExportDatabaseUrl, resolveDeviceExportsUrl, resolveProjectDatabaseMetaUrl, resolveProjectDatabaseUrl, resolveProjectDatabasesUrl } from './chunk-S4Z7A4TW.js';
|
|
4
4
|
export { createDevToolsClient, fetchSnapshot, handleDeviceSnapshotUpload } from './chunk-UNVCJMJK.js';
|
package/dist/native.cjs
CHANGED
|
@@ -2494,9 +2494,12 @@ function isFloatingButtonTap(totalMovement) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
var DEFAULT_ICON_SIZE = 22;
|
|
2496
2496
|
var DEFAULT_ICON_COLOR = "#f8fafc";
|
|
2497
|
+
var DEFAULT_BUTTON_COLOR = "#1e293b";
|
|
2497
2498
|
function FloatingDevToolsButton({
|
|
2498
2499
|
position = "bottom-right",
|
|
2499
2500
|
iconStyle,
|
|
2501
|
+
buttonColor,
|
|
2502
|
+
iconColor,
|
|
2500
2503
|
draggable = true,
|
|
2501
2504
|
snapToEdges = true,
|
|
2502
2505
|
floatingPosition,
|
|
@@ -2600,22 +2603,24 @@ function FloatingDevToolsButton({
|
|
|
2600
2603
|
if (!renderedPosition) {
|
|
2601
2604
|
return null;
|
|
2602
2605
|
}
|
|
2606
|
+
const resolvedButtonColor = buttonColor ?? DEFAULT_BUTTON_COLOR;
|
|
2607
|
+
const resolvedIconColor = iconColor ?? reactNative.StyleSheet.flatten(iconStyle)?.color ?? DEFAULT_ICON_COLOR;
|
|
2608
|
+
const buttonStyle = { backgroundColor: resolvedButtonColor };
|
|
2609
|
+
const statusDotStyle = {
|
|
2610
|
+
backgroundColor: getConnectionDotColor(connectionState),
|
|
2611
|
+
borderColor: resolvedButtonColor
|
|
2612
|
+
};
|
|
2603
2613
|
const buttonContent = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2604
2614
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2605
2615
|
MaterialCommunityIcons__default.default,
|
|
2606
2616
|
{
|
|
2607
|
-
color:
|
|
2617
|
+
color: resolvedIconColor,
|
|
2608
2618
|
name: "database",
|
|
2609
2619
|
size: DEFAULT_ICON_SIZE,
|
|
2610
2620
|
style: iconStyle
|
|
2611
2621
|
}
|
|
2612
2622
|
),
|
|
2613
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2614
|
-
reactNative.View,
|
|
2615
|
-
{
|
|
2616
|
-
style: [styles4.statusDot, { backgroundColor: getConnectionDotColor(connectionState) }]
|
|
2617
|
-
}
|
|
2618
|
-
)
|
|
2623
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactNative.View, { style: [styles4.statusDot, statusDotStyle] })
|
|
2619
2624
|
] });
|
|
2620
2625
|
if (!draggable) {
|
|
2621
2626
|
const positionStyle = position === "bottom-left" ? styles4.bottomLeft : styles4.bottomRight;
|
|
@@ -2625,7 +2630,11 @@ function FloatingDevToolsButton({
|
|
|
2625
2630
|
accessibilityLabel: "Open Database DevTools",
|
|
2626
2631
|
accessibilityRole: "button",
|
|
2627
2632
|
onPress: openLauncher,
|
|
2628
|
-
style: ({ pressed }) => [
|
|
2633
|
+
style: ({ pressed }) => [
|
|
2634
|
+
styles4.button,
|
|
2635
|
+
buttonStyle,
|
|
2636
|
+
pressed && styles4.buttonPressed
|
|
2637
|
+
],
|
|
2629
2638
|
children: buttonContent
|
|
2630
2639
|
}
|
|
2631
2640
|
) });
|
|
@@ -2650,7 +2659,7 @@ function FloatingDevToolsButton({
|
|
|
2650
2659
|
accessibilityHint: "Drag to move. Tap to open DevTools launcher.",
|
|
2651
2660
|
accessibilityLabel: "Open Database DevTools",
|
|
2652
2661
|
accessibilityRole: "button",
|
|
2653
|
-
style: [styles4.button, dragPosition && styles4.buttonDragging],
|
|
2662
|
+
style: [styles4.button, buttonStyle, dragPosition && styles4.buttonDragging],
|
|
2654
2663
|
children: buttonContent
|
|
2655
2664
|
}
|
|
2656
2665
|
)
|
|
@@ -2679,7 +2688,6 @@ var styles4 = reactNative.StyleSheet.create({
|
|
|
2679
2688
|
width: FLOATING_BUTTON_SIZE,
|
|
2680
2689
|
height: FLOATING_BUTTON_SIZE,
|
|
2681
2690
|
borderRadius: FLOATING_BUTTON_SIZE / 2,
|
|
2682
|
-
backgroundColor: "#1e293b",
|
|
2683
2691
|
alignItems: "center",
|
|
2684
2692
|
justifyContent: "center",
|
|
2685
2693
|
shadowColor: "#000",
|
|
@@ -2702,8 +2710,7 @@ var styles4 = reactNative.StyleSheet.create({
|
|
|
2702
2710
|
width: 10,
|
|
2703
2711
|
height: 10,
|
|
2704
2712
|
borderRadius: 5,
|
|
2705
|
-
borderWidth: 2
|
|
2706
|
-
borderColor: "#1e293b"
|
|
2713
|
+
borderWidth: 2
|
|
2707
2714
|
}
|
|
2708
2715
|
});
|
|
2709
2716
|
var explorerColors = {
|
|
@@ -3846,6 +3853,8 @@ function DatabaseDevTools({
|
|
|
3846
3853
|
floatingPosition,
|
|
3847
3854
|
onFloatingPositionChange,
|
|
3848
3855
|
style,
|
|
3856
|
+
buttonColor,
|
|
3857
|
+
iconColor,
|
|
3849
3858
|
onConnectionStateChange
|
|
3850
3859
|
}) {
|
|
3851
3860
|
if (!isDevToolsEnabled(enabled)) {
|
|
@@ -3863,8 +3872,10 @@ function DatabaseDevTools({
|
|
|
3863
3872
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3864
3873
|
FloatingDevToolsButton,
|
|
3865
3874
|
{
|
|
3875
|
+
buttonColor,
|
|
3866
3876
|
draggable,
|
|
3867
3877
|
floatingPosition,
|
|
3878
|
+
iconColor,
|
|
3868
3879
|
iconStyle: style,
|
|
3869
3880
|
onFloatingPositionChange,
|
|
3870
3881
|
position,
|