render-core 1.3.18 → 1.3.20

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.
@@ -1,12 +1,7 @@
1
1
  import { status_read, status_write } from "../../index";
2
2
  var ContextController = /** @class */ (function () {
3
3
  function ContextController() {
4
- this.fields = {
5
- system_theme: {
6
- data: "default",
7
- react: true
8
- }
9
- };
4
+ this.fields = {};
10
5
  }
11
6
  ContextController.prototype.saveFields = function (fields) {
12
7
  for (var fieldsKey in fields) {
@@ -77,7 +72,17 @@ var ContextController = /** @class */ (function () {
77
72
  return this.fields[field].data;
78
73
  }
79
74
  else {
80
- return null;
75
+ var application = Reflect.get(window, "appSite");
76
+ if (application.getField(field) == null) {
77
+ return null;
78
+ }
79
+ else {
80
+ this.fields[field] = {
81
+ data: application.getField(field),
82
+ react: true
83
+ };
84
+ return this.fields[field].data;
85
+ }
81
86
  }
82
87
  };
83
88
  return ContextController;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.3.18",
3
+ "version": "1.3.20",
4
4
  "description": "The core of render-js",
5
5
  "keywords": [
6
6
  "render",