domql 1.5.41 → 1.5.42

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "1.5.41",
6
+ "version": "1.5.42",
7
7
  "repository": "https://github.com/domql/domql",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"
@@ -3,7 +3,7 @@
3
3
  import { on } from '../event'
4
4
  import { debounce, deepClone, exec, isFunction, isObject, overwriteDeep } from '../utils'
5
5
 
6
- export const IGNORE_STATE_PARAMS = ['update', 'parse', 'clean', 'parent', 'systemUpdate', '__system', '__element', '__depends', '__ref', '__root']
6
+ export const IGNORE_STATE_PARAMS = ['update', 'parse', 'clean', 'parent', 'systemUpdate', '__client_system', '__element', '__depends', '__ref', '__root']
7
7
 
8
8
  export const parseState = function () {
9
9
  const state = this
@@ -28,8 +28,8 @@ export const cleanState = function () {
28
28
 
29
29
  export const systemUpdate = function (obj, options = {}) {
30
30
  const state = this
31
- const rootState = state.__element.__root.state
32
- rootState.update({ SYSTEM: obj }, options)
31
+ const rootState = (state.__element.__root || state.__element).state
32
+ rootState.update({ CLIENT_SYSTEM: obj }, options)
33
33
  return state
34
34
  }
35
35
 
@@ -92,7 +92,10 @@ export default function (element, parent) {
92
92
  state.systemUpdate = systemUpdate
93
93
  state.parent = element.parent.state
94
94
  state.__root = __root ? __root.state : state
95
- state.__system = state.__root.SYSTEM || state.SYSTEM
95
+ state.__components = (state.__root || state).COMPONENTS
96
+ state.__client_system = (state.__root || state).CLIENT_SYSTEM
97
+ state.__client_state = (state.__root || state).CLIENT_STATE
98
+ state.__client_library = (state.__root || state).CLIENT_LIBRARY
96
99
 
97
100
  // run `on.stateCreated`
98
101
  if (element.on && isFunction(element.on.stateCreated)) {