solid-ui 2.4.15 → 2.4.16-2759465c

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.
Files changed (120) hide show
  1. package/README.md +6 -11
  2. package/lib/acl/acl.d.ts.map +1 -1
  3. package/lib/acl/acl.js +2 -4
  4. package/lib/acl/acl.js.map +1 -1
  5. package/lib/acl/add-agent-buttons.d.ts.map +1 -1
  6. package/lib/acl/add-agent-buttons.js +5 -5
  7. package/lib/acl/add-agent-buttons.js.map +1 -1
  8. package/lib/chat/bookmarks.js +23 -24
  9. package/lib/chat/bookmarks.js.map +1 -1
  10. package/lib/chat/chatLogic.js +338 -0
  11. package/lib/chat/chatLogic.js.map +1 -0
  12. package/lib/chat/dateFolder.js +13 -13
  13. package/lib/chat/dateFolder.js.map +1 -1
  14. package/lib/chat/infinite.js +287 -669
  15. package/lib/chat/infinite.js.map +1 -1
  16. package/lib/chat/message.js +444 -74
  17. package/lib/chat/message.js.map +1 -1
  18. package/lib/chat/messageTools.js +163 -106
  19. package/lib/chat/messageTools.js.map +1 -1
  20. package/lib/chat/thread.js +171 -41
  21. package/lib/chat/thread.js.map +1 -1
  22. package/lib/create/create.d.ts.map +1 -1
  23. package/lib/create/create.js +9 -9
  24. package/lib/create/create.js.map +1 -1
  25. package/lib/folders.js +2 -6
  26. package/lib/folders.js.map +1 -1
  27. package/lib/footer/index.js +4 -4
  28. package/lib/footer/index.js.map +1 -1
  29. package/lib/header/index.d.ts.map +1 -1
  30. package/lib/header/index.js +11 -8
  31. package/lib/header/index.js.map +1 -1
  32. package/lib/index.d.ts +3 -4
  33. package/lib/index.d.ts.map +1 -1
  34. package/lib/index.js +27 -37
  35. package/lib/index.js.map +1 -1
  36. package/lib/login/login.d.ts +130 -0
  37. package/lib/login/login.d.ts.map +1 -0
  38. package/lib/login/login.js +1415 -0
  39. package/lib/login/login.js.map +1 -0
  40. package/lib/matrix/matrix.js +2 -2
  41. package/lib/matrix/matrix.js.map +1 -1
  42. package/lib/messageArea.js +9 -10
  43. package/lib/messageArea.js.map +1 -1
  44. package/lib/pad.js +2 -2
  45. package/lib/pad.js.map +1 -1
  46. package/lib/participation.d.ts.map +1 -1
  47. package/lib/participation.js +61 -33
  48. package/lib/participation.js.map +1 -1
  49. package/lib/preferences.js +8 -8
  50. package/lib/preferences.js.map +1 -1
  51. package/lib/{authn → signup}/config-default.js +0 -0
  52. package/lib/signup/config-default.js.map +1 -0
  53. package/lib/{authn → signup}/signup.js +0 -0
  54. package/lib/signup/signup.js.map +1 -0
  55. package/lib/table.js +2 -3
  56. package/lib/table.js.map +1 -1
  57. package/lib/tabs.js +3 -3
  58. package/lib/tabs.js.map +1 -1
  59. package/lib/utils/index.js +6 -6
  60. package/lib/utils/index.js.map +1 -1
  61. package/lib/utils/label.js +4 -5
  62. package/lib/utils/label.js.map +1 -1
  63. package/lib/versionInfo.js +10 -10
  64. package/lib/versionInfo.js.map +1 -1
  65. package/lib/webpack-bundle.js +7175 -22937
  66. package/lib/webpack-bundle.js.map +1 -1
  67. package/lib/widgets/buttons.d.ts.map +1 -1
  68. package/lib/widgets/buttons.js +24 -17
  69. package/lib/widgets/buttons.js.map +1 -1
  70. package/lib/widgets/forms/autocomplete/autocompleteBar.js +2 -2
  71. package/lib/widgets/forms/autocomplete/autocompleteBar.js.map +1 -1
  72. package/lib/widgets/forms/autocomplete/autocompleteField.js +2 -2
  73. package/lib/widgets/forms/autocomplete/autocompleteField.js.map +1 -1
  74. package/lib/widgets/forms/autocomplete/autocompletePicker.js +2 -2
  75. package/lib/widgets/forms/autocomplete/autocompletePicker.js.map +1 -1
  76. package/lib/widgets/forms/autocomplete/language.d.ts.map +1 -1
  77. package/lib/widgets/forms/autocomplete/language.js +7 -10
  78. package/lib/widgets/forms/autocomplete/language.js.map +1 -1
  79. package/lib/widgets/forms/autocomplete/publicData.d.ts +2 -1
  80. package/lib/widgets/forms/autocomplete/publicData.d.ts.map +1 -1
  81. package/lib/widgets/forms/autocomplete/publicData.js +16 -16
  82. package/lib/widgets/forms/autocomplete/publicData.js.map +1 -1
  83. package/lib/widgets/forms/basic.d.ts +1 -1
  84. package/lib/widgets/forms/basic.d.ts.map +1 -1
  85. package/lib/widgets/forms/basic.js +2 -2
  86. package/lib/widgets/forms/basic.js.map +1 -1
  87. package/lib/widgets/forms/comment.d.ts +1 -1
  88. package/lib/widgets/forms/comment.js +3 -3
  89. package/lib/widgets/forms/comment.js.map +1 -1
  90. package/lib/widgets/forms/fieldFunction.js +2 -2
  91. package/lib/widgets/forms/fieldFunction.js.map +1 -1
  92. package/lib/widgets/forms/formStyle.js +3 -3
  93. package/lib/widgets/forms/formStyle.js.map +1 -1
  94. package/lib/widgets/forms.js +11 -11
  95. package/lib/widgets/forms.js.map +1 -1
  96. package/lib/widgets/peoplePicker.js +2 -2
  97. package/lib/widgets/peoplePicker.js.map +1 -1
  98. package/package.json +12 -3
  99. package/lib/authn/authSession.d.ts +0 -4
  100. package/lib/authn/authSession.d.ts.map +0 -1
  101. package/lib/authn/authSession.js +0 -25
  102. package/lib/authn/authSession.js.map +0 -1
  103. package/lib/authn/authn.d.ts +0 -193
  104. package/lib/authn/authn.d.ts.map +0 -1
  105. package/lib/authn/authn.js +0 -2238
  106. package/lib/authn/authn.js.map +0 -1
  107. package/lib/authn/config-default.js.map +0 -1
  108. package/lib/authn/index.d.ts +0 -35
  109. package/lib/authn/index.d.ts.map +0 -1
  110. package/lib/authn/index.js +0 -44
  111. package/lib/authn/index.js.map +0 -1
  112. package/lib/authn/signup.js.map +0 -1
  113. package/lib/authn/types.d.ts +0 -25
  114. package/lib/authn/types.d.ts.map +0 -1
  115. package/lib/authn/types.js +0 -6
  116. package/lib/authn/types.js.map +0 -1
  117. package/lib/logic.d.ts +0 -8
  118. package/lib/logic.d.ts.map +0 -1
  119. package/lib/logic.js +0 -79
  120. 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 _index3.create;
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 _index4.matrix;
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 _index5.media;
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.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("./authn/index");
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 _index4 = require("./matrix/index");
147
+ var _index3 = require("./matrix/index");
163
148
 
164
- var _index5 = require("./media/index");
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,12 @@ 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 _solidLogic = require("solid-logic");
200
+
208
201
  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
202
 
210
203
  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 +205,6 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
212
205
  // pull in first avoid cross-refs
213
206
  // @ts-ignore
214
207
  // @ts-ignore
215
- // import * as debug from '../debug'
216
- // @ts-ignore
217
- // @ts-ignore
218
208
  // @ts-ignore
219
209
  // @ts-ignore
220
210
  // @ts-ignore
@@ -226,31 +216,31 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
226
216
  var dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
227
217
 
228
218
  exports.dom = dom;
229
- var store = _logic.solidLogicSingleton.store;
230
- exports.store = store;
231
219
 
232
220
  if (typeof window !== 'undefined') {
233
221
  ;
234
222
  window.UI = {
223
+ authn: _solidLogic.authn,
224
+ store: _solidLogic.store,
225
+ authSession: _solidLogic.authSession,
235
226
  ns: ns,
236
227
  rdf: rdf,
237
228
  acl: _index.acl,
238
229
  aclControl: _index.aclControl,
239
- authn: _index2.authn,
240
- create: _index3.create,
230
+ create: _index2.create,
231
+ createTypes: createTypes,
241
232
  dom: dom,
242
233
  icons: _iconBase.icons,
243
234
  language: language,
244
235
  log: log,
245
- matrix: _index4.matrix,
246
- media: _index5.media,
236
+ login: login,
237
+ matrix: _index3.matrix,
238
+ media: _index4.media,
247
239
  messageArea: _messageArea.messageArea,
248
240
  infiniteMessageArea: _infinite.infiniteMessageArea,
249
241
  pad: pad,
250
242
  participation: participation,
251
243
  preferences: preferences,
252
- solidLogicSingleton: _logic.solidLogicSingleton,
253
- store: store,
254
244
  style: style,
255
245
  table: _table.renderTableViewPane,
256
246
  tabs: tabs,
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["dom","window","document","store","solidLogicSingleton","UI","ns","rdf","acl","aclControl","authn","create","icons","language","log","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;;AACA;;AAIA;;AACA;;;;AACA;;;;AACA;;AACA;;AAEA;;AAEA;;AAEA;;;;AAEA;;;;AAEA;;;;AAEA;;AAEA;;;;AAEA;;AACA;;;;AAEA;;;;AACA;;;;AACA;;AACA;;AACA;;;;;;AApC8B;AAC9B;AAKA;AACA;AACA;AAMA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AAGA;AAOA,IAAMA,GAAG,GAAGC,MAAM,GAAGA,MAAM,CAACC,QAAV,GAAqB,IAAvC,C,CAA4C;;;AAC5C,IAAMC,KAAK,GAAGC,2BAAoBD,KAAlC;;;AAEA,IAAI,OAAOF,MAAP,KAAkB,WAAtB,EAAmC;AACjC;AAAOA,EAAAA,MAAN,CAAcI,EAAd,GAAmB;AAClBC,IAAAA,EAAE,EAAFA,EADkB;AAElBC,IAAAA,GAAG,EAAHA,GAFkB;AAGlBC,IAAAA,GAAG,EAAHA,UAHkB;AAIlBC,IAAAA,UAAU,EAAVA,iBAJkB;AAKlBC,IAAAA,KAAK,EAALA,aALkB;AAMlBC,IAAAA,MAAM,EAANA,cANkB;AAOlBX,IAAAA,GAAG,EAAHA,GAPkB;AAQlBY,IAAAA,KAAK,EAALA,eARkB;AASlBC,IAAAA,QAAQ,EAARA,QATkB;AAUlBC,IAAAA,GAAG,EAAHA,GAVkB;AAWlBC,IAAAA,MAAM,EAANA,cAXkB;AAYlBC,IAAAA,KAAK,EAALA,aAZkB;AAalBC,IAAAA,WAAW,EAAXA,wBAbkB;AAclBC,IAAAA,mBAAmB,EAAnBA,6BAdkB;AAelBC,IAAAA,GAAG,EAAHA,GAfkB;AAgBlBC,IAAAA,aAAa,EAAbA,aAhBkB;AAiBlBC,IAAAA,WAAW,EAAXA,WAjBkB;AAkBlBjB,IAAAA,mBAAmB,EAAnBA,0BAlBkB;AAmBlBD,IAAAA,KAAK,EAALA,KAnBkB;AAoBlBmB,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 { authn } from './authn/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\nimport { solidLogicSingleton } from './logic'\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 widgets from './widgets/index'\nimport versionInfo from './versionInfo'\nimport { initHeader } from './header'\nimport { initFooter } from './footer'\n\nconst dom = window ? window.document : null // Idea that UI.dom can be adapted in non-browser environments\nconst store = solidLogicSingleton.store\n\nif (typeof window !== 'undefined') {\n ;(<any>window).UI = {\n ns,\n rdf,\n acl,\n aclControl,\n authn,\n create,\n dom,\n icons,\n language,\n log,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n solidLogicSingleton,\n store,\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 ns,\n rdf,\n acl,\n aclControl,\n authn,\n create,\n dom,\n icons,\n language,\n log,\n matrix,\n media,\n messageArea,\n infiniteMessageArea,\n pad,\n participation,\n preferences,\n solidLogicSingleton,\n store,\n style,\n table,\n tabs,\n utils,\n widgets,\n versionInfo,\n initHeader,\n initFooter\n}\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["dom","window","document","UI","authn","store","authSession","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;;AAEA;;AACA;;;;AACA;;;;AACA;;AACA;;AAEA;;AAEA;;AAEA;;;;AAEA;;;;AAEA;;;;AAEA;;;;AAEA;;AACA;;;;AAEA;;;;AACA;;;;AACA;;;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;;;AAlC8B;AAC9B;AAIA;AAMA;AAEA;AAEA;AAEA;AAEA;AAEA;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,KAAK,EAALA,iBADkB;AAElBC,IAAAA,KAAK,EAALA,iBAFkB;AAGlBC,IAAAA,WAAW,EAAXA,uBAHkB;AAIlBC,IAAAA,EAAE,EAAFA,EAJkB;AAKlBC,IAAAA,GAAG,EAAHA,GALkB;AAMlBC,IAAAA,GAAG,EAAHA,UANkB;AAOlBC,IAAAA,UAAU,EAAVA,iBAPkB;AAQlBC,IAAAA,MAAM,EAANA,cARkB;AASlBC,IAAAA,WAAW,EAAXA,WATkB;AAUlBZ,IAAAA,GAAG,EAAHA,GAVkB;AAWlBa,IAAAA,KAAK,EAALA,eAXkB;AAYlBC,IAAAA,QAAQ,EAARA,QAZkB;AAalBC,IAAAA,GAAG,EAAHA,GAbkB;AAclBC,IAAAA,KAAK,EAALA,KAdkB;AAelBC,IAAAA,MAAM,EAANA,cAfkB;AAgBlBC,IAAAA,KAAK,EAALA,aAhBkB;AAiBlBC,IAAAA,WAAW,EAAXA,wBAjBkB;AAkBlBC,IAAAA,mBAAmB,EAAnBA,6BAlBkB;AAmBlBC,IAAAA,GAAG,EAAHA,GAnBkB;AAoBlBC,IAAAA,aAAa,EAAbA,aApBkB;AAqBlBC,IAAAA,WAAW,EAAXA,WArBkB;AAsBlBC,IAAAA,KAAK,EAALA,KAtBkB;AAuBlBC,IAAAA,KAAK,EAALA,0BAvBkB;AAwBlBC,IAAAA,IAAI,EAAJA,IAxBkB;AAyBlBC,IAAAA,KAAK,EAALA,KAzBkB;AA0BlBC,IAAAA,OAAO,EAAPA,OA1BkB;AA2BlBC,IAAAA,WAAW,EAAXA,uBA3BkB;AA4BlBC,IAAAA,UAAU,EAAVA,kBA5BkB;AA6BlBC,IAAAA,UAAU,EAAVA;AA7BkB,GAAnB,CADgC,CA+B/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\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, authSession } 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 authSession,\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 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,MAAM,QAAQ,CAAA;AAG5E,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAgN,MAAM,aAAa,CAAA;AAS7Q;;;;IAII;AAEJ,wBAAgB,cAAc,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAwB9F;AAED;;;;;;;GAOG;AAEH,wBAAsB,uBAAuB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CA2D7G;AAED;;;;;;GAMG;AAEH,wBAAsB,mBAAmB,CAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAmBzG;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"}