@buoy-gg/env 7.0.31 → 7.0.33
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.
|
@@ -220,21 +220,21 @@ function EnvVarsModal({
|
|
|
220
220
|
vars: filteredVars,
|
|
221
221
|
emptyMessage: ""
|
|
222
222
|
})]
|
|
223
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.
|
|
224
|
-
style: styles.emptyState,
|
|
223
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ToolEmptyState, {
|
|
225
224
|
testID: "buoy-env-empty",
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
225
|
+
...(0, _sharedUi.resolveListEmptyState)({
|
|
226
|
+
subject: "variables",
|
|
227
|
+
verb: "declared",
|
|
228
|
+
search: searchQuery,
|
|
229
|
+
total: allVars.length,
|
|
230
|
+
waiting: {
|
|
231
|
+
// A missing .env is a config problem, not a stream that has
|
|
232
|
+
// not started — `keys` is the env-and-secrets state.
|
|
233
|
+
otto: "keys",
|
|
234
|
+
title: "No variables",
|
|
235
|
+
message: `No ${activeFilter === "all" ? "" : activeFilter} variables found`
|
|
236
|
+
}
|
|
237
|
+
})
|
|
238
238
|
})]
|
|
239
239
|
});
|
|
240
240
|
|
|
@@ -245,6 +245,7 @@ function EnvVarsModal({
|
|
|
245
245
|
style: styles.inlineRoot,
|
|
246
246
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
247
247
|
style: styles.inlineHeader,
|
|
248
|
+
..._sharedUi.windowDragProps,
|
|
248
249
|
children: header
|
|
249
250
|
}), body]
|
|
250
251
|
});
|
|
@@ -363,22 +364,5 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
363
364
|
fontWeight: "500",
|
|
364
365
|
color: _sharedUi.night.color.accent,
|
|
365
366
|
fontFamily: "monospace"
|
|
366
|
-
},
|
|
367
|
-
emptyState: {
|
|
368
|
-
alignItems: "center",
|
|
369
|
-
justifyContent: "center",
|
|
370
|
-
paddingVertical: 48
|
|
371
|
-
},
|
|
372
|
-
emptyTitle: {
|
|
373
|
-
fontSize: 16,
|
|
374
|
-
fontWeight: "600",
|
|
375
|
-
color: _sharedUi.night.color.text,
|
|
376
|
-
marginTop: 12,
|
|
377
|
-
marginBottom: 8
|
|
378
|
-
},
|
|
379
|
-
emptySubtitle: {
|
|
380
|
-
fontSize: 13,
|
|
381
|
-
color: _sharedUi.night.color.textSecondary,
|
|
382
|
-
textAlign: "center"
|
|
383
367
|
}
|
|
384
368
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { JsModal, devToolsStorageKeys, ModalHeader, HeaderSearchButton, Search, X, displayValue, buoyColors, night } from "@buoy-gg/shared-ui";
|
|
3
|
+
import { JsModal, devToolsStorageKeys, ModalHeader, HeaderSearchButton, Search, X, displayValue, buoyColors, night, windowDragProps, ToolEmptyState, resolveListEmptyState } from "@buoy-gg/shared-ui";
|
|
4
4
|
import { useCallback, useState, useRef, useEffect, useMemo } from "react";
|
|
5
5
|
import { View, TextInput, TouchableOpacity, StyleSheet, ScrollView, Text } from "react-native";
|
|
6
6
|
import { EnvStatsOverview } from "./EnvStatsOverview";
|
|
@@ -215,21 +215,21 @@ export function EnvVarsModal({
|
|
|
215
215
|
vars: filteredVars,
|
|
216
216
|
emptyMessage: ""
|
|
217
217
|
})]
|
|
218
|
-
}) : /*#__PURE__*/
|
|
219
|
-
style: styles.emptyState,
|
|
218
|
+
}) : /*#__PURE__*/_jsx(ToolEmptyState, {
|
|
220
219
|
testID: "buoy-env-empty",
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
220
|
+
...resolveListEmptyState({
|
|
221
|
+
subject: "variables",
|
|
222
|
+
verb: "declared",
|
|
223
|
+
search: searchQuery,
|
|
224
|
+
total: allVars.length,
|
|
225
|
+
waiting: {
|
|
226
|
+
// A missing .env is a config problem, not a stream that has
|
|
227
|
+
// not started — `keys` is the env-and-secrets state.
|
|
228
|
+
otto: "keys",
|
|
229
|
+
title: "No variables",
|
|
230
|
+
message: `No ${activeFilter === "all" ? "" : activeFilter} variables found`
|
|
231
|
+
}
|
|
232
|
+
})
|
|
233
233
|
})]
|
|
234
234
|
});
|
|
235
235
|
|
|
@@ -240,6 +240,7 @@ export function EnvVarsModal({
|
|
|
240
240
|
style: styles.inlineRoot,
|
|
241
241
|
children: [/*#__PURE__*/_jsx(View, {
|
|
242
242
|
style: styles.inlineHeader,
|
|
243
|
+
...windowDragProps,
|
|
243
244
|
children: header
|
|
244
245
|
}), body]
|
|
245
246
|
});
|
|
@@ -358,22 +359,5 @@ const styles = StyleSheet.create({
|
|
|
358
359
|
fontWeight: "500",
|
|
359
360
|
color: night.color.accent,
|
|
360
361
|
fontFamily: "monospace"
|
|
361
|
-
},
|
|
362
|
-
emptyState: {
|
|
363
|
-
alignItems: "center",
|
|
364
|
-
justifyContent: "center",
|
|
365
|
-
paddingVertical: 48
|
|
366
|
-
},
|
|
367
|
-
emptyTitle: {
|
|
368
|
-
fontSize: 16,
|
|
369
|
-
fontWeight: "600",
|
|
370
|
-
color: night.color.text,
|
|
371
|
-
marginTop: 12,
|
|
372
|
-
marginBottom: 8
|
|
373
|
-
},
|
|
374
|
-
emptySubtitle: {
|
|
375
|
-
fontSize: 13,
|
|
376
|
-
color: night.color.textSecondary,
|
|
377
|
-
textAlign: "center"
|
|
378
362
|
}
|
|
379
363
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvVarsModal.d.ts","sourceRoot":"","sources":["../../../../src/env/components/EnvVarsModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EnvVarsModal.d.ts","sourceRoot":"","sources":["../../../../src/env/components/EnvVarsModal.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAc,MAAM,UAAU,CAAC;AAUtD,UAAU,iBAAiB;IACzB,4CAA4C;IAC5C,OAAO,EAAE,OAAO,CAAC;IACjB,qDAAqD;IACrD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qFAAqF;IACrF,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,IAAI,CAAC;IACvC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,OAAO,EACP,eAAe,EACf,MAAM,EACN,UAAU,EACV,2BAAmC,EACnC,MAAc,GACf,EAAE,iBAAiB,sCA2RnB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAC1B,eAAe,GAChB,EAAE;IACD,eAAe,EAAE,cAAc,EAAE,CAAC;CACnC,+BASA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/env",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.33",
|
|
4
4
|
"description": "Environment variable devtool for React Native — auto-discovers EXPO_PUBLIC_ vars, validates types, scores config health. 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/floating-tools-core": "^7.0.33",
|
|
30
|
+
"@buoy-gg/shared-ui": "^7.0.33"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "*",
|