profile-pane 1.0.13-ebbb247d → 1.0.13-ff7d54ca

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/lib/ChatWithMe.js CHANGED
@@ -18,7 +18,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
18
18
  function verb(n) { return function (v) { return step([n, v]); }; }
19
19
  function step(op) {
20
20
  if (f) throw new TypeError("Generator is already executing.");
21
- while (_) try {
21
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
22
22
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
23
23
  if (y = 0, t) op = [op[0] & 2, t.value];
24
24
  switch (op[0]) {
package/lib/FriendList.js CHANGED
@@ -3,20 +3,35 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
4
  return cooked;
5
5
  };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
6
17
  Object.defineProperty(exports, "__esModule", { value: true });
7
18
  exports.FriendList = void 0;
8
19
  var solid_ui_1 = require("solid-ui");
9
20
  var lit_html_1 = require("lit-html");
10
21
  var style_map_js_1 = require("lit-html/directives/style-map.js");
11
22
  var baseStyles_1 = require("./baseStyles");
23
+ var baseStyles_2 = require("./baseStyles");
12
24
  var styles = {
13
25
  root: (0, style_map_js_1.styleMap)((0, baseStyles_1.padding)()),
14
26
  heading: (0, style_map_js_1.styleMap)((0, baseStyles_1.headingLight)()),
15
27
  card: (0, style_map_js_1.styleMap)((0, baseStyles_1.card)()),
16
28
  };
17
- var FriendList = function (subject, context) {
29
+ var FriendList = function (profileBasics, subject, context) {
30
+ var nameStyle = (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_2.heading)()), {
31
+ // "text-decoration": "underline",
32
+ color: profileBasics.highlightColor }));
18
33
  if (createList(subject, context)) {
19
- return (0, lit_html_1.html)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <div data-testid=\"friend-list\" style=\"", "\"> \n <div style=", ">\n <h3 style=", ">Friends</h3>\n ", "\n </div>\n </div>\n "], ["\n <div data-testid=\"friend-list\" style=\"", "\"> \n <div style=", ">\n <h3 style=", ">Friends</h3>\n ", "\n </div>\n </div>\n "])), styles.card, styles.root, styles.heading, createList(subject, context));
34
+ return (0, lit_html_1.html)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <div data-testid=\"friend-list\" style=\"", "\">\n <div style=", ">\n <h3 style=", ">Friends</h3>\n ", "\n </div>\n </div>\n "], ["\n <div data-testid=\"friend-list\" style=\"", "\">\n <div style=", ">\n <h3 style=", ">Friends</h3>\n ", "\n </div>\n </div>\n "])), styles.card, styles.root, nameStyle, createList(subject, context));
20
35
  }
21
36
  return (0, lit_html_1.html)(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""])));
22
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"FriendList.js","sourceRoot":"","sources":["../src/FriendList.ts"],"names":[],"mappings":";;;;;;;AAAA,qCAAuC;AAGvC,qCAAgD;AAChD,iEAA4D;AAC5D,2CAA2D;AAE3D,IAAM,MAAM,GAAG;IACb,IAAI,EAAE,IAAA,uBAAQ,EAAC,IAAA,oBAAO,GAAE,CAAC;IACzB,OAAO,EAAE,IAAA,uBAAQ,EAAC,IAAA,yBAAY,GAAE,CAAC;IACjC,IAAI,EAAE,IAAA,uBAAQ,EAAC,IAAA,iBAAI,GAAE,CAAC;CACvB,CAAC;AAEK,IAAM,UAAU,GAAG,UACxB,OAAkB,E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K,IAAM,UAAU,GAAG,UAAE,aAAkC,EAC5D,OAAkB,EAClB,OAA2B;IAE3B,IAAM,SAAS,GAAG,IAAA,uBAAQ,wBACrB,IAAA,oBAAO,GAAE;QACZ,kCAAkC;QAClC,KAAK,EAAE,aAAa,CAAC,cAAc,IACnC,CAAC;IAEH,IAAI,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE;QAChC,WAAO,eAAI,uOAAA,iDAC6B,EAAW,wBACpC,EAAW,uBACV,EAAS,yBACnB,EAA4B,kCAGjC,KANuC,MAAM,CAAC,IAAI,EACpC,MAAM,CAAC,IAAI,EACV,SAAS,EACnB,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,EAGjC;KACF;IACD,WAAO,eAAI,sEAAA,EAAE,KAAA;AACf,CAAC,CAAC;AArBW,QAAA,UAAU,cAqBrB;AAEF,IAAM,UAAU,GAAG,UAAC,OAAkB,EAAE,EAA2B;QAAzB,GAAG,SAAA;IAC3C,IAAM,MAAM,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACxC,kBAAO,CAAC,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE;QAC3C,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,EAAE,KAAK;QACb,SAAS,EAAE,aAAE,CAAC,IAAI,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,QAAQ;KACf,CAAC,CAAC;IACH,IAAI,MAAM,CAAC,WAAW,KAAK,EAAE;QAC3B,OAAO,IAAI,CAAA;;QACR,OAAO,MAAM,CAAC;AACrB,CAAC,CAAC"}
@@ -16,6 +16,42 @@ var __assign = (this && this.__assign) || function () {
16
16
  };
17
17
  return __assign.apply(this, arguments);
18
18
  };
19
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
+ return new (P || (P = Promise))(function (resolve, reject) {
22
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
23
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
24
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
25
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
26
+ });
27
+ };
28
+ var __generator = (this && this.__generator) || function (thisArg, body) {
29
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
30
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
31
+ function verb(n) { return function (v) { return step([n, v]); }; }
32
+ function step(op) {
33
+ if (f) throw new TypeError("Generator is already executing.");
34
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
35
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
36
+ if (y = 0, t) op = [op[0] & 2, t.value];
37
+ switch (op[0]) {
38
+ case 0: case 1: t = op; break;
39
+ case 4: _.label++; return { value: op[1], done: false };
40
+ case 5: _.label++; y = op[1]; op = [0]; continue;
41
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
42
+ default:
43
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
44
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
45
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
46
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
47
+ if (t[2]) _.ops.pop();
48
+ _.trys.pop(); continue;
49
+ }
50
+ op = body.call(thisArg, _);
51
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
52
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
53
+ }
54
+ };
19
55
  Object.defineProperty(exports, "__esModule", { value: true });
20
56
  exports.ProfileView = void 0;
21
57
  var lit_html_1 = require("lit-html");
@@ -25,20 +61,33 @@ var ChatWithMe_1 = require("./ChatWithMe");
25
61
  var FriendList_1 = require("./FriendList");
26
62
  var presenter_1 = require("./presenter");
27
63
  var CVPresenter_1 = require("./CVPresenter"); // 20210527
64
+ var StuffPresenter_1 = require("./StuffPresenter"); // 20210527
28
65
  var ProfileCard_1 = require("./ProfileCard");
29
66
  var CVCard_1 = require("./CVCard");
67
+ var StuffCard_1 = require("./StuffCard");
30
68
  var QRCodeCard_1 = require("./QRCodeCard");
31
69
  var addMeToYourFriends_1 = require("./addMeToYourFriends");
32
- var ProfileView = function (subject, context) {
33
- var profileBasics = (0, presenter_1.presentProfile)(subject, context.session.store); // rdflib rdfs type problems
34
- var rolesByType = (0, CVPresenter_1.presentCV)(subject, context.session.store);
35
- var styles = {
36
- grid: (0, style_map_js_1.styleMap)(__assign(__assign(__assign({}, (0, baseStyles_1.responsiveGrid)()), (0, baseStyles_1.paddingSmall)()), { background: "radial-gradient(circle, ".concat(profileBasics.backgroundColor, " 80%, ").concat(profileBasics.highlightColor, " 100%)") })),
37
- card: (0, style_map_js_1.styleMap)((0, baseStyles_1.card)()),
38
- chat: (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_1.card)()), (0, baseStyles_1.padding)())),
39
- };
40
- return (0, lit_html_1.html)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <div style=\"", "\">\n <div>\n <div data-testid=\"profile-card\" style=\"", "\">\n ", "\n ", "\n </div>\n </div>\n ", "\n ", "\n <div style=\"", "\">", "</div>\n <div data-testid=\"qrcode-display\" style=\"", "\">\n ", "\n </div>\n </div>\n "], ["\n <div style=\"", "\">\n <div>\n <div data-testid=\"profile-card\" style=\"", "\">\n ", "\n ", "\n </div>\n </div>\n ", "\n ", "\n <div style=\"", "\">", "</div>\n <div data-testid=\"qrcode-display\" style=\"", "\">\n ", "\n </div>\n </div>\n "])), styles.grid, styles.card, (0, ProfileCard_1.ProfileCard)(profileBasics), (0, addMeToYourFriends_1.addMeToYourFriendsDiv)(subject, context), (0, FriendList_1.FriendList)(subject, context), (0, CVCard_1.CVCard)(profileBasics, rolesByType), styles.chat, (0, ChatWithMe_1.ChatWithMe)(subject, context), styles.card, (0, QRCodeCard_1.QRCodeCard)(profileBasics, subject));
41
- };
70
+ function ProfileView(subject, context) {
71
+ return __awaiter(this, void 0, void 0, function () {
72
+ var profileBasics, rolesByType, stuffData, styles;
73
+ return __generator(this, function (_a) {
74
+ switch (_a.label) {
75
+ case 0:
76
+ profileBasics = (0, presenter_1.presentProfile)(subject, context.session.store);
77
+ rolesByType = (0, CVPresenter_1.presentCV)(subject, context.session.store);
78
+ return [4 /*yield*/, (0, StuffPresenter_1.presentStuff)(subject)];
79
+ case 1:
80
+ stuffData = _a.sent();
81
+ styles = {
82
+ grid: (0, style_map_js_1.styleMap)(__assign(__assign(__assign({}, (0, baseStyles_1.responsiveGrid)()), (0, baseStyles_1.paddingSmall)()), { background: "radial-gradient(circle, ".concat(profileBasics.backgroundColor, " 80%, ").concat(profileBasics.highlightColor, " 100%)") })),
83
+ card: (0, style_map_js_1.styleMap)((0, baseStyles_1.card)()),
84
+ chat: (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_1.card)()), (0, baseStyles_1.padding)())),
85
+ };
86
+ return [2 /*return*/, (0, lit_html_1.html)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <div style=\"", "\">\n <div>\n <div data-testid=\"profile-card\" style=\"", "\">\n ", "\n ", "\n </div>\n </div>\n ", "\n ", "\n ", "\n <div style=\"", "\">", "</div>\n <div data-testid=\"qrcode-display\" style=\"", "\">\n ", "\n </div>\n </div>\n "], ["\n <div style=\"", "\">\n <div>\n <div data-testid=\"profile-card\" style=\"", "\">\n ", "\n ", "\n </div>\n </div>\n ", "\n ", "\n ", "\n <div style=\"", "\">", "</div>\n <div data-testid=\"qrcode-display\" style=\"", "\">\n ", "\n </div>\n </div>\n "])), styles.grid, styles.card, (0, ProfileCard_1.ProfileCard)(profileBasics), (0, addMeToYourFriends_1.addMeToYourFriendsDiv)(subject, context), (0, CVCard_1.CVCard)(profileBasics, rolesByType), (0, StuffCard_1.StuffCard)(profileBasics, context, subject, stuffData), (0, FriendList_1.FriendList)(profileBasics, subject, context), styles.chat, (0, ChatWithMe_1.ChatWithMe)(subject, context), styles.card, (0, QRCodeCard_1.QRCodeCard)(profileBasics, subject))];
87
+ }
88
+ });
89
+ });
90
+ }
42
91
  exports.ProfileView = ProfileView;
43
92
  var templateObject_1;
44
93
  //# sourceMappingURL=ProfileView.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileView.js","sourceRoot":"","sources":["../src/ProfileView.ts"],"names":[],"mappings":";AAAA;EACE;;;;;;;;;;;;;;;;;;AAEF,qCAAgD;AAChD,iEAA4D;AAG5D,2CAA2E;AAC3E,2CAA0C;AAC1C,2CAA0C;AAC1C,yCAA6C;AAC7C,6CAAyC,CAAC,WAAW;AACrD,6CAA4C;AAC5C,mCAAkC;AAClC,2CAA0C;AAC1C,2DAA6D;AAEtD,IAAM,WAAW,GAAG,UACzB,OAAkB,EAClB,OAA2B;IAE3B,IAAM,aAAa,GAAG,IAAA,0BAAc,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,KAAkB,CAAC,CAAC,CAAC,4BAA4B;IAC/G,IAAM,WAAW,GAAG,IAAA,uBAAS,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,KAAkB,CAAC,CAAA;IAC3E,IAAM,MAAM,GAAG;QACb,IAAI,EAAE,IAAA,uBAAQ,iCACT,IAAA,2BAAc,GAAE,GAChB,IAAA,yBAAY,GAAE,KACjB,UAAU,EAAE,kCAA2B,aAAa,CAAC,eAAe,mBAAS,aAAa,CAAC,cAAc,WAAQ,IACjH;QACF,IAAI,EAAE,IAAA,uBAAQ,EAAC,IAAA,iBA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58 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.StuffCard = void 0;
19
+ var lit_html_1 = require("lit-html");
20
+ var async_replace_js_1 = require("lit-html/directives/async-replace.js");
21
+ var solid_ui_1 = require("solid-ui");
22
+ var baseStyles_1 = require("./baseStyles");
23
+ var style_map_js_1 = require("lit-html/directives/style-map.js");
24
+ var baseStyles_2 = require("./baseStyles");
25
+ var dom = document;
26
+ var styles = {
27
+ image: (0, style_map_js_1.styleMap)((0, baseStyles_1.fullWidth)()),
28
+ intro: (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_1.textGray)()), (0, baseStyles_1.textCenter)())),
29
+ card: (0, style_map_js_1.styleMap)((0, baseStyles_2.card)()),
30
+ info: (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_1.paddingSmall)()), (0, baseStyles_1.textLeft)())),
31
+ };
32
+ var StuffCard = function (profileBasics, context, subject, stuffData) {
33
+ var stuff = stuffData.stuff;
34
+ var nameStyle = (0, style_map_js_1.styleMap)(__assign(__assign({}, (0, baseStyles_1.heading)()), {
35
+ // "text-decoration": "underline",
36
+ color: profileBasics.highlightColor }));
37
+ // return renderThings(stuff)
38
+ return (0, lit_html_1.html)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <div data-testid=\"stuff\" style=\"", "\">\n <div style=", ">\n <h3 style=", ">Stuff</h3>\n\n <div style=", "><table data-testid=\"stuffTable\">", "</table></div>\n <hr />\n\n </div>\n </div>\n"], ["\n <div data-testid=\"stuff\" style=\"", "\">\n <div style=", ">\n <h3 style=", ">Stuff</h3>\n\n <div style=", "><table data-testid=\"stuffTable\">", "</table></div>\n <hr />\n\n </div>\n </div>\n"])), styles.card, styles.info, nameStyle, styles.info, renderThings(stuff));
39
+ };
40
+ exports.StuffCard = StuffCard;
41
+ function renderThingAsDOM(thing, dom) {
42
+ var options = {};
43
+ var row = solid_ui_1.widgets.personTR(dom, null, thing.instance, options);
44
+ return row;
45
+ }
46
+ function renderThing(thing, dom) {
47
+ return renderThingAsDOM(thing, dom);
48
+ return (0, lit_html_1.html)(templateObject_2 || (templateObject_2 = __makeTemplateObject([" ", " "], [" ", " "])), (0, async_replace_js_1.asyncReplace)(renderThingAsDOM(thing, dom)));
49
+ }
50
+ function renderThings(things) {
51
+ console.log('Renderthings: ', things);
52
+ if (things.length === 0)
53
+ return (0, lit_html_1.html)(templateObject_3 || (templateObject_3 = __makeTemplateObject([""], [""])));
54
+ return (0, lit_html_1.html)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["", "", ""], ["", "", ""])), renderThing(things[0], dom), things.length > 1 ? renderThings(things.slice(1)) : (0, lit_html_1.html)(templateObject_4 || (templateObject_4 = __makeTemplateObject([""], [""]))));
55
+ }
56
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
57
+ // ENDS
58
+ //# sourceMappingURL=StuffCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StuffCard.js","sourceRoot":"","sources":["../src/StuffCard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,qCAAgD;AAChD,yEAAoE;AAGpE,qCAAkC;AAElC,2CAOsB;AAEtB,iEAA4D;AAC5D,2CAAoC;AAEpC,IAAM,GAAG,GAAG,QAAQ,CAAA;AAEpB,IAAM,MAAM,GAAG;IACb,KAAK,EAAE,IAAA,uBAAQ,EAAC,IAAA,sB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EAAE,GAAG,CAAC,CAAC,EAAI;AAC/D,CAAC;AAED,SAAS,YAAY,CAAC,MAAM;IACxB,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACrC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,WAAO,eAAI,sEAAA,EAAE,KAAC;IACvC,WAAO,eAAI,8EAAA,EAAG,EAA2B,EAAG,EAA0D,EAAE,KAA1F,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,EAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAC,eAAI,sEAAA,EAAE,IAAA,EAAE;AAC5G,CAAC;;AAED,OAAO"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.presentStuff = exports.getIconForClass = exports.iconForClassMap = void 0;
40
+ var rdflib_1 = require("rdflib");
41
+ var solid_ui_1 = require("solid-ui");
42
+ var solid_logic_1 = require("solid-logic");
43
+ var iconForClass = solid_ui_1.widgets.iconForClass;
44
+ var typeIndex = solid_logic_1.solidLogicSingleton.typeIndex;
45
+ var getScopedAppInstances = typeIndex.getScopedAppInstances;
46
+ exports.iconForClassMap = {}; // @@ move to buttons in solid-ui
47
+ for (var k in iconForClass) {
48
+ var pref = k.split(':')[0];
49
+ var id = k.split(':')[1];
50
+ var theClass = solid_ui_1.ns[pref](id);
51
+ exports.iconForClassMap[theClass.uri] = rdflib_1.uri.join(iconForClass[k], solid_ui_1.icons.iconBase);
52
+ }
53
+ function getIconForClass(klass) {
54
+ var icon0 = exports.iconForClassMap[klass.uri];
55
+ return icon0 || solid_ui_1.icons.iconBase + 'noun_10636.svg'; // fall back to black disk
56
+ }
57
+ exports.getIconForClass = getIconForClass;
58
+ function presentStuff(subject) {
59
+ return __awaiter(this, void 0, void 0, function () {
60
+ var scopedItems, stuff;
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0: return [4 /*yield*/, getScopedAppInstances(null, subject)];
64
+ case 1:
65
+ scopedItems = _a.sent();
66
+ console.log('scopedItems', scopedItems);
67
+ stuff = scopedItems.map(function (item) {
68
+ var icon = getIconForClass(item.type || solid_ui_1.ns.rdf('Resource')); // eslint-disable-line
69
+ var href = item.instance.uri;
70
+ var name = solid_ui_1.utils.label(item.instance);
71
+ var instance = item.instance;
72
+ console.log(" href=".concat(href, " name=").concat(name, " icon=").concat(icon));
73
+ return { href: href, name: name, icon: icon, instance: instance };
74
+ });
75
+ return [2 /*return*/, { stuff: stuff }];
76
+ }
77
+ });
78
+ });
79
+ }
80
+ exports.presentStuff = presentStuff;
81
+ //# sourceMappingURL=StuffPresenter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StuffPresenter.js","sourceRoot":"","sources":["../src/StuffPresenter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAwC;AACxC,qCAAqD;AACrD,2CAAiD;AAEzC,IAAA,YAAY,GAAK,kBAAO,aAAZ,CAAY;AACxB,IAAA,SAAS,GAAK,iCAAmB,UAAxB,CAAwB;AAEvC,IAAA,qBAAqB,GACnB,SAAS,sBADU,CACV;AAcA,QAAA,eAAe,GAAG,EAAE,CAAA,CAAC,iCAAiC;AACnE,KAAK,IAAM,CAAC,IAAI,YAAY,EAAE;IAC5B,IAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5B,IAAM,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC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AED,sBAAO,EAAE,KAAK,OAAA,EAAE,EAAA;;;;CACjB;AAjBD,oCAiBC"}
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
29
29
  function verb(n) { return function (v) { return step([n, v]); }; }
30
30
  function step(op) {
31
31
  if (f) throw new TypeError("Generator is already executing.");
32
- while (_) try {
32
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
33
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
34
  if (y = 0, t) op = [op[0] & 2, t.value];
35
35
  switch (op[0]) {
package/lib/index.js CHANGED
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
18
  if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -73,45 +73,56 @@ var Pane = {
73
73
  render: function (subject, context) {
74
74
  var target = context.dom.createElement("div");
75
75
  var store = context.session.store;
76
- loadExtendedProfile(store, subject).then(function () {
77
- (0, lit_html_1.render)((0, ProfileView_1.ProfileView)(subject, context), target);
78
- var QRCodeEles = Array.from(target.getElementsByClassName('QRCode')); // was context.dom
79
- if (!QRCodeEles.length)
80
- return console.error("QRCode Ele missing");
81
- var _loop_1 = function (QRCodeElement) {
82
- var value = QRCodeElement.getAttribute('data-value');
83
- if (!value)
84
- return { value: console.error("QRCode data-value missing") };
85
- var highlightColor = QRCodeElement.getAttribute('highlightColor') || '#000000';
86
- var backgroundColor = QRCodeElement.getAttribute('backgroundColor') || '#ffffff';
87
- // zconsole.log(`@@ qrcodes2 colours highlightColor ${highlightColor}, backgroundColor ${backgroundColor}`)
88
- var options = {
89
- type: 'svg',
90
- color: {
91
- dark: highlightColor,
92
- light: backgroundColor
93
- }
94
- };
95
- qrcode.toString(value, options, function (error, svg) {
96
- if (error) {
97
- console.error('QRcode error!', error);
98
- }
99
- else {
100
- console.log('QRcode success.', svg);
101
- QRCodeElement.innerHTML = svg;
102
- QRCodeElement.style.width = "80%";
103
- QRCodeElement.style.height = "80%";
104
- QRCodeElement.style.margin = "10%";
105
- }
106
- });
107
- };
108
- for (var _i = 0, _a = QRCodeEles; _i < _a.length; _i++) {
109
- var QRCodeElement = _a[_i];
110
- var state_1 = _loop_1(QRCodeElement);
111
- if (typeof state_1 === "object")
112
- return state_1.value;
113
- }
114
- });
76
+ loadExtendedProfile(store, subject).then(function () { return __awaiter(void 0, void 0, void 0, function () {
77
+ var _a, QRCodeEles, _loop_1, _i, _b, QRCodeElement, state_1;
78
+ return __generator(this, function (_c) {
79
+ switch (_c.label) {
80
+ case 0:
81
+ _a = lit_html_1.render;
82
+ return [4 /*yield*/, (0, ProfileView_1.ProfileView)(subject, context)];
83
+ case 1:
84
+ _a.apply(void 0, [_c.sent(), target]);
85
+ QRCodeEles = Array.from(target.getElementsByClassName('QRCode')) // was context.dom
86
+ ;
87
+ if (!QRCodeEles.length)
88
+ return [2 /*return*/, console.error("QRCode Ele missing")];
89
+ _loop_1 = function (QRCodeElement) {
90
+ var value = QRCodeElement.getAttribute('data-value');
91
+ if (!value)
92
+ return { value: console.error("QRCode data-value missing") };
93
+ var highlightColor = QRCodeElement.getAttribute('highlightColor') || '#000000';
94
+ var backgroundColor = QRCodeElement.getAttribute('backgroundColor') || '#ffffff';
95
+ // zconsole.log(`@@ qrcodes2 colours highlightColor ${highlightColor}, backgroundColor ${backgroundColor}`)
96
+ var options = {
97
+ type: 'svg',
98
+ color: {
99
+ dark: highlightColor,
100
+ light: backgroundColor
101
+ }
102
+ };
103
+ qrcode.toString(value, options, function (error, svg) {
104
+ if (error) {
105
+ console.error('QRcode error!', error);
106
+ }
107
+ else {
108
+ console.log('QRcode success.', svg);
109
+ QRCodeElement.innerHTML = svg;
110
+ QRCodeElement.style.width = "80%";
111
+ QRCodeElement.style.height = "80%";
112
+ QRCodeElement.style.margin = "10%";
113
+ }
114
+ });
115
+ };
116
+ for (_i = 0, _b = QRCodeEles; _i < _b.length; _i++) {
117
+ QRCodeElement = _b[_i];
118
+ state_1 = _loop_1(QRCodeElement);
119
+ if (typeof state_1 === "object")
120
+ return [2 /*return*/, state_1.value];
121
+ }
122
+ return [2 /*return*/];
123
+ }
124
+ });
125
+ }); });
115
126
  return target;
116
127
  },
117
128
  };
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAkC;AAClC,6CAA4C;AAC5C,qCAAqC;AACrC,+BAAgC;AAEhC,SAAe,mBAAmB,CAAC,KAAgB,EAAE,OAAkB;;;;;;oBAC/D,aAAa,GAAG,KAAK,CAAC,IAAI,CAC9B,OAAO,EACP,aAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAClB,IAAI,EACJ,OAAO,CAAC,GAAG,EAAE,CACM,CAAC;yBAClB,CAAA,aAAa,CAAC,MAAM,GAAG,CAAC,CAAA,EAAxB,wBAAwB;oBAC1B,qBAAM,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAA;;oBAAvC,SAAuC,CAAC;;;;;;CAE3C;AAED,IAAM,IAAI,GAAG;IACX,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,gBAAK,CAAC,QAAQ,GAAG,gBAAgB;IACvC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,UACL,OAAkB,EAClB,OAA2B;QAE3B,IAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,KAAK,CAA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ict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.clearLocalStore = exports.ClubPublicTypes = exports.ClubPublicTypeIndex = exports.ClubProfile = exports.ClubPrivateTypes = exports.ClubPrivateTypeIndex = exports.ClubPreferencesFile = exports.ClubPreferences = exports.BobProfile = exports.AlicePublicTypes = exports.AlicePublicTypeIndex = exports.AliceProfileFile = exports.AliceProfile = exports.AlicePrivateTypes = exports.AlicePrivateTypeIndex = exports.AlicePreferencesFile = exports.AlicePhotos = exports.AlicePreferences = exports.AlicePhotoFolder = exports.club = exports.bobby = exports.bob = exports.alice = exports.loadWebObject = void 0;
4
+ var rdflib_1 = require("rdflib");
5
+ //------ Club -------------------------------------------------------
6
+ var club = (0, rdflib_1.sym)('https://club.example.com/profile/card.ttl#it');
7
+ exports.club = club;
8
+ var ClubPreferencesFile = (0, rdflib_1.sym)('https://club.example.com/settings/prefs.ttl');
9
+ exports.ClubPreferencesFile = ClubPreferencesFile;
10
+ var ClubPublicTypeIndex = (0, rdflib_1.sym)('https://club.example.com/profile/public-type-index.ttl');
11
+ exports.ClubPublicTypeIndex = ClubPublicTypeIndex;
12
+ var ClubPrivateTypeIndex = (0, rdflib_1.sym)('https://club.example.com/settings/private-type-index.ttl');
13
+ exports.ClubPrivateTypeIndex = ClubPrivateTypeIndex;
14
+ var ClubProfile = "\n\n<#it> a vcard:Organization;\n space:preferencesFile ".concat(ClubPreferencesFile, ";\n solid:publicTypeIndex ").concat(ClubPublicTypeIndex, ";\n vcard:fn \"Card Club\" .\n");
15
+ exports.ClubProfile = ClubProfile;
16
+ var ClubPreferences = "\n ".concat(club, " solid:privateTypeIndex ").concat(ClubPrivateTypeIndex, " .\n");
17
+ exports.ClubPreferences = ClubPreferences;
18
+ var ClubPublicTypes = "\n\n:chat1 solid:forClass meeting:LongChat; solid:instance <../publicStuff/ourChat.ttl#this> .\n\n:todo solid:forClass wf:Tracker; solid:instance <../publicStuff/actionItems.ttl#this>.\n\n:issues solid:forClass wf:Tracker; solid:instance <../project4/clubIssues.ttl#this>.\n";
19
+ exports.ClubPublicTypes = ClubPublicTypes;
20
+ var ClubPrivateTypes = "\n:id1592319218311 solid:forClass wf:Tracker; solid:instance <../privateStuff/ToDo.ttl#this>.\n\n:id1592319391415 solid:forClass wf:Tracker; solid:instance <../privateStuff/Goals.ttl#this>.\n\n:id1595595377864 solid:forClass wf:Tracker; solid:instance <../privateStuff/tasks.ttl#this>.\n\n:id1596123375929 solid:forClass meeting:Meeting; solid:instance <../project4/clubMeeting.ttl#this>.\n\n";
21
+ exports.ClubPrivateTypes = ClubPrivateTypes;
22
+ //------ Alice -------------------------------------------------------
23
+ var alice = (0, rdflib_1.sym)("https://alice.example.com/profile/card.ttl#me");
24
+ exports.alice = alice;
25
+ var AliceProfileFile = alice.doc();
26
+ exports.AliceProfileFile = AliceProfileFile;
27
+ var AlicePreferencesFile = (0, rdflib_1.sym)('https://alice.example.com/settings/prefs.ttl');
28
+ exports.AlicePreferencesFile = AlicePreferencesFile;
29
+ var AlicePublicTypeIndex = (0, rdflib_1.sym)('https://alice.example.com/profile/public-type-index.ttl');
30
+ exports.AlicePublicTypeIndex = AlicePublicTypeIndex;
31
+ var AlicePrivateTypeIndex = (0, rdflib_1.sym)('https://alice.example.com/settings/private-type-index.ttl');
32
+ exports.AlicePrivateTypeIndex = AlicePrivateTypeIndex;
33
+ var AlicePhotoFolder = (0, rdflib_1.sym)(alice.dir().uri + "Photos/");
34
+ exports.AlicePhotoFolder = AlicePhotoFolder;
35
+ var AliceProfile = "\n<#me> a vcard:Individual;\n space:preferencesFile ".concat(AlicePreferencesFile, ";\n solid:publicTypeIndex ").concat(AlicePublicTypeIndex, ";\n vcard:fn \"Alice\" .\n");
36
+ exports.AliceProfile = AliceProfile;
37
+ var AlicePreferences = "\n ".concat(alice, " solid:privateTypeIndex ").concat(AlicePrivateTypeIndex, ";\n solid:community ").concat(club, " .\n");
38
+ exports.AlicePreferences = AlicePreferences;
39
+ var AlicePublicTypes = "\n\n:chat1 solid:forClass meeting:LongChat; solid:instance <../publicStuff/myChat.ttl#this> .\n\n:todo solid:forClass wf:Tracker; solid:instance <../publicStuff/actionItems.ttl#this>.\n\n:issues solid:forClass wf:Tracker; solid:instance <../project4/issues.ttl#this>.\n\n:photos solid:forClass schema:Image; solid:instanceContainer ".concat(AlicePhotoFolder, " .\n");
40
+ exports.AlicePublicTypes = AlicePublicTypes;
41
+ var AlicePrivateTypes = "\n:id1592319218311 solid:forClass wf:Tracker; solid:instance <../privateStuff/ToDo.ttl#this>.\n\n:id1592319391415 solid:forClass wf:Tracker; solid:instance <../privateStuff/Goals.ttl#this>.\n\n:id1595595377864 solid:forClass wf:Tracker; solid:instance <../privateStuff/workingOn.ttl#this>.\n\n:id1596123375929 solid:forClass meeting:Meeting; solid:instance <../project4/meeting1.ttl#this>.\n\n";
42
+ exports.AlicePrivateTypes = AlicePrivateTypes;
43
+ var AlicePhotos = "\n<>\n a ldp:BasicContainer, ldp:Container;\n dct:modified \"2021-04-26T05:34:16Z\"^^xsd:dateTime;\n ldp:contains\n <photo1.png>, <photo2.png>, <photo3.png> ;\n stat:mtime 1619415256.541;\n stat:size 4096 .\n";
44
+ exports.AlicePhotos = AlicePhotos;
45
+ //------ Bob -------------------------------------------------------
46
+ var bob = (0, rdflib_1.sym)('https://bob.example.com/profile/card.ttl#me');
47
+ exports.bob = bob;
48
+ var BobProfile = "\n<#me> a vcard:Individual;\nvcard:fn \"Bob\" .\n";
49
+ exports.BobProfile = BobProfile;
50
+ //------ Bobby -------------------------------------------------------
51
+ var bobby = (0, rdflib_1.sym)('https://bobby.example.com/profile/card.ttl#me');
52
+ exports.bobby = bobby;
53
+ var BobbyProfile = "\n<#me> a vcard:Individual;\nvcard:fn \"Bobby\" .\n";
54
+ function loadWebObject() {
55
+ var web = {};
56
+ web[alice.doc().uri] = AliceProfile;
57
+ web[AlicePreferencesFile.uri] = AlicePreferences;
58
+ web[AlicePrivateTypeIndex.uri] = AlicePrivateTypes;
59
+ web[AlicePublicTypeIndex.uri] = AlicePublicTypes;
60
+ web[AlicePhotoFolder.uri] = AlicePhotos;
61
+ web[bob.doc().uri] = BobProfile;
62
+ web[bobby.doc().uri] = BobbyProfile;
63
+ web[club.doc().uri] = ClubProfile;
64
+ web[ClubPreferencesFile.uri] = ClubPreferences;
65
+ web[ClubPrivateTypeIndex.uri] = ClubPrivateTypes;
66
+ web[ClubPublicTypeIndex.uri] = ClubPublicTypes;
67
+ return web;
68
+ }
69
+ exports.loadWebObject = loadWebObject;
70
+ function clearLocalStore(store) {
71
+ store.statements.slice().forEach(store.remove.bind(store));
72
+ }
73
+ exports.clearLocalStore = clearLocalStore;
74
+ //# sourceMappingURL=dataSetup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataSetup.js","sourceRoot":"","sources":["../../../src/integration-tests/helpers/dataSetup.ts"],"names":[],"mappings":";;;AAAA,iCAA4B;AAE5B,qEAAqE;AACrE,IAAM,IAAI,GAAG,IAAA,YAAG,EAAC,8CAA8C,CAAC,CAAA;AAyHzC,oBAAI;AAxH3B,IAAM,mBAAmB,GAAG,IAAA,YAAG,EAAC,6CAA6C,CAAC,CAAA;AA2HzD,kDAAmB;AA1HxC,IAAM,mBAAmB,GAAG,IAAA,YAAG,EAAC,wDAAwD,CAAC,CAAA;AA0HM,kDAAmB;AAzHlH,IAAM,oBAAoB,GAAG,IAAA,YAAG,EAAC,0DAA0D,CAAC,CAAA;AAyHlD,oDAAoB;AAvH9D,IAAM,WAAW,GAAG,qEAGQ,mBAAmB,0CACnB,mBAAmB,sCAE9C,CAAA;AAiHiF,kCAAW;AAhH7F,IAAM,eAAe,GAAI,gBACnB,IAAI,qCAA2B,oBAAoB,SACxD,CAAA;AA8GG,0CAAe;AA7GnB,IAAM,eAAe,GAAG,sRAOvB,CAAC;AAsGkH,0CAAe;AApGnI,IAAM,gBAAgB,GAAG,4YASxB,CAAC;AA2F8D,4CAAgB;AAzFhF,sEAAsE;AACtE,IAAM,KAAK,GAAG,IAA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AAC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAAA;IACnC,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAA;IAChD,GAAG,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAA;IAClD,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAA;IAChD,GAAG,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,WAAW,CAAA;IACvC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,UAAU,CAAA;IAC/B,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,YAAY,CAAA;IAEnC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,WAAW,CAAA;IACjC,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,eAAe,CAAA;IAC9C,GAAG,CAAC,oBAAoB,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAA;IAChD,GAAG,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,eAAe,CAAA;IAC9C,OAAO,GAAG,CAAA;AACd,CAAC;AAfD,sCAeC;AAED,SAAS,eAAe,CAAC,KAAK;IAC1B,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;AAC9D,CAAC;AAOG,0CAAe"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // import { error, log, trace, warn } from '../../src/util/debug'
4
+ var jest_fetch_mock_1 = require("jest-fetch-mock");
5
+ var util_1 = require("util");
6
+ global.TextEncoder = util_1.TextEncoder;
7
+ global.TextDecoder = util_1.TextDecoder;
8
+ jest_fetch_mock_1.default.enableMocks();
9
+ // We don't want to output debug messages to console as part of the tests
10
+ jest.mock('../../src/util/debug');
11
+ /*
12
+ export function silenceDebugMessages () {
13
+ (log as any).mockImplementation(() => null)
14
+ ;(warn as any).mockImplementation(() => null)
15
+ ;(error as any).mockImplementation(() => null)
16
+ ;(trace as any).mockImplementation(() => null)
17
+ }
18
+ */
19
+ //# sourceMappingURL=setup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setup.js","sourceRoot":"","sources":["../../../src/integration-tests/helpers/setup.ts"],"names":[],"mappings":";;AAAA,iEAAiE;AACjE,mDAAwC;AACxC,6BAA+C;AAC/C,MAAM,CAAC,WAAW,GAAG,kBAAW,CAAA;AAChC,MAAM,CAAC,WAAW,GAAG,kBAAW,CAAA;AAGhC,yBAAS,CAAC,WAAW,EAAE,CAAC;AACxB,yEAAyE;AACzE,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;AAEjC;;;;;;;EAOE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "profile-pane",
3
- "version": "1.0.13-ebbb247d",
3
+ "version": "1.0.13-ff7d54ca",
4
4
  "description": "A SolidOS compatible pane to display a personal profile page",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,7 +39,7 @@
39
39
  "path-browserify": "^1.0.1",
40
40
  "qrcode": "^1.5.1",
41
41
  "rdflib": "^2.2.21",
42
- "solid-logic": "^2.0.1",
42
+ "solid-logic": "^2.1.0",
43
43
  "solid-ui": "^2.4.24",
44
44
  "validate-color": "^2.2.1"
45
45
  },