@jbrowse/plugin-authentication 3.6.5 → 4.0.0
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/esm/DropboxOAuthModel/configSchema.d.ts +5 -5
- package/esm/DropboxOAuthModel/configSchema.js +1 -1
- package/esm/DropboxOAuthModel/index.d.ts +2 -2
- package/esm/DropboxOAuthModel/index.js +2 -2
- package/esm/DropboxOAuthModel/model.d.ts +18 -18
- package/esm/DropboxOAuthModel/model.js +5 -5
- package/esm/DropboxOAuthModel/util.js +1 -1
- package/esm/ExternalTokenModel/configSchema.d.ts +4 -4
- package/esm/ExternalTokenModel/index.d.ts +2 -2
- package/esm/ExternalTokenModel/index.js +2 -2
- package/esm/ExternalTokenModel/model.d.ts +13 -13
- package/esm/ExternalTokenModel/model.js +2 -2
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +1 -0
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +5 -5
- package/esm/GoogleDriveOAuthModel/configSchema.js +1 -1
- package/esm/GoogleDriveOAuthModel/index.d.ts +2 -2
- package/esm/GoogleDriveOAuthModel/index.js +2 -2
- package/esm/GoogleDriveOAuthModel/model.d.ts +19 -19
- package/esm/GoogleDriveOAuthModel/model.js +7 -7
- package/esm/GoogleDriveOAuthModel/util.js +1 -1
- package/esm/HTTPBasicModel/configSchema.d.ts +4 -4
- package/esm/HTTPBasicModel/index.d.ts +2 -2
- package/esm/HTTPBasicModel/index.js +2 -2
- package/esm/HTTPBasicModel/model.d.ts +13 -13
- package/esm/HTTPBasicModel/model.js +3 -3
- package/esm/OAuthModel/configSchema.d.ts +4 -4
- package/esm/OAuthModel/index.d.ts +2 -2
- package/esm/OAuthModel/index.js +2 -2
- package/esm/OAuthModel/model.d.ts +12 -12
- package/esm/OAuthModel/model.js +3 -3
- package/esm/OAuthModel/util.js +1 -2
- package/esm/index.d.ts +68 -68
- package/esm/index.js +23 -26
- package/esm/util.js +1 -1
- package/package.json +23 -30
- package/dist/DropboxOAuthModel/DropboxIcon.d.ts +0 -2
- package/dist/DropboxOAuthModel/DropboxIcon.js +0 -8
- package/dist/DropboxOAuthModel/configSchema.d.ts +0 -93
- package/dist/DropboxOAuthModel/configSchema.js +0 -42
- package/dist/DropboxOAuthModel/index.d.ts +0 -2
- package/dist/DropboxOAuthModel/index.js +0 -10
- package/dist/DropboxOAuthModel/model.d.ts +0 -279
- package/dist/DropboxOAuthModel/model.js +0 -65
- package/dist/DropboxOAuthModel/util.d.ts +0 -1
- package/dist/DropboxOAuthModel/util.js +0 -21
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.d.ts +0 -4
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.js +0 -24
- package/dist/ExternalTokenModel/configSchema.d.ts +0 -37
- package/dist/ExternalTokenModel/configSchema.js +0 -16
- package/dist/ExternalTokenModel/index.d.ts +0 -2
- package/dist/ExternalTokenModel/index.js +0 -10
- package/dist/ExternalTokenModel/model.d.ts +0 -126
- package/dist/ExternalTokenModel/model.js +0 -57
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +0 -15
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +0 -19
- package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.d.ts +0 -2
- package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.js +0 -8
- package/dist/GoogleDriveOAuthModel/configSchema.d.ts +0 -93
- package/dist/GoogleDriveOAuthModel/configSchema.js +0 -34
- package/dist/GoogleDriveOAuthModel/index.d.ts +0 -2
- package/dist/GoogleDriveOAuthModel/index.js +0 -10
- package/dist/GoogleDriveOAuthModel/model.d.ts +0 -283
- package/dist/GoogleDriveOAuthModel/model.js +0 -72
- package/dist/GoogleDriveOAuthModel/util.d.ts +0 -1
- package/dist/GoogleDriveOAuthModel/util.js +0 -14
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.d.ts +0 -4
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +0 -32
- package/dist/HTTPBasicModel/configSchema.d.ts +0 -42
- package/dist/HTTPBasicModel/configSchema.js +0 -21
- package/dist/HTTPBasicModel/index.d.ts +0 -2
- package/dist/HTTPBasicModel/index.js +0 -10
- package/dist/HTTPBasicModel/model.d.ts +0 -131
- package/dist/HTTPBasicModel/model.js +0 -54
- package/dist/OAuthModel/configSchema.d.ts +0 -72
- package/dist/OAuthModel/configSchema.js +0 -51
- package/dist/OAuthModel/index.d.ts +0 -2
- package/dist/OAuthModel/index.js +0 -10
- package/dist/OAuthModel/model.d.ts +0 -182
- package/dist/OAuthModel/model.js +0 -289
- package/dist/OAuthModel/util.d.ts +0 -7
- package/dist/OAuthModel/util.js +0 -66
- package/dist/index.d.ts +0 -1026
- package/dist/index.js +0 -84
- package/dist/util.d.ts +0 -6
- package/dist/util.js +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const DropboxOAuthConfigSchema: import("
|
|
1
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
declare const DropboxOAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
3
3
|
authEndpoint: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -20,7 +20,7 @@ declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/conf
|
|
|
20
20
|
type: string;
|
|
21
21
|
defaultValue: string[];
|
|
22
22
|
};
|
|
23
|
-
}, import("
|
|
23
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
24
24
|
tokenType: {
|
|
25
25
|
description: string;
|
|
26
26
|
type: string;
|
|
@@ -61,7 +61,7 @@ declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/conf
|
|
|
61
61
|
type: string;
|
|
62
62
|
defaultValue: string;
|
|
63
63
|
};
|
|
64
|
-
}, import("
|
|
64
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
65
65
|
name: {
|
|
66
66
|
description: string;
|
|
67
67
|
type: string;
|
|
@@ -87,7 +87,7 @@ declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/conf
|
|
|
87
87
|
type: string;
|
|
88
88
|
defaultValue: never[];
|
|
89
89
|
};
|
|
90
|
-
}, import("
|
|
90
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
91
91
|
export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
|
|
92
92
|
export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
|
|
93
93
|
export default DropboxOAuthConfigSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
import OAuthConfigSchema from
|
|
2
|
+
import OAuthConfigSchema from "../OAuthModel/configSchema.js";
|
|
3
3
|
function x() { }
|
|
4
4
|
const DropboxOAuthConfigSchema = ConfigurationSchema('DropboxOAuthInternetAccount', {
|
|
5
5
|
authEndpoint: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from './configSchema';
|
|
2
|
-
export { default as modelFactory } from './model';
|
|
1
|
+
export { default as configSchema } from './configSchema.ts';
|
|
2
|
+
export { default as modelFactory } from './model.tsx';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from
|
|
2
|
-
export { default as modelFactory } from
|
|
1
|
+
export { default as configSchema } from "./configSchema.js";
|
|
2
|
+
export { default as modelFactory } from "./model.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { DropboxOAuthInternetAccountConfigModel } from './configSchema';
|
|
1
|
+
import type { DropboxOAuthInternetAccountConfigModel } from './configSchema.ts';
|
|
2
2
|
import type { UriLocation } from '@jbrowse/core/util/types';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
configuration: import("
|
|
3
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
|
|
5
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
8
8
|
name: {
|
|
9
9
|
description: string;
|
|
10
10
|
type: string;
|
|
@@ -30,10 +30,10 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
30
30
|
type: string;
|
|
31
31
|
defaultValue: never[];
|
|
32
32
|
};
|
|
33
|
-
}, import("
|
|
33
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
34
34
|
} & {
|
|
35
|
-
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
36
|
-
configuration: import("
|
|
35
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
36
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
37
37
|
tokenType: {
|
|
38
38
|
description: string;
|
|
39
39
|
type: string;
|
|
@@ -74,7 +74,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
74
74
|
type: string;
|
|
75
75
|
defaultValue: string;
|
|
76
76
|
};
|
|
77
|
-
}, import("
|
|
77
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
78
78
|
name: {
|
|
79
79
|
description: string;
|
|
80
80
|
type: string;
|
|
@@ -100,10 +100,10 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
100
100
|
type: string;
|
|
101
101
|
defaultValue: never[];
|
|
102
102
|
};
|
|
103
|
-
}, import("
|
|
103
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
104
104
|
} & {
|
|
105
|
-
type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
|
|
106
|
-
configuration: import("
|
|
105
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
|
|
106
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
107
107
|
authEndpoint: {
|
|
108
108
|
description: string;
|
|
109
109
|
type: string;
|
|
@@ -124,7 +124,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
124
124
|
type: string;
|
|
125
125
|
defaultValue: string[];
|
|
126
126
|
};
|
|
127
|
-
}, import("
|
|
127
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
128
128
|
tokenType: {
|
|
129
129
|
description: string;
|
|
130
130
|
type: string;
|
|
@@ -165,7 +165,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
165
165
|
type: string;
|
|
166
166
|
defaultValue: string;
|
|
167
167
|
};
|
|
168
|
-
}, import("
|
|
168
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
169
169
|
name: {
|
|
170
170
|
description: string;
|
|
171
171
|
type: string;
|
|
@@ -191,7 +191,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
191
191
|
type: string;
|
|
192
192
|
defaultValue: never[];
|
|
193
193
|
};
|
|
194
|
-
}, import("
|
|
194
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
195
195
|
}, {
|
|
196
196
|
readonly name: string;
|
|
197
197
|
readonly description: string;
|
|
@@ -200,7 +200,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
200
200
|
readonly tokenType: string;
|
|
201
201
|
readonly domains: string[];
|
|
202
202
|
readonly toggleContents: React.ReactNode;
|
|
203
|
-
readonly SelectorComponent: import("@jbrowse/core/util
|
|
203
|
+
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
204
204
|
readonly selectorLabel: string | undefined;
|
|
205
205
|
} & {
|
|
206
206
|
handlesLocation(location: UriLocation): boolean;
|
|
@@ -273,7 +273,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
273
273
|
} & {
|
|
274
274
|
getFetcher(location?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
275
275
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
276
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
276
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
277
277
|
export default stateModelFactory;
|
|
278
278
|
export type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
279
279
|
export type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ConfigurationReference } from '@jbrowse/core/configuration';
|
|
3
|
-
import { types } from 'mobx-state-tree';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import baseModel from
|
|
3
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
import DropboxIcon from "./DropboxIcon.js";
|
|
5
|
+
import { getDescriptiveErrorMessage } from "./util.js";
|
|
6
|
+
import { configSchema as OAuthConfigSchema } from "../OAuthModel/index.js";
|
|
7
|
+
import baseModel from "../OAuthModel/model.js";
|
|
8
8
|
const stateModelFactory = (configSchema) => {
|
|
9
9
|
return baseModel(OAuthConfigSchema)
|
|
10
10
|
.named('DropboxOAuthInternetAccount')
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const ExternalTokenConfigSchema: import("
|
|
1
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
declare const ExternalTokenConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
validateWithHEAD: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
6
6
|
defaultValue: boolean;
|
|
7
7
|
};
|
|
8
|
-
}, import("
|
|
8
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
9
|
name: {
|
|
10
10
|
description: string;
|
|
11
11
|
type: string;
|
|
@@ -31,7 +31,7 @@ declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration/con
|
|
|
31
31
|
type: string;
|
|
32
32
|
defaultValue: never[];
|
|
33
33
|
};
|
|
34
|
-
}, import("
|
|
34
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
35
35
|
export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
|
|
36
36
|
export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
|
|
37
37
|
export default ExternalTokenConfigSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from './configSchema';
|
|
2
|
-
export { default as modelFactory } from './model';
|
|
1
|
+
export { default as configSchema } from './configSchema.ts';
|
|
2
|
+
export { default as modelFactory } from './model.tsx';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from
|
|
2
|
-
export { default as modelFactory } from
|
|
1
|
+
export { default as configSchema } from "./configSchema.js";
|
|
2
|
+
export { default as modelFactory } from "./model.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ExternalTokenInternetAccountConfigModel } from './configSchema';
|
|
1
|
+
import type { ExternalTokenInternetAccountConfigModel } from './configSchema.ts';
|
|
2
2
|
import type { UriLocation } from '@jbrowse/core/util/types';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
configuration: import("
|
|
3
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
|
|
5
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
8
8
|
name: {
|
|
9
9
|
description: string;
|
|
10
10
|
type: string;
|
|
@@ -30,16 +30,16 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
30
30
|
type: string;
|
|
31
31
|
defaultValue: never[];
|
|
32
32
|
};
|
|
33
|
-
}, import("
|
|
33
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
34
34
|
} & {
|
|
35
|
-
type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
|
|
36
|
-
configuration: import("
|
|
35
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
|
|
36
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
37
37
|
validateWithHEAD: {
|
|
38
38
|
description: string;
|
|
39
39
|
type: string;
|
|
40
40
|
defaultValue: boolean;
|
|
41
41
|
};
|
|
42
|
-
}, import("
|
|
42
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
43
43
|
name: {
|
|
44
44
|
description: string;
|
|
45
45
|
type: string;
|
|
@@ -65,7 +65,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
65
65
|
type: string;
|
|
66
66
|
defaultValue: never[];
|
|
67
67
|
};
|
|
68
|
-
}, import("
|
|
68
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
69
69
|
}, {
|
|
70
70
|
readonly name: string;
|
|
71
71
|
readonly description: string;
|
|
@@ -74,7 +74,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
74
74
|
readonly tokenType: string;
|
|
75
75
|
readonly domains: string[];
|
|
76
76
|
readonly toggleContents: React.ReactNode;
|
|
77
|
-
readonly SelectorComponent: import("@jbrowse/core/util
|
|
77
|
+
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
78
78
|
readonly selectorLabel: string | undefined;
|
|
79
79
|
} & {
|
|
80
80
|
handlesLocation(location: UriLocation): boolean;
|
|
@@ -120,7 +120,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
120
120
|
} & {
|
|
121
121
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
122
122
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
123
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
123
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
124
124
|
export default stateModelFactory;
|
|
125
125
|
export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
|
|
126
126
|
export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ConfigurationReference, getConf } from '@jbrowse/core/configuration';
|
|
2
2
|
import { InternetAccount } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
import { getRoot, types } from 'mobx-state-tree';
|
|
4
|
-
import { ExternalTokenEntryForm } from
|
|
3
|
+
import { getRoot, types } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
import { ExternalTokenEntryForm } from "./ExternalTokenEntryForm.js";
|
|
5
5
|
const stateModelFactory = (configSchema) => {
|
|
6
6
|
return InternetAccount.named('ExternalTokenInternetAccount')
|
|
7
7
|
.props({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const GoogleDriveOAuthConfigSchema: import("
|
|
1
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
declare const GoogleDriveOAuthConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
3
3
|
authEndpoint: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -20,7 +20,7 @@ declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/
|
|
|
20
20
|
type: string;
|
|
21
21
|
defaultValue: string;
|
|
22
22
|
};
|
|
23
|
-
}, import("
|
|
23
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
24
24
|
tokenType: {
|
|
25
25
|
description: string;
|
|
26
26
|
type: string;
|
|
@@ -61,7 +61,7 @@ declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/
|
|
|
61
61
|
type: string;
|
|
62
62
|
defaultValue: string;
|
|
63
63
|
};
|
|
64
|
-
}, import("
|
|
64
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
65
65
|
name: {
|
|
66
66
|
description: string;
|
|
67
67
|
type: string;
|
|
@@ -87,7 +87,7 @@ declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/
|
|
|
87
87
|
type: string;
|
|
88
88
|
defaultValue: never[];
|
|
89
89
|
};
|
|
90
|
-
}, import("
|
|
90
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
91
91
|
export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
|
|
92
92
|
export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
|
|
93
93
|
export default GoogleDriveOAuthConfigSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
-
import OAuthConfigSchema from
|
|
2
|
+
import OAuthConfigSchema from "../OAuthModel/configSchema.js";
|
|
3
3
|
function x() { }
|
|
4
4
|
const GoogleDriveOAuthConfigSchema = ConfigurationSchema('GoogleDriveOAuthInternetAccount', {
|
|
5
5
|
authEndpoint: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from './configSchema';
|
|
2
|
-
export { default as modelFactory } from './model';
|
|
1
|
+
export { default as configSchema } from './configSchema.ts';
|
|
2
|
+
export { default as modelFactory } from './model.tsx';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from
|
|
2
|
-
export { default as modelFactory } from
|
|
1
|
+
export { default as configSchema } from "./configSchema.js";
|
|
2
|
+
export { default as modelFactory } from "./model.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { GoogleDriveFile } from './GoogleDriveFilehandle';
|
|
2
|
-
import type { GoogleDriveOAuthInternetAccountConfigModel } from './configSchema';
|
|
1
|
+
import { GoogleDriveFile } from './GoogleDriveFilehandle.ts';
|
|
2
|
+
import type { GoogleDriveOAuthInternetAccountConfigModel } from './configSchema.ts';
|
|
3
3
|
import type { UriLocation } from '@jbrowse/core/util/types';
|
|
4
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
5
5
|
export interface RequestInitWithMetadata extends RequestInit {
|
|
6
6
|
metadataOnly?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export default function stateModelFactory(configSchema: GoogleDriveOAuthInternetAccountConfigModel): import("mobx-state-tree").IModelType<{
|
|
9
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
11
|
-
configuration: import("
|
|
8
|
+
export default function stateModelFactory(configSchema: GoogleDriveOAuthInternetAccountConfigModel): import("@jbrowse/mobx-state-tree").IModelType<{
|
|
9
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
11
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
12
12
|
name: {
|
|
13
13
|
description: string;
|
|
14
14
|
type: string;
|
|
@@ -34,10 +34,10 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
34
34
|
type: string;
|
|
35
35
|
defaultValue: never[];
|
|
36
36
|
};
|
|
37
|
-
}, import("
|
|
37
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
38
38
|
} & {
|
|
39
|
-
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
40
|
-
configuration: import("
|
|
39
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
40
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
41
41
|
tokenType: {
|
|
42
42
|
description: string;
|
|
43
43
|
type: string;
|
|
@@ -78,7 +78,7 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
78
78
|
type: string;
|
|
79
79
|
defaultValue: string;
|
|
80
80
|
};
|
|
81
|
-
}, import("
|
|
81
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
82
82
|
name: {
|
|
83
83
|
description: string;
|
|
84
84
|
type: string;
|
|
@@ -104,10 +104,10 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
104
104
|
type: string;
|
|
105
105
|
defaultValue: never[];
|
|
106
106
|
};
|
|
107
|
-
}, import("
|
|
107
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
108
108
|
} & {
|
|
109
|
-
type: import("mobx-state-tree").ISimpleType<"GoogleDriveOAuthInternetAccount">;
|
|
110
|
-
configuration: import("
|
|
109
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"GoogleDriveOAuthInternetAccount">;
|
|
110
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
111
111
|
authEndpoint: {
|
|
112
112
|
description: string;
|
|
113
113
|
type: string;
|
|
@@ -128,7 +128,7 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
128
128
|
type: string;
|
|
129
129
|
defaultValue: string;
|
|
130
130
|
};
|
|
131
|
-
}, import("
|
|
131
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
132
132
|
tokenType: {
|
|
133
133
|
description: string;
|
|
134
134
|
type: string;
|
|
@@ -169,7 +169,7 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
169
169
|
type: string;
|
|
170
170
|
defaultValue: string;
|
|
171
171
|
};
|
|
172
|
-
}, import("
|
|
172
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
173
173
|
name: {
|
|
174
174
|
description: string;
|
|
175
175
|
type: string;
|
|
@@ -195,7 +195,7 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
195
195
|
type: string;
|
|
196
196
|
defaultValue: never[];
|
|
197
197
|
};
|
|
198
|
-
}, import("
|
|
198
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
199
199
|
}, {
|
|
200
200
|
readonly name: string;
|
|
201
201
|
readonly description: string;
|
|
@@ -204,7 +204,7 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
204
204
|
readonly tokenType: string;
|
|
205
205
|
readonly domains: string[];
|
|
206
206
|
readonly toggleContents: React.ReactNode;
|
|
207
|
-
readonly SelectorComponent: import("@jbrowse/core/util
|
|
207
|
+
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
208
208
|
readonly selectorLabel: string | undefined;
|
|
209
209
|
} & {
|
|
210
210
|
handlesLocation(location: UriLocation): boolean;
|
|
@@ -278,6 +278,6 @@ export default function stateModelFactory(configSchema: GoogleDriveOAuthInternet
|
|
|
278
278
|
getFetcher(location?: UriLocation): (input: RequestInfo, init?: RequestInitWithMetadata) => Promise<Response>;
|
|
279
279
|
openLocation(location: UriLocation): GoogleDriveFile;
|
|
280
280
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
281
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
281
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
282
282
|
export type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
283
283
|
export type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ConfigurationReference } from '@jbrowse/core/configuration';
|
|
3
|
-
import { types } from 'mobx-state-tree';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import baseModel from
|
|
3
|
+
import { types } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
import { GoogleDriveFile } from "./GoogleDriveFilehandle.js";
|
|
5
|
+
import GoogleDriveIcon from "./GoogleDriveIcon.js";
|
|
6
|
+
import { getDescriptiveErrorMessage } from "./util.js";
|
|
7
|
+
import { configSchema as OAuthConfigSchema } from "../OAuthModel/index.js";
|
|
8
|
+
import baseModel from "../OAuthModel/model.js";
|
|
9
9
|
function getUri(str) {
|
|
10
10
|
const urlId = /[-\w]{25,}/.exec(str);
|
|
11
11
|
return `https://www.googleapis.com/drive/v3/files/${urlId}`;
|
|
@@ -30,7 +30,7 @@ export default function stateModelFactory(configSchema) {
|
|
|
30
30
|
return async (input, init) => {
|
|
31
31
|
const driveUrl = new URL(getUri(String(input)));
|
|
32
32
|
const searchParams = new URLSearchParams();
|
|
33
|
-
if (init
|
|
33
|
+
if (init?.metadataOnly) {
|
|
34
34
|
searchParams.append('fields', 'size');
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const HTTPBasicConfigSchema: import("
|
|
1
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
2
|
+
declare const HTTPBasicConfigSchema: import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
tokenType: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -10,7 +10,7 @@ declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configu
|
|
|
10
10
|
type: string;
|
|
11
11
|
defaultValue: boolean;
|
|
12
12
|
};
|
|
13
|
-
}, import("
|
|
13
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
14
14
|
name: {
|
|
15
15
|
description: string;
|
|
16
16
|
type: string;
|
|
@@ -36,7 +36,7 @@ declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configu
|
|
|
36
36
|
type: string;
|
|
37
37
|
defaultValue: never[];
|
|
38
38
|
};
|
|
39
|
-
}, import("
|
|
39
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
40
40
|
export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
|
|
41
41
|
export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
|
|
42
42
|
export default HTTPBasicConfigSchema;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from './configSchema';
|
|
2
|
-
export { default as modelFactory } from './model';
|
|
1
|
+
export { default as configSchema } from './configSchema.ts';
|
|
2
|
+
export { default as modelFactory } from './model.tsx';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as configSchema } from
|
|
2
|
-
export { default as modelFactory } from
|
|
1
|
+
export { default as configSchema } from "./configSchema.js";
|
|
2
|
+
export { default as modelFactory } from "./model.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { HTTPBasicInternetAccountConfigModel } from './configSchema';
|
|
1
|
+
import type { HTTPBasicInternetAccountConfigModel } from './configSchema.ts';
|
|
2
2
|
import type { UriLocation } from '@jbrowse/core/util/types';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
configuration: import("
|
|
3
|
+
import type { Instance } from '@jbrowse/mobx-state-tree';
|
|
4
|
+
declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigModel) => import("@jbrowse/mobx-state-tree").IModelType<{
|
|
5
|
+
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<string>;
|
|
7
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
8
8
|
name: {
|
|
9
9
|
description: string;
|
|
10
10
|
type: string;
|
|
@@ -30,10 +30,10 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
30
30
|
type: string;
|
|
31
31
|
defaultValue: never[];
|
|
32
32
|
};
|
|
33
|
-
}, import("
|
|
33
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
34
34
|
} & {
|
|
35
|
-
type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
|
|
36
|
-
configuration: import("
|
|
35
|
+
type: import("@jbrowse/mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
|
|
36
|
+
configuration: import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
37
37
|
tokenType: {
|
|
38
38
|
description: string;
|
|
39
39
|
type: string;
|
|
@@ -44,7 +44,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
44
44
|
type: string;
|
|
45
45
|
defaultValue: boolean;
|
|
46
46
|
};
|
|
47
|
-
}, import("
|
|
47
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaType<{
|
|
48
48
|
name: {
|
|
49
49
|
description: string;
|
|
50
50
|
type: string;
|
|
@@ -70,7 +70,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
70
70
|
type: string;
|
|
71
71
|
defaultValue: never[];
|
|
72
72
|
};
|
|
73
|
-
}, import("
|
|
73
|
+
}, import("node_modules/@jbrowse/core/src/configuration/configurationSchema.ts").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
74
74
|
}, {
|
|
75
75
|
readonly name: string;
|
|
76
76
|
readonly description: string;
|
|
@@ -79,7 +79,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
79
79
|
readonly tokenType: string;
|
|
80
80
|
readonly domains: string[];
|
|
81
81
|
readonly toggleContents: React.ReactNode;
|
|
82
|
-
readonly SelectorComponent: import("@jbrowse/core/util
|
|
82
|
+
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
83
83
|
readonly selectorLabel: string | undefined;
|
|
84
84
|
} & {
|
|
85
85
|
handlesLocation(location: UriLocation): boolean;
|
|
@@ -125,7 +125,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
125
125
|
} & {
|
|
126
126
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
127
127
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
128
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
128
|
+
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
129
129
|
export default stateModelFactory;
|
|
130
130
|
export type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
|
|
131
131
|
export type HTTPBasicModel = Instance<HTTPBasicStateModel>;
|