piral-ext 1.0.0-pre.2217 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/esm/create.js +2 -3
- package/esm/create.js.map +1 -1
- package/esm/types.d.ts +6 -6
- package/lib/create.js +14 -15
- package/lib/create.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/libs.js +1 -1
- package/lib/types.d.ts +6 -6
- package/package.json +30 -12
- package/src/types.ts +6 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
[](https://piral.io)
|
2
2
|
|
3
|
-
# [Piral Ext](https://piral.io) · [](https://github.com/smapiot/piral/blob/
|
3
|
+
# [Piral Ext](https://piral.io) · [](https://github.com/smapiot/piral/blob/main/LICENSE) [](https://www.npmjs.com/package/piral-ext) [](https://jestjs.io) [](https://gitter.im/piral-io/community)
|
4
4
|
|
5
5
|
This is a package that consists of a set of standard plugins. The package only has a peer dependency to `piral-core`.
|
6
6
|
|
@@ -19,7 +19,7 @@ For more details on the individual libraries please visit their own dedicated RE
|
|
19
19
|
|
20
20
|
## Documentation
|
21
21
|
|
22
|
-
For details on the provided API check out the [documentation of the individual plugins at the Piral website](https://docs.piral.io) or [on GitHub](https://github.com/smapiot/piral/tree/
|
22
|
+
For details on the provided API check out the [documentation of the individual plugins at the Piral website](https://docs.piral.io) or [on GitHub](https://github.com/smapiot/piral/tree/main/docs).
|
23
23
|
|
24
24
|
## License
|
25
25
|
|
package/esm/create.js
CHANGED
@@ -8,9 +8,8 @@ import { createFeedsApi } from 'piral-feeds';
|
|
8
8
|
* Creates an array including all standard APIs from piral-ext.
|
9
9
|
* @param settings Customizes the standard plugin settings.
|
10
10
|
*/
|
11
|
-
export function createStandardApi(settings) {
|
12
|
-
|
13
|
-
var _a = settings.locale, locale = _a === void 0 ? undefined : _a, _b = settings.dashboard, dashboard = _b === void 0 ? undefined : _b, _c = settings.menu, menu = _c === void 0 ? undefined : _c, _d = settings.notifications, notifications = _d === void 0 ? undefined : _d, _e = settings.modals, modals = _e === void 0 ? undefined : _e, _f = settings.feeds, feeds = _f === void 0 ? undefined : _f;
|
11
|
+
export function createStandardApi(settings = {}) {
|
12
|
+
const { locale = undefined, dashboard = undefined, menu = undefined, notifications = undefined, modals = undefined, feeds = undefined, } = settings;
|
14
13
|
return [
|
15
14
|
locale !== false && createLocaleApi(locale),
|
16
15
|
dashboard !== false && createDashboardApi(dashboard),
|
package/esm/create.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,WAA6B,EAAE;IAC/D,MAAM,EACJ,MAAM,GAAG,SAAS,EAClB,SAAS,GAAG,SAAS,EACrB,IAAI,GAAG,SAAS,EAChB,aAAa,GAAG,SAAS,EACzB,MAAM,GAAG,SAAS,EAClB,KAAK,GAAG,SAAS,GAClB,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,SAAS,KAAK,KAAK,IAAI,kBAAkB,CAAC,SAAS,CAAC;QACpD,IAAI,KAAK,KAAK,IAAI,aAAa,CAAC,IAAI,CAAC;QACrC,aAAa,KAAK,KAAK,IAAI,sBAAsB,CAAC,aAAa,CAAC;QAChE,MAAM,KAAK,KAAK,IAAI,eAAe,CAAC,MAAM,CAAC;QAC3C,KAAK,KAAK,KAAK,IAAI,cAAc,CAAC,KAAK,CAAC;KACzC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC"}
|
package/esm/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Localizable } from 'piral-translate';
|
2
|
-
import { DashboardConfig } from 'piral-dashboard';
|
3
|
-
import { MenuConfig } from 'piral-menu';
|
4
|
-
import { NotificationsConfig } from 'piral-notifications';
|
5
|
-
import { ModalsConfig } from 'piral-modals';
|
6
|
-
import { FeedsConfig } from 'piral-feeds';
|
1
|
+
import type { Localizable } from 'piral-translate';
|
2
|
+
import type { DashboardConfig } from 'piral-dashboard';
|
3
|
+
import type { MenuConfig } from 'piral-menu';
|
4
|
+
import type { NotificationsConfig } from 'piral-notifications';
|
5
|
+
import type { ModalsConfig } from 'piral-modals';
|
6
|
+
import type { FeedsConfig } from 'piral-feeds';
|
7
7
|
export interface PiralExtSettings {
|
8
8
|
/**
|
9
9
|
* Customizes the locale config.
|
package/lib/create.js
CHANGED
@@ -1,26 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.createStandardApi = void 0;
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
const piral_translate_1 = require("piral-translate");
|
5
|
+
const piral_dashboard_1 = require("piral-dashboard");
|
6
|
+
const piral_menu_1 = require("piral-menu");
|
7
|
+
const piral_notifications_1 = require("piral-notifications");
|
8
|
+
const piral_modals_1 = require("piral-modals");
|
9
|
+
const piral_feeds_1 = require("piral-feeds");
|
10
10
|
/**
|
11
11
|
* Creates an array including all standard APIs from piral-ext.
|
12
12
|
* @param settings Customizes the standard plugin settings.
|
13
13
|
*/
|
14
|
-
function createStandardApi(settings) {
|
15
|
-
|
16
|
-
var _a = settings.locale, locale = _a === void 0 ? undefined : _a, _b = settings.dashboard, dashboard = _b === void 0 ? undefined : _b, _c = settings.menu, menu = _c === void 0 ? undefined : _c, _d = settings.notifications, notifications = _d === void 0 ? undefined : _d, _e = settings.modals, modals = _e === void 0 ? undefined : _e, _f = settings.feeds, feeds = _f === void 0 ? undefined : _f;
|
14
|
+
function createStandardApi(settings = {}) {
|
15
|
+
const { locale = undefined, dashboard = undefined, menu = undefined, notifications = undefined, modals = undefined, feeds = undefined, } = settings;
|
17
16
|
return [
|
18
|
-
locale !== false && piral_translate_1.createLocaleApi(locale),
|
19
|
-
dashboard !== false && piral_dashboard_1.createDashboardApi(dashboard),
|
20
|
-
menu !== false && piral_menu_1.createMenuApi(menu),
|
21
|
-
notifications !== false && piral_notifications_1.createNotificationsApi(notifications),
|
22
|
-
modals !== false && piral_modals_1.createModalsApi(modals),
|
23
|
-
feeds !== false && piral_feeds_1.createFeedsApi(feeds),
|
17
|
+
locale !== false && (0, piral_translate_1.createLocaleApi)(locale),
|
18
|
+
dashboard !== false && (0, piral_dashboard_1.createDashboardApi)(dashboard),
|
19
|
+
menu !== false && (0, piral_menu_1.createMenuApi)(menu),
|
20
|
+
notifications !== false && (0, piral_notifications_1.createNotificationsApi)(notifications),
|
21
|
+
modals !== false && (0, piral_modals_1.createModalsApi)(modals),
|
22
|
+
feeds !== false && (0, piral_feeds_1.createFeedsApi)(feeds),
|
24
23
|
].filter(Boolean);
|
25
24
|
}
|
26
25
|
exports.createStandardApi = createStandardApi;
|
package/lib/create.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":";;;AAAA,
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../src/create.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAClD,qDAAqD;AACrD,2CAA2C;AAC3C,6DAA6D;AAC7D,+CAA+C;AAC/C,6CAA6C;AAG7C;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,WAA6B,EAAE;IAC/D,MAAM,EACJ,MAAM,GAAG,SAAS,EAClB,SAAS,GAAG,SAAS,EACrB,IAAI,GAAG,SAAS,EAChB,aAAa,GAAG,SAAS,EACzB,MAAM,GAAG,SAAS,EAClB,KAAK,GAAG,SAAS,GAClB,GAAG,QAAQ,CAAC;IAEb,OAAO;QACL,MAAM,KAAK,KAAK,IAAI,IAAA,iCAAe,EAAC,MAAM,CAAC;QAC3C,SAAS,KAAK,KAAK,IAAI,IAAA,oCAAkB,EAAC,SAAS,CAAC;QACpD,IAAI,KAAK,KAAK,IAAI,IAAA,0BAAa,EAAC,IAAI,CAAC;QACrC,aAAa,KAAK,KAAK,IAAI,IAAA,4CAAsB,EAAC,aAAa,CAAC;QAChE,MAAM,KAAK,KAAK,IAAI,IAAA,8BAAe,EAAC,MAAM,CAAC;QAC3C,KAAK,KAAK,KAAK,IAAI,IAAA,4BAAc,EAAC,KAAK,CAAC;KACzC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AACpB,CAAC;AAlBD,8CAkBC"}
|
package/lib/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
3
|
+
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./create"), exports);
|
5
5
|
tslib_1.__exportStar(require("./libs"), exports);
|
6
6
|
tslib_1.__exportStar(require("./types"), exports);
|
package/lib/libs.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
|
3
|
+
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("piral-translate"), exports);
|
5
5
|
tslib_1.__exportStar(require("piral-dashboard"), exports);
|
6
6
|
tslib_1.__exportStar(require("piral-feeds"), exports);
|
package/lib/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Localizable } from 'piral-translate';
|
2
|
-
import { DashboardConfig } from 'piral-dashboard';
|
3
|
-
import { MenuConfig } from 'piral-menu';
|
4
|
-
import { NotificationsConfig } from 'piral-notifications';
|
5
|
-
import { ModalsConfig } from 'piral-modals';
|
6
|
-
import { FeedsConfig } from 'piral-feeds';
|
1
|
+
import type { Localizable } from 'piral-translate';
|
2
|
+
import type { DashboardConfig } from 'piral-dashboard';
|
3
|
+
import type { MenuConfig } from 'piral-menu';
|
4
|
+
import type { NotificationsConfig } from 'piral-notifications';
|
5
|
+
import type { ModalsConfig } from 'piral-modals';
|
6
|
+
import type { FeedsConfig } from 'piral-feeds';
|
7
7
|
export interface PiralExtSettings {
|
8
8
|
/**
|
9
9
|
* Customizes the locale config.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "piral-ext",
|
3
|
-
"version": "1.0.0
|
3
|
+
"version": "1.0.0",
|
4
4
|
"description": "Set of standard plugins with component definitions for extending piral-core.",
|
5
5
|
"keywords": [
|
6
6
|
"piral",
|
@@ -19,6 +19,23 @@
|
|
19
19
|
"module": "esm/index.js",
|
20
20
|
"main": "lib/index.js",
|
21
21
|
"typings": "lib/index.d.ts",
|
22
|
+
"exports": {
|
23
|
+
".": {
|
24
|
+
"import": "./esm/index.js",
|
25
|
+
"require": "./lib/index.js"
|
26
|
+
},
|
27
|
+
"./esm/*": {
|
28
|
+
"import": "./esm/*"
|
29
|
+
},
|
30
|
+
"./lib/*": {
|
31
|
+
"require": "./lib/*"
|
32
|
+
},
|
33
|
+
"./_/*": {
|
34
|
+
"import": "./esm/*.js",
|
35
|
+
"require": "./lib/*.js"
|
36
|
+
},
|
37
|
+
"./package.json": "./package.json"
|
38
|
+
},
|
22
39
|
"sideEffects": false,
|
23
40
|
"files": [
|
24
41
|
"esm",
|
@@ -33,25 +50,26 @@
|
|
33
50
|
"url": "https://github.com/smapiot/piral/issues"
|
34
51
|
},
|
35
52
|
"scripts": {
|
53
|
+
"cleanup": "rimraf esm lib",
|
36
54
|
"build": "yarn build:commonjs && yarn build:esnext",
|
37
55
|
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
|
38
56
|
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
39
57
|
"typedoc": "typedoc --json ../../../docs/types/piral-ext.json src --exclude \"src/**/*.test.*\"",
|
40
58
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
41
59
|
},
|
60
|
+
"dependencies": {
|
61
|
+
"piral-dashboard": "^1.0.0",
|
62
|
+
"piral-feeds": "^1.0.0",
|
63
|
+
"piral-menu": "^1.0.0",
|
64
|
+
"piral-modals": "^1.0.0",
|
65
|
+
"piral-notifications": "^1.0.0",
|
66
|
+
"piral-translate": "^1.0.0"
|
67
|
+
},
|
42
68
|
"devDependencies": {
|
43
|
-
"piral-core": "^1.0.0
|
69
|
+
"piral-core": "^1.0.0"
|
44
70
|
},
|
45
71
|
"peerDependencies": {
|
46
|
-
"piral-core": "
|
47
|
-
},
|
48
|
-
"dependencies": {
|
49
|
-
"piral-dashboard": "^1.0.0-pre.2217",
|
50
|
-
"piral-feeds": "^1.0.0-pre.2217",
|
51
|
-
"piral-menu": "^1.0.0-pre.2217",
|
52
|
-
"piral-modals": "^1.0.0-pre.2217",
|
53
|
-
"piral-notifications": "^1.0.0-pre.2217",
|
54
|
-
"piral-translate": "^1.0.0-pre.2217"
|
72
|
+
"piral-core": "0.14.x || 0.15.x"
|
55
73
|
},
|
56
|
-
"gitHead": "
|
74
|
+
"gitHead": "67d9a2920bd5231baf10bc87ae8985666b18fa3a"
|
57
75
|
}
|
package/src/types.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Localizable } from 'piral-translate';
|
2
|
-
import { DashboardConfig } from 'piral-dashboard';
|
3
|
-
import { MenuConfig } from 'piral-menu';
|
4
|
-
import { NotificationsConfig } from 'piral-notifications';
|
5
|
-
import { ModalsConfig } from 'piral-modals';
|
6
|
-
import { FeedsConfig } from 'piral-feeds';
|
1
|
+
import type { Localizable } from 'piral-translate';
|
2
|
+
import type { DashboardConfig } from 'piral-dashboard';
|
3
|
+
import type { MenuConfig } from 'piral-menu';
|
4
|
+
import type { NotificationsConfig } from 'piral-notifications';
|
5
|
+
import type { ModalsConfig } from 'piral-modals';
|
6
|
+
import type { FeedsConfig } from 'piral-feeds';
|
7
7
|
|
8
8
|
export interface PiralExtSettings {
|
9
9
|
/**
|