@symbo.ls/sync 2.11.438 → 2.11.447

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.
Files changed (3) hide show
  1. package/Inspect.js +5 -4
  2. package/index.js +1 -1
  3. package/package.json +9 -9
package/Inspect.js CHANGED
@@ -30,7 +30,7 @@ function findComponent (el) {
30
30
  return findComponent(el.parent)
31
31
  }
32
32
 
33
- export const inspectOnKey = (app, ctx) => {
33
+ const inspectOnKey = (app, state, ctx) => {
34
34
  const windowOpts = ctx.window || window
35
35
  windowOpts.onkeydown = (ev) => {
36
36
  if (ev.altKey && ev.shiftKey) {
@@ -48,7 +48,7 @@ export const inspectOnKey = (app, ctx) => {
48
48
  preventContentUpdate: true,
49
49
  preventRecursive: true
50
50
  })
51
- app.focus.state.update({ area: false })
51
+ app.Inspector.state.update({ area: false })
52
52
  }
53
53
  }
54
54
  }
@@ -59,7 +59,7 @@ export const Inspect = {
59
59
  '!preventSelect': { userSelect: 'auto' }
60
60
  },
61
61
 
62
- focus: {
62
+ Inspector: {
63
63
  state: {},
64
64
  props: (el, s) => ({
65
65
  transition: 'all, defaultBezier, X',
@@ -141,10 +141,11 @@ export const Inspect = {
141
141
  },
142
142
 
143
143
  on: {
144
+ inspectOnKey,
144
145
  mousemove: (ev, e, state) => {
145
146
  const el = ev.target.ref
146
147
  const component = findComponent(el)
147
- const focusState = e.focus.state
148
+ const focusState = e.Inspector.state
148
149
 
149
150
  if (!component || !state.debugging || !component.__ref) return focusState.update({ area: false })
150
151
 
package/index.js CHANGED
@@ -73,6 +73,6 @@ export const connectToSocket = (el, s, ctx) => {
73
73
 
74
74
  export const SyncComponent = {
75
75
  on: {
76
- complete: connectToSocket
76
+ initSync: connectToSocket
77
77
  }
78
78
  }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@symbo.ls/sync",
3
- "version": "2.11.438",
3
+ "version": "2.11.447",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
- "gitHead": "d1b6122e6d2aaca97f342e5e9ebb181797b85e23",
6
+ "gitHead": "e59d0443eec7f94e5737a916d49daf00d1ee9c47",
7
7
  "dependencies": {
8
- "@domql/globals": "latest",
9
- "@domql/router": "latest",
10
- "@domql/utils": "latest",
11
- "@symbo.ls/init": "latest",
12
- "@symbo.ls/scratch": "latest",
13
- "@symbo.ls/socket": "latest",
14
- "@symbo.ls/uikit": "latest"
8
+ "@domql/globals": "^2.5.0",
9
+ "@domql/router": "^2.5.0",
10
+ "@domql/utils": "^2.5.0",
11
+ "@symbo.ls/init": "^2.11.446",
12
+ "@symbo.ls/scratch": "^2.11.446",
13
+ "@symbo.ls/socket": "^2.11.446",
14
+ "@symbo.ls/uikit": "^2.11.447"
15
15
  }
16
16
  }