@teleporthq/teleport-uidl-validator 0.19.17 → 0.19.19

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.
@@ -3,28 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rootComponentUIDLDecoder = exports.componentUIDLDecoder = void 0;
4
4
  var json_type_validation_1 = require("@mojotech/json-type-validation");
5
5
  var utils_1 = require("./utils");
6
- exports.componentUIDLDecoder = json_type_validation_1.object({
7
- name: json_type_validation_1.withDefault('MyComponent', json_type_validation_1.string()),
6
+ exports.componentUIDLDecoder = (0, json_type_validation_1.object)({
7
+ name: (0, json_type_validation_1.withDefault)('MyComponent', (0, json_type_validation_1.string)()),
8
8
  node: utils_1.elementNodeDecoder,
9
- stateDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.stateDefinitionsDecoder)),
10
- propDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.propDefinitionsDecoder)),
11
- styleSetDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.styleSetDefinitionDecoder)),
12
- importDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.externaldependencyDecoder)),
13
- outputOptions: json_type_validation_1.optional(utils_1.outputOptionsDecoder),
14
- seo: json_type_validation_1.optional(utils_1.componentSeoDecoder),
9
+ stateDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.stateDefinitionsDecoder)),
10
+ propDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.propDefinitionsDecoder)),
11
+ styleSetDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.styleSetDefinitionDecoder)),
12
+ importDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.externaldependencyDecoder)),
13
+ outputOptions: (0, json_type_validation_1.optional)(utils_1.outputOptionsDecoder),
14
+ seo: (0, json_type_validation_1.optional)(utils_1.componentSeoDecoder),
15
15
  });
16
- exports.rootComponentUIDLDecoder = json_type_validation_1.object({
17
- name: json_type_validation_1.withDefault('App', json_type_validation_1.string()),
16
+ exports.rootComponentUIDLDecoder = (0, json_type_validation_1.object)({
17
+ name: (0, json_type_validation_1.withDefault)('App', (0, json_type_validation_1.string)()),
18
18
  node: utils_1.elementNodeDecoder,
19
- stateDefinitions: json_type_validation_1.dict(utils_1.stateDefinitionsDecoder),
20
- propDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.propDefinitionsDecoder)),
21
- importDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.externaldependencyDecoder)),
22
- peerDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.peerDependencyDecoder)),
23
- styleSetDefinitions: json_type_validation_1.optional(json_type_validation_1.dict(utils_1.styleSetDefinitionDecoder)),
24
- outputOptions: json_type_validation_1.optional(utils_1.outputOptionsDecoder),
25
- seo: json_type_validation_1.optional(utils_1.componentSeoDecoder),
26
- designLanguage: json_type_validation_1.optional(json_type_validation_1.object({
27
- tokens: json_type_validation_1.optional(utils_1.designTokensDecoder),
19
+ stateDefinitions: (0, json_type_validation_1.dict)(utils_1.stateDefinitionsDecoder),
20
+ propDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.propDefinitionsDecoder)),
21
+ importDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.externaldependencyDecoder)),
22
+ peerDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.peerDependencyDecoder)),
23
+ styleSetDefinitions: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(utils_1.styleSetDefinitionDecoder)),
24
+ outputOptions: (0, json_type_validation_1.optional)(utils_1.outputOptionsDecoder),
25
+ seo: (0, json_type_validation_1.optional)(utils_1.componentSeoDecoder),
26
+ designLanguage: (0, json_type_validation_1.optional)((0, json_type_validation_1.object)({
27
+ tokens: (0, json_type_validation_1.optional)(utils_1.designTokensDecoder),
28
28
  })),
29
29
  });
30
30
  //# sourceMappingURL=component-decoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-decoder.js","sourceRoot":"","sources":["../../../src/decoders/component-decoder.ts"],"names":[],"mappings":";;;AAAA,uEAOuC;AAEvC,iCAUgB;AAEH,QAAA,oBAAoB,GAA4B,6BAAM,CAAC;IAClE,IAAI,EAAE,kCAAW,CAAC,aAAa,EAAE,6BAAM,EAAE,CAAC;IAC1C,IAAI,EAAE,0BAAkB;IACxB,gBAAgB,EAAE,+BAAQ,CAAC,2BAAI,CAAC,+BAAuB,CAAC,CAAC;IACzD,eAAe,EAAE,+BAAQ,CAAC,2BAAI,CAAC,8BAAsB,CAAC,CAAC;IACvD,mBAAmB,EAAE,+BAAQ,CAAC,2BAAI,CAAC,iCAAyB,CAAC,CAAC;IAC9D,iBAAiB,EAAE,+BAAQ,CAAC,2BAAI,CAAC,iCAAyB,CAAC,CAAC;IAC5D,aAAa,EAAE,+BAAQ,CAAC,4BAAoB,CAAC;IAC7C,GAAG,EAAE,+BAAQ,CAAC,2BAAmB,CAAC;CACnC,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAgC,6BAAM,CAAC;IAC1E,IAAI,EAAE,kCAAW,CAAC,KAAK,EAAE,6BAAM,EAAE,CAAC;IAClC,IAAI,EAAE,0BAAkB;IACxB,gBAAgB,EAAE,2BAAI,CAAC,+BAAuB,CAAC;IAC/C,eAAe,EAAE,+BAAQ,CAAC,2BAAI,CAAC,8BAAsB,CAAC,CAAC;IACvD,iBAAiB,EAAE,+BAAQ,CAAC,2BAAI,CAAC,iCAAyB,CAAC,CAAC;IAC5D,eAAe,EAAE,+BAAQ,CAAC,2BAAI,CAAC,6BAAqB,CAAC,CAAC;IACtD,mBAAmB,EAAE,+BAAQ,CAAC,2BAAI,CAAC,iCAAyB,CAAC,CAAC;IAC9D,aAAa,EAAE,+BAAQ,CAAC,4BAAoB,CAAC;IAC7C,GAAG,EAAE,+BAAQ,CAA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E,IAAA,+BAAQ,EAAC,IAAA,2BAAI,EAAC,6BAAqB,CAAC,CAAC;IACtD,mBAAmB,EAAE,IAAA,+BAAQ,EAAC,IAAA,2BAAI,EAAC,iCAAyB,CAAC,CAAC;IAC9D,aAAa,EAAE,IAAA,+BAAQ,EAAC,4BAAoB,CAAC;IAC7C,GAAG,EAAE,IAAA,+BAAQ,EAAC,2BAAmB,CAAC;IAClC,cAAc,EAAE,IAAA,+BAAQ,EACtB,IAAA,6BAAM,EAAC;QACL,MAAM,EAAE,IAAA,+BAAQ,EAAC,2BAAmB,CAAC;KACtC,CAAC,CACH;CACF,CAAC,CAAA"}
@@ -17,7 +17,7 @@ var CustomCombinators = /** @class */ (function () {
17
17
  else if (json.length === 0) {
18
18
  throw new Error("Component Name cannot be empty");
19
19
  }
20
- throw new Error("Invalid Component name, got " + json);
20
+ throw new Error("Invalid Component name, got ".concat(json));
21
21
  });
22
22
  };
23
23
  CustomCombinators.isValidNavLink = function () {
@@ -26,7 +26,7 @@ var CustomCombinators = /** @class */ (function () {
26
26
  if (json && typeof json === 'string' && navLinkRegex.test(json)) {
27
27
  return json_type_validation_1.Result.ok(json);
28
28
  }
29
- throw new Error("Invalid link attribute, received " + json);
29
+ throw new Error("Invalid link attribute, received ".concat(json));
30
30
  });
31
31
  };
32
32
  CustomCombinators.isValidFileName = function () {
@@ -38,7 +38,7 @@ var CustomCombinators = /** @class */ (function () {
38
38
  else if (json.length === 0) {
39
39
  throw new Error("File Name cannot be empty");
40
40
  }
41
- throw new Error("Invalid File name, received " + json);
41
+ throw new Error("Invalid File name, received ".concat(json));
42
42
  });
43
43
  };
44
44
  CustomCombinators.isValidElementName = function () {
@@ -50,7 +50,7 @@ var CustomCombinators = /** @class */ (function () {
50
50
  else if (json.length === 0) {
51
51
  throw new Error("Name attribute cannot be empty");
52
52
  }
53
- throw new Error("Invalid name attribute, received " + json);
53
+ throw new Error("Invalid name attribute, received ".concat(json));
54
54
  });
55
55
  };
56
56
  return CustomCombinators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CAAkB,GAAzB;QACE,OAAO,IAAI,iBAAiB,CAAS,UAAC,IAAY;YAChD,IAAM,aAAa,GAAG,IAAI,MAAM,CAAC,2BAA2B,CAAC,CAAA;YAC7D,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBAChE,OAAO,6BAAM,CAAC,EAAE,CAAC,IAAI,CAAC,CAAA;aACvB;iBAAM,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;aAClD;YACD,MAAM,IAAI,KAAK,CAAC,2CAAoC,IAAI,CAAE,CAAC,CAAA;QAC7D,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AAjDD,IAiDC;AAjDY,8CAAiB"}
@@ -4,35 +4,35 @@ exports.projectUIDLDecoder = exports.globalProjectValuesDecoder = exports.webMan
4
4
  var json_type_validation_1 = require("@mojotech/json-type-validation");
5
5
  var utils_1 = require("./utils");
6
6
  var component_decoder_1 = require("./component-decoder");
7
- exports.webManifestDecoder = json_type_validation_1.object({
8
- short_name: json_type_validation_1.optional(json_type_validation_1.string()),
9
- name: json_type_validation_1.optional(json_type_validation_1.string()),
10
- icons: json_type_validation_1.optional(json_type_validation_1.array(json_type_validation_1.object({ src: json_type_validation_1.string(), type: json_type_validation_1.string(), sizes: json_type_validation_1.string() }))),
11
- start_url: json_type_validation_1.optional(json_type_validation_1.string()),
12
- background_color: json_type_validation_1.optional(json_type_validation_1.string()),
13
- display: json_type_validation_1.optional(json_type_validation_1.string()),
14
- orientation: json_type_validation_1.optional(json_type_validation_1.string()),
15
- scope: json_type_validation_1.optional(json_type_validation_1.string()),
16
- theme_color: json_type_validation_1.optional(json_type_validation_1.string()),
7
+ exports.webManifestDecoder = (0, json_type_validation_1.object)({
8
+ short_name: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
9
+ name: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
10
+ icons: (0, json_type_validation_1.optional)((0, json_type_validation_1.array)((0, json_type_validation_1.object)({ src: (0, json_type_validation_1.string)(), type: (0, json_type_validation_1.string)(), sizes: (0, json_type_validation_1.string)() }))),
11
+ start_url: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
12
+ background_color: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
13
+ display: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
14
+ orientation: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
15
+ scope: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
16
+ theme_color: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
17
17
  });
18
- exports.globalProjectValuesDecoder = json_type_validation_1.object({
19
- settings: json_type_validation_1.object({
20
- title: json_type_validation_1.string(),
21
- language: json_type_validation_1.string(),
18
+ exports.globalProjectValuesDecoder = (0, json_type_validation_1.object)({
19
+ settings: (0, json_type_validation_1.object)({
20
+ title: (0, json_type_validation_1.string)(),
21
+ language: (0, json_type_validation_1.string)(),
22
22
  }),
23
- customCode: json_type_validation_1.optional(json_type_validation_1.object({
24
- head: json_type_validation_1.optional(json_type_validation_1.string()),
25
- body: json_type_validation_1.optional(json_type_validation_1.string()),
23
+ customCode: (0, json_type_validation_1.optional)((0, json_type_validation_1.object)({
24
+ head: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
25
+ body: (0, json_type_validation_1.optional)((0, json_type_validation_1.string)()),
26
26
  })),
27
- meta: json_type_validation_1.array(json_type_validation_1.dict(json_type_validation_1.string())),
28
- assets: json_type_validation_1.array(utils_1.globalAssetsDecoder),
29
- manifest: json_type_validation_1.optional(exports.webManifestDecoder),
30
- variables: json_type_validation_1.optional(json_type_validation_1.dict(json_type_validation_1.string())),
27
+ meta: (0, json_type_validation_1.array)((0, json_type_validation_1.dict)((0, json_type_validation_1.string)())),
28
+ assets: (0, json_type_validation_1.array)(utils_1.globalAssetsDecoder),
29
+ manifest: (0, json_type_validation_1.optional)(exports.webManifestDecoder),
30
+ variables: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)((0, json_type_validation_1.string)())),
31
31
  });
32
- exports.projectUIDLDecoder = json_type_validation_1.object({
33
- name: json_type_validation_1.string(),
32
+ exports.projectUIDLDecoder = (0, json_type_validation_1.object)({
33
+ name: (0, json_type_validation_1.string)(),
34
34
  globals: exports.globalProjectValuesDecoder,
35
35
  root: component_decoder_1.rootComponentUIDLDecoder,
36
- components: json_type_validation_1.optional(json_type_validation_1.dict(component_decoder_1.componentUIDLDecoder)),
36
+ components: (0, json_type_validation_1.optional)((0, json_type_validation_1.dict)(component_decoder_1.componentUIDLDecoder)),
37
37
  });
38
38
  //# sourceMappingURL=project-decoder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-decoder.js","sourceRoot":"","sources":["../../../src/decoders/project-decoder.ts"],"names":[],"mappings":";;;AAAA,uEAA+F;AAE/F,iCAA6C;AAC7C,yDAAoF;AAEvE,QAAA,kBAAkB,GAAyB,6BAAM,CAAC;IAC7D,UAAU,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IAC9B,IAAI,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IACxB,KAAK,EAAE,+BAAQ,CAAC,4BAAK,CAAC,6BAAM,CAAC,EAAE,GAAG,EAAE,6BAAM,EAAE,EAAE,IAAI,EAAE,6BAAM,EAAE,EAAE,KAAK,EAAE,6BAAM,EAAE,EAAE,CAAC,CAAC,CAAC;IAClF,SAAS,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IAC7B,gBAAgB,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IACpC,OAAO,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IAC3B,WAAW,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAAC;IAC/B,KAAK,EAAE,+BAAQ,CAAC,6BAAM,EAAE,CAA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