@trops/dash-core 0.1.350 → 0.1.352
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/electron/index.js +2196 -2169
- package/dist/electron/index.js.map +1 -1
- package/dist/index.esm.js +21 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47737,7 +47737,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47737
47737
|
}
|
|
47738
47738
|
function _handleSave2() {
|
|
47739
47739
|
_handleSave2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
|
|
47740
|
-
var _window$
|
|
47740
|
+
var _window$mainApi4, updates, result;
|
|
47741
47741
|
return _regeneratorRuntime.wrap(function (_context3) {
|
|
47742
47742
|
while (1) switch (_context3.prev = _context3.next) {
|
|
47743
47743
|
case 0:
|
|
@@ -47753,7 +47753,7 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47753
47753
|
visibility: form.visibility
|
|
47754
47754
|
};
|
|
47755
47755
|
_context3.next = 2;
|
|
47756
|
-
return (_window$
|
|
47756
|
+
return (_window$mainApi4 = window.mainApi) === null || _window$mainApi4 === void 0 || (_window$mainApi4 = _window$mainApi4.registryAuth) === null || _window$mainApi4 === void 0 ? void 0 : _window$mainApi4.updatePackage(pkg.scope, pkg.name, updates);
|
|
47757
47757
|
case 2:
|
|
47758
47758
|
result = _context3.sent;
|
|
47759
47759
|
if (result) {
|
|
@@ -47781,14 +47781,14 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47781
47781
|
}
|
|
47782
47782
|
function _handleDelete() {
|
|
47783
47783
|
_handleDelete = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4() {
|
|
47784
|
-
var _window$
|
|
47784
|
+
var _window$mainApi5, result;
|
|
47785
47785
|
return _regeneratorRuntime.wrap(function (_context4) {
|
|
47786
47786
|
while (1) switch (_context4.prev = _context4.next) {
|
|
47787
47787
|
case 0:
|
|
47788
47788
|
setDeleting(true);
|
|
47789
47789
|
_context4.prev = 1;
|
|
47790
47790
|
_context4.next = 2;
|
|
47791
|
-
return (_window$
|
|
47791
|
+
return (_window$mainApi5 = window.mainApi) === null || _window$mainApi5 === void 0 || (_window$mainApi5 = _window$mainApi5.registryAuth) === null || _window$mainApi5 === void 0 ? void 0 : _window$mainApi5.deletePackage(pkg.scope, pkg.name);
|
|
47792
47792
|
case 2:
|
|
47793
47793
|
result = _context4.sent;
|
|
47794
47794
|
if (result) {
|
|
@@ -47915,6 +47915,16 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47915
47915
|
})]
|
|
47916
47916
|
});
|
|
47917
47917
|
}
|
|
47918
|
+
var isPrivate = pkg.visibility === "private";
|
|
47919
|
+
function openAccessPage(e) {
|
|
47920
|
+
var _window$mainApi3;
|
|
47921
|
+
e.stopPropagation();
|
|
47922
|
+
// Registry web URL. If we ever move off Amplify Hosting's default
|
|
47923
|
+
// domain this centralizes nicely into a config, but hardcoded is
|
|
47924
|
+
// consistent with how other files in the app already reference it.
|
|
47925
|
+
var url = "https://main.d919rwhuzp7rj.amplifyapp.com/package/".concat(encodeURIComponent(pkg.scope), "/").concat(encodeURIComponent(pkg.name), "/access");
|
|
47926
|
+
(_window$mainApi3 = window.mainApi) === null || _window$mainApi3 === void 0 || (_window$mainApi3 = _window$mainApi3.shell) === null || _window$mainApi3 === void 0 || _window$mainApi3.openExternal(url);
|
|
47927
|
+
}
|
|
47918
47928
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
47919
47929
|
onClick: onEdit,
|
|
47920
47930
|
className: "bg-white/5 rounded-lg p-3 cursor-pointer hover:bg-white/10 transition-colors",
|
|
@@ -47929,8 +47939,14 @@ var PackageItem = function PackageItem(_ref6) {
|
|
|
47929
47939
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-white/10 opacity-60",
|
|
47930
47940
|
children: ["v", pkg.version]
|
|
47931
47941
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
47932
|
-
className: "text-[10px] px-1.5 py-0.5 rounded ".concat(
|
|
47942
|
+
className: "text-[10px] px-1.5 py-0.5 rounded ".concat(isPrivate ? "bg-amber-500/20 text-amber-300" : "bg-emerald-500/20 text-emerald-300"),
|
|
47933
47943
|
children: pkg.visibility || "public"
|
|
47944
|
+
}), isPrivate && /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
47945
|
+
type: "button",
|
|
47946
|
+
onClick: openAccessPage,
|
|
47947
|
+
title: "Open the access management page in your browser",
|
|
47948
|
+
className: "ml-auto text-[10px] px-2 py-0.5 rounded border border-indigo-500/40 text-indigo-300 hover:text-white hover:bg-indigo-600/20 transition-colors",
|
|
47949
|
+
children: "Manage access \u2192"
|
|
47934
47950
|
})]
|
|
47935
47951
|
}), pkg.description && /*#__PURE__*/jsxRuntime.jsx("p", {
|
|
47936
47952
|
className: "text-xs opacity-50 truncate",
|