@uniformdev/transformer 1.1.15 → 1.1.17
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/dist/cli/index.js +2883 -2809
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1360 -1284
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -452,6 +452,7 @@ interface ConvertResult {
|
|
|
452
452
|
contentTypesWritten: number;
|
|
453
453
|
entriesFromCompositions: number;
|
|
454
454
|
entriesFromFlattened: number;
|
|
455
|
+
entriesReused: number;
|
|
455
456
|
}
|
|
456
457
|
declare class CompositionConverterService {
|
|
457
458
|
private fileSystem;
|
|
@@ -467,6 +468,8 @@ declare class CompositionConverterService {
|
|
|
467
468
|
findFlattenTargets(slots: Record<string, ComponentInstance[]>, targetType: string, compositionId: string, compositionName: string, strict: boolean): FlattenedInstance[];
|
|
468
469
|
private walkSlots;
|
|
469
470
|
private transformContentReferences;
|
|
471
|
+
buildSourceItemMap(entriesDirFull: string): Promise<Map<string, string>>;
|
|
472
|
+
private findExistingEntryBySourceItem;
|
|
470
473
|
private compareTypes;
|
|
471
474
|
private truncate;
|
|
472
475
|
private truncateName;
|
|
@@ -483,6 +486,13 @@ declare class CompositionConverterService {
|
|
|
483
486
|
*/
|
|
484
487
|
declare function computeGuidHash(guidOrSeed: string): string;
|
|
485
488
|
|
|
489
|
+
/**
|
|
490
|
+
* Recursively walks through a value and regenerates all `_id` properties that contain UUIDs.
|
|
491
|
+
* Uses computeGuidHash(originalValue + jsonPath) to produce deterministic new IDs.
|
|
492
|
+
* Also creates a deep clone of the value — the original is not modified.
|
|
493
|
+
*/
|
|
494
|
+
declare function regenerateIds<T>(value: T, basePath: string): T;
|
|
495
|
+
|
|
486
496
|
interface RemoveParameterInternalOptions {
|
|
487
497
|
rootDir: string;
|
|
488
498
|
componentsDir: string;
|
|
@@ -544,4 +554,4 @@ declare class FieldRemoverService {
|
|
|
544
554
|
private removeKeyFromMap;
|
|
545
555
|
}
|
|
546
556
|
|
|
547
|
-
export { type AddComponentOptions, type AddComponentPatternOptions, ComponentAdderService, ComponentAlreadyExistsError, type ComponentDefinition, type ComponentInstance, ComponentNotFoundError, ComponentRenamerService, ComponentService, type Composition, CompositionConverterService, type CompositionOverrides, type CompositionPatternCandidatesOptions, type CompositionRoot, CompositionService, type ConvertCompositionsToEntriesOptions, DuplicateIdError, FieldRemoverService, FileNotFoundError, FileSystemService, type GlobalOptions, InvalidYamlError, Logger, type PackSerializationOptions, type Parameter, ParameterRemoverService, type ParameterValue, type PropagateRootComponentPropertyOptions, type PropagateRootComponentSlotOptions, PropertyNotFoundError, PropertyPropagatorService, type RemoveFieldOptions, type RemoveParameterOptions, type RenameComponentOptions, type RenameSlotOptions, SlotAlreadyExistsError, type SlotDefinition, SlotNotFoundError, SlotRenamerService, TransformError, type UnpackSerializationOptions, computeGuidHash };
|
|
557
|
+
export { type AddComponentOptions, type AddComponentPatternOptions, ComponentAdderService, ComponentAlreadyExistsError, type ComponentDefinition, type ComponentInstance, ComponentNotFoundError, ComponentRenamerService, ComponentService, type Composition, CompositionConverterService, type CompositionOverrides, type CompositionPatternCandidatesOptions, type CompositionRoot, CompositionService, type ConvertCompositionsToEntriesOptions, DuplicateIdError, FieldRemoverService, FileNotFoundError, FileSystemService, type GlobalOptions, InvalidYamlError, Logger, type PackSerializationOptions, type Parameter, ParameterRemoverService, type ParameterValue, type PropagateRootComponentPropertyOptions, type PropagateRootComponentSlotOptions, PropertyNotFoundError, PropertyPropagatorService, type RemoveFieldOptions, type RemoveParameterOptions, type RenameComponentOptions, type RenameSlotOptions, SlotAlreadyExistsError, type SlotDefinition, SlotNotFoundError, SlotRenamerService, TransformError, type UnpackSerializationOptions, computeGuidHash, regenerateIds };
|