@supernova-studio/pulsar-core 1.0.10 → 1.0.12
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.
- package/build/browser/pulsar.js +2011 -2123
- package/build/browser/pulsar.min.js +3 -3
- package/build/main/browser-bundle.js +7 -8
- package/build/main/browser-bundle.js.map +1 -1
- package/build/main/engine/ExportEngine.d.ts +14 -14
- package/build/main/engine/ExportEngine.js +6 -6
- package/build/main/engine/ExportEngine.js.map +1 -1
- package/build/main/engine/configuration/ExportConfiguration.d.ts +10 -10
- package/build/main/engine/configuration/ExportConfiguration.js +8 -8
- package/build/main/engine/configuration/ExportConfiguration.js.map +1 -1
- package/build/main/engine/generation/ExportDataProducer.d.ts +13 -13
- package/build/main/engine/generation/ExportDataProducer.js +12 -12
- package/build/main/engine/generation/ExportDataProducer.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueue.d.ts +11 -11
- package/build/main/engine/generation/queue/ExportDataQueue.js +5 -5
- package/build/main/engine/generation/queue/ExportDataQueue.js.map +1 -1
- package/build/main/engine/generation/queue/ExportDataQueueOperation.d.ts +5 -5
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js +4 -4
- package/build/main/engine/generation/queue/ExportDataQueueOperation.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js +7 -7
- package/build/main/engine/generation/requests/ExportDataEmittedResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.d.ts +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js +5 -5
- package/build/main/engine/generation/requests/ExportDataPrimaryResponseProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequest.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequest.js +8 -8
- package/build/main/engine/generation/requests/ExportDataRequest.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.d.ts +6 -6
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js +12 -12
- package/build/main/engine/generation/requests/ExportDataRequestDataStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.d.ts +8 -8
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js +19 -19
- package/build/main/engine/generation/requests/ExportDataRequestNameStore.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataRequestProducer.d.ts +15 -15
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js +27 -40
- package/build/main/engine/generation/requests/ExportDataRequestProducer.js.map +1 -1
- package/build/main/engine/generation/requests/ExportDataResponse.d.ts +12 -12
- package/build/main/engine/generation/requests/ExportDataResponse.js +4 -4
- package/build/main/engine/generation/requests/ExportDataResponse.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.d.ts +11 -11
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js +9 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestBlueprint.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponent.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMComponentGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMGeneric.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTheme.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenGroup.js.map +1 -1
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.d.ts +10 -10
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js +3 -3
- package/build/main/engine/generation/requests/specific/dsm/ExportDataRequestDSMTokenType.js.map +1 -1
- package/build/main/engine/items/ExportItemProducer.d.ts +12 -12
- package/build/main/engine/items/ExportItemProducer.js +7 -7
- package/build/main/engine/items/ExportItemProducer.js.map +1 -1
- package/build/main/engine/items/construction/ExportItem.d.ts +4 -4
- package/build/main/engine/items/construction/ExportItem.js +4 -4
- package/build/main/engine/items/construction/ExportItem.js.map +1 -1
- package/build/main/engine/items/construction/ExportItemBuilder.d.ts +7 -7
- package/build/main/engine/items/construction/ExportItemBuilder.js +7 -11
- package/build/main/engine/items/construction/ExportItemBuilder.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueue.d.ts +11 -11
- package/build/main/engine/items/queue/ExportItemQueue.js +5 -5
- package/build/main/engine/items/queue/ExportItemQueue.js.map +1 -1
- package/build/main/engine/items/queue/ExportItemQueueOperation.d.ts +5 -5
- package/build/main/engine/items/queue/ExportItemQueueOperation.js +3 -3
- package/build/main/engine/items/queue/ExportItemQueueOperation.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequest.d.ts +10 -10
- package/build/main/engine/items/requests/ExportItemRequest.js +5 -5
- package/build/main/engine/items/requests/ExportItemRequest.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemRequestProducer.d.ts +7 -7
- package/build/main/engine/items/requests/ExportItemRequestProducer.js +4 -4
- package/build/main/engine/items/requests/ExportItemRequestProducer.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponse.d.ts +8 -8
- package/build/main/engine/items/requests/ExportItemResponse.js +4 -4
- package/build/main/engine/items/requests/ExportItemResponse.js.map +1 -1
- package/build/main/engine/items/requests/ExportItemResponseProducer.d.ts +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js +5 -5
- package/build/main/engine/items/requests/ExportItemResponseProducer.js.map +1 -1
- package/build/main/engine/loaders/BlueprintLoader.d.ts +8 -8
- package/build/main/engine/loaders/BlueprintLoader.js +11 -11
- package/build/main/engine/loaders/BlueprintLoader.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueue.d.ts +11 -11
- package/build/main/engine/writing/queue/ExportWriterQueue.js +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueue.js.map +1 -1
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.d.ts +5 -5
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js +4 -4
- package/build/main/engine/writing/queue/ExportWriterQueueOperation.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequest.d.ts +10 -10
- package/build/main/engine/writing/requests/ExportWriterRequest.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterRequest.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.d.ts +7 -7
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js +5 -5
- package/build/main/engine/writing/requests/ExportWriterRequestProducer.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponse.d.ts +8 -8
- package/build/main/engine/writing/requests/ExportWriterResponse.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponse.js.map +1 -1
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.d.ts +5 -5
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js +4 -4
- package/build/main/engine/writing/requests/ExportWriterResponseProducer.js.map +1 -1
- package/build/main/engine/writing/writers/ExportItemWriter.d.ts +12 -12
- package/build/main/engine/writing/writers/ExportItemWriter.js +7 -7
- package/build/main/engine/writing/writers/ExportItemWriter.js.map +1 -1
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.d.ts +6 -6
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js +7 -7
- package/build/main/engine/writing/writers/ExportWriterRuleProcessor.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.d.ts +2 -2
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemory.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.d.ts +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js +6 -6
- package/build/main/engine/writing/writers/memory/ExportWriterMemoryRequest.js.map +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.d.ts +1 -1
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js +4 -4
- package/build/main/engine/writing/writers/memory/ExportWriterStore.js.map +1 -1
- package/build/main/exports.d.ts +3 -3
- package/build/main/exports.js +3 -3
- package/build/main/exports.js.map +1 -1
- package/build/main/index.js.map +1 -1
- package/build/main/model/dsm/DSMReferenceStore.js +6 -6
- package/build/main/model/dsm/DSMReferenceStore.js.map +1 -1
- package/build/main/model/exporters/Exporter.d.ts +17 -16
- package/build/main/model/exporters/Exporter.js +14 -4
- package/build/main/model/exporters/Exporter.js.map +1 -1
- package/build/main/model/maps/ExporterMapBlueprint.d.ts +4 -4
- package/build/main/model/maps/ExporterMapBlueprint.js +3 -3
- package/build/main/model/maps/ExporterMapBlueprint.js.map +1 -1
- package/build/main/model/sources/ExporterSource.d.ts +6 -6
- package/build/main/model/sources/ExporterSource.js +13 -13
- package/build/main/model/sources/ExporterSource.js.map +1 -1
- package/build/main/pulsar/Pulsar.d.ts +35 -35
- package/build/main/pulsar/Pulsar.js +40 -40
- package/build/main/pulsar/Pulsar.js.map +1 -1
- package/build/main/pulsar/PulsarInterface.d.ts +54 -54
- package/build/main/pulsar/PulsarInterface.js +14 -14
- package/build/main/pulsar/PulsarInterface.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysis.d.ts +12 -12
- package/build/main/pulsar/PulsarStaticAnalysis.js +19 -19
- package/build/main/pulsar/PulsarStaticAnalysis.js.map +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.d.ts +9 -9
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js +1 -1
- package/build/main/pulsar/PulsarStaticAnalysisInterface.js.map +1 -1
- package/build/main/pulsar/managers/PulsarBlueprintManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarBlueprintManager.js +4 -4
- package/build/main/pulsar/managers/PulsarBlueprintManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCIManager.d.ts +8 -8
- package/build/main/pulsar/managers/PulsarCIManager.js +13 -13
- package/build/main/pulsar/managers/PulsarCIManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarCodeManager.d.ts +15 -15
- package/build/main/pulsar/managers/PulsarCodeManager.js +29 -29
- package/build/main/pulsar/managers/PulsarCodeManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarConfigurationManager.d.ts +3 -3
- package/build/main/pulsar/managers/PulsarConfigurationManager.js +4 -4
- package/build/main/pulsar/managers/PulsarConfigurationManager.js.map +1 -1
- package/build/main/pulsar/managers/PulsarExporterManager.d.ts +11 -11
- package/build/main/pulsar/managers/PulsarExporterManager.js +5 -5
- package/build/main/pulsar/managers/PulsarExporterManager.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.d.ts +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js +10 -13
- package/build/main/pulsar/managers/generators/PulsarExporterJSONGenerator.js.map +1 -1
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.d.ts +5 -5
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js +4 -4
- package/build/main/pulsar/managers/generators/PulsarExporterZIPGenerator.js.map +1 -1
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.d.ts +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js +3 -3
- package/build/main/pulsar/managers/loaders/PulsarBaseLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js +7 -9
- package/build/main/pulsar/managers/loaders/local/PulsarFSLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterJSONLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js +16 -27
- package/build/main/pulsar/managers/loaders/memory/PulsarExporterMemoryLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterGitHubLoader.js.map +1 -1
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.d.ts +4 -4
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js +6 -6
- package/build/main/pulsar/managers/loaders/remote/PulsarExporterZIPLoader.js.map +1 -1
- package/build/main/tests/TestConfiguration.js.map +1 -1
- package/build/main/tests/casebuilders/ci.d.ts +8 -8
- package/build/main/tests/casebuilders/ci.js +1 -1
- package/build/main/tests/casebuilders/ci.js.map +1 -1
- package/build/main/tests/casebuilders/configuration.d.ts +4 -4
- package/build/main/tests/casebuilders/configuration.js +3 -3
- package/build/main/tests/casebuilders/configuration.js.map +1 -1
- package/build/main/tests/casebuilders/dsm.d.ts +2 -2
- package/build/main/tests/casebuilders/dsm.js +3 -3
- package/build/main/tests/casebuilders/dsm.js.map +1 -1
- package/build/main/tests/casebuilders/modelObjects.d.ts +13 -13
- package/build/main/tests/casebuilders/modelObjects.js +14 -14
- package/build/main/tests/casebuilders/modelObjects.js.map +1 -1
- package/build/main/tools/Logger.d.ts +14 -14
- package/build/main/tools/Logger.js +18 -18
- package/build/main/tools/Logger.js.map +1 -1
- package/build/main/tools/LoggerDefaultMessages.d.ts +10 -10
- package/build/main/tools/LoggerDefaultMessages.js +16 -16
- package/build/main/tools/LoggerDefaultMessages.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +221 -221
- package/package.json +9 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportWriterFileSystemRequest.swift
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportWriterMemoryRequest = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Imports
|
|
13
13
|
const ExportWriterRequest_1 = require("./../../requests/ExportWriterRequest");
|
|
@@ -16,7 +16,7 @@ const ExportWriterRuleProcessor_1 = require("./../ExportWriterRuleProcessor");
|
|
|
16
16
|
// MARK: - Definitions
|
|
17
17
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
18
18
|
// MARK: - Object definition
|
|
19
|
-
class
|
|
19
|
+
class PCExportWriterMemoryRequest extends ExportWriterRequest_1.PCExportWriterRequest {
|
|
20
20
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
21
21
|
// MARK: - Properties
|
|
22
22
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
@@ -26,7 +26,7 @@ class PLSExportWriterMemoryRequest extends ExportWriterRequest_1.PLSExportWriter
|
|
|
26
26
|
writeItem() {
|
|
27
27
|
return new Promise(async (respond, _) => {
|
|
28
28
|
// Build the url to write to
|
|
29
|
-
let processor = new ExportWriterRuleProcessor_1.
|
|
29
|
+
let processor = new ExportWriterRuleProcessor_1.PCExportWriterRuleProcessor(this.configuration);
|
|
30
30
|
let destinationURL;
|
|
31
31
|
if (this.item.resolvedName) {
|
|
32
32
|
destinationURL = processor.resolvedDestinationURL(this.item.resolvedName, this.configuration.outputPathPrefix);
|
|
@@ -36,7 +36,7 @@ class PLSExportWriterMemoryRequest extends ExportWriterRequest_1.PLSExportWriter
|
|
|
36
36
|
destinationURL = await processor.resolveDestinationURL(this.item.map.write_to, this.item.nameData, this.configuration.outputPathPrefix);
|
|
37
37
|
}
|
|
38
38
|
else if (this.item.map.write_using) {
|
|
39
|
-
let source = this.configuration.exporter.
|
|
39
|
+
let source = this.configuration.exporter.sourceByIdIgnoringExecutableExtension(this.item.map.write_using);
|
|
40
40
|
if (!source) {
|
|
41
41
|
throw `Output defines unknown source '${this.item.map.write_using}'`;
|
|
42
42
|
}
|
|
@@ -55,5 +55,5 @@ class PLSExportWriterMemoryRequest extends ExportWriterRequest_1.PLSExportWriter
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
exports.
|
|
58
|
+
exports.PCExportWriterMemoryRequest = PCExportWriterMemoryRequest;
|
|
59
59
|
//# sourceMappingURL=ExportWriterMemoryRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportWriterMemoryRequest.js","sourceRoot":"","sources":["../../../../../../src/engine/writing/writers/memory/ExportWriterMemoryRequest.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportWriterMemoryRequest.js","sourceRoot":"","sources":["../../../../../../src/engine/writing/writers/memory/ExportWriterMemoryRequest.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,yCAAyC;AACzC,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,8EAA4E;AAE5E,8EAA4E;AAE5E,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,2BAA4B,SAAQ,2CAAqB;IACpE,8GAA8G;IAC9G,qBAAqB;IAErB,8GAA8G;IAC9G,eAAe;IAEf,8GAA8G;IAC9G,6BAA6B;IAE7B,SAAS;QACP,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE;YACtC,4BAA4B;YAC5B,IAAI,SAAS,GAAG,IAAI,uDAA2B,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;YACnE,IAAI,cAAsB,CAAA;YAC1B,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;gBAC1B,cAAc,GAAG,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAA;aAC/G;iBAAM;gBACL,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE;oBAC1B,cAAc,GAAG,MAAM,SAAS,CAAC,qBAAqB,CACpD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAClB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CACpC,CAAA;iBACF;qBAAM,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE;oBACpC,IAAI,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,qCAAqC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAA;oBACzG,IAAI,CAAC,MAAM,EAAE;wBACX,MAAM,kCAAkC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,CAAA;qBACrE;oBACD,cAAc,GAAG,MAAM,SAAS,CAAC,qBAAqB,CACpD,MAAM,CAAC,OAAO,EACd,IAAI,CAAC,IAAI,CAAC,QAAQ,EAClB,IAAI,CAAC,aAAa,CAAC,gBAAgB,CACpC,CAAA;iBACF;qBAAM;oBACL,MAAM,2DAA2D,CAAA;iBAClE;aACF;YAED,oBAAoB;YACpB,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAC/B,WAAW,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,CAAC,EAAE,EAC5E,EAAE,CACH,CAAA;YAED,oCAAoC;YACpC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAA;YAE/E,4BAA4B;YAC5B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACpB,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AApDD,kEAoDC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
//
|
|
3
|
-
//
|
|
3
|
+
// PCExportWriterMemoryStore.swift
|
|
4
4
|
// Supernova
|
|
5
5
|
//
|
|
6
6
|
// Created by Jiri Trecak.
|
|
7
7
|
// Copyright © 2020 Jiri Trecak. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExportWriterMemoryStore = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Imports
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Definitions
|
|
15
15
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
16
16
|
// MARK: - Object definition
|
|
17
|
-
class
|
|
17
|
+
class PCExportWriterMemoryStore {
|
|
18
18
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
19
19
|
// MARK: - Init
|
|
20
20
|
constructor() {
|
|
@@ -29,5 +29,5 @@ class PLSExportWriterMemoryStore {
|
|
|
29
29
|
this.dataStore.set(path, item);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
exports.
|
|
32
|
+
exports.PCExportWriterMemoryStore = PCExportWriterMemoryStore;
|
|
33
33
|
//# sourceMappingURL=ExportWriterStore.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExportWriterStore.js","sourceRoot":"","sources":["../../../../../../src/engine/writing/writers/memory/ExportWriterStore.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"ExportWriterStore.js","sourceRoot":"","sources":["../../../../../../src/engine/writing/writers/memory/ExportWriterStore.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,mCAAmC;AACnC,aAAa;AACb,EAAE;AACF,2BAA2B;AAC3B,sDAAsD;AACtD,EAAE;;;AAEF,8GAA8G;AAC9G,kBAAkB;AAElB,8GAA8G;AAC9G,sBAAsB;AAEtB,8GAA8G;AAC9G,4BAA4B;AAE5B,MAAa,yBAAyB;IAMpC,8GAA8G;IAC9G,eAAe;IAEf;QACE,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAe,CAAA;IACzC,CAAC;IAED,8GAA8G;IAC9G,0BAA0B;IAE1B,SAAS,CAAC,IAAS,EAAE,IAAY;QAC/B,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAC5B,MAAM,KAAK,CAAC,+BAA+B,IAAI,EAAE,CAAC,CAAA;SACnD;QAED,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAvBD,8DAuBC"}
|
package/build/main/exports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { PCPulsar } from './pulsar/Pulsar';
|
|
2
|
+
export { PCPulsarStaticAnalysis } from './pulsar/PulsarStaticAnalysis';
|
|
3
3
|
export { DSMReferenceStore } from './model/dsm/DSMReferenceStore';
|
|
4
|
-
export {
|
|
4
|
+
export { PCPulsarZIPGenerator } from './pulsar/managers/generators/PulsarExporterZIPGenerator';
|
package/build/main/exports.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
// Pulsar core
|
|
4
4
|
var Pulsar_1 = require("./pulsar/Pulsar");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "PCPulsar", { enumerable: true, get: function () { return Pulsar_1.PCPulsar; } });
|
|
6
6
|
var PulsarStaticAnalysis_1 = require("./pulsar/PulsarStaticAnalysis");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "PCPulsarStaticAnalysis", { enumerable: true, get: function () { return PulsarStaticAnalysis_1.PCPulsarStaticAnalysis; } });
|
|
8
8
|
var DSMReferenceStore_1 = require("./model/dsm/DSMReferenceStore");
|
|
9
9
|
Object.defineProperty(exports, "DSMReferenceStore", { enumerable: true, get: function () { return DSMReferenceStore_1.DSMReferenceStore; } });
|
|
10
10
|
// Utilities
|
|
11
11
|
var PulsarExporterZIPGenerator_1 = require("./pulsar/managers/generators/PulsarExporterZIPGenerator");
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "PCPulsarZIPGenerator", { enumerable: true, get: function () { return PulsarExporterZIPGenerator_1.PCPulsarZIPGenerator; } });
|
|
13
13
|
//# sourceMappingURL=exports.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":";;AAAA,cAAc;AACd,
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":";;AAAA,cAAc;AACd,0CAA0C;AAAjC,kGAAA,QAAQ,OAAA;AACjB,sEAAsE;AAA7D,8HAAA,sBAAsB,OAAA;AAC/B,mEAAiE;AAAxD,sHAAA,iBAAiB,OAAA;AAE1B,YAAY;AACZ,sGAA8F;AAArF,kIAAA,oBAAoB,OAAA"}
|
package/build/main/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAyB"}
|
|
@@ -40,27 +40,27 @@ class DSMReferenceStore {
|
|
|
40
40
|
// Construct contexts statically
|
|
41
41
|
this.contexts = [
|
|
42
42
|
{
|
|
43
|
-
id: ExporterSource_1.
|
|
43
|
+
id: ExporterSource_1.PCExporterSourceContextType.generic,
|
|
44
44
|
name: 'Generic'
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
id: ExporterSource_1.
|
|
47
|
+
id: ExporterSource_1.PCExporterSourceContextType.component,
|
|
48
48
|
name: 'Components'
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
id: ExporterSource_1.
|
|
51
|
+
id: ExporterSource_1.PCExporterSourceContextType.componentGroup,
|
|
52
52
|
name: 'Component Groups'
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
id: ExporterSource_1.
|
|
55
|
+
id: ExporterSource_1.PCExporterSourceContextType.tokenGroup,
|
|
56
56
|
name: 'Token Group'
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
|
-
id: ExporterSource_1.
|
|
59
|
+
id: ExporterSource_1.PCExporterSourceContextType.tokenType,
|
|
60
60
|
name: 'Token Type'
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
id: ExporterSource_1.
|
|
63
|
+
id: ExporterSource_1.PCExporterSourceContextType.theme,
|
|
64
64
|
name: 'Themes'
|
|
65
65
|
}
|
|
66
66
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSMReferenceStore.js","sourceRoot":"","sources":["../../../../src/model/dsm/DSMReferenceStore.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,wBAAwB;AACxB,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAEF,
|
|
1
|
+
{"version":3,"file":"DSMReferenceStore.js","sourceRoot":"","sources":["../../../../src/model/dsm/DSMReferenceStore.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare type
|
|
1
|
+
import { PCExporterSource } from '../sources/ExporterSource';
|
|
2
|
+
import { PCExporterMapBlueprint } from './../maps/ExporterMapBlueprint';
|
|
3
|
+
export declare type PCExporterModel = {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
@@ -15,12 +15,12 @@ export declare type PLSExporterModel = {
|
|
|
15
15
|
output?: string;
|
|
16
16
|
};
|
|
17
17
|
engines?: {
|
|
18
|
-
|
|
18
|
+
pulsar?: string;
|
|
19
19
|
supernova?: string;
|
|
20
20
|
};
|
|
21
21
|
tags: Array<string>;
|
|
22
22
|
};
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class PCExporter {
|
|
24
24
|
id: string;
|
|
25
25
|
name: string;
|
|
26
26
|
description: string;
|
|
@@ -32,19 +32,20 @@ export declare class PLSExporter {
|
|
|
32
32
|
version: string;
|
|
33
33
|
sourceConfigFilePath: string | null;
|
|
34
34
|
outputConfigFilePath: string | null;
|
|
35
|
-
|
|
35
|
+
pulsarEngineVersion: string | null;
|
|
36
36
|
supernovaEngineVersion: string | null;
|
|
37
37
|
tags: Array<string>;
|
|
38
|
-
sources: Map<string,
|
|
39
|
-
outputs: Array<
|
|
40
|
-
constructor(data:
|
|
41
|
-
linkSources(sources: Array<
|
|
42
|
-
linkOutputs(outputs: Array<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
sources: Map<string, PCExporterSource>;
|
|
39
|
+
outputs: Array<PCExporterMapBlueprint>;
|
|
40
|
+
constructor(data: PCExporterModel);
|
|
41
|
+
linkSources(sources: Array<PCExporterSource>): void;
|
|
42
|
+
linkOutputs(outputs: Array<PCExporterMapBlueprint>): void;
|
|
43
|
+
sourceByIdIgnoringExecutableExtension(sourceId: string): PCExporterSource | null;
|
|
44
|
+
sourceById(sourceId: string): PCExporterSource | null;
|
|
45
|
+
storeNewSource(source: PCExporterSource): void;
|
|
46
|
+
removeSource(source: PCExporterSource): void;
|
|
46
47
|
removeSourceById(sourceId: string): void;
|
|
47
|
-
storeSources(sources: Array<
|
|
48
|
-
removeSources(sources: Array<
|
|
48
|
+
storeSources(sources: Array<PCExporterSource>): void;
|
|
49
|
+
removeSources(sources: Array<PCExporterSource>): void;
|
|
49
50
|
moveBlueprintSource(oldId: string, newId: string, newPath: string | null): void;
|
|
50
51
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
// Copyright © 2020 Supernova. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExporter = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Exporter Object
|
|
13
|
-
class
|
|
13
|
+
class PCExporter {
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Constructor
|
|
16
16
|
constructor(data) {
|
|
@@ -28,7 +28,7 @@ class PLSExporter {
|
|
|
28
28
|
this.tags = data.tags;
|
|
29
29
|
this.sourceConfigFilePath = (_f = (_e = data.config) === null || _e === void 0 ? void 0 : _e.sources) !== null && _f !== void 0 ? _f : null;
|
|
30
30
|
this.outputConfigFilePath = (_h = (_g = data.config) === null || _g === void 0 ? void 0 : _g.output) !== null && _h !== void 0 ? _h : null;
|
|
31
|
-
this.
|
|
31
|
+
this.pulsarEngineVersion = (_k = (_j = data.engines) === null || _j === void 0 ? void 0 : _j.pulsar) !== null && _k !== void 0 ? _k : null;
|
|
32
32
|
this.supernovaEngineVersion = (_m = (_l = data.engines) === null || _l === void 0 ? void 0 : _l.supernova) !== null && _m !== void 0 ? _m : null;
|
|
33
33
|
this.sources = new Map();
|
|
34
34
|
this.outputs = new Array();
|
|
@@ -45,6 +45,16 @@ class PLSExporter {
|
|
|
45
45
|
}
|
|
46
46
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
47
47
|
// MARK: - Convenience
|
|
48
|
+
sourceByIdIgnoringExecutableExtension(sourceId) {
|
|
49
|
+
if (sourceId.endsWith('.pr')) {
|
|
50
|
+
// Ignore extension and seek without it
|
|
51
|
+
return this.sourceById(sourceId.substr(0, sourceId.length - 3));
|
|
52
|
+
// TODO: Javascript ignore
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
return this.sourceById(sourceId);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
48
58
|
sourceById(sourceId) {
|
|
49
59
|
var _a;
|
|
50
60
|
return (_a = this.sources.get(sourceId)) !== null && _a !== void 0 ? _a : null;
|
|
@@ -84,5 +94,5 @@ class PLSExporter {
|
|
|
84
94
|
sourceObject.path = newPath;
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
|
-
exports.
|
|
97
|
+
exports.PCExporter = PCExporter;
|
|
88
98
|
//# sourceMappingURL=Exporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exporter.js","sourceRoot":"","sources":["../../../../src/model/exporters/Exporter.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,eAAe;AACf,UAAU;AACV,EAAE;AACF,2BAA2B;AAC3B,oDAAoD;AACpD,EAAE;;;AAmCF,8GAA8G;AAC9G,0BAA0B;AAE1B,MAAa,
|
|
1
|
+
{"version":3,"file":"Exporter.js","sourceRoot":"","sources":["../../../../src/model/exporters/Exporter.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type PCExporterMapBlueprintModel = {
|
|
2
2
|
invoke: string;
|
|
3
3
|
write_to?: string;
|
|
4
4
|
write_using?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class PCExporterMapBlueprint {
|
|
7
7
|
invoke: string;
|
|
8
8
|
write_to: string | null;
|
|
9
9
|
write_using: string | null;
|
|
10
|
-
constructor(data:
|
|
11
|
-
toObject():
|
|
10
|
+
constructor(data: PCExporterMapBlueprintModel);
|
|
11
|
+
toObject(): PCExporterMapBlueprintModel;
|
|
12
12
|
}
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
// Copyright © 2020 Supernova. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExporterMapBlueprint = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Interpreter Definition
|
|
13
|
-
class
|
|
13
|
+
class PCExporterMapBlueprint {
|
|
14
14
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
15
15
|
// MARK: - Constructor
|
|
16
16
|
constructor(data) {
|
|
@@ -35,5 +35,5 @@ class PLSExporterMapBlueprint {
|
|
|
35
35
|
return data;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
exports.
|
|
38
|
+
exports.PCExporterMapBlueprint = PCExporterMapBlueprint;
|
|
39
39
|
//# sourceMappingURL=ExporterMapBlueprint.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,sBAAsB;IASjC,0GAA0G;IAC1G,sBAAsB;IAEtB,YAAY,IAAiC;;QAC3C,2BAA2B;QAC3B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;QACzB,IAAI,CAAC,QAAQ,SAAG,IAAI,CAAC,QAAQ,mCAAI,IAAI,CAAA;QACrC,IAAI,CAAC,WAAW,SAAG,IAAI,CAAC,WAAW,mCAAI,IAAI,CAAA;IAC7C,CAAC;IAED,0GAA0G;IAC1G,wBAAwB;IAExB,QAAQ;QACN,IAAI,IAAI,GAAG;YACT,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAA;QAED,IAAI,IAAI,CAAC,WAAW,EAAE;YACpB,IAAI,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,WAAW,CAAA;SACvC;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAA;SACjC;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AArCD,wDAqCC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum PCExporterSourceContextType {
|
|
2
2
|
generic = "generic",
|
|
3
3
|
component = "component",
|
|
4
4
|
componentGroup = "componentGroup",
|
|
@@ -6,20 +6,20 @@ export declare enum PLSExporterSourceContextType {
|
|
|
6
6
|
tokenGroup = "tokenGroup",
|
|
7
7
|
theme = "theme"
|
|
8
8
|
}
|
|
9
|
-
export declare type
|
|
9
|
+
export declare type PCExporterBlueprintModel = {
|
|
10
10
|
targets_ci?: boolean;
|
|
11
11
|
targets_sandbox?: boolean;
|
|
12
12
|
targets_documentation?: boolean;
|
|
13
|
-
context?:
|
|
13
|
+
context?: PCExporterSourceContextType;
|
|
14
14
|
};
|
|
15
|
-
export declare class
|
|
15
|
+
export declare class PCExporterSource {
|
|
16
16
|
id: string;
|
|
17
17
|
path: string;
|
|
18
18
|
targetsCI: boolean;
|
|
19
19
|
targetsSandbox: boolean;
|
|
20
20
|
targetsDocumentation: boolean;
|
|
21
|
-
context:
|
|
21
|
+
context: PCExporterSourceContextType;
|
|
22
22
|
content: string;
|
|
23
23
|
constructor(id: string, path: string | null, content: string);
|
|
24
|
-
loadBlueprintConfiguration(data:
|
|
24
|
+
loadBlueprintConfiguration(data: PCExporterBlueprintModel): void;
|
|
25
25
|
}
|
|
@@ -7,27 +7,27 @@
|
|
|
7
7
|
// Copyright © 2020 Supernova. All rights reserved.
|
|
8
8
|
//
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.
|
|
10
|
+
exports.PCExporterSource = exports.PCExporterSourceContextType = void 0;
|
|
11
11
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
12
12
|
// MARK: - Imports
|
|
13
13
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
14
14
|
// MARK: - Definitions
|
|
15
|
-
var
|
|
16
|
-
(function (
|
|
15
|
+
var PCExporterSourceContextType;
|
|
16
|
+
(function (PCExporterSourceContextType) {
|
|
17
17
|
// General-purpose
|
|
18
|
-
|
|
18
|
+
PCExporterSourceContextType["generic"] = "generic";
|
|
19
19
|
// Components
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
PCExporterSourceContextType["component"] = "component";
|
|
21
|
+
PCExporterSourceContextType["componentGroup"] = "componentGroup";
|
|
22
22
|
// Tokens
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
PCExporterSourceContextType["tokenType"] = "tokenType";
|
|
24
|
+
PCExporterSourceContextType["tokenGroup"] = "tokenGroup";
|
|
25
25
|
// Themes
|
|
26
|
-
|
|
27
|
-
})(
|
|
26
|
+
PCExporterSourceContextType["theme"] = "theme";
|
|
27
|
+
})(PCExporterSourceContextType = exports.PCExporterSourceContextType || (exports.PCExporterSourceContextType = {}));
|
|
28
28
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
29
29
|
// MARK: - Blueprint Object
|
|
30
|
-
class
|
|
30
|
+
class PCExporterSource {
|
|
31
31
|
// --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- --- ---
|
|
32
32
|
// MARK: - Constructor
|
|
33
33
|
constructor(id, path, content) {
|
|
@@ -37,7 +37,7 @@ class PLSExporterSource {
|
|
|
37
37
|
this.targetsCI = true;
|
|
38
38
|
this.targetsDocumentation = false;
|
|
39
39
|
this.targetsSandbox = false;
|
|
40
|
-
this.context =
|
|
40
|
+
this.context = PCExporterSourceContextType.generic;
|
|
41
41
|
}
|
|
42
42
|
loadBlueprintConfiguration(data) {
|
|
43
43
|
if (data.targets_ci) {
|
|
@@ -54,5 +54,5 @@ class PLSExporterSource {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
exports.
|
|
57
|
+
exports.PCExporterSource = PCExporterSource;
|
|
58
58
|
//# sourceMappingURL=ExporterSource.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,2BAcX;AAdD,WAAY,2BAA2B;IACrC,kBAAkB;IAClB,kDAAmB,CAAA;IAEnB,aAAa;IACb,sDAAuB,CAAA;IACvB,gEAAiC,CAAA;IAEjC,SAAS;IACT,sDAAuB,CAAA;IACvB,wDAAyB,CAAA;IAEzB,SAAS;IACT,8CAAe,CAAA;AACjB,CAAC,EAdW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QActC;AAUD,8GAA8G;AAC9G,2BAA2B;AAE3B,MAAa,gBAAgB;IAe3B,0GAA0G;IAC1G,sBAAsB;IAEtB,YAAY,EAAU,EAAE,IAAmB,EAAE,OAAe;QAC1D,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,IAAI,GAAG,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,IAAI,CAAA,CAAC,4CAA4C;QACrE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QAEtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAA;QACjC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAA;QAE3B,IAAI,CAAC,OAAO,GAAG,2BAA2B,CAAC,OAAO,CAAA;IACpD,CAAC;IAED,0BAA0B,CAAC,IAA8B;QACvD,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;SACjC;QACD,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,CAAA;SAC3C;QACD,IAAI,IAAI,CAAC,qBAAqB,EAAE;YAC9B,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,qBAAqB,CAAA;SACvD;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAA;SAC5B;IACH,CAAC;CACF;AA5CD,4CA4CC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { PCExporter } from '../model/exporters/Exporter';
|
|
2
|
+
import { PCEngineExporterDetail, PCEngineExporterProcessingResult, PCPulsarInterface, PCEngineSourceDetail, PCEngineSourceProcessingResult } from './PulsarInterface';
|
|
3
|
+
import { PLHighlightEngineToken, DSMBridgeConfiguration } from '@supernova-studio/pulsar-language';
|
|
4
|
+
import { PLAutocompleteEngineApplicationResult, PLAutocompleteEngineSuggestion } from '@supernova-studio/pulsar-language/build/main/tools/autocomplete/AutocompleteEngine';
|
|
5
5
|
import { DSMReferenceStore } from '../model/dsm/DSMReferenceStore';
|
|
6
|
-
export declare enum
|
|
6
|
+
export declare enum PCPulsarEngineState {
|
|
7
7
|
waiting = "waiting",
|
|
8
8
|
loading = "loading",
|
|
9
9
|
ready = "ready"
|
|
10
10
|
}
|
|
11
|
-
export declare enum
|
|
11
|
+
export declare enum PCPulsarExporterMode {
|
|
12
12
|
ci = "ci",
|
|
13
13
|
sandbox = "sandbox",
|
|
14
14
|
docs = "docs"
|
|
15
15
|
}
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class PCPulsar implements PCPulsarInterface {
|
|
17
17
|
private state;
|
|
18
18
|
private exporter;
|
|
19
19
|
private sourceManager;
|
|
@@ -23,35 +23,35 @@ export declare class PLSPulsar implements PLSPulsarInterface {
|
|
|
23
23
|
private configurationManager;
|
|
24
24
|
constructor();
|
|
25
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:
|
|
26
|
+
initiateWithExporter(exporter: PCExporter): Promise<PCEngineExporterDetail>;
|
|
27
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<
|
|
28
|
+
initiateWithLocalURL(url: string): Promise<PCEngineExporterDetail>;
|
|
29
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<
|
|
30
|
+
initiateWithPackageS3URL(s3URL: string): Promise<PCEngineExporterDetail>;
|
|
31
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<
|
|
32
|
+
initiateWithPackageGitHubURL(githubURL: string): Promise<PCEngineExporterDetail>;
|
|
33
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<
|
|
34
|
+
initiateWithPackageBlob(blob: Object | string): Promise<PCEngineExporterDetail>;
|
|
35
35
|
private preInit;
|
|
36
36
|
private postInit;
|
|
37
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():
|
|
38
|
+
getExporterBackingObject(): PCExporter;
|
|
39
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():
|
|
40
|
+
getExporterDetail(): PCEngineExporterDetail;
|
|
41
41
|
/** Update exporter name. Name must be non-empty and contain at least 6 characters */
|
|
42
|
-
updateExporterName(name: string):
|
|
42
|
+
updateExporterName(name: string): PCEngineExporterDetail;
|
|
43
43
|
/** Update exporter description. Description must be non-empty and contain at least 20 characters */
|
|
44
|
-
updateExporterDescription(description: string):
|
|
44
|
+
updateExporterDescription(description: string): PCEngineExporterDetail;
|
|
45
45
|
/** Update exporter version. Exporter version needs to follow standard major.minor.patch versioning. Patch is optional */
|
|
46
|
-
updateExporterVersion(version: string):
|
|
46
|
+
updateExporterVersion(version: string): PCEngineExporterDetail;
|
|
47
47
|
/** Update exporter author. Author can be empty. If non-empty, only alpha-numerics are allowed */
|
|
48
|
-
updateExporterAuthor(author: string | null):
|
|
48
|
+
updateExporterAuthor(author: string | null): PCEngineExporterDetail;
|
|
49
49
|
/** Update exporter homepage. Homepage can be empty. If non-empty, validates the URL */
|
|
50
|
-
updateExporterHomepage(homepage: string):
|
|
50
|
+
updateExporterHomepage(homepage: string): PCEngineExporterDetail;
|
|
51
51
|
/** Update exporter icon. Not available at the moment */
|
|
52
|
-
updateExporterIcon(icon: string):
|
|
52
|
+
updateExporterIcon(icon: string): PCEngineExporterDetail;
|
|
53
53
|
/** Update exporter tags. Each tag must consist of letters and numbers */
|
|
54
|
-
updateExporterTags(tags: string[]):
|
|
54
|
+
updateExporterTags(tags: string[]): PCEngineExporterDetail;
|
|
55
55
|
/** Get exporter configuration JSON */
|
|
56
56
|
getExporterConfigurationJSON(): string;
|
|
57
57
|
/** Get source configuration JSON */
|
|
@@ -65,39 +65,39 @@ export declare class PLSPulsar implements PLSPulsarInterface {
|
|
|
65
65
|
/** Update output configuration JSON */
|
|
66
66
|
updateOutputConfigurationJSON(content: string): void;
|
|
67
67
|
/** Get all blueprints associated with loaded exporter */
|
|
68
|
-
getSources(): Array<
|
|
68
|
+
getSources(): Array<PCEngineSourceDetail>;
|
|
69
69
|
/** Get specific source associated with loaded exporter */
|
|
70
|
-
getSourceById(blueprintId: string):
|
|
70
|
+
getSourceById(blueprintId: string): PCEngineSourceDetail;
|
|
71
71
|
/** Create new source for loaded exporter. Source comes with default name and code and uses generic context */
|
|
72
|
-
createNewSource():
|
|
72
|
+
createNewSource(): PCEngineSourceDetail;
|
|
73
73
|
/** Delete specified source. Throws error when source is not found */
|
|
74
74
|
deleteSourceById(blueprintId: string): void;
|
|
75
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):
|
|
76
|
+
updateSourceLocation(oldSourceId: string, newSourceId: string, newPath: string): PCEngineSourceDetail;
|
|
77
77
|
/** Get reference store containing description of all elements in the DSM, including all context categories */
|
|
78
78
|
getDSMContextStore(dsmBridgeConfig: DSMBridgeConfiguration): Promise<DSMReferenceStore>;
|
|
79
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
80
|
static getDSMContextStoreStatic(dsmBridgeConfig: DSMBridgeConfiguration): Promise<DSMReferenceStore>;
|
|
81
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<
|
|
82
|
+
executeSourceById(blueprintId: string, dsmBridgeConfig: DSMBridgeConfiguration, contextKey: string, contextId: string): Promise<PCEngineSourceProcessingResult>;
|
|
83
83
|
/** Update source code definition. Overview can be empty. Throws error when source is not found */
|
|
84
84
|
updateSourceCodeDefinitionForSourceId(sourceId: string, definition: string): void;
|
|
85
|
-
/** Suggest next characters, words or snippets to be inserted into
|
|
86
|
-
suggestNextFromSourceCode(code: string, selectionLocation: number, selectionLength: number): Array<
|
|
87
|
-
/** Apply autocompletion result to specified
|
|
88
|
-
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply:
|
|
89
|
-
/** Compute highlight tokens for the provided
|
|
90
|
-
suggestHighlightFromSourceCode(code: string): Array<
|
|
85
|
+
/** Suggest next characters, words or snippets to be inserted into pulsar code as user types */
|
|
86
|
+
suggestNextFromSourceCode(code: string, selectionLocation: number, selectionLength: number): Array<PLAutocompleteEngineSuggestion>;
|
|
87
|
+
/** Apply autocompletion result to specified pulsar code */
|
|
88
|
+
applyAutocompletionResultToCode(code: string, selectionLocation: number, selectionLength: number, apply: PLAutocompleteEngineSuggestion): PLAutocompleteEngineApplicationResult;
|
|
89
|
+
/** Compute highlight tokens for the provided pulsar code */
|
|
90
|
+
suggestHighlightFromSourceCode(code: string): Array<PLHighlightEngineToken>;
|
|
91
91
|
/** Serialize entire exporter into single javascript object. Returns object representation */
|
|
92
92
|
getExporterBlob(): Object;
|
|
93
93
|
/** Serialize entire exporter into single javascript object. Returns JSON-string representation */
|
|
94
94
|
getExporterBlobJSONSerialized(): string;
|
|
95
95
|
/** Execute entire exporter and retrieve all files produced as a result of this export */
|
|
96
|
-
executeExporter(dsmBridgeConfig: DSMBridgeConfiguration, exportMode?:
|
|
96
|
+
executeExporter(dsmBridgeConfig: DSMBridgeConfiguration, exportMode?: PCPulsarExporterMode): Promise<PCEngineExporterProcessingResult>;
|
|
97
97
|
/** Execute exporter in sandbox mode for a specific component */
|
|
98
|
-
executeExporterForSingleSandboxedComponent(dsmBridgeConfig: DSMBridgeConfiguration, sandboxComponentId: string, serializedSandboxData: string): Promise<
|
|
98
|
+
executeExporterForSingleSandboxedComponent(dsmBridgeConfig: DSMBridgeConfiguration, sandboxComponentId: string, serializedSandboxData: string): Promise<PCEngineExporterProcessingResult>;
|
|
99
99
|
/** Retrieve intermediate output of exporter in progress */
|
|
100
|
-
retrieveRunningExporterState():
|
|
100
|
+
retrieveRunningExporterState(): PCEngineExporterProcessingResult | null;
|
|
101
101
|
private validateCanManipulateState;
|
|
102
102
|
private convertExporterToDetail;
|
|
103
103
|
private convertSourceToDetail;
|