@builder.io/mitosis 0.2.6 → 0.2.7

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.
@@ -12,6 +12,7 @@ type BuilderToMitosisOptions = {
12
12
  includeBuilderExtras?: boolean;
13
13
  preserveTextBlocks?: boolean;
14
14
  includeSpecialBindings?: boolean;
15
+ includeMeta?: boolean;
15
16
  };
16
17
  export declare const builderElementToMitosisNode: (block: BuilderElement, options: BuilderToMitosisOptions, _internalOptions?: InternalOptions) => MitosisNode;
17
18
  /**
@@ -417,7 +417,7 @@ var builderElementToMitosisNode = function (block, options, _internalOptions) {
417
417
  var _a;
418
418
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
419
419
  if (_internalOptions === void 0) { _internalOptions = {}; }
420
- var _x = options.includeSpecialBindings, includeSpecialBindings = _x === void 0 ? true : _x;
420
+ var _x = options.includeSpecialBindings, includeSpecialBindings = _x === void 0 ? true : _x, _y = options.includeMeta, includeMeta = _y === void 0 ? false : _y;
421
421
  if (((_b = block.component) === null || _b === void 0 ? void 0 : _b.name) === 'Core:Fragment') {
422
422
  block.component.name = 'Fragment';
423
423
  }
@@ -580,6 +580,8 @@ var builderElementToMitosisNode = function (block, options, _internalOptions) {
580
580
  css: (0, bindings_1.createSingleBinding)({ code: JSON.stringify(css) }),
581
581
  })),
582
582
  slots: __assign({}, slots),
583
+ meta: includeMeta
584
+ ? __assign({ 'builder-id': block.id }, block.meta) : {},
583
585
  });
584
586
  // Has single text node child
585
587
  var firstChild = (_s = block.children) === null || _s === void 0 ? void 0 : _s[0];
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.2.6",
25
+ "version": "0.2.7",
26
26
  "homepage": "https://github.com/BuilderIO/mitosis",
27
27
  "main": "./dist/src/index.js",
28
28
  "exports": {