@bigbinary/neeto-github-frontend 1.0.10 → 1.0.13

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.
@@ -2,6 +2,7 @@
2
2
  "neetoGithub": {
3
3
  "connect": "Connect",
4
4
  "github": "GitHub",
5
+ "fetchingRepos": "Please wait for a moment while we fetch your repositories",
5
6
  "noRepos": "No repositories found",
6
7
  "noReposDescription": "Connect a GitHub repository to begin using your existing repos for new services.",
7
8
  "notConnectedDescription": "Connect your {{appName, anyCase}} account to GitHub to begin using your existing repos for new services.",
package/dist/index.cjs.js CHANGED
@@ -3,28 +3,116 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
+ var classNames = require('classnames');
7
+ var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
8
+ var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
9
+ var reactI18next = require('react-i18next');
10
+ var ramda = require('ramda');
11
+ var reactQuery = require('react-query');
12
+ var axios = require('axios');
13
+ var constants = require('@bigbinary/neeto-commons-frontend/constants');
6
14
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
15
  var neetoIcons = require('@bigbinary/neeto-icons');
8
16
  var neetoui = require('@bigbinary/neetoui');
9
17
  var misc = require('@bigbinary/neeto-icons/misc');
10
- var classNames = require('classnames');
11
18
  var neetoCist = require('@bigbinary/neeto-cist');
12
19
  var Search = require('@bigbinary/neeto-molecules/Search');
13
- var reactI18next = require('react-i18next');
14
20
  var Scrollable = require('@bigbinary/neeto-molecules/Scrollable');
15
21
  var DateFormat = require('@bigbinary/neeto-molecules/DateFormat');
16
- var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
17
22
  var require$$0 = require('util');
18
23
 
19
24
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
20
25
 
21
26
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
22
27
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
28
+ var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
29
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
23
30
  var Search__default = /*#__PURE__*/_interopDefaultLegacy(Search);
24
31
  var Scrollable__default = /*#__PURE__*/_interopDefaultLegacy(Scrollable);
25
32
  var DateFormat__default = /*#__PURE__*/_interopDefaultLegacy(DateFormat);
26
33
  var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
27
34
 
35
+ function _typeof(o) {
36
+ "@babel/helpers - typeof";
37
+
38
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
39
+ return typeof o;
40
+ } : function (o) {
41
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
42
+ }, _typeof(o);
43
+ }
44
+
45
+ function _toPrimitive(input, hint) {
46
+ if (_typeof(input) !== "object" || input === null) return input;
47
+ var prim = input[Symbol.toPrimitive];
48
+ if (prim !== undefined) {
49
+ var res = prim.call(input, hint || "default");
50
+ if (_typeof(res) !== "object") return res;
51
+ throw new TypeError("@@toPrimitive must return a primitive value.");
52
+ }
53
+ return (hint === "string" ? String : Number)(input);
54
+ }
55
+
56
+ function _toPropertyKey(arg) {
57
+ var key = _toPrimitive(arg, "string");
58
+ return _typeof(key) === "symbol" ? key : String(key);
59
+ }
60
+
61
+ function _defineProperty(obj, key, value) {
62
+ key = _toPropertyKey(key);
63
+ if (key in obj) {
64
+ Object.defineProperty(obj, key, {
65
+ value: value,
66
+ enumerable: true,
67
+ configurable: true,
68
+ writable: true
69
+ });
70
+ } else {
71
+ obj[key] = value;
72
+ }
73
+ return obj;
74
+ }
75
+
76
+ var _globalProps$organiza$1;
77
+ var GITHUB_INTEGRATIONS_BASE_API_URL = "/github_integrations";
78
+ ({
79
+ integrator_id: initializers.globalProps === null || initializers.globalProps === void 0 || (_globalProps$organiza$1 = initializers.globalProps.organization) === null || _globalProps$organiza$1 === void 0 ? void 0 : _globalProps$organiza$1.id,
80
+ integrator_type: "Organization"
81
+ });
82
+ var GITHUB_INTEGRATOR_PARAMS = {
83
+ integratorId: initializers.globalProps.organization.id,
84
+ integratorType: "Organization"
85
+ };
86
+
87
+ var baseUrl = "".concat(GITHUB_INTEGRATIONS_BASE_API_URL, "/app_installations");
88
+ var githubAppUrl = function githubAppUrl(id) {
89
+ return "".concat(baseUrl, "/").concat(id);
90
+ };
91
+ var repositories = function repositories() {
92
+ return axios__default["default"].get("".concat(githubAppUrl(initializers.globalProps.githubAppInstallationId), "/repositories"), {
93
+ params: GITHUB_INTEGRATOR_PARAMS
94
+ });
95
+ };
96
+ var githubAccountsApi = {
97
+ repositories: repositories
98
+ };
99
+
100
+ var QUERY_KEYS = {
101
+ GITHUB_REPOSITORIES_LIST: "github-repositories-list"
102
+ };
103
+ var STALE_TIME_CONFIG = {
104
+ staleTime: constants.DEFAULT_STALE_TIME
105
+ };
106
+
107
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
108
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
109
+ var useFetchGithubRepositories = function useFetchGithubRepositories(_ref) {
110
+ var isConnected = _ref.isConnected;
111
+ return reactQuery.useQuery([QUERY_KEYS.GITHUB_REPOSITORIES_LIST], githubAccountsApi.repositories, _objectSpread(_objectSpread({}, STALE_TIME_CONFIG), {}, {
112
+ enabled: isConnected && ramda.isNotNil(initializers.globalProps.githubAppInstallationId)
113
+ }));
114
+ };
115
+
28
116
  var Configure = reactUtils.withT(function (_ref) {
29
117
  var t = _ref.t,
30
118
  isConnected = _ref.isConnected,
@@ -90,9 +178,9 @@ var List$1 = reactUtils.withT(function (_ref) {
90
178
  return window.open(profileUrl, "_blank");
91
179
  }
92
180
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
93
- className: "neeto-ui-text-gray-900 mx-2 text-sm",
181
+ className: "neeto-ui-text-gray-900 mx-2 text-lg",
94
182
  component: "span",
95
- style: "h3"
183
+ style: "h2"
96
184
  }, "\u2022"), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
97
185
  style: "body2"
98
186
  }, t("neetoGithub.countOf.repos", {
@@ -210,10 +298,15 @@ var NoRepositories = reactUtils.withT(function (_ref) {
210
298
  });
211
299
 
212
300
  var RepositoryTile = function RepositoryTile(_ref) {
213
- var onConnect = _ref.onConnect,
301
+ var isConnecting = _ref.isConnecting,
302
+ onConnect = _ref.onConnect,
214
303
  repository = _ref.repository;
215
304
  var _useTranslation = reactI18next.useTranslation(),
216
305
  t = _useTranslation.t;
306
+ var _useState = React.useState(false),
307
+ _useState2 = _slicedToArray(_useState, 2),
308
+ isLoading = _useState2[0],
309
+ setIsLoading = _useState2[1];
217
310
  var id = repository.id,
218
311
  fullName = repository.fullName,
219
312
  isPrivate = repository.isPrivate,
@@ -232,18 +325,21 @@ var RepositoryTile = function RepositoryTile(_ref) {
232
325
  }), /*#__PURE__*/React__default["default"].createElement("div", {
233
326
  className: "hidden md:inline-block"
234
327
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
235
- className: "neeto-ui-text-gray-900 mx-2 text-sm",
328
+ className: "neeto-ui-text-gray-900 mx-2 text-lg",
236
329
  component: "span",
237
- style: "h3"
330
+ style: "h2"
238
331
  }, "\u2022"), /*#__PURE__*/React__default["default"].createElement(DateFormat__default["default"].FromNow, {
239
332
  date: updatedAt
240
333
  }))), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
334
+ disabled: isConnecting,
335
+ loading: isLoading,
241
336
  style: "primary",
242
337
  type: "button",
243
338
  onClick: function onClick() {
244
339
  return onConnect({
245
340
  repoType: "private",
246
- repository: repository
341
+ repository: repository,
342
+ setIsLoading: setIsLoading
247
343
  });
248
344
  }
249
345
  }, t("neetoGithub.connect")));
@@ -254,6 +350,7 @@ var List = reactUtils.withT(function (_ref) {
254
350
  isPublicRepoAllowed = _ref.isPublicRepoAllowed,
255
351
  filteredRepositories = _ref.filteredRepositories,
256
352
  repositories = _ref.repositories,
353
+ isConnecting = _ref.isConnecting,
257
354
  onConnect = _ref.onConnect,
258
355
  installationUrl = _ref.installationUrl,
259
356
  troubleshootUrl = _ref.troubleshootUrl;
@@ -264,10 +361,12 @@ var List = reactUtils.withT(function (_ref) {
264
361
  })
265
362
  }, neetoCist.isPresent(repositories) ? /*#__PURE__*/React__default["default"].createElement(Scrollable__default["default"], {
266
363
  className: "m-0 h-full w-full overflow-y-scroll p-0 shadow-inner"
267
- }, neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository) {
364
+ }, neetoCist.isPresent(filteredRepositories) ? filteredRepositories.map(function (repository, index) {
268
365
  return /*#__PURE__*/React__default["default"].createElement(RepositoryTile, {
366
+ isConnecting: isConnecting,
269
367
  onConnect: onConnect,
270
- repository: repository
368
+ repository: repository,
369
+ key: index
271
370
  });
272
371
  }) : /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
273
372
  className: "flex h-full w-full items-center justify-center",
@@ -299,6 +398,7 @@ var NotConnected = reactUtils.withT(function (_ref) {
299
398
 
300
399
  var Private = function Private(_ref) {
301
400
  var isConnected = _ref.isConnected,
401
+ isConnecting = _ref.isConnecting,
302
402
  isPublicRepoAllowed = _ref.isPublicRepoAllowed,
303
403
  repositories = _ref.repositories,
304
404
  onConnect = _ref.onConnect,
@@ -337,9 +437,10 @@ var Private = function Private(_ref) {
337
437
  count: filteredRepositories.length
338
438
  }))
339
439
  }), /*#__PURE__*/React__default["default"].createElement(List, {
340
- isPublicRepoAllowed: isPublicRepoAllowed,
341
440
  filteredRepositories: filteredRepositories,
342
441
  installationUrl: installationUrl,
442
+ isConnecting: isConnecting,
443
+ isPublicRepoAllowed: isPublicRepoAllowed,
343
444
  onConnect: onConnect,
344
445
  repositories: repositories,
345
446
  troubleshootUrl: troubleshootUrl
@@ -353,13 +454,18 @@ var Private = function Private(_ref) {
353
454
  };
354
455
 
355
456
  var Public = function Public(_ref) {
356
- var onConnect = _ref.onConnect;
457
+ var isConnecting = _ref.isConnecting,
458
+ onConnect = _ref.onConnect;
357
459
  var _useTranslation = reactI18next.useTranslation(),
358
460
  t = _useTranslation.t;
359
- var _useState = React.useState(""),
461
+ var _useState = React.useState(false),
360
462
  _useState2 = _slicedToArray(_useState, 2),
361
- publicRepoUrl = _useState2[0],
362
- setPublicRepoUrl = _useState2[1];
463
+ isLoading = _useState2[0],
464
+ setIsLoading = _useState2[1];
465
+ var _useState3 = React.useState(""),
466
+ _useState4 = _slicedToArray(_useState3, 2),
467
+ publicRepoUrl = _useState4[0],
468
+ setPublicRepoUrl = _useState4[1];
363
469
  return /*#__PURE__*/React__default["default"].createElement("div", {
364
470
  className: "transition-drop-shadow neeto-ui-border-gray-300 neeto-ui-rounded-md border border-solid px-8 py-7 font-sans transition-colors"
365
471
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -399,7 +505,8 @@ var Public = function Public(_ref) {
399
505
  className: "relative"
400
506
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
401
507
  className: "rounded-b rounded-l-none rounded-r rounded-t",
402
- disabled: !neetoCist.isPresent(publicRepoUrl),
508
+ disabled: !neetoCist.isPresent(publicRepoUrl) || isLoading || isConnecting,
509
+ loading: isLoading,
403
510
  size: "large",
404
511
  style: "primary",
405
512
  type: "button",
@@ -408,7 +515,8 @@ var Public = function Public(_ref) {
408
515
  repoType: "public",
409
516
  repository: {
410
517
  fullName: publicRepoUrl
411
- }
518
+ },
519
+ setIsLoading: setIsLoading
412
520
  });
413
521
  }
414
522
  }, t("neetoGithub.continue"))))));
@@ -416,6 +524,7 @@ var Public = function Public(_ref) {
416
524
 
417
525
  var Repositories = function Repositories(_ref) {
418
526
  var isConnected = _ref.isConnected,
527
+ isConnecting = _ref.isConnecting,
419
528
  isPublicRepoAllowed = _ref.isPublicRepoAllowed,
420
529
  repositories = _ref.repositories,
421
530
  onConnect = _ref.onConnect,
@@ -424,35 +533,69 @@ var Repositories = function Repositories(_ref) {
424
533
  return /*#__PURE__*/React__default["default"].createElement("div", {
425
534
  className: "w-full space-y-6"
426
535
  }, /*#__PURE__*/React__default["default"].createElement(Private, {
427
- isPublicRepoAllowed: isPublicRepoAllowed,
428
536
  installationUrl: installationUrl,
429
537
  isConnected: isConnected,
538
+ isConnecting: isConnecting,
539
+ isPublicRepoAllowed: isPublicRepoAllowed,
430
540
  onConnect: onConnect,
431
541
  repositories: repositories,
432
542
  troubleshootUrl: troubleshootUrl
433
543
  }), isPublicRepoAllowed && /*#__PURE__*/React__default["default"].createElement(Public, {
544
+ isConnecting: isConnecting,
434
545
  onConnect: onConnect
435
546
  }));
436
547
  };
437
548
 
438
549
  var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
439
- var _ref$accounts = _ref.accounts,
440
- accounts = _ref$accounts === void 0 ? [] : _ref$accounts,
550
+ var _ref$isPaneLoading = _ref.isPaneLoading,
551
+ isPaneLoading = _ref$isPaneLoading === void 0 ? false : _ref$isPaneLoading,
552
+ _ref$shouldFetchRepos = _ref.shouldFetchRepositories,
553
+ shouldFetchRepositories = _ref$shouldFetchRepos === void 0 ? true : _ref$shouldFetchRepos,
554
+ _ref$paneAccounts = _ref.paneAccounts,
555
+ paneAccounts = _ref$paneAccounts === void 0 ? [] : _ref$paneAccounts,
441
556
  installationUrl = _ref.installationUrl,
442
557
  isConnected = _ref.isConnected,
558
+ _ref$isConnecting = _ref.isConnecting,
559
+ isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
443
560
  _ref$isPublicRepoAllo = _ref.isPublicRepoAllowed,
444
561
  isPublicRepoAllowed = _ref$isPublicRepoAllo === void 0 ? false : _ref$isPublicRepoAllo,
445
562
  onConnect = _ref.onConnect,
446
- _ref$repositories = _ref.repositories,
447
- repositories = _ref$repositories === void 0 ? [] : _ref$repositories,
563
+ _ref$paneRepositories = _ref.paneRepositories,
564
+ paneRepositories = _ref$paneRepositories === void 0 ? [] : _ref$paneRepositories,
448
565
  troubleshootUrl = _ref.troubleshootUrl,
449
566
  _ref$isPane = _ref.isPane,
450
567
  isPane = _ref$isPane === void 0 ? false : _ref$isPane;
568
+ var _useTranslation = reactI18next.useTranslation(),
569
+ t = _useTranslation.t;
570
+ var _useFetchGithubReposi = useFetchGithubRepositories({
571
+ isConnected: shouldFetchRepositories && initializers.globalProps.isGithubIntegrated
572
+ }),
573
+ _useFetchGithubReposi2 = _useFetchGithubReposi.data,
574
+ _useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
575
+ _useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
576
+ containerRepositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
577
+ _useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
578
+ containerAccounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
579
+ isContainerLoading = _useFetchGithubReposi.isLoading;
580
+ var repositories = shouldFetchRepositories ? containerRepositories : paneRepositories;
581
+ var accounts = shouldFetchRepositories ? containerAccounts : paneAccounts;
582
+ var isLoading = shouldFetchRepositories ? isContainerLoading : isPaneLoading;
583
+ if (isLoading) {
584
+ return /*#__PURE__*/React__default["default"].createElement("div", {
585
+ className: "flex h-96 w-full flex-col items-center"
586
+ }, /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], {
587
+ text: t("neetoGithub.fetchingRepos")
588
+ }), ";");
589
+ }
451
590
  return /*#__PURE__*/React__default["default"].createElement("div", {
452
- className: "flex w-full flex-col-reverse xl:flex-row"
591
+ className: classNames__default["default"]("flex w-full flex-col-reverse", {
592
+ "2xl:flex-row": isPane,
593
+ "xl:flex-row": !isPane
594
+ })
453
595
  }, /*#__PURE__*/React__default["default"].createElement(Repositories, {
454
596
  installationUrl: installationUrl,
455
597
  isConnected: isConnected,
598
+ isConnecting: isConnecting,
456
599
  isPublicRepoAllowed: isPublicRepoAllowed,
457
600
  onConnect: onConnect,
458
601
  repositories: repositories,
@@ -461,8 +604,8 @@ var NeetoGithubNanoContainer = function NeetoGithubNanoContainer(_ref) {
461
604
  accounts: accounts,
462
605
  installationUrl: installationUrl,
463
606
  isConnected: isConnected,
464
- onConnect: onConnect,
465
- isPane: isPane
607
+ isPane: isPane,
608
+ onConnect: onConnect
466
609
  }));
467
610
  };
468
611
 
@@ -2719,23 +2862,23 @@ var newInstallationParams = lib.stringify({
2719
2862
  var NEW_INSTALLATION_URL = "/github_integrations/app_installations/new?".concat(newInstallationParams);
2720
2863
  var TROUBLESHOOT_URL = "https://render.com/docs/github#troubleshooting";
2721
2864
 
2722
- var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2865
+ var NeetoGithubNanoPane = function NeetoGithubNanoPane(_ref) {
2723
2866
  var isOpen = _ref.isOpen,
2724
2867
  onClose = _ref.onClose,
2868
+ _ref$isConnecting = _ref.isConnecting,
2869
+ isConnecting = _ref$isConnecting === void 0 ? false : _ref$isConnecting,
2725
2870
  _ref$isConnected = _ref.isConnected,
2726
2871
  isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
2727
2872
  _ref$isPublicRepoAllo = _ref.isPublicRepoAllowed,
2728
2873
  isPublicRepoAllowed = _ref$isPublicRepoAllo === void 0 ? false : _ref$isPublicRepoAllo,
2729
- _ref$repositories = _ref.repositories,
2730
- repositories = _ref$repositories === void 0 ? [] : _ref$repositories,
2731
- _ref$accounts = _ref.accounts,
2732
- accounts = _ref$accounts === void 0 ? [] : _ref$accounts,
2733
2874
  _ref$installationUrl = _ref.installationUrl,
2734
2875
  installationUrl = _ref$installationUrl === void 0 ? NEW_INSTALLATION_URL : _ref$installationUrl,
2735
2876
  _ref$troubleshootUrl = _ref.troubleshootUrl,
2736
2877
  troubleshootUrl = _ref$troubleshootUrl === void 0 ? TROUBLESHOOT_URL : _ref$troubleshootUrl,
2737
2878
  _ref$onConnect = _ref.onConnect,
2738
2879
  onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect,
2880
+ _ref$projects = _ref.projects,
2881
+ projects = _ref$projects === void 0 ? [] : _ref$projects,
2739
2882
  _ref$title = _ref.title,
2740
2883
  title = _ref$title === void 0 ? "" : _ref$title,
2741
2884
  _ref$description = _ref.description,
@@ -2743,6 +2886,22 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2743
2886
  var _useTranslation = reactI18next.useTranslation(),
2744
2887
  t = _useTranslation.t;
2745
2888
  var initialFocusRef = React.useRef(null);
2889
+ var _useFetchGithubReposi = useFetchGithubRepositories({
2890
+ isConnected: isOpen && isConnected
2891
+ }),
2892
+ _useFetchGithubReposi2 = _useFetchGithubReposi.data,
2893
+ _useFetchGithubReposi3 = _useFetchGithubReposi2 === void 0 ? {} : _useFetchGithubReposi2,
2894
+ _useFetchGithubReposi4 = _useFetchGithubReposi3.repositories,
2895
+ repositories = _useFetchGithubReposi4 === void 0 ? [] : _useFetchGithubReposi4,
2896
+ _useFetchGithubReposi5 = _useFetchGithubReposi3.accounts,
2897
+ accounts = _useFetchGithubReposi5 === void 0 ? [] : _useFetchGithubReposi5,
2898
+ isPaneLoading = _useFetchGithubReposi.isLoading;
2899
+ var paneRepositories = repositories.filter(function (repository) {
2900
+ return !neetoCist.findBy({
2901
+ repository: repository.fullName
2902
+ }, projects);
2903
+ });
2904
+ var paneAccounts = isConnected ? accounts : [];
2746
2905
  return /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
2747
2906
  initialFocusRef: initialFocusRef,
2748
2907
  isOpen: isOpen,
@@ -2755,14 +2914,17 @@ var NeetoGithubNanoModal = function NeetoGithubNanoModal(_ref) {
2755
2914
  className: "mt-4",
2756
2915
  style: "body2"
2757
2916
  }, neetoCist.isPresent(description) ? description : t("neetoGithub.modal.description"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement(NeetoGithubNanoContainer, {
2758
- accounts: accounts,
2759
2917
  installationUrl: installationUrl,
2760
2918
  isConnected: isConnected,
2919
+ isConnecting: isConnecting,
2920
+ isPaneLoading: isPaneLoading,
2761
2921
  isPublicRepoAllowed: isPublicRepoAllowed,
2762
2922
  onConnect: onConnect,
2763
- repositories: repositories,
2923
+ paneAccounts: paneAccounts,
2924
+ paneRepositories: paneRepositories,
2764
2925
  troubleshootUrl: troubleshootUrl,
2765
- isPane: true
2926
+ isPane: true,
2927
+ shouldFetchRepositories: false
2766
2928
  })));
2767
2929
  };
2768
2930
 
@@ -2772,5 +2934,5 @@ var css = ".width-calc{width:calc(100% - 82px)}.neeto-github-modal-pane-wrapper{
2772
2934
  n(css,{});
2773
2935
 
2774
2936
  exports.NeetoGithubNanoContainer = NeetoGithubNanoContainer;
2775
- exports.NeetoGithubNanoModal = NeetoGithubNanoModal;
2937
+ exports.NeetoGithubNanoPane = NeetoGithubNanoPane;
2776
2938
  //# sourceMappingURL=index.cjs.js.map