@symbo.ls/atoms 2.30.1 → 2.31.0
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 +2 -2
- package/Iframe.js +8 -5
- package/Media.js +12 -11
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -104,9 +104,9 @@ 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) => {
|
|
107
|
+
contentEditable: (el, s) => {
|
|
108
108
|
const isEditable = el.props.contentEditable || el.props.contenteditable
|
|
109
|
-
if (isEditable) return el.call('exec', isEditable, el,
|
|
109
|
+
if (isEditable) return el.call('exec', isEditable, el, s)
|
|
110
110
|
},
|
|
111
111
|
dir: (el) => el.props.dir,
|
|
112
112
|
draggable: (el) => el.props.draggable,
|
package/Iframe.js
CHANGED
|
@@ -17,11 +17,14 @@ export const Iframe = {
|
|
|
17
17
|
src = el.call('replaceLiteralsWithObjectFields', src)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
let isUrl
|
|
21
|
-
try {
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
20
|
+
// let isUrl
|
|
21
|
+
// try {
|
|
22
|
+
// isUrl = new URL(src)
|
|
23
|
+
// } catch (e) {
|
|
24
|
+
// el.warn(e)
|
|
25
|
+
// }
|
|
26
|
+
// if (isUrl)
|
|
27
|
+
return src
|
|
25
28
|
},
|
|
26
29
|
srcdoc: ({ props }) => props.srcdoc,
|
|
27
30
|
sandbox: ({ props }) => props.sandbox,
|
package/Media.js
CHANGED
|
@@ -222,17 +222,18 @@ export const beforeClassAssign = (element, s, ctx) => {
|
|
|
222
222
|
const setter = keySetters[key.slice(0, 1)]
|
|
223
223
|
if (globalTheme) {
|
|
224
224
|
if (key === 'theme' && !props.themeModifier) {
|
|
225
|
-
props.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
225
|
+
props.themeModifier = globalTheme
|
|
226
|
+
// props.update(
|
|
227
|
+
// {
|
|
228
|
+
// themeModifier: globalTheme
|
|
229
|
+
// },
|
|
230
|
+
// {
|
|
231
|
+
// preventListeners: true,
|
|
232
|
+
// preventRecursive: true,
|
|
233
|
+
// isForced: true,
|
|
234
|
+
// preventDefineUpdate: true
|
|
235
|
+
// }
|
|
236
|
+
// )
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
if (setter) setter(key, props[key], CLASS_NAMES, element)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.31.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "dd5c64895320d678f28ca585c9fd4e4550a483cd",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.
|
|
9
|
-
"@domql/utils": "^2.
|
|
10
|
-
"@symbo.ls/emotion": "^2.
|
|
11
|
-
"@symbo.ls/scratch": "^2.
|
|
8
|
+
"@domql/state": "^2.31.0",
|
|
9
|
+
"@domql/utils": "^2.31.0",
|
|
10
|
+
"@symbo.ls/emotion": "^2.31.0",
|
|
11
|
+
"@symbo.ls/scratch": "^2.31.0"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|