@lowdefy/build 4.0.0-alpha.8 → 4.0.0-alpha.9

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 (78) hide show
  1. package/dist/build/addDefaultPages/404.js +1 -1
  2. package/dist/build/addDefaultPages/addDefaultPages.js +1 -1
  3. package/dist/build/buildAuth/buildAuth.js +1 -1
  4. package/dist/build/buildAuth/getPageRoles.js +1 -1
  5. package/dist/build/buildAuth/getProtectedPages.js +1 -1
  6. package/dist/build/buildConnections.js +1 -1
  7. package/dist/build/buildIcons.js +1 -1
  8. package/dist/build/buildMenu.js +1 -1
  9. package/dist/build/buildPages/buildBlock/buildBlock.js +6 -2
  10. package/dist/build/buildPages/buildBlock/buildEvents.js +1 -1
  11. package/dist/build/buildPages/buildBlock/buildRequests.js +1 -1
  12. package/dist/build/buildPages/buildBlock/buildSubBlocks.js +1 -1
  13. package/dist/build/buildPages/buildBlock/countBlockOperators.js +2 -2
  14. package/dist/build/buildPages/buildBlock/countBlockTypes.js +18 -0
  15. package/dist/build/buildPages/buildBlock/moveSkeletonBlocksToArea.js +35 -0
  16. package/dist/build/buildPages/buildBlock/moveSubBlocksToArea.js +1 -1
  17. package/dist/build/buildPages/buildBlock/setBlockId.js +1 -1
  18. package/dist/build/buildPages/buildBlock/validateBlock.js +2 -3
  19. package/dist/build/buildPages/buildPage.js +1 -1
  20. package/dist/build/buildPages/buildPages.js +1 -1
  21. package/dist/build/buildRefs/buildRefs.js +1 -1
  22. package/dist/build/buildRefs/evaluateBuildOperators.js +1 -1
  23. package/dist/build/buildRefs/getConfigFile.js +1 -1
  24. package/dist/build/buildRefs/getRefContent.js +1 -1
  25. package/dist/build/buildRefs/getRefPath.js +1 -1
  26. package/dist/build/buildRefs/getRefsFromFile.js +1 -1
  27. package/dist/build/buildRefs/getUserJavascriptFunction.js +1 -1
  28. package/dist/build/buildRefs/makeRefDefinition.js +1 -1
  29. package/dist/build/buildRefs/parseNunjucks.js +1 -1
  30. package/dist/build/buildRefs/parseRefContent.js +1 -1
  31. package/dist/build/buildRefs/populateRefs.js +1 -1
  32. package/dist/build/buildRefs/recursiveBuild.js +1 -1
  33. package/dist/build/buildRefs/runRefResolver.js +1 -1
  34. package/dist/build/buildRefs/runTransformer.js +1 -1
  35. package/dist/build/buildStyles.js +1 -1
  36. package/dist/build/buildTypes.js +11 -2
  37. package/dist/build/cleanBuildDirectory.js +1 -1
  38. package/dist/build/copyPublicFolder.js +1 -1
  39. package/dist/build/testSchema.js +1 -1
  40. package/dist/build/updateServerPackageJson.js +1 -1
  41. package/dist/build/validateApp.js +1 -1
  42. package/dist/build/validateConfig.js +1 -1
  43. package/dist/build/writeApp.js +1 -1
  44. package/dist/build/writeConfig.js +1 -1
  45. package/dist/build/writeConnections.js +1 -1
  46. package/dist/build/writeGlobal.js +1 -1
  47. package/dist/build/writeMenus.js +1 -1
  48. package/dist/build/writePages.js +1 -1
  49. package/dist/build/writePluginImports/generateImportFile.js +1 -1
  50. package/dist/build/writePluginImports/writeActionImports.js +1 -1
  51. package/dist/build/writePluginImports/writeBlockImports.js +1 -1
  52. package/dist/build/writePluginImports/writeConnectionImports.js +1 -1
  53. package/dist/build/writePluginImports/writeIconImports.js +1 -1
  54. package/dist/build/writePluginImports/writeOperatorImports.js +1 -1
  55. package/dist/build/writePluginImports/writeStyleImports.js +2 -1
  56. package/dist/build/writeRequests.js +1 -1
  57. package/dist/build/writeTypes.js +1 -1
  58. package/dist/defaultTypesMap.json +328 -229
  59. package/dist/index.js +1 -1
  60. package/dist/lowdefySchema.js +3 -2
  61. package/dist/scripts/generateDefaultTypes.js +2 -2
  62. package/dist/scripts/run.js +1 -1
  63. package/dist/test/buildRefs/testBuildRefsAsyncFunction.js +1 -1
  64. package/dist/test/buildRefs/testBuildRefsErrorResolver.js +1 -1
  65. package/dist/test/buildRefs/testBuildRefsNullResolver.js +1 -1
  66. package/dist/test/buildRefs/testBuildRefsParsingResolver.js +1 -1
  67. package/dist/test/buildRefs/testBuildRefsResolver.js +1 -1
  68. package/dist/test/buildRefs/testBuildRefsTransform.js +1 -1
  69. package/dist/test/buildRefs/testBuildRefsTransformIdentity.js +1 -1
  70. package/dist/test/testContext.js +1 -1
  71. package/dist/utils/countOperators.js +1 -1
  72. package/dist/utils/createCheckDuplicateId.js +1 -1
  73. package/dist/utils/createCounter.js +1 -1
  74. package/dist/utils/createPluginTypesMap.js +1 -1
  75. package/dist/utils/formatErrorMessage.js +1 -1
  76. package/dist/utils/readConfigFile.js +1 -1
  77. package/dist/utils/writeBuildArtifact.js +1 -1
  78. package/package.json +29 -29
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable no-console */ /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -232,10 +232,10 @@ export default {
232
232
  type: 'Block "layout" should be an object.'
233
233
  }
234
234
  },
235
- loading: {
235
+ skeleton: {
236
236
  type: 'object',
237
237
  errorMessage: {
238
- type: 'Block "loading" should be an object.'
238
+ type: 'Block "skeleton" should be an object.'
239
239
  }
240
240
  },
241
241
  style: {
@@ -245,6 +245,7 @@ export default {
245
245
  }
246
246
  },
247
247
  visible: {},
248
+ loading: {},
248
249
  blocks: {
249
250
  type: 'array',
250
251
  items: {
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
- Copyright 2020-2021 Lowdefy, Inc
3
+ Copyright 2020-2022 Lowdefy, Inc
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
6
6
  you may not use this file except in compliance with the License.
@@ -59,7 +59,7 @@ async function generateDefaultTypesMap() {
59
59
  };
60
60
  await Promise.all(defaultPackages.map(async (packageName)=>{
61
61
  const { default: types } = await import(`${packageName}/types`);
62
- const version = packageFile.devDependencies[packageName];
62
+ const version = packageFile.devDependencies[packageName] || packageFile.dependencies[packageName];
63
63
  createPluginTypesMap({
64
64
  packageTypes: types,
65
65
  typesMap: defaultTypesMap,
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
- Copyright 2020-2021 Lowdefy, Inc
3
+ Copyright 2020-2022 Lowdefy, Inc
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
6
6
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2021 Lowdefy, Inc
2
+ Copyright 2020-2022 Lowdefy, Inc
3
3
 
4
4
  Licensed under the Apache License, Version 2.0 (the "License");
5
5
  you may not use this file except in compliance with the License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/build",
3
- "version": "4.0.0-alpha.8",
3
+ "version": "4.0.0-alpha.9",
4
4
  "licence": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -49,12 +49,14 @@
49
49
  "test": "yarn node --experimental-vm-modules $(yarn bin jest)"
50
50
  },
51
51
  "dependencies": {
52
- "@lowdefy/ajv": "4.0.0-alpha.8",
53
- "@lowdefy/helpers": "4.0.0-alpha.8",
54
- "@lowdefy/node-utils": "4.0.0-alpha.8",
55
- "@lowdefy/nunjucks": "4.0.0-alpha.8",
56
- "@lowdefy/operators": "4.0.0-alpha.8",
57
- "@lowdefy/operators-js": "4.0.0-alpha.8",
52
+ "@lowdefy/ajv": "4.0.0-alpha.9",
53
+ "@lowdefy/blocks-basic": "4.0.0-alpha.9",
54
+ "@lowdefy/blocks-loaders": "4.0.0-alpha.9",
55
+ "@lowdefy/helpers": "4.0.0-alpha.9",
56
+ "@lowdefy/node-utils": "4.0.0-alpha.9",
57
+ "@lowdefy/nunjucks": "4.0.0-alpha.9",
58
+ "@lowdefy/operators": "4.0.0-alpha.9",
59
+ "@lowdefy/operators-js": "4.0.0-alpha.9",
58
60
  "ajv": "8.9.0",
59
61
  "json5": "2.2.0",
60
62
  "uuid": "8.3.2",
@@ -63,27 +65,25 @@
63
65
  },
64
66
  "devDependencies": {
65
67
  "@jest/globals": "27.5.1",
66
- "@lowdefy/actions-core": "4.0.0-alpha.8",
67
- "@lowdefy/blocks-antd": "4.0.0-alpha.8",
68
- "@lowdefy/blocks-basic": "4.0.0-alpha.8",
69
- "@lowdefy/blocks-color-selectors": "4.0.0-alpha.8",
70
- "@lowdefy/blocks-echarts": "4.0.0-alpha.8",
71
- "@lowdefy/blocks-loaders": "4.0.0-alpha.8",
72
- "@lowdefy/blocks-markdown": "4.0.0-alpha.8",
73
- "@lowdefy/connection-axios-http": "4.0.0-alpha.8",
74
- "@lowdefy/connection-elasticsearch": "4.0.0-alpha.8",
75
- "@lowdefy/connection-google-sheets": "4.0.0-alpha.8",
76
- "@lowdefy/connection-knex": "4.0.0-alpha.8",
77
- "@lowdefy/connection-mongodb": "4.0.0-alpha.8",
78
- "@lowdefy/connection-redis": "4.0.0-alpha.8",
79
- "@lowdefy/connection-sendgrid": "4.0.0-alpha.8",
80
- "@lowdefy/connection-stripe": "4.0.0-alpha.8",
81
- "@lowdefy/operators-change-case": "4.0.0-alpha.8",
82
- "@lowdefy/operators-diff": "4.0.0-alpha.8",
83
- "@lowdefy/operators-mql": "4.0.0-alpha.8",
84
- "@lowdefy/operators-nunjucks": "4.0.0-alpha.8",
85
- "@lowdefy/operators-uuid": "4.0.0-alpha.8",
86
- "@lowdefy/operators-yaml": "4.0.0-alpha.8",
68
+ "@lowdefy/actions-core": "4.0.0-alpha.9",
69
+ "@lowdefy/blocks-antd": "4.0.0-alpha.9",
70
+ "@lowdefy/blocks-color-selectors": "4.0.0-alpha.9",
71
+ "@lowdefy/blocks-echarts": "4.0.0-alpha.9",
72
+ "@lowdefy/blocks-markdown": "4.0.0-alpha.9",
73
+ "@lowdefy/connection-axios-http": "4.0.0-alpha.9",
74
+ "@lowdefy/connection-elasticsearch": "4.0.0-alpha.9",
75
+ "@lowdefy/connection-google-sheets": "4.0.0-alpha.9",
76
+ "@lowdefy/connection-knex": "4.0.0-alpha.9",
77
+ "@lowdefy/connection-mongodb": "4.0.0-alpha.9",
78
+ "@lowdefy/connection-redis": "4.0.0-alpha.9",
79
+ "@lowdefy/connection-sendgrid": "4.0.0-alpha.9",
80
+ "@lowdefy/connection-stripe": "4.0.0-alpha.9",
81
+ "@lowdefy/operators-change-case": "4.0.0-alpha.9",
82
+ "@lowdefy/operators-diff": "4.0.0-alpha.9",
83
+ "@lowdefy/operators-mql": "4.0.0-alpha.9",
84
+ "@lowdefy/operators-nunjucks": "4.0.0-alpha.9",
85
+ "@lowdefy/operators-uuid": "4.0.0-alpha.9",
86
+ "@lowdefy/operators-yaml": "4.0.0-alpha.9",
87
87
  "@swc/cli": "0.1.55",
88
88
  "@swc/core": "1.2.135",
89
89
  "@swc/jest": "0.2.17",
@@ -92,5 +92,5 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "gitHead": "9d56b83cf45e868afe3a1eeba750fe826eb74c8c"
95
+ "gitHead": "98b544eca231bdcfca6c3a8601a891835d5ce571"
96
96
  }