solid-ui 2.4.18 → 2.4.19
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/README.md +3 -2
- package/lib/acl/acl.d.ts.map +1 -1
- package/lib/acl/acl.js +2 -4
- package/lib/acl/acl.js.map +1 -1
- package/lib/acl/add-agent-buttons.d.ts.map +1 -1
- package/lib/acl/add-agent-buttons.js +5 -5
- package/lib/acl/add-agent-buttons.js.map +1 -1
- package/lib/chat/bookmarks.js +20 -22
- package/lib/chat/bookmarks.js.map +1 -1
- package/lib/chat/chatLogic.js +13 -15
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/chat/dateFolder.js +10 -10
- package/lib/chat/dateFolder.js.map +1 -1
- package/lib/chat/infinite.js +14 -16
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +19 -23
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/messageTools.js +16 -21
- package/lib/chat/messageTools.js.map +1 -1
- package/lib/chat/thread.js +24 -24
- package/lib/chat/thread.js.map +1 -1
- package/lib/create/create.d.ts.map +1 -1
- package/lib/create/create.js +9 -9
- package/lib/create/create.js.map +1 -1
- package/lib/folders.js +2 -6
- package/lib/folders.js.map +1 -1
- package/lib/footer/index.js +4 -4
- package/lib/footer/index.js.map +1 -1
- package/lib/header/index.d.ts.map +1 -1
- package/lib/header/index.js +11 -8
- package/lib/header/index.js.map +1 -1
- package/lib/index.d.ts +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +30 -28
- package/lib/index.js.map +1 -1
- package/lib/login/login.d.ts +130 -0
- package/lib/login/login.d.ts.map +1 -0
- package/lib/login/login.js +1415 -0
- package/lib/login/login.js.map +1 -0
- package/lib/matrix/matrix.js +2 -2
- package/lib/matrix/matrix.js.map +1 -1
- package/lib/messageArea.js +9 -10
- package/lib/messageArea.js.map +1 -1
- package/lib/pad.js +2 -2
- package/lib/pad.js.map +1 -1
- package/lib/participation.d.ts.map +1 -1
- package/lib/participation.js +4 -5
- package/lib/participation.js.map +1 -1
- package/lib/preferences.js +8 -8
- package/lib/preferences.js.map +1 -1
- package/lib/{authn → signup}/config-default.js +0 -0
- package/lib/signup/config-default.js.map +1 -0
- package/lib/{authn → signup}/signup.js +0 -0
- package/lib/signup/signup.js.map +1 -0
- package/lib/table.js +2 -3
- package/lib/table.js.map +1 -1
- package/lib/tabs.js +3 -3
- package/lib/tabs.js.map +1 -1
- package/lib/utils/index.js +6 -6
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/label.js +4 -5
- package/lib/utils/label.js.map +1 -1
- package/lib/versionInfo.js +2 -2
- package/lib/versionInfo.js.map +1 -1
- package/lib/webpack-bundle.js +8230 -24429
- package/lib/webpack-bundle.js.map +1 -1
- package/lib/widgets/buttons.js +16 -16
- package/lib/widgets/buttons.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteBar.js +2 -2
- package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompleteField.js +2 -2
- package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
- package/lib/widgets/forms/autocomplete/autocompletePicker.js +2 -2
- package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
- package/lib/widgets/forms/autocomplete/language.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/language.js +7 -10
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +15 -16
- package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
- package/lib/widgets/forms/basic.d.ts +1 -1
- package/lib/widgets/forms/basic.d.ts.map +1 -1
- package/lib/widgets/forms/basic.js +2 -2
- package/lib/widgets/forms/basic.js.map +1 -1
- package/lib/widgets/forms/comment.d.ts +1 -1
- package/lib/widgets/forms/comment.js +3 -3
- package/lib/widgets/forms/comment.js.map +1 -1
- package/lib/widgets/forms/fieldFunction.js +2 -2
- package/lib/widgets/forms/fieldFunction.js.map +1 -1
- package/lib/widgets/forms/formStyle.js +3 -3
- package/lib/widgets/forms/formStyle.js.map +1 -1
- package/lib/widgets/forms.js +10 -10
- package/lib/widgets/forms.js.map +1 -1
- package/lib/widgets/peoplePicker.js +2 -2
- package/lib/widgets/peoplePicker.js.map +1 -1
- package/package.json +12 -4
- package/lib/authn/authSession.d.ts +0 -4
- package/lib/authn/authSession.d.ts.map +0 -1
- package/lib/authn/authSession.js +0 -25
- package/lib/authn/authSession.js.map +0 -1
- package/lib/authn/authn.d.ts +0 -193
- package/lib/authn/authn.d.ts.map +0 -1
- package/lib/authn/authn.js +0 -2238
- package/lib/authn/authn.js.map +0 -1
- package/lib/authn/config-default.js.map +0 -1
- package/lib/authn/index.d.ts +0 -35
- package/lib/authn/index.d.ts.map +0 -1
- package/lib/authn/index.js +0 -44
- package/lib/authn/index.js.map +0 -1
- package/lib/authn/signup.js.map +0 -1
- package/lib/authn/types.d.ts +0 -25
- package/lib/authn/types.d.ts.map +0 -1
- package/lib/authn/types.js +0 -6
- package/lib/authn/types.js.map +0 -1
- package/lib/logic.d.ts +0 -8
- package/lib/logic.d.ts.map +0 -1
- package/lib/logic.js +0 -79
- package/lib/logic.js.map +0 -1
package/lib/index.js
CHANGED
|
@@ -59,16 +59,16 @@ Object.defineProperty(exports, "aclControl", {
|
|
|
59
59
|
Object.defineProperty(exports, "authn", {
|
|
60
60
|
enumerable: true,
|
|
61
61
|
get: function get() {
|
|
62
|
-
return
|
|
62
|
+
return _solidLogic.authn;
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "create", {
|
|
66
66
|
enumerable: true,
|
|
67
67
|
get: function get() {
|
|
68
|
-
return
|
|
68
|
+
return _index2.create;
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
exports.dom = void 0;
|
|
71
|
+
exports.dom = exports.createTypes = void 0;
|
|
72
72
|
Object.defineProperty(exports, "icons", {
|
|
73
73
|
enumerable: true,
|
|
74
74
|
get: function get() {
|
|
@@ -93,17 +93,17 @@ Object.defineProperty(exports, "initHeader", {
|
|
|
93
93
|
return _header.initHeader;
|
|
94
94
|
}
|
|
95
95
|
});
|
|
96
|
-
exports.log = exports.language = void 0;
|
|
96
|
+
exports.login = exports.log = exports.language = void 0;
|
|
97
97
|
Object.defineProperty(exports, "matrix", {
|
|
98
98
|
enumerable: true,
|
|
99
99
|
get: function get() {
|
|
100
|
-
return
|
|
100
|
+
return _index3.matrix;
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "media", {
|
|
104
104
|
enumerable: true,
|
|
105
105
|
get: function get() {
|
|
106
|
-
return
|
|
106
|
+
return _index4.media;
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "messageArea", {
|
|
@@ -113,13 +113,13 @@ Object.defineProperty(exports, "messageArea", {
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
exports.rdf = exports.preferences = exports.participation = exports.pad = exports.ns = void 0;
|
|
116
|
-
Object.defineProperty(exports, "
|
|
116
|
+
Object.defineProperty(exports, "store", {
|
|
117
117
|
enumerable: true,
|
|
118
118
|
get: function get() {
|
|
119
|
-
return
|
|
119
|
+
return _solidLogic.store;
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
|
-
exports.style =
|
|
122
|
+
exports.style = void 0;
|
|
123
123
|
Object.defineProperty(exports, "table", {
|
|
124
124
|
enumerable: true,
|
|
125
125
|
get: function get() {
|
|
@@ -145,9 +145,7 @@ exports.ns = ns;
|
|
|
145
145
|
|
|
146
146
|
var _index = require("./acl/index");
|
|
147
147
|
|
|
148
|
-
var _index2 = require("./
|
|
149
|
-
|
|
150
|
-
var _index3 = require("./create/index");
|
|
148
|
+
var _index2 = require("./create/index");
|
|
151
149
|
|
|
152
150
|
var _iconBase = require("./iconBase");
|
|
153
151
|
|
|
@@ -159,9 +157,9 @@ var log = _interopRequireWildcard(require("./log"));
|
|
|
159
157
|
|
|
160
158
|
exports.log = log;
|
|
161
159
|
|
|
162
|
-
var
|
|
160
|
+
var _index3 = require("./matrix/index");
|
|
163
161
|
|
|
164
|
-
var
|
|
162
|
+
var _index4 = require("./media/index");
|
|
165
163
|
|
|
166
164
|
var _messageArea = require("./messageArea");
|
|
167
165
|
|
|
@@ -179,8 +177,6 @@ var preferences = _interopRequireWildcard(require("./preferences"));
|
|
|
179
177
|
|
|
180
178
|
exports.preferences = preferences;
|
|
181
179
|
|
|
182
|
-
var _logic = require("./logic");
|
|
183
|
-
|
|
184
180
|
var style = _interopRequireWildcard(require("./style"));
|
|
185
181
|
|
|
186
182
|
exports.style = style;
|
|
@@ -195,6 +191,10 @@ var utils = _interopRequireWildcard(require("./utils"));
|
|
|
195
191
|
|
|
196
192
|
exports.utils = utils;
|
|
197
193
|
|
|
194
|
+
var login = _interopRequireWildcard(require("./login/login"));
|
|
195
|
+
|
|
196
|
+
exports.login = login;
|
|
197
|
+
|
|
198
198
|
var widgets = _interopRequireWildcard(require("./widgets/index"));
|
|
199
199
|
|
|
200
200
|
exports.widgets = widgets;
|
|
@@ -205,6 +205,12 @@ var _header = require("./header");
|
|
|
205
205
|
|
|
206
206
|
var _footer = require("./footer");
|
|
207
207
|
|
|
208
|
+
var createTypes = _interopRequireWildcard(require("./create/types"));
|
|
209
|
+
|
|
210
|
+
exports.createTypes = createTypes;
|
|
211
|
+
|
|
212
|
+
var _solidLogic = require("solid-logic");
|
|
213
|
+
|
|
208
214
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
209
215
|
|
|
210
216
|
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; }
|
|
@@ -212,9 +218,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
212
218
|
// pull in first avoid cross-refs
|
|
213
219
|
// @ts-ignore
|
|
214
220
|
// @ts-ignore
|
|
215
|
-
// import * as debug from '../debug'
|
|
216
|
-
// @ts-ignore
|
|
217
|
-
// @ts-ignore
|
|
218
221
|
// @ts-ignore
|
|
219
222
|
// @ts-ignore
|
|
220
223
|
// @ts-ignore
|
|
@@ -226,31 +229,30 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
226
229
|
var dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
|
|
227
230
|
|
|
228
231
|
exports.dom = dom;
|
|
229
|
-
var store = _logic.solidLogicSingleton.store;
|
|
230
|
-
exports.store = store;
|
|
231
232
|
|
|
232
233
|
if (typeof window !== 'undefined') {
|
|
233
234
|
;
|
|
234
235
|
window.UI = {
|
|
236
|
+
authn: _solidLogic.authn,
|
|
237
|
+
store: _solidLogic.store,
|
|
235
238
|
ns: ns,
|
|
236
239
|
rdf: rdf,
|
|
237
240
|
acl: _index.acl,
|
|
238
241
|
aclControl: _index.aclControl,
|
|
239
|
-
|
|
240
|
-
|
|
242
|
+
create: _index2.create,
|
|
243
|
+
createTypes: createTypes,
|
|
241
244
|
dom: dom,
|
|
242
245
|
icons: _iconBase.icons,
|
|
243
246
|
language: language,
|
|
244
247
|
log: log,
|
|
245
|
-
|
|
246
|
-
|
|
248
|
+
login: login,
|
|
249
|
+
matrix: _index3.matrix,
|
|
250
|
+
media: _index4.media,
|
|
247
251
|
messageArea: _messageArea.messageArea,
|
|
248
252
|
infiniteMessageArea: _infinite.infiniteMessageArea,
|
|
249
253
|
pad: pad,
|
|
250
254
|
participation: participation,
|
|
251
255
|
preferences: preferences,
|
|
252
|
-
solidLogicSingleton: _logic.solidLogicSingleton,
|
|
253
|
-
store: store,
|
|
254
256
|
style: style,
|
|
255
257
|
table: _table.renderTableViewPane,
|
|
256
258
|
tabs: tabs,
|
|
@@ -260,5 +262,5 @@ if (typeof window !== 'undefined') {
|
|
|
260
262
|
initHeader: _header.initHeader,
|
|
261
263
|
initFooter: _footer.initFooter
|
|
262
264
|
}; // Simpler access by non-node scripts
|
|
263
|
-
}
|
|
265
|
+
} // this variables are directly used in the storybook
|
|
264
266
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":["dom","window","document","
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":["dom","window","document","UI","authn","store","ns","rdf","acl","aclControl","create","createTypes","icons","language","log","login","matrix","media","messageArea","infiniteMessageArea","pad","participation","preferences","style","table","tabs","utils","widgets","versionInfo","initHeader","initFooter"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;;;AAEA;;;;A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C,IAAAA,IAAI,EAAJA,IAvBkB;AAwBlBC,IAAAA,KAAK,EAALA,KAxBkB;AAyBlBC,IAAAA,OAAO,EAAPA,OAzBkB;AA0BlBC,IAAAA,WAAW,EAAXA,uBA1BkB;AA2BlBC,IAAAA,UAAU,EAAVA,kBA3BkB;AA4BlBC,IAAAA,UAAU,EAAVA;AA5BkB,GAAnB,CADgC,CA8B/B;AACH,C,CAED","sourcesContent":["/*\nThe MIT License (MIT)\n\nCopyright (c) 2015-2016 Solid\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\nIf you would like to know more about the solid Solid project, please see\nhttps://github.com/solid/solid\n*/\n'use strict'\n/**\n * Provides a Solid client helper object (which exposes various static modules).\n * @module solidUi.js\n * @main solidUi.js\n */\n\n/**\n * @class SolidUi\n * @static\n */\n\n// REMOVE @ts-ignore as you migrate files to TypeScript\nimport * as rdf from 'rdflib' // pull in first avoid cross-refs\n// @ts-ignore\nimport * as ns from './ns'\nimport { acl, aclControl } from './acl/index'\nimport { create } from './create/index'\n// @ts-ignore\nimport { icons } from './iconBase'\nimport * as language from './widgets/forms/autocomplete/language'\nimport * as log from './log'\nimport { matrix } from './matrix/index'\nimport { media } from './media/index'\n// @ts-ignore\nimport { messageArea } from './messageArea'\n// @ts-ignore\nimport { infiniteMessageArea } from './chat/infinite'\n// @ts-ignore\nimport * as pad from './pad'\n// @ts-ignore\nimport * as participation from './participation'\n// @ts-ignore\nimport * as preferences from './preferences'\n// @ts-ignore\nimport * as style from './style'\n// @ts-ignore\nimport { renderTableViewPane as table } from './table'\nimport * as tabs from './tabs'\n// @ts-ignore\nimport * as utils from './utils'\nimport * as login from './login/login'\nimport * as widgets from './widgets/index'\nimport versionInfo from './versionInfo'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\nimport * as createTypes from './create/types'\nimport { authn, store } from 'solid-logic'\n\nconst dom = window ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\n\nif (typeof window !== 'undefined') {\n ;(<any>window).UI = {\n authn,\n store,\n ns,\n rdf,\n acl,\n aclControl,\n create,\n createTypes,\n dom,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n versionInfo,\n initHeader,\n initFooter\n } // Simpler access by non-node scripts\n}\n\n// this variables are directly used in the storybook\nexport {\n authn,\n store,\n ns,\n rdf,\n acl,\n aclControl,\n create,\n createTypes,\n dom,\n icons,\n language,\n log,\n login,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n style,\n table,\n tabs,\n utils,\n widgets,\n versionInfo,\n initHeader,\n initFooter\n}\n"],"file":"index.js"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Signing in, signing up, profile and preferences reloading
|
|
3
|
+
* Type index management
|
|
4
|
+
*
|
|
5
|
+
* Many functions in this module take a context object which
|
|
6
|
+
* holds various RDF symbols, add to it, and return a promise of it.
|
|
7
|
+
*
|
|
8
|
+
* * `me` RDF symbol for the user's WebID
|
|
9
|
+
* * `publicProfile` The user's public profile, iff loaded
|
|
10
|
+
* * `preferencesFile` The user's personal preference file, iff loaded
|
|
11
|
+
* * `index.public` The user's public type index file
|
|
12
|
+
* * `index.private` The user's private type index file
|
|
13
|
+
*
|
|
14
|
+
* Not RDF symbols:
|
|
15
|
+
* * `noun` A string in english for the type of thing -- like "address book"
|
|
16
|
+
* * `instance` An array of nodes which are existing instances
|
|
17
|
+
* * `containers` An array of nodes of containers of instances
|
|
18
|
+
* * `div` A DOM element where UI can be displayed
|
|
19
|
+
* * `statusArea` A DOM element (opt) progress stuff can be displayed, or error messages
|
|
20
|
+
* @packageDocumentation
|
|
21
|
+
*/
|
|
22
|
+
import { PaneDefinition } from 'pane-registry';
|
|
23
|
+
import { NamedNode } from 'rdflib';
|
|
24
|
+
import { AppDetails, AuthenticationContext } from 'solid-logic';
|
|
25
|
+
/**
|
|
26
|
+
* Resolves with the logged in user's WebID
|
|
27
|
+
*
|
|
28
|
+
* @param context
|
|
29
|
+
*/
|
|
30
|
+
export declare function ensureLoggedIn(context: AuthenticationContext): Promise<AuthenticationContext>;
|
|
31
|
+
/**
|
|
32
|
+
* Loads preference file
|
|
33
|
+
* Do this after having done log in and load profile
|
|
34
|
+
*
|
|
35
|
+
* @private
|
|
36
|
+
*
|
|
37
|
+
* @param context
|
|
38
|
+
*/
|
|
39
|
+
export declare function ensureLoadedPreferences(context: AuthenticationContext): Promise<AuthenticationContext>;
|
|
40
|
+
/**
|
|
41
|
+
* Logs the user in and loads their WebID profile document into the store
|
|
42
|
+
*
|
|
43
|
+
* @param context
|
|
44
|
+
*
|
|
45
|
+
* @returns Resolves with the context after login / fetch
|
|
46
|
+
*/
|
|
47
|
+
export declare function ensureLoadedProfile(context: AuthenticationContext): Promise<AuthenticationContext>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns promise of context with arrays of symbols
|
|
50
|
+
*
|
|
51
|
+
* 2016-12-11 change to include forClass arc a la
|
|
52
|
+
* https://github.com/solid/solid/blob/main/proposals/data-discovery.md
|
|
53
|
+
*/
|
|
54
|
+
export declare function findAppInstances(context: AuthenticationContext, theClass: NamedNode, isPublic?: boolean): Promise<AuthenticationContext>;
|
|
55
|
+
/**
|
|
56
|
+
* UI to control registration of instance
|
|
57
|
+
*/
|
|
58
|
+
export declare function registrationControl(context: AuthenticationContext, instance: any, theClass: any): Promise<AuthenticationContext | void>;
|
|
59
|
+
/**
|
|
60
|
+
* UI to List at all registered things
|
|
61
|
+
*/
|
|
62
|
+
export declare function registrationList(context: AuthenticationContext, options: {
|
|
63
|
+
private?: boolean;
|
|
64
|
+
public?: boolean;
|
|
65
|
+
type?: NamedNode;
|
|
66
|
+
}): Promise<AuthenticationContext>;
|
|
67
|
+
export declare function renderSignInPopup(dom: HTMLDocument): void;
|
|
68
|
+
/**
|
|
69
|
+
* Login status box
|
|
70
|
+
*
|
|
71
|
+
* A big sign-up/sign in box or a logout box depending on the state
|
|
72
|
+
*
|
|
73
|
+
* @param dom
|
|
74
|
+
* @param listener
|
|
75
|
+
*
|
|
76
|
+
* @returns
|
|
77
|
+
*/
|
|
78
|
+
export declare function loginStatusBox(dom: HTMLDocument, listener?: ((uri: string | null) => void) | null, options?: {
|
|
79
|
+
buttonStyle?: string;
|
|
80
|
+
}): HTMLElement;
|
|
81
|
+
/**
|
|
82
|
+
* Workspace selection etc
|
|
83
|
+
* See https://github.com/solid/userguide/issues/16
|
|
84
|
+
*/
|
|
85
|
+
/**
|
|
86
|
+
* Returns a UI object which, if it selects a workspace,
|
|
87
|
+
* will callback(workspace, newBase).
|
|
88
|
+
* See https://github.com/solid/userguide/issues/16 for more info on workspaces.
|
|
89
|
+
*
|
|
90
|
+
* If necessary, will get an account, preference file, etc. In sequence:
|
|
91
|
+
*
|
|
92
|
+
* - If not logged in, log in.
|
|
93
|
+
* - Load preference file
|
|
94
|
+
* - Prompt user for workspaces
|
|
95
|
+
* - Allows the user to just type in a URI by hand
|
|
96
|
+
*
|
|
97
|
+
* Calls back with the workspace and the base URI
|
|
98
|
+
*
|
|
99
|
+
* @param dom
|
|
100
|
+
* @param appDetails
|
|
101
|
+
* @param callbackWS
|
|
102
|
+
*/
|
|
103
|
+
export declare function selectWorkspace(dom: HTMLDocument, appDetails: AppDetails, callbackWS: (workspace: string | null, newBase: string) => void): HTMLElement;
|
|
104
|
+
/**
|
|
105
|
+
* Creates a new instance of an app.
|
|
106
|
+
*
|
|
107
|
+
* An instance of an app could be e.g. an issue tracker for a given project,
|
|
108
|
+
* or a chess game, or calendar, or a health/fitness record for a person.
|
|
109
|
+
*
|
|
110
|
+
* Note that this use of the term 'app' refers more to entries in the user's
|
|
111
|
+
* type index than to actual software applications that use the personal data
|
|
112
|
+
* to which these entries point.
|
|
113
|
+
*
|
|
114
|
+
* @param dom
|
|
115
|
+
* @param appDetails
|
|
116
|
+
* @param callback
|
|
117
|
+
*
|
|
118
|
+
* @returns A div with a button in it for making a new app instance
|
|
119
|
+
*/
|
|
120
|
+
export declare function newAppInstance(dom: HTMLDocument, appDetails: AppDetails, callback: (workspace: string | null, newBase: string) => void): HTMLElement;
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves whether the currently logged in user is a power user
|
|
123
|
+
* and/or a developer
|
|
124
|
+
*/
|
|
125
|
+
export declare function getUserRoles(): Promise<Array<NamedNode>>;
|
|
126
|
+
/**
|
|
127
|
+
* Filters which panes should be available, based on the result of [[getUserRoles]]
|
|
128
|
+
*/
|
|
129
|
+
export declare function filterAvailablePanes(panes: Array<PaneDefinition>): Promise<Array<PaneDefinition>>;
|
|
130
|
+
//# sourceMappingURL=login.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/login/login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAA6B,SAAS,EAAiB,MAA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