solid-ui 2.4.21 → 2.4.22-8f207a1d
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.md +0 -0
- package/README.md +8 -8
- package/dist/index.html +0 -0
- package/dist/main.js +213 -165
- package/dist/main.js.map +1 -1
- package/lib/acl/access-controller.d.ts +0 -0
- package/lib/acl/access-controller.d.ts.map +0 -0
- package/lib/acl/access-controller.js +2 -2
- package/lib/acl/access-controller.js.map +1 -1
- package/lib/acl/access-groups.d.ts +1 -1
- package/lib/acl/access-groups.d.ts.map +0 -0
- package/lib/acl/access-groups.js +1 -1
- package/lib/acl/access-groups.js.map +1 -1
- package/lib/acl/acl-control.d.ts +2 -2
- package/lib/acl/acl-control.d.ts.map +0 -0
- package/lib/acl/acl-control.js +5 -5
- package/lib/acl/acl-control.js.map +1 -1
- package/lib/acl/acl.d.ts +1 -1
- package/lib/acl/acl.d.ts.map +0 -0
- package/lib/acl/acl.js +1 -1
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.d.ts +1 -1
- package/lib/acl/add-agent-buttons.d.ts.map +0 -0
- package/lib/acl/add-agent-buttons.js +1 -1
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/acl/index.d.ts +0 -0
- package/lib/acl/index.d.ts.map +0 -0
- package/lib/acl/index.js +0 -0
- package/lib/acl/index.js.map +0 -0
- package/lib/acl/styles.d.ts +1 -1
- package/lib/acl/styles.d.ts.map +0 -0
- package/lib/acl/styles.js +1 -1
- package/lib/acl/styles.js.map +1 -1
- package/lib/acl/types.d.ts +0 -0
- package/lib/acl/types.d.ts.map +0 -0
- package/lib/acl/types.js +0 -0
- package/lib/acl/types.js.map +0 -0
- package/lib/chat/bookmarks.js +0 -0
- package/lib/chat/bookmarks.js.map +0 -0
- package/lib/chat/chatLogic.js +0 -0
- package/lib/chat/chatLogic.js.map +0 -0
- package/lib/chat/dateFolder.js +0 -0
- package/lib/chat/dateFolder.js.map +0 -0
- package/lib/chat/infinite.js +0 -0
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +0 -0
- package/lib/chat/message.js.map +0 -0
- package/lib/chat/messageTools.js +0 -0
- package/lib/chat/messageTools.js.map +0 -0
- package/lib/chat/thread.js +0 -0
- package/lib/chat/thread.js.map +0 -0
- package/lib/create/create.d.ts +0 -0
- package/lib/create/create.d.ts.map +0 -0
- package/lib/create/create.js +0 -0
- package/lib/create/create.js.map +0 -0
- package/lib/create/index.d.ts +0 -0
- package/lib/create/index.d.ts.map +0 -0
- package/lib/create/index.js +0 -0
- package/lib/create/index.js.map +0 -0
- package/lib/create/types.d.ts +0 -0
- package/lib/create/types.d.ts.map +0 -0
- package/lib/create/types.js +0 -0
- package/lib/create/types.js.map +0 -0
- package/lib/debug.d.ts +0 -0
- package/lib/debug.d.ts.map +0 -0
- package/lib/debug.js +0 -0
- package/lib/debug.js.map +0 -0
- package/lib/folders.js +0 -0
- package/lib/folders.js.map +0 -0
- package/lib/footer/index.d.ts +0 -0
- package/lib/footer/index.d.ts.map +0 -0
- package/lib/footer/index.js +0 -0
- package/lib/footer/index.js.map +0 -0
- package/lib/footer/styleMap.d.ts +0 -0
- package/lib/footer/styleMap.d.ts.map +0 -0
- package/lib/footer/styleMap.js +0 -0
- package/lib/footer/styleMap.js.map +0 -0
- package/lib/header/empty-profile.d.ts +0 -0
- package/lib/header/empty-profile.d.ts.map +0 -0
- package/lib/header/empty-profile.js +0 -0
- package/lib/header/empty-profile.js.map +0 -0
- package/lib/header/index.d.ts +0 -0
- package/lib/header/index.d.ts.map +0 -0
- package/lib/header/index.js +0 -0
- package/lib/header/index.js.map +0 -0
- package/lib/header/styleMap.d.ts +0 -0
- package/lib/header/styleMap.d.ts.map +0 -0
- package/lib/header/styleMap.js +0 -0
- package/lib/header/styleMap.js.map +0 -0
- package/lib/iconBase.d.ts +0 -0
- package/lib/iconBase.d.ts.map +1 -1
- package/lib/iconBase.js +2 -2
- package/lib/iconBase.js.map +1 -1
- package/lib/icons/solid_logo.d.ts +0 -0
- package/lib/icons/solid_logo.d.ts.map +0 -0
- package/lib/icons/solid_logo.js +0 -0
- package/lib/icons/solid_logo.js.map +0 -0
- package/lib/index.d.ts +0 -0
- package/lib/index.d.ts.map +0 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/jss/index.d.ts +2 -2
- package/lib/jss/index.d.ts.map +0 -0
- package/lib/jss/index.js +2 -2
- package/lib/jss/index.js.map +1 -1
- package/lib/log.d.ts +0 -0
- package/lib/log.d.ts.map +0 -0
- package/lib/log.js +0 -0
- package/lib/log.js.map +0 -0
- package/lib/login/login.d.ts +57 -57
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +74 -72
- package/lib/login/login.js.map +1 -1
- package/lib/matrix/index.d.ts +0 -0
- package/lib/matrix/index.d.ts.map +0 -0
- package/lib/matrix/index.js +0 -0
- package/lib/matrix/index.js.map +0 -0
- package/lib/matrix/matrix.d.ts +0 -0
- package/lib/matrix/matrix.d.ts.map +0 -0
- package/lib/matrix/matrix.js +0 -0
- package/lib/matrix/matrix.js.map +0 -0
- package/lib/matrix/types.d.ts +0 -0
- package/lib/matrix/types.d.ts.map +0 -0
- package/lib/matrix/types.js +0 -0
- package/lib/matrix/types.js.map +0 -0
- package/lib/media/index.d.ts +0 -0
- package/lib/media/index.d.ts.map +0 -0
- package/lib/media/index.js +0 -0
- package/lib/media/index.js.map +0 -0
- package/lib/media/media-capture.d.ts +0 -0
- package/lib/media/media-capture.d.ts.map +0 -0
- package/lib/media/media-capture.js +0 -0
- package/lib/media/media-capture.js.map +0 -0
- package/lib/messageArea.js +0 -0
- package/lib/messageArea.js.map +0 -0
- package/lib/noun_Camera_1618446_000000.js +0 -0
- package/lib/noun_Camera_1618446_000000.js.map +0 -0
- package/lib/ns.js +0 -0
- package/lib/ns.js.map +0 -0
- package/lib/pad.d.ts +0 -0
- package/lib/pad.d.ts.map +0 -0
- package/lib/pad.js +0 -0
- package/lib/pad.js.map +0 -0
- package/lib/participation.d.ts +0 -0
- package/lib/participation.d.ts.map +0 -0
- package/lib/participation.js +1 -1
- package/lib/participation.js.map +1 -1
- package/lib/preferences.js +0 -0
- package/lib/preferences.js.map +0 -0
- package/lib/signup/config-default.js +0 -0
- package/lib/signup/config-default.js.map +0 -0
- package/lib/signup/signup.js +0 -0
- package/lib/signup/signup.js.map +0 -0
- package/lib/stories/decorators.js +0 -0
- package/lib/stories/decorators.js.map +0 -0
- package/lib/style.js +0 -0
- package/lib/style.js.map +0 -0
- package/lib/table.js +0 -0
- package/lib/table.js.map +0 -0
- package/lib/tabs.d.ts +1 -1
- package/lib/tabs.d.ts.map +1 -1
- package/lib/tabs.js +5 -3
- package/lib/tabs.js.map +1 -1
- package/lib/typings.d.js +0 -0
- package/lib/typings.d.js.map +0 -0
- package/lib/utils/headerFooterHelpers.d.ts +0 -0
- package/lib/utils/headerFooterHelpers.d.ts.map +1 -1
- package/lib/utils/headerFooterHelpers.js +51 -30
- package/lib/utils/headerFooterHelpers.js.map +1 -1
- package/lib/utils/index.js +0 -0
- package/lib/utils/index.js.map +0 -0
- package/lib/utils/label.d.ts +0 -0
- package/lib/utils/label.d.ts.map +0 -0
- package/lib/utils/label.js +0 -0
- package/lib/utils/label.js.map +0 -0
- package/lib/versionInfo.d.ts +9 -11
- package/lib/versionInfo.d.ts.map +1 -1
- package/lib/versionInfo.js +14 -16
- package/lib/versionInfo.js.map +1 -1
- package/lib/widgets/buttons/iconLinks.d.ts +0 -0
- package/lib/widgets/buttons/iconLinks.d.ts.map +0 -0
- package/lib/widgets/buttons/iconLinks.js +0 -0
- package/lib/widgets/buttons/iconLinks.js.map +0 -0
- package/lib/widgets/buttons.d.ts +0 -0
- package/lib/widgets/buttons.d.ts.map +0 -0
- package/lib/widgets/buttons.js +0 -0
- package/lib/widgets/buttons.js.map +0 -0
- package/lib/widgets/dragAndDrop.js +0 -0
- package/lib/widgets/dragAndDrop.js.map +0 -0
- package/lib/widgets/error.d.ts +0 -0
- package/lib/widgets/error.d.ts.map +0 -0
- package/lib/widgets/error.js +0 -0
- package/lib/widgets/error.js.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteBar.d.ts.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteBar.js +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteField.d.ts +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteField.d.ts.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteField.js +0 -0
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts +0 -0
- package/lib/widgets/forms/autocomplete/autocompletePicker.d.ts.map +0 -0
- package/lib/widgets/forms/autocomplete/autocompletePicker.js +0 -0
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +0 -0
- package/lib/widgets/forms/autocomplete/language.d.ts +0 -0
- package/lib/widgets/forms/autocomplete/language.d.ts.map +0 -0
- package/lib/widgets/forms/autocomplete/language.js +0 -0
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts +0 -0
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +0 -0
- package/lib/widgets/forms/autocomplete/publicData.js +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.d.ts +0 -0
- package/lib/widgets/forms/basic.d.ts.map +0 -0
- package/lib/widgets/forms/basic.js +0 -0
- package/lib/widgets/forms/basic.js.map +0 -0
- package/lib/widgets/forms/comment.d.ts +0 -0
- package/lib/widgets/forms/comment.d.ts.map +0 -0
- package/lib/widgets/forms/comment.js +0 -0
- package/lib/widgets/forms/comment.js.map +0 -0
- package/lib/widgets/forms/fieldFunction.d.ts +0 -0
- package/lib/widgets/forms/fieldFunction.d.ts.map +0 -0
- package/lib/widgets/forms/fieldFunction.js +0 -0
- package/lib/widgets/forms/fieldFunction.js.map +0 -0
- package/lib/widgets/forms/fieldParams.d.ts +0 -0
- package/lib/widgets/forms/fieldParams.d.ts.map +0 -0
- package/lib/widgets/forms/fieldParams.js +0 -0
- package/lib/widgets/forms/fieldParams.js.map +0 -0
- package/lib/widgets/forms/formStyle.d.ts +0 -0
- package/lib/widgets/forms/formStyle.d.ts.map +0 -0
- package/lib/widgets/forms/formStyle.js +0 -0
- package/lib/widgets/forms/formStyle.js.map +0 -0
- package/lib/widgets/forms.js +0 -0
- package/lib/widgets/forms.js.map +0 -0
- package/lib/widgets/index.js +0 -0
- package/lib/widgets/index.js.map +0 -0
- package/lib/widgets/peoplePicker.js +0 -0
- package/lib/widgets/peoplePicker.js.map +0 -0
- package/lib/widgets/widgetHelpers.d.ts +0 -0
- package/lib/widgets/widgetHelpers.d.ts.map +0 -0
- package/lib/widgets/widgetHelpers.js +0 -0
- package/lib/widgets/widgetHelpers.js.map +0 -0
- package/package.json +9 -8
package/lib/login/login.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ import { PaneDefinition } from 'pane-registry';
|
|
|
26
26
|
import { NamedNode } from 'rdflib';
|
|
27
27
|
import { AppDetails, AuthenticationContext } from 'solid-logic';
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
* Resolves with the logged in user's WebID
|
|
30
|
+
*
|
|
31
|
+
* @param context
|
|
32
|
+
*/
|
|
33
33
|
export declare function ensureLoggedIn(context: AuthenticationContext): Promise<AuthenticationContext>;
|
|
34
34
|
/**
|
|
35
35
|
* Loads preference file
|
|
@@ -49,19 +49,19 @@ export declare function ensureLoadedPreferences(context: AuthenticationContext):
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function ensureLoadedProfile(context: AuthenticationContext): Promise<AuthenticationContext>;
|
|
51
51
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
* Returns promise of context with arrays of symbols
|
|
53
|
+
*
|
|
54
|
+
* 2016-12-11 change to include forClass arc a la
|
|
55
|
+
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
56
|
+
*/
|
|
57
57
|
export declare function findAppInstances(context: AuthenticationContext, theClass: NamedNode, isPublic?: boolean): Promise<AuthenticationContext>;
|
|
58
58
|
/**
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
* UI to control registration of instance
|
|
60
|
+
*/
|
|
61
61
|
export declare function registrationControl(context: AuthenticationContext, instance: any, theClass: any): Promise<AuthenticationContext | void>;
|
|
62
62
|
/**
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
* UI to List at all registered things
|
|
64
|
+
*/
|
|
65
65
|
export declare function registrationList(context0: AuthenticationContext, options: {
|
|
66
66
|
private?: boolean;
|
|
67
67
|
public?: boolean;
|
|
@@ -69,57 +69,57 @@ export declare function registrationList(context0: AuthenticationContext, option
|
|
|
69
69
|
}): Promise<AuthenticationContext>;
|
|
70
70
|
export declare function renderSignInPopup(dom: HTMLDocument): void;
|
|
71
71
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
72
|
+
* Login status box
|
|
73
|
+
*
|
|
74
|
+
* A big sign-up/sign in box or a logout box depending on the state
|
|
75
|
+
*
|
|
76
|
+
* @param dom
|
|
77
|
+
* @param listener
|
|
78
|
+
*
|
|
79
|
+
* @returns
|
|
80
|
+
*/
|
|
81
81
|
export declare function loginStatusBox(dom: HTMLDocument, listener?: ((uri: string | null) => void) | null, options?: {
|
|
82
82
|
buttonStyle?: string;
|
|
83
83
|
}): HTMLElement;
|
|
84
84
|
/**
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
* Workspace selection etc
|
|
86
|
+
* See https://github.com/solidos/userguide/issues/16
|
|
87
|
+
*/
|
|
88
88
|
/**
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
89
|
+
* Returns a UI object which, if it selects a workspace,
|
|
90
|
+
* will callback(workspace, newBase).
|
|
91
|
+
* See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
|
|
92
|
+
*
|
|
93
|
+
* If necessary, will get an account, preference file, etc. In sequence:
|
|
94
|
+
*
|
|
95
|
+
* - If not logged in, log in.
|
|
96
|
+
* - Load preference file
|
|
97
|
+
* - Prompt user for workspaces
|
|
98
|
+
* - Allows the user to just type in a URI by hand
|
|
99
|
+
*
|
|
100
|
+
* Calls back with the workspace and the base URI
|
|
101
|
+
*
|
|
102
|
+
* @param dom
|
|
103
|
+
* @param appDetails
|
|
104
|
+
* @param callbackWS
|
|
105
|
+
*/
|
|
106
106
|
export declare function selectWorkspace(dom: HTMLDocument, appDetails: AppDetails, callbackWS: (workspace: string | null, newBase: string) => void): HTMLElement;
|
|
107
107
|
/**
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
* Creates a new instance of an app.
|
|
109
|
+
*
|
|
110
|
+
* An instance of an app could be e.g. an issue tracker for a given project,
|
|
111
|
+
* or a chess game, or calendar, or a health/fitness record for a person.
|
|
112
|
+
*
|
|
113
|
+
* Note that this use of the term 'app' refers more to entries in the user's
|
|
114
|
+
* type index than to actual software applications that use the personal data
|
|
115
|
+
* to which these entries point.
|
|
116
|
+
*
|
|
117
|
+
* @param dom
|
|
118
|
+
* @param appDetails
|
|
119
|
+
* @param callback
|
|
120
|
+
*
|
|
121
|
+
* @returns A div with a button in it for making a new app instance
|
|
122
|
+
*/
|
|
123
123
|
export declare function newAppInstance(dom: HTMLDocument, appDetails: AppDetails, callback: (workspace: string | null, newBase: string) => void): HTMLElement;
|
|
124
124
|
/**
|
|
125
125
|
* Retrieves whether the currently logged in user is a power user
|
package/lib/login/login.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAa,SAAS,EAAiB,MAAM,QAAQ,CAAA;AAG5D,OAAO,EACL,UAAU,EACV,qBAAqB,EAatB,MAAM,aAAa,CAAA;AASpB;;;;GAIG;AAEH,wBAAgB,cAAc,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB9F;AAED;;;;;;;GAOG;AAEH,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAiEhC;AAED;;;;;;GAMG;AAEH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,qBAAqB,CAAC,CAiBhC;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAqEhC;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,KAAA,EACR,QAAQ,KAAA,GACP,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAuFvC;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CACpC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,EAAE;IACP,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GACA,OAAO,CAAC,qBAAqB,CAAC,CA0FhC;AAsGD,wBAAgB,iBAAiB,CAAE,GAAG,EAAE,YAAY,QA0InD;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,YAAY,EACjB,QAAQ,GAAE,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,IAAW,EACtD,OAAO,GAAE;IACP,WAAW,CAAC,EAAE,MAAM,CAAC;CACjB,GACL,WAAW,CAmFb;AAsBD;;;GAGG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAC9D,WAAW,CA0Pb;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAC5D,WAAW,CAmBb;AACD;;;GAGG;AACH,wBAAsB,YAAY,IAAK,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAgB/D;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,GAC3B,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAGhC"}
|
package/lib/login/login.js
CHANGED
|
@@ -46,6 +46,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
46
46
|
|
|
47
47
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
48
48
|
|
|
49
|
+
/* eslint-disable camelcase */
|
|
50
|
+
|
|
49
51
|
/**
|
|
50
52
|
* Signing in, signing up, profile and preferences reloading
|
|
51
53
|
* Type index management
|
|
@@ -72,10 +74,10 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
72
74
|
*/
|
|
73
75
|
|
|
74
76
|
/**
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
* Resolves with the logged in user's WebID
|
|
78
|
+
*
|
|
79
|
+
* @param context
|
|
80
|
+
*/
|
|
79
81
|
// used to be logIn
|
|
80
82
|
function ensureLoggedIn(context) {
|
|
81
83
|
var me = _solidLogic.authn.currentUser();
|
|
@@ -269,11 +271,11 @@ function ensureLoadedProfile(_x3) {
|
|
|
269
271
|
return _ensureLoadedProfile.apply(this, arguments);
|
|
270
272
|
}
|
|
271
273
|
/**
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
274
|
+
* Returns promise of context with arrays of symbols
|
|
275
|
+
*
|
|
276
|
+
* 2016-12-11 change to include forClass arc a la
|
|
277
|
+
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
278
|
+
*/
|
|
277
279
|
|
|
278
280
|
|
|
279
281
|
function _ensureLoadedProfile() {
|
|
@@ -341,8 +343,8 @@ function findAppInstances(_x4, _x5, _x6) {
|
|
|
341
343
|
return _findAppInstances.apply(this, arguments);
|
|
342
344
|
}
|
|
343
345
|
/**
|
|
344
|
-
|
|
345
|
-
|
|
346
|
+
* UI to control registration of instance
|
|
347
|
+
*/
|
|
346
348
|
|
|
347
349
|
|
|
348
350
|
function _findAppInstances() {
|
|
@@ -491,8 +493,8 @@ function registrationControl(_x7, _x8, _x9) {
|
|
|
491
493
|
return _registrationControl.apply(this, arguments);
|
|
492
494
|
}
|
|
493
495
|
/**
|
|
494
|
-
|
|
495
|
-
|
|
496
|
+
* UI to List at all registered things
|
|
497
|
+
*/
|
|
496
498
|
|
|
497
499
|
|
|
498
500
|
function _registrationControl() {
|
|
@@ -718,14 +720,14 @@ function getDefaultSignInButtonStyle() {
|
|
|
718
720
|
return 'padding: 1em; border-radius:0.5em; font-size: 100%;';
|
|
719
721
|
}
|
|
720
722
|
/**
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
723
|
+
* Bootstrapping identity
|
|
724
|
+
* (Called by `loginStatusBox()`)
|
|
725
|
+
*
|
|
726
|
+
* @param dom
|
|
727
|
+
* @param setUserCallback
|
|
728
|
+
*
|
|
729
|
+
* @returns
|
|
730
|
+
*/
|
|
729
731
|
|
|
730
732
|
|
|
731
733
|
function signInOrSignUpBox(dom, setUserCallback) {
|
|
@@ -803,8 +805,8 @@ function signInOrSignUpBox(dom, setUserCallback) {
|
|
|
803
805
|
|
|
804
806
|
function renderSignInPopup(dom) {
|
|
805
807
|
/**
|
|
806
|
-
|
|
807
|
-
|
|
808
|
+
* Issuer Menu
|
|
809
|
+
*/
|
|
808
810
|
var issuerPopup = dom.createElement('div');
|
|
809
811
|
issuerPopup.setAttribute('style', 'position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center;');
|
|
810
812
|
dom.body.appendChild(issuerPopup);
|
|
@@ -818,7 +820,7 @@ function renderSignInPopup(dom) {
|
|
|
818
820
|
issuerPopupBoxLabel.setAttribute('style', 'margin-right: 5px; font-weight: 800');
|
|
819
821
|
issuerPopupBoxLabel.innerText = 'Select an identity provider';
|
|
820
822
|
var issuerPopupBoxCloseButton = dom.createElement('button');
|
|
821
|
-
issuerPopupBoxCloseButton.innerHTML = '<img src="https://
|
|
823
|
+
issuerPopupBoxCloseButton.innerHTML = '<img src="https://solidos.github.io/solid-ui/src/icons/noun_1180156.svg" style="width: 2em; height: 2em;" title="Cancel">';
|
|
822
824
|
issuerPopupBoxCloseButton.setAttribute('style', 'background-color: transparent; border: none;');
|
|
823
825
|
issuerPopupBoxCloseButton.addEventListener('click', function () {
|
|
824
826
|
issuerPopup.remove();
|
|
@@ -871,8 +873,8 @@ function renderSignInPopup(dom) {
|
|
|
871
873
|
};
|
|
872
874
|
}();
|
|
873
875
|
/**
|
|
874
|
-
|
|
875
|
-
|
|
876
|
+
* Text-based idp selection
|
|
877
|
+
*/
|
|
876
878
|
|
|
877
879
|
|
|
878
880
|
var issuerTextContainer = dom.createElement('div');
|
|
@@ -899,8 +901,8 @@ function renderSignInPopup(dom) {
|
|
|
899
901
|
issuerTextContainer.appendChild(issuerTextInputContainer);
|
|
900
902
|
issuerPopupBox.appendChild(issuerTextContainer);
|
|
901
903
|
/**
|
|
902
|
-
|
|
903
|
-
|
|
904
|
+
* Button-based idp selection
|
|
905
|
+
*/
|
|
904
906
|
|
|
905
907
|
var issuerButtonContainer = dom.createElement('div');
|
|
906
908
|
issuerButtonContainer.setAttribute('style', "\n display: flex;\n flex-direction: column;\n padding-top: 10px;\n ");
|
|
@@ -920,15 +922,15 @@ function renderSignInPopup(dom) {
|
|
|
920
922
|
issuerPopupBox.appendChild(issuerButtonContainer);
|
|
921
923
|
}
|
|
922
924
|
/**
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
925
|
+
* Login status box
|
|
926
|
+
*
|
|
927
|
+
* A big sign-up/sign in box or a logout box depending on the state
|
|
928
|
+
*
|
|
929
|
+
* @param dom
|
|
930
|
+
* @param listener
|
|
931
|
+
*
|
|
932
|
+
* @returns
|
|
933
|
+
*/
|
|
932
934
|
|
|
933
935
|
|
|
934
936
|
function loginStatusBox(dom) {
|
|
@@ -1089,28 +1091,28 @@ _solidLogic.authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"]
|
|
|
1089
1091
|
}, _callee2, null, [[2, 17]]);
|
|
1090
1092
|
})));
|
|
1091
1093
|
/**
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1094
|
+
* Workspace selection etc
|
|
1095
|
+
* See https://github.com/solidos/userguide/issues/16
|
|
1096
|
+
*/
|
|
1095
1097
|
|
|
1096
1098
|
/**
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1099
|
+
* Returns a UI object which, if it selects a workspace,
|
|
1100
|
+
* will callback(workspace, newBase).
|
|
1101
|
+
* See https://github.com/solidos/userguide/issues/16 for more info on workspaces.
|
|
1102
|
+
*
|
|
1103
|
+
* If necessary, will get an account, preference file, etc. In sequence:
|
|
1104
|
+
*
|
|
1105
|
+
* - If not logged in, log in.
|
|
1106
|
+
* - Load preference file
|
|
1107
|
+
* - Prompt user for workspaces
|
|
1108
|
+
* - Allows the user to just type in a URI by hand
|
|
1109
|
+
*
|
|
1110
|
+
* Calls back with the workspace and the base URI
|
|
1111
|
+
*
|
|
1112
|
+
* @param dom
|
|
1113
|
+
* @param appDetails
|
|
1114
|
+
* @param callbackWS
|
|
1115
|
+
*/
|
|
1114
1116
|
|
|
1115
1117
|
|
|
1116
1118
|
function selectWorkspace(dom, appDetails, callbackWS) {
|
|
@@ -1373,21 +1375,21 @@ function selectWorkspace(dom, appDetails, callbackWS) {
|
|
|
1373
1375
|
} // selectWorkspace
|
|
1374
1376
|
|
|
1375
1377
|
/**
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1378
|
+
* Creates a new instance of an app.
|
|
1379
|
+
*
|
|
1380
|
+
* An instance of an app could be e.g. an issue tracker for a given project,
|
|
1381
|
+
* or a chess game, or calendar, or a health/fitness record for a person.
|
|
1382
|
+
*
|
|
1383
|
+
* Note that this use of the term 'app' refers more to entries in the user's
|
|
1384
|
+
* type index than to actual software applications that use the personal data
|
|
1385
|
+
* to which these entries point.
|
|
1386
|
+
*
|
|
1387
|
+
* @param dom
|
|
1388
|
+
* @param appDetails
|
|
1389
|
+
* @param callback
|
|
1390
|
+
*
|
|
1391
|
+
* @returns A div with a button in it for making a new app instance
|
|
1392
|
+
*/
|
|
1391
1393
|
|
|
1392
1394
|
|
|
1393
1395
|
function newAppInstance(dom, appDetails, callback) {
|