@vectoriox/iox-builder 1.4.57 → 1.4.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectoriox/iox-builder",
3
- "version": "1.4.57",
3
+ "version": "1.4.59",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -529,6 +529,31 @@ declare class ComponentRegistryService {
529
529
  static ɵprov: i0.ɵɵInjectableDeclaration<ComponentRegistryService>;
530
530
  }
531
531
 
532
+ /**
533
+ * SymbolRegistryService — in-memory store for org-level symbols.
534
+ *
535
+ * Loaded once per page by PageUiComponent alongside the page layout.
536
+ * Scoped to PageUiComponent.providers[] via IoxBuilderModule — one registry per builder instance.
537
+ */
538
+ declare class SymbolRegistryService {
539
+ private symbols;
540
+ /** symbolIds that have a live reusable block in the DB — used to guard isDetachedSymbol. */
541
+ private blockSymbolIds;
542
+ setSymbols(symbols: IoxSymbol[]): void;
543
+ getSymbol(id: string): IoxSymbol | undefined;
544
+ getAll(): IoxSymbol[];
545
+ upsert(symbol: IoxSymbol): void;
546
+ remove(id: string): void;
547
+ /** Set the symbolIds that have a live reusable block. Called on page load. */
548
+ setBlockSymbolIds(ids: Set<string>): void;
549
+ /** Returns true only when the symbol has a live backing reusable block. */
550
+ isBlockSymbol(id: string): boolean;
551
+ /** Remove a symbolId from the block-backed set (called when a block is deleted). */
552
+ removeBlockSymbolId(id: string): void;
553
+ static ɵfac: i0.ɵɵFactoryDeclaration<SymbolRegistryService, never>;
554
+ static ɵprov: i0.ɵɵInjectableDeclaration<SymbolRegistryService>;
555
+ }
556
+
532
557
  interface DragPayload {
533
558
  type: 'internal' | 'external';
534
559
  data: ComponentNode | string;
@@ -542,7 +567,8 @@ interface IoxDropEvent {
542
567
  }
543
568
  declare class DragEngineService {
544
569
  private registry;
545
- constructor(registry: ComponentRegistryService);
570
+ private symbolRegistry;
571
+ constructor(registry: ComponentRegistryService, symbolRegistry: SymbolRegistryService);
546
572
  handleDrop(children: ComponentNode[], event: IoxDropEvent, dropListId: string, cdr: ChangeDetectorRef, afterDrop?: () => void): void;
547
573
  private ids;
548
574
  private elMap;
@@ -802,23 +828,6 @@ declare class InteractionPresetRegistryService {
802
828
  static ɵprov: i0.ɵɵInjectableDeclaration<InteractionPresetRegistryService>;
803
829
  }
804
830
 
805
- /**
806
- * SymbolRegistryService — in-memory store for org-level symbols.
807
- *
808
- * Loaded once per page by PageUiComponent alongside the page layout.
809
- * Scoped to PageUiComponent.providers[] via IoxBuilderModule — one registry per builder instance.
810
- */
811
- declare class SymbolRegistryService {
812
- private symbols;
813
- setSymbols(symbols: IoxSymbol[]): void;
814
- getSymbol(id: string): IoxSymbol | undefined;
815
- getAll(): IoxSymbol[];
816
- upsert(symbol: IoxSymbol): void;
817
- remove(id: string): void;
818
- static ɵfac: i0.ɵɵFactoryDeclaration<SymbolRegistryService, never>;
819
- static ɵprov: i0.ɵɵInjectableDeclaration<SymbolRegistryService>;
820
- }
821
-
822
831
  declare class BuilderComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy {
823
832
  private registry;
824
833
  private overlayService;