solid-ui 2.4.15 → 2.4.16-6d61d9de
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 +6 -11
- 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 +23 -24
- package/lib/chat/bookmarks.js.map +1 -1
- package/lib/chat/chatLogic.js +338 -0
- package/lib/chat/chatLogic.js.map +1 -0
- package/lib/chat/dateFolder.js +13 -13
- package/lib/chat/dateFolder.js.map +1 -1
- package/lib/chat/infinite.js +287 -669
- package/lib/chat/infinite.js.map +1 -1
- package/lib/chat/message.js +444 -74
- package/lib/chat/message.js.map +1 -1
- package/lib/chat/messageTools.js +163 -106
- package/lib/chat/messageTools.js.map +1 -1
- package/lib/chat/thread.js +171 -41
- 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 +27 -34
- 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 +1412 -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.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 -4
- package/lib/utils/label.js.map +1 -1
- package/lib/versionInfo.js +3 -3
- package/lib/versionInfo.js.map +1 -1
- package/lib/webpack-bundle.js +6436 -22396
- package/lib/webpack-bundle.js.map +1 -1
- package/lib/widgets/buttons.d.ts.map +1 -1
- package/lib/widgets/buttons.js +24 -17
- 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 +6 -11
- package/lib/widgets/forms/autocomplete/language.js.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts +2 -1
- package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
- package/lib/widgets/forms/autocomplete/publicData.js +15 -22
- 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 +11 -11
- 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 +3 -3
- 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
|
@@ -56,19 +56,13 @@ Object.defineProperty(exports, "aclControl", {
|
|
|
56
56
|
return _index.aclControl;
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
Object.defineProperty(exports, "authn", {
|
|
60
|
-
enumerable: true,
|
|
61
|
-
get: function get() {
|
|
62
|
-
return _index2.authn;
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
59
|
Object.defineProperty(exports, "create", {
|
|
66
60
|
enumerable: true,
|
|
67
61
|
get: function get() {
|
|
68
|
-
return
|
|
62
|
+
return _index2.create;
|
|
69
63
|
}
|
|
70
64
|
});
|
|
71
|
-
exports.dom = void 0;
|
|
65
|
+
exports.dom = exports.createTypes = void 0;
|
|
72
66
|
Object.defineProperty(exports, "icons", {
|
|
73
67
|
enumerable: true,
|
|
74
68
|
get: function get() {
|
|
@@ -93,17 +87,17 @@ Object.defineProperty(exports, "initHeader", {
|
|
|
93
87
|
return _header.initHeader;
|
|
94
88
|
}
|
|
95
89
|
});
|
|
96
|
-
exports.log = exports.language = void 0;
|
|
90
|
+
exports.login = exports.log = exports.language = void 0;
|
|
97
91
|
Object.defineProperty(exports, "matrix", {
|
|
98
92
|
enumerable: true,
|
|
99
93
|
get: function get() {
|
|
100
|
-
return
|
|
94
|
+
return _index3.matrix;
|
|
101
95
|
}
|
|
102
96
|
});
|
|
103
97
|
Object.defineProperty(exports, "media", {
|
|
104
98
|
enumerable: true,
|
|
105
99
|
get: function get() {
|
|
106
|
-
return
|
|
100
|
+
return _index4.media;
|
|
107
101
|
}
|
|
108
102
|
});
|
|
109
103
|
Object.defineProperty(exports, "messageArea", {
|
|
@@ -112,14 +106,7 @@ Object.defineProperty(exports, "messageArea", {
|
|
|
112
106
|
return _messageArea.messageArea;
|
|
113
107
|
}
|
|
114
108
|
});
|
|
115
|
-
exports.rdf = exports.preferences = exports.participation = exports.pad = exports.ns = void 0;
|
|
116
|
-
Object.defineProperty(exports, "solidLogicSingleton", {
|
|
117
|
-
enumerable: true,
|
|
118
|
-
get: function get() {
|
|
119
|
-
return _logic.solidLogicSingleton;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
exports.style = exports.store = void 0;
|
|
109
|
+
exports.style = exports.solidLogicLib = exports.rdf = exports.preferences = exports.participation = exports.pad = exports.ns = void 0;
|
|
123
110
|
Object.defineProperty(exports, "table", {
|
|
124
111
|
enumerable: true,
|
|
125
112
|
get: function get() {
|
|
@@ -145,9 +132,7 @@ exports.ns = ns;
|
|
|
145
132
|
|
|
146
133
|
var _index = require("./acl/index");
|
|
147
134
|
|
|
148
|
-
var _index2 = require("./
|
|
149
|
-
|
|
150
|
-
var _index3 = require("./create/index");
|
|
135
|
+
var _index2 = require("./create/index");
|
|
151
136
|
|
|
152
137
|
var _iconBase = require("./iconBase");
|
|
153
138
|
|
|
@@ -159,9 +144,9 @@ var log = _interopRequireWildcard(require("./log"));
|
|
|
159
144
|
|
|
160
145
|
exports.log = log;
|
|
161
146
|
|
|
162
|
-
var
|
|
147
|
+
var _index3 = require("./matrix/index");
|
|
163
148
|
|
|
164
|
-
var
|
|
149
|
+
var _index4 = require("./media/index");
|
|
165
150
|
|
|
166
151
|
var _messageArea = require("./messageArea");
|
|
167
152
|
|
|
@@ -179,8 +164,6 @@ var preferences = _interopRequireWildcard(require("./preferences"));
|
|
|
179
164
|
|
|
180
165
|
exports.preferences = preferences;
|
|
181
166
|
|
|
182
|
-
var _logic = require("./logic");
|
|
183
|
-
|
|
184
167
|
var style = _interopRequireWildcard(require("./style"));
|
|
185
168
|
|
|
186
169
|
exports.style = style;
|
|
@@ -195,6 +178,10 @@ var utils = _interopRequireWildcard(require("./utils"));
|
|
|
195
178
|
|
|
196
179
|
exports.utils = utils;
|
|
197
180
|
|
|
181
|
+
var login = _interopRequireWildcard(require("./login/login"));
|
|
182
|
+
|
|
183
|
+
exports.login = login;
|
|
184
|
+
|
|
198
185
|
var widgets = _interopRequireWildcard(require("./widgets/index"));
|
|
199
186
|
|
|
200
187
|
exports.widgets = widgets;
|
|
@@ -205,6 +192,14 @@ var _header = require("./header");
|
|
|
205
192
|
|
|
206
193
|
var _footer = require("./footer");
|
|
207
194
|
|
|
195
|
+
var createTypes = _interopRequireWildcard(require("./create/types"));
|
|
196
|
+
|
|
197
|
+
exports.createTypes = createTypes;
|
|
198
|
+
|
|
199
|
+
var solidLogicLib = _interopRequireWildcard(require("solid-logic"));
|
|
200
|
+
|
|
201
|
+
exports.solidLogicLib = solidLogicLib;
|
|
202
|
+
|
|
208
203
|
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
204
|
|
|
210
205
|
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; }
|
|
@@ -226,31 +221,29 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
226
221
|
var dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
|
|
227
222
|
|
|
228
223
|
exports.dom = dom;
|
|
229
|
-
var store = _logic.solidLogicSingleton.store;
|
|
230
|
-
exports.store = store;
|
|
231
224
|
|
|
232
225
|
if (typeof window !== 'undefined') {
|
|
233
226
|
;
|
|
234
227
|
window.UI = {
|
|
228
|
+
solidLogicLib: solidLogicLib,
|
|
235
229
|
ns: ns,
|
|
236
230
|
rdf: rdf,
|
|
237
231
|
acl: _index.acl,
|
|
238
232
|
aclControl: _index.aclControl,
|
|
239
|
-
|
|
240
|
-
|
|
233
|
+
create: _index2.create,
|
|
234
|
+
createTypes: createTypes,
|
|
241
235
|
dom: dom,
|
|
242
236
|
icons: _iconBase.icons,
|
|
243
237
|
language: language,
|
|
244
238
|
log: log,
|
|
245
|
-
|
|
246
|
-
|
|
239
|
+
login: login,
|
|
240
|
+
matrix: _index3.matrix,
|
|
241
|
+
media: _index4.media,
|
|
247
242
|
messageArea: _messageArea.messageArea,
|
|
248
243
|
infiniteMessageArea: _infinite.infiniteMessageArea,
|
|
249
244
|
pad: pad,
|
|
250
245
|
participation: participation,
|
|
251
246
|
preferences: preferences,
|
|
252
|
-
solidLogicSingleton: _logic.solidLogicSingleton,
|
|
253
|
-
store: store,
|
|
254
247
|
style: style,
|
|
255
248
|
table: _table.renderTableViewPane,
|
|
256
249
|
tabs: tabs,
|
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","solidLogicLib","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;;;;AACA;;AACA;;AAIA;;AACA;;;;AACA;;;;AACA;;AACA;;AAEA;;AAEA;;AAEA;;;;AAEA;;;;AAEA;;;;AAGA;;;;AAEA;;AACA;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;;;;;AArC8B;AAC9B;AAIA;AACA;AACA;AAMA;AAEA;AAEA;AAEA;AAEA;AAEA;AACA;AAEA;AAGA;AAUA,IAAMA,GAAG,GAAGC,MAAM,GAAGA,MAAM,CAACC,QAAV,GAAqB,IAAvC,C,CAA4C;;;;AAE5C,IAAI,OAAOD,MAAP,KAAkB,WAAtB,EAAmC;AACjC;AAAOA,EAAAA,MAAN,CAAcE,EAAd,GAAmB;AAClBC,IAAAA,aAAa,EAAbA,aADkB;AAElBC,IAAAA,EAAE,EAAFA,EAFkB;AAGlBC,IAAAA,GAAG,EAAHA,GAHkB;AAIlBC,IAAAA,GAAG,EAAHA,UAJkB;AAKlBC,IAAAA,UAAU,EAAVA,iBALkB;AAMlBC,IAAAA,MAAM,EAANA,cANkB;AAOlBC,IAAAA,WAAW,EAAXA,WAPkB;AAQlBV,IAAAA,GAAG,EAAHA,GARkB;AASlBW,IAAAA,KAAK,EAALA,eATkB;AAUlBC,IAAAA,QAAQ,EAARA,QAVkB;AAWlBC,IAAAA,GAAG,EAAHA,GAXkB;AAYlBC,IAAAA,KAAK,EAALA,KAZkB;AAalBC,IAAAA,MAAM,EAANA,cAbkB;AAclBC,IAAAA,KAAK,EAALA,aAdkB;AAelBC,IAAAA,WAAW,EAAXA,wBAfkB;AAgBlBC,IAAAA,mBAAmB,EAAnBA,6BAhBkB;AAiBlBC,IAAAA,GAAG,EAAHA,GAjBkB;AAkBlBC,IAAAA,aAAa,EAAbA,aAlBkB;AAmBlBC,IAAAA,WAAW,EAAXA,WAnBkB;AAoBlBC,IAAAA,KAAK,EAALA,KApBkB;AAqBlBC,IAAAA,KAAK,EAALA,0BArBkB;AAsBlBC,IAAAA,IAAI,EAAJA,IAtBkB;AAuBlBC,IAAAA,KAAK,EAALA,KAvBkB;AAwBlBC,IAAAA,OAAO,EAAPA,OAxBkB;AAyBlBC,IAAAA,WAAW,EAAXA,uBAzBkB;AA0BlBC,IAAAA,UAAU,EAAVA,kBA1BkB;AA2BlBC,IAAAA,UAAU,EAAVA;AA3BkB,GAAnB,CADgC,CA6B/B;AACH","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\n// import * as debug from '../debug'\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\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 * as solidLogicLib 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 solidLogicLib,\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\nexport {\n solidLogicLib,\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 loggedInContext(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 logInLoadPreferences(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 logInLoadProfile(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,MAAM,QAAQ,CAAA;AAG5E,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAgN,MAAM,aAAa,CAAA;AAS7Q;;;;IAII;AACJ,wBAAgB,eAAe,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB/F;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA4D1G;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoBtG;AAED;;;;;IAKI;AACJ,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,EAAE,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAqEhC;AAED;;IAEI;AACJ,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,qBAAqB,EAC9B,QAAQ,KAAA,EACR,QAAQ,KAAA,GACP,OAAO,CAAC,qBAAqB,GAAG,IAAI,CAAC,CAgFvC;AAED;;IAEI;AACJ,wBAAgB,gBAAgB,CAAE,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAoElC;AA8FD,wBAAgB,iBAAiB,CAAE,GAAG,EAAE,YAAY,QAoHnD;AAED;;;;;;;;;IASI;AACJ,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,CAAA;CACf,GACN,WAAW,CAmFb;AAsBD;;;IAGI;AAEJ;;;;;;;;;;;;;;;;;IAiBI;AACJ,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,CAqNb;AAED;;;;;;;;;;;;;;;IAeI;AACJ,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,CAeb;AACD;;;GAGG;AACH,wBAAsB,YAAY,IAAK,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAe/D;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CAAE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAGxG"}
|