@builder.io/mitosis 0.0.56-54 → 0.0.56-55

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.
@@ -38,18 +38,6 @@ var function_literal_prefix_1 = require("../../constants/function-literal-prefix
38
38
  var method_literal_prefix_1 = require("../../constants/method-literal-prefix");
39
39
  var patterns_1 = require("../../helpers/patterns");
40
40
  var get_refs_1 = require("../../helpers/get-refs");
41
- var is_upper_case_1 = require("../../helpers/is-upper-case");
42
- var lodash_1 = require("lodash");
43
- /**
44
- * Convert a component name to a tagName
45
- *
46
- * So things like
47
- * 'FooBar' -> <foo-bar>
48
- * 'h1' -> <h1>
49
- */
50
- var toTagName = function (str) {
51
- return (0, is_upper_case_1.isUpperCase)(str[0]) ? (0, lodash_1.kebabCase)(str) : str;
52
- };
53
41
  // Having issues with this, so off for now
54
42
  var USE_MARKO_PRETTIER = false;
55
43
  function getStateTypeOfValue(value) {
@@ -113,7 +101,7 @@ var blockToMarko = function (json, options) {
113
101
  .join('\n'), "</if>\n ").concat(!json.meta.else ? '' : "<else>".concat(blockToMarko(json.meta.else, options), "</else>"));
114
102
  }
115
103
  var str = '';
116
- str += "<".concat(toTagName(json.name), " ");
104
+ str += "<".concat(json.name, " ");
117
105
  if ((_e = json.bindings._spread) === null || _e === void 0 ? void 0 : _e.code) {
118
106
  str += " ...(".concat(json.bindings._spread.code, ") ");
119
107
  }
@@ -144,7 +132,7 @@ var blockToMarko = function (json, options) {
144
132
  if (json.children) {
145
133
  str += json.children.map(function (item) { return blockToMarko(item, options); }).join('\n');
146
134
  }
147
- str += "</".concat(toTagName(json.name), ">");
135
+ str += "</".concat(json.name, ">");
148
136
  return str;
149
137
  };
150
138
  function processBinding(json, code, type) {
@@ -33,6 +33,8 @@ var getFileExtensionForTarget = function (target) {
33
33
  case 'vue2':
34
34
  case 'vue3':
35
35
  return '.vue';
36
+ case 'marko':
37
+ return '.marko';
36
38
  case 'angular':
37
39
  return '';
38
40
  // these `.lite` extensions are handled in the `transpile` step of the CLI.