@mat3ra/ade 2025.12.16-0 → 2026.4.29-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/dist/js/application.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import { type ApplicationMixin, type ApplicationStaticMixin } from "./applicatio
|
|
|
4
4
|
type Base = typeof NamedDefaultableInMemoryEntity & Constructor<ApplicationMixin> & ApplicationStaticMixin;
|
|
5
5
|
declare const Application_base: Base;
|
|
6
6
|
export default class Application extends Application_base {
|
|
7
|
+
calculateHash(): string;
|
|
7
8
|
}
|
|
8
9
|
export {};
|
package/dist/js/application.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const entity_1 = require("@mat3ra/code/dist/js/entity");
|
|
4
|
+
const utils_1 = require("@mat3ra/utils");
|
|
4
5
|
const applicationMixin_1 = require("./applicationMixin");
|
|
5
6
|
class Application extends entity_1.NamedDefaultableInMemoryEntity {
|
|
7
|
+
calculateHash() {
|
|
8
|
+
return utils_1.Utils.hash.calculateHashFromObject(utils_1.Utils.specific.removeTimestampableKeysFromConfig(this.toJSON()));
|
|
9
|
+
}
|
|
6
10
|
}
|
|
7
11
|
exports.default = Application;
|
|
8
12
|
(0, applicationMixin_1.applicationMixin)(Application.prototype);
|
|
@@ -29,8 +29,7 @@ function applicationMixin(item) {
|
|
|
29
29
|
return this.prop("isLicensed", false);
|
|
30
30
|
},
|
|
31
31
|
get isUsingMaterial() {
|
|
32
|
-
|
|
33
|
-
return materialUsingApplications.includes(this.name);
|
|
32
|
+
return this.prop("isUsingMaterial", false);
|
|
34
33
|
},
|
|
35
34
|
};
|
|
36
35
|
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mat3ra/ade",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2026.4.29-0",
|
|
4
4
|
"description": "Application DEfinitions",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "nyc --reporter=text mocha --recursive --bail tests/js/**/*.ts",
|
|
@@ -43,50 +43,50 @@
|
|
|
43
43
|
"homepage": "https://github.com/Exabyte-io/ade",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@types/react-jsonschema-form": "^1.7.13",
|
|
46
|
-
"lodash": "^4.
|
|
46
|
+
"lodash": "^4.18.1",
|
|
47
47
|
"nunjucks": "^3.2.4",
|
|
48
48
|
"react-jsonschema-form": "^1.8.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@babel/eslint-parser": "^7.
|
|
51
|
+
"@babel/eslint-parser": "^7.28.6",
|
|
52
52
|
"@exabyte-io/eslint-config": "2025.5.13-0",
|
|
53
|
-
"@mat3ra/
|
|
54
|
-
"@mat3ra/
|
|
55
|
-
"@mat3ra/
|
|
56
|
-
"@mat3ra/
|
|
57
|
-
"@mat3ra/
|
|
58
|
-
"@mat3ra/
|
|
53
|
+
"@mat3ra/code": "^2026.4.1-0",
|
|
54
|
+
"@mat3ra/esse": "^2026.4.29-0",
|
|
55
|
+
"@mat3ra/made": "^2026.4.2-1",
|
|
56
|
+
"@mat3ra/standata": "^2026.4.29-0",
|
|
57
|
+
"@mat3ra/tsconfig": "^2024.6.3-0",
|
|
58
|
+
"@mat3ra/utils": "^2026.4.15-1",
|
|
59
59
|
"@types/nunjucks": "^3.2.6",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
61
|
-
"@typescript-eslint/parser": "^5.
|
|
62
|
-
"chai": "^4.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
61
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
62
|
+
"chai": "^4.5.0",
|
|
63
63
|
"eslint": "^7.32.0",
|
|
64
|
-
"eslint-config-airbnb": "^19.0.
|
|
65
|
-
"eslint-config-prettier": "^8.
|
|
64
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
65
|
+
"eslint-config-prettier": "^8.10.2",
|
|
66
66
|
"eslint-import-resolver-exports": "^1.0.0-beta.5",
|
|
67
67
|
"eslint-import-resolver-meteor": "^0.4.0",
|
|
68
|
-
"eslint-import-resolver-node": "^0.3.
|
|
69
|
-
"eslint-plugin-import": "^2.
|
|
70
|
-
"eslint-plugin-jsdoc": "^37.
|
|
71
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
72
|
-
"eslint-plugin-mui-path-imports": "0.0.15",
|
|
73
|
-
"eslint-plugin-prettier": "^4.2.
|
|
74
|
-
"eslint-plugin-react": "^7.
|
|
68
|
+
"eslint-import-resolver-node": "^0.3.10",
|
|
69
|
+
"eslint-plugin-import": "^2.32.0",
|
|
70
|
+
"eslint-plugin-jsdoc": "^37.9.7",
|
|
71
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
72
|
+
"eslint-plugin-mui-path-imports": "^0.0.15",
|
|
73
|
+
"eslint-plugin-prettier": "^4.2.5",
|
|
74
|
+
"eslint-plugin-react": "^7.37.5",
|
|
75
75
|
"eslint-plugin-simple-import-sort": "^7.0.0",
|
|
76
76
|
"husky": "^7.0.4",
|
|
77
|
-
"lint-staged": "^12.
|
|
78
|
-
"mocha": "^9.
|
|
77
|
+
"lint-staged": "^12.5.0",
|
|
78
|
+
"mocha": "^9.2.2",
|
|
79
79
|
"nyc": "^15.1.0",
|
|
80
|
-
"prettier": "^2.
|
|
80
|
+
"prettier": "^2.8.8",
|
|
81
81
|
"ts-node": "^10.9.2",
|
|
82
|
-
"typescript": "^5.
|
|
82
|
+
"typescript": "^5.9.3"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
|
-
"@mat3ra/utils": "*",
|
|
86
85
|
"@mat3ra/code": "*",
|
|
87
86
|
"@mat3ra/esse": "*",
|
|
88
87
|
"@mat3ra/made": "*",
|
|
89
|
-
"@mat3ra/standata": "*"
|
|
88
|
+
"@mat3ra/standata": "*",
|
|
89
|
+
"@mat3ra/utils": "*"
|
|
90
90
|
},
|
|
91
91
|
"engines": {
|
|
92
92
|
"node": ">=20.0.0"
|
package/src/js/application.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NamedDefaultableInMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
2
|
import type { Constructor } from "@mat3ra/code/dist/js/utils/types";
|
|
3
|
+
import { Utils } from "@mat3ra/utils";
|
|
3
4
|
|
|
4
5
|
import {
|
|
5
6
|
type ApplicationMixin,
|
|
@@ -12,7 +13,13 @@ type Base = typeof NamedDefaultableInMemoryEntity &
|
|
|
12
13
|
Constructor<ApplicationMixin> &
|
|
13
14
|
ApplicationStaticMixin;
|
|
14
15
|
|
|
15
|
-
export default class Application extends (NamedDefaultableInMemoryEntity as Base) {
|
|
16
|
+
export default class Application extends (NamedDefaultableInMemoryEntity as Base) {
|
|
17
|
+
calculateHash() {
|
|
18
|
+
return Utils.hash.calculateHashFromObject(
|
|
19
|
+
Utils.specific.removeTimestampableKeysFromConfig(this.toJSON()),
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
16
23
|
|
|
17
24
|
applicationMixin(Application.prototype);
|
|
18
25
|
applicationStaticMixin(Application);
|
|
@@ -62,8 +62,7 @@ export function applicationMixin(item: Base) {
|
|
|
62
62
|
},
|
|
63
63
|
|
|
64
64
|
get isUsingMaterial() {
|
|
65
|
-
|
|
66
|
-
return materialUsingApplications.includes(this.name);
|
|
65
|
+
return this.prop("isUsingMaterial", false);
|
|
67
66
|
},
|
|
68
67
|
};
|
|
69
68
|
|