@deephaven/auth-plugins 0.33.1-auth-plugins.25

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/LICENSE ADDED
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # @deephaven/auth-plugins
2
+
3
+ Authentication plugins for Deephaven. Used by [AuthBootstrap](../app-utils/src/components/AuthBootstrap.tsx) to provide default authentication if no custom plugins are loaded. For mode details on custom plugins, see [deephaven-js-plugins repository](https://github.com/deephaven/deephaven-js-plugins).
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install --save @deephaven/auth-plugins
9
+ ```
10
+
11
+ # Legal Notices
12
+
13
+ Deephaven Data Labs and any contributors grant you a license to the content of this repository under the Apache 2.0 License, see the [LICENSE](../../LICENSE) file.
@@ -0,0 +1,3 @@
1
+ export declare const AUTH_HANDLER_TYPE_ANONYMOUS = "io.deephaven.auth.AnonymousAuthenticationHandler";
2
+ export declare const AUTH_HANDLER_TYPE_PSK = "io.deephaven.authentication.psk.PskAuthenticationHandler";
3
+ //# sourceMappingURL=AuthHandlerTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthHandlerTypes.d.ts","sourceRoot":"","sources":["../src/AuthHandlerTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,qDACY,CAAC;AAErD,eAAO,MAAM,qBAAqB,6DAC0B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export var AUTH_HANDLER_TYPE_ANONYMOUS = 'io.deephaven.auth.AnonymousAuthenticationHandler';
2
+ export var AUTH_HANDLER_TYPE_PSK = 'io.deephaven.authentication.psk.PskAuthenticationHandler';
3
+ //# sourceMappingURL=AuthHandlerTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthHandlerTypes.js","names":["AUTH_HANDLER_TYPE_ANONYMOUS","AUTH_HANDLER_TYPE_PSK"],"sources":["../src/AuthHandlerTypes.ts"],"sourcesContent":["export const AUTH_HANDLER_TYPE_ANONYMOUS =\n 'io.deephaven.auth.AnonymousAuthenticationHandler';\n\nexport const AUTH_HANDLER_TYPE_PSK =\n 'io.deephaven.authentication.psk.PskAuthenticationHandler';\n"],"mappings":"AAAA,OAAO,IAAMA,2BAA2B,GACtC,kDAAkD;AAEpD,OAAO,IAAMC,qBAAqB,GAChC,0DAA0D"}
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { CoreClient } from '@deephaven/jsapi-types';
3
+ /** Map from auth config keys to their values */
4
+ export type AuthConfigMap = Map<string, string>;
5
+ /**
6
+ * Props for the auth plugin component to render
7
+ */
8
+ export type AuthPluginProps = {
9
+ /** Map from config keys to their values */
10
+ authConfigValues: Map<string, string>;
11
+ /** Client to check auth configuration on */
12
+ client: CoreClient;
13
+ /** Called when authentication is sucessful */
14
+ onSuccess(): void;
15
+ /** Called when authentication fails */
16
+ onFailure(error: unknown): void;
17
+ };
18
+ export type AuthPluginComponent = React.FunctionComponent<AuthPluginProps>;
19
+ /**
20
+ * Whether the auth plugin is available given the current configuration
21
+ */
22
+ export type AuthPluginIsAvailableFunction = (authHandlers: string[]) => boolean;
23
+ export type AuthPlugin = {
24
+ Component: AuthPluginComponent;
25
+ isAvailable: AuthPluginIsAvailableFunction;
26
+ };
27
+ export declare function isAuthPlugin(plugin?: unknown): plugin is AuthPlugin;
28
+ //# sourceMappingURL=AuthPlugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPlugin.d.ts","sourceRoot":"","sources":["../src/AuthPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,gDAAgD;AAChD,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2CAA2C;IAC3C,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtC,4CAA4C;IAC5C,MAAM,EAAE,UAAU,CAAC;IAEnB,8CAA8C;IAC9C,SAAS,IAAI,IAAI,CAAC;IAElB,uCAAuC;IACvC,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC;AAEhF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,mBAAmB,CAAC;IAC/B,WAAW,EAAE,6BAA6B,CAAC;CAC5C,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,IAAI,UAAU,CAOnE"}
@@ -0,0 +1,16 @@
1
+ /** Map from auth config keys to their values */
2
+
3
+ /**
4
+ * Props for the auth plugin component to render
5
+ */
6
+
7
+ /**
8
+ * Whether the auth plugin is available given the current configuration
9
+ */
10
+
11
+ export function isAuthPlugin(plugin) {
12
+ if (plugin == null) return false;
13
+ var authPlugin = plugin;
14
+ return authPlugin.Component !== undefined && typeof authPlugin.isAvailable === 'function';
15
+ }
16
+ //# sourceMappingURL=AuthPlugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPlugin.js","names":["isAuthPlugin","plugin","authPlugin","Component","undefined","isAvailable"],"sources":["../src/AuthPlugin.ts"],"sourcesContent":["import React from 'react';\nimport { CoreClient } from '@deephaven/jsapi-types';\n\n/** Map from auth config keys to their values */\nexport type AuthConfigMap = Map<string, string>;\n\n/**\n * Props for the auth plugin component to render\n */\nexport type AuthPluginProps = {\n /** Map from config keys to their values */\n authConfigValues: Map<string, string>;\n\n /** Client to check auth configuration on */\n client: CoreClient;\n\n /** Called when authentication is sucessful */\n onSuccess(): void;\n\n /** Called when authentication fails */\n onFailure(error: unknown): void;\n};\n\nexport type AuthPluginComponent = React.FunctionComponent<AuthPluginProps>;\n\n/**\n * Whether the auth plugin is available given the current configuration\n */\nexport type AuthPluginIsAvailableFunction = (authHandlers: string[]) => boolean;\n\nexport type AuthPlugin = {\n Component: AuthPluginComponent;\n isAvailable: AuthPluginIsAvailableFunction;\n};\n\nexport function isAuthPlugin(plugin?: unknown): plugin is AuthPlugin {\n if (plugin == null) return false;\n const authPlugin = plugin as AuthPlugin;\n return (\n authPlugin.Component !== undefined &&\n typeof authPlugin.isAvailable === 'function'\n );\n}\n"],"mappings":"AAGA;;AAGA;AACA;AACA;;AAiBA;AACA;AACA;;AAQA,OAAO,SAASA,YAAY,CAACC,MAAgB,EAAwB;EACnE,IAAIA,MAAM,IAAI,IAAI,EAAE,OAAO,KAAK;EAChC,IAAMC,UAAU,GAAGD,MAAoB;EACvC,OACEC,UAAU,CAACC,SAAS,KAAKC,SAAS,IAClC,OAAOF,UAAU,CAACG,WAAW,KAAK,UAAU;AAEhD"}
@@ -0,0 +1,4 @@
1
+ import { AuthPlugin } from './AuthPlugin';
2
+ declare const AuthPluginAnonymous: AuthPlugin;
3
+ export default AuthPluginAnonymous;
4
+ //# sourceMappingURL=AuthPluginAnonymous.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginAnonymous.d.ts","sourceRoot":"","sources":["../src/AuthPluginAnonymous.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AAoD3D,QAAA,MAAM,mBAAmB,EAAE,UAI1B,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,68 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
+ import React, { useEffect, useState } from 'react';
4
+ import { useApi } from '@deephaven/jsapi-bootstrap';
5
+ import Log from '@deephaven/log';
6
+ import { LoadingOverlay } from '@deephaven/components';
7
+ import { AUTH_HANDLER_TYPE_ANONYMOUS } from "./AuthHandlerTypes.js";
8
+ var log = Log.module('AuthPluginAnonymous');
9
+
10
+ /**
11
+ * AuthPlugin that tries to login anonymously. Fails if anonymous login fails
12
+ */
13
+ function Component(_ref) {
14
+ var {
15
+ client,
16
+ onSuccess,
17
+ onFailure
18
+ } = _ref;
19
+ var [error, setError] = useState();
20
+ var dh = useApi();
21
+ useEffect(() => {
22
+ var isCanceled = false;
23
+ function login() {
24
+ return _login.apply(this, arguments);
25
+ }
26
+ function _login() {
27
+ _login = _asyncToGenerator(function* () {
28
+ try {
29
+ log.info('Logging in...');
30
+ yield client.login({
31
+ type: dh.CoreClient.LOGIN_TYPE_ANONYMOUS
32
+ });
33
+ if (isCanceled) {
34
+ log.info('Previous login result canceled');
35
+ return;
36
+ }
37
+ log.info('Logged in successfully.');
38
+ onSuccess();
39
+ } catch (e) {
40
+ if (isCanceled) {
41
+ log.info('Previous login failure canceled');
42
+ return;
43
+ }
44
+ log.error('Unable to login:', e);
45
+ setError(e);
46
+ onFailure(e);
47
+ }
48
+ });
49
+ return _login.apply(this, arguments);
50
+ }
51
+ login();
52
+ return () => {
53
+ isCanceled = true;
54
+ };
55
+ }, [client, dh, onFailure, onSuccess]);
56
+ return /*#__PURE__*/React.createElement(LoadingOverlay, {
57
+ "data-testid": "auth-anonymous-loading",
58
+ isLoading: true,
59
+ isLoaded: false,
60
+ errorMessage: error != null ? "".concat(error) : null
61
+ });
62
+ }
63
+ var AuthPluginAnonymous = {
64
+ Component,
65
+ isAvailable: authHandlers => authHandlers.includes(AUTH_HANDLER_TYPE_ANONYMOUS)
66
+ };
67
+ export default AuthPluginAnonymous;
68
+ //# sourceMappingURL=AuthPluginAnonymous.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginAnonymous.js","names":["React","useEffect","useState","useApi","Log","LoadingOverlay","AUTH_HANDLER_TYPE_ANONYMOUS","log","module","Component","client","onSuccess","onFailure","error","setError","dh","isCanceled","login","info","type","CoreClient","LOGIN_TYPE_ANONYMOUS","e","AuthPluginAnonymous","isAvailable","authHandlers","includes"],"sources":["../src/AuthPluginAnonymous.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useApi } from '@deephaven/jsapi-bootstrap';\nimport Log from '@deephaven/log';\nimport { LoadingOverlay } from '@deephaven/components';\nimport { AUTH_HANDLER_TYPE_ANONYMOUS } from './AuthHandlerTypes';\nimport { AuthPlugin, AuthPluginProps } from './AuthPlugin';\n\nconst log = Log.module('AuthPluginAnonymous');\n\n/**\n * AuthPlugin that tries to login anonymously. Fails if anonymous login fails\n */\nfunction Component({\n client,\n onSuccess,\n onFailure,\n}: AuthPluginProps): JSX.Element {\n const [error, setError] = useState<unknown>();\n const dh = useApi();\n\n useEffect(() => {\n let isCanceled = false;\n async function login() {\n try {\n log.info('Logging in...');\n await client.login({ type: dh.CoreClient.LOGIN_TYPE_ANONYMOUS });\n if (isCanceled) {\n log.info('Previous login result canceled');\n return;\n }\n log.info('Logged in successfully.');\n onSuccess();\n } catch (e) {\n if (isCanceled) {\n log.info('Previous login failure canceled');\n return;\n }\n log.error('Unable to login:', e);\n setError(e);\n onFailure(e);\n }\n }\n login();\n return () => {\n isCanceled = true;\n };\n }, [client, dh, onFailure, onSuccess]);\n return (\n <LoadingOverlay\n data-testid=\"auth-anonymous-loading\"\n isLoading\n isLoaded={false}\n errorMessage={error != null ? `${error}` : null}\n />\n );\n}\n\nconst AuthPluginAnonymous: AuthPlugin = {\n Component,\n isAvailable: authHandlers =>\n authHandlers.includes(AUTH_HANDLER_TYPE_ANONYMOUS),\n};\n\nexport default AuthPluginAnonymous;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,MAAM,QAAQ,4BAA4B;AACnD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAC9CC,2BAA2B;AAGpC,IAAMC,GAAG,GAAGH,GAAG,CAACI,MAAM,CAAC,qBAAqB,CAAC;;AAE7C;AACA;AACA;AACA,SAASC,SAAS,OAIe;EAAA,IAJd;IACjBC,MAAM;IACNC,SAAS;IACTC;EACe,CAAC;EAChB,IAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGZ,QAAQ,EAAW;EAC7C,IAAMa,EAAE,GAAGZ,MAAM,EAAE;EAEnBF,SAAS,CAAC,MAAM;IACd,IAAIe,UAAU,GAAG,KAAK;IAAC,SACRC,KAAK;MAAA;IAAA;IAAA;MAAA,2BAApB,aAAuB;QACrB,IAAI;UACFV,GAAG,CAACW,IAAI,CAAC,eAAe,CAAC;UACzB,MAAMR,MAAM,CAACO,KAAK,CAAC;YAAEE,IAAI,EAAEJ,EAAE,CAACK,UAAU,CAACC;UAAqB,CAAC,CAAC;UAChE,IAAIL,UAAU,EAAE;YACdT,GAAG,CAACW,IAAI,CAAC,gCAAgC,CAAC;YAC1C;UACF;UACAX,GAAG,CAACW,IAAI,CAAC,yBAAyB,CAAC;UACnCP,SAAS,EAAE;QACb,CAAC,CAAC,OAAOW,CAAC,EAAE;UACV,IAAIN,UAAU,EAAE;YACdT,GAAG,CAACW,IAAI,CAAC,iCAAiC,CAAC;YAC3C;UACF;UACAX,GAAG,CAACM,KAAK,CAAC,kBAAkB,EAAES,CAAC,CAAC;UAChCR,QAAQ,CAACQ,CAAC,CAAC;UACXV,SAAS,CAACU,CAAC,CAAC;QACd;MACF,CAAC;MAAA;IAAA;IACDL,KAAK,EAAE;IACP,OAAO,MAAM;MACXD,UAAU,GAAG,IAAI;IACnB,CAAC;EACH,CAAC,EAAE,CAACN,MAAM,EAAEK,EAAE,EAAEH,SAAS,EAAED,SAAS,CAAC,CAAC;EACtC,oBACE,oBAAC,cAAc;IACb,eAAY,wBAAwB;IACpC,SAAS;IACT,QAAQ,EAAE,KAAM;IAChB,YAAY,EAAEE,KAAK,IAAI,IAAI,aAAMA,KAAK,IAAK;EAAK,EAChD;AAEN;AAEA,IAAMU,mBAA+B,GAAG;EACtCd,SAAS;EACTe,WAAW,EAAEC,YAAY,IACvBA,YAAY,CAACC,QAAQ,CAACpB,2BAA2B;AACrD,CAAC;AAED,eAAeiB,mBAAmB"}
@@ -0,0 +1,4 @@
1
+ import { AuthPlugin } from './AuthPlugin';
2
+ declare const AuthPluginParent: AuthPlugin;
3
+ export default AuthPluginParent;
4
+ //# sourceMappingURL=AuthPluginParent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginParent.d.ts","sourceRoot":"","sources":["../src/AuthPluginParent.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AA8C3D,QAAA,MAAM,gBAAgB,EAAE,UAIvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,57 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
+ import React, { useEffect, useState } from 'react';
4
+ import { LOGIN_OPTIONS_REQUEST, requestParentResponse } from '@deephaven/jsapi-utils';
5
+ import Log from '@deephaven/log';
6
+ import { LoadingOverlay } from '@deephaven/components';
7
+ var log = Log.module('AuthPluginParent');
8
+ function getWindowAuthProvider() {
9
+ var _URLSearchParams$get;
10
+ return (_URLSearchParams$get = new URLSearchParams(window.location.search).get('authProvider')) !== null && _URLSearchParams$get !== void 0 ? _URLSearchParams$get : '';
11
+ }
12
+
13
+ /**
14
+ * AuthPlugin that tries to delegate to the parent window for authentication. Fails if there is no parent window.
15
+ */
16
+ function Component(_ref) {
17
+ var {
18
+ client,
19
+ onSuccess,
20
+ onFailure
21
+ } = _ref;
22
+ var [error, setError] = useState();
23
+ useEffect(() => {
24
+ function login() {
25
+ return _login.apply(this, arguments);
26
+ }
27
+ function _login() {
28
+ _login = _asyncToGenerator(function* () {
29
+ try {
30
+ log.info('Logging in by delegating to parent window...');
31
+ var loginOptions = yield requestParentResponse(LOGIN_OPTIONS_REQUEST);
32
+ yield client.login(loginOptions);
33
+ log.info('Logged in successfully.');
34
+ onSuccess();
35
+ } catch (e) {
36
+ log.error('Unable to login:', e);
37
+ setError(e);
38
+ onFailure(e);
39
+ }
40
+ });
41
+ return _login.apply(this, arguments);
42
+ }
43
+ login();
44
+ }, [client, onFailure, onSuccess]);
45
+ return /*#__PURE__*/React.createElement(LoadingOverlay, {
46
+ "data-testid": "auth-parent-loading",
47
+ isLoading: true,
48
+ isLoaded: false,
49
+ errorMessage: error != null ? "".concat(error) : null
50
+ });
51
+ }
52
+ var AuthPluginParent = {
53
+ Component,
54
+ isAvailable: () => window.opener != null && getWindowAuthProvider() === 'parent'
55
+ };
56
+ export default AuthPluginParent;
57
+ //# sourceMappingURL=AuthPluginParent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginParent.js","names":["React","useEffect","useState","LOGIN_OPTIONS_REQUEST","requestParentResponse","Log","LoadingOverlay","log","module","getWindowAuthProvider","URLSearchParams","window","location","search","get","Component","client","onSuccess","onFailure","error","setError","login","info","loginOptions","e","AuthPluginParent","isAvailable","opener"],"sources":["../src/AuthPluginParent.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { LoginOptions } from '@deephaven/jsapi-types';\nimport {\n LOGIN_OPTIONS_REQUEST,\n requestParentResponse,\n} from '@deephaven/jsapi-utils';\nimport Log from '@deephaven/log';\nimport { LoadingOverlay } from '@deephaven/components';\nimport { AuthPlugin, AuthPluginProps } from './AuthPlugin';\n\nconst log = Log.module('AuthPluginParent');\n\nfunction getWindowAuthProvider(): string {\n return new URLSearchParams(window.location.search).get('authProvider') ?? '';\n}\n\n/**\n * AuthPlugin that tries to delegate to the parent window for authentication. Fails if there is no parent window.\n */\nfunction Component({\n client,\n onSuccess,\n onFailure,\n}: AuthPluginProps): JSX.Element {\n const [error, setError] = useState<unknown>();\n useEffect(() => {\n async function login() {\n try {\n log.info('Logging in by delegating to parent window...');\n const loginOptions = await requestParentResponse<LoginOptions>(\n LOGIN_OPTIONS_REQUEST\n );\n\n await client.login(loginOptions);\n log.info('Logged in successfully.');\n onSuccess();\n } catch (e) {\n log.error('Unable to login:', e);\n setError(e);\n onFailure(e);\n }\n }\n login();\n }, [client, onFailure, onSuccess]);\n return (\n <LoadingOverlay\n data-testid=\"auth-parent-loading\"\n isLoading\n isLoaded={false}\n errorMessage={error != null ? `${error}` : null}\n />\n );\n}\n\nconst AuthPluginParent: AuthPlugin = {\n Component,\n isAvailable: () =>\n window.opener != null && getWindowAuthProvider() === 'parent',\n};\n\nexport default AuthPluginParent;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAElD,SACEC,qBAAqB,EACrBC,qBAAqB,QAChB,wBAAwB;AAC/B,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAASC,cAAc,QAAQ,uBAAuB;AAGtD,IAAMC,GAAG,GAAGF,GAAG,CAACG,MAAM,CAAC,kBAAkB,CAAC;AAE1C,SAASC,qBAAqB,GAAW;EAAA;EACvC,+BAAO,IAAIC,eAAe,CAACC,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC,CAACC,GAAG,CAAC,cAAc,CAAC,uEAAI,EAAE;AAC9E;;AAEA;AACA;AACA;AACA,SAASC,SAAS,OAIe;EAAA,IAJd;IACjBC,MAAM;IACNC,SAAS;IACTC;EACe,CAAC;EAChB,IAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGlB,QAAQ,EAAW;EAC7CD,SAAS,CAAC,MAAM;IAAA,SACCoB,KAAK;MAAA;IAAA;IAAA;MAAA,2BAApB,aAAuB;QACrB,IAAI;UACFd,GAAG,CAACe,IAAI,CAAC,8CAA8C,CAAC;UACxD,IAAMC,YAAY,SAASnB,qBAAqB,CAC9CD,qBAAqB,CACtB;UAED,MAAMa,MAAM,CAACK,KAAK,CAACE,YAAY,CAAC;UAChChB,GAAG,CAACe,IAAI,CAAC,yBAAyB,CAAC;UACnCL,SAAS,EAAE;QACb,CAAC,CAAC,OAAOO,CAAC,EAAE;UACVjB,GAAG,CAACY,KAAK,CAAC,kBAAkB,EAAEK,CAAC,CAAC;UAChCJ,QAAQ,CAACI,CAAC,CAAC;UACXN,SAAS,CAACM,CAAC,CAAC;QACd;MACF,CAAC;MAAA;IAAA;IACDH,KAAK,EAAE;EACT,CAAC,EAAE,CAACL,MAAM,EAAEE,SAAS,EAAED,SAAS,CAAC,CAAC;EAClC,oBACE,oBAAC,cAAc;IACb,eAAY,qBAAqB;IACjC,SAAS;IACT,QAAQ,EAAE,KAAM;IAChB,YAAY,EAAEE,KAAK,IAAI,IAAI,aAAMA,KAAK,IAAK;EAAK,EAChD;AAEN;AAEA,IAAMM,gBAA4B,GAAG;EACnCV,SAAS;EACTW,WAAW,EAAE,MACXf,MAAM,CAACgB,MAAM,IAAI,IAAI,IAAIlB,qBAAqB,EAAE,KAAK;AACzD,CAAC;AAED,eAAegB,gBAAgB"}
@@ -0,0 +1,4 @@
1
+ import { AuthPlugin } from './AuthPlugin';
2
+ declare const AuthPluginPsk: AuthPlugin;
3
+ export default AuthPluginPsk;
4
+ //# sourceMappingURL=AuthPluginPsk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginPsk.d.ts","sourceRoot":"","sources":["../src/AuthPluginPsk.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAmB,MAAM,cAAc,CAAC;AA+D3D,QAAA,MAAM,aAAa,EAAE,UAGpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,76 @@
1
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
2
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
3
+ import React, { useEffect, useState } from 'react';
4
+ import Log from '@deephaven/log';
5
+ import { LoadingOverlay } from '@deephaven/components';
6
+ var log = Log.module('AuthPluginPsk');
7
+ var AUTH_TYPE = 'io.deephaven.authentication.psk.PskAuthenticationHandler';
8
+ function getWindowToken() {
9
+ var _URLSearchParams$get;
10
+ return (_URLSearchParams$get = new URLSearchParams(window.location.search).get('psk')) !== null && _URLSearchParams$get !== void 0 ? _URLSearchParams$get : '';
11
+ }
12
+
13
+ /**
14
+ * AuthPlugin that tries to login using a pre-shared key.
15
+ * Add the `psk=<token>` parameter to your URL string to set the token.
16
+ */
17
+ function Component(_ref) {
18
+ var {
19
+ client,
20
+ onSuccess,
21
+ onFailure
22
+ } = _ref;
23
+ var [error, setError] = useState();
24
+ var [token] = useState(() => getWindowToken());
25
+ useEffect(() => {
26
+ var isCanceled = false;
27
+ function login() {
28
+ return _login.apply(this, arguments);
29
+ }
30
+ function _login() {
31
+ _login = _asyncToGenerator(function* () {
32
+ try {
33
+ if (!token) {
34
+ throw new Error('No Pre-shared key token found. Add `psk=<token>` parameter to your URL');
35
+ }
36
+ log.info('Logging in with found token...');
37
+ yield client.login({
38
+ type: AUTH_TYPE,
39
+ token
40
+ });
41
+ if (isCanceled) {
42
+ log.info('Previous login result canceled');
43
+ return;
44
+ }
45
+ log.info('Logged in successfully.');
46
+ onSuccess();
47
+ } catch (e) {
48
+ if (isCanceled) {
49
+ log.info('Previous login failure canceled');
50
+ return;
51
+ }
52
+ log.error('Unable to login:', e);
53
+ setError(e);
54
+ onFailure(e);
55
+ }
56
+ });
57
+ return _login.apply(this, arguments);
58
+ }
59
+ login();
60
+ return () => {
61
+ isCanceled = true;
62
+ };
63
+ }, [client, onFailure, onSuccess, token]);
64
+ return /*#__PURE__*/React.createElement(LoadingOverlay, {
65
+ "data-testid": "auth-psk-loading",
66
+ isLoading: true,
67
+ isLoaded: false,
68
+ errorMessage: error != null ? "".concat(error) : null
69
+ });
70
+ }
71
+ var AuthPluginPsk = {
72
+ Component,
73
+ isAvailable: authHandlers => authHandlers.includes(AUTH_TYPE)
74
+ };
75
+ export default AuthPluginPsk;
76
+ //# sourceMappingURL=AuthPluginPsk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AuthPluginPsk.js","names":["React","useEffect","useState","Log","LoadingOverlay","log","module","AUTH_TYPE","getWindowToken","URLSearchParams","window","location","search","get","Component","client","onSuccess","onFailure","error","setError","token","isCanceled","login","Error","info","type","e","AuthPluginPsk","isAvailable","authHandlers","includes"],"sources":["../src/AuthPluginPsk.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport Log from '@deephaven/log';\nimport { LoadingOverlay } from '@deephaven/components';\nimport { AuthPlugin, AuthPluginProps } from './AuthPlugin';\n\nconst log = Log.module('AuthPluginPsk');\n\nconst AUTH_TYPE = 'io.deephaven.authentication.psk.PskAuthenticationHandler';\n\nfunction getWindowToken(): string {\n return new URLSearchParams(window.location.search).get('psk') ?? '';\n}\n\n/**\n * AuthPlugin that tries to login using a pre-shared key.\n * Add the `psk=<token>` parameter to your URL string to set the token.\n */\nfunction Component({\n client,\n onSuccess,\n onFailure,\n}: AuthPluginProps): JSX.Element {\n const [error, setError] = useState<unknown>();\n const [token] = useState(() => getWindowToken());\n useEffect(() => {\n let isCanceled = false;\n async function login() {\n try {\n if (!token) {\n throw new Error(\n 'No Pre-shared key token found. Add `psk=<token>` parameter to your URL'\n );\n }\n log.info('Logging in with found token...');\n await client.login({ type: AUTH_TYPE, token });\n if (isCanceled) {\n log.info('Previous login result canceled');\n return;\n }\n log.info('Logged in successfully.');\n onSuccess();\n } catch (e) {\n if (isCanceled) {\n log.info('Previous login failure canceled');\n return;\n }\n log.error('Unable to login:', e);\n setError(e);\n onFailure(e);\n }\n }\n login();\n return () => {\n isCanceled = true;\n };\n }, [client, onFailure, onSuccess, token]);\n return (\n <LoadingOverlay\n data-testid=\"auth-psk-loading\"\n isLoading\n isLoaded={false}\n errorMessage={error != null ? `${error}` : null}\n />\n );\n}\n\nconst AuthPluginPsk: AuthPlugin = {\n Component,\n isAvailable: authHandlers => authHandlers.includes(AUTH_TYPE),\n};\n\nexport default AuthPluginPsk;\n"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAASC,cAAc,QAAQ,uBAAuB;AAGtD,IAAMC,GAAG,GAAGF,GAAG,CAACG,MAAM,CAAC,eAAe,CAAC;AAEvC,IAAMC,SAAS,GAAG,0DAA0D;AAE5E,SAASC,cAAc,GAAW;EAAA;EAChC,+BAAO,IAAIC,eAAe,CAACC,MAAM,CAACC,QAAQ,CAACC,MAAM,CAAC,CAACC,GAAG,CAAC,KAAK,CAAC,uEAAI,EAAE;AACrE;;AAEA;AACA;AACA;AACA;AACA,SAASC,SAAS,OAIe;EAAA,IAJd;IACjBC,MAAM;IACNC,SAAS;IACTC;EACe,CAAC;EAChB,IAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGjB,QAAQ,EAAW;EAC7C,IAAM,CAACkB,KAAK,CAAC,GAAGlB,QAAQ,CAAC,MAAMM,cAAc,EAAE,CAAC;EAChDP,SAAS,CAAC,MAAM;IACd,IAAIoB,UAAU,GAAG,KAAK;IAAC,SACRC,KAAK;MAAA;IAAA;IAAA;MAAA,2BAApB,aAAuB;QACrB,IAAI;UACF,IAAI,CAACF,KAAK,EAAE;YACV,MAAM,IAAIG,KAAK,CACb,wEAAwE,CACzE;UACH;UACAlB,GAAG,CAACmB,IAAI,CAAC,gCAAgC,CAAC;UAC1C,MAAMT,MAAM,CAACO,KAAK,CAAC;YAAEG,IAAI,EAAElB,SAAS;YAAEa;UAAM,CAAC,CAAC;UAC9C,IAAIC,UAAU,EAAE;YACdhB,GAAG,CAACmB,IAAI,CAAC,gCAAgC,CAAC;YAC1C;UACF;UACAnB,GAAG,CAACmB,IAAI,CAAC,yBAAyB,CAAC;UACnCR,SAAS,EAAE;QACb,CAAC,CAAC,OAAOU,CAAC,EAAE;UACV,IAAIL,UAAU,EAAE;YACdhB,GAAG,CAACmB,IAAI,CAAC,iCAAiC,CAAC;YAC3C;UACF;UACAnB,GAAG,CAACa,KAAK,CAAC,kBAAkB,EAAEQ,CAAC,CAAC;UAChCP,QAAQ,CAACO,CAAC,CAAC;UACXT,SAAS,CAACS,CAAC,CAAC;QACd;MACF,CAAC;MAAA;IAAA;IACDJ,KAAK,EAAE;IACP,OAAO,MAAM;MACXD,UAAU,GAAG,IAAI;IACnB,CAAC;EACH,CAAC,EAAE,CAACN,MAAM,EAAEE,SAAS,EAAED,SAAS,EAAEI,KAAK,CAAC,CAAC;EACzC,oBACE,oBAAC,cAAc;IACb,eAAY,kBAAkB;IAC9B,SAAS;IACT,QAAQ,EAAE,KAAM;IAChB,YAAY,EAAEF,KAAK,IAAI,IAAI,aAAMA,KAAK,IAAK;EAAK,EAChD;AAEN;AAEA,IAAMS,aAAyB,GAAG;EAChCb,SAAS;EACTc,WAAW,EAAEC,YAAY,IAAIA,YAAY,CAACC,QAAQ,CAACvB,SAAS;AAC9D,CAAC;AAED,eAAeoB,aAAa"}
@@ -0,0 +1,5 @@
1
+ export * from './AuthPlugin';
2
+ export { default as AuthPluginAnonymous } from './AuthPluginAnonymous';
3
+ export { default as AuthPluginParent } from './AuthPluginParent';
4
+ export { default as AuthPluginPsk } from './AuthPluginPsk';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./AuthPlugin.js";
2
+ export { default as AuthPluginAnonymous } from "./AuthPluginAnonymous.js";
3
+ export { default as AuthPluginParent } from "./AuthPluginParent.js";
4
+ export { default as AuthPluginPsk } from "./AuthPluginPsk.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["default","AuthPluginAnonymous","AuthPluginParent","AuthPluginPsk"],"sources":["../src/index.ts"],"sourcesContent":["export * from './AuthPlugin';\nexport { default as AuthPluginAnonymous } from './AuthPluginAnonymous';\nexport { default as AuthPluginParent } from './AuthPluginParent';\nexport { default as AuthPluginPsk } from './AuthPluginPsk';\n"],"mappings":";SACSA,OAAO,IAAIC,mBAAmB;AAAA,SAC9BD,OAAO,IAAIE,gBAAgB;AAAA,SAC3BF,OAAO,IAAIG,aAAa"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@deephaven/auth-plugins",
3
+ "version": "0.33.1-auth-plugins.25+2a689a65",
4
+ "description": "Deephaven Auth Plugins",
5
+ "keywords": [
6
+ "Deephaven",
7
+ "plugin",
8
+ "deephaven-js-plugin",
9
+ "auth",
10
+ "authentication",
11
+ "anonymous",
12
+ "parent",
13
+ "psk",
14
+ "Pre-shared key"
15
+ ],
16
+ "author": "Deephaven Data Labs LLC",
17
+ "license": "Apache-2.0",
18
+ "type": "module",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/deephaven/web-client-ui.git",
22
+ "directory": "packages/auth-plugins"
23
+ },
24
+ "main": "dist/index.js",
25
+ "types": "dist/index.d.ts",
26
+ "source": "src/index.ts",
27
+ "engines": {
28
+ "node": ">=16"
29
+ },
30
+ "scripts": {
31
+ "build": "cross-env NODE_ENV=production run-p build:*",
32
+ "build:babel": "babel ./src --out-dir ./dist --extensions \".ts,.tsx,.js,.jsx\" --source-maps --root-mode upward"
33
+ },
34
+ "dependencies": {
35
+ "@deephaven/components": "^0.33.1-auth-plugins.25+2a689a65",
36
+ "@deephaven/jsapi-bootstrap": "^0.33.1-auth-plugins.25+2a689a65",
37
+ "@deephaven/jsapi-types": "^0.33.1-auth-plugins.25+2a689a65",
38
+ "@deephaven/jsapi-utils": "^0.33.1-auth-plugins.25+2a689a65",
39
+ "@deephaven/log": "^0.33.1-auth-plugins.25+2a689a65"
40
+ },
41
+ "devDependencies": {
42
+ "@deephaven/tsconfig": "^0.33.1-auth-plugins.25+2a689a65",
43
+ "@types/react": "^17.0.2"
44
+ },
45
+ "peerDependencies": {
46
+ "react": "^17.x"
47
+ },
48
+ "files": [
49
+ "dist"
50
+ ],
51
+ "sideEffects": false,
52
+ "publishConfig": {
53
+ "access": "public"
54
+ },
55
+ "gitHead": "2a689a654f019c33259582f8196ea9acf64497e9"
56
+ }