solid-ui 2.6.1-6458d4e → 2.6.1-65e2e88
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/README.md +2 -2
- package/dist/index.d.ts +4 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/solid-ui.esm.js +9 -16
- package/dist/solid-ui.esm.js.map +1 -1
- package/dist/solid-ui.esm.min.js +3 -3
- package/dist/solid-ui.esm.min.js.map +1 -1
- package/dist/solid-ui.js +8 -18
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +8 -8
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/versionInfo.js +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ All bundels, DO NOT bundle rdflin and solid-logic. These need to be provided sep
|
|
|
46
46
|
|
|
47
47
|
```html
|
|
48
48
|
<!-- Load dependencies first -->
|
|
49
|
-
<script src="https://
|
|
49
|
+
<script src="https://cdn.jsdelivr.net/npm/rdflib/dist/rdflib.min.js"></script>
|
|
50
50
|
<!-- or -->
|
|
51
51
|
<!-- script src="https://cdn.jsdelivr.net/npm/rdflib/dist/rdflib.min.js"></script -->
|
|
52
52
|
<script src="https://unpkg.com/solid-logic/dist/solid-logic.min.js"></script>
|
|
@@ -98,7 +98,7 @@ or
|
|
|
98
98
|
</script>
|
|
99
99
|
<script type="module">
|
|
100
100
|
import * as $rdf from 'rdflib'
|
|
101
|
-
import { store } from '
|
|
101
|
+
import { store } from 'solid-logic'
|
|
102
102
|
import { widgets } from 'solid-ui'
|
|
103
103
|
|
|
104
104
|
// Example usage
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Provides a Solid client helper object (which exposes various static modules).
|
|
3
|
-
* @module
|
|
4
|
-
* @main
|
|
3
|
+
* @module UI.js
|
|
4
|
+
* @main UI.js
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* @class
|
|
7
|
+
* @class UI
|
|
8
8
|
* @static
|
|
9
9
|
*/
|
|
10
|
-
import * as rdf from 'rdflib';
|
|
11
10
|
import ns from './ns';
|
|
12
11
|
import { acl, aclControl } from './acl/index';
|
|
13
12
|
import { create } from './create/index';
|
|
@@ -30,8 +29,7 @@ import * as widgets from './widgets/index';
|
|
|
30
29
|
import { initHeader } from './header';
|
|
31
30
|
import { initFooter } from './footer';
|
|
32
31
|
import * as createTypes from './create/types';
|
|
33
|
-
import { authn, store } from 'solid-logic';
|
|
34
32
|
declare const dom: Document | null;
|
|
35
|
-
export {
|
|
33
|
+
export { ns, acl, aclControl, create, createTypes, dom, icons, language, log, login, matrix, media, messageArea, infiniteMessageArea, pad, participation, preferences, style, table, tabs, utils, widgets, initHeader, initFooter };
|
|
36
34
|
export type { CreateContext, NewAppInstanceOptions } from './create/types';
|
|
37
35
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2BA;;;;GAIG;AAEH;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA2BA;;;;GAIG;AAEH;;;GAGG;AAIH,OAAO,EAAE,MAAM,MAAM,CAAA;AACrB,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,KAAK,QAAQ,MAAM,uCAAuC,CAAA;AACjE,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAErD,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAE5B,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAA;AAEhD,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,OAAO,EAAE,mBAAmB,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AACtC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAA;AAE7C,QAAA,MAAM,GAAG,iBAAkC,CAAA;AAgC3C,OAAO,EACL,EAAE,EACF,GAAG,EACH,UAAU,EACV,MAAM,EACN,WAAW,EACX,GAAG,EACH,KAAK,EACL,QAAQ,EACR,GAAG,EACH,KAAK,EACL,MAAM,EACN,KAAK,EACL,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,aAAa,EACb,WAAW,EACX,KAAK,EACL,KAAK,EACL,IAAI,EACJ,KAAK,EACL,OAAO,EACP,UAAU,EACV,UAAU,EACX,CAAA;AAED,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -62,19 +62,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
62
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
63
63
|
};
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
|
-
exports.initFooter = exports.initHeader = exports.widgets = exports.utils = exports.tabs = exports.table = exports.style = exports.preferences = exports.participation = exports.pad = exports.infiniteMessageArea = exports.messageArea = exports.media = exports.matrix = exports.login = exports.log = exports.language = exports.icons = exports.dom = exports.createTypes = exports.create = exports.aclControl = exports.acl = exports.
|
|
65
|
+
exports.initFooter = exports.initHeader = exports.widgets = exports.utils = exports.tabs = exports.table = exports.style = exports.preferences = exports.participation = exports.pad = exports.infiniteMessageArea = exports.messageArea = exports.media = exports.matrix = exports.login = exports.log = exports.language = exports.icons = exports.dom = exports.createTypes = exports.create = exports.aclControl = exports.acl = exports.ns = void 0;
|
|
66
66
|
/**
|
|
67
67
|
* Provides a Solid client helper object (which exposes various static modules).
|
|
68
|
-
* @module
|
|
69
|
-
* @main
|
|
68
|
+
* @module UI.js
|
|
69
|
+
* @main UI.js
|
|
70
70
|
*/
|
|
71
71
|
/**
|
|
72
|
-
* @class
|
|
72
|
+
* @class UI
|
|
73
73
|
* @static
|
|
74
74
|
*/
|
|
75
75
|
// REMOVE @ts-ignore as you migrate files to TypeScript
|
|
76
|
-
const rdf = __importStar(require("rdflib")); // pull in first avoid cross-refs
|
|
77
|
-
exports.rdf = rdf;
|
|
78
76
|
// @ts-ignore
|
|
79
77
|
const ns_1 = __importDefault(require("./ns"));
|
|
80
78
|
exports.ns = ns_1.default;
|
|
@@ -130,18 +128,12 @@ const footer_1 = require("./footer");
|
|
|
130
128
|
Object.defineProperty(exports, "initFooter", { enumerable: true, get: function () { return footer_1.initFooter; } });
|
|
131
129
|
const createTypes = __importStar(require("./create/types"));
|
|
132
130
|
exports.createTypes = createTypes;
|
|
133
|
-
const solid_logic_1 = require("solid-logic");
|
|
134
|
-
Object.defineProperty(exports, "authn", { enumerable: true, get: function () { return solid_logic_1.authn; } });
|
|
135
|
-
Object.defineProperty(exports, "store", { enumerable: true, get: function () { return solid_logic_1.store; } });
|
|
136
131
|
const dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
|
|
137
132
|
exports.dom = dom;
|
|
138
133
|
if (typeof window !== 'undefined') {
|
|
139
134
|
;
|
|
140
135
|
window.UI = {
|
|
141
|
-
authn: solid_logic_1.authn,
|
|
142
|
-
store: solid_logic_1.store,
|
|
143
136
|
ns: ns_1.default,
|
|
144
|
-
rdf,
|
|
145
137
|
acl: index_1.acl,
|
|
146
138
|
aclControl: index_1.aclControl,
|
|
147
139
|
create: index_2.create,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;EAyBE;AACF,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACZ;;;;GAIG;AAEH;;;GAGG;AAEH,uDAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;EAyBE;AACF,YAAY,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACZ;;;;GAIG;AAEH;;;GAGG;AAEH,uDAAuD;AACvD,aAAa;AACb,8CAAqB;AAiEnB,aAjEK,YAAE,CAiEL;AAhEJ,uCAA6C;AAiE3C,oFAjEO,WAAG,OAiEP;AACH,2FAlEY,kBAAU,OAkEZ;AAjEZ,0CAAuC;AAkErC,uFAlEO,cAAM,OAkEP;AAjER,aAAa;AACb,yCAAkC;AAmEhC,sFAnEO,gBAAK,OAmEP;AAlEP,gFAAiE;AAmE/D,4BAAQ;AAlEV,2CAA4B;AAmE1B,kBAAG;AAlEL,0CAAuC;AAoErC,uFApEO,cAAM,OAoEP;AAnER,yCAAqC;AAoEnC,sFApEO,aAAK,OAoEP;AAnEP,aAAa;AACb,+CAA2C;AAmEzC,4FAnEO,yBAAW,OAmEP;AAlEb,aA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;AACzC,CAAC"}
|
package/dist/solid-ui.esm.js
CHANGED
|
@@ -1269,11 +1269,11 @@ __webpack_require__.d(tabs_namespaceObject, {
|
|
|
1269
1269
|
var types_namespaceObject = {};
|
|
1270
1270
|
__webpack_require__.r(types_namespaceObject);
|
|
1271
1271
|
|
|
1272
|
-
;// external "$rdf"
|
|
1273
|
-
const external_$rdf_namespaceObject = __WEBPACK_EXTERNAL_MODULE_$rdf__;
|
|
1274
1272
|
// EXTERNAL MODULE: ./node_modules/solid-namespace/index.js
|
|
1275
1273
|
var solid_namespace = __webpack_require__(386);
|
|
1276
1274
|
var solid_namespace_default = /*#__PURE__*/__webpack_require__.n(solid_namespace);
|
|
1275
|
+
;// external "$rdf"
|
|
1276
|
+
const external_$rdf_namespaceObject = __WEBPACK_EXTERNAL_MODULE_$rdf__;
|
|
1277
1277
|
;// ./src/ns.js
|
|
1278
1278
|
// Namespaces we commonly use and have common prefixes for around Solid
|
|
1279
1279
|
|
|
@@ -20038,13 +20038,11 @@ var bookmarks_UI = {
|
|
|
20038
20038
|
ns: src_ns,
|
|
20039
20039
|
media: media,
|
|
20040
20040
|
pad: pad_namespaceObject,
|
|
20041
|
-
rdf: external_$rdf_namespaceObject,
|
|
20042
20041
|
style: style,
|
|
20043
20042
|
utils: utils_namespaceObject,
|
|
20044
20043
|
widgets: widgets_namespaceObject
|
|
20045
20044
|
};
|
|
20046
|
-
var
|
|
20047
|
-
var BOOK = bookmarks_$rdf.Namespace('http://www.w3.org/2002/01/bookmark#');
|
|
20045
|
+
var BOOK = external_$rdf_namespaceObject.Namespace('http://www.w3.org/2002/01/bookmark#');
|
|
20048
20046
|
var BOOKMARK_ICON = 'noun_45961.svg';
|
|
20049
20047
|
var label = label_label;
|
|
20050
20048
|
var dom = window.document || null;
|
|
@@ -20101,7 +20099,7 @@ function _findBookmarkDocument() {
|
|
|
20101
20099
|
break;
|
|
20102
20100
|
}
|
|
20103
20101
|
// publicProfile or preferencesFile
|
|
20104
|
-
newBookmarkFile =
|
|
20102
|
+
newBookmarkFile = external_$rdf_namespaceObject.sym(userContext.publicProfile.dir().uri + fileTail);
|
|
20105
20103
|
_context.prev = 3;
|
|
20106
20104
|
src_debug/* log */.Rm('Creating new bookmark file ' + newBookmarkFile);
|
|
20107
20105
|
_context.next = 4;
|
|
@@ -20166,7 +20164,7 @@ function _addBookmark() {
|
|
|
20166
20164
|
title = label(author) + ': ' + __WEBPACK_EXTERNAL_MODULE_SolidLogic_store__.anyValue(target, src_ns.sioc('content')).slice(0, 80); // @@ add chat title too?
|
|
20167
20165
|
bookmarkDoc = context.bookmarkDocument;
|
|
20168
20166
|
bookmark = bookmarks_UI.widgets.newThing(bookmarkDoc, title);
|
|
20169
|
-
ins = [
|
|
20167
|
+
ins = [external_$rdf_namespaceObject.st(bookmarkDoc, bookmarks_UI.ns.dct('references'), bookmark, bookmarkDoc), external_$rdf_namespaceObject.st(bookmark, bookmarks_UI.ns.rdf('type'), BOOK('Bookmark'), bookmarkDoc), external_$rdf_namespaceObject.st(bookmark, bookmarks_UI.ns.dct('created'), new Date(), bookmarkDoc), external_$rdf_namespaceObject.st(bookmark, BOOK('recalls'), target, bookmarkDoc), external_$rdf_namespaceObject.st(bookmark, bookmarks_UI.ns.foaf('maker'), me, bookmarkDoc), external_$rdf_namespaceObject.st(bookmark, bookmarks_UI.ns.dct('title'), title, bookmarkDoc)];
|
|
20170
20168
|
_context2.prev = 2;
|
|
20171
20169
|
_context2.next = 3;
|
|
20172
20170
|
return updatePromise([], ins);
|
|
@@ -25461,17 +25459,16 @@ https://github.com/solidos/solid
|
|
|
25461
25459
|
|
|
25462
25460
|
/**
|
|
25463
25461
|
* Provides a Solid client helper object (which exposes various static modules).
|
|
25464
|
-
* @module
|
|
25465
|
-
* @main
|
|
25462
|
+
* @module UI.js
|
|
25463
|
+
* @main UI.js
|
|
25466
25464
|
*/
|
|
25467
25465
|
|
|
25468
25466
|
/**
|
|
25469
|
-
* @class
|
|
25467
|
+
* @class UI
|
|
25470
25468
|
* @static
|
|
25471
25469
|
*/
|
|
25472
25470
|
|
|
25473
25471
|
// REMOVE @ts-ignore as you migrate files to TypeScript
|
|
25474
|
-
// pull in first avoid cross-refs
|
|
25475
25472
|
// @ts-ignore
|
|
25476
25473
|
|
|
25477
25474
|
|
|
@@ -25504,16 +25501,12 @@ https://github.com/solidos/solid
|
|
|
25504
25501
|
|
|
25505
25502
|
|
|
25506
25503
|
|
|
25507
|
-
|
|
25508
25504
|
var src_dom = window ? window.document : null; // Idea that UI.dom can be adapted in non-browser environments
|
|
25509
25505
|
|
|
25510
25506
|
if (typeof window !== 'undefined') {
|
|
25511
25507
|
;
|
|
25512
25508
|
window.UI = {
|
|
25513
|
-
authn: __WEBPACK_EXTERNAL_MODULE_SolidLogic_authn__,
|
|
25514
|
-
store: __WEBPACK_EXTERNAL_MODULE_SolidLogic_store__,
|
|
25515
25509
|
ns: src_ns,
|
|
25516
|
-
rdf: external_$rdf_namespaceObject,
|
|
25517
25510
|
acl: acl,
|
|
25518
25511
|
aclControl: aclControl,
|
|
25519
25512
|
create: create,
|
|
@@ -25543,7 +25536,7 @@ if (typeof window !== 'undefined') {
|
|
|
25543
25536
|
// this variables are directly used in the storybook
|
|
25544
25537
|
|
|
25545
25538
|
// uses in solid-panes
|
|
25546
|
-
export { acl, aclControl,
|
|
25539
|
+
export { acl, aclControl, create, types_namespaceObject as createTypes, src_dom as dom, infiniteMessageArea, initFooter, initHeader, language_namespaceObject as language, log_namespaceObject as log, login_namespaceObject as login, matrix, media, messageArea, src_ns as ns, pad_namespaceObject as pad, participation_namespaceObject as participation, preferences_namespaceObject as preferences, style, renderTableViewPane as table, tabs_namespaceObject as tabs, utils_namespaceObject as utils, widgets_namespaceObject as widgets };
|
|
25547
25540
|
export const icons = iconBase/* icons */.Pt;
|
|
25548
25541
|
|
|
25549
25542
|
//# sourceMappingURL=solid-ui.esm.js.map
|