@supernova-studio/pulsar-core 1.0.6 → 1.0.8

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 (217) hide show
  1. package/package.json +2 -2
  2. package/build/browser/pulsar.js +0 -141743
  3. package/build/browser/pulsar.min.js +0 -270
  4. package/build/main/browser-bundle.d.ts +0 -1
  5. package/build/main/browser-bundle.js +0 -17
  6. package/build/main/browser-bundle.js.map +0 -1
  7. package/build/main/engine/ExportEngine.d.ts +0 -17
  8. package/build/main/engine/ExportEngine.js +0 -122
  9. package/build/main/engine/ExportEngine.js.map +0 -1
  10. package/build/main/engine/configuration/ExportConfiguration.d.ts +0 -18
  11. package/build/main/engine/configuration/ExportConfiguration.js +0 -47
  12. package/build/main/engine/configuration/ExportConfiguration.js.map +0 -1
  13. package/build/main/engine/generation/ExportDataProducer.d.ts +0 -15
  14. package/build/main/engine/generation/ExportDataProducer.js +0 -100
  15. package/build/main/engine/generation/ExportDataProducer.js.map +0 -1
  16. package/build/main/engine/generation/queue/ExportDataQueue.d.ts +0 -16
  17. package/build/main/engine/generation/queue/ExportDataQueue.js +0 -72
  18. package/build/main/engine/generation/queue/ExportDataQueue.js.map +0 -1
  19. package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +0 -6
  20. package/build/main/engine/generation/queue/ExportDataQueueOperation.js +0 -36
  21. package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +0 -1
  22. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +0 -7
  23. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +0 -54
  24. package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +0 -1
  25. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +0 -7
  26. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +0 -40
  27. package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +0 -1
  28. package/build/main/engine/generation/requests/ExportDataRequest.d.ts +0 -19
  29. package/build/main/engine/generation/requests/ExportDataRequest.js +0 -55
  30. package/build/main/engine/generation/requests/ExportDataRequest.js.map +0 -1
  31. package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +0 -16
  32. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +0 -57
  33. package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +0 -1
  34. package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +0 -22
  35. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +0 -86
  36. package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +0 -1
  37. package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +0 -16
  38. package/build/main/engine/generation/requests/ExportDataRequestProducer.js +0 -162
  39. package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +0 -1
  40. package/build/main/engine/generation/requests/ExportDataResponse.d.ts +0 -13
  41. package/build/main/engine/generation/requests/ExportDataResponse.js +0 -30
  42. package/build/main/engine/generation/requests/ExportDataResponse.js.map +0 -1
  43. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +0 -14
  44. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +0 -77
  45. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +0 -1
  46. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +0 -13
  47. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +0 -47
  48. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +0 -1
  49. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +0 -13
  50. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +0 -47
  51. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +0 -1
  52. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +0 -11
  53. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +0 -43
  54. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +0 -1
  55. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +0 -13
  56. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +0 -47
  57. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +0 -1
  58. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +0 -13
  59. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +0 -47
  60. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +0 -1
  61. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +0 -13
  62. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +0 -47
  63. package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +0 -1
  64. package/build/main/engine/items/ExportItemProducer.d.ts +0 -14
  65. package/build/main/engine/items/ExportItemProducer.js +0 -70
  66. package/build/main/engine/items/ExportItemProducer.js.map +0 -1
  67. package/build/main/engine/items/construction/ExportItem.d.ts +0 -8
  68. package/build/main/engine/items/construction/ExportItem.js +0 -25
  69. package/build/main/engine/items/construction/ExportItem.js.map +0 -1
  70. package/build/main/engine/items/construction/ExportItemBuilder.d.ts +0 -9
  71. package/build/main/engine/items/construction/ExportItemBuilder.js +0 -47
  72. package/build/main/engine/items/construction/ExportItemBuilder.js.map +0 -1
  73. package/build/main/engine/items/queue/ExportItemQueue.d.ts +0 -16
  74. package/build/main/engine/items/queue/ExportItemQueue.js +0 -70
  75. package/build/main/engine/items/queue/ExportItemQueue.js.map +0 -1
  76. package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +0 -6
  77. package/build/main/engine/items/queue/ExportItemQueueOperation.js +0 -36
  78. package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +0 -1
  79. package/build/main/engine/items/requests/ExportItemRequest.d.ts +0 -16
  80. package/build/main/engine/items/requests/ExportItemRequest.js +0 -68
  81. package/build/main/engine/items/requests/ExportItemRequest.js.map +0 -1
  82. package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +0 -8
  83. package/build/main/engine/items/requests/ExportItemRequestProducer.js +0 -24
  84. package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +0 -1
  85. package/build/main/engine/items/requests/ExportItemResponse.d.ts +0 -9
  86. package/build/main/engine/items/requests/ExportItemResponse.js +0 -25
  87. package/build/main/engine/items/requests/ExportItemResponse.js.map +0 -1
  88. package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +0 -7
  89. package/build/main/engine/items/requests/ExportItemResponseProducer.js +0 -45
  90. package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +0 -1
  91. package/build/main/engine/loaders/BlueprintLoader.d.ts +0 -9
  92. package/build/main/engine/loaders/BlueprintLoader.js +0 -55
  93. package/build/main/engine/loaders/BlueprintLoader.js.map +0 -1
  94. package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +0 -16
  95. package/build/main/engine/writing/queue/ExportWriterQueue.js +0 -70
  96. package/build/main/engine/writing/queue/ExportWriterQueue.js.map +0 -1
  97. package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +0 -6
  98. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +0 -36
  99. package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +0 -1
  100. package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +0 -14
  101. package/build/main/engine/writing/requests/ExportWriterRequest.js +0 -40
  102. package/build/main/engine/writing/requests/ExportWriterRequest.js.map +0 -1
  103. package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +0 -8
  104. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +0 -30
  105. package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +0 -1
  106. package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +0 -9
  107. package/build/main/engine/writing/requests/ExportWriterResponse.js +0 -25
  108. package/build/main/engine/writing/requests/ExportWriterResponse.js.map +0 -1
  109. package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +0 -7
  110. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +0 -40
  111. package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +0 -1
  112. package/build/main/engine/writing/writers/ExportItemWriter.d.ts +0 -14
  113. package/build/main/engine/writing/writers/ExportItemWriter.js +0 -70
  114. package/build/main/engine/writing/writers/ExportItemWriter.js.map +0 -1
  115. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +0 -9
  116. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +0 -63
  117. package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +0 -1
  118. package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +0 -4
  119. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +0 -29
  120. package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +0 -1
  121. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +0 -5
  122. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +0 -59
  123. package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +0 -1
  124. package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +0 -5
  125. package/build/main/engine/writing/writers/memory/ExportWriterStore.js +0 -33
  126. package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +0 -1
  127. package/build/main/exports.d.ts +0 -4
  128. package/build/main/exports.js +0 -13
  129. package/build/main/exports.js.map +0 -1
  130. package/build/main/index.d.ts +0 -1
  131. package/build/main/index.js +0 -14
  132. package/build/main/index.js.map +0 -1
  133. package/build/main/model/dsm/DSMReferenceStore.d.ts +0 -28
  134. package/build/main/model/dsm/DSMReferenceStore.js +0 -100
  135. package/build/main/model/dsm/DSMReferenceStore.js.map +0 -1
  136. package/build/main/model/exporters/Exporter.d.ts +0 -50
  137. package/build/main/model/exporters/Exporter.js +0 -88
  138. package/build/main/model/exporters/Exporter.js.map +0 -1
  139. package/build/main/model/maps/ExporterMapBlueprint.d.ts +0 -12
  140. package/build/main/model/maps/ExporterMapBlueprint.js +0 -39
  141. package/build/main/model/maps/ExporterMapBlueprint.js.map +0 -1
  142. package/build/main/model/sources/ExporterSource.d.ts +0 -25
  143. package/build/main/model/sources/ExporterSource.js +0 -58
  144. package/build/main/model/sources/ExporterSource.js.map +0 -1
  145. package/build/main/pulsar/Pulsar.d.ts +0 -105
  146. package/build/main/pulsar/Pulsar.js +0 -351
  147. package/build/main/pulsar/Pulsar.js.map +0 -1
  148. package/build/main/pulsar/PulsarInterface.d.ts +0 -152
  149. package/build/main/pulsar/PulsarInterface.js +0 -37
  150. package/build/main/pulsar/PulsarInterface.js.map +0 -1
  151. package/build/main/pulsar/PulsarStaticAnalysis.d.ts +0 -23
  152. package/build/main/pulsar/PulsarStaticAnalysis.js +0 -47
  153. package/build/main/pulsar/PulsarStaticAnalysis.js.map +0 -1
  154. package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +0 -10
  155. package/build/main/pulsar/PulsarStaticAnalysisInterface.js +0 -10
  156. package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +0 -1
  157. package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +0 -16
  158. package/build/main/pulsar/managers/PulsarBlueprintManager.js +0 -76
  159. package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +0 -1
  160. package/build/main/pulsar/managers/PulsarCIManager.d.ts +0 -25
  161. package/build/main/pulsar/managers/PulsarCIManager.js +0 -220
  162. package/build/main/pulsar/managers/PulsarCIManager.js.map +0 -1
  163. package/build/main/pulsar/managers/PulsarCodeManager.d.ts +0 -24
  164. package/build/main/pulsar/managers/PulsarCodeManager.js +0 -180
  165. package/build/main/pulsar/managers/PulsarCodeManager.js.map +0 -1
  166. package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +0 -16
  167. package/build/main/pulsar/managers/PulsarConfigurationManager.js +0 -48
  168. package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +0 -1
  169. package/build/main/pulsar/managers/PulsarExporterManager.d.ts +0 -25
  170. package/build/main/pulsar/managers/PulsarExporterManager.js +0 -121
  171. package/build/main/pulsar/managers/PulsarExporterManager.js.map +0 -1
  172. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +0 -16
  173. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +0 -276
  174. package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +0 -1
  175. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +0 -7
  176. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +0 -63
  177. package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +0 -1
  178. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +0 -5
  179. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +0 -28
  180. package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +0 -1
  181. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +0 -11
  182. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +0 -99
  183. package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +0 -1
  184. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +0 -9
  185. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +0 -81
  186. package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +0 -1
  187. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +0 -20
  188. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +0 -194
  189. package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +0 -1
  190. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +0 -12
  191. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +0 -143
  192. package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +0 -1
  193. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +0 -12
  194. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +0 -115
  195. package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +0 -1
  196. package/build/main/tests/TestConfiguration.d.ts +0 -9
  197. package/build/main/tests/TestConfiguration.js +0 -25
  198. package/build/main/tests/TestConfiguration.js.map +0 -1
  199. package/build/main/tests/casebuilders/ci.d.ts +0 -12
  200. package/build/main/tests/casebuilders/ci.js +0 -38
  201. package/build/main/tests/casebuilders/ci.js.map +0 -1
  202. package/build/main/tests/casebuilders/configuration.d.ts +0 -5
  203. package/build/main/tests/casebuilders/configuration.js +0 -25
  204. package/build/main/tests/casebuilders/configuration.js.map +0 -1
  205. package/build/main/tests/casebuilders/dsm.d.ts +0 -7
  206. package/build/main/tests/casebuilders/dsm.js +0 -57
  207. package/build/main/tests/casebuilders/dsm.js.map +0 -1
  208. package/build/main/tests/casebuilders/modelObjects.d.ts +0 -13
  209. package/build/main/tests/casebuilders/modelObjects.js +0 -120
  210. package/build/main/tests/casebuilders/modelObjects.js.map +0 -1
  211. package/build/main/tools/Logger.d.ts +0 -27
  212. package/build/main/tools/Logger.js +0 -98
  213. package/build/main/tools/Logger.js.map +0 -1
  214. package/build/main/tools/LoggerDefaultMessages.d.ts +0 -13
  215. package/build/main/tools/LoggerDefaultMessages.js +0 -41
  216. package/build/main/tools/LoggerDefaultMessages.js.map +0 -1
  217. package/build/tsconfig.tsbuildinfo +0 -2829
@@ -1,100 +0,0 @@
1
- "use strict";
2
- //
3
- // DSMReferenceStore.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.DSMReferenceStore = void 0;
11
- const ExporterSource_1 = require("../sources/ExporterSource");
12
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
13
- // MARK: - Interpreter Definition
14
- class DSMReferenceStore {
15
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
16
- // MARK: - Constructor
17
- constructor(data) {
18
- // No validation, as it is expected that data already have correct structure
19
- this.components = data.components;
20
- this.componentGroups = data.componentGroups;
21
- this.tokenGroups = data.tokenGroups;
22
- this.tokenTypes = data.tokenTypes;
23
- this.themes = data.themes;
24
- // Add "none" key to arrays that are empty
25
- if (this.components.length === 0) {
26
- this.components.push(this.emptyState());
27
- }
28
- if (this.componentGroups.length === 0) {
29
- this.componentGroups.push(this.emptyState());
30
- }
31
- if (this.tokenGroups.length === 0) {
32
- this.tokenGroups.push(this.emptyState());
33
- }
34
- if (this.tokenTypes.length === 0) {
35
- this.tokenTypes.push(this.emptyState());
36
- }
37
- if (this.themes.length === 0) {
38
- this.themes.push(this.emptyState());
39
- }
40
- // Construct contexts statically
41
- this.contexts = [
42
- {
43
- id: ExporterSource_1.PLSExporterSourceContextType.generic,
44
- name: 'Generic'
45
- },
46
- {
47
- id: ExporterSource_1.PLSExporterSourceContextType.component,
48
- name: 'Components'
49
- },
50
- {
51
- id: ExporterSource_1.PLSExporterSourceContextType.componentGroup,
52
- name: 'Component Groups'
53
- },
54
- {
55
- id: ExporterSource_1.PLSExporterSourceContextType.tokenGroup,
56
- name: 'Token Group'
57
- },
58
- {
59
- id: ExporterSource_1.PLSExporterSourceContextType.tokenType,
60
- name: 'Token Type'
61
- },
62
- {
63
- id: ExporterSource_1.PLSExporterSourceContextType.theme,
64
- name: 'Themes'
65
- }
66
- ];
67
- }
68
- emptyState() {
69
- return {
70
- id: 'none',
71
- name: 'None'
72
- };
73
- }
74
- executableComponentGroups() {
75
- return this.retrieveFixingEmptyState(this.componentGroups);
76
- }
77
- executableComponents() {
78
- return this.retrieveFixingEmptyState(this.components);
79
- }
80
- executableTokenGroups() {
81
- return this.retrieveFixingEmptyState(this.tokenGroups);
82
- }
83
- executableTokenTypes() {
84
- return this.retrieveFixingEmptyState(this.tokenTypes);
85
- }
86
- executableThemes() {
87
- return this.retrieveFixingEmptyState(this.themes);
88
- }
89
- retrieveFixingEmptyState(array) {
90
- return this.arrayIsEmptyState(array) ? [] : array;
91
- }
92
- arrayIsEmptyState(array) {
93
- if (array.length === 1 && array[0].id === 'none') {
94
- return true;
95
- }
96
- return false;
97
- }
98
- }
99
- exports.DSMReferenceStore = DSMReferenceStore;
100
- //# sourceMappingURL=DSMReferenceStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DSMReferenceStore.js","sourceRoot":"","sources":["../../../../src/model/dsm/DSMReferenceStore.ts"],"names":[],"mappings":"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"}
@@ -1,50 +0,0 @@
1
- import { PLSExporterSource } from '../sources/ExporterSource';
2
- import { PLSExporterMapBlueprint } from './../maps/ExporterMapBlueprint';
3
- export declare type PLSExporterModel = {
4
- id: string;
5
- name: string;
6
- description: string;
7
- author?: string;
8
- organization?: string;
9
- icon?: string;
10
- homepage: string;
11
- source_dir: string;
12
- version: string;
13
- config?: {
14
- sources?: string;
15
- output?: string;
16
- };
17
- engines?: {
18
- blazar?: string;
19
- supernova?: string;
20
- };
21
- tags: Array<string>;
22
- };
23
- export declare class PLSExporter {
24
- id: string;
25
- name: string;
26
- description: string;
27
- author: string | null;
28
- organization: string | null;
29
- icon: string | null;
30
- homepage: string;
31
- sourceDirectory: string;
32
- version: string;
33
- sourceConfigFilePath: string | null;
34
- outputConfigFilePath: string | null;
35
- blazarEngineVersion: string | null;
36
- supernovaEngineVersion: string | null;
37
- tags: Array<string>;
38
- sources: Map<string, PLSExporterSource>;
39
- outputs: Array<PLSExporterMapBlueprint>;
40
- constructor(data: PLSExporterModel);
41
- linkSources(sources: Array<PLSExporterSource>): void;
42
- linkOutputs(outputs: Array<PLSExporterMapBlueprint>): void;
43
- sourceById(sourceId: string): PLSExporterSource | null;
44
- storeNewSource(source: PLSExporterSource): void;
45
- removeSource(source: PLSExporterSource): void;
46
- removeSourceById(sourceId: string): void;
47
- storeSources(sources: Array<PLSExporterSource>): void;
48
- removeSources(sources: Array<PLSExporterSource>): void;
49
- moveBlueprintSource(oldId: string, newId: string, newPath: string | null): void;
50
- }
@@ -1,88 +0,0 @@
1
- "use strict";
2
- //
3
- // Exporter.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PLSExporter = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Exporter Object
13
- class PLSExporter {
14
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
15
- // MARK: - Constructor
16
- constructor(data) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
18
- // No validation, as it is expected that data already have correct structure
19
- this.id = data.id;
20
- this.name = data.name;
21
- this.description = data.description;
22
- this.author = (_a = data.author) !== null && _a !== void 0 ? _a : null;
23
- this.organization = (_b = data.organization) !== null && _b !== void 0 ? _b : null;
24
- this.homepage = (_c = data.homepage) !== null && _c !== void 0 ? _c : null;
25
- this.icon = (_d = data.icon) !== null && _d !== void 0 ? _d : null;
26
- this.sourceDirectory = data.source_dir;
27
- this.version = data.version;
28
- this.tags = data.tags;
29
- this.sourceConfigFilePath = (_f = (_e = data.config) === null || _e === void 0 ? void 0 : _e.sources) !== null && _f !== void 0 ? _f : null;
30
- this.outputConfigFilePath = (_h = (_g = data.config) === null || _g === void 0 ? void 0 : _g.output) !== null && _h !== void 0 ? _h : null;
31
- this.blazarEngineVersion = (_k = (_j = data.engines) === null || _j === void 0 ? void 0 : _j.blazar) !== null && _k !== void 0 ? _k : null;
32
- this.supernovaEngineVersion = (_m = (_l = data.engines) === null || _l === void 0 ? void 0 : _l.supernova) !== null && _m !== void 0 ? _m : null;
33
- this.sources = new Map();
34
- this.outputs = new Array();
35
- }
36
- linkSources(sources) {
37
- for (let source of sources) {
38
- this.sources.set(source.id, source);
39
- }
40
- }
41
- linkOutputs(outputs) {
42
- for (let output of outputs) {
43
- this.outputs.push(output);
44
- }
45
- }
46
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
47
- // MARK: - Convenience
48
- sourceById(sourceId) {
49
- var _a;
50
- return (_a = this.sources.get(sourceId)) !== null && _a !== void 0 ? _a : null;
51
- }
52
- storeNewSource(source) {
53
- // Only add source if doesn't exist already
54
- if (this.sources.get(source.id)) {
55
- return;
56
- }
57
- this.sources.set(source.id, source);
58
- }
59
- removeSource(source) {
60
- this.sources.delete(source.id);
61
- }
62
- removeSourceById(sourceId) {
63
- this.sources.delete(sourceId);
64
- }
65
- storeSources(sources) {
66
- sources.forEach(s => {
67
- this.storeNewSource(s);
68
- });
69
- }
70
- removeSources(sources) {
71
- sources.forEach(s => {
72
- this.removeSource(s);
73
- });
74
- }
75
- moveBlueprintSource(oldId, newId, newPath) {
76
- // Find if there is loaded source, otherwise, silently fail
77
- if (!this.sources.get(oldId)) {
78
- return;
79
- }
80
- // Find the loaded source and re-assign it with new ID
81
- let sourceObject = this.sources.get(oldId);
82
- this.sources.delete(oldId);
83
- this.sources.set(newId, sourceObject);
84
- sourceObject.path = newPath;
85
- }
86
- }
87
- exports.PLSExporter = PLSExporter;
88
- //# sourceMappingURL=Exporter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exporter.js","sourceRoot":"","sources":["../../../../src/model/exporters/Exporter.ts"],"names":[],"mappings":"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"}
@@ -1,12 +0,0 @@
1
- export declare type PLSExporterMapBlueprintModel = {
2
- invoke: string;
3
- write_to?: string;
4
- write_using?: string;
5
- };
6
- export declare class PLSExporterMapBlueprint {
7
- invoke: string;
8
- write_to: string | null;
9
- write_using: string | null;
10
- constructor(data: PLSExporterMapBlueprintModel);
11
- toObject(): PLSExporterMapBlueprintModel;
12
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- //
3
- // ExporterMapBlueprint.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PLSExporterMapBlueprint = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Interpreter Definition
13
- class PLSExporterMapBlueprint {
14
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
15
- // MARK: - Constructor
16
- constructor(data) {
17
- var _a, _b;
18
- // Construct base map entry
19
- this.invoke = data.invoke;
20
- this.write_to = (_a = data.write_to) !== null && _a !== void 0 ? _a : null;
21
- this.write_using = (_b = data.write_using) !== null && _b !== void 0 ? _b : null;
22
- }
23
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
24
- // MARK: - Serialization
25
- toObject() {
26
- let data = {
27
- invoke: this.invoke
28
- };
29
- if (this.write_using) {
30
- data['write_using'] = this.write_using;
31
- }
32
- if (this.write_to) {
33
- data['write_to'] = this.write_to;
34
- }
35
- return data;
36
- }
37
- }
38
- exports.PLSExporterMapBlueprint = PLSExporterMapBlueprint;
39
- //# sourceMappingURL=ExporterMapBlueprint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExporterMapBlueprint.js","sourceRoot":"","sources":["../../../../src/model/maps/ExporterMapBlueprint.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,2BAA2B;AAC3B,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAcF,8GAA8G;AAC9G,iCAAiC;AAEjC,MAAa,uBAAuB;IASlC,0GAA0G;IAC1G,sBAAsB;IAEtB,YAAY,IAAkC;;QAC5C,2BAA2B;QAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,QAAQ,SAAG,IAAI,CAAC,QAAQ,mCAAI,IAAI,CAAC;QACtC,IAAI,CAAC,WAAW,SAAG,IAAI,CAAC,WAAW,mCAAI,IAAI,CAAC;IAC9C,CAAC;IAED,0GAA0G;IAC1G,wBAAwB;IAExB,QAAQ;QACN,IAAI,IAAI,GAAG;YACT,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;QAEF,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;SACxC;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC;SAClC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AArCD,0DAqCC"}
@@ -1,25 +0,0 @@
1
- export declare enum PLSExporterSourceContextType {
2
- generic = "generic",
3
- component = "component",
4
- componentGroup = "componentGroup",
5
- tokenType = "tokenType",
6
- tokenGroup = "tokenGroup",
7
- theme = "theme"
8
- }
9
- export declare type PLSExporterBlueprintModel = {
10
- targets_ci?: boolean;
11
- targets_sandbox?: boolean;
12
- targets_documentation?: boolean;
13
- context?: PLSExporterSourceContextType;
14
- };
15
- export declare class PLSExporterSource {
16
- id: string;
17
- path: string;
18
- targetsCI: boolean;
19
- targetsSandbox: boolean;
20
- targetsDocumentation: boolean;
21
- context: PLSExporterSourceContextType;
22
- content: string;
23
- constructor(id: string, path: string | null, content: string);
24
- loadBlueprintConfiguration(data: PLSExporterBlueprintModel): void;
25
- }
@@ -1,58 +0,0 @@
1
- "use strict";
2
- //
3
- // Blueprint.ts
4
- // Pulsar
5
- //
6
- // Created by Jiri Trecak.
7
- // Copyright © 2020 Supernova. All rights reserved.
8
- //
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.PLSExporterSource = exports.PLSExporterSourceContextType = void 0;
11
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
12
- // MARK: - Imports
13
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
14
- // MARK: - Definitions
15
- var PLSExporterSourceContextType;
16
- (function (PLSExporterSourceContextType) {
17
- // General-purpose
18
- PLSExporterSourceContextType["generic"] = "generic";
19
- // Components
20
- PLSExporterSourceContextType["component"] = "component";
21
- PLSExporterSourceContextType["componentGroup"] = "componentGroup";
22
- // Tokens
23
- PLSExporterSourceContextType["tokenType"] = "tokenType";
24
- PLSExporterSourceContextType["tokenGroup"] = "tokenGroup";
25
- // Themes
26
- PLSExporterSourceContextType["theme"] = "theme";
27
- })(PLSExporterSourceContextType = exports.PLSExporterSourceContextType || (exports.PLSExporterSourceContextType = {}));
28
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
29
- // MARK: - Blueprint Object
30
- class PLSExporterSource {
31
- // --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
32
- // MARK: - Constructor
33
- constructor(id, path, content) {
34
- this.id = id;
35
- this.path = path !== null && path !== void 0 ? path : null; // Null denotes root of the source directory
36
- this.content = content;
37
- this.targetsCI = true;
38
- this.targetsDocumentation = false;
39
- this.targetsSandbox = false;
40
- this.context = PLSExporterSourceContextType.generic;
41
- }
42
- loadBlueprintConfiguration(data) {
43
- if (data.targets_ci) {
44
- this.targetsCI = data.targets_ci;
45
- }
46
- if (data.targets_sandbox) {
47
- this.targetsSandbox = data.targets_sandbox;
48
- }
49
- if (data.targets_documentation) {
50
- this.targetsDocumentation = data.targets_documentation;
51
- }
52
- if (data.context) {
53
- this.context = data.context;
54
- }
55
- }
56
- }
57
- exports.PLSExporterSource = PLSExporterSource;
58
- //# sourceMappingURL=ExporterSource.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExporterSource.js","sourceRoot":"","sources":["../../../../src/model/sources/ExporterSource.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,gBAAgB;AAChB,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,8GAA8G;AAC9G,sBAAsB;AAEtB,IAAY,4BAcX;AAdD,WAAY,4BAA4B;IACtC,kBAAkB;IAClB,mDAAmB,CAAA;IAEnB,aAAa;IACb,uDAAuB,CAAA;IACvB,iEAAiC,CAAA;IAEjC,SAAS;IACT,uDAAuB,CAAA;IACvB,yDAAyB,CAAA;IAEzB,SAAS;IACT,+CAAe,CAAA;AACjB,CAAC,EAdW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAcvC;AAUD,8GAA8G;AAC9G,2BAA2B;AAE3B,MAAa,iBAAiB;IAe5B,0GAA0G;IAC1G,sBAAsB;IAEtB,YAAY,EAAU,EAAE,IAAmB,EAAE,OAAe;QAC1D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAC,CAAC,4CAA4C;QACtE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC;QAClC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;QAE5B,IAAI,CAAC,OAAO,GAAG,4BAA4B,CAAC,OAAO,CAAC;IACtD,CAAC;IAED,0BAA0B,CAAC,IAA+B;QACxD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC;SAClC;QACD,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC;SAC5C;QACD,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC9B,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAC;SACxD;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;SAC7B;IACH,CAAC;CACF;AA5CD,8CA4CC"}
@@ -1,105 +0,0 @@
1
- import { PLSExporter } from '../model/exporters/Exporter';
2
- import { PLSEngineExporterDetail, PLSEngineExporterProcessingResult, PLSPulsarInterface, PLSEngineSourceDetail, PLSEngineSourceProcessingResult } from './PulsarInterface';
3
- import { BLZHighlightEngineToken, DSMBridgeConfiguration } from '@supernova-studio/pulsar-language';
4
- import { BLZAutocompleteEngineApplicationResult, BLZAutocompleteEngineSuggestion } from '@supernova-studio/pulsar-language/build/main/tools/autocomplete/AutocompleteEngine';
5
- import { DSMReferenceStore } from '../model/dsm/DSMReferenceStore';
6
- export declare enum PLSPulsarEngineState {
7
- waiting = "waiting",
8
- loading = "loading",
9
- ready = "ready"
10
- }
11
- export declare enum PLSPulsarExporterMode {
12
- ci = "ci",
13
- sandbox = "sandbox",
14
- docs = "docs"
15
- }
16
- export declare class PLSPulsar implements PLSPulsarInterface {
17
- private state;
18
- private exporter;
19
- private sourceManager;
20
- private ciManager;
21
- private codeManager;
22
- private exporterManager;
23
- private configurationManager;
24
- constructor();
25
- /** Initiates Pulsar library from existing exporter. This is only for internal use (especially for tests) and doesn't validate integrity of the exporter, and shouldn't not be used in production! */
26
- initiateWithExporter(exporter: PLSExporter): Promise<PLSEngineExporterDetail>;
27
- /** Initiates Pulsar library from a local filepath. Note that this has to always be called before using the library, as all calls require the exporter to be present. This fully handles loading and validation of the package, including download of the package, unzipping and more */
28
- initiateWithLocalURL(url: string): Promise<PLSEngineExporterDetail>;
29
- /** Initiates Pulsar library from remote S3 URL. Note that this has to always be called before using the library, as all calls require the exporter to be present. This fully handles loading and validation of the package, including download of the package, unzipping and more */
30
- initiateWithPackageS3URL(s3URL: string): Promise<PLSEngineExporterDetail>;
31
- /** Initiates Pulsar library from github URL. Note that this has to always be called before using the library, as all calls require the exporter to be present. This fully handles loading and validation of the package, including download of the package, unzipping and more */
32
- initiateWithPackageGitHubURL(githubURL: string): Promise<PLSEngineExporterDetail>;
33
- /** Initiates Pulsar library from JSON blob or already parsed object. Note that this has to always be called before using the library, as all calls require the exporter to be present. This fully handles loading and validation of the package */
34
- initiateWithPackageBlob(blob: Object | string): Promise<PLSEngineExporterDetail>;
35
- private preInit;
36
- private postInit;
37
- /** Retrieve underlaying exporter object. Not to be used on the client, as it exposes other properties of exporter that are not to be consumed */
38
- getExporterBackingObject(): PLSExporter;
39
- /** Retrieve details about currently loaded exporter. Note that this only retrieves settings of the exporter, to request blueprints and mapping, use separate functions */
40
- getExporterDetail(): PLSEngineExporterDetail;
41
- /** Update exporter name. Name must be non-empty and contain at least 6 characters */
42
- updateExporterName(name: string): PLSEngineExporterDetail;
43
- /** Update exporter description. Description must be non-empty and contain at least 20 characters */
44
- updateExporterDescription(description: string): PLSEngineExporterDetail;
45
- /** Update exporter version. Exporter version needs to follow standard major.minor.patch versioning. Patch is optional */
46
- updateExporterVersion(version: string): PLSEngineExporterDetail;
47
- /** Update exporter author. Author can be empty. If non-empty, only alpha-numerics are allowed */
48
- updateExporterAuthor(author: string | null): PLSEngineExporterDetail;
49
- /** Update exporter homepage. Homepage can be empty. If non-empty, validates the URL */
50
- updateExporterHomepage(homepage: string): PLSEngineExporterDetail;
51
- /** Update exporter icon. Not available at the moment */
52
- updateExporterIcon(icon: string): PLSEngineExporterDetail;
53
- /** Update exporter tags. Each tag must consist of letters and numbers */
54
- updateExporterTags(tags: string[]): PLSEngineExporterDetail;
55
- /** Get exporter configuration JSON */
56
- getExporterConfigurationJSON(): string;
57
- /** Get source configuration JSON */
58
- getSourceConfigurationJSON(): string;
59
- /** Get output configuration JSON */
60
- getOutputConfigurationJSON(): string;
61
- /** Update exporter configuration JSON */
62
- updateExporterConfigurationJSON(content: string): void;
63
- /** Update source configuration JSON */
64
- updateSourceConfigurationJSON(content: string): void;
65
- /** Update output configuration JSON */
66
- updateOutputConfigurationJSON(content: string): void;
67
- /** Get all blueprints associated with loaded exporter */
68
- getSources(): Array<PLSEngineSourceDetail>;
69
- /** Get specific source associated with loaded exporter */
70
- getSourceById(blueprintId: string): PLSEngineSourceDetail;
71
- /** Create new source for loaded exporter. Source comes with default name and code and uses generic context */
72
- createNewSource(): PLSEngineSourceDetail;
73
- /** Delete specified source. Throws error when source is not found */
74
- deleteSourceById(blueprintId: string): void;
75
- /** Update source location. Id must be non-empty and contain at least 3 characters. It must also be unique in scope of the entire exporter */
76
- updateSourceLocation(oldSourceId: string, newSourceId: string, newPath: string): PLSEngineSourceDetail;
77
- /** Get reference store containing description of all elements in the DSM, including all context categories */
78
- getDSMContextStore(dsmBridgeConfig: DSMBridgeConfiguration): Promise<DSMReferenceStore>;
79
- /** Get reference store containing description of all elements in the DSM, including all context categories. Note this can be called as static method to see the store content regardless of the exporter */
80
- static getDSMContextStoreStatic(dsmBridgeConfig: DSMBridgeConfiguration): Promise<DSMReferenceStore>;
81
- /** Execute source code and retrieve the resulting code. This also retrieves any emitted extra files. Throws error when source is not found */
82
- executeSourceById(blueprintId: string, dsmBridgeConfig: DSMBridgeConfiguration, contextKey: string, contextId: string): Promise<PLSEngineSourceProcessingResult>;
83
- /** Update source code definition. Overview can be empty. Throws error when source is not found */
84
- updateSourceCodeDefinitionForSourceId(sourceId: string, definition: string): void;
85
- /** Suggest next characters, words or snippets to be inserted into blazar code as user types */
86
- suggestNextFromSourceCode(code: string, selectionLocation: number, selectionLength: number): Array<BLZAutocompleteEngineSuggestion>;
87
- /** Apply autocompletion result to specified blazar code */
88
- applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply: BLZAutocompleteEngineSuggestion): BLZAutocompleteEngineApplicationResult;
89
- /** Compute highlight tokens for the provided blazar code */
90
- suggestHighlightFromSourceCode(code: string): Array<BLZHighlightEngineToken>;
91
- /** Serialize entire exporter into single javascript object. Returns object representation */
92
- getExporterBlob(): Object;
93
- /** Serialize entire exporter into single javascript object. Returns JSON-string representation */
94
- getExporterBlobJSONSerialized(): string;
95
- /** Execute entire exporter and retrieve all files produced as a result of this export */
96
- executeExporter(dsmBridgeConfig: DSMBridgeConfiguration, exportMode?: PLSPulsarExporterMode): Promise<PLSEngineExporterProcessingResult>;
97
- /** Execute exporter in sandbox mode for a specific component */
98
- executeExporterForSingleSandboxedComponent(dsmBridgeConfig: DSMBridgeConfiguration, sandboxComponentId: string, serializedSandboxData: string): Promise<PLSEngineExporterProcessingResult>;
99
- /** Retrieve intermediate output of exporter in progress */
100
- retrieveRunningExporterState(): PLSEngineExporterProcessingResult | null;
101
- private validateCanManipulateState;
102
- private convertExporterToDetail;
103
- private convertSourceToDetail;
104
- private convertSourcesToDetails;
105
- }