@symbo.ls/atoms 2.11.119 → 2.11.126

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/Media.js +0 -1
  2. package/Text.js +0 -4
  3. package/package.json +2 -2
package/Media.js CHANGED
@@ -149,7 +149,6 @@ const beforeClassAssign = (element, s) => {
149
149
  if (setter) setter(key, props[key], CLASS_NAMES, element)
150
150
  }
151
151
 
152
-
153
152
  const parentProps = element.parent && element.parent.props
154
153
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
155
154
  element.setProps({
package/Text.js CHANGED
@@ -1,14 +1,10 @@
1
1
  'use strict'
2
2
 
3
- import { isString, replaceLiteralsWithObjectFields } from '@domql/utils'
4
3
  import { getFontSizeByKey, getFontFamily } from '@symbo.ls/scratch'
5
4
 
6
5
  export const Text = {
7
6
  text: ({ key, props, state }) => {
8
7
  if (props.text === true) return (state && state[key]) || (props && props[key])
9
- if (isString(props.text) && props.text.includes('{{')) {
10
- return replaceLiteralsWithObjectFields(props.text, state)
11
- }
12
8
  return props.text
13
9
  },
14
10
  class: {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.119",
3
+ "version": "2.11.126",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c85a2d1537d5de5bd1354f36ca81eac912c64b8b",
6
+ "gitHead": "463c4925df4dfbed4611feafe34c6f011d3ba287",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",