solid-panes 3.5.18-5dfe2dbf → 3.5.18-a4dc4f9c

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 (84) hide show
  1. package/dev/loader.ts +11 -11
  2. package/lib/argument/argumentPane.js +7 -15
  3. package/lib/argument/argumentPane.js.map +1 -1
  4. package/lib/dashboard/basicPreferences.d.ts.map +1 -1
  5. package/lib/dashboard/basicPreferences.js +6 -6
  6. package/lib/dashboard/basicPreferences.js.map +1 -1
  7. package/lib/dashboard/dashboardPane.d.ts.map +1 -1
  8. package/lib/dashboard/dashboardPane.js +4 -6
  9. package/lib/dashboard/dashboardPane.js.map +1 -1
  10. package/lib/dataContentPane.js +1 -1
  11. package/lib/dataContentPane.js.map +1 -1
  12. package/lib/form/pane.js +6 -15
  13. package/lib/form/pane.js.map +1 -1
  14. package/lib/home/homePane.d.ts.map +1 -1
  15. package/lib/home/homePane.js +5 -7
  16. package/lib/home/homePane.js.map +1 -1
  17. package/lib/index.d.ts +3 -7
  18. package/lib/index.d.ts.map +1 -1
  19. package/lib/index.js +4 -15
  20. package/lib/index.js.map +1 -1
  21. package/lib/mainPage/header.d.ts.map +1 -1
  22. package/lib/mainPage/header.js +2 -4
  23. package/lib/mainPage/header.js.map +1 -1
  24. package/lib/microblogPane/microblogPane.js +14 -16
  25. package/lib/microblogPane/microblogPane.js.map +1 -1
  26. package/lib/outline/dragDrop.js +6 -16
  27. package/lib/outline/dragDrop.js.map +1 -1
  28. package/lib/outline/licenseOptions.js +5 -12
  29. package/lib/outline/licenseOptions.js.map +1 -1
  30. package/lib/outline/manager.js +21 -29
  31. package/lib/outline/manager.js.map +1 -1
  32. package/lib/outline/queryByExample.js +6 -14
  33. package/lib/outline/queryByExample.js.map +1 -1
  34. package/lib/outline/userInput.js +80 -90
  35. package/lib/outline/userInput.js.map +1 -1
  36. package/lib/pad/padPane.d.ts.map +1 -1
  37. package/lib/pad/padPane.js +4 -6
  38. package/lib/pad/padPane.js.map +1 -1
  39. package/lib/profile/editProfile.view.d.ts.map +1 -1
  40. package/lib/profile/editProfile.view.js +3 -3
  41. package/lib/profile/editProfile.view.js.map +1 -1
  42. package/lib/schedule/schedulePane.js +14 -26
  43. package/lib/schedule/schedulePane.js.map +1 -1
  44. package/lib/socialPane.js +6 -16
  45. package/lib/socialPane.js.map +1 -1
  46. package/lib/transaction/pane.js +1 -1
  47. package/lib/transaction/pane.js.map +1 -1
  48. package/lib/transaction/period.js +1 -1
  49. package/lib/transaction/period.js.map +1 -1
  50. package/lib/trip/tripPane.js +1 -1
  51. package/lib/trip/tripPane.js.map +1 -1
  52. package/lib/trustedApplications/trustedApplications.dom.d.ts.map +1 -1
  53. package/lib/trustedApplications/trustedApplications.dom.js +9 -11
  54. package/lib/trustedApplications/trustedApplications.dom.js.map +1 -1
  55. package/lib/trustedApplications/trustedApplications.view.d.ts.map +1 -1
  56. package/lib/trustedApplications/trustedApplications.view.js +3 -5
  57. package/lib/trustedApplications/trustedApplications.view.js.map +1 -1
  58. package/lib/versionInfo.js +2 -2
  59. package/lib/versionInfo.js.map +1 -1
  60. package/package.json +13 -13
  61. package/src/argument/argumentPane.js +5 -5
  62. package/src/dashboard/basicPreferences.ts +5 -4
  63. package/src/dashboard/dashboardPane.ts +3 -4
  64. package/src/dataContentPane.js +1 -1
  65. package/src/form/pane.js +4 -5
  66. package/src/home/homePane.ts +6 -7
  67. package/src/index.ts +18 -24
  68. package/src/mainPage/header.ts +2 -3
  69. package/src/microblogPane/microblogPane.js +8 -9
  70. package/src/outline/dragDrop.js +4 -5
  71. package/src/outline/licenseOptions.js +5 -4
  72. package/src/outline/manager.js +21 -22
  73. package/src/outline/queryByExample.js +4 -4
  74. package/src/outline/userInput.js +72 -72
  75. package/src/pad/padPane.ts +3 -3
  76. package/src/profile/editProfile.view.ts +8 -5
  77. package/src/schedule/schedulePane.js +13 -14
  78. package/src/socialPane.js +4 -5
  79. package/src/transaction/pane.js +1 -1
  80. package/src/transaction/period.js +1 -1
  81. package/src/trip/tripPane.js +1 -1
  82. package/src/trustedApplications/trustedApplications.dom.ts +1 -2
  83. package/src/trustedApplications/trustedApplications.view.ts +4 -4
  84. package/src/versionInfo.ts +2 -2
@@ -4,8 +4,7 @@
4
4
  */
5
5
  /* global alert */
6
6
 
7
- import * as UI from 'solid-ui'
8
- import { authn } from 'solid-logic'
7
+ const UI = require('solid-ui')
9
8
  const $rdf = UI.rdf
10
9
  const ns = UI.ns
11
10
 
@@ -142,7 +141,7 @@ module.exports = {
142
141
  const fetcher = kb.fetcher
143
142
  const updater = kb.updater
144
143
 
145
- let me = options.me || authn.currentUser()
144
+ let me = options.me || UI.authn.currentUser()
146
145
  if (!me) {
147
146
  console.log('MUST BE LOGGED IN')
148
147
  alert('NOT LOGGED IN')
@@ -204,7 +203,7 @@ module.exports = {
204
203
  newBase + item.local,
205
204
  item.contentType
206
205
  )
207
- .then(() => authn.checkUser())
206
+ .then(() => UI.authn.checkUser())
208
207
  .then(webId => {
209
208
  me = webId
210
209
 
@@ -377,7 +376,7 @@ module.exports = {
377
376
 
378
377
  let me
379
378
 
380
- authn.checkUser().then(webId => {
379
+ UI.authn.checkUser().then(webId => {
381
380
  me = webId
382
381
 
383
382
  if (logInOutButton) {
@@ -396,7 +395,7 @@ module.exports = {
396
395
  //
397
396
 
398
397
  const newInstanceButton = function () {
399
- const b = UI.login.newAppInstance(
398
+ const b = UI.authn.newAppInstance(
400
399
  dom,
401
400
  { noun: 'scheduler' },
402
401
  initializeNewInstanceInWorkspace
@@ -475,7 +474,7 @@ module.exports = {
475
474
  const showAppropriateDisplay = function showAppropriateDisplay () {
476
475
  console.log('showAppropriateDisplay()')
477
476
 
478
- authn.checkUser().then(webId => {
477
+ UI.authn.checkUser().then(webId => {
479
478
  if (!webId) {
480
479
  return showSignon()
481
480
  }
@@ -506,7 +505,7 @@ module.exports = {
506
505
  const showSignon = function showSignon () {
507
506
  clearElement(naviMain)
508
507
  const signonContext = { div: div, dom: dom }
509
- UI.login.loggedInContext(signonContext).then(context => {
508
+ UI.authn.logIn(signonContext).then(context => {
510
509
  me = context.me
511
510
  waitingForLogin = false // untested
512
511
  showAppropriateDisplay()
@@ -516,7 +515,7 @@ module.exports = {
516
515
  const showBootstrap = function showBootstrap () {
517
516
  const div = clearElement(naviMain)
518
517
  div.appendChild(
519
- UI.login.newAppInstance(
518
+ UI.authn.newAppInstance(
520
519
  dom,
521
520
  { noun: 'poll' },
522
521
  initializeNewInstanceInWorkspace
@@ -800,7 +799,7 @@ module.exports = {
800
799
  refreshButton.textContent = 'refresh'
801
800
  refreshButton.addEventListener('click', function (e) {
802
801
  refreshButton.disabled = true
803
- store.fetcher.nowOrWhenFetched(subject.doc(), undefined, function (ok, body) {
802
+ UI.store.fetcher.nowOrWhenFetched(subject.doc(), undefined, function (ok, body) {
804
803
  if (!ok) {
805
804
  console.log('Cant refresh matrix' + body)
806
805
  } else {
@@ -865,7 +864,7 @@ module.exports = {
865
864
  dataPointForNT[possibleTimes[j].toNT()] = dataPoint
866
865
  }
867
866
  if (insertables.length) {
868
- store.updater.update([], insertables, function (uri, success, errorBody) {
867
+ UI.store.updater.update([], insertables, function (uri, success, errorBody) {
869
868
  if (!success) {
870
869
  complainIfBad(success, errorBody)
871
870
  } else {
@@ -1025,12 +1024,12 @@ module.exports = {
1025
1024
  // @@ Give other combos too-- see schedule ontology
1026
1025
  // const possibleAvailabilities = [ SCHED('No'), SCHED('Maybe'), SCHED('Yes') ]
1027
1026
 
1028
- // const me = authn.currentUser()
1027
+ // const me = UI.authn.currentUser()
1029
1028
 
1030
1029
  const dataPointForNT = []
1031
1030
 
1032
1031
  const loginContext = { div: naviCenter, dom: dom }
1033
- UI.login.loggedInContext(loginContext).then(context => {
1032
+ UI.authn.logIn(loginContext).then(context => {
1034
1033
  const me = context.me
1035
1034
  const doc = resultsDoc
1036
1035
  options.set_y = options.set_y.filter(function (z) {
@@ -1167,7 +1166,7 @@ module.exports = {
1167
1166
 
1168
1167
  const logInOutButton = null
1169
1168
  /*
1170
- const logInOutButton = UI.login.loginStatusBox(dom, setUser)
1169
+ const logInOutButton = UI.authn.loginStatusBox(dom, setUser)
1171
1170
  // floating divs lead to a mess
1172
1171
  // logInOutButton.setAttribute('style', 'float: right') // float the beginning of the end
1173
1172
  naviLoginout3.appendChild(logInOutButton)
package/src/socialPane.js CHANGED
@@ -8,9 +8,8 @@
8
8
  ** -- todo: use common code to get username and load profile and set 'me'
9
9
  */
10
10
 
11
- import * as UI from 'solid-ui'
12
- import { authn } from 'solid-logic'
13
- import * as $rdf from 'rdflib'
11
+ const UI = require('solid-ui')
12
+ const $rdf = require('rdflib')
14
13
 
15
14
  module.exports = {
16
15
  icon: UI.icons.originalIconBase + 'foaf/foafTiny.gif',
@@ -199,11 +198,11 @@ module.exports = {
199
198
  let h3 = dom.createElement('H3')
200
199
  h3.appendChild(dom.createTextNode(name))
201
200
 
202
- let me = authn.currentUser()
201
+ let me = UI.authn.currentUser()
203
202
  const meUri = me ? me.uri : null
204
203
 
205
204
  // @@ Add: event handler to redraw the stuff below when me changes.
206
- const loginOutButton = UI.login.loginStatusBox(dom, webIdUri => {
205
+ const loginOutButton = UI.authn.loginStatusBox(dom, webIdUri => {
207
206
  me = kb.sym(webIdUri)
208
207
  // @@ To be written: redraw as a function the new me
209
208
  // @@ refresh the sidebars
@@ -67,7 +67,7 @@ module.exports = {
67
67
 
68
68
  const t = kb.findTypeURIs(subject)
69
69
 
70
- // var me = authn.currentUser()
70
+ // var me = UI.authn.currentUser()
71
71
  const predicateURIsDone = {}
72
72
  const donePredicate = function (pred) {
73
73
  predicateURIsDone[pred.uri] = true
@@ -351,7 +351,7 @@ module.exports = {
351
351
 
352
352
  // //////////////////////////////////////////////////////////////////////////////
353
353
 
354
- // var me = authn.currentUser()
354
+ // var me = UI.authn.currentUser()
355
355
 
356
356
  // Render a single Period
357
357
 
@@ -60,7 +60,7 @@ module.exports = {
60
60
 
61
61
  const t = kb.findTypeURIs(subject)
62
62
 
63
- // var me = authn.currentUser()
63
+ // var me = UI.authn.currentUser()
64
64
 
65
65
  // Function: Render a single trip
66
66
 
@@ -1,6 +1,5 @@
1
1
  import { NamedNode, Statement, sym } from 'rdflib'
2
- import { ns } from 'solid-ui'
3
- import { store } from 'solid-logic'
2
+ import { ns, store } from 'solid-ui'
4
3
  import { generateRandomString, getStatementsToAdd, getStatementsToDelete } from './trustedApplications.utils'
5
4
 
6
5
  interface FormElements {
@@ -1,7 +1,7 @@
1
- import { PaneDefinition } from 'pane-registry'
1
+ import { authn, icons, store, widgets } from 'solid-ui'
2
2
  import { NamedNode } from 'rdflib'
3
- import { icons, login, widgets } from 'solid-ui'
4
- import { store } from 'solid-logic'
3
+
4
+ import { PaneDefinition } from 'pane-registry'
5
5
  import { createApplicationTable, createContainer, createText } from './trustedApplications.dom'
6
6
 
7
7
  const thisColor = '#418d99'
@@ -32,7 +32,7 @@ const trustedApplicationView: PaneDefinition = {
32
32
  }
33
33
 
34
34
  async function render (dom, main, statusArea): Promise<void> {
35
- const authContext = await login.ensureLoadedProfile({ dom: dom, div: main, statusArea: statusArea, me: null })
35
+ const authContext = await authn.logInLoadProfile({ dom: dom, div: main, statusArea: statusArea, me: null })
36
36
  const subject = authContext.me as NamedNode
37
37
 
38
38
  const profile = subject.doc()
@@ -1,6 +1,6 @@
1
1
  export default {
2
- buildTime: '2022-02-25T19:34:10Z',
3
- commit: '5dfe2dbfa5095b4c083d7f09cb9b05a21ec3bfac',
2
+ buildTime: '2022-02-28T17:24:45Z',
3
+ commit: 'a4dc4f9c0f37d39406fd8d9657393a28046cdfcb',
4
4
  npmInfo:
5
5
  {
6
6
  'solid-panes': '3.5.18',