smbls 0.15.40 → 0.15.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": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.15.40",
6
+ "version": "0.15.42",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
@@ -23,6 +23,7 @@
23
23
  "dependencies": {
24
24
  "@domql/utils": "latest",
25
25
  "@symbo.ls/cli": "latest",
26
+ "@symbo.ls/socket": "latest",
26
27
  "@symbo.ls/init": "latest",
27
28
  "@symbo.ls/scratch": "latest",
28
29
  "@symbo.ls/utils": "latest"
@@ -87,14 +87,14 @@ const applyCaseProps = (key, props, result, element) => {
87
87
 
88
88
  const applyConditionalCaseProps = (key, props, result, element) => {
89
89
  const caseKey = key.slice(1)
90
- const isPropTrue = element.props[caseKey]
90
+ const isPropTrue = element.props[caseKey] || element.state[caseKey] === true
91
91
  if (!isPropTrue) return // remove classname if not here
92
92
  return merge(result, convertPropsToClass(props, result, element))
93
93
  }
94
94
 
95
95
  const applyConditionalFalsyProps = (key, props, result, element) => {
96
96
  const caseKey = key.slice(1)
97
- const isPropTrue = element.props[caseKey]
97
+ const isPropTrue = element.props[caseKey] || element.state[caseKey] === true
98
98
  if (!isPropTrue) return merge(result, convertPropsToClass(props, result, element))
99
99
  }
100
100
 
package/src/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  export * from '@symbo.ls/init'
4
+ export * from '@symbo.ls/socket/client'
4
5
 
5
6
  // atoms
6
7
  export * from './atoms'