@builder.io/mitosis 0.5.5 → 0.5.6

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.
@@ -100,6 +100,15 @@ function mapStateIdentifiers(json) {
100
100
  const stateProperties = Object.keys(json.state);
101
101
  const plugin = (0, process_code_1.createCodeProcessorPlugin)(() => (code) => mapStateIdentifiersInExpression(code, stateProperties));
102
102
  plugin(json);
103
+ for (const key in json.targetBlocks) {
104
+ const targetBlock = json.targetBlocks[key];
105
+ for (const targetBlockKey of Object.keys(targetBlock)) {
106
+ const block = targetBlock[targetBlockKey];
107
+ if (block && 'code' in block) {
108
+ block.code = mapStateIdentifiersInExpression(block.code, stateProperties);
109
+ }
110
+ }
111
+ }
103
112
  (0, legacy_1.default)(json).forEach(function (item) {
104
113
  // only consolidate bindings for HTML tags, not custom components
105
114
  // custom components are always PascalCase, e.g. MyComponent
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "name": "Builder.io",
23
23
  "url": "https://www.builder.io"
24
24
  },
25
- "version": "0.5.5",
25
+ "version": "0.5.6",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {