altair-graphql-core 4.2.1 → 4.2.2

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.
Files changed (88) hide show
  1. package/build/config.d.ts +42 -30
  2. package/build/config.js +11 -16
  3. package/build/index.d.ts +1 -0
  4. package/build/index.js +1 -4
  5. package/build/plugin/base.d.ts +1 -0
  6. package/build/plugin/base.js +1 -5
  7. package/build/plugin/context/context.interface.d.ts +3 -2
  8. package/build/plugin/context/context.interface.js +1 -2
  9. package/build/plugin/event/event.interfaces.d.ts +1 -0
  10. package/build/plugin/event/event.interfaces.js +1 -2
  11. package/build/plugin/panel.d.ts +1 -0
  12. package/build/plugin/panel.js +5 -9
  13. package/build/plugin/plugin.interfaces.d.ts +1 -0
  14. package/build/plugin/plugin.interfaces.js +5 -8
  15. package/build/plugin/ui-action.d.ts +1 -0
  16. package/build/plugin/ui-action.js +5 -9
  17. package/build/subscriptions/index.d.ts +1 -0
  18. package/build/subscriptions/index.js +9 -12
  19. package/build/subscriptions/providers/action-cable.d.ts +1 -0
  20. package/build/subscriptions/providers/action-cable.js +6 -13
  21. package/build/subscriptions/providers/app-sync.d.ts +1 -0
  22. package/build/subscriptions/providers/app-sync.js +14 -18
  23. package/build/subscriptions/providers/graphql-ws.d.ts +2 -0
  24. package/build/subscriptions/providers/graphql-ws.js +9 -11
  25. package/build/subscriptions/providers/ws.d.ts +2 -0
  26. package/build/subscriptions/providers/ws.js +10 -11
  27. package/build/subscriptions/subscription-provider.d.ts +1 -0
  28. package/build/subscriptions/subscription-provider.js +1 -5
  29. package/build/theme/defaults/dark.d.ts +1 -0
  30. package/build/theme/defaults/dark.js +16 -18
  31. package/build/theme/defaults/dracula.d.ts +1 -0
  32. package/build/theme/defaults/dracula.js +1 -3
  33. package/build/theme/defaults/light.d.ts +1 -0
  34. package/build/theme/defaults/light.js +1 -3
  35. package/build/theme/index.d.ts +1 -0
  36. package/build/theme/index.js +7 -23
  37. package/build/theme/theme.d.ts +1 -0
  38. package/build/theme/theme.js +31 -37
  39. package/build/types/shared.d.ts +1 -0
  40. package/build/types/shared.js +1 -2
  41. package/build/types/state/account.interfaces.d.ts +8 -0
  42. package/build/types/state/account.interfaces.js +1 -0
  43. package/build/types/state/collection.interfaces.d.ts +15 -4
  44. package/build/types/state/collection.interfaces.js +1 -2
  45. package/build/types/state/dialog.interfaces.d.ts +1 -0
  46. package/build/types/state/dialog.interfaces.js +1 -2
  47. package/build/types/state/docs.interfaces.d.ts +1 -0
  48. package/build/types/state/docs.interfaces.js +1 -2
  49. package/build/types/state/donation.interfaces.d.ts +1 -0
  50. package/build/types/state/donation.interfaces.js +1 -2
  51. package/build/types/state/environments.interfaces.d.ts +1 -0
  52. package/build/types/state/environments.interfaces.js +1 -2
  53. package/build/types/state/gql-schema.interfaces.d.ts +1 -0
  54. package/build/types/state/gql-schema.interfaces.js +1 -2
  55. package/build/types/state/header.interfaces.d.ts +1 -0
  56. package/build/types/state/header.interfaces.js +1 -2
  57. package/build/types/state/history.interfaces.d.ts +1 -0
  58. package/build/types/state/history.interfaces.js +1 -2
  59. package/build/types/state/layout.interfaces.d.ts +1 -0
  60. package/build/types/state/layout.interfaces.js +1 -2
  61. package/build/types/state/local.interfaces.d.ts +1 -0
  62. package/build/types/state/local.interfaces.js +1 -2
  63. package/build/types/state/per-window.interfaces.d.ts +1 -0
  64. package/build/types/state/per-window.interfaces.js +1 -2
  65. package/build/types/state/postrequest.interfaces.d.ts +1 -0
  66. package/build/types/state/postrequest.interfaces.js +1 -2
  67. package/build/types/state/prerequest.interfaces.d.ts +1 -0
  68. package/build/types/state/prerequest.interfaces.js +1 -2
  69. package/build/types/state/query.interfaces.d.ts +1 -0
  70. package/build/types/state/query.interfaces.js +1 -4
  71. package/build/types/state/settings.interfaces.d.ts +5 -0
  72. package/build/types/state/settings.interfaces.js +2 -4
  73. package/build/types/state/state.interfaces.d.ts +3 -0
  74. package/build/types/state/state.interfaces.js +1 -2
  75. package/build/types/state/stream.interfaces.d.ts +1 -0
  76. package/build/types/state/stream.interfaces.js +1 -2
  77. package/build/types/state/variable.interfaces.d.ts +1 -0
  78. package/build/types/state/variable.interfaces.js +1 -2
  79. package/build/types/state/window.interfaces.d.ts +4 -1
  80. package/build/types/state/window.interfaces.js +1 -2
  81. package/build/types/state/windows-meta.interfaces.d.ts +2 -0
  82. package/build/types/state/windows-meta.interfaces.js +1 -2
  83. package/build/utils/is_electron.d.ts +1 -0
  84. package/build/utils/is_electron.js +1 -3
  85. package/build/utils/logger.d.ts +1 -0
  86. package/build/utils/logger.js +7 -13
  87. package/package.json +3 -3
  88. package/tsconfig.json +3 -1
@@ -1,12 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const theme_1 = require("../theme");
1
+ import { foundations } from '../theme';
4
2
  const theme = {
5
3
  colors: {
6
- bg: theme_1.foundations.colors.black,
4
+ bg: foundations.colors.black,
7
5
  offBg: '#3f4349',
8
- font: theme_1.foundations.colors.white,
9
- offFont: theme_1.foundations.colors.lightGray,
6
+ font: foundations.colors.white,
7
+ offFont: foundations.colors.lightGray,
10
8
  border: '#565c64',
11
9
  offBorder: '#565656',
12
10
  headerBg: '#3f4349',
@@ -16,18 +14,18 @@ const theme = {
16
14
  },
17
15
  editor: {
18
16
  colors: {
19
- comment: theme_1.foundations.colors.darkGray,
20
- string: theme_1.foundations.colors.orange,
21
- number: theme_1.foundations.colors.orange,
22
- variable: theme_1.foundations.colors.white,
23
- attribute: theme_1.foundations.colors.green,
24
- keyword: theme_1.foundations.colors.blue,
25
- atom: theme_1.foundations.colors.white,
26
- property: theme_1.foundations.colors.blue,
27
- definition: theme_1.foundations.colors.orange,
28
- punctuation: theme_1.foundations.colors.blue,
29
- cursor: theme_1.foundations.colors.blue,
17
+ comment: foundations.colors.darkGray,
18
+ string: foundations.colors.orange,
19
+ number: foundations.colors.orange,
20
+ variable: foundations.colors.white,
21
+ attribute: foundations.colors.green,
22
+ keyword: foundations.colors.blue,
23
+ atom: foundations.colors.white,
24
+ property: foundations.colors.blue,
25
+ definition: foundations.colors.orange,
26
+ punctuation: foundations.colors.blue,
27
+ cursor: foundations.colors.blue,
30
28
  }
31
29
  },
32
30
  };
33
- exports.default = theme;
31
+ export default theme;
@@ -1,3 +1,4 @@
1
1
  import { ICustomTheme } from '../theme';
2
2
  declare const theme: ICustomTheme;
3
3
  export default theme;
4
+ //# sourceMappingURL=dracula.d.ts.map
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const theme = {
4
2
  colors: {
5
3
  bg: '#282a36',
@@ -25,4 +23,4 @@ const theme = {
25
23
  }
26
24
  }
27
25
  };
28
- exports.default = theme;
26
+ export default theme;
@@ -1,3 +1,4 @@
1
1
  import { ICustomTheme } from '../theme';
2
2
  declare const theme: ICustomTheme;
3
3
  export default theme;
4
+ //# sourceMappingURL=light.d.ts.map
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const theme = {};
4
- exports.default = theme;
2
+ export default theme;
@@ -188,3 +188,4 @@ export declare const dracula: {
188
188
  };
189
189
  };
190
190
  };
191
+ //# sourceMappingURL=index.d.ts.map
@@ -1,23 +1,7 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- var __importDefault = (this && this.__importDefault) || function (mod) {
13
- return (mod && mod.__esModule) ? mod : { "default": mod };
14
- };
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.dracula = exports.dark = exports.light = void 0;
17
- const light_1 = __importDefault(require("./defaults/light"));
18
- const dark_1 = __importDefault(require("./defaults/dark"));
19
- const dracula_1 = __importDefault(require("./defaults/dracula"));
20
- __exportStar(require("./theme"), exports);
21
- exports.light = light_1.default;
22
- exports.dark = dark_1.default;
23
- exports.dracula = dracula_1.default;
1
+ import lightTheme from './defaults/light';
2
+ import darkTheme from './defaults/dark';
3
+ import draculaTheme from './defaults/dracula';
4
+ export * from './theme';
5
+ export const light = lightTheme;
6
+ export const dark = darkTheme;
7
+ export const dracula = draculaTheme;
@@ -102,3 +102,4 @@ export declare const hexToRgbStr: (hex: string) => string;
102
102
  export declare const mergeThemes: (...customThemes: ICustomTheme[]) => ICustomTheme;
103
103
  export declare const createTheme: (customTheme: ICustomTheme, extraTheme?: ICustomTheme) => ITheme;
104
104
  export {};
105
+ //# sourceMappingURL=theme.d.ts.map
@@ -1,12 +1,6 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createTheme = exports.mergeThemes = exports.hexToRgbStr = exports.foundations = void 0;
7
- const deepmerge_1 = __importDefault(require("deepmerge"));
1
+ import deepmerge from 'deepmerge';
8
2
  const convertCssColorNameToHex = require('convert-css-color-name-to-hex');
9
- exports.foundations = {
3
+ export const foundations = {
10
4
  easing: 'ease',
11
5
  colors: {
12
6
  black: '#33363b',
@@ -35,41 +29,41 @@ exports.foundations = {
35
29
  },
36
30
  },
37
31
  };
38
- const theme = deepmerge_1.default(exports.foundations, {
32
+ const theme = deepmerge(foundations, {
39
33
  isSystem: false,
40
34
  colors: {
41
- primary: exports.foundations.colors.green,
42
- secondary: exports.foundations.colors.blue,
43
- bg: exports.foundations.colors.white,
44
- offBg: exports.foundations.colors.lightGray,
45
- font: exports.foundations.colors.black,
46
- offFont: exports.foundations.colors.darkGray,
47
- border: exports.foundations.colors.gray,
48
- offBorder: exports.foundations.colors.lightGray,
49
- headerBg: exports.foundations.colors.white,
35
+ primary: foundations.colors.green,
36
+ secondary: foundations.colors.blue,
37
+ bg: foundations.colors.white,
38
+ offBg: foundations.colors.lightGray,
39
+ font: foundations.colors.black,
40
+ offFont: foundations.colors.darkGray,
41
+ border: foundations.colors.gray,
42
+ offBorder: foundations.colors.lightGray,
43
+ headerBg: foundations.colors.white,
50
44
  },
51
45
  shadow: {
52
- color: exports.foundations.colors.black,
46
+ color: foundations.colors.black,
53
47
  opacity: .1,
54
48
  },
55
49
  editor: {
56
50
  fontFamily: {
57
51
  default: 'JetBrains Mono',
58
52
  },
59
- fontSize: exports.foundations.type.fontSize.bodySmaller,
53
+ fontSize: foundations.type.fontSize.bodySmaller,
60
54
  colors: {
61
- comment: exports.foundations.colors.darkGray,
62
- string: exports.foundations.colors.orange,
63
- number: exports.foundations.colors.orange,
64
- variable: exports.foundations.colors.black,
65
- keyword: exports.foundations.colors.blue,
66
- atom: exports.foundations.colors.black,
67
- attribute: exports.foundations.colors.green,
68
- property: exports.foundations.colors.blue,
69
- punctuation: exports.foundations.colors.blue,
70
- definition: exports.foundations.colors.orange,
71
- builtin: exports.foundations.colors.orange,
72
- cursor: exports.foundations.colors.blue,
55
+ comment: foundations.colors.darkGray,
56
+ string: foundations.colors.orange,
57
+ number: foundations.colors.orange,
58
+ variable: foundations.colors.black,
59
+ keyword: foundations.colors.blue,
60
+ atom: foundations.colors.black,
61
+ attribute: foundations.colors.green,
62
+ property: foundations.colors.blue,
63
+ punctuation: foundations.colors.blue,
64
+ definition: foundations.colors.orange,
65
+ builtin: foundations.colors.orange,
66
+ cursor: foundations.colors.blue,
73
67
  },
74
68
  }
75
69
  });
@@ -101,7 +95,7 @@ const hexToRgb = (hex) => {
101
95
  b: parseInt(result[3], 16)
102
96
  } : undefined;
103
97
  };
104
- exports.hexToRgbStr = (hex) => {
98
+ export const hexToRgbStr = (hex) => {
105
99
  if (!hex) {
106
100
  return '';
107
101
  }
@@ -130,9 +124,9 @@ const rgbTint = (rgb, i) => {
130
124
  b: rgb.b + (255 - rgb.b) * i * 0.1
131
125
  };
132
126
  };
133
- exports.mergeThemes = (...customThemes) => {
134
- return deepmerge_1.default.all(customThemes);
127
+ export const mergeThemes = (...customThemes) => {
128
+ return deepmerge.all(customThemes);
135
129
  };
136
- exports.createTheme = (customTheme, extraTheme = {}) => {
137
- return deepmerge_1.default.all([theme, customTheme, extraTheme]);
130
+ export const createTheme = (customTheme, extraTheme = {}) => {
131
+ return deepmerge.all([theme, customTheme, extraTheme]);
138
132
  };
@@ -3,3 +3,4 @@ export interface IDictionary<V = any> {
3
3
  }
4
4
  export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
5
5
  export declare type TODO = any;
6
+ //# sourceMappingURL=shared.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface AccountState {
2
+ loggedIn: boolean;
3
+ accessToken: string;
4
+ firstName: string;
5
+ lastName: string;
6
+ email: string;
7
+ }
8
+ //# sourceMappingURL=account.interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -6,20 +6,31 @@ export interface CollectionState {
6
6
  sortBy: SortByOptions;
7
7
  }
8
8
  export interface IQuery extends ExportWindowState {
9
- id?: number;
9
+ id?: string;
10
+ serverId?: number;
10
11
  created_at?: number;
11
12
  updated_at?: number;
12
13
  }
13
14
  export interface IQueryCollection {
14
15
  id?: number;
16
+ serverId?: number;
15
17
  title: string;
18
+ queries: IQuery[];
16
19
  description?: string;
17
- queries: any[];
18
- collections?: IQueryCollection[];
20
+ /**
21
+ * path of the collection in the collection tree
22
+ * e.g. '/123/456'
23
+ */
24
+ parentPath?: string;
19
25
  created_at?: number;
20
26
  updated_at?: number;
21
27
  }
22
- export interface ExportCollectionState extends IQueryCollection {
28
+ export interface IQueryCollectionTree extends IQueryCollection {
29
+ id: number;
30
+ collections?: IQueryCollectionTree[];
31
+ }
32
+ export interface ExportCollectionState extends IQueryCollectionTree {
23
33
  version: 1;
24
34
  type: 'collection';
25
35
  }
36
+ //# sourceMappingURL=collection.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -6,3 +6,4 @@ export interface DialogState {
6
6
  showAddToCollectionDialog: boolean;
7
7
  showPreRequestDialog: boolean;
8
8
  }
9
+ //# sourceMappingURL=dialog.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -17,3 +17,4 @@ export interface DocsState {
17
17
  isLoading: boolean;
18
18
  docView: DocView;
19
19
  }
20
+ //# sourceMappingURL=docs.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,3 +1,4 @@
1
1
  export interface DonationState {
2
2
  showAlert: boolean;
3
3
  }
4
+ //# sourceMappingURL=donation.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -19,3 +19,4 @@ export interface EnvironmentsState {
19
19
  activeSubEnvironment?: string;
20
20
  }
21
21
  export {};
22
+ //# sourceMappingURL=environments.interfaces.d.ts.map
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  ;
2
+ export {};
@@ -6,3 +6,4 @@ export interface GQLSchemaState {
6
6
  allowIntrospection: boolean;
7
7
  lastUpdatedAt?: number;
8
8
  }
9
+ //# sourceMappingURL=gql-schema.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -4,3 +4,4 @@ export interface Header {
4
4
  enabled?: boolean;
5
5
  }
6
6
  export declare type HeaderState = Header[];
7
+ //# sourceMappingURL=header.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -4,3 +4,4 @@ export interface History {
4
4
  export interface HistoryState {
5
5
  list: History[];
6
6
  }
7
+ //# sourceMappingURL=history.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -5,3 +5,4 @@ export interface LayoutState {
5
5
  windowIdInCollection?: string;
6
6
  hasDynamicTitle?: boolean;
7
7
  }
8
+ //# sourceMappingURL=layout.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -16,3 +16,4 @@ export interface LocalState {
16
16
  panels: AltairPanel[];
17
17
  uiActions: AltairUiAction[];
18
18
  }
19
+ //# sourceMappingURL=local.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -23,3 +23,4 @@ export interface PerWindowState {
23
23
  postRequest: PostrequestState;
24
24
  windowId: string;
25
25
  }
26
+ //# sourceMappingURL=per-window.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -2,3 +2,4 @@ export interface PostrequestState {
2
2
  enabled: boolean;
3
3
  script: string;
4
4
  }
5
+ //# sourceMappingURL=postrequest.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -2,3 +2,4 @@ export interface PrerequestState {
2
2
  enabled: boolean;
3
3
  script: string;
4
4
  }
5
+ //# sourceMappingURL=prerequest.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -40,3 +40,4 @@ export interface QueryState {
40
40
  }
41
41
  export declare const HTTP_VERBS: readonly ["POST", "GET", "PUT", "DELETE"];
42
42
  export declare type HttpVerb = typeof HTTP_VERBS[number];
43
+ //# sourceMappingURL=query.interfaces.d.ts.map
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HTTP_VERBS = void 0;
4
- exports.HTTP_VERBS = ['POST', 'GET', 'PUT', 'DELETE'];
1
+ export const HTTP_VERBS = ['POST', 'GET', 'PUT', 'DELETE'];
@@ -56,6 +56,10 @@ export interface SettingsState {
56
56
  * Reload schema on app start
57
57
  */
58
58
  'schema.reloadOnStart'?: boolean;
59
+ /**
60
+ * Disable update notification
61
+ */
62
+ 'alert.disableUpdateNotification'?: boolean;
59
63
  /**
60
64
  * Disable warning alerts
61
65
  */
@@ -82,3 +86,4 @@ export interface SettingsState {
82
86
  'editor.shortcuts'?: Record<string, string>;
83
87
  }
84
88
  export {};
89
+ //# sourceMappingURL=settings.interfaces.d.ts.map
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_1 = require("../../config");
4
- const config = config_1.getAltairConfig();
1
+ import { getAltairConfig } from '../../config';
2
+ const config = getAltairConfig();
@@ -1,3 +1,4 @@
1
+ import { AccountState } from './account.interfaces';
1
2
  import { CollectionState } from './collection.interfaces';
2
3
  import { DonationState } from './donation.interfaces';
3
4
  import { EnvironmentsState } from './environments.interfaces';
@@ -13,4 +14,6 @@ export interface RootState {
13
14
  collection: CollectionState;
14
15
  environments: EnvironmentsState;
15
16
  local: LocalState;
17
+ account: AccountState;
16
18
  }
19
+ //# sourceMappingURL=state.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -5,3 +5,4 @@ export interface StreamState {
5
5
  isConnected: boolean;
6
6
  failed: any;
7
7
  }
8
+ //# sourceMappingURL=stream.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -8,3 +8,4 @@ export interface VariableState {
8
8
  variables: string;
9
9
  files: FileVariable[];
10
10
  }
11
+ //# sourceMappingURL=variable.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { GraphQLSchema } from 'graphql';
2
+ import { SubscriptionProviderIds } from '../../subscriptions';
2
3
  import { PerWindowState } from './per-window.interfaces';
3
4
  export interface WindowState {
4
- [id: string]: PerWindowState;
5
+ [id: string]: PerWindowState | undefined;
5
6
  }
6
7
  /**
7
8
  * Data structure for exported windows
@@ -19,6 +20,7 @@ export interface ExportWindowState {
19
20
  variables: string;
20
21
  subscriptionUrl: string;
21
22
  subscriptionConnectionParams?: string;
23
+ subscriptionProvider?: SubscriptionProviderIds;
22
24
  preRequestScript?: string;
23
25
  preRequestScriptEnabled?: boolean;
24
26
  postRequestScript?: string;
@@ -33,3 +35,4 @@ export interface ExportWindowState {
33
35
  windowIdInCollection?: string;
34
36
  gqlSchema?: GraphQLSchema;
35
37
  }
38
+ //# sourceMappingURL=window.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -6,4 +6,6 @@ export interface WindowsMetaState {
6
6
  showSettingsDialog: boolean;
7
7
  showEnvironmentManager: boolean;
8
8
  showPluginManager: boolean;
9
+ showAccountDialog: boolean;
9
10
  }
11
+ //# sourceMappingURL=windows-meta.interfaces.d.ts.map
@@ -1,2 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
@@ -1,2 +1,3 @@
1
1
  declare const _default: boolean;
2
2
  export default _default;
3
+ //# sourceMappingURL=is_electron.d.ts.map
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = !!((window && window.process && window.process.versions.electron) || window.ipc);
1
+ export default !!((window && window.process && window.process.versions.electron) || window.ipc);
@@ -3,3 +3,4 @@ export declare const createLogger: (environment: {
3
3
  production: boolean;
4
4
  version: string;
5
5
  }) => loglevel.RootLogger;
6
+ //# sourceMappingURL=logger.d.ts.map
@@ -1,15 +1,9 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createLogger = void 0;
7
- const loglevel_1 = __importDefault(require("loglevel"));
8
- const loglevel_plugin_prefix_1 = __importDefault(require("loglevel-plugin-prefix"));
9
- loglevel_plugin_prefix_1.default.reg(loglevel_1.default);
10
- exports.createLogger = (environment) => {
1
+ import loglevel from 'loglevel';
2
+ import prefix from 'loglevel-plugin-prefix';
3
+ prefix.reg(loglevel);
4
+ export const createLogger = (environment) => {
11
5
  if (!environment.production) {
12
- loglevel_1.default.setLevel('TRACE');
6
+ loglevel.setLevel('TRACE');
13
7
  }
14
8
  const PREVIOUS_VERSION_KEY = 'altair__debug_previous_version';
15
9
  const CURRENT_VERSION_KEY = 'altair__debug_current_version';
@@ -36,10 +30,10 @@ exports.createLogger = (environment) => {
36
30
  console.log('Previous version:', previousVersion());
37
31
  console.log('Current version:', currentVersion());
38
32
  console.groupEnd();
39
- loglevel_1.default.setLevel('TRACE');
33
+ loglevel.setLevel('TRACE');
40
34
  }
41
35
  window._ALTAIR__ENABLE_DEBUG_MODE__ = value;
42
36
  }
43
37
  });
44
- return loglevel_1.default;
38
+ return loglevel;
45
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "altair-graphql-core",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Several of the core logic for altair graphql client",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@types/actioncable": "^5.2.5",
31
31
  "@types/node": "^14.14.41",
32
32
  "@types/uuid": "^8.3.0",
33
- "ajv": "^8.6.0",
33
+ "ajv": "^6.12.3",
34
34
  "ajv-cli": "^5.0.0",
35
35
  "react": "^17.0.2",
36
36
  "ts-node": "^8.5.4",
@@ -61,5 +61,5 @@
61
61
  "util": "^0.12.4",
62
62
  "uuid": "^8.3.2"
63
63
  },
64
- "gitHead": "d1c9b6c9f6c9d2e3b0d9f0b99cd04573e9bf6439"
64
+ "gitHead": "e2e4d611e12de827ed0a47f09145bbdf4bae291e"
65
65
  }