chat-pane 2.4.23-test → 2.4.23-test-bf2b638f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
File without changes
package/README.md CHANGED
File without changes
package/dist/_2b19.js CHANGED
File without changes
package/dist/_2b19.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"_2b19.js","mappings":";;;;;;;;AAAA","sources":["webpack://chat-pane/ignored|/mnt/d/github/source/workspaces/chat-pane/node_modules/rdf-canonize/lib|rdf-canonize-native"],"sourcesContent":["/* (ignored) */"],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"_2b19.js","mappings":";;;;;;;;AAAA","sources":["webpack://chat-pane/ignored|/home/runner/work/chat-pane/chat-pane/node_modules/rdf-canonize/lib|rdf-canonize-native"],"sourcesContent":["/* (ignored) */"],"names":[],"sourceRoot":""}
package/dist/index.html CHANGED
File without changes
@@ -71002,7 +71002,7 @@ const longChatPane = {
71002
71002
  kb.add(newInstance, ns.dc('author'), newPaneOptions.me, newChatDoc)
71003
71003
  }
71004
71004
 
71005
- const aclBody = (me) => `
71005
+ const aclBody = (me, AppendWrite) => `
71006
71006
  @prefix : <#>.
71007
71007
  @prefix acl: <http://www.w3.org/ns/auth/acl#>.
71008
71008
  @prefix foaf: <http://xmlns.com/foaf/0.1/>.
@@ -71020,12 +71020,12 @@ const longChatPane = {
71020
71020
  acl:agentClass foaf:Agent;
71021
71021
  acl:default lon:;
71022
71022
  acl:mode acl:Read.
71023
- :ReadAppend
71023
+ :Read${AppendWrite}
71024
71024
  a acl:Authorization;
71025
71025
  acl:accessTo lon:;
71026
71026
  acl:agentClass acl:AuthenticatedAgent;
71027
71027
  acl:default lon:;
71028
- acl:mode acl:Read, acl:Append.`
71028
+ acl:mode acl:Read, acl:${AppendWrite}.`
71029
71029
 
71030
71030
  return new Promise(function (resolve, reject) {
71031
71031
  updater.put(
@@ -71049,7 +71049,11 @@ const longChatPane = {
71049
71049
  return new Promise((resolve, reject) => {
71050
71050
  if (newPaneOptions.me) {
71051
71051
  kb.fetcher.webOperation('PUT', newPaneOptions.newBase + '.acl', {
71052
- data: aclBody(newPaneOptions.me),
71052
+ data: aclBody(newPaneOptions.me, 'Append'),
71053
+ contentType: 'text/turtle'
71054
+ })
71055
+ kb.fetcher.webOperation('PUT', newPaneOptions.newBase + 'index.ttl.acl', {
71056
+ data: aclBody(newPaneOptions.me, 'Write'),
71053
71057
  contentType: 'text/turtle'
71054
71058
  })
71055
71059
  }
@@ -71279,12 +71283,12 @@ const longChatPane = {
71279
71283
  var thread = null
71280
71284
  if (kb.holds(subject, ns.rdf('type'), ns.meeting('LongChat'))) {
71281
71285
  // subject is the chatChannel
71282
- console.log('Chat channnel')
71286
+ console.log('@@@ Chat channnel')
71283
71287
 
71284
71288
  // Looks like a message -- might not havre any class declared
71285
71289
  } else if (kb.holds(subject, ns.rdf('type'), ns.sioc('Thread'))) {
71286
71290
  // subject is the chatChannel
71287
- console.log('Thread is subject')
71291
+ console.log('Thread is subject ' + subject.uri)
71288
71292
  thread = subject
71289
71293
  const rootMessage = kb.the(null, ns.sioc('has_reply'), thread, thread.doc())
71290
71294
  if (!rootMessage) throw new Error('Thread has no root message ' + thread)
@@ -71294,7 +71298,7 @@ const longChatPane = {
71294
71298
  kb.any(subject, ns.sioc('content')) &&
71295
71299
  kb.any(subject, ns.dct('created'))
71296
71300
  ) {
71297
- console.log('message')
71301
+ console.log('message is subject ' + subject.uri)
71298
71302
  selectedMessage = subject
71299
71303
  chatChannel = kb.any(null, ns.wf('message'), selectedMessage)
71300
71304
  if (!chatChannel) throw new Error('Message has no link to chatChannel')