solid-panes 3.7.3-3425a37d → 3.7.3-34392762

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 (103) hide show
  1. package/dist/RDFXMLPane.js +58 -0
  2. package/dist/RDFXMLPane.js.map +1 -0
  3. package/dist/argument/argumentPane.js +61 -0
  4. package/dist/argument/argumentPane.js.map +1 -0
  5. package/dist/attach/attachPane.js +394 -0
  6. package/dist/attach/attachPane.js.map +1 -0
  7. package/dist/audio/audioPane.js +182 -0
  8. package/dist/audio/audioPane.js.map +1 -0
  9. package/dist/classInstancePane.js +92 -0
  10. package/dist/classInstancePane.js.map +1 -0
  11. package/dist/dashboard/basicPreferences.js +121 -129
  12. package/dist/dashboard/basicPreferences.js.map +1 -1
  13. package/dist/dashboard/dashboardPane.js +60 -54
  14. package/dist/dashboard/dashboardPane.js.map +1 -1
  15. package/dist/dashboard/homepage.js +45 -54
  16. package/dist/dashboard/homepage.js.map +1 -1
  17. package/dist/dataContentPane.js +259 -0
  18. package/dist/dataContentPane.js.map +1 -0
  19. package/dist/defaultPane.js +75 -0
  20. package/dist/defaultPane.js.map +1 -0
  21. package/dist/dokieli/dokieliPane.js +169 -0
  22. package/dist/dokieli/dokieliPane.js.map +1 -0
  23. package/dist/dokieli/new.js +28 -0
  24. package/dist/dokieli/new.js.map +1 -0
  25. package/dist/form/pane.js +185 -0
  26. package/dist/form/pane.js.map +1 -0
  27. package/dist/home/homePane.js +60 -55
  28. package/dist/home/homePane.js.map +1 -1
  29. package/dist/humanReadablePane.js +135 -0
  30. package/dist/humanReadablePane.js.map +1 -0
  31. package/dist/imagePane.js +70 -0
  32. package/dist/imagePane.js.map +1 -0
  33. package/dist/index.js +86 -25
  34. package/dist/index.js.map +1 -1
  35. package/dist/internal/internalPane.js +168 -179
  36. package/dist/internal/internalPane.js.map +1 -1
  37. package/dist/mainPage/footer.js +13 -7
  38. package/dist/mainPage/footer.js.map +1 -1
  39. package/dist/mainPage/header.js +59 -58
  40. package/dist/mainPage/header.js.map +1 -1
  41. package/dist/mainPage/index.js +19 -24
  42. package/dist/mainPage/index.js.map +1 -1
  43. package/dist/microblogPane/microblogPane.js +1031 -0
  44. package/dist/microblogPane/microblogPane.js.map +1 -0
  45. package/dist/n3Pane.js +56 -0
  46. package/dist/n3Pane.js.map +1 -0
  47. package/dist/outline/context.js +17 -11
  48. package/dist/outline/context.js.map +1 -1
  49. package/dist/outline/manager.js +1997 -0
  50. package/dist/outline/manager.js.map +1 -0
  51. package/dist/outline/outlineIcons.js +127 -0
  52. package/dist/outline/outlineIcons.js.map +1 -0
  53. package/dist/outline/propertyViews.js +39 -28
  54. package/dist/outline/propertyViews.js.map +1 -1
  55. package/dist/outline/queryByExample.js +285 -0
  56. package/dist/outline/queryByExample.js.map +1 -0
  57. package/dist/outline/userInput.js +1819 -0
  58. package/dist/outline/userInput.js.map +1 -0
  59. package/dist/outline/viewAsImage.js +13 -5
  60. package/dist/outline/viewAsImage.js.map +1 -1
  61. package/dist/outline/viewAsMbox.js +20 -11
  62. package/dist/outline/viewAsMbox.js.map +1 -1
  63. package/dist/pad/padPane.js +395 -404
  64. package/dist/pad/padPane.js.map +1 -1
  65. package/dist/playlist/playlistPane.js +124 -0
  66. package/dist/playlist/playlistPane.js.map +1 -0
  67. package/dist/registerPanes.js +146 -0
  68. package/dist/registerPanes.js.map +1 -0
  69. package/dist/schedule/schedulePane.js +888 -0
  70. package/dist/schedule/schedulePane.js.map +1 -0
  71. package/dist/sharing/sharingPane.js +36 -32
  72. package/dist/sharing/sharingPane.js.map +1 -1
  73. package/dist/slideshow/slideshowPane.js +80 -0
  74. package/dist/slideshow/slideshowPane.js.map +1 -0
  75. package/dist/socialPane.js +430 -0
  76. package/dist/socialPane.js.map +1 -0
  77. package/dist/tabbed/tabbedPane.js +54 -51
  78. package/dist/tabbed/tabbedPane.js.map +1 -1
  79. package/dist/tableViewPane.js +57 -0
  80. package/dist/tableViewPane.js.map +1 -0
  81. package/dist/transaction/pane.js +478 -0
  82. package/dist/transaction/pane.js.map +1 -0
  83. package/dist/transaction/period.js +324 -0
  84. package/dist/transaction/period.js.map +1 -0
  85. package/dist/trip/tripPane.js +175 -0
  86. package/dist/trip/tripPane.js.map +1 -0
  87. package/dist/trustedApplications/trustedApplications.dom.js +134 -146
  88. package/dist/trustedApplications/trustedApplications.dom.js.map +1 -1
  89. package/dist/trustedApplications/trustedApplications.utils.js +20 -20
  90. package/dist/trustedApplications/trustedApplications.utils.js.map +1 -1
  91. package/dist/trustedApplications/trustedApplications.view.js +51 -57
  92. package/dist/trustedApplications/trustedApplications.view.js.map +1 -1
  93. package/dist/ui/pane.js +147 -0
  94. package/dist/ui/pane.js.map +1 -0
  95. package/dist/versionInfo.js +35 -29
  96. package/dist/versionInfo.js.map +1 -1
  97. package/dist/video/videoPane.js +43 -0
  98. package/dist/video/videoPane.js.map +1 -0
  99. package/package.json +8 -6
  100. package/dist/types.d.ts +0 -30
  101. package/dist/types.d.ts.map +0 -1
  102. package/dist/types.js +0 -2
  103. package/dist/types.js.map +0 -1
@@ -1,62 +1,56 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { icons, login, widgets } from 'solid-ui';
11
- import { store } from 'solid-logic';
12
- import { createApplicationTable, createContainer, createText } from './trustedApplications.dom';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _solidUi = require("solid-ui");
8
+ var _solidLogic = require("solid-logic");
9
+ var _trustedApplications = require("./trustedApplications.dom");
13
10
  const thisColor = '#418d99';
14
11
  const trustedApplicationView = {
15
- global: true,
16
- icon: `${icons.iconBase}noun_15177.svg`,
17
- name: 'trustedApplications',
18
- label: () => null,
19
- render: (subject, context) => {
20
- const dom = context.dom;
21
- const div = dom.createElement('div');
22
- div.classList.add('trusted-applications-pane');
23
- div.setAttribute('style', 'border: 0.3em solid ' +
24
- thisColor +
25
- '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;');
26
- const table = div.appendChild(dom.createElement('table'));
27
- const main = table.appendChild(dom.createElement('tr'));
28
- const bottom = table.appendChild(dom.createElement('tr'));
29
- const statusArea = bottom.appendChild(dom.createElement('div'));
30
- statusArea.setAttribute('style', 'padding: 0.7em;');
31
- render(dom, main, statusArea).catch(err => statusArea.appendChild(widgets.errorMessageBlock(dom, err)));
32
- return div;
33
- }
12
+ global: true,
13
+ icon: `${_solidUi.icons.iconBase}noun_15177.svg`,
14
+ name: 'trustedApplications',
15
+ label: () => null,
16
+ render: (subject, context) => {
17
+ const dom = context.dom;
18
+ const div = dom.createElement('div');
19
+ div.classList.add('trusted-applications-pane');
20
+ div.setAttribute('style', 'border: 0.3em solid ' + thisColor + '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;');
21
+ const table = div.appendChild(dom.createElement('table'));
22
+ const main = table.appendChild(dom.createElement('tr'));
23
+ const bottom = table.appendChild(dom.createElement('tr'));
24
+ const statusArea = bottom.appendChild(dom.createElement('div'));
25
+ statusArea.setAttribute('style', 'padding: 0.7em;');
26
+ render(dom, main, statusArea).catch(err => statusArea.appendChild(_solidUi.widgets.errorMessageBlock(dom, err)));
27
+ return div;
28
+ }
34
29
  };
35
- function render(dom, main, statusArea) {
36
- return __awaiter(this, void 0, void 0, function* () {
37
- const authContext = yield login.ensureLoadedProfile({ dom, div: main, statusArea, me: null });
38
- const subject = authContext.me;
39
- const profile = subject.doc();
40
- if (!store.updater) {
41
- throw new Error('Store has no updater');
42
- }
43
- const editable = store.updater.editable(profile.uri, store);
44
- main.appendChild(createText('h3', 'Manage your trusted applications'));
45
- if (!editable) {
46
- main.appendChild(widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`));
47
- return;
48
- }
49
- main.appendChild(createText('p', 'Here you can manage the applications you trust.'));
50
- const applicationsTable = createApplicationTable(subject);
51
- main.appendChild(applicationsTable);
52
- main.appendChild(createText('h4', 'Notes'));
53
- main.appendChild(createContainer('ol', [
54
- main.appendChild(createText('li', 'Trusted applications will get access to all resources that you have access to.')),
55
- main.appendChild(createText('li', 'You can limit which modes they have by default.')),
56
- main.appendChild(createText('li', 'They will not gain more access than you have.'))
57
- ]));
58
- main.appendChild(createText('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.'));
59
- });
30
+ async function render(dom, main, statusArea) {
31
+ const authContext = await _solidUi.login.ensureLoadedProfile({
32
+ dom,
33
+ div: main,
34
+ statusArea,
35
+ me: null
36
+ });
37
+ const subject = authContext.me;
38
+ const profile = subject.doc();
39
+ if (!_solidLogic.store.updater) {
40
+ throw new Error('Store has no updater');
41
+ }
42
+ const editable = _solidLogic.store.updater.editable(profile.uri, _solidLogic.store);
43
+ main.appendChild((0, _trustedApplications.createText)('h3', 'Manage your trusted applications'));
44
+ if (!editable) {
45
+ main.appendChild(_solidUi.widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`));
46
+ return;
47
+ }
48
+ main.appendChild((0, _trustedApplications.createText)('p', 'Here you can manage the applications you trust.'));
49
+ const applicationsTable = (0, _trustedApplications.createApplicationTable)(subject);
50
+ main.appendChild(applicationsTable);
51
+ main.appendChild((0, _trustedApplications.createText)('h4', 'Notes'));
52
+ main.appendChild((0, _trustedApplications.createContainer)('ol', [main.appendChild((0, _trustedApplications.createText)('li', 'Trusted applications will get access to all resources that you have access to.')), main.appendChild((0, _trustedApplications.createText)('li', 'You can limit which modes they have by default.')), main.appendChild((0, _trustedApplications.createText)('li', 'They will not gain more access than you have.'))]));
53
+ main.appendChild((0, _trustedApplications.createText)('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.'));
60
54
  }
61
- export default trustedApplicationView;
55
+ var _default = exports.default = trustedApplicationView;
62
56
  //# sourceMappingURL=trustedApplications.view.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"trustedApplications.view.js","sourceRoot":"","sources":["../../src/trustedApplications/trustedApplications.view.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAE/F,MAAM,SAAS,GAAG,SAAS,CAAA;AAE3B,MAAM,sBAAsB,GAAmB;IAC7C,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,GAAG,KAAK,CAAC,QAAQ,gBAAgB;IACvC,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,GAAG,EAAE,CAAC,IAAI;IACjB,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE;QAC3B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;QACvB,MAAM,GAAG,GAAG,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACpC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAA;QAC9C,GAAG,CAAC,YAAY,CACd,OAAO,EACP,sBAAsB;YACtB,SAAS;YACT,2DAA2D,CAC5D,CAAA;QACD,MAAM,KAAK,GAAG,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAA;QACzD,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,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AAE,gBAAgB,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,8CAA8C,CAAC,CAChH,CAAA;YACD,OAAM;QACR,CAAC;QAED,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,iDAAiD,CAAC,CAAC,CAAA;QAEpF,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,OAAO,CAAC,CAAA;QACzD,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAA;QAEnC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAA;QAC3C,IAAI,CAAC,WAAW,CACd,eAAe,CAAC,IAAI,EAAE;YACpB,IAAI,CAAC,WAAW,CACd,UAAU,CACR,IAAI,EACJ,gFAAgF,CACjF,CACF;YACD,IAAI,CAAC,WAAW,CACd,UAAU,CAAC,IAAI,EAAE,iDAAiD,CAAC,CACpE;YACD,IAAI,CAAC,WAAW,CACd,UAAU,CAAC,IAAI,EAAE,+CAA+C,CAAC,CAClE;SACF,CAAC,CACH,CAAA;QACD,IAAI,CAAC,WAAW,CACd,UAAU,CAAC,GAAG,EAAE,2HAA2H,CAAC,CAC7I,CAAA;IACH,CAAC;CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"trustedApplications.view.js","names":["_solidUi","require","_solidLogic","_trustedApplications","thisColor","trustedApplicationView","global","icon","icons","iconBase","name","label","render","subject","context","dom","div","createElement","classList","add","setAttribute","table","appendChild","main","bottom","statusArea","catch","err","widgets","errorMessageBlock","authContext","login","ensureLoadedProfile","me","profile","doc","store","updater","Error","editable","uri","createText","applicationsTable","createApplicationTable","createContainer","_default","exports","default"],"sources":["../../src/trustedApplications/trustedApplications.view.ts"],"sourcesContent":["import { PaneDefinition } from 'pane-registry'\nimport { NamedNode } from 'rdflib'\nimport { icons, login, widgets } from 'solid-ui'\nimport { store } from 'solid-logic'\nimport { createApplicationTable, createContainer, createText } from './trustedApplications.dom'\n\nconst thisColor = '#418d99'\n\nconst trustedApplicationView: PaneDefinition = {\n global: true,\n icon: `${icons.iconBase}noun_15177.svg`,\n name: 'trustedApplications',\n label: () => null,\n render: (subject, context) => {\n const dom = context.dom\n const div = dom.createElement('div')\n div.classList.add('trusted-applications-pane')\n div.setAttribute(\n 'style',\n 'border: 0.3em solid ' +\n thisColor +\n '; border-radius: 0.5em; padding: 0.7em; margin-top:0.7em;'\n )\n const table = div.appendChild(dom.createElement('table'))\n const main = table.appendChild(dom.createElement('tr'))\n const bottom = table.appendChild(dom.createElement('tr'))\n const statusArea = bottom.appendChild(dom.createElement('div'))\n statusArea.setAttribute('style', 'padding: 0.7em;')\n render(dom, main, statusArea).catch(err => statusArea.appendChild(widgets.errorMessageBlock(dom, err)))\n return div\n }\n}\n\nasync function render (dom, main, statusArea): Promise<void> {\n const authContext = await login.ensureLoadedProfile({ dom, div: main, statusArea, me: null })\n const subject = authContext.me as NamedNode\n\n const profile = subject.doc()\n if (!store.updater) {\n throw new Error('Store has no updater')\n }\n const editable = store.updater.editable(profile.uri, store)\n\n main.appendChild(createText('h3', 'Manage your trusted applications'))\n\n if (!editable) {\n main.appendChild(\n widgets.errorMessageBlock(dom, `Your profile ${subject.doc().uri} is not editable, so we cannot do much here.`)\n )\n return\n }\n\n main.appendChild(createText('p', 'Here you can manage the applications you trust.'))\n\n const applicationsTable = createApplicationTable(subject)\n main.appendChild(applicationsTable)\n\n main.appendChild(createText('h4', 'Notes'))\n main.appendChild(\n createContainer('ol', [\n main.appendChild(\n createText(\n 'li',\n 'Trusted applications will get access to all resources that you have access to.'\n )\n ),\n main.appendChild(\n createText('li', 'You can limit which modes they have by default.')\n ),\n main.appendChild(\n createText('li', 'They will not gain more access than you have.')\n )\n ])\n )\n main.appendChild(\n createText('p', 'Application URLs must be valid URL. Examples are http://localhost:3000, https://trusted.app, and https://sub.trusted.app.')\n )\n}\n\nexport default trustedApplicationView\n"],"mappings":";;;;;;AAEA,IAAAA,QAAA,GAAAC,OAAA;AACA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ACD,WAAW,CACd,IAAAmB,+BAAU,EAAC,IAAI,EAAE,iDAAiD,CACpE,CAAC,EACDlB,IAAI,CAACD,WAAW,CACd,IAAAmB,+BAAU,EAAC,IAAI,EAAE,+CAA+C,CAClE,CAAC,CACF,CACH,CAAC;EACDlB,IAAI,CAACD,WAAW,CACd,IAAAmB,+BAAU,EAAC,GAAG,EAAE,2HAA2H,CAC7I,CAAC;AACH;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEc1C,sBAAsB","ignoreList":[]}
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var UI = _interopRequireWildcard(require("solid-ui"));
8
+ var $rdf = _interopRequireWildcard(require("rdflib"));
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
+ /* Form building/editing Pane
11
+ **
12
+ */
13
+
14
+ const ns = UI.ns;
15
+ var _default = exports.default = {
16
+ // noun_170702.svg' builder noun_122196.svg form
17
+ icon: UI.icons.iconBase + 'noun_170702.svg',
18
+ name: 'ui',
19
+ audience: [ns.solid('PowerUser')],
20
+ // Does the subject deserve this pane?
21
+ label: function (subject, context) {
22
+ const ns = UI.ns;
23
+ const kb = context.session.store;
24
+ const t = kb.findTypeURIs(subject);
25
+ if (t[ns.rdfs('Class').uri]) return 'creation forms';
26
+ // if (t[ns.rdf('Property').uri]) return "user interface";
27
+ if (t[ns.ui('Form').uri]) return 'edit form';
28
+ return null; // No under other circumstances (while testing at least!)
29
+ },
30
+ render: function (subject, context) {
31
+ const dom = context.dom;
32
+ const kb = context.session.store;
33
+ const ns = UI.ns;
34
+ const box = dom.createElement('div');
35
+ box.setAttribute('class', 'formPane'); // Share styles
36
+ const label = UI.utils.label(subject);
37
+ const mention = function complain(message, style) {
38
+ const pre = dom.createElement('p');
39
+ pre.setAttribute('style', style || 'color: grey; background-color: white');
40
+ box.appendChild(pre).textContent = message;
41
+ return pre;
42
+ };
43
+ const complain = function complain(message, style) {
44
+ mention(message, 'style', style || 'color: grey; background-color: #fdd');
45
+ };
46
+ const complainIfBad = function (ok, body) {
47
+ if (ok) {
48
+ // setModifiedDate(store, kb, store);
49
+ // rerender(box); // Deleted forms at the moment
50
+ } else complain('Sorry, failed to save your change:\n' + body);
51
+ };
52
+
53
+ // //////////////////////////////////////////////////////////////////////////////
54
+
55
+ const t = kb.findTypeURIs(subject);
56
+ let store = null;
57
+ let docuri;
58
+ if (subject.uri) {
59
+ docuri = $rdf.Util.uri.docpart(subject.uri);
60
+ if (subject.uri !== docuri && kb.updater.editable(docuri)) {
61
+ store = kb.sym($rdf.Util.uri.docpart(subject.uri));
62
+ } // an editable ontology with hash
63
+ }
64
+ if (!store) store = kb.any(kb.sym(docuri), ns.link('annotationStore'));
65
+ if (!store) store = UI.widgets.defaultAnnotationStore(subject);
66
+ if (!store) {
67
+ store = kb.sym('https://formsregistry.solid.community/public/formRegistry/'); // fallback
68
+ }
69
+ // if (!store) store = kb.sym('http://tabulator.org/wiki/ontologyAnnotation/common') // fallback
70
+
71
+ // A fallback which gives a different store page for each ontology would be good @@
72
+
73
+ let pred;
74
+ if (t[ns.rdfs('Class').uri]) {
75
+ // Stuff we can do before we load the store
76
+ }
77
+ const wait = mention('(Loading data from: ' + store + ')');
78
+ kb.fetcher.nowOrWhenFetched(store.uri, subject, function (ok, body) {
79
+ if (!ok) {
80
+ complain('Cannot load store ' + store + ' :' + body);
81
+ return;
82
+ }
83
+ box.removeChild(wait);
84
+
85
+ // Render a Class -- the forms associated with it
86
+
87
+ if (t[ns.rdfs('Class').uri]) {
88
+ // For each creation form, allow one to create a new object with it, and also to edit the form.
89
+ const displayFormsForRelation = function displayFormsForRelation(pred, allowCreation) {
90
+ const sts = kb.statementsMatching(subject, pred);
91
+ const outliner = context.getOutliner(dom);
92
+ if (sts.length) {
93
+ for (let i = 0; i < sts.length; i++) {
94
+ outliner.appendPropertyTRs(box, [sts[i]]);
95
+ const form = sts[i].object;
96
+ const cell = dom.createElement('td');
97
+ box.lastChild.appendChild(cell);
98
+ if (allowCreation) {
99
+ cell.appendChild(UI.widgets.newButton(dom, kb, null, null, subject, form, store, function (ok, body) {
100
+ if (ok) {
101
+ // dom.outlineManager.GotoSubject(newThing@@, true, undefined, true, undefined);
102
+ // rerender(box); // Deleted forms at the moment
103
+ } else {
104
+ complain('Sorry, failed to save your change:\n' + body);
105
+ }
106
+ }));
107
+ }
108
+ let formdef = kb.statementsMatching(form, ns.rdf('type'));
109
+ if (!formdef.length) formdef = kb.statementsMatching(form);
110
+ if (!formdef.length) complain('No data about form');else {
111
+ UI.widgets.editFormButton(dom, box, form, formdef[0].why, complainIfBad);
112
+ }
113
+ }
114
+ box.appendChild(dom.createElement('hr'));
115
+ } else {
116
+ mention('There are currently no known forms to make a ' + label + '.');
117
+ }
118
+ };
119
+ pred = ns.ui('creationForm');
120
+ box.appendChild(dom.createElement('h2')).textContent = UI.utils.label(pred);
121
+ mention('Creation forms allow you to add information about a new thing,' + ' in this case a new ' + label + '.');
122
+ displayFormsForRelation(pred, true);
123
+ box.appendChild(dom.createElement('hr'));
124
+ mention('You can make a new creation form:');
125
+ box.appendChild(UI.widgets.newButton(dom, kb, subject, pred, ns.ui('Form'), null, store, complainIfBad));
126
+ box.appendChild(dom.createElement('hr'));
127
+ pred = ns.ui('annotationForm');
128
+ box.appendChild(dom.createElement('h2')).textContent = UI.utils.label(pred);
129
+ mention('Annotaion forms allow you to add extra information about a ,' + label + ' we already know about.');
130
+ displayFormsForRelation(pred, false);
131
+ box.appendChild(dom.createElement('hr'));
132
+ mention('You can make a new annotation form:');
133
+ box.appendChild(UI.widgets.newButton(dom, kb, subject, pred, ns.ui('Form'), null, store, complainIfBad));
134
+ mention('(Storing new forms in: ' + store + ')');
135
+
136
+ // Render a Form
137
+ } else if (t[ns.ui('Form').uri]) {
138
+ UI.widgets.appendForm(dom, box, kb, subject, ns.ui('FormForm'), store, complainIfBad);
139
+ } else {
140
+ complain('ui/pane internal error -- Eh?');
141
+ }
142
+ }); // end: when store loded
143
+
144
+ return box;
145
+ }
146
+ }; // ends
147
+ //# sourceMappingURL=pane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pane.js","names":["UI","_interopRequireWildcard","require","$rdf","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ns","_default","exports","icon","icons","iconBase","name","audience","solid","label","subject","context","kb","session","store","findTypeURIs","rdfs","uri","ui","render","dom","box","createElement","setAttribute","utils","mention","complain","message","style","pre","appendChild","textContent","complainIfBad","ok","body","docuri","Util","docpart","updater","editable","sym","any","link","widgets","defaultAnnotationStore","pred","wait","fetcher","nowOrWhenFetched","removeChild","displayFormsForRelation","allowCreation","sts","statementsMatching","outliner","getOutliner","length","appendPropertyTRs","form","object","cell","lastChild","newButton","formdef","rdf","editFormButton","why","appendForm"],"sources":["../../src/ui/pane.js"],"sourcesContent":["/* Form building/editing Pane\n **\n */\n\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\nconst ns = UI.ns\n\nexport default {\n // noun_170702.svg' builder noun_122196.svg form\n icon: UI.icons.iconBase + 'noun_170702.svg',\n\n name: 'ui',\n\n audience: [ns.solid('PowerUser')],\n\n // Does the subject deserve this pane?\n label: function (subject, context) {\n const ns = UI.ns\n const kb = context.session.store\n const t = kb.findTypeURIs(subject)\n if (t[ns.rdfs('Class').uri]) return 'creation forms'\n // if (t[ns.rdf('Property').uri]) return \"user interface\";\n if (t[ns.ui('Form').uri]) return 'edit form'\n\n return null // No under other circumstances (while testing at least!)\n },\n\n render: function (subject, context) {\n const dom = context.dom\n const kb = context.session.store\n const ns = UI.ns\n\n const box = dom.createElement('div')\n box.setAttribute('class', 'formPane') // Share styles\n const label = UI.utils.label(subject)\n\n const mention = function complain (message, style) {\n const pre = dom.createElement('p')\n pre.setAttribute('style', style || 'color: grey; background-color: white')\n box.appendChild(pre).textContent = message\n return pre\n }\n\n const complain = function complain (message, style) {\n mention(message, 'style', style || 'color: grey; background-color: #fdd')\n }\n\n const complainIfBad = function (ok, body) {\n if (ok) {\n // setModifiedDate(store, kb, store);\n // rerender(box); // Deleted forms at the moment\n } else complain('Sorry, failed to save your change:\\n' + body)\n }\n\n // //////////////////////////////////////////////////////////////////////////////\n\n const t = kb.findTypeURIs(subject)\n\n let store = null\n let docuri\n if (subject.uri) {\n docuri = $rdf.Util.uri.docpart(subject.uri)\n if (subject.uri !== docuri && kb.updater.editable(docuri)) {\n store = kb.sym($rdf.Util.uri.docpart(subject.uri))\n } // an editable ontology with hash\n }\n if (!store) store = kb.any(kb.sym(docuri), ns.link('annotationStore'))\n if (!store) store = UI.widgets.defaultAnnotationStore(subject)\n\n if (!store) {\n store = kb.sym(\n 'https://formsregistry.solid.community/public/formRegistry/'\n ) // fallback\n }\n // if (!store) store = kb.sym('http://tabulator.org/wiki/ontologyAnnotation/common') // fallback\n\n // A fallback which gives a different store page for each ontology would be good @@\n\n let pred\n if (t[ns.rdfs('Class').uri]) {\n // Stuff we can do before we load the store\n }\n\n const wait = mention('(Loading data from: ' + store + ')')\n\n kb.fetcher.nowOrWhenFetched(store.uri, subject, function (ok, body) {\n if (!ok) {\n complain('Cannot load store ' + store + ' :' + body)\n return\n }\n box.removeChild(wait)\n\n // Render a Class -- the forms associated with it\n\n if (t[ns.rdfs('Class').uri]) {\n // For each creation form, allow one to create a new object with it, and also to edit the form.\n const displayFormsForRelation = function displayFormsForRelation (\n pred,\n allowCreation\n ) {\n const sts = kb.statementsMatching(subject, pred)\n const outliner = context.getOutliner(dom)\n if (sts.length) {\n for (let i = 0; i < sts.length; i++) {\n outliner.appendPropertyTRs(box, [sts[i]])\n const form = sts[i].object\n const cell = dom.createElement('td')\n box.lastChild.appendChild(cell)\n if (allowCreation) {\n cell.appendChild(\n UI.widgets.newButton(\n dom,\n kb,\n null,\n null,\n subject,\n form,\n store,\n function (ok, body) {\n if (ok) {\n // dom.outlineManager.GotoSubject(newThing@@, true, undefined, true, undefined);\n // rerender(box); // Deleted forms at the moment\n } else {\n complain('Sorry, failed to save your change:\\n' + body)\n }\n }\n )\n )\n }\n let formdef = kb.statementsMatching(form, ns.rdf('type'))\n if (!formdef.length) formdef = kb.statementsMatching(form)\n if (!formdef.length) complain('No data about form')\n else {\n UI.widgets.editFormButton(\n dom,\n box,\n form,\n formdef[0].why,\n complainIfBad\n )\n }\n }\n box.appendChild(dom.createElement('hr'))\n } else {\n mention(\n 'There are currently no known forms to make a ' + label + '.'\n )\n }\n }\n\n pred = ns.ui('creationForm')\n box.appendChild(dom.createElement('h2')).textContent = UI.utils.label(\n pred\n )\n mention(\n 'Creation forms allow you to add information about a new thing,' +\n ' in this case a new ' +\n label +\n '.'\n )\n displayFormsForRelation(pred, true)\n box.appendChild(dom.createElement('hr'))\n mention('You can make a new creation form:')\n box.appendChild(\n UI.widgets.newButton(\n dom,\n kb,\n subject,\n pred,\n ns.ui('Form'),\n null,\n store,\n complainIfBad\n )\n )\n\n box.appendChild(dom.createElement('hr'))\n\n pred = ns.ui('annotationForm')\n box.appendChild(dom.createElement('h2')).textContent = UI.utils.label(\n pred\n )\n mention(\n 'Annotaion forms allow you to add extra information about a ,' +\n label +\n ' we already know about.'\n )\n displayFormsForRelation(pred, false)\n box.appendChild(dom.createElement('hr'))\n mention('You can make a new annotation form:')\n box.appendChild(\n UI.widgets.newButton(\n dom,\n kb,\n subject,\n pred,\n ns.ui('Form'),\n null,\n store,\n complainIfBad\n )\n )\n\n mention('(Storing new forms in: ' + store + ')')\n\n // Render a Form\n } else if (t[ns.ui('Form').uri]) {\n UI.widgets.appendForm(\n dom,\n box,\n kb,\n subject,\n ns.ui('FormForm'),\n store,\n complainIfBad\n )\n } else {\n complain('ui/pane internal error -- Eh?')\n }\n }) // end: when store loded\n\n return box\n }\n}\n// ends\n"],"mappings":";;;;;;AAIA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,uBAAA,CAAAC,OAAA;AAA8B,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IA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,WAAW,CACbrD,EAAE,CAACkE,OAAO,CAACmB,SAAS,CAClB1C,GAAG,EACHR,EAAE,EACFF,OAAO,EACPmC,IAAI,EACJ7C,EAAE,CAACkB,EAAE,CAAC,MAAM,CAAC,EACb,IAAI,EACJJ,KAAK,EACLkB,aACF,CACF,CAAC;QAEDP,OAAO,CAAC,yBAAyB,GAAGX,KAAK,GAAG,GAAG,CAAC;;QAEhD;MACF,CAAC,MAAM,IAAIhC,CAAC,CAACkB,EAAE,CAACkB,EAAE,CAAC,MAAM,CAAC,CAACD,GAAG,CAAC,EAAE;QAC/BxC,EAAE,CAACkE,OAAO,CAACwB,UAAU,CACnB/C,GAAG,EACHC,GAAG,EACHT,EAAE,EACFF,OAAO,EACPV,EAAE,CAACkB,EAAE,CAAC,UAAU,CAAC,EACjBJ,KAAK,EACLkB,aACF,CAAC;MACH,CAAC,MAAM;QACLN,QAAQ,CAAC,+BAA+B,CAAC;MAC3C;IACF,CAAC,CAAC,EAAC;;IAEH,OAAOL,GAAG;EACZ;AACF,CAAC,EACD","ignoreList":[]}
@@ -1,31 +1,37 @@
1
- export default {
2
- buildTime: '2025-10-06T10:28:53Z',
3
- commit: '3425a37d98a0769504d555724ed50b68426f8a1e',
4
- npmInfo: {
5
- '\'solid-panes\'': '\'3.7.3\',',
6
- npm: '\'10.8.2\',',
7
- node: '\'20.19.5\',',
8
- acorn: '\'8.15.0\',',
9
- ada: '\'2.9.2\',',
10
- ares: '\'1.34.5\',',
11
- brotli: '\'1.1.0\',',
12
- cjs_module_lexer: '\'2.1.0\',',
13
- cldr: '\'47.0\',',
14
- icu: '\'77.1\',',
15
- llhttp: '\'9.3.0\',',
16
- modules: '\'115\',',
17
- napi: '\'9\',',
18
- nghttp2: '\'1.61.0\',',
19
- openssl: '\'3.0.16\',',
20
- simdutf: '\'6.4.2\',',
21
- tz: '\'2025b\',',
22
- undici: '\'6.21.2\',',
23
- unicode: '\'16.0\',',
24
- uv: '\'1.46.0\',',
25
- uvwasi: '\'0.0.21\',',
26
- v8: '\'11.3.244.8-node.30\',',
27
- zlib: '\'1.3.1-470d3a2\'',
28
- '}': '}',
29
- }
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ buildTime: '2025-11-03T12:47:46Z',
9
+ commit: '343927624872f1bfcc0dbc750fdd5b8190b72048',
10
+ npmInfo: {
11
+ '\'solid-panes\'': '\'3.7.3\',',
12
+ npm: '\'10.8.2\',',
13
+ node: '\'20.19.5\',',
14
+ acorn: '\'8.15.0\',',
15
+ ada: '\'2.9.2\',',
16
+ ares: '\'1.34.5\',',
17
+ brotli: '\'1.1.0\',',
18
+ cjs_module_lexer: '\'2.1.0\',',
19
+ cldr: '\'47.0\',',
20
+ icu: '\'77.1\',',
21
+ llhttp: '\'9.3.0\',',
22
+ modules: '\'115\',',
23
+ napi: '\'9\',',
24
+ nghttp2: '\'1.61.0\',',
25
+ openssl: '\'3.0.16\',',
26
+ simdutf: '\'6.4.2\',',
27
+ tz: '\'2025b\',',
28
+ undici: '\'6.21.2\',',
29
+ unicode: '\'16.0\',',
30
+ uv: '\'1.46.0\',',
31
+ uvwasi: '\'0.0.21\',',
32
+ v8: '\'11.3.244.8-node.30\',',
33
+ zlib: '\'1.3.1-470d3a2\'',
34
+ '}': '}'
35
+ }
30
36
  };
31
37
  //# sourceMappingURL=versionInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"versionInfo.js","sourceRoot":"","sources":["../src/versionInfo.ts"],"names":[],"mappings":"AAAA,eAAe;IACb,SAAS,EAAE,sBAAsB;IACjC,MAAM,EAAE,0CAA0C;IAClD,OAAO,EAAE;QACP,iBAAiB,EAAE,YAAY;QAC/B,GAAG,EAAE,aAAa;QAClB,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,aAAa;QACpB,GAAG,EAAE,YAAY;QACjB,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,YAAY;QACpB,gBAAgB,EAAE,YAAY;QAC9B,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,WAAW;QAChB,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,aAAa;QACtB,OAAO,EAAE,YAAY;QACrB,EAAE,EAAE,YAAY;QAChB,MAAM,EAAE,aAAa;QACrB,OAAO,EAAE,WAAW;QACpB,EAAE,EAAE,aAAa;QACjB,MAAM,EAAE,aAAa;QACrB,EAAE,EAAE,yBAAyB;QAC7B,IAAI,EAAE,mBAAmB;QACzB,GAAG,EAAE,GAAG;KACT;CACF,CAAA"}
1
+ {"version":3,"file":"versionInfo.js","names":["buildTime","commit","npmInfo","npm","node","acorn","ada","ares","brotli","cjs_module_lexer","cldr","icu","llhttp","modules","napi","nghttp2","openssl","simdutf","tz","undici","unicode","uv","uvwasi","v8","zlib"],"sources":["../src/versionInfo.ts"],"sourcesContent":["export default {\n buildTime: '2025-11-03T12:47:46Z',\n commit: '343927624872f1bfcc0dbc750fdd5b8190b72048',\n npmInfo: {\n '\\'solid-panes\\'': '\\'3.7.3\\',',\n npm: '\\'10.8.2\\',',\n node: '\\'20.19.5\\',',\n acorn: '\\'8.15.0\\',',\n ada: '\\'2.9.2\\',',\n ares: '\\'1.34.5\\',',\n brotli: '\\'1.1.0\\',',\n cjs_module_lexer: '\\'2.1.0\\',',\n cldr: '\\'47.0\\',',\n icu: '\\'77.1\\',',\n llhttp: '\\'9.3.0\\',',\n modules: '\\'115\\',',\n napi: '\\'9\\',',\n nghttp2: '\\'1.61.0\\',',\n openssl: '\\'3.0.16\\',',\n simdutf: '\\'6.4.2\\',',\n tz: '\\'2025b\\',',\n undici: '\\'6.21.2\\',',\n unicode: '\\'16.0\\',',\n uv: '\\'1.46.0\\',',\n uvwasi: '\\'0.0.21\\',',\n v8: '\\'11.3.244.8-node.30\\',',\n zlib: '\\'1.3.1-470d3a2\\'',\n '}': '}',\n }\n}\n"],"mappings":";;;;;;iCAAe;EACbA,SAAS,EAAE,sBAAsB;EACjCC,MAAM,EAAE,0CAA0C;EAClDC,OAAO,EAAE;IACP,iBAAiB,EAAE,YAAY;IAC/BC,GAAG,EAAE,aAAa;IAClBC,IAAI,EAAE,cAAc;IACpBC,KAAK,EAAE,aAAa;IACpBC,GAAG,EAAE,YAAY;IACjBC,IAAI,EAAE,aAAa;IACnBC,MAAM,EAAE,YAAY;IACpBC,gBAAgB,EAAE,YAAY;IAC9BC,IAAI,EAAE,WAAW;IACjBC,GAAG,EAAE,WAAW;IAChBC,MAAM,EAAE,YAAY;IACpBC,OAAO,EAAE,UAAU;IACnBC,IAAI,EAAE,QAAQ;IACdC,OAAO,EAAE,aAAa;IACtBC,OAAO,EAAE,aAAa;IACtBC,OAAO,EAAE,YAAY;IACrBC,EAAE,EAAE,YAAY;IAChBC,MAAM,EAAE,aAAa;IACrBC,OAAO,EAAE,WAAW;IACpBC,EAAE,EAAE,aAAa;IACjBC,MAAM,EAAE,aAAa;IACrBC,EAAE,EAAE,yBAAyB;IAC7BC,IAAI,EAAE,mBAAmB;IACzB,GAAG,EAAE;EACP;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var UI = _interopRequireWildcard(require("solid-ui"));
8
+ var $rdf = _interopRequireWildcard(require("rdflib"));
9
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
10
+ /* Single video play Pane
11
+ **
12
+ */
13
+ var _default = exports.default = {
14
+ icon: UI.icons.iconBase + 'noun_1619.svg',
15
+ name: 'video',
16
+ // Does the subject deserve an slideshow pane?
17
+ label: function (subject, context) {
18
+ const kb = context.session.store;
19
+ const typeURIs = kb.findTypeURIs(subject);
20
+ const prefix = $rdf.Util.mediaTypeClass('video/*').uri.split('*')[0];
21
+ for (const t in typeURIs) {
22
+ if (t.startsWith(prefix)) return 'Play video';
23
+ }
24
+ return null;
25
+ },
26
+ render: function (subject, context) {
27
+ const kb = context.session.store;
28
+ const dom = context.dom;
29
+ const div = dom.createElement('div');
30
+ const video = div.appendChild(dom.createElement('video'));
31
+ video.setAttribute('controls', 'yes');
32
+ // get video with authenticated fetch
33
+ kb.fetcher._fetch(subject.uri).then(function (response) {
34
+ return response.blob();
35
+ }).then(function (myBlob) {
36
+ const objectURL = URL.createObjectURL(myBlob);
37
+ video.setAttribute('src', objectURL); // w640 h480 //
38
+ });
39
+ video.setAttribute('width', '100%');
40
+ return div;
41
+ }
42
+ }; // ends
43
+ //# sourceMappingURL=videoPane.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"videoPane.js","names":["UI","_interopRequireWildcard","require","$rdf","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","_default","exports","icon","icons","iconBase","name","label","subject","context","kb","session","store","typeURIs","findTypeURIs","prefix","Util","mediaTypeClass","uri","split","startsWith","render","dom","div","createElement","video","appendChild","setAttribute","fetcher","_fetch","then","response","blob","myBlob","objectURL","URL","createObjectURL"],"sources":["../../src/video/videoPane.js"],"sourcesContent":["/* Single video play Pane\n **\n */\nimport * as UI from 'solid-ui'\nimport * as $rdf from 'rdflib'\n\nexport default {\n icon: UI.icons.iconBase + 'noun_1619.svg',\n\n name: 'video',\n\n // Does the subject deserve an slideshow pane?\n label: function (subject, context) {\n const kb = context.session.store\n const typeURIs = kb.findTypeURIs(subject)\n const prefix = $rdf.Util.mediaTypeClass('video/*').uri.split('*')[0]\n for (const t in typeURIs) {\n if (t.startsWith(prefix)) return 'Play video'\n }\n\n return null\n },\n\n render: function (subject, context) {\n const kb = context.session.store\n const dom = context.dom\n const div = dom.createElement('div')\n const video = div.appendChild(dom.createElement('video'))\n video.setAttribute('controls', 'yes')\n // get video with authenticated fetch\n kb.fetcher._fetch(subject.uri)\n .then(function (response) {\n return response.blob()\n })\n .then(function (myBlob) {\n const objectURL = URL.createObjectURL(myBlob)\n video.setAttribute('src', objectURL) // w640 h480 //\n })\n\n video.setAttribute('width', '100%')\n return div\n }\n}\n// ends\n"],"mappings":";;;;;;AAGA,IAAAA,EAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,IAAA,GAAAF,uBAAA,CAAAC,OAAA;AAA8B,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA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AAK,CAACE,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC;IACrC;IACAjB,EAAE,CAACkB,OAAO,CAACC,MAAM,CAACrB,OAAO,CAACU,GAAG,CAAC,CAC3BY,IAAI,CAAC,UAAUC,QAAQ,EAAE;MACxB,OAAOA,QAAQ,CAACC,IAAI,CAAC,CAAC;IACxB,CAAC,CAAC,CACDF,IAAI,CAAC,UAAUG,MAAM,EAAE;MACtB,MAAMC,SAAS,GAAGC,GAAG,CAACC,eAAe,CAACH,MAAM,CAAC;MAC7CR,KAAK,CAACE,YAAY,CAAC,KAAK,EAAEO,SAAS,CAAC,EAAC;IACvC,CAAC,CAAC;IAEJT,KAAK,CAACE,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC;IACnC,OAAOJ,GAAG;EACZ;AACF,CAAC,EACD","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "solid-panes",
3
- "version": "3.7.3-3425a37d",
3
+ "version": "3.7.3-34392762",
4
4
  "description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,14 +11,15 @@
11
11
  "LICENSE"
12
12
  ],
13
13
  "scripts": {
14
- "clean": "rm -rf dist dist-dev src/versionInfo.ts",
14
+ "clean": "rm -rf dist src/versionInfo.ts",
15
15
  "build": "npm run clean && npm run build-version && npm run build-js && npm run postbuild-js",
16
16
  "build-version": "./timestamp.sh > src/versionInfo.ts && eslint 'src/versionInfo.ts' --fix",
17
- "build-form": "(cd src/schedule/ && make)",
18
- "build-js": "npm run build-form && tsc",
17
+ "build-js": "npm run build-types && npm run build-babel",
18
+ "build-types": "tsc --emitDeclarationOnly",
19
+ "build-babel": "babel src --out-dir dist --extensions '.ts,.js' --source-maps",
19
20
  "postbuild-js": "rm -f dist/versionInfo.d.ts dist/versionInfo.d.ts.map",
20
- "build-dev": "webpack --progress --mode=development",
21
21
  "lint": "eslint",
22
+ "lint-fix": "eslint --fix",
22
23
  "typecheck": "tsc --noEmit",
23
24
  "typecheck-test": "tsc --noEmit -p tsconfig.test.json",
24
25
  "test": "jest --no-coverage",
@@ -29,7 +30,8 @@
29
30
  "preversion": "npm run lint && npm run typecheck && npm test",
30
31
  "postversion": "git push origin main --follow-tags",
31
32
  "watch": "npm run build-version && babel src -d dist --source-maps --extensions '.ts,.js' --watch",
32
- "start": "npm install && npm run build-version && npx webpack serve --open"
33
+ "start": "webpack serve --config webpack.dev.config.js --open"
34
+
33
35
  },
34
36
  "repository": {
35
37
  "type": "git",
package/dist/types.d.ts DELETED
@@ -1,30 +0,0 @@
1
- interface SolidAuthorization {
2
- access_token: string;
3
- client_id: string;
4
- id_token: string;
5
- }
6
- interface SolidClaim {
7
- at_hash: string;
8
- aud: string;
9
- azp: string;
10
- cnf: {
11
- jwk: string;
12
- };
13
- exp: number;
14
- iat: number;
15
- iss: string;
16
- jti: string;
17
- nonce: string;
18
- sub: string;
19
- }
20
- export interface SolidSession {
21
- authorization: SolidAuthorization;
22
- credentialType: string;
23
- idClaims: SolidClaim;
24
- idp: string;
25
- issuer: string;
26
- sessionKey: string;
27
- webId: string;
28
- }
29
- export {};
30
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,UAAU,kBAAkB;IAE1B,YAAY,EAAE,MAAM,CAAA;IAEpB,SAAS,EAAE,MAAM,CAAA;IAEjB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,UAAU,UAAU;IAElB,OAAO,EAAE,MAAM,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE;QACH,GAAG,EAAE,MAAM,CAAA;KACZ,CAAA;IACD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,kBAAkB,CAAA;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,QAAQ,EAAE,UAAU,CAAA;IACpB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd"}
package/dist/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
package/dist/types.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}