meeting-pane 2.3.6 → 2.3.7-bbf45639

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meeting-pane",
3
- "version": "2.3.6",
3
+ "version": "2.3.7-bbf45639",
4
4
  "description": "Solid-compatible Panes: meeting collaborative tool",
5
5
  "main": "./lib/meetingPane.js",
6
6
  "files": [
@@ -49,20 +49,21 @@
49
49
  "buffer": "^6.0.3",
50
50
  "crypto-browserify": "^3.12.0",
51
51
  "path-browserify": "^1.0.1",
52
- "solid-ui": "^2.4.10"
52
+ "rdflib": "^2.2.15-bbf45639",
53
+ "solid-ui": "^2.4.14-bbf45639"
53
54
  },
54
55
  "devDependencies": {
55
- "@babel/cli": "^7.15.7",
56
- "@babel/core": "^7.15.8",
57
- "@babel/preset-env": "^7.15.8",
56
+ "@babel/cli": "^7.16.0",
57
+ "@babel/core": "^7.16.0",
58
+ "@babel/preset-env": "^7.16.0",
58
59
  "eslint": "^7.32.0",
59
60
  "html-webpack-plugin": "^4.5.2",
60
- "husky": "^7.0.2",
61
- "lint-staged": "^11.2.3",
61
+ "husky": "^7.0.4",
62
+ "lint-staged": "^11.2.6",
62
63
  "standard": "^16.0.4",
63
64
  "webpack": "^4.46.0",
64
65
  "webpack-cli": "^3.3.12",
65
- "webpack-dev-server": "^4.3.1"
66
+ "webpack-dev-server": "^4.4.0"
66
67
  },
67
68
  "husky": {
68
69
  "hooks": {
package/lib/index.js DELETED
@@ -1,117 +0,0 @@
1
- "use strict";
2
-
3
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
-
5
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6
-
7
- var MeetingPane = require('./meetingPane.js');
8
-
9
- var $rdf = require('rdflib');
10
-
11
- var UI = require('solid-ui');
12
-
13
- var SolidAuth = require('solid-auth-client');
14
-
15
- function appendMeetingPane(_x, _x2) {
16
- return _appendMeetingPane.apply(this, arguments);
17
- }
18
-
19
- function _appendMeetingPane() {
20
- _appendMeetingPane = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(dom, uri) {
21
- var subject, doc, context, options, paneDiv;
22
- return regeneratorRuntime.wrap(function _callee2$(_context2) {
23
- while (1) {
24
- switch (_context2.prev = _context2.next) {
25
- case 0:
26
- subject = $rdf.sym(uri);
27
- doc = subject.doc();
28
- _context2.next = 4;
29
- return new Promise(function (resolve, reject) {
30
- UI.store.fetcher.load(doc).then(resolve, reject);
31
- });
32
-
33
- case 4:
34
- context = {
35
- // see https://github.com/solid/solid-panes/blob/005f90295d83e499fd626bd84aeb3df10135d5c1/src/index.ts#L30-L34
36
- dom: dom,
37
- session: {
38
- store: UI.store
39
- }
40
- };
41
- options = {};
42
- paneDiv = MeetingPane.render(subject, context, options);
43
- dom.body.appendChild(paneDiv);
44
-
45
- case 8:
46
- case "end":
47
- return _context2.stop();
48
- }
49
- }
50
- }, _callee2);
51
- }));
52
- return _appendMeetingPane.apply(this, arguments);
53
- }
54
-
55
- document.addEventListener('DOMContentLoaded', function () {
56
- // Set up the view for the subject indicated in the fragment of the window's URL
57
- var uri = decodeURIComponent(window.location.hash.substr(1));
58
-
59
- if (uri.length === 0) {
60
- window.location = '?#' + encodeURIComponent('https://michielbdejong.inrupt.net/meetings/Data%20browser%2016%20Dec%202019/index.ttl#this');
61
- }
62
-
63
- appendMeetingPane(document, uri);
64
- });
65
-
66
- window.onload = function () {
67
- console.log('document ready');
68
- SolidAuth.trackSession(function (session) {
69
- if (!session) {
70
- console.log('The user is not logged in');
71
- document.getElementById('loginBanner').innerHTML = '<button onclick="popupLogin()">Log in</button>';
72
- } else {
73
- console.log("Logged in as ".concat(session.webId));
74
- document.getElementById('loginBanner').innerHTML = "Logged in as ".concat(session.webId, " <button onclick=\"logout()\">Log out</button>");
75
- }
76
- });
77
- };
78
-
79
- window.logout = function () {
80
- SolidAuth.logout();
81
- window.location = '';
82
- };
83
-
84
- window.popupLogin = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
85
- var session, popupUri;
86
- return regeneratorRuntime.wrap(function _callee$(_context) {
87
- while (1) {
88
- switch (_context.prev = _context.next) {
89
- case 0:
90
- _context.next = 2;
91
- return SolidAuth.currentSession();
92
-
93
- case 2:
94
- session = _context.sent;
95
- popupUri = 'https://solid.community/common/popup.html';
96
-
97
- if (session) {
98
- _context.next = 8;
99
- break;
100
- }
101
-
102
- _context.next = 7;
103
- return SolidAuth.popupLogin({
104
- popupUri: popupUri
105
- });
106
-
107
- case 7:
108
- session = _context.sent;
109
-
110
- case 8:
111
- case "end":
112
- return _context.stop();
113
- }
114
- }
115
- }, _callee);
116
- }));
117
- //# sourceMappingURL=index.js.map
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["MeetingPane","require","$rdf","UI","SolidAuth","appendMeetingPane","dom","uri","subject","sym","doc","Promise","resolve","reject","store","fetcher","load","then","context","session","options","paneDiv","render","body","appendChild","document","addEventListener","decodeURIComponent","window","location","hash","substr","length","encodeURIComponent","onload","console","log","trackSession","getElementById","innerHTML","webId","logout","popupLogin","currentSession","popupUri"],"mappings":";;;;;;AAAA,IAAMA,WAAW,GAAGC,OAAO,CAAC,kBAAD,CAA3B;;AACA,IAAMC,IAAI,GAAGD,OAAO,CAAC,QAAD,CAApB;;AACA,IAAME,EAAE,GAAGF,OAAO,CAAC,UAAD,CAAlB;;AACA,IAAMG,SAAS,GAAGH,OAAO,CAAC,mBAAD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M,MAAP,GAAgB,YAAM;AACpBC,EAAAA,OAAO,CAACC,GAAR,CAAY,gBAAZ;AACAhC,EAAAA,SAAS,CAACiC,YAAV,CAAuB,UAAAlB,OAAO,EAAI;AAChC,QAAI,CAACA,OAAL,EAAc;AACZgB,MAAAA,OAAO,CAACC,GAAR,CAAY,2BAAZ;AACAX,MAAAA,QAAQ,CAACa,cAAT,CAAwB,aAAxB,EAAuCC,SAAvC,GAAmD,gDAAnD;AACD,KAHD,MAGO;AACLJ,MAAAA,OAAO,CAACC,GAAR,wBAA4BjB,OAAO,CAACqB,KAApC;AAEAf,MAAAA,QAAQ,CAACa,cAAT,CAAwB,aAAxB,EAAuCC,SAAvC,0BAAmEpB,OAAO,CAACqB,KAA3E;AACD;AACF,GATD;AAUD,CAZD;;AAaAZ,MAAM,CAACa,MAAP,GAAgB,YAAM;AACpBrC,EAAAA,SAAS,CAACqC,MAAV;AACAb,EAAAA,MAAM,CAACC,QAAP,GAAkB,EAAlB;AACD,CAHD;;AAIAD,MAAM,CAACc,UAAP,wEAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBACEtC,SAAS,CAACuC,cAAV,EADF;;AAAA;AACdxB,UAAAA,OADc;AAEZyB,UAAAA,QAFY,GAED,2CAFC;;AAAA,cAGbzB,OAHa;AAAA;AAAA;AAAA;;AAAA;AAAA,iBAIAf,SAAS,CAACsC,UAAV,CAAqB;AAAEE,YAAAA,QAAQ,EAARA;AAAF,WAArB,CAJA;;AAAA;AAIhBzB,UAAAA,OAJgB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAApB","sourcesContent":["const MeetingPane = require('./meetingPane.js')\nconst $rdf = require('rdflib')\nconst UI = require('solid-ui')\nconst SolidAuth = require('solid-auth-client')\n\nasync function appendMeetingPane (dom, uri) {\n const subject = $rdf.sym(uri)\n const doc = subject.doc()\n\n await new Promise((resolve, reject) => {\n UI.store.fetcher.load(doc).then(resolve, reject)\n })\n const context = { // see https://github.com/solid/solid-panes/blob/005f90295d83e499fd626bd84aeb3df10135d5c1/src/index.ts#L30-L34\n dom,\n session: {\n store: UI.store\n }\n }\n const options = {}\n\n const paneDiv = MeetingPane.render(subject, context, options)\n dom.body.appendChild(paneDiv)\n}\n\ndocument.addEventListener('DOMContentLoaded', function () {\n // Set up the view for the subject indicated in the fragment of the window's URL\n const uri = decodeURIComponent(window.location.hash.substr(1))\n if (uri.length === 0) {\n window.location = '?#' + encodeURIComponent('https://michielbdejong.inrupt.net/meetings/Data%20browser%2016%20Dec%202019/index.ttl#this')\n }\n appendMeetingPane(document, uri)\n})\n\nwindow.onload = () => {\n console.log('document ready')\n SolidAuth.trackSession(session => {\n if (!session) {\n console.log('The user is not logged in')\n document.getElementById('loginBanner').innerHTML = '<button onclick=\"popupLogin()\">Log in</button>'\n } else {\n console.log(`Logged in as ${session.webId}`)\n\n document.getElementById('loginBanner').innerHTML = `Logged in as ${session.webId} <button onclick=\"logout()\">Log out</button>`\n }\n })\n}\nwindow.logout = () => {\n SolidAuth.logout()\n window.location = ''\n}\nwindow.popupLogin = async function () {\n let session = await SolidAuth.currentSession()\n const popupUri = 'https://solid.community/common/popup.html'\n if (!session) {\n session = await SolidAuth.popupLogin({ popupUri })\n }\n}\n"],"file":"index.js"}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- module.exports = "@prefix : <http://www.w3.org/ns/ui#> .\n@prefix f: <#> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix meeting: <http://www.w3.org/ns/pim/meeting#>.\n@prefix ns: <http://www.w3.org/2006/vcard/ns#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix te: <http://purl.org/dc/terms/> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n\n f:main a :Form;\n cal:summary \"Meeting Details\";\n :part f:titleField, f:locationField, f:startField,\n f:endField, f:eventComment, f:colorField .\n\n f:titleField a :SingleLineTextField;\n :maxLength 256;\n :property cal:summary;\n :label \"Name of meeting\";\n :size 80 .\n\n f:locationField a :SingleLineTextField;\n :maxLength 128;\n :property cal:location;\n :size 40 .\n\n f:startField a :DateField;\n :label \"Start\";\n :property cal:dtstart .\n\n f:endField a :DateField;\n :label \"End\";\n :property cal:dtend .\n\n f:colorField a :ColorField;\n :label \"Tab color\";\n # :default \"#ddddcc\"^^xsd:color;\n :property ui:backgroundColor .\n\n f:eventComment\n a ui:MultiLineTextField;\n # ui:maxLength\n # \"1048\";\n # ui:size\n # \"40\".\n ui:property\n cal:comment.\n\n###################################################\n\nf:settings a :Form;\n dc:title \"Tab settings\";\n :part f:labelField, f:targetField, f:viewField.\n\n f:labelField a :SingleLineTextField;\n :maxLength 128;\n :property rdfs:label;\n :label \"Label on tab\";\n :size 40 .\n\n f:targetField a :NamedNodeURIField;\n :maxLength 1024; # Longer?\n :property meeting:target;\n :label \"URL of resource\";\n :size 80 .\n\n f:colorField2 a :ColorField;\n :label \"Tab color\";\n # :default \"#ddddcc\"^^xsd:color;\n :property ui:backgroundColor .\n\n f:viewField a :SingleLineTextField;\n :maxLength 128;\n :property meeting:view;\n :label \"View mode (experts only)\";\n :size 40 .\n\n#\n";
4
- //# sourceMappingURL=meetingDetailsForm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/meetingDetailsForm.js"],"names":["module","exports"],"mappings":";;AAAAA,MAAM,CAACC,OAAP","sourcesContent":["module.exports = `@prefix : <http://www.w3.org/ns/ui#> .\n@prefix f: <#> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix cal: <http://www.w3.org/2002/12/cal/ical#>.\n@prefix meeting: <http://www.w3.org/ns/pim/meeting#>.\n@prefix ns: <http://www.w3.org/2006/vcard/ns#> .\n@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.\n@prefix te: <http://purl.org/dc/terms/> .\n@prefix dc: <http://purl.org/dc/elements/1.1/>.\n@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.\n@prefix ui: <http://www.w3.org/ns/ui#>.\n\n f:main a :Form;\n cal:summary \"Meeting Details\";\n :part f:titleField, f:locationField, f:startField,\n f:endField, f:eventComment, f:colorField .\n\n f:titleField a :SingleLineTextField;\n :maxLength 256;\n :property cal:summary;\n :label \"Name of meeting\";\n :size 80 .\n\n f:locationField a :SingleLineTextField;\n :maxLength 128;\n :property cal:location;\n :size 40 .\n\n f:startField a :DateField;\n :label \"Start\";\n :property cal:dtstart .\n\n f:endField a :DateField;\n :label \"End\";\n :property cal:dtend .\n\n f:colorField a :ColorField;\n :label \"Tab color\";\n # :default \"#ddddcc\"^^xsd:color;\n :property ui:backgroundColor .\n\n f:eventComment\n a ui:MultiLineTextField;\n # ui:maxLength\n # \"1048\";\n # ui:size\n # \"40\".\n ui:property\n cal:comment.\n\n###################################################\n\nf:settings a :Form;\n dc:title \"Tab settings\";\n :part f:labelField, f:targetField, f:viewField.\n\n f:labelField a :SingleLineTextField;\n :maxLength 128;\n :property rdfs:label;\n :label \"Label on tab\";\n :size 40 .\n\n f:targetField a :NamedNodeURIField;\n :maxLength 1024; # Longer?\n :property meeting:target;\n :label \"URL of resource\";\n :size 80 .\n\n f:colorField2 a :ColorField;\n :label \"Tab color\";\n # :default \"#ddddcc\"^^xsd:color;\n :property ui:backgroundColor .\n\n f:viewField a :SingleLineTextField;\n :maxLength 128;\n :property meeting:view;\n :label \"View mode (experts only)\";\n :size 40 .\n\n#\n`\n"],"file":"meetingDetailsForm.js"}