@symbo.ls/atoms 2.29.69 → 2.29.71
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/Box.js +4 -2
- package/Text.js +3 -2
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -104,8 +104,10 @@ export const Box = {
|
|
|
104
104
|
attr: {
|
|
105
105
|
id: (el) => el.call('isString', el.props.id) && el.props.id,
|
|
106
106
|
title: (el) => el.call('isString', el.props.title) && el.props.title,
|
|
107
|
-
contentEditable: (el) =>
|
|
108
|
-
el.props.contentEditable || el.props.contenteditable
|
|
107
|
+
contentEditable: async (el) => {
|
|
108
|
+
const isEditable = el.props.contentEditable || el.props.contenteditable
|
|
109
|
+
if (isEditable) return await el.call('exec', isEditable, el, state)
|
|
110
|
+
},
|
|
109
111
|
dir: (el) => el.props.dir,
|
|
110
112
|
draggable: (el) => el.props.draggable,
|
|
111
113
|
hidden: (el) => el.props.hidden,
|
package/Text.js
CHANGED
|
@@ -4,7 +4,7 @@ import { exec, isUndefined } from '@domql/utils'
|
|
|
4
4
|
import { getFontSizeByKey, getFontFamily } from '@symbo.ls/scratch'
|
|
5
5
|
|
|
6
6
|
const props = {
|
|
7
|
-
fontSize: el => {
|
|
7
|
+
fontSize: (el) => {
|
|
8
8
|
const { props, deps } = el
|
|
9
9
|
return props.fontSize ? deps.getFontSizeByKey(props.fontSize) : null
|
|
10
10
|
},
|
|
@@ -20,7 +20,7 @@ const props = {
|
|
|
20
20
|
export const Text = {
|
|
21
21
|
deps: { exec, getFontSizeByKey, getFontFamily },
|
|
22
22
|
|
|
23
|
-
text: el => {
|
|
23
|
+
text: (el) => {
|
|
24
24
|
const { key, props, state, deps } = el
|
|
25
25
|
if (props.text === true)
|
|
26
26
|
return (state && state[key]) || (props && props[key])
|
|
@@ -78,6 +78,7 @@ export const Strong = {
|
|
|
78
78
|
tag: 'strong',
|
|
79
79
|
props: { fontWeight: '700' }
|
|
80
80
|
}
|
|
81
|
+
export const U = { tag: 'u' }
|
|
81
82
|
export const Underline = { tag: 'u' }
|
|
82
83
|
export const Italic = { tag: 'i' }
|
|
83
84
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.71",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "2ccd453fff2f5e00cf6df90d9562d075bf436c9b",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.29.
|
|
9
|
-
"@domql/utils": "^2.29.
|
|
10
|
-
"@symbo.ls/emotion": "^2.29.
|
|
11
|
-
"@symbo.ls/scratch": "^2.29.
|
|
8
|
+
"@domql/state": "^2.29.71",
|
|
9
|
+
"@domql/utils": "^2.29.71",
|
|
10
|
+
"@symbo.ls/emotion": "^2.29.71",
|
|
11
|
+
"@symbo.ls/scratch": "^2.29.71"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|