piral-aurelia 0.15.0-alpha.4036 → 0.15.0-alpha.4122
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/convert.js +4 -9
- package/esm/DefaultLoader.d.ts +1 -1
- package/lib/DefaultLoader.d.ts +1 -1
- package/lib/extension.js +10 -10
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +21 -5
package/convert.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.AureliaExtension = exports.fromAurelia = exports.createAureliaConverter = void 0;
|
|
4
|
-
var converter_1 = require("./esm/converter");
|
|
5
|
-
function createAureliaConverter() {
|
|
1
|
+
import { createConverter } from './esm/converter';
|
|
2
|
+
export function createAureliaConverter() {
|
|
6
3
|
var params = [];
|
|
7
4
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
8
5
|
params[_i] = arguments[_i];
|
|
9
6
|
}
|
|
10
|
-
var convert =
|
|
7
|
+
var convert = createConverter.apply(void 0, params);
|
|
11
8
|
var Extension = convert.Extension;
|
|
12
9
|
var from = function (root) { return ({
|
|
13
10
|
type: 'html',
|
|
@@ -15,7 +12,5 @@ function createAureliaConverter() {
|
|
|
15
12
|
}); };
|
|
16
13
|
return { from: from, Extension: Extension };
|
|
17
14
|
}
|
|
18
|
-
exports.createAureliaConverter = createAureliaConverter;
|
|
19
15
|
var _a = createAureliaConverter(), fromAurelia = _a.from, AureliaExtension = _a.Extension;
|
|
20
|
-
|
|
21
|
-
exports.AureliaExtension = AureliaExtension;
|
|
16
|
+
export { fromAurelia, AureliaExtension };
|
package/esm/DefaultLoader.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class DefaultLoader extends Loader {
|
|
|
36
36
|
* @param ids The set of module ids to load.
|
|
37
37
|
* @return A Promise for an array of loaded modules.
|
|
38
38
|
*/
|
|
39
|
-
loadAllModules(ids: any): Promise<[
|
|
39
|
+
loadAllModules(ids: any): Promise<any[]>;
|
|
40
40
|
/**
|
|
41
41
|
* Loads a template.
|
|
42
42
|
* @param url The url of the template to load.
|
package/lib/DefaultLoader.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class DefaultLoader extends Loader {
|
|
|
36
36
|
* @param ids The set of module ids to load.
|
|
37
37
|
* @return A Promise for an array of loaded modules.
|
|
38
38
|
*/
|
|
39
|
-
loadAllModules(ids: any): Promise<[
|
|
39
|
+
loadAllModules(ids: any): Promise<any[]>;
|
|
40
40
|
/**
|
|
41
41
|
* Loads a template.
|
|
42
42
|
* @param url The url of the template to load.
|
package/lib/extension.js
CHANGED
|
@@ -17,30 +17,30 @@ function createExtension(rootName) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
|
|
20
|
+
tslib_1.__decorate([
|
|
21
21
|
(0, aurelia_framework_1.bindable)(),
|
|
22
|
-
|
|
22
|
+
tslib_1.__metadata("design:type", String)
|
|
23
23
|
], AureliaExtension.prototype, "name", void 0);
|
|
24
|
-
|
|
24
|
+
tslib_1.__decorate([
|
|
25
25
|
(0, aurelia_framework_1.bindable)(),
|
|
26
|
-
|
|
26
|
+
tslib_1.__metadata("design:type", Object)
|
|
27
27
|
], AureliaExtension.prototype, "render", void 0);
|
|
28
|
-
|
|
28
|
+
tslib_1.__decorate([
|
|
29
29
|
(0, aurelia_framework_1.bindable)(),
|
|
30
|
-
|
|
30
|
+
tslib_1.__metadata("design:type", Object)
|
|
31
31
|
], AureliaExtension.prototype, "empty", void 0);
|
|
32
|
-
|
|
32
|
+
tslib_1.__decorate([
|
|
33
33
|
(0, aurelia_framework_1.bindable)(),
|
|
34
|
-
|
|
34
|
+
tslib_1.__metadata("design:type", Object)
|
|
35
35
|
], AureliaExtension.prototype, "params", void 0);
|
|
36
|
-
AureliaExtension =
|
|
36
|
+
AureliaExtension = tslib_1.__decorate([
|
|
37
37
|
(0, aurelia_framework_1.inject)('piral'),
|
|
38
38
|
(0, aurelia_framework_1.customElement)('extension-component'),
|
|
39
39
|
(0, aurelia_framework_1.inlineView)(`
|
|
40
40
|
<template>
|
|
41
41
|
<${rootName} ref="host"></${rootName}>
|
|
42
42
|
<template>`),
|
|
43
|
-
|
|
43
|
+
tslib_1.__metadata("design:paramtypes", [Object])
|
|
44
44
|
], AureliaExtension);
|
|
45
45
|
return AureliaExtension;
|
|
46
46
|
}
|
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
|
-
|
|
5
|
-
|
|
4
|
+
tslib_1.__exportStar(require("./create"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-aurelia",
|
|
3
|
-
"version": "0.15.0-alpha.
|
|
3
|
+
"version": "0.15.0-alpha.4122",
|
|
4
4
|
"description": "Plugin for integrating Aurelia components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -19,6 +19,22 @@
|
|
|
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
|
+
"./convert": {
|
|
28
|
+
"import": "./convert.js"
|
|
29
|
+
},
|
|
30
|
+
"./esm/": {
|
|
31
|
+
"import": "./esm/"
|
|
32
|
+
},
|
|
33
|
+
"./lib/": {
|
|
34
|
+
"require": "./lib/"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
22
38
|
"sideEffects": false,
|
|
23
39
|
"files": [
|
|
24
40
|
"esm",
|
|
@@ -37,7 +53,7 @@
|
|
|
37
53
|
"scripts": {
|
|
38
54
|
"cleanup": "rimraf esm lib convert.d.ts convert.js",
|
|
39
55
|
"build": "yarn build:commonjs && yarn build:esnext && yarn build:convert",
|
|
40
|
-
"build:convert": "tsc convert.ts --skipLibCheck --declaration",
|
|
56
|
+
"build:convert": "tsc convert.ts --skipLibCheck --declaration --module esnext",
|
|
41
57
|
"build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
|
|
42
58
|
"build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
|
|
43
59
|
"typedoc": "typedoc --json ../../../docs/types/piral-aurelia.json src --exclude \"src/**/*.test.*\"",
|
|
@@ -45,12 +61,12 @@
|
|
|
45
61
|
},
|
|
46
62
|
"devDependencies": {
|
|
47
63
|
"aurelia-event-aggregator": "1.0.3",
|
|
48
|
-
"aurelia-framework": "1.
|
|
64
|
+
"aurelia-framework": "1.4.1",
|
|
49
65
|
"aurelia-history-browser": "1.4.0",
|
|
50
66
|
"aurelia-pal-browser": "1.8.1",
|
|
51
67
|
"aurelia-templating-binding": "1.5.3",
|
|
52
68
|
"aurelia-templating-resources": "1.13.1",
|
|
53
|
-
"piral-core": "0.15.0-alpha.
|
|
69
|
+
"piral-core": "0.15.0-alpha.4122"
|
|
54
70
|
},
|
|
55
71
|
"peerDependencies": {
|
|
56
72
|
"aurelia-event-aggregator": "^1.0.0",
|
|
@@ -60,5 +76,5 @@
|
|
|
60
76
|
"aurelia-templating-binding": "^1.0.0",
|
|
61
77
|
"aurelia-templating-resources": "^1.0.0"
|
|
62
78
|
},
|
|
63
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "fa0957fe7dedebbbd97a530e518c1a2b7754d475"
|
|
64
80
|
}
|