@bigbinary/neeto-github-frontend 1.0.4 → 1.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "neetoGithub": {
3
3
  "connect": "Connect",
4
- "github": "Github",
4
+ "github": "GitHub",
5
5
  "noRepos": "No repositories found",
6
6
  "noReposDescription": "Connect a GitHub repository to begin using your existing repos for new services.",
7
7
  "notConnectedDescription": "Connect your neetoCI account to GitHub to begin using your existing repos for new services.",
package/dist/index.cjs.js CHANGED
@@ -2373,7 +2373,7 @@ var _globalProps$organiza;
2373
2373
  var newInstallationParams = lib.stringify({
2374
2374
  integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 || (_globalProps$organiza = initializers.globalProps.organization) === null || _globalProps$organiza === void 0 ? void 0 : _globalProps$organiza.id,
2375
2375
  integrator_type: "Organization",
2376
- redirect_path: "/projects"
2376
+ redirect_path: "/projects/new"
2377
2377
  });
2378
2378
  var NEW_INSTALLATION_URL = "/github_integrations/app_installations/new?".concat(newInstallationParams);
2379
2379
  var TROUBLESHOOT_URL = "https://render.com/docs/github#troubleshooting";
@@ -2463,10 +2463,11 @@ var NoRepositories = reactUtils.withT(function (_ref) {
2463
2463
  })));
2464
2464
  });
2465
2465
 
2466
- var RepositoryTile = reactUtils.withT(function (_ref) {
2467
- var t = _ref.t,
2468
- onConnect = _ref.onConnect,
2466
+ var RepositoryTile = function RepositoryTile(_ref) {
2467
+ var onConnect = _ref.onConnect,
2469
2468
  repository = _ref.repository;
2469
+ var _useTranslation = reactI18next.useTranslation(),
2470
+ t = _useTranslation.t;
2470
2471
  var id = repository.id,
2471
2472
  fullName = repository.fullName,
2472
2473
  isPrivate = repository.isPrivate,
@@ -2500,7 +2501,7 @@ var RepositoryTile = reactUtils.withT(function (_ref) {
2500
2501
  });
2501
2502
  }
2502
2503
  }, t("neetoGithub.connect")));
2503
- });
2504
+ };
2504
2505
 
2505
2506
  var List = reactUtils.withT(function (_ref) {
2506
2507
  var t = _ref.t,
@@ -2673,7 +2674,7 @@ var Repositories = function Repositories(_ref) {
2673
2674
  installationUrl = _ref.installationUrl,
2674
2675
  troubleshootUrl = _ref.troubleshootUrl;
2675
2676
  return /*#__PURE__*/React__default["default"].createElement("div", {
2676
- className: "w-full space-y-6 2xl:max-w-4xl"
2677
+ className: "w-full space-y-6 2xl:max-w-7xl"
2677
2678
  }, /*#__PURE__*/React__default["default"].createElement(Private, {
2678
2679
  isPublicRepoAllowed: isPublicRepoAllowed,
2679
2680
  installationUrl: installationUrl,
@@ -2710,7 +2711,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2710
2711
  initialFocusRef: initialFocusRef,
2711
2712
  isOpen: isOpen,
2712
2713
  onClose: onClose,
2713
- closeButton: false,
2714
+ className: "neeto-github-modal-pane-wrapper",
2714
2715
  size: "large"
2715
2716
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
2716
2717
  style: "h2"
@@ -2718,7 +2719,7 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2718
2719
  className: "mt-4",
2719
2720
  style: "body2"
2720
2721
  }, t("neetoGithub.modal.description"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
2721
- className: "w-full 2xl:max-w-7xl"
2722
+ className: "w-full"
2722
2723
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2723
2724
  className: "flex flex-col-reverse 2xl:flex-row"
2724
2725
  }, /*#__PURE__*/React__default["default"].createElement(Repositories, {
@@ -2736,5 +2737,10 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2736
2737
  })))));
2737
2738
  };
2738
2739
 
2740
+ var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
2741
+
2742
+ var css = ".width-calc{width:calc(100% - 82px)}.neeto-github-modal-pane-wrapper{width:min(75%,1280px)}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3JlcG9zaXRvcnktdGlsZS5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvYXBwbGljYXRpb24uc2NzcyIsImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2NvbXBvbmVudHMvX3BhbmUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxZQUNFLHVCQ0NGLENDRkEsaUNBQ0UscUJES0YiLCJzb3VyY2VzQ29udGVudCI6WyIud2lkdGgtY2FsYyB7XG4gIHdpZHRoOiBjYWxjKDEwMCUgLSA4MnB4KTtcbn1cbiIsIi53aWR0aC1jYWxjIHtcbiAgd2lkdGg6IGNhbGMoMTAwJSAtIDgycHgpO1xufVxuXG4ubmVldG8tZ2l0aHViLW1vZGFsLXBhbmUtd3JhcHBlciB7XG4gIHdpZHRoOiBtaW4oNzUlLCAxMjgwcHgpO1xufSIsIi5uZWV0by1naXRodWItbW9kYWwtcGFuZS13cmFwcGVyIHtcbiAgd2lkdGg6IG1pbig3NSUsIDEyODBweCk7XG59XG4iXX0= */";
2743
+ n(css,{});
2744
+
2739
2745
  exports.NeetoGithubNanoModal = NeetoGithubNanoModal;
2740
2746
  //# sourceMappingURL=index.cjs.js.map